"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_default_kevlar_base=p||[]};
(0,_._F_toggles_initialize)([0x800000, ]);
/*

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

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

 Copyright 2015-present Dan Abramov
 SPDX-License-Identifier: MIT
*/
/*

 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 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

 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 pgv,J9W,HLi,Mt3,XgX,iLw,J9,KiX,bLi,MW,iw,mWX,FiX,$s,et,vsX,f3i,OLL,Wg,z4i,$W3,Ui,Wig,UWX,tti,DWW,Tki,dW4,l3s,a3i,Esg,r9i,pd,i8,Kd,xWW,nd,b8,c94,m8,WE,Lit,pEv,Dq,kU,SpX,RMW,K8i,u8,Go4,bdX,q4,m4g,F8t,vU3,a8,Zdk,Ep,Od3,zMs,Q8w,b$,C8W,y8i,Gf,oUX,Zl,eMk,W8k,kok,Tmk,d4X,Pp,VL4,lqL,qpv,aqs,EUi,r8L,j8s,c8i,IqX,Jri,HPW,XpX,nyi,bPi,Gft,hr,mjL,P$v,ky,zUX,oyX,C$i,WI4,yrX,QwW,dM,Ypi,u$,l$,qj,BMg,aw,gy3,Uji,swW,xy,tIL,hUW,kfi,TMv,NMt,djk,uPk,llk,jI,qNg,Eys,rrg,wp3,MG,crX,pG3,iv,Htt,itw,LIv,RTX,Ztg,nps,OtW,
mGg,Pv4,$G3,opt,W7t,QDi,UGv,sD9,hTi,kuw,dGL,l4X,Vaw,a4X,rsi,L79,BG,Juw,H_t,M03,D4,NG,dy,ja,xp,cG,b_v,Xl,FCW,O_k,P0L,zj3,$D3,b0,oFg,Fl,vZ,f_,OK,WC3,QIi,C0w,yu9,BWX,sI4,gF3,t0i,hjL,kHk,$F,zH,NWX,TWs,dDW,lrs,ulv,V0t,qKi,arw,gW,tu,hu,Dr,ND,YKX,TH,jIX,LCi,l0,psk,JyW,S9W,qD,HAL,M6t,XsW,aI,K9k,rW,G6s,bAv,j0,F9t,m04,voX,fZW,OAX,Ayg,cZ,PIv,zmk,II,$0W,oow,L_,Jy,S6,Hs,emi,QrX,W9g,M0,yyw,B2X,U0g,iI,KA,ZZ,nA,G6,bI,srs,goX,hmi,D0k,N2i,T2k,d0W,uCi,lZ9,V6k,vs,q93,aZw,Y9i,ryv,jrs,ws9,x0v,cyg,IZW,Ay,L9w,$o,or,p0W,
HCs,Mmv,X0L,RwW,KHi,ZCi,mLs,FHi,vci,fdW,OC4,ATg,PW3,ewL,QF,WHi,Q7s,CW9,yTs,BpL,ULs,gcL,ad3,Ec4,YVi,w0W,xLL,hy,cTs,pW4,HU9,MQi,XWX,iUL,RWk,KrW,ZUk,nTi,bUt,msg,JZk,Fr4,vTg,fDi,OUX,AZg,Pfs,zW3,$sv,oTX,Cf3,WrX,Usi,yZX,BrX,tQ9,hWW,DsX,s2i,NrX,gTv,dsX,Ir,u4W,LA,JT,lDw,qGt,aDt,rZX,HVw,wWX,j2g,cZi,Lr3,xsX,ZV9,iVs,nvs,GVW,bVW,mzW,FTL,fJt,vv9,OVw,A4w,Pe4,zY9,ovL,WTX,Qdi,Cet,BYW,y4s,lJs,XS,VnW,aJi,Evv,YgX,r4s,jdw,xzk,c4t,IJt,mH,FS,LTW,XOW,OV,AT,ZQL,GGw,$V4,em,Wd9,Qyt,UVv,yl9,B1s,B0,syk,gas,hXi,DVW,kGX,N1W,T1g,
dVi,u9t,VBX,qvv,EaL,aLi,jyW,uW,qL,xV9,clX,ILW,Ldw,pBw,Jqg,HOk,XBi,M9W,SQ,Ms,v_3,ZD,$1v,o_X,nU,W$X,e2w,h2i,D1L,kxX,Tg9,V99,akk,E_t,Y3v,rqg,j6w,mr,x1t,AZ,Iks,L$s,pLX,SIg,cqw,wBw,JVi,fU,MDX,K49,iH9,Gg4,bH9,m8L,vQv,OHi,PSs,zp9,$8w,oQs,CU,epg,QJi,W4t,CSX,Bfs,UG,gQi,tZ,DD,hZ,kgW,sJX,ltW,rVi,x8X,wLt,L4g,dr,JwW,Syk,XJ9,iEv,qs,QZX,EG,rr,BdL,gXt,hHi,Dy9,kU9,jQ,Ndi,cW,TdX,uK9,lys,V5X,qyX,EXX,J4,YyW,rwv,H5,ie,xyv,cwg,Iyi,JSk,SLX,MTw,Xhi,bzL,mXW,ZzW,vdW,fnX,Oz9,Og,P5,zV,$X3,odg,en,ets,WNt,QCW,Cui,B0X,UXg,sCX,
gdL,ySX,tTi,yS,DXs,u7L,B5,dX4,lnL,ht9,VTv,sg,anW,Ed9,YLX,rSX,wht,jCX,xXv,LNv,cSs,J1g,RCt,Z1X,GXt,Fzk,m9w,b1W,vVs,fxX,A13,zCi,Pjt,oVs,le,WzW,QVX,Cjs,y1X,sVg,tqL,gVX,hCw,D9i,kXg,NGi,d9L,lxX,axX,YBW,EVW,bh,r1k,u_L,p9w,SJg,Hlv,MUW,Al,X9t,Rai,nO4,mqs,blg,Ol4,APs,P7i,za9,oOw,yPX,eat,Q5k,C74,BIX,Uq9,gOv,s5t,hai,tUX,g1,Dqv,NIX,TIX,VUi,uh,lh,qJs,aO3,Vn,rPX,r1,jB,w1,cPW,xa,pqL,LQ,Jkv,S4v,H$X,Mxi,S9,Xqs,i$i,R0W,Z$9,Gr3,FgW,fYX,b4,O$W,Ak4,PoX,z0W,$wX,oZX,e0v,Wgs,vB,ykk,Bl3,UwW,sRt,gZk,txX,h0g,Dwt,krg,NlX,Tl9,
dwL,uDw,Qp,IY9,Lgi,CO,yp,BB,pts,JcW,Sri,Hyt,MS4,Xtt,iyW,Ges,byg,mck,Fu4,vtv,tq,Dk,k_,N1,u4,l4,Vp,Oyg,a6,Pyv,Y_,zdt,$cw,rg,otL,edi,Wug,hd3,kew,lck,EtX,acv,Dc3,Yrk,wtW,Z39,Jni,FyX,H3v,b34,v39,LO,O34,JV,POL,zuw,o3W,eus,WyX,COX,M8,Bwv,UQW,sfs,g3t,th4,hui,DQ4,ynk,TwW,dQg,uMg,iS,YDg,rni,E3L,w6L,xQi,IVi,Ly9,cns,iIL,K5t,n2i,bIt,fH,PCs,OIX,Azi,W53,CC4,yzW,Bei,UnX,s4L,g2X,QH,lmt,qat,dni,TeW,Vri,hZk,E2t,SSX,j4g,wis,xnX,bbg,FMi,G7t,zGg,nzW,trv,Pn3,rzi,Jmw,mrX,amk,k$W,Dn4,Nes,ujw,ZbX,aJ,Drg,Nn9,TnW,dr4,uB9,wvX,
p$t,JHk,Jw,HGL,iGX,nmX,ZGg,bGv,m6i,vm9,OGw,fp9,AHi,PTw,zKW,$6X,eK4,om4,FK,U6v,BTL,yHk,hKk,sA3,D6w,tHX,kyt,NTL,lps,d6k,uJk,qlX,Yli,rH9,x6i,cHX,Ipv,LVX,JXi,HYw,zU,XYX,KKL,iYg,ZYv,mBW,FKv,OYX,P6i,QT,CE,elX,WKi,yT,BJ,QtW,Uy,sy,C6t,gd,yX4,tw,B_v,UBW,Dy,stw,g8t,ts4,hl9,DBW,N_X,ksW,dBX,Vsv,lPv,qXi,aP9,T_v,E8W,jtW,rXv,umL,wYg,xBX,uZ,cXv,LKt,IPs,puX,J7W,HTg,S0i,MNW,VT,iTw,R1g,XuX,ZTt,nIt,GJW,vIW,A7w,e1v,y79,qy,s$s,gIs,aZ,tNX,j5,wd,dkL,YX,IZ,uiX,lFX,q0W,aFW,Y0t,j$w,wuw,xkL,c7k,p_k,X_i,HuW,L24,iuW,Rkg,MX,MJW,
KsW,RC,ZuL,nCi,GFv,buX,fjX,mUi,vCi,zkt,$U4,C9w,Qhi,UUW,kFi,N4X,dUk,ljX,VJW,aj4,ECw,YwW,jh4,w_4,xUX,LsX,HXs,M_i,pjg,iXi,Kk9,R6w,Xjw,ZXX,G5X,bXL,mRk,FkX,vri,Ph,zd,eT,QB,Adt,P_9,$R9,WkL,yB,Bh,Q1i,UL,B7W,URg,s1k,g0,k5g,uhX,V_s,qjX,avg,Yjg,rdk,j19,cdw,hS,IvX,Je3,Dn,SnX,ini,kd,ZnW,NX,uu,lu,nfw,bns,Gi4,FEg,vfL,fo9,OnL,mvX,ofi,e_i,Qq4,ye9,gfg,sqt,tEw,Dv9,kii,Nxw,TxL,dvW,uv4,loX,aot,VEs,Yd,Yn4,r0,rei,w0,xd,jqg,wzk,xvt,ceW,IoW,ch,LEk,pdi,JJ3,Ssg,Mbt,Xds,iNw,RSv,Kbi,n0w,ZNt,IC,bNt,FbW,v03,fIL,ONt,zSs,o09,Sq,
Wb4,Cl3,yJi,B$w,U7i,sEg,g0X,tbg,hS3,$7W,eSX,D7W,kq4,uf4,lIW,VbX,qst,M2i,RE9,K6X,Ziw,iiw,vD3,AGX,fzv,Pr9,oDW,W6L,CrW,suv,UPg,DP3,bj,kTW,N9v,mz,T9i,F_,dPw,uUW,lzW,qEw,V2w,azv,EDX,YEX,rGs,pPX,S2W,MY4,Hkv,cG4,wl4,ikg,KZi,mEi,FZ3,Okt,ehW,QL9,A1,CBi,BS3,UEi,geX,kmX,dEs,VYw,q2v,aRi,Ee9,xEi,Y2i,pyL,JQ3,SMi,Mo4,oV,Xyt,Rc9,Ktw,ZoX,n9i,GQW,boX,m3i,v9s,f$k,y1,Oov,AQ9,zc4,UB,Paw,o9X,Cat,t1,yQ3,BLg,U3L,tog,hcW,sK9,kQi,uIX,l$t,Voi,dG,qM4,rQt,jK3,q9,cQX,wyX,x3W,pNL,Ja9,Sdk,i7v,Z7t,KAW,R3W,niL,b7W,mIW,Aas,FAi,Pp3,
$I4,z3L,yaX,sWW,t3v,DI3,aNg,eU,Ydi,xIg,INi,$O,hP,M7L,KOg,R9L,nEi,GZw,mlW,b5L,FOL,vEX,DO,VSX,XmL,Z5v,i5X,gI,A_k,PqX,z9X,YO,WO4,rI,Qli,CqX,y_k,BC3,Ulv,wI,sls,gEi,t7i,h9s,Dlt,Ll,kZX,dlg,lai,V7i,wmk,c_g,Ias,LOt,JWW,STk,K$,Mg4,XRi,iqL,RDX,KXg,Zqi,GkW,mZW,vw4,fgg,owX,zDg,eDW,CcX,yW4,vq,BbX,UZv,sQ4,hD3,kki,DZv,TbW,uFs,Pq,VgW,qTi,lgW,ags,EwW,rWi,wR4,jQW,xZX,YTt,cWX,Ig3,LXk,p34,JLi,SZi,HDX,Mpv,X3i,KUv,Rgt,ZD4,G_k,nNs,zr,bDv,vNL,P1w,mat,oNW,eg3,WUg,QOw,BFL,k_9,NFt,daL,uNW,DY,a0i,jO9,cLW,kZ,J0v,I0t,LUk,p7s,
S7X,Rr9,uo,KB4,Zei,G3v,bek,mFk,FBt,fXs,OeW,CPi,oY4,WBX,BVt,y0X,UFX,sxk,t$W,DFw,NV3,dFX,ucv,V$X,IX3,JMs,Haw,Mk4,XHi,iak,R$v,Zak,n4L,lUk,Vki,qtW,aU4,E4W,Ytk,rM3,jB9,cM3,JYW,IR,L$,py,S8W,HBi,Ht,Xwt,Fng,zPt,AYw,Nv3,Tvw,d_4,RP9,m_9,nBv,lhk,VdL,q8v,ahs,fhg,EBv,rYk,wwi,Ihi,LnW,mu,Kxt,nAw,bFX,mfi,f2X,AO4,OFv,$f9,eJX,sHX,BXL,QHX,Ufg,CFg,gAW,kKw,Ur,sr,EAv,VZ9,rOX,jH9,xfi,cOi,tc,I2g,Jo3,Sht,HML,MA4,bMk,GY3,Vi,AoL,ro,zVW,$HL,oWs,eVt,WQ3,QMt,CHX,yoL,BOk,UH4,sMs,wo,gWL,tAv,hVv,DHL,kYX,NOs,TOi,dHX,ct,uH4,l5t,VAi,
qhi,a5k,EWg,YhW,rok,jMX,wC9,xH4,cog,I5s,Ly,pF9,Soi,MfW,Rbw,nl3,GLL,bfw,F_t,fS3,OfL,AAi,ZV,ebk,$oL,W_v,Q33,Czg,UoW,s3L,glX,hbX,$3,kLv,P6,Tis,doW,of,u0L,lS9,Vf9,qos,W6,rAW,wFg,pDX,L_W,S6t,H09,tn,MwX,XDW,Rqs,Z0i,nSk,b0w,mCW,Kvw,Fvw,PNt,eq3,Wvk,hn,QeW,CNw,gSi,yvi,UCL,se3,TH3,hqX,dCv,lKk,q6w,aKt,ESX,Y6s,rvX,jew,xCw,cvX,IKs,Lv4,pIs,SP4,Mcv,RQt,GML,F1i,f1i,PEL,lO,zQi,$bg,oPX,eQX,W19,CE4,y2W,B6X,Ubi,sa9,gPw,tc9,hQw,DbX,kM4,N6i,dbi,T63,Vc3,a1t,af,EPv,ja3,r2w,c2t,I19,L1W,SYi,X8s,Myw,J$t,Kl9,Rsw,mpX,ZWi,ww,
GRv,zs3,f8v,OWL,A$W,Pdg,$pw,esX,ohW,x3,c6,sXi,QXi,Upg,BaW,CdX,y$X,hsi,kRi,Taw,NaW,dpX,qYi,Vyt,Eh4,jXv,xpi,r$w,c$L,Lls,I8X,JxW,MRL,Sr,XKs,iRg,ZRw,FFW,z5s,Mn,o6i,WFi,B3w,yxX,Qo4,Csv,Zm,tRW,UO9,soW,h5X,k99,DOW,dOX,ukX,VRX,qUw,aG3,E69,YUX,jo9,wKX,er,cx4,IGi,SF3,HcL,Bi,Met,ick,vgi,hz,ngX,Fwt,GBW,bci,Pxi,ApX,exw,zxi,Ww3,QUg,k2,ypW,BJL,UuX,Cx4,de,sUi,Nn,DuX,Vei,qFW,aMt,EgW,YFt,rpL,jUt,IMs,xuW,cpL,wQk,pUX,MWi,XUi,KLg,Z9i,GzX,FLt,b9s,mi3,v$X,O9X,AKk,PU9,zy3,$iw,o$t,WLk,CUs,yKv,sNg,Uii,tWi,g$i,hy9,Diw,NjL,
Tjv,rKk,E$4,xi4,cK4,HJg,M8i,XkW,iJv,RI4,Kf4,GhW,bJX,m$i,vHW,f7w,OJs,AUs,PDW,zIW,oHg,eIL,Wfi,Zu,BRW,yUW,CDk,Qjg,sji,hIw,gHL,khi,NR3,d$i,u5L,l7k,V8i,qkk,jjw,a7L,EHX,Yki,wkL,x$g,cUW,rUw,mM,pxW,SRL,J6k,vv,HrX,XxL,irt,RF4,Mvi,KjW,Zri,nL9,GOW,br4,FjX,vLi,fQX,Orw,zF9,Pgw,QgW,A6X,OS,CgL,$MW,Wjg,BAt,UMi,sgi,gLg,tv9,DMk,kOW,NAs,dML,uAL,VvL,aQi,wxg,r6i,jgX,YRi,ELX,xMt,yI,c6g,Bv,IQ3,Ljt,M1W,iZw,RO3,Khs,ZZk,nkk,GSi,Du,kz,fEi,mtw,bZi,FhW,yjX,QFi,vki,Whg,hOL,Dtv,kSX,NPs,TPt,lEW,qxX,EkL,rjX,jF4,wcv,LhL,IE4,pnw,SCt,
SH,Xnv,i2X,Rit,KWt,Z2i,nJ9,GpW,M6,XJ,FWg,vJv,O2L,ziv,CXX,gJ3,ski,tV4,Dxi,kpW,Nzk,Tzk,dxW,u3w,bT,lig,jkX,wns,EJ4,ai4,rBk,YCi,pb4,Jbw,SWX,Hj9,MCW,XbX,KRv,RBW,ijv,Oj9,vji,Abi,P33,zBL,eBL,Q0i,$AL,oji,hBi,klW,Tc9,uZW,VCs,aTs,j0w,wbi,xA9,LRs,ITL,cbg,pSi,Jig,SOs,Hp9,MXi,XSX,ipk,RLL,Kqk,ZpL,Gni,bp4,m2W,Fq4,vb9,feW,Aik,P2L,zLg,$29,obw,eLX,yiL,BuX,szi,tXt,gbt,hLg,W$,D2g,knk,Nuv,Tu3,VXs,lei,qOW,aeX,Ebs,YOw,wSt,x2i,cit,Iei,Lqv,poW,JEW,S5s,Hgg,MFw,XoW,RAi,igL,Kp9,Zg4,nn3,GDW,bgW,mNk,FpX,vn4,hH,Ogs,AEW,PJ4,zAs,
$NX,eAg,Wpw,QSw,CJ9,yEs,BQi,sSi,gng,hAW,Ty,NQ9,VFi,uQX,dNX,TQ4,lBk,Ens,Y5g,rEi,jSg,xNL,cEk,IBW,p1W,LpX,JtX,SA3,HsX,isg,RRk,K3t,Zsk,nq4,G1i,F3W,vqL,rT,zRs,$Ks,eRg,CQv,QnX,ytX,BZX,jH,xm,snv,gqg,LG,pY,k19,tMX,hRX,dKW,uLs,lCt,VMw,YA3,jnk,w1i,xK3,ctg,ICX,pXk,JCX,S_g,H4L,MGi,XXX,i4t,HY,R7t,KPi,Xm,Z4w,nKW,G8X,b4L,mmt,FPg,KY,ZP,vKW,fAL,nY,O4v,ACt,PYt,z7t,oKW,e7W,Qis,sik,Umw,B5i,gKL,tGL,u2g,k8W,N5v,T5X,Dmv,dmX,lAL,VGX,aAi,Y_k,b6,wX4,xms,cCi,IAX,LPg,J5W,Hmi,imk,nGi,KcX,mK,R8v,vGt,Oms,Fm,A5w,PMX,z8s,$et,oGi,
Wck,Qm4,y5L,BKv,smw,gGk,kPk,DeW,TKi,dew,uGW,l_g,qeW,a_X,EGv,Ye9,r5w,jmX,w4k,xek,c5g,LcL,pa4,Xai,iKt,Rzi,Kev,ot,GCs,bKg,mTv,Few,vRi,fW4,ADv,PLk,zz9,$TW,ezi,We3,Q9W,Q8,CLW,yDL,s9v,gRW,CY,y8,DTs,tjt,kCw,dTw,NNi,uyW,VjL,g_,qH3,aWk,ERi,j9v,xTk,tX,IW3,Let,pet,JIW,ScL,Hv3,MPi,XeX,ZvX,n5X,FSs,Gat,mJW,v5W,f99,OvX,zvs,$J9,o5i,WSv,QcW,g5X,scX,TD3,l9W,l6,VPt,qgi,V8,qct,a9k,Yc3,wet,xJW,Hxk,M4i,XTs,ixk,ReX,KD3,nMi,G4i,mhi,vMi,bxi,FDW,OxW,fwX,PKs,oMX,zew,eev,WDv,Qpt,CKt,ygi,B8W,spt,UhX,Dhw,T8X,k4s,dhg,uRk,lwg,cY,
V4W,qmX,LY,EM4,awi,Ymv,jp9,rgt,Iww,LDg,JfW,Sb3,Mz9,XA4,ihv,Roi,nxW,bh3,vxw,F04,fft,Ohk,Afi,$ds,gxL,QPi,hoW,Ddi,Nqv,Tqg,Vzi,qbv,afL,Ex9,Ybs,rfw,xdX,cfv,Ift,L09,S$X,MOW,XM9,H8k,Rn9,i8t,b8W,mYi,Fmi,vu4,f6X,O84,AR4,znL,en9,Wmi,Q_3,CmW,yR3,BtW,guv,s_s,DYk,Nt4,Tt9,dY4,uxv,l6v,q$s,VOk,EuL,xYW,prt,Lm4,Jhk,S14,HwW,Xrv,eN,Rfv,yb,ZwW,GEs,bwv,Owk,Pti,ef9,QTX,CtX,BEW,USX,sTW,tl3,DSW,kE9,TEs,lHX,uuW,dSL,t7,q1t,Vlt,aHt,E7v,Y1t,rh4,jTi,wri,xSt,IH9,LJ4,pV4,JNw,SQ4,H6L,Muv,XV3,i6X,RNW,Z6X,n1g,Gwt,Pkv,zNW,$5k,eNL,Wai,
Qbi,BhX,Vb,D5t,kwi,Th9,d5i,uw4,lbi,VuW,a$,x5k,HW,E0,rs,cNW,IbL,J9o,HLp,Sin,ws,Mtq,Xgn,iL8,R44;pgv=function(){var p,J;return typeof CSS!=="undefined"&&((J=(p=CSS).supports)==null?void 0:J.call(p,"selector(:has(*))"))};
J9W=function(p){return p.visibility!=="hidden"&&p.display!=="none"};
HLi=function(p){if(pgv()||p.tagName!=="DETAILS"?!p.matches(SiX):p.querySelector("summary")!==null)return-1;p=p.getAttribute("tabindex")||"0";return Number(p)};
Mt3=function(p){return p.some(function(J){return HLi(J)>0})};
XgX=function(p){if(p.textContent||p.ariaLabel)return!0;if(p instanceof HTMLInputElement){if(!p.labels)return!1;p=_.K(p.labels);for(var J=p.next();!J.done;J=p.next())if(J.value.textContent)return!0}return!1};
iLw=function(p){return p.sort(function(J,S){return HLi(S)-HLi(J)})};
_.R4W=function(p){p=Array.from(p.querySelectorAll(SiX)).filter(function(J){return(J9W(J.style)?J9W(window.getComputedStyle(J)):!1)&&XgX(J)});
return Mt3(p)?iLw(p):p};
_.pL=function(p,J){if(Error.captureStackTrace)Error.captureStackTrace(this,_.pL);else{var S=Error().stack;S&&(this.stack=S)}p&&(this.message=String(p));J!==void 0&&(this.cause=J)};
J9=function(){throw Error("E");};
KiX=function(p,J){J=String.fromCharCode.apply(null,J);return p==null?J:p+J};
bLi=function(p){var J=!1;J=J===void 0?!1:J;if(ZLk){if(J&&(nsW?!p.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(p)))throw Error("F");p=(GWW||(GWW=new TextEncoder)).encode(p)}else{for(var S=0,H=new Uint8Array(3*p.length),M=0;M<p.length;M++){var X=p.charCodeAt(M);if(X<128)H[S++]=X;else{if(X<2048)H[S++]=X>>6|192;else{if(X>=55296&&X<=57343){if(X<=56319&&M<p.length){var Z=p.charCodeAt(++M);if(Z>=56320&&Z<=57343){X=(X-55296)*1024+Z-56320+65536;H[S++]=X>>18|
240;H[S++]=X>>12&63|128;H[S++]=X>>6&63|128;H[S++]=X&63|128;continue}else M--}if(J)throw Error("F");X=65533}H[S++]=X>>12|224;H[S++]=X>>6&63|128}H[S++]=X&63|128}}p=S===H.length?H:H.subarray(0,S)}return p};
MW=function(p){_.Hg.setTimeout(function(){throw p;},0)};
_.XX=function(p,J){return p.lastIndexOf(J,0)==0};
iw=function(p,J){var S=p.length-J.length;return S>=0&&p.indexOf(J,S)==S};
_.Rv=function(p){return/^[\s\xa0]*$/.test(p)};
_.nL=function(p,J){return p.indexOf(J)!=-1};
_.bw=function(p,J){return _.nL(p.toLowerCase(),J.toLowerCase())};
_.FX=function(p,J){var S=0;p=mi(String(p)).split(".");J=mi(String(J)).split(".");for(var H=Math.max(p.length,J.length),M=0;S==0&&M<H;M++){var X=p[M]||"",Z=J[M]||"";do{X=/(\d*)(\D*)(.*)/.exec(X)||["","","",""];Z=/(\d*)(\D*)(.*)/.exec(Z)||["","","",""];if(X[0].length==0&&Z[0].length==0)break;S=mWX(X[1].length==0?0:parseInt(X[1],10),Z[1].length==0?0:parseInt(Z[1],10))||mWX(X[2].length==0,Z[2].length==0)||mWX(X[2],Z[2]);X=X[3];Z=Z[3]}while(S==0)}return S};
mWX=function(p,J){return p<J?-1:p>J?1:0};
_.fL=function(){var p=_.Hg.navigator;return p&&(p=p.userAgent)?p:""};
FiX=function(p){if(!A9||!zW)return!1;for(var J=0;J<zW.brands.length;J++){var S=zW.brands[J].brand;if(S&&_.nL(S,p))return!0}return!1};
$s=function(p){return _.nL(_.fL(),p)};
et=function(){return A9?!!zW&&zW.brands.length>0:!1};
vsX=function(){return et()?!1:$s("Opera")};
f3i=function(){return et()?!1:$s("Trident")||$s("MSIE")};
OLL=function(){return et()?FiX("Microsoft Edge"):$s("Edg/")};
Wg=function(){return $s("Firefox")||$s("FxiOS")};
_.A9i=function(){return $s("Safari")&&!(_.CL()||(et()?0:$s("Coast"))||vsX()||(et()?0:$s("Edge"))||OLL()||(et()?FiX("Opera"):$s("OPR"))||Wg()||$s("Silk")||$s("Android"))};
_.CL=function(){return et()?FiX("Chromium"):($s("Chrome")||$s("CriOS"))&&!(et()?0:$s("Edge"))||$s("Silk")};
_.Pww=function(){return $s("Android")&&!(_.CL()||Wg()||vsX()||$s("Silk"))};
z4i=function(p){var J={};p.forEach(function(S){J[S[0]]=S[1]});
return function(S){return J[S.find(function(H){return H in J})]||""}};
$W3=function(p){var J=_.fL();if(p==="Internet Explorer"){if(f3i())if((p=/rv: *([\d\.]*)/.exec(J))&&p[1])J=p[1];else{p="";var S=/MSIE +([\d\.]+)/.exec(J);if(S&&S[1])if(J=/Trident\/(\d.\d)/.exec(J),S[1]=="7.0")if(J&&J[1])switch(J[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=S[1];J=p}else J="";return J}var H=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");S=[];for(var M;M=H.exec(J);)S.push([M[1],M[2],M[3]||void 0]);
J=z4i(S);switch(p){case "Opera":if(vsX())return J(["Version","Opera"]);if(et()?FiX("Opera"):$s("OPR"))return J(["OPR"]);break;case "Microsoft Edge":if(et()?0:$s("Edge"))return J(["Edge"]);if(OLL())return J(["Edg"]);break;case "Chromium":if(_.CL())return J(["Chrome","CriOS","HeadlessChrome"])}return p==="Firefox"&&Wg()||p==="Safari"&&_.A9i()||p==="Android Browser"&&_.Pww()||p==="Silk"&&$s("Silk")?(J=S[2])&&J[1]||"":""};
_.os9=function(p){if(et()&&p!=="Silk"){var J=zW.brands.find(function(S){return S.brand===p});
if(!J||!J.version)return NaN;J=J.version.split(".")}else{J=$W3(p);if(J==="")return NaN;J=J.split(".")}return J.length===0?NaN:Number(J[0])};
Ui=function(){return A9?!!zW&&!!zW.platform:!1};
_.e4i=function(){return Ui()?zW.platform==="Android":$s("Android")};
Wig=function(){return $s("iPhone")&&!$s("iPod")&&!$s("iPad")};
_.si=function(){return Wig()||$s("iPad")||$s("iPod")};
_.Qv9=function(){return Ui()?zW.platform==="macOS":$s("Macintosh")};
_.Cwt=function(){return Ui()?zW.platform==="Windows":$s("Windows")};
_.y9L=function(){return Ui()?zW.platform==="Chrome OS":$s("CrOS")};
_.gk=function(p){return p[p.length-1]};
_.t9=function(p,J,S){J=_.Bki(p,J,S);return J<0?null:typeof p==="string"?p.charAt(J):p[J]};
_.Bki=function(p,J,S){for(var H=p.length,M=typeof p==="string"?p.split(""):p,X=0;X<H;X++)if(X in M&&J.call(S,M[X],X,p))return X;return-1};
UWX=function(p){for(var J=_.D3,S=typeof p==="string"?p.split(""):p,H=p.length-1;H>=0;H--)if(H in S&&J.call(void 0,S[H],H,p))return H;return-1};
_.dk=function(p,J){return _.ks(p,J)>=0};
_.svs=function(p,J){_.dk(p,J)||p.push(J)};
_.uw=function(p,J){J=_.ks(p,J);var S;(S=J>=0)&&_.gsi(p,J);return S};
_.gsi=function(p,J){Array.prototype.splice.call(p,J,1)};
_.VX=function(p){var J=p.length;if(J>0){for(var S=Array(J),H=0;H<J;H++)S[H]=p[H];return S}return[]};
_.av=function(p,J){for(var S=1;S<arguments.length;S++){var H=arguments[S];if(_.qW(H)){var M=p.length||0,X=H.length||0;p.length=M+X;for(var Z=0;Z<X;Z++)p[M+Z]=H[Z]}else p.push(H)}};
_.h4X=function(p,J,S,H){Array.prototype.splice.apply(p,tti(arguments,1))};
tti=function(p,J,S){return arguments.length<=2?Array.prototype.slice.call(p,J):Array.prototype.slice.call(p,J,S)};
DWW=function(p,J){J=J||p;for(var S=0,H=0,M={};H<p.length;){var X=p[H++],Z=_.Ei(X)?"o"+_.jt(X):(typeof X).charAt(0)+X;Object.prototype.hasOwnProperty.call(M,Z)||(M[Z]=!0,J[S++]=X)}J.length=S};
_.Nki=function(p,J,S){S=S||_.kW3;for(var H=0,M=p.length,X;H<M;){var Z=H+(M-H>>>1);var n=S(J,p[Z]);n>0?H=Z+1:(M=Z,X=!n)}return X?H:-H-1};
_.xs=function(p,J,S){if(!_.qW(p)||!_.qW(J)||p.length!=J.length)return!1;var H=p.length;S=S||Tki;for(var M=0;M<H;M++)if(!S(p[M],J[M]))return!1;return!0};
_.kW3=function(p,J){return p>J?1:p<J?-1:0};
Tki=function(p,J){return p===J};
dW4=function(p,J,S){J=Array.prototype.splice.call(p,J,1);Array.prototype.splice.call(p,S,0,J[0])};
l3s=function(p){return uXW[p]||""};
a3i=function(p){if(!VtW)return _.cg(p);p=qiw.test(p)?p.replace(qiw,l3s):p;p=atob(p);for(var J=new Uint8Array(p.length),S=0;S<p.length;S++)J[S]=p.charCodeAt(S);return J};
Esg=function(p,J){p.__closure__error__context__984382||(p.__closure__error__context__984382={});p.__closure__error__context__984382.severity=J};
_.Iv=function(p){p=Error(p);Esg(p,"warning");return p};
r9i=function(p,J){if(p!=null){var S;var H=(S=YiX)!=null?S:YiX={};S=H[p]||0;S>=J||(H[p]=S+1,p=Error(),Esg(p,"incident"),MW(p))}};
pd=function(p,J,S){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(S===void 0?0:S)&&Symbol.for&&p?Symbol.for(p):p!=null?Symbol(p):Symbol():J};
i8=function(p,J){J8||_.Xn in p||jv4(p,wg4);p[_.Xn]|=J};
Kd=function(p,J){J8||_.Xn in p||jv4(p,wg4);p[_.Xn]=J};
xWW=function(p){if(4&p)return 512&p?512:1024&p?1024:0};
nd=function(p){i8(p,34);return p};
b8=function(p){i8(p,8192);return p};
c94=function(p){i8(p,32);return p};
m8=function(){return typeof BigInt==="function"};
WE=function(p,J){return J===void 0?p.copyOnWrite!==A8&&!!(2&(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Xn]|0)):!!(2&J)&&p.copyOnWrite!==A8};
_.gm=function(p,J){if(p!=null)if(typeof p==="string")p=p?new yv(p,BE):_.sp();else if(p.constructor!==yv)if(I3k&&p!=null&&p instanceof Uint8Array)p=p.length?new yv(new Uint8Array(p),BE):_.sp();else{if(!J)throw Error();p=void 0}return p};
Lit=function(p,J){if(typeof J!=="number"||J<0||J>=p.length)throw Error();};
pEv=function(p,J,S){var H=J&128?0:-1,M=p.length,X;if(X=!!M)X=p[M-1],X=X!=null&&typeof X==="object"&&X.constructor===Object;var Z=M+(X?-1:0);for(J=J&128?1:0;J<Z;J++)S(J-H,p[J]);if(X){p=p[M-1];for(var n in p)!isNaN(n)&&S(+n,p[n])}};
Dq=function(p){return p&128?h8:void 0};
kU=function(p){p.isGuard_doNotManuallySetPrettyPlease=!0;return p};
SpX=function(){var p=J8X;return kU(function(J){for(var S in p)if(J===p[S]&&!/^[0-9]+$/.test(S))return!0;return!1})};
_.N4=function(p){var J=p;if(Hdw(J)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(J))throw Error(String(J));}else if(MLW(J)&&!Number.isSafeInteger(J))throw Error(String(J));return XEW?BigInt(p):p=idL(p)?p?"1":"0":Hdw(p)?p.trim()||"0":String(p)};
RMW=function(p,J){if(p.length>J.length)return!1;if(p.length<J.length||p===J)return!0;for(var S=0;S<p.length;S++){var H=p[S],M=J[S];if(H>M)return!1;if(H<M)return!0}};
K8i=function(p){var J=p>>>0;To=J;dm=(p-J)/4294967296>>>0};
u8=function(p){if(p<0){K8i(-p);var J=_.K(Zdk(To,dm));p=J.next().value;J=J.next().value;To=p>>>0;dm=J>>>0}else K8i(p)};
Go4=function(p){var J=nUi||(nUi=new DataView(new ArrayBuffer(8)));J.setFloat32(0,+p,!0);dm=0;To=J.getUint32(0,!0)};
bdX=function(p,J){var S=J*4294967296+(p>>>0);return Number.isSafeInteger(S)?S:_.l8(p,J)};
q4=function(p,J){var S=J&2147483648;S&&(p=~p+1>>>0,J=~J>>>0,p==0&&(J=J+1>>>0));p=bdX(p,J);return typeof p==="number"?S?-p:p:S?"-"+p:p};
m4g=function(p){var J=To,S=dm,H=S>>31;S=(S<<1|J>>>31)^H;p(J<<1^H,S)};
F8t=function(p,J){var S=-(p&1);p=(p>>>1|J<<31)^S;return q4(p,J>>>1^S)};
_.l8=function(p,J){J>>>=0;p>>>=0;if(J<=2097151)var S=""+(4294967296*J+p);else m8()?S=""+(BigInt(J)<<BigInt(32)|BigInt(p)):(S=(p>>>24|J<<8)&16777215,J=J>>16&65535,p=(p&16777215)+S*6777216+J*6710656,S+=J*8147497,J*=2,p>=1E7&&(S+=p/1E7>>>0,p%=1E7),S>=1E7&&(J+=S/1E7>>>0,S%=1E7),S=J+vU3(S)+vU3(p));return S};
vU3=function(p){p=String(p);return"0000000".slice(p.length)+p};
_.fqi=function(p,J){J&2147483648?m8()?p=""+(BigInt(J|0)<<BigInt(32)|BigInt(p>>>0)):(J=_.K(Zdk(p,J)),p=J.next().value,J=J.next().value,p="-"+_.l8(p,J)):p=_.l8(p,J);return p};
a8=function(p){if(p.length<16)u8(Number(p));else if(m8())p=BigInt(p),To=Number(p&BigInt(4294967295))>>>0,dm=Number(p>>BigInt(32)&BigInt(4294967295));else{var J=+(p[0]==="-");dm=To=0;for(var S=p.length,H=J,M=(S-J)%6+J;M<=S;H=M,M+=6)H=Number(p.slice(H,M)),dm*=1E6,To=To*1E6+H,To>=4294967296&&(dm+=Math.trunc(To/4294967296),dm>>>=0,To>>>=0);J&&(J=_.K(Zdk(To,dm)),p=J.next().value,J=J.next().value,To=p,dm=J)}};
Zdk=function(p,J){J=~J;p?p=~p+1:J+=1;return[p,J]};
Ep=function(p){return Array.prototype.slice.call(p)};
_.rm=function(p,J){throw Error(J===void 0?"unexpected value "+p+"!":J);};
_.jL=function(p){if(p!=null&&typeof p!=="number")throw Error("L`"+typeof p+"`"+p);return p};
_.cE=function(p){if(p==null||typeof p==="number")return p;if(p==="NaN"||p==="Infinity"||p==="-Infinity")return Number(p)};
Od3=function(p){if(p!=null&&typeof p!=="boolean")throw Error("M`"+_.I8(p)+"`"+p);return p};
_.A8t=function(p){if(p==null||typeof p==="boolean")return p;if(typeof p==="number")return!!p};
_.Jr=function(p){switch(typeof p){case "bigint":return!0;case "number":return pP(p);case "string":return P8i.test(p);default:return!1}};
_.Hp=function(p){if(!pP(p))throw _.Iv("enum");return p|0};
_.i$=function(p){return p==null?p:pP(p)?p|0:void 0};
zMs=function(p){if(typeof p!=="number")throw _.Iv("int32");if(!pP(p))throw _.Iv("int32");return p|0};
_.Rw=function(p){return p==null?p:zMs(p)};
_.KP=function(p){if(p==null)return p;if(typeof p==="string"&&p)p=+p;else if(typeof p!=="number")return;return pP(p)?p|0:void 0};
_.$4W=function(p){if(p==null)return p;if(typeof p==="string"&&p)p=+p;else if(typeof p!=="number")return;return pP(p)?p>>>0:void 0};
Q8w=function(p){var J=0;J=J===void 0?0:J;if(!_.Jr(p))throw _.Iv("int64");var S=typeof p;switch(J){case 512:switch(S){case "string":return Zl(p);case "bigint":return String(nP(64,p));default:return oUX(p)}case 1024:switch(S){case "string":return eMk(p);case "bigint":return _.N4(nP(64,p));default:return W8k(p)}case 0:switch(S){case "string":return Zl(p);case "bigint":return _.N4(nP(64,p));default:return Gf(p)}default:return _.rm(J,"Unknown format requested type for int64")}};
b$=function(p){return p==null?p:Q8w(p)};
C8W=function(p){var J=p.length;if(p[0]==="-"?J<20||J===20&&p<="-9223372036854775808":J<19||J===19&&p<="9223372036854775807")return p;a8(p);return _.fqi(To,dm)};
y8i=function(p){if(p[0]==="-")var J=!1;else J=p.length,J=J<20?!0:J===20&&p<="18446744073709551615";if(J)return p;a8(p);return _.l8(To,dm)};
Gf=function(p){p=mI(p);FP(p)||(u8(p),p=q4(To,dm));return p};
_.BmX=function(p){p=mI(p);p>=0&&FP(p)||(u8(p),p=bdX(To,dm));return p};
oUX=function(p){p=mI(p);FP(p)?p=String(p):(u8(p),p=_.fqi(To,dm));return p};
_.U4w=function(p){p=mI(p);p>=0&&FP(p)?p=String(p):(u8(p),p=_.l8(To,dm));return p};
Zl=function(p){var J=mI(Number(p));if(FP(J))return String(J);J=p.indexOf(".");J!==-1&&(p=p.substring(0,J));return C8W(p)};
eMk=function(p){var J=mI(Number(p));if(FP(J))return _.N4(J);J=p.indexOf(".");J!==-1&&(p=p.substring(0,J));return m8()?_.N4(nP(64,BigInt(p))):_.N4(C8W(p))};
W8k=function(p){return FP(p)?_.N4(Gf(p)):_.N4(oUX(p))};
_.s8k=function(p){return FP(p)?_.N4(_.BmX(p)):_.N4(_.U4w(p))};
_.gUk=function(p){var J=mI(Number(p));if(FP(J)&&J>=0)return String(J);J=p.indexOf(".");J!==-1&&(p=p.substring(0,J));return y8i(p)};
_.tLw=function(p){var J=mI(Number(p));if(FP(J)&&J>=0)return _.N4(J);J=p.indexOf(".");J!==-1&&(p=p.substring(0,J));return m8()?_.N4((0,_.vp)(64,BigInt(p))):_.N4(y8i(p))};
_.D49=function(p){if(p==null)return p;if(typeof p==="bigint")return hMW(p)?p=Number(p):(p=nP(64,p),p=hMW(p)?Number(p):String(p)),p;if(_.Jr(p))return typeof p==="number"?Gf(p):Zl(p)};
kok=function(p,J){J=J===void 0?!1:J;var S=typeof p;if(p==null)return p;if(S==="bigint")return String(nP(64,p));if(_.Jr(p))return S==="string"?Zl(p):J?oUX(p):Gf(p)};
_.NmL=function(p){var J=typeof p;if(p==null)return p;if(J==="bigint")return _.N4(nP(64,p));if(_.Jr(p))return J==="string"?eMk(p):W8k(p)};
Tmk=function(p){if(p==null)return p;var J=typeof p;if(J==="bigint")return String(nP(64,p));if(_.Jr(p)){if(J==="string")return Zl(p);if(J==="number")return Gf(p)}};
d4X=function(p){if(p==null)return p;var J=typeof p;if(J==="bigint")return String((0,_.vp)(64,p));if(_.Jr(p)){if(J==="string")return _.gUk(p);if(J==="number")return _.BmX(p)}};
_.fP=function(p){if(typeof p!=="string")throw Error();return p};
Pp=function(p){if(p!=null&&typeof p!=="string")throw Error();return p};
_.$y=function(p){return p==null||typeof p==="string"?p:void 0};
VL4=function(p,J,S,H){if(p!=null&&p[eI]===Qe)return p;if(!Array.isArray(p))return S?H&2?J[unt]||(J[unt]=lqL(J)):new J:void 0;S=p[_.Xn]|0;H=S|H&32|H&2;H!==S&&Kd(p,H);return new J(p)};
lqL=function(p){p=new p;nd(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return p};
qpv=function(p,J,S){p=J?zMs(p):_.KP(p);return p==null?S?0:void 0:p|0};
aqs=function(p){return p};
EUi=function(p){return p};
r8L=function(p,J,S,H,M,X){p=VL4(p,H,S,X);M&&(p=Ypi(p));return p};
j8s=function(p){return[p,this.get(p)]};
c8i=function(){return wE4||(wE4=new ye(nd([]),void 0,void 0,void 0,x4X))};
IqX=function(p){var J=Bp(UN);return J?p[J]:void 0};
Jri=function(p,J){var S=S===void 0?!1:S;if(Bp(L8s)&&Bp(UN)&&void 0===L8s){var H=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=H[UN];if(!M)return;if(M=M.reviveUnknownFields)try{M(H,J,ppi);return}catch(X){MW(X)}}S&&(p=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(S=Bp(UN))&&S in p&&(p=p[S])&&delete p[J])};
HPW=function(p,J){var S=Bp(UN),H;J8&&S&&((H=p[S])==null?void 0:H[J])!=null&&r9i(SNw,3)};
XpX=function(p,J){J<100||r9i(MIw,1)};
nyi=function(p,J,S,H){var M=H!==void 0;H=!!H;var X=Bp(UN),Z;!M&&J8&&X&&(Z=p[X])&&iPi(Z,XpX);X=[];var n=p.length;Z=4294967295;var b=!1,F=!!(J&64),f=F?J&128?0:-1:void 0;if(!(J&1)){var O=n&&p[n-1];O!=null&&typeof O==="object"&&O.constructor===Object?(n--,Z=n):O=void 0;if(F&&!(J&128)&&!M){b=!0;var A;Z=((A=RU9)!=null?A:aqs)(Z-f,f,p,O,void 0)+f}}J=void 0;for(A=0;A<n;A++){var P=p[A];if(P!=null&&(P=S(P,H))!=null)if(F&&A>=Z){var W=A-f,y=void 0;((y=J)!=null?y:J={})[W]=P}else X[A]=P}if(O)for(var t in O)n=O[t],
n!=null&&(n=S(n,H))!=null&&(A=+t,P=void 0,F&&!Number.isNaN(A)&&(P=A+f)<Z?X[P]=n:(A=void 0,((A=J)!=null?A:J={})[t]=n));J&&(b?X.push(J):X[Z]=J);M&&Bp(UN)&&(p=IqX(p))&&p instanceof KI3&&(X[UN]=ZPX(p));return X};
bPi=function(p){p[0]=Gft(p[0]);p[1]=Gft(p[1]);return p};
Gft=function(p){switch(typeof p){case "number":return Number.isFinite(p)?p:""+p;case "bigint":return hMW(p)?Number(p):""+p;case "boolean":return p?1:0;case "object":if(Array.isArray(p)){var J=p[_.Xn]|0;return p.length===0&&J&1?void 0:nyi(p,J,Gft)}if(p!=null&&p[eI]===Qe)return mjL(p);if(p instanceof yv){J=p.JSC$8975_value_;if(J==null)p="";else if(typeof J==="string")p=J;else{if(VtW){for(var S="",H=0,M=J.length-10240;H<M;)S+=String.fromCharCode.apply(null,J.subarray(H,H+=10240));S+=String.fromCharCode.apply(null,
H?J.subarray(H):J);J=btoa(S)}else J=_.gM(J);p=p.JSC$8975_value_=J}return p}if(p instanceof ye)return p=p.size!==0?FI3(p,bPi):void 0,p;return}return p};
hr=function(p,J){if(J){RU9=J==null||J===aqs||J[vy4]!==flX?aqs:J;try{return mjL(p)}finally{RU9=void 0}}return mjL(p)};
mjL=function(p){p=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return nyi(p,p[_.Xn]|0,Gft)};
P$v=function(p){switch(typeof p){case "boolean":return OPs||(OPs=[0,void 0,!0]);case "number":return p>0?void 0:p===0?ArW||(ArW=[0,void 0]):[-p,void 0];case "string":return[0,p];case "object":return p}};
ky=function(p,J){return zUX(p,J[0],J[1])};
_.Nj=function(p,J,S){return zUX(p,J,S,2048)};
zUX=function(p,J,S,H){H=H===void 0?0:H;if(p==null){var M=32;S?(p=[S],M|=128):p=[];J&&(M=M&-16760833|(J&1023)<<14)}else{if(!Array.isArray(p))throw Error("O");M=p[_.Xn]|0;if($jg&&1&M)throw Error("P");2048&M&&!(2&M)&&oyX();if(M&256)throw Error("Q");if(M&64)return(M|H)!==M&&Kd(p,M|H),p;if(S&&(M|=128,S!==p[0]))throw Error("R");a:{S=p;M|=64;var X=S.length;if(X){var Z=X-1,n=S[Z];if(n!=null&&typeof n==="object"&&n.constructor===Object){J=M&128?0:-1;Z-=J;if(Z>=1024)throw Error("T");for(var b in n)X=+b,X<Z&&
(S[X+J]=n[b],delete n[b]);M=M&-16760833|(Z&1023)<<14;break a}}if(J){b=Math.max(J,X-(M&128?0:-1));if(b>1024)throw Error("U");M=M&-16760833|(b&1023)<<14}}}Kd(p,M|64|H);return p};
oyX=function(){if($jg)throw Error("S");r9i(eUt,5)};
C$i=function(p,J){if(typeof p!=="object")return p;if(Array.isArray(p)){var S=p[_.Xn]|0;return p.length===0&&S&1?void 0:WI4(p,S,J)}if(p!=null&&p[eI]===Qe)return QwW(p);if(p instanceof ye){J=p.arrayState;if(J&2)return p;if(!p.size)return;S=nd(FI3(p));if(p.valueCtor)for(p=0;p<S.length;p++){var H=S[p],M=H[1];M==null||typeof M!=="object"?M=void 0:M!=null&&M[eI]===Qe?M=QwW(M):Array.isArray(M)?M=WI4(M,M[_.Xn]|0,!!(J&32)):M=void 0;H[1]=M}return S}if(p instanceof yv)return p};
WI4=function(p,J,S){if(J&2)return p;!S||4096&J||16&J?p=dM(p,J,!1,S&&!(J&16)):(i8(p,34),J&4&&Object.freeze(p));return p};
yrX=function(p,J,S){p=new p.constructor(J);S&&(p.copyOnWrite=A8);p.noLegacyNull=A8;return p};
QwW=function(p){var J=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=J[_.Xn]|0;return WE(p,S)?p:BMg(p,J,S)?yrX(p,J):dM(J,S)};
dM=function(p,J,S,H){H!=null||(H=!!(34&J));p=nyi(p,J,C$i,H);H=32;S&&(H|=2);J=J&16769217|H;Kd(p,J);return p};
Ypi=function(p){var J=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=J[_.Xn]|0;return WE(p,S)?BMg(p,J,S)?yrX(p,J,!0):new p.constructor(dM(J,S,!1)):p};
u$=function(p){if(p.copyOnWrite!==A8)return!1;var J=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;J=dM(J,J[_.Xn]|0);i8(J,2048);p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=J;p.copyOnWrite=void 0;p.noLegacyNull=void 0;return!0};
l$=function(p){if(!u$(p)&&WE(p,p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Xn]|0))throw Error();};
qj=function(p,J){J===void 0&&(J=p[_.Xn]|0);J&32&&!(J&4096)&&Kd(p,J|4096)};
BMg=function(p,J,S){return S&2?!0:S&32&&!(S&4096)?(Kd(J,S|2),p.copyOnWrite=A8,!0):!1};
aw=function(p,J,S,H,M){var X=S+(M?0:-1),Z=p.length-1;if(Z>=1+(M?0:-1)&&X>=Z){var n=p[Z];if(n!=null&&typeof n==="object"&&n.constructor===Object)return n[S]=H,J}if(X<=Z)return p[X]=H,J;if(H!==void 0){var b;Z=((b=J)!=null?b:J=p[_.Xn]|0)>>14&1023||536870912;S>=Z?H!=null&&(X={},p[Z+(M?0:-1)]=(X[S]=H,X)):p[X]=H}return J};
_.wM=function(p,J,S,H,M){var X=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=X[_.Xn]|0;H=WE(p,Z)?1:H;M=!!M||H===3;H===2&&u$(p)&&(X=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=X[_.Xn]|0);p=Uji(X,J);var n=p===Yy?7:p[_.Xn]|0,b=swW(n,Z);var F=4&b?!1:!0;if(F){4&b&&(p=Ep(p),n=0,b=jI(b,Z),Z=aw(X,Z,J,p));for(var f=0,O=0;f<p.length;f++){var A=S(p[f]);A!=null&&(p[O++]=A)}O<f&&(p.length=O);S=(b|4)&-513;b=S&=-1025;b&=-4097}b!==n&&(Kd(p,b),2&b&&Object.freeze(p));return p=gy3(p,b,X,
Z,J,H,F,M)};
gy3=function(p,J,S,H,M,X,Z,n){var b=J;X===1||(X!==4?0:2&J||!(16&J)&&32&H)?xy(J)||(J|=!p.length||Z&&!(4096&J)||32&H&&!(4096&J||16&J)?2:256,J!==b&&Kd(p,J),Object.freeze(p)):(X===2&&xy(J)&&(p=Ep(p),b=0,J=jI(J,H),H=aw(S,H,M,p)),xy(J)||(n||(J|=16),J!==b&&Kd(p,J)));2&J||!(4096&J||16&J)||qj(S,H);return p};
Uji=function(p,J,S){p=cp(p,J,S);return Array.isArray(p)?p:Yy};
swW=function(p,J){2&J&&(p|=2);return p|1};
xy=function(p){return!!(2&p)&&!!(4&p)||!!(256&p)};
tIL=function(p){return _.gm(p,!0)};
hUW=function(p){p=Ep(p);for(var J=0;J<p.length;J++){var S=p[J]=Ep(p[J]);Array.isArray(S[1])&&(S[1]=nd(S[1]))}return b8(p)};
_.Djs=function(p,J,S,H,M){var X=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=X[_.Xn]|0;var n=WE(p,Z);a:{!n&&u$(p)&&(X=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=X[_.Xn]|0);var b=cp(X,J);p=!1;if(b==null){if(n){J=c8i();break a}b=[]}else if(b.constructor===ye)if(b.arrayState&2&&!n)b=FI3(b);else{J=b;break a}else Array.isArray(b)?p=!!((b[_.Xn]|0)&2):b=[];if(n){if(!b.length){J=c8i();break a}p||(p=!0,nd(b))}else p&&(p=!1,b8(b),b=hUW(b));!p&&Z&32&&c94(b);H=new ye(b,S,H,M);Z=
aw(X,Z,J,H);p||qj(X,Z);J=H}!n&&S&&(J.callToMutableOnAccess=!0);return J};
_.Iw=function(p,J,S,H){l$(p);var M=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=M[_.Xn]|0;if(S==null)return aw(M,X,J),p;var Z=S===Yy?7:S[_.Xn]|0,n=Z,b=xy(Z),F=b||Object.isFrozen(S);b||(Z=0);F||(S=Ep(S),n=0,Z=jI(Z,X),F=!1);Z|=5;var f;b=(f=xWW(Z))!=null?f:0;for(f=0;f<S.length;f++){var O=S[f],A=H(O,b);Object.is(O,A)||(F&&(S=Ep(S),n=0,Z=jI(Z,X),F=!1),S[f]=A)}Z!==n&&(F&&(S=Ep(S),Z=jI(Z,X)),Kd(S,Z));aw(M,X,J,S);return p};
_.LP=function(p,J,S,H,M){l$(p);var X=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;aw(X,X[_.Xn]|0,J,(H==="0"?Number(S)===0:S===H)?void 0:S,M);return p};
_.pt=function(p,J,S){if(J&2)throw Error();var H=Dq(J),M=Uji(p,S,H),X=M===Yy?7:M[_.Xn]|0,Z=swW(X,J);if(2&Z||xy(Z)||16&Z)Z===X||xy(Z)||Kd(M,Z),M=Ep(M),X=0,Z=jI(Z,J),aw(p,J,S,M,H);Z&=-13;Z!==X&&Kd(M,Z);return M};
kfi=function(p){if(J8){var J;return(J=p[Js])!=null?J:p[Js]=new Map}if(Js in p)return p[Js];J=new Map;Object.defineProperty(p,Js,{value:J});return J};
TMv=function(p,J,S,H,M){var X=kfi(p),Z=NMt(X,p,J,S,M);Z!==H&&(Z&&(J=aw(p,J,Z,void 0,M)),X.set(S,H));return J};
NMt=function(p,J,S,H,M){var X=p.get(H);if(X!=null)return X;for(var Z=X=0;Z<H.length;Z++){var n=H[Z];cp(J,n,M)!=null&&(X!==0&&(S=aw(J,S,X,void 0,M)),X=n)}p.set(H,X);return X};
djk=function(p,J,S,H,M){var X=!1;H=cp(p,H,M,function(Z){var n=VL4(Z,S,!1,J);X=n!==Z&&n!=null;return n});
if(H!=null)return X&&!WE(H)&&qj(p,J),H};
uPk=function(p,J,S,H,M,X,Z,n){var b=WE(p,S);X=b?1:X;Z=!!Z||X===3;b=n&&!b;(X===2||b)&&u$(p)&&(J=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=J[_.Xn]|0);p=Uji(J,M);var F=p===Yy?7:p[_.Xn]|0,f=swW(F,S);if(n=!(4&f)){var O=p,A=S,P=!!(2&f);P&&(A|=2);for(var W=!P,y=!0,t=0,D=0;t<O.length;t++){var k=VL4(O[t],H,!1,A);if(k instanceof H){if(!P){var E=WE(k);W&&(W=!E);y&&(y=E)}O[D++]=k}}D<t&&(O.length=D);f|=4;f=y?f&-4097:f|4096;f=W?f|8:f&-9}f!==F&&(Kd(p,f),2&f&&Object.freeze(p));if(b&&!(8&f||!p.length&&
(X===1||(X!==4?0:2&f||!(16&f)&&32&S)))){xy(f)&&(p=Ep(p),f=jI(f,S),S=aw(J,S,M,p));H=p;b=f;for(F=0;F<H.length;F++)O=H[F],f=Ypi(O),O!==f&&(H[F]=f);b|=8;f=b=H.length?b|4096:b&-4097;Kd(p,f)}return p=gy3(p,f,J,S,M,X,n,Z)};
llk=function(p){p==null&&(p=void 0);return p};
jI=function(p,J){return p=(2&J?p|2:p&-3)&-273};
_.VIX=function(p,J,S,H,M){l$(p);J=_.wM(p,J,M,2,!0);var X;M=(X=xWW(J===Yy?7:J[_.Xn]|0))!=null?X:0;J.push(S(H,M));return p};
qNg=function(p,J,S,H,M,X,Z){l$(p);var n=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;p=uPk(p,n,n[_.Xn]|0,S,J,2,!0);if(X&&Z)M!=null||(M=p.length-1),Lit(p,M),p.splice(M,X),p.length||(p[_.Xn]&=-4097);else{if(X){if(typeof M!=="number"||M<0||M>p.length)throw Error();}else H=H!=null?H:new S;M!=void 0?p.splice(M,X,H):p.push(H);M=S=p===Yy?7:p[_.Xn]|0;(H=WE(H))?(S&=-9,p.length===1&&(S&=-4097)):S|=4096;S!==M&&Kd(p,S);H||qj(n)}};
Eys=function(p,J){if(typeof p==="string")return new HG(a3i(p),J);if(Array.isArray(p))return new HG(new Uint8Array(p),J);if(p.constructor===Uint8Array)return new HG(p,!1);if(p.constructor===ArrayBuffer)return p=new Uint8Array(p),new HG(p,!1);if(p.constructor===yv)return J=alw(p)||new Uint8Array(0),new HG(J,!0,p);if(p instanceof Uint8Array)return p=p.constructor===Uint8Array?p:new Uint8Array(p.buffer,p.byteOffset,p.byteLength),new HG(p,!1);throw Error();};
rrg=function(p){switch(typeof p){case "string":YNg(p)}};
wp3=function(p){switch(typeof p){case "string":jwX(p)}};
MG=function(){var p=function(){throw Error();};
Object.setPrototypeOf(p,p.prototype);return p};
crX=function(p,J){var S=S===void 0?xjX:S;return new Xs(p,J,S)};
pG3=function(p,J,S,H,M){IlX(p,S,LIv(J,H),M)};
iv=function(p,J,S,H){var M=H[p];if(M)return M;M={};M.binaryFields=H;M.messageMetadata=P$v(H[0]);var X=H[1],Z=1;X&&X.constructor===Object&&(M.extensions=X,X=H[++Z],typeof X==="function"&&(M.isMessageSet=!0,JsX!=null||(JsX=X),Sq4!=null||(Sq4=H[Z+1]),X=H[Z+=2]));for(var n={};X&&Htt(X);){for(var b=0;b<X.length;b++)n[X[b]]=X;X=H[++Z]}for(b=1;X!==void 0;){typeof X==="number"&&(b+=X,X=H[++Z]);var F=void 0;if(X instanceof Xs)var f=X;else f=Mai,Z--;X=void 0;if((X=f)==null?0:X.$$isMsg){X=H[++Z];F=H;var O=Z;
typeof X==="function"&&(X=X(),F[O]=X);F=X}X=H[++Z];O=b+1;typeof X==="number"&&X<0&&(O-=X,X=H[++Z]);for(;b<O;b++){var A=n[b];F?S(M,b,f,F,A):J(M,b,f,A)}}return H[p]=M};
Htt=function(p){return Array.isArray(p)&&!!p.length&&typeof p[0]==="number"&&p[0]>0};
itw=function(p){return Array.isArray(p)?p[0]instanceof Xs?p:[XGt,p]:[p,void 0]};
LIv=function(p,J){if(p instanceof _.Kt)return p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(p))return ky(p,J)};
RTX=function(p,J,S,H){var M=S.$$binaryReaderFn;p[J]=H?function(X,Z,n){return M(X,Z,n,H)}:M};
Ztg=function(p,J,S,H,M){var X=S.$$binaryReaderFn,Z,n;p[J]=function(b,F,f){return X(b,F,f,n||(n=iv(K7W,RTX,Ztg,H).messageMetadata),Z||(Z=nps(H)),M)}};
nps=function(p){var J=p[Gug];if(J!=null)return J;var S=iv(K7W,RTX,Ztg,p);J=S.isMessageSet?function(H,M){return JsX(H,M,S)}:function(H,M){for(;bti(M)&&M.nextWireType_!=4;){var X=M.nextField_,Z=S[X];
if(Z==null){var n=S.extensions;n&&(n=n[X])&&(n=mGg(n),n!=null&&(Z=S[X]=n))}if(Z==null||!Z(M,H,X)){n=M;Z=n.fieldCursor_;F7W(n);if(n.discardUnknownFields)var b=void 0;else{var F=n.decoder_.cursor_-Z;n.decoder_.cursor_=Z;b=vpX(n.decoder_,F)}F=n=Z=void 0;var f=H;b&&((Z=(n=(F=f[UN])!=null?F:f[UN]=new KI3)[X])!=null?Z:n[X]=[]).push(b)}}if(H=IqX(H))H.reviveUnknownFields=S.binaryFields[f4s];return!0};
p[Gug]=J;p[f4s]=OtW.bind(p);return J};
OtW=function(p,J,S,H){var M=this[K7W],X=this[Gug],Z=ky(void 0,M.messageMetadata),n=IqX(p);if(n){var b=!1,F=M.extensions;if(F){M=function(W,y,t){if(t.length!==0)if(F[y])for(W=_.K(t),y=W.next();!y.done;y=W.next()){y=Ast(y.value);try{b=!0,X(Z,y)}finally{y.free()}}else H==null||H(p,y,t)};
if(J==null)iPi(n,M);else if(n!=null){var f=n[J];f&&M(n,J,f)}if(b){var O=p[_.Xn]|0;if(O&2&&O&2048&&(S==null||!S.reviveIntoImmutable))throw Error();var A=Dq(O),P=function(W,y){if(cp(p,W,A)!=null)switch(S==null?void 0:S.resolutionBehavior){case 1:return;default:throw Error();}y!=null&&(O=aw(p,O,W,y,A));delete n[W]};
J==null?pEv(Z,Z[_.Xn]|0,function(W,y){P(W,y)}):P(J,cp(Z,J,A))}}}};
mGg=function(p){p=itw(p);var J=p[0].$$binaryReaderFn;if(p=p[1]){var S=nps(p),H=iv(K7W,RTX,Ztg,p).messageMetadata;return function(M,X,Z){return J(M,X,Z,H,S)}}return J};
Pv4=function(p,J,S){p[J]=S.$$binaryWriterFn};
$G3=function(p,J,S,H){var M,X,Z=S.$$binaryWriterFn;p[J]=function(n,b,F){return Z(n,b,F,X||(X=iv(zTX,Pv4,$G3,H).messageMetadata),M||(M=opt(H)))}};
opt=function(p){var J=p[eTX];if(!J){var S=iv(zTX,Pv4,$G3,p);J=function(H,M){return W7t(H,M,S)};
p[eTX]=J}return J};
W7t=function(p,J,S){pEv(p,p[_.Xn]|0,function(H,M){if(M!=null){var X=QDi(S,H);X?X(J,M,H):H<500||r9i(Cvw,3)}});
(p=IqX(p))&&iPi(p,function(H,M,X){Z4(J,J.encoder_.end());for(H=0;H<X.length;H++)Z4(J,alw(X[H])||new Uint8Array(0))})};
QDi=function(p,J){var S=p[J];if(S)return S;if(S=p.extensions)if(S=S[J]){S=itw(S);var H=S[0].$$binaryWriterFn;if(S=S[1]){var M=opt(S),X=iv(zTX,Pv4,$G3,S).messageMetadata;S=p.isMessageSet?Sq4(X,M):function(Z,n,b){return H(Z,n,b,X,M)}}else S=H;
return p[J]=S}};
_.ysw=function(p,J,S){if(Array.isArray(J)){var H=J[_.Xn]|0;if(H&4)return J;for(var M=0,X=0;M<J.length;M++){var Z=p(J[M]);Z!=null&&(J[X++]=Z)}X<M&&(J.length=X);p=H|1;S&&(p=(p|4)&-1537);p!==H&&Kd(J,p);S&&p&2&&Object.freeze(J);return J}};
_.nt=function(p,J,S){return new Xs(p,J,S)};
_.By9=function(p,J,S){return new Xs(p,J,S)};
_.bv=function(p,J,S){aw(p,p[_.Xn]|0,J,S,Dq(p[_.Xn]|0))};
UGv=function(p,J,S){J=_.cE(J);J!=null&&(_.m7(p,S,1),p=p.encoder_,S=nUi||(nUi=new DataView(new ArrayBuffer(8))),S.setFloat64(0,+J,!0),To=S.getUint32(0,!0),dm=S.getUint32(4,!0),_.Fs(p,To),_.Fs(p,dm))};
sD9=function(p,J,S){J=_.cE(J);J!=null&&(_.m7(p,S,5),p=p.encoder_,Go4(J),_.Fs(p,To))};
_.Oq=function(p,J,S){J=Tmk(J);if(J!=null&&(rrg(J),J!=null))switch(_.m7(p,S,0),typeof J){case "number":p=p.encoder_;u8(J);ft(p,To,dm);break;case "bigint":S=BigInt.asUintN(64,J);S=new gpi(Number(S&BigInt(4294967295)),Number(S>>BigInt(32)));ft(p.encoder_,S.JSC$9018_lo,S.JSC$9018_hi);break;default:S=YNg(J),ft(p.encoder_,S.JSC$9018_lo,S.JSC$9018_hi)}};
hTi=function(p,J,S){J=d4X(J);if(J!=null&&(wp3(J),J!=null))switch(_.m7(p,S,0),typeof J){case "number":p=p.encoder_;u8(J);ft(p,To,dm);break;case "bigint":S=tav(J);ft(p.encoder_,S.JSC$9016_lo,S.JSC$9016_hi);break;default:S=jwX(J),ft(p.encoder_,S.JSC$9016_lo,S.JSC$9016_hi)}};
kuw=function(p,J,S){J=_.KP(J);J!=null&&J!=null&&(_.m7(p,S,0),_.DGi(p.encoder_,J))};
_.Tyi=function(p,J,S){Ny3(p,S,d4X(J))};
dGL=function(p,J,S){J=_.A8t(J);J!=null&&(_.m7(p,S,0),p.encoder_.JSC$9020_buffer_.push(J?1:0))};
l4X=function(p,J,S){J=_.$y(J);J!=null&&usi(p,S,bLi(J))};
Vaw=function(p,J,S,H,M){IlX(p,S,LIv(J,H),M)};
_.qqg=function(p,J,S){J=J==null||typeof J=="string"||J instanceof yv?J:void 0;J!=null&&usi(p,S,Eys(J,!0).buffer)};
a4X=function(p,J,S){J=_.$4W(J);J!=null&&J!=null&&(_.m7(p,S,0),As(p.encoder_,J))};
_.Ep4=function(p,J,S){J=_.KP(J);J!=null&&(J=parseInt(J,10),_.m7(p,S,0),_.DGi(p.encoder_,J))};
_.PG=function(p,J){return function(S,H){var M={treatNewDataAsImmutable:!0};H&&Object.assign(M,H);S=Ast(S,void 0,void 0,M);try{var X=new p,Z=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;nps(J)(Z,S);var n=X}finally{S.free()}return n}};
_.zu=function(p){return function(J){return YqX(J,p)}};
rsi=function(p){return function(){return YqX(this,p)}};
_.jDs=function(p){return kU(function(J){return J instanceof p&&!WE(J)})};
_.$p=function(p){return function(J){return wG3(p,J)}};
L79=function(p,J){return xGX({child:p,origin:J||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:csk,getPayloadCase:function(S){return S.getPayloadCase()},
createInitMessage:function(S){var H=new ea,M=new I4i;S=_.Qd(M,1,S);return _.Ct(H,5,yd,S)}})};
BG=function(p){return{valueOf:p}.valueOf()};
Juw=function(){var p=null;if(!pZi)return p;try{var J=function(S){return S};
p=pZi.createPolicy("goog#html",{createHTML:J,createScript:J,createScriptURL:J})}catch(S){}return p};
H_t=function(){SKv===void 0&&(SKv=Juw());return SKv};
_.sq=function(p){var J=H_t();p=J?J.createScriptURL(p):p;return new Uq(p)};
_.gy=function(p){if(p instanceof Uq)return p.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.ts=function(p){return Object.isFrozen(p)&&Object.isFrozen(p.raw)};
M03=function(p){return p.toString().indexOf("`")===-1};
D4=function(p){return new _.hs(XZw,p)};
NG=function(p){return p instanceof _.hs};
_.Tu=function(p){if(NG(p))return p.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
dy=function(p){return new i_W(function(J){return J.substr(0,p.length+1).toLowerCase()===p+":"})};
_.uv=function(p,J){J=J===void 0?Rjt:J;if(NG(p))return p;for(var S=0;S<J.length;++S){var H=J[S];if(H instanceof i_W&&H.isValid(p))return D4(p)}};
_.Vd=function(p,J){J=J===void 0?Rjt:J;return _.uv(p,J)||lv};
_.qG=function(p){var J=window;if(typeof MediaSource!=="undefined"&&p instanceof MediaSource||typeof J.ManagedMediaSource!=="undefined"&&p instanceof J.ManagedMediaSource)return D4(URL.createObjectURL(p));J=p.type;J.toLowerCase()==="application/octet-stream"?J=!0:(J=J.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),J=(J==null?void 0:J.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(J[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(J[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(J[1])||/^font\/[\w-]+$/i.test(J[1])));if(!J)throw Error("Z");return D4(URL.createObjectURL(p))};
_.KC3=function(p){for(var J=_.Yp.apply(1,arguments),S=[p[0]],H=0;H<J.length;H++)S.push(String(J[H])),S.push(p[H+1]);return D4(S.join(""))};
_.nFi=function(p){if(!Z_v){a:{var J=document.createElement("a");try{J.href=p}catch(S){p=void 0;break a}p=J.protocol;p=p===":"||p===""?"https:":p}return p}try{J=new URL(p)}catch(S){return"https:"}return J.protocol};
_.ry=function(p){p instanceof _.hs?p=_.Tu(p):p=GHL.test(p)?p:void 0;return p};
ja=function(p,J){J=_.ry(J);J!==void 0&&(p.href=J)};
xp=function(p){var J=H_t();p=J?J.createHTML(p):p;return new wy(p)};
cG=function(p){if(p instanceof wy)return p.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.Lt=function(p,J){p.src=_.gy(J).toString()};
b_v=function(p,J){p.setAttribute("sandbox","");for(var S=0;S<J.length;S++)p.sandbox.supports&&!p.sandbox.supports(J[S])||p.sandbox.add(J[S])};
_.p_=function(p,J,S){p.removeAttribute("srcdoc");switch(J){case 0:if(S instanceof Uq)throw new mDX("TrustedResourceUrl",0);b_v(p,[]);J=_.ry(S);J!==void 0&&(p.src=J);break;case 1:if(!(S instanceof Uq))throw new mDX(typeof S,1);b_v(p,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Lt(p,S);break;case 2:if(S instanceof Uq)throw new mDX("TrustedResourceUrl",2);b_v(p,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
J=_.ry(S);J!==void 0&&(p.src=J);break;default:_.rm(J)}};
_.Ju=function(p,J,S,H){J=_.ry(J);return J!==void 0?p.open(J,S,H):null};
_.S0=function(p){p=p===void 0?document:p;var J,S;p=(S=(J=p).querySelector)==null?void 0:S.call(J,"script[nonce]");return p==null?"":p.nonce||p.getAttribute("nonce")||""};
_.MD=function(p){var J=H_t();p=J?J.createScript(p):p;return new _.HZ(p)};
Xl=function(p){if(p instanceof _.HZ)return p.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
FCW=function(p){var J=_.S0(p.ownerDocument);J&&p.setAttribute("nonce",J)};
_.i0=function(p,J){p.textContent=Xl(J);FCW(p)};
_.RI=function(p,J){p.src=_.gy(J);FCW(p)};
_.K_=function(p,J){if(p.nodeType===1&&/^(script|style)$/i.test(p.tagName))throw Error("Z");p.innerHTML=cG(J)};
_.Zr=function(p,J,S,H){if(p.length===0)throw Error("Z");p=p.map(function(X){if(X instanceof vF4)X=X.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return X});
var M=S.toLowerCase();if(p.every(function(X){return M.indexOf(X)!==0}))throw Error("aa`"+S);
J.setAttribute(S,H)};
_.n_=function(p,J,S){if(J instanceof Uq)p.href=_.gy(J).toString(),p.rel=S;else{if(frv.indexOf(S)===-1)throw Error("ba`"+S);J=_.ry(J);J!==void 0&&(p.href=J,p.rel=S)}};
O_k=function(p){if(p instanceof GH)return p.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.Aui=function(p,J){J=_.ry(J);J!==void 0&&(p.href=J)};
P0L=function(p){return new Worker(_.gy(p),void 0)};
zj3=function(p){return _.sq(p)};
$D3=function(p,J){p&&(J=p.indexOf(J),0<=J&&p.splice(J,1))};
b0=function(p){return typeof p==="function"};
oFg=function(p){return p instanceof mC||p&&"closed"in p&&b0(p.remove)&&b0(p.add)&&b0(p.unsubscribe)};
Fl=function(){};
vZ=function(p){eji(function(){throw p;})};
f_=function(p){return p};
OK=function(){return WC3(_.Yp.apply(0,arguments))};
WC3=function(p){return p.length===0?f_:p.length===1?p[0]:function(J){return p.reduce(function(S,H){return H(S)},J)}};
QIi=function(p){var J;return(J=p!=null?p:void 0)!=null?J:Promise};
C0w=function(p,J){return new Au(function(S){var H=0;return J.schedule(function(){H===p.length?S.complete():(S.next(p[H++]),S.closed||this.schedule())})})};
yu9=function(p,J){if(!p)throw Error("ca");return new Au(function(S){var H=new mC;H.add(J.schedule(function(){var M=p[Symbol.asyncIterator]();H.add(J.schedule(function(){var X=this;M.next().then(function(Z){Z.done?S.complete():(S.next(Z.value),X.schedule())})}))}));
return H})};
BWX=function(p,J,S){J=J.schedule(function(){try{S.call(this)}catch(H){p.error(H)}},0);
p.add(J)};
sI4=function(p,J){return new Au(function(S){var H;S.add(J.schedule(function(){H=p[UDs]();BWX(S,J,function(){var M=H.next(),X=M.value;M.done?S.complete():(S.next(X),this.schedule())})}));
return function(){var M;return b0((M=H)==null?void 0:M.return)&&H.return()}})};
gF3=function(p,J){return new Au(function(S){var H=new mC;H.add(J.schedule(function(){var M=p[PZ]();H.add(M.subscribe({next:function(X){H.add(J.schedule(function(){return S.next(X)}))},
error:function(X){H.add(J.schedule(function(){return S.error(X)}))},
complete:function(){H.add(J.schedule(function(){return S.complete()}))}}))}));
return H})};
t0i=function(p,J){return new Au(function(S){return J.schedule(function(){return p.then(function(H){S.add(J.schedule(function(){S.next(H);S.add(J.schedule(function(){return S.complete()}))}))},function(H){S.add(J.schedule(function(){return S.error(H)}))})})})};
hjL=function(p){return new TypeError("da`"+(p!==null&&typeof p==="object"?"an invalid object":"'"+p+"'"))};
kHk=function(p,J){if(p!=null){if(b0(p[PZ]))return gF3(p,J);if(DDg(p))return C0w(p,J);if(b0(p==null?void 0:p.then))return t0i(p,J);if(Symbol.asyncIterator&&b0(p==null?void 0:p[Symbol.asyncIterator]))return yu9(p,J);if(b0(p==null?void 0:p[UDs]))return sI4(p,J)}throw hjL(p);};
$F=function(p,J){return J?kHk(p,J):zH(p)};
zH=function(p){if(p instanceof Au)return p;if(p!=null){if(b0(p[PZ]))return NWX(p);if(DDg(p))return TWs(p);if(b0(p==null?void 0:p.then))return dDW(p);if(Symbol.asyncIterator&&b0(p==null?void 0:p[Symbol.asyncIterator]))return ulv(p);if(b0(p==null?void 0:p[UDs]))return lrs(p)}throw hjL(p);};
NWX=function(p){return new Au(function(J){var S=p[PZ]();if(b0(S.subscribe))return S.subscribe(J);throw new TypeError("ea");})};
TWs=function(p){return new Au(function(J){for(var S=0;S<p.length&&!J.closed;S++)J.next(p[S]);J.complete()})};
dDW=function(p){return new Au(function(J){p.then(function(S){J.closed||(J.next(S),J.complete())},function(S){return J.error(S)}).then(null,vZ)})};
lrs=function(p){return new Au(function(J){for(var S=p[UDs]();!J.closed;){var H=S.next(),M=H.value;H.done?J.complete():J.next(M)}return function(){return b0(S==null?void 0:S.return)&&S.return()}})};
ulv=function(p){return new Au(function(J){V0t(p,J).catch(function(S){return J.error(S)})})};
V0t=function(p,J){var S,H,M,X,Z,n;return _.G(function(b){switch(b.nextAddress){case 1:_.oI(b,2,3),X=_.e0(p);case 5:return b.yield(X.next(),8);case 8:H=b.yieldResult;if(H.done){b.jumpTo(3);break}Z=H.value;J.next(Z);b.jumpTo(5);break;case 3:_.WZ(b);_.C_(b,9);if(!H||H.done||!(M=X.return)){b.jumpTo(9);break}return b.yield(M.call(X),9);case 9:_.WZ(b,0,0,1);if(S)throw S.error;_.yV(b,10,1);break;case 10:_.yV(b,4);break;case 2:n=_.BZ(b);S={error:n};b.jumpTo(3);break;case 4:J.complete(),_.UK(b)}})};
qKi=function(p,J){return J?C0w(p,J):TWs(p)};
arw=function(p){return b0(p[p.length-1])?p.pop():void 0};
gW=function(p){var J=p[p.length-1];return J&&b0(J.schedule)?p.pop():void 0};
tu=function(){var p=_.Yp.apply(0,arguments),J=gW(p);return J?C0w(p,J):qKi(p)};
hu=function(p){var J=b0(p)?p:function(){return p};
return new Au(function(S){return S.error(J())})};
Dr=function(p){return function(J){if(b0(J==null?void 0:J.lift))return J.lift(function(S){try{return p(S,this)}catch(H){this.error(H)}});
throw new TypeError("fa");}};
ND=function(){return Dr(function(p,J){var S=null;p._refCount++;var H=new kF(J,void 0,void 0,void 0,function(){if(!p||p._refCount<=0||0<--p._refCount)S=null;else{var M=p._connection,X=S;S=null;!M||X&&M!==X||M.unsubscribe();J.unsubscribe()}});
p.subscribe(H);H.closed||(S=p.connect())})};
YKX=function(){var p=EFW;var J=J===void 0?0:J;return Dr(function(S,H){H.add(p.schedule(function(){return S.subscribe(H)},J))})};
TH=function(p){return Dr(function(J,S){var H=0;J.subscribe(new kF(S,function(M){S.next(p.call(void 0,M,H++))}))})};
jIX=function(p){return TH(function(J){return ruW(J)?p.apply(null,_.dW(J)):p(J)})};
LCi=function(p){if(p.length===1){var J=p[0];if(wZv(J))return{args:J,keys:null};if(J&&typeof J==="object"&&xDg(J)===cuw)return p=IrW(J),{args:p.map(function(S){return J[S]}),
keys:p}}return{args:p,keys:null}};
l0=function(){var p=_.Yp.apply(0,arguments),J=gW(p),S=arw(p);p=LCi(p);var H=p.args,M=p.keys;if(H.length===0)return $F([],J);J=new Au(psk(H,J,M?function(X){for(var Z={},n=0;n<X.length;n++)Z[M[n]]=X[n];return Z}:f_));
return S?J.pipe(jIX(S)):J};
psk=function(p,J,S){S=S===void 0?f_:S;return function(H){JyW(J,function(){for(var M=p.length,X=Array(M),Z=M,n=p.map(function(){return!1}),b=!0,F={i$jscomp$217:0};F.i$jscomp$217<M;F={i$jscomp$217:F.i$jscomp$217},F.i$jscomp$217++)JyW(J,function(f){return function(){$F(p[f.i$jscomp$217],J).subscribe(new VV(H,function(O){X[f.i$jscomp$217]=O;
b&&(n[f.i$jscomp$217]=!0,b=!n.every(f_));b||H.next(S(X.slice()))},function(){return--Z===0}))}}(F),H)},H)}};
JyW=function(p,J,S){p?S.add(p.schedule(J)):J()};
S9W=function(p,J,S,H){var M=[],X=0,Z=0,n=!1,b=function(F){X++;zH(S(F,Z++)).subscribe(new kF(J,function(f){J.next(f)},void 0,function(){X--;
for(var f={};M.length&&X<H;f={bufferedValue:void 0})f.bufferedValue=M.shift(),b(f.bufferedValue);!n||M.length||X||J.complete()}))};
p.subscribe(new kF(J,function(F){return X<H?b(F):M.push(F)},void 0,function(){n=!0;
!n||M.length||X||J.complete()}));
return function(){M=null}};
qD=function(p,J){var S=S===void 0?Infinity:S;if(b0(J))return qD(function(H,M){return TH(function(X,Z){return J(H,X,M,Z)})(zH(p(H,M)))},S);
typeof J==="number"&&(S=J);return Dr(function(H,M){return S9W(H,M,p,S)})};
HAL=function(p){p=p===void 0?Infinity:p;return qD(f_,p)};
M6t=function(){var p=_.Yp.apply(0,arguments);return HAL(1)(qKi(p,gW(p)))};
XsW=function(p){return new Au(function(J){zH(p()).subscribe(J)})};
aI=function(p,J,S){if(b0(S)){var H=S;S=void 0}if(H)return aI(p,J,S).pipe(jIX(H));H=_.K(b0(p.addEventListener)&&b0(p.removeEventListener)?iAi.map(function(Z){return function(n){return p[Z](J,n,S)}}):b0(p.addListener)&&b0(p.removeListener)?RmX.map(K9k(p,J)):b0(p.on)&&b0(p.off)?ZAX.map(K9k(p,J)):[]);
var M=H.next().value,X=H.next().value;return!M&&DDg(p)?qD(function(Z){return aI(Z,J,S)})(qKi(p)):new Au(function(Z){if(!M)throw new TypeError("ga");
var n=function(){var b=_.Yp.apply(0,arguments);return Z.next(1<b.length?b:b[0])};
M(n);return function(){return X(n)}})};
K9k=function(p,J){return function(S){return function(H){return p[S](J,H)}}};
rW=function(){var p=_.Yp.apply(0,arguments),J=gW(p);var S=typeof p[p.length-1]==="number"?p.pop():Infinity;return p.length?p.length===1?zH(p[0]):HAL(S)(qKi(p,J)):EK};
G6s=function(p){return p.length===1&&nok(p[0])?p[0]:p};
bAv=function(){var p=G6s(_.Yp.apply(0,arguments));return Dr(function(J,S){var H=[J].concat(_.dW(p)),M=function(){if(!S.closed)if(H.length>0){try{var X=zH(H.shift())}catch(n){M();return}var Z=new kF(S,void 0,Fl,Fl);S.add(X.subscribe(Z));Z.add(M)}else S.complete()};
M()})};
j0=function(p){return Dr(function(J,S){var H=0;J.subscribe(new kF(S,function(M){return p.call(void 0,M,H++)&&S.next(M)}))})};
F9t=function(){var p=_.Yp.apply(0,arguments);p=G6s(p);return p.length===1?zH(p[0]):new Au(m04(p))};
m04=function(p){return function(J){for(var S=[],H={i$jscomp$220:0};S&&!J.closed&&H.i$jscomp$220<p.length;H={i$jscomp$220:H.i$jscomp$220},H.i$jscomp$220++)S.push(zH(p[H.i$jscomp$220]).subscribe(new kF(J,function(M){return function(X){if(S){for(var Z=0;Z<S.length;Z++)Z!==M.i$jscomp$220&&S[Z].unsubscribe();S=null}J.next(X)}}(H))))}};
voX=function(){var p=_.Yp.apply(0,arguments),J=arw(p),S=G6s(p);return S.length?new Au(function(H){var M=S.map(function(){return[]}),X=S.map(function(){return!1});
H.add(function(){M=X=null});
for(var Z={sourceIndex$jscomp$1:0};!H.closed&&Z.sourceIndex$jscomp$1<S.length;Z={sourceIndex$jscomp$1:Z.sourceIndex$jscomp$1},Z.sourceIndex$jscomp$1++)zH(S[Z.sourceIndex$jscomp$1]).subscribe(new kF(H,function(n){return function(b){M[n.sourceIndex$jscomp$1].push(b);M.every(function(F){return F.length})&&(b=M.map(function(F){return F.shift()}),H.next(J?J.apply(null,_.dW(b)):b),M.some(function(F,f){return!F.length&&X[f]})&&H.complete())}}(Z),void 0,function(n){return function(){X[n.sourceIndex$jscomp$1]=
!0;
!M[n.sourceIndex$jscomp$1].length&&H.complete()}}(Z)));
return function(){M=X=null}}):EK};
fZW=function(p){var J,S,H;return!!p&&typeof p.active==="boolean"&&typeof((J=p.clock)==null?void 0:J.now)==="function"&&((S=p.clock)==null?void 0:S.timeline)!==void 0&&!((H=p.lastMeasurement)==null||!H.timestamp)&&typeof p.equivalentTo==="function"&&typeof p.extrapolateToNow==="function"&&typeof p.extrapolateToTime==="function"&&typeof p.map==="function"&&typeof p.joinWith==="function"};
OAX=function(p){function J(S){return typeof S==="boolean"||typeof S==="string"||typeof S==="number"||S===void 0||S===null}
return J(p)?!0:Array.isArray(p)?p.every(J):typeof p==="object"?Object.keys(p).every(function(S){return typeof S==="string"})&&Object.values(p).every(function(S){return Array.isArray(S)?S.every(J):J(S)}):!1};
Ayg=function(p){if(OAX(p))return p;if(fZW(p))return{lastMeasurement:{value:Ayg(p.lastMeasurement.value),timestamp:wW(p.lastMeasurement.timestamp,new xF(0,p.lastMeasurement.timestamp.timeline))},active:p.active};try{return JSON.parse(JSON.stringify(p))}catch(J){}return String(p)};
cZ=function(p,J){return function(S){return new Au(function(H){return S.subscribe(function(M){p.timeExecution(J,function(){H.next(M)})()},function(M){p.timeExecution(J,function(){H.error(M)})()},function(){p.timeExecution(J,function(){H.complete()})()})})}};
PIv=function(p,J){var S=!1;return new Au(function(H){var M=p.setTimeout(function(){S=!0;H.next(!0);H.complete()},J);
return function(){S||p.clearTimeout(M)}})};
zmk=function(p){p=p.global;if(p.fetchLater)return p.fetchLater.bind(p)};
II=function(p){return Dr(function(J,S){var H=null,M=!1,X;H=J.subscribe(new kF(S,void 0,function(Z){X=zH(p(Z,II(p)(J)));H?(H.unsubscribe(),H=null,X.subscribe(S)):M=!0}));
M&&(H.unsubscribe(),H=null,X.subscribe(S))})};
$0W=function(p,J,S){return function(H,M){var X=S,Z=J,n=0;H.subscribe(new kF(M,function(b){var F=n++;Z=X?p(Z,b,F):(X=!0,b);M.next(Z)},void 0,void 0))}};
oow=function(p){p=p===void 0?null:p;return Dr(function(J,S){var H=!1;J.subscribe(new kF(S,function(M){H=!0;S.next(M)},void 0,function(){H||S.next(p);
S.complete()}))})};
L_=function(){return Dr(function(p,J){p.subscribe(new kF(J,Fl))})};
Jy=function(p){return Dr(function(J,S){J.subscribe(new kF(S,function(){return S.next(p)}))})};
S6=function(p){return p<=0?function(){return EK}:Dr(function(J,S){var H=0;
J.subscribe(new kF(S,function(M){++H<=p&&(S.next(M),p<=H&&S.complete())}))})};
Hs=function(p){var J=J===void 0?f_:J;var S;p=(S=p)!=null?S:emi;return Dr(function(H,M){var X,Z=!0;H.subscribe(new kF(M,function(n){var b=J(n);if(Z||!p(X,b))Z=!1,X=b,M.next(n)}))})};
emi=function(p,J){return p===J};
QrX=function(p){p=p===void 0?W9g:p;return Dr(function(J,S){var H=!1;J.subscribe(new kF(S,function(M){H=!0;S.next(M)},void 0,function(){return H?S.complete():S.error(p())}))})};
W9g=function(){return new CIg};
M0=function(){var p=_.Yp.apply(0,arguments);return function(J){return M6t(J,tu.apply(null,_.dW(p)))}};
yyw=function(p){return Dr(function(J,S){var H=0;J.subscribe(new kF(S,function(M){p.call(void 0,M,H++,J)||(S.next(!1),S.complete())},void 0,function(){S.next(!0);
S.complete()}))})};
B2X=function(){return Dr(function(p,J){var S=[];p.subscribe(new kF(J,function(H){S.push(H);1<S.length&&S.shift()},void 0,function(){for(var H=_.K(S),M=H.next();!M.done;M=H.next())J.next(M.value);
J.complete()},function(){S=null}))})};
U0g=function(p,J){var S=arguments.length>=2;return function(H){return H.pipe(p?j0(function(M,X){return p(M,X,H)}):f_,B2X(),S?oow(J):QrX(function(){return new CIg}))}};
iI=function(p){var J=b0(p)?p:function(){return p};
return b0()?Dr(function(S,H){var M=J();(void 0)(M).subscribe(H).add(S.subscribe(M))}):function(S){var H=new XC(S,J);
b0(S==null?void 0:S.lift)&&(H.lift=S.lift);H.source=S;H.subjectFactory=J;return H}};
KA=function(p){var J=new Rr(p,void 0,void 0);return function(S){return iI(function(){return J})(S)}};
ZZ=function(p,J){return Dr($0W(p,J,arguments.length>=2))};
nA=function(){var p=_.Yp.apply(0,arguments),J=gW(p);return Dr(function(S,H){(J?M6t(p,S,J):M6t(p,S)).subscribe(H)})};
G6=function(p){return Dr(function(J,S){var H=null,M=0,X=!1;J.subscribe(new kF(S,function(Z){var n;(n=H)==null||n.unsubscribe();n=M++;zH(p(Z,n)).subscribe(H=new kF(S,function(b){return S.next(b)},void 0,function(){H=null;
X&&!H&&S.complete()}))},void 0,function(){(X=!0,!H)&&S.complete()}))})};
bI=function(p,J){J=J===void 0?!1:J;return Dr(function(S,H){var M=0;S.subscribe(new kF(H,function(X){var Z=p(X,M++);(Z||J)&&H.next(X);!Z&&H.complete()}))})};
srs=function(p,J,S){var H=b0(p)||J||S?{next:p,error:J,complete:S}:p;return H?Dr(function(M,X){M.subscribe(new kF(X,function(Z){var n;(n=H.next)==null||n.call(H,Z);X.next(Z)},function(Z){var n;
(n=H.error)==null||n.call(H,Z);X.error(Z)},function(){var Z;
(Z=H.complete)==null||Z.call(H);X.complete()}))}):f_};
goX=function(){var p=_.Yp.apply(0,arguments),J=arw(p);return Dr(function(S,H){for(var M=p.length,X=Array(M),Z=p.map(function(){return!1}),n=!1,b={i$jscomp$230:0};b.i$jscomp$230<M;b={i$jscomp$230:b.i$jscomp$230},b.i$jscomp$230++)zH(p[b.i$jscomp$230]).subscribe(new kF(H,function(F){return function(f){X[F.i$jscomp$230]=f;
n||Z[F.i$jscomp$230]||(Z[F.i$jscomp$230]=!0,(n=Z.every(f_))&&(Z=null))}}(b),void 0,Fl));
S.subscribe(new kF(H,function(F){n&&(F=[F].concat(_.dW(X)),H.next(J?J.apply(null,_.dW(F)):F))}))})};
hmi=function(p){var J=t6v;if(J)for(var S in J)Object.prototype.hasOwnProperty.call(J,S)&&p(J[S],S,J)};
D0k=function(){var p=[];hmi(function(J){p.push(J)});
return p};
N2i=function(p){try{return!!p&&p.location.href!=null&&k6i(p,"foo")}catch(J){return!1}};
_.m9=function(p){return new vF4(p[0].toLowerCase())};
T2k=function(p){for(var J=_.Yp.apply(1,arguments),S=p[0],H=0;H<p.length-1;H++)S+=String(J[H]),S+=p[H+1];J=document.implementation.createHTMLDocument("");H=J.createElement("style");J.head.appendChild(H);J=H.sheet;J.insertRule(S,0);if(J.cssRules.length===1&&(S=J.cssRules[0],S instanceof CSSStyleRule))return new GH(S.cssText.replace(/</g,"\\3C "))};
d0W=function(p){try{return new URL(p,window.document.baseURI)}catch(J){return new URL("about:invalid")}};
uCi=function(p,J){var S=J.createRange();S.selectNode(J.body);p=xp(p);return S.createContextualFragment(cG(p))};
lZ9=function(p){p=p.nodeName;return typeof p==="string"?p:"FORM"};
V6k=function(p){p=p.nodeType;return p===1||typeof p!=="number"};
vs=function(p,J,S){p.setAttribute(J,S)};
q93=function(p){return p.parts.map(function(J){var S=J.descriptor;return""+J.url+(S?" "+S:"")}).join(" , ")};
_.fA=function(p){var J=_.Yp.apply(1,arguments);if(J.length===0)return _.sq(p[0]);for(var S=p[0],H=0;H<J.length;H++)S+=encodeURIComponent(J[H])+p[H+1];return _.sq(S)};
_.O9=function(p,J){p=_.gy(p).toString();var S=p.split(/[?#]/),H=/[?]/.test(p)?"?"+S[1]:"";return aZw(S[0],H,/[#]/.test(p)?"#"+(H?S[2]:S[1]):"",J)};
aZw=function(p,J,S,H){function M(Z,n){Z!=null&&(Array.isArray(Z)?Z.forEach(function(b){return M(b,n)}):(J+=X+encodeURIComponent(n)+"="+encodeURIComponent(Z),X="&"))}
var X=J.length?"&":"?";H.constructor===Object&&(H=Object.entries(H));Array.isArray(H)?H.forEach(function(Z){return M(Z[1],Z[0])}):H.forEach(M);
return _.sq(p+J+S)};
Y9i=function(){var p=Xl(EoW).toString();return _.sq(URL.createObjectURL(new Blob([p],{type:"text/javascript"})))};
ryv=function(p){var J=[],S=0,H;for(H in p)J[S++]=H;return J};
jrs=function(p,J){for(var S in p)if(p[S]==J)return!0;return!1};
ws9=function(p,J,S){for(var H in p)if(J.call(S,p[H],H,p))return H};
x0v=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 J=Array.isArray(p)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(p)||p instanceof DataView?{}:new p.constructor(p.length),S;for(S in p)J[S]=x0v(p[S]);return J};
cyg=function(p){var J=arguments.length;if(J==1&&Array.isArray(arguments[0]))return cyg.apply(null,arguments[0]);if(J%2)throw Error("ma");for(var S={},H=0;H<J;H+=2)S[arguments[H]]=arguments[H+1];return S};
IZW=function(p){var J=arguments.length;if(J==1&&Array.isArray(arguments[0]))return IZW.apply(null,arguments[0]);for(var S={},H=0;H<J;H++)S[arguments[H]]=!0;return S};
Ay=function(p,J,S,H){this.top=p;this.right=J;this.bottom=S;this.left=H};
L9w=function(p){p=p.global;if(p.PendingGetBeacon)return p.PendingGetBeacon};
$o=function(p){return function(J){return J.pipe(p0W(p,iI(new z6)))}};
or=function(p){return function(J){return J.pipe(p0W(p,KA(1)))}};
p0W=function(p,J){function S(H){return new Au(function(M){return H.subscribe(function(X){e6(p,function(){return void M.next(X)},3)},function(X){e6(p,function(){return void M.error(X)},3)},function(){e6(p,function(){return void M.complete()},3)})})}
return OK(S,YKX(),J,ND(),S)};
HCs=function(p){var J=JTw(p);return J===null?new Ws(null):J.pipe(TH(function(S){S=S.serialize();if(SV3)S=_.Hg.btoa(S);else{for(var H=[],M=0,X=0;X<S.length;X++){var Z=S.charCodeAt(X);Z>255&&(H[M++]=Z&255,Z>>=8);H[M++]=Z}S=_.gM(H)}return S}),S6(1),or(p.queue))};
Mmv=function(p){var J=J===void 0?{}:J;if(typeof Event==="function")return new Event(p,J);if(typeof document!=="undefined"){var S=document.createEvent("CustomEvent");S.initCustomEvent(p,J.bubbles||!1,J.cancelable||!1,J.detail);return S}throw Error();};
X0L=function(p){return typeof p==="string"?document.getElementById(p):p};
RwW=function(p){var J=!1;J=J===void 0?!1:J;if(p.tagName==="IMG"){if(p.complete&&(!p.naturalWidth||!p.naturalHeight))return!0;var S;if(J&&((S=p.style)==null?void 0:S.display)==="none")return!0}var H,M;return iCk.test((H=p.getAttribute("width"))!=null?H:"")&&iCk.test((M=p.getAttribute("height"))!=null?M:"")};
KHi=function(p,J){if(p.tagName==="IMG")return p.naturalWidth&&p.naturalHeight?!0:!1;try{if(p.readyState)var S=p.readyState;else{var H,M;S=(H=p.contentWindow)==null?void 0:(M=H.document)==null?void 0:M.readyState}return S==="complete"}catch(X){return J===void 0?!1:J}};
ZCi=function(p){p||(p=function(J,S,H){J.addEventListener(S,H)});
return p};
mLs=function(p,J){var S=ncX();S=S===void 0?new GNX:S;if(p=X0L(p)){var H=ZCi(H);for(var M=!1,X=function(t){M||(M=!0,J(t))},Z,n=2,b=0;b<bCW.length;++b)if(bCW[b]===p.tagName){n=3;
Z=[p];break}Z||(Z=p.querySelectorAll(bCW.join(",")));var F=0,f=0,O=!0,A=p=!1;b={};for(var P=0;P<Z.length;b={isImg:void 0},P++){var W=Z[P];if(!RwW(W))if(b.isImg=W.tagName==="IMG",KHi(W,S.crossDomainLoadedDefault))p=!0,b.isImg&&(O=!0);else{F++;var y=function(t){return function(D){F--;!F&&O&&X(n);t.isImg&&(D=D&&D.type==="error",f--,D||(O=!0),!f&&A&&O&&X(n))}}(b);
H(W,"load",y);b.isImg&&(f++,H(W,"error",y))}}f===0&&(O=!0);Z=null;Z=_.Hg.document.readyState==="complete";if(F===0&&!p&&Z)n=5;else if(F||!p){H(_.Hg,"load",function(){!S.pendingImagesBlockLoad||!f&&O?X(4):A=!0});
return}X(n)}};
FHi=function(p,J,S){if(p)for(var H=0;p!=null&&H<500&&!S(p);++H)p=J(p)};
vci=function(p,J){FHi(p,function(S){try{return S===S.parent?null:S.parent}catch(H){}return null},J)};
fdW=function(p,J){if(p.tagName=="IFRAME")J(p);else{p=p.querySelectorAll("IFRAME");for(var S=0;S<p.length&&!J(p[S]);++S);}};
OC4=function(p){return(p=p.ownerDocument)&&(p.parentWindow||p.defaultView)||null};
ATg=function(p,J,S){try{var H=JSON.parse(S.data)}catch(Z){}if(typeof H==="object"&&H&&H.type==="creativeLoad"){var M=OC4(p);if(S.source&&M){var X;vci(S.source,function(Z){try{if(Z.parent===M)return X=Z,!0}catch(n){}});
X&&fdW(p,function(Z){if(Z.contentWindow===X)return J(H),!0})}}};
PW3=function(p){return typeof p==="string"?document.getElementById(p):p};
ewL=function(){var p={};return p[0]=_.fA(zw4,"current"),p[1]=_.fA($Lv),p[2]=_.fA(oct),p};
QF=function(p,J){return p.left===J.left&&p.top===J.top&&p.width===J.width&&p.height===J.height};
WHi=function(p,J){return{left:Math.max(p.left,J.left),top:Math.max(p.top,J.top),width:Math.max(0,Math.min(p.left+p.width,J.left+J.width)-Math.max(p.left,J.left)),height:Math.max(0,Math.min(p.top+p.height,J.top+J.height)-Math.max(p.top,J.top))}};
Q7s=function(p,J){return{left:Math.round(p.left+J.x),top:Math.round(p.top+J.y),width:p.width,height:p.height}};
CW9=function(p,J,S){if(p&&J!==null&&J!=J.top){if(!J.top)return new _.yF(-12245933,-12245933);J=J.top}try{return(S===void 0?0:S)?(new _.yF(J.innerWidth,J.innerHeight)).round():_.Bs(J).round()}catch(H){return new _.yF(-12245933,-12245933)}};
yTs=function(p,J,S){try{if(p){if(!J.top)return new Ay(-12245933,-12245933,-12245933,-12245933);J=J.top}var H=CW9(p,J,S),M=H.height,X=H.width;if(X===-12245933)return new Ay(X,X,X,X);var Z=U9(s9(J.document)),n=Z.x,b=Z.y;return new Ay(b,n+X,b+M,n)}catch(F){return new Ay(-12245933,-12245933,-12245933,-12245933)}};
BpL=function(p){var J;return(J=p.google_tag_data)!=null?J:p.google_tag_data={}};
ULs=function(p){var J,S;return typeof((J=p.navigator)==null?void 0:(S=J.userAgentData)==null?void 0:S.getHighEntropyValues)==="function"};
gcL=function(p){if(!ULs(p))return null;var J=BpL(p);if(J.uach_promise)return J.uach_promise;p=p.navigator.userAgentData.getHighEntropyValues(s7k).then(function(S){J.uach!=null||(J.uach=S);return S});
return J.uach_promise=p};
ad3=function(p){var J;return tm4(hwi(DLW(kNX(NpX(TpW(dL9(uSL(ldW(new VmL,p.architecture||""),p.bitness||""),p.mobile||!1),p.model||""),p.platform||""),p.platformVersion||""),p.uaFullVersion||""),((J=p.fullVersionList)==null?void 0:J.map(function(S){var H=new qVg;H=_.g2(H,1,S.brand);return _.g2(H,2,S.version)}))||[]),p.wow64||!1)};
Ec4=function(p){var J,S;return(S=(J=gcL(p))==null?void 0:J.then(function(H){return ad3(H)}))!=null?S:null};
YVi=function(p,J){return new Au(function(S){var H=!1,M=Array(J.length);M.fill(void 0);var X=new Set,Z=new Set,n=function(O,A){p.running?(M[A]=O,X.add(A),H||(H=!0,e6(p,function(){H=!1;S.next(_.VX(M))},1))):S.error(new ty(A))},b=function(O,A){Z.add(A);
X.add(A);e6(p,function(){S.error(O)},1)},F=function(O){Z.add(O);
e6(p,function(){Z.size===J.length&&S.complete()},1)},f=J.map(function(O,A){return O.subscribe(function(P){return void n(P,A)},function(P){return void b(P,A)},function(){return void F(A)})});
return function(){f.forEach(function(O){return void O.unsubscribe()})}})};
w0W=function(p,J,S){function H(){if(J.debugChannel){var t=J.debugChannel,D=t.next;var k={creativeId:J.debugNames.getName(S),requiredSignals:M,signals:Object.assign({},X),hasPrematurelyCompleted:Z,errorMessage:n,erroredSignalKey:b};k={specMajor:2,specMinor:0,specPatch:0,timestamp:wW(J.timeProvider.now(),new xF(0,J.timeProvider.timeline)),instanceId:J.debugNames.getName(J.symbol),creativeState:k};D.call(t,k)}}
for(var M=Object.keys(p),X={},Z=!1,n=null,b=null,F={},f=new Set,O=[],A=[],P=_.K(M),W=P.next(),y={};!W.done;y={key$jscomp$394:void 0},W=P.next())y.key$jscomp$394=W.value,W=p[y.key$jscomp$394],W instanceof Ws?(F[y.key$jscomp$394]=W.value,f.add(y.key$jscomp$394),J.debugChannel&&(X[String(y.key$jscomp$394)]=Ayg(W.value))):(W=W.pipe(Hs(function(t,D){return fZW(t)||fZW(D)?!1:t===D}),TH(function(t){return function(D){J.debugChannel&&(X[String(t.key$jscomp$394)]=Ayg(D),H());
var k={};return k[t.key$jscomp$394]=D,k}}(y)),II(function(t){return function(D){if(D instanceof ty)throw new rTX(String(t.key$jscomp$394));
throw D;}}(y)),srs(function(t){return function(){f.add(t.key$jscomp$394)}}(y),function(t){return function(D){b=String(t.key$jscomp$394);
n=String(D);H()}}(y),function(t){return function(){f.has(t.key$jscomp$394)||(Z=!0,H())}}(y))),A.push(y.key$jscomp$394),O.push(W));
(p=Object.keys(X).length>0)&&H();P=YVi(J.queue,O).pipe(II(function(t){if(t instanceof ty)throw new j7X(String(A[t.inputObservableIndex]));throw t;}),TH(function(t){return Object.freeze(Object.assign.apply(Object,[{},
F].concat(_.dW(t))))}));
return(O=O.length>0)&&p?rW(tu(Object.freeze(F)),P):O?P:tu(Object.freeze(F))};
xLL=function(p,J,S,H,M){return p.performanceMonitor.timeExecution.bind(p.performanceMonitor)(733,function(){var X={};try{return J.pipe(II(function(Z){H(Object.assign({},X,{error:Z}));return EK}),qD(function(Z){try{var n=S(p,Z)}catch(F){return H(Object.assign({},X,{error:F instanceof Error?F:String(F)})),EK}var b={};
return w0W(n,p,Z.symbol).pipe(srs(function(F){b=F}),KA(1),ND()).pipe(M,II(function(F){H(Object.assign({},b,{error:F}));
return EK}),M0(void 0),TH(function(){return!0}))})).pipe(ZZ(function(Z){return Z+1},0),II(function(Z){H(Object.assign({},X,{error:Z}));
return EK}))}catch(Z){return H(Object.assign({},X,{error:Z})),EK}})()};
hy=function(p){var J=new Map;if(typeof p!=="object"||p===null)return J;Object.values(p).forEach(function(S){S&&typeof S.extrapolateToNow==="function"&&(J.has(S.clock.timeline)||J.set(S.clock.timeline,S.clock.now()))});
return J};
cTs=function(p,J){return typeof p==="string"?encodeURIComponent(p):typeof p==="number"?String(p):Array.isArray(p)?p.map(function(S){return cTs(S,J)}).join(","):p instanceof xF?p.toString():p&&typeof p.extrapolateToNow==="function"?cTs(p.extrapolateUsingTimestampMap(J).value,J):p===!0?"1":p===!1?"0":p===void 0||p===null?null:p instanceof Ids?LHk(p):[p.top,
p.left,p.top+p.height,p.left+p.width].join()};
pW4=function(p,J){p=Object.entries(p).map(function(S){var H=_.K(S);S=H.next().value;H=H.next().value;H=cTs(H,J);return H===null?"":S+"="+H}).filter(function(S){return S!==""});
return p.length?p.join("&"):""};
HU9=function(p,J){var S=JZk,H=SG3;J=J===void 0?.01:J;return function(M){J>0&&Math.random()<=J&&(p.global.HTMLFencedFrameElement&&p.global.fence&&typeof p.global.fence.reportEvent==="function"&&p.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),M=Object.assign({},M,{errorMessage:M.error instanceof Error&&M.error.message?M.error.message:String(M.error),errorStack:M.error instanceof Error&&M.error.stack?String(M.error.stack):null,errorName:M.error instanceof
Error&&M.error.name?String(M.error.name):null,errorContext:String(p.performanceMonitor.timedFunctionContext),errorEscapedQueryId:M.escapedQueryId}),S(Object.assign({},M,{payloadMapper:function(){return function(X){try{return H(Object.assign({},X))}catch(Z){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),hy(M)).forEach(function(X){p.beaconFactory.makeBeacon(X).sendNow()}))}};
MQi=function(){var p=_.Yp.apply(0,arguments);return function(J){var S=J.pipe(KA(1),ND());J=p.map(function(H){return S.pipe(H,M0(!0))});
return l0(J).pipe(S6(1),L_())}};
XWX=function(){var p=_.Yp.apply(0,arguments);return function(J){var S=J.pipe(KA(1),ND());J=p.map(function(H){return S.pipe(H,M0(!0))});
return rW.apply(null,_.dW(J)).pipe(S6(1),L_())}};
iUL=function(p,J){return function(S){var H=S.pipe(KA(1),ND());S=H.pipe(p,M0(!0));H=H.pipe(OK(J,KA(),ND()),M0(!0));S=l0([S,H]);return F9t(S,H).pipe(S6(1),L_())}};
RWk=function(p,J,S){S(!0)};
KrW=function(p,J){return OK(G6(function(S){var H=p(S),M=J(S),X={};return H&&M&&X?new Au(function(Z){M(H,X,function(n){Z.next(Object.assign({},S,{canEmit:n}));Z.complete()});
return function(){}}):DZ}),j0(function(S){return S.canEmit}))};
ZUk=function(p){var J={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(S){return S.pipe(G6(function(H){return new Au(function(M){function X(){n.disconnect();b.unsubscribe()}
var Z=p.MutationObserver;if(Z&&H.ref!==void 0){var n=new Z(function(F){M.next(F)});
n.observe(H.ref,J);var b=H.JSC$9515_released.subscribe(X);return X}})}))}};
nTi=function(p){if(p.measurementDeferralState===3)return null;if(p.timeOnScreenReason!==void 0){var J=p.creativeFound===!1?"n":null;if(J!==null)return J}return p.geometricMeasurementErrors instanceof ko?"msf":p.contextValidationErrors instanceof N0?"c":p.contextVisibilityKnown===!1?"pv":p.geometricMeasurementErrors||p.contextValidationErrors?"x":null};
bUt=function(p,J){return p.replace(GAi,function(S,H){try{var M=_.T6.get(J,H);if(M==null||M.toString()==null)return S;M=M.toString();if(M==""||!_.Rv(M==null?"":String(M)))return encodeURIComponent(M).replace(/%2C/g,",")}catch(X){}return S})};
msg=function(p,J){var S=Object.assign({},p),H=p.userAgentClientHints;S=(delete S.userAgentClientHints,S);S=p.payloadMapper(S);var M=pW4(S,J);return _.d2(p.urlPrefixes,function(X){var Z="";typeof H==="string"&&(Z="&"+pW4({uach:H},J));var n={};return bUt(X,(n.VIEWABILITY=M,n))+Z})};
JZk=function(p,J){var S=p.payloadMapper(p),H=pW4(S,J);return H?_.d2(p.urlPrefixes,function(M){M=M.indexOf("?")>=0?M:M+"?";M="?&".indexOf(M.slice(-1))>=0?M:M+"&";return M+H}):p.urlPrefixes};
Fr4=function(){return OK(j0(function(p){return p!==void 0}),TH(function(p){return p}))};
vTg=function(p){return OK(TH(function(){return!0}),nA(!1),or(p))};
fDi=function(p){return p.length<=0?EK:l0(p.map(function(J){var S=0;return J.pipe(TH(function(H){return{index:S++,value:H}}))})).pipe(j0(function(J){return J.every(function(S){return S.index===J[0].index})}),TH(function(J){return J.map(function(S){return S.value})}))};
OUX=function(p,J){p.currentState&&(p.previousState=p.currentState);p.currentState=J;p.previousState&&p.previousState.value?(J=Math.max(0,wW(J.timestamp,p.previousState.timestamp)),p.totalTime+=J,p.consecutiveTime+=J):p.consecutiveTime=0;return p};
AZg=function(){return OK(ZZ(OUX,{totalTime:0,consecutiveTime:0}),TH(function(p){return p.totalTime}))};
Pfs=function(){return OK(ZZ(OUX,{totalTime:0,consecutiveTime:0}),TH(function(p){return p.consecutiveTime}))};
zW3=function(p,J){return function(S){return fDi(J.map(function(H){return S.pipe(p(H))}))}};
$sv=function(){var p;return OK(srs(function(J){return void(p=J.timestamp)}),Pfs(),TH(function(J){return{timestamp:p,
value:Math.round(J)}}))};
oTX=function(p,J){return QF(p.topWindowViewportExternalGeometry,J.topWindowViewportExternalGeometry)&&QF(p.elementGeometry,J.elementGeometry)&&QF(p.exposedViewportLocalGeometry,J.exposedViewportLocalGeometry)&&QF(p.intersectionGeometry,J.intersectionGeometry)&&p.elementGeometrySourceName===J.elementGeometrySourceName&&p.measurementRequests===J.measurementRequests&&p.viewportGeometrySourceName===J.viewportGeometrySourceName&&p.viewportLocalAppOffset.x===J.viewportLocalAppOffset.x&&p.viewportLocalAppOffset.y===
J.viewportLocalAppOffset.y};
Cf3=function(p,J){return function(S){return function(H){var M=H.pipe(iI(new z6),ND());H=S.element.pipe(Hs());M=M.pipe(TH(function(X){return X.value}));
return l0([H,M,J]).pipe(TH(function(X){var Z=_.K(X);X=Z.next().value;var n=Z.next().value;Z=Z.next().value;if(X.ref===void 0)var b={top:0,left:0,width:0,height:0};else{b=X.ref.getBoundingClientRect();var F=X.ref,f=p.global,O=new _.uI(0,0),A=lI(_.VF(F));if(k6i(A,"parent")){do{if(A==f)var P=_.q0(F);else P=eWi(F),P=new _.uI(P.left,P.top);O.x+=P.x;O.y+=P.y}while(A&&A!=f&&A!=A.parent&&(F=A.frameElement)&&(A=A.parent))}b={top:O.y,left:O.x,width:b.width,height:b.height}}b=Q7s(b,n.viewportLocalAppOffset);
f=WHi(b,n.exposedViewportLocalGeometry);O=p.timeProvider.now();A=Object;F=A.assign;if(Z!==2||p.inCrossDomainIframe||f.width<=0||f.height<=0)var W=!1;else try{var y=p.document.elementFromPoint(f.left+f.width/2,f.top+f.height/2);W=y?!WrX(y,X):!1}catch(t){W=!1}return{timestamp:O,value:F.call(A,{},n,{elementGeometrySourceName:"geo",intersectionGeometry:W?Q29.intersectionGeometry:f,elementGeometry:b})}}),$o(p.queue))}}};
WrX=function(p,J,S){S=S===void 0?0:S;return p.ref===void 0||J.ref===void 0?!1:p.ref===J.ref||_.ar(J.ref,function(H){return H===p.ref})?!0:J.ref.ownerDocument&&J.ref.ownerDocument.defaultView&&J.ref.ownerDocument.defaultView===J.ref.ownerDocument.defaultView.top?!1:S<10&&J.ref.ownerDocument&&J.ref.ownerDocument.defaultView&&J.ref.ownerDocument.defaultView.frameElement?WrX(p,new E9(J.ref.ownerDocument.defaultView.frameElement),S+1):!0};
Usi=function(p){return function(J){return J.pipe(p.ResizeObserver?yZX(p):BrX(p),KA(1),ND())}};
yZX=function(p){return function(J){return J.pipe(G6(function(S){var H=p.ResizeObserver;if(!H||S.ref===void 0)return tu(Q29.elementGeometry);var M=(new Au(function(X){function Z(){S.ref!==void 0&&n.unobserve(S.ref);n.disconnect();b.unsubscribe()}
if(S.ref===void 0)return X.complete(),function(){};
var n=new H(function(F){F.forEach(function(f){X.next(f)})});
n.observe(S.ref);var b=S.JSC$9515_released.subscribe(Z);return Z})).pipe(cZ(p.performanceMonitor,736),TH(function(X){return X.contentRect}));
return rW(tu(S.ref.getBoundingClientRect()),M)}),Hs(QF))}};
BrX=function(p){return function(J){var S=J.pipe(ZUk(p)),H=p.onResize;S=rW(J.pipe(TH(function(){return Mmv("resize")})),S,H);
return l0(J,S).pipe(cZ(p.performanceMonitor,737),TH(function(M){M=_.K(M).next().value;return M.ref===void 0?void 0:M.ref.getBoundingClientRect()}),Fr4(),Hs(QF))}};
tQ9=function(p,J){var S=s2i(p,J).pipe(KA(1),ND());return function(H){return function(M){M=M.pipe(G6(function(X){return X.element}),Hs());
return l0([S,M]).pipe(G6(function(X){var Z=_.K(X);X=Z.next().value;Z=Z.next().value;return gTv(p,X.intersectionObserver,Usi(p),X.observations,H,X.flushRecords,Z)}),$o(p.queue))}}};
hWW=function(p){return TH(function(J){return J.value.viewportGeometrySourceName!=="nio"?J:Object.assign({},J,{value:Object.assign({},J.value,{exposedViewportLocalGeometry:Yo(p,!0),topWindowViewportExternalGeometry:Yo(p,!0)})})})};
DsX=function(p,J){return tu(J).pipe(p,TH(function(){return J}))};
s2i=function(p,J){return p.timeProvider.timeline!==kAk?hu(new ko(2)):p.MutationObserver?typeof IntersectionObserver==="undefined"?hu(new ko(0)):(new Au(function(S){var H=new z6,M=new w2(H.next.bind(H),{threshold:[].concat(_.dW(J))});S.next({observations:H.pipe(cZ(p.performanceMonitor,735)),intersectionObserver:M,flushRecords:function(X){X=M.takeRecords(X);X.length>0&&H.next(X)}})})).pipe(S6(1),KA(1),ND()):hu(new ko(1))};
NrX=function(p){return kHk(p.sort(function(J,S){return J.time-S.time}),EFW)};
gTv=function(p,J,S,H,M,X,Z){return new Au(function(n){function b(){W||(W=!0,Z.ref!==void 0&&J.unobserve(M,Z.ref),f.unsubscribe(),P.unsubscribe(),A.unsubscribe(),y.unsubscribe())}
if(Z.ref!==void 0){Tri(J,M);J.observe(M,Z.ref);var F=new xo({timestamp:p.timeProvider.now(),value:Object.assign({},Q29,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),f=H.pipe(qD(function(t){return NrX(t)}),j0(function(t){return t.target===Z.ref}),TH(function(t){return{timestamp:new xF(t.time,kAk),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:t.rootBounds||cs,topWindowViewportExternalGeometry:t.rootBounds||Yo(p,!0),measurementRequests:O,elementGeometrySourceName:"nio",intersectionGeometry:t.intersectionRect,elementGeometry:t.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:t.isIntersecting,isV2Visible:t.isVisible}}}),iI(F),ND()).subscribe(n),O=new z6,A=O.subscribe(function(){X(M);
n.next({timestamp:p.timeProvider.now(),value:F.value.value});Z.ref!==void 0&&(J.unobserve(M,Z.ref),J.observe(M,Z.ref))}),P=DsX(S,Z).subscribe(function(){O.next()}),W=!1,y=Z.JSC$9515_released.subscribe(function(){return b()});
return b}})};
dsX=function(p,J){var S=p.getOnBackgrounded().pipe(TH(function(){return"b"}));
return F9t(J,S).pipe(S6(1),or(p.queue))};
Ir=function(p){return function(J){var S;return J.pipe(srs(function(H){return void(S=H.timestamp)}),TH(function(H){return H.value}),p,TH(function(H){return{timestamp:S,
value:H}}))}};
u4W=function(p){return p.intersectionGeometry.width*p.intersectionGeometry.height/(p.elementGeometry.width*p.elementGeometry.height)};
LA=function(p,J,S){S=S===void 0?function(H,M){return H===M}:S;
return p.timestamp.equals(J.timestamp)&&S(p.value,J.value)};
JT=function(p,J){return J.pipe(TH(function(S){return new pC(p.timeProvider,{timestamp:p.timeProvider.now(),value:S})}))};
lDw=function(p){return function(J){return J.pipe(goX(p),TH(function(S){var H=_.K(S);S=H.next().value;H=H.next().value;var M=S.value;return{timestamp:S.timestamp,value:M>=1?!0:M<=0?!1:M>=H}}))}};
qGt=function(){return OK(j0(function(p,J){return J>0}),VQg,nA(-1),Hs())};
aDt=function(p,J,S){return p?l0([J,S]).pipe(j0(function(H){var M=_.K(H);H=M.next().value;M=M.next().value;return H.timestamp.equals(M.timestamp)}),TH(function(H){var M=_.K(H);
H=M.next().value;M=M.next().value;return H.value>M.value?H:M})):J};
rZX=function(p){return function(J){var S=J.pipe(ETX),H=J.pipe(YGs);return p instanceof Au?p.pipe(G6(function(M){return aDt(M,S,H)})):aDt(p.value,S,H)}};
HVw=function(p,J,S,H){var M=H.geometryIsOccluded,X=H.exposureThreshold,Z=H.wasLargeAdAtRender,n=H.allowLargeAdThreshold,b=H.largeAdExposureThreshold,F=H.mayUseViewportShareExposure,f=H.hasMeasurementStarted;H=H.useIntersectionObserverV2;J=j2g(p,S,J);S=wWX(p,S);H=xsX(J,H);var O=cZi(p,M,F,J),A=O.pipe(TH(function(q){return q.value}),Hs(),or(p),ZZ(function(q,w){return Math.max(q,w)},0)),P=O.pipe(TH(function(q){return q.value}),qGt(),or(p)),W=J.pipe(IDX,TH(function(q){return q.value}),S6(2),Hs(),or(p));
Z=Lr3(p,J,Z,n);var y=Z.pipe(nA(!1),Hs(),TH(function(q){return q?b:X}));
n=O.pipe(lDw(y),Hs(),or(p));var t=l0([n,J]).pipe(j0(function(q){var w=_.K(q);q=w.next().value;w=w.next().value;return q.timestamp.equals(w.timestamp)}),TH(function(q){var w=_.K(q);
q=w.next().value;w=w.next().value;return{visible:q.value,geometry:w.value.elementGeometry}}),ZZ(function(q,w){return!w.visible&&q.visible?q:w},{visible:!1,
geometry:cs}),TH(function(q){return q.geometry}),nA(cs),or(p),Hs(QF));
F=F instanceof Au?F.pipe(Hs(),Jy()):DZ;y=l0([F,y]).pipe(Jy());var D=J.pipe(j0(function(q){return q.value.viewportGeometrySourceName!=="ns"&&q.value.elementGeometrySourceName!=="ns"}),ZZ(function(q){return q+1},0),nA(0),or(p)),k=S.pipe(Jy(!0),nA(!1),or(p));
k=l0([f,k]).pipe(TH(function(q){var w=_.K(q);q=w.next().value;w=w.next().value;return q&&!w}),or(p));
var E=J.pipe(p5i,Hs()),a=E.pipe(TH(function(q){return q.value}),ZZ(function(q,w){return Math.max(q,w)},0),Hs(),or(p));
p=E.pipe(TH(function(q){return q.value}),qGt(),or(p));
return{shouldResetExposureSignals:F,shouldResetViewabilitySignals:y,geometrySignals:{readyGeometryWithDefault:J,measurementStrategy:J.pipe(J4k),creativePosition:t.pipe(Hs(QF)),visible:n.pipe(Hs(LA)),timestampedExposure:O.pipe(Hs(LA)),maximumExposure:A,minimumExposure:P,browserSize:J.pipe(Sgs,Hs(_.xs)),timestampedScreenShare:E,maxScreenShare:a,minScreenShare:p,geometricMeasurementErrors:S,measurementRequests:J.pipe(TH(function(q){return q.value.measurementRequests})),
isLargeAd:Z,geometryIsOccluded:M,hasMeasurementStarted:f,geometryMeasurable:k,validMeasurementCount:D,loadTimeExposure:W,v2VisibilityBitVector:H}}};
wWX=function(p,J){return J.pipe(j0(function(){return!1}),TH(function(S){return S}),II(function(S){return Sm(new Ws(S),p)}))};
j2g=function(p,J,S){return J.pipe(bAv(DZ),or(p)).pipe(Hs(function(H,M){return LA(H,M,oTX)}),nA({timestamp:S.now(),
value:Q29}),or(p))};
cZi=function(p,J,S,H){S=H.pipe(rZX(S),Ir(TH(function(M){return Math.round(M*100)/100})),or(p));
return J instanceof Ws?S:l0([S,J]).pipe(TH(function(M){var X=_.K(M);M=X.next().value;X=X.next().value;return{timestamp:X.timestamp.maximum(M.timestamp),value:X.value?0:M.value}}),Hs(LA),or(p))};
Lr3=function(p,J,S,H){J=[J.pipe(TH(function(M){return M.value.elementGeometry.width*M.value.elementGeometry.height>=242500}))];
S instanceof Au&&J.push(S.pipe(TH(function(M){return!!M})));
S=l0(J);return H?S.pipe(TH(function(M){return M.some(function(X){return X})}),nA(!1),Hs(),or(p)):Sm(new Ws(!1),p)};
xsX=function(p,J){p=l0([p,J]).pipe(TH(function(M){var X=_.K(M);M=X.next().value;if(X.next().value&&M.value.isIntersecting)return M.value.isV2Visible}),Hs());
var S=p.pipe(TH(function(M){return M===void 0?!0:M}),ZZ(function(M,X){return M||!X},!1)),H=p.pipe(ZZ(function(M,X){return X===void 0?M:X?!1:M!=null?M:!0},void 0),TH(function(M){return!!M}));
return l0([J,voX(p,S,H)]).pipe(TH(function(M){var X=_.K(M);M=X.next().value;var Z=_.K(X.next().value);X=Z.next().value;var n=Z.next().value;Z=Z.next().value;var b=0;if(!M)return 0;if(X===void 0)return 16;X&&(b|=1);X||(b|=2);n&&(b|=4);Z&&(b|=8);return b}))};
ZV9=function(p,J,S,H,M){var X=MnX.timeThresholdMs;var Z=Z===void 0?new X5X(J,H):Z;return(new Au(function(n){var b=S.pipe(nA(void 0),G6(function(){return iVs(M)})).pipe(TH(function(F){var f=F.value;
F=F.timestamp;var O=f.visible;f=f.consecutiveViewTime;var A=f>=X;A||!O?RYi(Z):(F=Math.max(0,wW(J.now(),F)),KTW(Z,Math.max(0,X-f-F)));return A}),ZZ(function(F,f){return f||F},!1),Hs()).subscribe(n);
return function(){Z.dispose();b.unsubscribe()}})).pipe(bI(function(n){return!n},!0),or(p))};
iVs=function(p){return fDi([p,p.pipe($sv())]).pipe(TH(function(J){var S=_.K(J);J=S.next().value;S=S.next().value;return{timestamp:J.timestamp,value:{visible:J.value,consecutiveViewTime:S.value}}}),Hs(function(J,S){return LA(J,S,function(H,M){return H.consecutiveViewTime===M.consecutiveViewTime&&H.visible===M.visible})}))};
nvs=function(){return OK(Pfs(),ZZ(function(p,J){return Math.max(p,J)},0),TH(function(p){return Math.round(p)}))};
GVW=function(p){return OK(lDw(tu(p)),nvs())};
bVW=function(p,J){return J instanceof Au?J.pipe(G6(function(S){return(S=S?15:null)?hu(new ko(S)):p})):(J=J.value?15:null)?hu(new ko(J)):p};
mzW=function(p){var J=new ko(13);if(p.length<1)return{chain:EK,capturedErrors:EK};var S=new z6,H=p[0];return{chain:p.slice(1).reduce(function(M,X){return M.pipe(II(function(Z){S.next(Z);return X}))},H).pipe(II(function(M){S.next(M);
return hu(J)}),iI(new z6),ND()),
capturedErrors:S}};
FTL=function(p,J){var S=p.pipe(iI(new z6),ND());return G6(function(H){return S.pipe(J(H))})};
fJt=function(p,J){if(p.inCrossDomainIframe)return hu(new ko(6));var S=new z6;return rW(tu({}),J,S).pipe(TH(function(){return{timestamp:p.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:vv9(p),topWindowViewportExternalGeometry:Yo(p,!0),measurementRequests:S,viewportLocalAppOffset:{x:0,y:0}}}}),$o(p.queue))};
vv9=function(p){var J=Yo(p,!1);if(!p.inIframe||!N2i(p.global.parent)||p.global.parent===p.global)return J;var S=new H0(p.global.parent,p.debugChannel);S.beaconFactory=p.beaconFactory;S=vv9(S);p=p.global.frameElement.getBoundingClientRect();return WHi(Q7s(WHi(S,p),{x:J.left-p.left,y:J.top-p.top}),J)};
OVw=function(p){if(p.prerendering)return 3;var J;return(J={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[p.visibilityState||p.webkitVisibilityState||p.mozVisibilityState||""])!=null?J:0};
A4w=function(p){return p.document.JSC$9526_onVisibilityChange.pipe(TH(function(J){return J==="visible"}),Hs(),or(p.queue))};
Pe4=function(p,J,S){var H;return J.pipe(Hs(),G6(function(M){return S.pipe(TH(function(){if(!H){H=!0;try{M.next()}finally{H=!1}}return!0}))}),nA(!1),or(p.queue))};
zY9=function(p){return OK(Ir(TH(function(J){return J>=1?!0:J<=0?!1:J>=p})),AZg(),TH(function(J){return Math.round(J)}))};
ovL=function(p,J,S,H,M){var X=$zs;if(X.length>1)for(var Z=0;Z<X.length-1;Z++)if(X[Z]<X[Z+1])throw Error();Z=M.pipe(nA(void 0),G6(function(){return S.pipe($sv())}),Hs(),or(p));
M=M.pipe(nA(void 0),G6(function(){return S.pipe(nvs())}),Hs(),or(p));
return{totalMeasurementTime:H.pipe(nA(void 0),G6(function(){return J.pipe(TH(function(n){return{timestamp:n.timestamp,value:!0}}),AZg())}),Hs(),or(p)),
totalUnviewedTime:H.pipe(nA(void 0),G6(function(){return J.pipe(TH(function(n){return{timestamp:n.timestamp,value:n.value===0}}),AZg())}),Hs(),or(p)),
maxTimeOnScreen:H.pipe(nA(void 0),G6(function(){return J.pipe(zW3(GVW,X))}),Hs(_.xs),or(p)),
timeOnScreen:H.pipe(nA(void 0),G6(function(){return J.pipe(zW3(zY9,X),TH(function(n){return n.map(function(b,F){return F>0?b-n[F-1]:b})}))}),Hs(_.xs),or(p)),
maxConsecutiveViewTime:M,consecutiveViewTime:Z.pipe(Hs(LA),or(p))}};
WTX=function(p){var J=!0;J=J===void 0?!1:J;return OK(G6(function(S){return eYW(p.document,S,J)}),or(p.queue))};
Qdi=function(p,J,S){var H=S.pipe(TH(function(M){return{value:M,timestamp:p.timeProvider.now()}}),Hs(LA));
return J instanceof Au?J.pipe(Hs(),G6(function(M){return M?Sm(new Ws({value:!1,timestamp:p.timeProvider.now()}),p.queue):H})):J.value===!1?H:new Ws(!1)};
Cet=function(p,J,S,H,M,X,Z){var n=MnX;J=J instanceof Au?J.pipe(nA(!1),Hs()):J;var b=!p.isMobile();S=Qdi(p,S,H);p=Z.measurableCreative.pipe(vTg(p.queue));return Object.assign({},n,{geometryIsOccluded:S,wasLargeAdAtRender:M,allowLargeAdThreshold:b,mayUseViewportShareExposure:J,hasMeasurementStarted:p,useIntersectionObserverV2:X})};
BYW=function(p,J,S,H,M,X){var Z=1;X=X===void 0?!0:X;Z=Z===void 0?.01:Z;var n=n===void 0?p.timeProvider.intervalObservable(100).pipe(or(p.queue)):n;return p.performanceMonitor.timeExecution(916,function(){return y4s(p,J.pipe($o(p.queue)),S.pipe($o(p.queue)),H,M,X,Z,n)})()};
y4s=function(p,J,S,H,M,X,Z,n){var b=A4w(p).pipe(TH(function(f){return!f})),F=new Uzw(p,[new sd9(p,$zs),
new gvi(p,n)]);n=MQi(tnk,hYg);return xLL(p,J,function(f,O){var A=Sm(new Ws(O.element),f.queue).pipe(WTX(f),or(f.queue)),P={loadedElement:A,shouldMeasure:A.pipe(Jy(!0)),measurableCreative:A.pipe(TH(function(q){var w=w===void 0?Symbol():w;return Object.freeze({symbol:w,element:Sm(new Ws(q),f.queue)})})),
creativeSearchResult:Sm(new Ws("mue"),f.queue)},W=new Ws(!1),y=new Ws(!1),t=new Ws(17),D=new Ws(!1),k=new Ws(!1),E=Sm(ML,f.queue);W=F.buildGeometrySource(P,{inApp:W,useV2:!1,requestSource:Sm(t,f.queue)}).geometrySource;P=Cet(f,D,y,b,k,E,P);y=HVw(f.queue,f.timeProvider,W,P);P=y.geometrySignals;D=y.shouldResetViewabilitySignals;y=ovL(f.queue,P.timestampedExposure,P.visible,y.shouldResetExposureSignals,D);D=ZV9(f.queue,f.timeProvider,D,P.measurementRequests,P.visible);k=S.pipe(j0(function(q){return q===
O.element.ref}),TH(function(){return"ur"}));
E=PIv(f.timeProvider,M).pipe(Jy("t"));k=dsX(f,rW(k,E));E=Pe4(f,P.measurementRequests,k.pipe(j0(function(q){return q!==null})));
W=k.pipe(j0(function(q){return q!==null}),TH(function(){return OVw(f.global.document)===1}));
var a=Dz3(f.document);return Object.assign({},{beaconFactory:new Ws(f.beaconFactory),context:new Ws(f),inferredPingId:new Ws("lidar2"),timeOnScreenPingId:new Ws("lidartos"),binaryContext:new Ws(17),binaryVersion:new Ws(H),requestSource:t,contextValidationErrors:new Ws(f.validate()?null:new N0),contextVisibilityKnown:new Ws(a),payloadMapper:new Ws(SG3),endOfSessionReason:k,timeOnScreenReason:k,requestMeasurementOnEndOfSession:E,hasImpressionFired:kVX,crossDomainIframeState:new Ws(f.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:ML,inFetchLaterBeaconExperiment:ML,isTurtlex:ML,turtlexReportEventData:new Ws(""),reportFencedFrameEvent:DZ,isViewableAttributionEnabled:ML,inViewableAttributionExperiment:new Ws(0),fetchBeaconFactory:DZ,supportsPendingBeacon:ML,supportsFetchLater:ML,emit:new Ws(RWk),beginToRenderEvent:new Ws(Symbol()),activeViewUnmeasurableEvent:new Ws(Symbol()),activeViewViewableEvent:new Ws(Symbol()),creativeFound:kVX,immediateUrlPrefixes:new Ws(O.immediateUrls),timeOnScreenUrlPrefixes:new Ws(O.timeOnScreenUrls),
cpmavUrls:DZ,viewableRelayUrls:DZ,measurementDeferralState:new Ws(2),urlSerializer:new Ws(msg),viewUrlSerializer:new Ws(NYs),isCreativeLoaded:A.pipe(vTg(f.queue)),pageVisible:b.pipe(TH(function(q){return!q})),
eosPageVisible:W,timestampedExposureHistory:P.timestampedExposure.pipe(ZZ(function(q,w){q.push(w);return q},[]))},P,{viewable:JT(f,D),
maxTimeOnScreen:JT(f,y.maxTimeOnScreen),timeOnScreen:JT(f,y.timeOnScreen),maxConsecutiveViewTime:JT(f,y.maxConsecutiveViewTime),consecutiveViewTime:y.consecutiveViewTime.pipe(TH(function(q){return new pC(f.timeProvider,q)})),
totalMeasurementTime:JT(f,y.totalMeasurementTime),totalUnviewedTime:JT(f,y.totalUnviewedTime),userAgentClientHints:HCs(f),clientOrderPingCounter:new Ws(new Ids)})},HU9(p,Z),XWX(X?iUL(n,TY9):iUL(n,dz9),uat))};
lJs=function(p){var J=_.Yp.apply(1,arguments).filter(Boolean).join("&");if(!J)return p;var S=p.match(/[?&]adurl=/);return S?p.slice(0,S.index+1)+J+"&"+p.slice(S.index+1):p+(p.indexOf("?")<0?"?":"&")+J};
XS=function(p,J){return J?"&"+p+"="+encodeURIComponent(J):""};
VnW=function(){try{var p,J;return!!((p=window)==null?0:(J=p.top)==null?0:J.location.href)&&!1}catch(S){return!0}};
_.iW=function(p){p&&typeof p.dispose=="function"&&p.dispose()};
_.R7=function(p){for(var J=0,S=arguments.length;J<S;++J){var H=arguments[J];_.qW(H)?_.R7.apply(null,H):_.iW(H)}};
aJi=function(){var p=qgi();p=p===void 0?"bevasrsg":p;return new Promise(function(J){var S=window===window.top?window:VnW()?window:window.top,H=S[p],M;((M=H)==null?0:M.bevasrs)?J(new KC(H.bevasrs)):(H||(H={},H=(H.nqfbel=[],H),S[p]=H),H.nqfbel.push(function(X){J(new KC(X))}))})};
Evv=function(p){var J={c:p.jr,e:p.dap,mc:p.f9O,me:p.boK};p.iA&&(J.co={c:p.iA.he5,a:p.iA.esJ,s:p.iA.rfC});return J};
YgX=function(p){var J,S,H={jr:p.c,dap:p.e,f9O:(J=p.mc)!=null?J:!1,boK:(S=p.me)!=null?S:!1};p.co&&(H.iA={he5:p.co.c,esJ:p.co.a,rfC:p.co.s});return H};
r4s=function(p){return function(){var J;return _.G(function(S){if(S.nextAddress==1)return S.yield(p(),2);J=S.yieldResult;return S.return({f:function(){return J.zHO()},
c:function(H){return J.ppW(H)},
m:function(H){return J.ku(YgX(H))},
mws:function(H){return J.wFM(YgX(H))}})})}};
jdw=function(p,J){var S=qgi();S=S===void 0?"bevasrsg":S;J={s:function(X){var Z;return p.snapshot(Object.assign({},X.c&&{jr:X.c},X.s&&{az5:X.s},{hjx:(Z=X.p)!=null?Z:!0}))},
e:function(X){var Z;return void((Z=p.zld)==null?void 0:Z.call(p,X))},
c:function(X,Z){return p.zAc(X,Z)},
p:p.xMH,l:function(){return p.xLp()},
wpc:J?r4s(J):void 0};var H=window===window.top?window:VnW()?window:window.top,M=H[S];if(M){M.bevasrs=J;if(M.nqfbel!==void 0)for(S=_.K(M.nqfbel),H=S.next();!H.done;H=S.next())H=H.value,H(J);M.nqfbel=void 0}else M={},M=(M.bevasrs=J,M.nqfbel=void 0,M),H[S]=M};
xzk=function(p){var J=J===void 0?51:J;var S=[];_.Zd(p,w5i,6,_.GN()).forEach(function(H){_.bW(H,2)<=J&&S.push(_.bW(H,1))});
return S};
c4t=function(p){var J=J===void 0?51:J;var S=[];_.Zd(p,w5i,6,_.GN()).forEach(function(H){_.bW(H,2)>J&&S.push(_.bW(H,1))});
return S};
IJt=function(p){p.then(function(){},function(){})};
mH=function(p){return{fieldType:1,fieldName:p}};
FS=function(p){return{fieldType:2,fieldName:p}};
_.v0=function(p){return{fieldType:3,fieldName:p}};
LTW=function(){function p(){M[0]=1732584193;M[1]=4023233417;M[2]=2562383102;M[3]=271733878;M[4]=3285377520;f=F=0}
function J(O){for(var A=Z,P=0;P<64;P+=4)A[P/4]=O[P]<<24|O[P+1]<<16|O[P+2]<<8|O[P+3];for(P=16;P<80;P++)O=A[P-3]^A[P-8]^A[P-14]^A[P-16],A[P]=(O<<1|O>>>31)&4294967295;O=M[0];var W=M[1],y=M[2],t=M[3],D=M[4];for(P=0;P<80;P++){if(P<40)if(P<20){var k=t^W&(y^t);var E=1518500249}else k=W^y^t,E=1859775393;else P<60?(k=W&y|t&(W|y),E=2400959708):(k=W^y^t,E=3395469782);k=((O<<5|O>>>27)&4294967295)+k+D+E+A[P]&4294967295;D=t;t=y;y=(W<<30|W>>>2)&4294967295;W=O;O=k}M[0]=M[0]+O&4294967295;M[1]=M[1]+W&4294967295;M[2]=
M[2]+y&4294967295;M[3]=M[3]+t&4294967295;M[4]=M[4]+D&4294967295}
function S(O,A){if(typeof O==="string"){O=unescape(encodeURIComponent(O));for(var P=[],W=0,y=O.length;W<y;++W)P.push(O.charCodeAt(W));O=P}A||(A=O.length);P=0;if(F==0)for(;P+64<A;)J(O.slice(P,P+64)),P+=64,f+=64;for(;P<A;)if(X[F++]=O[P++],f++,F==64)for(F=0,J(X);P+64<A;)J(O.slice(P,P+64)),P+=64,f+=64}
function H(){var O=[],A=f*8;F<56?S(n,56-F):S(n,64-(F-56));for(var P=63;P>=56;P--)X[P]=A&255,A>>>=8;J(X);for(P=A=0;P<5;P++)for(var W=24;W>=0;W-=8)O[A++]=M[P]>>W&255;return O}
for(var M=[],X=[],Z=[],n=[128],b=1;b<64;++b)n[b]=0;var F,f;p();return{reset:p,update:S,digest:H,digestString:function(){for(var O=H(),A="",P=0;P<O.length;P++)A+="0123456789ABCDEF".charAt(Math.floor(O[P]/16))+"0123456789ABCDEF".charAt(O[P]%16);return A}}};
XOW=function(p,J){J=J===void 0?pOW:J;if(!Jlv){var S;p=(S=p.navigator)==null?void 0:S.userAgentData;if(!p||typeof p.getHighEntropyValues!=="function"||p.brands&&typeof p.brands.map!=="function")return Promise.reject(Error("ua"));Svg((p.brands||[]).map(function(M){var X=new HQi;X=_.g2(X,1,M.brand);return _.g2(X,2,M.version)}));
typeof p.mobile==="boolean"&&_.fC(MBi,2,p.mobile);Jlv=p.getHighEntropyValues(J)}var H=new Set(J);return Jlv.then(function(M){var X=MBi.clone();H.has("platform")&&_.g2(X,3,M.platform);H.has("platformVersion")&&_.g2(X,4,M.platformVersion);H.has("architecture")&&_.g2(X,5,M.architecture);H.has("model")&&_.g2(X,6,M.model);H.has("uaFullVersion")&&_.g2(X,7,M.uaFullVersion);return X.serialize()}).catch(function(){return MBi.serialize()})};
OV=function(p,J,S,H){this.initialValue_=p;this.maxValue_=J;this.currBaseValue_=this.currValue_=p;this.randomFactor_=S||0;this.backoffFactor_=H||2};
AT=function(p){this.src=p;this.listeners={};this.typeCount_=0};
ZQL=function(){for(var p;p=iQs.remove();){try{p.fn.call(p.scope)}catch(J){MW(J)}RXk.put(p)}Kds=!1};
_.naX=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}};
GGw=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""}};
_.bQW=function(){};
$V4=function(p,J,S,H){p=mVi(Fdg(vas(new _.P0(1828,"0"),p),new fL4)).disableWithCredentials();J.length&&OQv(p,Alg(new PhX,J));H!==void 0&&(p.destinationUrl=H);var M=new zXX(1828,"","",!1,"",p.build());_.$c(M,p);var X=new o7({flush:function(Z){try{M.flush(Z)}catch(n){S(n)}}});
X.addOnDisposeCallback(function(){setTimeout(function(){try{X.snapshotAndFlush()}finally{M.dispose()}})});
X.invocationLimit=1E5;X.flushInterval=3E4;X.JSC$9942_flushTimer.setInterval(3E4);return X};
em=function(){var p,J,S;return(S=(p=globalThis.performance)==null?void 0:(J=p.now)==null?void 0:J.call(p))!=null?S:Date.now()};
Wd9=function(p,J){if(p.disable)return new oaL;J=J?xzk(J):[];p={yB:p.yB,oqs:p.lc7,wrW:p.p2L,destinationUrl:p.destinationUrl,bt7:p.bt7,wGs:p.wGs};J=J===void 0?[]:J;return new eXg(p,J)};
Qyt=function(p){if(!p)return null;p=_.W0(p,2);return p===null||p===void 0?null:xp(p)};
_.Ch3=function(p){if(!p)return null;p=_.W0(p,4);return p===null||p===void 0?null:_.sq(p)};
UVv=function(p,J){return J?yl9(J):p?B1s(p):Promise.resolve()};
yl9=function(p){return new Promise(function(J,S){var H=_.Q0("SCRIPT"),M=_.Ch3(p);_.RI(H,M);H.onload=function(){_.CC(H);J()};
H.onerror=function(){_.CC(H);S(Error("Fa"))};
(y0("HEAD")[0]||document.documentElement).appendChild(H)})};
B1s=function(p){return new Promise(function(J){var S=_.Q0("SCRIPT");if(p){var H=_.W0(p,6);H=H===null||H===void 0?null:_.MD(H)}else H=null;_.i0(S,H);(y0("HEAD")[0]||document.documentElement).appendChild(S);_.CC(S);J()})};
B0=function(p,J,S){var H,M=new Promise(function(X){H=setTimeout(X,J)});
return Promise.race([p.finally(function(){return void clearTimeout(H)}),
M.then(S)])};
syk=function(p,J){try{return globalThis.sessionStorage.setItem(p,J),!0}catch(S){return!1}};
gas=function(p,J,S,H){J=J===void 0?0:J;S=S===void 0?p.length:S;var M=0;for(H&&(M=gas(H));J<S;J++)H=typeof p==="string"?p.charCodeAt(J):p[J],M=tBk(31,M)+H|0;return M};
hXi=function(p,J){return[gas(p,0,p.length>>1,J),gas(p,p.length>>1)]};
DVW=function(p){var J=_.K(hXi(p,UV));p=J.next().value;J=J.next().value;return p.toString(16)+J.toString(16)};
kGX=function(p,J){var S=hXi(J);p=new Uint32Array(p.buffer);J=p[0];var H=_.K(S);S=H.next().value;H=H.next().value;for(var M=1;M<p.length;M+=2){for(var X=J,Z=M,n=S,b=H,F=0;F<22;F++)Z=Z>>>8|Z<<24,Z+=X|0,Z^=n+38293,X=X<<3|X>>>29,X^=Z,b=b>>>8|b<<24,b+=n|0,b^=F+38293,n=n<<3|n>>>29,n^=b;X=[X,Z];p[M]^=X[0];M+1<p.length&&(p[M+1]^=X[1])}};
N1W=function(p,J,S,H,M){var X=(4-(UV.length+S.length)%4)%4,Z=new Uint8Array(4+X+UV.length+4+S.length),n=new DataView(Z.buffer),b=0;n.setUint32(b,Math.random()*4294967295);b=b+4+X;Z.set(UV,b);b+=UV.length;n.setUint32(b,M);Z.set(S,b+4);kGX(Z,H);return p.insert(J,function(F){return void globalThis.sessionStorage.removeItem(F)})?syk(J,_.gM(Z))?"s":"t":"i"};
T1g=function(p,J){var S=globalThis.sessionStorage.getItem(p);if(!S)return["m"];try{var H=_.cg(S);kGX(H,J)}catch(M){return globalThis.sessionStorage.removeItem(p),["c"]}for(J=4;J<7&&H[J]===0;)J++;for(S=0;S<UV.length;S++)if(H[J++]!==UV[S])return globalThis.sessionStorage.removeItem(p),["d"];S=(new DataView(H.buffer)).getUint32(J);return Math.floor(Date.now()/1E3)>=S?(globalThis.sessionStorage.removeItem(p),["e"]):["a",new Uint8Array(H.buffer,J+4)]};
dVi=function(p){return globalThis.TextEncoder?(new TextEncoder).encode(p):_.sV(p)};
u9t=function(p){var J=p,S;return function(){if(J){var H=J;J=void 0;S=H.apply(this,arguments)}return S}};
VBX=function(p){return kU(function(J){if(J instanceof p)return!0;var S,H,M=J==null?void 0:(S=J.ownerDocument)==null?void 0:(H=S.defaultView)==null?void 0:H[p.name];return lLX(M)&&J instanceof M})};
_.Dd=function(p,J,S){_.gp.call(this);this.JSC$10156_listener_=p;this.JSC$10156_interval_=J||0;this.handler_=S;this.callback_=(0,_.tT)(this.JSC$10158_doAction_,this)};
_.kc=function(p){p=qvv(p);return _.sq(p)};
qvv=function(p){return p===null?"null":p===void 0?"undefined":p};
EaL=function(p){if(p&&p.focus)if(p!==document.activeElement)p.focus();else return aLi(function(){return _.G(function(J){document.activeElement&&document.activeElement.blur();return J.return(aLi(function(){p.focus()}))})})};
_.YvL=function(p){var J=J===void 0?5:J;setTimeout(function(){var S;return _.G(function(H){H.nextAddress==1&&(S=document.activeElement);if(H.nextAddress!=5)return(document.activeElement===S||document.activeElement===document.body)&&J>=0&&p?H.yield(EaL(p),5):H.jumpTo(0);if(document.activeElement===p)return H.return();p=p.parentElement;--J;return H.jumpTo(2)})},15)};
aLi=function(p){return new Promise(function(J){requestAnimationFrame(function(){J(p())})})};
jyW=function(p){if(_.TN)p(_.TN);else{var J;((J=rls)!=null?J:rls=[]).push(p)}};
uW=function(){!_.TN&&_.dp&&_.wOg(_.dp());return _.TN};
_.wOg=function(p){_.TN=p;var J;(J=rls)==null||J.forEach(jyW);rls=void 0};
_.lW=function(p){_.TN&&_.TN.beforeLoadModuleCode(p)};
_.V0=function(){_.TN&&_.TN.JSC$11210_setLoaded()};
qL=function(p){return hMW(p)?Number(p):String(p)};
xV9=function(p){this.action=p;this.wfv=!1};
clX=function(p,J){xV9.call(this,"set-drive-options");this.appId=p;this.appOrigin=J};
ILW=function(p){xV9.call(this,"visibility");this.visible=p};
Ldw=function(p,J,S){a7.call(this,p,J,S)};
pBw=function(p){Yc.call(this,p)};
Jqg=function(p){p=p&&p.getWindow()||window;return p.gadgets&&p.gadgets.rpc};
HOk=function(p,J){var S=J&&J.getWindow()||window;if(Jqg(J))p();else if(S33)S33.push(p);else var H=S33=[p],M=S.setInterval(function(){if(Jqg(J)){S.clearInterval(M);for(var X=0;X<H.length;X++)H[X]();S33=null}},100)};
XBi=function(p,J){var S=new rp(p);_.$c(J,S);var H={passive:!1};J.listen(S,"mousewheel",function(M){return void M9W(p,M)},H).listen(p,"scroll",function(M){return void M9W(p,M)},H)};
M9W=function(p,J){var S;a:{for(S=J.target;S;){if(S.nodeType==1){var H=_.jm(S,"overflowY");if(H=="auto"||H=="scroll")break a}S=S.parentNode}S=null}if(!S||!_.wp(p,S)||S.scrollHeight==S.clientHeight||J.deltaY>0&&Math.abs(S.scrollTop-(S.scrollHeight-S.clientHeight))<=1||J.deltaY<0&&S.scrollTop==0)J.preventDefault(),J.stopPropagation()};
SQ=function(p,J,S,H,M,X,Z,n,b){n=n===void 0?!1:n;b=b===void 0?!1:b;a7.call(this,void 0,void 0,void 0);a7.call(this,X?X+" picker modal-dialog":"picker modal-dialog",!0,S);_.xc(p,"protocol");this.iframeManager_=new iO3;this.targetId_=c0();this.rpcToken_=c0();p=_.I7(p);_.LC(p,"hostId");S=_.LC(p,"parent");this.useGapi_=!b&&!0||(S==null?void 0:S.includes("onepick.corp.google.com"));n&&_.pU(p,"fv2","true");this.setUrl(p.toString());this.preferredDialogWidth_=H;this.preferredDialogHeight_=M;H!==void 0||
M!==void 0?H=!0:(H=_.LC(_.I7(p.toString()),"hostId"),R2i||(R2i=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),H=!R2i.has(H));this.autoSizeDialog_=H;this.JSC$10346_gadgetsDomHelper_=Z||this.JSC$10297_dom_;J&&(Z=this.JSC$10346_gadgetsDomHelper_,J=_.LC(_.I7(this.JSC$10348_url_),"grugl")=="true"?K$X:ZO3,Jqg(Z)||(Z=Z||s9(document),H=Z.createElement("SCRIPT"),_.RI(H,J),H.type="text/javascript",Z.JSC$9481_document_.body.appendChild(H)));
p=p.toString();J=null;Z=p.indexOf("/picker?");Z>-1?J=p.substring(0,Z+8-1):iw(p,"/picker")&&(J=p);J&&this.setRelayUrl(J+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(p=this.buttons_,p.JSC$10331_element_=this.buttonEl_,p.render()):_.K_(this.buttonEl_,n_X),_.JZ(this.buttonEl_,!!this.buttons_))};
_.F$w=function(p){var J=J===void 0?GxL:J;var S=_.jt(p),H=function(X){X=_.K(X);X.next();X=HW(X);return J(S,X)},M=function(X){var Z=_.K(X);
X=Z.next().value;Z=HW(Z);return p.apply(X,Z)};
return function(){var X=_.Yp.apply(0,arguments),Z=this||_.Hg,n=bOv.get(Z);n||(n={},bOv.set(Z,n));return m1t(n,[this].concat(_.dW(X)),M,H)}};
Ms=function(p){var J={};p=p.replace(/\r/g,"").split("\n");for(var S=0;S<p.length;S++){var H=p[S],M=H.indexOf(":");M<0||(J[H.substring(0,M)]=H.substring(M+2,H.length))}return J};
v_3=function(p,J,S){S=S===void 0?function(){}:S;
return p?J():S()};
_.OOL=function(p){var J;return((J=fki.documentOverride)!=null?J:p).__wizdispatcher};
_.R2=function(p){var J=X4;X4=p;return J};
_.P44=function(p){return p===Aq3||(p==null?void 0:p.name)==="\u0275NotFound"};
_.KU=function(p,J){var S;if((S=p)==null?0:S.isDisposed)throw Error("jb`"+String(p.debugName));for(;p!==void 0;){S=p;if(S.retrieve)return S.retrieve(J,{optional:!0});p=p.parent}return Aq3};
ZD=function(p){return{"\u0275prov":{providedIn:"root",token:Symbol(p),factory:void 0,value:void 0}}};
_.z24=function(p){var J=X4;if(!J){switch(p===void 0?3:p){case 0:p=Error("ib");break;case 1:p=Error("kb");break;case 2:p=Error("lb");break;default:p=Error("mb")}throw p;}return J};
$1v=function(p){var J=_.R2(p);p={};return p[Symbol.dispose]=function(){_.R2(J)},p};
o_X=function(p,J){p.disposables||(p.disposables=[]);p.disposables.push(J)};
nU=function(p){var J=X4;J&&!J.isDisposed&&(o_X(J,p),p.parent=J)};
W$X=function(p){if(p.disposables){for(var J=_.K(p.disposables),S=J.next();!S.done;S=J.next())S=S.value,typeof S==="function"?S():e2w(S);p.disposables.length=0}};
e2w=function(p){if(!p.isDisposed){p.isDisposed=!0;var J;(J=p[Symbol.dispose])==null||J.call(p);delete p.parent;W$X(p)}};
h2i=function(p){var J={retrieve:function(S){switch(S.\u0275prov.token){case Q6i.\u0275prov.token:var H=p.asyncDeps;break;case _.C4i.\u0275prov.token:H=p.rootElement;break;case yq3.\u0275prov.token:H=p.modelRootElement;break;case Bgk.\u0275prov.token:H=p.appContext;break;case U1W.\u0275prov.token:H=p.rendererData;break;case s6s.\u0275prov.token:H=p.injectingConstructor;break;case g_X.\u0275prov.token:H=p.dispatcher}if(H)S=H;else a:{for(H=J.parent;H;){var M=H;if(M.retrieve){S=M.retrieve(S);break a}H=
H.parent}H=S.\u0275prov.token;M=t9X[H];M!==void 0?S=M:(M=S.\u0275prov.providedIn,S.\u0275prov.factory?(S=S.\u0275prov.factory(),H&&M==="root"&&(t9X[H]=S)):S=Aq3)}return S}};
nU(J);return J};
D1L=function(){var p=_.z24(1),J=_.KU(p,Bgk);if(!_.P44(J))return J;p=_.KU(p,g_X);if(!_.P44(p))return p.getOptionalAppContext()};
kxX=function(p){if(typeof document!=="undefined"&&document&&document.getElementById&&(p=document.getElementById(p))){var J=p.tagName.toUpperCase();if(J=="SCRIPT"||J=="LINK")return p}return null};
Tg9=function(p,J){if((p=p===void 0?"":p)&&J)throw Error("sb");var S="";var H=_.Hg._F_jsUrl;(p=J||kxX(p))&&(S=p.src?p.src:p.getAttribute("href"));if(H&&S){if(H!=S)throw Error("tb`"+H+"`"+S);S=H}else S=H||S;if(!Ngi(S))throw Error("ub");return S};
V99=function(){if(!d1s){d1s=!0;try{var p=Tg9(_.Hg._F_jsUrl?"":"base-js")}catch(H){return}var J=u$k(lks(p)),S=Object.keys(J);S.length!==0&&jyW(function(H){for(var M=_.K(S),X=M.next();!X.done;X=M.next()){X=X.value;for(var Z=_.K(Object.keys(J[X])),n=Z.next();!n.done;n=Z.next())H.addExtraEdge(X,n.value)}})}};
akk=function(){var p=Object.assign({},q3g);Object.getOwnPropertyNames(q3g).forEach(function(J){GA[J]!==void 0&&(p[J]=GA[J])});
return p};
E_t=function(p,J){if(GA.enablePerformanceTiming){var S,H;(H=(S=performance).mark)==null||H.call(S,p+"Start__"+J)}};
Y3v=function(p,J){if(GA.enablePerformanceTiming){var S,H;(H=(S=performance).measure)==null||H.call(S,p+"__"+J,p+"Start__"+J)}};
rqg=function(p,J,S){var H;return p&&J?p+"__"+J:(H=p!=null?p:J)!=null?H:S};
j6w=function(p,J){return Object.is(p,J)};
mr=function(p){var J=bf;bf=p;return J};
x1t=function(p){if(F4)throw Error("Z");if(bf!==null){var J=bf.producersTail;if(J===void 0||J.producer!==p){var S=void 0,H=bf.recomputing;if(H&&(S=J!==void 0?J.nextProducer:bf.producers,S!==void 0&&S.producer===p)){bf.producersTail=S;S.lastReadVersion=p.version;return}var M=p.consumersTail,X;if(!(X=M===void 0||M.consumer!==bf)){if(H){a:{X=bf;H=X.producersTail;if(H!==void 0){X=X.producers;do{if(X===M){H=!0;break a}if(X===H)break;X=X.nextProducer}while(X!==void 0)}H=!1}H=!H}X=H}X&&(H=fU(bf),S={producer:p,
consumer:bf,nextProducer:S,prevConsumer:M,lastReadVersion:p.version,nextConsumer:void 0},bf.producersTail=S,J!==void 0?J.nextProducer=S:bf.producers=S,H&&wBw(p,S))}}};
AZ=function(p){if(!fU(p)||p.dirty)if(p.dirty||p.lastCleanEpoch!==OG)(p.producerMustRecompute(p)||cqw(p))&&p.producerRecomputeValue(p),p.dirty=!1,p.lastCleanEpoch=OG};
Iks=function(p){if(p.consumers!==void 0){var J=F4;F4=!0;try{for(var S=p.consumers;S!==void 0;S=S.nextConsumer){var H=S.consumer;H.dirty||(p=void 0,H.dirty=!0,Iks(H),(p=H.consumerMarkedDirty)==null||p.call(H,H))}}finally{F4=J}}};
L$s=function(){var p;return((p=bf)==null?void 0:p.consumerAllowSignalWrites)!==!1};
pLX=function(p){p&&(p.producersTail=void 0,p.recomputing=!0);return mr(p)};
SIg=function(p){p.recomputing=!1;var J=p.producersTail,S=J!==void 0?J.nextProducer:p.producers;if(S!==void 0){if(fU(p)){do S=JVi(S);while(S!==void 0)}J!==void 0?J.nextProducer=void 0:p.producers=void 0}};
cqw=function(p){for(p=p.producers;p!==void 0;p=p.nextProducer){var J=p.producer,S=p.lastReadVersion;if(S!==J.version)return!0;AZ(J);if(S!==J.version)return!0}return!1};
wBw=function(p,J){var S=p.consumersTail,H=fU(p);S!==void 0?(J.nextConsumer=S.nextConsumer,S.nextConsumer=J):(J.nextConsumer=void 0,p.consumers=J);J.prevConsumer=S;p.consumersTail=J;if(!H)for(p=p.producers;p!==void 0;p=p.nextProducer)wBw(p.producer,p)};
JVi=function(p){var J=p.producer,S=p.nextProducer,H=p.nextConsumer,M=p.prevConsumer;p.nextConsumer=void 0;p.prevConsumer=void 0;H!==void 0?H.prevConsumer=M:J.consumersTail=M;if(M!==void 0)M.nextConsumer=H;else if(J.consumers=H,!fU(J))for(p=J.producers;p!==void 0;)p=JVi(p);return S};
fU=function(p){return p.consumerIsAlwaysLive||p.consumers!==void 0};
MDX=function(p){var J=Object.create(HHW);J.computation=p;p=function(){AZ(J);x1t(J);if(J.value===PW)throw J.error;return J.value};
p[zA]=J;return p};
K49=function(p,J){var S=Object.create(XLi);S.value=p;J!==void 0&&(S.equal=J);p=function(){x1t(S);return S.value};
p[zA]=S;return[p,function(H){return iH9(S,H)},
function(H){L$s()||Rpt(S);iH9(S,H(S.value))}]};
iH9=function(p,J){L$s()||Rpt(p);if(!p.equal(p.value,J)){p.value=J;p.version++;OG++;Iks(p);var S;(S=ZHW)==null||S(p)}};
Gg4=function(p,J,S){var H=Object.create(nQi);H.source=p;H.computation=J;S!=void 0&&(H.equal=S);p=function(){AZ(H);x1t(H);if(H.value===PW)throw H.error;return H.value};
p[zA]=H;return p};
_.$T=function(p){var J=mr(null);try{return p()}finally{mr(J)}};
bH9=function(p,J){E_t("signalSet",J.debugName);try{p()}finally{Y3v("signalSet",J.debugName)}};
m8L=function(p,J,S){p=K49(p,J.equals);var H=p[0],M=H[zA];M.debugName=rqg(J.debugName,S,"[signal]");if(!GA.enablePerformanceTiming)return p;var X=p[1],Z=p[2];return[H,function(n){bH9(function(){return void X(n)},M)},
function(n){bH9(function(){return void Z(n)},M)}]};
vQv=function(p,J){var S=Object.create(F4W);S.debugName=J;!X4||nU(S);J=_.R2(S);try{p(S)}finally{_.R2(J)}return function(){return void e2w(S)}};
OHi=function(p){return o2(p)&&ftg in p};
_.eQ=function(p,J,S){return m8L(p,J!=null?J:{},S===void 0?"":S)};
PSs=function(p,J){var S=_.K(_.eQ(p,void 0,"cPpJzc"));p=S.next().value;S=S.next().value;p[AVW]=S;p[WW]=J;return p};
zp9=function(p){return!!p&&typeof p==="object"&&Object.getPrototypeOf(p)===Object.prototype};
$8w=function(p){return typeof p==="function"&&AVW in p&&typeof p[AVW]==="function"};
oQs=function(p,J){Object.defineProperty(p,WW,{get:function(){return J}})};
CU=function(p,J){if(QY(p)){var S=p.map(function(X){return CU(X,J)});
oQs(S,J);return S}if(zp9(p)){S={};p=_.K(Object.entries(p));for(var H=p.next();!H.done;H=p.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;S[H]=CU(M,J)}oQs(S,J);return S}return PSs(p,J)};
epg=function(p){if(QY(p))return p.map(function(M){return epg(M)});
if(zp9(p)){var J={};p=_.K(Object.entries(p));for(var S=p.next();!S.done;S=p.next()){var H=_.K(S.value);S=H.next().value;H=H.next().value;J[S]=epg(H)}return J}return $8w(p)?p():p};
QJi=function(){var p={height:0,width:0};if(!zp9(p))throw Error("Jb");var J=Symbol("Kb");return[CU(p,J),function(S,H){if(S[WW]===J)if(typeof H==="function"){var M=[].concat(_.dW(epg(S)));H=H(M)||M;W4t(S,[].concat(_.dW(H)))}else W4t(S,H);else throw Error("Lb");}]};
W4t=function(p,J){if($8w(p))p[AVW](J);else if(QY(p)&&QY(J))J=CU(J,p[WW]),p.length=0,p.push.apply(p,_.dW(J));else if((zp9(p)||QY(p))&&(QY(J)||typeof J==="object"&&J!==null)){J=_.K(Object.entries(J));for(var S=J.next();!S.done;S=J.next()){var H=_.K(S.value);S=H.next().value;H=H.next().value;var M=p,X=M[S];Object.hasOwn(p,S)?W4t(X,H):M[S]=CU(H,p[WW])}}else throw Error("Mb");};
CSX=function(p){return Object.create(Object.assign({},yY,p))};
Bfs=function(){var p;return(p=yVL)!=null?p:yVL=CSX({consumerAllowSignalWrites:!0})};
_.BW=function(p,J,S){S=S===void 0?"":S;p=MDX(p);var H=p[zA];H.debugName=rqg(J==null?void 0:J.debugName,S,"[computed]");(J==null?void 0:J.equals)!=null&&(H.equal=J.equals);return p};
UG=function(p){var J=mr(U8g);try{p()}finally{mr(J)}};
gQi=function(p,J,S){var H=sJX(p);sG={name:S?H+" ("+S+")":H,isReactive:p.componentType!==gr,parent:sG};p=J();sG=sG.parent;return p};
tZ=function(){var p=sG;return p?p.isReactive:!1};
DD=function(p,J,S){var H=sG;J&&(sG=J);try{return S==null?p():p.call(S)}catch(X){p=X;hZ(p,sG);if(p!==tD4){hpi=sG;J=[];for(S=X4;S;){var M=void 0;J.push((M=S.debugName)!=null?M:"[context]");M=void 0;S=(M=S.parent)!=null?M:null}D8s=J.reverse()}tD4=p;throw p;}finally{sG=H}};
hZ=function(p,J){try{var S=kgW(J);if(S&&!p.componentStack&&(p.componentStack=S,GA.enableComponentStacksInErrorMessages)){var H=p.message+"\n\nComponent stack: "+S;p.stack&&(p.stack=p.stack.replace(p.message,H));p.message=H}}catch(M){}};
kgW=function(p){if(o2(p)&&p.name!==void 0&&p.isReactive!==void 0&&p.parent!==void 0||p===null){for(var J=0,S="";J<20&&p;)S+=p.name+" > ",p=p.parent,J++;p=S.slice(0,-3)}else if(GA.enableContextBasedComponentStacks){a:{for(p=p===void 0?X4:p;p;){if(OHi(p))break a;J=void 0;p=(J=p.parent)!=null?J:null}p=null}p=p.getComponentStack().slice(0,20).join(" > ")}else p="";return p};
sJX=function(p){return p.debugName||p.name||"[component]"};
ltW=function(p){switch(p.onInitType){case Nf9:Tfv.schedule(p);break;case d89:GA.enableQueueEffectAndOnInitInitialRuns?ub9.enqueue(p):ub9.schedule(p);break;default:_.rm(p.onInitType)}};
rVi=function(p){if(!p.isDisposed)switch(p.effectType){case kT:VD4.schedule(p);break;case qIi:atL.schedule(p);break;case EQ4:GA.enableQueueEffectAndOnInitInitialRuns||p.version!==0?YI3.enqueue(p):YI3.schedule(p);break;default:_.rm(p.effectType)}};
x8X=function(){if(Ns>0)GA.flushRenderEffectsDuringRender&&VD4.flush();else{for(var p=_.K(jJg),J=p.next();!J.done;J=p.next())J.value.flush();wLt()}};
wLt=function(){_.G(function(p){if(p.nextAddress==1)return p.yield(Promise.resolve(),2);for(var J=_.K(cVk),S=J.next();!S.done;S=J.next())S.value.flush();_.UK(p)})};
L4g=function(p){TA=!0;try{for(var J=_.K(p),S=J.next();!S.done;S=J.next()){for(var H=S.value,M=[H],X=H;X.parent!==void 0;)X=X.parent,ItW(X)&&p.has(X)&&M.push(X);for(;M.length>0;){var Z=M.pop();p.delete(Z);Z.run()}}}finally{TA=!1}};
dr=function(p){Ns--;if(p){p=_.K(pJW);for(var J=p.next();!J.done;J=p.next())J.value.clear()}else Ns>0||TA&&!GA.flushRenderEffectsDuringRender||x8X()};
JwW=function(p,J,S){p=Object.create(p);J&&(p.fn=J);S&&(p.debugName=S);nU(p);p.componentStack=sG;return p};
Syk=function(p){if(!p.isDisposed){if(F4)throw Error("Qb");var J=_.R2(p);E_t("effectRun",p.debugName);try{DD(function(){p.dirty=!1;if(!(p.version>0)||cqw(p)){p.version++;var S=pLX(p);try{p.cleanup(),p.fn()}finally{mr(S),p&&SIg(p)}}},p.componentStack,p)}catch(S){throw GA.enableContextBasedComponentStacks&&hZ(S),S;
}finally{Y3v("effectRun",p.debugName),_.R2(J)}}};
_.uf=function(p,J){p=JwW(HEX,p,J);rVi(p)};
_.lf=function(p,J){p=JwW(M5W,p,J);rVi(p)};
XJ9=function(p){return p};
iEv=function(p,J){function S(){return M()}
var H=H===void 0?"":H;var M=typeof p==="function"?Gg4(p,XJ9,J==null?void 0:J.equals):Gg4(p.source,p.computation,J==null?void 0:J.equals);var X=M[zA];X.debugName=rqg(J==null?void 0:J.debugName,H,"[linkedSignal]");S[zA]=X;return[S,function(Z){bH9(function(){AZ(X);iH9(X,Z);X.dirty=!1;X.lastCleanEpoch=OG},X)},
function(Z){bH9(function(){AZ(X);L$s()||Rpt(X);iH9(X,Z(X.value));X.dirty=!1;X.lastCleanEpoch=OG},X)}]};
_.VY=function(p){var J=X4;if(J){var S=sG;o_X(J,function(){var H=mr(Bfs());try{DD(function(){return void p()},S)}catch(M){throw GA.enableContextBasedComponentStacks&&hZ(M),M;
}finally{mr(H)}})}};
qs=function(p,J){var S={};(J===void 0||J)&&nU(S);J=_.R2(S);try{p(S)}finally{_.R2(J)}return function(){return void e2w(S)}};
_.a2=function(p){return typeof p==="function"?p():(p==null?0:p[WoX])?p.get():p};
QZX=function(p){if(X4)throw Error("nb");qs(p,!1)};
EG=function(p,J){p=_.R2(p);try{return _.$T(J)}finally{_.R2(p)}};
rr=function(p,J){var S=kgW(hpi),H,M;var X=(M=(H=D8s)==null?void 0:H.slice())!=null?M:[];J={componentStack:S,contextTrace:X,errorSeverity:3,featureFlags:akk(),tagName:J};return[p,J]};
BdL=function(p,J,S){if(Object.hasOwnProperty.call(CZX,p)&&(p=CZX[p],Object.hasOwnProperty.call(p,J)&&(p=p[J],p instanceof Array))){for(var H=null,M=!1,X=0,Z=p.length;X<Z;++X){var n=p[X],b=n.contingentAttribute;if(!b)return n.contract;H===null&&(H={});b=Object.hasOwnProperty.call(H,b)?H[b]:H[b]=S(b);if(b===n.requiredValue)return n.contract;b==null&&(M=!0)}if(M)return null}J=ywi[J];return typeof J==="number"?J:null};
gXt=function(p,J,S){var H=null;(p=UyW[p])&&(H=p[J]);return typeof H!=="number"&&((p=UyW["*"])&&(H=p[J]),typeof H!=="number")?!1:!0===sZw[H][String(S).toLowerCase()]};
hHi=function(p,J){J=BdL(p.toLowerCase(),J,function(){var H;(H=GA.handleError)==null||H.call.apply(H,[GA].concat(_.dW(rr(Error("Tb"),p.toLowerCase()))))});
if(J===null)return null;var S;return(S=t5W[J])!=null?S:null};
Dy9=function(p,J,S){if(S===null||S===void 0)return S;J=J.toLowerCase();p=hHi(p,J);return p===null?S:p(J,S)};
kU9=function(){};
jQ=function(p,J){for(;p.length>J;)p.pop()};
Ndi=function(p){p=Array(p);jQ(p,0);return p};
cW=function(p,J,S){if(S==null)p.removeAttribute(J);else{var H;(H=J.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":J.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?p.setAttributeNS(H,J,S):p.setAttribute(J,S)}};
TdX=function(p,J,S){p[J]=S};
uK9=function(p,J,S){p=p.style;if(typeof S==="string")p.cssText=S;else{p.cssText="";for(var H in S)if(dyW.call(S,H)){J=p;var M=H,X=S[H];M.indexOf("-")>=0?J.setProperty(M,X):J[M]=X}}};
lys=function(p,J,S){var H=typeof S;H==="object"||H==="function"?p[J]=S:cW(p,J,S)};
V5X=function(){var p=new kU9;p[I2.default]=lys;p.style=uK9;return p};
qyX=function(p,J,S,H){(H[J]||H[I2.default])(p,J,S)};
EXX=function(p,J,S){J=new ayg(J,S);return p.__incrementalDOMData=J};
J4=function(p,J){if(p.__incrementalDOMData)return p.__incrementalDOMData;var S=p.nodeType===1?p.localName:p.nodeName,H=p.nodeType===1?p.getAttribute("key"):null;J=EXX(p,S,p.nodeType===1?H||J:null);if(p.nodeType===1&&(p=p.attributes,S=p.length)){H=J._attrsArr||(J._attrsArr=Ndi(S*2));for(var M=0,X=0;M<S;M+=1,X+=2){var Z=p[M],n=Z.value;H[X]=Z.name;H[X+1]=n}}return J};
YyW=function(p,J,S,H,M){return J==S&&H==M};
rwv=function(p){for(var J=Sn,S=H5();S!==p;){var H=S.nextSibling;J.removeChild(S);Mz.deleted.push(S);S=H}};
H5=function(){return Xa?Xa.nextSibling:Sn.firstChild};
ie=function(){Xa=H5()};
xyv=function(p,J,S){ie();var H;a:{if(H=Xa){do{var M=H,X=p,Z=J,n=J4(M,Z);if(jZX(M,X,n.nameOrCtor,Z,n.key))break a}while(J&&(H=H.nextSibling))}H=null}H||(p==="#text"?(S=Rd.createTextNode(""),EXX(S,"#text",null),p=S):(H=Rd,M=Sn,typeof p==="function"?H=new p:H=(M=p==="svg"?"http://www.w3.org/2000/svg":p==="math"?"http://www.w3.org/1998/Math/MathML":M==null||J4(M).nameOrCtor==="foreignObject"?null:M.namespaceURI)?H.createElementNS(M,p):H.createElement(p),EXX(H,p,J),p=H,S&&p.setAttribute("nonce",S)),Mz.created.push(p),
H=p);S=H;if(S!==Xa){if(wJw.indexOf(S)>=0)for(p=Sn,J=S.nextSibling,H=Xa;H!==null&&H!==S;)M=H.nextSibling,p.insertBefore(H,J),H=M;else Sn.insertBefore(S,Xa);Xa=S}};
cwg=function(p,J,S){xyv(p,J,S);Sn=Xa;Xa=null;return Sn};
Iyi=function(){rwv(null);Xa=Sn;Sn=Sn.parentNode};
JSk=function(p,J){J=J===void 0?{}:J;var S=J.matches===void 0?YyW:J.matches;return function(H,M,X){var Z=Mz,n=Rd,b=wJw,F=KV,f=ZJ,O=Xa,A=Sn,P=jZX;Rd=H.ownerDocument;Mz=new Loi(H);jZX=S;KV=[];ZJ=[];Xa=null;var W=Sn=H.parentNode,y,t=phL.call(H);if((y=t.nodeType===11||t.nodeType===9?t.activeElement:null)&&H.contains(y)){for(t=[];y!==W;)t.push(y),y=y.parentNode||(W?y.host:null);W=t}else W=[];wJw=W;try{return p(H,M,X)}finally{H=Mz,nV&&H.deleted.length>0&&nV(H.deleted),Rd=n,Mz=Z,jZX=P,KV=F,ZJ=f,Xa=O,Sn=A,
wJw=b}}};
SLX=function(p,J,S,H){GV.push(qyX);GV.push(p);GV.push(J);GV.push(S);GV.push(H)};
MTw=function(p,J,S){var H=ZJ;J=J._attrsArr||(J._attrsArr=Ndi(H.length));for(var M=!J.length||!1,X=0;X<H.length;X+=2){var Z=H[X];if(M)J[X]=Z;else if(J[X]!==Z)break;var n=H[X+1];if(M||J[X+1]!==n)J[X+1]=n,SLX(p,Z,n,S)}if(X<H.length||X<J.length){for(X=M=X;X<J.length;X+=2)be[J[X]]=J[X+1];for(X=M;X<H.length;X+=2)M=H[X],Z=H[X+1],be[M]!==Z&&SLX(p,M,Z,S),J[X]=M,J[X+1]=Z,delete be[M];jQ(J,H.length);for(var b in be)SLX(p,b,void 0,S),delete be[b]}p=Hz9;Hz9=S=GV.length;for(b=p;b<S;b+=5)(0,GV[b])(GV[b+1],GV[b+
2],GV[b+3],GV[b+4]);Hz9=p;jQ(GV,p);jQ(H,0)};
Xhi=function(p){xyv("#text",null);var J=Xa;var S=J4(J);if(S.text!==p){S=S.text=p;for(var H=1;H<arguments.length;H+=1)S=(0,arguments[H])(S);J.data!==S&&(J.data=S)}};
bzL=function(p,J,S){if(S===!1&&izi.has(J))cW(p,J,null);else if(J!=="idomKey"&&J!=="skip"&&J!=="skipchildren"&&J!=="children"&&J!=="el")if(J.startsWith("on")){if(J[2]!==":")throw Error("Sb`"+J);if(S===void 0||S===null){var H;(H=GA.handleError)==null||H.call.apply(H,[GA].concat(_.dW(rr(Error("Xb`"+J),p.tagName))));p[J]=void 0}else{var M=J.slice(3);H=tZ();if(M==="jsaction"){S=Array.isArray(S)?S:[S];S=_.K(S);for(var X=S.next();!X.done;X=S.next()){X=X.value;if(typeof X!=="object"||X===null||typeof X.selfReg!==
"function")throw Error("$b`"+J);X.selfReg(0,p,H?_.VY:function(){})}}else{if(typeof S!=="object"||S===null)throw Error("Yb`"+J+"`"+typeof S);
if(typeof S.getFn!=="function")throw Error("Zb`"+J+"`"+Object.keys(S));if(S.selfReg)S.selfReg(0,p,M,H?_.VY:function(){});
else if(H&&p["on"+M]===void 0){var Z=S.getFn(0);p.addEventListener(M,Z);_.VY(function(){return void p.removeEventListener(M,Z)})}else if(H||!RtX.includes(M))p["on"+M]=S.getFn(0)}}}else{if(J.startsWith("data-")&&typeof S==="string")try{S=KNL(S)}catch(n){S="zSoyz"}typeof S!=="function"||p._disposeEffects!=null?((H=J.startsWith("prop:"))&&(J=J.slice(5)),GA.enableAttributeSanitization&&(H&&ZzW(p.tagName)||(S=Dy9(p.tagName,J,S))),J==="style"?("function"==typeof _.mT&&S instanceof _.mT&&(S=S.toString()),
nd4(p,J,S)):H?p[J]=S:Gdg(p,J,S)):(p._signalProps||(p._signalProps=[]),p._signalValues||(p._signalValues=[]),p._signalProps.push(J))}};
mXW=function(p,J,S){S=(S===void 0?{}:S).isReactive;if(J==null?0:J.el){var H=J.el,M;(M=H.onRender)==null||M.call(H,p);p._disposeRef||(p._disposeRef=function(){var X;(X=H.onUnmount)==null||X.call(H);delete p._disposeRef},S&&_.VY(function(){var X;
(X=p._disposeRef)==null||X.call(p)}))}};
ZzW=function(p){return p.length>0&&p.includes("-")&&!FNw.includes(p.toLowerCase())};
vdW=function(p){return o2(p)&&Fa in p};
fnX=function(p){return vdW(p)?p[Fa].flattened:p};
Oz9=function(p,J){var S=_.Yp.apply(2,arguments),H;J=(H=J)!=null?H:{};H={};return H.type=p,H.props=J,H.children=S,H[v5]=!0,H};
_.fV=function(p){return p.children};
Og=function(p){var J=ASw!==Oz9;ASw=p?Puv:Oz9;return J};
_.A4=function(p){return _.Ei(p)?"nodeType"in p:!1};
P5=function(){return document.createTextNode("")};
zV=function(p){p=document.createTextNode(String(p));p._isSignalTextNode=!0;return p};
$X3=function(p){return p!=null&&p.contentKind===od||p instanceof wy||ztw(p)};
odg=function(p){var J=document.createElement("div");if(ztw(p)&&Qyt(p))_.K_(J,Qyt(p));else if(p instanceof wy)_.K_(J,p);else if(p!=null&&p.contentKind===od){if(p.contentKind!==od)throw Error("Wb");p=xp(p.toString());_.K_(J,p)}p=_.K(J.childNodes);for(var S=p.next();!S.done;S=p.next())S.value._isSafeOrSanitizedHtmlNode=!0;return J};
en=function(p){p=typeof p;return p==="string"||p==="number"||p==="boolean"};
ets=function(p){return p instanceof Uq||NG(p)||p instanceof GH||"function"==typeof _.mT&&p instanceof _.mT};
WNt=function(p,J){var S=p.parentElement;if(!S)return J;S.replaceChild(J,p);return J};
QCW=function(p,J){var S=p[0].parentElement;if(S)if(p[0].previousSibling||p[p.length-1].nextSibling){S.insertBefore(J,p[0]);for(var H=p.length-1;H>=0;H--)S.removeChild(p[H])}else S.textContent="",S.appendChild(J);return J};
Cui=function(p,J){if(p[0].parentElement)for(var S=p[0].parentElement,H=J.length,M=p.length,X=H,Z=0,n=0,b=p[M-1].nextSibling,F=null;Z<M||n<X;)if(p[Z]===J[n])Z++,n++;else{for(;p[M-1]===J[X-1];)M--,X--;if(M===Z)for(var f=X<H?n?J[n-1].nextSibling:J[X-n]:b;n<X;){var O=J[n++];S.insertBefore(O,f)}else if(X===n)for(;Z<M;)f=p[Z],F&&F.has(f)||S.removeChild(f),Z++;else if(p[Z]===J[X-1]&&J[n]===p[M-1])f=p[--M].nextSibling,S.insertBefore(J[n++],p[Z++].nextSibling),S.insertBefore(J[--X],f),p[M]=J[X];else{if(!F)for(F=
new Map,f=n;f<X;)F.set(J[f],f++);f=F.get(p[Z]);if(f==null)S.removeChild(p[Z]),Z++;else if(n<f&&f<X){O=Z;for(var A=1,P=void 0;++O<M&&O<X&&(P=F.get(p[O]))!=null&&P===f+A;)A++;if(A>f-n)for(O=p[Z];n<f;)S.insertBefore(J[n++],O);else S.replaceChild(J[n++],p[Z++])}else Z++}}return J};
B0X=function(p){if(Array.isArray(p)){if(p.length>1)throw Error("jc`"+p.length+"`"+p.map(ySX).join(", "));p=p[0]}if(p==null)return null;if(!(p instanceof _.HZ)){var J,S;if((J=window)==null?0:(S=J.trustedTypes)==null?0:S.isScript(p))throw Error("ic");if(String(p).trim().length===0)return null;throw Error("kc`"+ySX(p));}return p};
UXg=function(p,J){J=B0X(J);J!==null&&_.i0(p,J)};
sCX=function(p){if(Array.isArray(p)){if(p.length>1)throw Error("lc`"+p.length+"`"+p.map(ySX).join(", "));p=p[0]}if(p==null)return null;if(!(p instanceof GH)){if(String(p).trim().length===0)return null;throw Error("mc`"+ySX(p));}return p};
gdL=function(p,J){J=sCX(J);J!==null&&(p.textContent=O_k(J))};
ySX=function(p){return"("+typeof p+") "+(p!=null&&typeof p==="object"?p.constructor.name:typeof p)+" "+p};
tTi=function(){};
yS=function(p,J){J=J===void 0?{}:J;var S=ht9(),H=!0,M,X=!!GA.legacyTriggerSoyRendererEvents;X&&(M=D1L());_.uf(function(){var Z=!H&&J.isControlFlowComponent&&X,n=Z?S[Fa].flattened[0].parentElement:void 0;H=!1;_.W5.setUp();J.isControlFlowComponent&&Ns++;var b=S[0],F=S[Fa].flattened,f=Og(!0);try{var O=p(),A=DXs(b,O,S);Array.isArray(A)||(S[Fa].flattened=[A]);var P=S[Fa].flattened;if(F&&(!Array.isArray(F)||F.length!==0)){var W=Array.isArray(F)?F[0]:F,y=W[QS],t=W._disposeEffects;W._disposeEffects=void 0;
W=Array.isArray(P)?P[0]:P;W[QS]=y;W[QS]&&(W[QS].numNodes=W===P?1:P.length);W._disposeEffects=t}S[0]=A;J.isControlFlowComponent&&dr(!1)}catch(D){throw J.isControlFlowComponent&&dr(!0),D;}finally{Og(f),_.W5.tearDown()}Z&&(Z=M,Z!=null||(Z=_.OOL(document).getAppContext()),Z.get(kdt).JSC$29749_getEventTarget().dispatchEvent(new N0i(T0t,n,od)))},J.debugName);
return S};
DXs=function(p,J,S){for(;typeof J==="function";)J=J();if(J!=null&&J[v5]){var H,M,X;(X=GA.handleError)==null||X.call.apply(X,[GA].concat(_.dW(rr(Error("nc`"+((H=J.type)==null?void 0:H.TAG_NAME)),(M=J.type)==null?void 0:M.TAG_NAME))))}if(p==null)return J==null?P5():en(J)?zV(J):ets(J)?zV(J.toString()):_.A4(J)?J:J.length===0?P5():dX4(J,S);if(_.A4(p)){if(J==null)return WNt(p,P5());if(en(J))return u7L(p,J);if(ets(J))return u7L(p,J.toString());if(_.A4(J))return WNt(p,J);if(J.length===0)return WNt(p,P5());
J=dX4(J,S);Cui([p],S[Fa].flattened);return J}p=B5(p);if(J==null)return QCW(p,P5());if(en(J))return QCW(p,zV(J));if(ets(J))return QCW(p,zV(J.toString()));if(_.A4(J))return Cui(p,[J])[0];if(J.length===0)return QCW(p,P5());J=dX4(J,S);Cui(p,S[Fa].flattened);return J};
u7L=function(p,J){p.nodeType===Node.TEXT_NODE?p.textContent!==String(J)&&(p.textContent=String(J)):p=WNt(p,zV(J));return p};
B5=function(p,J,S){return lnL(p,J!=null?J:[],S===void 0?!1:S)};
dX4=function(p,J){var S=B5(p,void 0,!0);if(S.length===0)return P5();J[Fa].flattened=S;return p};
lnL=function(p,J,S,H,M){J=J===void 0?[]:J;S=S===void 0?!1:S;M=M===void 0?-1:M;if(p==null)return J;if(p instanceof Ug){var X=p.render();return lnL(X,J,S,H,M)}if(_.A4(J)&&J.nodeType===Node.ELEMENT_NODE)switch(J.tagName){case "SCRIPT":UXg(J,p);return;case "STYLE":gdL(J,p);return}en(p)&&(p=zV(p),H&&S&&(H[M]=p));if($X3(p)){S=odg(p);S=Array.from(S.childNodes);S=_.K(S);for(X=S.next();!X.done;X=S.next())VTv(J,X.value);return J}ets(p)&&(p=zV(p.toString()),H&&S&&(H[M]=p));if(_.A4(p))return VTv(J,p);if(Array.isArray(p)){for(X=
0;X<p.length;X++)lnL(p[X],J,S,p,X);return J}if(typeof p==="function"){X=yS(function(){var n=p();return n!=null&&!en(n)&&$X3(n)?(n=odg(n),Array.from(n.childNodes)):n},{debugName:"qmF2ne",
debugFn:p})[0];if(Array.isArray(X)){S=_.K(X);for(X=S.next();!X.done;X=S.next())VTv(J,X.value);return J}H&&S&&(H[M]=X);return VTv(J,X)}if(p!=null&&p[v5]){H=p;M=Og(!0);var Z=ASw;try{X=Z.apply(null,[H.type,H.props].concat(_.dW(H.children)))}finally{Og(M)}return lnL(X,J,S)}(Z=GA.handleError)==null||Z.call.apply(Z,[GA].concat(_.dW(rr(Error("oc")))));return J};
ht9=function(p){var J={};J=Object.assign([],(J[Fa]={flattened:[]},J));if(!p)return J;J[0]=dX4(p,J);return J};
VTv=function(p,J){Array.isArray(p)?p.push(J):p.appendChild(J);return p};
sg=function(p){if(!GA.enableLazyTsx)return p;if(Array.isArray(p)){for(var J=0;J<p.length;J++)p[J]=sg(p[J]);return p}return p instanceof Ug?(p=p.render(),sg(p)):p};
anW=function(p,J){var S,H,M=sJX(p),X=function(P){H=P;P=Og(!0);var W=mr(gY);E_t("render",M);try{S=sg(p(J))}finally{Y3v("render",M),mr(W),Og(P)}};
X=GA.enableContextPerComponent?vQv(X,M):qs(X,GA.alwaysTrackContexts||!!X4);OHi(H);if(!J.renderedFromIdom){var Z=_.R2(H);try{return qLi(p,J,S),S}finally{_.R2(Z)}}!vdW(S)&&Array.isArray(S)&&(S=ht9(S));var n=fnX(S);Z=Array.isArray(n)?n[0]:n;var b=!1;if(Z){var F,f=(F=J==null?void 0:J.idomKey)!=null?F:p;F=n!==Z;Z._disposeEffects=X;var O=Z[QS]||{},A=vdW(S)?S:O.sourceDynamicRange;Object.assign(O,{key:f,numNodes:F?n.length:1,context:H,higherOrder:!!Z[QS],sourceDynamicRange:A});Z[QS]=O}else b=!0;(function(){var P=
_.R2(H);try{qLi(p,J,n)}finally{_.R2(P)}})();
b&&X();return S};
Ed9=function(p){var J={},S;for(S in p)J={prev$jscomp$24:void 0,next$jscomp$33:void 0},J.prev$jscomp$24=t4[S],J.next$jscomp$33=p[S],t4[S]=function(H){return function(){var M=_.Yp.apply(0,arguments);H.prev$jscomp$24.apply(null,_.dW(M));H.next$jscomp$33.apply(null,_.dW(M))}}(J)};
YLX=function(){if(tZ())throw Error("pc");return h4};
rSX=function(p,J){if(!p.__unmounted&&J){p.__unmounted=!0;try{p.didUnmount()}catch(M){var S,H;(H=GA.handleError)==null||H.call.apply(H,[GA].concat(_.dW(rr(M,(S=p.__type)==null?void 0:S.TAG_NAME))))}t4.didUnmount(p);p.el=null;J.__instance&&delete J.__instance}};
wht=function(p,J,S){p._signalProps!=null&&p._disposeEffects==null&&((S===void 0?0:S)?p._disposeEffects=qs(function(){return void jCX(p,J)},GA.alwaysTrackContexts||!!X4):jCX(p,J))};
jCX=function(p,J){_.uf(function(){for(var S=p._signalProps,H=p._signalValues,M=0;M<S.length;M++){var X=S[M],Z=J[X]();H[M]!==Z&&(H[M]=Z,bzL(p,X,Z))}},"e3YVbb")};
xXv=function(p,J,S){var H,M=[];p._disposeEffects=qs(function(){_.uf(function(){var X=S();if(X===null||X===void 0)X="";if(en(X)||X===null)H!=null||(H=document.createTextNode("")),H.parentNode!==p&&(H._isSignalTextNode=!0,p.insertBefore(H,J)),H.textContent=String(X);else if($X3(X)){for(var Z=M.length>0?M[M.length-1].nextSibling:J,n=_.K(M),b=n.next();!b.done;b=n.next())p.removeChild(b.value);X=odg(X);M=Array.from(X.childNodes);X=_.K(M);for(n=X.next();!n.done;n=X.next())p.insertBefore(n.value,Z)}else throw b=
(n=(Z=sG)==null?void 0:Z.name)!=null?n:"unknown",Error("ec`"+b+"`"+typeof X);},"VvDgC")},GA.alwaysTrackContexts||!!X4)};
LNv=function(p,J){var S=_.Yp.apply(2,arguments);J!=null||(J={});return!GA.enableLazyTsx||sG!=null&&!tZ()?cSs(p,J,S):new Inv(p,J,S)};
cSs=function(p,J,S){if(p===_.fV)return S;if(typeof p==="function")return sG&&!tZ()&&(J.renderedFromIdom=!0),gQi(p,function(){var X=pfv(p,J,S);if(X)return X;S.length>0&&(J.children=S.length===1?S[0]:S);if(p.componentType===gr){var Z;vQv(function(){var n=J;if(p.componentType!==gr)Z=!1;else{n||(n={});var b=new DJ(n,p),F=mr(gY);try{var f=b.render(n)}finally{mr(F)}f instanceof HTMLElement?(f.__instance=b,b.el=f,b.__type=p,p.TAG_NAME=f.tagName.toLowerCase(),t4.didPatch(b),Z=f):Z=f}},p.name);
if(Z)return Z}return anW(p,J)},J.debugInstance);
var H=J1g(p,J),M;for(M in J)bzL(H,M,J[M]);wht(H,J);B5(S,H);mXW(H,J,{isReactive:!0});SBs(H,J);return H};
J1g=function(p,J){p=(H1v.has(p.toLowerCase())?0:Mq4.has(p.startsWith("svg:")?p.replace("svg:",""):p))?document.createElementNS("http://www.w3.org/2000/svg",p.startsWith("svg:")?p.replace("svg:",""):p):Xfi(p,J)||document.createElement(p);p[i19]=!0;return p};
RCt=function(p){if(p){var J;(J=p._disposeRef)==null||J.call(p);var S;(S=p._disposeEffects)==null||S.call(p);p.__instance&&p.__instance instanceof kv&&(J=p.__instance,rSX(J,p),J instanceof DJ&&J.disposeEffects());for(J=0;J<p.childNodes.length;J++)RCt(p.childNodes[J])}};
Z1X=function(p){Kzv.push(p)===1&&requestAnimationFrame(function(){setTimeout(function(){var J=[].concat(_.dW(Kzv));Kzv=[];J=_.K(J);for(var S=J.next();!S.done;S=J.next()){S=S.value;try{for(var H=0;H<S.length;H++)RCt(S[H])}catch(M){H=S=void 0,(H=(S=GA).handleError)==null||H.call.apply(H,[S].concat(_.dW(rr(M))))}}})})};
_.m=function(p,J){return ASw.apply(null,[p,J].concat(_.dW(_.Yp.apply(2,arguments))))};
_.Nz=function(p){return p};
_.TV=function(p){return{isDefault:!0,children:p.children}};
_.v=function(p){var J=p.cond;if(J===void 0)return p.else&&p.else();var S=_.BW(function(){return!!J()},void 0,"JHVi8"),H=function(){var M=J();
if(!M){var X;(X=GA.handleError)==null||X.call.apply(X,[GA].concat(_.dW(rr(nVk.nonNullableCondIsNull()))))}return M};
return yS(function(){var M=S(),X;qs(function(){var Z=mr(gY);try{X=sg(M?p.then(H):p.else&&p.else())}finally{mr(Z)}},!0);
return X},{debugName:p.debugInstance,
debugFn:p.then,isControlFlowComponent:!0})};
GXt=function(p){return _.v(p)};
_.dY=function(p){return p.keyBy==="INDEX"?b1W(p):m9w(p)};
Fzk=function(p){p=_.K(p);for(var J=p.next();!J.done;J=p.next()){var S=void 0;(S=J.value)==null||S()}};
m9w=function(p){var J=p.keyBy===void 0||p.keyBy==="REFERENCE",S=J?function(f){return f}:p.keyBy,H=[],M=[],X=[],Z=[],n=[],b=[],F=!0;
_.VY(function(){Fzk(Z)});
return yS(function(){var f=vVs(p),O=f.length;if(O===0){if(H.length===0&&!F)return X;Fzk(Z);H=f;M=[];for(f=0;f<H.length;f++)M.push(S(H[f]));X=[];Z=[];n=[];b=[];p.fallback&&(Z[0]=fxX(function(){X[0]=sg(p.fallback())}));
F=!1;return X}for(var A=new O19,P=H.length-1;P>=0;P--)A.push(M[P],P);P=Array(O);for(var W=Array(O),y=Array(O),t=Array(O),D=Array(J?0:O),k={i$jscomp$450:0};k.i$jscomp$450<O;k={i$jscomp$450:k.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},k.i$jscomp$450++){k.item$jscomp$104=f[k.i$jscomp$450];k.key$jscomp$563=S(k.item$jscomp$104);var E=A.pop(k.key$jscomp$563);E!=null?(y[k.i$jscomp$450]=X[E],W[k.i$jscomp$450]=M[E],P[k.i$jscomp$450]=Z[E],t[k.i$jscomp$450]=n[E],J||(D[k.i$jscomp$450]=b[E]),UG(function(a){return function(){t[a.i$jscomp$450](a.i$jscomp$450);
if(!J)D[a.i$jscomp$450](a.item$jscomp$104)}}(k)),delete Z[E]):P[k.i$jscomp$450]=fxX(function(a){return function(){var q=_.K(_.eQ(a.i$jscomp$450,void 0,"Fqk1zd")),w=q.next().value;
q=q.next().value;t[a.i$jscomp$450]=q;W[a.i$jscomp$450]=a.key$jscomp$563;if(J)y[a.i$jscomp$450]=sg(p.children(a.item$jscomp$104,w));else{var I=_.K(_.eQ(a.item$jscomp$104,void 0,"GBj5de"));q=I.next().value;I=I.next().value;D[a.i$jscomp$450]=I;y[a.i$jscomp$450]=sg(p.children(q,w))}}}(k))}Fzk(Z);
H=f;M=W;X=y;Z=P;n=t;b=D;F=!1;return y},{debugName:p.debugInstance,
debugFn:p.each,isControlFlowComponent:!0})};
b1W=function(p){var J=[],S=[],H=[],M=[],X=!1;_.VY(function(){for(var Z=_.K(M),n=Z.next();!n.done;n=Z.next())n=n.value,n()});
return yS(function(){var Z=vVs(p);X&&Z.length>0&&(M.pop()(),J.pop(),X=!1);for(var n=Array(Z.length),b={i$jscomp$451:0};b.i$jscomp$451<Z.length;b={i$jscomp$451:b.i$jscomp$451},b.i$jscomp$451++)if(b.i$jscomp$451<J.length)J[b.i$jscomp$451]!==Z[b.i$jscomp$451]&&(UG(function(f){return function(){return void S[f.i$jscomp$451](Z[f.i$jscomp$451])}}(b)),J[b.i$jscomp$451]=Z[b.i$jscomp$451]),n[b.i$jscomp$451]=H[b.i$jscomp$451];
else{var F=fxX(function(f){return function(){J[f.i$jscomp$451]=Z[f.i$jscomp$451];var O=_.K(_.eQ(Z[f.i$jscomp$451],void 0,"JMMLmd")),A=O.next().value;O=O.next().value;S[f.i$jscomp$451]=O;n[f.i$jscomp$451]=sg(p.children(A,f.i$jscomp$451))}}(b));
M[b.i$jscomp$451]=F}for(;J.length>Z.length;)J.pop(),M.pop()(),S.pop();Z.length===0&&!X&&p.fallback&&(b=fxX(function(){n[0]=sg(p.fallback())}),M[0]=b,X=!0);
return H=n},{debugName:p.debugInstance,
isControlFlowComponent:!0})};
vVs=function(p){p=p.each();return Array.isArray(p)?p:Array.from(p)};
fxX=function(p){var J=X4;return qs(function(S){var H=mr(gY);try{S.parent=J,p(S)}finally{mr(H)}},!1)};
_.ue=function(p){var J=A13(p),S=_.BW(function(){return Pjt(J)},void 0,"F1PF4");
return yS(function(){var H=S(),M;qs(function(){var X=mr(gY);try{M=sg(H())}finally{mr(X)}});
return M},{debugName:p.debugInstance,
isControlFlowComponent:!0})};
A13=function(p){p=p.children;return Array.isArray(p)?p:[p]};
zCi=function(p){var J=p.props;p=p.getChildren()[0];return J.when?{when:J.when,children:p}:{isDefault:!0,children:p}};
Pjt=function(p){var J=function(){return null};
p=_.K(p);for(var S=p.next();!S.done;S=p.next())if(S=S.value,S!=null&&S[v5]&&(S=S.type===_.TV?{isDefault:!0,children:S.children[0]}:{when:S.props.when,children:S.children[0]}),S instanceof Ug&&(S=zCi(S)),S.isDefault)J=S.children;else if(S.when())return S.children;return J};
oVs=function(p){var J=null,S,H={get value(){var X,Z;(Z=(X=M).validateGetValue)==null||Z.call(X);return M.__value},set value(X){var Z,n;(n=(Z=M).validateSetValue)==null||n.call(Z,X);M.__value=X;M.__hasBeenSet=!0}},M=(H.__value=null,H.__hasBeenSet=!1,H.__hasErrored=!1,H.onRender=function(X){if(S&&X!==S){S._disposeRef=void 0;var Z;(Z=J)==null||Z()}S=X;J=p(X)||null},H.onUnmount=function(){var X;
(X=J)==null||X();J=M.value=null},H[_.$9X]=!0,H);
return M};
le=function(p){return typeof p==="symbol"};
WzW=function(p){var J=YLX();if(J==null)throw _.eCt.PRIMITIVE_INVALID_HOOK_CALL();var S=J.hookCounter++;J.hooks||(J.hooks=[]);var H=J.hooks;H[S]||(H[S]={key:p,host:J});if(p!==H[S].key){if(J.__type){var M;p=(M=J.__type)==null?void 0:M.name}else p=J instanceof DJ?sJX(J.functionComponent):"<"+J.el.tagName.toLowerCase()+">";throw _.eCt.OUT_OF_ORDER_HOOK_CALL(p);}return H[S]};
QVX=function(p,J){return!p||p.length!==(J==null?void 0:J.length)||p.some(function(S,H){return S!==J[H]})};
Cjs=function(p,J){var S=WzW("onChange"),H=YLX();QVX(S.deps,J)&&(S.deps=J,S.pendingEffect=p,H.__syncEffects||(H.__syncEffects=[]),H.__syncEffects.push(S))};
_.VS=function(p,J,S){S!=null||(S={});S=S.appContext;var H=!!GA.legacyTriggerSoyRendererEvents;_.W5.setUp();try{var M=y1X(p,J,S);H&&(J=S,J!=null||(J=_.OOL(document).getAppContext()),J.get(kdt).JSC$29749_getEventTarget().dispatchEvent(new N0i(BG4,p,od)));_.W5.log(p);return M}finally{_.W5.tearDown()}};
y1X=function(p,J,S){var H=DD(function(){var M=mr(gY);try{return qs(function(){var X=_.OOL(_.VF(p)),Z;var n=h2i({rootElement:{value:p},appContext:S||(X==null?void 0:(Z=X.getOptionalAppContext)==null?void 0:Z.call(X)),dispatcher:X});X=_.R2(n);n=Og(!0);Ns++;try{B5(J(),p),dr(!1)}catch(b){throw dr(!0),b;}finally{Og(n),_.R2(X)}},!1)}catch(X){throw GA.enableContextBasedComponentStacks&&hZ(X),X;
}finally{mr(M)}});
p[U9i]=!0;return function(){p.textContent="";H();p[U9i]=!1}};
_.qz=function(p){if(ItW(bf)){var J;(J=GA.handleError)==null||J.call.apply(J,[GA].concat(_.dW(rr(Error("dc")))))}var S=X4,H=sG;ltW({onInitType:d89,run:function(){if(S&&!S.isDisposed){var M=_.R2(S);try{DD(function(){return void p()},H)}catch(X){throw GA.enableContextBasedComponentStacks&&hZ(X),X;
}finally{_.R2(M)}}}})};
sVg=function(p,J){Cjs(function(){return _.$T(p)},J)};
_.ad=function(p){tZ()?_.qz(function(){_.$T(p)}):Cjs(function(){return _.$T(p)},[])};
tqL=function(p){var J=[].concat(_.dW(p));p.length=0;p=_.K(J);for(J=p.next();!J.done;J=p.next()){J=J.value;gVX(J);var S=J.pendingEffect;J.pendingEffect=null;if(S=S==null?void 0:S())J.pendingCleanup=S}};
gVX=function(p){var J=p.pendingCleanup;p.pendingCleanup=null;J==null||J()};
hCw=function(p,J){if(tZ())return p();var S=WzW("useMemoInternal");QVX(S.deps,J)&&(S.deps=J,S.value=p());return S.value};
D9i=function(p,J){return hCw(p,J)};
kXg=function(p){return hCw(function(){return{value:p}},[])};
_.Eg=function(p,J){if(!p)return null;p=Object.keys(p);p=_.K(p);for(var S=p.next();!S.done;S=p.next()){S=S.value;var H=S.toLowerCase();if(H.indexOf(J,H.length-J.length)>-1)return S}return null};
_.rY=function(){var p=arguments,J=_.Yv;p.length>1?J[p[0]]=p[1]:p.length===1&&Object.assign(J,p[0])};
_.jn=function(p,J){return p in _.Yv?_.Yv[p]:J};
_.wY=function(p,J){return!!_.jn(p,J)};
NGi=function(p){var J=_.Yv.EXPERIMENT_FLAGS;return J?J[p]:void 0};
d9L=function(p){TGX.forEach(function(J){return J(p)})};
_.c5=function(p){return p&&window.yterr?function(){try{return p.apply(this,arguments)}catch(J){_.xv(J)}}:p};
_.xv=function(p){var J=_.Id("yt.logging.errors.log");J?J(p,"ERROR",void 0,void 0,void 0,void 0,void 0):(J=_.jn("ERRORS",[]),J.push([p,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.rY("ERRORS",J));d9L(p)};
_.SB=function(p,J,S,H,M){var X=_.Id("yt.logging.errors.log");X?X(p,"WARNING",J,S,H,void 0,M):(X=_.jn("ERRORS",[]),X.push([p,"WARNING",J,S,H,void 0,M]),_.rY("ERRORS",X))};
lxX=function(p,J){J=p.split(J);for(var S={},H=0,M=J.length;H<M;H++){var X=J[H].split("=");if(X.length===1&&X[0]||X.length===2)try{var Z=u_L(X[0]||""),n=u_L(X[1]||"");if(Z in S){var b=S[Z];Array.isArray(b)?_.av(b,n):S[Z]=[b,n]}else S[Z]=n}catch(A){var F=A,f=X[0],O=String(lxX);F.args=[{key:f,value:X[1],query:p,method:Vq4===O?"unchanged":O}];qB9.hasOwnProperty(f)||_.SB(F)}}return S};
axX=function(p){var J=[];_.T6.forEach(p,function(S,H){var M=_.HO(H);S=Array.isArray(S)?S:[S];_.MV(S,function(X){X==""?J.push(M):J.push(M+"="+_.HO(X))})});
return J.join("&")};
_.X9=function(p){p.charAt(0)==="?"&&(p=p.substring(1));return lxX(p,"&")};
_.ih=function(p){return p.indexOf("?")!==-1?(p=(p||"").split("#")[0],p=p.split("?",2),_.X9(p.length>1?p[1]:p[0])):{}};
_.Ry=function(p,J){return EVW(p,J||{},!0)};
YBW=function(p,J){return EVW(p,J||{},!1)};
EVW=function(p,J,S){var H=p.split("#",2);p=H[0];H=H.length>1?"#"+H[1]:"";var M=p.split("?",2);p=M[0];M=_.X9(M[1]||"");for(var X in J)if(S||!_.T6.containsKey(M,X))M[X]=J[X];return _.KQ(p,M)+H};
bh=function(p){if(!J)var J=window.location.href;var S=_.ZL(p)[1]||null,H=_.nQ(p);return S&&H?GG(p,J):H?_.nQ(J)===H&&(Number(_.ZL(J)[4]||null)||null)===(Number(_.ZL(p)[4]||null)||null):!0};
_.jV3=function(p){p=r1k(p);return p===null?!1:p[0]==="com"&&p[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
r1k=function(p){p=_.nQ(p);return p!==null?p.split(".").reverse():null};
u_L=function(p){return p&&p.match(wfs)?p:md(p)};
_.F9=function(p){return new x9X(p)};
_.vO=function(){c1v||(c1v=new Ixs);return c1v};
p9w=function(){var p=LzW;return function(){var J=_.vO();if(!J.resolve(_.F9(p))){var S={};J.addProvider((S.provide=p,S.useClass=p,S[fQ]=void 0,S))}return J.resolve(p)}};
SJg=function(p){var J=_.Ov,S,H;_.G(function(M){S=_.vO();return(H=S.resolve(_.F9(J)))?(p(H),M.return(Promise.resolve(H))):M.return(S.resolve(new JP4(J)).then(function(X){p(X);return X}))})};
_.z=function(p){p=Al(p);return typeof p==="string"&&p==="false"?!1:!!p};
_.PO=function(p,J){p=Al(p);return p===void 0&&J!==void 0?J:Number(p||0)};
Hlv=function(p){p=Al(p);return Array.isArray(p)?_.d2(p,function(J){return Number(J||0)}):[Number(p||0)]};
_.zG=function(p){p=Al(p);return p!==void 0?String(p):""};
_.oy=function(p){p=Al(p);return Array.isArray(p)?_.d2(p,function(J){return String(J||"")}):[String(p||"")]};
MUW=function(){return _.jn("EXPERIMENTS_TOKEN","")};
Al=function(p){return _.jn("EXPERIMENT_FLAGS",{})[p]};
X9t=function(){for(var p=[],J=_.jn("EXPERIMENTS_FORCED_FLAGS",{}),S=_.K(Object.keys(J)),H=S.next();!H.done;H=S.next())H=H.value,p.push({key:H,value:String(J[H])});S=_.jn("EXPERIMENT_FLAGS",{});H=_.K(Object.keys(S));for(var M=H.next();!M.done;M=H.next())M=M.value,M.startsWith("force_")&&J[M]===void 0&&p.push({key:M,value:String(S[M])});return p};
Rai=function(){if(!il9)return null;var p=il9();return"open"in p?p:null};
_.KYw=function(p){switch(_.eB(p)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.eB=function(p){return p&&"status"in p?p.status:-1};
_.WO=function(p,J){typeof p==="function"&&(p=_.c5(p));return window.setTimeout(p,J)};
_.Qn=function(p,J){typeof p==="function"&&(p=_.c5(p));return window.setInterval(p,J)};
_.CQ=function(p){window.clearTimeout(p)};
nO4=function(p){p=_.ih(p);for(var J=_.K(Zl9),S=J.next();!S.done;S=J.next())if(p[S.value]!==void 0)return!0;return!1};
mqs=function(p,J,S,H,M,X,Z,n,b){S=S===void 0?"GET":S;H=H===void 0?"":H;n=n===void 0?!1:n;var F=Rai();if(!F)return null;var f=function(){(F&&"readyState"in F?F.readyState:0)===4&&J&&_.c5(J)(F)};
"onloadend"in F?F.addEventListener("loadend",f,!1):F.onreadystatechange=f;_.z("debug_forward_web_query_parameters")&&(p=Gvt(p,window.location.search));F.open(S,p,!0);X&&(F.responseType=X);Z&&(F.withCredentials=!0);S=S==="POST"&&(window.FormData===void 0||!(H instanceof FormData));if(M=blg(p,M))for(var O in M)F.setRequestHeader(O,M[O]),"content-type"===O.toLowerCase()&&(S=!1);S&&F.setRequestHeader("Content-Type","application/x-www-form-urlencoded");b&&"onprogress"in F&&(F.onprogress=function(){b(F.responseText)});
if(n&&"setAttributionReporting"in XMLHttpRequest.prototype){p={eventSourceEligible:!0,triggerEligible:!1};try{F.setAttributionReporting(p)}catch(A){_.SB(A)}}F.send(H);return F};
blg=function(p,J){J=J===void 0?{}:J;var S=bh(p),H=_.jn("INNERTUBE_CLIENT_NAME"),M=_.z("web_ajax_ignore_global_headers_if_set"),X;for(X in FYv){var Z=_.jn(FYv[X]),n=X==="X-Goog-AuthUser"||X==="X-Goog-PageId";X!=="X-Goog-Visitor-Id"||Z||(Z=_.jn("VISITOR_DATA"));var b;if(!(b=!Z)){if(!(b=S||(_.nQ(p)?!1:!0))){b=p;var F;if(F=_.z("add_auth_headers_to_remarketing_google_dot_com_ping")&&X==="Authorization"&&(H==="TVHTML5"||H==="TVHTML5_UNPLUGGED"||H==="TVHTML5_SIMPLY"))F=r1k(b),F=F===null?!1:F[1]==="google"?
!0:F[2]==="google"?F[0]==="au"&&F[1]==="com"?!0:F[0]==="uk"&&F[1]==="co"?!0:!1:!1;F&&(b=_.yn(b)||"",b=b.split("/"),b="/"+(b.length>1?b[1]:""),F=b==="/pagead");b=F?!0:!1}b=!b}b||M&&J[X]!==void 0||H==="TVHTML5_UNPLUGGED"&&n||(J[X]=Z)}"X-Goog-EOM-Visitor-Id"in J&&"X-Goog-Visitor-Id"in J&&delete J["X-Goog-Visitor-Id"];if(S||!_.nQ(p))J["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(S||!_.nQ(p)){try{var f=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(O){}f&&(J["X-YouTube-Time-Zone"]=
f)}document.location.hostname.endsWith("youtubeeducation.com")||!S&&_.nQ(p)||(J["X-YouTube-Ad-Signals"]=axX(vOs()));return J};
_.fOs=function(p,J){var S=_.nQ(p);_.z("debug_handle_relative_url_for_query_forward_killswitch")||!S&&bh(p)&&(S=document.location.hostname);var H=_.yn(p);H=(S=S&&(S.endsWith("youtube.com")||S.endsWith("youtube-nocookie.com")))&&H&&H.startsWith("/api/");if(!S||H)return p;var M=_.X9(J),X={};_.MV(Zl9,function(Z){M[Z]&&(X[Z]=M[Z])});
return YBW(p,X)};
Ol4=function(p,J){J.method="POST";J.postParams||(J.postParams={});return _.BO(p,J)};
APs=function(p,J){var S=_.jn("XSRF_FIELD_NAME"),H;J.headers&&(H=J.headers["Content-Type"]);return!J.excludeXsrf&&(!_.nQ(p)||J.withCredentials||_.nQ(p)===document.location.hostname)&&J.method==="POST"&&(!H||H==="application/x-www-form-urlencoded")&&!(J.postParams&&J.postParams[S])};
_.BO=function(p,J){var S=J.format||"JSON";p=P7i(p,J);var H=za9(p,J),M=!1,X=$qt(p,function(b){if(!M){M=!0;n&&_.CQ(n);var F=_.KYw(b),f=null,O=400<=b.status&&b.status<500,A=500<=b.status&&b.status<600;if(F||O||A)f=oOw(p,S,b,J.convertToSafeHtml);F&&(F=eat(S,b,f));f=f||{};O=J.context||_.Hg;F?J.onSuccess&&J.onSuccess.call(O,b,f):J.onError&&J.onError.call(O,b,f);J.onFinish&&J.onFinish.call(O,b,f)}},J.method,H,J.headers,J.responseType,J.withCredentials,!1,J.onProgress);
H=J.timeout||0;if(J.onTimeout&&H>0){var Z=J.onTimeout;var n=_.WO(function(){M||(M=!0,X.abort(),_.CQ(n),Z.call(J.context||_.Hg,X))},H)}return X};
P7i=function(p,J){J.includeDomain&&(p=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+p);var S=_.jn("XSRF_FIELD_NAME");if(J=J.urlParams)J[S]&&delete J[S],p=_.Ry(p,J);return p};
za9=function(p,J){var S=_.jn("XSRF_FIELD_NAME"),H=_.jn("XSRF_TOKEN"),M=J.postBody||"",X=J.postParams;APs(p,J)&&(X||(X={}),X[S]=H);(_.z("ajax_parse_query_data_only_when_filled")&&X&&Object.keys(X).length>0||X)&&typeof M==="string"&&(M=_.X9(M),_.T6.extend(M,X),M=J.postBodyFormat&&J.postBodyFormat==="JSON"?JSON.stringify(M):_.Uv(M));X=M||X&&!_.T6.isEmpty(X);!WYX&&X&&J.method!=="POST"&&(WYX=!0,_.xv(Error("Jc")));return M};
oOw=function(p,J,S,H){var M=null;switch(J){case "JSON":try{var X=S.responseText}catch(Z){throw H=Error("Kc"),H.params=p,_.SB(H),Z;}p=S.getResponseHeader("Content-Type")||"";X&&p.indexOf("json")>=0&&(X.substring(0,5)===")]}'\n"&&(X=X.substring(5)),M=JSON.parse(X));break;case "XML":if(p=(p=S.responseXML)?Q5k(p):null)M={},_.MV(p.getElementsByTagName("*"),function(Z){M[Z.tagName]=C74(Z)})}H&&yPX(M);
return M};
yPX=function(p){if(_.Ei(p))for(var J in p)J==="html_content"||iw(J,"_html")?p[J]=xp(p[J]):yPX(p[J])};
eat=function(p,J,S){if(J&&J.status===204)return!0;switch(p){case "JSON":return!!S;case "XML":return Number(S&&S.return_code)===0;case "RAW":return!0;default:return!!S}};
Q5k=function(p){return p?(p=("responseXML"in p?p.responseXML:p).getElementsByTagName("root"))&&p.length>0?p[0]:null:null};
C74=function(p){var J="";_.MV(p.childNodes,function(S){J+=S.nodeValue});
return J};
BIX=function(p){if(p.name==="JavaException")return!0;p=p.stack;return p.includes("chrome://")||p.includes("-extension://")||p.includes("webkit-masked-url://")};
Uq9=function(p){if(!p.stack)return!0;var J=!p.stack.includes("\n");return J&&p.stack.includes("ErrorType: ")||J&&p.stack.includes("Anonymous function (Unknown script")||p.stack.toLowerCase()==="not available"||p.fileName==="user-script"||p.fileName.startsWith("user-script:")?!0:!1};
_.sv=function(p){_.gp.call(this);this.JSC$10674_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!p};
gOv=function(p,J){var S=p.length,H=0,M=function(){return p.charCodeAt(H++)};
do{var X=s5t(M);if(X===Infinity)break;var Z=X>>3;switch(X&7){case 0:X=s5t(M);if(Z===J)return X;break;case 1:if(Z===J)return;H+=8;break;case 2:X=s5t(M);if(Z===J)return p.substr(H,X);H+=X;break;case 5:if(Z===J)return;H+=4;break;default:return}}while(H<S)};
s5t=function(p){var J=p(),S=J&127;if(J<128)return S;J=p();S|=(J&127)<<7;if(J<128)return S;J=p();S|=(J&127)<<14;if(J<128)return S;J=p();return J<128?S|(J&127)<<21:Infinity};
hai=function(p,J,S,H){if(p)if(Array.isArray(p)){var M=H;for(H=0;H<p.length&&!(p[H]&&(M+=tUX(H,p[H],J,S),M>500));H++);H=M}else if(typeof p==="object")for(M in p){if(p[M]){var X=M;var Z=p[M],n=J,b=S;X=typeof Z!=="string"||X!=="clickTrackingParams"&&X!=="trackingParams"?0:(Z=gOv(atob(Z.replace(/-/g,"+").replace(/_/g,"/")),2))?tUX(X+".ve",Z,n,b):0;H+=X;H+=tUX(M,p[M],J,S);if(H>500)break}}else S[J]=g1(p),H+=S[J].length;else S[J]=g1(p),H+=S[J].length;return H};
tUX=function(p,J,S,H){S+="."+p;p=g1(J);H[S]=p;return S.length+p.length};
g1=function(p){try{return(typeof p==="string"?p:String(JSON.stringify(p))).substr(0,500)}catch(J){return"unable to serialize "+typeof p+" ("+J.message+")"}};
Dqv=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}};
_.hl=function(p,J,S,H,M){_.tl.set(p,J,{maxAge:S,path:"/",domain:H===void 0?"youtube.com":H,secure:M===void 0?!1:M})};
_.kv4=function(p,J,S){_.tl.remove(p,J===void 0?"/":J,S===void 0?"youtube.com":S)};
_.DL=function(){if(_.z("embeds_web_enable_cookie_detection_fix")){if(!_.Hg.navigator.cookieEnabled)return!1}else if(!_.tl.isEnabled())return!1;if(!_.tl.isEmpty())return!0;_.z("embeds_web_enable_cookie_detection_fix")?_.tl.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.tl.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.tl.get("TESTCOOKIESENABLED")!=="1")return!1;_.tl.remove("TESTCOOKIESENABLED");return!0};
NIX=function(){var p=_.Hg.navigator;return p?p.connection:void 0};
TIX=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(p){}};
_.u6i=function(){var p=NIX();if(p){var J=dqL[p.type||"unknown"]||"CONN_UNKNOWN";p=dqL[p.effectiveType||"unknown"]||"CONN_UNKNOWN";J==="CONN_CELLULAR_UNKNOWN"&&p!=="CONN_UNKNOWN"&&(J=p);if(J!=="CONN_UNKNOWN")return J;if(p!=="CONN_UNKNOWN")return p}};
VUi=function(){var p=NIX();if(p!=null&&p.effectiveType)return lO4.hasOwnProperty(p.effectiveType)?lO4[p.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.NV=function(){try{return _.ka(),!0}catch(p){return!1}};
_.ka=function(p){if(_.jn("DATASYNC_ID")!==void 0)return _.jn("DATASYNC_ID");throw new _.TG("Datasync ID not set",p===void 0?"unknown":p);};
_.d1=function(p){this.mechanism=p};
uh=function(p){this.mechanism=p};
lh=function(p){this.storage_=p;this.cachedIsStorageAvailable_=null};
qJs=function(){var p=null;try{p=_.Hg.localStorage||null}catch(J){}lh.call(this,p)};
aO3=function(){var p=null;try{p=_.Hg.sessionStorage||null}catch(J){}lh.call(this,p)};
Vn=function(p,J){this.mechanism_=p;this.JSC$10777_prefix_=J+"::"};
_.qV=function(p){var J=new qJs;return J.isAvailable()?p?new Vn(J,p):J:null};
_.EOX=function(p){var J=new aO3;return J.isAvailable()?p?new Vn(J,p):J:null};
rPX=function(){var p;return(p=YJW())==null?void 0:p.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Ya=function(p){j5W||(_.ay?_.ay.logError(p):(_.Ev.push({type:"ERROR",payload:p}),_.Ev.length>10&&_.Ev.shift()))};
r1=function(p,J){j5W||(_.ay?_.ay.logEvent(p,J):(_.Ev.push({type:"EVENT",eventType:p,payload:J}),_.Ev.length>10&&_.Ev.shift()))};
jB=function(p){if(p.indexOf(":")>=0)throw Error("Rc");};
w1=function(p){return p.substr(0,p.indexOf(":"))||p};
cPW=function(){return(w9X||xq9)&&xa("applewebkit")&&!xa("version")&&(!xa("safari")||xa("gsa/"))};
xa=function(p){var J=_.fL();return J?J.toLowerCase().indexOf(p)>=0:!1};
pqL=function(p,J,S,H){J=w1(J);var M=p instanceof Error?p:Error("Sc`"+p);if(M instanceof cO)return M;p={objectStoreNames:S,dbName:J,dbVersion:H};if(M.name==="QuotaExceededError")return new cO("QUOTA_EXCEEDED",p);if(_.Iy&&M.name==="UnknownError")return new cO("QUOTA_MAYBE_EXCEEDED",p);if(M instanceof IOi)return new cO("MISSING_INDEX",Object.assign({},p,{objectStore:M.objectStore,index:M.index}));if(M.name==="InvalidStateError"&&LYs.some(function(X){return M.message.includes(X)}))return new cO("EXECUTE_TRANSACTION_ON_CLOSED_DB",
p);
if(M.name==="AbortError")return new cO("UNKNOWN_ABORT",p,M.message);M.args=[Object.assign({},p,{name:"IdbError",originalName:M.name})];M.level="WARNING";return M};
LQ=function(p,J,S){var H=rPX();return new cO("IDB_NOT_SUPPORTED",{context:{caller:p,publicName:J,version:S,hasSucceededOnce:H==null?void 0:H.hasSucceededOnce}})};
Jkv=function(p){if(!p)throw Error();throw p;};
S4v=function(p){return p};
H$X=function(p,J,S){var H=function(){try{p.removeEventListener("success",M),p.removeEventListener("error",X)}catch(Z){}},M=function(){J(p.result);
H()},X=function(){S(p.error);
H()};
p.addEventListener("success",M);p.addEventListener("error",X)};
Mxi=function(p){return new Promise(function(J,S){H$X(p,J,S)})};
S9=function(p){return new pO(new Jq(function(J,S){H$X(p,J,S)}))};
Xqs=function(p,J){return new pO(new Jq(function(S,H){var M=function(){var X=p?J(p):null;X?X.then(function(Z){p=Z;M()},H):S()};
M()}))};
i$i=function(p,J,S){return new Promise(function(H,M){var X=J!==void 0?self.indexedDB.open(p,J):self.indexedDB.open(p);var Z=S.blocked,n=S.blocking,b=S.terminated,F=S.upgrade,f=S.closed,O,A=function(){O||(O=new HB(X.result,{closed:f}));return O};
X.addEventListener("upgradeneeded",function(P){try{if(P.newVersion===null)throw Error("Xc");if(X.transaction===null)throw Error("Yc");P.dataLoss&&P.dataLoss!=="none"&&r1("IDB_DATA_CORRUPTED",{reason:P.dataLossMessage||"unknown reason",dbName:w1(p)});var W=A(),y=new M1(X.transaction);F&&F(W,function(t){return P.oldVersion<t&&P.newVersion>=t},y);
y.done.catch(function(t){M(t)})}catch(t){M(t)}});
X.addEventListener("success",function(){var P=X.result;n&&P.addEventListener("versionchange",function(){n(A())});
P.addEventListener("close",function(){r1("IDB_UNEXPECTEDLY_CLOSED",{dbName:w1(p),dbVersion:P.version});b&&b()});
H(A())});
X.addEventListener("error",function(){M(X.error)});
Z&&X.addEventListener("blocked",function(){Z()})})};
R0W=function(p,J,S){S=S===void 0?{}:S;return i$i(p,J,S)};
_.i4=function(p,J){J=J===void 0?{}:J;var S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return _.oI(Z,2),S=self.indexedDB.deleteDatabase(p),H=J,(M=H.blocked)&&S.addEventListener("blocked",function(){M()}),Z.yield(Mxi(S),4);
if(Z.nextAddress!=2)return _.X$(Z,0);X=_.BZ(Z);throw pqL(X,p,"",-1);})};
Z$9=function(p,J){var S;return _.G(function(H){if(H.nextAddress==1)return H.yield(_.R6(Kgw,J),2);S=H.yieldResult;return H.return(_.KO(S,["databases"],{enableRetries:!0,mode:"readwrite"},function(M){var X=M.objectStore("databases");return X.get(p.actualName).then(function(Z){if(Z?p.actualName!==Z.actualName||p.publicName!==Z.publicName||p.userIdentifier!==Z.userIdentifier:1)return X.put(p).then(function(){})})}))})};
_.Zk=function(p,J){var S;return _.G(function(H){if(H.nextAddress==1)return p?H.yield(_.R6(Kgw,J),2):H.return();S=H.yieldResult;return H.return(S.delete("databases",p))})};
_.nZX=function(p,J){var S,H;return _.G(function(M){return M.nextAddress==1?(S=[],M.yield(_.R6(Kgw,J),2)):M.nextAddress!=3?(H=M.yieldResult,M.yield(_.KO(H,["databases"],{enableRetries:!0,mode:"readonly"},function(X){S.length=0;return nO(X.objectStore("databases"),{},function(Z){p(Z.getValue())&&S.push(Z.getValue());return Z.continue()})}),3)):M.return(S)})};
Gr3=function(p,J){return _.nZX(function(S){return S.publicName===p&&S.userIdentifier!==void 0},J)};
FgW=function(){var p,J,S,H;return _.G(function(M){switch(M.nextAddress){case 1:p=rPX();if((J=p)==null?0:J.hasSucceededOnce)return M.return(!0);var X;if(X=b$v)X=/WebKit\/([0-9]+)/.exec(_.fL()),X=!!(X&&parseInt(X[1],10)>=600);X&&(X=/WebKit\/([0-9]+)/.exec(_.fL()),X=!(X&&parseInt(X[1],10)>=602));if(X||Gx)return M.return(!1);try{if(S=self,!(S.indexedDB&&S.IDBIndex&&S.IDBKeyRange&&S.IDBObjectStore))return M.return(!1)}catch(Z){return M.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return M.return(!1);
_.oI(M,2);H={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return M.yield(Z$9(H,mwk),4);case 4:return M.yield(_.Zk("yt-idb-test-do-not-use",mwk),5);case 5:return M.return(!0);case 2:return _.BZ(M),M.return(!1)}})};
fYX=function(){if(vZ4!==void 0)return vZ4;j5W=!0;return vZ4=FgW().then(function(p){j5W=!1;var J;if((J=YJW())!=null&&J.hasLocalStorage()){var S;J={hasSucceededOnce:((S=rPX())==null?void 0:S.hasSucceededOnce)||p};var H;(H=YJW())==null||H.set("LAST_RESULT_ENTRY_KEY",J,2592E3,!0)}return p})};
b4=function(){return _.Id("ytglobal.idbToken_")||void 0};
_.F$=function(){var p=b4();return p?Promise.resolve(p):fYX().then(function(J){(J=J?mwk:void 0)&&_.m$("ytglobal.idbToken_",J);return J})};
O$W=function(p){if(!_.NV())throw p=new cO("AUTH_INVALID",{dbName:p}),_.Ya(p),p;var J=_.ka();return{actualName:p+":"+J,publicName:p,userIdentifier:J}};
Ak4=function(p,J,S,H){var M,X,Z,n,b,F;return _.G(function(f){switch(f.nextAddress){case 1:return X=(M=Error().stack)!=null?M:"",f.yield(_.F$(),2);case 2:Z=f.yieldResult;if(!Z)throw n=LQ("openDbImpl",p,J),_.z("ytidb_async_stack_killswitch")||(n.stack=n.stack+"\n"+X.substring(X.indexOf("\n")+1)),_.Ya(n),n;jB(p);b=S?{actualName:p,publicName:p,userIdentifier:void 0}:O$W(p);_.oI(f,3);return f.yield(Z$9(b,Z),5);case 5:return f.yield(R0W(b.actualName,J,H),6);case 6:return f.return(f.yieldResult);case 3:return F=
_.BZ(f),_.oI(f,7),f.yield(_.Zk(b.actualName,Z),9);case 9:_.X$(f,8);break;case 7:_.BZ(f);case 8:throw F;}})};
PoX=function(p,J,S){S=S===void 0?{}:S;return Ak4(p,J,!1,S)};
z0W=function(p,J,S){S=S===void 0?{}:S;return Ak4(p,J,!0,S)};
$wX=function(p,J){J=J===void 0?{}:J;var S,H;return _.G(function(M){if(M.nextAddress==1)return M.yield(_.F$(),2);if(M.nextAddress!=3){S=M.yieldResult;if(!S)return M.return();jB(p);H=O$W(p);return M.yield(_.i4(H.actualName,J),3)}return M.yield(_.Zk(H.actualName,S),0)})};
oZX=function(p,J,S){p=p.map(function(H){return _.G(function(M){return M.nextAddress==1?M.yield(_.i4(H.actualName,J),2):M.yield(_.Zk(H.actualName,S),0)})});
return Promise.all(p).then(function(){})};
e0v=function(p){var J=J===void 0?{}:J;var S,H;return _.G(function(M){if(M.nextAddress==1)return M.yield(_.F$(),2);if(M.nextAddress!=3){S=M.yieldResult;if(!S)return M.return();jB(p);return M.yield(Gr3(p,S),3)}H=M.yieldResult;return M.yield(oZX(H,J,S),0)})};
Wgs=function(p,J){J=J===void 0?{}:J;var S;return _.G(function(H){if(H.nextAddress==1)return H.yield(_.F$(),2);if(H.nextAddress!=3){S=H.yieldResult;if(!S)return H.return();jB(p);return H.yield(_.i4(p,J),3)}return H.yield(_.Zk(p,S),0)})};
vB=function(p,J){return QR4(p,J)};
ykk=function(p){return _.R6(Co9(),p)};
Bl3=function(p,J,S,H){var M,X,Z;return _.G(function(n){switch(n.nextAddress){case 1:return M={config:p,hashData:J,timestamp:H!==void 0?H:(0,_.fO)()},n.yield(ykk(S),2);case 2:return X=n.yieldResult,n.yield(X.clear("hotConfigStore"),3);case 3:return n.yield(X.put("hotConfigStore",M),4);case 4:return Z=n.yieldResult,n.return(Z)}})};
UwW=function(p,J,S,H,M){var X,Z,n;return _.G(function(b){switch(b.nextAddress){case 1:return X={config:p,hashData:J,configData:S,timestamp:M!==void 0?M:(0,_.fO)()},b.yield(ykk(H),2);case 2:return Z=b.yieldResult,b.yield(Z.clear("coldConfigStore"),3);case 3:return b.yield(Z.put("coldConfigStore",X),4);case 4:return n=b.yieldResult,b.return(n)}})};
sRt=function(p){var J,S;return _.G(function(H){return H.nextAddress==1?H.yield(ykk(p),2):H.nextAddress!=3?(J=H.yieldResult,S=void 0,H.yield(_.KO(J,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(M){return _.O3(M.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(X){S=X.getValue()})}),3)):H.return(S)})};
gZk=function(p){var J,S;return _.G(function(H){return H.nextAddress==1?H.yield(ykk(p),2):H.nextAddress!=3?(J=H.yieldResult,S=void 0,H.yield(_.KO(J,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(M){return _.O3(M.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(X){S=X.getValue()})}),3)):H.return(S)})};
txX=function(){return _.G(function(p){return p.yield(e0v("ytGcfConfig"),0)})};
h0g=function(){return"INNERTUBE_API_KEY"in _.Yv&&"INNERTUBE_API_VERSION"in _.Yv};
_.Aq=function(){return{innertubeApiKey:_.jn("INNERTUBE_API_KEY"),innertubeApiVersion:_.jn("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.jn("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.jn("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.jn("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.jn("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.jn("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.jn("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.jn("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.wY("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.wY("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.jn("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.lYX=function(p){var J={client:{hl:p.innertubeContextHostLanguage,gl:p.innertubeContextGeoLocation,clientName:p.innertubeContextClientName,clientVersion:p.innertubeContextClientVersion,configInfo:p.innertubeContextClientConfigInfo}};navigator.userAgent&&(J.client.userAgent=String(navigator.userAgent));var S=_.Hg.devicePixelRatio;S&&S!=1&&(J.client.screenDensityFloat=String(S));S=MUW();S!==""&&(J.client.experimentsToken=S);S=X9t();S.length>0&&(J.request={internalExperimentFlags:S});Dwt(p,void 0,J);
krg(void 0,J);NlX(void 0,J);Tl9(p,void 0,J);dwL(void 0,J);_.z("start_client_gcf")&&uDw(void 0,J);_.jn("DELEGATED_SESSION_ID")&&!_.z("pageid_as_header_web")&&(J.user={onBehalfOfUser:_.jn("DELEGATED_SESSION_ID")});!_.z("fill_delegate_context_in_gel_killswitch")&&(p=_.jn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(J.user=Object.assign({},J.user,{serializedDelegationContext:p}));p=_.jn("INNERTUBE_CONTEXT");var H;if(_.z("enable_persistent_device_token")&&(p==null?0:(H=p.client)==null?0:H.rolloutToken)){var M;
J.client.rolloutToken=p==null?void 0:(M=p.client)==null?void 0:M.rolloutToken}H=Object;M=H.assign;p=J.client;S={};for(var X=_.K(Object.entries(_.X9(_.jn("DEVICE","")))),Z=X.next();!Z.done;Z=X.next()){var n=_.K(Z.value);Z=n.next().value;n=n.next().value;Z==="cbrand"?S.deviceMake=n:Z==="cmodel"?S.deviceModel=n:Z==="cbr"?S.browserName=n:Z==="cbrver"?S.browserVersion=n:Z==="cos"?S.osName=n:Z==="cosver"?S.osVersion=n:Z==="cplatform"&&(S.platform=n)}J.client=M.call(H,p,S);return J};
Dwt=function(p,J,S){p=p.innertubeContextClientName;if(p==="WEB"||p==="MWEB"||p===1||p===2)if(J){S=_.PB(J,VxW,96)||new VxW;var H=q4k();H=Object.keys(aYw).indexOf(H);H=H===-1?null:H;H!==null&&_.zx(S,3,H);_.Qd(J,96,S)}else S&&(S.client.mainAppWebInfo=(H=S.client.mainAppWebInfo)!=null?H:{},S.client.mainAppWebInfo.webDisplayMode=q4k())};
krg=function(p,J){var S=_.Id("yt.embedded_player.embed_url");S&&(p?(J=_.PB(p,EZX,7)||new EZX,_.g2(J,4,S),_.Qd(p,7,J)):J&&(J.thirdParty={embedUrl:S}))};
NlX=function(p,J){var S;if(_.z("web_log_memory_total_kbytes")&&((S=_.Hg.navigator)==null?0:S.deviceMemory)){var H;S=(H=_.Hg.navigator)==null?void 0:H.deviceMemory;p?_.e9(p,95,b$(S*1E6)):J&&(J.client.memoryTotalKbytes=""+S*1E6)}};
Tl9=function(p,J,S){if(p.appInstallData)if(J){var H;S=(H=_.PB(J,WB,62))!=null?H:new WB;_.g2(S,6,p.appInstallData);_.Qd(J,62,S)}else S&&(S.client.configInfo=S.client.configInfo||{},S.client.configInfo.appInstallData=p.appInstallData)};
dwL=function(p,J){var S=_.u6i();S&&(p?_.zx(p,61,Y4v[S]):J&&(J.client.connectionType=S));_.z("web_log_effective_connection_type")&&(S=VUi())&&(p?_.zx(p,94,rkX[S]):J&&(J.client.effectiveConnectionType=S))};
_.xws=function(p,J,S){S=S===void 0?{}:S;var H={};_.jn("EOM_VISITOR_DATA")?H={"X-Goog-EOM-Visitor-Id":_.jn("EOM_VISITOR_DATA")}:H={"X-Goog-Visitor-Id":S.visitorData||_.jn("VISITOR_DATA","")};if(J&&J.includes("www.youtube-nocookie.com"))return H;J=S.authorization||_.jn("AUTHORIZATION");J||(p?J="Bearer "+_.Id("gapi.auth.getToken")().access_token:(jRg.instance||(jRg.instance=new jRg),p=wqw(),_.z("pageid_as_header_web")||delete p["X-Goog-PageId"],H=Object.assign({},H,p)));J&&(H.Authorization=J);return H};
uDw=function(p,J){var S=ckX();if(S){var H=S.coldConfigData,M=S.coldHashData;S=S.hotHashData;if(p){var X;J=(X=_.PB(p,WB,62))!=null?X:new WB;H=_.g2(J,1,H);_.g2(H,3,M).setHotHashData(S);_.Qd(p,62,J)}else J&&(J.client.configInfo=J.client.configInfo||{},H&&(J.client.configInfo.coldConfigData=H),M&&(J.client.configInfo.coldHashData=M),S&&(J.client.configInfo.hotHashData=S))}};
Qp=function(p){for(var J=p.length;--J>=0;)p[J]=0};
IY9=function(p,J,S,H,M){this.static_tree=p;this.extra_bits=J;this.extra_base=S;this.elems=H;this.max_length=M;this.has_stree=p&&p.length};
Lgi=function(p,J){this.dyn_tree=p;this.max_code=0;this.stat_desc=J};
CO=function(p,J){p.pending_buf[p.pending++]=J&255;p.pending_buf[p.pending++]=J>>>8&255};
yp=function(p,J,S){p.bi_valid>16-S?(p.bi_buf|=J<<p.bi_valid&65535,CO(p,p.bi_buf),p.bi_buf=J>>16-p.bi_valid,p.bi_valid+=S-16):(p.bi_buf|=J<<p.bi_valid&65535,p.bi_valid+=S)};
BB=function(p,J,S){yp(p,S[J*2],S[J*2+1])};
pts=function(p,J){var S=0;do S|=p&1,p>>>=1,S<<=1;while(--J>0);return S>>>1};
JcW=function(p,J,S){var H=Array(16),M=0,X;for(X=1;X<=15;X++)H[X]=M=M+S[X-1]<<1;for(S=0;S<=J;S++)M=p[S*2+1],M!==0&&(p[S*2]=pts(H[M]++,M))};
Sri=function(p){var J;for(J=0;J<286;J++)p.dyn_ltree[J*2]=0;for(J=0;J<30;J++)p.dyn_dtree[J*2]=0;for(J=0;J<19;J++)p.bl_tree[J*2]=0;p.dyn_ltree[512]=1;p.opt_len=p.static_len=0;p.last_lit=p.matches=0};
Hyt=function(p){p.bi_valid>8?CO(p,p.bi_buf):p.bi_valid>0&&(p.pending_buf[p.pending++]=p.bi_buf);p.bi_buf=0;p.bi_valid=0};
MS4=function(p,J,S){Hyt(p);CO(p,S);CO(p,~S);U3.arraySet(p.pending_buf,p.window,J,S,p.pending);p.pending+=S};
Xtt=function(p,J,S,H){var M=J*2,X=S*2;return p[M]<p[X]||p[M]===p[X]&&H[J]<=H[S]};
iyW=function(p,J,S){for(var H=p.heap[S],M=S<<1;M<=p.heap_len;){M<p.heap_len&&Xtt(J,p.heap[M+1],p.heap[M],p.depth)&&M++;if(Xtt(J,H,p.heap[M],p.depth))break;p.heap[S]=p.heap[M];S=M;M<<=1}p.heap[S]=H};
Ges=function(p,J,S){var H=0;if(p.last_lit!==0){do{var M=p.pending_buf[p.d_buf+H*2]<<8|p.pending_buf[p.d_buf+H*2+1];var X=p.pending_buf[p.l_buf+H];H++;if(M===0)BB(p,X,J);else{var Z=s3[X];BB(p,Z+256+1,J);var n=RdW[Z];n!==0&&(X-=KuX[Z],yp(p,X,n));M--;Z=M<256?gg[M]:gg[256+(M>>>7)];BB(p,Z,S);n=Zyi[Z];n!==0&&(M-=nts[Z],yp(p,M,n))}}while(H<p.last_lit)}BB(p,256,J)};
byg=function(p,J){var S=J.dyn_tree,H=J.stat_desc.static_tree,M=J.stat_desc.has_stree,X=J.stat_desc.elems,Z,n=-1;p.heap_len=0;p.heap_max=573;for(Z=0;Z<X;Z++)S[Z*2]!==0?(p.heap[++p.heap_len]=n=Z,p.depth[Z]=0):S[Z*2+1]=0;for(;p.heap_len<2;){var b=p.heap[++p.heap_len]=n<2?++n:0;S[b*2]=1;p.depth[b]=0;p.opt_len--;M&&(p.static_len-=H[b*2+1])}J.max_code=n;for(Z=p.heap_len>>1;Z>=1;Z--)iyW(p,S,Z);b=X;do Z=p.heap[1],p.heap[1]=p.heap[p.heap_len--],iyW(p,S,1),H=p.heap[1],p.heap[--p.heap_max]=Z,p.heap[--p.heap_max]=
H,S[b*2]=S[Z*2]+S[H*2],p.depth[b]=(p.depth[Z]>=p.depth[H]?p.depth[Z]:p.depth[H])+1,S[Z*2+1]=S[H*2+1]=b,p.heap[1]=b++,iyW(p,S,1);while(p.heap_len>=2);p.heap[--p.heap_max]=p.heap[1];Z=J.dyn_tree;b=J.max_code;H=J.stat_desc.static_tree;M=J.stat_desc.has_stree;X=J.stat_desc.extra_bits;var F=J.stat_desc.extra_base,f=J.stat_desc.max_length,O,A=0;for(O=0;O<=15;O++)p.bl_count[O]=0;Z[p.heap[p.heap_max]*2+1]=0;for(J=p.heap_max+1;J<573;J++){var P=p.heap[J];O=Z[Z[P*2+1]*2+1]+1;O>f&&(O=f,A++);Z[P*2+1]=O;if(!(P>
b)){p.bl_count[O]++;var W=0;P>=F&&(W=X[P-F]);var y=Z[P*2];p.opt_len+=y*(O+W);M&&(p.static_len+=y*(H[P*2+1]+W))}}if(A!==0){do{for(O=f-1;p.bl_count[O]===0;)O--;p.bl_count[O]--;p.bl_count[O+1]+=2;p.bl_count[f]--;A-=2}while(A>0);for(O=f;O!==0;O--)for(P=p.bl_count[O];P!==0;)H=p.heap[--J],H>b||(Z[H*2+1]!==O&&(p.opt_len+=(O-Z[H*2+1])*Z[H*2],Z[H*2+1]=O),P--)}JcW(S,n,p.bl_count)};
mck=function(p,J,S){var H,M=-1,X=J[1],Z=0,n=7,b=4;X===0&&(n=138,b=3);J[(S+1)*2+1]=65535;for(H=0;H<=S;H++){var F=X;X=J[(H+1)*2+1];++Z<n&&F===X||(Z<b?p.bl_tree[F*2]+=Z:F!==0?(F!==M&&p.bl_tree[F*2]++,p.bl_tree[32]++):Z<=10?p.bl_tree[34]++:p.bl_tree[36]++,Z=0,M=F,X===0?(n=138,b=3):F===X?(n=6,b=3):(n=7,b=4))}};
Fu4=function(p,J,S){var H,M=-1,X=J[1],Z=0,n=7,b=4;X===0&&(n=138,b=3);for(H=0;H<=S;H++){var F=X;X=J[(H+1)*2+1];if(!(++Z<n&&F===X)){if(Z<b){do BB(p,F,p.bl_tree);while(--Z!==0)}else F!==0?(F!==M&&(BB(p,F,p.bl_tree),Z--),BB(p,16,p.bl_tree),yp(p,Z-3,2)):Z<=10?(BB(p,17,p.bl_tree),yp(p,Z-3,3)):(BB(p,18,p.bl_tree),yp(p,Z-11,7));Z=0;M=F;X===0?(n=138,b=3):F===X?(n=6,b=3):(n=7,b=4)}}};
vtv=function(p){var J=4093624447,S;for(S=0;S<=31;S++,J>>>=1)if(J&1&&p.dyn_ltree[S*2]!==0)return 0;if(p.dyn_ltree[18]!==0||p.dyn_ltree[20]!==0||p.dyn_ltree[26]!==0)return 1;for(S=32;S<256;S++)if(p.dyn_ltree[S*2]!==0)return 1;return 0};
tq=function(p,J,S){p.pending_buf[p.d_buf+p.last_lit*2]=J>>>8&255;p.pending_buf[p.d_buf+p.last_lit*2+1]=J&255;p.pending_buf[p.l_buf+p.last_lit]=S&255;p.last_lit++;J===0?p.dyn_ltree[S*2]++:(p.matches++,J--,p.dyn_ltree[(s3[S]+256+1)*2]++,p.dyn_dtree[(J<256?gg[J]:gg[256+(J>>>7)])*2]++);return p.last_lit===p.lit_bufsize-1};
Dk=function(p,J){p.msg=hq[J];return J};
k_=function(p){for(var J=p.length;--J>=0;)p[J]=0};
N1=function(p){var J=p.state,S=J.pending;S>p.avail_out&&(S=p.avail_out);S!==0&&(U3.arraySet(p.output,J.pending_buf,J.pending_out,S,p.next_out),p.next_out+=S,J.pending_out+=S,p.total_out+=S,p.avail_out-=S,J.pending-=S,J.pending===0&&(J.pending_out=0))};
u4=function(p,J){var S=p.block_start>=0?p.block_start:-1,H=p.strstart-p.block_start,M=0;if(p.level>0){p.strm.data_type===2&&(p.strm.data_type=vtv(p));byg(p,p.l_desc);byg(p,p.d_desc);mck(p,p.dyn_ltree,p.l_desc.max_code);mck(p,p.dyn_dtree,p.d_desc.max_code);byg(p,p.bl_desc);for(M=18;M>=3&&p.bl_tree[fcL[M]*2+1]===0;M--);p.opt_len+=3*(M+1)+5+5+4;var X=p.opt_len+3+7>>>3;var Z=p.static_len+3+7>>>3;Z<=X&&(X=Z)}else X=Z=H+5;if(H+4<=X&&S!==-1)yp(p,J?1:0,3),MS4(p,S,H);else if(p.strategy===4||Z===X)yp(p,2+(J?
1:0),3),Ges(p,Tx,dg);else{yp(p,4+(J?1:0),3);S=p.l_desc.max_code+1;H=p.d_desc.max_code+1;M+=1;yp(p,S-257,5);yp(p,H-1,5);yp(p,M-4,4);for(X=0;X<M;X++)yp(p,p.bl_tree[fcL[X]*2+1],3);Fu4(p,p.dyn_ltree,S-1);Fu4(p,p.dyn_dtree,H-1);Ges(p,p.dyn_ltree,p.dyn_dtree)}Sri(p);J&&Hyt(p);p.block_start=p.strstart;N1(p.strm)};
l4=function(p,J){p.pending_buf[p.pending++]=J};
Vp=function(p,J){p.pending_buf[p.pending++]=J>>>8&255;p.pending_buf[p.pending++]=J&255};
Oyg=function(p,J){var S=p.max_chain_length,H=p.strstart,M=p.prev_length,X=p.nice_match,Z=p.strstart>p.w_size-262?p.strstart-(p.w_size-262):0,n=p.window,b=p.w_mask,F=p.prev,f=p.strstart+258,O=n[H+M-1],A=n[H+M];p.prev_length>=p.good_match&&(S>>=2);X>p.lookahead&&(X=p.lookahead);do{var P=J;if(n[P+M]===A&&n[P+M-1]===O&&n[P]===n[H]&&n[++P]===n[H+1]){H+=2;for(P++;n[++H]===n[++P]&&n[++H]===n[++P]&&n[++H]===n[++P]&&n[++H]===n[++P]&&n[++H]===n[++P]&&n[++H]===n[++P]&&n[++H]===n[++P]&&n[++H]===n[++P]&&H<f;);
P=258-(f-H);H=f-258;if(P>M){p.match_start=J;M=P;if(P>=X)break;O=n[H+M-1];A=n[H+M]}}}while((J=F[J&b])>Z&&--S!==0);return M<=p.lookahead?M:p.lookahead};
a6=function(p){var J=p.w_size,S;do{var H=p.window_size-p.lookahead-p.strstart;if(p.strstart>=J+(J-262)){U3.arraySet(p.window,p.window,J,J,0);p.match_start-=J;p.strstart-=J;p.block_start-=J;var M=S=p.hash_size;do{var X=p.head[--M];p.head[M]=X>=J?X-J:0}while(--S);M=S=J;do X=p.prev[--M],p.prev[M]=X>=J?X-J:0;while(--S);H+=J}if(p.strm.avail_in===0)break;M=p.strm;S=p.window;X=p.strstart+p.lookahead;var Z=M.avail_in;Z>H&&(Z=H);Z===0?S=0:(M.avail_in-=Z,U3.arraySet(S,M.input,M.next_in,Z,X),M.state.wrap===
1?M.adler=Acg(M.adler,S,Z,X):M.state.wrap===2&&(M.adler=q1(M.adler,S,Z,X)),M.next_in+=Z,M.total_in+=Z,S=Z);p.lookahead+=S;if(p.lookahead+p.insert>=3)for(H=p.strstart-p.insert,p.ins_h=p.window[H],p.ins_h=(p.ins_h<<p.hash_shift^p.window[H+1])&p.hash_mask;p.insert&&!(p.ins_h=(p.ins_h<<p.hash_shift^p.window[H+3-1])&p.hash_mask,p.prev[H&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=H,H++,p.insert--,p.lookahead+p.insert<3););}while(p.lookahead<262&&p.strm.avail_in!==0)};
Pyv=function(p,J){for(var S;;){if(p.lookahead<262){a6(p);if(p.lookahead<262&&J===0)return 1;if(p.lookahead===0)break}S=0;p.lookahead>=3&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+3-1])&p.hash_mask,S=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);S!==0&&p.strstart-S<=p.w_size-262&&(p.match_length=Oyg(p,S));if(p.match_length>=3)if(S=tq(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 S=tq(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(S&&(u4(p,!1),p.strm.avail_out===0))return 1}p.insert=p.strstart<2?p.strstart:2;return J===4?(u4(p,
!0),p.strm.avail_out===0?3:4):p.last_lit&&(u4(p,!1),p.strm.avail_out===0)?1:2};
Y_=function(p,J){for(var S,H;;){if(p.lookahead<262){a6(p);if(p.lookahead<262&&J===0)return 1;if(p.lookahead===0)break}S=0;p.lookahead>=3&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+3-1])&p.hash_mask,S=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;S!==0&&p.prev_length<p.max_lazy_match&&p.strstart-S<=p.w_size-262&&(p.match_length=Oyg(p,S),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){H=p.strstart+p.lookahead-3;S=tq(p,p.strstart-1-p.prev_match,p.prev_length-3);p.lookahead-=p.prev_length-1;p.prev_length-=2;do++p.strstart<=H&&(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(S&&(u4(p,!1),p.strm.avail_out===0))return 1}else if(p.match_available){if((S=
tq(p,0,p.window[p.strstart-1]))&&u4(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&&(tq(p,0,p.window[p.strstart-1]),p.match_available=0);p.insert=p.strstart<2?p.strstart:2;return J===4?(u4(p,!0),p.strm.avail_out===0?3:4):p.last_lit&&(u4(p,!1),p.strm.avail_out===0)?1:2};
zdt=function(p,J){for(var S,H,M,X=p.window;;){if(p.lookahead<=258){a6(p);if(p.lookahead<=258&&J===0)return 1;if(p.lookahead===0)break}p.match_length=0;if(p.lookahead>=3&&p.strstart>0&&(H=p.strstart-1,S=X[H],S===X[++H]&&S===X[++H]&&S===X[++H])){for(M=p.strstart+258;S===X[++H]&&S===X[++H]&&S===X[++H]&&S===X[++H]&&S===X[++H]&&S===X[++H]&&S===X[++H]&&S===X[++H]&&H<M;);p.match_length=258-(M-H);p.match_length>p.lookahead&&(p.match_length=p.lookahead)}p.match_length>=3?(S=tq(p,1,p.match_length-3),p.lookahead-=
p.match_length,p.strstart+=p.match_length,p.match_length=0):(S=tq(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++);if(S&&(u4(p,!1),p.strm.avail_out===0))return 1}p.insert=0;return J===4?(u4(p,!0),p.strm.avail_out===0?3:4):p.last_lit&&(u4(p,!1),p.strm.avail_out===0)?1:2};
$cw=function(p,J){for(var S;;){if(p.lookahead===0&&(a6(p),p.lookahead===0)){if(J===0)return 1;break}p.match_length=0;S=tq(p,0,p.window[p.strstart]);p.lookahead--;p.strstart++;if(S&&(u4(p,!1),p.strm.avail_out===0))return 1}p.insert=0;return J===4?(u4(p,!0),p.strm.avail_out===0?3:4):p.last_lit&&(u4(p,!1),p.strm.avail_out===0)?1:2};
rg=function(p,J,S,H,M){this.good_length=p;this.max_lazy=J;this.nice_length=S;this.max_chain=H;this.func=M};
otL=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 U3.Buf16(1146);this.dyn_dtree=new U3.Buf16(122);this.bl_tree=new U3.Buf16(78);k_(this.dyn_ltree);k_(this.dyn_dtree);k_(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new U3.Buf16(16);this.heap=new U3.Buf16(573);k_(this.heap);this.heap_max=this.heap_len=0;this.depth=new U3.Buf16(573);k_(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};
edi=function(p,J){if(!p||!p.state||J>5||J<0)return p?Dk(p,-2):-2;var S=p.state;if(!p.output||!p.input&&p.avail_in!==0||S.status===666&&J!==4)return Dk(p,p.avail_out===0?-5:-2);S.strm=p;var H=S.last_flush;S.last_flush=J;if(S.status===42)if(S.wrap===2)p.adler=0,l4(S,31),l4(S,139),l4(S,8),S.gzhead?(l4(S,(S.gzhead.text?1:0)+(S.gzhead.hcrc?2:0)+(S.gzhead.extra?4:0)+(S.gzhead.name?8:0)+(S.gzhead.comment?16:0)),l4(S,S.gzhead.time&255),l4(S,S.gzhead.time>>8&255),l4(S,S.gzhead.time>>16&255),l4(S,S.gzhead.time>>
24&255),l4(S,S.level===9?2:S.strategy>=2||S.level<2?4:0),l4(S,S.gzhead.os&255),S.gzhead.extra&&S.gzhead.extra.length&&(l4(S,S.gzhead.extra.length&255),l4(S,S.gzhead.extra.length>>8&255)),S.gzhead.hcrc&&(p.adler=q1(p.adler,S.pending_buf,S.pending,0)),S.gzindex=0,S.status=69):(l4(S,0),l4(S,0),l4(S,0),l4(S,0),l4(S,0),l4(S,S.level===9?2:S.strategy>=2||S.level<2?4:0),l4(S,3),S.status=113);else{var M=8+(S.w_bits-8<<4)<<8;M|=(S.strategy>=2||S.level<2?0:S.level<6?1:S.level===6?2:3)<<6;S.strstart!==0&&(M|=
32);S.status=113;Vp(S,M+(31-M%31));S.strstart!==0&&(Vp(S,p.adler>>>16),Vp(S,p.adler&65535));p.adler=1}if(S.status===69)if(S.gzhead.extra){for(M=S.pending;S.gzindex<(S.gzhead.extra.length&65535)&&(S.pending!==S.pending_buf_size||(S.gzhead.hcrc&&S.pending>M&&(p.adler=q1(p.adler,S.pending_buf,S.pending-M,M)),N1(p),M=S.pending,S.pending!==S.pending_buf_size));)l4(S,S.gzhead.extra[S.gzindex]&255),S.gzindex++;S.gzhead.hcrc&&S.pending>M&&(p.adler=q1(p.adler,S.pending_buf,S.pending-M,M));S.gzindex===S.gzhead.extra.length&&
(S.gzindex=0,S.status=73)}else S.status=73;if(S.status===73)if(S.gzhead.name){M=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>M&&(p.adler=q1(p.adler,S.pending_buf,S.pending-M,M)),N1(p),M=S.pending,S.pending===S.pending_buf_size)){var X=1;break}X=S.gzindex<S.gzhead.name.length?S.gzhead.name.charCodeAt(S.gzindex++)&255:0;l4(S,X)}while(X!==0);S.gzhead.hcrc&&S.pending>M&&(p.adler=q1(p.adler,S.pending_buf,S.pending-M,M));X===0&&(S.gzindex=0,S.status=91)}else S.status=91;if(S.status===
91)if(S.gzhead.comment){M=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>M&&(p.adler=q1(p.adler,S.pending_buf,S.pending-M,M)),N1(p),M=S.pending,S.pending===S.pending_buf_size)){X=1;break}X=S.gzindex<S.gzhead.comment.length?S.gzhead.comment.charCodeAt(S.gzindex++)&255:0;l4(S,X)}while(X!==0);S.gzhead.hcrc&&S.pending>M&&(p.adler=q1(p.adler,S.pending_buf,S.pending-M,M));X===0&&(S.status=103)}else S.status=103;S.status===103&&(S.gzhead.hcrc?(S.pending+2>S.pending_buf_size&&N1(p),
S.pending+2<=S.pending_buf_size&&(l4(S,p.adler&255),l4(S,p.adler>>8&255),p.adler=0,S.status=113)):S.status=113);if(S.pending!==0){if(N1(p),p.avail_out===0)return S.last_flush=-1,0}else if(p.avail_in===0&&(J<<1)-(J>4?9:0)<=(H<<1)-(H>4?9:0)&&J!==4)return Dk(p,-5);if(S.status===666&&p.avail_in!==0)return Dk(p,-5);if(p.avail_in!==0||S.lookahead!==0||J!==0&&S.status!==666){H=S.strategy===2?$cw(S,J):S.strategy===3?zdt(S,J):j9[S.level].func(S,J);if(H===3||H===4)S.status=666;if(H===1||H===3)return p.avail_out===
0&&(S.last_flush=-1),0;if(H===2&&(J===1?(yp(S,2,3),BB(S,256,Tx),S.bi_valid===16?(CO(S,S.bi_buf),S.bi_buf=0,S.bi_valid=0):S.bi_valid>=8&&(S.pending_buf[S.pending++]=S.bi_buf&255,S.bi_buf>>=8,S.bi_valid-=8)):J!==5&&(yp(S,0,3),MS4(S,0,0),J===3&&(k_(S.head),S.lookahead===0&&(S.strstart=0,S.block_start=0,S.insert=0))),N1(p),p.avail_out===0))return S.last_flush=-1,0}if(J!==4)return 0;if(S.wrap<=0)return 1;S.wrap===2?(l4(S,p.adler&255),l4(S,p.adler>>8&255),l4(S,p.adler>>16&255),l4(S,p.adler>>24&255),l4(S,
p.total_in&255),l4(S,p.total_in>>8&255),l4(S,p.total_in>>16&255),l4(S,p.total_in>>24&255)):(Vp(S,p.adler>>>16),Vp(S,p.adler&65535));N1(p);S.wrap>0&&(S.wrap=-S.wrap);return S.pending!==0?0:1};
Wug=function(p){if(!(this instanceof Wug))return new Wug(p);p=this.options=U3.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 Qsi;this.strm.avail_out=0;var J=this.strm;var S=p.level,H=p.method,M=p.windowBits,X=p.memLevel,Z=p.strategy;if(J){var n=1;S===-1&&(S=6);M<0?(n=0,M=-M):M>15&&
(n=2,M-=16);if(X<1||X>9||H!==8||M<8||M>15||S<0||S>9||Z<0||Z>4)J=Dk(J,-2);else{M===8&&(M=9);var b=new otL;J.state=b;b.strm=J;b.wrap=n;b.gzhead=null;b.w_bits=M;b.w_size=1<<b.w_bits;b.w_mask=b.w_size-1;b.hash_bits=X+7;b.hash_size=1<<b.hash_bits;b.hash_mask=b.hash_size-1;b.hash_shift=~~((b.hash_bits+3-1)/3);b.window=new U3.Buf8(b.w_size*2);b.head=new U3.Buf16(b.hash_size);b.prev=new U3.Buf16(b.w_size);b.lit_bufsize=1<<X+6;b.pending_buf_size=b.lit_bufsize*4;b.pending_buf=new U3.Buf8(b.pending_buf_size);
b.d_buf=b.lit_bufsize;b.l_buf=3*b.lit_bufsize;b.level=S;b.strategy=Z;b.method=H;if(J&&J.state){J.total_in=J.total_out=0;J.data_type=2;S=J.state;S.pending=0;S.pending_out=0;S.wrap<0&&(S.wrap=-S.wrap);S.status=S.wrap?42:113;J.adler=S.wrap===2?0:1;S.last_flush=0;if(!Cyg){H=Array(16);for(X=Z=0;X<28;X++)for(KuX[X]=Z,M=0;M<1<<RdW[X];M++)s3[Z++]=X;s3[Z-1]=X;for(X=Z=0;X<16;X++)for(nts[X]=Z,M=0;M<1<<Zyi[X];M++)gg[Z++]=X;for(Z>>=7;X<30;X++)for(nts[X]=Z<<7,M=0;M<1<<Zyi[X]-7;M++)gg[256+Z++]=X;for(M=0;M<=15;M++)H[M]=
0;for(M=0;M<=143;)Tx[M*2+1]=8,M++,H[8]++;for(;M<=255;)Tx[M*2+1]=9,M++,H[9]++;for(;M<=279;)Tx[M*2+1]=7,M++,H[7]++;for(;M<=287;)Tx[M*2+1]=8,M++,H[8]++;JcW(Tx,287,H);for(M=0;M<30;M++)dg[M*2+1]=5,dg[M*2]=pts(M,5);ycs=new IY9(Tx,RdW,257,286,15);BoL=new IY9(dg,Zyi,0,30,15);Uc9=new IY9([],ssv,0,19,7);Cyg=!0}S.l_desc=new Lgi(S.dyn_ltree,ycs);S.d_desc=new Lgi(S.dyn_dtree,BoL);S.bl_desc=new Lgi(S.bl_tree,Uc9);S.bi_buf=0;S.bi_valid=0;Sri(S);S=0}else S=Dk(J,-2);S===0&&(J=J.state,J.window_size=2*J.w_size,k_(J.head),
J.max_lazy_match=j9[J.level].max_lazy,J.good_match=j9[J.level].good_length,J.nice_match=j9[J.level].nice_length,J.max_chain_length=j9[J.level].max_chain,J.strstart=0,J.block_start=0,J.lookahead=0,J.insert=0,J.match_length=J.prev_length=2,J.match_available=0,J.ins_h=0);J=S}}else J=-2;if(J!==0)throw Error(hq[J]);p.header&&(J=this.strm)&&J.state&&J.state.wrap===2&&(J.state.gzhead=p.header);if(p.dictionary){var F;typeof p.dictionary==="string"?F=gtX(p.dictionary):tSs.call(p.dictionary)==="[object ArrayBuffer]"?
F=new Uint8Array(p.dictionary):F=p.dictionary;p=this.strm;X=F;Z=X.length;if(p&&p.state)if(F=p.state,J=F.wrap,J===2||J===1&&F.status!==42||F.lookahead)J=-2;else{J===1&&(p.adler=Acg(p.adler,X,Z,0));F.wrap=0;Z>=F.w_size&&(J===0&&(k_(F.head),F.strstart=0,F.block_start=0,F.insert=0),S=new U3.Buf8(F.w_size),U3.arraySet(S,X,Z-F.w_size,F.w_size,0),X=S,Z=F.w_size);S=p.avail_in;H=p.next_in;M=p.input;p.avail_in=Z;p.next_in=0;p.input=X;for(a6(F);F.lookahead>=3;){X=F.strstart;Z=F.lookahead-2;do F.ins_h=(F.ins_h<<
F.hash_shift^F.window[X+3-1])&F.hash_mask,F.prev[X&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=X,X++;while(--Z);F.strstart=X;F.lookahead=2;a6(F)}F.strstart+=F.lookahead;F.block_start=F.strstart;F.insert=F.lookahead;F.lookahead=0;F.match_length=F.prev_length=2;F.match_available=0;p.next_in=H;p.input=M;p.avail_in=S;F.wrap=J;J=0}else J=-2;if(J!==0)throw Error(hq[J]);this._dict_set=!0}};
hd3=function(p,J){J=J||{};J.gzip=!0;J=new Wug(J);J.push(p,!0);if(J.err)throw J.msg||hq[J.err];return J.result};
kew=function(p,J){var S=Dc3();S&&S.publish.call(S,p.toString(),p,J)};
lck=function(p,J,S){var H=Dc3();if(!H)return 0;var M=H.subscribe(p.toString(),function(X,Z){var n=_.Id("ytPubsub2Pubsub2SkipSubKey");n&&n==M||(n=function(){if(Nov[M])try{if(Z&&p instanceof To9&&p!=X)try{var b=p.dataClass,F=Z;if(!F.args||!F.version)throw Error("$c");try{if(!b.version_){var f=new b;b.version_=f.version}var O=b.version_}catch(A){}if(!O||F.version!=O)throw Error("ad");try{Z=Reflect.construct(b,_.VX(F.args))}catch(A){throw A.message="yt.pubsub2.Data.deserialize(): "+A.message,A;}}catch(A){throw A.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+p.toString()+": "+A.message,A;}J.call(S||window,Z)}catch(A){_.xv(A)}},dcL[p.toString()]?_.Id("yt.scheduler.instance")?_.wg.addLowPriorityJob(n):_.WO(n,0):n())});
Nov[M]=!0;uVk[p.toString()]||(uVk[p.toString()]=[]);uVk[p.toString()].push(M);return M};
EtX=function(){var p=VSX,J=lck(qri,function(S){p.apply(void 0,arguments);acv(J)});
return J};
acv=function(p){var J=Dc3();J&&(typeof p==="number"&&(p=[p]),_.MV(p,function(S){J.unsubscribeByKey(S);delete Nov[S]}))};
Dc3=function(){return _.Id("ytPubsub2Pubsub2Instance")};
Yrk=function(p,J,S){S=S===void 0?{sampleRate:.1}:S;Math.random()<Math.min(.02,S.sampleRate/100)&&kew("meta_logging_csi_event",{timerName:p,timelineData:J})};
_.rcs=function(p){return p?(p=p.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.MD(p):null:null};
_.x_=function(p){return p?(p=p.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.sq(p):null:null};
wtW=function(){jsg||(jsg=_.x_(_.jn("WORKER_SERIALIZATION_URL")));return jsg||void 0};
_.ccg=function(){var p=wtW();xcW||p===void 0||(xcW=P0L(p));return xcW};
_.Ic9=function(){return typeof Worker==="function"&&wtW()?!0:!1};
_.SDi=function(){if(_.Ic9()&&!Lu3){var p=function(S){S=S.data;if(S.op==="gzippedGelBatch"){var H=p64.get(S.key);H&&(Jni(S.gzippedBatch,H.latencyPayload,H.url,H.options,H.sendFn),p64.delete(S.key))}},J=_.ccg();
J&&(J.addEventListener("message",p),J.onerror=function(){p64.clear()},Lu3=!0)}};
Z39=function(p,J,S,H,M){M=M===void 0?!1:M;var X={startTime:(0,_.fO)(),ticks:{},infos:{}};if(cB)try{var Z=H3v(J);if(Z!=null&&(Z>Mhv||Z<X64))H(p,S);else{if(_.z("gzip_gel_with_worker")&&(_.z("initial_gzip_use_main_thread")&&!i3g||!_.z("initial_gzip_use_main_thread"))){Lu3||_.SDi();var n=_.ccg();if(n&&!M){p64.set(RuL,{latencyPayload:X,url:p,options:S,sendFn:H});n.postMessage({op:"gelBatchToGzip",serializedBatch:J,key:RuL});RuL++;return}}var b=hd3(Kyk(J));Jni(b,X,p,S,H)}}catch(F){_.SB(F),H(p,S)}else H(p,
S)};
Jni=function(p,J,S,H,M){i3g=!1;var X=(0,_.fO)();J.ticks.gelc=X;I6++;_.z("disable_compression_due_to_performance_degredation")&&X-J.startTime>=n3s&&(GIv++,cB=!1);b34(J);H.headers||(H.headers={});H.headers["Content-Encoding"]="gzip";H.postBody=p;H.postParams=void 0;M(S,H)};
FyX=function(p){var J=J===void 0?!1:J;var S=S===void 0?!1:S;var H=(0,_.fO)(),M={startTime:H,ticks:{},infos:{}},X=J?_.Id("yt.logging.gzipForFetch",!1):!0;if(cB&&X){if(!p.body)return p;try{var Z=S?p.body:typeof p.body==="string"?p.body:JSON.stringify(p.body);X=Z;if(!S&&typeof Z==="string"){var n=H3v(Z);if(n!=null&&(n>Mhv||n<X64))return p;S=J?{level:1}:void 0;X=hd3(Kyk(Z),S);var b=(0,_.fO)();M.ticks.gelc=b;if(J){I6++;if((_.z("disable_compression_due_to_performance_degredation")||_.z("disable_compression_due_to_performance_degradation_lr"))&&
b-H>=n3s)if(GIv++,_.z("abandon_compression_after_N_slow_zips_lr")){J=GIv/I6;var F=mQi/_.PO("compression_disable_point");I6>0&&I6%_.PO("compression_disable_point")===0&&J>=F&&(cB=!1)}else cB=!1;b34(M)}}p.headers=Object.assign({},{"Content-Encoding":"gzip"},p.headers||{});p.body=X;return p}catch(f){return _.SB(f),p}}else return p};
H3v=function(p){try{return(new Blob(p.split(""))).size}catch(J){return _.SB(J),null}};
b34=function(p){_.z("gel_compression_csi_killswitch")||!_.z("log_gel_compression_latency")&&!_.z("log_gel_compression_latency_lr")||Yrk("gel_compression",p,{sampleRate:.1})};
v39=function(){this.blockSize=-1};
LO=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()};
O34=function(p){p=Object.assign({},p);delete p.Authorization;var J=_.fV4();if(J){var S=new LO;S.update(_.jn("INNERTUBE_API_KEY"));S.update(J);p.hash=_.gM(S.digest(),3)}return p};
JV=function(){AnX||(AnX=new _.pH("yt.innertube"));return AnX};
POL=function(p,J,S,H){if(H)return null;H=JV().get("nextId",!0)||1;var M=JV().get("requests",!0)||{};M[H]={method:p,request:J,authState:O34(S),requestTime:Math.round((0,_.fO)())};JV().set("nextId",H+1,86400,!0);JV().set("requests",M,86400,!0);return H};
zuw=function(p){var J=JV().get("requests",!0)||{};delete J[p];JV().set("requests",J,86400,!0)};
o3W=function(p){var J=JV().get("requests",!0);if(J){for(var S in J){var H=J[S];if(!(Math.round((0,_.fO)())-H.requestTime<6E4)){var M=H.authState,X=O34(_.xws(!1));_.T6.equals(M,X)&&(M=H.request,"requestTimeMs"in M&&(M.requestTimeMs=Math.round((0,_.fO)())),$Qw(p,H.method,M,{}));delete J[S]}}JV().set("requests",J,86400,!0)}};
eus=function(p){var J;return(p=p==null?void 0:(J=p.error)==null?void 0:J.code)&&p>=400&&p<=599?!1:!0};
WyX=function(p){var J;p=p==null?void 0:(J=p.error)==null?void 0:J.code;return!(p!==400&&p!==415)};
COX=function(){if(Qf3)return Qf3();var p={};Qf3=vB("LogsDatabaseV2",{objectStores:(p.LogsRequestsStore={addedAtVersion:2},p),shared:!1,upgrade:function(J,S,H){S(2)&&SD(J,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});S(3);S(5)&&(H=H.objectStore("LogsRequestsStore"),H.JSC$10836_wrapped.indexNames.contains("newRequest")&&H.JSC$10836_wrapped.deleteIndex("newRequest"),HL(H,"newRequestV2",["status","interface","timestamp"]));S(7)&&J.JSC$10821_wrapped.objectStoreNames.contains("sapisid")&&J.JSC$10821_wrapped.deleteObjectStore("sapisid");
S(9)&&J.JSC$10821_wrapped.objectStoreNames.contains("SWHealthLog")&&J.JSC$10821_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Qf3()};
M8=function(p){return _.R6(COX(),p)};
Bwv=function(p,J){var S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return S={startTime:(0,_.fO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},Z.yield(M8(J),2);if(Z.nextAddress!=3)return H=Z.yieldResult,M=Object.assign({},p,{options:JSON.parse(JSON.stringify(p.options)),interface:_.jn("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),Z.yield(H.put("LogsRequestsStore",M),3);X=Z.yieldResult;S.ticks.tc=(0,_.fO)();ynk(S);return Z.return(X)})};
UQW=function(p,J){var S,H,M,X,Z,n,b,F,f;return _.G(function(O){if(O.nextAddress==1)return S={startTime:(0,_.fO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},O.yield(M8(J),2);if(O.nextAddress!=3)return H=O.yieldResult,M=_.jn("INNERTUBE_CONTEXT_CLIENT_NAME",0),X=[p,M,0],Z=[p,M,(0,_.fO)()],n=IDBKeyRange.bound(X,Z),b="prev",_.z("use_fifo_for_networkless")&&(b="next"),F=void 0,f=p==="NEW"?"readwrite":"readonly",_.z("use_readonly_for_get_most_recent_by_status_killswitch")&&(f="readwrite"),
O.yield(_.KO(H,["LogsRequestsStore"],{mode:f,enableRetries:!0},function(A){return _.O3(A.objectStore("LogsRequestsStore").index("newRequestV2"),{query:n,direction:b},function(P){P.getValue()&&(F=P.getValue(),p==="NEW"&&(F.status="QUEUED",P.update(F)))})}),3);
S.ticks.tc=(0,_.fO)();ynk(S);return O.return(F)})};
sfs=function(p,J){var S;return _.G(function(H){if(H.nextAddress==1)return H.yield(M8(J),2);S=H.yieldResult;return H.return(_.KO(S,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(M){var X=M.objectStore("LogsRequestsStore");return X.get(p).then(function(Z){if(Z)return Z.status="QUEUED",X.put(Z).then(function(){return Z})})}))})};
g3t=function(p,J,S,H){S=S===void 0?!0:S;var M;return _.G(function(X){if(X.nextAddress==1)return X.yield(M8(J),2);M=X.yieldResult;return X.return(_.KO(M,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Z){var n=Z.objectStore("LogsRequestsStore");return n.get(p).then(function(b){return b?(b.status="NEW",S&&(b.sendCount+=1),H!==void 0&&(b.options.compress=H),n.put(b).then(function(){return b})):pO.resolve(void 0)})}))})};
th4=function(p,J){var S;return _.G(function(H){if(H.nextAddress==1)return H.yield(M8(J),2);S=H.yieldResult;return H.return(S.delete("LogsRequestsStore",p))})};
hui=function(p){var J,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(M8(p),2);J=H.yieldResult;S=(0,_.fO)()-2592E6;return H.yield(_.KO(J,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(M){return nO(M.objectStore("LogsRequestsStore"),{},function(X){if(X.getValue().timestamp<=S)return X.delete().then(function(){return X.continue()})})}),0)})};
DQ4=function(){_.G(function(p){return p.yield(e0v("LogsDatabaseV2"),0)})};
ynk=function(p){_.z("nwl_csi_killswitch")||Yrk("networkless_performance",p,{sampleRate:1})};
_.NwX=function(p){return _.R6(kIL(),p)};
TwW=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return H.yield(_.NwX(p),2);J=H.yieldResult;S=(0,_.fO)()-2592E6;return H.yield(_.KO(J,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(M){return nO(M.objectStore("SWHealthLog"),{},function(X){if(X.getValue().timestamp<=S)return X.delete().then(function(){return X.continue()})})}),0)})};
dQg=function(p){var J;return _.G(function(S){if(S.nextAddress==1)return S.yield(_.NwX(p),2);J=S.yieldResult;return S.yield(J.clear("SWHealthLog"),0)})};
_.Xb=function(p,J,S,H,M,X,Z){M=M===void 0?"":M;X=X===void 0?!1:X;Z=Z===void 0?!1:Z;if(p)if(S&&!xa("cobalt"))_.SB(new _.TG("Legacy referrer-scrubbed ping detected")),p&&uMg(p,void 0,{scrubReferrer:!0});else if(M)mqs(p,J,"POST",M,H);else if(_.jn("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||H||Z)mqs(p,J,"GET","",H,void 0,X,Z);else{b:{try{c:{var n=new lVi({url:p});if(n.urlParamValues_.dsh==="1")var b=null;else{var F=n.urlParamValues_.ae;if(F==="1"){var f=n.urlParamValues_.adurl;if(f)try{b={version:3,directUrl:decodeURIComponent(f),
asyncUrl:lJs(n.JSC$9631_url_,"act=1","ri=1",Vht(n))};break c}catch(W){}}b=F==="2"?{version:4,directUrl:lJs(n.JSC$9631_url_,"dct=1","suid="+n.suid_,"ri=1"),asyncUrl:lJs(n.JSC$9631_url_,"act=1","ri=1","suid="+n.suid_)}:null}}if(b){var O=_.yn(p);var A=!(!O||!O.endsWith("/aclk")||_.xc(p,"ri")!=="1");break b}}catch(W){}A=!1}if(A){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(p,"")){var P=!0;break b}}catch(W){}P=!1}P?(J&&J(),S=!0):S=!1}else S=!1;S||uMg(p,J)}};
uMg=function(p,J,S){S=S===void 0?{}:S;var H=new Image,M=""+qDi++;aV4[M]=H;H.onload=H.onerror=function(){J&&aV4[M]&&J();delete aV4[M]};
S.scrubReferrer&&(H.referrerPolicy="no-referrer");H.src=p};
iS=function(p,J){E3L(p,J==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
YDg=function(p){var J;return((J=document.featurePolicy)==null?0:J.allowedFeatures().includes("attribution-reporting"))?p+"&nis=6":p+"&nis=5"};
rni=function(p){if(!p)return!1;try{var J;if(((J=_.X9(p))==null?void 0:J.asm)==="4")return!0}catch(S){_.xv(S)}return!1};
E3L=function(p,J){J?(p=YDg(p),_.Xb(p,void 0,void 0,void 0,"",!0,!0)):_.Xb(p)};
w6L=function(){jfi||(jfi=new _.pH("yt.offline"));return jfi};
xQi=function(p){if(_.z("offline_error_handling")){var J=w6L().get("errors",!0)||{};J[p.message]={name:p.name,stack:p.stack};p.level&&(J[p.message].level=p.level);w6L().set("errors",J,2592E3,!0)}};
IVi=function(p,J,S,H){H=H===void 0?!1:H;J=_.z("web_fp_via_jspb")?Object.assign({},J):J;_.z("use_cfr_monitor")&&cns(p,J);if(_.z("use_request_time_ms_header"))J.headers&&bh(p)&&(J.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.fO)())));else{var M;if((M=J.postParams)==null?0:M.requestTimeMs)J.postParams.requestTimeMs=Math.round((0,_.fO)())}S&&Object.keys(J).length===0?_.Xb(p):J.compress?J.postBody?(typeof J.postBody!=="string"&&(J.postBody=JSON.stringify(J.postBody)),Z39(p,J.postBody,
J,_.BO,H)):Z39(p,JSON.stringify(J.postParams),J,Ol4,H):_.BO(p,J)};
Ly9=function(p,J){_.z("use_event_time_ms_header")&&bh(p)&&(J.headers||(J.headers={}),J.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.fO)())));return J};
_.Jzv=function(){pig||(pig=new _.RJ({logOfflineErrors:!0,enablePolling:!0}));return pig};
cns=function(p,J){var S=J.onError?J.onError:function(){};
J.onError=function(M,X){KH().requestComplete(p,!1);S(M,X)};
var H=J.onSuccess?J.onSuccess:function(){};
J.onSuccess=function(M,X){KH().requestComplete(p,!0);H(M,X)}};
_.Sa4=function(){return _.nQ(document.location.toString())!=="www.youtube-nocookie.com"};
_.Xi9=function(){return _.Id("ytNetworklessLoggingInitializationOptions")?_.HIi.isNwlInitialized:_.MrW};
iIL=function(p,J){if(_.z("polymer_on_demand_shady_dom")){var S;var H=(S=p.__shady_native_firstElementChild)!=null?S:p.firstElementChild}else H=p.firstElementChild;for(;H;){if(p=J(H)?H:iIL(H,J))return p;H=H.nextElementSibling}return null};
K5t=function(){var p=document;if("visibilityState"in p)return p.visibilityState;var J=RZX+"VisibilityState";if(J in p)return p[J]};
_.ZIg=function(p,J){var S;Zt(p,function(H){S=J[H];return!!S});
return S};
_.Gg=function(p){var J=n2i(p);J?J.focus(void 0):_.nH(p)};
n2i=function(p){return(p=iIL(p,function(J){return _.bS(J)?G$X(J)&&!!J.offsetParent:!1}))?p:null};
_.nH=function(p,J){p.hasAttribute("tabindex")||p.setAttribute("tabindex","-1");p.focus(J)};
bIt=function(p,J,S,H){H=H===void 0?{}:H;p.addEventListener&&(J!="mouseenter"||"onmouseenter"in document?J!="mouseleave"||"onmouseenter"in document?J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"):J="mouseout":J="mouseover");return _.T6.findKey(m4,function(M){var X=typeof M[4]==="boolean"&&M[4]==!!H,Z=_.Ei(M[4])&&_.Ei(H)&&_.T6.equals(M[4],H);return!!M.length&&M[0]==p&&M[1]==J&&M[2]==S&&(X||Z)})};
_.vL=function(p,J,S,H){H=H===void 0?{}:H;if(!p||!p.addEventListener&&!p.attachEvent)return"";var M=bIt(p,J,S,H);if(M)return M;M=++mnX.count+"";var X=!(J!="mouseenter"&&J!="mouseleave"||!p.addEventListener||"onmouseenter"in document);var Z=X?function(n){n=new Fb(n);if(!_.ar(n.relatedTarget,function(b){return b==p},!0))return n.currentTarget=p,n.type=J,S.call(p,n)}:function(n){n=new Fb(n);
n.currentTarget=p;return S.call(p,n)};
Z=_.c5(Z);p.addEventListener?(J=="mouseenter"&&X?J="mouseover":J=="mouseleave"&&X?J="mouseout":J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"),F59()||typeof H==="boolean"?p.addEventListener(J,Z,H):p.addEventListener(J,Z,!!H.capture)):p.attachEvent("on"+J,Z);m4[M]=[p,J,S,Z,H];return M};
_.fmw=function(p,J,S){var H=H===void 0?{}:H;var M=_.vL(p,J,function(){_.v2v(M);S.apply(p,arguments)},H)};
_.v2v=function(p){p&&(typeof p=="string"&&(p=[p]),_.MV(p,function(J){if(J in m4){var S=m4[J],H=S[0],M=S[1],X=S[3];S=S[4];H.removeEventListener?F59()||typeof S==="boolean"?H.removeEventListener(M,X,S):H.removeEventListener(M,X,!!S.capture):H.detachEvent&&H.detachEvent("on"+M,X);delete m4[J]}}))};
fH=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_=_.vL(window,"mousemove",(0,_.tT)(this.onMouseMove_,this));this.timerId_=_.Qn((0,_.tT)(this.checkPosition_,this),25)};
PCs=function(){var p={};var J=p.preferMobileEvents===void 0?!1:p.preferMobileEvents;p=p.enableScrollEventListener===void 0?!0:p.enableScrollEventListener;if(_.Id("_lact",window)==null){var S=parseInt(_.jn("LACT"),10);S=isFinite(S)?Date.now()-Math.max(S,0):-1;_.m$("_lact",S,window);_.m$("_fact",S,window);S==-1&&_.OI();OIX(window,J,p);new fH(function(){Azi("mouse",100)})}};
OIX=function(p,J,S){J=J===void 0?!1:J;S=S===void 0?!0:S;_.vL(p.document,"keydown",_.OI);_.vL(p.document,"keyup",_.OI);_.vL(p.document,"mousedown",_.OI);_.vL(p.document,"mouseup",_.OI);J?_.vL(p,"touchmove",function(){Azi("touchmove",200)},{passive:!0}):(_.vL(p,"resize",function(){Azi("resize",200)}),S&&_.vL(p,"scroll",function(){Azi("scroll",200)}));
_.vL(p.document,"touchstart",_.OI,{passive:!0});_.vL(p.document,"touchend",_.OI,{passive:!0})};
Azi=function(p,J){zZX[p]||(zZX[p]=!0,_.wg.addLowPriorityJob(function(){_.OI();zZX[p]=!1},J))};
_.OI=function(){_.Id("_lact",window)==null&&PCs();var p=Date.now();_.m$("_lact",p,window);_.Id("_fact",window)==-1&&_.m$("_fact",p,window);(p=_.Id("ytglobal.ytUtilActivityCallback_"))&&p()};
_.AV=function(){var p=_.Id("_lact",window);return p==null?-1:Math.max(Date.now()-p,0)};
_.oJ=function(p,J,S){var H=_.PL();if(H&&J){var M=H.subscribe(p,function(){var X=arguments,Z=function(){zg[M]&&J.apply&&typeof J.apply=="function"&&J.apply(S||window,X)};
try{_.$nW[p]?Z():_.WO(Z,0)}catch(n){_.xv(n)}},S);
zg[M]=!0;$Q[p]||($Q[p]=[]);$Q[p].push(M);return M}return 0};
_.o2X=function(p){var J=_.PL();J&&(typeof p==="number"?p=[p]:typeof p==="string"&&(p=[parseInt(p,10)]),_.MV(p,function(S){J.unsubscribeByKey(S);delete zg[S]}))};
_.eZL=function(p,J){var S=_.PL();S&&S.publish.apply(S,arguments)};
_.Q4k=function(p){var J=_.PL();if(J)if(J.clear(p),p)W53(p);else for(var S in $Q)W53(S)};
_.PL=function(){return _.Hg.ytPubsubPubsubInstance};
W53=function(p){$Q[p]&&(p=$Q[p],_.MV(p,function(J){zg[J]&&delete zg[J]}),p.length=0)};
CC4=function(){var p,J;return"h5vcc"in eD&&((p=eD.h5vcc.traceEvent)==null?0:p.traceBegin)&&((J=eD.h5vcc.traceEvent)==null?0:J.traceEnd)?1:"performance"in eD&&eD.performance.mark&&eD.performance.measure?2:0};
yzW=function(p){var J=CC4();switch(J){case 1:eD.h5vcc.traceEvent.traceBegin("YTLR",p);break;case 2:eD.performance.mark(p+"-start");break;case 0:break;default:_.rm(J,"unknown trace type")}};
Bei=function(p){var J=CC4();switch(J){case 1:eD.h5vcc.traceEvent.traceEnd("YTLR",p);break;case 2:J=p+"-start";var S=p+"-end";eD.performance.mark(S);eD.performance.measure(p,J,S);break;case 0:break;default:_.rm(J,"unknown trace type")}};
UnX=function(p){var J,S;(S=(J=window).onerror)==null||S.call(J,p.message,"",0,0,p)};
s4L=function(p){if(_.z("web_lifecycle_error_handling_killswitch"))return p();try{return p()}catch(J){UnX(J)}};
g2X=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("/")};
_.e=function(p,J){if(p)return p[J.name]};
QH=function(){var p=_.Id("yt.logging.ims");p||(p=new WL,_.m$("yt.logging.ims",p));return p};
lmt=function(p,J){if(p.endpoint==="log_event"){trv(p);var S=hZk(p),H=Dn4(p.payload)||"",M=k$W(H),X=200;if(M){if(M.enabled===!1&&!_.z("web_payload_policy_disabled_killswitch"))return;X=Nes(M.tier);if(X===400){TeW(p,J);return}}yH[S]=!0;S={cttAuthInfo:S,isJspb:!1,tier:X};QH().storePayload(S,p.payload);dni(J,!1,S,ujw(H))}};
qat=function(p,J,S){if(J.endpoint==="log_event"){trv(void 0,J);var H=hZk(J,!0),M=k$W(p),X=200;if(M){if(M.enabled===!1&&!_.z("web_payload_policy_disabled_killswitch"))return;X=Nes(M.tier);if(X===400){Vri(p,J,S);return}}yH[H]=!0;H={cttAuthInfo:H,isJspb:!0,tier:X};QH().storePayload(H,hr(J.payload));dni(S,!0,H,ujw(p))}};
dni=function(p,J,S,H){J=J===void 0?!1:J;H=H===void 0?!1:H;p&&(BL=new p);p=_.PO("tvhtml5_logging_max_batch_ads_fork")||_.PO("tvhtml5_logging_max_batch")||_.PO("web_logging_max_batch")||100;var M=(0,_.fO)(),X=amk(J,S.tier),Z=X.lastDebounceQueueFromLogTimeMs;H&&(X.useVideoStatsEndPoint=!0);H=0;S&&(H=QH().getSequenceCount(S));var n=function(){E2t({writeThenSend:!0},J,S.tier)};
H>=1E3?n():H>=p?Yat||(Yat=rzi(function(){n();Yat=void 0},0)):M-Z>=10&&(j4g(J,S.tier),X.lastDebounceQueueFromLogTimeMs=M)};
TeW=function(p,J){if(p.endpoint==="log_event"){_.z("more_accurate_gel_parser")&&QH().storePayload({isJspb:!1},p.payload);trv(p);var S=hZk(p),H=new Map;H.set(S,[p.payload]);var M=Dn4(p.payload)||"";J&&(BL=new J);return new _.UI(function(X,Z){BL&&BL.isReady()?wis(H,BL,X,Z,{bypassNetworkless:!0},!0,ujw(M)):X()})}};
Vri=function(p,J,S){if(J.endpoint==="log_event"){trv(void 0,J);var H=hZk(J,!0),M=new Map;M.set(H,[hr(J.payload)]);S&&(BL=new S);return new _.UI(function(X){BL&&BL.isReady()?xnX(M,BL,X,{bypassNetworkless:!0},!0,ujw(p)):X()})}};
hZk=function(p,J){var S="";if(p.dangerousLogToVisitorSession)S="visitorOnlyApprovedKey";else if(p.cttAuthInfo){if(J===void 0?0:J){J=p.cttAuthInfo.token;S=p.cttAuthInfo;var H=new czw;S.videoId?H.setVideoId(S.videoId):S.playlistId&&sI(H,2,ImW,Pp(S.playlistId));L5i[J]=H}else J=p.cttAuthInfo,S={},J.videoId?S.videoId=J.videoId:J.playlistId&&(S.playlistId=J.playlistId),pvW[p.cttAuthInfo.token]=S;S=p.cttAuthInfo.token}return S};
E2t=function(p,J,S){p=p===void 0?{}:p;J=J===void 0?!1:J;new _.UI(function(H,M){var X=amk(J,S),Z=X.useVideoStatsEndPoint;X.useVideoStatsEndPoint=!1;Jmw(X.queueTimer);Jmw(X.queueMaxTimer);X.queueMaxTimer=0;BL&&BL.isReady()?S===void 0&&_.z("enable_web_tiered_gel")?SSX(H,M,p,J,300,Z):SSX(H,M,p,J,S,Z):(j4g(J,S),H())})};
SSX=function(p,J,S,H,M,X){var Z=BL;S=S===void 0?{}:S;H=H===void 0?!1:H;M=M===void 0?200:M;X=X===void 0?!1:X;var n=new Map,b=new Map,F={isJspb:H,cttAuthInfo:void 0,tier:M},f={isJspb:H,cttAuthInfo:void 0};if(H){J=_.K(Object.keys(yH));for(M=J.next();!M.done;M=J.next())M=M.value,b=_.z("enable_web_tiered_gel")?QH().smartExtractMatchingEntries({keys:[F,f],sizeLimit:1E3}):QH().extractMatchingEntries({isJspb:!0,cttAuthInfo:M}),b.length>0&&n.set(M,b),(_.z("web_fp_via_jspb_and_json")&&S.writeThenSend||!_.z("web_fp_via_jspb_and_json"))&&
delete yH[M];xnX(n,Z,p,S,!1,X)}else{n=_.K(Object.keys(yH));for(F=n.next();!F.done;F=n.next())F=F.value,f=_.z("enable_web_tiered_gel")?QH().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:F,tier:M},{isJspb:!1,cttAuthInfo:F}],sizeLimit:1E3}):QH().extractMatchingEntries({isJspb:!1,cttAuthInfo:F}),f.length>0&&b.set(F,f),(_.z("web_fp_via_jspb_and_json")&&S.writeThenSend||!_.z("web_fp_via_jspb_and_json"))&&delete yH[F];wis(b,Z,p,J,S,!1,X)}};
j4g=function(p,J){p=p===void 0?!1:p;J=J===void 0?200:J;var S=function(){E2t({writeThenSend:!0},p,J)},H=amk(p,J),M=H===Hbi||H===MKX?5E3:Xv4;
_.z("web_gel_timeout_cap")&&!H.queueMaxTimer&&(M=rzi(function(){S()},M),H.queueMaxTimer=M);
Jmw(H.queueTimer);M=_.jn("LOGGING_BATCH_TIMEOUT",_.PO("web_gel_debounce_ms",1E4));_.z("shorten_initial_gel_batch_timeout")&&ibt&&(M=RGt);M=rzi(function(){_.PO("gel_min_batch_size")>0?QH().getSequenceCount({cttAuthInfo:void 0,isJspb:p,tier:J})>=KMi&&S():S()},M);
H.queueTimer=M};
wis=function(p,J,S,H,M,X,Z){M=M===void 0?{}:M;var n=Math.round((0,_.fO)()),b=p.size,F=ZbX(Z);p=_.K(p);var f=p.next();for(Z={};!f.done;Z={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},f=p.next()){var O=_.K(f.value);f=O.next().value;O=O.next().value;Z.batchRequest=_.T6.unsafeClone({context:_.lYX(J.config_||_.Aq())});if(!_.qW(O)&&!_.z("throw_err_when_logevent_malformed_killswitch")){H();break}Z.batchRequest.events=O;
(O=pvW[f])&&nzW(Z.batchRequest,f,O);delete pvW[f];Z.dangerousLogToVisitorSession=f==="visitorOnlyApprovedKey";G7t(Z.batchRequest,n,Z.dangerousLogToVisitorSession);bbg(M);Z.onSuccess$jscomp$3=function(A){_.z("start_client_gcf")&&_.wg.addLowPriorityJob(function(){return _.G(function(P){return P.yield(mrX(A),0)})});
b--;b||S()};
Z.networkFailures=0;Z.onError$jscomp$5=function(A){return function(){A.networkFailures++;if(M.bypassNetworkless&&A.networkFailures===1)try{$Qw(J,F,A.batchRequest,FMi({writeThenSend:!0},A.dangerousLogToVisitorSession,A.onSuccess$jscomp$3,A.onError$jscomp$5,X)),ibt=!1}catch(P){_.xv(P),H()}b--;b||S()}}(Z);
try{$Qw(J,F,Z.batchRequest,FMi(M,Z.dangerousLogToVisitorSession,Z.onSuccess$jscomp$3,Z.onError$jscomp$5,X)),ibt=!1}catch(A){_.xv(A),H()}}};
xnX=function(p,J,S,H,M,X){H=H===void 0?{}:H;var Z=Math.round((0,_.fO)()),n={value:p.size},b=new Map([].concat(_.dW(p)));b=_.K(b);for(var F=b.next();!F.done;F=b.next()){var f=_.K(F.value).next().value,O=p.get(f);F=new vzw;var A=J.config_||_.Aq(),P=new gf,W=new fus;_.g2(W,1,A.innertubeContextHostLanguage);_.g2(W,2,A.innertubeContextGeoLocation);_.zx(W,16,A.innertubeContextClientNameFieldNumber);_.g2(W,17,A.innertubeContextClientVersion);if(A.innertubeContextClientConfigInfo){var y=A.innertubeContextClientConfigInfo,
t=new WB;y.coldConfigData&&_.g2(t,1,y.coldConfigData);y.appInstallData&&_.g2(t,6,y.appInstallData);y.coldHashData&&_.g2(t,3,y.coldHashData);y.hotHashData&&t.setHotHashData(y.hotHashData);_.Qd(W,62,t)}(y=_.Hg.devicePixelRatio)&&y!=1&&_.e9(W,65,_.jL(y));y=MUW();y!==""&&_.g2(W,54,y);y=X9t();if(y.length>0){t=new Ob3;for(var D=0;D<y.length;D++){var k=new tV;k.setKey(y[D].key);sI(k,2,AmL,Pp(y[D].value));hV(t,15,tV,k)}_.Qd(P,5,t)}Dwt(A,W);krg(P);NlX(W);Tl9(A,W);dwL(W);_.z("start_client_gcf")&&uDw(W);_.jn("DELEGATED_SESSION_ID")&&
!_.z("pageid_as_header_web")&&(A=new Dt,_.g2(A,3,_.jn("DELEGATED_SESSION_ID")));!_.z("fill_delegate_context_in_gel_killswitch")&&(y=_.jn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(t=_.PB(P,Dt,3)||new Dt,A=P,y=_.g2(t,18,y),_.Qd(A,3,y));A=W;y=_.K(Object.entries(_.X9(_.jn("DEVICE",""))));for(t=y.next();!t.done;t=y.next())D=_.K(t.value),t=D.next().value,D=D.next().value,t==="cbrand"?_.g2(A,12,D):t==="cmodel"?_.g2(A,13,D):t==="cbr"?_.g2(A,87,D):t==="cbrver"?_.g2(A,88,D):t==="cos"?_.g2(A,18,
D):t==="cosver"?_.g2(A,19,D):t==="cplatform"&&_.zx(A,42,Dqv(D));P.setClient(W);_.Qd(F,1,P);if(W=L5i[f])a:{if(_.W0(W,kQ(W,ImW,1)))P=1;else if(W.getPlaylistId())P=2;else break a;_.Qd(F,4,W);W=F.getContext()||new gf;A=_.PB(W,Dt,3)||new Dt;y=new N8;y.setToken(f);_.zx(y,1,P);hV(A,12,N8,y);_.Qd(W,3,A)}delete L5i[f];f=f==="visitorOnlyApprovedKey";Pn3()||_.Tg(F,2,Z);!f&&(P=_.jn("EVENT_ID"))&&(W=zGg(),A=new $r4,_.g2(A,1,P),_.Tg(A,2,W),_.Qd(F,5,A));bbg(H);if(_.z("jspb_serialize_with_worker")&&(P=_.ccg())&&
H.writeThenSend){_.oz4.set(eGw,{client:J,resolve:S,networklessOptions:H,isIsolated:M,useVSSEndpoint:X,dangerousLogToVisitorSession:f,requestsOutstanding:n});P.postMessage({op:"gelBatchToSerialize",batchRequest:hr(F),clientEvents:O,key:eGw});eGw++;break}if(O){P=[];for(W=0;W<O.length;W++)try{P.push(new df(O[W]))}catch(E){_.xv(new _.TG("Transport failed to deserialize "+String(O[W])))}O=P}else O=[];O=_.K(O);for(P=O.next();!P.done;P=O.next())hV(F,3,df,P.value);O={startTime:(0,_.fO)(),ticks:{},infos:{}};
F=F.serialize();O.ticks.geljspc=(0,_.fO)();_.z("log_jspb_serialize_latency")&&Yrk("gel_jspb_serialize",O,{sampleRate:.1});_.WMg(F,J,S,H,M,X,f,n)}};
_.WMg=function(p,J,S,H,M,X,Z,n){H=H===void 0?{}:H;n=n===void 0?{value:0}:n;X=ZbX(X);H=FMi(H,Z,function(b){_.z("start_client_gcf")&&_.wg.addLowPriorityJob(function(){return _.G(function(F){return F.yield(mrX(b),0)})});
n.value--;n.value||S()},function(){n.value--;
n.value||S()},M);
H.headers["Content-Type"]="application/json+protobuf";H.postBodyFormat="JSPB";H.postBody=p;$Qw(J,X,"",H);ibt=!1};
bbg=function(p){_.z("always_send_and_write")&&(p.writeThenSend=!1)};
FMi=function(p,J,S,H,M){p={retry:!0,onSuccess:S,onError:H,networklessOptions:p,dangerousLogToVisitorSession:J,bypassMonitoring:!!M,headers:{},postBodyFormat:"",postBody:"",compress:_.z("compress_gel")||_.z("compress_gel_lr")};Pn3()&&(p.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.fO)())));return p};
G7t=function(p,J,S){Pn3()||(p.requestTimeMs=String(J));_.z("unsplit_gel_payloads_in_logs")&&(p.unsplitGelPayloadsInLogs=!0);!S&&(J=_.jn("EVENT_ID"))&&(S=zGg(),p.serializedClientEventId={serializedEventId:J,clientCounter:String(S)})};
zGg=function(){var p=_.jn("BATCH_CLIENT_COUNTER")||0;p||(p=Math.floor(Math.random()*65535/2));p++;p>65535&&(p=1);_.rY("BATCH_CLIENT_COUNTER",p);return p};
nzW=function(p,J,S){if(S.videoId)var H="VIDEO";else if(S.playlistId)H="PLAYLIST";else return;p.credentialTransferTokenTargetId=S;p.context=p.context||{};p.context.user=p.context.user||{};p.context.user.credentialTransferTokens=[{token:J,scope:H}]};
trv=function(p,J){var S=_.zG("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Id("yt.logging.transport.enableScrapingForTest"))if(S)QY4=[],_.m$("yt.logging.transport.enableScrapingForTest",!0),_.m$("yt.logging.transport.scrapedPayloadsForTesting",QY4),_.m$("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.m$("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.m$("yt.logging.transport.scrapeClientEvent",!0);else return;S=_.Id("yt.logging.transport.scrapedPayloadsForTesting");var H=_.Id("yt.logging.transport.payloadToScrape");J&&(J=_.Id("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(J.payload)())&&S.push(J);J=_.Id("yt.logging.transport.scrapeClientEvent");if(H&&H.length>=1)for(var M=0;M<H.length;M++)if(p&&p.payload[H[M]])if(J)S.push(p.payload);else{var X=void 0;S.push(((X=p)==null?void 0:X.payload)[H[M]])}_.m$("yt.logging.transport.scrapedPayloadsForTesting",
S)};
Pn3=function(){return _.z("use_request_time_ms_header")||_.z("lr_use_request_time_ms_header")};
rzi=function(p,J){return _.z("transport_use_scheduler")===!1?_.WO(p,J):_.z("logging_avoid_blocking_during_navigation")||_.z("lr_logging_avoid_blocking_during_navigation")?_.uS(_.wg,function(){if(_.CnW().currentState==="none")p();else{var S={};_.CnW().install((S.none={callback:p},S))}},J):_.uS(_.wg,p,J)};
Jmw=function(p){_.z("transport_use_scheduler")?_.wg.cancelJob(p):_.CQ(p)};
mrX=function(p){var J,S,H,M,X,Z,n,b,F,f;return _.G(function(O){return O.nextAddress==1?(H=(J=p)==null?void 0:(S=J.responseContext)==null?void 0:S.globalConfigGroup,M=_.e(H,ymW),Z=(X=H)==null?void 0:X.hotHashData,n=_.e(H,Bns),F=(b=H)==null?void 0:b.coldHashData,(f=_.vO().resolve(_.F9(lS)))?Z?M?O.yield(Uri(f,Z,M),2):O.yield(Uri(f,Z),2):O.jumpTo(2):O.return()):F?n?O.yield(sYt(f,F,n),0):O.yield(sYt(f,F),0):O.jumpTo(0)})};
amk=function(p,J){J=J===void 0?200:J;return p?J===300?Hbi:gz4:J===300?MKX:tK4};
k$W=function(p){if(_.z("enable_web_tiered_gel")){p=hGi[p||""];var J,S,H,M=_.vO().resolve(_.F9(lS))==null?void 0:(J=VH())==null?void 0:(S=J.loggingHotConfig)==null?void 0:(H=S.eventLoggingConfig)==null?void 0:H.payloadPolicies;if(M)for(J=0;J<M.length;J++)if(M[J].payloadNumber===p)return M[J]}};
Dn4=function(p){p=Object.keys(p);p=_.K(p);for(var J=p.next();!J.done;J=p.next())if(J=J.value,hGi[J])return J};
Nes=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}};
ujw=function(p){return p==="gelDebuggingEvent"};
ZbX=function(p){return(p===void 0?0:p)&&_.z("vss_through_gel_video_stats")?"video_stats":"log_event"};
aJ=function(p,J,S,H){H=H===void 0?{}:H;var M={},X=Math.round(H.timestamp||(0,_.fO)());M.eventTimeMs=X<Number.MAX_SAFE_INTEGER?X:0;M[p]=J;p=_.AV();M.context={lastActivityMs:String(H.timestamp||!isFinite(p)?-1:p)};H.sequenceGroup&&!_.z("web_gel_sequence_info_killswitch")&&(p=M.context,J=H.sequenceGroup,J={index:Drg(J),groupKey:J},p.sequence=J,H.endOfSequence&&delete q8[H.sequenceGroup]);_.z("web_tag_automated_log_events")&&(M.context.automatedLogEventSource=H.automatedLogEventSource);(H.sendIsolatedPayload?
TeW:lmt)({endpoint:"log_event",payload:M,cttAuthInfo:H.cttAuthInfo,dangerousLogToVisitorSession:H.dangerousLogToVisitorSession},S)};
Drg=function(p){q8[p]=p in q8?q8[p]+1:0;return q8[p]};
_.YQ=function(p,J,S){S=S===void 0?{}:S;var H=EI;_.wY("ytLoggingEventsDefaultDisabled",!1)&&EI===EI&&(H=null);aJ(p,J,H,S)};
_.rf=function(){if(_.z("web_fp_via_jspb")){var p=!0;p=p===void 0?!1:p;var J=k7k;k7k=[];if(J){J=_.K(J);for(var S=J.next();!S.done;S=J.next())S=S.value,p?aJ(S.payloadName,S.payload,EI,S.options):_.YQ(S.payloadName,S.payload,S.options)}E2t(void 0,!0);if(!_.z("web_fp_via_jspb_and_json"))return}E2t(void 0,!1)};
Nn9=function(p,J){var S;if((S=J)==null?0:S.componentStack)return J;if(p=p.componentStack)J||(J={}),J.componentStack=p;return J};
TnW=function(){_.MV(_.jn("ERRORS")||[],function(p){_.jD.apply(null,p)});
_.rY("ERRORS",[])};
_.wf=function(p){_.jD(p)};
_.xQ=function(p){_.jD(p,"WARNING")};
dr4=function(p){p instanceof Error?_.jD(p):(p=_.Ei(p)?JSON.stringify(p):String(p),p=new _.TG(p),p.name="RejectedPromiseError",_.xQ(p))};
uB9=function(p,J,S,H,M,X){J=J===void 0?"Unknown file":J;S=S===void 0?0:S;var Z=!1,n=NGi("log_window_onerror_fraction");if(n&&Math.random()<n)Z=!0;else{n=document.getElementsByTagName("script");for(var b=0,F=n.length;b<F;b++)if(n[b].src.indexOf("/debug-")>0){Z=!0;break}}Z&&(Z=!1,M?Z=!0:(typeof p==="string"?n=p:ErrorEvent&&p instanceof ErrorEvent?(Z=!0,n=p.message,J=p.filename,S=p.lineno,H=p.colno):(n="Unknown error",J="Unknown file",S=0),M=new _.TG(n),M.name="UnhandledWindowError",M.message=n,M.fileName=
J,M.lineNumber=S,isNaN(H)?delete M.columnNumber:M.columnNumber=H),_.z("wiz_enable_component_stack_propagation_killswitch")||(X=Nn9(M,X)),X&&_.cL(M,X),Z?_.jD(M):_.xQ(M))};
_.jD=function(p,J,S,H,M,X,Z,n){X=X===void 0?{}:X;X.name=S||_.jn("INNERTUBE_CONTEXT_CLIENT_NAME",1);X.version=H||_.jn("INNERTUBE_CONTEXT_CLIENT_VERSION");S=X;J=J===void 0?"ERROR":J;Z=Z===void 0?!1:Z;J=J===void 0?"ERROR":J;Z=Z===void 0?!1:Z;if(p&&(p.hasOwnProperty("level")&&p.level&&(J=p.level),_.z("console_log_js_exceptions")&&(H=[],H.push("Name: "+p.name),H.push("Message: "+p.message),p.hasOwnProperty("params")&&H.push("Error Params: "+JSON.stringify(p.params)),p.hasOwnProperty("args")&&H.push("Error args: "+
JSON.stringify(p.args)),H.push("File name: "+p.fileName),H.push("Stacktrace: "+p.stack),H=H.join("\n"),window.console.log(H,p)),!(lu3>=5))){H=[];M=_.K(VKk);for(X=M.next();!X.done;X=M.next()){X=X.value;try{X()&&H.push(X())}catch(t){}}H=[].concat(_.dW(qSi),_.dW(H));var b=aut(p);M=b.message||"Unknown Error";X=b.name||"UnknownError";var F=b.stack||p.stacktrace||"Not available";if(F.startsWith(X+": "+M)){var f=F.split("\n");f.shift();F=f.join("\n")}f=b.lineNumber||"Not available";b=b.fileName||"Not available";
var O=0;if(p.hasOwnProperty("args")&&p.args&&p.args.length)for(var A=0;A<p.args.length&&!(O=hai(p.args[A],"params."+A,S,O),O>=500);A++);else if(p.hasOwnProperty("params")&&p.params){var P=p.params;if(typeof p.params==="object")for(A in P){if(P[A]){var W="params."+A,y=g1(P[A]);S[W]=y;O+=W.length+y.length;if(O>500)break}}else S.params=g1(P)}if(H.length)for(A=0;A<H.length&&!(O=hai(H[A],"params.context."+A,S,O),O>=500);A++);navigator.vendor&&!S.hasOwnProperty("vendor")&&(S["device.vendor"]=navigator.vendor);
A={message:M,name:X,lineNumber:f,fileName:b,stack:F,params:S,sampleWeight:1};S=Number(p.columnNumber);isNaN(S)||(A.lineNumber=A.lineNumber+":"+S);if(p.level==="IGNORED")p=0;else a:{p=Ez9();S=_.K(p.messageWeights);for(H=S.next();!H.done;H=S.next())if(H=H.value,A.message&&A.message.match(H.messageRegExp)){p=H.weight;break a}p=_.K(p.callbackWeights);for(S=p.next();!S.done;S=p.next())if(S=S.value,S.callback(A)){p=S.weight;break a}p=1}A.sampleWeight=p;p=_.K(YSW);for(S=p.next();!S.done;S=p.next())if(S=
S.value,S.patternsForType[A.name])for(M=_.K(S.patternsForType[A.name]),H=M.next();!H.done;H=M.next())if(X=H.value,H=A.message.match(X.regexp)){A.params["params.error.original"]=H[0];M=X.groups;X={};for(f=0;f<M.length;f++)X[M[f]]=H[f+1],A.params["params.error."+M[f]]=H[f+1];A.message=S.messageFn(X);break}A.params||(A.params={});p=Ez9();A.params["params.errorServiceSignature"]="msg="+p.messageWeights.length+"&cb="+p.callbackWeights.length;A.params["params.serviceWorker"]="false";_.Hg.document&&_.Hg.document.querySelectorAll&&
(A.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new IJ(rm4,"sample")).constructor!==IJ&&(A.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(A);if(A.sampleWeight!==0&&!jY3.has(A.message)){if(Z&&_.z("web_enable_error_204"))wvX(J===void 0?"ERROR":J,A);else{J=J===void 0?"ERROR":J;J==="ERROR"?(LH.publish("handleError",A),_.z("record_app_crashed_web")&&xrL===0&&A.sampleWeight===1&&(xrL++,Z={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.z("report_client_error_with_app_crash_ks")||(Z.systemHealth={crashData:{clientError:{logMessage:{message:A.message}}}}),_.YQ("appCrashed",Z)),cmW++):J==="WARNING"&&LH.publish("handleWarning",A);if(_.z("kevlar_gel_error_routing")){Z=J;n=n===void 0?{}:n;b:{p=_.K(Iuv);for(S=p.next();!S.done;S=p.next())if(xa(S.value.toLowerCase())){p=!0;break b}p=!1}if(p)n=void 0;else{S={stackTrace:A.stack};A.fileName&&(S.filename=A.fileName);p=A.lineNumber&&A.lineNumber.split?A.lineNumber.split(":"):[];p.length!==
0&&(p.length!==1||isNaN(Number(p[0]))?p.length!==2||isNaN(Number(p[0]))||isNaN(Number(p[1]))||(S.lineNumber=Number(p[0]),S.columnNumber=Number(p[1])):S.lineNumber=Number(p[0]));p={level:"ERROR_LEVEL_UNKNOWN",message:A.message,errorClassName:A.name,sampleWeight:A.sampleWeight};Z==="ERROR"?p.level="ERROR_LEVEL_ERROR":Z==="WARNING"&&(p.level="ERROR_LEVEL_WARNNING");S={isObfuscated:!0,browserStackInfo:S};n.pageUrl=window.location.href;n.kvPairs=[];_.jn("FEXP_EXPERIMENTS")&&(n.experimentIds=_.jn("FEXP_EXPERIMENTS"));
H=_.jn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!NGi("web_disable_gel_stp_ecatcher_killswitch")&&H)for(M=_.K(Object.keys(H)),X=M.next();!X.done;X=M.next())X=X.value,n.kvPairs.push({key:X,value:String(H[X])});if(H=A.params)for(M=_.K(Object.keys(H)),X=M.next();!X.done;X=M.next())X=X.value,n.kvPairs.push({key:"client."+X,value:String(H[X])});H=_.jn("SERVER_NAME");M=_.jn("SERVER_VERSION");H&&M&&(n.kvPairs.push({key:"server.name",value:H}),n.kvPairs.push({key:"server.version",value:M}));n={errorMetadata:n,
stackTrace:S,logMessage:p}}n&&(_.YQ("clientError",n),(Z==="ERROR"||_.z("errors_flush_gel_always_killswitch"))&&_.rf())}_.z("suppress_error_204_logging")||wvX(J,A)}try{jY3.add(A.message)}catch(t){}lu3++}}};
wvX=function(p,J){var S=J.params||{};p={urlParams:{a:"logerror",t:"jserror",type:J.name,msg:J.message.substr(0,250),line:J.lineNumber,level:p,"client.name":S.name},postParams:{url:_.jn("PAGE_NAME",window.location.href),file:J.fileName},method:"POST"};S.version&&(p["client.version"]=S.version);if(p.postParams){J.stack&&(p.postParams.stack=J.stack);J=_.K(Object.keys(S));for(var H=J.next();!H.done;H=J.next())H=H.value,p.postParams["client."+H]=S[H];if(S=_.jn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(J=
_.K(Object.keys(S)),H=J.next();!H.done;H=J.next())H=H.value,p.postParams[H]=S[H];(S=_.jn("LAVA_VERSION"))&&(p.postParams["lava.version"]=S);S=_.jn("SERVER_NAME");J=_.jn("SERVER_VERSION");S&&J&&(p.postParams["server.name"]=S,p.postParams["server.version"]=J)}_.BO(_.jn("ECATCHER_REPORT_HOST","")+"/error_204",p)};
_.LMi=function(p,J){J=J===void 0?"ERROR":J;var S=S===void 0?{}:S;var H=_.Id("ytbin.polymer.shared.lib.tampering.info");H&&(H=H())&&(S["params.tamperingInfo"]=H.sort().join(","));_.jD(p,J,void 0,void 0,!0,S)};
_.cL=function(p){var J=_.Yp.apply(1,arguments);p.args||(p.args=[]);Array.isArray(p.args)&&p.args.push.apply(p.args,_.dW(J))};
p$t=function(p){p.level="IGNORED"};
JHk=function(p,J){qSi.push(p);J();qSi.pop()};
Jw=function(p,J){for(var S in J)J.hasOwnProperty(S)&&(p=_.pE(p,S,J[S]));return p};
_.Sl4=function(p,J,S){S=S===void 0?!1:S;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 J=_.PO("polymer_report_client_url_requested_rate"),!S&&Math.random()<J&&_.xQ(new _.TG("urlForEndpoint used on client endpoint",p)),null;var H=_.PO("polymer_report_missing_web_navigation_endpoint_rate");if(p.liveChatEndpoint||p.liveChatReplayEndpoint)H=0;if(!p.commandMetadata&&!p.clickTrackingParams&&Math.random()<H){var M={},X;for(X in p)M[X]="1";_.xQ(new _.TG("Missing navigation data",
M))}M="";if(p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.url)M=p.commandMetadata.webCommandMetadata.url;else if(p.searchEndpoint)Math.random()<H&&_.xQ(new _.TG("Should not manually handle search",p)),M="/results?search_query="+encodeURIComponent(p.searchEndpoint.query).replace(/%20/g,"+"),p.searchEndpoint.params&&(M+="&sp="+p.searchEndpoint.params);else if(p.watchEndpoint)Math.random()<H&&_.xQ(new _.TG("Should not manually handle watch",p)),M="/watch?v="+
p.watchEndpoint.videoId,p.watchEndpoint.playlistId&&(M+="&list="+p.watchEndpoint.playlistId),p.watchEndpoint.index&&(M+="&index="+p.watchEndpoint.index),p.watchEndpoint.startTimeSeconds&&(M+="&t="+p.watchEndpoint.startTimeSeconds);else if(p.browseEndpoint)H=p.browseEndpoint.browseId,(X=p.browseEndpoint.canonicalBaseUrl)?M=X:H&&(M=H.substr(0,2),M=M==="FE"?H==="FEwhat_to_watch"?"/":H==="FEmy_videos"?"/my_videos":"/feed/"+H.substr(2):M==="VL"?"/playlist?list="+H.substr(2):"/channel/"+H),M&&p.browseEndpoint.query&&
(M=Jw(M+"/search",{query:p.browseEndpoint.query})),M&&p.browseEndpoint.params&&(M=Jw(M,{params:p.browseEndpoint.params}));else{if(p.urlEndpoint)return p.urlEndpoint.url;p.signInEndpoint?(M="https://accounts.google.com/ServiceLogin",H={},_.T6.extend(H,J||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),J=H):p.uploadEndpoint?M="//www.youtube.com/upload":p.liveChatEndpoint?(M=p.liveChatEndpoint,H=_.T6.clone(M),_.Ei(M.continuation)&&(X=Object.keys(M.continuation)[0],
H.continuation=M.continuation[X].continuation),M=Jw("/youtubei/v1/live_chat/get_live_chat",H)):p.liveChatReplayEndpoint?(M=_.T6.clone(p.liveChatReplayEndpoint),M.currentPlayerState&&(_.T6.extend(M,M.currentPlayerState),delete M.currentPlayerState),M=Jw("/youtubei/v1/live_chat/get_live_chat_replay",M)):p.liveChatItemContextMenuEndpoint?M=Jw("/youtubei/v1/live_chat/get_item_context_menu",p.liveChatItemContextMenuEndpoint):p.liveChatPurchaseMessageEndpoint?M=Jw("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
p.liveChatPurchaseMessageEndpoint):p.openSuperStickerBuyFlowCommand?M=Jw("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",p.openSuperStickerBuyFlowCommand):p.videoEditEndpoint?M=Jw("/edit",{video_id:p.videoEditEndpoint.videoId}):p.liveDashboardEndpoint?M=p.liveDashboardEndpoint.videoId?Jw("/live_dashboard",{v:p.liveDashboardEndpoint.videoId}):"/live_dashboard":p.signalNavigationEndpoint&&p.signalNavigationEndpoint.signal&&p.signalNavigationEndpoint.signal==="WEBCAM"?M="/webcam":p.getPdgBuyFlowCommand&&
(M=Jw(p.getPdgBuyFlowCommand.buyflowApiPath,{params:p.getPdgBuyFlowCommand.params}))}return M||S?Jw(M,J||{}):(_.xQ(new _.TG("Error: Can't construct url for endpoint","keys:"+Object.keys(p).sort().join(","),p)),null)};
HGL=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};
_.X$s=function(p,J){var S=J+p,H=MHg.get(S);if(H)return H;p=J+"-"+p.replace(/([A-Z])/g,"-$1").toLowerCase();MHg.set(S,p);return p};
iGX=function(p){var J=_.Eg(p,"action")||_.Eg(p,"command")||_.Eg(p,"endpoint");if(!J)return null;J=_.X$s(J,"yt");_.e(p,_.S5)&&(J+="-"+_.e(p,_.S5).signal.toLowerCase().replace(/_/g,"-"));return J};
nmX=function(p){try{var J=Object.keys(p)}catch(M){return[]}for(var S=0;S<J.length;S++){var H=J[S];if(RKi.test(H)||KVX.test(H))return ZGg(p[H])}return[]};
ZGg=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||[]};
bGv=function(p,J){J=J===void 0?!1:J;var S=_.vO().resolve(_.F9(HJ));S||(S=new GyL,_.vO().addProvider({provide:HJ,useValue:S}));return S&&p&&!_.T6.isEmpty(p)?S.getUrl(p,J):""};
m6i=function(p,J,S){S=S===void 0?"":S;if(J){p.data=J;var H=bGv(J);H?(ja(p,H),HGL(J)||!bh(H)?p.rel="nofollow":p.removeAttribute("rel"),_.e(J,_.My)&&_.e(J,_.My).target==="TARGET_NEW_WINDOW"?p.target="_blank":S?p.target=S:p.removeAttribute("target")):(p.removeAttribute("href"),p.removeAttribute("rel"),p.removeAttribute("target"))}};
_.Zy=function(p,J){var S=X4;if(tZ())FVt(p,function(){var X=_.Yp.apply(0,arguments);EG(S,function(){J.apply(null,_.dW(X))})});
else{var H=_.XK.getInstance(),M=kXg(J);Cjs(function(){M.value=J});
_.ad(function(){var X={},Z=_.RZ(H,(X[p]=function(){var n=_.Yp.apply(0,arguments);EG(S,function(){M.value.apply(M,_.dW(n))})},X));
return function(){var n={};_.KE(H,(n[p]="",n),Z)}})}};
_.nE=function(p,J){return vm9(p,!1,J)};
_.mo=function(p,J){return vm9(p,!0,J)};
vm9=function(p,J,S){return tZ()?fp9(p,J,S):OGw(p,J,S)};
OGw=function(p,J,S){return hCw(function(){return fp9(p,J,S)},[])};
fp9=function(p,J,S){var H=oVs(function(M){H.value=M;var X=function(){var Z=mr(null);try{return S==null?void 0:S(M)}finally{mr(Z)}}();
return function(){X==null||X()}});
H.__expectedTagName=p;H.__optional=J;H.isIdom=!tZ();return H};
AHi=function(p){var J=X4,S=sG;return{getFn:function(){return function(H){if(!J.isDisposed){var M=function(){return p(H)};
DD(function(){return _.$T(M)},S)!==!0&&H.stopPropagation()}}}}};
PTw=function(p){if(typeof p.children==="function")return p.children(),null;p=_.K(p.children);for(var J=p.next();!J.done;J=p.next())J=J.value,J();return null};
zKW=function(p){var J;return((J=p.prototype)==null?void 0:J.render)===void 0};
$6X=function(p){var J=Array.isArray(p.items)?p.items:Array.from(p.items);p=p.children;return(Array.isArray(J)?J:Array.from(J)).map(p)};
eK4=function(p,J,S){S=S===void 0?!1:S;DD(function(){return om4(p,J,S)})};
om4=function(p,J,S){var H=null;Ns++;S=(S===void 0?0:S)?WVk:QAt;try{H=S(p,function(){FK(J)}),dr(!1)}catch(M){throw dr(!0),M;
}return H===null?p:H};
FK=function(p){if(p!==void 0&&p!==null)if(p instanceof Ug)for(var J=Sn;H5()!=null&&i19 in H5()&&J.contains(H5());)ie();else if(Array.isArray(p))for(J=_.K(p),p=J.next();!p.done;p=J.next())FK(p.value);else if(p instanceof Uq||p instanceof GH||"function"==typeof _.mT&&p instanceof _.mT)Xhi(p.toString());else if(_.A4(p)){if(H5()!==p){var S,H;J=(H=(S=sG)==null?void 0:S.name)!=null?H:"unknown";throw Error("hc`"+p.tagName+"`"+J);}ie()}else if(p!=null&&p.contentKind===od||p instanceof wy||ztw(p))for(J=odg(p),
J=Array.from(J.childNodes),J=_.K(J),p=J.next();!p.done;p=J.next())Sn.appendChild(p.value),ie();else if(NG(p)&&(p=p.toString()),S=typeof p,S==="boolean"||S==="number"||S==="string")Xhi(p);else if(typeof p==="function"){J=Sn;var M=H5();M&&(M._isSignalTextNode||M._isSafeOrSanitizedHtmlNode)||xXv(J,M,p);ie()}else if(p.type===$6X)FK(p.type(Object.assign({},p.props,{children:p.children[0]})));else{if(typeof p.type==="string"){a:{p.__open||cwg(p.type,p.props.idomKey);M=Sn;for(J in p.props)if(p.props[J]!==
CTi){var X=p.props[J];S=ZJ;S.push(J);S.push(X)}J=GA.attributes;J=J===void 0?vJ:J;X=Sn;S=J4(X);MTw(X,S,J);wht(M,p.props,!0);if((p.props.skip||p.props.skipchildren)&&Sn.hasChildNodes())Xa=Sn.lastChild;else{if(p.type==="style"&&sCX(p.children)===null){Xa=Sn.lastChild;J=void 0;break a}FK(p.children)}Iyi();p.__open&&(p.__open=!1);mXW(M,p.props);J=M}return J}if(p.type===_.fV)FK(p.children);else if(!yHk(p)){J=p;try{BTL(J)}catch(Z){p=Z,(X=GA.handleError)==null||X.call.apply(X,[GA].concat(_.dW(rr(p,(M=J.type)==
null?void 0:M.TAG_NAME))))}J.__open&&(Iyi(),J.__open=!1)}}};
U6v=function(p,J){var S;zKW(p)?S=new DJ(J,p):S=new p(J);S.__type=p;S.__updateContext={nextState:S.state,isForced:!1};return S};
BTL=function(p){var J=p.type,S=J.TAG_NAME;if(J===PTw)p.props.children=p.children,J(p.props);else{p.children.length>0&&(p.props.children=p.children);var H;(H=p.props).idomKey||(H.idomKey=J);if(S){var M=cwg(S,p.props.idomKey);p.__open=!0;var X=M.__instance}X||(X=U6v(J,p.props),X.props=null,M&&(M.__instance=X,X.el=M));var Z;S=((Z=X.__updateContext)!=null?Z:{nextState:X.state,isForced:!1}).nextState;X.__updateContext=void 0;J.getDerivedStateFromProps&&(S=J.getDerivedStateFromProps(p.props,S));X.props=
p.props;X.state=S;Z=function(){var n=X;t4.beforeRender(n);var b=n.render(n.props);b?(n.props.idomKey&&(b.props.idomKey=n.props.idomKey),n=b):n=void 0;if(b=n)if(b.__open=p.__open,n=FK(b),p.__open=b.__open,!J.TAG_NAME)if(n)J.TAG_NAME=n.tagName.toLowerCase(),n.__instance=X,X.el=n;else{var F;if((F=X.hooks)==null?0:F.length){var f;(f=GA.handleError)==null||f.call.apply(f,[GA].concat(_.dW(rr(Error("od")))))}}X.didPatch();t4.didPatch(X)};
(S=X.functionComponent)?gQi(S,Z,X.props.debugInstance):Z()}};
yHk=function(p){var J=p.type;if(!zKW(J)||J===PTw||J.componentType===gr)return!1;p.props.children=p.children.length>1?p.children:p.children[0];var S,H=(S=p.props.idomKey)!=null?S:p.type,M;if(H5()&&((M=H5()[QS])==null?void 0:M.key)===H){var X=H5(),Z=X[QS];if(!Z)throw Error("gc`"+X.tagName);var n;(n=Z.updateSignalsFromIdomProps)==null||n.call(Z,p.props);sA3(Z);return!0}if(gms.has(J.name))throw n=J.name,J=(Z=(X=sG)==null?void 0:X.name)!=null?Z:"unknown",Error("fc`"+n+"`"+J);pfv(p.type,p.props,p.children);
p.props.renderedFromIdom=!0;(n=gQi(p.type,function(){return anW(p.type,p.props)},p.props.debugInstance))&&tHX(n);
return!0};
hKk=function(p){for(var J=0;J<B5(p).length;J++)ie()};
sA3=function(p){var J=D6w();if(J)hKk(J);else for(var S=0;S<p.numNodes;S++)(J=D6w())?hKk(J):ie()};
D6w=function(){var p;return(p=H5()[QS])==null?void 0:p.sourceDynamicRange};
tHX=function(p){p=fnX(p);p=Array.isArray(p)?p:[p];p=_.K(p);for(var J=p.next();!J.done;J=p.next())Sn.insertBefore(J.value,H5()),ie()};
kyt=function(){var p=YLX(),J=hCw(function(){return{value:0}},[]);
return[J.value,function(S){if(h4!==null){var H;(H=GA.handleError)==null||H.call.apply(H,[GA].concat(_.dW(rr(Error("pd")))))}J.value=typeof S==="function"?S(J.value):S;p.__updateContext={nextState:p.state,isForced:!0};S=_.R2(p.effectContext);H=Og(!1);try{if(p.el){var M,X={},Z=(X.props=p.props,X.type=p.__type,X.children=(M=p.props.children)!=null?M:[],X[v5]=!0,X);try{eK4(p.el,Z,!0)}catch(F){var n,b;(b=GA.handleError)==null||b.call.apply(b,[GA].concat(_.dW(rr(F,(n=p.__type)==null?void 0:n.TAG_NAME))))}}}finally{Og(H),
_.R2(S)}}]};
_.fE=function(p,J){var S=X4,H=function(M){EG(S,function(){J(M)})};
window.addEventListener(p,H,void 0);_.VY(function(){window.removeEventListener(p,H,void 0)})};
_.Aw=function(p){var J=X4;return function(S){var H,M=(H=p.observer)!=null?H:_.vO().resolve(Oy);H=NTL(S);var X=[];p.showOption&&X.push(M.observe(S,function(){EG(J,function(){p.visibilityCallback(!0,S)})},p.showOption));
p.hideOption&&X.push(M.observe(S,function(){EG(J,function(){p.visibilityCallback(!1,S)})},p.hideOption));
p.prescanOption&&p.prescanCallback&&X.push(M.observe(S,function(){EG(J,function(){p.prescanCallback()})},p.prescanOption));
var Z;H.visibilityMonitorKeys=((Z=H.visibilityMonitorKeys)!=null?Z:[]).concat(X)}};
NTL=function(p){var J;return(J=p.polymerController)!=null?J:p};
lps=function(p,J){var S=TTk;return _.m(_.fV,null,v_3(GA.enableLazyTsx,function(){return _.m(d6k,{id:S,value:p,children:J})},function(){var H=uJk(S,p);
nU(H);H=_.R2(H);try{return J()}finally{_.R2(H)}}))};
d6k=function(p){var J=p.children;p=uJk(p.id,p.value);nU(p);p=_.R2(p);try{return _.m(_.fV,null,sg(J()))}finally{_.R2(p)}};
uJk=function(p,J){return Object.assign(Object.create(VHw),{id:p,contextValue:J})};
qlX=function(p){var J,S=X4;_.uf(function(){var H=_.R2(S),M=Og(!J);try{if(J)eK4(J,p.children(),!0);else if(J=sg(p.children()),!(J instanceof Element))throw Error("qd");}finally{Og(M),_.R2(H)}},"g");
return J};
_.apw=function(p,J){var S;J=qs(function(){var H=Og(!0);Ns++;try{S=B5(p()),dr(!1)}catch(M){throw dr(!0),M;}finally{Og(H)}},J===void 0?!1:J);
return[S,J]};
Yli=function(p){var J=new Emw;J.abort(p);return J.signal};
rH9=function(){if(this.aborted){var p;throw(p=this.reason)!=null?p:new DOMException("signal is aborted without reason","AbortError");}};
x6i=function(p){var J=new Emw;p=_.K(p);for(var S=p.next();!S.done;S=p.next())if(S=S.value,S.aborted){J.abort(S.reason);break}else jAi.set(J.signal,J),w$W.add(S,J.signal);return J.signal};
cHX=function(){for(var p=_.K(w$W.get(this)),J=p.next();!J.done;J=p.next())jAi.get(J.value).abort(this.reason)};
Ipv=function(p){var J=new Emw;setTimeout(function(){J.abort(new DOMException("signal timed out","TimeoutError"))},p);
return J.signal};
LVX=function(){var p,J;return{promise:new Promise(function(S,H){p=S;J=H}),
resolve:p,reject:J}};
JXi=function(p){var J=LVX(),S=J.promise;pYg.set(p,{promise:S,resolve:J.resolve,reject:J.reject});PJ||(PJ=[],queueMicrotask(function(){var H=[].concat(_.dW(PJ));PJ=null;var M=uW().loadMultiple(H);H=_.K(H);for(var X=H.next();!X.done;X=H.next())X=X.value,M[X].then(pYg.get(X).resolve,pYg.get(X).reject)}));
PJ.push(p);return S};
HYw=function(p){p=p.buf.charCodeAt(p.pos++);return SXi[p]};
zU=function(p){var J=0,S=0;do{var H=HYw(p);J|=(H&31)<<S;S+=5}while(H&32);return J<0?J+4294967296:J};
XYX=function(p,J,S,H){var M=!0;M=M===void 0?!1:M;J=J===void 0?!1:J;H=H===void 0?{}:H;var X=H.cssRowKey||"",Z=H.combinedSignature||"";!X&&window&&window._F_cssRowKey&&(X=window._F_cssRowKey,!Z&&window._F_combinedSignature&&(Z=window._F_combinedSignature));if(X&&typeof window._F_installCss!=="function")throw Error("Ad");var n=H.loaderClass||_.$X;p=kxX(p===void 0?"base-js":p);J=new n(zj3(Tg9("",p)),X,Z,M,J);M=H.useCors||p&&p.hasAttribute("crossorigin");p=H.corsMode||p&&p.getAttribute("crossorigin");
M&&(J.useCors_=M);p&&(J.corsMode_=p);H.urlMaxLength&&(J.urlMaxLength=H.urlMaxLength);S&&(J.insertPos=S);H.fetchPriority&&(J.fetchPriority=H.fetchPriority);var b=uW();b.JSC$10209_loader_=J;b.setBatchModeEnabled(!0);_.Msv=H.batchingStrategy==="BATCH"?JXi:function(F){return Promise.resolve(b.load(F))}};
KKL=function(p,J,S){iYg(p,J);p[J][Rl9].unshift(S)};
iYg=function(p,J){if(!p[J]||!p[J][Rl9]){var S=p[J],H=S?[S]:[];p[J]=function(){for(var M=_.K(H),X=M.next();!X.done;X=M.next())X.value.apply(this,arguments)};
p[J][Rl9]=H}};
ZYv=function(p){if(!p)return[];var J=[];p=_.K(p);for(var S=p.next();!S.done;S=p.next())S=S.value,Array.isArray(S)?J.push.apply(J,_.dW(ZYv(S))):J.push(S);return J};
_.e5=function(p,J){if(p&&n8s.test(p)||p==="//")return p;if(Gst===void 0){Gst=!1;try{var S=new URL("b","http://a");S.pathname="c%20d";Gst=S.href==="http://a/c%20d"}catch(H){}}J||(J=document.baseURI||window.location.href);if(Gst)try{return(new URL(p,J)).href}catch(H){return p}oZ||(oZ=document.implementation.createHTMLDocument("temp"),oZ.base=oZ.createElement("base"),oZ.head.appendChild(oZ.base),oZ.anchor=oZ.createElement("a"),oZ.body.appendChild(oZ.anchor));oZ.base.href=J;oZ.anchor.href=p;return oZ.anchor.href||
p};
mBW=function(p,J){return p.replace(bYk,function(S,H,M,X){return H+"'"+_.e5(M.replace(/["']/g,""),J)+"'"+X})};
FKv=function(p){return p.substring(0,p.lastIndexOf("/")+1)};
OYX=function(){v8g=!1;for(var p=WJ.length,J=0;J<p;J++){var S=WJ[J];if(S)try{S()}catch(H){setTimeout(function(){throw H;})}}WJ.splice(0,p);
fP4+=p};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(p){console.log("["+p.is+"]: registered")};
P6i=function(p){AXw.push(p)};
QT=function(p){return zlk[p]||(zlk[p]=p.indexOf("-")<0?p:p.replace($B9,function(J){return J[1].toUpperCase()}))};
CE=function(p){return zlk[p]||(zlk[p]=p.replace(o8w,"-$1").toLowerCase())};
elX=function(p,J){var S=J.parentInfo&&elX(p,J.parentInfo);if(S)for(p=S.firstChild,S=0;p;p=p.nextSibling){if(J.parentIndex===S++)return p}else return p};
WKi=function(p,J){p=p._methodHost||p;return function(S){if(p[J])p[J](S,S.detail);else console.warn("listener method `"+J+"` not defined")}};
yT=function(p){return p.indexOf(".")>=0};
BJ=function(p){var J=p.indexOf(".");return J===-1?p:p.slice(0,J)};
QtW=function(p,J){return p.indexOf(J+".")===0};
Uy=function(p,J){return J.indexOf(p+".")===0};
sy=function(p,J,S){return J+S.slice(p.length)};
C6t=function(p,J){return p===J||QtW(p,J)||Uy(p,J)};
gd=function(p){if(Array.isArray(p)){for(var J=[],S=0;S<p.length;S++)for(var H=p[S].toString().split("."),M=0;M<H.length;M++)J.push(H[M]);return J.join(".")}return p};
yX4=function(p){return Array.isArray(p)?gd(p).split("."):p.toString().split(".")};
tw=function(p,J,S){J=yX4(J);for(var H=0;H<J.length;H++){if(!p)return;p=p[J[H]]}S&&(S.path=J.join("."));return p};
B_v=function(p,J,S){var H=yX4(J),M=H[H.length-1];if(H.length>1){for(J=0;J<H.length-1;J++)if(p=p[H[J]],!p)return;p[M]=S}else p[J]=S;return H.join(".")};
UBW=function(p,J,S){var H=p[J];if(!H)H=p[J]={};else if(!p.hasOwnProperty(J)&&(H=p[J]=Object.create(p[J]),S))for(var M in H)for(p=H[M],J=H[M]=Array(p.length),S=0;S<p.length;S++)J[S]=p[S];return H};
Dy=function(p,J,S,H,M,X){if(J){var Z=!1,n=hw++,b;for(b in S){var F=M?BJ(b):b;if(F=J[F])for(var f=0,O=F.length,A=void 0;f<O&&(A=F[f]);f++)A.info&&A.info.lastRun===n||M&&!stw(b,A.trigger)||(A.info&&(A.info.lastRun=n),A.fn(p,b,S,H,A.info,M,X),Z=!0)}return Z}return!1};
stw=function(p,J){if(J){var S=J.name;return S==p||!(!J.structured||!QtW(S,p))||!(!J.wildcard||!Uy(S,p))}return!0};
g8t=function(p,J,S,H,M){J=typeof M.method==="string"?p[M.method]:M.method;S=M.property;J?J.call(p,p.__data[S],H[S]):M.dynamicFn||console.warn("observer method `"+M.method+"` not defined")};
ts4=function(p,J,S,H){S={value:S,queueProperty:!0};H&&(S.path=H);(0,_.kX)(p).dispatchEvent(new CustomEvent(J,{detail:S}))};
hl9=function(p,J,S,H,M,X){X=(H=(X?BJ(J):J)!=J?J:null)?tw(p,H):p.__data[J];H&&X===void 0&&(X=S[J]);ts4(p,M.eventName,X,H)};
DBW=function(p,J,S,H,M){S=p.__data[J];Ny&&(S=Ny(S,M.attrName,"attribute",p));p._propertyToAttribute(J,M.attrName,S)};
N_X=function(p){var J=p.constructor.__orderedComputedDeps;if(!J){J=new Map;for(var S=p.__computeEffects,H=ksW(p),M=H.counts,X=H.ready,Z=H.total;H=X.shift();)J.set(H,J.size),(H=S[H])&&H.forEach(function(n){n=n.info.methodInfo;--Z;--M[n]===0&&X.push(n)});
Z!==0&&console.warn("Computed graph for "+p.localName+" incomplete; circular?");p.constructor.__orderedComputedDeps=J}return J};
ksW=function(p){var J=p.__computeInfo,S={};p=p.__computeEffects;var H=[],M=0,X;for(X in J){var Z=J[X];M+=S[X]=Z.args.filter(function(b){return!b.literal}).length+(Z.dynamicFn?1:0)}for(var n in p)J[n]||H.push(n);
return{counts:S,ready:H,total:M}};
dBX=function(p,J,S,H,M){J=T_v(p,J,S,H,M);if(J===TU)return!1;M=M.methodInfo;if(p.__dataHasAccessor&&p.__dataHasAccessor[M])return p._setPendingProperty(M,J,!0);p[M]=J;return!1};
Vsv=function(p,J,S,H,M,X,Z){S.bindings=S.bindings||[];H={kind:H,target:M,parts:X,literal:Z,isCompound:X.length!==1};S.bindings.push(H);H.target&&H.kind!="attribute"&&H.kind!="text"&&!H.isCompound&&H.parts[0].mode==="{"&&(S=H.parts[0],X=S.negate,H.listenerEvent=S.event||CE(M)+"-changed",H.listenerNegate=X);M=J.nodeInfoList.length;for(S=0;S<H.parts.length;S++){var n=H.parts[S];n.compoundIndex=S;X=p;Z=J;var b=H,F=n,f=M;if(!F.literal)if(b.kind==="attribute"&&b.target[0]==="-")console.warn("Cannot set attribute "+
b.target+' because "-" is not a valid attribute starting character');else for(n=F.dependencies,b={index:f,binding:b,part:F,evaluator:X},F=0;F<n.length;F++)f=n[F],typeof f=="string"&&(f=umL(f),f.wildcard=!0),X._addTemplatePropertyEffect(Z,f.rootProperty,{fn:lPv,info:b,trigger:f})}};
lPv=function(p,J,S,H,M,X,Z){Z=Z[M.index];var n=M.binding,b=M.part;X&&b.source&&J.length>b.source.length&&n.kind=="property"&&!n.isCompound&&Z.__isPropertyEffectsClient&&Z.__dataHasAccessor&&Z.__dataHasAccessor[n.target]?(S=S[J],J=sy(b.source,n.target,J),Z._setPendingPropertyOrPath(J,S,!1,!0)&&p._enqueueClient(Z)):(J=M.evaluator._evaluateBinding(p,b,J,S,H,X),J!==TU&&(n.isCompound&&(S=Z.__dataCompoundStorage[n.target],S[b.compoundIndex]=J,J=S.join("")),n.kind==="attribute"||n.target!=="textContent"&&
(n.target!=="value"||Z.localName!=="input"&&Z.localName!=="textarea")||(J=J==void 0?"":J),b=J,Ny&&(b=Ny(b,n.target,n.kind,Z)),n.kind=="attribute"?p._valueToNodeAttribute(Z,b,n.target):(n=n.target,Z.__isPropertyEffectsClient&&Z.__dataHasAccessor&&Z.__dataHasAccessor[n]?Z.__readOnly&&Z.__readOnly[n]||Z._setPendingProperty(n,b)&&p._enqueueClient(Z):p._setUnmanagedPropertyToNode(Z,n,b))))};
qXi=function(p,J,S){if(S.listenerEvent){var H=S.parts[0];p.addEventListener(S.listenerEvent,function(M){var X=S.target,Z=H.source,n=H.negate,b=M.detail,F=b&&b.path;F?(Z=sy(X,Z,F),M=b&&b.value):M=M.currentTarget[X];J.__readOnly&&J.__readOnly[Z]||!J._setPendingPropertyOrPath(Z,n?!M:M,!0,!!F)||b&&b.queueProperty||J._invalidateProperties()})}};
aP9=function(p,J,S,H,M,X){X=J.static||X&&(typeof X!=="object"||X[J.methodName]);M={methodName:J.methodName,args:J.args,methodInfo:M,dynamicFn:X};for(var Z=0,n=void 0;Z<J.args.length&&(n=J.args[Z]);Z++)n.literal||p._addPropertyEffect(n.rootProperty,S,{fn:H,info:M,trigger:n});X&&p._addPropertyEffect(J.methodName,S,{fn:H,info:M});return M};
T_v=function(p,J,S,H,M){H=p._methodHost||p;var X=H[M.methodName];if(X)return p=p._marshalArgs(M.args,J,S),p===TU?TU:X.apply(H,p);M.dynamicFn||console.warn("method `"+M.methodName+"` not defined")};
E8W=function(p){for(var J="",S=0;S<p.length;S++)J+=p[S].literal||"";return J};
jtW=function(p){if(p=p.match(/([^\s]+?)\(([\s\S]*)\)/)){var J={methodName:p[1],static:!0,args:YX4};return p[2].trim()?rXv(p[2].replace(/\\,/g,"&comma;").split(","),J):J}return null};
rXv=function(p,J){J.args=p.map(function(S){S=umL(S);S.literal||(J.static=!1);return S},this);
return J};
umL=function(p){p=p.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var J={name:p,value:"",literal:!1},S=p[0];S==="-"&&(S=p[1]);S>="0"&&S<="9"&&(S="#");switch(S){case "'":case '"':J.value=p.slice(1,-1);J.literal=!0;break;case "#":J.value=Number(p),J.literal=!0}J.literal||(J.rootProperty=BJ(p),J.structured=yT(p),J.structured&&(J.wildcard=p.slice(-2)==".*",J.wildcard&&(J.name=p.slice(0,-2))));return J};
wYg=function(p,J,S){p=tw(p,S);p===void 0&&(p=J[S]);return p};
xBX=function(p,J,S,H){H={indexSplices:H};dd&&!p._overrideLegacyUndefined&&(J.splices=H);p.notifyPath(S+".splices",H);p.notifyPath(S+".length",J.length);dd&&!p._overrideLegacyUndefined&&(H.indexSplices=[])};
uZ=function(p,J,S,H,M,X){xBX(p,J,S,[{index:H,addedCount:M,removed:X,object:J,type:"splice"}])};
cXv=function(p){p=mBW((p.body?p.body:p).textContent,p.baseURI);var J=document.createElement("style");J.textContent=p;return J};
LKt=function(p){p=p.trim().split(/\s+/);for(var J=[],S=0;S<p.length;S++)J.push.apply(J,_.dW(IPs(p[S])));return J};
IPs=function(p){var J=lZ.import(p);if(!J)return console.warn("Could not find style data in module named",p),[];if(J._styles===void 0){p=[];p.push.apply(p,_.dW(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(J)));var S=J.querySelector("template");S&&p.push.apply(p,_.dW(puX(S,J.assetpath)));J._styles=p}return J._styles};
puX=function(p,J){if(!p._styles){for(var S=[],H=p.content.querySelectorAll("style"),M=0;M<H.length;M++){var X=H[M],Z=X.getAttribute("include");Z&&S.push.apply(S,_.dW(LKt(Z).filter(function(n,b,F){return F.indexOf(n)===b})));
J&&(X.textContent=mBW(X.textContent,J));S.push(X)}p._styles=S}return p._styles};
J7W=function(p){return(p=lZ.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 J=[];p=p.querySelectorAll("link[rel=import][type~=css]");for(var S=0;S<p.length;S++){var H=p[S];if(H.import){var M=H.import;if((H=H.hasAttribute("shady-unscoped"))&&!M._unscopedStyle){var X=cXv(M);X.setAttribute("shady-unscoped","");M._unscopedStyle=X}else M._style||(M._style=cXv(M));J.push(H?M._unscopedStyle:M._style)}}return J};
HTg=function(p){p=p.trim().split(/\s+/);for(var J="",S=0;S<p.length;S++)J+=S0i(p[S]);return J};
S0i=function(p){var J=lZ.import(p);if(J&&J._cssText===void 0){var S=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(J),H=J.querySelector("template");H&&(S+=MNW(H,J.assetpath));J._cssText=S||null}J||console.warn("Could not find style data in module named",p);return J&&J._cssText||""};
MNW=function(p,J){var S="";p=puX(p,J);for(J=0;J<p.length;J++){var H=p[J];H.parentNode&&H.parentNode.removeChild(H);S+=H.textContent}return S};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(p){var J="";p=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(p);for(var S=0;S<p.length;S++)J+=p[S].textContent;return J};
VT=function(p,J){return{index:p,removed:[],addedCount:J}};
iTw=function(p,J,S,H){var M=0,X=0,Z=0,n=0,b=Math.min(J-M,H-X);if(M==0&&X==0)a:{for(Z=0;Z<b;Z++)if(p[Z]!==S[Z])break a;Z=b}if(J==p.length&&H==S.length){n=p.length;for(var F=S.length,f=0;f<b-Z&&XuX(p[--n],S[--F]);)f++;n=f}M+=Z;X+=Z;J-=n;H-=n;if(J-M==0&&H-X==0)return[];if(M==J){for(J=VT(M,0);X<H;)J.removed.push(S[X++]);return[J]}if(X==H)return[VT(M,J-M)];b=M;Z=X;H=H-Z+1;n=J-b+1;J=Array(H);for(F=0;F<H;F++)J[F]=Array(n),J[F][0]=F;for(F=0;F<n;F++)J[0][F]=F;for(F=1;F<H;F++)for(f=1;f<n;f++)if(p[b+f-1]===
S[Z+F-1])J[F][f]=J[F-1][f-1];else{var O=J[F-1][f]+1,A=J[F][f-1]+1;J[F][f]=O<A?O:A}b=J.length-1;Z=J[0].length-1;H=J[b][Z];for(p=[];b>0||Z>0;)b==0?(p.push(2),Z--):Z==0?(p.push(3),b--):(n=J[b-1][Z-1],F=J[b-1][Z],f=J[b][Z-1],O=F<f?F<n?F:n:f<n?f:n,O==n?(n==H?p.push(0):(p.push(1),H=n),b--,Z--):O==F?(p.push(3),b--,H=F):(p.push(2),Z--,H=f));p.reverse();J=void 0;b=[];for(Z=0;Z<p.length;Z++)switch(p[Z]){case 0:J&&(b.push(J),J=void 0);M++;X++;break;case 1:J||(J=VT(M,0));J.addedCount++;M++;J.removed.push(S[X]);
X++;break;case 2:J||(J=VT(M,0));J.addedCount++;M++;break;case 3:J||(J=VT(M,0)),J.removed.push(S[X]),X++}J&&b.push(J);return b};
R1g=function(p,J){return iTw(p,p.length,J,J.length)};
XuX=function(p,J){return p===J};
ZTt=function(p){if(p instanceof K2t)return p.value;throw Error("Id`"+p);};
nIt=function(p,J){for(var S in J)S===null?p.style.removeProperty(S):p.style.setProperty(S,J[S])};
GJW=function(p,J){return(p=window.getComputedStyle(p).getPropertyValue(J))?p.trim():""};
vIW=function(p){requestAnimationFrame(function(){bTi?bTi(p):(mkX||(mkX=new Promise(function(J){F2g=J}),document.readyState==="complete"?F2g():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&F2g()})),mkX.then(function(){p&&p()}))})};
A7w=function(p){fFW=p&&p.shimcssproperties?!1:OTW||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
e1v=function(p){if(!(Pbt.indexOf(p)>-1)&&p!=="touchend"&&z1L&&$kW&&oIw)return{passive:!0}};
y79=function(p){for(var J=W2i?["click"]:Pbt,S=0,H;S<J.length;S++)H=J[S],p?(Q$s.length=0,document.addEventListener(H,CbL,!0)):document.removeEventListener(H,CbL,!0)};
qy=function(p){var J=p.type;return Pbt.indexOf(J)>-1?J==="mousemove"?(J=p.buttons===void 0?1:p.buttons,p instanceof window.MouseEvent&&!BsL&&(J=Ukk[p.which]||0),!!(J&1)):(p.button===void 0?0:p.button)===0:!1};
s$s=function(p){if(p.type==="click"){if(p.detail===0)return!0;var J=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p);if(!J.nodeType||J.nodeType!==Node.ELEMENT_NODE)return!0;J=J.getBoundingClientRect();var S=p.pageX;p=p.pageY;return!(S>=J.left&&S<=J.right&&p>=J.top&&p<=J.bottom)}return!1};
gIs=function(p,J,S){p.movefn=J;p.upfn=S;document.addEventListener("mousemove",J);document.addEventListener("mouseup",S)};
aZ=function(p){document.removeEventListener("mousemove",p.movefn);document.removeEventListener("mouseup",p.upfn);p.movefn=null;p.upfn=null};
tNX=function(p,J){for(var S=document.elementFromPoint(p,J),H=S;H&&H.shadowRoot&&!window.ShadyDOM;){var M=H;H=H.shadowRoot.elementFromPoint(p,J);if(M===H)break;H&&(S=H)}return S};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){var J=h1w(p);return J.length>0?J[0]:p.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){var J=p.type,S=p.currentTarget.__polymerGestures;if(S&&(S=S[J])){if(!p.__polymerGesturesHandled&&(p.__polymerGesturesHandled={},J.slice(0,5)==="touch")){var H=p.changedTouches[0];J==="touchstart"&&p.touches.length===1&&(Dkg=H.identifier);if(Dkg!==H.identifier)return;z1L||(J==="touchstart"||J==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p)}H=
p.__polymerGesturesHandled;if(!H.skip){for(var M=0,X;M<Ey.length;M++)X=Ey[M],S[X.name]&&!H[X.name]&&X.flow&&X.flow.start.indexOf(p.type)>-1&&X.reset&&X.reset();for(M=0;M<Ey.length;M++)X=Ey[M],S[X.name]&&!H[X.name]&&(H[X.name]=!0,X[J](p))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){var J=p.changedTouches[0],S=p.type;if(S==="touchstart")kJW=J.clientX,NsW=J.clientY,TsL=!1;else if(S==="touchmove"&&!TsL){TsL=!0;S="auto";for(var H=h1w(p),M=0,X;M<H.length;M++)if(X=H[M],X.__polymerGesturesTouchAction){S=X.__polymerGesturesTouchAction;break}H=!1;M=Math.abs(kJW-J.clientX);J=Math.abs(NsW-J.clientY);p.cancelable&&(S==="none"?H=!0:S==="pan-x"?H=J>M:S==="pan-y"&&(H=M>J));H?p.preventDefault():
YX("track")}};
j5=function(p,J,S){return rd[J]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p,J,S),!0):!1};
wd=function(p,J,S){return rd[J]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p,J,S),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p,J,S){var H=rd[J],M=H.deps,X=H.name,Z=p.__polymerGestures;Z||(p.__polymerGestures=Z={});for(var n=0,b,F;n<M.length;n++)b=M[n],W2i&&Pbt.indexOf(b)>-1&&b!=="click"||((F=Z[b])||(Z[b]=F={_count:0}),F._count===0&&p.addEventListener(b,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,e1v(b)),F[X]=(F[X]||0)+1,F._count=(F._count||0)+1);p.addEventListener(J,S);H.touchAction&&_.xX(p,H.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p,J,S){var H=rd[J],M=H.deps;H=H.name;var X=p.__polymerGestures;if(X)for(var Z=0,n,b;Z<M.length;Z++)n=M[Z],(b=X[n])&&b[H]&&(b[H]=(b[H]||1)-1,b._count=(b._count||1)-1,b._count===0&&p.removeEventListener(n,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,e1v(n)));p.removeEventListener(J,S)};
dkL=function(p){Ey.push(p);for(var J=0;J<p.emits.length;J++)rd[p.emits[J]]=p};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){for(var J=0,S;J<Ey.length;J++){S=Ey[J];for(var H=0,M;H<S.emits.length;H++)if(M=S.emits[H],M===p)return S}return null};
_.xX=function(p,J){z1L&&p instanceof HTMLElement&&cJ.run(function(){p.style.touchAction=J});
p.__polymerGesturesTouchAction=J};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p,J,S){J=new Event(J,{bubbles:!0,cancelable:!0,composed:!0});J.detail=S;(0,_.kX)(p).dispatchEvent(J);J.defaultPrevented&&(p=S.preventer||S.sourceEvent)&&p.preventDefault&&p.preventDefault()};
YX=function(p){p=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p);p.info&&(p.info.prevent=!0)};
IZ=function(p,J,S,H){J&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J,p,{x:S.clientX,y:S.clientY,sourceEvent:S,preventer:H,prevent:function(M){return YX(M)}})};
uiX=function(p,J,S){if(p.prevent)return!1;if(p.started)return!0;S=Math.abs(p.y-S);return Math.abs(p.x-J)>=5||S>=5};
lFX=function(p,J,S){if(J){var H=p.moves[p.moves.length-2],M=p.moves[p.moves.length-1],X=M.x-p.x,Z=M.y-p.y,n=0;if(H){var b=M.x-H.x;n=M.y-H.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J,"track",{state:p.state,x:S.clientX,y:S.clientY,dx:X,dy:Z,ddx:b,ddy:n,sourceEvent:S,hover:function(){return tNX(S.clientX,S.clientY)}})}};
q0W=function(p,J,S){var H=Math.abs(J.clientX-p.x),M=Math.abs(J.clientY-p.y),X=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S||J);!X||VNg[X.localName]&&X.hasAttribute("disabled")||!(isNaN(H)||isNaN(M)||H<=25&&M<=25||s$s(J))||p.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X,"tap",{x:J.clientX,y:J.clientY,sourceEvent:J,preventer:S})};
aFW=function(p,J,S,H,M){var X;M&&(X=typeof S==="object"&&S!==null)&&(H=p.__dataTemp[J]);H=H!==S&&(H===H||S===S);X&&H&&(p.__dataTemp[J]=S);return H};
Y0t=function(){if(LE&&!pz){if(!EIi){EIi=!0;var p=document.createElement("style");p.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(p)}return!0}return!1};
j$w=function(){return r7X};
wuw=function(p,J){r7X=p;Object.setPrototypeOf(p,J.prototype);new J;r7X=null};
xkL=function(p,J){for(var S=0;S<J.length;S++){var H=J[S];if(!!p!=!!H.__hideTemplateChildren__)if(H.nodeType===Node.TEXT_NODE)p?(H.__polymerTextContent__=H.textContent,H.textContent=""):H.textContent=H.__polymerTextContent__;else if(H.localName==="slot")if(p)H.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.kX)((0,_.kX)(H).parentNode).replaceChild(H.__polymerReplaced__,H);else{var M=H.__polymerReplaced__;M&&(0,_.kX)((0,_.kX)(M).parentNode).replaceChild(H,M)}else H.style&&(p?(H.__polymerDisplay__=
H.style.display,H.style.display="none"):H.style.display=H.__polymerDisplay__);H.__hideTemplateChildren__=p;H._showHideChildren&&H._showHideChildren(p)}};
c7k=function(p){return(p=p.__dataHost)&&p._methodHost||p};
p_k=function(p,J,S){var H=S.mutableData?IFi:JS;MX.mixin&&(H=MX.mixin(H));var M=function(){return H.apply(this,arguments)||this};
_.Q(M,H);M.prototype.__templatizeOptions=S;M.prototype._bindTemplate(p);L24(M,p,J,S);return M};
X_i=function(p,J,S,H){var M=S.forwardHostProp;if(M&&J.hasHostProps){var X=p.localName=="template",Z=J.templatizeTemplateClass;if(!Z){if(X){var n=S.mutableData?JFg:SwX;Z=function(){return n.apply(this,arguments)||this};
_.Q(Z,n);Z=J.templatizeTemplateClass=Z}else{var b=p.constructor;Z=function(){return b.apply(this,arguments)||this};
_.Q(Z,b);Z=J.templatizeTemplateClass=Z}var F=J.hostProps,f;for(f in F)Z.prototype._addPropertyEffect("_host_"+f,Z.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:HuW(M)}),Z.prototype._createNotifyingProperty("_host_"+f);X7&&H&&MJW(J,S,H)}p.__dataProto&&Object.assign(p.__data,p.__dataProto);if(X)wuw(p,Z),p.__dataTemp={},p.__dataPending=null,p.__dataOld=null,p._enableProperties();else{Object.setPrototypeOf(p,Z.prototype);J=J.hostProps;for(var O in J)O="_host_"+O,O in p&&(J=p[O],delete p[O],p.__data[O]=
J)}}};
HuW=function(p){return function(J,S,H){p.call(J.__templatizeOwner,S.substring(6),H[S])}};
L24=function(p,J,S,H){var M=S.hostProps||{},X;for(X in H.instanceProps){delete M[X];var Z=H.notifyInstanceProp;Z&&p.prototype._addPropertyEffect(X,p.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:iuW(Z)})}if(H.forwardHostProp&&J.__dataHost)for(var n in M)S.hasHostProps||(S.hasHostProps=!0),p.prototype._addPropertyEffect(n,p.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Rkg()})};
iuW=function(p){return function(J,S,H){p.call(J.__templatizeOwner,J,S,H[S])}};
Rkg=function(){return function(p,J,S){p.__dataHost._setPendingPropertyOrPath("_host_"+J,S[J],!0,!0)}};
MX=function(p,J,S){if(iu&&!c7k(p))throw Error("Od");S=S||{};if(p.__templatizeOwner)throw Error("Pd");p.__templatizeOwner=J;var H=(J?J.constructor:JS)._parseTemplate(p),M=H.templatizeInstanceClass;M||(M=p_k(p,H,S),H.templatizeInstanceClass=M);var X=c7k(p);X_i(p,H,S,X);S=function(){return M.apply(this,arguments)||this};
_.Q(S,M);S.prototype._methodHost=X;S.prototype.__dataHost=p;S.prototype.__templatizeOwner=J;S.prototype.__hostProps=H.hostProps;return S};
MJW=function(p,J,S){S=S.constructor._properties;p=p.propertyEffects;J=J.instanceProps;for(var H in p)if(!(S[H]||J&&J[H]))for(var M=p[H],X=0;X<M.length;X++){var Z=M[X].info.part;if(!Z.signature||!Z.signature.static){console.warn("Property '"+H+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
KsW=function(p,J){for(var S;J;)if(S=J.__dataHost?J:J.__templatizeInstance)if(S.__dataHost!=p)J=S.__dataHost;else return S;else J=(0,_.kX)(J).parentNode;return null};
RC=function(p){return p.localName==="slot"};
ZuL=function(){for(var p=Kz.prototype,J="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),S={},H=0;H<J.length;S={method$jscomp$33:void 0},H++)S.method$jscomp$33=J[H],p[S.method$jscomp$33]=function(M){return function(){return this.node[M.method$jscomp$33].apply(this.node,arguments)}}(S)};
nCi=function(p,J){for(var S={},H=0;H<J.length;S={name$jscomp$448:void 0},H++)S.name$jscomp$448=J[H],Object.defineProperty(p,S.name$jscomp$448,{get:function(M){return function(){return this.node[M.name$jscomp$448]}}(S),
configurable:!0})};
GFv=function(){for(var p=Kz.prototype,J=["textContent","innerHTML","className"],S={},H=0;H<J.length;S={name$jscomp$449:void 0},H++)S.name$jscomp$449=J[H],Object.defineProperty(p,S.name$jscomp$449,{get:function(M){return function(){return this.node[M.name$jscomp$449]}}(S),
set:function(M){return function(X){this.node[M.name$jscomp$449]=X}}(S),
configurable:!0})};
buX=function(){Zn=document.documentElement.getAttribute("dir");Zn=document.documentElement.getAttribute("dir");for(var p=0;p<nz.length;p++){var J=nz[p];J.__autoDirOptOut||J.setAttribute("dir",Zn)}};
fjX=function(){Gd=!0;requestAnimationFrame(function(){Gd=!1;mUi(FsX);setTimeout(function(){for(var p=0,J=bu.length;p<J;p++)vCi(bu.shift())})})};
mUi=function(p){for(;p.length;)vCi(p.shift())};
vCi=function(p){var J=p[0],S=p[1];p=p[2];try{S.apply(J,p)}catch(H){setTimeout(function(){throw H;})}};
_.Ouk=function(p,J,S){Gd||fjX();FsX.push([p,J,S])};
_.mN=function(p,J,S){Gd||fjX();bu.push([p,J,S])};
zkt=function(p,J){J=J===void 0?!1:J;if(!AFg||!P9t||!AFg.handlesDynamicScoping)return null;var S=P9t.ScopingShim;if(!S)return null;var H=S.scopeForNode(p),M=(0,_.kX)(p).getRootNode(),X=function(Z){if((0,_.kX)(Z).getRootNode()===M){var n=Array.from(AFg.nativeMethods.querySelectorAll.call(Z,"*"));n.push(Z);for(Z=0;Z<n.length;Z++){var b=n[Z];if((0,_.kX)(b).getRootNode()===M){var F=S.currentScopeForNode(b);F!==H&&(F!==""&&S.unscopeNode(b,F),S.scopeNode(b,H))}}}};
X(p);return J?(J=new MutationObserver(function(Z){for(var n=0;n<Z.length;n++)for(var b=Z[n],F=0;F<b.addedNodes.length;F++){var f=b.addedNodes[F];f.nodeType===Node.ELEMENT_NODE&&X(f)}}),J.observe(p,{childList:!0,
subtree:!0}),J):null};
$U4=function(){document.body.removeAttribute("unresolved")};
C9w=function(p){var J=p=p.replace(oCs,"").replace(ekL,""),S=new Wsi;S.start=0;S.end=J.length;for(var H=S,M=0,X=J.length;M<X;M++)if(J[M]==="{"){H.rules||(H.rules=[]);var Z=H,n=Z.rules[Z.rules.length-1]||null;H=new Wsi;H.start=M+1;H.parent=Z;H.previous=n;Z.rules.push(H)}else J[M]==="}"&&(H.end=M+1,H=H.parent||S);return Qhi(S,p)};
Qhi=function(p,J){var S=J.substring(p.start,p.end-1);p.parsedCssText=p.cssText=S.trim();p.parent&&(S=J.substring(p.previous?p.previous.end:p.parent.start,p.start-1),S=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(S),S=S.replace(yFg," "),S=S.substring(S.lastIndexOf(";")+1),S=p.parsedSelector=p.selector=S.trim(),p.atRule=S.indexOf("@")===0,p.atRule?S.indexOf("@media")===0?p.type=4:S.match(B4t)&&(p.type=7,p.keyframesName=p.selector.split(yFg).pop()):S.indexOf("--")===
0?p.type=1E3:p.type=1);if(S=p.rules)for(var H=0,M=S.length,X=void 0;H<M&&(X=S[H]);H++)Qhi(X,J);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 J=arguments[1],S=6-J.length;S--;)J="0"+J;return"\\"+J})};
UUW=function(p,J,S){S=S===void 0?"":S;var H="";if(p.cssText||p.rules){var M=p.rules;if(M&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(M))for(var X=0,Z=M.length,n=void 0;X<Z&&(n=M[X]);X++)H=UUW(n,J,H);else J?J=p.cssText:(J=p.cssText,J=J.replace(shg,"").replace(gC9,""),J=J.replace(tJi,"").replace(hks,"")),(H=J.trim())&&(H="  "+H+"\n")}H&&(p.selector&&(S+=p.selector+" {\n"),S+=H,p.selector&&(S+="}\n\n"));return S};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(p){p=p[0];return!!p&&!!p.selector&&p.selector.indexOf("--")===0};
kFi=function(p){if(p=DU9[p])p._applyShimCurrentVersion=p._applyShimCurrentVersion||0,p._applyShimValidatingVersion=p._applyShimValidatingVersion||0,p._applyShimNextVersion=(p._applyShimNextVersion||0)+1};
N4X=function(p){return p._applyShimCurrentVersion===p._applyShimNextVersion};
dUk=function(p){p._applyShimValidatingVersion=p._applyShimNextVersion;p._validating||(p._validating=!0,T4s.then(function(){p._applyShimCurrentVersion=p._applyShimNextVersion;p._validating=!1}))};
ljX=function(p){if(!p)return"";typeof p==="string"&&(p=C9w(p));return UUW(p,uzw)};
VJW=function(p){!p.__cssRules&&p.textContent&&(p.__cssRules=C9w(p.textContent));return p.__cssRules||null};
aj4=function(p,J,S,H){if(p){var M=!1,X=p.type;if(H&&X===4){var Z=p.selector.match(qwL);Z&&(window.matchMedia(Z[1]).matches||(M=!0))}X===1?J(p):S&&X===7?S(p):X===1E3&&(M=!0);if((p=p.rules)&&!M)for(M=0,X=p.length,Z=void 0;M<X&&(Z=p[M]);M++)aj4(Z,J,S,H)}};
ECw=function(p,J){var S=p.indexOf("var(");if(S===-1)return J(p,"","","");a:{var H=0;var M=S+3;for(var X=p.length;M<X;M++)if(p[M]==="(")H++;else if(p[M]===")"&&--H===0)break a;M=-1}H=p.substring(S+4,M);S=p.substring(0,S);p=ECw(p.substring(M+1),J);X=H.indexOf(",");if(X===-1)return J(S,H.trim(),"",p);M=H.substring(0,X).trim();H=H.substring(X+1).trim();return J(S,M,H,p)};
YwW=function(p){if(F7!==void 0)return F7;if(p.__cssBuild===void 0){var J=p.getAttribute("css-build");if(J)p.__cssBuild=J;else{a:{J=p.localName==="template"?p.content.firstChild:p.firstChild;if(J instanceof Comment&&(J=J.textContent.trim().split(":"),J[0]==="css-build")){J=J[1];break a}J=""}if(J!==""){var S=p.localName==="template"?p.content.firstChild:p.firstChild;S.parentNode.removeChild(S)}p.__cssBuild=J}}return p.__cssBuild||""};
jh4=function(p,J,S,H){for(var M=J._noAccessors,X=Object.getOwnPropertyNames(J),Z=0;Z<X.length;Z++){var n=X[Z];if(!(n in H))if(M)p[n]=J[n];else{var b=Object.getOwnPropertyDescriptor(J,n);b&&(b.configurable=!0,Object.defineProperty(p,n,b))}}for(var F in rFL)J[F]&&(S[F]=S[F]||[],S[F].push(J[F]))};
w_4=function(p,J,S){J=J||[];for(var H=p.length-1;H>=0;H--){var M=p[H];M?Array.isArray(M)?w_4(M,J):J.indexOf(M)<0&&(!S||S.indexOf(M)<0)&&J.unshift(M):console.warn("behavior is null, check for missing or 404 import")}return J};
xUX=function(p,J){for(var S in J){var H=p[S],M=J[S];p[S]=!("value"in M)&&H&&"value"in H?Object.assign({value:H.value},M):M}};
LsX=function(p,J,S){var H={},M=function(){return J.apply(this,arguments)||this};
_.Q(M,J);M._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(Z)for(var b=0,F;b<Z.length;b++)F=Z[b],F.properties&&this.createProperties(F.properties),F.observers&&this.createObservers(F.observers,F.properties);p.properties&&this.createProperties(p.properties);p.observers&&this.createObservers(p.observers,p.properties);this._prepareTemplate()}else J._finalizeClass.call(this)};
M.prototype.created=function(){J.prototype.created.call(this);var b=H.created;if(b)for(var F=0;F<b.length;F++)b[F].call(this)};
M.prototype._registered=function(){var b=M.prototype;if(!b.hasOwnProperty("__hasRegisterFinished")){b.__hasRegisterFinished=!0;J.prototype._registered.call(this);LE&&n(b);b=Object.getPrototypeOf(this);var F=H.beforeRegister;if(F)for(var f=0;f<F.length;f++)F[f].call(b);if(F=H.registered)for(f=0;f<F.length;f++)F[f].call(b)}};
M.prototype._applyListeners=function(){J.prototype._applyListeners.call(this);var b=H.listeners;if(b)for(var F=0;F<b.length;F++){var f=b[F];if(f)for(var O in f)this._addMethodEventListenerToNode(this,O,f[O])}};
M.prototype._ensureAttributes=function(){var b=H.hostAttributes;if(b)for(var F=b.length-1;F>=0;F--){var f=b[F],O;for(O in f)this._ensureAttribute(O,f[O])}J.prototype._ensureAttributes.call(this)};
M.prototype.ready=function(){J.prototype.ready.call(this);var b=H.ready;if(b)for(var F=0;F<b.length;F++)b[F].call(this)};
M.prototype.attached=function(){J.prototype.attached.call(this);var b=H.attached;if(b)for(var F=0;F<b.length;F++)b[F].call(this)};
M.prototype.detached=function(){J.prototype.detached.call(this);var b=H.detached;if(b)for(var F=0;F<b.length;F++)b[F].call(this)};
M.prototype.attributeChanged=function(b,F,f){J.prototype.attributeChanged.call(this);var O=H.attributeChanged;if(O)for(var A=0;A<O.length;A++)O[A].call(this,b,F,f)};
_.vh.Object.defineProperties(M,{properties:{configurable:!0,enumerable:!0,get:function(){var b={};if(Z)for(var F=0;F<Z.length;F++)xUX(b,Z[F].properties);xUX(b,p.properties);return b}},
observers:{configurable:!0,enumerable:!0,get:function(){var b=[];if(Z)for(var F=0,f;F<Z.length;F++)f=Z[F],f.observers&&(b=b.concat(f.observers));p.observers&&(b=b.concat(p.observers));return b}}});
if(S){Array.isArray(S)||(S=[S]);var X=J.prototype.behaviors;var Z=w_4(S,null,X);M.prototype.behaviors=X?X.concat(S):Z}var n=function(b){if(Z)for(var F=Z,f=0;f<F.length;f++)jh4(b,F[f],H,cFg);jh4(b,p,H,Ij9)};
LE||n(M.prototype);M.generatedFrom=p;return M};
HXs=function(p){var J=typeof p!=="string"?p:{is:p,notifyObserversOnUndefined:!0};J.fastInit===void 0&&(J.fastInit=!0);return function(S){if(!J.disableInheritanceCheck&&Object.getPrototypeOf(S.prototype).constructor!==_.fz)throw Error("Td");var H=S.prototype;H.is=J.is;KKL(H,"created",function(){this.hostElement=this;this.polymerController=this});
pjg(H,S,J.fastInit);J.notifyObserversOnUndefined&&(H._overrideLegacyUndefined=!0);if(JdW)for(var M=_.K(Object.getOwnPropertyNames(H)),X=M.next();!X.done;X=M.next()){X=X.value;var Z=Object.getOwnPropertyDescriptor(H,X);Z.enumerable===!1&&(Z.enumerable=!0,Object.defineProperty(H,X,Z))}if("template"in S)var n=function(){return S.template};
else J.template!==void 0&&(n=J.template);if(n!==void 0){var b;Object.defineProperty(H,"_template",{get:function(){b===void 0&&(b=n());return b},
set:function(F){b=F},
configurable:!0,enumerable:!0})}Polymer(H);S[Sjt]=H}};
M_i=function(p){p=p===void 0?{}:p;p.fastInit===void 0&&(p.fastInit=!0);return function(J){if(!p.disableInheritanceCheck&&Object.getPrototypeOf(J.prototype).constructor!==OL)throw Error("Ud");pjg(J.prototype,J,p.fastInit)}};
pjg=function(p,J,S){S=S===void 0?!1:S;Xjw(J);S?KKL(p,"created",function(){this.disableEnforceFastDefaultValuesCheck||iXi(J,this)}):KKL(p,"ready",function(){for(var H={},M=_.K(ZYv(this.behaviors)),X=M.next();!X.done;X=M.next())X=X.value,X.properties&&Object.assign(H,R6w(this,X.properties));
Object.assign(H,R6w(this,this.properties));iXi(J,this);M=_.K(Object.keys(H));for(X=M.next();!X.done;X=M.next())X=X.value,this[X]=H[X]})};
iXi=function(p,J){if(JdW){p=new p;for(var S=_.K(Object.getOwnPropertyNames(p)),H=S.next();!H.done;H=S.next())H=H.value,J[H]=p[H];for(S=J;S&&S!==Object.prototype;S=Object.getPrototypeOf(S)){H=_.K(Object.getOwnPropertyNames(S));for(var M=H.next();!M.done;M=H.next())M=M.value,p.hasOwnProperty(M)||Object.defineProperty(p,M,Kk9(J,M))}}else p.apply(J)};
Kk9=function(p,J){return{get:function(){var S=p[J];return S instanceof Function?S.bind(p):S},
set:function(S){p[J]=S}}};
R6w=function(p,J){if(!J)return{};for(var S={},H=_.K(Object.keys(J)),M=H.next();!M.done;M=H.next())if(M=M.value,!J[M].readOnly){var X=p[M];X!==void 0&&(S[M]=X)}return S};
Xjw=function(p){var J=new p;p=p.prototype.properties||{};for(var S=_.K(Object.keys(p)),H=S.next();!H.done;H=S.next())if(H=H.value,J.hasOwnProperty(H)){var M=p[H];typeof M==="function"&&(p[H]=M={type:M});J[H]!=null&&M.type===Object&&(M.type=ZXX(J[H].constructor))}};
ZXX=function(p){for(var J=_.K(nrv),S=J.next();!S.done;S=J.next())if(S=S.value,p===S)return S;return Object};
G5X=function(p){return function(J,S){J.behaviors=J.behaviors||[];J.behaviors.push(p||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",J,S).prototype:void 0));Object.defineProperty(J,S,{get:function(){return this},
enumerable:!0,configurable:!0})}};
bXL=function(p){p=p===void 0?{}:p;return function(J,S){J.properties=J.properties||{};p.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?p.type=ZXX(Reflect.getMetadata("design:type",J,S)):p.type=String);var H=p,M=J.properties[S];J.properties[S]=M?Object.assign({},M,H):H}};
mRk=function(p){return function(J,S){J.listeners=J.listeners||{};J.listeners[p]=S}};
FkX=function(){var p=_.Yp.apply(0,arguments);if(p.length===0)throw Error("Vd");return function(J,S){J.observers=J.observers||[];J.observers.push(S+"("+p.join(",")+")")}};
vri=function(){var p=_.Yp.apply(0,arguments);return function(J,S,H){var M=Object.getOwnPropertyDescriptor(J,S).get,X="__compute__"+S;Object.defineProperty(J,X,{value:M,enumerable:!0});J.properties=J.properties||{};M=J.properties[S];M||(M={},J.properties[S]=M);M.computed=X+"("+p.join(",")+")";H.get=void 0}};
_.AS=function(p,J,S){_.gp.call(this);this.JSC$11466_id_=null;this.usingListeners_=!1;this.JSC$11466_listener_=p;this.handler_=S;this.JSC$11466_win_=J||window;this.callback_=(0,_.tT)(this.JSC$11468_doAction_,this)};
Ph=function(p){this.range_=p};
zd=function(p){this.range_=p};
eT=function(p,J,S){_.gp.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=p;this.scrollTimer_=new _.$d(50);this.JSC$11545_eventHandler_=new _.oC(this);this.scrollDelta_=new _.uI;this.containerIsActuallyContent_=p.tagName==="BODY"||p.tagName==="HTML";this.containerBounds_=fv9(p);this.containerIsActuallyContent_&&(p=_.Bs(),this.containerBounds_.height=p.height,this.containerBounds_.width=p.width);this.margin_=J||0;if(J){if(J=this.containerBounds_.clone(),p=this.margin_){var H=
Math.min(p,J.height*.25);J.top+=H;J.height-=2*H;p=Math.min(p,J.width*.25);J.left+=p;J.width-=2*p}}else J=this.containerBounds_;this.scrollBounds_=J;S||this.JSC$11545_eventHandler_.listen(_.VF(this.containerNode_),"mousemove",this.JSC$11547_onMouseMove);this.JSC$11545_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11547_onTick_)};
_.Wh=function(p){this.mechanism=p};
QB=function(p,J){this.JSC$11643_key_=p;this.JSC$11643_value_=J};
Adt=function(p){if(p>=55296&&p<=57343||p>1114111)return"\ufffd";p in OXs&&(p=OXs[p]);var J="";p>65535&&(p-=65536,J+=String.fromCharCode(p>>>10&1023|55296),p=56320|p&1023);return J+=String.fromCharCode(p)};
P_9=function(p,J){return p<J?1:-1};
$R9=function(){return function(p){return p.charAt(1)==="#"?p.charAt(2)==="X"||p.charAt(2)==="x"?Adt(parseInt(p.substr(3),16)):Adt(parseInt(p.substr(2),10)):z6i[p.slice(1,-1)]}};
WkL=function(p){return p.slice(1,p.length-1).trim().replace(ork,function(J){return e6W[J]||" "})};
yB=function(p){return p===32||p===9};
Bh=function(p,J){return J<p.length?p.charCodeAt(J):-1};
Q1i=function(p){for(;p;){if(p._lastLineBlank)return!0;var J=p.type;if(J==="list"||J==="item")p=p._lastChild;else break}return!1};
UL=function(p){if(C_3.test(p)){var J=1,S=0,H=0;for(p[S]=="|"&&S++;S<p.length;){switch(p[S]){case "|":H=1;break;case " ":break;case "\t":break;default:H&&(H=0,J++)}S++}return ydW.test(p)?-J:J}return 0};
B7W=function(p){return p=="table"||p=="row"||p=="cell"};
URg=function(){return new sL("document",[[1,1],[0,0]])};
s1k=function(){};
g0=function(){var p={safe:!1};p=p||{};p.softbreak=p.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=p};
k5g=function(p,J){var S="";if(p)if(p=p.toLowerCase(),p===" "||grv.test(p))S="space";else if(t_X.test(p))S="esc";else if(p.length==1){if(!J||h6w.test(p))S=p}else S=DRg.test(p)?p.replace("arrow",""):p=="multiply"?"*":p;return S};
uhX=function(p,J){var S=p.hasModifiers;if(J.key)S=k5g(J.key,S);else if(J.detail&&J.detail.key)S=k5g(J.detail.key,S);else{S=J.keyIdentifier;var H="";S&&(S in N7i?H=N7i[S]:T7W.test(S)?(S=parseInt(S.replace("U+","0x"),16),H=String.fromCharCode(S).toLowerCase()):H=S.toLowerCase());(S=H)||(S=J.keyCode,H="",Number(S)&&(S>=65&&S<=90?H=String.fromCharCode(32+S):S>=112&&S<=123?H="f"+(S-112+1):S>=48&&S<=57?H=String(S-48):S>=96&&S<=105?H=String(S-96):H=dRX[S]),S=H);S=S||""}return S===p.key&&(!p.hasModifiers||
!!J.shiftKey===!!p.shiftKey&&!!J.ctrlKey===!!p.ctrlKey&&!!J.altKey===!!p.altKey&&!!J.metaKey===!!p.metaKey)};
V_s=function(p){return p.length===1?{combo:p,key:p,event:"keydown"}:p.split("+").reduce(function(J,S){var H=S.split(":");S=H[0];H=H[1];S in lvi?(J[lvi[S]]=!0,J.hasModifiers=!0):(J.key=S,J.event=H||"keydown");return J},{combo:p.split(":").shift()})};
qjX=function(p){return p.trim().split(" ").map(function(J){return V_s(J)})};
avg=function(p,J){if(p&&p.fn){var S=p.fn;p.fn=function(){try{S.apply(this,arguments)}catch(H){if(H instanceof tS)console.warn("Argument '"+H.arg+"'"+(J?" for method '"+J+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw H;}}}return p};
Yjg=function(){var p=[],J;var S=S||_.Er9.length;for(J=0;J<8;J++)p[J]=_.Er9[0|Math.random()*S];return p.join("")};
rdk=function(){var p=_.Yp.apply(0,arguments);return p.length===0?function(J){return J}:p.length===1?p[0]:p.reduce(function(J,S){return function(){return J(S.apply(null,_.dW(_.Yp.apply(0,arguments))))}})};
j19=function(){var p=_.Yp.apply(0,arguments);return function(J){return function(S,H){S=J(S,H);var M=function(){throw Error("Fe");},X={getState:S.getState,
dispatch:function(Z){return M.apply(null,[Z].concat(_.dW(_.Yp.apply(1,arguments))))}};
H=p.map(function(Z){return Z(X)});
M=rdk.apply(null,_.dW(H))(S.dispatch);return Object.assign({},S,{dispatch:M})}}};
cdw=function(p){Object.keys(p).forEach(function(J){var S=p[J];if(typeof S(void 0,{type:wj4})==="undefined")throw Error("Ge`"+J);if(typeof S(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+xRi()})==="undefined")throw Error("He`"+J+"`"+wj4);})};
hS=function(p){for(var J=Object.keys(p),S={},H=0;H<J.length;H++){var M=J[H];typeof p[M]==="function"&&(S[M]=p[M])}var X=Object.keys(S);try{cdw(S)}catch(n){var Z=n}return function(n,b){n=n===void 0?{}:n;if(Z)throw Z;for(var F=!1,f={},O=0;O<X.length;O++){var A=X[O],P=n[A],W=(0,S[A])(P,b);if(typeof W==="undefined")throw n=b&&b.type,Error("Ie`"+(n?'"'+String(n)+'"':"(unknown type)")+"`"+A);f[A]=W;F=F||W!==P}return(F=F||X.length!==Object.keys(n).length)?f:n}};
IvX=function(p,J,S){function H(){if(f)throw Error("Je");return n}
function M(P){if(typeof P!=="function")throw Error("Ke`"+typeof P);if(f)throw Error("Le");var W=!0;F===b&&(F=b.slice());F.push(P);return function(){if(W){if(f)throw Error("Me");W=!1;F===b&&(F=b.slice());var y=F.indexOf(P);F.splice(y,1);b=null}}}
function X(P){if(typeof P!=="object"||P===null)var W=!1;else{for(W=P;Object.getPrototypeOf(W)!==null;)W=Object.getPrototypeOf(W);W=Object.getPrototypeOf(P)===W}if(!W)throw Error("Ne`"+typeof P);if(typeof P.type==="undefined")throw Error("Oe");if(f)throw Error("Pe");try{f=!0,n=Z(n,P)}finally{f=!1}W=b=F;for(var y=0;y<W.length;y++)(0,W[y])();return P}
if(typeof J==="function"&&typeof S==="function"||typeof S==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof J==="function"&&typeof S==="undefined"&&(S=J,J=void 0);if(typeof S!=="undefined"){if(typeof S!=="function")throw Error("Re`"+typeof S);return S(IvX)(p,J)}if(typeof p!=="function")throw Error("Se`"+typeof p);var Z=p,n=J,b=[],F=b,f=!1;X({type:wj4});var O={},A=(O.dispatch=X,O.subscribe=M,O.getState=H,O.replaceReducer=function(P){if(typeof P!=="function")throw Error("Te`"+
typeof P);Z=P;X({type:Lkv});return A},O[pzX]=function(){var P={};
return P.subscribe=function(W){function y(){W.next&&W.next(H())}
if(typeof W!=="object"||W===null)throw new TypeError("Ue`"+typeof W);y();return{unsubscribe:M(y)}},P[pzX]=function(){return this},P},O);
return A};
Je3=function(p){function J(){M&&(M=!1,p());X&&H()}
function S(){requestAnimationFrame(J)}
function H(){var n=Date.now();if(M){if(n-Z<2)return;X=!0}else M=!0,X=!1,setTimeout(S,20);Z=n}
var M=!1,X=!1,Z=0;return H};
Dn=function(p){return typeof p==="number"?p:parseFloat(p)||0};
SnX=function(p){return _.Yp.apply(1,arguments).reduce(function(J,S){return J+Dn(p["border-"+S+"-width"])},0)};
ini=function(p){if(Hnk[p])return Hnk[p];var J=globalThis[p],S=J.prototype,H=p in MEi?MEi[p]:void 0;H=!(!H||!H.every(function(b){var F,f;return!!((F=Object.getOwnPropertyDescriptor(S,b))==null?0:(f=F.get)==null?0:f.toString().includes("[native code]"))}));
var M=p in XzX?XzX[p]:void 0;M=!(!M||!M.every(function(b){var F;return typeof S[b]==="function"&&((F=S[b])==null?void 0:F.toString().includes("[native code]"))}));
if(H&&M&&!globalThis.Zone)return Hnk[p]=J.prototype;try{var X=document.createElement("iframe");document.body.appendChild(X);var Z=X.contentWindow;if(!Z)return J.prototype;var n=Z[p].prototype;document.body.removeChild(X);return n?Hnk[p]=n:S}catch(b){return S}};
kd=function(p,J,S){var H=p+"."+String(S);if(R_4[H])return R_4[H].call(J);p=ini(p);var M;p=(M=Object.getOwnPropertyDescriptor(p,S))==null?void 0:M.get;if(!p)return J[S];R_4[H]=p;return p.call(J)};
ZnW=function(p,J){var S="Node."+String(J);if(KEX[S])return KEX[S].bind(p);var H=ini("Node")[J];if(typeof H!=="function")return p[J];KEX[S]=H;return H.bind(p)};
NX=function(p,J,S){try{if(!(J in p))return function(){};
var H=p[J],M=S(H);typeof M==="function"&&(M.prototype=M.prototype||{},Object.defineProperties(M,{__rrweb_original__:{enumerable:!1,value:H}}));p[J]=M;return function(){p[J]=H}}catch(X){return function(){}}};
uu=function(p){var J=p&&"host"in p&&"mode"in p&&Td(p)||null;return!!(J&&"shadowRoot"in J&&d0(J)===p)};
lu=function(p){return Object.prototype.toString.call(p)==="[object ShadowRoot]"};
nfw=function(p){p.includes(" background-clip: text;")&&!p.includes(" -webkit-background-clip: text;")&&(p=p.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return p};
bns=function(p){try{var J=p.rules||p.cssRules;if(!J)return null;var S=p.href;!S&&p.ownerNode&&(S=p.ownerNode.baseURI);var H=Array.from(J,function(M){return Gi4(M,S)}).join("");
return nfw(H)}catch(M){return null}};
Gi4=function(p,J){if("styleSheet"in p){try{var S;if(!(S=bns(p.styleSheet))){var H=p.cssText;if(H.split('"').length<3)S=H;else{var M=["@import","url("+JSON.stringify(p.href)+")"];p.layerName===""?M.push("layer"):p.layerName&&M.push("layer("+p.layerName+")");p.supportsText&&M.push("supports("+p.supportsText+")");p.media.length&&M.push(p.media.mediaText);S=M.join(" ")+";"}}var X=S}catch(Z){X=p.cssText}return p.styleSheet.href?mvX(X,p.styleSheet.href):X}X=p.cssText;"selectorText"in p&&p.selectorText.includes(":")&&
(X=X.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return J?mvX(X,J):X};
FEg=function(p){var J=p.element;var S=p.maskInputOptions;var H=p.tagName;var M=p.type;var X=p.value;p=p.maskInputFn;X=X||"";M=M&&M.toLowerCase();if(S[H.toLowerCase()]||M&&S[M])X=p?p(X,J):"*".repeat(X.length);return X};
vfL=function(p){var J=p.getContext("2d");if(!J)return!0;for(var S=0;S<p.width;S+=50)for(var H=0;H<p.height;H+=50){var M=J.getImageData;if((new Uint32Array(("__rrweb_original__"in M?M.__rrweb_original__:M).call(J,S,H,Math.min(50,p.width-S),Math.min(50,p.height-H)).data.buffer)).some(function(X){return X!==0}))return!1}return!0};
fo9=function(p){var J=p.type;return p.hasAttribute("data-rr-is-password")?"password":J?J.toLowerCase():null};
OnL=function(p){try{var J=new URL(p,window.location.href)}catch(M){return null}var S,H;return(H=(S=J.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:S[1])!=null?H:null};
mvX=function(p,J){return(p||"").replace(AeL,function(S,H,M,X,Z,n){M=M||Z||n;H=H||X||"";if(!M)return S;if(PVi.test(M)||z_L.test(M)||$v3.test(M))return"url("+H+M+H+")";if(M[0]==="/")return S=J.indexOf("//")>-1?J.split("/").slice(0,3).join("/"):J.split("/")[0],S=S.split("?")[0],"url("+H+(S+M)+H+")";S=J.split("/");X=M.split("/");S.pop();X=_.K(X);for(M=X.next();!M.done;M=X.next())M=M.value,M!=="."&&(M===".."?S.pop():S.push(M));return"url("+H+S.join("/")+H+")"})};
ofi=function(p,J){return(J=J===void 0?!1:J)?p.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):p.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
e_i=function(p,J){var S=S===void 0?!1:S;J=Array.from(J.childNodes);var H=[],M=0;if(J.length>1&&p&&typeof p==="string")for(var X=ofi(p,S),Z=X.length/p.length,n=1;n<J.length;n++)if(J[n].textContent&&typeof J[n].textContent==="string"){for(var b=ofi(J[n].textContent,S),F=3;F<b.length&&(b[F].match(/[a-zA-Z0-9]/)||b.indexOf(b.substring(0,F),1)!==-1);F++);for(;F<b.length;F++){var f=b.substring(0,F),O=X.split(f),A=-1;if(O.length===2)A=O[0].length;else if(O.length>2&&O[0]===""&&J[n-1].textContent!=="")A=
X.indexOf(f,1);else if(O.length===1){f=f.substring(0,f.length-1);O=X.split(f);if(O.length<=1)return H.push(p),H;F=101}else F===b.length-1&&(A=X.indexOf(f));if(O.length>=2&&F>100){var P=J[n-1].textContent;P&&typeof P==="string"&&(A=X.indexOf(f,ofi(P).length));A===-1&&(A=O[0].length)}if(A!==-1){for(b=Math.floor(A/Z);b>0&&b<p.length;){M+=1;if(M>50*J.length)return H.push(p),H;F=ofi(p.substring(0,b),S);if(F.length===A){H.push(p.substring(0,b));p=p.substring(b);X=X.substring(A);break}else b=F.length<A?
b+Math.max(1,Math.floor((A-F.length)/Z)):b-Math.max(1,Math.floor((F.length-A)*Z))}break}}}H.push(p);return H};
Qq4=function(){return WEW++};
ye9=function(p){if(p instanceof HTMLFormElement)return"form";p=p.tagName.toLowerCase();return CVg.test(p)?"div":p};
gfg=function(p,J){function S(F){return(F=F.exec(J.substring(H)))?(F=F[0],H+=F.length,F):""}
if(J.trim()==="")return J;for(var H=0,M=[];;){S(Bxt);if(H>=J.length)break;var X=S(Uvs);if(X.slice(-1)===",")X=sqt(p,X.substring(0,X.length-1)),M.push(X);else{var Z="";X=sqt(p,X);for(var n=!1;;){var b=J.charAt(H);if(b===""){M.push((X+Z).trim());break}else if(n)b===")"&&(n=!1);else if(b===","){H+=1;M.push((X+Z).trim());break}else b==="("&&(n=!0);Z+=b;H+=1}}}return M.join(", ")};
sqt=function(p,J){return J&&J.trim()!==""?tEw(p,J):J};
tEw=function(p,J){var S=h_w.get(p);S||(S=p.createElement("a"),h_w.set(p,S));if(!J)J="";else if(J.startsWith("blob:")||J.startsWith("data:"))return J;ja(S,J);return S.href};
Dv9=function(p,J,S,H){return H?S==="src"||S==="href"&&(J!=="use"||H[0]!=="#")||S==="xlink:href"&&H[0]!=="#"||S==="background"&&(J==="table"||J==="td"||J==="th")?sqt(p,H):S==="srcset"?gfg(p,H):S==="style"?mvX(H,tEw(p)):J==="object"&&S==="data"?sqt(p,H):H:H};
kii=function(p,J){return(p==="video"||p==="audio")&&J==="autoplay"};
Nxw=function(p,J,S){try{if(typeof J==="string"){if(p.classList.contains(J))return!0}else for(var H=p.classList.length;H--;)if(J.test(p.classList[H]))return!0;if(S)return p.matches(S)}catch(M){}return!1};
TxL=function(p,J,S){if(!p)return!1;if(p.nodeType!==p.ELEMENT_NODE)return S?TxL(VB(p),J,S):!1;for(var H=p.classList.length;H--;)if(J.test(p.classList[H]))return!0;return S?TxL(VB(p),J,S):!1};
dvW=function(p,J,S,H){if(p.nodeType===p.ELEMENT_NODE){if(!qX(p).length)return!1}else{if(aC(p)===null)return!1;p=aC(p)}try{if(typeof J==="string")if(H){if(p.closest("."+J))return!0}else{if(p.classList.contains(J))return!0}else if(TxL(p,J,H))return!0;if(S)if(H){if(p.closest(S))return!0}else if(p.matches(S))return!0}catch(M){}return!1};
uv4=function(p,J,S){var H=p.contentWindow;if(H){var M=!1;try{var X=H.document.readyState}catch(n){return}if(X!=="complete"){var Z=setTimeout(function(){M||(J(),M=!0)},S);
p.addEventListener("load",function(){clearTimeout(Z);M=!0;J()})}else H.location.href==="about:blank"&&p.src!=="about:blank"&&p.src!==""||setTimeout(J,0),p.addEventListener("load",J)}};
loX=function(p,J,S){var H=!1;try{var M=p.sheet}catch(Z){return}if(!M){var X=setTimeout(function(){H||(J(),H=!0)},S);
p.addEventListener("load",function(){clearTimeout(X);H=!0;J()})}};
aot=function(p,J){var S=J.doc,H=J.blockClass,M=J.blockSelector,X=J.needsMask,Z=J.inlineStylesheet,n=J.maskInputOptions===void 0?{}:J.maskInputOptions,b=J.maskTextFn,F=J.maskInputFn,f=J.dataURLOptions===void 0?{}:J.dataURLOptions,O=J.inlineImages,A=J.recordCanvas,P=J.keepIframeSrcFn,W=J.newlyAddedElement===void 0?!1:J.newlyAddedElement,y=J.cssCaptured===void 0?!1:J.cssCaptured;J=J.mirror;J.nodeMetaMap.has(S)?(J=J.getId(S),J=J===1?void 0:J):J=void 0;switch(p.nodeType){case p.DOCUMENT_NODE:return p.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:p.compatMode}:{type:0,childNodes:[]};case p.DOCUMENT_TYPE_NODE:return{type:1,name:p.name,publicId:p.publicId,systemId:p.systemId,rootId:J};case p.ELEMENT_NODE:return VEs(p,{doc:S,blockClass:H,blockSelector:M,inlineStylesheet:Z,maskInputOptions:n,maskInputFn:F,dataURLOptions:f,inlineImages:O,recordCanvas:A,keepIframeSrcFn:P,newlyAddedElement:W,rootId:J});case p.TEXT_NODE:return Z=(H=VB(p))&&H.tagName,H="",M=Z==="STYLE"?!0:void 0,(Z=Z==="SCRIPT"?!0:void 0)?
H="SCRIPT_PLACEHOLDER":y||(H=qn9(p),M&&H&&(H=mvX(H,tEw(S)))),!M&&!Z&&H&&X&&(H=b?b(H,aC(p)):H.replace(/[\S]/g,"*")),{type:3,textContent:H||"",rootId:J};case p.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:J};case p.COMMENT_NODE:return{type:5,textContent:qn9(p)||"",rootId:J};default:return!1}};
VEs=function(p,J){var S=J.doc,H=J.inlineStylesheet,M=J.maskInputOptions===void 0?{}:J.maskInputOptions,X=J.maskInputFn,Z=J.dataURLOptions===void 0?{}:J.dataURLOptions,n=J.inlineImages,b=J.recordCanvas,F=J.keepIframeSrcFn,f=J.newlyAddedElement===void 0?!1:J.newlyAddedElement,O=J.rootId;J=Nxw(p,J.blockClass,J.blockSelector);for(var A=ye9(p),P={},W=p.attributes.length,y=0;y<W;y++){var t=p.attributes[y];kii(A,t.name)||(P[t.name]=Dv9(S,A,t.name.toLowerCase(),t.value))}A==="link"&&H&&(H=Array.from(S.styleSheets).find(function(q){return q.href===
p.href}),W=null,H&&(W=bns(H)),W&&(delete P.rel,delete P.href,P._cssText=W));
A==="style"&&p.sheet&&(H=bns(p.sheet))&&(p.childNodes.length>1&&(H=e_i(H,p).join("/* rr_split */")),P._cssText=H);if(A==="input"||A==="textarea"||A==="select")H=p.value,W=p.checked,P.type!=="radio"&&P.type!=="checkbox"&&P.type!=="submit"&&P.type!=="button"&&H?P.value=FEg({element:p,type:fo9(p),tagName:A,value:H,maskInputOptions:M,maskInputFn:X}):W&&(P.checked=W);A==="option"&&(p.selected&&!M.select?P.selected=!0:delete P.selected);A==="dialog"&&p.open&&(P.rr_open_mode=p.matches("dialog:modal")?"modal":
"non-modal");A==="canvas"&&b&&(p.__context==="2d"?vfL(p)||(P.rr_dataURL=p.toDataURL(Z.type,Z.quality)):"__context"in p||(M=p.toDataURL(Z.type,Z.quality),X=S.createElement("canvas"),X.width=p.width,X.height=p.height,X=X.toDataURL(Z.type,Z.quality),M!==X&&(P.rr_dataURL=M)));if(A==="img"&&n){EL||(EL=S.createElement("canvas"),Efi=EL.getContext("2d"));var D=p.currentSrc||p.getAttribute("src")||"<unknown-src>",k=p.crossOrigin,E=function(){p.removeEventListener("load",E);try{EL.width=p.naturalWidth,EL.height=
p.naturalHeight,Efi.drawImage(p,0,0),P.rr_dataURL=EL.toDataURL(Z.type,Z.quality)}catch(q){if(p.crossOrigin!=="anonymous"){p.crossOrigin="anonymous";p.complete&&p.naturalWidth!==0?E():p.addEventListener("load",E);return}console.warn("Cannot inline img src="+D+"! Error: "+q)}p.crossOrigin==="anonymous"&&(k?P.crossOrigin=k:p.removeAttribute("crossorigin"))};
p.complete&&p.naturalWidth!==0?E():p.addEventListener("load",E)}if(A==="audio"||A==="video")S=P,S.rr_mediaState=p.paused?"paused":"played",S.rr_mediaCurrentTime=p.currentTime,S.rr_mediaPlaybackRate=p.playbackRate,S.rr_mediaMuted=p.muted,S.rr_mediaLoop=p.loop,S.rr_mediaVolume=p.volume;f||(p.scrollLeft&&(P.rr_scrollLeft=p.scrollLeft),p.scrollTop&&(P.rr_scrollTop=p.scrollTop));J&&(f=p.getBoundingClientRect(),P={class:P.class,rr_width:f.width+"px",rr_height:f.height+"px"});A!=="iframe"||F(P.src)||(p.contentDocument||
(P.rr_src=P.src),delete P.src);var a;try{customElements.get(A)&&(a=!0)}catch(q){}return{type:2,tagName:A,attributes:P,childNodes:[],isSVG:!(p.tagName!=="svg"&&!p.ownerSVGElement)||void 0,needBlock:J,rootId:O,isCustom:a}};
Yd=function(p){return p===void 0||p===null?"":p.toLowerCase()};
Yn4=function(p,J){return J.comment&&p.type===5||p.type===2&&(J.script&&(p.tagName==="script"||p.tagName==="link"&&(p.attributes.rel==="preload"&&p.attributes.as==="script"||p.attributes.rel==="modulepreload")||p.tagName==="link"&&p.attributes.rel==="prefetch"&&typeof p.attributes.href==="string"&&OnL(p.attributes.href)==="js")||J.headFavicon&&(p.tagName==="link"&&p.attributes.rel==="shortcut icon"||p.tagName==="meta"&&(Yd(p.attributes.name).match(/^msapplication-tile(image|color)$/)||Yd(p.attributes.name)===
"application-name"||Yd(p.attributes.rel)==="icon"||Yd(p.attributes.rel)==="apple-touch-icon"||Yd(p.attributes.rel)==="shortcut icon"))||p.tagName==="meta"&&(J.headMetaDescKeywords&&Yd(p.attributes.name).match(/^description|keywords$/)||J.headMetaSocial&&(Yd(p.attributes.property).match(/^(og|twitter|fb):/)||Yd(p.attributes.name).match(/^(og|twitter):/)||Yd(p.attributes.name)==="pinterest")||J.headMetaRobots&&(Yd(p.attributes.name)==="robots"||Yd(p.attributes.name)==="googlebot"||Yd(p.attributes.name)===
"bingbot")||J.headMetaHttpEquiv&&p.attributes["http-equiv"]!==void 0||J.headMetaAuthorship&&(Yd(p.attributes.name)==="author"||Yd(p.attributes.name)==="generator"||Yd(p.attributes.name)==="framework"||Yd(p.attributes.name)==="publisher"||Yd(p.attributes.name)==="progid"||Yd(p.attributes.property).match(/^article:/)||Yd(p.attributes.property).match(/^product:/))||J.headMetaVerification&&(Yd(p.attributes.name)==="google-site-verification"||Yd(p.attributes.name)==="yandex-verification"||Yd(p.attributes.name)===
"csrf-token"||Yd(p.attributes.name)==="p:domain_verify"||Yd(p.attributes.name)==="verify-v1"||Yd(p.attributes.name)==="verification"||Yd(p.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
r0=function(p,J){var S=J.doc,H=J.mirror,M=J.blockClass,X=J.blockSelector,Z=J.maskTextClass,n=J.maskTextSelector,b=J.skipChild===void 0?!1:J.skipChild,F=J.inlineStylesheet===void 0?!0:J.inlineStylesheet,f=J.maskInputOptions===void 0?{}:J.maskInputOptions,O=J.maskTextFn,A=J.maskInputFn,P=J.slimDOMOptions,W=J.dataURLOptions===void 0?{}:J.dataURLOptions,y=J.inlineImages===void 0?!1:J.inlineImages,t=J.recordCanvas===void 0?!1:J.recordCanvas,D=J.onSerialize,k=J.onIframeLoad,E=J.iframeLoadTimeout===void 0?
5E3:J.iframeLoadTimeout,a=J.onStylesheetLoad,q=J.stylesheetLoadTimeout===void 0?5E3:J.stylesheetLoadTimeout,w=J.keepIframeSrcFn===void 0?function(){return!1}:J.keepIframeSrcFn,I=J.newlyAddedElement===void 0?!1:J.newlyAddedElement,Z3=J.cssCaptured===void 0?!1:J.cssCaptured,vg=J.needsMask,yX=J.preserveWhiteSpace===void 0?!0:J.preserveWhiteSpace;
vg||(vg=dvW(p,Z,n,vg===void 0));var Pg=aot(p,{doc:S,mirror:H,blockClass:M,blockSelector:X,needsMask:vg,inlineStylesheet:F,maskInputOptions:f,maskTextFn:O,maskInputFn:A,dataURLOptions:W,inlineImages:y,recordCanvas:t,keepIframeSrcFn:w,newlyAddedElement:I,cssCaptured:Z3});if(!Pg)return console.warn(p,"not serialized"),null;I=H.nodeMetaMap.has(p)?H.getId(p):Yn4(Pg,P)||!yX&&Pg.type===3&&!Pg.textContent.replace(/^\s+|\s+$/gm,"").length?-2:WEW++;J=Object.assign(Pg,{id:I});H.add(p,J);if(I===-2)return null;
D&&D(p);I=!b;J.type===2&&(I=I&&!J.needBlock,delete J.needBlock,(Z3=d0(p))&&lu(Z3)&&(J.isShadowHost=!0));if((J.type===0||J.type===2)&&I){P.headWhitespace&&J.type===2&&J.tagName==="head"&&(yX=!1);b={doc:S,mirror:H,blockClass:M,blockSelector:X,needsMask:vg,maskTextClass:Z,maskTextSelector:n,skipChild:b,inlineStylesheet:F,maskInputOptions:f,maskTextFn:O,maskInputFn:A,slimDOMOptions:P,dataURLOptions:W,inlineImages:y,recordCanvas:t,preserveWhiteSpace:yX,onSerialize:D,onIframeLoad:k,iframeLoadTimeout:E,
onStylesheetLoad:a,stylesheetLoadTimeout:q,keepIframeSrcFn:w,cssCaptured:!1};if(J.type!==2||J.tagName!=="textarea"||J.attributes.value===void 0)for(J.type===2&&J.attributes._cssText!==void 0&&typeof J.attributes._cssText==="string"&&(b.cssCaptured=!0),I=_.K(Array.from(qX(p))),Z3=I.next();!Z3.done;Z3=I.next())(Z3=r0(Z3.value,b))&&J.childNodes.push(Z3);I=null;if(p.nodeType===p.ELEMENT_NODE&&(I=d0(p))){Z3=_.K(Array.from(qX(I)));for(var ov=Z3.next();!ov.done;ov=Z3.next())if(ov=r0(ov.value,b))lu(I)&&(ov.isShadow=
!0),J.childNodes.push(ov)}}(b=VB(p))&&uu(b)&&lu(b)&&(J.isShadow=!0);J.type===2&&J.tagName==="iframe"&&uv4(p,function(){var NW=p.contentDocument;NW&&k&&(NW=r0(NW,{doc:NW,mirror:H,blockClass:M,blockSelector:X,needsMask:vg,maskTextClass:Z,maskTextSelector:n,skipChild:!1,inlineStylesheet:F,maskInputOptions:f,maskTextFn:O,maskInputFn:A,slimDOMOptions:P,dataURLOptions:W,inlineImages:y,recordCanvas:t,preserveWhiteSpace:yX,onSerialize:D,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:a,stylesheetLoadTimeout:q,
keepIframeSrcFn:w}))&&k(p,NW)},E);
J.type===2&&J.tagName==="link"&&typeof J.attributes.rel==="string"&&(J.attributes.rel==="stylesheet"||J.attributes.rel==="preload"&&typeof J.attributes.href==="string"&&OnL(J.attributes.href)==="css")&&loX(p,function(){if(a){var NW=r0(p,{doc:S,mirror:H,blockClass:M,blockSelector:X,needsMask:vg,maskTextClass:Z,maskTextSelector:n,skipChild:!1,inlineStylesheet:F,maskInputOptions:f,maskTextFn:O,maskInputFn:A,slimDOMOptions:P,dataURLOptions:W,inlineImages:y,recordCanvas:t,preserveWhiteSpace:yX,onSerialize:D,
onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:a,stylesheetLoadTimeout:q,keepIframeSrcFn:w});NW&&a(p,NW)}},q);
return J};
rei=function(p){var J=document;p=p||{};var S=p.maskAllInputs===void 0?!1:p.maskAllInputs,H=p.slimDOM===void 0?!1:p.slimDOM;return r0(J,{doc:J,mirror:p.mirror===void 0?new jT:p.mirror,blockClass:p.blockClass===void 0?"rr-block":p.blockClass,blockSelector:p.blockSelector===void 0?null:p.blockSelector,maskTextClass:p.maskTextClass===void 0?"rr-mask":p.maskTextClass,maskTextSelector:p.maskTextSelector===void 0?null:p.maskTextSelector,skipChild:!1,inlineStylesheet:p.inlineStylesheet===void 0?!0:p.inlineStylesheet,
maskInputOptions:S===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:S===!1?{password:!0}:S,maskTextFn:p.maskTextFn,maskInputFn:p.maskInputFn,slimDOMOptions:H===!0||H==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:H==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:H===!1?{}:H,dataURLOptions:p.dataURLOptions,
inlineImages:p.inlineImages===void 0?!1:p.inlineImages,recordCanvas:p.recordCanvas===void 0?!1:p.recordCanvas,preserveWhiteSpace:p.preserveWhiteSpace,onSerialize:p.onSerialize,onIframeLoad:p.onIframeLoad,iframeLoadTimeout:p.iframeLoadTimeout,onStylesheetLoad:p.onStylesheetLoad,stylesheetLoadTimeout:p.stylesheetLoadTimeout,keepIframeSrcFn:p.keepIframeSrcFn===void 0?function(){return!1}:p.keepIframeSrcFn,
newlyAddedElement:!1})};
w0=function(p,J,S){S=S===void 0?document:S;var H={capture:!0,passive:!0};S.addEventListener(p,J,H);return function(){return S.removeEventListener(p,J,H)}};
xd=function(p,J,S){S=S===void 0?{}:S;var H=null,M=0;return function(){var X=_.Yp.apply(0,arguments),Z=Date.now();M||S.leading!==!1||(M=Z);var n=J-(Z-M),b=this;n<=0||n>J?(H&&(clearTimeout(H),H=null),M=Z,p.apply(b,X)):H||S.trailing===!1||(H=setTimeout(function(){M=S.leading===!1?0:Date.now();H=null;p.apply(b,X)},n))}};
jqg=function(p,J,S,H,M){M=M===void 0?window:M;var X=M.Object.getOwnPropertyDescriptor(p,J);M.Object.defineProperty(p,J,H?S:{set:function(Z){var n=this;setTimeout(function(){S.set.call(n,Z)},0);
X&&X.set&&X.set.call(this,Z)}});
return function(){return jqg(p,J,X||{},!0)}};
wzk=function(p){var J=p.document,S,H,M,X;return{left:J.scrollingElement?J.scrollingElement.scrollLeft:p.pageXOffset!==void 0?p.pageXOffset:J.documentElement.scrollLeft||(J==null?void 0:J.body)&&((S=aC(J.body))==null?void 0:S.scrollLeft)||(J==null?void 0:(H=J.body)==null?void 0:H.scrollLeft)||0,top:J.scrollingElement?J.scrollingElement.scrollTop:p.pageYOffset!==void 0?p.pageYOffset:(J==null?void 0:J.documentElement.scrollTop)||(J==null?void 0:J.body)&&((M=aC(J.body))==null?void 0:M.scrollTop)||(J==
null?void 0:(X=J.body)==null?void 0:X.scrollTop)||0}};
xvt=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
ceW=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
IoW=function(p){return p?p.nodeType===p.ELEMENT_NODE?p:aC(p):null};
ch=function(p,J,S,H){if(!p)return!1;p=IoW(p);if(!p)return!1;try{if(typeof J==="string"){if(p.classList.contains(J)||H&&p.closest("."+J)!==null)return!0}else if(TxL(p,J,H))return!0}catch(M){}return S&&(p.matches(S)||H&&p.closest(S)!==null)?!0:!1};
LEk=function(p,J,S){return p.tagName==="TITLE"&&S.headTitleMutations?!0:J.getId(p)===-2};
pdi=function(p,J){if(uu(p))return!1;var S=J.getId(p);return J.has(S)?(S=VB(p))&&S.nodeType===p.DOCUMENT_NODE?!1:S?pdi(S,J):!0:!0};
JJ3=function(){var p=p===void 0?window:p;"NodeList"in p&&!p.NodeList.prototype.forEach&&(p.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in p&&!p.DOMTokenList.prototype.forEach&&(p.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
Ssg=function(p,J){return!(p.nodeName!=="LINK"||p.nodeType!==p.ELEMENT_NODE||!p.getAttribute||p.getAttribute("rel")!=="stylesheet"||!J.nodeMetaMap.get(p))};
Mbt=function(p){var J=null,S;"getRootNode"in p&&((S=HNg(p))==null?void 0:S.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Td(HNg(p))&&(J=Td(HNg(p)));return J};
Xds=function(p){var J=p.ownerDocument;if(J){if(!(J=ZnW(J,"contains")(p)))if(J=p.ownerDocument){for(var S;S=Mbt(p);)p=S;J=ZnW(J,"contains")(p)}else J=!1}else J=!1;return J};
iNw=function(p,J){p.delete(J);qX(J).forEach(function(S){return iNw(p,S)})};
RSv=function(p,J){for(var S=[p];S.length;)p=S.pop(),J.has(p)||(J.add(p),qX(p).forEach(function(H){return S.push(H)}))};
Kbi=function(p,J){p.size===0?p=!1:p=(J=VB(J))?p.has(J):!1;return p};
n0w=function(p,J){return p.size===0?!1:ZNt(p,J)};
ZNt=function(p,J){return(J=VB(J))?p.has(J)?!0:ZNt(p,J):!1};
IC=function(p){try{if("composedPath"in p){var J=p.composedPath();if(J.length)return J[0]}else if("path"in p&&p.path.length)return p.path[0]}catch(S){}return p&&p.target};
bNt=function(p,J){var S=new Gq4;Lz.push(S);S.init(p);p=new (ini("MutationObserver").constructor)(p1(S.processMutations.bind(S)));p.observe(J,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return p};
FbW=function(p){var J=p.mousemoveCb;var S=p.sampling;var H=p.doc;var M=p.mirror;if(S.mousemove===!1)return function(){};
var X=[],Z,n=xd(p1(function(F){var f=Date.now()-Z;J(X.map(function(O){O.timeOffset-=f;return O}),F);
X=[];Z=null}),typeof S.mousemoveCallback==="number"?S.mousemoveCallback:500);
p=p1(xd(p1(function(F){var f=IC(F),O=F.changedTouches?F.changedTouches[0]:F,A=O.clientX;O=O.clientY;Z||(Z=m7v());X.push({x:A,y:O,id:M.getId(f),timeOffset:m7v()-Z});n(typeof DragEvent!=="undefined"&&F instanceof DragEvent?12:F instanceof MouseEvent?1:6)}),typeof S.mousemove==="number"?S.mousemove:50,{trailing:!1}));
var b=[w0("mousemove",p,H),w0("touchmove",p,H),w0("drag",p,H)];return p1(function(){b.forEach(function(F){return F()})})};
v03=function(p){var J=p.mouseInteractionCb;var S=p.doc;var H=p.mirror;var M=p.blockClass;var X=p.blockSelector;p=p.sampling;if(p.mouseInteraction===!1)return function(){};
var Z=p.mouseInteraction===!0||p.mouseInteraction===void 0?{}:p.mouseInteraction,n=[],b=null,F=function(f){return function(O){var A=IC(O);if(!ch(A,M,X,!0)){var P=null,W=f;if("pointerType"in O){switch(O.pointerType){case "mouse":P=0;break;case "touch":P=2;break;case "pen":P=1}P===2&&(J1[f]===1?W="TouchStart":J1[f]===0&&(W="TouchEnd"))}else O.changedTouches&&(P=2);if(P!==null){if(b=P,W.startsWith("Touch")&&P===2||W.startsWith("Mouse")&&P===0)P=null}else J1[f]===2&&(P=b,b=null);if(O=O.changedTouches?
O.changedTouches[0]:O)A=H.getId(A),p1(J)(Object.assign({},{type:J1[W],id:A,x:O.clientX,y:O.clientY},P!==null&&{pointerType:P}))}}};
Object.keys(J1).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&Z[f]!==!1}).forEach(function(f){var O=f.toLowerCase(),A=F(f);
if(window.PointerEvent)switch(J1[f]){case 1:case 0:O=O.replace("mouse","pointer");break;case 7:case 9:return}n.push(w0(O,A,S))});
return p1(function(){n.forEach(function(f){return f()})})};
fIL=function(p){var J=p.scrollCb;var S=p.doc;var H=p.mirror;var M=p.blockClass;var X=p.blockSelector;return w0("scroll",p1(xd(p1(function(Z){var n=IC(Z);n&&!ch(n,M,X,!0)&&(Z=H.getId(n),n===S&&S.defaultView?(n=wzk(S.defaultView),J({id:Z,x:n.left,y:n.top})):J({id:Z,x:n.scrollLeft,y:n.scrollTop}))}),p.sampling.scroll||100)),S)};
ONt=function(p,J){var S=p.viewportResizeCb;var H=-1,M=-1;return w0("resize",p1(xd(p1(function(){var X=xvt(),Z=ceW();if(H!==X||M!==Z)S({width:Number(Z),height:Number(X)}),H=X,M=Z}),200)),J.win)};
zSs=function(p){function J(t){var D=IC(t),k=t.isTrusted,E=D&&D.tagName;D&&E==="OPTION"&&(D=aC(D));if(!(!D||!E||AJ9.indexOf(E)<0||ch(D,Z,n,!0)||D.classList.contains(b)||F&&D.matches(F))){var a=D.value,q=!1;t=fo9(D)||"";if(t==="radio"||t==="checkbox")q=D.checked;else if(f[E.toLowerCase()]||f[t])a=FEg({element:D,maskInputOptions:f,tagName:E,type:t,value:a,maskInputFn:O});S(D,P?{text:a,isChecked:q,userTriggered:k}:{text:a,isChecked:q});k=D.name;t==="radio"&&k&&q&&M.querySelectorAll('input[type="radio"][name="'+
k+'"]').forEach(function(w){if(w!==D){var I=w.value;S(w,P?{text:I,isChecked:!q,userTriggered:!1}:{text:I,isChecked:!q})}})}}
function S(t,D){var k=PlW.get(t);k&&k.text===D.text&&k.isChecked===D.isChecked||(PlW.set(t,D),t=X.getId(t),p1(H)(Object.assign({},D,{id:t})))}
var H=p.inputCb;var M=p.doc;var X=p.mirror;var Z=p.blockClass;var n=p.blockSelector;var b=p.ignoreClass;var F=p.ignoreSelector;var f=p.maskInputOptions;var O=p.maskInputFn;var A=p.sampling;var P=p.userTriggeredOnInput;var W=(A.input==="last"?["change"]:["input","change"]).map(function(t){return w0(t,p1(J),M)}),y=M.defaultView;
if(!y)return function(){W.forEach(function(t){return t()})};
p=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,"value");A=[[y.HTMLInputElement.prototype,"value"],[y.HTMLInputElement.prototype,"checked"],[y.HTMLSelectElement.prototype,"value"],[y.HTMLTextAreaElement.prototype,"value"],[y.HTMLSelectElement.prototype,"selectedIndex"],[y.HTMLOptionElement.prototype,"selected"]];p&&p.set&&W.push.apply(W,_.dW(A.map(function(t){return jqg(t[0],t[1],{set:function(){p1(J)({target:this,isTrusted:!1})}},!1,y)})));
return p1(function(){W.forEach(function(t){return t()})})};
o09=function(p){var J=[],S,H,M,X;$7W("CSSGroupingRule")&&((S=p.parentRule)==null?void 0:(H=S.constructor)==null?void 0:H.name)==="CSSGroupingRule"||$7W("CSSMediaRule")&&p.parentRule instanceof CSSMediaRule||$7W("CSSSupportsRule")&&p.parentRule instanceof CSSSupportsRule||$7W("CSSConditionRule")&&((M=p.parentRule)==null?void 0:(X=M.constructor)==null?void 0:X.name)==="CSSConditionRule"?(p=Array.from(p.parentRule.cssRules).indexOf(p),J.unshift(p)):p.parentStyleSheet&&(p=Array.from(p.parentStyleSheet.cssRules).indexOf(p),
J.unshift(p));return J};
Sq=function(p,J,S){var H,M;if(!p)return{};p.ownerNode?H=J.getId(p.ownerNode):M=S.getId(p);return{styleId:M,id:H}};
Wb4=function(p,J){var S=p.styleSheetRuleCb;var H=p.mirror;var M=p.stylesheetManager;var X=J.win;if(!X.CSSStyleSheet||!X.CSSStyleSheet.prototype)return function(){};
var Z=X.CSSStyleSheet.prototype.insertRule;X.CSSStyleSheet.prototype.insertRule=new Hf(Z,{apply:p1(function(A,P,W){var y=_.K(W),t=y.next().value;y=y.next().value;var D=Sq(P,H,M.styleMirror),k=D.id;D=D.styleId;(k&&k!==-1||D&&D!==-1)&&S({id:k,styleId:D,adds:[{rule:t,index:y}]});return A.apply(P,W)})});
X.CSSStyleSheet.prototype.addRule=function(A,P,W){W=W===void 0?this.cssRules.length:W;return X.CSSStyleSheet.prototype.insertRule.apply(this,[A+" { "+P+" }",W])};
var n=X.CSSStyleSheet.prototype.deleteRule;X.CSSStyleSheet.prototype.deleteRule=new Hf(n,{apply:p1(function(A,P,W){var y=_.K(W).next().value,t=Sq(P,H,M.styleMirror),D=t.id;t=t.styleId;(D&&D!==-1||t&&t!==-1)&&S({id:D,styleId:t,removes:[{index:y}]});return A.apply(P,W)})});
X.CSSStyleSheet.prototype.removeRule=function(A){return X.CSSStyleSheet.prototype.deleteRule.apply(this,[A])};
if(X.CSSStyleSheet.prototype.replace){var b=X.CSSStyleSheet.prototype.replace;X.CSSStyleSheet.prototype.replace=new Hf(b,{apply:p1(function(A,P,W){var y=_.K(W).next().value,t=Sq(P,H,M.styleMirror),D=t.id;t=t.styleId;(D&&D!==-1||t&&t!==-1)&&S({id:D,styleId:t,replace:y});return A.apply(P,W)})})}if(X.CSSStyleSheet.prototype.replaceSync){var F=X.CSSStyleSheet.prototype.replaceSync;
X.CSSStyleSheet.prototype.replaceSync=new Hf(F,{apply:p1(function(A,P,W){var y=_.K(W).next().value,t=Sq(P,H,M.styleMirror),D=t.id;t=t.styleId;(D&&D!==-1||t&&t!==-1)&&S({id:D,styleId:t,replaceSync:y});return A.apply(P,W)})})}var f={};
eSX("CSSGroupingRule")?f.CSSGroupingRule=X.CSSGroupingRule:(eSX("CSSMediaRule")&&(f.CSSMediaRule=X.CSSMediaRule),eSX("CSSConditionRule")&&(f.CSSConditionRule=X.CSSConditionRule),eSX("CSSSupportsRule")&&(f.CSSSupportsRule=X.CSSSupportsRule));var O={};Object.entries(f).forEach(function(A){var P=_.K(A);A=P.next().value;P=P.next().value;O[A]={insertRule:P.prototype.insertRule,deleteRule:P.prototype.deleteRule};P.prototype.insertRule=new Hf(O[A].insertRule,{apply:p1(function(W,y,t){var D=_.K(t),k=D.next().value;
D=D.next().value;var E=Sq(y.parentStyleSheet,H,M.styleMirror),a=E.id;E=E.styleId;(a&&a!==-1||E&&E!==-1)&&S({id:a,styleId:E,adds:[{rule:k,index:[].concat(_.dW(o09(y)),[D||0])}]});return W.apply(y,t)})});
P.prototype.deleteRule=new Hf(O[A].deleteRule,{apply:p1(function(W,y,t){var D=_.K(t).next().value,k=Sq(y.parentStyleSheet,H,M.styleMirror),E=k.id;k=k.styleId;(E&&E!==-1||k&&k!==-1)&&S({id:E,styleId:k,removes:[{index:[].concat(_.dW(o09(y)),[D])}]});return W.apply(y,t)})})});
return p1(function(){X.CSSStyleSheet.prototype.insertRule=Z;X.CSSStyleSheet.prototype.deleteRule=n;b&&(X.CSSStyleSheet.prototype.replace=b);F&&(X.CSSStyleSheet.prototype.replaceSync=F);Object.entries(f).forEach(function(A){var P=_.K(A);A=P.next().value;P=P.next().value;P.prototype.insertRule=O[A].insertRule;P.prototype.deleteRule=O[A].deleteRule})})};
Cl3=function(p,J){var S=p.mirror;var H=p.stylesheetManager;var M=null;M=J.nodeName==="#document"?S.getId(J):S.getId(Td(J));var X,Z,n;p=J.nodeName==="#document"?(X=J.defaultView)==null?void 0:X.Document:(Z=J.ownerDocument)==null?void 0:(n=Z.defaultView)==null?void 0:n.ShadowRoot;var b=(p==null?0:p.prototype)?Object.getOwnPropertyDescriptor(p==null?void 0:p.prototype,"adoptedStyleSheets"):void 0;if(M===null||M===-1||!p||!b)return function(){};
Object.defineProperty(J,"adoptedStyleSheets",{configurable:b.configurable,enumerable:b.enumerable,get:function(){var F;return(F=b.get)==null?void 0:F.call(this)},
set:function(F){var f,O=(f=b.set)==null?void 0:f.call(this,F);if(M!==null&&M!==-1)try{QEi(H,F,M)}catch(A){}return O}});
return p1(function(){Object.defineProperty(J,"adoptedStyleSheets",{configurable:b.configurable,enumerable:b.enumerable,get:b.get,set:b.set})})};
yJi=function(p,J){var S=p.styleDeclarationCb;var H=p.mirror;var M=p.ignoreCSSAttributes;var X=p.stylesheetManager;var Z=J.win;var n=Z.CSSStyleDeclaration.prototype.setProperty;Z.CSSStyleDeclaration.prototype.setProperty=new Hf(n,{apply:p1(function(F,f,O){var A=_.K(O),P=A.next().value,W=A.next().value;A=A.next().value;if(M.has(P))return n.apply(f,[P,W,A]);var y,t=Sq((y=f.parentRule)==null?void 0:y.parentStyleSheet,H,X.styleMirror);y=t.id;t=t.styleId;(y&&y!==-1||t&&t!==-1)&&S({id:y,styleId:t,set:{property:P,
value:W,priority:A},index:o09(f.parentRule)});return F.apply(f,O)})});
var b=Z.CSSStyleDeclaration.prototype.removeProperty;Z.CSSStyleDeclaration.prototype.removeProperty=new Hf(b,{apply:p1(function(F,f,O){var A=_.K(O).next().value;if(M.has(A))return b.apply(f,[A]);var P,W=Sq((P=f.parentRule)==null?void 0:P.parentStyleSheet,H,X.styleMirror);P=W.id;W=W.styleId;(P&&P!==-1||W&&W!==-1)&&S({id:P,styleId:W,remove:{property:A},index:o09(f.parentRule)});return F.apply(f,O)})});
return p1(function(){Z.CSSStyleDeclaration.prototype.setProperty=n;Z.CSSStyleDeclaration.prototype.removeProperty=b})};
B$w=function(p){var J=p.mediaInteractionCb;var S=p.blockClass;var H=p.blockSelector;var M=p.mirror;var X=p.sampling;p=p.doc;var Z=p1(function(b){return xd(p1(function(F){if((F=IC(F))&&!ch(F,S,H,!0)){var f=F.currentTime,O=F.volume,A=F.muted,P=F.playbackRate,W=F.loop;J({type:b,id:M.getId(F),currentTime:f,volume:O,muted:A,playbackRate:P,loop:W})}}),X.media||500)}),n=[w0("play",Z(0),p),
w0("pause",Z(1),p),w0("seeked",Z(2),p),w0("volumechange",Z(3),p),w0("ratechange",Z(4),p)];return p1(function(){n.forEach(function(b){return b()})})};
U7i=function(p){var J=p.fontCb;p=p.doc;var S=p.defaultView;if(!S)return function(){};
var H=[],M=new WeakMap,X=S.FontFace;S.FontFace=function(Z,n,b){var F=new X(Z,n,b);M.set(F,{family:Z,buffer:typeof n!=="string",descriptors:b,fontSource:typeof n==="string"?n:JSON.stringify(Array.from(new Uint8Array(n)))});return F};
p=NX(p.fonts,"add",function(Z){return function(n){setTimeout(p1(function(){var b=M.get(n);b&&(J(b),M.delete(n))}),0);
return Z.apply(this,[n])}});
H.push(function(){S.FontFace=X});
H.push(p);return p1(function(){H.forEach(function(Z){return Z()})})};
sEg=function(p){var J=p.doc,S=p.mirror,H=p.blockClass,M=p.blockSelector,X=p.selectionCb,Z=!0;p=p1(function(){var n=J.getSelection();if(n&&!(Z&&(n==null?0:n.isCollapsed))){Z=n.isCollapsed||!1;for(var b=[],F=n.rangeCount||0,f=0;f<F;f++){var O=n.getRangeAt(f),A=O.startContainer,P=O.startOffset,W=O.endContainer;O=O.endOffset;ch(A,H,M,!0)||ch(W,H,M,!0)||b.push({start:S.getId(A),startOffset:P,end:S.getId(W),endOffset:O})}X({ranges:b})}});
p();return w0("selectionchange",p)};
g0X=function(p){var J=p.doc;var S=p.customElementCb;return(p=J.defaultView)&&p.customElements?NX(p.customElements,"define",function(H){return function(M,X,Z){try{S({define:{name:M}})}catch(n){console.warn("Custom element callback failed for "+M)}return H.apply(this,[M,X,Z])}}):function(){}};
tbg=function(p,J){var S=p.mutationCb,H=p.mousemoveCb,M=p.mouseInteractionCb,X=p.scrollCb,Z=p.viewportResizeCb,n=p.inputCb,b=p.mediaInteractionCb,F=p.styleSheetRuleCb,f=p.styleDeclarationCb,O=p.canvasMutationCb,A=p.fontCb,P=p.selectionCb,W=p.customElementCb;p.mutationCb=function(){var y=_.Yp.apply(0,arguments);J.mutation&&J.mutation.apply(J,_.dW(y));S.apply(null,_.dW(y))};
p.mousemoveCb=function(){var y=_.Yp.apply(0,arguments);J.mousemove&&J.mousemove.apply(J,_.dW(y));H.apply(null,_.dW(y))};
p.mouseInteractionCb=function(){var y=_.Yp.apply(0,arguments);J.mouseInteraction&&J.mouseInteraction.apply(J,_.dW(y));M.apply(null,_.dW(y))};
p.scrollCb=function(){var y=_.Yp.apply(0,arguments);J.scroll&&J.scroll.apply(J,_.dW(y));X.apply(null,_.dW(y))};
p.viewportResizeCb=function(){var y=_.Yp.apply(0,arguments);J.viewportResize&&J.viewportResize.apply(J,_.dW(y));Z.apply(null,_.dW(y))};
p.inputCb=function(){var y=_.Yp.apply(0,arguments);J.input&&J.input.apply(J,_.dW(y));n.apply(null,_.dW(y))};
p.mediaInteractionCb=function(){var y=_.Yp.apply(0,arguments);J.mediaInteaction&&J.mediaInteaction.apply(J,_.dW(y));b.apply(null,_.dW(y))};
p.styleSheetRuleCb=function(){var y=_.Yp.apply(0,arguments);J.styleSheetRule&&J.styleSheetRule.apply(J,_.dW(y));F.apply(null,_.dW(y))};
p.styleDeclarationCb=function(){var y=_.Yp.apply(0,arguments);J.styleDeclaration&&J.styleDeclaration.apply(J,_.dW(y));f.apply(null,_.dW(y))};
p.canvasMutationCb=function(){var y=_.Yp.apply(0,arguments);J.canvasMutation&&J.canvasMutation.apply(J,_.dW(y));O.apply(null,_.dW(y))};
p.fontCb=function(){var y=_.Yp.apply(0,arguments);J.font&&J.font.apply(J,_.dW(y));A.apply(null,_.dW(y))};
p.selectionCb=function(){var y=_.Yp.apply(0,arguments);J.selection&&J.selection.apply(J,_.dW(y));P.apply(null,_.dW(y))};
p.customElementCb=function(){var y=_.Yp.apply(0,arguments);J.customElement&&J.customElement.apply(J,_.dW(y));W.apply(null,_.dW(y))}};
hS3=function(p,J){J=J===void 0?{}:J;var S=p.doc.defaultView;if(!S)return function(){};
tbg(p,J);var H;p.recordDOM&&(H=bNt(p,p.doc));var M=FbW(p),X=v03(p),Z=fIL(p),n=ONt(p,{win:S}),b=zSs(p),F=B$w(p),f=function(){},O=function(){},A=function(){},P=function(){};
p.recordDOM&&(f=Wb4(p,{win:S}),O=Cl3(p,p.doc),A=yJi(p,{win:S}),p.collectFonts&&(P=U7i(p)));var W=sEg(p),y=g0X(p),t=[];p=_.K(p.plugins);for(J=p.next();!J.done;J=p.next())J=J.value,t.push(J.observer(J.callback,S,J.options));return p1(function(){Lz.forEach(function(k){return k.reset()});
var D;(D=H)==null||D.disconnect();M();X();Z();n();b();F();f();O();A();P();W();y();t.forEach(function(k){return k()})})};
$7W=function(p){return typeof window[p]!=="undefined"};
eSX=function(p){return!!(typeof window[p]!=="undefined"&&window[p].prototype&&"insertRule"in window[p].prototype&&"deleteRule"in window[p].prototype)};
D7W=function(p){p=new Uint8Array(p);for(var J="",S=0;S<p.byteLength;S++)J+=String.fromCharCode(p[S]);return btoa(J)};
kq4=function(p,J,S){if(p instanceof Array)return p.map(function(M){return kq4(M,J,S)});
if(p!==null){if(p instanceof Float32Array||p instanceof Float64Array||p instanceof Int32Array||p instanceof Uint32Array||p instanceof Uint8Array||p instanceof Uint16Array||p instanceof Int16Array||p instanceof Int8Array||p instanceof Uint8ClampedArray)return{rr_type:p.constructor.name,args:[Object.values(p)]};if(p instanceof ArrayBuffer){var H=p.constructor.name;p=D7W(p);return{rr_type:H,base64:p}}if(p instanceof DataView)return{rr_type:p.constructor.name,args:[kq4(p.buffer,J,S),p.byteOffset,p.byteLength]};
if(p instanceof HTMLImageElement)return{rr_type:p.constructor.name,src:p.src};if(p instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:p.toDataURL()};if(p instanceof ImageData)return{rr_type:p.constructor.name,args:[kq4(p.data,J,S),p.width,p.height]};if(N$i(p,J)||typeof p==="object")return H=p.constructor.name,p=T$W(p,J,S),{rr_type:H,index:p}}return p};
uf4=function(p,J,S,H){for(var M=[],X=_.K(Object.getOwnPropertyNames(J.CanvasRenderingContext2D.prototype)),Z=X.next(),n={};!Z.done;n={prop$jscomp$58:void 0},Z=X.next()){n.prop$jscomp$58=Z.value;try{if(typeof J.CanvasRenderingContext2D.prototype[n.prop$jscomp$58]==="function"){var b=NX(J.CanvasRenderingContext2D.prototype,n.prop$jscomp$58,function(F){return function(f){return function(){var O=_.Yp.apply(0,arguments),A=this;ch(this.canvas,S,H,!0)||setTimeout(function(){var P=d7w(O,J,A);p(A.canvas,{type:M9["2D"],
property:F.prop$jscomp$58,args:P})},0);
return f.apply(this,O)}}}(n));
M.push(b)}}catch(F){Z=jqg(J.CanvasRenderingContext2D.prototype,n.prop$jscomp$58,{set:function(f){return function(O){p(this.canvas,{type:M9["2D"],property:f.prop$jscomp$58,args:[O],setter:!0})}}(n)}),M.push(Z)}}return function(){M.forEach(function(F){return F()})}};
lIW=function(p,J,S,H){var M=[];try{var X=NX(p.HTMLCanvasElement.prototype,"getContext",function(Z){return function(n){var b=_.Yp.apply(1,arguments);if(!ch(this,J,S,!0)){var F=n==="experimental-webgl"?"webgl":n;"__context"in this||(this.__context=F);H&&["webgl","webgl2"].includes(F)&&(b[0]&&typeof b[0]==="object"?(F=b[0],F.preserveDrawingBuffer||(F.preserveDrawingBuffer=!0)):b.splice(0,1,{preserveDrawingBuffer:!0}))}return Z.apply(this,[n].concat(_.dW(b)))}});
M.push(X)}catch(Z){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){M.forEach(function(Z){return Z()})}};
VbX=function(p,J,S,H,M,X){for(var Z=[],n=_.K(Object.getOwnPropertyNames(p)),b=n.next(),F={};!b.done;F={prop$jscomp$59:void 0},b=n.next())if(F.prop$jscomp$59=b.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(F.prop$jscomp$59))try{if(typeof p[F.prop$jscomp$59]==="function"){var f=NX(p,F.prop$jscomp$59,function(O){return function(A){return function(){var P=_.Yp.apply(0,arguments),W=A.apply(this,P);T$W(W,X,this);"tagName"in this.canvas&&!ch(this.canvas,H,M,!0)&&(P=
d7w(P,X,this),S(this.canvas,{type:J,property:O.prop$jscomp$59,args:P}));return W}}}(F));
Z.push(f)}}catch(O){b=jqg(p,F.prop$jscomp$59,{set:function(A){return function(P){S(this.canvas,{type:J,property:A.prop$jscomp$59,args:[P],setter:!0})}}(F)}),Z.push(b)}return Z};
qst=function(p,J,S,H){var M=[];M.push.apply(M,_.dW(VbX(J.WebGLRenderingContext.prototype,1,p,S,H,J)));typeof J.WebGL2RenderingContext!=="undefined"&&M.push.apply(M,_.dW(VbX(J.WebGL2RenderingContext.prototype,2,p,S,H,J)));return function(){M.forEach(function(X){return X()})}};
M2i=function(p){var J=p=p===void 0?{}:p,S=J.emit,H=J.checkoutEveryNms,M=J.checkoutEveryNth,X=J.blockClass===void 0?"rr-block":J.blockClass,Z=J.blockSelector===void 0?null:J.blockSelector,n=J.ignoreClass===void 0?"rr-ignore":J.ignoreClass,b=J.ignoreSelector===void 0?null:J.ignoreSelector,F=J.maskTextClass===void 0?"rr-mask":J.maskTextClass,f=J.maskTextSelector===void 0?null:J.maskTextSelector,O=J.inlineStylesheet===void 0?!0:J.inlineStylesheet,A=J.maskAllInputs,P=J.maskInputOptions,W=J.slimDOMOptions,
y=J.maskInputFn,t=J.maskTextFn,D=J.hooks,k=J.packFn,E=J.sampling===void 0?{}:J.sampling,a=J.dataURLOptions===void 0?{}:J.dataURLOptions,q=J.mousemoveWait,w=J.recordDOM===void 0?!0:J.recordDOM,I=J.recordCanvas===void 0?!1:J.recordCanvas,Z3=J.recordCrossOriginIframes===void 0?!1:J.recordCrossOriginIframes,vg=J.recordAfter===void 0?p.recordAfter==="DOMContentLoaded"?p.recordAfter:"load":J.recordAfter,yX=J.userTriggeredOnInput===void 0?!1:J.userTriggeredOnInput,Pg=J.collectFonts===void 0?!1:J.collectFonts,
ov=J.inlineImages===void 0?!1:J.inlineImages,NW=J.plugins,TW=J.keepIframeSrcFn===void 0?function(){return!1}:J.keepIframeSrcFn,Ys=J.ignoreCSSAttributes===void 0?new Set([]):J.ignoreCSSAttributes;
X_=J.errorHandler;var Go=Z3?window.parent===window:!0,$U=!1;if(!Go)try{window.parent.document&&($U=!1)}catch(vE){$U=!0}if(Go&&!S)throw Error("$e");if(!Go&&!$U)return function(){};
q!==void 0&&E.mousemove===void 0&&(E.mousemove=q);ij.reset();var LL=A===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:P!==void 0?P:{password:!0},fd=W===!0||W==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:W==="all",headMetaDescKeywords:W==="all",headTitleMutations:W==="all"}:
W?W:{};JJ3();var Qv,t8=0,Wp=function(vE){for(var XP=_.K(NW||[]),wk=XP.next();!wk.done;wk=XP.next())wk=wk.value,wk.eventProcessor&&(vE=wk.eventProcessor(vE));k&&!$U&&(vE=k(vE));return vE};
RV=function(vE,XP){vE.timestamp=m7v();var wk;((wk=Lz[0])==null?0:wk.isFrozen())&&vE.type!==2&&(vE.type!==3||vE.data.source!==0)&&Lz.forEach(function(SI){return SI.unfreeze()});
Go?S==null||S(Wp(vE),XP):$U&&(XP={type:"rrweb",event:Wp(vE),origin:window.location.origin,isCheckout:XP},window.parent.postMessage(XP,"*"));vE.type===2?(Qv=vE,t8=0):vE.type!==3||vE.data.source===0&&vE.data.isAttachIframe||(t8++,vE=H&&vE.timestamp-Qv.timestamp>H,(M&&t8>=M||vE)&&aIg(!0))};
var ON=function(vE){RV({type:3,data:Object.assign({},{source:0},vE)})},KL=function(vE){return RV({type:3,
data:Object.assign({},{source:3},vE)})},HE=function(vE){return RV({type:3,
data:Object.assign({},{source:9},vE)})},o8=new E0X({mutationCb:ON,
adoptedStyleSheetCb:function(vE){return RV({type:3,data:Object.assign({},{source:15},vE)})}}),xU=new Ys4({mirror:ij,
mutationCb:ON,stylesheetManager:o8,recordCrossOriginIframes:Z3,wrappedEmit:RV});p=_.K(NW||[]);for(J=p.next();!J.done;J=p.next())J=J.value,J.getMirror&&J.getMirror({nodeMirror:ij,crossOriginIframeMirror:xU.crossOriginIframeMirror,crossOriginIframeStyleMirror:xU.crossOriginIframeStyleMirror});var eL=new rJW;jEL=new wd3({recordCanvas:I,mutationCb:HE,win:window,blockClass:X,blockSelector:Z,mirror:ij,sampling:E.canvas,dataURLOptions:a});var Ld=new x7L({mutationCb:ON,scrollCb:KL,bypassOptions:{blockClass:X,
blockSelector:Z,maskTextClass:F,maskTextSelector:f,inlineStylesheet:O,maskInputOptions:LL,dataURLOptions:a,maskTextFn:t,maskInputFn:y,recordCanvas:I,inlineImages:ov,sampling:E,slimDOMOptions:fd,iframeManager:xU,stylesheetManager:o8,canvasManager:jEL,keepIframeSrcFn:TW,processedNodeManager:eL},mirror:ij});aIg=function(vE){vE=vE===void 0?!1:vE;if(w){RV({type:4,data:{href:window.location.href,width:ceW(),height:xvt()}},vE);o8.reset();Ld.init();Lz.forEach(function(wk){return wk.lock()});
var XP=rei({mirror:ij,blockClass:X,blockSelector:Z,maskTextClass:F,maskTextSelector:f,inlineStylesheet:O,maskAllInputs:LL,maskTextFn:t,maskInputFn:y,slimDOM:fd,dataURLOptions:a,recordCanvas:I,inlineImages:ov,onSerialize:function(wk){wk.nodeName==="IFRAME"&&ij.nodeMetaMap.get(wk)&&cJg(xU,wk);Ssg(wk,ij)&&IIW(o8,wk);wk&&d0(wk)&&Lbi(Ld,d0(wk),document)},
onIframeLoad:function(wk,SI){plW(xU,wk,SI);wk.contentWindow&&wk.contentDocument&&JGw(Ld,wk.contentWindow.Element,wk.contentDocument)},
onStylesheetLoad:function(wk,SI){SEi(o8,wk,SI)},
keepIframeSrcFn:TW});XP?(RV({type:2,data:{node:XP,initialOffset:wzk(window)}},vE),Lz.forEach(function(wk){return wk.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&QEi(o8,document.adoptedStyleSheets,ij.getId(document))):console.warn("Failed to snapshot the document")}};
try{var QV=[],YU=function(vE){var XP;return p1(hS3)({mutationCb:ON,mousemoveCb:function(wk,SI){return RV({type:3,data:{source:SI,positions:wk}})},
mouseInteractionCb:function(wk){return RV({type:3,data:Object.assign({},{source:2},wk)})},
scrollCb:KL,viewportResizeCb:function(wk){return RV({type:3,data:Object.assign({},{source:4},wk)})},
inputCb:function(wk){return RV({type:3,data:Object.assign({},{source:5},wk)})},
mediaInteractionCb:function(wk){return RV({type:3,data:Object.assign({},{source:7},wk)})},
styleSheetRuleCb:function(wk){return RV({type:3,data:Object.assign({},{source:8},wk)})},
styleDeclarationCb:function(wk){return RV({type:3,data:Object.assign({},{source:13},wk)})},
canvasMutationCb:HE,fontCb:function(wk){return RV({type:3,data:Object.assign({},{source:10},wk)})},
selectionCb:function(wk){RV({type:3,data:Object.assign({},{source:14},wk)})},
customElementCb:function(wk){RV({type:3,data:Object.assign({},{source:16},wk)})},
blockClass:X,ignoreClass:n,ignoreSelector:b,maskTextClass:F,maskTextSelector:f,maskInputOptions:LL,inlineStylesheet:O,sampling:E,recordDOM:w,recordCanvas:I,inlineImages:ov,userTriggeredOnInput:yX,collectFonts:Pg,doc:vE,maskInputFn:y,maskTextFn:t,keepIframeSrcFn:TW,blockSelector:Z,slimDOMOptions:fd,dataURLOptions:a,mirror:ij,iframeManager:xU,stylesheetManager:o8,shadowDomManager:Ld,processedNodeManager:eL,canvasManager:jEL,ignoreCSSAttributes:Ys,plugins:(NW==null?void 0:(XP=NW.filter(function(wk){return wk.observer}))==
null?void 0:XP.map(function(wk){return{observer:wk.observer,
options:wk.options,callback:function(SI){return RV({type:6,data:{plugin:wk.name,payload:SI}})}}}))||[]},D)};
Hii(xU,function(vE){try{QV.push(YU(vE.contentDocument))}catch(XP){console.warn(XP)}});
var Fn=function(){aIg();QV.push(YU(document))};
document.readyState==="interactive"||document.readyState==="complete"?Fn():(QV.push(w0("DOMContentLoaded",function(){RV({type:0,data:{}});vg==="DOMContentLoaded"&&Fn()})),QV.push(w0("load",function(){RV({type:1,
data:{}});vg==="load"&&Fn()},window)));
return function(){QV.forEach(function(vE){try{vE()}catch(XP){String(XP).toLowerCase().includes("cross-origin")||console.warn(XP)}});
eL.destroy();X_=void 0}}catch(vE){console.warn(vE)}};
_.C=function(p,J){J=cG(xp(J));p.innerHTML=J};
RE9=function(p){var J=Xli;J||(J=iiw(),J=Xli=_.T6.transpose(J));J=J[p];return typeof J==="string"?J:_.K1(p)};
K6X=function(p){p=String(p).toLowerCase();var J=iiw()[p];return typeof J==="string"?J:_.Zx(p)};
Ziw=function(p){p=p.toLowerCase();p=iiw()[p];return typeof p==="string"?p:null};
iiw=function(){if(!nDX){for(var p=Object.assign({},GTi),J=_.K(bit),S=J.next();!S.done;S=J.next())S=S.value,p[S.toLowerCase()]=S;nDX=p}return nDX};
vD3=function(p,J){var S=window.customElements;return S&&S.get(p)||mPs[p]===!0?2:J.name==="HTMLUnknownElement"?1:J.name==="HTMLElement"&&F6X.test(p)?3:0};
AGX=function(p,J){switch(J){case "innerHTML":return fzv(p)===1?2:null;case "textContent":return p=fzv(p),p===1||p===6?1:null;default:var S,H;return(H=(S=Oiw[p.localName])==null?void 0:S[J])!=null?H:null}};
fzv=function(p){var J=p.localName,S=vD3(J,p.constructor);switch(S){case 0:case 1:return Pr9(J,p);case 3:case 2:return 1;default:_.rm(S,"got an unknown element classification")}};
Pr9=function(p,J){var S=Object.hasOwnProperty.call(zEW,p)?zEW[p]:null;return S!==null?S:Object.hasOwnProperty.call($Pk,p)&&J instanceof SVGElement?$Pk[p]:null};
oDW=function(p,J){return J};
W6L=function(p){return(p=p.split(eEW,2))?{url:p[0],metadata:p[1]}:null};
CrW=function(p){var J=String(p.url).replace(QuX,encodeURIComponent);if(p=p.metadata){QuX.lastIndex=0;if(QuX.test(p))return null;J+=" "+p}return J};
suv=function(p){function J(F){var f=F.localName;if(!F.getAttribute("is")&&vD3(f,F.constructor)===2){var O;return(O=b)!=null?O:b=document.createElement("polyresinuncustomized")}(F=n[f])||(F=n[f]=document.createElement(f));return F}
var S=p.reportHandler||void 0,H=p.safeTypesBridge||yGv,M=/^$/;if(p=p.allowedIdentifierPrefixes){p=_.K(p);for(var X=p.next();!X.done;X=p.next())M=new RegExp(M.source+"|^"+_.B9W(X.value))}S&&S(!1,"initResin",null);var Z=UPg(M,H,S),n={},b=null;return function(F,f,O){var A=F.nodeType;if(A!==Node.ELEMENT_NODE){if(A===Node.TEXT_NODE){f=F.parentElement;O=!f;if(f&&f.nodeType===Node.ELEMENT_NODE){A=f.localName;var P=vD3(A,f.constructor);switch(P){case 0:case 1:f=Pr9(A,f);O=f===1||f===6;break;case 3:case 2:O=
!0;break;default:_.rm(P,"got an unknown element classification")}}if(O)return function(D){return""+H(D,"STRING",D)}}return function(D){if(!D&&D!==document.all)return D;
S&&S(!0,"Failed to sanitize "+(F.parentElement&&F.parentElement.nodeName)+" #text node to value "+D,F.parentElement);return n1}}var W=F.localName;
A=J(F);var y=null;switch(O){case "attribute":if(K6X(f)in A)break;return function(D){return D};
case "property":if(f in A){y=AGX(A,f);break}if((P=Ziw(f))&&P in A)break;return function(D){return D};
default:_.rm(O,"got an unknown resin type, expected either 'property' or 'attribute'")}var t=O==="attribute"?f.toLowerCase():RE9(f);y||(y=BdL(W,t,function(D){var k=F.getAttribute(D);return!k||/[\[\{]/.test(D)?null:k}));
return function(D){var k=GX,E=null;if(!D&&D!==document.all)return D;if(y!=null){var a=Z[y],q=a.safeType;E=a.safeReplacement;q&&(k=H(D,q,GX));k===GX&&(a.filterString?(k=String(H(D,"STRING",D)),k=a.filterString(W,t,k)):a.filterRaw&&(k=a.filterRaw(W,t,D,F)),k===E&&(k=GX))}k===GX&&(k=E||n1,S&&S(!0,"Failed to sanitize attribute of <"+W+">: <"+W+" "+t+'="'+D+'">',F));return k}}};
UPg=function(p,J,S){return[,{filterRaw:function(H,M,X){return X},
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:gDw,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:gDw,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:n1,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:t2X,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(H,M,X){X=
String(X).toLowerCase();return gXt(H,M,X)?X:n1},
safeReplacement:n1,safeType:void 0},,{filterRaw:void 0,filterString:function(H,M,X){return p.test(X)?X:n1},
safeReplacement:n1,safeType:"CONSTANT"},{filterRaw:function(H,M,X,Z){if(typeof X==="string")var n=(n=X.match(hEi))?n.map(W6L).filter(Boolean):[];else if(Array.isArray(X))n=X;else return gDw;var b=n;n=[];var F=[],f={};if(Array.isArray(b))for(var O=0,A=b.length;O<A;++O){var P=b[O],W=P&&P.url;if(W){var y=J(W,"URL",f);if(y){var t=y!==f;(t?n:F).push({url:t?y:W,metadata:P.metadata})}}}else F.push(b);b=F.length?JSON.stringify(F):null;F=GX;if(n.length){if(!Array.isArray(n))throw Error();F=n.map(CrW).filter(Boolean).join(" , ")||
GX}b&&S&&S(!0,"Failed to sanitize attribute value of <"+H+">: <"+H+" "+M+'="'+X+'">: '+b,Z);return F===GX?gDw:F},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
DP3=function(p){var J=suv(p);return function(S,H,M,X){return X||X===document.all?J(S,H,M)(X):X}};
bj=function(p,J){function S(){function M(n,b,F){for(b=Reflect.getMetadata("parameters",n)||[];b.length<=F;)b.push(null);b[F]=b[F]||[];b[F].push(Z);Reflect.defineMetadata(b,n);return n}
var X=_.Yp.apply(0,arguments);if(this instanceof S)return H.apply(this,X),this;var Z=new (Function.prototype.bind.apply(S,[null].concat(_.dW(X))));M.annotation=Z;return M}
var H=kTW(J);S.prototype.toString=function(){return"@"+p};
return S.annotationCls=S};
kTW=function(p){return function(){var J=_.Yp.apply(0,arguments),S=this;p.forEach(function(H,M){M=J[M];if(Array.isArray(H))S[H[0]]=M&&M!==void 0?M:H[1];else for(var X in H)S[X]=M&&M[X]!==void 0?M[X]:H[X]})}};
N9v=function(p){return p!==void 0&&p!==null};
mz=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 J=p.indexOf("\n");return J===-1?p:p.substring(0,J)};
T9i=function(p){p.__forward_ref__=T9i;p.toString=function(){return mz(this())};
return p};
F_=function(p){return typeof p==="function"&&p.hasOwnProperty("__forward_ref__")&&p.__forward_ref__===T9i?p():p};
dPw=function(p){return p?p.map(function(J){return new (Function.prototype.bind.apply(J.type.annotationCls,[null].concat(_.dW(J.args?J.args:[]))))}):[]};
uUW=function(p){for(var J=[],S=0;S<p.length;++S){if(J.indexOf(p[S])>-1){J.push(p[S]);break}J.push(p[S])}return J};
lzW=function(p){return p.length>1?" ("+uUW(p.slice().reverse()).map(function(J){return mz(J.token)}).join(" -> ")+")":""};
qEw=function(p,J,S,H){if(H){var M=Error("cf``"+(H instanceof Error?H.message:H));M.ngOriginalError=H}else M=Error();M.addKey=V2w;M.keys=[J];M.injectors=[p];M.constructResolvingMessage=S;M.message=M.constructResolvingMessage();M.ngOriginalError=H;return M};
V2w=function(p,J){this.injectors.push(p);this.keys.push(J);this.message=this.constructResolvingMessage()};
azv=function(p,J){return qEw(p,J,function(){return"No provider for "+mz(this.keys[0].token)+"!"+lzW(this.keys)})};
EDX=function(p,J){return qEw(p,J,function(){return"Cannot instantiate cyclic dependency!"+lzW(this.keys)})};
YEX=function(p,J,S){return qEw(p,S,function(){var H=mz(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+H+"!"+lzW(this.keys)+"."},J)};
rGs=function(p,J){for(var S=[],H=0,M=J.length;H<M;H++){var X=J[H];X&&X.length!=0?S.push(X.map(mz).join(" ")):S.push("?")}return Error("gf`"+mz(p)+"`"+S.join(", ")+"`"+mz(p))};
pPX=function(p){var J=void 0,S=void 0;if(p&&p.useClass!==void 0){J=p.useClass;var H=F_(p.useClass);var M=jui.factory(H);H=wl4(H)}else p&&p.useExisting!==void 0?(M=function(X){return X},H=[xPs(vf.get(F_(p.useExisting)))]):p&&p.useFactory!==void 0?(M=p.useFactory,H=cG4(p.useFactory,p.deps)):(S=p.useValue,M=function(){return p.useValue},H=IzW);
return new L64(M,H,J,S)};
S2W=function(p){return new J39(vf.get(F_(p.provide)),[pPX(p)],p.multi)};
MY4=function(p){p=Hkv(p,[]).map(S2W);for(var J=new Map,S=0;S<p.length;S++){var H=p[S],M=J.get(H.key.id);if(M){if(H.multiProvider!==M.multiProvider)throw Error("jf`"+M+"`"+H);if(H.multiProvider)for(var X=0;X<H.resolvedFactories.length;X++)M.resolvedFactories.push(H.resolvedFactories[X]);else J.set(H.key.id,H)}else M=void 0,H.multiProvider?M=new J39(H.key,H.resolvedFactories.slice(),H.multiProvider):M=H,J.set(H.key.id,M)}return Array.from(J.values())};
Hkv=function(p,J){p.forEach(function(S){if(S instanceof XP9)J.push({provide:S,useClass:S});else if(S&&typeof S=="object"&&S.provide!==void 0)J.push(S);else if(S instanceof Array)Hkv(S,J);else throw Error("ff`"+S);});
return J};
cG4=function(p,J){if(J){var S=J.map(function(H){return[H]});
return J.map(function(H){return ikg(p,H,S)})}return wl4(p)};
wl4=function(p){var J=jui.parameters(p);if(!J)return[];if(J.some(function(S){return S==null}))throw rGs(p,J);
return J.map(function(S){return ikg(p,S,J)})};
ikg=function(p,J,S){var H=null,M=!1;if(!Array.isArray(J))return J instanceof Rh4?KZi(J.token,M,null):KZi(J,M,null);for(var X=null,Z=0;Z<J.length;++Z){var n=J[Z];if(n instanceof XP9)H=n;else if(n instanceof Rh4)H=n.token;else if(n instanceof ZkW)M=!0;else if(n instanceof nei||n instanceof GmX)X=n}H=F_(H);if(H!=null)return KZi(H,M,X);throw rGs(p,S);};
KZi=function(p,J,S){return new bk9(vf.get(F_(p)),J,S)};
mEi=function(p,J){for(var S=Array(p.providers.length),H=0;H<p.providers.length;++H){var M=H;if(H<0||H>=p.providers.length)throw Error("hf`"+H);S[M]=J(p.providers[H])}return S};
FZ3=function(p){return typeof p==="function"&&jui.parameters(p).every(function(J){return!!J})};
Okt=function(p){var J=veW;fRs.get(p)||fRs.set(p,new J);return fRs.get(p)};
_._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,J){var S,H;if(p.contains(J))return!0;p=_.f1(p).querySelectorAll("content,slot");for(S=0;S<p.length;++S){var M=_.f1(p[S]).getDistributedNodes();for(H=0;H<M.length;++H)if(M[H].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(M[H],J))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],A3X=p.pageX,PBi=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,J=OB.length;p<J;p++)document.addEventListener(OB[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,J=OB.length;p<J;p++)document.removeEventListener(OB[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 J=_.f1(p).rootTarget;p.type!=="touchmove"&&zh9!==J&&(zh9=J,$EL=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.f1(p).path));if(!$EL.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($EL,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 J=[],S=p.indexOf(oeL),H=0;H<=S;H++)if(p[H].nodeType===Node.ELEMENT_NODE){var M=p[H],X=M.style;X.overflow!=="scroll"&&X.overflow!=="auto"&&(X=window.getComputedStyle(M));X.overflow!=="scroll"&&X.overflow!=="auto"||J.push(M)}return J};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p,J,S){if(J||S)for(var H=Math.abs(S)>=Math.abs(J),M=0;M<p.length;M++){var X=p[M];if(H?S<0?X.scrollTop>0:X.scrollTop<X.scrollHeight-X.clientHeight:J<0?X.scrollLeft>0:X.scrollLeft<X.scrollWidth-X.clientWidth)return X}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){var J={deltaX:p.deltaX,deltaY:p.deltaY};"deltaX"in p||("wheelDeltaX"in p&&"wheelDeltaY"in p?(J.deltaX=-p.wheelDeltaX,J.deltaY=-p.wheelDeltaY):"wheelDelta"in p?(J.deltaX=0,J.deltaY=-p.wheelDelta):"axis"in p?(J.deltaX=p.axis===1?p.detail:0,J.deltaY=p.axis===2?p.detail:0):p.targetTouches&&(p=p.targetTouches[0],J.deltaX=A3X-p.pageX,J.deltaY=PBi-p.pageY));return J};
ehW=function(p){this.element=p;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
QL9=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");_.f1(this.waveContainer).appendChild(this.wave);WZ4(this)};
A1=function(p,J){for(var S in p)if(S.toLowerCase()===J.toLowerCase())return p[S]};
CBi=function(p,J){for(var S in p)if(S.toLowerCase()===J.toLowerCase()){delete p[S];break}};
BS3=function(p){p=_.T6.clone(p);for(var J=0;J<y3k.length;++J){var S=y3k[J],H=A1(p,S);H&&(p["X-Goog-Upload-Header-"+S]=H,CBi(p,S))}return p};
UEi=function(p){p=_.T6.clone(p);CBi(p,"X-Goog-Upload-Status")};
geX=function(p){return sLW.some(function(J){return J.test(p)})};
kmX=function(p,J){var S;var H=(S=p.formContent)==null?void 0:S.locale;S=H==null?void 0:H.split("-")[0];H=H&&tY9.includes(H)?H:S&&tY9.includes(S)?S:void 0;H=(H!=null?H:"en").replaceAll("-","_").toLowerCase();var M;p=((M=p.initializationData)==null?0:M.useNightlyRelease)?"nightly":"live";var X;return(J==null?0:(X=J.getEnableAlohaBinarySplit)==null?0:X.call(J))?_.fA(hhW,p):_.fA(DEw,p,H)};
dEs=function(p,J,S,H){if(NS4&&TSi===J)return NS4;TSi=J;var M=kmX(p,H);return NS4=J.feedbackV2GlobalObject?Promise.resolve(J.feedbackV2GlobalObject):new Promise(function(X,Z){var n=_.Q0("SCRIPT");_.RI(n,M);n.onload=function(){J.feedbackV2GlobalObject?X(J.feedbackV2GlobalObject):Z(Error("mf"))};
n.onerror=function(){Z(Error("nf`"+M.toString()))};
S.body.appendChild(n)})};
VYw=function(p,J,S,H){if(ug4&&lRv===J)return ug4;lRv=J;var M=kmX(p,H);return ug4=J.feedbackV2GlobalObject?Promise.resolve(J.feedbackV2GlobalObject):new Promise(function(X,Z){var n=_.Q0("SCRIPT");_.RI(n,M);n.onload=function(){J.feedbackV2GlobalObject?X(J.feedbackV2GlobalObject):Z(Error("mf"))};
n.onerror=function(){Z(Error("nf`"+M.toString()))};
S.body.appendChild(n)})};
q2v=function(p,J,S,H,M){M=M===void 0?!0:M;var X,Z,n,b,F;return _.G(function(f){switch(f.nextAddress){case 1:return X=Date.now(),f.yield(dEs(p,S,H,J),2);case 2:Z=f.yieldResult;if(!(M||((b=p.initializationData)==null?0:b.useNightlyRelease)||((F=p.initializationData)==null?0:F.isLocalServer))){n=Z.initializeFeedbackClient(p,X,J);f.jumpTo(3);break}return f.yield(Z.initializeFeedbackClientAsync(p,X,J),4);case 4:n=f.yieldResult;case 3:return n.initiateAloha(),f.return(n)}})};
aRi=function(p,J,S,H){var M,X,Z;return _.G(function(n){if(n.nextAddress==1)return M=Date.now(),n.yield(VYw(p,S,H.document,J),2);if(n.nextAddress!=3)return X=n.yieldResult,n.yield(X.initializeFeedbackClientAsync(p,M,J,H),3);Z=n.yieldResult;Z.initiateAloha();return n.return(Z)})};
Ee9=function(p,J,S){var H=!0;H=H===void 0?!0:H;var M,X,Z,n,b,F,f,O;return _.G(function(A){M=S||_.Hg;if((X=J)==null?0:(n=(Z=X).getEnableAlohaBinarySplit)==null?0:n.call(Z)){b=M;if(b.isFormOpened)throw new Pf;b.isFormOpened=!0;p.callbacks=p.callbacks||{};F=p.callbacks.onClose||function(){};
p.callbacks.onClose=function(P){b.isFormOpened=!1;F(P)};
try{return A.return(aRi(p,J,b,M))}catch(P){throw b.isFormOpened=!1,P;}}else{f=M;if(f.isFormOpened)throw new Pf;f.isFormOpened=!0;p.callbacks=p.callbacks||{};O=p.callbacks.onClose||function(){};
p.callbacks.onClose=function(P){f.isFormOpened=!1;O(P)};
try{return A.return(q2v(p,J,f,M.document,H))}catch(P){throw f.isFormOpened=!1,P;}}_.UK(A)})};
xEi=function(p,J){return _.G(function(S){return S.return(new Promise(function(H,M){Number.isInteger(Number(p))&&Number(p)>0?(M=Y2i(J!=null?J:"")+"/aloha_form_properties?productId="+p,r3g(M,function(X){X=X.target;var Z=null;try{var n=JSON,b=n.stringify;if(X.JSC$9951_xhr_){var F=X.JSC$9951_xhr_.responseText;F.indexOf(")]}'\n")==0&&(F=F.substring(5));var f=(0,_.zX)(F)}else f=void 0;Z=wG3(jLX,b.call(n,f))}catch(O){b=new jLX,f=wP3(),f=_.$V(f,13,!1),f=_.$V(f,14,!0),f=_.$V(f,15,!0),f=_.$V(f,20,!1),Z=_.Qd(b,
1,f)}H(Z)},"GET","",{},2E3,!0)):M(Error("of`"+p))}))})};
Y2i=function(p){return geX(p)?p:"https://www.google.com/tools/feedback"};
pyL=function(p){p=p.match(new RegExp(c3X,"gi"))||[];p=_.K(p);for(var J=p.next();!J.done;J=p.next()){J=J.value;a:{var S=_.K(IR3);for(var H=S.next();!H.done;H=S.next())if(H.value.test(J)){S=!1;break a}S=!0}if(!S)a:{S=_.K(LZW);for(H=S.next();!H.done;H=S.next())if(H.value.test(J)){S=!0;break a}S=!1}if(S)return!0}return!1};
JQ3=function(p,J){var S={},H=Object.keys(p);H=_.K(H);for(var M=H.next();!M.done;M=H.next())M=M.value,S[M]=J(M,p[M]);return S};
SMi=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"}};
Mo4=function(p){if(window.crypto&&window.crypto.getRandomValues)try{var J=Array(p),S=new Uint8Array(p);window.crypto.getRandomValues(S);for(var H=0;H<J.length;H++)J[H]=S[H];return J}catch(X){}J=Array(p);for(S=0;S<p;S++){H=Date.now();for(var M=0;M<H%23;M++)J[S]=Math.random();J[S]=Math.floor(Math.random()*256)}if(Hoi)for(S=1,H=0;H<Hoi.length;H++)J[S%p]^=J[(S-1)%p]/4^Hoi.charCodeAt(H),S++;return J};
oV=function(p){p=Mo4(p);for(var J=[],S=0;S<p.length;S++)J.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(p[S]&63));return J.join("")};
Xyt=function(){var p=_.Hg.ytLoggingDocDocumentNonce_;p||(p=oV(16),_.m$("ytLoggingDocDocumentNonce_",p));return p};
Rc9=function(p){p&&_.YQ("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:io4,clientScreenNonce:p})};
Ktw=function(p){return _.jn("client-screen-nonce-store",{})[p===void 0?0:p]};
ZoX=function(p,J){J=J===void 0?0:J;var S=_.jn("client-screen-nonce-store");S||(S={},_.rY("client-screen-nonce-store",S));S[J]=p};
n9i=function(p){p=p===void 0?0:p;return p===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+p};
GQW=function(p){return _.jn(n9i(p===void 0?0:p))};
_.Wf=function(p){return(p=GQW(p===void 0?0:p))?new eq({veType:p,youtubeData:void 0,jspbYoutubeData:void 0}):null};
boX=function(){var p=_.jn("csn-to-ctt-auth-info");p||(p={},_.rY("csn-to-ctt-auth-info",p));return p};
m3i=function(){return Object.values(_.jn("client-screen-nonce-store",{})).filter(function(p){return p!==void 0})};
_.C1=function(p){p=Ktw(p===void 0?0:p);if(!p&&!_.wY("USE_CSN_FALLBACK",!0))return null;p||(p="UNDEFINED_CSN");return p?p:null};
v9s=function(p){for(var J=_.K(Object.values(FtX)),S=J.next();!S.done;S=J.next())if(_.C1(S.value)===p)return!0;return!1};
f$k=function(p,J,S){var H=boX();(S=_.C1(S))&&delete H[S];J&&(H[p]=J)};
y1=function(p){return boX()[p]};
_.Bf=function(p,J,S,H){S=S===void 0?0:S;if(p!==Ktw(S)||J!==_.jn(n9i(S)))if(f$k(p,H,S),ZoX(p,S),_.rY(n9i(S),J),J=function(){setTimeout(function(){Rc9(p)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(J)}catch(M){J()}else J()};
Oov=function(p,J){J=J===void 0?"":J;var S=[],H;for(H in p)if(p.hasOwnProperty(H)){var M=J!==""?J+"."+H:H;typeof p[H]==="object"?S.push.apply(S,_.dW(Oov(p[H],M))):S.push([M,p[H]])}S.sort();return S};
_.sB=function(p){var J=_.Yp.apply(1,arguments);if(!UB(p)||J.some(function(H){return!UB(H)}))throw Error("pf");
J=_.K(J);for(var S=J.next();!S.done;S=J.next())AQ9(p,S.value)};
AQ9=function(p,J){for(var S in J)if(UB(J[S])){if(S in p&&!UB(p[S]))throw Error("qf");S in p||(p[S]={});AQ9(p[S],J[S])}else if(Paw(J[S])){if(S in p&&!Paw(p[S]))throw Error("rf");S in p||(p[S]=[]);zc4(p[S],J[S])}else p[S]=J[S];return p};
zc4=function(p,J){J=_.K(J);for(var S=J.next();!S.done;S=J.next())S=S.value,UB(S)?p.push(AQ9({},S)):Paw(S)?p.push(zc4([],S)):p.push(S);return p};
UB=function(p){return typeof p==="object"&&!Array.isArray(p)};
Paw=function(p){return typeof p==="object"&&Array.isArray(p)};
o9X=function(p){for(var J=_.K(Object.entries($3w)),S=J.next();!S.done;S=J.next())if(S=_.K(S.value),S.next(),S=S.next().value,S==="SLI_STATUS_"+p)return S;return"SLI_STATUS_UNKNOWN"};
_.gG=function(p,J,S,H){return ecX(p,J,function(){return new _.Wtk(p,J,S,H)})};
_.QKw=function(){return _.gG("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Cat=function(){return _.gG("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
t1=function(){return _.gG("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
yQ3=function(){return _.gG("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
BLg=function(){return _.gG("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
U3L=function(){return _.gG("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
tog=function(p){p&&(p.dataset?p.dataset[sK9()]="true":_.Zr([_.m9(g99)],p,"data-loaded","true".toString()))};
hcW=function(p){return p?p.dataset?p.dataset[sK9()]:p.getAttribute("data-loaded"):null};
sK9=function(){return D33.loaded||(D33.loaded="loaded".replace(/\-([a-z])/g,function(p,J){return J.toUpperCase()}))};
_.h1=function(p,J,S){kQi(p,J,S===void 0?null:S)};
_.TLi=function(p,J){p&&J&&(p=""+_.jt(J),(p=NLL[p])&&_.o2X(p))};
kQi=function(p,J,S){S=S===void 0?null:S;var H=_.d3X(typeof p==="string"?p:p.toString()),M=document.getElementById(H),X=M&&hcW(M),Z=M&&!X;X?J&&J():(J&&(X=_.oJ(H,J),J=""+_.jt(J),NLL[J]=X),Z||(M=uIX(p,H,function(){hcW(M)||(tog(M),_.eZL(H),_.WO(function(){_.Q4k(H)},0))},S)))};
uIX=function(p,J,S,H){H=H===void 0?null:H;var M=_.Q0("SCRIPT");M.id=J;M.onload=function(){S&&setTimeout(S,0)};
M.onreadystatechange=function(){switch(M.readyState){case "loaded":case "complete":M.onload()}};
H&&M.setAttribute("nonce",H);_.RI(M,typeof p==="string"?_.kc(p):p);p=document.getElementsByTagName("head")[0]||document.body;p.insertBefore(M,p.firstChild);return M};
_.d3X=function(p){var J=document.createElement("a");ja(J,p);return"js-"+Dx(J.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
l$t=function(p){var J=_.jn("INNERTUBE_HOST_OVERRIDE");J&&(p=String(J)+String(_.kV(p)));return p};
Voi=function(p){var J={};_.z("json_condensed_response")&&(J.prettyPrint="false");return p=YBW(p,J)};
_.N9=function(p){return bh(p)?"same-origin":"include"};
_.TX=function(p){return bh(p)?"same-origin":"cors"};
dG=function(p,J,S){S=S===void 0?{}:S;p={method:J===void 0?"POST":J,mode:_.TX(p),credentials:_.N9(p)};J={};for(var H=_.K(Object.keys(S)),M=H.next();!M.done;M=H.next())M=M.value,S[M]&&(J[M]=S[M]);Object.keys(J).length>0&&(p.headers=J);return p};
_.uj=function(p,J){J=J===void 0?{}:J;return"service:"+p+"/"+Object.keys(J).sort().map(function(S){return S+":"+J[S]}).join("/")};
qM4=function(p){var J,S,H,M;p=(J=_.e(p,_.lj))==null?void 0:(S=J.watchEndpointSupportedOnesieConfig)==null?void 0:(H=S.html5PlaybackOnesieConfig)==null?void 0:(M=H.commonConfig)==null?void 0:M.url;if(!p)return[];J=new _.V1(p);return J.JSC$10187_domain_?["https://"+J.JSC$10187_domain_+"/generate_204"]:[]};
_.YMw=function(){return a$W()||cPW()||E9W&&xa("version/")?!0:_.jn("EOM_VISITOR_DATA")?!1:!0};
rQt=function(p){var J=p.docid||p.video_id||p.videoId||p.id;if(J)return J;J=p.raw_player_response;J||(p=p.player_response)&&(J=JSON.parse(p));return J&&J.videoDetails&&J.videoDetails.videoId||null};
jK3=function(p){return p.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
q9=function(p){return!isNaN(Number(p))&&!_.Rv(p)};
_.EB=function(p,J,S,H){H=H===void 0?!0:H;var M=_.jn("VALID_SESSION_TEMPDATA_DOMAINS",[]),X=_.nQ(window.location.href);X&&M.push(X);X=_.nQ(p);if(_.dk(M,X)||!X&&_.XX(p,"/"))if(M=document.createElement("a"),ja(M,p),p=M.href)if(p=_.kV(p),p=_.aV(p))H&&!J.csn&&(J.itct||J.ved)&&(J=Object.assign({csn:_.C1()},J)),S?(S=parseInt(S,10),isFinite(S)&&S>0&&wyX(p,J,S)):wyX(p,J)};
cQX=function(p){var J=_.jn("VALID_SESSION_TEMPDATA_DOMAINS",[]),S=_.nQ(window.location.href);S&&J.push(S);S=_.nQ(p);if(!(_.dk(J,S)||!S&&_.XX(p,"/")))return null;p=_.kV(p);(p=_.aV(p))?(p=x3W(p),p=(p=_.tl.get(p,void 0)||null)?_.X9(p):{}):p=null;return p};
wyX=function(p,J,S){p=x3W(p);J=J?_.Uv(J):"";S=S||5;_.YMw()&&_.hl(p,J,S)};
x3W=function(p){for(var J=_.K(I$i),S=J.next();!S.done;S=J.next())p=_.YV(p,S.value);return"ST-"+Dx(p).toString(36)};
_.Lti=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("Af"));return p instanceof Promise?p:Promise.resolve()};
_.jq=function(p){var J;_.ZIg(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.rG()==p&&(J=document):J=p;if(J&&(p=_.ZIg(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],J))){p.call(J)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.rG=function(){var p=p===void 0?!1:p;var J=_.ZIg(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(p)for(;J&&J.shadowRoot;)J=J.shadowRoot.fullscreenElement;return J?J:null};
_.wG=function(p,J){J=J===void 0?!0:J;p.addEventListener("wheel",pNL);p.overscrollConfig={cooldown:J}};
_.xV=function(p){p.overscrollConfig=void 0;p.removeEventListener("wheel",pNL)};
pNL=function(p){var J=p.deltaY,S=p.target,H=null;if(window.Polymer&&window.Polymer.Element){if(S=p.path||p.composedPath&&p.composedPath()){S=_.K(S);for(var M=S.next();!M.done&&(M=M.value,!Ja9(M,J));M=S.next())if(M.overscrollConfig){H=M;break}}}else for(;S&&!Ja9(S,J);){if(S.overscrollConfig){H=S;break}S=S.parentElement}H&&(J=H.overscrollConfig,J.cooldown?(H=p.deltaY,S=J.lastDeltaY||0,J.lastDeltaY=H,M=J.lastStopped||0,S&&M&&S>0==H>0?Math.abs(S)>=Math.abs(H)?(H=M+1200,S=!1):(H=M+600,S=!0):(H=Date.now()+
600,S=!0),H>Date.now()&&(p.preventDefault(),S&&(J.lastStopped=Date.now()))):p.preventDefault())};
Ja9=function(p,J){return J<0&&p.scrollTop>0||J>0&&p.scrollTop<p.scrollHeight-p.clientHeight-1?(p=getComputedStyle(p).overflowY,p=="auto"||p=="scroll"):!1};
_.cf=function(p,J,S,H){H||(H={bubbles:!0,cancelable:!1,composed:!0});S!==null&&S!==void 0&&(H.detail=S);var M=new CustomEvent(J,H);_.z("untrack_fire_custom_event_killswitch")?p.dispatchEvent(M):_.$T(function(){return void p.dispatchEvent(M)});
return M};
Sdk=function(p){var J=window,S=function(H){J.removeEventListener("yt-navigate-start",S);return p.call(J,H)};
J.addEventListener("yt-navigate-start",S,void 0)};
_.IV=function(p,J,S,H){J=new H7X(J,!(H===void 0||!H),S);_.cf(p,"yt-action",J);return J.returnValue};
_.L1=function(p,J,S){return _.IV(p,J,S,!0)};
_.JP=function(p,J,S,H){J&&J.length&&J.forEach(function(M){var X=iGX(M);X&&(_.z("handle_service_request_actions")&&M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.sendPost?_.pl(S?S:p,[M]):_.L1(p,X,[M,S,H]))})};
_.pl=function(p,J){var S=[p];J&&S.push.apply(S,J);J=_.IV(p,"yt-service-request",S);return J.length>0&&(J=J[0],_.cf(p,"yt-service-request-sent",J),J&&J.ajaxPromise)?(J.ajaxPromise.then(function(H){_.cf(p,"yt-service-request-completed",H)},function(H){_.cf(p,"yt-service-request-error",{error:H,
params:S})},p),J.ajaxPromise):_.SU()};
_.Mq=function(p,J){if(_.z("handle_service_request_actions"))_.JP(J,p,J);else{p=_.K(p);for(var S=p.next();!S.done;S=p.next()){S=S.value;var H=void 0;((H=_.e(S,_.H9))==null?0:H.commands)?_.Mq(_.e(S,_.H9).commands,J):(H=void 0,((H=_.e(S,_.X6))==null?0:H.actions)?_.Mq(_.e(S,_.X6).actions,J):(H=void 0,((H=_.e(S.commandMetadata,_.i7))==null?0:H.sendPost)?_.pl(J,[S]):_.JP(J,[S],J)))}}};
_.XN9=function(p,J,S){J=J===void 0?{}:J;typeof J==="function"&&(J={callback:J});S||J._c&&J._c.jsl&&J._c.jsl.h||_.T6.extend(J,{_c:{jsl:{h:_.jn("GAPI_HINT_PARAMS")}}});(J.gapiHintOverride||_.jn("GAPI_HINT_OVERRIDE"))&&(S=_.ih(document.location.href).gapi_jsh)&&_.T6.extend(J,{_c:{jsl:{h:S}}});M3w(p,J)};
_.Kl=function(p,J,S){J=J===void 0?{}:J;p=(p=p in R5?R5[p]:S)||"";S={};for(var H in J){S={key$jscomp$844:S.key$jscomp$844};S.key$jscomp$844=H;var M=function(X){return function(){return String(J[X.key$jscomp$844])}}(S);
p=p.replace(new RegExp("\\$\\{"+S.key$jscomp$844+"\\}","gi"),M);p=p.replace(new RegExp("\\$"+S.key$jscomp$844,"gi"),M)}return p};
_.ZO=function(p,J){return i7v(p in R5?R5[p]:{},J)};
i7v=function(p,J){var S=_.jn("I18N_PLURAL_RULES");S||(S=function(H){return H==1?"one":"other"});
return(p=p["case"+J]||p[S(J)])?p.replace("#",J.toString()):J+""};
Z7t=function(p){var J=R3W(p),S=document.getElementById(J),H=S&&hcW(S);H||S&&!H||(S=KAW(p,J,function(){if(!hcW(S)){tog(S);_.eZL(J);var M=_.nl(_.Q4k,J);_.WO(M,0)}}))};
KAW=function(p,J,S){var H=document.createElement("link");H.id=J;H.onload=function(){S&&setTimeout(S,0)};
p=_.kc(p);_.n_(H,p,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(H);return H};
R3W=function(p){var J=_.Q0("A");ja(J,D4(p));return"css-"+Dx(J.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Gb9=function(p){var J=niL();p!==J&&(J=_.Gv(),!_.z("web_autonav_allow_off_by_default")&&p||_.b7(0,141,!0),_.b7(0,140,!p),J.save())};
niL=function(){var p=_.Gv();return _.z("web_autonav_allow_off_by_default")&&!p.getFlag(141)&&_.jn("AUTONAV_OFF_BY_DEFAULT")?!1:!p.getFlag(140)};
b7W=function(p,J){var S,H;p=((S=p.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(H=S.videoAuthorizationToken)==null?void 0:H.credentialTransferTokens)||[];for(S=0;S<p.length;++S)if(p[S].scope===J)return p[S].token||void 0};
mIW=function(p){for(var J=0,S=0;S<p.length;S++)J=J*31+p.charCodeAt(S),S<p.length-1&&(J%=0x800000000000);return J%1E5};
_.mY=function(p){return _.Id("ytcsi."+(p||"")+"data_")||FAi(p)};
_.vik=function(p){p=_.mY(p);p.metadata||(p.metadata={});return p.metadata};
_.fNs=function(p){p=_.mY(p);p.tick||(p.tick={});return p.tick};
_.F6=function(p){p=_.mY(p);if(p.gel){var J=p.gel;J.gelInfos||(J.gelInfos={});J.gelTicks||(J.gelTicks={})}else p.gel={gelTicks:{},gelInfos:{}};return p.gel};
_.O73=function(p){p=_.F6(p);p.gelInfos||(p.gelInfos={});return p.gelInfos};
Aas=function(p){var J=_.mY(p).nonce;J||(J=oV(16),_.mY(p).nonce=J);return J};
FAi=function(p){var J={tick:{},info:{}};_.m$("ytcsi."+(p||"")+"data_",J);return J};
Pp3=function(){var p=_.Id("ytcsi.debug");p||(p=[],_.m$("ytcsi.debug",p),_.m$("ytcsi.reference",{}));return p};
_.v9=function(p){p=p||"";var J=z3L();if(J[p])return J[p];var S=Pp3(),H={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};S.push(H);return J[p]=H};
$I4=function(p){p=p||"";var J=z3L();J[p]&&delete J[p];var S=Pp3(),H={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};S.push(H);J[p]=H};
z3L=function(){var p=_.Id("ytcsi.reference");if(p)return p;Pp3();return _.Id("ytcsi.reference")};
_.e3k=function(p){return oiw[p]||"LATENCY_ACTION_UNKNOWN"};
yaX=function(p,J,S){S=S===void 0?{}:S;var H=!1;_.wY("ytLoggingEventsDefaultDisabled",!1)&&(H=!0);H=H?null:EI;S=S===void 0?{}:S;var M=Math.round(S.timestamp||(0,_.fO)());_.Tg(J,1,M<Number.MAX_SAFE_INTEGER?M:0);M=new WAW;if(S.lact)_.Tg(M,1,isFinite(S.lact)?S.lact:-1);else if(S.timestamp)_.Tg(M,1,-1);else{var X=_.AV();_.Tg(M,1,isFinite(X)?X:-1)}if(S.sequenceGroup&&!_.z("web_gel_sequence_info_killswitch")){X=S.sequenceGroup;var Z=Drg(X),n=new QW4;_.Tg(n,2,Z);_.g2(n,1,X);_.Qd(M,3,n);S.endOfSequence&&delete Cp4[S.sequenceGroup]}_.Qd(J,
33,M);(S.sendIsolatedPayload?Vri:qat)(p,{endpoint:"log_event",payload:J,cttAuthInfo:S.cttAuthInfo,dangerousLogToVisitorSession:S.dangerousLogToVisitorSession},H)};
_.OJ=function(){return(_.z("csi_use_time_origin")||_.z("csi_use_time_origin_tvhtml5"))&&_.fl.timeOrigin?Math.floor(_.fl.timeOrigin):_.fl.timing.navigationStart};
_.BBL=function(p,J){_.AP("_start",p,J)};
_.P9=function(p,J){if(!_.z("web_csi_action_sampling_enabled")||!_.mY(J).actionDisabled){var S=_.v9(J||"");_.sB(S.info,p);p.loadType&&(S=p.loadType,_.vik(J).loadType=S);_.sB(_.O73(J),p);S=Aas(J);J=_.mY(J).cttAuthInfo;UIg().info(p,S,J)}};
sWW=function(){var p,J,S,H;return((H=_.vO().resolve(_.F9(lS))==null?void 0:(p=VH())==null?void 0:(J=p.loggingHotConfig)==null?void 0:(S=J.csiConfig)==null?void 0:S.debugTicks)!=null?H:[]).map(function(M){return Object.values(M)[0]})};
_.AP=function(p,J,S){if(!_.z("web_csi_action_sampling_enabled")||!_.mY(S).actionDisabled){var H=Aas(S),M;if(M=_.z("web_csi_debug_sample_enabled")&&H){(_.vO().resolve(_.F9(lS))==null?0:VH())&&!giL&&(giL=!0,_.AP("gcfl",(0,_.fO)(),S));var X,Z,n;M=(_.vO().resolve(_.F9(lS))==null?void 0:(X=VH())==null?void 0:(Z=X.loggingHotConfig)==null?void 0:(n=Z.csiConfig)==null?void 0:n.debugSampleWeight)||0;if(X=M!==0)b:{X=sWW();if(X.length>0)for(Z=0;Z<X.length;Z++)if(p===X[Z]){X=!0;break b}X=!1}X?(M=mIW(H)%M!==0,
_.mY(S).debugTicksExcludedLogged||(X={},X.debugTicksExcluded=M,_.P9(X,S)),_.mY(S).debugTicksExcludedLogged=!0):M=!1}if(!M){p[0]!=="_"&&t3v(p,S,J);M=_.v9(S||"");M.tick[p]=J||(0,_.fO)();if(M.callback&&M.callback[p])for(M=_.K(M.callback[p]),X=M.next();!X.done;X=M.next())X=X.value,X();M=_.F6(S);M.gelTicks&&(M.gelTicks[p]=!0);X=_.fNs(S);M=J||(0,_.fO)();_.z("log_repeated_ytcsi_ticks")?p in X||(X[p]=M):X[p]=M;X=_.mY(S).cttAuthInfo;p==="_start"?UIg().baseline(H,J,X):UIg().tick(p,H,J,X);_.h3X(S);return M}}};
t3v=function(p,J,S){if(_.fl.mark)if(p.startsWith("mark_")||(p="mark_"+p),J&&(p+=" ("+J+")"),S===void 0||_.z("web_csi_disable_alt_time_performance_mark"))_.fl.mark(p);else{S=_.z("csi_use_performance_navigation_timing")?S-_.fl.timeOrigin:S-(_.fl.timeOrigin||_.fl.timing.navigationStart);try{_.fl.mark(p,{startTime:S})}catch(H){}}};
DI3=function(){var p,J=(p=_.fl.getEntriesByType)==null?void 0:p.call(_.fl,"mark");J&&J.forEach(function(S){if(S.name.startsWith("mark_")){var H;(H=_.fl.clearMarks)==null||H.call(_.fl,S.name)}})};
_.kbL=function(){switch(K5t()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.NBX=function(p){var J={},S=function(X,Z,n){Z=Z.match("_rid")?Z.split("_rid")[0]:Z;typeof n==="number"&&(n=JSON.stringify(n));X.requestIds?X.requestIds.push({endpoint:Z,id:n}):X.requestIds=[{endpoint:Z,id:n}]};
p=_.K(Object.entries(p));for(var H=p.next();!H.done;H=p.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;switch(H){case "GetBrowse_rid":S(J,H,M);break;case "GetGuide_rid":S(J,H,M);break;case "GetHome_rid":S(J,H,M);break;case "GetPlayer_rid":S(J,H,M);break;case "GetSearch_rid":S(J,H,M);break;case "GetSettings_rid":S(J,H,M);break;case "GetTrending_rid":S(J,H,M);break;case "GetWatchNext_rid":S(J,H,M);break;case "yt_red":J.isRedSubscriber=!!M;break;case "yt_ad":J.isMonetized=!!M}}return J};
_.TBw=function(p){var J=_.zv("aft",p);if(J)return J;J=_.jn((p||"")+"TIMING_AFT_KEYS",["ol"]);for(var S=J.length,H=0;H<S;H++){var M=_.zv(J[H],p);if(M)return M}return NaN};
_.dIw=function(p,J){_.m$("ytglobal.timing"+(J||"")+"ready_",p)};
_.zv=function(p,J){if(p=_.fNs(J)[p])return typeof p==="number"?p:p[p.length-1]};
_.h3X=function(p){var J=_.zv("_start",p),S=_.TBw(p),H=!u8W;J&&S&&H&&(kew(lNw,new V3X(Math.round(S-J),p)),u8W=!0)};
aNg=function(p){FAi(p);qdv();DI3();p||(_.jn("TIMING_ACTION")&&_.rY("PREVIOUS_ACTION",_.jn("TIMING_ACTION")),_.rY("TIMING_ACTION",""))};
_.Eig=function(p){p=p===void 0?{}:p;_.c5(function(){$O();$I4();aNg();_.dIw(!1);p.cttAuthInfo&&(_.mY().cttAuthInfo=p.cttAuthInfo);_.rY("TIMING_AFT_KEYS",[]);p.isHot?_.o5({loadType:"hot"}):_.o5({loadType:"warm"});_.rY("TIMING_ACTION","");delete _.jn("TIMING_INFO",{}).yt_lt;_.c5(_.BBL)(p.startTime,void 0)})()};
_.W9=function(p,J,S,H){J=J===void 0?{}:J;_.c5(function(){var M=S?S:p;eU(M);var X=J.sampleRate;if(!_.z("web_csi_action_sampling_enabled")||X===void 0||X<=1)X=!1;else{var Z=Aas(M);X=mIW(Z)%X!==0}X&&(_.mY(M).actionDisabled=!0);_.v9(M||"").info.actionType=p;J.cttAuthInfo&&(_.mY(M).cttAuthInfo=J.cttAuthInfo);_.rY(M+"TIMING_ACTION",p);_.c5(_.BBL)(J.startTime,M);X={actionType:H||_.e3k(p)};J.logPreviousAction&&(X.previousAction=_.e3k(_.jn("TIMING_ACTION")));(Z=_.C1())&&Z!=="UNDEFINED_CSN"&&(X.clientScreenNonce=
Z);_.o5(X,M);_.dIw(!0,M)})()};
eU=function(p){_.c5(function(){$O(p);$I4(p);aNg(p)})()};
Ydi=function(){_.c5(function(){var p=[],J;for(J in _.Id("ytcsi.".slice(0,-1)))J.endsWith("data_")&&p.push(J.slice(0,-5));p=_.K(p);for(J=p.next();!J.done;J=p.next())eU(J.value);$O()})()};
_.jWi=function(p){return _.c5(function(){return _.rat("_start",p)})()};
_.o5=function(p,J,S){_.c5(_.P9)(p,J,S===void 0?!1:S)};
_.Qf=function(p,J,S){return _.c5(_.AP)(p,J,S)};
_.rat=function(p,J){return _.c5(function(){var S=_.fNs(J);return p in S})()};
xIg=function(p){if(!_.z("universal_csi_network_ticks"))return"";p=_.yn(p)||"";for(var J=Object.keys(wNs),S=0;S<J.length;S++){var H=J[S];if(p.includes(H))return H}return""};
INi=function(p){if(!_.z("universal_csi_network_ticks"))return function(){};
var J=wNs[p];return J?(_.Cl(J),function(){var S=_.z("universal_csi_network_ticks")?(S=caL[p])?_.Cl(S):!1:!1;return S}):function(){}};
_.Cl=function(p,J,S){return _.c5(function(){if(_.rat(p,S))return!1;_.Qf(p,J,S);return!0})()};
_.yf=function(p,J,S){_.c5(function(){if(!_.jWi(S)||_.rat(p,S))return!1;_.Qf(p,J,S);return!0})()};
_.B9=function(p){return _.c5(_.zv)(p,void 0)};
$O=function(p){_.jWi(p)&&_.Qf("aa",void 0,p)};
_.H5w=function(p,J,S,H,M,X,Z,n,b,F){var f=LAg();X=new eq({veType:J,youtubeData:X,jspbYoutubeData:n});F=gI({automatedLogEventSource:F},f);M&&(F.cttAuthInfo=M);M={csn:f,pageVe:X.getAsJson()};_.z("expectation_logging")&&b&&b.screenCreatedLoggingExpectations&&(M.screenCreatedLoggingExpectations=b.screenCreatedLoggingExpectations);S&&S.visualElement?(M.implicitGesture={parentCsn:S.clientScreenNonce,gesturedVe:S.visualElement.getAsJson()},Z&&(M.implicitGesture.gestureType=Z)):S&&_.xQ(new _.TG("newScreen() parent element does not have a VE - rootVe",
J));H&&(M.cloneCsn=H);p?aJ("screenCreated",M,p,F):_.YQ("screenCreated",M,F);kew(qri,new pmX(f));tP.clear();J_s.clear();Suw.clear();return f};
hP=function(p,J,S,H,M,X){X=X===void 0?{}:X;M7L(p,J,S,[H],M===void 0?!1:M,X)};
M7L=function(p,J,S,H,M,X){M=M===void 0?!1:M;X=X===void 0?{}:X;Object.assign(X,gI({cttAuthInfo:y1(J)||void 0},J));for(var Z=_.K(H),n=Z.next();!n.done;n=Z.next()){n=n.value;var b=n.getAsJson();(_.T6.isEmpty(b)||!b.trackingParams&&!b.veType)&&_.xQ(Error("Bf"));if(_.z("no_client_ve_attach_unless_shown")){var F=XmL(n,J);if(b.veType&&!J_s.has(F)&&!Suw.has(F)&&!M){if(!_.z("il_attach_cache_limit")||tP.size<1E3){tP.set(F,[p,J,S,n]);return}_.z("il_attach_cache_limit")&&tP.size>1E3&&_.xQ(new _.TG("IL Attach cache exceeded limit"))}n=
XmL(S,J);tP.has(n)?i5X(S,J):Suw.set(n,!0)}}H=H.filter(function(f){f.csn!==J?(f.csn=J,f=!0):f=!1;return f});
S={csn:J,parentVe:S.getAsJson(),childVes:_.d2(H,function(f){return f.getAsJson()})};
J==="UNDEFINED_CSN"?DO("visualElementAttached",X,S):p?aJ("visualElementAttached",S,p,X):_.YQ("visualElementAttached",S,X)};
KOg=function(p,J,S,H,M,X,Z){R9L(p,J,S,M,Z)};
R9L=function(p,J,S,H,M){Z5v(S,J);M=gI({cttAuthInfo:y1(J)||void 0,automatedLogEventSource:M},J);S={csn:J,ve:S.getAsJson(),eventType:1};H&&(S.clientData=H);J==="UNDEFINED_CSN"?DO("visualElementShown",M,S):p?aJ("visualElementShown",S,p,M):_.YQ("visualElementShown",S,M)};
nEi=function(p,J,S,H){Z5v(S,J);var M=gI({cttAuthInfo:y1(J)||void 0,automatedLogEventSource:void 0},J);S={csn:J,ve:S.getAsJson(),eventType:4};H&&(S.clientData=H);J==="UNDEFINED_CSN"?DO("visualElementShown",M,S):p?aJ("visualElementShown",S,p,M):_.YQ("visualElementShown",S,M)};
GZw=function(p,J,S,H,M,X){var Z=(H=H===void 0?!1:H)?16:8;H=gI({cttAuthInfo:y1(J)||void 0,endOfSequence:H,automatedLogEventSource:X},J);S={csn:J,ve:S.getAsJson(),eventType:Z};M&&(S.clientData=M);J==="UNDEFINED_CSN"?DO("visualElementHidden",H,S):p?aJ("visualElementHidden",S,p,H):_.YQ("visualElementHidden",S,H)};
mlW=function(p,J,S,H,M,X){b5L(p,J,S,void 0,H,M,X)};
b5L=function(p,J,S,H,M,X,Z){Z5v(S,J);H=H||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";X=gI({cttAuthInfo:y1(J)||void 0,automatedLogEventSource:Z},J);S={csn:J,ve:S.getAsJson(),gestureType:H};M&&(S.clientData=M);J==="UNDEFINED_CSN"?DO("visualElementGestured",X,S):p?aJ("visualElementGestured",S,p,X):_.YQ("visualElementGestured",S,X)};
FOL=function(p,J,S,H){var M=gI({cttAuthInfo:y1(J)||void 0},J);S={csn:J,ve:S.getAsJson(),clientData:H};J==="UNDEFINED_CSN"?DO("visualElementStateChanged",M,S):p?aJ("visualElementStateChanged",S,p,M):_.YQ("visualElementStateChanged",S,M)};
vEX=function(){var p=Mo4(16);for(var J=[],S=0;S<p.length;S++)J.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(p[S]&63));return J.join("")};
DO=function(p,J,S){fa9.push({payloadName:p,payload:S,jspbPayload:void 0,options:J});O5L||(O5L=EtX())};
VSX=function(p){if(fa9){for(var J=_.K(fa9),S=J.next();!S.done;S=J.next())S=S.value,S.payload&&(S.payload.csn=p.csn,_.YQ(S.payloadName,S.payload,S.options));fa9.length=0}O5L=0};
XmL=function(p,J){return""+p.getAsJson().veType+p.getAsJson().veCounter+J};
Z5v=function(p,J){if(_.z("no_client_ve_attach_unless_shown")){var S=XmL(p,J);J_s.set(S,!0);i5X(p,J)}};
i5X=function(p,J){p=XmL(p,J);tP.has(p)&&(J=tP.get(p)||[],hP(J[0],J[1],J[2],J[3],!0),tP.delete(p))};
gI=function(p,J){_.z("log_sequence_info_on_gel_web")&&(p.sequenceGroup=J);return p};
_.kO=function(p,J,S){_.c5(hP)(void 0,p,J,S)};
_.Nq=function(p,J,S){_.c5(M7L)(void 0,p,J,S)};
_.Tv=function(p,J){_.c5(KOg)(void 0,p,J,void 0,void 0,void 0)};
_.dI=function(p,J,S){_.c5(function(){_.MV(J,function(H){nEi(void 0,p,H,S)})})()};
_.u7=function(p,J,S,H){_.c5(function(){_.MV(J,function(M){GZw(void 0,p,M,S,H)})})()};
_.l7=function(p,J,S){_.c5(mlW)(void 0,p,J,S,void 0)};
_.Vf=function(p,J,S,H){_.c5(b5L)(void 0,p,J,S,H,void 0)};
_.qq=function(p,J,S){_.c5(FOL)(void 0,p,J,S,void 0)};
A_k=function(p,J){a5.set(p,J)};
PqX=function(p){EJ.initialized=!0;EJ.sessionId=p.sessionId||"";EJ.enabledSpans=p.enabledSpans;p.shouldSampleFn!=null&&(EJ.shouldSampleFn=p.shouldSampleFn)};
z9X=function(p){EJ.processors.push(p)};
YO=function(p){return EJ.initialized?EJ.enabledSpans?EJ.enabledSpans[p]:!0:!1};
WO4=function(p,J,S){return YO(p)&&EJ.shouldSampleFn(p,J,$lX)?new oE9(p,J,S):e9L};
rI=function(p,J,S){if(typeof S==="function"){var H=S;S=void 0}var M=WO4(p,J,S),X;if(((X=S)==null?void 0:X.endTime)!=null)return H&&_.xQ(Error("Ff")),M;var Z;M!==e9L&&((Z=S)==null?void 0:Z.active)!==!1&&EJ.stack.push(M);if(!H)return M;if(M===e9L)return H(M);try{var n=H(M);if(n instanceof Promise)return n.then(function(b){M.end();return b},function(b){M.end("SPAN_STATUS_ERROR");
throw b;});
M.end();return n}catch(b){throw M.end("SPAN_STATUS_ERROR"),b;}};
Qli=function(){LH.subscribe("handleError",function(p){try{for(var J in _.jU)try{var S=_.jU[J];typeof _.jU[J]==="function"&&(S=S());p.params[J]=typeof _.jU[J]==="object"?JSON.stringify(S):String(S)}catch(H){_.xQ(H)}}catch(H){_.xQ(H)}})};
CqX=function(){};
y_k=function(p,J){var S=Object.keys(p);p=new _.TG("[Command Handler] "+J,{filteredCommandNames:S,originalCommand:p});_.jD(p)};
BC3=function(p,J){y_k(p,J+" was called but not set")};
Ulv=function(p){return function(){return new p}};
wI=function(p){return function(){return _.vO().resolve(p)}};
sls=function(p,J){var S=_.e(p,_.S5);if(S&&(S=J[S.signal]))return S();p=_.K(Object.keys(p));for(S=p.next();!S.done;S=p.next())if(S=S.value,J[S]&&(S=J[S]))return S()};
_.xO=function(p,J,S,H){return{browseEndpoint:{browseId:p},commandMetadata:{webCommandMetadata:{url:J,rootVe:S,webPageType:H===void 0?"WEB_PAGE_TYPE_BROWSE":H}}}};
gEi=function(p,J,S){var H=J=J===void 0?0:J;S=S===void 0?0:S;var M=S-H;return _.c9(p,"PPSV",void 0,void 0,(M>600?0:M<60||S<=0||H/S>.9)?0:J)};
_.c9=function(p,J,S,H,M){var X="/watch?v="+p;p={videoId:p};J&&(p.playlistId=J,X+="&list="+J);H&&(X+="&pp="+H);M&&(p.startTimeSeconds=M,X+="&t="+M+"s");J={watchEndpoint:p,commandMetadata:{webCommandMetadata:{url:X,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};S&&(J.clickTrackingParams=S);H&&(_.e(J,_.lj).playerParams=H);return J};
t7i=function(p){return{browseEndpoint:{browseId:"VL"+p},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+p,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
h9s=function(p){if(p){var J;if(p){var S=(J=_.e(p.commandMetadata,_.i7))==null?void 0:J.url;J=!(!S||S==="/service_ajax")}else J=!1;if(J)return p;var H;if(p=(H=_.e(p,_.H9))==null?void 0:H.commands)for(H=_.K(p),p=H.next();!p.done;p=H.next())if(p=h9s(p.value))return p}};
_.I5=function(p){return{runs:[{text:p}]}};
Dlt=function(p,J){return p&&J?{runs:[{text:p,navigationEndpoint:J}]}:void 0};
Ll=function(p){return p?_.I5(p):void 0};
_.p$=function(p){return p?{simpleText:p}:void 0};
_.Jk=function(p){var J=p.type;p=p.payload;J={type:J};p!==void 0&&(J.payload=p);return J};
kZX=function(p,J,S){for(var H=Object.assign({},p),M=_.K(Object.keys(J)),X=M.next();!X.done;X=M.next()){X=X.value;var Z=p[X],n=J[X];if(n===void 0)delete H[X];else if(Z===void 0)H[X]=n;else if(Array.isArray(n)&&Array.isArray(Z))H[X]=S?[].concat(_.dW(Z),_.dW(n)):n;else if(!Array.isArray(n)&&_.Ei(n)&&!Array.isArray(Z)&&_.Ei(Z))H[X]=kZX(Z,n,S);else if(typeof n===typeof Z)H[X]=n;else return J=new _.TG("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:X,originalValue:Z,updateValue:n}),
_.jD(J),p}return H};
dlg=function(p){if(!p.length)return"";try{if(NCL)return NCL.decode(p);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(p)}catch(Z){}for(var J=0,S=[],H=p.length;J<H;){for(var M=0;M<1024&&J<H;){var X=p[J++];if(X<128)TCk[M++]=X;else{if(X<224)X=(X&31)<<6|p[J++]&63;else if(X<240)X=(X&15)<<12|(p[J++]&63)<<6|p[J++]&63;else{if(M+1===1024){--J;break}X=(X&7)<<18|(p[J++]&63)<<12|(p[J++]&63)<<6|p[J++]&63;X-=65536;TCk[M++]=55296|X>>10;X=56320|X&1023}TCk[M++]=X}}X=String.fromCharCode.apply(String,
TCk);M<1024&&(X=X.substring(0,M));S.push(X)}return S.join("")};
lai=function(p,J){var S;if((S=uYw)==null?0:S.encodeInto)return J=uYw.encodeInto(p,J),J.read<p.length?p.length*4:J.written;for(var H=S=0;H<p.length;H++){var M=p.charCodeAt(H);M<128?J[S++]=M:(M<2048?J[S++]=M>>6|192:((M&64512)===55296&&H+1<p.length&&(p.charCodeAt(H+1)&64512)===56320?(M=65536+((M&1023)<<10)+(p.charCodeAt(++H)&1023),J[S++]=M>>18|240,J[S++]=M>>12&63|128):J[S++]=M>>12|224,J[S++]=M>>6&63|128),J[S++]=M&63|128)}return S};
V7i=function(p,J,S){if(J&&S&&S.buffer===J.exports.memory.buffer){var H=J.realloc(S.byteOffset,p);if(H)return new Uint8Array(J.exports.memory.buffer,H,p)}p=J?new Uint8Array(J.exports.memory.buffer,J.malloc(p),p):new Uint8Array(p);S&&p.set(S);return p};
_.Hq=function(p){p=new quX(new aaw([_.cg(decodeURIComponent(p))]));if(EEg(p,2)){var J=Sx(p);var S=p.pos;var H=p.arrayView;S=S===void 0?0:S;var M=J===void 0?-1:J;S=S===void 0?0:S;M=M===void 0?-1:M;if(H.totalLength&&M){M<0&&(M=H.totalLength-S);H.focus(S);if(!(S-H.arrayPos+M<=H.arrays[H.arrayIdx].length)){var X=H.arrayIdx,Z=H.arrayPos;H.focus(S+M-1);Z=new Uint8Array(H.arrayPos+H.arrays[H.arrayIdx].length-Z);for(var n=0,b=X;b<=H.arrayIdx;b++)Z.set(H.arrays[b],n),n+=H.arrays[b].length;H.arrays.splice(X,
H.arrayIdx-X+1,Z);H.arrayIdx=0;H.arrayPos=0;H.focus(S)}X=H.arrays[H.arrayIdx];H=new DataView(X.buffer,X.byteOffset+S-H.arrayPos,M)}else H=new DataView(new ArrayBuffer(0));H=new Uint8Array(H.buffer,H.byteOffset,H.byteLength);p.pos+=J;J=H}else J=void 0;J=J?dlg(J):void 0;p=EEg(p,4)?Sx(p):void 0;H=YuX[p];if(typeof H==="undefined")throw p=new _.TG("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:p}),_.jD(p),p;return{entityTypeFieldNumber:p,entityType:H,entityId:J}};
_.io=function(p,J,S){S=S===void 0?0:S;var H=new r_X;if(uYw)p=uYw.encode(p);else{var M=new Uint8Array(Math.ceil(p.length*1.2)),X=lai(p,M);M.length<X&&(M=new Uint8Array(X),X=lai(p,M));M.length>X&&(M=M.subarray(0,X));p=M}p!==void 0&&(Mw(H,18),M=p.length,Mw(H,M),XD(H,M),H.buf.set(p,H.pos),H.pos+=M);p=jlL[J];if(typeof p==="undefined")throw S=new _.TG("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:J}),_.jD(S),S;p!==void 0&&(Mw(H,32),Mw(H,p));Mw(H,40);Mw(H,1);J=new Uint8Array(H.buf.buffer,
H.buf.byteOffset,H.pos);return encodeURIComponent(_.gM(J,S))};
wmk=function(p){p=p.key||p.id;if(!p)throw Error("Hf");return p};
c_g=function(p,J){p=p===void 0?{}:p;return xl4(p,J)};
Ias=function(p,J,S,H){if(H===void 0)return H=Object.assign({},p[J]||{}),S=(delete H[S],H),H={},Object.assign({},p,(H[J]=S,H));var M={},X={};return Object.assign({},p,(X[J]=Object.assign({},p[J],(M[S]=H,M)),X))};
LOt=function(p,J,S,H,M){var X=p[J];if(X==null||!X[S])return p;H=kZX(X[S],H,M==="REPEATED_FIELDS_MERGE_OPTION_APPEND");M={};X={};return Object.assign({},p,(X[J]=Object.assign({},p[J],(M[S]=H,M)),X))};
_.RR=function(p,J,S){return p[J]?p[J][S]||null:null};
JWW=function(){if(pRL)return pRL();var p={};pRL=vB("PersistentEntityStoreDb",{objectStores:(p.EntityStore={addedAtVersion:1},p.EntityAssociationStore={addedAtVersion:2},p),shared:!1,upgrade:function(J,S){S(1)&&HL(SD(J,"EntityStore",{keyPath:"key"}),"entityType","entityType");S(2)&&(J=SD(J,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),HL(J,"byParentEntityKey","parentEntityKey"),HL(J,"byChildEntityKey","childEntityKey"))},
version:3});return pRL()};
STk=function(p){return _.R6(JWW(),p)};
K$=function(p){return window.Int32Array?new Int32Array(p):Array(p)};
Mg4=function(p){return _.R6(HqX(),p)};
XRi=function(p){return new ZY("WRONG_DATA_TYPE",{encoderVersion:p})};
iqL=function(p){return p instanceof Error?new ZY("UNKNOWN_ENCODE_ERROR",{originalMessage:p.message}):new ZY("UNKNOWN_ENCODE_ERROR")};
RDX=function(p){return p instanceof Error?new ZY("UNKNOWN_DECODE_ERROR",{originalMessage:p.message}):new ZY("UNKNOWN_DECODE_ERROR")};
KXg=function(p,J){p=p instanceof ZY?p:J(p);_.jD(p);throw p;};
Zqi=function(p){p=(new TextEncoder).encode(p).subarray(0,16);var J=new Uint8Array(16);J.set(p);return J};
GkW=function(p){var J=nwk[p];if(J)return J;_.xQ(new _.TG("Entity model not found.",{entityType:p}))};
_.n$=function(){bqt||(bqt=mZW());return bqt};
mZW=function(){var p,J,S;return _.G(function(H){if(H.nextAddress==1)return _.oI(H,2),H.yield(_.F$(),4);if(H.nextAddress!=2){p=H.yieldResult;if(!p||!_.NV()||typeof _.Hg.BroadcastChannel==="undefined")return H.return();J=new FXs;return H.return(new Gr(p,J))}S=_.BZ(H);S instanceof Error&&_.jD(S);return H.return()})};
_.bo=function(p,J){var S;return _.G(function(H){if(H.nextAddress==1){S=p.mutations;if(!S||S.length<=0)return H.return();J&&J.dispatch(_.Jk({type:"ENTITY_LOADED",payload:S}));return H.yield(vw4(S),2)}S.length=0;_.UK(H)})};
vw4=function(p){var J;return _.G(function(S){return S.nextAddress==1?S.yield(_.n$(),2):(J=S.yieldResult)?S.yield(_.mg(J,"readwrite",function(H){for(var M={},X=_.K(p),Z=X.next(),n={};!Z.done;n={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},Z=X.next())n.mutation$jscomp$8=Z.value,n.mutation$jscomp$8.entityKey&&fgg(n.mutation$jscomp$8)&&(n.mutationEntityType$jscomp$3=(0,_.T6.getAnyKey)(n.mutation$jscomp$8.payload),Z=void 0,n.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(Z=function(b){return function(){return _.Oqw(H,
b.mutation$jscomp$8.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(n)),n.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(Z=function(b){return function(){return AWX(H,b.mutation$jscomp$8.entityKey)}}(n)),n.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(Z=function(b){return function(){return Pck(H,b.mutation$jscomp$8.entityKey,b.mutation$jscomp$8.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(n)),Z&&(M[n.mutation$jscomp$8.entityKey]=
M[n.mutation$jscomp$8.entityKey]?M[n.mutation$jscomp$8.entityKey].then(Z):Z()));
return pO.all(Object.values(M))}),0):S.return()})};
fgg=function(p){var J;p=(J=p.options)==null?void 0:J.persistenceOption;return p==="ENTITY_PERSISTENCE_OPTION_PERSIST"||p==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
owX=function(p,J){var S,H;_.G(function(M){if(M.nextAddress==1)return M.yield(_.n$(),2);if(M.nextAddress!=3)return(S=M.yieldResult)?M.yield(_.mg(S,"readonly",function(X){var Z={},n=Object.keys(J).map(function(b){var F=J[b]?[].concat(_.dW(J[b])):[];return zDg(X,b,F,Z)});
return pO.all(n).then(function(){return Z})}),3):M.return();
H=M.yieldResult;Object.keys(H).length>0&&p.dispatch($Z4(H));_.UK(M)})};
zDg=function(p,J,S,H){return FD(p,J,S).then(function(M){H[J]=eDW(S,M)})};
eDW=function(p,J){if(J.length!==p.length)throw Error("Kf");return J.reduce(function(S,H,M){S[p[M]]=H;return S},{})};
CcX=function(p){var J=p.filter(function(M){var X;return(M==null?void 0:(X=M.transferEntity)==null?void 0:X.transferState)==="TRANSFER_STATE_COMPLETE"}).length,S=p.filter(function(M){var X;
return(M==null?void 0:(X=M.transferEntity)==null?void 0:X.transferState)==="TRANSFER_STATE_FAILED"}).length,H=p.filter(function(M){var X;
return(M==null?void 0:(X=M.transferEntity)==null?void 0:X.transferState)&&WXX.includes(M.transferEntity.transferState)});
if(!(J||H!=null&&H.length))return 0;J=_.QQ9(H)+J;p=p.length-S;return p===0?0:Math.round(J*100/p)/100};
_.QQ9=function(p){var J=[];J=J.concat.apply(J,_.dW(p.filter(function(X){return X.streamEntity}).map(function(X){var Z=Object.assign({},X.streamEntity),n,b=(n=X.transferEntity)==null?void 0:n.transferState;
Z.streamsProgress=Z.streamsProgress||[];Z.streamsProgress=Z.streamsProgress.map(function(F){var f=Object.assign({},F);f.numBytesDownloaded=b==="TRANSFER_STATE_COMPLETE"?F.numTotalBytes:F.numBytesDownloaded;return f});
return Z}).map(function(X){return X.streamsProgress})));
var S=p=0;J=_.K(J);for(var H=J.next();!H.done;H=J.next()){var M=H.value;H=Number(M.numBytesDownloaded);M=Number(M.numTotalBytes);S+=isNaN(H)?0:H;p+=isNaN(M)?0:M}return p===0?0:Math.round(S*100/p)/100};
yW4=function(p){if(!p||!p.expirationTimestamp||!p.action)return!1;var J=(0,_.fO)()/1E3;return Number(p.expirationTimestamp)>=J};
vq=function(p){return p&&p.expirationTimestamp&&p.action?yW4(p)&&p.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.f$=function(p){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(p||"TRANSFER_STATE_UNKNOWN")};
BbX=function(p){var J=new r_X;if(p!==void 0){var S=Math.ceil(Math.log2(p.length*4+2)/7);S=S===void 0?2:S;Mw(J,10);J.submessagePosStack.push(J.pos);J.submessagePosStack.push(S);J.pos+=S;XD(J,p.length*1.2);S=lai(p,J.buf.subarray(J.pos));J.pos+S>J.buf.length&&(XD(J,S),S=lai(p,J.buf.subarray(J.pos)));J.pos+=S;p=J.submessagePosStack.pop();S=J.submessagePosStack.pop();for(var H=J.pos-S-p;p--;){var M=p?128:0;J.view.setUint8(S++,H&127|M);H>>=7}}J=new Uint8Array(J.buf.buffer,J.buf.byteOffset,J.pos);return(new TextDecoder("utf-8")).decode(J)};
_.O4=function(p){var J=0;p=_.K(p);for(var S=p.next(),H={};!S.done;H={transferState$jscomp$3:void 0},S=p.next()){var M=S.value,X=void 0;S=(X=M.streamEntity)!=null?X:{};X=void 0;H.transferState$jscomp$3=(X=M.transferEntity)==null?void 0:X.transferState;X=M=void 0;((M=S)==null?0:(X=M.streamsProgress)==null?0:X.length)&&S.streamsProgress.forEach(function(Z){return function(n){n=Number(Z.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?n.numTotalBytes:n.numBytesDownloaded);isFinite(n)&&(J+=n)}}(H))}return J};
UZv=function(p){return p.some(function(J){var S;if(!(J==null?0:(S=J.transferEntity)==null?0:S.transferState)){var H;return!(J==null?0:(H=J.policyEntity)==null?0:H.action)||J.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return WXX.includes(J.transferEntity.transferState)})};
sQ4=function(p,J){if(!J)return!1;if(_.z("of_pb_en_po_ks"))return!0;var S;p=(S=_.RR(p,"offlineVideoPolicy",_.io(J,"offlineVideoPolicy")))!=null?S:void 0;return!!p&&vq(p)};
_.tgX=function(p){var J=["TRANSFER_STATE_COMPLETE"];J=J===void 0?gwt:J;return p.filter(function(S){var H,M;return J.includes((M=(H=S.transferEntity)==null?void 0:H.transferState)!=null?M:"TRANSFER_STATE_UNKNOWN")})};
hD3=function(p,J){if(J){var S,H=(S=_.RR(p,"playbackData",_.io(J,"playbackData")))!=null?S:null,M;S=(M=_.RR(p,"transfer",_.io(J,"transfer")))!=null?M:null;var X;M=(X=_.RR(p,"offlineVideoStreams",_.io(J,"offlineVideoStreams")))!=null?X:null;var Z;p=(Z=_.RR(p,"offlineVideoPolicy",_.io(J,"offlineVideoPolicy")))!=null?Z:null;if(H||S||M||p)return{playbackDataEntity:H,transferEntity:S,streamEntity:M,policyEntity:p}}};
_.Ak=function(p){var J=p.playbackData;if(!J)return[];var S=[];J=_.K(Object.keys(J));for(var H=J.next();!H.done;H=J.next()){var M=H.value;if(!DZv(p,_.Hq(M).entityId)&&(H=hD3(p,_.Hq(M).entityId))){var X=void 0,Z=void 0;M=(Z=Number((X=_.RR(p,"playbackData",M))==null?void 0:X.streamDownloadTimestampSeconds))!=null?Z:(0,_.fO)();S.push({entity:H,streamDownloadTimestamp:M})}}return S.sort(function(n,b){var F=n.streamDownloadTimestamp,f=b.streamDownloadTimestamp;return f===F?n.entity.streamEntity&&!b.entity.streamEntity?
1:-1:f-F}).map(function(n){return n.entity})};
kki=function(p){return _.tgX(_.Ak(p))};
_.NbW=function(p){return _.Ak(p).filter(function(J){var S;if(((S=J.policyEntity)==null?0:S.action)&&J.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var H;if((H=J.transferEntity)==null?0:H.transferState){var M;return WXX.includes((M=J.transferEntity)==null?void 0:M.transferState)}return!0})};
DZv=function(p,J){var S;return((S=_.RR(p,"downloadStatusEntity",_.io(J,"downloadStatusEntity")))==null?void 0:S.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
TbW=function(p){var J;if(p==null?0:(J=p.playbackDataEntity)==null?0:J.key)return _.Hq(p.playbackDataEntity.key).entityId;var S;if(p==null?0:(S=p.transferEntity)==null?0:S.key)return _.Hq(p.transferEntity.key).entityId;var H;if(p==null?0:(H=p.streamEntity)==null?0:H.key)return _.Hq(p.streamEntity.key).entityId;var M;if(p==null?0:(M=p.policyEntity)==null?0:M.key)return _.Hq(p.policyEntity.key).entityId};
uFs=function(p){var J=new Set,S;p=(S=p.mainDownloadsListEntity)==null?void 0:S[dZ3];var H;if(!(p==null?0:(H=p.downloads)==null?0:H.length))return J;var M;p==null||(M=p.downloads)==null||M.forEach(function(X){(X==null?0:X.videoItem)&&J.add(X.videoItem)});
return J};
Pq=function(p,J){if(J){var S=_.RR(p,"mainVideoEntity",_.io(J,"mainVideoEntity")),H=_.RR(p,"downloadStatusEntity",_.io(J,"downloadStatusEntity")),M=_.RR(p,"ytMainChannelEntity",_.io(J,"ytMainChannelEntity")),X={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};p=hD3(p,J);H=(H==null?void 0:H.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.z("woffle_render_failed_download_state_ks")&&(H==null?void 0:H.downloadState)==="DOWNLOAD_STATE_FAILED";!p&&H&&(p=X);if(p&&S&&
M)return Object.assign({},{videoEntity:S,channelEntity:M},p)}};
VgW=function(p,J){return lgW(p,J)==="TRANSFER_STATE_COMPLETE"&&sQ4(p,J)};
qTi=function(p,J){if(!J)return!1;var S;p=(S=_.RR(p,"playbackData",_.io(J,"playbackData")))!=null?S:void 0;return!!p&&!!p.playerResponseJson};
lgW=function(p,J){if(!J)return"TRANSFER_STATE_UNKNOWN";var S=_.RR(p,"transfer",_.io(J,"transfer"));if(S){var H;return(H=S.transferState)!=null?H:"TRANSFER_STATE_UNKNOWN"}S=_.RR(p,"offlineOrchestrationActionWrapperEntity",_.io(J,"offlineOrchestrationActionWrapperEntity"));p=_.RR(p,"mainVideoEntity",_.io(J,"mainVideoEntity"));return S||p?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
ags=function(p,J){if(!J)return"TRANSFER_STATE_UNKNOWN";if(p=_.RR(p,"transfer",_.io(J,"transfer"))){var S;return(S=p.transferState)!=null?S:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
EwW=function(p,J){return J&&(p=_.RR(p,"videoPlaybackPositionEntity",_.io(J,"videoPlaybackPositionEntity")),p==null?0:p.lastPlaybackPositionSeconds)?Number(p.lastPlaybackPositionSeconds):0};
rWi=function(p,J){return YTt(p).some(function(S){var H;return(S==null?void 0:(H=S.mainPlaylistEntity)==null?void 0:H.playlistId)===J})};
wR4=function(p,J,S){var H=jQW(p,J);if(!H.length)return[];J=[];H=_.K(H);for(var M=H.next();!M.done;M=H.next()){M=M.value;var X=Pq(p,M);S&&lgW(p,M)!=="TRANSFER_STATE_COMPLETE"||X&&J.push(X)}return J};
jQW=function(p,J){if(!J)return[];var S=_.io(J,"mainPlaylistEntity"),H;J=(H=p.mainPlaylistEntity)==null?void 0:H[S];H=[];if(J==null||!J.videos)return H;J=_.K(J.videos);for(S=J.next();!S.done;S=J.next()){S=S.value;var M=void 0,X=void 0,Z=void 0,n=(M=p)==null?void 0:(X=M.mainPlaylistVideoEntity)==null?void 0:(Z=X[S])==null?void 0:Z.video;n&&(S=_.Hq(n).entityId)&&H.push(S)}return H};
xZX=function(p,J){if(J){var S=_.RR(p,"mainPlaylistEntity",_.io(J,"mainPlaylistEntity")),H=_.RR(p,"mainPlaylistDownloadStateEntity",_.io(J,"mainPlaylistDownloadStateEntity"));p=_.RR(p,"ytMainChannelEntity",_.io(J,"ytMainChannelEntity"));if(H&&S)return Object.assign({},{mainPlaylistEntity:S,mainPlaylistDownloadStateEntity:H},!!p&&{channelEntity:p})}};
YTt=function(p){return cWX(p).sort(function(J,S){return S.addedTimestampMillis-J.addedTimestampMillis}).map(function(J){return J.downloadedPlaylistEntities})};
cWX=function(p){var J=p.mainPlaylistDownloadStateEntity,S=[];if(!J)return S;for(var H=_.K(Object.keys(J)),M=H.next();!M.done;M=H.next()){var X=M.value;M=xZX(p,_.Hq(X).entityId);var Z=void 0;X=Number((Z=J[X])==null?void 0:Z.addedTimestampMillis);Z=isNaN(X)?(0,_.fO)():X;M!==void 0&&S.push({downloadedPlaylistEntities:M,addedTimestampMillis:Z})}return S};
Ig3=function(p){var J,S=(J=p.mainPlaylistVideoEntity)!=null?J:{};return new Set(YTt(p).reduce(function(H,M){H=H===void 0?[]:H;var X,Z;M==null||(X=M.mainPlaylistEntity)==null||(Z=X.videos)==null||Z.forEach(function(n){var b;(n=(b=S[n])==null?void 0:b.video)&&H.push(n)});
return H},[]))};
LXk=function(p){return"downloadedMusicPlaylistEntities"in p};
p34=function(p){return"mainPlaylistEntity"in p&&"mainPlaylistDownloadStateEntity"in p};
JLi=function(p){return"videoEntity"in p&&"channelEntity"in p};
SZi=function(p){var J=p.musicPlaylistDownloadMetadataEntity,S=[];if(!J)return S;for(var H=_.K(Object.keys(J)),M=H.next();!M.done;M=H.next()){M=M.value;a:{var X=p,Z=_.Hq(M).entityId;if(Z){var n=_.RR(X,"musicPlaylist",_.io(Z,"musicPlaylist"));X=_.RR(X,"musicPlaylistDownloadMetadataEntity",_.io(Z,"musicPlaylistDownloadMetadataEntity"));if(n&&X){n={musicPlaylistEntity:n,musicPlaylistDownloadStateEntity:X};break a}}n=void 0}X=void 0;M=Number((X=J[M])==null?void 0:X.addedTimestampMillis);M=isNaN(M)?(0,_.fO)():
M;n!==void 0&&S.push({downloadedMusicPlaylistEntities:n,addedTimestampMillis:M})}return S};
HDX=function(p){var J=new Set;p=_.K(p);for(var S=p.next();!S.done;S=p.next())if(S=S.value,"musicPlaylistEntity"in S&&"musicPlaylistDownloadStateEntity"in S){S=_.K(S.musicPlaylistEntity.tracks);for(var H=S.next();!H.done;H=S.next())J.add(H.value)}return J};
Mpv=function(p,J){if(J){var S=_.RR(p,"musicTrack",_.io(J,"musicTrack")),H=_.RR(p,"musicArtist",_.io(J,"musicArtist"))||{};if((p=hD3(p,J))&&S&&H)return Object.assign({},{musicTrackEntity:S,musicArtistEntity:H},p)}};
X3i=function(p){var J=p.musicTrackDownloadMetadataEntity,S=[];if(!J)return[];J=_.K(Object.keys(J));for(var H=J.next();!H.done;H=J.next()){var M=H.value;H=Mpv(p,_.Hq(M).entityId);var X=void 0;M=Number((X=_.RR(p,"musicTrackDownloadMetadataEntity",M))==null?void 0:X.addedTimestampMillis);X=isNaN(M)?(0,_.fO)():M;H!==void 0&&S.push({downloadedMusicEntities:H,addedTimestampMillis:X})}return S};
KUv=function(p,J){if(!J)return[];if(Object.values(iDi).includes(J))return Rgt(p,J);J=_.io(J,"musicPlaylist");var S;p=(S=p.musicPlaylist)==null?void 0:S[J];S=[];if(p==null||!p.tracks)return S;p=_.K(p.tracks);for(J=p.next();!J.done;J=p.next())(J=_.Hq(J.value).entityId)&&S.push(J);return S};
Rgt=function(p,J){var S=new Set,H=SZi(p).map(function(X){return X.downloadedMusicPlaylistEntities});
H=HDX(H);H=_.K(H);for(var M=H.next();!M.done;M=H.next())(M=_.Hq(M.value).entityId)&&S.add(M);return ZD4(p).downloadedMusicEntities.filter(function(X){var Z;if((Z=X.musicTrackEntity)!=null&&Z.videoId){X=X.musicTrackEntity;if(Z=J==="PPOM"?!0:!S.has(X.videoId))b:switch(X=X.musicVideoType,J){case "PPSE":Z=X==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:Z=X!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}X=Z}else X=!1;return X}).map(function(X){var Z;
return(Z=X.musicTrackEntity)==null?void 0:Z.videoId})};
ZD4=function(p){var J=X3i(p).sort(function(S,H){return H.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return"downloadedMusicEntities"in S?S.downloadedMusicEntities:LXk(S)?S.downloadedMusicPlaylistEntities:{}});
p=SZi(p).sort(function(S,H){return H.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return"downloadedMusicEntities"in S?S.downloadedMusicEntities:LXk(S)?S.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:J,downloadedMusicPlaylistEntities:p}};
G_k=function(p,J){J=_.jn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?KUv(p,J):jQW(p,J);if(!J.length)return"TRANSFER_STATE_UNKNOWN";J=J.map(function(S){return ags(p,S)});
return nNs(J)};
nNs=function(p){var J=new Set(p);if(J.has("TRANSFER_STATE_FAILED")&&J.size===1)return"TRANSFER_STATE_FAILED";J.delete("TRANSFER_STATE_FAILED");if(J.has("TRANSFER_STATE_UNKNOWN")&&J.size===1)return"TRANSFER_STATE_PRE_TRANSFER";J.delete("TRANSFER_STATE_UNKNOWN");if(J.has("TRANSFER_STATE_PRE_TRANSFER")&&J.size===1||J.size===0)return"TRANSFER_STATE_PRE_TRANSFER";p=J.has("TRANSFER_STATE_TRANSFERRING");J=J.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return p||J?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
zr=function(p){var J=p.mainVideoDownloadStateEntity,S=[];if(!J)return[];J=_.K(Object.keys(J));for(var H=J.next();!H.done;H=J.next()){var M=H.value;if(!DZv(p,_.Hq(M).entityId)){H=Pq(p,_.Hq(M).entityId);var X=void 0,Z=void 0;M=(Z=Number((X=_.RR(p,"mainVideoDownloadStateEntity",M))==null?void 0:X.addedTimestampMillis))!=null?Z:(0,_.fO)();H!==void 0&&S.push({downloadedVideoEntities:H,addedTimestampMillis:M})}}return S};
bDv=function(p){return zr(p).sort(function(J,S){return S.addedTimestampMillis-J.addedTimestampMillis}).map(function(J){return J.downloadedVideoEntities})};
_.FUX=function(p){var J=Ig3(p),S=_.$Z(p),H=uFs(p),M=zr(p).filter(function(Z){var n,b;if((Z==null?void 0:(n=Z.downloadedVideoEntities)==null?void 0:(b=n.transferEntity)==null?void 0:b.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var F,f;Z=Z==null?void 0:(F=Z.downloadedVideoEntities)==null?void 0:(f=F.videoEntity)==null?void 0:f.key;return _.z("kevlar_use_library_entity")?Z&&(H.has(Z)||S[Z]):Z&&!J.has(Z)}),X=cWX(p).filter(function(Z){return G_k(p,Z.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.dW(M),_.dW(X)).sort(function(Z,n){return n.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return mat(Z)})};
vNL=function(p,J){if(J&&sQ4(p,J)){var S,H,M=(H=(S=_.RR(p,"playbackData",_.io(J,"playbackData")))!=null?S:void 0)==null?void 0:H.playerResponseJson;if(M){try{var X=JSON.parse(M);var Z=_.RR(p,"transfer",_.io(J,"transfer")),n=EwW(p,J);n&&(X=Object.assign({},X,{playerConfig:Object.assign({},X.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+n*1E3}}})}));X.cotn=Z==null?void 0:Z.cotn}catch(b){}return X}}};
_.ODw=function(p){var J,S,H;p=(H=(S=((J=p.downloadsPageViewConfigurationEntity)!=null?J:{})[_.oR])==null?void 0:S.smartDownloadsOptInBannerVisibility)!=null?H:{};var M;return(M=_.e(p,f04))!=null?M:{}};
_.$Z=function(p){var J,S,H;p=(H=(S=((J=p.mainDownloadsListEntity)!=null?J:{})[_.ALv])==null?void 0:S.downloads)!=null?H:[];J={};S=_.K(p);for(H=S.next();!H.done;H=S.next())p=void 0,J[(p=H.value.videoItem)!=null?p:""]=!0;return J};
P1w=function(p){var J=_.$Z(p);if(Object.keys(J).length===0)return!1;var S=p.mainVideoEntity;if(!S)return!0;S=_.K(Object.keys(S));for(var H=S.next();!H.done;H=S.next()){H=H.value;var M=_.Hq(H).entityId;if(J[H]&&!DZv(p,M))return!1}return!0};
_.ex=function(p){var J=_.$Z(p);return zr(p).sort(function(S,H){return S.addedTimestampMillis-H.addedTimestampMillis}).map(function(S){return S.downloadedVideoEntities}).filter(function(S){var H;
return(S=S==null?void 0:(H=S.videoEntity)==null?void 0:H.key)&&!!J[S]})};
_.$ak=function(p){var J,S,H;p=(H=(S=((J=p.downloadsPageViewConfigurationEntity)!=null?J:{})[_.oR])==null?void 0:S.downloadsUpsellBannerVisibility)!=null?H:{};var M;return(M=_.e(p,zgs))!=null?M:{}};
mat=function(p){return"downloadedVideoEntities"in p?p.downloadedVideoEntities:"downloadedPlaylistEntities"in p?p.downloadedPlaylistEntities:{}};
oNW=function(p){var J=_.$Z(p),S=Ig3(p),H=zr(p).filter(function(M){var X,Z;return(M=M==null?void 0:(X=M.downloadedVideoEntities)==null?void 0:(Z=X.videoEntity)==null?void 0:Z.key)&&!J[M]&&!S.has(M)});
p=cWX(p);return[].concat(_.dW(H),_.dW(p)).sort(function(M,X){return X.addedTimestampMillis-M.addedTimestampMillis}).map(function(M){return mat(M)})};
_.Wq=function(p){if(!_.z("kevlar_use_library_entity"))return oNW(p);var J=zr(p).filter(function(H){var M,X;if(M=H=H==null?void 0:(M=H.downloadedVideoEntities)==null?void 0:(X=M.videoEntity)==null?void 0:X.key){var Z,n,b;M=((n=(Z=p.mainDownloadsListEntity)==null?void 0:Z[dZ3])==null?0:(b=n.downloads)==null?0:b.length)?uFs(p).has(H):!1}return M}),S=cWX(p);
return[].concat(_.dW(J),_.dW(S)).sort(function(H,M){return M.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return mat(H)})};
eg3=function(p){var J=_.$Z(p),S=Ig3(p);return bDv(p).filter(function(H){var M;return(H=H==null?void 0:(M=H.videoEntity)==null?void 0:M.key)&&!J[H]&&!S.has(H)})};
WUg=function(p){if(!_.z("kevlar_use_library_entity"))return eg3(p);var J=_.$Z(p),S=uFs(p);return bDv(p).filter(function(H){var M;return(H=H==null?void 0:(M=H.videoEntity)==null?void 0:M.key)&&!J[H]&&S.has(H)})};
QOw=function(p,J){J=_.io(J,"settingEntity");var S,H,M;return!!((M=(H=((S=p.settingEntity)!=null?S:{})[J])==null?void 0:H.settingOptionValue)!=null?M:{}).boolValue};
_.Qc=function(p){var J=_.ex(p);if(UZv(J))return 0;var S=[];J=_.K(J);for(var H=J.next();!H.done;H=J.next()){H=H.value;var M=void 0,X=void 0;if((M=H)==null?0:(X=M.videoEntity)==null?0:X.key)M=_.Hq(H.videoEntity.key).entityId,H=p,M=_.io(M,"mainVideoDownloadStateEntity"),H=_.RR(H,"mainVideoDownloadStateEntity",M),(H=Number(H==null?void 0:H.addedTimestampMillis))&&S.push(H)}return Math.max.apply(Math,_.dW(S))};
_.C$=function(p){return p.ui.richGridMiniMode};
_.yc=function(p){return p.ui.richGridItemsPerRow};
_.C1g=function(p){return p.ui.richGridSlimItemsPerRow};
_.yL3=function(p){return p.ui.guideIsExpanded};
_.Bq=function(p){return p.ui.miniplayerIsActive};
BFL=function(p){return p.ui.singleOptionSurveyIsActive};
_.U4=function(p){var J;return((J=p.ui)==null?void 0:J.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.UaX=function(p){return _.U4(p)==="WEB_PAGE_TYPE_WATCH"};
_.sO4=function(p){return _.U4(p)==="WEB_PAGE_TYPE_SHORTS"};
_.gNk=function(p){return p.ui.inlinePreviewIsActive};
_.tpW=function(p){return p.ui.inlinePreviewIsEnabled};
_.hgi=function(p){return p.ui.miniplayerPlaybackState};
_.s4=function(p){return p.ui.isOnline};
_.Dak=function(p){return p.ui.frostedGlassMode};
_.gl=function(p,J){return lgW(p.entities,J)};
_.tk=function(p,J){return G_k(p.entities,J)};
k_9=function(p,J){var S;if(J){var H;p=(H=_.RR(p.entities,"offlineVideoPolicy",_.io(J,"offlineVideoPolicy")))==null?void 0:H.action}else p=void 0;return(S=p)!=null?S:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
NFt=function(p,J){var S;J?(p=_.RR(p.entities,"offlineVideoPolicy",_.io(J,"offlineVideoPolicy")),p=Number(p==null?void 0:p.expirationTimestamp)):p=void 0;return(S=p)!=null?S:0};
_.TFk=function(p){return _.Ak(p.entities).length};
daL=function(p,J){return Pq(p.entities,J)};
uNW=function(p,J){return xZX(p.entities,J)};
DY=function(p,J){return(p=Pq(p.entities,J))?_.QQ9([p]):0};
_.l0X=function(p,J){var S=_.jn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(S){var H=p.entities;var M=KUv(H,J);if(M.length){var X=[];M=_.K(M);for(var Z=M.next();!Z.done;Z=M.next())(Z=Mpv(H,Z.value))&&X.push(Z);H=X}else H=[]}else H=wR4(p.entities,J);var n;if(S){var b=p.entities;J?(J=_.io(J,"musicPlaylist"),b=(n=b.musicPlaylist)==null?void 0:n[J],n=b!=null&&b.tracks?b.tracks.length:0):n=0}else n=p.entities,J?(J=_.io(J,"mainPlaylistEntity"),n=(b=n.mainPlaylistEntity)==null?void 0:b[J],n=n!=null&&n.videos?
n.videos.length:0):n=0;return H.length!==n?0:H?CcX(H):0};
_.Vpv=function(p){return p.download.isLeaderTab};
_.qZL=function(p,J,S){if(!J&&S){var H=p.entities;if(S){var M=BbX(S),X,Z;J=(Z=(X=_.RR(H,"offlineabilityEntity",_.io(M,"offlineabilityEntity")))==null?void 0:X.addToOfflineButtonState)!=null?Z:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else J="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else X=p.entities,J?(Z=BbX(J),J=(M=(H=_.RR(X,"offlineabilityEntity",_.io(Z,"offlineabilityEntity")))==null?void 0:H.addToOfflineButtonState)!=null?M:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):J="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return J};
a0i=function(p,J){p=p.entities;if(J){J=BbX(J);var S,H;J=(H=(S=_.RR(p,"offlineabilityEntity",_.io(J,"offlineabilityEntity")))==null?void 0:S.addToOfflineButtonState)!=null?H:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else J="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return J};
_.ENw=function(p){var J=p.entities;p=_.s4(p);var S=QOw(J,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.z("kevlar_modern_downloads_page")&&S)var H=!1;else{var M,X;J=(X=(M=((H=J.downloadsPageViewConfigurationEntity)!=null?H:{})[_.oR])==null?void 0:M.smartDownloadsOptInBannerVisibility)!=null?X:{};H=p?!!J.visibleWithConnection:!!J.visibleWithoutConnection}return H};
_.YZ3=function(p){return QOw(p.entities,"SMART_DOWNLOADS_ENABLED")};
_.rLi=function(p){return P1w(p.entities)};
jO9=function(p){return _.ex(p.entities).every(function(J){var S;return(J==null?void 0:(S=J.transferEntity)==null?void 0:S.transferState)&&!WXX.includes(J.transferEntity.transferState)})};
_.w3W=function(p){var J,S,H,M=(H=(S=((J=p.entities.downloadsPageViewConfigurationEntity)!=null?J:{})[_.oR])==null?void 0:S.downloadsUpsellBannerVisibility)!=null?H:{};return _.s4(p)?!!M.visibleWithConnection:!!M.visibleWithoutConnection};
_.xa9=function(p,J){return DZv(p.entities,J)};
cLW=function(p,J){if(J){var S,H;p=(H=(S=_.RR(p.entities,"downloadStatusEntity",_.io(J,"downloadStatusEntity")))==null?void 0:S.downloadState)!=null?H:"DOWNLOAD_STATE_UNKNOWN"}else p="DOWNLOAD_STATE_UNKNOWN";return p};
kZ=function(p,J){return EwW(p.entities,J)};
J0v=function(p){p=I0t(p);var J=p.hours===void 0?0:p.hours,S=p.minutes===void 0?0:p.minutes,H=p.seconds===void 0?0:p.seconds,M=J>0;p=[];M&&(J=LUk(J),p.push(J));J=M;J=J===void 0?!1:J;S=(["af","be","lt"].includes(Nw)||J)&&S<10?p7s().format(S):(new Intl.NumberFormat("en-u-nu-latn")).format(S);p.push(S);S=p7s().format(H);p.push(S);S=":";"da fi id si sr sr-Latn".split(" ").includes(Nw)&&(S=".");return p.join(S)};
_.Het=function(p){p=I0t(p);var J=p.hours===void 0?0:p.hours,S=p.minutes===void 0?0:p.minutes,H=p.seconds===void 0?0:p.seconds;p=[];if(J>0){var M=S7X().format({hours:J});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Nw)||J>9999)M=M.replace(J.toString(),LUk(J)),Nw==="km"&&(M=M.replace(".",","));p.push(M)}S>0&&p.push(S7X().format({minutes:S}));H>0&&p.push(S7X().format({seconds:H}));J="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");S=Nw=="am"?"{0}\u1363 ":Nw=="fa"?"{0}\u060c\u200f ":
Nw=="my"?"{0} - ":Nw=="ne"?"{0},":Nw=="th"?"{0} ":Nw=="ur"?"{0}\u060c ":Nw=="ar"||Nw=="ar-XB"?"{0} \u0648":Nw=="ja"||Nw=="zh-CN"||Nw=="zh-HK"||Nw=="zh-TW"?"{0}\u3001":"{0}, ";H=Nw=="am"?"\u1363 ":Nw=="fa"?"\u060c\u200f ":Nw=="my"?" - ":Nw=="th"?" ":Nw=="ur"?"\u060c ":Nw=="ar"||Nw=="ar-XB"?" \u0648":Nw=="ja"||Nw=="zh-CN"||Nw=="zh-HK"||Nw=="zh-TW"?"\u3001":", ";M=Nw=="am"?" \u12a5\u1293 {0}":Nw=="as"?" \u0986\u09f0\u09c1 {0}":Nw=="az"?" v\u0259 {0}":Nw=="bn"?" \u098f\u09ac\u0982 {0}":Nw=="cs"?" a\u00a0{0}":
Nw=="de"?" und {0}":Nw=="el"?" \u03ba\u03b1\u03b9 {0}":Nw=="eu"?" eta {0}":Nw=="fa"?"\u060c \u0648 {0}":Nw=="fil"?", at {0}":Nw=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Nw=="hi"?", \u0914\u0930 {0}":Nw=="hu"?" \u00e9s {0}":Nw=="hy"?" \u0587 {0}":Nw=="id"?", dan {0}":Nw=="iw"?" \u05d5-{0}":Nw=="ja"?"\u3001{0}":Nw=="ka"?" \u10d3\u10d0 {0}":Nw=="km"?" \u1793\u17b7\u1784 {0}":Nw=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Nw=="ko"?" \ubc0f {0}":Nw=="ky"?" \u0436\u0430\u043d\u0430 {0}":Nw=="lt"?" ir {0}":Nw==
"lv"?" un {0}":Nw=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Nw=="mr"?" \u0906\u0923\u093f {0}":Nw=="ms"?" dan {0}":Nw=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Nw=="ne"?" \u0930 {0}":Nw=="or"?", \u0b13 {0}":Nw=="pa"?" \u0a05\u0a24\u0a47 {0}":Nw=="ro"?" \u0219i {0}":Nw=="si"?", \u0dc3\u0dc4 {0}":Nw=="sk"?" a {0}":Nw=="sl"?" in {0}":Nw=="sq"?" dhe {0}":Nw=="sv"?" och {0}":Nw=="sw"?" na {0}":Nw=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Nw=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Nw=="th"?" \u0e41\u0e25\u0e30{0}":Nw=="tr"?" ve {0}":Nw=="ur"?"\u060c \u0627\u0648\u0631 {0}":Nw=="uz"?" va {0}":Nw=="vi"?" v\u00e0 {0}":Nw=="zh-HK"?"\u53ca{0}":Nw=="zu"?", ne-{0}":Nw=="af"||Nw=="nl"?" en {0}":Nw=="ar"||Nw=="ar-XB"?" \u0648{0}":Nw=="be"||Nw=="uk"?" \u0456 {0}":Nw=="en-GB"||Nw=="en-IN"?" and {0}":Nw=="en"||Nw=="en-XA"?", and {0}":Nw=="et"||Nw=="fi"?" ja {0}":Nw=="fr"||Nw=="fr-CA"?" et {0}":Nw=="zh-CN"||Nw=="zh-TW"?"\u548c{0}":Nw=="da"||Nw=="is"||Nw=="no"?" og {0}":Nw=="es"||Nw=="es-419"||
Nw=="es-US"?" y {0}":Nw=="kk"||Nw=="lo"||Nw=="mn"?", {0}":Nw=="bg"||Nw=="mk"||Nw=="ru"||Nw=="sr"?" \u0438 {0}":Nw=="gl"||Nw=="it"||Nw=="pt-BR"||Nw=="pt-PT"?" e {0}":" i {0}";var X=Nw=="am"?"{0} \u12a5\u1293 {1}":Nw=="as"?"{0} \u0986\u09f0\u09c1 {1}":Nw=="az"?"{0} v\u0259 {1}":Nw=="bn"?"{0} \u098f\u09ac\u0982 {1}":Nw=="de"?"{0} und {1}":Nw=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Nw=="eu"?"{0} eta {1}":Nw=="fa"?"{0} \u0648 {1}":Nw=="fil"?"{0} at {1}":Nw=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Nw=="hi"?"{0} \u0914\u0930 {1}":
Nw=="hu"?"{0} \u00e9s {1}":Nw=="hy"?"{0} \u0587 {1}":Nw=="iw"?"{0} \u05d5-{1}":Nw=="ja"?"{0}\u3001{1}":Nw=="ka"?"{0} \u10d3\u10d0 {1}":Nw=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Nw=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Nw=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Nw=="ko"?"{0} \ubc0f {1}":Nw=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Nw=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Nw=="lt"?"{0} ir {1}":Nw=="lv"?"{0} un {1}":Nw=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Nw=="mn"?"{0}, {1}":Nw==
"mr"?"{0} \u0906\u0923\u093f {1}":Nw=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Nw=="ne"?"{0} \u0930 {1}":Nw=="or"?"{0} \u0b13 {1}":Nw=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Nw=="ro"?"{0} \u0219i {1}":Nw=="si"?"{0} \u0dc3\u0dc4 {1}":Nw=="sl"?"{0} in {1}":Nw=="sq"?"{0} dhe {1}":Nw=="sv"?"{0} och {1}":Nw=="sw"?"{0} na {1}":Nw=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Nw=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Nw=="th"?"{0}\u0e41\u0e25\u0e30{1}":Nw=="tr"?"{0} ve {1}":Nw=="ur"?
"{0} \u0627\u0648\u0631 {1}":Nw=="uz"?"{0} va {1}":Nw=="vi"?"{0} v\u00e0 {1}":Nw=="zh-HK"?"{0}\u53ca{1}":Nw=="zu"?"{0} ne-{1}":Nw=="af"||Nw=="nl"?"{0} en {1}":Nw=="ar"||Nw=="ar-XB"?"{0} \u0648{1}":Nw=="be"||Nw=="uk"?"{0} \u0456 {1}":Nw=="cs"||Nw=="sk"?"{0} a\u00a0{1}":Nw=="et"||Nw=="fi"?"{0} ja {1}":Nw=="fr"||Nw=="fr-CA"?"{0} et {1}":Nw=="id"||Nw=="ms"?"{0} dan {1}":Nw=="zh-CN"||Nw=="zh-TW"?"{0}\u548c{1}":Nw=="da"||Nw=="is"||Nw=="no"?"{0} og {1}":Nw=="es"||Nw=="es-419"||Nw=="es-US"?"{0} y {1}":Nw==
"bg"||Nw=="mk"||Nw=="ru"||Nw=="sr"?"{0} \u0438 {1}":Nw=="en"||Nw=="en-GB"||Nw=="en-IN"||Nw=="en-XA"?"{0} and {1}":Nw=="gl"||Nw=="it"||Nw=="pt-BR"||Nw=="pt-PT"?"{0} e {1}":"{0} i {1}";Nw==="sq"?(M=M.replace("dhe","e"),X=X.replace("dhe","e")):Nw==="th"?(H=H.replace("{0}"," {0}"),X=X.replace("{0}","{0} "),X=X.replace("{1}"," {1}")):Nw==="ne"?H=",":Nw==="zh-CN"?H="":J.includes(Nw)&&(H=" ");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(Nw)?
p.length===2?X.replace("{0}",p[0]).replace("{1}",p[1]):S.replace("{0}",p[0])+p.slice(1,-1).join(H)+M.replace("{0}",p[p.length-1]):p.join(H)};
I0t=function(p){var J=p.hours||0,S=p.minutes||0,H=p.seconds||0;J=H+S*60+J*3600+(p.days||0)*86400+(p.weeks||0)*604800+(p.months||0)*2629800+(p.years||0)*31557600;if(J<=0)return{hours:0,minutes:0,seconds:0};p=J;J=Math.floor(p/3600);p%=3600;S=Math.floor(p/60);H=Math.floor(p%60);return{hours:J,minutes:S,seconds:H}};
LUk=function(p){p=(new Intl.NumberFormat("en-u-nu-latn")).format(p);var J=["fr"],S="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(Nw)?p.replace(",","\u00a0"):J.includes(Nw)?p.replace(",","\u202f"):S.includes(Nw)?p.replace(",","."):p};
p7s=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
S7X=function(){M$g||(Tr=X7i,M$g=new ieW);return M$g};
Rr9=function(p){try{return(new _.dl(5)).format(p)}catch(J){}};
uo=function(p){return{thumbnailOverlayDownloadingRenderer:{state:p}}};
KB4=function(){var p=_.Kl("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.I5(p),icon:{iconType:"PLAY_ALL"}}}};
Zei=function(p){p=_.lo(p,2);return Nw!=="ru"&&Nw!=="es_419"&&Nw!=="es-419"&&Nw!=="es"&&Nw!=="es_US"&&Nw!=="es-US"&&Nw!=="fr"&&Nw!=="pl"&&Nw!=="it"&&Nw!=="nl"&&Nw!=="uk"&&Nw!=="fr_CA"&&Nw!=="fr-CA"||p===""?p:p[0].toLocaleUpperCase()+p.substring(1)};
G3v=function(p){return function(J){var S=p(),H=_.lo(J,S.dateFormat);J=_.lo(J,S.timeFormat);var M=nYv.DATETIMEFORMATS[S.joinerStyle];M=M.replace(/'(?!')/g,"");M=M.replace("{0}",J);M=M.replace("{1}",H);return S.capitalize(M)}};
bek=function(p){return p?typeof p.seconds==="string"&&(p.nanos===void 0||typeof p.nanos==="number"):!1};
mFk=function(p){return new Date(Number(p.seconds)*1E3+(p.nanos||0)*1E-6)};
_.lo=function(p,J){if(typeof p.getTime==="function")p={date:p};else if(bek(p))p={date:mFk(p)};else if(typeof bek(p.timestamp)&&typeof p.i18nInternalSecondsEastOfUtc==="number")p={date:mFk(p.timestamp),timeZone:Vc(-p.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(p));var S=p;p=S.date;S=S.timeZone;J=FBt(J).format(p,S);Nw==="zh-TW"&&(p=S?Number(FBt("H").format(p,S)):p.getHours(),J=p<5?J.replace("\u4e0a\u5348","\u51cc\u6668"):p<8?J.replace("\u4e0a\u5348","\u65e9\u4e0a"):p<12?
J.replace("\u4e0a\u5348","\u4e0a\u5348"):p<13?J.replace("\u4e0b\u5348","\u4e2d\u5348"):p<19?J.replace("\u4e0b\u5348","\u4e0b\u5348"):J.replace("\u4e0b\u5348","\u665a\u4e0a"));return J};
FBt=function(p){if(vYX.has(p))return vYX.get(p);var J=fXs(p);J=OeW(J);A0X!==!0&&(A0X=!0);PP3=!0;PP3=!1;J=new qw(J,nYv);vYX.set(p,J);return J};
fXs=function(p){return(new qw(p,nYv)).patternParts_.map(function(J){return J.type===0?"'"+J.text+"'":J.text}).join("")};
OeW=function(p){return Nw==="en"||Nw==="es_US"||Nw==="es-US"?p:p.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(J,S,H){return"H".repeat(S.length)+H})};
CPi=function(p,J){zrX||(Tr=X7i,zrX=new $Fs);var S=zrX;a:if(p=oY4(p),J=oY4(J||new Date),p>J)S=p.getTime()-J.getTime()>6048E5?_.lo(p,1):er3(p);else{for(var H=0;WBX(p,12*(H+1))<J;)++H;if(H>0)S=S.format(-H,0);else{for(H=0;WBX(p,H+1)<J;)++H;if(H>0)S=S.format(-H,2);else{p=J.getTime()-p.getTime();J=_.K(Qx4);for(H=J.next();!H.done;H=J.next()){H=H.value;var M=H.unit,X=Math.floor(p/H.unitDuration);if(X>=(H.threshold===void 0?1:H.threshold)){S=S.format(-X,M);break a}}S=S.format(-0,7)}}}return S};
oY4=function(p){if(typeof p.getTime==="function")return p;if(bek(p))return mFk(p);throw Error("Mf`"+JSON.stringify(p));};
WBX=function(p,J){for(var S=0,H;;++S)if(H=new Date(p.getFullYear(),p.getMonth()+J,p.getDate()-S,p.getHours(),p.getMinutes(),p.getSeconds()),H.getMonth()===(p.getMonth()+J)%12)return H};
_.aR=function(p){return{runs:[{text:p}]}};
_.E4=function(p){if(p&&p.simpleText)return p.simpleText;var J="";if(p&&p.runs)for(var S=0;S<p.runs.length;S++)p.runs[S].text&&(J+=p.runs[S].text);return J};
BVt=function(p,J,S,H){return p.videoEntity&&!p.policyEntity&&S!=="DOWNLOAD_STATE_FAILED"?[uo("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:vq(p.policyEntity)&&J!=="TRANSFER_STATE_FAILED"&&J!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?J==="TRANSFER_STATE_PAUSED_BY_USER"?[uo("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.f$(J)?[uo("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:p.videoEntity.lengthSeconds?y0X(p.videoEntity.lengthSeconds,H):[]:
[uo("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
y0X=function(p,J){var S=[{thumbnailOverlayTimeStatusRenderer:{text:_.I5(J0v({seconds:p})),style:"DEFAULT"}}];J&&(p=J<=0||p<=0?0:J>=p?100:Math.ceil(J*100/p),p>0&&S.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:p}}));return S};
UFX=function(p,J,S,H,M){if(J==="TRANSFER_STATE_UNKNOWN"||!p)return{};if(_.f$(J)||J==="TRANSFER_STATE_PRE_TRANSFER")var X=[uo("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var Z,n;if(J==="TRANSFER_STATE_COMPLETE"&&((Z=p.mainPlaylistEntity)==null?0:(n=Z.videos)==null?0:n.length)){var b;p=(X=p.mainPlaylistEntity)==null?void 0:(b=X.videos)==null?void 0:b.length;X=(X=Rr9(p))?{thumbnailOverlayBottomPanelRenderer:{text:_.I5(X),icon:{iconType:"PLAYLISTS"}}}:void 0;X=[KB4(),Object.assign({},
X!=null?X:{})]}else X=[]}a:if(J==="TRANSFER_STATE_PRE_TRANSFER")S=Ll(_.Kl("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(J==="TRANSFER_STATE_TRANSFER_IN_QUEUE")S=Ll(_.Kl("WAITING_TO_DOWNLOAD"));else if(_.f$(J))S=Math.floor(S*100).toString(),S=Ll(_.Kl("DOWNLOADING_PERCENT",{percent:S},"Downloading... "+S+"%"));else{if(H&&(_.z("playlist_is_offline_selector_killswitch")&&(M=_.vO().resolve(_.RJ).isNetworkAvailable()),M)){S=Dlt(_.Kl("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
t7i(H));break a}S=void 0}J=J==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Kl("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},X.length?{thumbnailOverlays:X}:{},S?{viewPlaylistText:S}:{viewPlaylistText:_.aR("")},J.length?{badges:J}:{})};
sxk=function(p,J,S,H,M,X){if(J==="TRANSFER_STATE_UNKNOWN"||!p)return{};if(H==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var Z=BVt(p,J,H);if(p.videoEntity&&!p.policyEntity&&H!=="DOWNLOAD_STATE_FAILED"){var n=_.Kl("WAITING_TO_DOWNLOAD");if(n)return{shortViewCountText:_.aR(n),publishedTimeText:void 0,thumbnailOverlays:Z}}if(!vq(p.policyEntity)){X=p.policyEntity&&!yW4(p.policyEntity)?_.Kl("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Kl("TRANSFER_FAILED",{},"Download failed");var b;if((b=p.policyEntity)==null?0:b.shortMessageForDisabledAction)X=p.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Ll(X),publishedTimeText:void 0,thumbnailOverlays:Z}}if(J==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.aR(_.Kl("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:Z};if(J==="TRANSFER_STATE_FAILED"||J==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.aR(_.Kl("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:Z};if(J==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(b=_.Kl("WAITING_TO_DOWNLOAD"),H==="DOWNLOAD_STATE_PAUSED"&&(b=_.Kl("DOWNLOAD_PAUSED",{},"Download paused")),b))return{shortViewCountText:_.aR(b),publishedTimeText:void 0,thumbnailOverlays:Z};if(_.f$(J))return p=Math.floor(S*100).toString(),{shortViewCountText:_.aR(_.Kl("DOWNLOADING_PERCENT",{percent:p},"Downloading... "+p+"%")),publishedTimeText:void 0,thumbnailOverlays:Z};J=void 0;p.videoEntity.publishedTimestampMillis&&
(J=new Date,M&&(J=new Date(M)),J=Ll(CPi(new Date(Number(p.videoEntity.publishedTimestampMillis)),J)));M=[];_.z("kevlar_woffle_badge_killswitch")||(M=[{metadataBadgeRenderer:{label:_.Kl("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var F;p=Ll((F=p.videoEntity.localizedStrings)==null?void 0:F.viewCount);return Object.assign({},X?{shortViewCountText:void 0}:{shortViewCountText:p},X?{}:{publishedTimeText:J},{badges:M,thumbnailOverlays:Z})};
t$W=function(p,J){p=p===void 0?gYg:p;switch(J.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:J.payload.playlistId,inviteLinkURL:J.payload.inviteLinkUrl};default:return p}};
DFw=function(p,J){p=p===void 0?hrs:p;switch(J.type){case "SET_CURRENT_FORM_ID":return J=J.payload.formId,p.currentFormId===J?p:{currentFormId:J,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var S=J.payload;J=S.groupId;S=S.command;if(p.currentFormId){var H=Object.assign({},p.commandsMap);H[J]=S;p=Object.assign({},p,{commandsMap:H})}return p;case "RESET_COMMAND_MAP":return Object.assign({},p,{commandsMap:{}});default:return p}};
NV3=function(p,J){p=p===void 0?k3k:p;switch(J.type){case "UPDATE_CANVAS_MODE":return Object.assign({},p,{currentMode:J.payload.currentMode});default:return p}};
dFX=function(p,J){p=p===void 0?TVX:p;switch(J.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},p,{guideIsExpanded:J.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},p,{scrollAtTop:J.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},p,{guideIsVisibleButNotPersistent:J.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},p,{miniplayerIsActive:J.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},p,{singleOptionSurveyIsActive:J.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},p,{slimlineSurveyRatingSelectedIndex:J.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},p,{richGridMiniMode:J.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},p,{richGridItemsPerRow:J.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},p,{richGridSlimItemsPerRow:J.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},p,{richGridContainerWidth:J.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},p,{richGridStyle:J.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},p,{currentPageType:J.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},p,{inlinePreviewIsActive:J.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},p,{inlinePreviewIsEnabled:J.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},p,{darkModeIsEnabled:J.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
p,{miniplayerPlaybackState:J.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},p,{tabGesturesIsActive:J.payload});case "SET_ONLINE_STATUS":return Object.assign({},p,{isOnline:J.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},p,{chipBarIsSticky:J.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},p,{frostedGlassMode:J.payload});default:return p}};
ucv=function(){return _.z("kevlar_disable_theater_mode_persistence")?!1:_.wY("START_IN_THEATER_MODE")};
V$X=function(p,J){p=p===void 0?lXk:p;switch(J.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},p,{transcription:J.payload});case "SET_OVERLAY_STATE":return Object.assign({},p,{overlay:J.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return p}};
IX3=function(){return hS(Object.assign({},{continuation:q7W,download:aXv,canvas:NV3,reportChannelAbuse:EY3,share:Y7W,talkToRecs:r0s,ui:dFX,voiceSearch:V$X,watch:jxi,ypc:w7k,shorts:xFw,radioButtonGroup:DFw,collabInviteLink:t$W},c0W))};
JMs=function(){return _.z("web_player_entities_middleware")?new YZ(IX3(),[LBt,pHk]):new YZ(IX3(),[LBt])};
_.rl=function(){St4||(St4=JMs());return St4};
Haw=function(p,J,S){if(p.length)return{titleText:_.I5(J!=null?J:_.Kl("DOWNLOADS",void 0,"Downloads")),contents:p.map(function(H){var M=H.videoEntity;H={videoId:M.videoId,title:Ll(M.title),shortBylineText:Ll(H.channelEntity.title),thumbnail:M.thumbnail};var X=M.videoId?kZ(_.rl().getState(),M.videoId):0;M.videoId&&S?H.navigationEndpoint=_.c9(M.videoId,S,void 0,void 0,X):M.videoId&&(H.navigationEndpoint=gEi(M.videoId,X,M.lengthSeconds));M.lengthSeconds&&(H.thumbnailOverlays=y0X(M.lengthSeconds,X));return{playlistPanelVideoRenderer:H}}),
totalVideos:p.length}};
Mk4=function(p){return(p=(0,_.T6.getValueByKeys)(p,"playlistId"))?{playlistId:p}:null};
XHi=function(){return{}};
iak=function(p,J){return new _.UI(function(S,H){p.then(function(M){if(M){if(M=J(M))return S(M);H()}},H)})};
R$v=function(p){var J,S,H,M=(J=p.contents)==null?void 0:(S=J.twoColumnWatchNextResults)==null?void 0:(H=S.autoplay)==null?void 0:H.autoplay,X,Z,n;J=(X=p.contents)==null?void 0:(Z=X.twoColumnWatchNextResults)==null?void 0:(n=Z.playlist)==null?void 0:n.playlist;return M&&J&&J.playlistId?{rawResponse:p,autoplayRenderer:M,playlistPanelRenderer:J,playlistId:J.playlistId}:null};
Zak=function(p){var J=J===void 0?"UNKNOWN_INTERFACE":J;if(p.length===1)return p[0];var S=KGL[J];if(S){S=new RegExp(S);for(var H=_.K(p),M=H.next();!M.done;M=H.next())if(M=M.value,S.exec(M))return M}var X=[];Object.entries(KGL).forEach(function(Z){var n=_.K(Z);Z=n.next().value;n=n.next().value;J!==Z&&X.push(n)});
S=new RegExp(X.join("|"));p.sort(function(Z,n){return Z.length-n.length});
H=_.K(p);for(M=H.next();!M.done;M=H.next())if(M=M.value,!S.exec(M))return M;return p[0]};
_.jx=function(p){return"/youtubei/v1/"+Zak(p)};
_.wl=function(p,J){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:p}}},J!==void 0?{durationHintMs:J}:{})}};
_.xZ=function(p,J){return _.wl(_.aR(p),J)};
n4L=function(p,J){var S={mode:"NORMAL"};p&&(S.autoplayVideo=p.navigationEndpoint,S.nextButtonVideo=p.navigationEndpoint);J&&(S.previousButtonVideo=J.navigationEndpoint);return S};
lUk=function(p,J,S){if(!S||!S.sets)return{sets:[n4L(p,J)]};var H=S.sets.find(function(Z){return Z.mode==="NORMAL"}),M=(0,_.T6.unsafeClone)(S);
if(!H)return M.sets.push(n4L(p,J)),M;if(!p)return S;H=_.T6.getValueByKeys.apply(null,[H].concat(_.dW(G0X)));var X=_.T6.getValueByKeys.apply(null,[p].concat(_.dW(uev)));if(H===X)return S;M.sets=M.sets.filter(function(Z){return Z.mode!=="NORMAL"});
M.sets.push(n4L(p,J));return M};
Vki=function(p){return!!p.playlistPanelVideoRenderer&&!p.playlistPanelVideoRenderer.unplayableText};
qtW=function(p){return!!p.playlistPanelVideoRenderer&&!!p.playlistPanelVideoRenderer.title};
aU4=function(p,J){if(J.contents&&!(p>=J.contents.length)&&(p=J.contents.slice(p).find(Vki)))return p.playlistPanelVideoRenderer};
E4W=function(p,J){if(J.contents)return(J=J.contents.find(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId===p}))?J.playlistPanelVideoRenderer:void 0};
Ytk=function(p,J){return J.contents?J.contents.findIndex(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId===p}):-1};
rM3=function(p,J){return J.contents?J.contents.findIndex(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.playlistSetVideoId===p}):-1};
jB9=function(p,J){p.contents&&J!==-1&&p.contents.splice(J,1).length===1&&p.totalVideos!==void 0&&(--p.totalVideos,delete p.videoCountText)};
_.wHv=function(p){var J=[];if(!p||!p.contents)return J;p=_.K(p.contents);for(var S=p.next();!S.done;S=p.next())S=S.value,S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId&&J.push(S.playlistPanelVideoRenderer.videoId);return J};
_.xgg=function(p){if(p&&p.contents)return(p=p.contents.find(function(J){return!!J.playlistPanelVideoRenderer&&!!J.playlistPanelVideoRenderer.selected})||p.contents[p.currentIndex])?p.playlistPanelVideoRenderer:void 0};
cM3=function(p,J,S,H,M,X,Z){M=M===void 0?!1:M;X=X===void 0?!1:X;Z=Z===void 0?!1:Z;if(p.contents&&p.contents.length!==0){H&&(p.contents=p.contents.filter(H));H=p.contents.length;for(var n=0;n<H;n++){var b=p.contents[n].playlistPanelVideoRenderer;b&&(n===J?(X&&delete b.menu,b.indexText=_.aR("\u25b6")):M||p.isInfinite||b.indexText===void 0?delete b.indexText:b.indexText=_.aR((n+1+S).toString()))}p.currentIndex=J+S;Z&&(delete p.videoCountText,p.totalVideos=H)}};
_.cq=function(p){p=IUi(p);if(p){var J=p.length;var S=-17%J;S<0&&(S=J+S);p=p.slice(J-S)+p.slice(0,J-S)}else p="";S="";for(J=0;J<p.length&&p[J]!==LG3;J++)S+=p[J];return S};
_.pwv=function(p,J){var S=document.body;J=J===void 0?function(n){return n}:J;
var H,M=null;p=_.K(p);for(H=p.next();!H.done;H=p.next()){var X=H.value;H="div";X[2]&&(H=J(X[2]));H=document.createElement(H);M||(M=H);var Z=X[0];X=X[1];Z&&(H.id=J(Z));if(X)for(X=_.K(X),Z=X.next();!Z.done;Z=X.next())H.classList.add(J(Z.value));S.appendChild(H);S=H}return[M,S]};
JYW=function(p,J){for(var S="",H=0;H<J;H++)S+=p.charAt(Math.floor(Math.random()*p.length));return S};
IR=function(p){return JYW("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",p)};
L$=function(p){return JYW("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",p)};
py=function(p){return JYW("0123456789",p)};
S8W=function(){var p=performance.now(),J=new Date;var S="2."+J.getFullYear()+String(J.getMonth()+1).padStart(2,"0")+String(J.getDate()).padStart(2,"0");for(var H,M=Math.floor(Math.random()*11)+15,X=[],Z=0;Z<M;Z++)X.push(Math.floor(Math.random()*26476865)+24547720);H=X.join(",");var n=IR(10),b=IR(100),F=IR(102),f=IR(106),O=IR(108),A=IR(11),P=IR(1140),W=IR(123),y=IR(14),t=IR(16),D=IR(1900),k=IR(23),E=IR(26),a=IR(34),q=IR(397),w=IR(44),I=IR(5),Z3=IR(72),vg=IR(74),yX=IR(75),Pg=IR(88),ov=IR(91),NW="rr4---sn-q4fl6n6d rr3---sn-q4flrnss rr2---sn-5hne6nsz rr4---sn-q4fl6n66 rr1---sn-5hnekn7k rr5---sn-hgn7rn7y rr4---sn-q4fzen7y rr5---sn-5hne6nsd rr1---sn-q4fl6n6y rr2---sn-4g5lznez rr4---sn-t0a7lnee rr1---sn-ntqe6nel rr5---sn-q4fl6ndl rr1---sn-5hneknek rr1---sn-q4flrnez rr2---sn-q4fl6nz6 rr5---sn-q4fzenee rr4---sn-ntq7yns7 rr2---sn-q4flrnel rr2---sn-aigl6nze".split(" ");
var TW=NW[Math.floor(Math.random()*NW.length)];var Ys=(new Date("2010-01-01")).getTime();var Go=(new Date(Ys+Math.random()*((new Date).getTime()-Ys))).toISOString().split("T")[0];for(var $U,LL=[],fd=0;fd<4;fd++)LL.push(Math.floor(Math.random()*100));$U=LL.join(".");var Qv=Number(py(5)),t8=Number(py(6)),Wp=Number(py(7)),ON=Number(py(9)),KL=py(1),HE=py(10),o8=py(16),xU=py(19),eL=py(2),Ld=py(20),QV=py(21),YU=py(3),Fn=py(4),vE=py(5),XP=py(6),wk=py(7),SI=py(8),vG=py(9);var Sa=JYW("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var Ar=[L$(5),L$(5),L$(5)].join("%2C"),EN=[py(3),py(5),py(5)].join("%2C"),nC=L$(0),Ps=L$(1),Vv=L$(10),CP=L$(108),Mj=L$(11),r2=L$(12),hT=L$(13),EV=L$(14),vW=L$(15),pA=L$(16),$_=L$(17),Bg=L$(18),lw=L$(19),rk=L$(2),PE=L$(20),ow=L$(22),kp=L$(23),sN=L$(24),Up=L$(266),Cd=L$(3),Ve=L$(30),aD=L$(34),zo=L$(35),j6=L$(36),wr=L$(4),Eq=L$(40),xT=L$(43),iZ=L$(47),h3=L$(5),$v=L$(6),m5=L$(7),FG=L$(75),o6=L$(8),UT=L$(80),E3=L$(9),CA="https://www."+L$(12)+".com",Wz={},$A={},DR={},QO={},ke={},oH={},Cz={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:H}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:S},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+L$(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:S},{key:"client.name",value:"WEB"},{key:"client.fexp",value:H}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:QV+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+L$(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Eq,ypcGetOfflineUpsellEndpoint:{params:UT}},trackingParams:zo+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&cnr="+eL+"&ratebypass=yes&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&c=WEB&txp="+wk+"&n="+t+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:t8,width:640,height:360,lastModified:o8,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:wk,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+EN+"&mn="+
Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&cnr="+eL+"&ratebypass=yes&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&c=WEB&txp="+wk+"&n="+t+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+CP+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:t8,width:1280,
height:720,lastModified:o8,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:wk,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+EN+"&mn="+Ar+"&ms="+
Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+vG+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Wp,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:vG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wp,approxDurationMs:wk},{itag:248,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+EN+"&mn="+Ar+"&ms="+Ar+"&mv="+
Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fwebm&ns="+sN+"&gir="+Cd+"&clen="+vG+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:Wp,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:vG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wp,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:399,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+vG+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Wp,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:vG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Wp,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:136,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+vG+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Wp,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:vG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:t8,approxDurationMs:wk},{itag:247,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+EN+"&mn="+
Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fwebm&ns="+sN+"&gir="+Cd+"&clen="+vG+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:Wp,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:vG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:398,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+vG+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Wp,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:vG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:135,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:t8,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:t8,approxDurationMs:wk},{itag:244,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+EN+"&mn="+
Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fwebm&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+CP+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:t8,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:397,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:t8,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:134,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:t8,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:t8,highReplication:!0,approxDurationMs:wk},{itag:243,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fwebm&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:t8,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:396,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:t8,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:133,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:t8,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:t8,approxDurationMs:wk},{itag:242,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+EN+"&mn="+
Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fwebm&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:t8,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:395,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:t8,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:160,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:t8,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Qv,approxDurationMs:wk},{itag:278,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+EN+"&mn="+
Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fwebm&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:t8,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Qv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:394,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&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="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=video%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Qv,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Qv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wk},{itag:140,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=audio%2Fmp4&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:t8,
initRange:{start:"0",end:"631"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:t8,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:wk,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+
eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=audio%2Fwebm&ns="+sN+"&gir="+Cd+"&clen="+wk+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/webm; codecs="opus"',bitrate:Qv,initRange:{start:"0",end:"265"},indexRange:{start:YU,
end:Fn},lastModified:o8,contentLength:wk,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Qv,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:wk,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=audio%2Fwebm&ns="+
sN+"&gir="+Cd+"&clen="+wk+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/webm; codecs="opus"',bitrate:Qv,initRange:{start:"0",end:"265"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:wk,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Qv,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:wk,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+TW+".googlevideo.com/videoplayback?expire="+HE+"&ei="+k+"&ip="+$U+"&id=o-AF"+xT+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+EN+"&mn="+Ar+"&ms="+Ar+"&mv="+Ps+"&mvi="+KL+"&pl="+eL+"&initcwndbps="+wk+"&siu="+KL+"&spc="+w+"&vprv="+KL+"&svpuc="+KL+"&mime=audio%2Fwebm&ns="+sN+"&gir="+Cd+"&clen="+SI+"&dur="+SI+"&lmt="+o8+"&mt="+HE+"&fvip=3&keepalive="+Cd+"&c=WEB&txp="+
wk+"&n="+pA+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/webm; codecs="opus"',bitrate:t8,initRange:{start:"0",end:"265"},indexRange:{start:YU,end:Fn},lastModified:o8,contentLength:SI,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:t8,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:wk,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="+vG+"&docid="+A+"&ei="+k+"&feature="+n+"&fexp="+nC+"&ns="+rk+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ps+"&el="+Vv+"&len="+Fn+"&of="+ow+
"&uga="+eL+"&vm="+Up},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+vG+"&docid="+A+"&ei="+k+"&feature="+n+"&fexp="+nC+"&ns="+rk+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ps+"&el="+Vv+"&len="+Fn+"&of="+ow+"&uga="+eL+"&vm="+Up},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+vG+"&docid="+A+"&ei="+k+"&feature="+n+"&fexp="+nC+"&ns="+rk+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Ps+"&el="+Vv+"&len="+Fn+"&of="+ow+"&uga="+eL+"&vm="+Up},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+k+"&m="+Pg+"&oid="+ow+"&plid="+t+"&pltype="+m5+"&ptchn="+ow+"&ptk="+y+"&video_id="+A},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+vG+"&docid="+A+"&ei="+k+"&event="+EV+"&feature="+n+"&fexp="+nC+"&ns="+rk+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ps},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
pA+"&ver=2&cmt=1."+YU+"&fmt="+YU+"&fs=0&rt="+vE+"&euri&lact="+YU+"&cl="+vG+"&mos="+KL+"&volume=100&cbrand="+h3+"&cbr="+$v+"&cbrver="+$U+"&c=WEB&cver="+S+"&cplayer=UNIPLAYER&cos="+E3+"&cosver="+wk+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+eL+"&len="+SI+"&fexp="+Ar+"&feature=g-high-rec&afmt="+YU+"&muted=0&conn=1&docid="+A+"&ei="+k+"&plid="+t+"&vm="+L$(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
A+"&caps="+Cd+"&opi="+vG+"&xoaf="+KL+"&hl="+rk+"&ip="+$U+"&ipbits="+KL+"&expire="+HE+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+$U+"&key="+Cd+"&lang="+I,name:{simpleText:wr},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+A+"&caps="+Cd+"&opi="+vG+"&xoaf="+KL+"&hl="+rk+"&ip="+$U+"&ipbits="+KL+"&expire="+HE+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+$U+"&key="+Cd+"&kind="+Cd+"&lang="+rk,name:{simpleText:E3},
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:Mj,title:wr,lengthSeconds:"1155",keywords:[Bg,Mj,E3,PE],channelId:sN,isOwnerViewing:!1,shortDescription:PE,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+A+"/hqdefault.jpg?sqp=-oaymwE"+j6+"G&rs="+aD,width:168,height:94},{url:"https://i.ytimg.com/vi/"+A+"/hqdefault.jpg?sqp=-oaymwE"+j6+
"G&rs="+aD,width:196,height:110},{url:"https://i.ytimg.com/vi/"+A+"/hqdefault.jpg?sqp=-oaymwE"+j6+"G&rs="+a,width:246,height:138},{url:"https://i.ytimg.com/vi/"+A+"/hqdefault.jpg?sqp=-oaymwE"+j6+"G&rs="+a,width:336,height:188},{url:"https://i.ytimg.com/vi/"+A+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:wk,author:hT,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:wk,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
ow+"/featured_channel.jpg?v="+o6,width:40,height:40}]},trackingParams:zo+"=",navigationEndpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{url:"/channel/"+sN,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:sN}},channelName:hT,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:E3}]},subscribed:!1,enabled:!0,type:"FREE",channelId:sN,showPreferences:!1,subscribedButtonText:{runs:[{text:Vv}]},unsubscribedButtonText:{runs:[{text:Bg}]},
trackingParams:zo+"=",unsubscribeButtonText:{runs:[{text:o6}]},serviceEndpoints:[{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[sN],params:o6}},{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Eq,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:zo+"=",dialogMessages:[{runs:[{text:Bg},
{text:$_},{text:lw}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Bg}]},serviceEndpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[sN],params:o6}},accessibility:{label:r2},trackingParams:zo+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Bg}]},accessibility:{label:pA},
trackingParams:zo+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:lw}},unsubscribeAccessibility:{accessibilityData:{label:$v}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:SI},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[sN],
params:o6}},unsubscribeCommand:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[sN],params:o6}},addToWatchLaterCommand:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Mj,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Mj}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+A+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+j6+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+A+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Mj,width:1280,
height:720},title:{simpleText:Vv},description:{simpleText:Vv},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+E3,externalChannelId:sN,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:wk,category:"Travel & Events",publishDate:Go,ownerChannelName:hT,uploadDate:Go}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:pA},trackingParams:zo+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Eq,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:zo+"="}}],headerText:{simpleText:r2},icon:{infoCardIconRenderer:{trackingParams:zo+"="}},closeButton:{infoCardIconRenderer:{trackingParams:zo+"="}},trackingParams:zo+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:zo+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Mj+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Sa,interpreterSafeUrl:(Wz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Ve+".js",Wz),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:vW},{text:wr,bold:!0}]},endpoint:{clickTrackingParams:Eq,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:zo+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:m5}]},actionButton:{buttonRenderer:{text:{runs:[{text:r2}]},navigationEndpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+A,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
A,target:"TARGET_NEW_WINDOW"}},trackingParams:zo+"="}},trackingParams:zo+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Z3+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Z3+"=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:wk,endMs:wk,title:{accessibility:{accessibilityData:{label:h3}},simpleText:Bg},metadata:{simpleText:Bg},callToAction:{simpleText:o6},dismiss:{simpleText:r2},endpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{url:"/channel/"+sN,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:sN}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:vW}]},subscribed:!1,enabled:!0,type:"FREE",channelId:sN,showPreferences:!1,
subscribedButtonText:{runs:[{text:E3}]},unsubscribedButtonText:{runs:[{text:hT}]},trackingParams:zo+"=",unsubscribeButtonText:{runs:[{text:$_}]},serviceEndpoints:[{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[sN],params:o6}},{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Eq,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:zo+
"=",dialogMessages:[{runs:[{text:Vv},{text:Mj},{text:PE}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:o6}]},serviceEndpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[sN],params:o6}},accessibility:{label:Vv},trackingParams:zo+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:wr}]},
accessibility:{label:EV},trackingParams:zo+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:$_}},unsubscribeAccessibility:{accessibilityData:{label:Mj}}}},trackingParams:zo+"=",isSubscribe:!0,id:Ld}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+A+"/hqdefault.jpg?sqp=-oaymwE"+j6+"G&rs="+a,width:168,height:94},{url:"https://i.ytimg.com/vi/"+A+"/hqdefault.jpg?sqp=-oaymwE"+j6+"G&rs="+aD,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+A+"/hqdefault.jpg?sqp=-oaymwE"+j6+"G&rs="+a,width:246,height:138},{url:"https://i.ytimg.com/vi/"+A+"/hqdefault.jpg?sqp=-oaymwE"+j6+"G&rs="+a,width:336,height:188},{url:"https://i.ytimg.com/vi/"+A+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:wk,endMs:wk,title:{accessibility:{accessibilityData:{label:m5}},simpleText:o6},metadata:{simpleText:vW},endpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Mj,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Mj,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+TW+".googlevideo.com/videoplayback?source=youtube&oeis="+KL+"&c=WEB&oad="+Fn+"&ovd="+Fn+"&oaad="+vE+"&oavd="+vE+"&ocs="+YU+"&oewis="+KL+"&oputc="+KL+"&ofpcc="+KL+"&siu="+KL+"&msp="+KL+"&odepv="+KL+
"&id=o-AF"+xT+"&ip="+$U+"&initcwndbps="+wk+"&mt="+HE+"&oweuc="+nC}}}}},trackingParams:zo+"=",id:Ld,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:m5}},simpleText:E3},style:"DEFAULT"}}]}}],startMs:wk,trackingParams:zo+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:KL,offsetEndMilliseconds:vE},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vG+";dc_trk_cid="+vG+";dc_dbm_token="+O+";ord="+HE+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KL+";dc_rui="+KL+";dc_exteid="+Ld+";dc_av="+YU+";dc_sk="+KL+";dc_ctype="+eL+";dc_ref=http://www.youtube.com/video/"+Mj+";dc_pubid="+KL+";dc_btype=23?gclid="+ov+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+KL+"&ns="+KL+"&event="+KL+"&device="+KL+"&content_v="+A+"&el="+Vv+"&ei="+k+"&devicever="+S+"&bti="+wk+"&format="+XP+"&break_type="+KL+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+KL+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+$U+"&slot_pos="+KL+"&slot_len="+KL+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+EN+"&ad_len="+vE+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Mj+"&aqi="+k+"&ad_rmp="+KL+"&sli="+KL}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+
";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+XP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+wk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&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"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&ctype="+YU+"&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"+
P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_engaged_view&ctype="+YU+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+XP+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
vG+";dc_trk_cid="+vG+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KL+";ord="+vG+";dc_rui="+KL+";dc_exteid="+xU+";dc_av="+KL+";dc_sk="+KL+";dc_ctype="+eL+";dc_pubid="+KL+";dc_btype=3?gclid="+ov+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+kp+"&ad_cpn=[AD_CPN]&id="+$v+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$v+"&dc_pubid="+KL+"&dc_exteid="+Ld+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+kp+"&ad_cpn=[AD_CPN]&id="+$v+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+KL},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$v+"&avm="+KL+"&dc_pubid="+KL+"&dc_exteid="+
Ld+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&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="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
F+"&sig="+kp+"&ad_cpn=[AD_CPN]&id="+$v+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+KL},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$v+"&dc_pubid="+KL+"&dc_exteid="+Ld+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+XP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+XP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Eq,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+
YU+"&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/"+A+"/mqdefault.jpg",width:320,height:180}]},trackingParams:zo+"="},trackingParams:zo+
"=",templatedCountdown:{templatedAdText:{text:m5,isTemplated:!0,trackingParams:zo+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Mj,isTemplated:!1,trackingParams:zo+"="},trackingParams:zo+"="}},trackingParams:zo+"=",skipOffsetMilliseconds:5E3}},trackingParams:zo+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:r2},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zo+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:PE,isTemplated:!1,trackingParams:zo+"="},trackingParams:zo+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:PE,isTemplated:!0,trackingParams:zo+"="}},trackingParams:zo+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Eq,openPopupAction:{popup:{aboutThisAdRenderer:{url:($A.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+D+"&hl="+rk+"&origin=www.youtube.com&ata_theme="+wr,$A),trackingParams:zo+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:zo+"="}},hoverText:{runs:[{text:h3}]},trackingParams:zo+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+iZ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zo+"="},headline:{text:o6,isTemplated:!1,trackingParams:zo+"="},description:{text:PE,
trackingParams:zo+"="},actionButton:{buttonRenderer:{text:{simpleText:Vv},navigationEndpoint:{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vG+";dc_trk_cid="+vG+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KL+";ord="+vG+";dc_rui="+KL+";dc_exteid="+Ld+";dc_av="+KL+";dc_sk="+KL+";dc_ctype="+eL+";dc_pubid="+KL+";dc_btype=3?gclid="+ov+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zo+"="}},startMs:KL,trackingParams:zo+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:wr},elementId:$v}},elementId:Bg,trackingParams:zo+"=",legacyInfoCardVastExtension:o6,sodarExtensionData:{siub:pA,bgub:$_,scs:Bg,bgp:m5},externalVideoId:Mj,adLayoutLoggingData:{serializedAdServingDataEntry:o6},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+iZ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zo+"="},
headline:{text:Vv,isTemplated:!1,trackingParams:zo+"="},description:{text:o6,isTemplated:!1,trackingParams:zo+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:m5},navigationEndpoint:{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vG+";dc_trk_cid="+vG+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KL+";ord="+vG+";dc_rui="+KL+";dc_exteid="+
Ld+";dc_av="+KL+";dc_sk="+KL+";dc_ctype="+eL+";dc_pubid="+KL+";dc_btype=3?gclid="+ov+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+
KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zo+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:zo+"="}},navigationEndpoint:{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vG+";dc_trk_cid="+
vG+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KL+";ord="+vG+";dc_rui="+KL+";dc_exteid="+Ld+";dc_av="+KL+";dc_sk="+KL+";dc_ctype="+eL+";dc_pubid="+KL+";dc_btype=3?gclid="+ov+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+
W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zo+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:zo+"="},abandonCommands:{commands:[{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&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="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+
KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Eq,commandExecutorCommand:{commands:[{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:lw,isTemplated:!1,trackingParams:zo+
"="},trackingParams:zo+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:wr},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+wk+";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="+vG+";dc_trk_cid="+vG+";ord="+HE+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KL+";dc_rui="+KL+";dc_exteid="+Ld+";dc_av="+YU+";dc_sk="+KL+";dc_ctype="+eL+";dc_ref=http://www.youtube.com/video/"+Mj+";dc_pubid="+KL+";dc_btype=23?gclid="+ov+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+KL+"&ns="+KL+"&event="+KL+"&device="+KL+"&content_v="+A+"&el="+Vv+"&ei="+k+"&devicever="+S+"&bti="+wk+"&format="+XP+"&break_type="+KL+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+KL+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+$U+"&slot_pos="+KL+"&slot_len="+KL+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
EN+"&ad_len="+vE+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Mj+"&aqi="+k+"&ad_rmp="+KL+"&sli="+KL}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+XP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+
E+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+wk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&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"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&ctype="+YU+"&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"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_engaged_view&ctype="+YU+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+XP+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+kp+"&ad_cpn=[AD_CPN]&id="+
$v+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$v+"&dc_pubid="+KL+"&dc_exteid="+Ld+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+
"&sig="+kp+"&ad_cpn=[AD_CPN]&id="+$v+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+KL},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$v+"&avm="+KL+"&dc_pubid="+KL+"&dc_exteid="+Ld+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&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="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+F+"&sig="+kp+"&ad_cpn=[AD_CPN]&id="+$v+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+KL},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+$v+"&dc_pubid="+KL+"&dc_exteid="+Ld+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+XP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+XP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+
YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&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/"+A+"/mqdefault.jpg",width:320,height:180}]},trackingParams:zo+"="},trackingParams:zo+"=",templatedCountdown:{templatedAdText:{text:$_,isTemplated:!0,trackingParams:zo+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:lw,isTemplated:!1,trackingParams:zo+"="},trackingParams:zo+"="}},
trackingParams:zo+"=",skipOffsetMilliseconds:5E3}},trackingParams:zo+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:m5},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zo+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:$_,isTemplated:!1,trackingParams:zo+"="},trackingParams:zo+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:hT,
isTemplated:!0,trackingParams:zo+"="}},trackingParams:zo+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Eq,openPopupAction:{popup:{aboutThisAdRenderer:{url:(DR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+D+"&hl="+rk+"&origin=www.youtube.com&ata_theme="+wr,DR),trackingParams:zo+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:zo+"="}},hoverText:{runs:[{text:o6}]},trackingParams:zo+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vg+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zo+"="},headline:{text:EV,isTemplated:!1,trackingParams:zo+"="},description:{text:PE,trackingParams:zo+"="},actionButton:{buttonRenderer:{text:{simpleText:o6},navigationEndpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zo+"="}},startMs:KL,trackingParams:zo+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:lw},elementId:r2}},elementId:PE,trackingParams:zo+"=",legacyInfoCardVastExtension:$_,sodarExtensionData:{siub:r2,bgub:$v,scs:r2,bgp:E3},externalVideoId:Mj,adLayoutLoggingData:{serializedAdServingDataEntry:EV},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vg+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zo+"="},headline:{text:r2,
isTemplated:!1,trackingParams:zo+"="},description:{text:o6,isTemplated:!1,trackingParams:zo+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Vv},navigationEndpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zo+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:zo+"="}},navigationEndpoint:{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+
KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zo+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:zo+"="},abandonCommands:{commands:[{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&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="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+eL+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Eq,commandExecutorCommand:{commands:[{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:m5,isTemplated:!1,trackingParams:zo+"="},trackingParams:zo+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:$_},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+KL+";dc_exteid="+Ld+";met="+KL+";ecn"+KL+"="+KL+";etm1="+KL+";eid1="+
wk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Mj}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:vE,offsetEndMilliseconds:XP},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+eL+"&token=ALHj"+q+"&index="+KL+"&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="+S+"&m_pos_ms="+vE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Mj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:XP,offsetEndMilliseconds:XP},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+YU+"&token=ALHj"+q+"&index="+KL+"&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="+
S+"&m_pos_ms="+XP}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:XP,offsetEndMilliseconds:XP},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+YU+"&token=ALHj"+q+"&index="+KL+"&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="+
S+"&m_pos_ms="+XP}},adSlotLoggingData:{serializedSlotAdServingDataEntry:hT}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:XP,offsetEndMilliseconds:XP},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+YU+"&token=ALHj"+q+"&index="+KL+"&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="+
S+"&m_pos_ms="+XP}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Vv}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:XP,offsetEndMilliseconds:eL},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+YU+"&token=ALHj"+q+"&index="+KL+"&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="+
S+"&m_pos_ms="+XP}},adSlotLoggingData:{serializedSlotAdServingDataEntry:wr}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:eL,offsetEndMilliseconds:eL},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+eL+"&token=ALHj"+q+"&index="+KL+"&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="+
S+"&m_pos_ms="+eL}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Mj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:EV,isTemplated:!1,trackingParams:zo+"="},description:{text:E3,isTemplated:!1,trackingParams:zo+"="},actionButton:{buttonRenderer:{text:{simpleText:E3},navigationEndpoint:{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
vG+";dc_trk_cid="+vG+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KL+";ord="+vG+";dc_rui="+KL+";dc_exteid="+Ld+";dc_av="+KL+";dc_sk="+KL+";dc_ctype="+eL+";dc_pubid="+KL+";dc_btype=3?gclid="+ov+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zo+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+iZ+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:zo+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+yX+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zo+"="},navigationEndpoint:{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vG+";dc_trk_cid="+vG+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KL+";ord="+vG+
";dc_rui="+KL+";dc_exteid="+Ld+";dc_av="+KL+";dc_sk="+KL+";dc_ctype="+eL+";dc_pubid="+KL+";dc_btype=3?gclid="+ov+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zo+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Eq,openPopupAction:{popup:{aboutThisAdRenderer:{url:(QO.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+D+"&hl="+rk+"&origin=www.youtube.com&ata_theme="+wr,QO),trackingParams:zo+"="}},popupType:"DIALOG"}},trackingParams:zo+"="}},hoverText:{runs:[{text:$v}]},trackingParams:zo+"="}},adVideoId:Mj,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:$_},associatedCompositePlayerBytesLayoutId:pA}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:$_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:m5,isTemplated:!1,trackingParams:zo+"="},description:{text:Mj,isTemplated:!1,trackingParams:zo+"="},actionButton:{buttonRenderer:{text:{simpleText:Mj},navigationEndpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+
W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zo+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vg+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:zo+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+FG+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zo+"="},navigationEndpoint:{clickTrackingParams:Eq,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+
KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zo+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Eq,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ke.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+D+"&hl="+rk+"&origin=www.youtube.com&ata_theme="+wr,ke),trackingParams:zo+"="}},popupType:"DIALOG"}},trackingParams:zo+"="}},
hoverText:{runs:[{text:o6}]},trackingParams:zo+"="}},adVideoId:Mj,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+Mj+"&cid="+E+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:vW},associatedCompositePlayerBytesLayoutId:pA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:o6}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:E3,
isTemplated:!1,trackingParams:zo+"="},description:{text:wr,isTemplated:!1,trackingParams:zo+"="},actionButton:{buttonRenderer:{text:{simpleText:h3},navigationEndpoint:{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vG+";dc_trk_cid="+vG+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KL+";ord="+vG+";dc_rui="+KL+";dc_exteid="+Ld+";dc_av="+KL+";dc_sk="+KL+";dc_ctype="+
eL+";dc_pubid="+KL+";dc_btype=3?gclid="+ov+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+
a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zo+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+iZ+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:zo+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+yX+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zo+
"="},navigationEndpoint:{clickTrackingParams:Eq,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+vG+";dc_trk_cid="+vG+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+KL+";ord="+vG+";dc_rui="+KL+";dc_exteid="+Ld+";dc_av="+KL+";dc_sk="+KL+";dc_ctype="+eL+";dc_pubid="+KL+";dc_btype=3?gclid="+ov+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+W+"AxAA&ase=2&num="+KL+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+a+"&adurl="+CA+"&label=video_click_to_advertiser_site&ctype="+YU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zo+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Eq,openPopupAction:{popup:{aboutThisAdRenderer:{url:(oH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+D+"&hl="+rk+"&origin=www.youtube.com&ata_theme="+wr,oH),trackingParams:zo+"="}},popupType:"DIALOG"}},trackingParams:zo+
"="}},hoverText:{runs:[{text:$_}]},trackingParams:zo+"="}},adVideoId:Mj,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+W+"AxAA&sigh="+A+"&cid="+E+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:vW},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:pA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Vv}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Ve,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Ve,command:{innertubeCommand:{clickTrackingParams:Eq,ypcGetOfflineUpsellEndpoint:{params:UT}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:zo+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:HE,nanos:ON}}}},Cc=JSON.stringify(Cz),sT=performance.now()-p;return{objectRepresentation:Cz,jsonRepresentation:Cc,generationTime:sT}};
HBi=function(p,J){if(p===J)return!0;if(!p||!J||typeof p!==typeof J)return!1;if(p instanceof Array&&J instanceof Array){if(p.length!==J.length)return!1;for(var S=0;S<p.length;S++)if(!HBi(p[S],J[S]))return!1;return!0}if(typeof p==="object"&&typeof J==="object"&&p&&J){for(S in p)if(!(S in J&&HBi(p[S],J[S])))return!1;for(var H in J)if(!(H in p))return!1;return!0}return!1};
_.SS=function(){if(!Jc){Jc=new o7(new MdX);var p=_.PO("client_streamz_web_flush_count",-1);p!==-1&&(Jc.invocationLimit=p)}return Jc};
Ht=function(p,J,S,H){if(p===J)return!0;if(Array.isArray(p)&&Array.isArray(J)){if(p.length!==J.length)return!1;for(var M=0;M<p.length;M++)if(!Ht(p[M],J[M],S,H))return!1;return!0}if(p instanceof Set||J instanceof Set){if(p instanceof Set&&J instanceof Set){if(p.size!==J.size)return!1;H=_.K(p.values());for(M=H.next();!M.done;M=H.next())if(!J.has(M.value))return!1;return!0}return!1}if(p instanceof Function){if(H)return!0;p.name===""&&_.jD(Error("Qf"),"ERROR");return!1}if(p instanceof Date&&J instanceof
Date)return p.getTime()===J.getTime();if(p instanceof Object&&J instanceof Object){if(Xwt(p)&&Xwt(J))try{return p.equals(J)}catch(Z){_.jD(Error("Rf`"+Z),"ERROR")}M=Object.getOwnPropertyNames(p).filter(function(Z){return S?p[Z]!==void 0:!0});
var X=Object.getOwnPropertyNames(J).filter(function(Z){return S?J[Z]!==void 0:!0});
if(M.length!==X.length)return!1;M=_.K(M);for(X=M.next();!X.done;X=M.next())if(X=X.value,!Ht(p[X],J[X],S,H))return!1;return!0}return!1};
Xwt=function(p){p=Object.getPrototypeOf(p).equals;return p instanceof Function&&p.length===1};
_.KnL=function(){return _.G(function(p){if(p.nextAddress==1)return iBi!==2?p.jumpTo(2):p.yield(RP9(),3);p.nextAddress!=2&&(iBi=p.yieldResult);return p.return(iBi)})};
_.G23=function(){return _.G(function(p){if(p.nextAddress==1)return _.z("ab_pl_man")?ZBX!==2?p.jumpTo(2):p.yield(nBv(),3):p.return(1);p.nextAddress!=2&&(ZBX=p.yieldResult);return p.return(ZBX)})};
Fng=function(){return _.G(function(p){if(p.nextAddress==1)return _.z("ab_fk_sk_cl")?bBw!==2?p.jumpTo(2):p.yield(m_9(),3):p.return(1);p.nextAddress!=2&&(bBw=p.yieldResult);return p.return(bBw)})};
_.OB4=function(){return _.G(function(p){if(p.nextAddress==1)return _.z("ab_det_apb_b")?vBs!==2?p.jumpTo(2):p.yield(fhg(),3):p.return(1);p.nextAddress!=2&&(vBs=p.yieldResult);return p.return(vBs)})};
zPt=function(){var p;return _.G(function(J){if(J.nextAddress==1)return J.yield(Promise.all([_.KnL(),_.OB4(),_.G23(),Fng()]),2);if(J.nextAddress!=3)return AYw()?J.return(!0):J.yield(_.PGw(),3);p=J.yieldResult;return J.return(p===0)})};
AYw=function(){var p=!1,J=function(S,H){$_4.increment(H,S);S===0&&(p=!0)};
J(_.oBk(),"j.s_");J(iBi,"f.i_");J(vBs,"a.b_");J(ZBX,"p.m_");J(bBw,"i.f_");ePW===2&&(ePW=_.Wni(QGg));J(ePW,"e.h_");_.z("ks_det_gpbl")||J(_.CGW(),"p.i_");_.z("ks_get_o_pp")||J(_.yY3(),"g.o_");_.z("ab_deg_unex_thr")||J(_.BvL(),"a.o_");J(U_w,"s.t_");_.z("ab_det_sc_inj_enf")&&J(_.sG9(),"s.i_");J(gBk,"d.p_");J(_.tdX(_.Mc),"o.p_");J(_.hPX()===0?0:_.D_i(),"o.a_");return _.z("debug_sk_em_precheck")?!0:p};
Nv3=function(){var p=[].concat(_.dW(k2i));try{var J=S8W();p.push({jsonRepresentation:J.jsonRepresentation,objectRepresentation:J.objectRepresentation})}catch(S){p=[].concat(_.dW(k2i))}return p};
Tvw=function(){var p=["adPlacements","adSlots"];try{return p.filter(function(){return!0}).length!==p.length?0:1}catch(J){return 0}};
_.yY3=function(){if(Tvw()===0)return 0;var p=S8W(),J=p.objectRepresentation,S=(0,_.T6.unsafeClone)(J),H=[];if(J&&typeof J==="object")for(var M in J)H.push(M);else return 4;p=p.objectRepresentation.adPlacements;if(!(p&&p.length>0))return 4;try{if(!HBi(H,Object.getOwnPropertyNames(J)))return 0}catch(X){return 0}return HBi(S,J)?1:0};
_.tdX=function(p){if(!p||!p.length||typeof p==="string")return 0;for(var J=Object.getOwnPropertyNames(Object.prototype),S=0;S<p.length;S++)for(var H=_.cq(p[S]),M=_.K(J),X=M.next();!X.done;X=M.next())if(H===X.value)return 0;return 1};
d_4=function(p){var J=_.cq(p[1]);if(p[0]===null)return J;p=p[0];for(var S={},H=0;H<p.length;H++){var M=_.cq(p[H]);if(H===0)S[M]=J;else{var X={};X[M]=S;S=X}}return S};
_.hPX=function(){for(var p=_.XV,J=0;J<p.length;J++){var S=d_4(p[J]),H=[];H.push(S);if(H.length===0)return 0}return 1};
_.D_i=function(){for(var p=_.XV,J={},S=0;S<p.length;J={gSh:void 0},S++){var H=[d_4(p[S])];J.gSh=[];H.forEach(function(M){return function(X){M.gSh[M.gSh.length]=X}}(J));
if(J.gSh.length===0)return 0}return 1};
_.oBk=function(){for(var p=_.K(Nv3()),J=p.next();!J.done;J=p.next()){var S=J.value;J=S.jsonRepresentation;S=S.objectRepresentation;try{var H=JSON.parse(J);if(!Ht(H,S,!1,!1))return 0}catch(M){return 0}}return 1};
_.sG9=function(){try{var p=_.oy("ab_det_sc_inj_val");p.length===1&&p[0]===""&&(p=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var J=document.querySelectorAll("script"),S=_.K(J),H=S.next();!H.done;H=S.next())for(var M=H.value,X=_.K(p),Z=X.next();!Z.done;Z=X.next()){var n=Z.value;J=void 0;if((J=M.textContent)==null?0:J.includes(n))return 0}}catch(b){return 4}return 1};
_.PGw=function(){var p,J,S,H,M,X,Z;return _.G(function(n){switch(n.nextAddress){case 1:_.oI(n,2),p=_.K(k2i),J=p.next();case 4:if(J.done)return n.return(1);H=S=J.value;M=H.jsonRepresentation;X=H.objectRepresentation;return n.yield((new Response(M,{status:200})).json(),7);case 7:Z=n.yieldResult;if(!Ht(Z,X,!1,!1))return n.return(0);J=p.next();n.jumpTo(4);break;case 2:return _.BZ(n),n.return(4)}})};
_.BvL=function(){try{btoa("abc")}catch(p){return 0}return 1};
RP9=function(){var p,J,S,H,M,X,Z,n,b,F,f;return _.G(function(O){switch(O.nextAddress){case 1:_.oI(O,2),p=_.K(Nv3()),J=p.next();case 4:if(J.done)return O.return(1);H=S=J.value;M=H.jsonRepresentation;X=H.objectRepresentation;Z=btoa(M);n="data:application/json;base64,"+Z;b=new Request(n);Object.defineProperty(b,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(b,"method",{get:function(){return"POST"}});
Object.defineProperty(b,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(b,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(b,"body",{get:function(){return new ReadableStream}});
return O.yield(fetch(b),7);case 7:return F=O.yieldResult,O.yield(F.json(),8);case 8:f=O.yieldResult;if(!Ht(f,X,!1,!1))return O.return(0);J=p.next();O.jumpTo(4);break;case 2:return _.BZ(O),O.return(4)}})};
_.Wni=function(p){if(!p||!p.length||typeof p==="string")return 0;for(var J=function(M){return _.cq(M)},S=2,H=0;H<p.length&&(S=_.uEi(_.pwv(p[H],J)),S!==0);H++);
return S};
_.uEi=function(p){var J=_.K(p);p=J.next().value;J=J.next().value;try{var S=document.createElement("div");document.body.appendChild(S);var H=getComputedStyle(S).display;document.body.removeChild(S);if(H==="none")return 4;var M=getComputedStyle(J).display==="none"?0:1;document.body.removeChild(p);return M}catch(X){return 4}};
m_9=function(){var p,J,S;return _.G(function(H){p=new _.iy;J=document.createElement("button");J.classList.add("ytp-ad-skip-button");J.style.opacity="0";J.style.height="0px";J.style.width="0px";J.style.padding="0px";J.style.border="none";S=function(){J.parentElement&&J.parentElement.removeChild(J)};
J.onclick=function(){p.resolve(0);S()};
document.body.appendChild(J);setTimeout(function(){S();p.resolve(1)},50);
return H.return(p.promise)})};
nBv=function(){var p,J,S,H,M,X,Z;return _.G(function(n){p=new _.iy;J=document.createElement("ytd-player");try{document.body.prepend(J)}catch(b){return n.return(4)}S=function(){J.parentElement&&J.parentElement.removeChild(J)};
J.getElementsByTagName("div").length>0?H=J.getElementsByTagName("div")[0]:(H=document.createElement("div"),J.appendChild(H));M=document.createElement("div");H.appendChild(M);X=document.createElement("video");Z=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"});X.src=_.Tu(_.qG(Z));X.ontimeupdate=function(){S();p.resolve(0)};
M.appendChild(X);X.classList.add("html5-main-video");setTimeout(function(){M.classList.add("ad-interrupting")},200);
setTimeout(function(){S();p.resolve(1)},5E3);
return n.return(p.promise)})};
lhk=function(p){var J=S8W().objectRepresentation.playbackTracking;if(J){var S=[],H;S.push(J==null?void 0:(H=J.videostatsPlaybackUrl)==null?void 0:H.baseUrl);var M;S.push(J==null?void 0:(M=J.videostatsDelayplayUrl)==null?void 0:M.baseUrl);var X;S.push(J==null?void 0:(X=J.videostatsWatchtimeUrl)==null?void 0:X.baseUrl);var Z;S.push(J==null?void 0:(Z=J.ptrackingUrl)==null?void 0:Z.baseUrl);var n;S.push(J==null?void 0:(n=J.qoeUrl)==null?void 0:n.baseUrl);var b;S.push(J==null?void 0:(b=J.atrUrl)==null?
void 0:b.baseUrl);J=_.K(S);for(S=J.next();!S.done;S=J.next())if((S=S.value)&&p.test(S))return S.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
VdL=function(p,J){var S,H;return _.G(function(M){switch(M.nextAddress){case 1:S=[],H=0;case 2:if(!(H<3)){M.jumpTo(4);break}return M.yield(fetch(p,{cache:"no-store",method:J}).then(function(X){S.push(X.status)}).catch(function(){S.push(-1)}),3);
case 3:H++;M.jumpTo(2);break;case 4:return M.return(S)}})};
q8v=function(p){return p.domainLookupStart===0&&p.domainLookupEnd===0&&p.connectStart===0&&p.connectEnd===0||p.duration===0};
ahs=function(p,J,S){S=S===void 0?"GET":S;var H,M,X,Z,n,b,F,f,O,A;return _.G(function(P){if(P.nextAddress==1)return P.yield(Promise.all([VdL(p,S),VdL(J,S)]),2);H=P.yieldResult;M=_.K(H);X=M.next().value;Z=M.next().value;n=X;b=Z;if(Math.min.apply(Math,_.dW(b))!==Math.max.apply(Math,_.dW(b))||Math.min.apply(Math,_.dW(n))!==Math.max.apply(Math,_.dW(n)))return P.return(2);if(Math.min.apply(Math,_.dW(b))===Math.min.apply(Math,_.dW(n)))return P.return(1);f=(F=performance.getEntriesByName(p))==null?void 0:
F[0];A=(O=performance.getEntriesByName(J))==null?void 0:O[0];return f&&A?q8v(A)?P.return(1):q8v(f)?P.return(0):P.return(1):P.return(2)})};
fhg=function(){var p;return _.G(function(J){var S=[];var H;var M,X,Z;(M=H=(M=S8W().objectRepresentation.streamingData)==null?void 0:(X=M.formats)==null?void 0:(Z=X[0])==null?void 0:Z.url)&&M&&!H.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(M=M.replace("initcwndbps","ctier=L&initcwndbps"),M=M.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),H={testUrl:M,baseUrl:H,method:"GET"}):H=void 0;H&&S.push(H);_.z("ab_net_tp_e")&&S.push({testUrl:_.Hg.location.origin+"/ad_companion",baseUrl:_.Hg.location.origin+
"/generate_204",method:"OPTIONS"});_.z("ab_fix_creator_view_cnt")&&(S.length=0,(H=lhk(/api\/stats\/atr/))&&S.push({testUrl:_.Hg.location.origin+H,baseUrl:_.Hg.location.origin+"/generate_204",method:"POST"}));_.z("ad_net_pb_pbp")&&(H=lhk(/api\/stats\/qoe/))&&S.push({testUrl:_.Hg.location.origin+H,baseUrl:_.Hg.location.origin+"/feed/download",method:"GET"});S=S.length!==0?S[Math.floor(Math.random()*S.length)]:void 0;return(p=S)?J.return(ahs(p.testUrl,p.baseUrl,p.method)):J.return(4)})};
_.CGW=function(){if(_.Hg.oWv===void 0||_.Hg.oWv===null||typeof _.Hg.oWv!=="function")return 2;try{return _.Hg.oWv()===!0?0:1}catch(p){return 0}};
EBv=function(p){switch(p){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.rm(p,"unknown result type")}};
_.Y8s=function(p,J){var S=Number(_.jn("CATSTAT",0));if(J.xmc===void 0)return S;J=J.xmc;p=EBv(p);return S&~(3<<J)|p<<J};
rYk=function(p){var J,S;if((p=(J=p.auxiliaryUi)==null?void 0:(S=J.messageRenderers)==null?void 0:S.bkaEnforcementMessageViewModel)&&p.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return p};
wwi=function(){for(var p=_.K(Object.values(_.jGg)),J=p.next();!J.done;J=p.next())J=J.value,J.yDF&&J.xmc&&_.rY("CATSTAT",_.Y8s(2,J))};
_.Zc=function(p,J){p=_.Rs("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",p);(J===void 0?0:J)?_.x_v(p,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Ky().logFlowEvent(p,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Ihi=function(){if(!cYW){if(Polymer.Base){var p=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{p.apply(this,arguments)}catch(O){_.xv(O)}};
var J=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{J.apply(this,arguments)}catch(O){_.xv(O)}};
var S=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{S.apply(this,arguments)}catch(O){_.xv(O)}};
var H=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{H.apply(this,arguments)}catch(O){_.xv(O)}};
var M=Polymer.Base._listen,X=new WeakMap;Polymer.Base._listen=function(O,A,P){var W=function(){try{P.apply(this,arguments)}catch(y){_.xv(y)}};
X.set(P,W);M.call(this,O,A,W)};
var Z=Polymer.Base._unlisten;Polymer.Base._unlisten=function(O,A,P){Z.call(this,O,A,X.get(P))}}if(Polymer.Async){var n=Polymer.Async,b=n._atEndOfMicrotask;
n._atEndOfMicrotask=function(){try{b.apply(n,arguments)}catch(O){_.xv(O)}}}if(Polymer.RenderStatus){var F=Polymer.RenderStatus,f=F.afterNextRender;
F.afterNextRender=function(O,A,P){f.call(F,O,function(){try{A.apply(this,arguments)}catch(W){_.xv(W)}},P)}}cYW=!0}};
_.p2X=function(p){var J=p?_.yn(p):"";if(J){if(J.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(J.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(J.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(J.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(J.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.z("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(J.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";J=J.toLowerCase();if(J==="/")return"home";if(J==="/channel_memberships")return"channel-memberships-shopfront";if(J.indexOf("/feed/trending")===0)return"trending";if(J.indexOf("/feed/explore")===0)return"explore";if(J.indexOf("/live")===0)return"live";if(J.indexOf("/results")===0)return"search";if(J.indexOf("/sports")===0)return"sports";if(J.indexOf("/fashion")===0||J.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(J))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(J))return _.z("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(J.indexOf("/channel/")===0||J.indexOf("/user/")===0||J.indexOf("/gaming")===0||J.indexOf("/post/")===0)return"channel";if(LnW(p))return"show";if(J==="/playlist"||J.indexOf("/playlist/")===0||J==="/view_play_list"||J.indexOf("/view_play_list/")===0||J.indexOf("/show/")===0)return"playlist";if(J==="/companion_canvas")return"companion-canvas";if(J==="/feed/history"||
J.indexOf("/feed/history/")===0)return"history";if(J==="/new")return"labs";if(J==="/feed/subscriptions")return"subscriptions";if(J.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(J==="/history_controls")return"standalone";if(J.indexOf("/account")===0||J==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(J.indexOf("/paid_memberships")===0||J.indexOf("/refund")===0||J.indexOf("/purchases")===0||J.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(J.indexOf("/product")===
0)return"yts-products";if(J.indexOf("/premium")===0||J.indexOf("/musicpremium")===0)return J.indexOf("/premium/offers")===0||J.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(J==="/cart/checkout"||J==="/cart")return"ypc-checkout";if(J.indexOf("/reporthistory")===0)return _.z("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(J.indexOf("/feed/downloads")===0||J.indexOf("/redeem")===0)return"browse";if(J.indexOf("/hashtag")===0)return"hashtag-landing-page";if(J.indexOf("/handle")===
0)return"handle";if(J.indexOf("/source")===0)return"audio-pivot";if(J.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(J.indexOf("/playables")===0)return"playables";if(J.indexOf("/create/live/join")===0)return"open-in-app";if(J.indexOf("/shorts")===0)return"shorts";if(J.indexOf("/feed/channels")===0)return"subscriptions-channels";var S=p?_.yn(p):"";S&&S.indexOf("/watch")===0&&_.z("web_watch_enable_learning_journey")?(p=_.ih(p),p=!!p.list&&p.list.indexOf("LJPP")===0):p=!1;if(p)return"learning_journey_watch";
if(_.z("enable_new_page_subtypes_for_ai_companion")&&J==="/feed/courses")return"your-courses"}};
_.ny=function(p){var J,S;(p=(S=_.e(p==null?void 0:p.commandMetadata,_.i7))==null?void 0:S.url)&&(J=_.p2X(p));return J};
LnW=function(p){var J=p?_.yn(p):"";if(!J)return!1;J=J.toLowerCase();return J.indexOf("/show/")===0||J.indexOf("/playlist")===0&&(p=_.ih(p),p.list&&p.list.indexOf("EL")===0)?!0:!1};
mu=function(p){var J="unknown",S;var H=((S=_.e(p==null?void 0:p.commandMetadata,_.i7))==null?void 0:S.webPageType)||"";H?(S=H.toLowerCase(),S.startsWith("web_page_type_")&&(S=S.slice(14))):S=H;S&&JOi[S.toUpperCase()]?J=JOi[S.toUpperCase()]:_.e(p,_.Ge)||_.e(p,Sz4)?J="browse":_.e(p,_.by)?J="search":_.e(p,_.lj)&&(J="watch");J==="watch"&&_.ny(p||null)==="learning_journey_watch"&&(J="learning_journey_watch");J==="unknown"&&_.xQ(Error("Tf`"+JSON.stringify({clickTrackingParams:p==null?void 0:p.clickTrackingParams,
commandMetadata:p==null?void 0:p.commandMetadata,allEndpointKeys:Object.keys(p||[])})));return J};
_.FV=function(p){if(!_.HFg||p)_.HFg=_.Bs();return _.HFg};
_.MZ3=function(p){return!!_.e(p,_.lj)||!!_.e(p,_.vt)&&_.z("kevlar_enable_shorts_prefetch")};
_.X2k=function(p,J){p=_.e(p,_.lj)||_.e(p,_.vt);return"v"+p.videoId+(p.playlistId?"-pl"+p.playlistId:"")+(J?"-an1":"")+(p.params?"-pr"+p.params:"")};
_.iFt=function(p){var J=new fy(_.jn("ONE_PICK_URL",""));J.urlParamMap_.set("hostId",p);(p=_.jn("GAPI_LOCALE"))&&J.urlParamMap_.set("hl",p);(p=_.jn("SESSION_INDEX"))&&J.urlParamMap_.set("authuser",p);(p=_.jn("DELEGATED_SESSION_ID"))&&J.urlParamMap_.set("groupId",p);return J};
Kxt=function(){var p=_.vO(),J=p.resolve(_.Or);p=p.resolve(_.Ac);return new RJv(J,p)};
nAw=function(p){if(window.IntersectionObserver)return new ZFL(p,400);throw new TypeError("Vf");};
bFX=function(){var p=Hammer.TouchAction,J=p.prototype.preventDefaults;p.prototype.preventDefaults=function(S){var H=this.actions.indexOf("pan-down")>-1;if(!H)return J.call(this,S);if(!GKL){var M=S.srcEvent;S=S.direction;var X;if((X=this.manager)==null?0:X.session.prevented)M.preventDefault();else if(H&&S&Hammer.DIRECTION_DOWN)return this.preventSrc(M)}}};
mfi=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};
_.vAX=function(){return Fx3?Promise.resolve(Fx3):new Promise(function(p,J){var S=self.indexedDB.open("swpushnotificationsdb");S.onerror=J;S.onsuccess=function(){var H=S.result;if(H.objectStoreNames.contains("swpushnotificationsstore"))Fx3=H,p(Fx3);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.vAX()};
S.onupgradeneeded=f2X})};
f2X=function(p){p=p.target.result;p.objectStoreNames.contains("swpushnotificationsstore")&&p.deleteObjectStore("swpushnotificationsstore");p.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.ze=function(p,J,S){var H=S&&S>0?S:0;S=H?Date.now()+H*1E3:0;if((H=H?_.Pt.getLocalStorage():_.Pt.getSessionStorage())&&window.JSON){typeof J!=="string"&&(J=JSON.stringify(J,void 0));try{H.set(p,J,S)}catch(M){H.remove(p)}}};
_.$t=function(p){var J=_.Pt.getSessionStorage(),S=_.Pt.getLocalStorage();if(!J&&!S||!window.JSON)return null;try{var H=J.get(p)}catch(M){}if(typeof H!=="string")try{H=S.get(p)}catch(M){}if(typeof H!=="string")return null;try{H=JSON.parse(H,void 0)}catch(M){}return H};
_.eS=function(p){try{var J=_.Pt.getSessionStorage(),S=_.Pt.getLocalStorage();J&&J.remove(p);S&&S.remove(p)}catch(H){}};
AO4=function(p){var J=OFv(),S;return _.G(function(H){switch(H.nextAddress){case 1:return _.oI(H,2),H.yield(p.match(J,{cacheName:"yt-appshell-assets"}),4);case 4:S=H.yieldResult;_.X$(H,3);break;case 2:_.BZ(H);case 3:return H.return(S)}})};
OFv=function(){var p=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?PFX.registration.scope:zJW;p.endsWith("/")&&(p=p.slice(0,-1));return p+"/app_shell_home"};
$f9=function(p){p.map(function(J){return J.source}).join("|")};
_.oAL=function(p){return _.G(function(J){return J.return(AO4(p))})};
eJX=function(){var p=window.caches,J;return _.G(function(S){if(S.nextAddress==1)return S.yield(_.oAL(p),2);J=S.yieldResult;return S.return(!!J)})};
sHX=function(){_.G(function(p){if(p.nextAddress==1){if(WxX)return p.jumpTo(0);WxX=!0;if(_.z("enable_system_health_primes_monitoring"))return _.Qn(QHX,3E4),CFg(),p.return();if(!(Math.random()<_.PO("web_system_health_fraction")))return p.jumpTo(0);yOg={heightPixels:screen.height,widthPixels:screen.width};Wt&&!isNaN(Wt.jsHeapSizeLimit)&&(yOg.memoryTotalKbytes=String(Math.round(Wt.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(yOg.devicePixelRatio=window.devicePixelRatio);return p.yield(BXL(),4)}_.Qn(QHX,
3E4);return p.yield(Ufg(),0)})};
BXL=function(){return _.G(function(p){if(p.nextAddress==1)return Qi.intersectionObserverPresent="IntersectionObserver"in window,Qi.serviceWorkerPresent="serviceWorker"in navigator,Qi.webSharePresent="share"in navigator,Qi.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Qi.cacheStoragePresent="caches"in window,Qi.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Qi.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Qi.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Cy&&Cy.webkitTemporaryStorage&&"queryUsageAndQuota"in Cy.webkitTemporaryStorage,Qi.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",p.yield(fYX(),2);Qi.indexedDbPresent=p.yieldResult;Qi.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Qi.broadcastChannelPresent="BroadcastChannel"in window;Qi.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Qi.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Qi.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.UK(p)})};
QHX=function(){var p=9E4+Math.random()*2E3;_.AV()>p||(_.z("enable_system_health_primes_monitoring")?CFg():Ufg())};
Ufg=function(){var p;return _.G(function(J){if(J.nextAddress==1)return J.yield(gAW(),2);p=J.yieldResult;_.YQ("systemHealthCaptured",p);_.UK(J)})};
CFg=function(){var p={metric:{}},J=tZ4();J.networkEvents.length&&(p.metric.networkEvents=hJL(J));_.YQ("systemHealthCaptured",p)};
gAW=function(){var p,J,S,H,M,X,Z,n,b,F;return _.G(function(f){switch(f.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)};J=window.screen;_.z("enable_is_extended_monitoring")&&J&&"isExtended"in J&&(p.isExtended=!!J.isExtended);S={metric:{staticContext:yOg,dynamicContext:p,webMetric:Dfi,webApiSupport:Qi}};
if(H=_.C1())S.csn=H;Wt&&(S.metric.webMetric.currentHeapKbytes=Math.round(Wt.usedJSHeapSize/1E3));window.matchMedia&&(S.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,S.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,S.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Cy&&typeof Cy.getBattery==="function")){f.jumpTo(2);break}return f.yield(Cy.getBattery(),3);case 3:if(M=
f.yieldResult)S.metric.dynamicContext.chargingStatus=M.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(S.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Qi.storageEstimatePresent)return f.yield(navigator.storage.estimate(),8);if(!Qi.webkitTemporaryStoragePresent){f.jumpTo(5);break}return f.yield(kKw(),7);case 7:X=f.yieldResult;f.jumpTo(5);break;case 8:X=f.yieldResult;case 5:return S.metric.dynamicContext.deviceStorageQuotaMbytes=((Z=X)==null?0:Z.quota)?String(Math.round(X.quota/
1048576/10)*10):"-1",S.metric.dynamicContext.deviceStorageUsageMbytes=((n=X)==null?0:n.usage)?String(Math.round(X.usage/1048576/10)*10):"-1",b=S.metric.dynamicContext,f.yield(eJX(),9);case 9:return b.hasAppShell=f.yieldResult,F=tZ4(),F.networkEvents.length&&(S.metric.networkEvents=hJL(F)),f.return(S)}})};
kKw=function(){return new Promise(function(p){var J;Qi.webkitTemporaryStoragePresent&&(J=Cy.webkitTemporaryStorage)!=null&&J.queryUsageAndQuota?Cy.webkitTemporaryStorage.queryUsageAndQuota(function(S,H){p({usage:S,quota:H})}):p(void 0)})};
_.yi=function(p){p&=16777215;p=[(p&16711680)>>16,(p&65280)>>8,p&255];return NXX(p[0],p[1],p[2])};
_.Bt=function(p){p=[(p&16711680)>>>16,(p&65280)>>>8,p&255,(p&4278190080)>>>24];if(!_.TX4(p,function(J){return J===(J&255)}))throw Error("Wf`"+p.join(","));
return"rgba("+p[0]+","+p[1]+","+p[2]+","+(p[3]/255).toFixed(3)+")"};
_.dfs=function(p){return[(p&16711680)>>>16,(p&65280)>>>8,p&255]};
_.uqL=function(p){p=p.map(function(J){J/=255;return J<=.03928?J/12.92:Math.pow((J+.05)/1.05,2.4)});
return p[0]*.2126+p[1]*.7152+p[2]*.0722};
Ur=function(p,J){p=_.dfs(p);return"rgba("+p[0]+", "+p[1]+", "+p[2]+", "+J+")"};
sr=function(p){return(p&4278190080)>>>24===0?Ur(p,"1"):_.Bt(p)};
_.l2X=function(){try{return!!self.localStorage}catch(p){return!1}};
EAv=function(){if(VZ9())_.xQ(Error("Xf"));else{var p=document.createElement("iframe");p.style.display="none";var J=J===void 0?window.location.href:J;var S=_.x_(_.jn("PERSIST_IDENTITY_IFRAME_URL"));J=S?S:(new URL(J)).host.indexOf("studio")===0?_.fA(qzX,"persist_identity"):_.fA(a2s,"persist_identity");_.p_(p,1,J);p.id="persist_identity";var H;(H=document.body)==null||H.appendChild(p)}};
VZ9=function(){var p=YzW;p||(p=document.querySelector("#persist_identity"));return p};
rOX=function(){var p=!1;try{p=!!window.sessionStorage.getItem("session_logininfo")}catch(J){p=!0}return(_.jn("INNERTUBE_CLIENT_NAME")==="WEB"||_.jn("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&p};
jH9=function(p,J){if(!rOX())return!1;J||(J=_.jn("LOGIN_INFO"));return J?(p.session_logininfo=J,!0):!1};
xfi=function(p,J){p=p===void 0?!1:p;if((J===void 0||!J)&&w2s!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.wY("LOG_STICKINESS",!1)){J=_.C1();var S=_.Wf(),H={identityStickinessData:{initialState:w2s}};J&&S&&_.qq(J,S,H)}if(J=VZ9())if(S=J.src?(new URL(J.src)).origin:"*",p){var M;(M=J.contentWindow)==null||M.postMessage({action:"clear"},S)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(p=window.sessionStorage.getItem("session_logininfo"))){var X;(X=J.contentWindow)==null||X.postMessage({loginInfo:p},S)}};
_.go=function(p){p=p===void 0?!0:p;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.rY("LOGIN_INFO",""),p&&window.sessionStorage.setItem("from_switch_account","1"),xfi(!0,p)}catch(J){}};
cOi=function(p){p&&(p.startsWith("https://accounts.google.com/AddSession")?_.go():p.startsWith("https://accounts.google.com/ServiceLogin")?_.go():p.startsWith("https://myaccount.google.com")&&_.I7(p).getPath().endsWith("/youtubeoptions")&&_.go())};
tc=function(p,J){cOi(p);if(_.wY("LOGGED_IN",!0)&&rOX()){var S=cQX(p);S==null&&(S={});jH9(S,J)&&_.EB(p,S)}};
I2g=function(){function p(J){for(J=J.target;J&&J.nodeName!=="A";)if(J=J.parentNode,!(J&&J instanceof HTMLElement))return;if(J&&!J.hasAttribute("download")&&J.getAttribute("rel")!=="external"&&J.href)return J.href}
document.addEventListener("mousedown",function(J){J.button!==0&&(J=p(J))&&tc(J)});
document.addEventListener("click",function(J){(J=p(J))&&tc(J)})};
Jo3=function(){var p=new LxW;try{if(_.wY("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(n){p.increment(5,!1);return}if(_.jn("LOGIN_INFO")){var J=pCW?pCW:window.location;_.jn("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&EAv();var S=cQX(J.href);S==null&&(S={});var H=S.session_logininfo,M=Number(window.sessionStorage.getItem("stickiness_reload")),X=H===_.jn("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
M>=2||X)M>=2?p.increment(2,X):X?p.increment(7,X):window.sessionStorage.getItem("session_logininfo")||(p.increment(3,X),w2s="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.jn("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.jn("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))p.increment(4,X),window.sessionStorage.removeItem("stickiness_reload");
else if(M<2){window.sessionStorage.setItem("stickiness_reload",String(M+1));var Z=J.href;Z=_.YV(Z,"sttick");tc(Z,window.sessionStorage.getItem("session_logininfo"));Z=_.Ry(Z,{sttick:M});p.increment(M,X);_.Aui(J,Z)}}else p.increment(6,!1)}else _.go(!1)}catch(n){}};
_.hc=function(p,J,S,H,M){J=J===void 0?{}:J;S=S===void 0?"":S;H=H===void 0?window:H;p=_.KQ(p,J);tc(p);S=_.Vd(p+S,M);_.Aui(H.location,S)};
Sht=function(p){if(p.urlEndpoint){if(p=_.ih(p.urlEndpoint.url),p.adurl)return md(p.adurl)}else if(p.watchEndpoint)return"//www.youtube.com/watch?v="+p.watchEndpoint.videoId;return null};
HML=function(p){if(!p||!p.reportingPings)return null;var J={};p.reportingPings.forEach(function(S){S.pingType in J?J[S.pingType].push(S.url):J[S.pingType]=[S.url]});
return{adpings:axX(J)}};
_.kt=function(p){p=p===void 0?!1:p;var J=_.Gv(),S="USER_INTERFACE_THEME_LIGHT";J.getFlag(165)?S="USER_INTERFACE_THEME_DARK":J.getFlag(174)?S="USER_INTERFACE_THEME_LIGHT":_.Dc()&&(S="USER_INTERFACE_THEME_DARK");return p?S:MA4()||S};
_.XCi=function(){return!_.z("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Dc=function(){return _.XCi()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Nc=function(){var p=_.Gv();return _.XCi()&&!p.getFlag(165)&&!p.getFlag(174)};
MA4=function(){var p=p===void 0?window.location.href:p;if(_.z("kevlar_disable_theme_param"))return null;var J=_.yn(p);if(_.iMw(J))return"USER_INTERFACE_THEME_DARK";try{var S=_.ih(p).theme;return RVi.get(S)||null}catch(H){}return null};
_.iMw=function(p){return _.z("enable_dark_theme_only_on_shorts")?!(p==null||!p.startsWith("/shorts/")):!1};
_.nWs=function(p,J,S,H,M){J=J===void 0?!1:J;S=S===void 0?!1:S;var X=_.jn("INNERTUBE_CONTEXT");if(!X)return _.jD(Error("ag")),{};X=(0,_.T6.unsafeClone)(X);_.z("web_no_tracking_params_in_shell_killswitch")||delete X.clickTracking;X.client||(X.client={});var Z=X.client;Z.clientName==="MWEB"&&Z.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Z.clientFormFactor=_.jn("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Z.screenWidthPoints=window.innerWidth;Z.screenHeightPoints=window.innerHeight;Z.screenPixelDensity=
Math.round(window.devicePixelRatio||1);Z.screenDensityFloat=window.devicePixelRatio||1;Z.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());Z.userInterfaceTheme=_.kt();if(!J){var n=_.u6i();n&&(Z.connectionType=n);_.z("web_log_effective_connection_type")&&(n=VUi())&&(X.client.effectiveConnectionType=n)}var b;if(_.z("web_log_memory_total_kbytes")&&((b=_.Hg.navigator)==null?0:b.deviceMemory)){var F;b=(F=_.Hg.navigator)==null?void 0:F.deviceMemory;X.client.memoryTotalKbytes=""+b*1E6}J&&H&&!_.z("web_it_context_set_original_url_ks")&&
(Z.originalUrl=KQs(_.Hg.location.href,H).toString());_.z("web_gcf_hashes_innertube")&&(n=ckX())&&(F=n.coldConfigData,b=n.coldHashData,n=n.hotHashData,X.client.configInfo=X.client.configInfo||{},F&&(X.client.configInfo.coldConfigData=F),b&&(X.client.configInfo.coldHashData=b),n&&(X.client.configInfo.hotHashData=n));F=_.ih(_.Hg.location.href);!_.z("web_populate_internal_geo_killswitch")&&F.internalcountrycode&&(Z.internalGeo=F.internalcountrycode);!_.z("web_populate_client_screen_killswitch")&&M&&(Z.clientScreen=
M);Z.clientName==="MWEB"||Z.clientName==="WEB"?(Z.mainAppWebInfo||(Z.mainAppWebInfo={}),Z.mainAppWebInfo.graftUrl=H||_.Hg.location.href,_.z("kevlar_woffle")&&_.Te.instance&&(H=_.Te.instance,Z.mainAppWebInfo.pwaInstallabilityStatus=!H.appInstalledEventFired&&H.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),Z.mainAppWebInfo.webDisplayMode=q4k(),Z.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Z.clientName==="TVHTML5"&&
(!_.z("web_lr_app_quality_killswitch")&&(H=_.jn("LIVING_ROOM_APP_QUALITY"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{appQuality:H})),H=_.jn("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{certificationScope:H}));!_.z("web_populate_time_zone_itc_killswitch")&&(H=TIX())&&(Z.timeZone=H);(H=MUW())?Z.experimentsToken=H:delete Z.experimentsToken;Z=X9t();H=_.ZMX();H=(0,_.T6.getValues)(H.tokenJars);X.request=Object.assign({},X.request,{internalExperimentFlags:Z,consistencyTokenJars:H});
!_.z("web_prequest_context_killswitch")&&(Z=_.jn("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(X.request.externalPrequestContext=Z);H=_.Gv();Z=H.getFlag(58);H=H.get("gsml","");X.user=Object.assign({},X.user);Z&&(X.user.enableSafetyMode=Z);H&&(X.user.lockedSafetyMode=!0);_.z("warm_op_csn_cleanup")?S&&(J=_.C1())&&(X.clientScreenNonce=J):!J&&(J=_.C1())&&(X.clientScreenNonce=J);p&&(X.clickTracking={clickTrackingParams:p});if(p=_.Id("yt.mdx.remote.remoteClient_"))X.remoteClient=p;_.uy.getInstance().setLocationOnInnerTubeContext(X);
try{var f=vOs(),O=f.bid;delete f.bid;X.adSignalsInfo={params:[],bid:O};for(var A=_.K(Object.entries(f)),P=A.next();!P.done;P=A.next()){var W=_.K(P.value),y=W.next().value,t=W.next().value;f=y;O=t;p=void 0;(p=X.adSignalsInfo.params)==null||p.push({key:f,value:""+O})}var D,k;if(((D=X.client)==null?void 0:D.clientName)==="TVHTML5"||((k=X.client)==null?void 0:k.clientName)==="TVHTML5_UNPLUGGED"){var E=_.jn("INNERTUBE_CONTEXT");E.adSignalsInfo&&(X.adSignalsInfo.advertisingId=E.adSignalsInfo.advertisingId,
X.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",X.adSignalsInfo.limitAdTracking=E.adSignalsInfo.limitAdTracking)}}catch(a){_.jD(a)}return X};
_.ly=function(){return{isShellLoad:_.wY("IS_SHELL_LOAD",!1)}};
bMk=function(){navigator.serviceWorker.getRegistrations().then(function(p){p.forEach(GY3)})};
GY3=function(p){p&&_.mH3(FQW,p.scope)};
_.mH3=function(p,J){J={scope:J||_.zG("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.gy(p),J)};
Vi=function(p,J,S,H){if(J&&J.serializedYpcCujLoggingParams){if(S){var M={};M.transactionErrorType=S;H&&(M.errorMessage=H);J.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:M}}}S={};S.ypcCujContext=J;p=_.Rs("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",p,S);_.Ky().logFlowEvent(p,"FLOW_TYPE_YPC_ACQUISITION")}};
_.vW3=function(p,J,S,H){var M={};M.serializedTransactionFlowLoggingParams=J;S&&(M.errorType=S);H&&(M.errorMessage=H);_.YQ(p,M);_.rf()};
_.f5w=function(p){p&&_.vW3("transactionFlowStarted",p)};
_.OMX=function(p){p&&_.vW3("transactionFlowCancelled",p)};
_.qc=function(p,J,S){J&&_.vW3("transactionFlowFailed",J,p,S)};
AoL=function(p){var J=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");J&&(J.inert=p)};
_.as=function(){this.megabloxUrl_=null};
_.Er=function(p){try{var J=PHX==null?void 0:PHX.composedPath(p)}catch(S){J=p.composedPath?p.composedPath():[]}return J&&J.length>0?J:p.composedPath?p.composedPath():[]};
_.Yt=function(p){return _.Er(p)[0]};
ro=function(p){return p instanceof ShadowRoot?ShadowRoot:p instanceof DocumentFragment?DocumentFragment:p instanceof Document?Document:HTMLElement};
zVW=function(p){if(p instanceof Element)return Element.prototype;if(p instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+p);};
$HL=function(p,J){return _.z("sunnydom_native_scoped_query_selectors")?zVW(p).querySelector.call(p,J):ro(p).prototype.querySelector.call(p,J)};
oWs=function(p,J){return _.z("sunnydom_native_scoped_query_selectors")?zVW(p).querySelectorAll.call(p,J):ro(p).prototype.querySelectorAll.call(p,J)};
eVt=function(p){var J,S,H;return(H=(S=(J=p.parentElement)!=null?J:p.__shady_native_parentElement)!=null?S:p.__shady_parentElement)!=null?H:null};
WQ3=function(p){var J,S,H;return(H=(S=(J=p.parentNode)!=null?J:p.__shady_native_parentNode)!=null?S:p.__shady_parentNode)!=null?H:null};
QMt=function(p){var J,S,H;return(H=(S=(J=p.nextSibling)!=null?J:p.__shady_native_nextSibling)!=null?S:p.__shady_nextSibling)!=null?H:null};
CHX=function(p){var J,S,H;return(H=(S=(J=p.previousSibling)!=null?J:p.__shady_native_previousSibling)!=null?S:p.__shady_previousSibling)!=null?H:null};
yoL=function(p){var J,S,H;return(H=(S=(J=p.nextElementSibling)!=null?J:p.__shady_native_nextElementSibling)!=null?S:p.__shady_nextElementSibling)!=null?H:null};
BOk=function(p){var J,S,H;return(H=(S=(J=p.previousElementSibling)!=null?J:p.__shady_native_previousElementSibling)!=null?S:p.__shady_previousElementSibling)!=null?H:null};
UH4=function(p){var J,S,H;return new Set([].concat(_.dW((J=p.children)!=null?J:[]),_.dW((S=p.__shady_native_children)!=null?S:[]),_.dW((H=p.__shady_children)!=null?H:[])))};
sMs=function(p){var J,S,H;return new Set([].concat(_.dW((J=p.childNodes)!=null?J:[]),_.dW((S=p.__shady_native_childNodes)!=null?S:[]),_.dW((H=p.__shady_childNodes)!=null?H:[])))};
_.jS=function(p){if(!(p instanceof Element))return null;p=p.classList?Array.from(p.classList):void 0;if(!p)return null;var J=p.indexOf("style-scope");return J>-1&&J+1<p.length?p[J+1]:null};
wo=function(p){if(!(p instanceof HTMLElement))return null;var J=p&&(p.$$||p.polymerController)?p.tagName.toLowerCase():null;return J?J:_.jS(p)};
gWL=function(p,J){return _.z("sunnydom_native_scoped_query_selectors")?p+".style-scope."+J:p.replace(/[^a-z]*[^\s]+/g,function(S){return S+".style-scope."+J})};
tAv=function(p,J){return J?p.split(",").map(function(S){return gWL(S.trim(),J)}).join(", "):p};
_.xt=function(p){var J,S,H,M;return(M=(H=(S=(J=p.root)!=null?J:p.shadowRoot)!=null?S:p.__shady_native_shadowRoot)!=null?H:p.__shady_shadowRoot)!=null?M:p};
hVv=function(p){var J,S,H;return(H=(S=(J=p.__shady_parentNode)!=null?J:p.__shady_native_parentNode)!=null?S:p.parentNode)!=null?H:null};
DHL=function(p){var J,S;return(S=(J=WQ3(p))!=null?J:p.host)!=null?S:null};
kYX=function(p){for(;p&&!(p instanceof HTMLElement);)p=DHL(p);return p};
NOs=function(p){var J=kYX(p);return p===J?_.jS(p):J?wo(J):null};
TOi=function(p){return(p=kYX(p))?wo(p):null};
dHX=function(p){if(p instanceof Comment)return!1;if(p instanceof Text){var J,S;if(((S=(J=p.textContent)==null?void 0:J.trim())!=null?S:"")==="")return!1}return!0};
ct=function(p,J,S){var H=J(p);for(S=S===void 0?TOi(p):S;H&&(NOs(H)!==S||!dHX(H));)p=H,H=J(p);return H};
uH4=function(p,J,S){if(!J)return null;p=TOi(p);return NOs(J)===p&&dHX(J)?J:ct(J,S,p)};
l5t=function(p){return ct(p,hVv,_.jS(p))};
VAi=function(p){return ct(p,yoL)};
qhi=function(p){return ct(p,QMt)};
a5k=function(p){return ct(p,BOk)};
EWg=function(p){return ct(p,CHX)};
YhW=function(p){return uH4(p,p.firstChild||null,QMt)};
rok=function(p){var J,S,H;var M=(H=(S=(J=p.firstElementChild)!=null?J:p.__shady_native_firstElementChild)!=null?S:p.__shady_firstElementChild)!=null?H:null;return uH4(p,M,yoL)};
jMX=function(p){var J,S,H;var M=(H=(S=(J=p.lastChild)!=null?J:p.__shady_native_lastChild)!=null?S:p.__shady_lastChild)!=null?H:null;return uH4(p,M,CHX)};
wC9=function(p){var J,S,H;var M=(H=(S=(J=p.lastElementChild)!=null?J:p.__shady_native_lastElementChild)!=null?S:p.__shady_lastElementChild)!=null?H:null;return uH4(p,M,BOk)};
xH4=function(p){var J=TOi(p);return Array.from(sMs(p)).filter(function(S){return NOs(S)===J})};
cog=function(p){var J=wo(p);return Array.from(UH4(p)).filter(function(S){return _.jS(S)===J})};
I5s=function(p){if(!p)return null;var J=_.jS(p);if(!J){var S;return(S=Node.prototype.getRootNode)==null?void 0:S.call(p)}J=J.toUpperCase();for(p=eVt(p);p&&p.tagName!==J;)p=eVt(p);return p?_.xt(p):null};
_.Is=function(p,J,S){if(p instanceof HTMLElement&&_.jS(p)===S){var H=Array.from(p.classList).indexOf("style-scope");if(H===-1)p.classList.add("style-scope"),p.classList.add(J);else if(!(H+1>=p.classList.length)){H=p.classList[H+1];var M,X;p==null||(M=p.classList)==null||(X=M.replace)==null||X.call(M,H,J)}}if(p instanceof HTMLElement||p instanceof DocumentFragment)for(M=_.K(UH4(p)),X=M.next();!X.done;X=M.next())_.Is(X.value,J,S);return p};
Ly=function(p,J){if(p instanceof HTMLElement&&_.jS(p)===J){var S=Array.from(p.classList).indexOf("style-scope");S===-1||S+1>=p.classList.length||p.classList.remove("style-scope",p.classList[S+1])}if(p instanceof HTMLElement||p instanceof DocumentFragment){S=_.K(p.children);for(var H=S.next();!H.done;H=S.next())Ly(H.value,J)}return p};
_.LQs=function(p,J){return ro(p).prototype.appendChild.call(p,J)};
pF9=function(p,J){if(p===J)return!0;p=sMs(p);return Array.from(p).some(function(S){return pF9(S,J)})};
_.Jn=function(p,J){if(p instanceof p3)return p;(J==null?0:J.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(p,"ownerDocument")&&Object.defineProperty(p,"ownerDocument",{get:function(){return window.document}});
return new p3(p)};
Soi=function(){var p=p3.prototype,J=[].concat(_.dW(JAi?[]:["getRootNode"]),["setAttribute","removeAttribute"]);J=_.K(J);for(var S=J.next(),H={};!S.done;H={method$jscomp$53:void 0},S=J.next())H.method$jscomp$53=S.value,p[H.method$jscomp$53]=function(M){return function(){return this.host[M.method$jscomp$53].apply(this.host,arguments)}}(H)};
MfW=function(){var p=p3.prototype,J=[].concat(_.dW(JAi?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.dW(Hfw?[]:["querySelector","querySelectorAll"]));J=_.K(J);for(var S=J.next(),H={};!S.done;H={method$jscomp$54:void 0},S=J.next())H.method$jscomp$54=S.value,p[H.method$jscomp$54]=function(M){return function(){return this.root[M.method$jscomp$54].apply(this.root,arguments)}}(H)};
Rbw=function(){var p=p3.prototype,J=[].concat(_.dW(XFL?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.dW(ifv?[]:["parentNode"]));J=_.K(J);for(var S=J.next(),H={};!S.done;H={prop$jscomp$67:void 0},S=J.next())H.prop$jscomp$67=S.value,Object.defineProperty(p,H.prop$jscomp$67,{get:function(M){return function(){return this.host[M.prop$jscomp$67]}}(H),
configurable:!0})};
nl3=function(){var p=p3.prototype,J=["activeElement"].concat(_.dW(XFL?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.dW(K_s?[]:["children"]),_.dW(Zfi?[]:["lastChild"]));J=_.K(J);for(var S=J.next(),H={};!S.done;H={prop$jscomp$68:void 0},S=J.next())H.prop$jscomp$68=S.value,Object.defineProperty(p,H.prop$jscomp$68,{get:function(M){return function(){return this.root[M.prop$jscomp$68]}}(H),
configurable:!0})};
GLL=function(){for(var p=p3.prototype,J=_.K(["innerHTML","textContent"]),S=J.next(),H={};!S.done;H={prop$jscomp$69:void 0},S=J.next())H.prop$jscomp$69=S.value,Object.defineProperty(p,H.prop$jscomp$69,{get:function(M){return function(){return this.root[M.prop$jscomp$69]}}(H),
set:function(M){return function(X){this.root[M.prop$jscomp$69]=X}}(H),
configurable:!0})};
bfw=function(p){var J=p3.prototype;p=_.K(Object.entries(p));for(var S=p.next(),H={};!S.done;H={fn$jscomp$403:void 0},S=p.next()){var M=_.K(S.value);S=M.next().value;M=M.next().value;H.fn$jscomp$403=M;J[S]=function(X){return function(){return X.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.dW(arguments)))}}(H)}};
F_t=function(){for(var p=p3.prototype,J=_.K(Object.entries(mov)),S=J.next(),H={};!S.done;H={fn$jscomp$404:void 0},S=J.next()){var M=_.K(S.value);S=M.next().value;M=M.next().value;H.fn$jscomp$404=M;Object.defineProperty(p,S,{get:function(X){return function(){return X.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.dW(arguments)))}}(H),
configurable:!0})}};
_.Sh=function(p){return p instanceof vlk||p instanceof Document?p:new vlk(p)};
fS3=function(){for(var p=vlk.prototype,J=_.K("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),S=J.next(),H={};!S.done;H={method$jscomp$55:void 0},S=J.next())H.method$jscomp$55=S.value,p[H.method$jscomp$55]=function(M){return function(){return HTMLElement.prototype[M.method$jscomp$55].call.apply(HTMLElement.prototype[M.method$jscomp$55],[this.node].concat(_.dW(arguments)))}}(H)};
OfL=function(){for(var p=vlk.prototype,J=_.K("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),S=J.next(),H={};!S.done;H={prop$jscomp$70:void 0},S=J.next())H.prop$jscomp$70=S.value,Object.defineProperty(p,H.prop$jscomp$70,{get:function(M){return function(){var X;return(X=this.node["__shady_native_"+M.prop$jscomp$70])!=null?X:this.node[M.prop$jscomp$70]}}(H),
configurable:!0})};
_.XM=function(p,J,S){S===void 0&&(S=!p.classList.contains(J));S?p.classList.add(J):p.classList.remove(J)};
_.iO=function(p,J,S){S===void 0&&(S=!p.hasAttribute(J));if(J==="class")throw Error("fg");S?_.Sh(p).setAttribute(J,""):_.Sh(p).removeAttribute(J)};
AAi=function(p){return(p.localName!=="slot"?[]:(0,_.Rf)(p).assignedNodes({flatten:!0})).filter(function(J){return J.nodeType===Node.ELEMENT_NODE})};
_.Pzi=function(p){return(p=_.Jn(p).querySelector("slot"))&&p.localName==="slot"?AAi(p):[]};
_.K3=function(p,J){window.ShadyCSS&&window.ShadyCSS.styleSubtree(p,J)};
ZV=function(p,J){var S=J.bind(p);return function(H){S(H,H.detail)}};
_.n3=function(p,J){var S=zbk.get(p);S||(S=new WeakMap,zbk.set(p,S));if(S.has(J))return S.get(J);if(_.z("web_fi_listen_disable_bound_fn_helper")){var H=J.bind(p);p=function(M){H(M,M==null?void 0:M.detail)}}else p=ZV(p,J);
S.set(J,p);return p};
ebk=function(p,J){$oL(p);p.created[oli].push(J)};
$oL=function(p){if(!p.created||!p.created[oli]){var J=p.created,S=J?[J]:[];p.created=function(){for(var H=_.K(S),M=H.next();!M.done;M=H.next())M.value.apply(this)};
p.created[oli]=S}};
W_v=function(p){return function(){var J=_.Yp.apply(0,arguments);return function(S,H,M){p.apply(null,_.dW(J))(S,H,M)}}};
Q33=function(){return function(){var p=_.Yp.apply(0,arguments);return function(J,S,H){G5X.apply(null,_.dW(p))(J,S,H)}}};
_.B=function(p){return Q33()(p)};
_.U=function(){return W_v(vri).apply(null,_.dW(_.Yp.apply(0,arguments)))};
_.GI=function(p){return _.z("pbcm_fi_listen_decorators")?Czg(p):W_v(mRk)(p)};
Czg=function(p){return function(J,S){ebk(J,function(){var H=this[S],M=_.z("web_fi_listen_disable_bound_fn_helper")?function(X){H(X,X.detail)}.bind(this):ZV(this,H);
yA3.has(p)?j5(this.hostElement,p,M):this.hostElement.addEventListener(p,M)})}};
_.bO=function(){return W_v(FkX).apply(null,_.dW(_.Yp.apply(0,arguments)))};
_.N=function(p){p=p===void 0?{}:p;return W_v(bXL)(p)};
_.my=function(p){if(p.hostElement&&p!==p.hostElement){var J=_.f1(p.hostElement);J=p.renderIdom?J:J.shadowRoot}J||(p=p.root,J=p instanceof Node?_.f1(p):null);return J};
_.FM=function(p){return Bik?UoW(p):function(J,S){Object.defineProperty(J,S,{get:function(){var H;return(H=_.my(this))==null?void 0:H.querySelector(p)},
enumerable:!0,configurable:!0})}};
UoW=function(p){return function(J,S){Object.defineProperty(J,S,{get:function(){var H,M=(H=_.Jn(this.hostElement))==null?void 0:H.querySelector(p);if(M)return M;var X;return(X=_.my(this))==null?void 0:X.querySelector(p)},
enumerable:!0,configurable:!0})}};
_.v6=function(p){return Bik?s3L(p):function(J,S){Object.defineProperty(J,S,{get:function(){var H;return(H=_.my(this))==null?void 0:H.querySelectorAll(p)},
enumerable:!0,configurable:!0})}};
s3L=function(p){return function(J,S){Object.defineProperty(J,S,{get:function(){var H,M=(H=_.Jn(this.hostElement))==null?void 0:H.querySelectorAll(p);if(M==null?0:M.length)return M;var X;return(X=_.my(this))==null?void 0:X.querySelectorAll(p)},
enumerable:!0,configurable:!0})}};
glX=function(p){return function(J){if(![_.fz,_.T].includes(Object.getPrototypeOf(J.prototype).constructor))throw Error("gg");HXs(Object.assign({},typeof p!=="string"?p:{is:p,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(J)}};
_.OD=function(){var p=p===void 0?{}:p;return function(J){if(![OL,_.f3].includes(Object.getPrototypeOf(J.prototype).constructor))throw Error("hg");M_i(Object.assign({},p,{disableInheritanceCheck:!0}))(J)}};
hbX=function(p,J){tfW[p]!=null||(tfW[p]=new Set);tfW[p].add(J)};
_.An=function(){var p=_.bO.apply(null,_.dW(_.Yp.apply(0,arguments)));return function(J,S){hbX(J.is,S);p(J,S)}};
$3=function(p,J,S){if(P6(p)&&!Dos.has(J)){J=J.replace(/^JSC\$[\d]+_/,"");J=J.replace(/\.\d+(\.|$)/g,function(X,Z){return".#"+Z});
zI[p]!=null||(zI[p]={});var H,M;(H=zI[p])[M=J]!=null||(H[M]=new Set);zI[p][J].has(S)||(zI[p][J].add(S),_.YQ("polymerPropertyAccessEvent",{componentName:p,propertyName:J,accessType:S}))}};
kLv=function(){return _.z("polymer_property_access_logging_debug")||_.z("polymer_enable_property_access_logging")};
P6=function(p){if(_.z("polymer_property_access_logging_debug"))return!0;if(!_.z("polymer_enable_property_access_logging"))return!1;Nii||(Nii=Date.now());return(Dx(p)+Nii)%100<_.PO("polymer_property_access_logging_percent")};
Tis=function(p,J){return P6(J)&&p.hostElement.loggingStatus?new Proxy(p,{get:function(S,H,M){if(S.hostElement.loggingStatus.bypassProxyController)return S[H];S.hostElement.loggingStatus.isExternalGet=!0;var X=S[H];S.hostElement.loggingStatus.isExternalGet=!1;if(X instanceof Function)return function(){var Z=_.Yp.apply(0,arguments);try{return S.hostElement.loggingStatus.currentExternalCall=H,$3(J,H,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),X.apply(this===M?S:this,Z)}finally{S.hostElement.loggingStatus.currentExternalCall=
void 0}};
$3(J,H,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return X},
set:function(S,H,M){if(S.hostElement.loggingStatus.bypassProxyController)return S[H]=M,!0;S.hostElement.loggingStatus.isRendererStamper?$3(J,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):S.hostElement.loggingStatus.isDeclarativeExternal||$3(J,H,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{S.hostElement.loggingStatus.currentExternalSet=H,S[H]=M}finally{S.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):p};
doW=function(p,J){p&&p.loggingStatus&&!p.loggingStatus.isDeclarativeExternal&&!p.loggingStatus.isExternalGet&&p.loggingStatus.currentExternalSet!==J&&$3(p.tagName.toLowerCase(),J,"PROPERTY_ACCESS_GET_INTERNAL")};
of=function(p,J,S){p&&(S||p.loggingStatus&&!p.loggingStatus.isInitializing&&!p.loggingStatus.isDefiningPropertyAccessor&&p.loggingStatus.currentExternalSet!==J)&&$3(p.tagName.toLowerCase(),J,"PROPERTY_ACCESS_SET_INTERNAL")};
u0L=function(){return{_definePropertyAccessor:function(p,J){var S=this,H=S.hostElement.loggingStatus;H&&(H.isDefiningPropertyAccessor=!0);var M=S[p];M!==void 0&&(S.__data?S._setPendingProperty(p,M):(S.__dataProto!=null||(S.__dataProto={}),S.__dataProto[p]=M));H&&(H.isDefiningPropertyAccessor=!1);Object.defineProperty(this,p,{get:function(){doW(S.hostElement,p);return this.__data[p]},
set:function(X){J||this._setPendingProperty(p,X,!0)&&this._invalidateProperties()}})},
created:function(){var p=this._setPendingProperty.bind(this);this._setPendingProperty=function(J,S,H){of(this.hostElement,J);return p.apply(this,[J,S,H])}}}};
lS9=function(p){kLv()&&_.B(eh.prototype)(p.prototype,"__templateBindingLoggingBehavior")};
Vf9=function(p,J){if(J.resolvedFactories.length!==p.resolvedFactories.length)return!0;J=_.K(J.resolvedFactories.entries());for(var S=J.next();!S.done;S=J.next()){var H=_.K(S.value);S=H.next().value;H=H.next().value;if(H.providerClass){if(H.providerClass!==p.resolvedFactories[S].providerClass)return!0}else if(H.providerValue){if(H.providerValue!==p.resolvedFactories[S].providerValue)return!0}else if(H.factory!==p.resolvedFactories[S].factory)return!0}return!1};
qos=function(p,J){p=_.K(p);for(var S=p.next();!S.done;S=p.next())if(S=S.value,S.constructor===Array)qos(S,J);else{var H=J;H.has(S)||(S.inject&&H.add(S),S.behaviors&&qos(S.behaviors,H))}};
W6=function(p,J){var S=p[J];p[J]=function(){var H=_.Yp.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(S)return S.apply(this,H)}};
rAW=function(){_.QG.Class=function(S,H){S=aS4(S,H);W6(S.prototype,"created");return S};
W6(C3.prototype,"_initializeProperties");W6(_.yG.prototype,"_initializeProperties");if(El9)W6(Yov,"created");else{var p=function(){W6(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))p();else{var J=customElements.define;customElements.define=function(S,H,M){J.call(customElements,S,H,M);S==="tp-yt-iron-list"&&(p(),customElements.define=J)}}}};
wFg=function(p,J){p.prototype.behaviors=p.prototype.behaviors||[];p.prototype.behaviors.unshift(j3k.InjectBehavior);p.prototype.provide=J};
_.sD=function(p){return function(J){if(!p.disableElementRegistration){p.noInjection||wFg(J,p.providers);var S=J.prototype;S.__templateHelpers||G5X(B6.prototype)(S,"__templateHelpers");S=p.is;xoi||(xoi=Date.now());(Dx(S)+xoi)%100<_.PO("polymer_log_prop_change_observer_percent")&&G5X(UD.prototype)(J.prototype,"__propertyObserverObserver");J.prototype.behaviors=J.prototype.behaviors||[];J.prototype.behaviors.unshift(_.cAt.YtHostElementBehavior);lS9(J);glX({is:p.is,notifyObserversOnUndefined:p.notifyObserversOnUndefined!==
!1,fastInit:p.fastInit,template:p.template,disableEnforceFastDefaultValuesCheck:!0})(J)}}};
_.gw=function(p){return _.sD({is:p.is,template:p.template,disableElementRegistration:p.disableElementRegistration,cssBuildOptOut:p.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
pDX=function(p,J){if(ISs){p=new p;for(var S=_.K(Object.getOwnPropertyNames(p)),H=S.next();!H.done;H=S.next())H=H.value,J[H]=p[H];for(S=J;S&&S!==Object.prototype;S=Object.getPrototypeOf(S)){H=_.K(Object.getOwnPropertyNames(S));for(var M=H.next();!M.done;M=H.next())M=M.value,p.hasOwnProperty(M)||Object.defineProperty(p,M,L_W(J,M))}}else p.apply(J)};
L_W=function(p,J){return{get:function(){var S=p[J];return S instanceof Function?S.bind(p):S},
set:function(S){p[J]=S}}};
S6t=function(p,J){for(var S=p._noAccessors,H=_.K(Object.getOwnPropertyNames(p)),M=H.next();!M.done;M=H.next())if(M=M.value,!Jvg.has(M))if(S)J[M]=p[M];else{var X=Object.getOwnPropertyDescriptor(p,M);X&&(X.configurable=!0,Object.defineProperty(J,M,X))}};
H09=function(p,J,S){return function(H){if(S){var M=S();H.model=M}if(p[J])p[J](H,H.detail)}};
tn=function(p){var J=[];if(typeof p==="string")p.length>0&&J.push.apply(J,_.dW(p.split(".")));else{p=_.K(p);for(var S=p.next();!S.done;S=p.next())S=S.value,typeof S==="string"?J.push.apply(J,_.dW(S.split("."))):J.push(S)}return J};
MwX=function(p,J){if(J[J.length-1]!=="*"&&J[J.length-1]!=="splices"){for(var S=0;S<J.length;S++){if(!p)return;p=p[J[S]]}return p}};
XDW=function(p,J){if(p.length>J.length)return!1;for(var S=0;S<p.length;S++)if(p[S]!==J[S])return!1;return!0};
Rqs=function(p,J,S){if(J.type==="compute"){var H=J.getter.bind(S);var M=J.args}else H=function(){return S[J.method.methodName].apply(S,_.dW(_.Yp.apply(0,arguments)))},M=J.method.args;
i0W(p,J.propertyKey,H,M,J.value)};
Z0i=function(p,J){if(J.readOnly){var S=Object.getOwnPropertyDescriptor(p.model,J.propertyKey);Object.defineProperty(p.model,J.propertyKey,{get:S.get,set:function(){}});
p.model[Kvw(J.propertyKey)]=S.set}};
nSk=function(p,J,S){if(S){var H=J.propertyKey,M=J.selector;J=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.dW(J.selectorArgs.map(function(X){return{type:"path",path:X}})));
i0W(p,H,function(X){var Z=_.Yp.apply(1,arguments);return M.apply(null,[S.getState()].concat(_.dW(Z)))},J)}};
b0w=function(p,J,S){var H=_.K1(J.propertyKey)+"-changed";GtW(p,function(M){var X={value:M.value,queueProperty:!0};M.path.split(".").length>1&&(X.path=M.path);S.dispatchEvent(new CustomEvent(H,{detail:X}))},[{type:"wildcard",
path:J.propertyKey}])};
mCW=function(p,J,S){GtW(p,function(){S[J.method.methodName].apply(S,_.dW(_.Yp.apply(0,arguments)))},J.method.args)};
Kvw=function(p){return"_set"+(p.charAt(0).toUpperCase()+p.slice(1))};
Fvw=function(){var p,J=qs(function(S){p=S},!1);
return[p,J]};
PNt=function(p){p=p.trim().replace(vSL,",").replace(fKW,"$1");var J=p[0];J==="-"&&(J=p[1]);if(J>="0"&&J<="9")return{type:"literal",value:Number(p)};if(J==="'"||J==='"')return{type:"literal",value:p.slice(1,-1)};if(J=p.match(O09)){J=J[1];var S=AvX[J];if(S)return{type:S,path:p.slice(0,-(J.length+1))}}return{type:"path",path:p}};
eq3=function(p){var J=p.match(zqi);if(J)return p={methodName:J[1],args:$C9},J[2].trim()&&(J=J[2].replace(oSX,"&comma;").split(","),p.args=J.map(PNt)),p};
Wvk=function(p,J,S,H){H=H===void 0?!1:H;J=_.K1(J);var M=Ny;M&&(S=M(S,J,"attribute",p));hn(p,S,J,H)};
hn=function(p,J,S,H){J=QeW(J,H===void 0?!1:H);J===void 0?p.removeAttribute(S):p.setAttribute(S,J)};
QeW=function(p,J){switch(typeof p){case "object":case "function":if(p instanceof Date)return p.toString();if(p){if((J===void 0?0:J)&&!_.z("polymer_reflect_objects_as_boolean_killswitch"))return p?"":void 0;J=window.trustedTypes?window.trustedTypes.isHTML(p)||window.trustedTypes.isScript(p)||window.trustedTypes.isScriptURL(p):void 0;if(J)return p;try{return JSON.stringify(p)}catch(S){_.xQ(Error("Dg`"+p))}}break;case "boolean":return p?"":void 0;default:return p!==null&&p!==void 0?p.toString():void 0}};
CNw=function(p){if(p===void 0)throw Error("Eg");return p};
gSi=function(p,J,S,H){var M=yvi(H);if(M.length){H=S;var X="property";BHX.test(S)?X="attribute":S[S.length-1]==="$"&&(S=S.slice(0,-1),X="attribute");var Z=UCL(M);Z&&X==="attribute"&&(S==="class"&&p.hasAttribute("class")&&(Z+=" "+p.getAttribute(S)),hn(p,Z,S));X==="attribute"&&H==="disable-upgrade$"&&p.setAttribute("disable-upgrade","");p.localName==="input"&&H==="value"&&p.setAttribute("value","");p.removeAttribute(H);X==="property"&&(S=_.Zx(S));J=CNw(J);se3(J,X,S,M);return!0}return S.slice(0,3)===
"on-"?(p.removeAttribute(S),(X=J).events!=null||(X.events=[]),J.events.push({name:S.slice(3),value:H}),!0):S==="id"?(J.id=H,!0):!1};
yvi=function(p){for(var J=[],S=0,H;(H=tw4.exec(p))!==null;){H.index>S&&J.push({type:"literal",value:p.slice(S,H.index)});var M=H[1][0];S=!!H[2];H=H[3].trim();if(M==="{")throw Error("Fg");(M=eq3(H))?J.push({type:"method",negate:S,signature:M}):J.push({type:"path",negate:S,path:H});S=tw4.lastIndex}S&&S<p.length&&(p=p.substring(S))&&J.push({type:"literal",value:p});return J};
UCL=function(p){for(var J="",S=0;S<p.length;S++){var H=p[S];H.type==="literal"&&(J+=H.value)}return J};
se3=function(p,J,S,H){p.bindings!=null||(p.bindings=[]);p.bindings.push({kind:J,target:S,parts:H})};
TH3=function(p,J,S){var H=!1;if(p.localName==="template"){H=S;var M=J.stripWhitespace;M=hqX(p,M===void 0?!1:M);var X=p.content.ownerDocument.createDocumentFragment();M.content=X;X.appendChild(p.content);H&&(H.templateInfo=M);H=!0}else p.localName==="slot"&&(J.hasInsertionPoint=!0);if(p.firstChild&&(M=S,p.localName!=="script"&&p.localName!=="style")){X=0;for(var Z=p.firstChild;Z;){var n=Z;if(n.localName==="template"){var b=n.getAttribute("is");if((Z=b==="dom-if")||b==="dom-repeat"){n.removeAttribute("is");
b=n.ownerDocument.createElement("ps-"+b);n.parentNode.replaceChild(b,n);b.appendChild(n);var F=Array.from(n.attributes);F=_.K(F);for(var f=F.next();!f.done;f=F.next())f=f.value,Z?DCX.has(f.name)&&hn(b,f.value,f.name):ktt.has(f.name)?hn(b,f.value,f.name):NHv.has(f.name),n.removeAttribute(f.name);Z=b}else Z=n}if(Z.nodeType===Node.TEXT_NODE){n=void 0;b=p;for(F=Z;((n=F.nextSibling)==null?void 0:n.nodeType)===Node.TEXT_NODE;)f=void 0,(f=F).textContent!=null||(f.textContent=""),F.nextSibling.textContent&&
(F.textContent+=F.nextSibling.textContent),b.removeChild(F.nextSibling);if(J.stripWhitespace&&Z.textContent&&!Z.textContent.trim()){p.removeChild(Z);Z=Z.nextSibling;continue}}TH3(Z,J,{parentIndex:X,parentInfo:M});Z.parentNode&&X++;Z=Z.nextSibling}}var O;if((O=p.hasAttributes)==null?0:O.call(p)){O=S=CNw(S);M=!1;X=Array.from(p.attributes);X=_.K(X);for(n=X.next();!n.done;n=X.next())n=n.value,M=gSi(p,O,n.name,n.value)||M;H=M||H}p.nodeType===Node.TEXT_NODE&&(O=yvi(p.textContent),O.length&&(p.textContent=
UCL(O)||" ",S=CNw(S),se3(S,"text","textContent",O),H=!0));S&&H&&(S.infoIndex=J.nodeInfoList.push(S)-1)};
hqX=function(p,J){J={nodeInfoList:[],stripWhitespace:(J===void 0?!1:J)||p.hasAttribute("strip-whitespace")};TH3(p.content,J);return J};
dCv=function(p){Object.assign(p,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
lKk=function(p,J,S){J.signalCache!=null||(J.signalCache={});var H=J.signalCache[S];if(!H){var M=S.split(".");H=!urX(p,M[0]);if(M.length>1&&H){var X=p.getPathMutationSignal(M);H=function(){var Z=EG(p.owner,function(){return p.getWithPath([M[0]])}),n,b=(n=X())==null?void 0:n.value;
return{rootWasDefined:Z!==void 0,value:b}}}else H=function(){var Z=p.getWithPath(M);
return{rootWasDefined:Z!==void 0,value:Z}};
J.signalCache[S]=H}return H()};
q6w=function(p,J,S,H,M){J=J.parts.map(function(Z,n){if(Z.type==="literal"){S.partWasDefined!=null||(S.partWasDefined=[]);var b;(b=S.partWasDefined)[n]||(b[n]=Z.value!==void 0);return Z.value}var F;if(Z.type==="method"){var f,O=(f=(F=S.partWasDefined)==null?void 0:F[n])!=null?f:!1;O||(O=Z.signature.args.every(function(W){return W.type==="literal"}));
var A=!1,P=!0;F=Z.signature.args.map(function(W){if(W.type==="literal")return W.value;if(W.type!=="path")throw Error("Gg`"+W.type);var y=lKk(p,S,W.path);W=y.value;y=y.rootWasDefined;A||(A=y);P&&(P=y);return W});
O||(O=M===1?P:A);S.partWasDefined!=null||(S.partWasDefined={});S.partWasDefined[n]=O;if(!O)return;F=(n=lKk(p,S,Z.signature.methodName).value)&&typeof n==="function"?n.apply(H,F):void 0}else f=lKk(p,S,Z.path),F=f.value,S.partWasDefined!=null||(S.partWasDefined={}),(O=S.partWasDefined)[n]||(O[n]=F!==void 0||f.rootWasDefined);Z.negate&&(F=!F);return F});
if(J.length===1){var X;return((X=S.partWasDefined)==null?0:X[0])?J[0]:Vw4}return J.join("")};
aKt=function(p){return typeof p==="object"&&!!p&&"notifyPath"in p&&"canNotifyPath"in p};
ESX=function(p){return typeof p==="object"&&!!p&&"notifyPath"in p};
Y6s=function(p){return"polymerController"in p};
rvX=function(p,J){J=""+tn(J)[0];if(aKt(p))return p.canNotifyPath(J);if(Y6s(p)&&aKt(p.polymerController))return p.polymerController.canNotifyPath(J);if(ESX(p)){var S;return!((S=p.properties)==null||!S[J])}if(Y6s(p)&&ESX(p.polymerController)){var H;return!((H=p.polymerController.properties)==null||!H[J])}return!1};
jew=function(p,J,S){aKt(p)||ESX(p)?p.notifyPath(J,S):Y6s(p)&&(aKt(p.polymerController)||ESX(p.polymerController))&&p.polymerController.notifyPath(J,S)};
xCw=function(p,J,S){if(S!==Vw4){p.kind==="attribute"||p.target!=="textContent"&&(p.target!=="value"||J.localName!=="input"&&J.localName!=="textarea")||(S=S===void 0?"":S);var H,M=(H=wDW.Polymer)==null?void 0:H.sanitizeDOMValue;M&&(S=M(S,p.target,p.kind,J));if(p.kind==="attribute"){p=p.target;if(p==="class"||p==="name"||p==="slot")J=(0,_.Rf)(J);hn(J,S,p)}else if(p=p.target,S!==J[p]||typeof S==="object")J.loggingStatus&&(J.loggingStatus.isDeclarativeExternal=!0,$3(J.localName,p,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
J[p]=S,J.loggingStatus&&(J.loggingStatus.isDeclarativeExternal=!1)}};
cvX=function(p,J,S,H){var M=J.parts[0];if(J.parts.length!==1||M.type!=="path"||!rvX(S,J.target))return!1;var X=_.K(M.path.split(".")),Z=X.next().value,n=HW(X);if(urX(p,Z))return!1;H.signalCache!=null||(H.signalCache={});X=H.signalCache[M.path];var b;X=(b=X)==null?void 0:b().value;if((X==null?void 0:X.path)!==void 0){H=tn(X.path);var F=tn(M.path);H=[J.target].concat(_.dW(H.slice(F.length-1)));jew(S,H,M.negate?!X.value:X.value);return!0}var f=DV(p,Z);var O=f.getChangeRecordSignal(n),A=!1;X=function(){if(!A){var W=
EG(p.owner,function(){return f.getWithPath([])});
A||(A=W!==void 0)}return{value:O(),rootWasDefined:A}};
H.signalCache[M.path]=X;H.partWasDefined!=null||(H.partWasDefined={});X=X();(F=H.partWasDefined)[0]||(F[0]=X.rootWasDefined);var P=EG(p.owner,function(){return f.getWithPath(n)});
H.partWasDefined[0]&&EG(p.owner,function(){return void xCw(J,S,M.negate?!P:P)});
return!0};
IKs=function(p,J,S,H,M,X){if(!cvX(p,J,S,H)){var Z=q6w(p,J,H,M,X);EG(p.owner,function(){return void xCw(J,S,Z)})}};
Lv4=function(p,J,S,H,M,X){S=_.K(S);for(var Z=S.next(),n={};!Z.done;n={infoIndex:void 0},Z=S.next()){Z=Z.value;var b=Z.bindings;n.infoIndex=Z.infoIndex;Z=Z.parentInfo;if(b){b=_.K(b);for(var F=b.next(),f={};!F.done;f={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},F=b.next()){f.b$jscomp$257=F.value;if(n.infoIndex===void 0)throw Error("Hg");f.bindingCtx$jscomp$4={};p.effect(function(O,A){return function(){M&&!M()||IKs(p,O.b$jscomp$257,J[A.infoIndex],O.bindingCtx$jscomp$4,H,X)}}(f,n))}}Z&&Lv4(p,J,[Z],
H,M,X)}};
pIs=function(p,J){p=(J.parentInfo?pIs(p,J.parentInfo):p).firstChild;for(var S=0;p;p=p.nextSibling)if(J.parentIndex===S++)return p;throw Error("Ig");};
SP4=function(p,J,S,H){p=document.importNode(p.content,!0);p.__noInsertionPoint=!(H==null?0:H.hasInsertionPoint);for(var M=Array(J.length),X={},Z=0;Z<J.length;Z++){var n=J[Z],b=pIs(p,n);M[Z]=b;n.id&&(X[n.id]=b);if(n.templateInfo){var F=b.parentElement;F&&(F.templateInfo=n.templateInfo,F.parentSignalProxy=S,F.eventListenerHost=H.eventListenerHost,F.stampingEnabled=H.enabledSignal)}F=void 0;if((F=n.events)==null?0:F.length)for(F=0;F<n.events.length;F++){var f=n.events[F];J2i(H.eventListenerHost,b,f.name,
f.value,H.getModel)}}Lv4(S,M,J,H.thisCtx,H.enabledSignal,H.methodInvocationRequirement);return{root:p,nodes:M,nodesById:X}};
Mcv=function(p,J){p=p();var S;(S=HSv.ShadyCSS)==null||S.prepareTemplate(p,J);J=hqX(p);return{template:p,nodeInfoList:J.nodeInfoList,hasInsertionPoint:J.hasInsertionPoint}};
RQt=function(){XIg=!1;for(var p=k3.length,J=0;J<p;J++){var S=k3[J];if(S)try{S()}catch(H){Promise.resolve().then(function(){throw H;})}}k3.splice(0,p);
iS9+=p};
GML=function(p){XIg||(XIg=!0,K1t.textContent=(ZSW++).toString());k3.push(p);return nPt++};
_.dw=function(p,J,S){NQ++;p=J?new bSi(NQ,p,J,S):new mb4(NQ,p);TI.set(NQ,p);return NQ};
F1i=function(p){(p=TI.get(p))&&p.cancel()};
f1i=function(p,J){p=vPX.get(p);return p?(J=p.get(J))?J:null:null};
_.uO=function(p,J,S,H){var M=f1i(p,J);if(!M){M=new OSi;var X=vPX.get(p);X||(X=new Map,vPX.set(p,X));X.set(J,M)}p=S.bind(p);M.run(p,H,void 0)};
_.A2k=function(p,J){var S;(S=f1i(p,J))==null||S.cancel()};
PEL=function(p){var J;(J=f1i(p,"doRender"))==null||J.flush()};
lO=function(p){var J;return(J=p.hostElement)!=null?J:p};
zQi=function(p){var J=p.indexOf(".");return J===-1?p:p.slice(0,J)};
$bg=function(p,J,S,H,M,X){X=(M=(H=X?zQi(J):J)?J:null)?p.get(M):p.__data[J];M&&X===void 0&&(X=S[J]);_.cf(p.hostElement,jK3(H)+"-changed",{value:X,queueProperty:!0,path:M!=null?M:void 0},{bubbles:!1,composed:!1})};
oPX=function(p,J){p.__isReflecting=!0;Wvk(p.hostElement,J,p.__data[J]);p.__isReflecting=!1};
eQX=function(p){if(p._onIronRequestResizeNotifications){var J=p._onIronRequestResizeNotifications.bind(p);p._onIronRequestResizeNotifications=function(S){_.Yt(S)!==p.hostElement&&J(S)}}p._ariaActiveAttributeChanged&&(p._ariaActiveAttributeChanged=p._ariaActiveAttributeChanged.bind(p.hostElement));
p._activeChanged&&(p._activeChanged=function(S){p.toggles?hn(p.hostElement,S?"true":"false",p.ariaActiveAttribute):p.hostElement.removeAttribute(p.ariaActiveAttribute);p._changedButtonState()});
p._asyncClick&&(p._asyncClick=function(){_.dw(function(){p.hostElement.click()},1)});
!p.keyEventTarget||p.keyEventTarget instanceof EventTarget||(p.keyEventTarget=lO(p.keyEventTarget));p._disabledChanged&&(p._disabledChanged=p._disabledChanged.bind(p.hostElement));p._observeItems&&(p._observeItems=function(S){var H=lO(S);return _.f1(H).observeNodes(function(M){p._updateItems();p._updateSelected();_.cf(H,"iron-items-changed",M,{bubbles:!1,cancelable:!1})})});
p._updateItems&&p._updateItems===_.VG._updateItems&&(p._updateItems=function(){var S=_.f1(p.hostElement).queryDistributedElements(p.selectable||"*");S=Array.prototype.filter.call(S,p._bindFilterItem);p._setItems(S)});
p._computeKeyboardClass&&(p._computeKeyboardClass=function(S){_.XM(p.hostElement,"keyboard-focus",S)});
p.ensureRipple&&(p.ensureRipple=function(S){if(p.hasRipple&&!p.hasRipple()){if(!p._createRipple)return;p._ripple=p._createRipple();p._ripple.noink=p.noink;var H=p._rippleContainer||p.hostElement;H&&_.Jn(H).appendChild(p._ripple)}var M;if(S&&((M=p._ripple)==null?0:M.uiDownAction)){H=_.Jn(p._rippleContainer||p.hostElement);var X;M=(X=S.composedPath())==null?void 0:X[0];H.contains(M)&&p._ripple.uiDownAction(S)}});
p._updateMultiselectable&&(p._updateMultiselectable=function(S){S?p.hostElement.setAttribute("aria-multiselectable","true"):p.hostElement.removeAttribute("aria-multiselectable")})};
W19=function(p,J,S){S=_.K(S);for(var H=S.next();!H.done;H=S.next())pDX(H.value.constructor,p);pDX(J.constructor,p)};
CE4=function(p,J){p=_.K(p);for(var S=p.next();!S.done;S=p.next())if(S=S.value,S.type==="signal"){var H=S.propertyKey;if(J.hasOwnProperty(H)&&J[H]!=null&&S.attributeType===Object){a:{H=J[H].constructor;for(var M=_.K(Qaw),X=M.next();!X.done;X=M.next())if(X=X.value,H===X){H=X;break a}H=Object}S.attributeType=H}}};
y2W=function(){};
B6X=function(p){var J;return(J=p.hostElement)!=null?J:p};
Ubi=function(){throw Error("Mg");};
sa9=function(p,J){p.constructor.prototype.useSignals=!0;var S=new p.constructor;W19(S,p,J.behaviors);CE4(J.reactiveSchemas,S);S={};for(var H=_.K(J.reactiveSchemas),M=H.next();!M.done;M=H.next())M=M.value,M.type==="signal"&&(S[M.propertyKey]=M.attributeType);var X={copyPropertiesToProto:Ubi,didRegister:!1,typesForSignals:S},Z=["disable-upgrade"].concat(_.dW(J.observedAttributes)),n=function(b){qQ.call(this,p,J,X,b)};
_.Q(n,qQ);_.vh.Object.defineProperties(n,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Z}}});
X.copyPropertiesToProto=function(){for(var b=0;b<J.behaviors.length;b++)S6t(J.behaviors[b],n.prototype);S6t(p,n.prototype)};
J.legacyOptimizations||X.copyPropertiesToProto();n.prototype.is=p.is;return n};
gPw=function(p,J){if(Object.getPrototypeOf(J.prototype).constructor!==_.T)throw Error("Ng");J.prototype.is=p.is;return sa9(J.prototype,p)};
tc9=function(p){return p.type==="compute"||p.type==="computeWithMethod"};
hQw=function(p){for(var J=p.reactiveSchemas.filter(tc9),S=new Map,H=new Map,M=new Map,X=_.K(J),Z=X.next();!Z.done;Z=X.next())Z=Z.value,S.set(Z.propertyKey,Z),H.set(Z.propertyKey,[]),M.set(Z.propertyKey,0);X=0;J=_.K(J);for(Z=J.next();!Z.done;Z=J.next()){Z=Z.value;for(var n=_.K(Z.type==="computeWithMethod"?Z.method.args:Z.args),b=n.next();!b.done;b=n.next())b=b.value,b.type!=="literal"&&(b=b.path.split(".")[0],H.has(b)&&(H.get(b).push(Z.propertyKey),M.set(Z.propertyKey,M.get(Z.propertyKey)+1),X++))}Z=
[].concat(_.dW(H.keys())).filter(function(F){return M.get(F)===0});
for(J=[];Z.length;)for(n=Z.shift(),J.push(S.get(n)),n=_.K(H.get(n)),b=n.next();!b.done;b=n.next())b=b.value,M.set(b,M.get(b)-1),X--,M.get(b)===0&&Z.push(b);S=p.reactiveSchemas.filter(function(F){return!tc9(F)});
p.reactiveSchemas=[].concat(_.dW(S),_.dW(J))};
DbX=function(p,J){if(J.properties)for(var S=_.K(Object.entries(J.properties)),H=S.next();!H.done;H=S.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;p.properties[H]=typeof M==="function"?{type:M}:M}J.observers&&p.observers.push.apply(p.observers,_.dW(J.observers));J.disabledPolySiReactions&&p.disabledPolySiReactions.push.apply(p.disabledPolySiReactions,_.dW(J.disabledPolySiReactions))};
kM4=function(p,J){for(var S=J.length-1;S>=0;S--){var H=J[S];Array.isArray(H)?kM4(p,H):p.indexOf(H)<0&&p.unshift(H)}};
N6i=function(p,J){p.reactiveSchemas=p.reactiveSchemas.filter(function(S){return S.type==="observe"&&J.includes(S.method.methodName)||tc9(S)&&J.includes(S.propertyKey)?!1:!0})};
dbi=function(p,J){var S=J.prototype,H,M,X={is:p.is,reactiveSchemas:[],observedAttributes:[],behaviors:[j3k.InjectBehavior,B6.prototype],disableElementRegistration:p.disableElementRegistration,provide:(H=p.providers)!=null?H:[],reactivityMode:p.reactivityMode,signalProperties:(M=S.signalProperties)!=null?M:[]};"template"in J?X.templateGetter=function(){return J.template}:p.getTemplate&&(X.templateGetter=p.getTemplate);
S.behaviors&&kM4(X.behaviors,S.behaviors);T63(X,J);return X};
T63=function(p,J){for(var S=J.prototype,H={properties:{},observers:[],disabledPolySiReactions:[]},M=_.K(p.behaviors),X=M.next();!X.done;X=M.next())DbX(H,X.value);DbX(H,S);if(p.signalProperties)for(S=_.K(p.signalProperties),M=S.next();!M.done;M=S.next())delete H.properties[M.value];S=_.K(Object.entries(H.properties));for(M=S.next();!M.done;M=S.next()){X=_.K(M.value);M=X.next().value;X=X.next().value;var Z=void 0;if((Z=p.signalProperties)==null||!Z.includes(M)){Z=void 0;var n=p,b=X.type;if(!b)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{b=Reflect.getMetadata("design:type",J,M);for(var F=_.K(uT9),f=F.next();!f.done;f=F.next())if(f=f.value,b===f){b=f;break a}b=Object}else b=String;X.computed||X.selector||(n.reactiveSchemas.push({type:"signal",propertyKey:M,value:X.value,attributeType:b,readOnly:X.readOnly}),n.observedAttributes.push(_.K1(M)));X.reflectToAttribute&&n.reactiveSchemas.push({type:"reflect",propertyKey:M});if(X.computed){b=eq3(X.computed);if(!b)throw Error("Og");n.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:M,method:b,value:X.value})}X.observer&&n.reactiveSchemas.push({type:"observe",method:{methodName:X.observer,args:[{type:"path",path:M}]}});X.notify&&n.reactiveSchemas.push({type:"notify",propertyKey:M});X.selector&&n.reactiveSchemas.push({type:"redux",propertyKey:M,selector:X.selector,selectorArgs:(Z=X.selectorArgs)!=null?Z:[]})}}l1s&&hQw(p);J=_.K(H.observers);for(M=J.next();!M.done;M=J.next())S=p,M=M.value,(X=eq3(M))?S.reactiveSchemas.push({type:"observe",method:X}):console.log('Warning: unable to parse observe declaration: "'+
M+'"');N6i(p,H.disabledPolySiReactions)};
Vc3=function(p,J){for(var S=0;S<J.length;S++){var H=J[S],M=void 0;(M=H).showHideApi!=null||(M.showHideApi={});M=void 0;!!p!==!((M=H.showHideApi)==null||!M.hideTemplateChildren)&&(H.nodeType===Node.TEXT_NODE?p?(H.showHideApi.polymerTextContent=H.textContent,H.textContent=""):(M=void 0,H.textContent=(M=H.showHideApi.polymerTextContent)!=null?M:null):H instanceof Element&&H.localName==="slot"?p?(H.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Rf)((0,_.Rf)(H).parentNode).replaceChild(H.showHideApi.polymerReplaced,
H)):(M=H.showHideApi.polymerReplaced)&&(0,_.Rf)((0,_.Rf)(M).parentNode).replaceChild(H,M):H instanceof HTMLElement&&H.style&&(p?(H.showHideApi.polymerDisplay=H.style.display,H.style.display="none"):H.style.display=H.showHideApi.polymerDisplay));H.showHideApi.hideTemplateChildren=p;H.showHideChildren&&H.showHideChildren(p)}};
a1t=function(){if(!qPW){var p=document.createElement("style");p.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(p);qPW=!0}};
af=function(){return _.z("disable_hidden_dom_if_using_stamper")};
EPv=function(p,J){var S=_.ED().getState();return J?p.apply(null,[S].concat(_.dW(J))):p(S)};
ja3=function(){if(YP4)return YP4;var p=_.K(_.eQ(0,void 0,"MB1Hb")),J=p.next().value;p.next();var S=p.next().value;_.ED().subscribe(function(){r2w(S)});
return YP4=J};
r2w=function(p){wI3||(wI3=!0,Promise.resolve().then(function(){p(function(J){return J+1});
wI3=!1}))};
_.ED=function(){return xbX.getAppStore()};
c2t=function(p,J){return xbX.getSelectFn()(p,J)};
_.Y3=function(p){xbX.getDispatchFn()(p)};
I19=function(p,J){var S={},H;for(H in p)S[H]=J(p[H],H);return S};
_.rw=function(p,J){return function(){var S;return(S=_.a2(p))!=null?S:J}};
_.jh=function(p,J){var S=Object.assign({},p),H;for(H in J)J.hasOwnProperty(H)&&(S[H]=_.rw(p[H],J[H]));return S};
L1W=function(p,J,S){p instanceof Element&&(S.debugName||(S.debugName="<"+p.tagName.toLowerCase()+(p.tagName.includes("-")?">":"."+p.className+">")),_.z("ytwiz_enable_debug_component_props")&&(p.debugProps||(p.debugProps=I19(J,function(H){return function(){return H()}}))))};
_.d=function(p,J){var S=function(H){return rI("ytComponent",{},function(M){var X=p8i={};var Z;if(((Z=S)==null?0:Z.idomCompat)&&H.renderedFromIdom){var n;Z=typeof S.idomCompat==="object"?(n=S)==null?void 0:n.idomCompat.callbacks:{};Z=_.K(J$t(H,Z));n=Z.next().value;Z.next();Z=Z.next().value;var b=SYi(p,n);X.privateValue=b;p8i=void 0;L1W(b,n,S);M.addAttributes({debugName:S.debugName});M=fnX(b);M=Array.isArray(M)?M[0]:M;M[QS]||(M[QS]={});M[QS].updateSignalsFromIdomProps=Z;HWL(n,b);return b}Z=I19(H,Myw);
n=SYi(p,Z);X.privateValue=n;p8i=void 0;L1W(n,Z,S);M.addAttributes({debugName:S.debugName});HWL(Z,n);return n})};
S.debugName=J===void 0?"":J;return S};
SYi=function(p,J){p=p(J);return sg(p)};
X8s=function(p,J){p[J]||(p=new _.TG("IDOM interop setter undefined. Key:",J),_.jD(p))};
Myw=function(p,J){return J==="children"||J==="ref"||typeof p==="function"||p===void 0?p:function(){return _.a2(p)}};
J$t=function(p,J){var S={},H={},M={},X={},Z;for(Z in p){X={key$jscomp$952:X.key$jscomp$952};X.key$jscomp$952=Z;var n=p[X.key$jscomp$952];if(X.key$jscomp$952==="children"||X.key$jscomp$952==="ref")S[X.key$jscomp$952]=n;else if(typeof n==="function")X.key$jscomp$952 in J||n.length>0?(M[X.key$jscomp$952]=n,S[X.key$jscomp$952]=function(F){return function(){return M[F.key$jscomp$952].apply(M,_.dW(_.Yp.apply(0,arguments)))}}(X)):S[X.key$jscomp$952]=n;
else if(!(p[X.key$jscomp$952]===void 0&&X.key$jscomp$952 in J)){var b=_.K(_.eQ(p[X.key$jscomp$952],{debugName:X.key$jscomp$952+":cwis"},"Xpwvze"));n=b.next().value;b=b.next().value;S[X.key$jscomp$952]=n;H[X.key$jscomp$952]=b}}return[S,H,function(F){var f={},O;for(O in F)f={key$jscomp$951:f.key$jscomp$951,val$jscomp$122:void 0},f.key$jscomp$951=O,f.val$jscomp$122=F[f.key$jscomp$951],f.key$jscomp$951!=="children"&&f.key$jscomp$951!=="ref"&&(typeof f.val$jscomp$122==="function"?f.key$jscomp$951 in J?
M[f.key$jscomp$951]=f.val$jscomp$122:f.val$jscomp$122.length>0&&(M[f.key$jscomp$951]=f.val$jscomp$122,_.xQ(new _.TG("Callback detected that was not set in the idomCompat callbacks map. Key:",f.key$jscomp$951))):f.key$jscomp$951 in J&&f.val$jscomp$122===void 0||(X8s(H,f.key$jscomp$951),UG(function(A){return function(){H[A.key$jscomp$951](A.val$jscomp$122)}}(f))))}]};
Kl9=function(p,J,S){var H=LsX(p.prototype,iWi,p.prototype.behaviors);H.prototype.is=J;H.prototype.localName=J;S&&Rsw(H,S);return function(M){M&&(H.prototype.hostElement=M);var X=new H;X.root=X;X.hostElement=M;return X}};
Rsw=function(p,J){var S;Object.defineProperty(p.prototype,"_template",{get:function(){S===void 0&&(S=J());return S},
set:function(H){S=H},
configurable:!0,enumerable:!0})};
mpX=function(p,J,S,H){function M(){if(!P){for(var W=new Set,y=_.K(f),t=y.next();!t.done;t=y.next()){t=t.value;for(var D=_.K(Object.getOwnPropertyNames(t)),k=D.next();!k.done;k=D.next()){k=k.value;var E=void 0,a=(E=Object.getOwnPropertyDescriptor(t,k))==null?void 0:E.value;a&&a instanceof Function&&!ww(k)&&(!n[k]||_.z("polymer_forward_method_killswitch"))&&W.add(k)}}y=_.K(Object.entries(Object.getOwnPropertyDescriptors(p.prototype)));for(t=y.next();!t.done;t=y.next())D=_.K(t.value),t=D.next().value,
D=D.next().value,D.value instanceof Function&&!ww(t)&&W.add(t);P=W}return P}
ZWi(p,J,H==null?void 0:H.providers);pjg(p.prototype,p,!0);var X=Kl9(p,J,S),Z,n=(Z=p.prototype.properties)!=null?Z:{},b,F,f=(F=(b=p.prototype.behaviors)==null?void 0:b.flat(Infinity))!=null?F:[];S=_.K(f);for(Z=S.next();!Z.done;Z=S.next())n=Object.assign({},Z.value.properties,n);var O=[].concat(_.dW(nht),_.dW(Object.keys(n).map(function(W){return _.K1(W)}))),A=!1,P;
return{ctor:function(W,y){var t=X(W),D,k;W=[].concat(_.dW((D=H==null?void 0:H.allowedProps)!=null?D:[]),_.dW((k=H==null?void 0:H.allowedPropsFromBehaviors)!=null?k:[]));t.allowedProps=W.length>0?W:void 0;D={};k=_.K(O);for(W=k.next();!W.done;W=k.next())W=W.value,D[W]=_.Zx(W);t.__dataAttributes=D;var E=t.ready.bind(t);t.ready=function(){y.beforeReady();E();if(P6(J)&&!A){var a=t.__templateInfo;if(a==null?0:a.hostProps){a=_.K(Object.keys(a.hostProps));for(var q=a.next();!q.done;q=a.next())$3(J,q.value,
"PROPERTY_ACCESS_GET_INTERNAL")}A=!0}};
t._overrideLegacyUndefined=!0;return t},
props:n,observedAttributes:O,getInitialMethods:M,getPropsToForwardBeforeRegister:function(){for(var W=[],y=new Set,t=_.K(Object.keys(n)),D=t.next();!D.done;D=t.next())D=D.value,W.push([D,n[D].readOnly]),y.add(D);t=M();D=_.K(Object.keys(Object.getOwnPropertyDescriptors(p.prototype)));for(var k=D.next();!k.done;k=D.next())k=k.value,!GRv(k)||t.has(k)||y.has(k)||(W.push([k,!1]),y.add(k));y=_.K(bWg);for(t=y.next();!t.done;t=y.next())W.push([t.value,!0]);return W},
getPropsToForwardBeforeReady:function(W){for(var y=[],t=_.K(Object.entries(W)),D=t.next();!D.done;D=t.next()){var k=_.K(D.value);D=k.next().value;k=k.next().value;if(GRv(D)&&!(k instanceof Function)&&(y.push([D,!1]),P6(J))){var E=k=void 0;(E=(k=W)._createPropertyAccessor)==null||E.call(k,D)}}return y},
shouldForwardProp:GRv,shouldLog:P6}};
ZWi=function(p,J,S){wFg(p,S);p.prototype.behaviors.unshift(Flw);if(kLv()){if(P6(J)){var H;(H=p.prototype).behaviors!=null||(H.behaviors=[]);p.prototype.behaviors.unshift(u0L())}lS9(p)}_.B(B6.prototype)(p.prototype,"__templateHelpers")};
ww=function(p){return vhW.has(p)||p.startsWith("__compute__")};
GRv=function(p){return!ww(p)&&!p.startsWith("_")&&!p.endsWith("_")};
zs3=function(p,J){function S(){var A=b();A=_.K(A);for(var P=A.next();!P.done;P=A.next()){var W=_.K(P.value);P=W.next().value;W=W.next().value;f8v(O.prototype,P,W)}H=!0}
var H=!1,M=p.ctor,X=p.getInitialMethods,Z=p.observedAttributes,n=p.getPropsToForwardBeforeReady,b=p.getPropsToForwardBeforeRegister,F=p.shouldForwardProp,f=p.shouldLog,O=function(){var A=HTMLElement.call(this)||this;A.didForwardDynamicProps=!1;A.loggingStatus={};H||S();A.inst=M(A,{beforeReady:function(){A.didForwardDynamicProps||(A.forwardDynamicProps(),A.didForwardDynamicProps=!0)}});
A.controllerProxy=Tis(A.inst,J);A.forwardMethods();return A};
_.Q(O,HTMLElement);O.prototype.forwardMethods=function(){for(var A=this,P=_.K(this.inst.getExtraMethodsToForward()),W=P.next(),y={};!W.done;y={method$jscomp$65:void 0},W=P.next()){var t=_.K(W.value);W=t.next().value;t=t.next().value;y.method$jscomp$65=t;this[W]=function(D){return function(){return D.method$jscomp$65.call.apply(D.method$jscomp$65,[A.inst].concat(_.dW(_.Yp.apply(0,arguments))))}}(y)}P=_.K(X());
for(y=P.next();!y.done;y=P.next())y=y.value,F(y)&&OWL(this,y),f(J)&&!ww(y)&&A$W(this.inst,y)};
O.prototype.forwardDynamicProps=function(){var A=n(this.inst);A=_.K(A);for(var P=A.next();!P.done;P=A.next()){var W=_.K(P.value);P=W.next().value;W=W.next().value;f8v(this,P,W);f(J)&&!ww(P)&&Pdg(this.inst,P)}};
O.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
O.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
O.prototype.attributeChangedCallback=function(A,P,W){this.inst.attributeChangedCallbackWrapper(A,P,W)};
_.vh.Object.defineProperties(O.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return J}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.vh.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Z}}});
customElements.define(J,O)};
f8v=function(p,J,S){p.hasOwnProperty(J)||Object.defineProperty(p,J,{get:function(){var H,M=((H=p.is)!=null?H:p.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||$3(M,J,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,H=this.polymerController[J],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,H},
set:function(H){if(!S){var M,X=((M=p.is)!=null?M:p.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||$3(X,J,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=J,this.loggingStatus.bypassProxyController=!0,this.polymerController[J]!==H&&(M={},this.polymerController.setProperties((M[J]=H,M)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
OWL=function(p,J,S){var H=p.polymerController;p[J]=function(){var M=_.Yp.apply(0,arguments);p.loggingStatus.currentExternalCall=J;p.loggingStatus.bypassProxyController=!0;var X,Z=((X=p.is)!=null?X:p.tagName).toLowerCase();$3(Z,J,"PROPERTY_ACCESS_CALL_EXTERNAL");var n;X=(n=S!=null?S:H[J])==null?void 0:n.call.apply(n,[H].concat(_.dW(M)));p.loggingStatus.currentExternalCall=void 0;p.loggingStatus.bypassProxyController=!1;return X}};
A$W=function(p,J){var S=p.hostElement,H=p[J];p[J]=function(){var M=_.Yp.apply(0,arguments);if(S.loggingStatus.currentExternalCall!==J){var X,Z=((X=S.is)!=null?X:S.tagName).toLowerCase();$3(Z,J,"PROPERTY_ACCESS_CALL_INTERNAL")}return H==null?void 0:H.apply(p,M)}};
Pdg=function(p,J){var S=Object.getOwnPropertyDescriptor(p,J);S&&!S.get&&Object.defineProperty(p,J,{get:function(){doW(p.hostElement,J);return S.value},
set:function(H){of(p.hostElement,J);S.value=H}})};
$pw=function(p){return _.z("poly_si_dom_repeat_detached_fix_killswitch")||p.tagName!=="PS-DOM-REPEAT"?p.tagName==="DOM-REPEAT":!0};
esX=function(p,J){var S=ohW(p);p instanceof Element&&S.unshift(p);p=_.K(S.filter($pw));for(var H=p.next();!H.done;H=p.next()){var M=void 0;H=_.K((M=H.value.__instances)!=null?M:[]);for(M=H.next();!M.done;M=H.next())if(M=M.value,M.root){M=Array.from(M.root.children);M=_.K(M);for(var X=M.next();!X.done;X=M.next())S.push.apply(S,_.dW(esX(X.value,J)))}}return S.filter(function(Z){return Z.usePatchedLifecycles&&Z.lifecycleIsConnected===J})};
ohW=function(p){var J=null;p instanceof Element?J=Element.prototype.querySelectorAll:p instanceof DocumentFragment&&(J=DocumentFragment.prototype.querySelectorAll);return J?Array.from(J.call(p,"*")):[]};
x3=function(p){_.$T(function(){for(var J=_.K(esX(p,!1)),S=J.next();!S.done;S=J.next()){S=S.value;S.lifecycleIsConnected=!0;try{var H=void 0,M=void 0,X=void 0,Z=void 0;(H=(Z=S.polymerController)!=null?Z:S)==null||(X=(M=H).connectedCallback)==null||X.call(M)}catch(n){_.jD(n)}}})};
c6=function(p){_.$T(function(){for(var J=_.K(esX(p,!0)),S=J.next();!S.done;S=J.next()){S=S.value;S.lifecycleIsConnected=!1;try{var H=void 0,M=void 0,X=void 0,Z=void 0;(H=(Z=S.polymerController)!=null?Z:S)==null||(X=(M=H).disconnectedCallback)==null||X.call(M)}catch(n){_.jD(n)}}})};
sXi=function(){if(!WlL){WlL=!0;var p=[Node];If&&p.push(If.Wrapper);var J=Node.prototype.insertBefore,S=Node.prototype.removeChild;p=_.K(p);for(var H=p.next(),M={};!H.done;M={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},H=p.next())H=H.value,M.nativeInsertBefore=H.prototype.insertBefore,H.prototype.insertBefore=function(Z){return function(n,b){if(n instanceof DocumentFragment){var F=Array.from(n.children);n=Z.nativeInsertBefore.call(this,n,b);
if(this.isConnected&&Z.nativeInsertBefore===J)for(b=_.K(F),F=b.next();!F.done;F=b.next())x3(F.value);return n}F=n instanceof Element&&n.isConnected;b=Z.nativeInsertBefore.call(this,n,b);F&&c6(n);this.isConnected&&x3(n);return b}}(M),M.nativeAppendChild=H.prototype.appendChild,H.prototype.appendChild=function(Z){return function(n){if(n instanceof DocumentFragment){var b=Array.from(n.children);
n=Z.nativeAppendChild.call(this,n);if(this.isConnected){b=_.K(b);for(var F=b.next();!F.done;F=b.next())x3(F.value)}return n}b=n instanceof Element&&n.isConnected;F=Z.nativeAppendChild.call(this,n);b&&c6(n);this.isConnected&&x3(n);return F}}(M),M.nativeRemoveChild=H.prototype.removeChild,H.prototype.removeChild=function(Z){return function(n){var b=n instanceof Element&&n.isConnected,F=Z.nativeRemoveChild.call(this,n);
b&&S===Z.nativeRemoveChild&&c6(n);return F}}(M),M.nativeReplaceChild=H.prototype.replaceChild,H.prototype.replaceChild=function(Z){return function(n,b){if(n instanceof DocumentFragment){var F=Array.from(n.children);
n=Z.nativeReplaceChild.call(this,n,b);if(this.isConnected)for(c6(b),b=_.K(F),F=b.next();!F.done;F=b.next())x3(F.value);return n}F=n instanceof Element&&n.isConnected;var f=this.isConnected,O=Z.nativeReplaceChild.call(this,n,b);f&&c6(b);F&&c6(n);f&&x3(n);return O}}(M);
p=[Element];If&&p.push(If.Wrapper);p=_.K(p);H=p.next();for(M={};!H.done;M={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},H=p.next())H=H.value,H.prototype.before=QXi(H.prototype.before),H.prototype.after=QXi(H.prototype.after),M.nativeReplaceWith=H.prototype.replaceWith,H.prototype.replaceWith=function(Z){return function(){var n=_.Yp.apply(0,arguments),b=_.K(CdX(n)),F=b.next().value,
f=b.next().value;b=this.isConnected;Z.nativeReplaceWith.apply(this,n);n=_.K(f);for(f=n.next();!f.done;f=n.next())c6(f.value);if(b)for(c6(this),F=_.K(F),b=F.next();!b.done;b=F.next())b=b.value,b instanceof Element&&x3(b)}}(M),M.nativeRemove=H.prototype.remove,H.prototype.remove=function(Z){return function(){var n=this.isConnected;
Z.nativeRemove.call(this);n&&c6(this)}}(M),M.nativeInsertAdjacentElement=H.prototype.insertAdjacentElement,H.prototype.insertAdjacentElement=function(Z){return function(n,b){var F=b.isConnected;
n=Z.nativeInsertAdjacentElement.call(this,n,b);F&&c6(b);n.isConnected&&x3(n);return n}}(M),M.nativeSetAttribute=H.prototype.setAttribute,H.prototype.setAttribute=function(Z){return function(n,b){var F=y$X(this);
if(!F.usePatchedLifecycles)return Z.nativeSetAttribute.call(this,n,b);var f=this.getAttribute(n);Z.nativeSetAttribute.call(this,n,b);b=this.getAttribute(n);BaW(F,n,f,b)}}(M),M.nativeRemoveAttribute=H.prototype.removeAttribute,H.prototype.removeAttribute=function(Z){return function(n){var b=y$X(this);
if(!b.usePatchedLifecycles)return Z.nativeRemoveAttribute.call(this,n);var F=this.getAttribute(n);Z.nativeRemoveAttribute.call(this,n);F!==null&&BaW(b,n,F,null)}}(M),M.nativeToggleAttribute=H.prototype.toggleAttribute,H.prototype.toggleAttribute=function(Z){return function(n,b){var F=y$X(this);
if(!this.usePatchedLifecycles)return Z.nativeToggleAttribute.call(this,n,b);var f=this.getAttribute(n),O=f!==null;b=Z.nativeToggleAttribute.call(this,n,b);b!==O&&BaW(F,n,f,b?"":null);return b}}(M);
p=[Document,DocumentFragment,Element,ShadowRoot];If&&p.push(If.Wrapper);p=_.K(p);for(M=p.next();!M.done;M=p.next())M=M.value,M.prototype.prepend=QXi(M.prototype.prepend),M.prototype.append=QXi(M.prototype.append);(If==null?void 0:If.noPatch)===!0&&Upg();document.readyState==="complete"?x3(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&x3(document.body)});
var X=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");X&&X.get&&X.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:X.enumerable,configurable:!0,get:X.get,set:function(Z){Z||c6(this);X.set.call(this,Z);return Z}})}};
QXi=function(p){return function(){var J=_.Yp.apply(0,arguments),S=_.K(CdX(J)),H=S.next().value;S=S.next().value;p.apply(this,J);J=_.K(S);for(S=J.next();!S.done;S=J.next())c6(S.value);if(this.isConnected)for(H=_.K(H),J=H.next();!J.done;J=H.next())J=J.value,J instanceof Element&&x3(J)}};
Upg=function(){for(var p=_.K(ghg),J=p.next();!J.done;J=p.next()){J=J.value.prototype;for(var S=_.K(tys),H=S.next();!H.done;H=S.next()){H=H.value;var M=Object.getOwnPropertyDescriptor(J,H);M&&Object.defineProperty(J,"__shady_native_"+H,M)}}};
BaW=function(p,J,S,H){var M,X;if((M=p.polymerController)==null?0:(X=M.observedAttributes)==null?0:X.includes(J))if(p=p.polymerController,p.attributeChangedCallbackWrapper)p.attributeChangedCallbackWrapper.call(p,J,S,H);else{var Z;(Z=p.attributeChangedCallback)==null||Z.call(p,J,S,H)}};
CdX=function(p){var J=[],S=[];p=_.K(p);for(var H=p.next();!H.done;H=p.next())H=H.value,H instanceof Element&&H.isConnected&&S.push(H),H instanceof DocumentFragment?J.push.apply(J,_.dW(Array.from(H.children))):J.push(H);return[J,S]};
y$X=function(p){return!(p instanceof Element)&&p.node instanceof Element?p.node:p};
hsi=function(p,J){var S=J?["children"].concat(_.dW(J)):["children"];J=[];S=_.K(S);for(var H=S.next();!H.done;H=S.next()){var M=H.value;if(p.hasOwnProperty(M)){H=p[M];H=typeof H==="function"?H():H;H=Array.isArray(H)?H:[H];H=sg(H).flat();if(M!=="children"){M=jK3(M);for(var X=_.K(H),Z=X.next();!Z.done;Z=X.next())Z=Z.value,Z instanceof Element&&Z.setAttribute("slot",M)}J.push(H)}}J.length===0?p=[]:(p=sg(_.m("div",null,J)),p=Array.from(p.childNodes));return p};
kRi=function(p,J,S){var H={};_.uf(function(){var M={},X;for(X in J)if(J.hasOwnProperty(X)){var Z=void 0,n=void 0;if(!(((Z=S.slotProps)==null?0:Z.includes(X))||X==="children"||((n=S.callbackProps)==null?0:n.includes(X))||X==="ref")&&(Z=_.a2(J[X]),H[X]!==Z)){H[X]=Z;n=void 0;var b=(n=p.hostElement)!=null?n:p;!S.skipHostForwardedProps&&DpW.has(X)&&(b[X]=Z);M[X]=Z}}UG(function(){if(p.setProperties)p.setProperties(M);else for(var F=_.K(Object.entries(M)),f=F.next();!f.done;f=F.next()){var O=_.K(f.value);
f=O.next().value;O=O.next().value;p[f]=O}})},"j")};
Taw=function(p,J,S,H){var M=hsi(S,H.slotProps),X=(0,_.Rf)(p);M=_.K(M);for(var Z=M.next();!Z.done;Z=M.next())X.appendChild(Z.value);kRi(J,S,H);H=_.K(H.callbackProps||[]);M=H.next();for(X={};!M.done;X={kebabEventName:void 0,eventListener:void 0},M=H.next())Z=M=M.value,String(M).substring(0,2)==="on"&&S[Z]?(X.kebabEventName=jK3(String(M).substring(2)),X.eventListener=S[Z],p.addEventListener(X.kebabEventName,X.eventListener),_.VY(function(f){return function(){p.removeEventListener(f.kebabEventName,f.eventListener)}}(X))):
J[Z]=S[Z];
if(S.ref){S=_.K(NaW(S.ref));var n=S.next().value,b=S.next().value,F=J.attached.bind(J);J.attached=function(){n(p);F()};
_.VY(function(){b()})}};
NaW=function(p){if(typeof p==="function"){var J;return[function(S){J=p(S)},
function(){var S;(S=J)==null||S()}]}if(!p.onRender||!p.onUnmount)throw Error("Sg");
return[p.onRender,p.onUnmount]};
dpX=function(p,J){J=J===void 0?{}:J;var S=function(H){var M=document.createElement(p),X;var Z=(X=M.polymerController)!=null?X:M;Taw(M,Z,H,J);return M};
S.debugName=p+" (CoW wrapped)";return S};
qYi=function(p,J,S,H,M){H=H===void 0?{}:H;var X=u1k,Z=!1;X?(Z=!0,u1k=void 0):(l8L=J,X=document.createElement(J),l8L=void 0);var n=X;n.usePatchedLifecycles=!0;n.lifecycleIsConnected=!1;X.loggingStatus={};var b=Vyt(p,J,X,H,M);_.VY(function(){n.lifecycleIsConnected&&(n.lifecycleIsConnected=!1,b.disconnectedCallback())});
Z||(X.__noInsertionPoint=!0,Taw(X,b,S,H));return X};
Vyt=function(p,J,S,H,M){M=M===void 0?mpX:M;a8s[J]!=null||(a8s[J]=M(p,J,H==null?void 0:H.getTemplate,H));var X=a8s[J],Z=X.ctor;M=X.getInitialMethods;var n=X.getPropsToForwardBeforeReady;p=X.getPropsToForwardBeforeRegister;H=X.shouldForwardProp;var b=X.observedAttributes,F=X.shouldLog,f=Z(S,{beforeReady:function(){var O=f;O._takeAttributes?O._takeAttributes():O.setPropertiesFromInitialAttributeValues&&O.setPropertiesFromInitialAttributeValues();O=_.K(n(S.polymerController));for(var A=O.next();!A.done;A=
O.next()){var P=_.K(A.value);A=P.next().value;P=P.next().value;f8v(S,A,P);F(J)&&!ww(A)&&Pdg(S.polymerController,A)}S.polymerController=Tis(f,J)}});
S.polymerController=f;S.polymerController.observedAttributes=b;X=_.K(f.getExtraMethodsToForward());for(Z=X.next();!Z.done;Z=X.next())b=_.K(Z.value),Z=b.next().value,b=b.next().value,OWL(S,Z,b);M=_.K(M());for(X=M.next();!X.done;X=M.next())X=X.value,H(X)&&OWL(S,X),F(J)&&!ww(X)&&A$W(f,X);p=_.K(p());for(H=p.next();!H.done;H=p.next())M=_.K(H.value),H=M.next().value,M=M.next().value,f8v(S,H,M);return f};
Eh4=function(p){var J=L3;L3=p;return J};
jXv=function(p){if(YYk.has(p)&&L3&&r$w(L3)===p){var J;(J=L3)._numRenders!=null||(J._numRenders=0);L3._numRenders++;if(L3._numRenders>1)throw Error("Tg");return L3}};
xpi=function(p){var J=r$w(p);L3!==p&&J.includes("-")&&w8v.set(p,!0)};
r$w=function(p){var J;return(J=p==null?void 0:p.tagName.toLowerCase())!=null?J:""};
c$L=function(p,J){if(p.componentType===gr)throw Error("Ug");YYk.add(J);var S=function(){var H=HTMLElement.call(this)||this;H.is=J;if(l8L===J)return H.isInert=!0,H;H.createElement();return H};
_.Q(S,HTMLElement);S.prototype.createElement=function(){if(!this.isInert){u1k=this;var H=_.K(_.apw(function(){return _.m(p,null)})).next().value;
u1k=void 0;dCv(this);return H}};
customElements.define(J,S)};
Lls=function(p,J,S,H,M){p.prototype.is=J;(H==null?0:H.useSink)?I8X(p,J,S,H,M):(S=mpX(p,J,S,H),zs3(S,J));return p};
I8X=function(p,J,S,H,M){sXi();var X=_.d(function(Z){return qYi(p,J,Z,Object.assign({},H,{getTemplate:S}),M)},"k");
X.debugName=J+" (CoW wrapped)";c$L(X,J);return X};
JxW=function(p){return!pKk.has(p)};
MRL=function(p,J,S,H){function M(){if(!O){for(var A=new Set(SUv),P=_.K(X.behaviors),W=P.next();!W.done;W=P.next()){W=W.value;for(var y=_.K(Object.getOwnPropertyNames(W)),t=y.next();!t.done;t=y.next()){t=t.value;var D=void 0,k=(D=Object.getOwnPropertyDescriptor(W,t))==null?void 0:D.value;k&&k instanceof Function&&(!F[t]||_.z("polymer_forward_method_killswitch"))&&A.add(t)}}P=_.K(Object.entries(Object.getOwnPropertyDescriptors(p.prototype)));for(W=P.next();!W.done;W=P.next())y=_.K(W.value),W=y.next().value,
y=y.next().value,y.value instanceof Function&&A.add(W);O=A}return O}
var X=dbi({is:J,disableElementRegistration:!1,getTemplate:S,providers:H==null?void 0:H.providers,reactivityMode:H==null?void 0:H.reactivityMode},p);if((H==null?0:H.allowedProps)||(H==null?0:H.allowedPropsFromBehaviors)){var Z,n;X.allowedProps=[].concat(_.dW((Z=H.allowedProps)!=null?Z:[]),_.dW((n=H.allowedPropsFromBehaviors)!=null?n:[]))}var b=gPw(X,p);J=b.observedAttributes;var F={};S=_.K(X.reactiveSchemas);for(H=S.next();!H.done;H=S.next())if(H=H.value,H.type==="signal")F[H.propertyKey]={readOnly:H.readOnly},
H.readOnly&&(F[Kvw(H.propertyKey)]={readOnly:!0});else if(H.type==="compute"||H.type==="computeWithMethod"||H.type==="redux")F[H.propertyKey]={readOnly:!0};var f=X.reactiveSchemas.length,O;return{ctor:function(A,P){A=new b(A);A.beforeReady=P.beforeReady;return A},
props:F,observedAttributes:J,getInitialMethods:M,getPropsToForwardBeforeRegister:function(){for(var A=[],P=new Set,W=_.K(HRk),y=W.next();!y.done;y=W.next())y=y.value,A.push([y,y!=="observers"&&y!=="properties"]),P.add(y);W=_.K(Object.keys(F));for(y=W.next();!y.done;y=W.next())y=y.value,A.push([y,F[y].readOnly]),P.add(y);W=M();y=_.K(Object.keys(Object.getOwnPropertyDescriptors(p.prototype)));for(var t=y.next();!t.done;t=y.next())t=t.value,!JxW(t)||W.has(t)||P.has(t)||(A.push([t,!1]),P.add(t));A.push(["allowedProps",
!0]);return A},
getPropsToForwardBeforeReady:function(A){var P=[];A=_.K(Object.keys(A));for(var W=A.next();!W.done;W=A.next()){W=W.value;var y=M();JxW(W)&&!y.has(W)&&P.push([W,!1])}A=_.K(X.reactiveSchemas.slice(f));for(W=A.next();!W.done;W=A.next())W=W.value,W.type!=="compute"&&W.type!=="computeWithMethod"&&W.type!=="redux"&&W.type!=="signal"||P.push([W.propertyKey,W.type==="signal"?W.readOnly:!0]);return P},
shouldForwardProp:JxW,shouldLog:P6}};
_.l=function(p,J,S,H){var M,X,Z=(X=(M=H)==null?void 0:M.mode)!=null?X:0;H!=null||(H={});var n;(n=H).reactivityMode!=null||(n.reactivityMode=0);Z===1&&_.oy("creator_poly_si_disable_list").includes(J)&&(Z=2);return Z===1?Lls(p,J,S,Object.assign({},H,{useSink:!0}),MRL):Lls(p,J,S,Object.assign({},H,{useSink:Z===2}))};
_.pI=function(){return function(p,J,S,H){var M,X,Z=(X=(M=H)==null?void 0:M.mode)!=null?X:2;H!=null||(H={});var n;(n=H).reactivityMode!=null||(n.reactivityMode=0);if(Z===0)throw Error("Vg`"+Z);return I8X(p,J,S,H,Z===1?MRL:void 0)}};
_.Jz=function(p){return _.z("creator_poly_si_killswitch")?!1:_.z("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||_.z(p+"_holdback_enabled")&&_.z("kevlar_polysi_holdback")?!1:_.z(p)};
Sr=function(p){return p?p.icon?p.icon.iconType.toLowerCase():p.customThumbnail?"member":"":""};
XKs=function(p){if(!p)return"";p=_.K(p);for(var J=p.next();!J.done;J=p.next())if((J=J.value)&&J.liveChatAuthorBadgeRenderer&&(J=Sr(J.liveChatAuthorBadgeRenderer))&&J!=="verified")return J;return""};
iRg=function(p,J){if(!p)return null;var S;return((S=p.find(function(H){return H&&H.liveChatAuthorBadgeRenderer?Sr(H.liveChatAuthorBadgeRenderer)===J:!1}))==null?void 0:S.liveChatAuthorBadgeRenderer)||null};
_.bRi=function(p){var J=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;p=R5X(p);J=R5X(J);var S=KFk(p.hex);J=KFk(J.hex);var H=J[0]/255;var M=J[1]/255,X=J[2]/255,Z=Math.max(H,M,X),n=Math.min(H,M,X),b=0,F=0,f=.5*(Z+n);Z!=n&&(Z==H?b=60*(M-X)/(Z-n):Z==M?b=60*(X-H)/(Z-n)+120:Z==X&&(b=60*(H-M)/(Z-n)+240),F=0<f&&f<=.5?(Z-n)/(2*f):(Z-n)/(2-2*f));H=[Math.round(b+360)%360,F,f];S=ZRw(S,J);for(p=n6X(p.hex);S<4.5;){p=H[2]>=.5?p.darker((4.5-S)/2):p.brighter((4.5-S)/2);S=p.toString();
M=G9i(S);if(!M.length)throw Error("Xd`"+S);S=M;S=ZRw(S,J)}return p.hex()};
ZRw=function(p,J){p=_.uqL(p);J=_.uqL(J);return(Math.max(p,J)+.05)/(Math.min(p,J)+.05)};
_.Hi=function(p){return"#"+("000000"+(p&16777215).toString(16)).slice(-6)};
_.mOL=function(p){for(var J=0,S=0;S<p.length;S++)J=p.charCodeAt(S)+((J<<5)-J);p="#";for(S=0;S<3;S++)p+=("00"+(J>>S*8&255).toString(16)).slice(-2);return p};
FFW=function(p){p=(p||"").split(":");p.length===1&&p.unshift("yt-icons");p[1]=p[1].toLowerCase();return p};
z5s=function(p,J){var S=(J=J===void 0?!1:J)?v6i:fGi,H=J?ORt:Axt;p.getIconNames().forEach(function(M){M=J?M:M.substring(M.indexOf(":")+1);p.name==="yt-icons"?Ps4.add(M):M.includes("-filled")?S.add(M):H.add(M)})};
Mn=function(p,J,S,H){S=S===void 0?!1:S;H=H===void 0?!1:H;var M,X,Z;return _.G(function(n){if(n.nextAddress==1)return n.yield($Og,2);if(H)return n.return(Ps4.has(p));M=S?v6i:fGi;X=S?ORt:Axt;return J?(Z=p.includes("-filled")?p:p.concat("-filled"),n.return(M.has(Z))):n.return(X.has(p))})};
_.Xj=function(p){if(o6i(p))return p.toString();var J=e5v.get(p);if(J)return J;J=p.toLowerCase();var S="yt-icons",H=J.replace(/_/g,"-");switch(p){case "MY_CHANNEL":J="account_circle";break;case "ADD_TO_LIBRARY":J="add";break;case "ALERT_WARN_RED":J="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":J="person_music";break;case "BLOCK_USER":J="block";break;case "CAPTIONS":J="closed_caption";break;case "CLOSED_CAPTION":S="av";J="closed-caption";break;case "COLLECTION":S="maps";J="layers";break;case "CONTACT":S=
"icons";J="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":S="yt-studio-system-icons";J=H.split("creator-studio-")[1];break;case "DISMISSAL":J="close";break;case "DO_NOT_DISTURB":J="block";break;case "DOGFOOD":S="icons";J="pets";break;case "DRAFT":J="paper_corner_folded";
break;case "EMPTY_LIKE":J="like_outline";break;case "EXIT_APP":J="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":J=H;break;case "GAMES":S="ytg";J="my-games";break;case "GO_TO_PAGE":J="arrow-forward";break;case "GROUP":S="social";break;case "HIDE":J="not_interested";break;case "INPUT_COMPONENT":S="icons";J="settings-input-component";break;case "KIDS_BLOCK":J="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":S="ytg";J="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":S=
"ytg";J="membership-post-purchase";break;case "MULTIVIEW":J="screen_multi_view";break;case "MY_LOCATION":S="maps";J=H;break;case "NOTIFICATIONS_INBOX":J="NOTIFICATIONS";break;case "NEXT":J="chevron_right";break;case "OFFLINE":J="power-settings-new";break;case "PAUSE":S="miniplayer";break;case "PAYMENT":S="icons";break;case "PHONE_DOWNLOAD":J="phone_download";break;case "PREMIUM_STANDALONE":S="yt-logos";J="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":S="yt-logos";J="premium_standalone_cairo";
break;case "QUESTION_ANSWER":J="question_answer";break;case "REDEEM":S="icons";J="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":J="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":J="library_add";break;case "SCHOOL":S="yt-sys-icons";J="creator_academy";break;case "SETTINGS_LIGHT":J="settings_applications";break;case "SETTINGS_MATERIAL":J="settings";break;case "SEARCH_HISTORY":J="watch_history";break;case "SHOPPING_BAG":J="bag";break;case "SOCIAL":case "PEOPLE":S=
"yt-icons";J="people";break;case "STAFF_PICK":S="ytg";J="spotlight";break;case "START_DVR":J="add";break;case "STOP_DVR":S="av";J="stop";break;case "TAB_LIKED":J="like";break;case "TAB_INBOX":J="mail";break;case "TERMS_OF_SERVICE":S="icons";J="description";break;case "TRENDING":J="fire";break;case "UNBLOCK_USER":J="remove";break;case "UNPLUGGED_DARK_THEME":S="image";J="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":J="live";break;case "UNPLUGGED_SPORTS":S="ytu";J="visibility-off";break;
case "VIDEOS":S="av";J="play-circle-filled";break;case "YOUTUBE":S="yt-logos";J="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":S="yt-logos-ext";J="yt-logo-red-updated";break;case "YOUTUBE_LOGO":S="yt-logos-ext";J="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":S="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":S="shorts";J=H;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":S="yt-sys-icons";J="youtube_improve_tv";break;case "OUTLINE_BAG":S=
"yt-sys-icons";J="bag";break;case "QUEUE_PLAY_LAST":S="yt-sys-icons";J="list_queue_last";break;case "SLASH_CIRCLE_LEFT":J="slash_circle_left";break;case "SPEED_1_POINT_2X":J="1_point_2x";break;case "SPEED_1_POINT_5X":J="1_point_5x";break;case "SPEED_1_POINT_8X":J="1_point_8x";break;case "SPEED_POINT_2X":J="point_2x";break;case "SPEED_POINT_5X":J="point_5x";break;case "SPEED_POINT_8X":J="point_8x";break;case "SPEED_1X":J="1x";break;case "SPEED_2X":J="2x";break;case "TAB_BOOKMARK":J="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":S="yt-sys-icons";J="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":S="yt-sys-icons";J="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":S="yt-sys-icons",J="tic_tac_toe"}J=S+":"+J;e5v.set(p,J);return J};
o6i=function(p){var J;_.z("kevlar_use_wil_icons")?J=!!_.vO().resolve(_.iC).resolveIcon({iconName:p.toString()}):J=!1;return J};
_.KI=function(p,J,S,H){S=S===void 0?{}:S;H=H===void 0?!1:H;S===null&&(S={});var M=_.oy("kevlar_command_handler_command_banlist");M=_.K(M);for(var X=M.next();!X.done;X=M.next())if(X=p?p.hasOwnProperty(X.value):void 0,X)return!1;M=_.e(p.commandMetadata,_.i7);return H&&M!=null&&M.url?!1:!J.disableCommandHandlerOverride&&_.R4.instance?(H=_.R4.instance,S.form||(S.form={element:J}),S.form.element||(S.form.element=J),!S.clickedVisualElement&&J.visualElement&&(S.clickedVisualElement=J.visualElement),H.resolveCommand(p,
S),!0):!1};
WFi=function(p,J){p=Zm(p);for(var S=_.K(p.visibilityMonitorKeys||[]),H=S.next();!H.done;H=S.next())J.unobserveByKey(H.value);p.visibilityMonitorKeys=void 0};
B3w=function(p,J){if(_.C1()){if(_.z("kevlar_vimio_use_shared_monitor"))Qo4(p,J.data);else if(!Qo4(p,J.data))return;var S=J.data,H=Csv(S);if(_.z("enable_client_ve_spec_logging"))WFi(p,J.observer);else{var M=Zm(p);M.trackedParams&&M.trackedParams!==H&&WFi(p,J.observer)}M=Zm(p);!S||M.data&&M.data===S||(M.data=S);yxX(p,J);M.trackedParams=H}};
yxX=function(p,J){var S=J.observer;if(!S&&_.z("web_skip_missing_vimio_observer")){var H,M;_.xQ(new _.TG("VisibilityObserver is not defined.",p.tagName,p.trackedParams,(H=J.data)==null?void 0:H.trackingParams,(M=J.data)==null?void 0:M.loggingDirectives))}else{var X=J.layer,Z=J.visibilityCallback||function(){},n=J.prescanCallback,b=Zm(p);
H=[];J.showOption&&H.push(S.observe(p,function(){J.skipLogging&&J.skipLogging()||_.nI().reportShown(b,void 0,X,7);Z(!0)},J.showOption));
J.hideOption&&H.push(S.observe(p,function(){_.nI().reportHidden(b,void 0,X,7);Z(!1)},J.hideOption));
J.prescanOption&&n&&H.push(S.observe(p,function(){n()},J.prescanOption));
b.visibilityMonitorKeys=H}};
Qo4=function(p,J){p=Zm(p);if(p.visualElement&&!J)return!0;if(!J)return!1;var S=!1;if(_.z("enable_client_ve_spec_logging")){var H,M;S=!!((H=J.loggingDirectives)==null?0:(M=H.clientVeSpec)==null?0:M.uiType)}H=Csv(J);if(!H&&!S)return!1;_.z("mweb_component_visibility_logging")&&(p.veContainer||(p.veContainer={}),p.veContainer.trackingParams=H);if(p.trackedParams&&p.trackedParams===H)return!1;var X;if(_.z("enable_client_ve_spec_logging")&&((X=p.visualElement)==null?0:X.isClientVe())){var Z;X=(Z=p.visualElement)==
null?void 0:Z.getAsJspb();var n,b,F,f;if(_.bW(X,2)===((n=J.loggingDirectives)==null?void 0:(b=n.clientVeSpec)==null?void 0:b.uiType)&&_.bW(X,3,-1)===((F=J.loggingDirectives)==null?void 0:(f=F.clientVeSpec)==null?void 0:f.elementIndex))return!1}if(_.z("enable_client_ve_spec_logging")){var O,A;!p.visualElement&&((O=J.loggingDirectives)==null?0:(A=O.clientVeSpec)==null?0:A.uiType)&&(n=J.loggingDirectives.clientVeSpec,J=n.uiType,Z=n.elementIndex,n=n.clientYoutubeData,p.visualElement=_.G$(_.bC(),{veType:J,
elementIndex:Z,clientYouTubeData:n}))}return!0};
Csv=function(p){if(p==null?0:p.rendererContext){var J=_.e(p.rendererContext,_.Fj);if(J==null?0:J.loggingDirectives)return J.loggingDirectives.trackingParams}return(p==null?0:p.loggingDirectives)?p.loggingDirectives.trackingParams:p==null?void 0:p.trackingParams};
Zm=function(p){var J;return(J=p.polymerController)!=null?J:p};
tRW=function(p){_.nI();if(_.c5(vi().JSC$12880_elementShouldLogGesture).bind(vi())(p,4)){UO9(p);var J=soW(p);g6t.set(p,J)}};
UO9=function(p){g6t.has(p)&&(g6t.get(p).cancel("untrack hover element"),g6t.delete(p))};
soW=function(p){var J,S=[],H=!1,M=new _.UI(function(X,Z){fI(p,"mouseenter",_.c5(function(){var n,b,F;return _.G(function(f){if(f.nextAddress==1)return J=(0,_.fO)(),n=h5X(p),S.push(n),b=DOW(p,function(){H=!0;Z(Error("Wg"))}),f.yield(n,2);
if(f.nextAddress!=3)return b&&Oa(b),F=k99(p),S.push(F),f.yield(F,3);X();_.UK(f)})}))});
M.then(function(){var X=(0,_.fO)()-J;X=Math.round(X);if(!(500>X||6E5<=X)){var Z=p.getScreenLayer?p.getScreenLayer():void 0;Z=_.C1(Z)||"";var n=N3v(_.nI(),p);_.Vf(Z,p.visualElement?p.visualElement:_.Az(n),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:X}})}tRW(p)},function(){Pi&&(Pi(),Pi=null);
H&&(UO9(p),tRW(p))});
return M};
h5X=function(p){var J;return(new _.UI(function(S,H){Pi=function(){H(Error("Xg"))};
J=_.wg.debounce(_.c5(function(){Oa(M);S()}),1,100);
var M=_.z$(p,"mousemove",J)})).thenCatch(function(){var S=_.wg.cancelDebouncedJobMap.get(J);
S&&_.wg.cancelJob(S)})};
k99=function(p){var J;return(new _.UI(function(S,H){Pi=function(){H(Error("Yg"))};
J=fI(p,"mouseleave",_.c5(function(){S()}))})).thenCatch(function(){Oa(J)})};
DOW=function(p,J){return fI(p,"mouseleave",_.c5(J))};
dOX=function(p){T3X&&_.$2.cancel(T3X);T3X=_.$2.run(function(){_.cf(p,"yt-visibility-refresh");T3X=0})};
ukX=function(p){p=Number(p);return"rgba("+[p>>16&255,p>>8&255,p&255,(p>>24&255)/255].join()+")"};
VRX=function(p){if(!p)return!1;if(_.e(p,_.lGi))return!0;var J;if(p=(J=_.e(p,_.H9))==null?void 0:J.commands)for(J=_.K(p),p=J.next();!p.done;p=J.next())if(_.e(p.value,_.lGi))return!0;return!1};
qUw=function(p){var J=!0;J=J===void 0?!0:J;if(!p.useSignals&&!p.experimentalPropertiesChanged||_.z("experimental_templating_behavior_nopatch_killswitch")){var S=p._propertiesChanged;p._propertiesChanged=function(H,M,X){J?p.debounceRender():p.doRender();S&&S.call(p,H,M,X)}}};
aG3=function(p,J){if(p.useSignals||p.experimentalPropertiesChanged)if(_.z("experimental_templating_behavior_nopatch_killswitch"))p.experimentalPropertiesChanged=function(){};
else return;var S=new Set,H=[p].concat(_.dW(p.behaviors));H=_.K(H);for(var M=H.next();!M.done;M=H.next()){M=M.value;for(var X in M.properties)S.has(X)||(p._addPropertyEffect(X,"function",J),S.add(X))}};
E69=function(){var p=Polymer.Element,J=p._prepareTemplate;p._prepareTemplate=function(){J.call(this);var S=this.prototype;if(S.experimentalTemplatingInUse&&S.experimentalTemplatingInUse()&&S.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.jD(Error("Zg"));else{S=this.template.content.childNodes;for(var H=S.length-1;H>=0;H--){var M=S[H];M.nodeName!=="STYLE"&&M.nodeName!=="LINK"&&M.nodeName!=="SCRIPT"&&M.nodeName!=="#comment"&&M.remove()}}}};
YUX=function(p){var J=!0;J=J===void 0?!0:J;E69();var S=p.ready;p.ready=function(){this._template=null;S.call(this)};
aG3(p,J?p.debounceRender:p.doRender)};
jo9=function(p,J,S){if(S===null||S===void 0)return S;var H=BdL(p.tagName.toLowerCase(),J,function(){throw Error("Tb");});
if(H===null)return S;H=rxs[H];var M;if((M=H.isUnwrappable)==null?0:M.call(H,S)){if(H.unwrap)return H.unwrap(S);throw Error("bh");}return H.filterString?H.filterString(p.tagName,J,String(S)):S};
wKX=function(p,J,S){var H=J[J.length-1]!=="$",M=jo9(p,J,S);if(H)if(typeof M==="function"&&J.startsWith("reactiveon")&&J===J.toLowerCase()){var X=X4;TdX(p,J.slice(8),function(Z){EG(X,function(){M(Z)})})}else p[J]=M;
else S=M==null?null:String(M),cW(p,J.slice(0,-1),S)};
er=function(p){xO9.length===0&&requestAnimationFrame(function(){setTimeout(function(){var J=xO9.slice();xO9.length=0;J=_.K(J);for(var S=J.next();!S.done;S=J.next()){S=S.value;try{S()}catch(H){_.o4(H)}}})});
xO9.push(p)};
cx4=function(p){if(p){var J=p.component;if(J){var S;J==null||(S=J.events)==null||S.publish("DISCONNECTED");var H;J==null||(H=J.onDisconnected)==null||H.call(J)}var M,X;(M=p.__spec)==null||(X=M.didUnmount)==null||X.call(M);for(J=0;J<p.childNodes.length;J++)cx4(p.childNodes[J])}};
IGi=function(p,J,S){var H=J&&J.key,M=KV;M[0]=p;M[1]=H;M[2]=void 0;for(var X in J)J.hasOwnProperty(X)&&(p=J[X],H=ZJ,H.push(X),H.push(p));J=KV;a:{if(X=KV[2])for(p=0;p<X.length;p+=2)if(X[p]==="nonce"){X=X[p+1];break a}X=""}X=cwg(J[0],J[1],X);p=J4(X);H=J[2];if(!p.staticsApplied&&(p.staticsApplied=!0,H&&H.length))if((M=p._attrsArr)&&M.length){for(M=0;M<H.length;M+=2)Wi[H[M]]=M+1;M=p._attrsArr||(p._attrsArr=Ndi(0));for(var Z=0,n=0;n<M.length;n+=2){var b=M[n],F=M[n+1],f=Wi[b];f?H[f]===F&&delete Wi[b]:(M[Z]=
b,M[Z+1]=F,Z+=2)}jQ(M,Z);for(var O in Wi)qyX(X,O,H[Wi[O]],vJ),delete Wi[O]}else for(O=0;O<H.length;O+=2)qyX(X,H[O],H[O+1],vJ);MTw(X,p,vJ);jQ(J,0);S&&S(Sn);Iyi()};
_.QM=function(p,J,S){S===void 0?delete p[J.name]:p[J.name]=S};
_.CI=function(p){var J={androidIncludeFontPadding:!1},S=0,H=[],M=[],X=[];if(p.simpleText)return J.content=p.simpleText,J;if(p.runs===void 0)return J.content="",J;p=_.K(p.runs);for(var Z=p.next();!Z.done;Z=p.next()){Z=Z.value;var n=Z.text,b=void 0,F=(b=n)==null?void 0:b.length;if(n&&F){H.push(n);if(Z.bold||Z.italics||Z.strikethrough||Z.underline||Z.textColor!=null&&Z.textColor!==0||Z.deemphasize){n=M;b=n.push;var f={startIndex:S,length:F};Z.bold&&(f.weightLabel="FONT_WEIGHT_MEDIUM");Z.italics&&(f.italic=
!0);Z.strikethrough&&(f.strikethrough="LINE_STYLE_SINGLE");Z.underline&&(f.underline="LINE_STYLE_SINGLE");Z.textColor!=null&&Z.textColor!==0?document.documentElement.hasAttribute("dark")?f.fontColor=Z.darkModeTextColor||Z.textColor:f.fontColor=Z.textColor:Z.deemphasize&&(document.documentElement.hasAttribute("dark")?f.fontColor=parseInt("ff"+LFW("#aaa").substring(1),16):f.fontColor=parseInt("ff"+LFW("#606060").substring(1),16));b.call(n,f)}Z.navigationEndpoint&&(n=X,b=n.push,f={startIndex:S,length:F,
onTap:{innertubeCommand:Z.navigationEndpoint}},Z.loggingDirectives&&_.QM(f,pQX,Z.loggingDirectives),b.call(n,f));S+=F}}J.content=H.join("");J.styleRuns=M.length?M:void 0;J.commandRuns=X.length?X:void 0;return J};
SF3=function(p){if(p==null||!p.runs)return!0;p=_.K(p.runs);for(var J=p.next();!J.done;J=p.next())if(J=J.value,J.bracket||J.errorUnderline||J.deemphasize||_.e(J,yM)||_.e(J,Jpt))return!1;return!0};
HcL=function(p,J){return function(S){var H=J.unit;if(H!==S)throw Error("eh`"+p+"`"+H+"`"+S);return J}};
Bi=function(p){if(!((p==null?0:p.value)&&(p==null?0:p.unit)))return"";switch(p.unit){case "DIMENSION_UNIT_FRACTION":var J="%";break;default:J="px"}p=p.value;J==="%"&&(p*=100);return""+p+J};
Met=function(p){try{return p()}catch(J){_.xQ(J)}};
_.sa=function(p){var J=_.e(p,_.Ua);if(J)return J;if((J=_.e(p,XQw))&&J.commands)return ick(J.commands);if((J=_.e(p,RxX))&&J.commands)return ick(J.commands);if((p=_.e(p,Kwi))&&p.identifier&&p.command&&(Zck||(Zck=[]),!Zck.includes(p.identifier)))return Zck.push(p.identifier),_.e(p.command,_.Ua)};
ick=function(p){if(p.length!==0){var J=[];p=_.K(p);for(var S=p.next();!S.done;S=p.next())(S=_.sa(S.value))&&J.push(S);return{commandExecutorCommand:{commands:J}}}};
_.tz=function(p){var J=p.defaultTarget,S=p.elementConfig,H=p.elementsCommand,M=p.skipOnClick,X=p.forceNewState,Z=p.additionalCommandArgs,n=p.innertubeCommand||_.sa(H);if(n){p={};var b=ngX(n);H=b.navigatingCommand;b=b.href;H&&b?(p.href$=b,GBW(p,H,b,J),_.z("web_atagconfig_pointerdown")&&bci(p,H),X&&(p["force-new-state$"]=!0)):(p.role$="button",p.href$="javascript:void(0);");_.e(n,muv)&&(p["aria-haspopup$"]=!0);M||(p.onclick=function(F){var f={};if(Fwt(F)){var O=(Z==null?void 0:Z.clickedVisualElement)||
(Z==null?void 0:Z.getClickedVisualElement)&&Z.getClickedVisualElement();O&&(f={clickedVisualElement:O});f=Object.assign({},{form:{element:F.target,event:F,createScreenConfig:f}},Z);F.preventDefault();_.ge(n,f)}});
return Object.assign({},S,p)}};
vgi=function(p){if(p.length){if(p.length===1)return p[0];var J={};_.QM(J,_.H9,{commands:p});return J}};
hz=function(p){return p&&p.href$!=="javascript:void(0);"};
ngX=function(p){var J,S=((J=_.e(p,_.H9))==null?void 0:J.commands)||[p];p=_.K(S);for(J=p.next();!J.done;J=p.next()){J=J.value;var H=void 0,M=void 0;S=(M=_.e((H=J)==null?void 0:H.commandMetadata,_.i7))==null?void 0:M.url;_.z("web_remove_web_navigation_endpoint_data")||(H=void 0,S=S||((H=_.e(J,fM3))==null?void 0:H.url));if(S&&S!=="/service_ajax"){if(H=_.uv(S,OcW))return p=_.Tu(H),{navigatingCommand:J,href:p};_.xQ(new _.TG("AttributedString URL could not be sanitized",S))}}return{}};
Fwt=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)};
GBW=function(p,J,S,H){S=!bh(S);var M,X,Z;if((M=_.e(J,_.Ge))!=null&&M.nofollow||(X=_.e(J,_.lj))!=null&&X.nofollow||(Z=_.e(J,_.My))!=null&&Z.nofollow||S)p.rel$="nofollow";var n;J=((n=_.e(J,_.My))==null?void 0:n.target)==="TARGET_NEW_WINDOW"?"_blank":H===void 0?"":H;p.target$=J};
bci=function(p,J){J.clickTrackingParams&&(p.params={itct:J.clickTrackingParams});p.onpointerdown=function(S){ApX(S)};
p._data=J};
Pxi=function(p){(p.loggingUrls||[]).forEach(function(J){iS(J.baseUrl,J.attributionSrcMode)})};
ApX=function(p){var J=p.currentTarget;p=Met(function(){return J.href});
var S=J.params;p&&_.EB(p,S||{},8,!0)};
_.Dm=function(p,J){(p=_.sa(p))&&_.ge(p,J)};
_.ge=function(p,J){SJg(function(S){J?S.resolveCommand(p,J):S.resolveCommand(p)})};
exw=function(p,J){var S=["yt-core-attributed-string__link"];J!=null&&J.noLinkColor||((J==null?0:J.isOverlay)?S.push("yt-core-attributed-string__link--overlay-call-to-action-color"):S.push("yt-core-attributed-string__link--call-to-action-color"),(J==null?0:J.linkInheritColor)&&S.push("yt-core-attributed-string--link-inherit-color"));S={className:S.join(" "),tabindex$:"0"};var H=p.onTap||p.onLongPress;if(!H)return S;var M=zxi(p);M&&(S["aria-label$"]=M);J=_.tz({elementsCommand:H,elementConfig:S,skipOnClick:!(J==
null||!J.skipOnClick),forceNewState:!0});p.onLongPress&&(H=new $uX(function(){var X=_.sa(p.onLongPress);X&&_.vO().resolve(_.Ov).resolveCommand(X)}),J&&ogs(H,J));
return J||S};
zxi=function(p){var J,S;return(J=p.onTapOptions)==null?void 0:(S=J.accessibilityInfo)==null?void 0:S.accessibilityLabel};
Ww3=function(p){var J=p;p<=16777215&&(J+=parseInt("ff000000",16));return _.Bt(J)};
QUg=function(p){var J=p.isDarkTheme;var S=p.extension;p=p.runColor;var H=void 0;if(S=S==null?void 0:S.colorMap){J=J?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";S=_.K(S);for(var M=S.next();!M.done;M=S.next())if(M=M.value,J===M.key){H=M.value;break}}H==null&&p&&(H=p);if(H)return Ww3(H)};
k2=function(p){var J=p.config;var S=p.image;var H=p.imageConfig;var M=p.imageWrapperConfig;var X=p.run;var Z=p.tag;var n=p.textLength;var b=p.startIndex===void 0?0:p.startIndex;p=p.length;b===void 0&&(b=0);X={run:X,startIndex:b,endIndex:p!==void 0?b+p:n,tag:Z};S&&(X.image=S);H&&(X.imageConfig=H);M&&(X.imageWrapperConfig=M);J&&(X.config=J);return X};
ypW=function(p,J){var S=[];S.push("yt-core-attributed-string");(J==null?0:J.className)&&S.push(J==null?void 0:J.className);(J==null?0:J.ellipsisTruncate)?S.push("yt-core-attributed-string--ellipsis-truncate"):(J==null?0:J.noWrap)?S.push("yt-core-attributed-string--white-space-no-wrap"):(J==null?0:J.noPreWrap)||S.push("yt-core-attributed-string--white-space-pre-wrap");(J==null?0:J.linkInheritColor)&&S.push("yt-core-attributed-string--link-inherit-color");p.alignment&&S.push(Cx4(p.alignment));p.lineBreakMode&&
S.push("yt-core-attributed-string--word-wrapping");return S.join(" ")};
BJL=function(p,J){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 J?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
UuX=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"}};
Cx4=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"}};
de=function(p,J,S){var H=J;p.content&&S&&(S=p.content.indexOf("\n"),S!==-1&&(H=Math.min(J,S)));if(!p.content||p.content.length<=H)J=p;else if(p.attachmentRuns||p.commandRuns||p.decorationRuns||p.styleRuns||p.paragraphStyleRuns){J=Nn(p.content,H);S=H;var M=p.attachmentRuns;if(M){var X=[];M=_.K(M);for(var Z=M.next();!Z.done;Z=M.next())Z=Object.assign({},Z.value),Z.startIndex===void 0||Z.startIndex>=S||(Z.length||(Z.length=0),Z.length+Z.startIndex>S&&(Z.length=S-Z.startIndex),X.push(Z));S=X}else S=void 0;
X=sUi(H,p.commandRuns);M=H;var n=p.decorationRuns;if(n){Z=[];n=_.K(n);for(var b=n.next();!b.done;b=n.next()){b=b.value;var F=_.e(b.textDecorator,T$);if(F&&F.startIndex!==void 0&&!(F.startIndex>=M)){b=Object.assign({},b,{textDecorator:{highlightTextDecorator:Object.assign({},F)}});F=_.e(b.textDecorator,T$);if(!F.length||F.length+F.startIndex>M)F.length=M-F.startIndex;Z.push(b)}}M=Z}else M=void 0;Z=sUi(H,p.styleRuns);if(n=p.paragraphStyleRuns)for(p=[],n=_.K(n),b=n.next();!b.done;b=n.next()){var f=b.value;
b=Object.assign({},f);if(!(b.startIndex===void 0||b.startIndex>=H)){if(!b.length||b.length+b.startIndex>H)b.length=H-b.startIndex;F=[];var O=void 0,A=void 0;if((O=f)==null?0:(A=O.listGroup)==null?0:A.listItems)for(f=_.K(f.listGroup.listItems),O=f.next();!O.done;O=f.next())if(O=Object.assign({},O.value),!(O.startIndex===void 0||O.startIndex>=H)){if(!O.length||O.length+O.startIndex>H)O.length=H-O.startIndex;F.push(O)}F.length>0&&(b.listGroup||(b.listGroup={}),b.listGroup=Object.assign({},b.listGroup,
{listItems:F}));p.push(b)}}else p=void 0;J={content:J,attachmentRuns:S,commandRuns:X,decorationRuns:M,styleRuns:Z,paragraphStyleRuns:p}}else J=Object.assign({},p,{content:Nn(p.content,H)});return J};
sUi=function(p,J){if(J){var S=[];J=_.K(J);for(var H=J.next();!H.done;H=J.next())if(H=Object.assign({},H.value),!(H.startIndex===void 0||H.startIndex>=p)){if(!H.length||H.length+H.startIndex>p)H.length=p-H.startIndex;S.push(H)}return S}};
Nn=function(p,J){var S=J,H;if(H=S>0)H=p.charCodeAt(S-1),H=H>=55296&&H<=56319;H&&(S=p.charCodeAt(S),H=S>=56320&&S<=57343);H&&--J;return p.substring(0,J)};
DuX=function(p,J,S){S=S===void 0?gg3:S;if(p){var H=_.vO().resolve(Oy);H||_.z("mweb_no_observer_killswitch")?B3w(p,{data:J,observer:H,visibilityCallback:S,hideOption:teg,showOption:hxi,layer:p.layer}):_.xQ(new _.TG("Warning: monitorVisibility called with null observer",p.tagName,J==null?void 0:J.loggingDirectives,J==null?void 0:J.trackingParams))}else _.xQ(new _.TG("Warning: monitorVisibility called with null element",J==null?void 0:J.loggingDirectives,J==null?void 0:J.trackingParams,J==null?void 0:
J.rendererContext))};
Vei=function(p,J){var S=[],H=p.content.length,M,X=(M=_.vO().resolve(_.F9(_.uC)))==null?void 0:M();if(p.paragraphStyleRuns){M=_.K(p.paragraphStyleRuns);for(var Z=M.next();!Z.done;Z=M.next()){var n=S.push,b=n.apply;var F=void 0;Z=Z.value;if((F=Z.listGroup)!=null&&F.listItems){F=[];b:switch(Z.listGroup.listType){case "LIST_TYPE_BULLET":var f="ul";break b;default:f="span"}F.push(k2({run:Z,textLength:H,tag:f,config:{className:"yt-core-attributed-string__list-group"},startIndex:Z.startIndex,length:Z.length}));
f=_.K(Z.listGroup.listItems);for(var O=f.next();!O.done;O=f.next()){O=O.value;b:switch(Z.listGroup.listType){case "LIST_TYPE_BULLET":var A="li";break b;default:A="span"}F.push(k2({run:Z,textLength:H,tag:A,startIndex:O.startIndex,length:O.length}))}Z=F}else Z=[];b.call(n,S,_.dW(Z))}}if(p.styleRuns&&(J==null||!J.noStyleRuns))for(M=_.K(p.styleRuns),n=M.next();!n.done;n=M.next()){Z=n=n.value;F=X;b=J;F=QUg({extension:_.e(Z.styleRunExtensions,kBX),isDarkTheme:F===void 0?!1:F,runColor:Z.fontColor});O=Z;
f=[];F&&f.push("yt-core-attributed-string--link-inherit-color");O.italic&&f.push("yt-core-attributed-string--italicized");O.underline&&O.strikethrough?f.push("yt-core-attributed-string--underline-strikethrough",UuX(O.underline)):O.underline?f.push("yt-core-attributed-string--underlined",UuX(O.underline)):O.strikethrough&&f.push("yt-core-attributed-string--strikethrough",UuX(O.strikethrough));if(O.baselineOffset){a:switch(O.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":O="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":O="yt-core-attributed-string--baseline-offset-superscript";break a;default:O="yt-core-attributed-string--baseline-offset-unknown"}f.push(O)}f=f.join(" ");O={};if(Z.weight||Z.weightLabel)O.fontWeight=BJL(Z,b==null?void 0:b.isHeadline).toString();F&&(O.color=F);S.push(k2({run:n,textLength:H,tag:"span",config:{className:f,style:O},startIndex:n.startIndex,length:n.length}))}if(p.decorationRuns)for(M=_.K(p.decorationRuns),n=M.next();!n.done;n=M.next())n=n.value,
b={},n.textDecorator&&(f=n.textDecorator,Z=X===void 0?!1:X,O=[],F=_.e(f,T$),f=_.e(f,NJ9),F?(f=O,O=f.concat,A=[],(Z=QUg({extension:_.e(F.highlightTextDecoratorExtensions,TJW),isDarkTheme:Z,runColor:F.backgroundColor}))&&A.push("background-color: "+Z+";"),F.backgroundCornerRadius!==void 0&&A.push("border-radius: "+F.backgroundCornerRadius+"px;"),F.leftPadding!==void 0&&A.push("padding-left: "+F.leftPadding+"px;"),F.rightPadding!==void 0&&A.push("padding-right: "+F.rightPadding+"px;"),F.topPadding!==
void 0&&A.push("padding-top: "+F.topPadding+"px;"),F.bottomPadding!==void 0&&A.push("padding-bottom: "+F.bottomPadding+"px;"),O=O.call(f,A)):f&&(F=O,O=F.concat,Z=Z?"#2ba640":"#107516",Z=f.color?Ww3(f.color):Z,Z=["padding: 2px;","border-top: solid "+Z+" 2px;","border-bottom: solid "+Z+" 2px;","background: linear-gradient(135deg, "+Z+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Z+" 3px, rgba(0, 0, 0, 0) 3px);"],O=O.call(F,Z)),Z=O.join(" "),b.style$=Z,Z=n.textDecorator,F=[],f=_.e(Z,
NJ9),_.e(Z,T$)?F.push("yt-core-attributed-string--highlight-text-decorator"):f&&F.push("yt-core-attributed-string--bracket-text-decorator"),Z=F.join(" "),b.className=Z,b.dir="auto"),Z=_.e(n.textDecorator,T$),F=_.e(n.textDecorator,NJ9),f=_.e(n.textDecorator,T$),O=_.e(n.textDecorator,NJ9),S.push(k2({run:n,textLength:H,tag:"span",config:b,startIndex:(Z==null?void 0:Z.startIndex)||(F==null?void 0:F.startIndex)||0,length:(f==null?void 0:f.length)||(O==null?void 0:O.length)||0}));if(p.commandRuns&&(J==
null||!J.noEndpoints))for(X=_.K(p.commandRuns),M=X.next();!M.done;M=X.next())M=M.value,n=exw(M,J),S.push(k2({run:M,textLength:H,tag:"a",config:n,startIndex:M.startIndex,length:M.length}));if(p.attachmentRuns)for(p=_.K(p.attachmentRuns),X=p.next();!X.done;X=p.next()){X=X.value;b=n=void 0;M={className:"yt-core-attributed-string--inline-block-mod"};if((b=X.element)==null?0:b.properties){b=(n=X.element)==null?void 0:n.properties;n=[];b=_.e(b,duw);if(b==null?0:b.margin)b=b.margin,b.left&&n.push("margin-left: "+
Bi(b.left)+";"),b.right&&n.push("margin-right: "+Bi(b.right)+";"),b.top&&n.push("margin-top: "+Bi(b.top)+";"),b.bottom&&n.push("margin-bottom: "+Bi(b.bottom)+";");n=n.length!==0?n.join(" "):void 0;M.style$=n}Z=void 0;n={alt:"",preserveHeight:!0,preserveWidth:!0};b=["yt-core-attributed-string__image-element"];if(X.alignment){a:switch(X.alignment){case "ALIGNMENT_BASELINE":F="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":F="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:F="yt-core-attributed-string__image-element--image-alignment-bottom"}b.push(F)}if((Z=X.element)==null?0:Z.properties)Z=[],F=_.e(X.element.properties,duw),(F==null?0:F.height)&&Z.push("height: "+Bi(F.height)+";"),(F==null?0:F.width)&&Z.push("width: "+Bi(F.width)+";"),Z=Z.length!==0?Z.join(" "):void 0,n.style$=Z,F=void 0,Z=((F=_.e(X.element.properties,uog))==null?void 0:F.label)||"",n.alt=Z;n.className=b.join(" ");b=void 0;f=F=void 0;Z=((f=X.element)==null?0:f.type)?(F=_.e(X.element.type,
lMt))==null?void 0:F.image:void 0;S.push(k2({run:X,textLength:H,tag:"img",image:Z,imageConfig:n,imageWrapperConfig:M,startIndex:X.startIndex,length:(b=X.length)!=null?b:0}))}if(J==null?0:J.headerRuns)for(J=_.K(J.headerRuns),p=J.next();!p.done;p=J.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":X=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":X="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":X="yt-core-attributed-string--heading-3";break a}X=void 0}S.push(k2({run:p,textLength:H,tag:"span",config:X?{className:X}:void 0,startIndex:p.startIndex,length:p.length}))}return S};
_.lC=function(p){return(p==null?void 0:p.content)!==void 0};
qFW=function(p){return _.lC(p)?p:_.CI(p)};
aMt=function(p){return p.image!==void 0&&p.imageConfig!==void 0};
EgW=function(p,J){return!!J||!(p.commandRuns&&p.commandRuns.length!==0||p.paragraphStyleRuns&&p.paragraphStyleRuns.length!==0)};
YFt=function(p,J){if(J==null?0:J.userInput)for(p=_.K(p),J=p.next();!J.done;J=p.next())if(J=J.value,J.tag!=="a"&&J.tag!=="li"){var S=void 0;(S=J).config||(S.config={});J.config.dir=J.tag==="ul"?_.vO().resolve(_.VM):"auto"}};
rpL=function(p){return function(J){var S=p.run;(S.onTap!==void 0||S.onLongPress!==void 0)&&_.e(S,pQX)&&DuX(J,{loggingDirectives:_.e(S,pQX)})}};
jUt=function(p){return function(J){for(var S in p)(vJ[S]||vJ[I2["default"]])(J,S,p[S])}};
IMs=function(p,J){wQk(J);var S={data:null,start:0,end:p.length,parts:[]};J=_.K(J);for(var H=J.next();!H.done;H=J.next())H=H.value,xuW(S,H.startIndex,H.endIndex,H);cpL(p,S);return S};
xuW=function(p,J,S,H){for(var M=_.K(p.parts),X=M.next();!X.done;X=M.next()){X=X.value;if(typeof X==="string")throw Error("gh");if(X.start<=J&&S<=X.end){xuW(X,J,S,H);return}}p.parts.push({data:H,parts:[],start:J,end:S})};
cpL=function(p,J){for(var S=J.parts.length;S>=0;S--){var H=J.parts[S],M=J.parts[S-1],X=S===J.parts.length?J.end:H.start;M=S===0?J.start:M.end;X!==M&&J.parts.splice(S,0,p.slice(M,X));H&&cpL(p,H)}};
wQk=function(p){p.sort(function(J,S){if(J.startIndex<S.startIndex)return-1;if(S.startIndex<J.startIndex)return 1;J=J.endIndex-J.startIndex;S=S.endIndex-S.startIndex;return J>S?-1:S>J?1:0})};
_.Lwg=function(p){var J=p.thumbnails;if(J){p={sources:[]};J=_.K(J);for(var S=J.next();!S.done;S=J.next()){S=S.value;var H={};H.url=S.url;H.width=S.width;H.height=S.height;p.sources.push(H)}return p}};
pUX=function(p,J,S,H){if(!J)return p.length>=1?p[p.length-1]:null;if(H)for(var M=_.K(p),X=M.next();!X.done;X=M.next()){X=X.value;var Z=void 0,n=(Z=X.url)==null?void 0:Z.indexOf(H);if(n!==void 0&&n>=0)return X}H=_.K(p);for(M=H.next();!M.done;M=H.next())if(M=M.value,M.width&&M.height&&(S&&M.width>=J||!S&&M.height>=J))return M;for(J=p.length-1;J>=0;J--)if(S&&p[J].width||!S&&p[J].height)return p[J];return p[0]};
_.JKX=function(p){var J;return(p=(J=p.sources)==null?void 0:J[0])?p.width/p.height:0};
_.SfX=function(p){if(p.sources){p=_.K(p.sources);for(var J=p.next();!J.done;J=p.next()){J=J.value;var S=void 0;if((S=J.clientResource)==null?0:S.imageName)return J}}};
MWi=function(p){var J={};p=_.e(p.processor,H9v);var S=(p=p==null?void 0:(S=p.imageTint)==null?void 0:S.color)?_.Bt(p):void 0;S&&(J.color=S);return J};
XUi=function(p){var J;if((J=p.clientResource)!=null&&J.imageColor)return _.Bt(p.clientResource.imageColor)};
_.Ry9=function(p,J,S,H,M,X,Z){if(!J||J.length===0||J[0].clientResource)return null;if(S&&J[0].url)return J[0].url;H===void 0&&(H=!0);if(H){var n;p=i9w*(M||(p==null?void 0:(n=p.getBoundingClientRect())==null?void 0:n.width)||0)}else{var b;p=i9w*(X||(p==null?void 0:(b=p.getBoundingClientRect())==null?void 0:b.height)||0)}J=pUX(J,p,H,Z);return(J==null?0:J.url)?J.url:(J==null?0:J.imageData)?J.imageData:null};
KLg=function(p,J,S){S=S?[S]:[];p.opacity&&S.push("opacity: "+p.opacity+";");J&&p.placeholderColor?(p=_.Bt(p.placeholderColor),S.push("background-color: "+p+";")):S.push("background-color: transparent;");return S.join(" ")};
Z9i=function(p,J,S,H,M){var X=["ytCoreImageHost"];J&&X.push(J);S||X.push("ytCoreImageFillParentHeight");H||X.push("ytCoreImageFillParentWidth");switch(p.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":X.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":X.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":X.push("ytCoreImageContentModeCenter");break;default:X.push("ytCoreImageContentModeScaleToFill")}p.flipForRtlLayout&&X.push("ytCoreImageFlipRtl");
switch(M){case "TOP_START":var Z;X.push(((Z=document.body)==null?void 0:Z.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return X.join(" ")};
GzX=function(p){var J;if(p==null?0:(J=p.clientResource)==null?0:J.imageName){var S;p=(S=p.clientResource)==null?void 0:S.imageName;a:{switch(p){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":S="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":S="yt-logos-ext:yt-logo-updated";break a}S=void 0}return S||n$4.get(p)||p}};
FLt=function(p){return _.z("mweb_wiz_skip_render")?b9s(p):mi3(p)};
b9s=function(p){return function(J){var S=cwg("wink-root");Xa=Sn.lastChild;Iyi();eK4(S,_.m(p,J))}};
mi3=function(p){var J=J===void 0?!1:J;return function(S){if(!J||!_.z("mweb_skip_keto_to_c3_if_no_data")||S.data!==void 0){var H=Og(!1);try{var M=S.children;_.z("mweb_render_outside_patch_killswitch")||Sn?M?FK(_.m(p,S,M)):FK(_.m(p,S)):_.xQ(new _.TG("ketoToC3 called outside of a patch",{tagName:p.TAG_NAME}))}finally{Og(H)}}}};
v$X=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
O9X=function(p,J){p.onViewportEntered=J;fsi.observe(p)};
AKk=function(){var p={rootMargin:"10%",threshold:.01};_.z("mweb_enable_set_io_root_to_null_safari")?p.root=null:_.z("mweb_enable_set_io_root_to_body_safari")&&(p.root=document.body);return new IntersectionObserver(function(J,S){J.filter(function(H){return H.intersectionRect.height>0}).forEach(function(H){H=H.target;
if(!_.z("mweb_enable_only_update_image_when_connected")||H.isConnected!==!1){var M;(M=H.onViewportEntered)==null||M.call(H);S.unobserve(H)}})},p)};
PU9=function(p,J,S,H,M){function X(){if(H){var n=H.loadedClass,b=H.notifyOnUnloaded;n&&_.qn(p,n);b&&p.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function Z(){var n=S(J,p);n&&p.getAttribute("src")!==n&&(_.z("mweb_enable_only_update_image_when_connected")&&p.isConnected===!1||n===p.src||(p.src=n),X())}
M=M===void 0?!0:M;p.removeAttribute("src");X();J&&(M?O9X(p,Z):Z())};
zy3=function(p,J,S){if(!J)return!1;J=S(J,p);S=p.getAttribute("src");return J&&J===S&&p.complete};
$iw=function(p,J){for(var S in J)S==="className"?p.className=J[S]:(vJ[S]||vJ[I2.default])(p,S,J[S])};
o$t=function(p,J,S,H){FLt(_.a4)({contentMode:J.contentMode,loadedClass:J.loadedClass,isPreloaded:J.isPreloaded,notifyOnLoaded:J.notifyOnLoaded,notifyOnUnloaded:J.notifyOnUnloaded,preferredThumbnail:J.preferredThumbnail,preserveHeight:J.preserveHeight,preserveWidth:J.preserveWidth,objectPosition:J.objectPosition,targetWidth:J.targetWidth,targetHeight:J.targetHeight,shouldShowPlaceholder:J.shouldShowPlaceholder,useWidth:J.useWidth,isToggled:J.isToggled,alt:J.alt,className:J.className,onerror:J.onerror,
onload:J.onload,style$:J.style$,color:J.color,width:J.width,height:J.height,"aria-hidden$":J["aria-hidden$"],draggable:J.draggable,"data-disabled$":J["data-disabled$"],data:p,callback:S,renderLazy:H===void 0?!0:H,hideOn404:!1})};
WLk=function(p,J,S){S=S===void 0?!1:S;var H=p.sources!==void 0?p:_.Lwg(p);if(H){var M=J.onload;J.onload=function(F){var f=F.target;S&&f.naturalWidth===120||_.Ea(f,"ytCoreImageLoaded");J.notifyOnLoaded&&f.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));M==null||M(F)};
J.targetWidth&&J.preserveWidth&&(J.width=J.targetWidth);J.targetHeight&&J.preserveHeight&&(J.height=J.targetHeight);var X=_.SfX(H),Z=X&&GzX(X),n=MWi(H);if(Z)return(p=XUi(X)||n.color)&&(J.color=p),{type:"icon",iconName:Z,config:Object.assign({},J,J.alt?{}:{"aria-hidden$":"true"},{"aria-label$":J.alt,role:"img"})};if(p.sources===void 0){J.alt=p.accessibility&&p.accessibility.accessibilityData&&p.accessibility.accessibilityData.label||J.alt;J.style$=KLg(p,J.shouldShowPlaceholder,J.style$);var b;J.isPreloaded=
!((b=_.e(p,eyX))==null||!b.isPreloaded)}J.contentMode&&!H.contentMode&&(H.contentMode=J.contentMode);J.className=Z9i(H,J.className,J.preserveHeight,J.preserveWidth,J.objectPosition);J.loadedClass="ytCoreImageLoaded";return{type:"image",image:H,config:J}}};
_.Y2=function(){var p=_.Yp.apply(0,arguments);return _.mo(QNv,function(J){var S=p.map(function(H){return H==null?void 0:H(J)});
return function(){return void S.forEach(function(H){return void(H==null?void 0:H())})}})};
_.re=function(p){if(p.length===0)return iEv(p,"p");var J=_.K(iEv({source:function(){return p()},
computation:function(M,X){return(X==null?0:X.value)?p(X.value):M}},"q")),S=J.next().value,H=J.next().value;
J=J.next().value;return[S,H,J]};
CUs=function(p,J){var S=J==null?void 0:J.initial;return _.BW(function(){_.a2(!0);return S=p(S)},{equals:J==null?void 0:J.isEqual},"rSlKsc")};
yKv=function(p,J){if(p===J)return!0;if(p===void 0||J===void 0)return!1;var S,H,M,X,Z,n,b,F;return p.content===J.content&&((S=p.styleRuns)==null?void 0:S.length)===((H=J.styleRuns)==null?void 0:H.length)&&((M=p.commandRuns)==null?void 0:M.length)===((X=J.commandRuns)==null?void 0:X.length)&&((Z=p.attachmentRuns)==null?void 0:Z.length)===((n=J.attachmentRuns)==null?void 0:n.length)&&((b=p.decorationRuns)==null?void 0:b.length)===((F=J.decorationRuns)==null?void 0:F.length)};
sNg=function(p,J){if(p){var S=qFW(p);if(S!=null&&S.content)if(_.z("attr_string_reactive_c3"))J=J||{},J.contentAsserted=!0,FLt(Bjt)({text:S,config:J});else{var H;p=EgW(S,(H=J)==null?void 0:H.ariaLabel);var M;H=p?(M=J)==null?void 0:M.ariaLabel:null;M=p?"text":null;var X;IGi("span",{className:ypW(S,J),dir$:((X=J)==null?0:X.userInput)?"auto":void 0,"aria-label$":H,role$:M},function(){if(S.styleRuns||S.commandRuns||S.attachmentRuns||S.decorationRuns||S.paragraphStyleRuns){var Z=Vei(S,J);YFt(Z,J);Z=IMs(S.content,
Z);Z=_.K(Z.parts);for(var n=Z.next();!n.done;n=Z.next())Uii(n.value)}else Xhi(S.content)})}}};
Uii=function(p){typeof p==="string"?Xhi(p):aMt(p.data)?IGi("span",p.data.imageWrapperConfig,function(){o$t(p.data.image,p.data.imageConfig)}):IGi(p.data.tag,p.data.config,function(J){rpL(p.data)(J);
J=_.K(p.parts);for(var S=J.next();!S.done;S=J.next())Uii(S.value)})};
tWi=function(p){return p.parts.map(g$i)};
g$i=function(p){if(typeof p==="string")return p;p=aMt(p.data)?_.m("span",{el:_.Y2(jUt(p.data.imageWrapperConfig))},_.m(_.a4,Object.assign({},{data:p.data.image},p.data.imageConfig))):_.m(p.data.tag,{el:_.Y2(rpL(p.data),jUt(p.data.config))},p.parts.map(g$i));return sg(p)};
hy9=function(p,J){return p===J?!0:p===void 0||J===void 0?!1:p.noStyleRuns===J.noStyleRuns&&p.noLinkColor===J.noLinkColor&&p.noEndpoints===J.noEndpoints&&p.headerRuns===J.headerRuns&&p.isOverlay===J.isOverlay&&p.linkInheritColor===J.linkInheritColor&&p.userInput===J.userInput&&p.isHeadline===J.isHeadline};
Diw=function(p){return function(){var J,S,H,M,X,Z,n,b,F,f,O,A,P,W;return{ariaLabel:(J=p.ariaLabel)==null?void 0:J.call(p),className:(S=p.className)==null?void 0:S.call(p),ellipsisTruncate:(H=p.ellipsisTruncate)==null?void 0:H.call(p),isOverlay:(M=p.isOverlay)==null?void 0:M.call(p),linkInheritColor:(X=p.linkInheritColor)==null?void 0:X.call(p),noEndpoints:(Z=p.noEndpoints)==null?void 0:Z.call(p),noStyleRuns:(n=p.noStyleRuns)==null?void 0:n.call(p),noLinkColor:(b=p.noLinkColor)==null?void 0:b.call(p),
noPreWrap:(F=p.noPreWrap)==null?void 0:F.call(p),noWrap:(f=p.noWrap)==null?void 0:f.call(p),skipOnClick:(O=p.skipOnClick)==null?void 0:O.call(p),userInput:(A=p.userInput)==null?void 0:A.call(p),headerRuns:(P=p.headerRuns)==null?void 0:P.call(p),isHeadline:(W=p.isHeadline)==null?void 0:W.call(p)}}};
NjL=function(p,J){p=new kz9(p,J);_.jD(p);throw p;};
Tjv=function(p,J,S){var H=Eh4(p);p._numRenders=0;try{var M=_.apw(function(){return _.m(J,Object.assign({},S))})}catch(Z){var X=function(n){n.args||(n.args=[]);
n.args.push("Error in web component wrapper");n.args.push(p.tagName.toLowerCase());return n};
_.wf(Z instanceof Error?X(Z):new kz9("Wiz rendering error",p.tagName.toLowerCase()));throw Z;}finally{Eh4(H)}return M};
_.ci=function(p,J,S){function H(f){var O={};f=_.K(f);for(var A=f.next();!A.done;A=f.next()){A=A.value;var P=void 0,W=void 0,y=void 0,t=_.Zx((y=(W=(P=A).getAttribute)==null?void 0:W.call(P,"slot"))!=null?y:"children");if(P=O[t])P.push(A);else if(t in X||t==="children")O[t]=[A]}f=_.K(Object.keys(O));t=f.next();for(A={};!t.done;A={content$jscomp$59:void 0},t=f.next())t=t.value,t!=="children"&&(A.content$jscomp$59=O[t],O[t]=function(D){return function(){return D.content$jscomp$59}}(A));
return O}
S=S===void 0?{}:S;var M,X=(M=S.props)!=null?M:{};YYk.add(J);var Z=dit();M=function(){var f=Z.apply(this,arguments)||this;f.rawProps={};f.queuingRender=!1;f.dispose=function(){};
f.isWebComponentWrapper=!0;f.isReparenting=!1;f.hasRendered=!1;return f};
_.Q(M,Z);M.prototype.render=function(){this.hasRendered=!0;for(var f=_.K([].concat(_.dW(this.attributes))),O=f.next();!O.done;O=f.next())O=O.value,O.name!=="slot"&&O.name!=="hidden"&&this.removeAttribute(O.name);f=Object.assign({},this.componentProps,this.slotProps);O=_.K(Tjv(this,p,f));f=O.next().value;O=O.next().value;!(f[0]instanceof Element)||f.length>1?NjL("Wrapped Wiz components must return a single root element.",J):(f=f[0].tagName.toLowerCase(),f!==J&&NjL("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(f+" !== '"+J),J),this.dispose=O)};
M.prototype.setUpProps=function(){for(var f=this.rawProps,O=this.attributes,A=_.K(Object.keys(X)),P=A.next();!P.done;P=A.next()){P=P.value;var W=void 0;((W=this)==null?0:W[P])&&this[P]!==uWk&&f[P]===void 0&&(f[P]=this[P],(W=Object.getOwnPropertyDescriptor(this.constructor.prototype,P))&&Object.defineProperty(this,P,W))}A=_.K(O);for(P=A.next();!P.done;P=A.next()){W=P.value;P=_.Zx(W.name);var y=P==="class"&&!O.getNamedItem("class-name");if(P in X||y)W=W.value===""||W.value==="true"?!0:W.value==="false"?
!1:isNaN(Number(W.value))?W.value:Number(W.value),P!=="class"||f.className?f[P]=W:f.className=W}O={};for(var t in X)X[t]!==_.jr&&X[t]!==lsL&&(f[t]instanceof Function&&NjL("Function props must be configured as STATIC, not SIGNAL.",J),P=_.K(_.eQ(f[t],void 0,"thC4wf")),A=P.next().value,P=P.next().value,O[t]=P,f[t]=A);f=_.K([f,O]);this.componentProps=f.next().value;this.setters=f.next().value;this.slotProps=H(this.childNodes)};
M.prototype.connectedCallback=function(){w8v.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in X&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
M.prototype.disconnectedCallback=function(){if(!w8v.has(this)){var f;a:{if(_.we)for(f=this;f;){if(_.x2.has(f)){f=!0;break a}f=f.parentElement}f=!1}if(f)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){f=_.K([].concat(_.dW(this.attributes)));for(var O=f.next();!O.done;O=f.next()){O=O.value;var A=void 0;O.name==="slot"||O.name==="hidden"&&((A=S.unsafeExternallySettableAttributes)==null?0:A.has("hidden"))||this.removeAttribute(O.name)}}this.innerText="";dCv(this)}}};
M.prototype._setPendingPropertyOrPath=function(){};
M.prototype.notifyPath=function(){};
_.vh.Object.defineProperties(M.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var n=_.K(Object.keys(X)),b=n.next(),F={};!b.done;F={prop$jscomp$109:void 0},b=n.next())F.prop$jscomp$109=b.value,b=void 0,((b=S.legacyPolymer)==null?0:b.forwardHostProps)&&DpW.has(F.prop$jscomp$109)||Object.defineProperty(M.prototype,F.prop$jscomp$109,{set:function(f){return function(O){var A=this;w8v.has(this)||(this.setters?UG(function(){var P,W;return void((W=(P=A.setters)[f.prop$jscomp$109])==null?void 0:W.call(P,O))}):(this.rawProps[f.prop$jscomp$109]=O,this.queuingRender&&f.prop$jscomp$109===
"data"&&O!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(F),
get:VWw.has(F.prop$jscomp$109)?void 0:function(){return uWk}});
customElements.define(J,M)};
_.qfi=function(p,J){return(p=_.I4(p,J))?_.Tu(_.Vd(p)):null};
_.LI=function(p){if(p=_.I4(p,Number.MAX_VALUE,void 0,"width"))return _.Vd(p)};
_.I4=function(p,J,S,H){H=H===void 0?"width":H;if(!p||!p.length)return null;if(_.z("kevlar_tuner_should_always_use_device_pixel_ratio")){var M=window.devicePixelRatio;_.z("kevlar_tuner_should_clamp_device_pixel_ratio")?M=Math.min(M,_.PO("kevlar_tuner_clamp_device_pixel_ratio")):_.z("kevlar_tuner_should_use_thumbnail_factor")&&(M=_.PO("kevlar_tuner_thumbnail_factor"));asg=M}else asg||(asg=window.devicePixelRatio);M=asg;_.z("kevlar_tuner_should_always_use_device_pixel_ratio")?J*=M:M>1&&(J*=M);if(_.z("kevlar_tuner_min_thumbnail_quality"))return p[0].url||
null;M=p.length;if(_.z("kevlar_tuner_max_thumbnail_quality"))return p[M-1].url||null;if(S)for(var X=0;X<M;X++)if(p[X].url.indexOf(S)>=0)return p[X].url||null;for(S=0;S<M;S++)if(p[S][H]>=J)return p[S].url||null;for(J=M-1;J>0;J--)if(p[J][H])return p[J].url||null;return p[0].url||null};
rKk=function(){pb.size?setTimeout(function(){Jm(E$4)},0):Yf9=0};
E$4=function(){var p=(0,_.fO)(),J=null,S=!1;pb.forEach(function(M){M.loaded=!0;M.loadTime=p;M.pendingPaint=!1;var X=jNX.get(M);X&&X.resolve(p);J=M;S||!M.ftlEligible&&M.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(S=!0)});
var H;((H=J)==null?0:H.markDirty)&&J.markDirty();pb.clear();Yf9=0;S&&wU4(p)};
xi4=function(p){pb.add(p);p.pendingPaint=!0;Yf9||(Yf9=_.SK(_.wg,rKk))};
cK4=function(p){p.loaded=!1;p.loadTime=Infinity;var J=jNX.get(p);J&&(J.reject(Error("mh")),jNX.delete(p));p.pendingPaint&&(pb.delete(p),p.pendingPaint=!1)};
_.Isk=function(p){var J=p.indexOf(":");return J===-1?{originalName:p}:{originalName:p.substring(0,J),datasyncId:p.substring(J+1)}};
_.pkX=function(){return _.G(function(p){if(LLs!==void 0)return p.return(LLs);LLs=new Promise(function(J){var S;return _.G(function(H){switch(H.nextAddress){case 1:return _.oI(H,2),H.yield(_.Hv.open("test-only"),4);case 4:return H.yield(_.Hv.delete("test-only"),5);case 5:_.X$(H,3);break;case 2:if(S=_.BZ(H),S instanceof Error&&S.name==="SecurityError")return J(!1),H.return();case 3:J("caches"in window),_.UK(H)}})});
return p.return(LLs)})};
HJg=function(){return _.G(function(p){if(p.nextAddress==1)return p.yield(_.pkX(),2);if(!p.yieldResult)return p.return(void 0);JU4||(JU4=new SkL);return p.return(JU4)})};
M8i=function(p){var J,S,H,M;return _.G(function(X){switch(X.nextAddress){case 1:return X.yield(HJg(),2);case 2:J=X.yieldResult;if(!J)throw Error("oh");return X.yield(J.open("yt-player-local-img"),3);case 3:return S=X.yieldResult,X.yield(S.match(p),4);case 4:H=X.yieldResult;if(!H)throw Error("ph");return X.yield(H.blob(),5);case 5:return M=X.yieldResult,X.return(M)}})};
XkW=function(p,J){for(var S in p)if(p.hasOwnProperty(S)&&J[S])return S;return null};
iJv=function(p){return"stamp"+p.replace("-","_")+"_"};
RI4=function(p){var J=p.match(/\[\[([\w\.]+)\]\]/);if(J&&J.length>1)return J[1];_.jD(Error("rh`"+p));return null};
Kf4=function(p){return p===void 0?_.wY("REUSE_COMPONENTS",!1):p||!1};
GhW=function(p,J,S){S&&(J.is?(ZJW.has(J)&&(p=ZJW.get(J),S=p.listener,delete J[p.property],S.type==="element"&&J.removeEventListener(S.eventName,S.handler),ZJW.delete(J)),nHw(J)):J.__proto__==HTMLElement.prototype&&(J=new _.TG("Rendererstamper removed a non custom element","Stamper: "+p+" element: "+(J&&J.nodeName)),_.xQ(J)))};
bJX=function(p,J,S,H){var M=J.node?J.node:J;_.Jn(S).parentNode===M&&(J.removeChild(S),GhW(p,S,H));if(p=Mr.get(S))Mr.delete(S),_.wg.cancelJob(p);S.hidden=!1};
m$i=function(p,J,S,H){if(J&&J.children&&(S=J.children[S]))if(_.wY("DEFERRED_DETACH"))for(;S&&!Mr.has(S);){var M=p,X=J,Z=S,n=H;Z.hidden=!0;M=_.uS(_.wg,bJX.bind(null,M,X,Z,n),0);Mr.set(Z,M);S=S.nextElementSibling}else for(;(Z=J.lastElementChild)&&(J.removeChild(Z),GhW(p,Z,H),Z!=S););};
_.XB=function(){for(var p=_.Yp.apply(0,arguments),J=!0,S=_.K(p),H=S.next();!H.done;H=S.next())if(typeof H.value!=="string"){J=!1;break}return J?p.join(" ").trim()||void 0:function(){for(var M="",X=_.K(p),Z=X.next();!Z.done;Z=X.next())if(Z=Z.value,typeof Z==="function"&&(Z=Z()),Z)if(typeof Z==="string")M+=" "+Z;else for(var n in Z)if(Z.hasOwnProperty(n)){var b=Z[n];typeof b==="function"&&(b=b());b&&(M+=" "+n)}M=M.trim()||void 0;return _.a2(M)}};
_.Ffv=function(p,J){return _.RR(p.entities,"markersEngagementPanelSyncEntity",J)};
_.RY=function(p,J){return _.RR(p.entities,"playerStateEntity",J)};
vHW=function(p,J){return _.RR(p.entities,"fantasyWinProbabilityEntity",J)};
f7w=function(p,J){return _.RR(p.entities,"fantasyTeamEntity",J)};
OJs=function(p,J){return _.RR(p.entities,"fantasyPlayerEntity",J)};
AUs=function(p,J){return _.RR(p.entities,"booleanEntity",J)};
PDW=function(p,J){return _.RR(p.entities,"qrCodeEntity",J)};
zIW=function(p){return _.RR(p.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
oHg=function(p){var J;return(J=$$s[p])!=null?J:"EVENT_SPAN_TYPE_UNKNOWN"};
eIL=function(p){var J=p.nodeName;if(p.id)return J+="#"+p.id;if(p.classList)for(var S=_.K(p.classList),H=S.next();!H.done;H=S.next())J+="."+H.value;p.parentElement&&(J=eIL(p.parentElement)+" > "+J);return J};
Wfi=function(p){return function(J){var S=oHg(J.type);return S==="EVENT_SPAN_TYPE_UNKNOWN"?p(J):rI("event",{type:S,nodepath:J.target instanceof Element?eIL(J.target):void 0},function(){return p(J)})}};
_.Kb=function(p){p&&YO("event")&&(p=Wfi(p));return AHi(function(J){var S,H=(S=p)==null?void 0:S(J);return typeof H==="boolean"?H:!0})};
Zu=function(p){return function(){return p()?p():void 0}};
BRW=function(p){var J=_.nE("animated-rolling-character"),S=kXg(),H=q9(p.character)||q9(p.previousCharacter),M=_.K(kyt()),X=M.next().value,Z=M.next().value;_.ad(function(){if(window.ResizeObserver&&_.z("web_fix_rolling_numbers_zoom_safari")){var n=new _.nb(function(){var F,f,O=Math.round(((f=(F=J.value.querySelector("div"))==null?void 0:F.getBoundingClientRect().height)!=null?f:0)*100)/100;O&&Z(O)},500),b=new ResizeObserver(function(){n.fire()});
b.observe(J.value);return function(){b.disconnect();n.dispose()}}});
Cjs(function(){var n=_.z("web_fix_rolling_numbers_zoom_safari")?X:p.marginMultiplier;if(n){var b;(b=S.value)==null||b.cancel();H?(b=p.previousCharacter?Number(p.previousCharacter)+10:p.rollUp?0:30,p.shouldAnimate||(b-=Qjg(p,b))):(b=p.rollUp?0:2,p.shouldAnimate||(b-=p.rollUp?-1:1));J.value.style.marginTop="-"+b*n+"px";p.shouldAnimate?S.value=CDk(J.value,p,b,H,n):J.value.style.display=p.character?"":"none"}});
return _.m("animated-rolling-character",{el:J,class:"animatedRollingCharacterHost"},v_3(H,function(){for(var n=[],b=1;b<30;b++)n.push(_.m("div",null,b%10));return _.m(_.fV,null,_.m("div",null,"\u00a0"),n,_.m("div",null,"\u00a0"))},function(){return yUW(p.character)}))};
yUW=function(p){return _.m(_.fV,null,_.m("div",null,"\u00a0"),_.m(_.fV,null,v_3(!p||_.Rv(p),function(){return _.m("div",null,"\u00a0")},function(){return _.m("div",null,p)})),_.m("div",null,"\u00a0"))};
CDk=function(p,J,S,H,M){S=new Animation(new KeyframeEffect(p,[{transform:"translateY(0px)"},{transform:"translateY("+(H?Qjg(J,S):J.rollUp?-1:1)*M+"px)"}],U$t),document.timeline);J.character?(p.style.display="",S.onfinish=null):S.onfinish=function(){p.style.display="none"};
S.play();return S};
Qjg=function(p,J){var S=Number(p.character)+10;if(p.previousCharacter)if(p.character){var H=Number(p.character),M=Number(p.previousCharacter);p=p.rollUp?M<H?S:S+10:M<H?S-10:S}else p=p.rollUp?30:0;else p=p.character==="0"?S:p.rollUp?S-10:S+10;return J-p};
sji=function(p){return function(J){var S={},H;for(H in J){var M=void 0,X=void 0;((M=void 0)==null?0:(X=M.callbacks)==null?0:X[H])||(S[H]=J[H])}return _.m(qlX,null,function(){for(var Z in S)J[Z]=_.a2(S[Z]);J.disableReactiveLogging=!0;return _.m(p,Object.assign({},J))})}};
hIw=function(p,J,S,H,M,X,Z){S=new Animation(new KeyframeEffect(p,[{transform:"translateY(0px)"},{transform:"translateY("+(X?gHL(J,S,H,M):H?-1:1)*Z+"px)"}],t8X),document.timeline);J?(p.style.display="",S.onfinish=null):S.onfinish=function(){p.style.display="none"};
S.play();return S};
gHL=function(p,J,S,H){var M=Number(p)+10;J?p?(p=Number(p),J=Number(J),S=S?J<p?M:M+10:J<p?M-10:M):S=S?30:0:S=p==="0"?M:S?M-10:M+10;return H-S};
khi=function(p){var J=kXg(),S=kXg();sVg(function(){J.value=p.numberText;S.value=p.numberValue},[p.numberText]);
var H=p.fontSizeMultiplier?p.heightPx*p.fontSizeMultiplier:p.heightPx,M=D9i(function(){if(p.numberText){var Z=p.numberText;var n=p.forceRollUp||!S.value||!p.numberValue||S.value<p.numberValue;var b=!!p.shouldAnimate,F=J.value,f=[],O=0,A=0,P=(F?F.replace(/\D/g,"").length:0)-(Z?Z.replace(/\D/g,"").length:0);F=F?F.split(/(\d)/).filter(Boolean):[];for(Z=Z.split(/(\d)/).filter(Boolean);P<0;){var W=Z[A];f.push({character:W,rollUp:n,marginMultiplier:H,shouldAnimate:b});A++;q9(W)&&P++}for(;O<P;)W=F[O],f.push({previousCharacter:W,
rollUp:n,marginMultiplier:H,shouldAnimate:b}),O++,q9(W)||P++;for(;A<Z.length;)P=Z[A],W=F[O],q9(P)===q9(W)?(A++,O++):q9(P)?(O++,P=void 0):q9(W)&&(A++,W=void 0),f.push({character:P,previousCharacter:W,rollUp:n,marginMultiplier:H,shouldAnimate:b});n=f}else n=[];return n},[p.numberText]),X=p.numberText?["height: "+H+"px;",
"line-height: "+p.heightPx+"px;"].join(" "):"";return _.m("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:X,dir:"ltr","aria-hidden":"true"},M.map(function(Z){return _.m(D$k,Object.assign({},Z))}))};
NR3=function(p){switch(p){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.TRL=function(p,J){if(!p&&!J)return"medium";p=Math.max(p||0,J||0);return p>=256?"large":p>=96?"medium":"small"};
d$i=function(p){switch(p){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
u5L=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})};
l7k=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})};
_.G7=function(p){return function(){var J="",S;for(S in p){for(var H=p[S];typeof H==="function";)H=H();H!==void 0&&H!==null&&(J+="; "+S+": "+H)}return J.length>0?_.a2(J.slice(2)):_.a2()}};
V8i=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"}};
qkk=function(p,J){if(J)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(p)switch(p){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
jjw=function(p,J,S,H,M,X,Z){var n=a7L(p),b=n.disabled,F=n.iconPosition,f=n.style,O=n.focused,A=function(){return!!y()&&F()==="icon-only"},P=function(){return!!y()&&F()==="icon-only-40"},W=function(){return!!y()&&F()==="icon-with-label"},y=function(){return!!J||!(H==null||!H())};
return{type:function(){return f()==="call-to-action-inverse"?"text":f()==="overlay-dark"&&p().type!=="filled"&&p().type!=="tonal"?"tonal":p().type},
shouldFocus:function(){return(O()||(X==null?void 0:X()))&&!b()},
hasIconLeading:function(){return!!y()&&F()==="leading"},
hasIconTrailing:function(){return!!y()&&F()==="trailing"},
hasIconLeadingTrailing:function(){return!!y()&&!!(S||M!=null&&M())&&F()==="leading-trailing"},
hasIconOnly:A,hasIconOnly40:P,hasIconWithLabel:W,iconButton:function(){return A()||P()||W()},
visiblyDisabled:function(){return(b()?"disabled":p().state)==="disabled"||b()},
overrideSmallSizeIcon:function(){return!p().ignoreIconSizeOverride&&EHX(p(),y())},
iconToRender:J?J:function(){return _.m(_.bn,{icon:H,gradientColor:function(){var t;return(t=p().customColors)==null?void 0:t.iconGradientColor},
size:function(){return Yki(p(),!0,p().ignoreIconSizeOverride)},
active:function(){return p().toggled},
iconFilter:function(){return rUw(p())},
animateIcon:Z})},
secondaryIconToRender:S?S:function(){return _.m(_.bn,{icon:M,size:function(){return Yki(p(),!0,p().ignoreIconSizeOverride)},
active:function(){return p().toggled},
iconFilter:function(){return rUw(p())}})}}};
a7L=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(J){var S,H;return(H=(S=p()).onTap)==null?void 0:H.call(S,J)},
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(J){var S,H;return(H=(S=p()).onToggle)==null?void 0:H.call(S,J)},
iconPosition:function(){return p().iconPosition},
oneOffCustomTextWrap:function(){return p().oneOffCustomTextWrap},
disableTextEllipsis:function(){return p().disableTextEllipsis},
disableBackdropFilter:function(){return p().disableBackdropFilter},
tooltipText:function(){return p().tooltipText},
tooltipShape:function(){return p().tooltipShape},
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},
onClickRateLimitMs:function(){return p().onClickRateLimitMs}}};
EHX=function(p,J){J=(p.iconPosition==="icon-only"||p.iconPosition==="icon-only-40"||p.iconPosition==="icon-with-label")&&J;return!p.segmentedPosition&&J&&p.size==="S"};
Yki=function(p,J,S){switch(p.size){case "XS":return 16;case "S":return!S&&EHX(p,J)?24:16;default:return 24}};
wkL=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"}};
x$g=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"}};
cUW=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"}};
rUw=function(p){if(p.style==="overlay-dark"&&p.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
mM=function(p){return p&&p.endsWith("px")?Number(p.slice(0,-2)):0};
pxW=function(p,J){var S=_.K(_.re(function(){var M,X;return(X=p())!=null?X:J==null?void 0:(M=J())==null?void 0:M.text})),H=S.next().value;
return[function(M){var X=_.BW(function(){var b;return Object.assign({},{location:"bottom",offset:16,delay:1},J==null?void 0:J(),{text:(b=H())!=null?b:""})},void 0,"IJU38d");
_.lf(function(){var b=X();_.$T(function(){_.wg.addJob(function(){FB.notify(M,b)},4)})},"WlsgZc");
var Z=function(){I7s(M,X())},n=function(){Lfw()};
M.addEventListener("mouseenter",Z);M.addEventListener("focus",Z);M.addEventListener("mouseleave",n);M.addEventListener("blur",n);M.addEventListener("tap",n);_.VY(function(){M.removeEventListener("mouseenter",Z);M.removeEventListener("mouseleave",n);M.removeEventListener("focus",Z);M.removeEventListener("blur",n);M.removeEventListener("tap",n);Lfw()})},
S.next().value]};
SRL=function(p,J){if(!X4){var S;QZX(function(){return S=lps(p,J)});
return S}p.parent=J6k();return lps(p,J)};
J6k=function(){var p=_.KU(X4||void 0,TTk);return _.P44(p)?void 0:p};
vv=function(p,J){_.ge(p,Object.assign({},J,{forceClickLogging:!0}))};
HrX=function(p){switch(p){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
XxL=function(p,J){var S=_.sa(p==null?void 0:p.onTap),H={};S&&(H.getClickedVisualElement=function(){var M;return Mvi(p,S,J==null?void 0:(M=J.value)==null?void 0:M.visualElement)});
H=_.tz({elementsCommand:p.onTap,forceNewState:!0,additionalCommandArgs:H});return hz(H)?H:void 0};
irt=function(p,J,S,H){vv(p,Object.assign({},{form:{element:J,event:S}},H))};
RF4=function(p,J,S,H,M){var X=void 0;return function(Z){var n=_.sa(S?p==null?void 0:p.onDisabledTap:p==null?void 0:p.onTap);if(n){var b;X=(b=X)!=null?b:J==null?void 0:J.value;if(n)if(_.z("web_button_vm_click_client_ve_killswitch"))irt(n,X,Z);else{var F;b=Mvi(p,n,(F=X)==null?void 0:F.visualElement);if(M){irt(n,M,Z,{clickedVisualElement:b,form:{element:M}});return}irt(n,X,Z,{clickedVisualElement:b})}}H&&H(Z)}};
Mvi=function(p,J,S){J=J==null?void 0:J.clickTrackingParams;var H,M;p=p==null?void 0:(H=p.loggingDirectives)==null?void 0:(M=H.clientVeSpec)==null?void 0:M.uiType;if(S&&p&&!J)return S};
KjW=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"}};
Zri=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"}};
nL9=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"}};
GOW=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"}};
_.fb=function(p){return _.BW(function(){ja3()();return c2t(p)},{debugName:"d8B62c"},"DEXkhd")};
br4=function(p,J){return _.RR(p.entities,"engagementToolbarStateEntityPayload",J)};
FjX=function(p){(p=_.Az(p))&&_.mM9(p)};
_.mM9=function(p){var J=_.C1();J&&_.Tv(J,p)};
vLi=function(p,J,S){_.IV(p,"yt-open-popup-action",[J,S||p])};
fQX=function(p,J){var S=_.Eg(p,"endpoint"),H=_.Eg(p,"action");return(S=H?H:S)&&J&&(S=J.navigationEndpointPopupMap[S])&&(p=_.Id(S,p),(S=_.Eg(p,"renderer"))&&J.supportedPopups.hasOwnProperty(S))?{openPopupAction:{popupType:J.popupTypeMap[S],popup:p}}:null};
Orw=function(p,J,S,H){if(H){var M;S=S==null?void 0:(M=S.data)==null?void 0:M.contents;(M=S instanceof Array&&S.length?S[0]:S)&&(S=_.Eg(M,"renderer"))&&H.supportedPopups.hasOwnProperty(S)&&(J.stopPropagation(),vLi(p,{openPopupAction:{popupType:H.popupTypeMap[S],popup:M}}))}};
zF9=function(p,J,S,H){H=H===void 0?!1:H;var M=A6X(J);if(M){M.href&&tc(M.href);var X=J.button;X=X!==void 0?X===0&&!OS(J):!OS(J);M.data&&X&&Pgw(p,M,J,S,H)}};
Pgw=function(p,J,S,H,M){M=M===void 0?!1:M;var X=_.PO("pbj_navigate_limit",-1)===0;$MW(J);_.vO().resolve(_.F9(HJ));var Z=J.data;if(Object.keys(Z).length!==0)if(!_.z("unplugged_web_disable_actions_for_cec_endpoint")&&_.e(Z,_.H9))_.z("endpoint_behavior_command_executor_fix_killswitch")||(S.preventDefault(),S.stopPropagation()),_.JP(p,[Z],p);else if(H=fQX(Z,H))Z.loggingUrls&&Z.loggingUrls.forEach(function(b){b.baseUrl&&_.Xb(b.baseUrl)}),S.preventDefault(),S.stopPropagation(),vLi(p,H,J);
else{var n=oLv(0,J.data,S);if(p=J.getForm)p=p(),n.tempData=n.tempData||{},n.tempData=Object.assign({},n.tempData,p);p=_.Er(S);if(H=p.find(function(b){return!!b.visualElement}))n.createScreenConfig=n.createScreenConfig||{},n.createScreenConfig.clickedVisualElement=H.visualElement;
if(!X)if(S.preventDefault(),S.stopPropagation(),_.e(Z,_.eFt)&&!M&&_.R4.instance)_.R4.instance.resolveCommand(Z,n);else if(_.z("kevlar_command_handler_formatted_string")&&!M&&_.R4.instance&&Wjg(Z))M=p.find(function(b){return!!b.is})||S.target,S={form:Object.assign({},n,{event:S,
element:M,originatingNode:J})},_.R4.instance.resolveCommand(Z,S);else{Z=_.Er(S);S=[];for(M=0;M<Z.length;M++)(X=Z[M].is)&&S.push(X);JHk({parents:S.join(","),text:J.innerText},function(){_.cf(J,"yt-navigate",n)})}}};
QgW=function(p){if(p=A6X(p))$MW(p),cOi(p.href)};
A6X=function(p){p=_.Er(p);for(var J,S=0;S<p.length;S++)if(J=p[S],J.tagName==="A"&&J.classList.contains("yt-simple-endpoint")){if(!J.data)break;return J}return null};
OS=function(p){return p.shiftKey||p.altKey||p.metaKey||p.ctrlKey};
CgL=function(p,J){var S={itct:J.clickTrackingParams};_.z("kevlar_client_side_screens")&&(!_.e(J,_.vt)||_.z("kevlar_exclude_endpoint_killswitch"))&&(S.endpoint=JSON.stringify(J));_.z("enable_unknown_lact_fix_on_html5")&&_.vO().resolve(_.F9(_.Am))&&(S.lact=_.AV());jH9(S);_.EB(p,S)};
$MW=function(p){p.href&&Object.keys(p.data).length!==0&&CgL(p.href,p.data)};
Wjg=function(p){for(var J=_.K(y6g),S=J.next();!S.done;S=J.next())if(p[S.value])return!1;return!0};
BAt=function(){if(Pv)return Pv;if(window.lottie)return Pv=Promise.resolve(window.lottie);var p=_.x_(_.jn("LOTTIE_URL"));return p?Pv=new Promise(function(J,S){var H=document.createElement("script");H.addEventListener("load",function(){J(lottie)});
H.addEventListener("error",function(M){var X="Lottie library failed to load.";M?M.message&&(X+=" Original description: "+M.message,_.cL(M,X)):M=Error(X);_.xQ(M);S(M)});
H.setAttribute("async","");_.RI(H,p);document.head.appendChild(H)}):Promise.reject(Error("sh"))};
UMi=function(){return Pv?Pv:BAt()};
sgi=function(p){if(p)switch(p){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.z("kevlar_use_wil_icons"))return p=(p=zIW(_.rl().getState()))&&p.animationLightUrl&&p.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:p.animationLightUrl,pathDarkTheme:p.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,p?p:z7.get("LIKE");break;case "LIKE_DELHI_PLAYER":return z7.get("LIKE_DELHI_PLAYER")}};
gLg=function(p){var J=sgi(p);if(J)return J;switch(p){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return z7.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return z7.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return z7.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return z7.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return z7.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return z7.get("NOTIFICATION_BELL")}};
tv9=function(p,J){if(!p.closest)return!1;J=!!sgi(J);return _.jn("ID_TOKEN")&&J?!!p.closest("segmented-like-dislike-button-view-model")||!!p.closest("yt-player-quick-action-buttons"):!1};
DMk=function(p,J){if(!p||hFX)J=!1;else{var S;if(!(S=tv9(p,J)))if(p.closest)if(S=!_.jn("ID_TOKEN"),p=p.closest("ytd-subscription-notification-toggle-button-renderer-next"),S||!p)S=!1;else{var H;S=((H=p.data)==null?void 0:H.targetId)==="notification-bell"&&J!=="EXPAND_MORE"}else S=!1;J=S}return J};
kOW=function(p){var J,S;return _.G(function(H){switch(H.nextAddress){case 1:return _.oI(H,2),H.yield(fetch(p),4);case 4:return J=H.yieldResult,H.yield(J.json(),5);case 5:return H.return(H.yieldResult);case 2:S=_.BZ(H),_.xQ(S),_.UK(H)}})};
NAs=function(p,J){var S,H,M;return _.G(function(X){if(X.nextAddress==1)return(S=J?p.pathDarkTheme:p.path)?X.yield(Promise.all([kOW(S),BAt()]),2):X.return();H=X.yieldResult;M=H[0];$z.set(S,M);_.UK(X)})};
dML=function(p,J,S,H){function M(Z,n){if(J.value===n&&!J.cancelled){for(;p.firstChild;)p.removeChild(p.firstChild);p.classList.add("ytSpecIconShapeHost");Z(p,H)}}
var X=_.TA3(_.vO().resolve(_.iC),S);typeof X==="function"?(J.value=null,M(X,null)):(J.value=X,X.then(function(Z){M(Z,X)}))};
uAL=function(p,J){var S=document.createElement("div"),H=_.VS(S,function(){return _.m(_.v,{cond:p,then:function(M){return _.m(_.oY,{data:M,options:J})}})},"ca");
return[S,H]};
_.eK=function(p,J){if(J){var S={};lQX.forEach(function(H){H=VvL(J,H,"--yt-lightsource-");Object.assign(S,H)});
qRk.forEach(function(H){H=VvL(J,H,"--yt-basic-");Object.assign(S,H)});
_.K3(p,S)}};
VvL=function(p,J,S){var H={};H[S+_.K1(J)]=p&&p[J]?_.Bt(p[J]):"";return H};
_.QI=function(p,J,S){Wv[p]||(Wv[p]={});Wv[p][J]=S};
_.Cb=function(p){Wv[p]||(Wv[p]={});return Wv[p]};
aQi=function(p){if(!p)return{};var J=p.foregroundTitleColor,S=p.backgroundColor;p=p.borderColor;var H="text";p?H="outline":S&&(H="filled");return{type:H,customColors:{color:J?_.Bt(J):void 0,backgroundColor:S?_.Bt(S):void 0,borderColor:p?_.Bt(p):void 0}}};
wxg=function(p){var J=p.renderer;var S=p.element;var H=p.commandController;var M=p.onTapCallback;var X=p.skipCommandHandling;var Z=p.overrides;var n=p.forceIcon;var b=p.forceModernIconButton;var F=p.forceDisabled;var f=p.isSubscribe===void 0?!1:p.isSubscribe;var O=p.isPressed===void 0?!1:p.isPressed;var A=p.useButtonSize===void 0?!1:p.useButtonSize;p=ELX(J);f&&(p.style="mono",p.type="filled");n=!J.icon||!n&&J.text?J.icon?J.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:b?"icon-only":"icon-only-40";n==="icon-only-40"&&(p.type="text");var P;b=Object;f=b.assign;A=YRi(J,A);O=!!J.isSelected||!_.z("web_propagate_is_pressed_killswitch")&&!!O;var W=J.isSelected!==void 0;F=F===void 0?J.isDisabled:F;var y=J.text?_.CI(J.text):void 0;var t,D,k,E=((t=J.accessibilityData)==null?void 0:(D=t.accessibilityData)==null?void 0:D.label)||((k=J.accessibility)==null?void 0:k.label);t=E?E:_.E4(J.text);S=r6i(J,S,H,M,X);H=jgX(J);H!=null&&H.length?(H=_.tz({innertubeCommand:vgi(H),
forceNewState:!0}),H=hz(H)?H:void 0):H=void 0;return f.call(b,{},p,A,{iconPosition:n},Z,{focused:!1,toggled:O,toggleable:W,disabled:F,formattedButtonText:y,accessibilityLabel:t,onTap:S,aTagConfig:H},aQi((P=J.colorData)==null?void 0:P.basicColorPaletteData),{oneOffCustomTextWrap:J.oneOffCustomTextWrap})};
r6i=function(p,J,S,H,M){return function(X){var Z=jgX(p);H(Z,X);if(!M){Z=_.K(Z);for(var n=Z.next();!n.done;n=Z.next())vv(n.value,{form:{element:J,event:X},commandController:S})}}};
jgX=function(p){var J=[];p.command&&J.push(p.command);p.serviceEndpoint&&J.push(p.serviceEndpoint);p.navigationEndpoint&&J.push(p.navigationEndpoint);return J};
YRi=function(p,J){if(J)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"}}};
ELX=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_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",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"}}};
xMt=function(p,J){return typeof p!=="object"||p===null?!1:Object.keys(J).every(function(S){return S in p})};
yI=function(p){return Object.fromEntries(Object.keys(p).map(function(J){return[J,J]}))};
c6g=function(p,J,S){return JQ3(S,function(H,M){return function(X){var Z=_.Yp.apply(1,arguments);return xMt(X,p)?M.apply(null,[X[J]].concat(_.dW(Z))):M.apply(null,[X].concat(_.dW(Z)))}})};
Bv=function(p){return function(J,S){return c6g(p,J,S)}};
IQ3=function(p,J){var S;return(S=_.RR(p,"playlistLoopStateEntity",J))!=null?S:void 0};
Ljt=function(p,J){var S;return(S=_.RR(p,"toggleMenuServiceItemEntity",J))!=null?S:void 0};
_.US=function(p){return p!=null&&p.watch?p.watch.isTheaterMode:!1};
_.sS=function(p){return p!=null&&p.watch?p.watch.isWatchFullscreen:!1};
_.gn=function(p){if(_.pck(p))return!0;p=_.Jjs(p);return _.z("web_watch_enable_single_column_grid_view")?p:!1};
_.pck=function(p){return p!=null&&p.watch?p.watch.isSwatcherooActive:!1};
_.Jjs=function(p){return p.watch.isWatchNarrowWidth};
_.SxW=function(p){return _.US(p)||_.sS(p)||_.Jjs(p)};
_.HZX=function(p){return p.watch.openEngagementPanels};
_.tm=function(p,J){return _.RR(p.entities,"likeStatusEntity",J)};
M1W=function(p,J){return _.RR(p.entities,"likeCountEntity",J)};
_.Xc4=function(p,J){return _.RR(p.entities,"stringEntity",J)};
iZw=function(p,J){return _.RR(p.entities,"dataFreshnessEntity",J)};
RO3=function(p,J){if(!p)return!1;var S,H=(S=_.e(p,_.X6))==null?void 0:S.signal;if(H&&J.signalEndpointMap)return!!J.signalEndpointMap[H];var M;if((S=(M=_.e(p,_.hm))==null?void 0:M.request)&&J.continuationEndpointMap)return!!J.continuationEndpointMap[S];for(var X in p)if(J.commandEndpointMap[X])return!0;return!1};
Khs=function(p,J){if(J.streamingEndpointMap)for(var S in p)if(J.streamingEndpointMap[S]&&(p=J.streamingEndpointMap[S]))return p()};
ZZk=function(p,J){var S,H=(S=_.e(p,_.X6))==null?void 0:S.signal;if(H&&J.signalEndpointMap&&(S=J.signalEndpointMap[H]))return S();var M;if((S=(M=_.e(p,_.hm))==null?void 0:M.request)&&J.continuationEndpointMap&&(M=J.continuationEndpointMap[S]))return M();for(var X in p)if(J.commandEndpointMap[X]&&(p=J.commandEndpointMap[X]))return p()};
nkk=function(p){var J={"Content-Type":"application/json"};_.jn("EOM_VISITOR_DATA")?J["X-Goog-EOM-Visitor-Id"]=_.jn("EOM_VISITOR_DATA"):_.jn("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=_.jn("VISITOR_DATA"));J["X-Youtube-Bootstrap-Logged-In"]=_.jn("LOGGED_IN",!1);_.jn("DEBUG_SETTINGS_METADATA")&&(J["X-Debug-Settings-Metadata"]=_.jn("DEBUG_SETTINGS_METADATA"));p!=="cors"&&((p=_.jn("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(J["X-Youtube-Client-Name"]=p),(p=_.jn("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(J["X-Youtube-Client-Version"]=
p),(p=_.jn("CHROME_CONNECTED_HEADER"))&&(J["X-Youtube-Chrome-Connected"]=p),(p=_.jn("DOMAIN_ADMIN_STATE"))&&(J["X-Youtube-Domain-Admin-State"]=p));(p=_.jn("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(J["X-YouTube-Lava-Device-Context"]=p);return J};
GSi=function(p,J){J.watchNextResponse||J.reelItemWatchResponse?J.watchNextResponse?p.content=J.watchNextResponse:p.content=J.reelItemWatchResponse:J.playerResponse?p.player=J.playerResponse:J.reelWatchSequenceResponse&&(p.reelSequence=J.reelWatchSequenceResponse)};
Du=function(p){return function(){return new p}};
kz=function(p){var J=_.vO();return function(){return J.resolve(p)}};
_.Nr=function(p){if(!p)return null;for(var J=[],S=0;S<p.textSegments.length;S++){var H=p.textSegments[S];H.text?J.push(H):H.emojiId&&J.push({emoji_id:H.emojiId})}return{text_segments:J}};
fEi=function(p,J,S,H,M,X,Z){X=X===void 0?[]:X;var n=new _.T7;n.endpoint=S;if(!S)return _.wf(new _.TG("handle undefined endpoint",J.tagName)),n;var b=nmX(S);b.length&&(_.JP(p,b,J,H),n.actions=b);S.loggingUrls&&S.loggingUrls.forEach(function(f){f.baseUrl&&iS(f.baseUrl,f.attributionSrcMode)});
b=!_.z("web_skip_impression_click_killswitch")&&H&&H.impression;if(S.clickTrackingParams&&!bZi(S)&&!mtw(J)&&!b&&(b=_.bC(),!_.dn(b,J))){var F=J.getScreenLayer&&J.getScreenLayer();F?b.clickCommand(S,null,F):b.clickCommand(S,null)}b=!1;for(F=0;F<X.length;F++)if((0,X[F])(J,S,H)){b=!0;break}!b&&FhW(S)&&(n.ajaxPromise=vki(p,J,S,H,M,Z));return n};
mtw=function(p){var J;return(p=(J=p.data)==null?void 0:J.navigationEndpoint)&&!!p.clickTrackingParams};
bZi=function(p){var J=_.e(p,_.X6);if(J&&(J=J.signal)&&OZX.indexOf(J)>=0)return!0;for(var S in p)if(Aj4.indexOf(S)>=0)return!0;return!1};
FhW=function(p){var J;if(((J=_.e(p,_.X6))==null?void 0:J.signal)==="CLIENT_SIGNAL")return!1;for(var S in p)if(PRW.indexOf(S)>=0)return!1;p=Object.keys(p);return p.length===1&&p[0]==="loggingUrls"?!1:!0};
yjX=function(p,J,S,H,M,X,Z){var n=_.un.instance;if(n&&_.ln(n,H))var b=_.VI(n,H,M).then(function(f){return(f==null?0:f.data)?f:{data:f}});
else b=p.requestDataForServiceEndpoint(H,M),_.e(H,zOi)||_.e(H,$t4)||_.e(H,_.oks)||_.e(H,eOk)||_.xQ(new _.TG("No RequestBuilder for endpoint",H));var F=_.qr();F.promise.thenCatch(function(){var f=_.Eg(H,"action")||_.Eg(H,"command")||_.Eg(H,"endpoint");f&&(f=H[f],f.hasOwnProperty("onFailureAction")?_.JP(J,[f.onFailureAction],S):f.hasOwnProperty("onFailureCommand")&&_.JP(J,f.onFailureCommand,S));b.cancel("Resolver promise rejected")});
b.then(function(f){if(f){var O=f.error;if(O){if(X&&X.onServerError)X.onServerError(H,f);F.reject(new _.TG("Response error",H,O))}else if(f=f.data)if(O=f.error){if(X&&X.onServerError)X.onServerError(H,f);F.reject(new _.TG("Returned error",H,O))}else{Whg(J,S,f,H);QFi(f);if(O=ZGg(f))for(var A=_.K(O),P=A.next();!P.done;P=A.next()){P=P.value;var W=_.vO().resolve(_.F9(CR9))||aY;if(!_.un.instance||!W.some(function(t){return!!_.e(H,t)})||_.z("kevlar_response_processor_allowlist_killswitch")){var y=W=void 0;
((y=_.e((W=P)==null?void 0:W.commandMetadata,_.i7))==null?0:y.sendPost)?_.pl(J,[P]):_.JP(J,[P],S)}}(A=_.e(f==null?void 0:f.frameworkUpdates,ES))&&Z&&Z(A);if(X&&X.onSuccess)X.onSuccess(H,f);F.resolve(new _.Yz(f,O))}}else F.reject(new _.TG("Invalid service endpoint provided",H))},function(f){F.reject(f)});
return F.promise};
QFi=function(p){var J;(p=(J=_.e(p==null?void 0:p.onResponseReceivedCommand,_.BPi))==null?void 0:J.continuationItems)&&(p==null?void 0:p.length)===1&&_.e(p[0],Ut4)&&_.Qf("so_r",void 0,"search_overview_answer")};
vki=function(p,J,S,H,M,X){var Z;return(Z=J.getNetworkManager&&J.getNetworkManager()?J.getNetworkManager():_.vO().resolve(_.F9(_.Or)))?yjX(Z,p,J,S,H,M,X):_.o4("No network manager.")};
Whg=function(p,J,S,H){if(S=S.trackingParams||S.loggingDirectives&&S.loggingDirectives.trackingParams){var M;(_.e(H,_.rn)||_.e(H,sF4)||_.e(H,gk4))&&H.clickTrackingParams?M=_.Az(H.clickTrackingParams):_.z("web_graft_to_parent_command")&&H.clickTrackingParams&&(M=_.Az(H.clickTrackingParams));var X;H=(X=J.getScreenLayer)==null?void 0:X.call(J);J=_.bC().graftServerVe(S,M,H);_.L1(p,"yt-store-grafted-ve-action",[J])}};
_.t1t=function(p){var J=new Image;return new _.UI(function(S,H){J.addEventListener("load",function(){S()});
J.addEventListener("error",function(){H()});
J.src=p})};
hOL=function(p){return!!p};
Dtv=function(p){return!!p};
kSX=function(p,J,S){var H=p.rowIndex;H!==void 0&&_.L1(p.hostElement,"yt-section-reactive-dismissal",[H,J,S])};
_.jK=function(p,J,S){p=_.K(p);for(var H=p.next();!H.done;H=p.next()){H=H.value;if(H===J)break;for(var M=_.K(S),X=M.next();!X.done;X=M.next())if(X=X.value,H.tagName===X||!_.z("web_event_button_role_check_killswitch")&&H.role==="button"&&X==="BUTTON")return!0}return!1};
_.wn=function(p,J,S){p=_.K(p);for(var H=p.next();!H.done;H=p.next()){H=H.value;if(H===J)break;for(var M=_.K(S),X=M.next();!X.done;X=M.next())if(H.id===X.value)return!0}return!1};
_.IY=function(){var p=_.vO().resolve(_.F9(_.xz));return p?(p=p.getCurrentPage())?_.cv(p):null:null};
_.Lb=function(){var p=_.IY();if(!p){var J=_.vO().resolve(_.F9(_.xz)),S=J?typeof J:"no page manager";J=J?J.getCurrentPage():null;S=new _.TG("Player is missing when requested.",S,J?J.tagName:"no page");_.jD(S)}return p};
_.cv=function(p){return p&&p.getPlayer?p.getPlayer():null};
NPs=function(p,J){p={args:{raw_player_response:p}};J&&(p.args=Object.assign({},p.args,J));return p};
TPt=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)}};
_.dt3=function(p,J){var S={url:"/watch?v="+p.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};p.playlistId&&(S.url+="&list="+p.playlistId);p.playerParams&&(S.url+="&pp="+p.playerParams);p={watchEndpoint:p,commandMetadata:{webCommandMetadata:S}};J&&(p.clickTrackingParams=J);return p};
lEW=function(){return udg||!!_.Id("yt.player.Application")};
qxX=function(){return V1t||!!document.querySelector("link#player-css")};
EkL=function(){function p(){udg=!0;aEi.resolve()}
var J,S;return _.G(function(H){aEi||(aEi=new _.iy,lEW()?p():(J=document.createElement("script"),J.addEventListener("load",p),S=_.kc(_.jn("PLAYER_JS_URL")),_.RI(J,S),document.head.appendChild(J)));return H.return(aEi.promise)})};
rjX=function(){function p(){V1t=!0;Yxk.resolve()}
if(!Yxk)if(Yxk=new _.iy,qxX())p();else{var J=document.createElement("link");J.id="player-css";J.addEventListener("load",p);var S=_.kc(_.jn("PLAYER_CSS_URL"));_.n_(J,S,"stylesheet");document.head.appendChild(J)}return Yxk.promise};
jF4=function(){return lEW()&&qxX()?Promise.resolve([]):Promise.all([EkL(),rjX()])};
wcv=function(p,J,S){var H={args:{}};p&&(H.args.raw_player_response=p);J&&(H.args.raw_watch_next_response=J);S&&(H.args=Object.assign({},H.args,S));return H};
LhL=function(p,J,S){var H=!1;H=H===void 0?!0:H;p=typeof p==="string"?_.pG(document,p):p;var M=xt4+"_"+_.jt(p),X=cjw[M];if(X&&H)return IE4(J,S)?X.api.loadVideoByPlayerVars(J.args||null):X.loadNewVideoConfig(J),X.api;X=new JH(p,M,J,S,void 0);cjw[M]=X;X.addOnDisposeCallback(function(){delete cjw[X.getId()]});
return X.api};
IE4=function(p,J){return J&&J.serializedExperimentFlags?J.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):p&&p.args&&p.args.fflags?p.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
pnw=function(){var p=new _.iy;p.resolved=!1;var J=p.resolve;p.resolve=function(S){p.resolved=!0;J(S)};
return p};
SCt=function(p){var J={};JBL().install((J.document_disposed={callback:p},J))};
SH=function(p,J){if(!p&&Math.random()<=_.PO("kevlar_unified_player_logging_threshold")){p=Error("uh`"+(J?J:"Unspecified error"));if(_.z("kevlar_unified_player_throw_errors"))throw p;_.xQ(p)}};
_.H2k=function(){var p=_.Id("ytDebugData.callbacks");p||(p={},_.m$("ytDebugData.callbacks",p));return p};
Xnv=function(p,J){var S=_.H2k();if(_.z("web_dd_iu")||MVX.includes(p))S[p]=J};
i2X=function(){return _.G(function(p){return p.return({isLeader:_.Vpv(_.rl().getState()),c:_.jn("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.jn("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Rit=function(){var p;_.G(function(J){if(J.nextAddress==1)return Xnv("APP_STATE",i2X),J.yield(_.vO().resolve(_.H$),2);p=J.yieldResult;Xnv("PI",function(){return _.G(function(S){return S.return(p.getVideoStats())})});
_.UK(J)})};
KWt=function(p){return!!p&&p.length>0&&p[0].loggingUrls!=null&&p[0].loggingUrls.length>0};
Z2i=function(){var p=_.jn("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(p==null?void 0:p.length)===2?p[1]:null};
nJ9=function(p){if(!p)return[];var J=[];p=_.K(p);for(var S=p.next();!S.done;S=p.next())if(S=S.value,S.loggingUrls){S=_.K(S.loggingUrls);for(var H=S.next();!H.done;H=S.next())H=H.value,H.baseUrl&&J.push(H.baseUrl)}return J};
GpW=function(p){var J=_.aV(_.kV(_.Hg.location.href));p=_.aV(_.kV(p));return _.z("kevlar_clear_non_displayable_url_params")?J==M6(p):M6(J)==M6(p)};
M6=function(p){var J=_.b29(p);p=p.slice(0);var S=["frags"];_.z("kevlar_hide_pp_url_param")&&S.push("pp");_.z("kevlar_hide_time_continue_url_param")&&S.push("time_continue");S=_.K(S);for(var H=S.next();!H.done;H=S.next())H=H.value,p=_.YV(_.aV(p),H);return _.aV(p)+(J?"#"+J:"")};
XJ=function(p,J){J=Number(J)*1E3;var S=Math.round((0,_.fO)()),H=S.toString();p={innertubeResponse:p,serverDateTimestampMs:H,lastModifiedTimestampMs:H,expireTimestampMs:(S+J).toString()};if(J=_.jn("INNERTUBE_CONTEXT_CLIENT_NAME"))p.clientName=J;return p};
FWg=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++mxX};
vJv=function(p){return!isNaN(p)&&p>0};
O2L=function(){_.z("web_adaptive_repeat_ase")&&fiw&&_.YQ("applicationStarted",fiw)};
_.ABW=function(){var p=_.Wf(),J=_.C1();J&&p&&_.u7(J,[p],!0)};
ziv=function(p){return p&&PXi.some(function(J){return p.includes(J)})};
CXX=function(p){var J=_.e(p,_.My);if(!J)return!1;var S=J.url,H=J.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!S)return _.jD(Error("zh")),!1;if(J.target==="TARGET_NEW_WINDOW"){J={};_.z("resolve_url_parent_tracking_params")&&(!_.nQ(S)||GG(window.location.href,S))&&(J={endpoint:p,itct:p.clickTrackingParams});jH9(J);p=null;try{if(H){a:{var M=S,X=J;H=H===void 0?!1:H;X&&_.EB(M,X);var Z=_.Vd(M),n=_.Tu(Z);M!=n&&_.SB(Error("Yf`"+M));M=n;try{if(H){n=M;n=YDg(n);tc(n);p=_.Ju(window,n,"_blank",
"attributionsrc");break a}}catch(A){_.xv(A)}tc(M);p=_.Ju(window,Z,"_blank")}$xX(_.vO().resolve(oJt),p,S);return!0}}catch(A){_.jD(A)}_.EB(S,J);J={target:"_blank",noopener:!1};Z=window;n=NG(S)?S:_.Vd(typeof S.href!="undefined"?S.href:String(S));H=self.crossOriginIsolated!==void 0;p="strict-origin-when-cross-origin";window.Request&&(p=(new Request("/")).referrerPolicy);M=J.noreferrer;if(H&&M&&p==="unsafe-url")throw Error("ve");p=M&&!H;M=J.target||S.target;X=[];var b=[],F=!1;for(O in J){var f=J[O];switch(O){case "width":case "height":case "top":case "left":X.push(O+
"="+f);break;case "target":break;case "noopener":case "noreferrer":f?b.push(O):(F=!0,b.push(O+"=false"));break;case "attributionsrc":X.push(O+(f?"="+f:""));break;default:X.push(O+"="+(f?1:0))}}var O=M!==void 0&&!["_blank","_self","_top","_parent",""].includes(M);O=Wg()&&O;eiL&&H&&X.length===0&&b.length>0&&!O&&!F?(b.length===2&&(b=["noreferrer"]),_.Ju(Z,n,M,b[0]),p=WWk()):(O=X.join(","),_.si()&&Z.navigator&&Z.navigator.standalone&&M&&M!="_self"?(O=_.Q0("A"),ja(O,n),O.target=M,p&&(O.rel="noreferrer"),
((J=J.attributionsrc)||J==="")&&O.setAttribute("attributionsrc",J),J=document.createEvent("MouseEvent"),J.initMouseEvent("click",!0,!0,Z,1),O.dispatchEvent(J),O=WWk()):p?(O=_.Ju(Z,"",M,O),Z=_.Tu(n),O&&(O.opener=null,Z===""&&(Z="javascript:''"),Z='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+iT(Z)+'">',Z=xp(Z),(J=O.document)&&J.write&&(J.write(cG(Z)),J.close()))):((O=_.Ju(Z,n,M,O))&&J.noopener&&(O.opener=null),O&&J.noreferrer&&(O.opener=null)),p=O);$xX(_.vO().resolve(oJt),
p,S);return!0}O=_.yn(S);O=ziv(O)||S==="https://studio.youtube.com/";if(_.nQ(S)&&!GG(window.location.href,S)||O)tc(S),$O(),_.hc(S,void 0,void 0,window.top,QkW);else return _.xQ(new _.TG("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",p)),!1;return!0};
_.UxX=function(p,J){J=J===void 0?0:J;if(!(_.e(p,yBX)||_.e(p,Bz9)||_.e(p,_.My)&&_.e(p,_.My).url))return!1;var S,H=(S=_.e(p,_.My))==null?void 0:S.url;S=H?{externalLinkData:{url:H}}:null;return _.bC().clickCommand(p,S,J)};
gJ3=function(p,J,S,H,M){M=M===void 0?{}:M;return function(X){var Z,n;var b=((Z=p.loggingDirectives)==null?0:(n=Z.clientVeSpec)==null?0:n.uiType)?_.KG(p.loggingDirectives.clientVeSpec.uiType):void 0;M.clickedVisualElement||(M.clickedVisualElement=b);b=ski(p,J);S(b,X);b=_.K(b);for(Z=b.next();!Z.done;Z=b.next()){Z=Z.value;n=H;var F=X,f=M;f.form?f.form.event=F:f.form={element:n,event:F};vv(Z,f)}}};
ski=function(p,J){var S=[];J?(p.toggledCommand&&S.push(p.toggledCommand),p.toggledServiceEndpoint&&S.push(p.toggledServiceEndpoint)):(p.defaultCommand&&S.push(p.defaultCommand),p.defaultServiceEndpoint&&S.push(p.defaultServiceEndpoint),p.defaultNavigationEndpoint&&S.push(p.defaultNavigationEndpoint));return S};
tV4=function(p,J){var S=p.toggledStyle||p.style,H;switch((H=J?S:p.style)==null?void 0:H.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"}}};
_.Zp=function(){return _.G(function(p){return p.nextAddress==1?p.yield(_.vO().resolve(_.H$),2):p.return(_.vO().resolve(hik)())})};
_.nG=function(){return _.vO().resolve(hik)()};
_.Gy=function(){return{lottieEl:void 0}};
Dxi=function(p,J){return p.startsWith(J.uniqueId)};
kpW=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return H.yield(_.Zp(),2);J=H.yieldResult;if((S=J)==null||!S.addEventListener)return bT(),H.return();J.addEventListener("onCueRangeEnter",p);_.UK(H)})};
Nzk=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return H.yield(_.Zp(),2);J=H.yieldResult;if((S=J)==null||!S.removeEventListener)return bT(),H.return();J.removeEventListener("onCueRangeEnter",p);_.UK(H)})};
Tzk=function(p){var J,S,H,M,X;_.G(function(Z){if(Z.nextAddress==1)return Z.yield(_.Zp(),2);J=Z.yieldResult;if((S=J)==null||!S.addCueRange)return bT(),Z.return();H=_.K(p.timings);for(M=H.next();!M.done;M=H.next())X=M.value,J.addCueRange(p.uniqueId+"-"+X,X/1E3,(X+100)/1E3);_.UK(Z)})};
dxW=function(p){var J,S,H,M,X;_.G(function(Z){if(Z.nextAddress==1)return Z.yield(_.Zp(),2);J=Z.yieldResult;if((S=J)==null||!S.removeCueRange)return bT(),Z.return();H=_.K(p.timings);for(M=H.next();!M.done;M=H.next())X=M.value,J.removeCueRange(p.uniqueId+"-"+X);_.UK(Z)})};
u3w=function(){var p,J,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(_.Zp(),2);p=H.yieldResult;if((J=p)==null||!J.getPlayerState)return bT(),H.return();S=p.getPlayerState();return H.return(S===2)})};
bT=function(){_.xQ(new _.TG("Smartimation player does not exist or is corrupted"))};
lig=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(J){return _.xQ(new _.TG("Smartimation CSS.supports threw an error")),!1}};
jkX=function(p,J,S,H,M){var X=p.playlistId?VVX:qCk;J=J();S=S();M=!!p.videoId&&M()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.f$(J))return ai4({data:p,actionType:X,disabled:M},S);if(p.videoId&&H())return EJ4({data:p,actionType:X,disabled:M});switch(J){case "TRANSFER_STATE_UNKNOWN":return EJ4({data:p,actionType:X,disabled:M});case "TRANSFER_STATE_FAILED":return p.videoId?YCi({data:p,actionType:X,disabled:M}):rBk({data:p,actionType:X,disabled:M});case "TRANSFER_STATE_COMPLETE":return rBk({data:p,
actionType:X,disabled:M});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return ai4({data:p,actionType:X,disabled:M},S);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return p.videoId?YCi({data:p,actionType:X,disabled:M}):EJ4({data:p,actionType:X,disabled:M});default:return EJ4({data:p,actionType:X,disabled:M})}};
wns=function(p,J){var S=p.onTapCommand,H=_.sa(S);if(p.videoId&&_.e(H,_.mV))return _.e(H,_.mV).action=J,S;p.playlistId&&_.e(H,_.FJ)&&(_.e(H,_.FJ).action=J);return S};
EJ4=function(p){var J=p.data;var S=p.actionType;p=p.disabled;return{text:xxX,iconType:"OFFLINE_DOWNLOAD",onTap:wns(J,S.ACTION_ADD),disabled:p}};
ai4=function(p,J){var S=p.data;var H=p.actionType;p=p.disabled;var M="OFFLINE_DOWNLOAD";J>=0&&J<=.1?M="OFFLINE_DOWNLOADING_ZERO":J>.1&&J<=.3?M="OFFLINE_DOWNLOADING_TWENTY":J>.3&&J<=.5?M="OFFLINE_DOWNLOADING_FORTY":J>.5&&J<=.7?M="OFFLINE_DOWNLOADING_SIXTY":J>.7&&J<1?M="OFFLINE_DOWNLOADING_EIGHTY":J===1&&(M="OFFLINE_PIN");return{text:cBW,iconType:M,onTap:wns(S,H.ACTION_REMOVE_WITH_PROMPT),disabled:p}};
rBk=function(p){var J=p.data;var S=p.actionType;p=p.disabled;return{text:IiW,iconType:"OFFLINE_PIN",onTap:wns(J,S.ACTION_REMOVE_WITH_PROMPT),disabled:p}};
YCi=function(p){var J=p.data;var S=p.actionType;p=p.disabled;return{text:LWs,iconType:"OFFLINE_DOWNLOAD",onTap:wns(J,S.ACTION_RETRY),disabled:p}};
_.v$=function(p,J){var S=ja3();return _.BW(function(){S();return c2t(p,[_.a2(J)||""])},{debugName:"LUZslf"},"Z105t")};
pb4=function(p){var J=_.v$(_.gl,function(){return p().videoId}),S=_.v$(_.tk,function(){return p().playlistId});
return function(){return p().videoId?J:p().playlistId?S:_.K(_.eQ("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
Jbw=function(p){var J=_.v$(DY,function(){return p().videoId}),S=_.v$(_.l0X,function(){return p().playlistId});
return function(){return p().videoId?J:p().playlistId?S:_.K(_.eQ(0,void 0,"K4tgOc")).next().value}};
SWX=function(p){var J=_.v$(_.xa9,function(){return p().videoId});
return function(){return p().videoId?J:_.K(_.eQ(!1,void 0,"Oaxwcf")).next().value}};
Hj9=function(p){var J=_.v$(a0i,function(){return p().videoId});
return function(){return p().videoId?J:_.K(_.eQ("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
MCW=function(){return{}};
_.ZjX=function(p,J,S){return{submitForm:function(){var H,M,X,Z;return _.G(function(n){if(n.nextAddress==1){H=XbX(p());if(!H)return n.return();if(H.onSubmit)return ijv(J),H.onSubmit(),ijv(S),n.return();if(!H.submitConfig||!H.formData)return n.jumpTo(0);H.disableDuringSubmission&&RBW(p(),!0);ijv(J);return n.yield(KRv(H.submitConfig,H.formData()),3)}M=n.yieldResult;ijv(S);if(((X=M)==null?0:X.submitResult)&&((Z=H)==null?0:Z.onSubmitResult))H.onSubmitResult(M.submitResult);H.disableDuringSubmission&&RBW(p(),
!1);return n.return()})},
isValid:function(){var H=XbX(p());if(H){var M;return!((M=H.isValid)==null||!M.call(H))}return!0},
isSubmitting:function(){var H,M;return!!((H=XbX(p()))==null?0:(M=H.isSubmitting)==null?0:M.call(H))}}};
_.fG=function(){if(!nj3){var p=_.K(_.eQ(new Map,void 0,"Y1XnBc"));nj3=p.next().value;GlL=p.next().value}return nj3};
_.bjk=function(p){GlL(new Map(p))};
XbX=function(p){if(p)return _.fG()().get(p)};
KRv=function(p,J){var S;return _.G(function(H){return H.nextAddress==1?J?(S=_.vO().resolve(_.F9(mAi)))&&p.submitId?H.yield(S.submitForm(p.submitId,J,FRW,p.params,p.clickTrackingParams),2):H.return(Promise.reject(Error("Bh"))):H.return(Promise.reject(Error("Ah"))):H.return(H.yieldResult)})};
RBW=function(p,J){if(p){var S=_.fG();S().set(p,Object.assign({},S().get(p),{isSubmitting:function(){return J}}));
_.bjk(S())}};
ijv=function(p){if(p){var J=_.vO().resolve(_.Ov);J&&(p=_.sa(p()))&&J.resolveCommand(p)}};
Oj9=function(p,J){J=J===void 0?{shouldPersist:!0}:J;return{useUpdatableData:function(S,H){var M=_.BW(function(){return p(S())},void 0,"Gmrblb"),X=vji(S,M,H,J);
_.lf(function(){if(M()!=null){fTL.set(M(),X);var Z=M();_.VY(function(){fTL.delete(Z)})}},"j4hx9b");
return X},
getData:function(S){var H;return(H=fTL.get(p(S)))==null?void 0:H[0]()},
updateData:function(S,H){S=p(S);S=fTL.get(S);if(!S)return!1;var M=_.K(S);S=M.next().value;M=M.next().value;H=H(S());M(H);return!0}}};
vji=function(p,J,S,H){H=H===void 0?{}:H;var M=_.K(_.re(function(){var n=p(),b=J();return Abi(n,b,S,H)})),X=M.next().value,Z=M.next().value;
return[X,function(n){Z(n);var b=J();if(H.shouldPersist&&b!=null){var F,f=(F=S==null?void 0:S.map(function(O){return O()}))!=null?F:[];
_.Ol.set(b,[n,f])}}]};
Abi=function(p,J,S,H){H=H===void 0?{}:H;if(J==null||!H.shouldPersist)return p;H=_.Ol.get(J);if(!H)return p;var M=_.K(H);H=M.next().value;var X=M.next().value,Z;M=(Z=S==null?void 0:S.map(function(n){return n()}))!=null?Z:[];
if((X==null?0:X.length)&&(S==null?0:S.length)&&M.some(function(n,b){return n!==X[b]}))return _.Ol.remove(J),p;
(S==null?0:S.length)&&_.Ol.set(J,[H,M]);return H};
P33=function(p){var J=_.K(_.eQ(!0,void 0,"bKtO6d")),S=J.next().value;J.next();return function(){var H=sg(p.children());return _.m(_.v,{cond:S,then:function(){return H},
else:p.fallback})}()};
_.AH=function(p){var J=zBL(p),S=J.data,H=J.mapping,M=J.wrapper;J=J.pendingFallback;var X=function(){return $AL(_.a2(S))},Z=function(){var n=X(),b=[];
n=_.K(n);for(var F=n.next();!F.done;F=n.next()){var f=void 0;F=F.value;var O=void 0;for(f in F)if(!(!F).hasOwnProperty(f)){O=f;break}(f=O)&&b.push(f)}return b};
return p.data?_.m(P33,{fallback:J},function(){return _.m(_.dY,{each:Z},function(n,b){var F=M?function(W){return M(function(){return H[n](W,b)},f,b)}:function(W){return H[n](W,b)};
F.debugName||(F.debugName=String(n));if(!H[String(n)])return document.createComment("");F.componentType!==gr&&oji(String(n));var f=eBL(X,n,b);if(_.z("web_add_microtask_to_stamper")&&!WRw.has(String(n))){var O=_.K(_.eQ(!1,void 0,"afb1md")),A=O.next().value,P=O.next().value;Promise.resolve().then(function(){WRw.add(String(n));P(!0)});
return _.m(_.v,{cond:A,then:function(){return _.m(F,{data:f})}})}return _.m(F,{data:f})})}):_.m(_.fV,null)};
zBL=function(p){var J=p.targetId||Q0i(p.children);if(!p.data||!J)return Object.assign({},p,{mapping:p.children});var S="stamper-"+C3k++,H=function(){var n;return(n=typeof p.targetId==="function"?p.targetId(S):p.targetId)!=null?n:S};
J=_.K(ybi(function(){var n=$AL(p.data());n.targetId=H;return n})).next().value;
var M=Object.assign({},(_.vO().resolve(_.F9(Bc3))||{}).replaceableMapping,p.children);if(p.replacementWrapper){var X=M.notificationTextRenderer,Z=M.notificationMultiActionRenderer;X&&(M.notificationTextRenderer=function(n,b){return p.replacementWrapper(X({data:n.data},b))});
Z&&(M.notificationMultiActionRenderer=function(n,b){return p.replacementWrapper(Z({data:n.data},b))})}return Object.assign({},p,{data:J,
mapping:M,wrapper:function(n,b,F){return SRL({targetId:H,stamperIndex:F},p.wrapper?function(){return p.wrapper(n,b,F)}:n)}})};
eBL=function(p,J,S){var H;return _.BW(function(){var M=p()[S()];if(M)H=M[J];else return _.xQ(new _.TG("Stamper failed to find "+String(J)+" at index "+S()+" of data array of length "+(p().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),H;return M[J]},void 0,"Su9U8")};
Q0i=function(p){p=_.K(Object.keys(p));for(var J=p.next();!J.done;J=p.next())if(J=J.value,UAX.includes(J)||s0k.includes(J)||gj3.includes(J))return!0;return!1};
$AL=function(p){return p?Array.isArray(p)&&p instanceof Array?p:[p]:[]};
oji=function(p){if(_.z("web_enable_renderer_logger")){var J;(J=_.vO().resolve(_.F9(tCX)))!=null&&J.loggingEnabled&&!J.ids.has(p)&&J.ids.add(p)}};
hBi=function(){var p,J;return(J=(p=_.vO().resolve(_.F9(_.uC)))==null?void 0:p())!=null?J:!1};
klW=function(p,J){p=p===void 0?DA3:p;switch(J.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},p,{isOpen:J.payload});default:return p}};
Tc9=function(p,J){p=p===void 0?Nc4:p;switch(J.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},p,{isAllowed:J.payload});default:return p}};
uZW=function(p,J){p=p===void 0?dAX:p;switch(J.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},p,{errorMessage:J.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},p,{title:J.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},p,{privacy:J.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},p,{isDisabled:J.payload});default:return p}};
VCs=function(p,J){p=p===void 0?lTX:p;switch(J.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},p,{isOpen:J.payload});default:return p}};
aTs=function(p,J){p=p===void 0?qWt:p;switch(J.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},p,{isFullscreen:J.payload});case "SET_NAVIGATION_BUTTON":var S=J.payload.targetId,H=Object.assign({},p.navigationButtons);H[S]=J.payload.button;return Object.assign({},p,{navigationButtons:H});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},p,{topPanelId:J.payload});case "SET_SECONDARY_HEADER":return S=J.payload.panelId,H=Object.assign({},p.secondaryHeader),H[S]=J.payload.secondaryHeader,
Object.assign({},p,{secondaryHeader:H});default:return p}};
j0w=function(){return hS(Object.assign({},{voiceSearch:V$X,engagementPanel:aTs,bottomSheet:klW,cinematicSetting:Tc9,shorts:xFw,drawerLayout:VCs,createPlaylist:uZW,locationCollection:Ejg,reportChannel:YWv,reportForm:rbW},c0W))};
wbi=function(p,J){_.wg.addLowPriorityJob(function(){var S,H,M;return _.G(function(X){switch(X.nextAddress){case 1:return _.oI(X,2),X.yield(BAt(),4);case 4:return X.yield(fetch(p),5);case 5:return S=X.yieldResult,X.yield(S.json(),6);case 6:H=X.yieldResult;$z.set(p,H);requestAnimationFrame(function(){J(H)});
_.X$(X,0);break;case 2:M=_.BZ(X),_.xQ(M),_.UK(X)}})})};
xA9=function(p){var J={animationConfig:{},listeners:{}},S=function(){p(!0)};
J.listeners.data_failed=S;J.listeners.error=S;J.listeners.data_ready=function(){p(!1)};
return J};
LRs=function(p){var J=p.model;var S=p.subscribed;var H=p.isOverlay;var M=p.element;var X=p.commandController;var Z=p.notificationState;if(S){var n,b;var F=(J==null?void 0:(n=J.buttonStyle)==null?void 0:n.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:J==null?void 0:(b=J.unsubscribeButtonContent)==null?void 0:b.buttonText}else{var f;F=J==null?void 0:(f=J.subscribeButtonContent)==null?void 0:f.buttonText}a:{var O;switch(J==null?void 0:(O=J.buttonStyle)==
null?void 0:O.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":n="S";break a;default:n="M"}}a:if(H)H="overlay";else switch(J.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":H="overlay";break a;default:H="mono"}a:if(S)var A="tonal";else switch((A=J.buttonStyle)==null?void 0:A.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":A=
"tonal";break a;default:A="filled"}return{style:H,type:A,state:J.disableSubscribeButton?"disabled":"active",size:n,focused:p.focused,toggled:S,accessibilityLabel:cbg(J,S,Z),buttonText:F,iconPosition:J.disableNotificationBell?"none":"leading-trailing",onTap:ITL(J,S,M,X),disableTextEllipsis:!!p.disableTextEllipsis}};
ITL=function(p,J,S,H){return function(M){if(J){var X;var Z=p.disableNotificationBell?_.sa(p==null?void 0:(X=p.unsubscribeButtonContent)==null?void 0:X.onTapCommand):_.sa(p==null?void 0:p.onShowSubscriptionOptions)}else{var n;Z=_.sa(p==null?void 0:(n=p.subscribeButtonContent)==null?void 0:n.onTapCommand)}Z&&vv(Z,{form:{element:S==null?void 0:S.value},commandController:H});M.stopPropagation()}};
cbg=function(p,J,S){if(J){if(p==null?0:p.disableNotificationBell){var H;return p==null?void 0:(H=p.unsubscribeButtonContent)==null?void 0:H.accessibilityText}switch(S){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var M;return p==null?void 0:(M=p.bellAccessibilityData)==null?void 0:M.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var X;return p==null?void 0:(X=p.bellAccessibilityData)==null?void 0:X.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var Z;return p==null?void 0:(Z=
p.bellAccessibilityData)==null?void 0:Z.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var n;return p==null?void 0:(n=p.bellAccessibilityData)==null?void 0:n.disabledLabel;default:var b;return p==null?void 0:(b=p.unsubscribeButtonContent)==null?void 0:b.accessibilityText}}else{var F;return p==null?void 0:(F=p.subscribeButtonContent)==null?void 0:F.accessibilityText}};
pSi=function(p,J){return _.RR(p.entities,"subscriptionStateEntity",J)};
Jig=function(p,J){return _.RR(p.entities,"subscriptionNotificationStateEntity",J)};
SOs=function(p,J){return _.RR(p.entities,"upcomingEventReminderStateEntity",J)};
Hp9=function(p,J){return _.RR(p.entities,"commentEntityPayload",J)};
MXi=function(p,J){return _.RR(p.entities,"engagementToolbarSurfaceEntityPayload",J)};
XSX=function(p,J){return _.RR(p.entities,"triStateButtonStateEntityPayload",J)};
ipk=function(p,J){return _.RR(p.entities,"commerceCartCheckoutButtonEntity",J)};
RLL=function(p,J){return _.RR(p.entities,"commandEntity",J)};
Kqk=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}};
ZpL=function(p,J,S){S.subscribed!==J&&((S=S.key)&&_.Y3(_.P$("subscriptionStateEntity",S,{key:S,subscribed:J})),p.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:J})),J||_.IV(p,"yt-unsubscribe-action"))};
Gni=function(p){p=_.e(_.sa(p),_.zy);var J,S,H,M;return(M=_.e(p==null?void 0:(J=p.panelLoadingStrategy)==null?void 0:(S=J.inlineContent)==null?void 0:(H=S.sheetViewModel)==null?void 0:H.content,nbw))==null?void 0:M.listItems};
bp4=function(p,J){if(p.onShowSubscriptionOptions&&J&&(p=Gni(p.onShowSubscriptionOptions),p!=null&&p.length)){var S=Kqk(J);p.forEach(function(H){H=_.e(H,_.$m);var M,X,Z,n,b=H==null?void 0:(M=H.leadingImage)==null?void 0:(X=M.sources)==null?void 0:(Z=X[0])==null?void 0:(n=Z.clientResource)==null?void 0:n.imageName;H&&b&&(H.isSelected=b===S)})}};
m2W=function(p,J,S,H){J&&S?p.style.width=S+"px":!J&&H&&(p.style.width=H+"px")};
Fq4=function(p,J,S){var H;(H=p.lottieEl)==null||H.goToAndPlay(0);var M;(M=J.lottieEl)==null||M.goToAndPlay(0);_.oA(_.wg,function(){var X;(X=S.lottieEl)==null||X.goToAndPlay(0)},300)};
vb9=function(p){return!(p==null||!p.iconName||(p==null?0:p.title))};
feW=function(p,J,S,H){S&&_.wg.cancelJob(S);S=_.wg.addLowPriorityJob(function(){H(void 0)},5E3);
H(S);J&&p!==(J.likeStatus==="LIKE")&&J.key&&_.Y3(_.P$("likeStatusEntity",J.key,{key:J.key,likeStatus:p?"LIKE":"INDIFFERENT",hadUserInteraction:p}))};
_.OpW=function(p,J){return _.RR(p.entities,"accountLinkStatusEntity",J)};
Aik=function(p,J){return _.RR(p.entities,"hatsSurveyEntity",J)};
P2L=function(p,J){return _.RR(p.entities,"hatsSurveyStateEntity",J)};
zLg=function(p,J){return _.RR(p.entities,"quantityIncrementerEntity",J)};
$29=function(p){switch(p){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
obw=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}};
eLX=function(p){switch(p){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.Qz3=function(p){var J=_.PO("web_generic_client_event_wait_period ",0);J||(J=3E5);var S=Wqw.get(p);!_.z("enable_web_client_experiment_event_timeout_killswitch")&&S&&(0,_.fO)()-S<J||(Wqw.set(p,(0,_.fO)()),_.YQ("genericClientExperimentEvent",{eventType:p}))};
_.C23=function(p,J){var S,H,M,X;a:{var Z=p.style;if(Z===void 0)Z=17;else switch(Z){case "LIVE":Z=18;break a;default:Z=17}}return{type:Z,text:J?J0v({seconds:J}):_.E4(p.text),accessibilityText:(S=p.text)==null?void 0:(H=S.accessibility)==null?void 0:(M=H.accessibilityData)==null?void 0:M.label,icon:(X=p.icon)==null?void 0:X.iconType}};
yiL=function(p){switch(p){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
BuX=function(p){if(!p)return"";var J,S=(J=_.vO().resolve(_.F9(_.uC)))==null?void 0:J(),H;if(!S&&((H=p.vibrantColorPalette)==null?0:H.iconInactiveColor))return Ur(p.vibrantColorPalette.iconInactiveColor,"1");var M;return S&&((M=p.darkColorPalette)==null?0:M.iconInactiveColor)?Ur(p.darkColorPalette.iconInactiveColor,"1"):p.color?Ur(p.color,"1"):p.sampledThumbnailColor?(p=p.sampledThumbnailColor,"rgba("+p.red+","+p.green+","+p.blue+");"):""};
_.eH=function(p,J){if(!p.includes("DATE_PLACEHOLDER"))return p;var S=new Date(0);S.setUTCSeconds(J);return p.replace("DATE_PLACEHOLDER",U2W(S))};
szi=function(p,J,S){return function(H){var M=p.command;M&&(vv(M,{form:{element:S}}),J([M],H))}};
tXt=function(p,J,S,H,M){return function(X){var Z=gbt(p,J);Z&&vv(Z,{form:{element:S},commandController:H});M&&X.stopPropagation()}};
gbt=function(p,J){if(p.signInEndpoint&&!_.z("web_subscribe_sign_in_endpoint_killswitch"))return p.signInEndpoint;if(J){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]}};
hLg=function(p,J){var S,H,M,X;J=J&&((S=p.unsubscribeAccessibility)==null?void 0:(H=S.accessibilityData)==null?void 0:H.label)||((M=p.subscribeAccessibility)==null?void 0:(X=M.accessibilityData)==null?void 0:X.label);return p.longSubscriberCountText?[J,_.E4(p.longSubscriberCountText)].filter(function(Z){return Z}).join(" "):J};
W$=function(p,J){return J||(p==null?0:p.isChannelDelegate)?"disabled":"active"};
D2g=function(p,J){var S;switch((S=p.style)==null?void 0:S.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:W$(p)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:W$(p)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:W$(p,!0)};case "OVERLAY":return J?{style:"overlay",type:"tonal",state:W$(p)}:{style:"overlay",type:"filled",state:W$(p)};default:return J?{style:"mono",type:"tonal",state:W$(p)}:{style:"mono",type:"filled",state:W$(p)}}};
_.Qh=function(){for(var p=[],J=_.K(_.Yp.apply(0,arguments)),S=J.next();!S.done;S=J.next())if(S=S.value)if(typeof S==="string")p.push(S);else{S=_.K(Object.entries(S));for(var H=S.next();!H.done;H=S.next()){var M=_.K(H.value);H=M.next().value;(M=M.next().value)&&p.push(H)}}return p.join(" ")};
knk=function(p){switch(p){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
Nuv=function(p){switch(p){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Tu3=function(p,J){var S=p.map(function(H){return H.toString()});
return _.Kb(function(H){if(S.includes(H.key)){J&&H.preventDefault();var M;(M=H.currentTarget)==null||M.click()}})};
_.d2X=function(){return Tu3(["Enter"])};
_.uOs=function(){return Tu3(["Enter"," "],!0)};
_.CG=function(p){if(p.composedPath)return p.composedPath();if(!p.__composedPath){for(var J=[],S=p.target;S;)J.push(S),S=S.parentNode;J.push(window);p.__composedPath=J}return p.__composedPath};
_.yh=function(p,J,S){p=_.K(p);for(var H=p.next();!H.done;H=p.next()){H=H.value;if(H===J)break;for(var M=_.K(S),X=M.next();!X.done;X=M.next())if(X=X.value,H.tagName===X||H.role==="button"&&X==="BUTTON")return!0}return!1};
VXs=function(p,J){var S,H=(S=J.observer)!=null?S:_.vO().resolve(Oy);if(p){S=lei(p);var M=[];J.showOption&&M.push(H.observe(p,function(){J.visibilityCallback(!0,p)},J.showOption));
J.hideOption&&M.push(H.observe(p,function(){J.visibilityCallback(!1,p)},J.hideOption));
J.prescanOption&&J.prescanCallback&&M.push(H.observe(p,function(){J.prescanCallback()},J.prescanOption));
var X;S.visibilityMonitorKeys=((X=S.visibilityMonitorKeys)!=null?X:[]).concat(M)}};
lei=function(p){var J;return(J=p.polymerController)!=null?J:p};
_.Ul=function(p){return!!_.B$(p)};
_.sl=function(p,J,S,H,M){return function(X){var Z=J6k();_.lf(function(){if(X){qOW(X,p(),M);var n=aeX(X,p(),J,S,H,Z);_.VY(n)}},"lrewVd")}};
qOW=function(p,J,S){var H=Ebs(J),M=YOw(J);J=H&&riW;var X=M&&jzg;(H||M)&&VXs(p,{visibilityCallback:function(Z){var n=_.vO().resolve(_.Ov);Z&&H?n.resolveCommand(H,{form:{element:S?p:void 0},disableClickTracking:!0}):!Z&&M&&n.resolveCommand(M,{form:{element:S?p:void 0},disableClickTracking:!0})},
showOption:J,hideOption:X})};
aeX=function(p,J,S,H,M,X){var Z=new Map;if(J=_.B$(J)){var n;p=(H==null?void 0:(n=H.onTap)==null?void 0:n.value)||p;S=wSt(J,p,S==null?void 0:S.onTap,M,X);p.addEventListener("click",S);Z.set("click",S)}return function(){for(var b=_.K(Z),F=b.next();!F.done;F=b.next()){var f=_.K(F.value);F=f.next().value;f=f.next().value;p.removeEventListener(F,f)}}};
_.B$=function(p){var J;return(p=(J=_.e(p,_.gT))==null?void 0:J.onTap)&&_.sa(p)};
Ebs=function(p){var J;return(p=(J=_.e(p,_.gT))==null?void 0:J.onVisible)&&_.sa(p)};
YOw=function(p){var J;return(p=(J=_.e(p,_.gT))==null?void 0:J.onHidden)&&_.sa(p)};
wSt=function(p,J,S,H,M){var X=function(n){_.vO().resolve(_.Ov).resolveCommand(p,n)},Z=function(n){H&&_.yh(_.CG(n),J,H)||X(n.target?{form:{element:n.target,
sourceData:p,mutationContext:M}}:void 0)};
S&&(Z=function(n){S(n,X)});
return Z};
x2i=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}};
cit=function(p){var J=p.numAvatarsInCluster;switch(p.clusterSize){case "small":return J===2?22:18;case "40":return J===2?24:22;default:return J===2?24:20}};
Iei=function(p,J){return function(S){var H=Object.keys(J);_.lf(function(){if(p!=null&&p()){for(var M=_.K(H),X=M.next();!X.done;X=M.next())X=X.value,S.addEventListener(X,J[X]);_.VY(function(){for(var Z=_.K(H),n=Z.next();!n.done;n=Z.next())n=n.value,S.removeEventListener(n,J[n])})}},"bXZGfe")}};
Lqv=function(p){switch(cit(p)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
poW=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""}};
JEW=function(p){switch(cit(p)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
S5s=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""}};
Hgg=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}};
MFw=function(p){return p==="medium"||p==="48"||p==="large"||p==="extra-large"||p==="extra-extra-large"||p==="giant"};
XoW=function(p){return!!((p==null?0:p.includes(3))||(p==null?0:p.includes(5)))};
RAi=function(p){var J=p.data;return{size:igL(J.avatarImageSize),type:J.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:p.onTap,decorations:p.decorations||[],badgeText:p.badgeText,accessibilityText:p.accessibilityText,avatarButtonCustomClassName:p.avatarButtonCustomClassName,clusterLayoutConfig:p.clusterLayoutConfig}};
igL=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_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
Kp9=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_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
Zg4=function(p){switch(p){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
nn3=function(p){var J=p.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",S,H=p.avatars&&p.avatars.length>0?(S=_.e(p.avatars[0],_.tH))==null?void 0:S.avatarImageSize:"AVATAR_SIZE_UNKNOWN";S=Kp9(H)||0;if(J){var M,X=(M=p.avatarClusterSize)!=null?M:"AVATAR_SIZE_M";J=Kp9(X);var Z,n,b=Math.min((n=(Z=p.avatars)==null?void 0:Z.length)!=null?n:0,4),F;return{avatars:((F=p.avatars)==null?void 0:F.slice(0,4))||[],avatarSizeInPx:S,avatarStackStyle:{width:J+"px",height:J+"px",position:"relative"},avatarStyle:function(O){var A=
cit({clusterSize:igL(X),numAvatarsInCluster:b,avatarIndex:O});var P=Kp9(X);b===3&&O===2?(P=(P-A)/2,P=(_.jn("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*P):P=void 0;return{position:"absolute",top:b===2&&O===1||b===3&&O===2||b===4&&O>=2?"0":void 0,bottom:b===2&&O===0||b>2&&O<2?"0":void 0,left:b===2&&O===1||b>2&&(O===1||O===3)?"0":void 0,right:b<=3&&O===0||b===4&&(O===0||O===2)?"0":void 0,transform:P?"translateX("+P+"px)":void 0,width:A+"px",height:A+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(O){return{clusterSize:igL(p.avatarClusterSize),numAvatarsInCluster:b,avatarIndex:O}},
avatarButtonCustomClassName:void 0}}var f;return{avatars:((f=p.avatars)==null?void 0:f.slice())||[],avatarSizeInPx:S,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:Zg4(H),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
GDW=function(p,J,S){return function(){vv(p,{form:{element:J},commandController:S})}};
bgW=function(p){switch(p){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
mNk=function(p){switch(p){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
FpX=function(p){if("accessibilityText"in p)return p.accessibilityText||"";if("title"in p){var J,S,H;return((J=p.title)==null?void 0:(S=J.accessibility)==null?void 0:(H=S.accessibilityData)==null?void 0:H.label)||""}if("accessibility"in p){var M,X;return((M=p.accessibility)==null?void 0:(X=M.accessibilityData)==null?void 0:X.label)||""}return""};
vn4=function(p){return"inlinePlayerData"in p};
hH=function(p){return new fBt(p)};
Ogs=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"}};
AEW=function(p){switch(p){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;default:return 0}};
PJ4=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}};
zAs=function(p){return function(J){p&&(p.thumbnailElRef=J.thumbnailElRef,p.thumbnail=J.thumbnail,p.thumbnailOverlays=J.thumbnailOverlays,p.thumbnailSize=J.thumbnailSize)}};
$NX=function(p){switch(p){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
eAg=function(p){var J=_.K(_.eQ(!1,void 0,"E6wDDe")),S=J.next().value,H=J.next().value;_.ad(function(){var M=p==null?void 0:p();if(M){var X=_.vO().resolve(_.F9(onk));if(X){var Z={triggeringElement:M,onDwellTriggeredFn:function(){H(!0)},
onDwellEndFn:function(){H(!1)}};
X.registerElement(Z);_.VY(function(){_.Dp(X,Z)})}}});
return S};
Wpw=function(p,J,S){S?S(J):_.Dm(J,p.target?{form:{element:p.target}}:void 0)};
_.km=function(p,J,S,H){return function(M){_.lf(function(){function X(f){f=f.composedPath();f=_.K(f);for(var O=f.next();!O.done;O=f.next()){O=O.value;if(O===M)break;if(O.className.indexOf("HostIsClickableAdComponent")>=0||O.tagName==="A".toString()||O.tagName==="BUTTON".toString())return!0}return!1}
var Z=new Map,n,b=(n=p())==null?void 0:n.onTap;if(b){n=function(f){X(f)||Wpw(f,b,J)};
var F=function(f){X(f)||f.key!=="Enter"||Wpw(f,b,J)};
(S==null?0:S())||_.z("enable_web_home_top_landscape_image_layout_level_click")?(M.addEventListener("tap",n),Z.set("tap",n)):(M.addEventListener("click",n),Z.set("click",n));if(H==null?0:H())M.addEventListener("keydown",F),Z.set("keydown",F)}_.VY(function(){for(var f=_.K(Z),O=f.next();!O.done;O=f.next()){var A=_.K(O.value);O=A.next().value;A=A.next().value;M.removeEventListener(O,A)}})},"D7XqOc")}};
QSw=function(p,J){var S,H=(S=p.interaction)==null?void 0:S.onTap;if(p=_.tz({elementsCommand:H,forceNewState:!0,skipOnClick:!0}))return p.onclick=function(M){Fwt(M)&&(M.preventDefault(),H&&Wpw(M,H,J))},hz(p)?p:void 0};
CJ9=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"}};
yEs=function(p){switch(p){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
BQi=function(p){switch(p){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.UNX=function(p){return _.z("rich_grid_enable_dynamic_offset")&&p?Math.max((p-_.PO("rich_grid_dynamic_offset_anchor_width",1300))/100*_.PO("rich_grid_dynamic_offset_offset_per_100",10),_.PO("rich_grid_dynamic_offset_lower_bound",-60)):0};
sSi=function(p,J){switch(J){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}};
gng=function(p){var J=p.originalContainerWidth;var S=p.sizing;var H=p.standardUnit;if(p.isCompactList&&J<528)return 1;switch(S){case "STANDARD":return H;case "COMPACT":return H+1;case "EXTRA_COMPACT":return _.z("web_responsive_extra_compact_2x")?H*2:_.z("web_responsive_current")?H===1?2:H%2===0?H/2*3:H+2:H<4?H*2:Math.ceil(H*3/2);case "MINI":return H>1?H*2:3;default:return H}};
hAW=function(p){var J=p.containerWidth;var S=p.peek;var H=p.gutter;var M=p.numItems;p=p.ignoreMaxWidthLimit;J=S?Math.max((J-S-H*M)/M,0):Math.max((J-H*(M-1))/M,0);return p?J:Math.min(J,tFw)};
_.N6=function(p){var J=p.containerWidth;var S=p.hasPeek;var H=p.sizing;var M=p.marginSettings;var X=p.isCompactList;var Z=p.enableFullBleedForSingleCol;var n=p.standardUnitMinWidth;H=H||"STANDARD";S=!!S;p=J>=528?16:8;var b=S?J>=528?48:24:0;M=sSi(J,M);var F=Math.max(J-M*2,0);n=_.z("kevlar_disable_min_width_override")?void 0:n;n=Math.min(Math.max(Math.floor((F-b+p)/((n!=null?n:DN3)+_.UNX(J)+p)),1),6);var f=(Z=!!Z&&n===1)||n===1&&H!=="STANDARD";S=S||f?F:Math.min(F,(tFw+p)*n-p);H=gng({originalContainerWidth:J,
sizing:H,standardUnit:n,isCompactList:X});return{itemWidth:hAW({containerWidth:S,peek:b,gutter:p,numItems:H,ignoreMaxWidthLimit:f}),gutter:p,maxContainerWidth:S,numItems:H,margin:Z?0:M,contentMargin:sSi(J,1),typographyBump:hAW({containerWidth:S,peek:b,gutter:p,numItems:n,ignoreMaxWidthLimit:f})>400&&!(X&&J<528),standardUnit:n}};
Ty=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"}};
_.kDW=function(p){if(p){var J;if((J=p.responsiveContainerConfiguration)==null?0:J.responsiveSize)return Ty(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"}}};
NQ9=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}};
VFi=function(p,J,S,H,M,X,Z,n,b){a:if(p===4&&H==="LOCKUP_CONTENT_TYPE_SOURCE")var F=1;else switch(p){case 3:F=1;break a;default:F=0}var f=TQ4(p,H);a:switch(p){case 4:X=!!(X&&X<100);break a;default:X=!1}a:switch(p){case 3:case 4:var O=H==="LOCKUP_CONTENT_TYPE_CHANNEL"||H==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:O=!1}return{metadataOnThumbnail:f,isOverlay:n||f,isCard:dNX(H,Z),sizing:J!=null?J:"STANDARD",typographyBump:S!=null?S:!1,isTiny:X,isCentered:O,isCollection:uQX(H),arrangement:F,addMarginForFullbleed:p===
1&&H!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:p===1&&H==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:lBk(H,M,b),disableRounding:p===5||dNX(H,Z)||p===1&&H==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:uQX(H)?2:0,useLegacyTypography:!(b==null||!b.useLegacyTypography),useRichGridLegacyTypography:!(b==null||!b.useRichGridLegacyTypography)&&!_.z("web_enable_typography_bump"),compactMetadata:F===0&&H==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:b==null?void 0:b.onFocusEffect,titleMaxLines:H==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
uQX=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":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
dNX=function(p,J){if(J&&p==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(p){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
TQ4=function(p,J){if(J==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(p){case 5:return!0;case 4:return!1;default:return!1}};
lBk=function(p,J,S){if(J&&(S==null||!S.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}};
_.dT=function(p){if(p){var J;return((J=_.vO().resolve(_.F9(_.uC)))==null?0:J())?p.darkThemeImage:p.image}};
Ens=function(p,J,S,H,M,X){if(M&&X&&J==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:M,height:X};if(!S)return{};M=S.size;S=S.allowFullWidth;if(J==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&S)return{fullWidth:!0};if(M===void 0)return{};switch(p){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:M,height:M};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:M,height:1/q53*M};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:M*
aBi,height:M};default:return(H==null?0:H.height)&&(H==null?0:H.width)?H.width/H.height>1?{maxWidth:M*aBi}:{maxWidth:M}:{maxWidth:M}}};
Y5g=function(p){var J;return p&&((J=_.dT(p.themedImage))!=null?J:p.image)};
rEi=function(p){var J;return p==null?void 0:(J=p.sources)==null?void 0:J[0]};
jSg=function(p){switch(p){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.wok=function(p){if(p)return"content-id-"+p};
xNL=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"}}};
cEk=function(p){var J=_.uT.currentPageSubTypeSelector(_.ED().getState())||"";return p?p+J:""};
IBW=function(p){switch(p){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
p1W=function(p){var J=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],S=_.K(_.eQ(void 0,void 0,"JrqNsb")),H=S.next().value,M=S.next().value,X=_.K(_.eQ(void 0,void 0,"rWytse"));S=X.next().value;var Z=X.next().value;X=_.K(_.eQ(void 0,void 0,"DHRqxe"));var n=X.next().value,b=X.next().value;return{touchFeedbackEvents:{pointerUpEvent:H,pointerDownEvent:S,pointerLeaveEvent:n},touchFeedbackOnPointerUp:_.Kb(function(F){LpX(_.CG(F),J)||(M(F),Z(void 0),b(void 0))}),
touchFeedbackOnPointerDown:_.Kb(function(F){p==null||p(F);LpX(_.CG(F),J)||(Z(F),M(void 0),b(void 0))}),
touchFeedbackOnPointerLeave:_.Kb(function(F){LpX(_.CG(F),J)||(b(F),Z(void 0),M(void 0))})}};
LpX=function(p,J){J=J===void 0?[]:J;J=[].concat(_.dW(J),["BUTTON".toString()]);p=_.K(p);for(var S=p.next();!S.done;S=p.next()){S=S.value;for(var H=_.K(J),M=H.next();!M.done;M=H.next())if(S.tagName===M.value)return!0}return!1};
JtX=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"}};
SA3=function(p){return p.scrollHeight-p.offsetHeight>1};
HsX=function(p,J){var S;return de(p,((S=p.content)==null?void 0:S.length)||0,!J)};
isg=function(p,J,S,H,M,X){if(!J||MMk){var Z;return de(p,((Z=p.content)==null?void 0:Z.length)||0,!0)}J=H.value;if(!S.value||!J||!p.content)return p;S=0;H=p.content.length;Z=0;X1W||(X1W=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var n=X1W;for(M=M*X*n;S<=H;)X=Math.floor(S+(H-S)/2),n=de(p,X)||p,J.firstChild&&(J.firstChild.textContent=n.content),J.scrollHeight>M?H=X-1:(Z=X,S=X+1);return de(p,Z)};
RRk=function(p,J){var S,H;return(((S=p.content)==null?void 0:S.length)||0)>(((H=J.content)==null?void 0:H.length)||0)};
K3t=function(p,J,S,H,M,X){var Z=_.nE("truncated-text-content"),n=_.nE("truncated-text-content"),b=_.nE("button"),F=_.nE("button"),f=_.nE("button"),O=_.vO().resolve(_.VM),A=_.K(_.re(function(){return HsX(p(),M())})),P=A.next().value,W=A.next().value;
A=_.K(_.re(function(){return RRk(p(),P())}));
var y=A.next().value,t=A.next().value,D=null;_.lf(function(){function k(){if(Z.value&&b.value&&f.value){var q=X()?p():isg(p(),M(),Z,n,J(),S());W(q);requestAnimationFrame(function(){if(Z.value&&b.value&&f.value){var w=SA3(Z.value)||RRk(p(),q);t(w);if(!H()){var I=SA3(Z.value),Z3=S(),vg=Z.value,yX=b.value,Pg=f.value,ov=O==="rtl";if(vg&&yX){var NW=yX.offsetLeft;ov&&(NW=vg.offsetWidth-yX.offsetWidth-yX.offsetLeft);if(w){w=yX.offsetWidth;yX=vg.offsetWidth;var TW=I?yX-w-70:NW-70;Z3="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Z3+"rem,\n      #000 "+Z3+"rem,\n      #000 100%), linear-gradient(\n      to "+((ov?"left":"right")+",\n      #000 0px,\n      #000 "+TW+"px,\n      transparent "+(I?yX-w:TW+70)+"px)");vg.style.setProperty("-webkit-mask-image",Z3);vg.style.setProperty("mask-image",Z3)}else vg.style.setProperty("-webkit-mask-image",""),vg.style.setProperty("mask-image","");I?ov?(Pg.style.setProperty("left","0"),Pg.style.setProperty("right","unset")):(Pg.style.setProperty("left",""),Pg.style.setProperty("right","0")):
ov?(Pg.style.setProperty("left","unset"),Pg.style.setProperty("right",NW+"px")):(Pg.style.setProperty("left",NW+"px"),Pg.style.setProperty("right","unset"))}}}})}}
var E,a;(E=D)==null||(a=E.stop)==null||a.call(E);E=new _.nb(k,17);k();D=E},"KjwIxd");
_.ad(function(){W(HsX(p(),M()));t(RRk(p(),P()));var k=function(){X1W=void 0;var a,q;(a=D)==null||(q=a.fire)==null||q.call(a)};
if(window.ResizeObserver){var E=new ResizeObserver(k);E.observe(Z.value);_.VY(function(){var a,q;(a=D)==null||(q=a.stop)==null||q.call(a);E.disconnect()})}else window.addEventListener("resize",k),_.VY(function(){var a,q;
(a=D)==null||(q=a.stop)==null||q.call(a);window.removeEventListener("resize",k)})});
return{isTruncated:y,displayText:P,contentRef:Z,hiddenRef:n,placeholderTruncationTextRef:b,hiddenTruncationTextRef:F,truncationTextRef:f}};
Zsk=function(p){return{content:p!=null?p:""}};
nq4=function(p){return _.sa(p.onTap)||_.B$(p.rendererContext)};
G1i=function(p){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:p.overflowMenuA11yLabel,onTap:function(J){J.preventDefault();J.stopPropagation();if(p.overflowMenuOnTap){var S=_.tz({elementsCommand:p.overflowMenuOnTap,forceNewState:!0});if(S==null?0:S.onclick)S.onclick(J)}}}};
_.lT=function(p,J,S,H,M){H=H===void 0?{}:H;if(!M||Math.random()<5E-4){J=J||null;S=S||null;p=p instanceof Error?p:new _.TG(p);if(p.args)for(var X=_.K(p.args),Z=X.next();!Z.done;Z=X.next())Z=Z.value,Z instanceof Object&&(H=Object.assign({},Z,H));H.category="H5 Ads Control Flow";J&&(H.slot=J?"slot:  "+J.slotType:"");S&&(H.layout=S?"layout:  "+S.layoutType:"",H.layoutId=S.layoutId);M&&(H.known_error_aggressively_sampled=!0);p.args=[H];_.xQ(p)}};
_.bsL=function(p,J){J=_.wl(J);_.IV(p,"yt-open-popup-action",[J,p])};
_.Vh=function(p,J){_.bsL(p,_.aR(J))};
F3W=function(p){if(!p)return"";if(mK4[p])return mK4[p];q6||(q6=_.Q0("A"));q6.href!==p&&ja(q6,p);var J=q6.pathname;mK4[p]=J.startsWith("/")?J:"/"+J;return mK4[p]};
vqL=function(){var p=F3W(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 J;return(aA==null?void 0:(J=aA.response)==null?void 0:J.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"};
_.Ym=function(){var p=aA==null?void 0:aA.response,J=p==null?void 0:p.endpoint;if(!J)return(p==null?void 0:p.page)==="watch"?"watch":vqL();var S;p=(S=_.e(J==null?void 0:J.commandMetadata,_.i7))==null?void 0:S.webPageType;S=!1;if(p&&!fCi.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 H;return((H=_.e(J==null?void 0:J.commandMetadata,_.i7))==null?0:H.url)&&F3W(_.e(J.commandMetadata,_.i7).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var M;return(J=(M=_.e(J,_.Ge))==null?void 0:M.browseId)?Os9[J]||"browse":"browse";default:S=!0}if(_.e(J,_.El)||_.e(J,At4))return"sponsorship";M=F3W(window.location.href);if(M.startsWith("/experiments"))return"experiments";if(M.startsWith("/create_channel"))return"create_channel";
if(_.e(J,_.My)&&M.startsWith("/shorts"))return"shorts";if(_.e(J,_.My)&&M.startsWith("/watch"))return"watch";S&&(J=new _.TG("Unsupported mWeb page type",{pathname:M,webPageType:p}),_.jD(J));return"browse"};
rT=function(p,J,S,H){return p&&J?p!==S||J!==H?(_.lT(Error("Kh"),void 0,void 0,{"stored-slot":p,"stored-layout":J,"latest-slot":S,"latest-layout":H}),!1):!0:!1};
zRs=function(p,J,S){return p({targetId:J},function(H){return S.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},H,{contents:[S.continuationItems?_.e(S.continuationItems[0],PQk):{}]}):S.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},H,{header:S.continuationItems?S.continuationItems[0]:void 0}):Object.assign({},H,{contents:S.continuationItems?S.continuationItems:[]})})};
$Ks=function(p,J,S,H){if(J=J.trackingParams){var M,X=(M=S.getScreenLayer)==null?void 0:M.call(S);S=_.C1(X);M=_.Wf(X);if(S&&M){var Z=_.Az(J);_.z("combine_ve_grafts")?p.graftServerVe(J,M,X):_.kO(S,M,Z);H==null||H(Z)}}};
eRg=function(p){var J;return((J=oq3.get(p))==null?void 0:J.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
CQv=function(p,J){var S={type:J.slotType,controlFlowManagerLayer:W3g.get(J.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};J.slotEntryTrigger&&(S.entryTriggerType=J.slotEntryTrigger.triggerType);J.slotPhysicalPosition!==1&&(S.slotPhysicalPosition=J.slotPhysicalPosition);if(p){S.debugData={slotId:J.slotId};if(p=J.slotEntryTrigger)S.debugData.slotEntryTriggerData=QnX(p);p=J.slotFulfillmentTriggers;S.debugData.fulfillmentTriggerData=[];p=_.K(p);for(var H=p.next();!H.done;H=p.next())S.debugData.fulfillmentTriggerData.push(QnX(H.value));
J=J.slotExpirationTriggers;S.debugData.expirationTriggerData=[];J=_.K(J);for(p=J.next();!p.done;p=J.next())S.debugData.expirationTriggerData.push(QnX(p.value))}return S};
QnX=function(p,J){var S={type:p.triggerType};J!=null&&(S.category=J);p.triggeringSlotId!=null&&(S.triggerSourceData||(S.triggerSourceData={}),S.triggerSourceData.associatedSlotId=p.triggeringSlotId);p.triggeringLayoutId!=null&&(S.triggerSourceData||(S.triggerSourceData={}),S.triggerSourceData.associatedLayoutId=p.triggeringLayoutId);return S};
ytX=function(p,J,S,H){J={opportunityType:J};p&&(H||S)&&(H=_.d2(H||[],function(M){return CQv(p,M)}),J.debugData=Object.assign({},S&&S.length>0?{associatedSlotId:S}:{},H.length>0?{slots:H}:{}));
return J};
BZX=function(p){return jH(p.opportunityAdapterMap).concat(jH(p.triggerAdapterMap)).concat(jH(p.fulfillmentAdapterFactoryMap)).concat(jH(p.slotAdapterFactoryMap)).concat(jH(p.layoutRenderingAdapterFactoryMap))};
jH=function(p){var J=[];p=_.K(p.values());for(var S=p.next();!S.done;S=p.next())S=S.value,S.isAdsControlFlowEventListener&&J.push(S);return J};
xm=function(p){var J=p.slotId,S=p.slotType,H=p.slotPhysicalPosition;return J===void 0?new wT("Cannot construct a slot due to the missing id.",{adSlotMetadata:p}):S===void 0?new wT("Cannot construct a slot due to the missing type.",{adSlotMetadata:p}):H===void 0?new wT("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:p}):{slotId:J,slotType:S,slotPhysicalPosition:H,managerLayer:"external",adSlotLoggingData:p.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new UKw}};
snv=function(p){var J=p.layoutId,S=p.layoutType;return J===void 0?new c$("Cannot construct a layout due to the missing id.",{adLayoutMetadata:p}):S===void 0?new c$("Cannot construct a layout due to the missing type.",{adLayoutMetadata:p}):{layoutId:J,layoutType:S,managerLayer:"external",adLayoutLoggingData:p.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new UKw,interactionLoggingAdsClientData:{}}};
gqg=function(p){if(p.querySelector("img")){var J=p.querySelector("img");J.addEventListener("error",function(){M8i(J.src).then(function(S){(S=_.qG(S).toString())?J.src=S:J.removeAttribute("src")}).catch(function(){J.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
LG=function(p,J){if(J&&(tMX(J.viewableCommand)||tMX(J.endOfSessionCommand))){var S=hRX(J==null?void 0:J.viewableCommand);J=hRX(J==null?void 0:J.endOfSessionCommand);if(!IA){var H=_.PO("custom_active_view_tos_timeout_ms");IA=H>0&&H!==36E5?new DKX(k19(),H):new DKX(k19())}NZ9(IA,p);TZX(IA,p,S,J)}};
pY=function(p){IA&&NZ9(IA,p)};
k19=function(){var p=_.jn("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(p==null?void 0:p.length)===2?p[1]:null};
tMX=function(p){p=_.sa(p);return!(p==null||!p.loggingUrls)&&p.loggingUrls.length>0};
hRX=function(p){if(!p)return[];var J=[],S,H;((H=(S=_.sa(p))==null?void 0:S.loggingUrls)!=null?H:[]).forEach(function(M){M.baseUrl&&J.push(M.baseUrl)});
return J};
dKW=function(p){if(_.z("stop_av_measurement_on_detach"))return function(){pY(p)}};
uLs=function(p){return function(){_.z("stop_av_measurement_on_detach")&&pY(p)}};
lCt=function(p){if(_.z("stop_av_measurement_on_detach"))return function(){pY(p)}};
VMw=function(p){return p.shorts.isDesktopSmallWidth};
_.qAL=function(p){return p.shorts.isShortsActive};
_.aCX=function(p){return p.shorts.isWatchWhileMode};
_.JX=function(p){return p.shorts.isFullscreen};
_.Ss=function(p){return p.shorts.isShortsPipActive};
YA3=function(p){var J,S;if(p=(J=_.e(p.reelsAdCardButtoned,EqX))==null?void 0:(S=J.animatedRenderingConfig)==null?void 0:S.easeOutSeconds)return p+"s"};
jnk=function(p,J,S){return _.G(function(H){return H.return(new Promise(function(M){var X=new Image;X.onload=function(){M(new rtt(p,J,S,X.naturalWidth,X.naturalHeight))};
X.src=S.toString()}))})};
w1i=function(p,J){return Math.round(p/1E-5)===Math.round(J/1E-5)};
xK3=function(p,J){return Math.round(p/1E-5)===Math.round(J/1E-5)};
ctg=function(p,J){return p.year===J.year&&p.month===J.month&&p.day===J.day};
ICX=function(p,J){return p.year!==J.year?p.year<J.year:p.month!==J.month?p.month<J.month:p.day<J.day};
pXk=function(p){return p.day===L3w(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}};
JCX=function(){var p=new Date,J={year:p.getFullYear(),month:p.getMonth(),day:p.getDate()};return{start:J,end:{year:p.getFullYear()+2,month:p.getMonth(),day:p.getDate()},selectedDate:pXk(J)}};
S_g=function(p){return(new qw(2)).format(new Date(p.year,p.month,p.day))};
H4L=function(p){return{year:p.getFullYear(),month:p.getMonth(),day:p.getDate()}};
MGi=function(p,J){p=(p+(Number(J.utcOffsetSec)+(new Date(p*1E3)).getTimezoneOffset()*60))*1E3;J=H4L(new Date(p));return{date:J,secondsSinceMidnight:Math.floor((p-(new Date(J.year,J.month,J.day)).getTime())/1E3)}};
XXX=function(p,J){J=J.months.findIndex(function(S){return S.year===p.year&&S.month===p.month});
return J>=0?J:void 0};
i4t=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(J){return!1}return i4t(p.parentNode)};
HY=function(p){return p?!(p.tagName!=="A"||!p.href||!p.classList.contains("yt-simple-endpoint")):!1};
R7t=function(p){return p?p.tagName==="IMG"&&p.classList.contains("emoji"):!1};
KPi=function(p,J,S){if(!p)return null;var H=HY(p);if(H&&S)return J=p.pathname.substring(p.pathname.indexOf("/channel/")+9),document.createTextNode("@"+J);if(H&&!S)return document.createTextNode("");if(R7t(p))return S=p.alt,p=p.dataset.emojiId,!p&&J&&(J=_.MB(J,S))&&J.isCustomEmoji&&(p=J.emojiId),p?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+p+">"):document.createTextNode(S);H=p.cloneNode(!1);for(var M=0;M<p.childNodes.length;++M){var X=KPi(p.childNodes[M],J,S);X&&H.appendChild(X)}return H};
Xm=function(p){return p?HY(p)?p:Xm(p.lastChild):null};
Z4w=function(p){return p?HY(p)?p:Z4w(p.firstChild):null};
nKW=function(p){if(!p)return null;for(var J=p.previousSibling;J;)if(J.nodeType===Node.ELEMENT_NODE&&J.nodeName==="BR")J=J.previousSibling;else if(J.nodeType===Node.TEXT_NODE&&/\s+/.test(J.textContent))J=J.previousSibling;else break;(J=Xm(J))?p=J:p=(p=p.parentNode)?Xm(p.previousElementSibling):null;return p};
G8X=function(p){if(!p)return null;for(var J=p.nextSibling;J;)if(J.nodeType===Node.ELEMENT_NODE&&J.nodeName==="BR")J=J.nextSibling;else if(J.nodeType===Node.TEXT_NODE&&/\s+/.test(J.textContent))J=J.nextSibling;else break;return(J=Z4w(J))?J:G8X(p.parentNode)};
b4L=function(p){var J=_.i6(),S=J.JSC$11499_getStartNode();if(!i4t(S.parentNode))return null;J=J.JSC$11499_getStartOffset();if(S.nodeType===Node.TEXT_NODE){var H=_.ar(S,HY);if(H){if(p&&J===0||!p&&J===S.length)return H}else{if(p&&J===S.length)return!S||S.nodeName==="BR"||S.nextElementSibling&&_.Rt(S.nextElementSibling,"display")==="block"?null:Z4w(S.nextElementSibling);if(!p&&J===0)return S?Xm(S.previousElementSibling):null}}if(S.nodeType===Node.ELEMENT_NODE)if(p){if(0<=J&&J<S.childNodes.length)return Z4w(S.childNodes[J])}else if(0<
J&&J<=S.childNodes.length)return Xm(S.childNodes[J-1]);return null};
mmt=function(p,J,S){if(!p)return null;if(p.nodeType===Node.TEXT_NODE)if(S){var H=nKW(p);if(H&&!/^\s+\S/.test(p.wholeText.substr(0,J)))return H}else if((H=G8X(p))&&!/\S\s+/.test(p.wholeText.substr(J,p.wholeText.length)))return H;return p.nodeType===Node.ELEMENT_NODE?S?nKW(p.childNodes[J]):G8X(p.childNodes[J]):mmt(p.parentNode,J,S)};
FPg=function(p){if(p.hasChildNodes())switch(p.tagName){case "DIV":case "A":case "SPAN":var J="";for(p=p.firstChild;p;p=p.nextSibling)J+=FPg(p);return J;default:return""}else switch(p.nodeType){case 3:return p.textContent;default:return""}};
KY=function(p,J){return p.year===J.year&&p.month===J.month&&p.day===J.day};
ZP=function(p,J){return p.year!==J.year?p.year<J.year:p.month!==J.month?p.month<J.month:p.day<J.day};
vKW=function(p){return{year:p.getFullYear(),month:p.getMonth(),day:p.getDate()}};
fAL=function(p){var J=Zei;J=J===void 0?Zei:J;J(new Date(p.year,p.month,p.day))};
nY=function(p){return vKW(new Date(Number(p.seconds)*1E3))};
O4v=function(p){return p.year!==void 0&&p.month!==void 0&&p.day!==void 0};
ACt=function(p){return p.start!==void 0&&p.end!==void 0};
PYt=function(p){return ACt(p)?p.start:p};
z7t=function(p){return ACt(p)?p.end:void 0};
oKW=function(p,J){for(var S=[],H=new Date(p.start.year,p.start.month);H.getFullYear()<p.end.year||H.getFullYear()===p.end.year&&H.getMonth()<=p.end.month;){var M=S,X=M.push,Z=H.getFullYear(),n=H.getMonth(),b=p,F=J,f=void 0,O=[],A=Object.freeze({extraCssClass:"invisible"}),P=new Date(Z,n),W=vKW(P);P=P.getDay();for(var y=vKW(new Date);W.month===n;){P!==$m3&&f||(f=Array.from({length:7}).fill(A),O.push(f));var t={date:{year:Z,month:n,day:W.day},extraCssClass:"",debugClass:""};t.extraCssClass=F(t.date,
W,y,b).trim();f[(P-$m3+7)%7]=t;W=W.day===L3w(W.year,W.month)?W.month===11?{year:W.year+1,month:0,day:1}:{year:W.year,month:W.month+1,day:1}:{year:W.year,month:W.month,day:W.day+1};P=(P+1)%7}X.call(M,{weeks:O,monthLabel:Gs.SHORTMONTHS[n]+" "+Z,year:Z,month:n,monthLabelExtraCssClass:O[0][2]===A?"shift-down-label":""});H.setMonth(H.getMonth()+1)}return S};
e7W=function(p,J){J=J.months.findIndex(function(S){return S.year===p.year&&S.month===p.month});
return J>=0?J:void 0};
Qis=function(p,J){a:{var S=S===void 0?[2,3]:S;S=_.K(S);for(var H=S.next();!H.done;H=S.next()){var M=new Date;if((new WPv(H.value)).parse(J,M,{validate:!0})){M.setHours(0,0,0,0);J=M;break a}}J=null}if(!J)return{isValid:!1,value:void 0};J=vKW(J);S=p.end;return ZP(J,p.start)||ZP(S,J)?{isValid:!1,value:void 0}:{isValid:!0,value:J}};
sik=function(p){var J=CY9;J=J===void 0?yCX:J;var S=p.columnsToShow||[],H=B5i(p.columnDimensions,p.columnsToShow,p.leftFloatingColumns,J);return S.map(function(M,X){var Z=p.columns[M];if(Z===void 0)throw Error("Qh");var n=H?H[X]:"";var b=p.getCustomTooltip?p.getCustomTooltip(M,Z.headerTooltipParagraphs):Z.headerTooltipParagraphs;var F=Umw(p,M);return{type:M,index:X,style:n,classes:F,headerName:Z.headerName||"",headerIcon:Z.headerIcon,headerTooltipParagraphs:b||[],headerTooltipHelpContext:Z.headerTooltipHelpContext,
sortOrders:Z.sortOrders||[],selectionState:Z.isSelectionCheckbox?p.selectionState:void 0}})};
Umw=function(p,J){var S=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],H=p.columns[J];if(H===void 0)return"";var M=S.includes("DEFAULTS")&&H.cssClass?[H.cssClass]:[];if(S.includes("SORTING")){H.sortOrders&&H.sortOrders.length&&M.push("sortable");if(p.sorting&&p.sorting.columnType===J)a:switch(p.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var X="column-sorted";break a;default:X=""}else X="";X&&M.push(X)}S.includes("FLOATING")&&(J=p.columnsToShow.indexOf(J),p.leftFloatingColumns&&J<p.leftFloatingColumns&&
M.push("floating-column"),p.leftFloatingColumns&&J===p.leftFloatingColumns-1&&M.push("last-floating-column"));S.includes("RIGHT_ALIGN")&&H.rightAlignHeader&&M.push("right-align");return M.filter(function(Z){return Z}).join(" ")};
B5i=function(p,J,S,H){S=S===void 0?0:S;H=H===void 0?yCX:H;if(p){var M=[],X=0;gKL(p,J,H).forEach(function(Z,n){var b="min-width:"+Z.minWidth+"px;padding-left:"+Z.paddingLeft+"px;padding-right:"+Z.paddingRight+"px;flex:"+Z.flexGrow+" 0 "+Z.minWidth+"px;";Z.maxWidth!==Infinity&&(b=[b,"max-width:"+Z.maxWidth+"px;"].join(""));X>0&&n<S&&(b=[b,"left:"+X+"px;"].join(""));M.push(b);X+=Z.minWidth+Z.paddingLeft+Z.paddingRight});
return M}};
gKL=function(p,J,S){S=S===void 0?yCX:S;return J.map(function(H,M){H=p&&p[H]||{};var X=M===0?S.paddingLeftFirstColumn:S.padding;H.paddingLeft!==void 0&&(X=H.paddingLeft);M=M===J.length-1?S.paddingRightLastColumn:S.padding;H.paddingRight!==void 0&&(M=H.paddingRight);return{paddingLeft:X,paddingRight:M,minWidth:H.minWidth!==void 0?H.minWidth:S.minWidth,maxWidth:H.maxWidth!==void 0?H.maxWidth:S.maxWidth,flexGrow:H.flexGrow!==void 0?H.flexGrow:S.flexGrow}})};
tGL=function(p){var J=p.reduce(function(H,M){var X=M.columnId,Z={};M.headerText&&(Z.headerName=_.E4(M.headerText));M.rightAlignHeader&&(Z.rightAlignHeader=M.rightAlignHeader);var n;if((n=M.headerIcon)==null?0:n.iconType)Z.headerIcon=_.Xj(M.headerIcon.iconType);H[X]=Z;return H},{}),S=p.filter(function(H){return!H.hideColumn}).map(function(H){return H.columnId});
p=p.filter(function(H){return!!H.dimensions}).reduce(function(H,M){H[M.columnId]=M.dimensions;
return H},{});
return{columns:J,columnsToShow:S,columnDimensions:p}};
_.h7s=function(p){return p?p.simpleText?p.simpleText:p.runs?p.runs.map(function(J){return J.text}).join(""):"":""};
u2g=function(p){var J=p.data;var S=p.onTap;var H=p.isSelected;var M=p.onFocusIn;if(!J)return{};p=Dmv(J);H===void 0&&(H=J==null?void 0:J.isSelected);var X;return{text:k8W(J,p),startIcon:(X=J.icon)==null?void 0:X.iconType,state:H?0:2,type:0,style:N5v(J),onTap:T5X(J,S),accessibilityLabel:dmX(J,p),onFocusIn:function(){return M==null?void 0:M()}}};
k8W=function(p,J){if(!J)return p.text?_.h7s(p.text):void 0};
N5v=function(p){var J;switch((J=p.style)==null?void 0:J.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
T5X=function(p,J){return function(S){J==null||J(S,p)}};
Dmv=function(p){p=p.style&&p.style.styleType;return!MMk&&p==="STYLE_EXPLORE_LAUNCHER_CHIP"};
dmX=function(p,J){if(J){var S,H,M;return(M=(S=p.accessibilityData)==null?void 0:(H=S.accessibilityData)==null?void 0:H.label)!=null?M:k8W(p,!1)}};
lAL=function(){var p;return[function(J,S,H){return _.cf(p,J,S,H)},
function(J){p=J}]};
VGX=function(p,J){return _.RR(p.entities,"chipEntity",J)};
aAi=function(p,J,S,H){return function(){var M=q_s.has(p.displayType)&&p.selected,X=M&&p.deselectCommand?p.deselectCommand:p.tapCommand;!X||M&&H||_.Dm(X,{form:{element:J==null?void 0:J.value}});S==null||S()}};
Y_k=function(p,J){if(p=p.onUpdateText){var S;p=(S=_.e(p,EKv))==null?void 0:S.stepId}else p=void 0;S=p;J=J==null?void 0:J.stepStates;if(S&&J){var H,M;return(H=J[S])==null?void 0:(M=H.userQuery)==null?void 0:M.userQuery}};
b6=function(p){return{signalAction:{signal:p}}};
wX4=function(){return _.jn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?rCi:_.jit};
xms=function(p,J){p=p===void 0?"SOFT_RELOAD_PAGE":p;J=J===void 0?49504:J;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.I5(_.Kl("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:J}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:p}}]}}}};
cCi=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.I5(_.Kl("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:wX4()}};
IAX=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.I5(_.Kl("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:wX4()}};
LPg=function(p,J){var S=_.I5(_.Kl("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),H=_.I5(_.Kl("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),M={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.I5(_.Kl("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};M.serviceEndpoint=p?p:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[b6("SOFT_RELOAD_PAGE")]}};return{title:S,bodyText:H,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:M},
style:{value:J!=null?J:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
J5W=function(p){p=p===void 0?{}:p;return{title:_.I5(p.localizedZeroStateTitleText===void 0?"":p.localizedZeroStateTitleText),bodyText:_.I5(p.localizedZeroStateMessage===void 0?"":p.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.I5(p.localizedZeroStateButtonText===void 0?"":p.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[p49]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Hmi=function(p){p=p===void 0?{}:p;return{title:_.I5(p.localizedOptInBannerTitleText===void 0?"":p.localizedOptInBannerTitleText),titleLength:19,subtitle:_.I5(p.localizedOptInMessage===void 0?"":p.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.I5(_.Kl("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:_.I5(_.Kl("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:[Se3]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
imk=function(p,J){var S=J=J===void 0?{}:J;J=S.offlineTitleText===void 0?"":S.offlineTitleText;var H=S.offlineDescriptionText===void 0?"":S.offlineDescriptionText,M=S.formattedSupplementalText,X=S.actionButtonText===void 0?"":S.actionButtonText,Z=S.titleText===void 0?"":S.titleText;S=S.descriptionText===void 0?"":S.descriptionText;var n={title:X,accessibilityText:X,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};p||(Z=J,S=H,n={title:X,accessibilityText:X,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.I5(Z),titleLength:Z.length,overrideTitleMaxFontSize:30,subtitle:_.I5(S),supplementalText:M,primaryButton:{buttonViewModel:n},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[MiW]},darkTileImage:{thumbnails:[X4g]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.ZmX=function(p,J,S,H,M,X,Z,n,b,F,f){M=M===void 0?!1:M;X=X===void 0?!1:X;Z=Z===void 0?0:Z;n=n===void 0?-Infinity:n;b=b===void 0?!1:b;F=F===void 0?!1:F;f=f===void 0?!1:f;var O=[],A=_.I5(_.Kl("SMART_DOWNLOADS",void 0,"Smart downloads")),P=_.I5(R8v(Z,n,p.length));n=Z=void 0;F?Z={statementBannerRenderer:imk(f,H)}:M?p.length>0?n=KcX(p,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.z("kevlar_manual_downloads_above"),A,P):b?n={alertBannerViewModel:{heading:{content:S.localizedOptInBannerTitleText===
void 0?"":S.localizedOptInBannerTitleText},body:{content:S.localizedPromptMessage===void 0?"":S.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Kl("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Kl("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:_.ALv}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:X&&(n={backgroundPromoRenderer:{bodyText:_.I5(_.Kl("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"}}}):
X&&(n={alertBannerViewModel:{heading:{content:S.localizedOptInBannerTitleText===void 0?"":S.localizedOptInBannerTitleText},body:{content:S.localizedOptInMessage===void 0?"":S.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Kl("TURN_ON",void 0,"Turn on"),accessibilityText:_.Kl("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});S=_.I5(_.Kl("YOUR_DOWNLOADS",void 0,"Your downloads"));H=void 0;J.length>0?(H=void 0,_.z("kevlar_display_downloads_numbers")&&(H=_.I5(_.ZO("VIDEO_COUNT",J.length))),H=KcX(J,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,S,H)):M||p.length||
F||(H={backgroundPromoRenderer:{bodyText:_.I5(_.Kl("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}}}});Z?O.push({richSectionRenderer:{content:Z}}):n&&!_.z("kevlar_manual_downloads_above")&&O.push({richSectionRenderer:{content:n,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
H&&O.push({richSectionRenderer:{content:H,loggingDirectives:{clientVeSpec:{uiType:51721}}}});n&&_.z("kevlar_manual_downloads_above")&&O.push({richSectionRenderer:{content:n,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(J.length>0||M&&p.length>0&&!F)&&O.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.I5(_.Kl("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:O}};
_.GP4=function(p){return nGi(p,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.bmX=function(p){return nGi(p,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
nGi=function(p,J){var S=[];p=KcX(p,J,!0);S.push({richSectionRenderer:{content:p}});return{contents:S}};
KcX=function(p,J,S,H,M){S=S===void 0?!1:S;var X="RESPONSIVE_SIZE_STANDARD";_.z("kevlar_standard_rich_grid_on_offline_home")&&J==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?X="RESPONSIVE_SIZE_STANDARD":_.z("kevlar_modern_downloads_compact")?X="RESPONSIVE_SIZE_COMPACT":_.z("kevlar_modern_downloads_extra_compact")?X="RESPONSIVE_SIZE_EXTRA_COMPACT":_.z("kevlar_modern_downloads_tiny")&&(X="RESPONSIVE_SIZE_TINY");p={isExpanded:S,contents:mK(p),entitySelectorType:J,responsiveContainerConfiguration:{responsiveSize:X}};
H&&(p.title=H);M&&(p.subtitle=M);S||(_.z("kevlar_smart_downloads_show_more_button")?(p.showMoreButton={buttonRenderer:{accessibility:{label:_.Kl("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.I5(_.Kl("SHOW_MORE",void 0,"Show more"))}},p.showLessButton={buttonRenderer:{accessibility:{label:_.Kl("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.I5(_.Kl("SHOW_LESS",void 0,"Show less"))}}):(p.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Kl("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.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Kl("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.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Kl("VIEW_ALL",void 0,"View all"),accessibilityText:_.Kl("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:_.xO("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:p}};
mK=function(p){var J=[];p=_.K(p);for(var S=p.next();!S.done;S=p.next())if(S=S.value,JLi(S)){var H=J,M=H.push;var X=void 0;if(S==null?0:(X=S.videoEntity)==null?0:X.videoId){X=kZ(_.rl().getState(),S.videoEntity.videoId);var Z=_.rl().getState();var n=_.io(S.videoEntity.videoId,"mainVideoEntity");Z=!!_.$Z(Z.entities)[n];Z={videoId:S.videoEntity.videoId,title:Ll(S.videoEntity.title),shortBylineText:Ll(S.channelEntity.title),thumbnail:S.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:Z&&_.z("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:gEi(S.videoEntity.videoId,X,S.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Kl("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};S.videoEntity.lengthSeconds&&(Z.thumbnailOverlays=y0X(S.videoEntity.lengthSeconds,X));Z.isWatched=X>0;_.z("kevlar_modern_downloads_page")&&(Z.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:S.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Kl("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},Z.badges=void 0);S=Z}else S={};M.call(H,{richItemRenderer:{content:{videoRenderer:S},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(p34(S)){H=J;M=H.push;var b=n=X=void 0,F=void 0,f=void 0,O=void 0,A=void 0,P=void 0,W=void 0,y=void 0,t=void 0,D=void 0;Z=S.mainPlaylistEntity.playlistId;var k=S==null?void 0:(D=S.mainPlaylistEntity)==null?void 0:(t=D.thumbnailStyleData)==null?void 0:(y=t[0])==null?void 0:(W=y.value)==null?void 0:(P=W.collageThumbnail)==
null?void 0:P.coverThumbnail;if(Z&&k){P=t7i(Z);!_.z("enable_offline_playlist_page")&&(S==null?0:(A=S.mainPlaylistEntity)==null?0:A.videos)&&(A=S==null?void 0:(O=S.mainPlaylistEntity)==null?void 0:(f=O.videos)==null?void 0:f[0],f=_.Hq(A).entityId,f=JSON.parse(f).videoId,f!==void 0&&(P=kZ(_.rl().getState(),f),P=_.c9(f,Z,void 0,void 0,P)));f=[];if(S==null?0:(F=S.mainPlaylistEntity)==null?0:(b=F.videos)==null?0:b.length)b=KB4(),F=Object,f=F.assign,O=(O=Rr9(S==null?void 0:S.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.I5(O),icon:{iconType:"PLAYLISTS"}}}:void 0,f=[b,f.call(F,{},(n=O)!=null?n:{})];S={playlistId:Z,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:k}},navigationEndpoint:P,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:f,title:Ll(S.mainPlaylistEntity.title),shortBylineText:Ll(S==null?void 0:(X=S.channelEntity)==null?void 0:X.title),badges:[{metadataBadgeRenderer:{label:_.Kl("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.z("kevlar_modern_downloads_page")&&(S.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:met,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Kl("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},S.badges=void 0)}else S=void 0;M.call(H,{richItemRenderer:{content:{playlistRenderer:S},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return J};
R8v=function(p,J,S){p=p?FcW(p):"";J!==void 0&&isFinite(J)?J===0?J=_.Kl("UPDATING",void 0,"Updating..."):(J=CPi(new Date(J),new Date),J=_.Kl("UPDATED_TIME",{relative_time:J},"Updated "+J)):J="";var H="";p&&J&&(H=" \u2022 ");if(S&&_.z("kevlar_display_downloads_numbers")){S=_.ZO("VIDEO_COUNT",S);if(p||J)H=" \u2022 ";return S+H+p+H+J}return p+H+J};
vGt=function(p){return YTt(p.entities).length};
_.f_w=function(p,J,S){var H=Ty(p.responsiveSize),M;p=!((M=p.responsiveMap)==null||!M.some(function(X){return X.containerSize==="CONTAINER_SIZE_NARROW"&&X.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:S,containerWidth:J,sizing:H,enableFullBleedForSingleCol:!1,isCompactList:H==="COMPACT"&&p}};
Oms=function(p,J){return _.RR(p.entities,"votingEntity",J)};
Fm=function(p){if(p){var J;return((J=_.vO().resolve(_.F9(_.uC)))==null?0:J())?p.darkTheme:p.lightTheme}};
A5w=function(p,J){if(p.simpleText)return Object.assign({},p,{simpleText:Nn(p.simpleText,J)});if(!p.runs)return p;for(var S=Object.assign({},p,{runs:[]}),H=0,M=_.K(p.runs),X=M.next();!X.done;X=M.next())if(X=X.value,X.text)if(H+X.text.length<=J)S.runs.push(X),H+=X.text.length;else return S.runs.push(Object.assign({},X,{text:Nn(X.text,J-H)})),S;return p};
PMX=function(p,J){return _.RR(p.entities,"chipBarStateEntity",J)};
z8s=function(p){switch(p){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
$et=function(p,J){return{triggeringElement:p,onDwellTriggeredFn:function(){var S={triggeringElement:p,loadVideoPreviewEventData:J},H=document.querySelector(".video-preview");H&&H.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:S}))},
onDwellEndFn:function(){var S=document.querySelector(".video-preview");S&&S.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
oGi=function(p,J){var S=_.vO().resolve(_.F9(onk)),H=function(){var M=J();return S&&M?$et(p.value,M):null};
_.lf(function(){var M=H();S&&M&&Promise.resolve().then(function(){S.registerElement(M)});
_.VY(function(){S&&M&&Promise.resolve().then(function(){_.Dp(S,M)})})},"csPUge")};
Wck=function(p){var J=p.dataset.resizeObserverId;if(J)return J;J=""+e8i++;return p.dataset.resizeObserverId=J};
Qm4=function(p){p=_.K(p);for(var J=p.next();!J.done;J=p.next()){J=J.value;var S=Wck(J.target),H=Object.assign({},{target:J.target},vY.get(S));if(H!=null&&H.contentRect?H.contentRect.width!==J.contentRect.width||H.contentRect.height!==J.contentRect.height:1)for(vY.set(S,{borderBoxSize:J.borderBoxSize,contentBoxSize:J.contentBoxSize,contentRect:J.contentRect,devicePixelContentBoxSize:J.devicePixelContentBoxSize}),S=_.K(fY.get(S)||[]),H=S.next();!H.done;H=S.next())H=H.value,H(J)}};
y5L=function(p,J){var S=Wck(p);fY.has(S)||fY.set(S,new Set);fY.get(S).add(J);vY.has(S)&&J(Object.assign({},{target:p},vY.get(S)));OX||(OX=new CMw(Qm4));J=OX;J.observe(p)};
BKv=function(p,J){var S=Wck(p);fY.has(S)&&(fY.get(S).delete(J),fY.get(S).size===0&&(fY.delete(S),vY.delete(S),OX.unobserve(p),delete p.dataset.resizeObserverId));fY.size===0&&OX&&(OX.disconnect(),OX=void 0)};
smw=function(p,J){var S=_.vO().resolve(Oy);return UeX.map(function(H){return S.observe(p,J,H)})};
gGk=function(p){var J=_.vO().resolve(Oy);p.forEach(function(S){J.unobserveByKey(S)})};
_.AX=function(p){var J=_.K(QJi()),S=J.next().value,H=J.next().value,M=Object.assign({},tii,p),X=h84(function(Z){var n=Z.contentRect.height;if((Z=Z.contentRect.width)||n||M.canHaveZeroSize)S.width()===Z&&S.height()===n||H(S,{height:n,width:Z})},M.throttleMs);
return[S,function(Z){var n=[];M.useVisibilityObserver&&(n=smw(Z,function(b,F){requestAnimationFrame(function(){F==="visible"?y5L(Z,X):BKv(Z,X)})}));
n.length||y5L(Z,X);return function(){n.length&&(gGk(n),n.length=0);BKv(Z,X)}}]};
kPk=function(p,J,S,H,M){p=J?p.switchOffCommand:p.switchOnCommand;if(H&&M)DeW(p,S,M);else{var X,Z;(X=_.tz({elementsCommand:p}))==null||(Z=X.onclick)==null||Z.call(X,S)}};
DeW=function(p,J,S){p=_.tz({elementsCommand:p,additionalCommandArgs:{commandController:{onSuccess:function(){S(!1)},
onServerError:function(){S(!1)}}}});
if(p==null?0:p.onclick)p.onclick(J),S(!0)};
TKi=function(p){if(p)return _.e(p,NKw)};
dew=function(p){if(p)switch(p){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
uGW=function(p,J){if(!((p==null?0:p.entitySelectorType)&&(p==null?0:p.entityKey)))return{};switch(p.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.z("enable_web_shorts_captions_language_command")){var S;var H=(S=_.nG())==null?void 0:S.getOption("captions","track");var M,X=typeof(H==null?void 0:H.translationLanguage)==="object"&&((M=H.translationLanguage)==null?void 0:M.languageName)||(H==null?void 0:H.displayName)||"";H={data:Object.assign({},
!!X&&{selectionText:{content:X}},!!X&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof H==="undefined"})}}else H={};return H;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.z("web_shorts_audio_track_picker")){var Z;M=((Z=_.nG())==null?void 0:Z.getAudioTrack())||void 0;S=M==null?void 0:(X=M.getLanguageInfo())==null?void 0:X.getName();M={data:Object.assign({},{selectionText:{content:S}},S&&!(M==null?0:(H=M.getLanguageInfo())==
null?0:H.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else M={};return M;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return H=p!=null&&p.entityKey?(H=_.RY(J,p.entityKey))?{isHidden:(H==null?void 0:H.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},H;default:return{}}};
l_g=function(p,J){return function(S){var H=function(M){_.yh(_.CG(M),S,J)||p(M)};
S.addEventListener("click",H);return function(){S.removeEventListener("click",H)}}};
_.ViW=function(p){return function(){return _.e(p(),_.PY)}};
qeW=function(p){switch(p){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
a_X=function(p){return qeW(p==null?void 0:p.all)};
EGv=function(p){var J={};(p=p==null?void 0:p.padding)&&(J.padding=qeW(p.vertical)+"px "+qeW(p.horizontal)+"px");return J};
Ye9=function(p){switch(p){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
r5w=function(p){switch(p){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
jmX=function(p){switch(p){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
w4k=function(p,J){if(J)return{containerStyles:EGv(J),itemStyles:function(S,H){var M={flex:"1"},X=J==null?void 0:J.flexDirection;b:switch(X){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":S=!!S;break b;default:S=!!H}S||(S=_.jn("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",X==="FLEX_DIRECTION_ROW"||X==="FLEX_DIRECTION_ROW_REVERSE"?(X=a_X(J==null?void 0:J.gap)+"px",S?M["margin-left"]=X:M["margin-right"]=X):M["margin-bottom"]=a_X(J==null?void 0:J.gap)+"px",M.flex=
"1");return M},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(J==null?void 0:J.flexDirection)==="FLEX_DIRECTION_ROW"||(J==null?void 0:J.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
xek=function(p){return p<528?"CONTAINER_SIZE_NARROW":p<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
c5g=function(p,J){p=_.K(p.responsiveMap||[]);for(var S=p.next();!S.done;S=p.next())if(S=S.value,S.containerSize===J)return S.containerType};
_.I_i=function(p,J){if(J){var S=J.responsiveSize;p=xek(p);var H=c5g(J,p);if(H&&S){a:{if(H==="CONTAINER_TYPE_VERTICAL_LIST")if(S==="RESPONSIVE_SIZE_STANDARD"){if(p!=="CONTAINER_SIZE_NARROW"){var M="50%";break a}}else{M=p==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}M=void 0}return{responsiveSize:S,containerSize:p,containerType:H,force16By9ThumbnailAspectRatio:!J.enableContentSpecificAspectRatio,contentPreviewWidth:M,fullbleed:(H==="CONTAINER_TYPE_VERTICAL_LIST"||H==="CONTAINER_TYPE_GRID")&&p===
"CONTAINER_SIZE_NARROW"&&!1}}}};
LcL=function(p,J){var S={};switch(J){case "CONTAINER_TYPE_VERTICAL_LIST":S["flex-direction"]="column";S.padding="0 "+p.margin+"px";break;case "CONTAINER_TYPE_GRID":S["flex-direction"]="row";S.flex="none";S["flex-wrap"]="wrap";S.width=p.maxContainerWidth?p.maxContainerWidth+p.gutter+"px":void 0;S.padding="0 "+(p.margin-p.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":S["flex-direction"]="row",S.flex="none",S["overflow-x"]="auto",S.width=p.maxContainerWidth?p.maxContainerWidth+"px":void 0,
S.padding="0 "+p.margin+"px"}return S};
pa4=function(p,J){if(J){var S=c5g(J,xek(p));a:switch(S){case "CONTAINER_TYPE_GRID":var H=3;break a;default:H=1}H=_.f_w(J,p,H);var M=_.N6(H);return{containerLayoutConfig:_.I_i(p,J),containerStyles:LcL(M,S),itemStyles:function(X,Z){X={};switch(S){case "CONTAINER_TYPE_VERTICAL_LIST":Z||(X["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":X.width=M.itemWidth+"px";X["margin-right"]=M.gutter/2+"px";X["margin-left"]=M.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":X.width=M.itemWidth+
"px",X.flex="none",Z||(X["margin-right"]=M.gutter+"px")}return X}}}};
Xai=function(p,J,S){if(J)return[JDt];switch(p){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[zs];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return S?[zs]:[SHW,zs];case "TRANSFER_STATE_PAUSED_BY_USER":return[HK9,zs];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[Mjg,zs];default:return[JDt]}};
iKt=function(p,J,S,H){return Xai(p,J,H).map(function(M){var X=M.text,Z=M.iconType,n=M.videoAction;M=M.playlistAction;X=X?{content:X}:void 0;Z=Z&&{sources:[{clientResource:{imageName:Z}}]};var b=(0,_.T6.unsafeClone)(S);if(b){var F=_.e(b,_.mV),f=_.e(b,_.FJ);F&&n?F.action=n:f&&M&&(f.action=M)}return{title:X,leadingImage:Z,rendererContext:b&&{commandContext:{onTap:{innertubeCommand:b}}}}})};
Rzi=function(p){p=_.B$(p.rendererContext);var J;return(J=_.e(p,_.FJ))==null?void 0:J.playlistId};
Kev=function(p){var J;return(J=p.listItems)==null?void 0:J.some(function(S){var H;return _.Ul((H=_.e(S,_.$m))==null?void 0:H.rendererContext)})};
_.$8=function(p){var J=_.vO().resolve(_.F9(_.uC));return J!=null&&J()?p.darkThemeColorPalette:p.lightThemeColorPalette};
_.es=function(p){return{primaryTextColor:ot(p,0),secondaryTextColor:ot(p,1),optionColor:ot(p,2),backgroundColor:ot(p,3),videoBackgroundColor:ot(p,4)}};
ot=function(p,J){if(p){switch(J){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 _.yi(p)}};
GCs=function(p){var J=p.element;var S=p.veType;var H=p.storedVisualElement===void 0?null:p.storedVisualElement;var M=p.elementIndex===void 0?0:p.elementIndex;p=p.clientYouTubeData;var X=_.C1();X!==ZKg&&(nRL.clear(),ZKg=X);if(J.visualElement&&nRL.has(J.visualElement))return null;if(H&&nRL.has(H))return J.visualElement=H,null;S=_.G$(_.bC(),{veType:S,elementIndex:M,clientYouTubeData:p});if(!S)return null;J.visualElement=S;nRL.add(S);return S};
_.WY=function(p,J,S,H){S=S===void 0?null:S;H=H===void 0?gg3:H;var M=M===void 0?null:M;er(function(){if(J){S instanceof Function&&(S=S());var X=GCs({element:J,veType:p,storedVisualElement:S,clientYouTubeData:void 0});X&&(DuX(J,M),H(X))}})};
bKg=function(p){return p?_.Bt(p):""};
mTv=function(p){return(p==null?void 0:p.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
Few=function(p,J){return _.RR(p.entities,"videoOverviewAsyncDataEntity",J)};
vRi=function(p,J){var S;return"linear-gradient(to bottom, "+((S=J==null?void 0:J.map(function(H){var M=p?H.darkThemeColor:H.lightThemeColor;return M?_.Bt(M)+" "+((H==null?void 0:H.startLocation)||0)*100+"%":"transparent"}))==null?void 0:S.join(", "))+")"};
fW4=function(p,J,S,H,M){if(!((H==null?0:H.height)&&(H==null?0:H.width)))return{size:0};var X=H.width;H=H.height;if(M)return J==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||J==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&X>H?{size:312/aBi}:J==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(S!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||p!==1&&p!==2||J!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&J!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&J!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(J==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||J==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||H===X)switch(p){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(J==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||H>X)switch(p){case 1:case 3:return{size:240*q53};default:return{size:360*q53}}switch(p){case 1:case 2:return{size:1/aBi*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.OKL=function(p){if(!("matchMedia"in window))return _.SB(Error("Rh")),function(){return!1};
var J=window.matchMedia(p);p=_.K(_.eQ(J.matches,void 0,"waIHpe"));var S=p.next().value,H=p.next().value,M=function(X){H(X.matches)};
J.addEventListener?(J.addEventListener("change",M),_.VY(function(){J.removeEventListener("change",M)})):J.addListener&&(J.addListener(M),_.VY(function(){J.removeListener(M)}));
return S};
ADv=function(p){return p==="IMAGE_BANNER_STYLE_INSET"||p==="IMAGE_BANNER_STYLE_UNKNOWN"};
PLk=function(){if(!("matchMedia"in window))return _.SB(Error("Rh")),function(){return 0};
var p=window.matchMedia("(max-width: 527.9px)"),J=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),S=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),H=window.matchMedia("(min-width: 1024px)"),M=_.K(_.eQ(p.matches,void 0,"TmIKcb")),X=M.next().value,Z=M.next().value;M=_.K(_.eQ(J.matches,void 0,"Z0fTKd"));var n=M.next().value,b=M.next().value;M=_.K(_.eQ(S.matches,void 0,"w4xy7b"));var F=M.next().value,f=M.next().value;M=_.K(_.eQ(H.matches,void 0,"DrbNC"));var O=M.next().value,
A=M.next().value,P=function(D){Z(D.matches)},W=function(D){b(D.matches)},y=function(D){f(D.matches)},t=function(D){A(D.matches)};
_.ad(function(){p.addEventListener?(p.addEventListener("change",P),J.addEventListener("change",W),S.addEventListener("change",y),H.addEventListener("change",t)):p.addListener&&(p.addListener(P),J.addListener(W),S.addListener(y),H.addListener(t));_.VY(function(){p.removeEventListener?(p.removeEventListener("change",P),J.removeEventListener("change",W),S.removeEventListener("change",y),H.removeEventListener("change",t)):p.removeListener&&(p.removeListener(P),J.removeListener(W),S.removeListener(y),
H.removeListener(t))})});
return function(){return X()?1:n()?2:F()?3:O()?4:0}};
zz9=function(p){var J=0;p=_.K([p.title,p.metadata,p.actions,p.description,p.attribution]);for(var S=p.next();!S.done;S=p.next())S.value&&J++;return J};
$TW=function(p){return p===1||p===2?1:0};
ezi=function(p){p=(new oRL).parse(p);return(new g0).render(p).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(J){var S=J.split(":").map(Number),H=0,M=0;if(S.length===3)S=_.K(S),H=S.next().value,M=S.next().value,S=S.next().value;else if(S.length===2)S=_.K(S),M=S.next().value,S=S.next().value;else if(S.length===1)S=_.K(S).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(H*3600+M*60+S)+'" role="button">'+J+"</span>"})};
We3=function(p){p=_.K(p.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var J=p.next(),S={};!J.done;S={clickHandler$jscomp$5:void 0},J=p.next()){J=J.value;S.clickHandler$jscomp$5=function(M){M=Number(M.target.getAttribute("data-time"));if(isNaN(M))throw Error("Th");var X;(X=_.nG())==null||X.seekTo(M,!0)};
var H=function(M){return function(X){X.key!=="Enter"&&X.key!=="Space"||(0,M.clickHandler$jscomp$5)(X)}}(S);
J.setAttribute("tabindex","0");J.removeEventListener("click",S.clickHandler$jscomp$5);J.removeEventListener("keydown",H);J.addEventListener("click",S.clickHandler$jscomp$5);J.addEventListener("keydown",H)}};
Q9W=function(){return _.m("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.m(Q8,{percentWidth:100}),_.m(Q8,{animationDelay:200}),_.m(Q8,{animationDelay:400}),_.m(Q8,{animationDelay:600}),_.m(Q8,{animationDelay:800,percentWidth:60}),_.m("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.m(Q8,{percentWidth:100}),_.m(Q8,{animationDelay:200}),_.m(Q8,{animationDelay:400}),_.m(Q8,{animationDelay:600,percentWidth:50}))};
Q8=function(p){return _.m("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(p.percentWidth===void 0?100:p.percentWidth)+"%"},_.m("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(p.animationDelay===void 0?0:p.animationDelay)+"ms"}))};
CLW=function(){var p=_.K(_.eQ(function(){return""},void 0,"dXJHWc")),J=p.next().value;
return[function(){return J()()},
p.next().value]};
yDL=function(p,J){p=p?FcW(p):"";J!==void 0&&isFinite(J)?J===0?J=_.Kl("UPDATING",void 0,"Updating..."):(J=CPi(new Date(J),new Date),J=_.Kl("UPDATED_TIME",{relative_time:J},"Updated "+J)):J="";var S="";p&&J&&(S=" \u2022 ");return _.I5(p+S+J)};
s9v=function(p,J,S,H,M,X){J=J===void 0?0:J;var Z=BNW[J],n=Z.title,b=Z.iconType,F=Z.topButtonRenderer,f=Z.sectionClientVE;Z=Z.videoClientVE;var O;if(J!==1||p.length){S=[];p=_.K(p);for(H=p.next();!H.done;H=p.next()){var A=H.value;if(JLi(A))S.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:A.videoEntity.videoId,title:Ll(A.videoEntity.title),shortBylineText:Ll(A.channelEntity.title),thumbnail:A.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:A.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Kl("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Z}}}}}});else if(p34(A)){H=S;var P=H.push;var W=void 0,y=void 0,t=void 0,D=void 0,k=void 0,E=void 0,a=void 0,q=void 0,w=A.mainPlaylistEntity.playlistId,I=A==null?void 0:(q=A.mainPlaylistEntity)==null?void 0:(a=q.thumbnailStyleData)==null?void 0:(E=a[0])==null?void 0:(k=E.value)==null?void 0:(D=k.collageThumbnail)==null?void 0:D.coverThumbnail;D=t7i(w);if(!_.z("enable_offline_playlist_page")&&
(A==null?0:(t=A.mainPlaylistEntity)==null?0:t.videos)){b:{t=A==null?void 0:(y=A.mainPlaylistEntity)==null?void 0:y.videos;y=_.rl().getState().entities;if(t!=null&&t.length&&y)for(t=_.K(t),k=t.next();!k.done;k=t.next())if(k=_.Hq(k.value).entityId,(k=JSON.parse(k).videoId)&&ags(y,k)==="TRANSFER_STATE_COMPLETE"){y=k;break b}y=""}y!==void 0&&(D=kZ(_.rl().getState(),y),D=_.c9(y,w,void 0,void 0,D))}y=Dlt(_.Kl("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),t7i(w));A=w&&I&&y?{playlistId:w,navigationEndpoint:D,
viewPlaylistText:y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:I}},title:Ll(A.mainPlaylistEntity.title),shortBylineText:Ll(A==null?void 0:(W=A.channelEntity)==null?void 0:W.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:UTi,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:w,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Kl("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Z}}}:
void 0;P.call(H,{gridPlaylistRenderer:A})}}Z={gridRenderer:{items:S}};J===1&&(O=yDL(M,X))}else if(H){var Z3=_.I5((P=S==null?void 0:S.localizedPromptMessage)!=null?P:"");Z={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.I5(_.Kl("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.ALv}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.I5(_.Kl("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};O=yDL(M,X)}else Z3=_.I5(_.Kl("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
Z={};return{contents:[{shelfRenderer:{title:n,titleAnnotation:O,icon:{iconType:b},subtitle:Z3,content:Z,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:F}]}}}}],loggingDirectives:{clientVeSpec:{uiType:f}}}};
gRW=function(p,J,S,H,M,X,Z,n,b,F,f){S=S===void 0?{}:S;H=H===void 0?{}:H;M=M===void 0?!1:M;X=X===void 0?!1:X;Z=Z===void 0?!1:Z;n=n===void 0?!1:n;b=b===void 0?!1:b;F=F===void 0?0:F;f=f===void 0?-Infinity:f;if(!(J.length||p.length||M||n))return X?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:J5W(S)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.I5(_.Kl("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 O=[];p.length&&O.push(s9v(p,0));n?O.push({contents:[{statementBannerRenderer:imk(b,H)}]}):M?O.push(s9v(J,1,S,Z,F,f)):X&&O.push({contents:[{statementBannerRenderer:Hmi(S)}]});(M&&J.length||p.length)&&O.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.I5(_.Kl("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 O.map(function(A){return{itemSectionRenderer:A}})};
CY=function(p,J){if(typeof p!=="object")return null;p=_.K(Object.entries(p));for(var S=p.next();!S.done;S=p.next()){var H=_.K(S.value);S=H.next().value;H=H.next().value;if(S===J)return S;if(H=CY(H,J))return S+"."+H}return null};
y8=function(p){var J=p.content;return(p=p.styleRuns)&&J?{runs:p.map(function(S){var H={text:J.slice(S.startIndex,S.startIndex+S.length)};S.fontColor&&(H.textColor=S.fontColor);return H})}:{simpleText:J}};
DTs=function(p,J,S,H){var M=tjt;H&&(p.quantity=H);if(!p.quantity||!p.maxQuantity)return{};H=p.minusButton;var X=p.plusButton,Z,n,b,F;return{value:p.quantity,maxValue:p.maxQuantity,onChangeCallback:function(f){M(p,f)},
minusLabel:(Z=_.e(H,hzX))==null?void 0:Z.label,minimumReachedLabel:(n=_.e(H,hzX))==null?void 0:n.limitReachedLabel,plusLabel:(b=_.e(X,hzX))==null?void 0:b.label,maximumReachedLabel:(F=_.e(X,hzX))==null?void 0:F.limitReachedLabel,disabled:J,onRemoveCommand:S}};
tjt=function(p,J){var S=p.quantityIncrementerEntityKey;if(S){var H={};H.quantity=J;_.Y3(_.BY("quantityIncrementerEntity",S,H));p.onChangeCommand&&_.Dm(p.onChangeCommand)}};
kCw=function(p){if(p)return p===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(p).overflowY)?p:kCw(p.parentElement)};
dTw=function(p,J){(p=NNi(p))&&((_.z("enable_mini_app_command_handler_mweb_fix")?0:J)?TNv.push({command:p,sourceData:{},commandContext:void 0}):_.vO().resolve(_.Ov).resolveCommand(p))};
NNi=function(p){return _.e(p,_.Ua)};
uyW=function(){var p=window.performance.timeOrigin+window.performance.now(),J=(new _.UX).setSeconds(p/1E9);return _.LP(J,2,_.Rw(p%1E9),0)};
VjL=function(p,J){var S;p=(S=_.e(_.e(p,_.Ua),lWL))==null?void 0:S.methodName;var H,M;(S=window.youtubewebview||((H=window.webkit)==null?void 0:(M=H.messageHandlers)==null?void 0:M.youtubewebview))&&p&&(H=new sX,p=_.g2(H,1,p),p=_.gM(p.JSC$12703_serializeBinary()),J=_.gM(J),S.postMessage(p+","+J))};
g_=function(p,J){var S=_.e(_.e(p,_.Ua),lWL);S&&(J&&(S.serializedAdditionalMetadata=_.gM(J)),dTw(p,!0))};
qH3=function(p,J,S){setTimeout(function(){_.Lt(p,J)},S)};
aWk=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"}};
ERi=function(){return!!_.jn("ID_TOKEN")};
j9v=function(p){return p instanceof Error&&p.cause instanceof YHW&&p.cause.rpcErrorCode!==void 0?!rDg.includes(p.cause.rpcErrorCode):!0};
xTk=function(){return _.KQ(wai,{authuser:""+(_.jn("SESSION_INDEX")||0)})};
tX=function(p,J,S,H){S=S===void 0?"MINI_APP_SDK_API_UNSPECIFIED":S;H=H===void 0?"":H;var M=new _.TG;S={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:H,sdkApi:S};p instanceof Error&&(M.message=p.message,M.name=p.name,p.cause instanceof YHW&&p.cause.rpcErrorCode!==void 0&&(S.rpcErrorCode=p.cause.rpcErrorCode));var X;(X=J.onError)==null||X.call(J,{loggingError:M,metadata:S})};
IW3=function(p,J,S,H){switch(p){case "MINI_APP_SOURCE_GAMESNACKS":return new hX(J,S,H);default:return new cDi(J,S,H)}};
Let=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"}};
pet=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"}};
JIW=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"}};
ScL=function(){return Math.floor(Math.random()*4)+1};
Hv3=function(p,J,S,H){p=_.K(Object.entries(p));for(var M=p.next(),X={};!M.done;X={message$jscomp$995:void 0},M=p.next()){var Z=_.K(M.value);M=Z.next().value;Z=Z.next().value;X.message$jscomp$995=Z;J.push(setTimeout(function(n){return function(){H(!1);S(n.message$jscomp$995.text)}}(X),X.message$jscomp$995.delayMs));
Number(M)>0&&J.push(setTimeout(function(){H(!0)},X.message$jscomp$995.delayMs-400))}};
MPi=function(p,J){var S=S===void 0?gg3:S;_.z("mweb_fix_monitor_visibility_after_render")?p&&er(function(){DuX(p,J,S)}):er(function(){DuX(p,J,S)})};
XeX=function(p,J){var S=document.createElement("ytd-engagement-panel-section-list-renderer");S.data=p;var H=J!=null?J:{};p=H.isPersistentPanel;J=H.hideDelayMs;H=H.overscrollContain;p=Object.assign({},p&&{isPersistentPanel:p},J&&{hideDelayMs:J},H&&{overscrollContain:H});Object.assign(S,p);return S};
ZvX=function(p){iv3||(iv3=Rvg(new _.dl(1,void 0,void 0,KS3),0));var J=iv3.format(Math.floor(p));J=Nw==="be"||Nw==="bg"||Nw==="es"||Nw==="et"||Nw==="hu"||Nw==="ka"||Nw==="lv"||Nw==="pl"||Nw==="pt-PT"||Nw==="sq"?J.replace(new RegExp("^(\\d)"+KS3.GROUP_SEP.replace(".","\\.")+"(\\d+("+KS3.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):J;return p>=1E3&&p<=9999&&J[1]==="."&&(Nw==="sl"||Nw==="it")?J.replace(".",""):J};
_.bvX=function(p,J,S){return window.spf&&!_.z("web_disable_spfjs_client")?n5X(p,J,S):Gat(p,J)};
n5X=function(p,J,S){var H=null,M=(new _.UI(function(X,Z){var n={};if(J){n.method=J.method;var b=J.postParams||{};APs(p,J)&&(b[_.jn("XSRF_FIELD_NAME")]=_.jn("XSRF_TOKEN"));n.postData=_.Uv(b);J.type&&(n.type=J.type);b=J.headers}n.headers=blg(p,b);_.z("debug_forward_web_query_parameters")&&(p=_.fOs(p,window.location.search));n.experimental_headers=n.headers;n.onError=function(F){F.err&&F.xhr&&(F.err.params={url:F.xhr.responseURL,response:F.xhr.responseText.substr(0,64)});Z(F.err)};
n.onPartDone=function(F){S&&S.call(null,F.part)};
n.onDone=function(F){var f=mJW(F.response,"xsrf_token");GG(window.location.href,p)&&f&&_.rY("XSRF_TOKEN",f);if(f=mJW(F.response,"service_worker_killswitch"))_.rY("SERVICE_WORKER_KILLSWITCH",f),bMk();X(F.response)};
H=spf.request(p,n)})).then(FSs);
M.thenCatch(function(X){var Z=X instanceof _.DP,n=X&&X.hasOwnProperty("params")&&X.params.response?X.params.response:"";X instanceof Error&&(n?Z?p$t(X):n===')]}\'\n{"reload":"now"}'?p$t(X):(v5W(X,p,n),f99(X,n)?_.xQ(X):_.jD(X)):p$t(X));H&&H.abort()});
return M};
FSs=function(p){if(p.type==="multipart"){var J=p.timing;p=p.parts.reduce(function(S,H){Object.assign(S,H);return S},{});
p.timing=p.timing||{};Object.assign(p.timing,J);p.type="reduced"}return p};
Gat=function(p,J){J=J===void 0?{}:J;var S=null,H=new _.UI(function(M,X){J.onFinish=function(Z){if(Z.readyState===XMLHttpRequest.DONE)if(Z.status===200){if(Z.responseType!=="json"){var n=Z.response;n.substring(0,5)===")]}'\n"&&(n=n.substring(5));try{var b=JSON.parse(n)}catch(F){b=F}}else b=Z.response;b instanceof Error?X(b):(n=mJW(b,"xsrf_token"),GG(window.location.href,p)&&n&&_.rY("XSRF_TOKEN",n),Z=Z.responseURL,window.performance&&window.performance.getEntriesByName?(n=window.performance.getEntriesByName(Z).pop())?
Z={responseStart:(0,_.fO)()-(n.responseEnd-n.responseStart)}:(Math.random()<.01&&(n=Error("ei"),n.params=Z,_.xQ(n)),Z={responseStart:-1}):Z={responseStart:0},b.timing=b.timing||{},Object.assign(b.timing,Z),M(b))}else X(Error("di`"+Z.status))};
(S=_.BO(p,J))||X(Error("di`"+S.status))});
H.thenCatch(function(M){M instanceof Error&&(v5W(M,p),f99(M)&&(M.level="WARNING"))});
_.z("cancel_pending_navs")&&H.thenCatch(function(){S.abort()});
return H};
mJW=function(p,J){var S=p[J],H=p.parts;p.type==="multipart"&&H&&(S=(p=H.find(function(M){return J in M}))&&p[J]);
return S};
v5W=function(p,J,S){var H=p.message||"";J={original:H,url:J};if(S)if(H=H.match(/position:?\s*(\d+)/)){H=H&&Number(H[1])?Number(H[1]):0;var M=Math.max(H-25,0);J.position=H;J.response=S.substring(M,H+25)}else J.response=S.substring(0,50);_.cL(p,J);try{p.message="JSON parse error"}catch(X){}};
f99=function(p,J){p=p.message||"";p=!!(p.indexOf("<")>=0||p.indexOf("end of ")>=0||p.indexOf("Unterminated string")>=0||p.indexOf("Unexpected EOF"));if(!p&&J)for(var S=J.length,H=!1,M=0;M<S;M++)if(H&&J[M]==="\\")M++;else if(J[M]==='"')H=!H;else if(J[M]==="<"&&!H){p=!0;break}return p};
OvX=function(){return document.documentElement.hasAttribute("dark")};
_.AI4=function(p,J){if(p!=="GFEEDBACK"&&p!=="GUIDED_HELP")_.xv(Error("fi`"+p));else{var S=_.vO().resolve(_.F9(_.xz));if(S&&(S=S.getCurrentPage())&&S.getServiceTrackingParams&&(S=S.getServiceTrackingParams()))for(var H=0,M;M=S[H++];)if(M.service===p){if(p=M.params)for(S=0;H=p[S++];)J[H.key]=H.value;break}}};
_.P5w=function(p){var J=_.IY();J&&(J=J.getPlayer())&&(J.pauseVideo(),p.playback_id=J.getVideoData().cpn,p.eid=J.getVideoData().eventId,Object.assign(p,J.getFeedbackProductData()))};
zvs=function(){var p={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.jn("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(p.enableAnonymousFeedback=!0);_.jn("SESSION_INDEX")&&(p.authuser=String(_.jn("SESSION_INDEX")));_.z("enable_pageid_for_feedback")&&_.jn("DELEGATED_SESSION_ID")&&(p.pageId=String(_.jn("DELEGATED_SESSION_ID")));return p};
_.k8=function(p){_.z("enable_ypc_spinners")&&_.IV(p,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},p])};
_.NB=function(p){_.z("enable_ypc_spinners")&&_.IV(p,"yt-close-popup-action",["yt-loading-renderer"])};
$J9=function(p){return new Promise(function(J,S){_.ge({verifyCommand:{recaptchaToken:p.recaptchaResponse}},{commandController:{onSuccess:function(H,M){M||S("ChallengeService did not return a response.");var X;J({challengeCompleted:(X=M.verified)!=null?X:!1})},
onServerError:function(H,M){S(M)}}})})};
o5i=function(p,J,S,H){J({recaptchaResponse:H}).then(function(M){M.challengeCompleted?_.DL()?(S(3),_.vO().resolve(_.Ov).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:p}})):S(2):S(4)},function(){S(4)})};
WSv=function(p,J,S){_.h1(_.fA(evL,_.jn("HL")),function(){var H;(H=window.grecaptcha)==null||H.ready(function(){var M=window.grecaptcha;M?(S(M.render(p,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:o5i.bind(null,p,$J9,J)})),J(1)):J(4)})})};
QcW=function(p,J){return function(){switch(J()){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}}()};
_.Ts=function(){if(!C5k){var p=document.querySelector("#player.skeleton");p&&(_.CC(p),C5k=!0)}};
_.BDX=function(){return yIk=AYw()};
g5X=function(){return _.G(function(p){return UJW!==void 0?p.return():p.yield(scX(),0)})};
scX=function(){return _.G(function(p){if(p.nextAddress==1)return p.yield(zPt(),2);yIk=p.yieldResult;UJW=_.wg.addLowPriorityJob(scX,5E3);_.UK(p)})};
TD3=function(p){var J=J===void 0?tPt:J;var S,H,M=(S=p.responseContext)==null?void 0:(H=S.mainAppWebResponseContext)==null?void 0:H.trackingParam;if(!M){J.increment("MISSING");var X,Z,n,b,F,f;_.xQ(new _.TG("282054944_a",{paH:!!((X=p.responseContext)==null?0:(Z=X.mainAppWebResponseContext)==null?0:Z.loggedOut),iIv:((n=p.responseContext)==null?void 0:n.mainAppWebResponseContext)===void 0,uvj:p.responseContext===void 0,cp:(b=p.playabilityStatus)==null?void 0:b.contextParams,dP8:(((F=p.streamingData)==
null?void 0:F.formats)||[]).length>0,t90:(((f=p.streamingData)==null?void 0:f.adaptiveFormats)||[]).length>0,os:!!p.offlineState,cotn:p.cotn}));return 2}S="";try{S=hvk(M)}catch(P){return J.increment("C_ERROR"),_.jD(P),2}try{var O=_.DJi(S);var A=ka9(O)}catch(P){return J.increment("P_ERROR"),_.jD(P),2}A=_.Zd(A,NDi,1,_.GN());M=[];A=_.K(A);for(O=A.next();!O.done;O=A.next())H=O.value,O=H.getPath(),S=(0,_.T6.getValueByKeys)(p,O.split(".")),S=String(S===void 0||S===null?"":S),H=H.getValue()||"",X=/[+\-\/_]/g,
S.replace(X,"")!==H.replace(X,"")&&(J.increment("MISMATCH"),_.z("ab_mis_log_err")&&(S=new _.TG("282054944_p",{ve9:O,g:String(S),e:String(H)}),_.jD(S)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(O)||(O.match(/enforcementMessageViewModel/i)?M.push(3):M.push(2)));if(M.length>0)return Math.max.apply(Math,_.dW(M));J.increment("SUCCESS");return 1};
l9W=function(p){var J=new d_;if(p.interpreterJavascript){var S=_.rcs(p.interpreterJavascript);S=Xl(S).toString();var H=new dJt;_.g2(H,6,S);_.Qd(J,1,H,h8)}else p.interpreterUrl&&(S=_.x_(p.interpreterUrl),S=_.gy(S).toString(),H=new _.ups,_.g2(H,4,S),_.Qd(J,2,H,h8));p.interpreterHash&&_.u6(J,3,p.interpreterHash,h8);p.program&&_.u6(J,4,p.program,h8);p.globalName&&_.u6(J,5,p.globalName,h8);p.clientExperimentsStateBlob&&_.u6(J,7,p.clientExperimentsStateBlob,h8);return J};
l6=function(p){var J={};p=_.K(p.split("&"));for(var S=p.next();!S.done;S=p.next())S=S.value.split("="),S.length===2&&(J[S[0]]=S[1]);return J};
VPt=function(p){return Number(p.t)||7200};
qgi=function(){if(_.z("bg_st_hr"))return"havuokmhhs-0";var p,J=((p=globalThis.performance)==null?void 0:p.timeOrigin)||0;return"havuokmhhs-"+Math.floor(J)};
V8=function(p){window.bgens=p};
qct=function(){return new Promise(function(p){var J=window;J.ntpevasrs!==void 0?p(new qB(J.ntpevasrs)):(J.ntpqfbel===void 0&&(J.ntpqfbel=[]),J.ntpqfbel.push(function(S){p(new qB(S))}))})};
a9k=function(p){if(_.z("attmusi")&&_.z("attmusi_ue")){p={s:p.yZ3.bind(p),ir:p.zJw.bind(p)};var J=window;J.attmp=p;if(J.attmq!==void 0)for(var S=_.K(J.attmq),H=S.next();!H.done;H=S.next())H=H.value,H(p);J.attmq=void 0}else J=p.yZ3.bind(p),_.m$("yt.aba.att",J),p=p.zJw.bind(p),_.m$("yt.aba.att2",p)};
Yc3=function(p){switch(_.yn(p.input)){case _.jx(E5t):var J={};return J.encryptedVideoId=p.innerTubeRequest.externalVideoId,J}return{}};
wet=function(p){switch(_.yn(p.input)){case _.jx(E5t):if(_.z("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.jx(rI3):if(_.z("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.jx(at):if(_.z("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&p.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.jx(jc9):var J,S;if(_.z("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((S=_.e((J=p.config)==null?void 0:J.command,_.rn))==null?0:S.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.cIX=function(p){var J;if(p.playlistVideoRenderer&&((J=p.playlistVideoRenderer)==null?0:J.engagementBar))return xJW(p.playlistVideoRenderer.engagementBar);if(_.e(p,EX)){var S;if(p=(S=_.e(p,EX))==null?void 0:S.engagementBar)return xJW(p)}return""};
xJW=function(p){if(!p)return"";p=_.e(p,_.I9s);if(p==null||!p.actions)return"";p=_.K(p.actions);for(p=p.next();!p.done;p=p.next()){p=_.e(p.value,_.LS3);var J=void 0;if((J=p)==null||!J.itemId)break;return p.itemId}return""};
_.pTX=function(p){var J;if(p.playlistVideoRenderer&&((J=p.playlistVideoRenderer)==null?0:J.videoId))return p.playlistVideoRenderer.videoId;if(_.e(p,EX)){var S,H;if(p=(S=_.e(p,EX))==null?void 0:(H=S.playlistItemData)==null?void 0:H.videoId)return p}return""};
_.Jgi=function(p){var J;if(p.playlistVideoRenderer&&((J=p.playlistVideoRenderer)==null?0:J.voteCount))return p.playlistVideoRenderer.voteCount;if(_.e(p,EX)){var S,H;if(p=(S=_.e(p,EX))==null?void 0:(H=S.playlistItemData)==null?void 0:H.voteCount)return p}return 0};
_.Y8=function(p,J){return _.RR(p.entities,"flowStateEntity",J)};
Hxk=function(p,J,S,H){var M=void 0;p=_.K(p[J.iconName]||[]);for(var X=p.next();!X.done;X=p.next()){X=X.value;var Z=J.iconSize;var n=J.iconStyle;Z=!Z||Z===X[2];var b=Sm4[X[0]];H&&H!==X[1]||!Z||n&&n!==b?n=!1:M?(n=Sm4[X[0]],n=!!J.iconStyle||n==="youtube_outline",Z=M.version<=X[1],n=(!!J.iconSize||X[2]===24)&&n&&Z):n=!0;n&&(M={name:J.iconName,style:Sm4[X[0]],size:X[2],version:X[1],allowMirroring:!!X[3],url:S(J.iconName,X)})}return M};
M4i=function(p,J,S,H){return p+(""+Sm4[S[0]]+((H===void 0?0:H)?"_experimental":"")+"/"+J+"/v"+S[1]+"/")+(S[2]+"px.svg")};
XTs=function(p){return _.jn("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.jn("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":p};
ixk=function(p,J){return M4i("https://fonts.gstatic.com/s/i/",p,J)};
ReX=function(p,J){return M4i("https://fonts.gstatic.com/s/i/",p,J,!0)};
KD3=function(p,J){return M4i("https://www.gstatic.com/youtube/img/icons/web/",p,J)};
nMi=function(p){var J=p.enabled;var S=p.itemPlaybackModel;var H=p.thumbnailElRef;var M=p.containerElRef;var X=p.options;var Z;_.lf(function(){var n=M==null?void 0:M.value;var b,F=(b=H())==null?void 0:b.value;b=S();var f=X();if(J&&b&&n&&F&&(f==null?0:f.thumbnail)){var O={data:b,hostElement:n},A,P,W=[].concat(_.dW((A=f.thumbnailOverlays)!=null?A:[]),_.dW((P=b.overlays)!=null?P:[]));P=b.itemPlaybackOptions;A=(P==null?void 0:P.enableRoundedPlayer)||f.enableRounding;P=P==null?void 0:P.disableTimeStatusOverlay;
var y,t;n={mediaRenderer:O,lockupElement:n,thumbnailElement:F,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.sa((y=b.inlinePlayerData)==null?void 0:y.onVisible),navigationEndpoint:_.sa((t=b.inlinePlayerData)==null?void 0:t.onSelect),thumbnail:f.thumbnail,thumbnailOverlays:W,accessibilityText:f.accessibilityText||""},thumbnailSize:f.thumbnailSize,enableRounding:A,mouseleaveCallback:f.mouseleaveCallback,hideTimeDisplay:P}}}else n=void 0;if(y=n){var D;(D=Z)==null||r_(D);Z=hH(y);var k,E;
((k=S())==null?0:(E=k.inlinePlayerData)==null?0:E.forceImpAutoplay)&&ZxX(Z)}},"BLiQOd");
_.VY(function(){var n;(n=Z)==null||r_(n)})};
G4i=function(p){p=atob(p);for(var J=[],S=0;S<p.length;S++)J.push(p.charCodeAt(S));return new Blob([new Uint8Array(J)],{type:"image/png"})};
mhi=function(p,J,S,H){H=H===void 0?"INSERTION_POSITION_UNSPECIFIED":H;return p({targetId:J},function(M){var X,Z=(X=M.contents)!=null?X:[];X=S!=null?S:[];var n=bxi(Z);switch(H){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},M,{contents:[].concat(_.dW(Z.slice(0,n)),_.dW(X),_.dW(Z.slice(n+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},M,{contents:[].concat(_.dW(X),_.dW(Z))});case "INSERTION_POSITION_LAST":return Object.assign({},M,{contents:[].concat(_.dW(Z),_.dW(X))});
default:return M}})};
vMi=function(p,J,S,H,M){M=M===void 0?"RELATIVE_INSERTION_POSITION_AFTER":M;return p({targetId:J},function(X){var Z,n=(Z=X.contents)!=null?Z:[];Z=FDW(n,S);if(Z<0)return X;Z=M==="RELATIVE_INSERTION_POSITION_BEFORE"?Z:Z+1;return Object.assign({},X,{contents:[].concat(_.dW(n.slice(0,Z)),_.dW(H),_.dW(n.slice(Z)))})})};
bxi=function(p){var J=p.findIndex(function(S){return _.e(S,_.js)});
return J>=0?J:p.length};
FDW=function(p,J){return p.findIndex(function(S){a:{S=_.K(Object.values(S));for(var H=S.next();!H.done;H=S.next())if((H=H.value)&&H.targetId){S=H.targetId;break a}S=""}return S===J})};
OxW=function(p,J,S){return p({targetId:J},function(H){var M,X=(M=H.contents)!=null?M:[];return Object.assign({},H,{contents:fwX(X,S)})})};
fwX=function(p,J){return p.filter(function(S){var H=J.includes;a:{S=_.K(Object.values(S));for(var M=S.next();!M.done;M=S.next())if((M=M.value)&&M.targetId){S=M.targetId;break a}S=""}return!H.call(J,S||"")})};
_.Agv=function(p,J){return{engagementPanelSectionListRenderer:{panelIdentifier:p,identifier:J,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
PKs=function(p,J){p=p.getAvailableAudioTracks();if(p.length)return p==null?void 0:p.find(function(S){var H;return(S==null?void 0:(H=S.getLanguageInfo())==null?void 0:H.getId())===J})};
_.$hX=function(p){var J,S=(J=p.getOption("captions","tracklist",{includeAsr:!0}))!=null?J:[];return S=zew(S,p)};
oMX=function(p){return p.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
zew=function(p,J){J=oMX(J);if(J==null||!J.length)return p;var S=J.filter(function(Z){return Z});
J=p.filter(function(Z){return Z.languageCode.startsWith("en")});
S=_.K(S);for(var H=S.next();!H.done;H=S.next())if(H=H.value,J.length){var M=J[0],X=Object.assign({},M);M.languageCode!==H.languageCode&&(X.displayName=M.languageName+" >> "+H.languageName,X.translationLanguage=H,p.push(X))}return p};
eev=function(p,J,S){p=_.$hX(p);if(p.length)return S?p.find(function(H){if(typeof(H==null?void 0:H.translationLanguage)==="object"){var M;return((M=H.translationLanguage)==null?void 0:M.languageCode)===J}return!1}):p==null?void 0:p.find(function(H){return H.languageCode===J})};
WDv=function(p){return p.getOption("captions","tracklist",{includeAsr:!0})};
Qpt=function(p){var J=p.getAvailableAudioTracks();if(J!=null&&J.length){var S=p.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.dW(J.map(function(H){return{listItemViewModel:{title:{content:H.getLanguageInfo().getName()},isSelected:H.getLanguageInfo().getId()===(S==null?void 0:S.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:H.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
CKt=function(p){return p.getOption("captions","tracklist",{includeAsr:!0})};
ygi=function(p){var J=CKt(p);if(J==null?0:J.length)return J;p.loadModule("captions");return CKt(p)};
B8W=function(p){var J=p.getOption("captions","track");if(J)return J;p.loadModule("captions");return p.getOption("captions","track")};
spt=function(p){var J=ygi(p);if(J!=null&&J.length){var S=B8W(p),H;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Kl("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(S==null?0:S.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.dW(J.map(function(M){return{listItemViewModel:{title:{content:M.displayName},
isSelected:M.displayName===(S==null?void 0:S.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:M.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Kl("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!S.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!S.translationLanguage&&{selectionText:{content:(S==null?void 0:(H=S.translationLanguage)==null?void 0:H.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[UhX(p)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
UhX=function(p){var J=oMX(p);if(J==null||!J.length)throw Error("Ei");var S=B8W(p);p=J.filter(function(H){return!H.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.dW(p.map(function(H){var M;return{listItemViewModel:{title:{content:H.languageName},isSelected:H.languageName===(S==null?void 0:(M=S.translationLanguage)==null?void 0:M.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:H.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
Dhw=function(p){return new Promise(function(J,S){if(p===void 0)_.jD(Error("Ii"),"ERROR"),S(Error("Ii"));else{S=new _.gMw;var H=_.t44();S=S.init();var M=_.hev(_.jn("YPC_MB_URL"),!0);Promise.all([S,M]).then(function(){var X=_.w_.payments.business.integration.ClientTokenFactory.createClientToken(p,H);J(X)})}})};
T8X=function(p,J,S,H,M,X,Z){var n=_.qr();S=S.replace(/-/g,"+").replace(/_/g,"/");var b=_.Gv().get("hl"),F=_.x8(_.as),f=J==null?void 0:J.element;f&&_.k8(f);k4s(J,!0);_.N8g(F,S,n.resolve,function(){f&&_.NB(f)},function(O){f&&_.NB(f);
n.reject(O)},b,H?function(O){H&&_.VI(p,H,{backend_analytics:O})}:void 0,n.resolve,M,X,Z);
return n.promise};
k4s=function(p,J){!(p=p==null?void 0:p.element)||p.tagName!=="YT-BUTTON-RENDERER"&&p.tagName!=="YTD-BUTTON-RENDERER"||(p.disabled=J)};
dhg=function(){var p=_.Kl("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.I5(p),actionButton:{buttonRenderer:IAX()}}},popupType:"TOAST"}};
uRk=function(){var p=_.Kl("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.I5(p),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
lwg=function(p){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:p}]}}};
cY=function(p,J,S,H){var M;return _.G(function(X){if(X.nextAddress==1)return _.oI(X,2),X.yield(p,4);if(X.nextAddress!=2)return(M=_.Ak(J.getState().entities).length>0)?X.return({title:_.I5(_.Kl("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.I5(_.Kl("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:cCi()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
X.return(LPg(S,H));_.BZ(X);return X.return(LPg(S,H))})};
V4W=function(p,J){return J?J==="PPSV"||rWi(p,J):!1};
qmX=function(p){p.responseContext||(p.responseContext={});p.responseContext.maxAgeSeconds=0;return p};
LY=function(p){var J;return _.G(function(S){return S.nextAddress==1?S.yield(awi(p,"service:topbar:fallback"),2):(J=S.yieldResult)&&_.It(J)?S.return(qmX(_.It(J))):S.return()})};
EM4=function(p){var J;return _.G(function(S){return S.nextAddress==1?S.yield(awi(p,"service:downloads_settings:fallback"),2):(J=S.yieldResult)&&_.It(J)?S.return(J):S.return()})};
awi=function(p,J){var S;return _.G(function(H){if(H.nextAddress==1)return p?H.yield(p.get(J),2):H.return();S=H.yieldResult;return!S||!_.It(S)||!isNaN(Number(S.data.expireTimestampMs))&&S.isExpired()?H.return():H.return(S)})};
Ymv=function(p){var J=_.vO().resolve(Hu).getState().entities;return p.playlistId?V4W(J,p.playlistId):!1};
jp9=function(p){var J=_.PO("web_pbj_log_warning_rate",0);J=J>0&&Math.random()<J;if(!_.e(p,_.vt))return J&&_.xQ(Error("bj")),!1;var S;return _.z("shorts_controller_retrieve_seedless_sequence_v2")&&((S=_.e(p,_.vt))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:rgt(p)?!0:(J&&_.xQ(Error("cj")),!1)};
rgt=function(p){var J=(_.e(p,_.lj)||_.e(p,_.vt)).videoId;if(!J||!wTw.test(J))return!1;var S;return(p=(S=_.e(p.commandMetadata,_.i7))==null?void 0:S.url)&&(p.includes(J)||p.startsWith("/clip"))?!0:!1};
_.cgX=function(){var p=_.Gv();return p.getFlag(192)?p.getFlag(190):!(_.z("web_watch_cinematics_disabled_by_default")||_.z("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&xhW())};
_.Mk=function(p,J,S){var H={};H.currentUrl=J;H.vis=p.vis!==void 0?p.vis:0;H.splay=!1;J=_.Gv();H.autoCaptionsDefaultOn=J.getFlag(66);J.getFlag(141)?J.getFlag(140)?H.autonavState="STATE_OFF":H.autonavState="STATE_ON":H.autonavState="STATE_NONE";H.html5Preference="HTML5_PREF_WANTS";isNaN(_.jn("STS"))||(H.signatureTimestamp=_.jn("STS"));p.autonav&&(H.autoplay=!0,H.autonav=!0);p.mutedAutoplay&&(H.autoplay=!0,H.mutedAutoplay=!0);p.inlinePlayback&&(H.autoplay=!0,H.autonav=!1,H.isInlineUnmutedPlayback=!!p.inlineUnmuted);
H.referer=S;H.lactMilliseconds=p.lact!==void 0?p.lact.toString():"-1";_.z("enable_unknown_lact_fix_on_html5")&&H.lactMilliseconds==="-1"&&_.xQ(new _.TG("Unknown LACT is set in playbackContext.",{"lact in tempData":p.lact||"undefined",autonav:p.autonav||"undefined"}));p={};J.getFlag(194)&&(p.hasShownAmbientMode=!0);J.getFlag(192)&&(p.hasToggledOffAmbientMode=!0);_.cgX()&&(p.watchAmbientModeEnabled=!0);H.watchAmbientModeContext=p;return H};
Iww=function(p){var J={},S=p.pbis||0;S&&(J.playbackBeginsInSeconds=S);p.prefetch_reason&&p.prefetch_reason==="hc_pbis"&&(J.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return J};
LDg=function(p,J){var S;if(J==null?0:(S=J.requestTemplate)==null?0:S.panelId)p.panelId=J.requestTemplate.panelId;var H;if(J==null?0:(H=J.requestTemplate)==null?0:H.params)p.params=J.requestTemplate.params};
JfW=function(){if(pAL)return pAL();var p=!_.z("idb_response_store_auth_killswitch"),J={};pAL=vB("yt-it-response-store",{objectStores:(J.ResponseStore={addedAtVersion:1},J),shared:!p,upgrade:function(S,H){H(1)&&(S=SD(S,"ResponseStore",{keyPath:["key","clientName"]}),HL(S,"byExpiration","expireTimestampMs"),HL(S,"byInterface","clientName"))},
version:1});return pAL()};
Sb3=function(p){return _.R6(JfW(),p)};
Mz9=function(p,J){var S;return _.G(function(H){return H.nextAddress==1?H.yield(_.F$(),2):(S=H.yieldResult)?H.return(new Hhi(p,J,S)):H.return()})};
XA4=function(p){var J=Object.keys(p)[0];if(J)return p.screenExit&&(J=J+";"+p.screenExit.screen),J};
ihv=function(p){var J=new Map;p=_.K(p);for(var S=p.next();!S.done;S=p.next())S=S.value,S!=null&&(J.has(S.taskType)||J.set(S.taskType,[]),J.get(S.taskType).push(S));return J};
Roi=function(p){p=[].concat(_.dW(p)).sort(function(S,H){return S-H});
var J=Math.floor(p.length/2);return p.length%2?p[J]:(p[J-1]+p[J])/2};
nxW=function(p,J){p=p===void 0?uB9:p;J=J===void 0?{}:J;_.m$("yt.logging.errors.log",_.jD);TnW();K0k(Ez9(),J);window.onerror=p;ZhL=dr4;window.addEventListener("unhandledrejection",function(S){if(S.reason instanceof Error){var H=S.reason;_.cL(H,{source:"unhandledrejection"});H.name==="AbortError"&&(H.level="WARNING")}dr4(S.reason);S.preventDefault()})};
_.Gcv=function(p){var J,S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w,I,Z3,vg,yX,Pg,ov,NW,TW,Ys,Go,$U,LL,fd,Qv,t8,Wp,ON,KL;return _.G(function(HE){if(HE.nextAddress==1)return HE.yield(_.mg(p,{mode:"readonly",enableRetries:!0},function(o8){return FD(o8,"playbackData").then(function(xU){var eL=xU.map(function(Fn){return Fn.transfer}).filter(function(Fn){return!!Fn}),Ld=xU.map(function(Fn){return Fn.offlineVideoPolicy}).filter(function(Fn){return!!Fn}),QV=xU.filter(function(Fn){return!!Fn.key}).map(function(Fn){return _.io(_.Hq(Fn.key).entityId,
"downloadStatusEntity")});
eL=FD(o8,"transfer",eL);Ld=FD(o8,"offlineVideoPolicy",Ld);QV=FD(o8,"downloadStatusEntity",QV);var YU=eL.then(function(Fn){Fn=Fn.reduce(function(vE,XP){(XP==null?0:XP.offlineVideoStreams)&&vE.push.apply(vE,_.dW(XP.offlineVideoStreams));return vE},[]).filter(function(vE){return!!vE});
return FD(o8,"offlineVideoStreams",Fn)});
return pO.all([eL,Ld,YU,QV]).then(function(Fn){var vE=_.K(Fn);Fn=vE.next().value;var XP=vE.next().value;var wk=vE.next().value;vE=vE.next().value;return[xU,Fn,XP,wk,vE]})})}),2);
if(HE.nextAddress!=3)return J=HE.yieldResult,HE.yield(_.mg(p,{mode:"readonly",enableRetries:!0},function(o8){return FD(o8,"mainDownloadsListEntity").then(function(xU){var eL,Ld;return(Ld=(eL=xU[0])==null?void 0:eL.downloads)!=null?Ld:[]})}),3);
S=HE.yieldResult;H=_.K(J);M=H.next().value;X=H.next().value;Z=H.next().value;n=H.next().value;b=H.next().value;F=M;f=X;O=Z;A=n;P=b;W={};y={};t={};D={};k={};E=[];a=_.K(f);for(q=a.next();!q.done;q=a.next())(w=q.value)&&(W[w.key]=w);I=_.K(O);for(Z3=I.next();!Z3.done;Z3=I.next())(vg=Z3.value)&&(y[vg.key]=vg);yX=_.K(P);for(Pg=yX.next();!Pg.done;Pg=yX.next())(ov=Pg.value)&&(t[ov.key]=ov);NW=_.K(A);for(TW=NW.next();!TW.done;TW=NW.next())(Ys=TW.value)&&(D[Ys.key]=Ys);Go=_.K(S);for($U=Go.next();!$U.done;$U=
Go.next())LL=$U.value,fd=void 0,k[(fd=LL.videoItem)!=null?fd:""]=!0,LL.videoItem&&(t8=Qv=void 0,Wp=(t8=(Qv=_.Hq(LL.videoItem))==null?void 0:Qv.entityId)!=null?t8:"",E.push({externalVideoId:Wp}));ON=F.filter(function(o8){if(!o8||!o8.key||!o8.offlineVideoPolicy)return!1;o8=_.Hq(o8.key).entityId;o8=_.io(o8,"downloadStatusEntity");var xU;return!(o8&&((xU=t[o8])==null?void 0:xU.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
KL=ON.map(function(o8){var xU=W[o8.transfer],eL=[];if(xU==null?0:xU.offlineVideoStreams)for(var Ld=_.K(xU.offlineVideoStreams),QV=Ld.next();!QV.done;QV=Ld.next())(QV=D[QV.value])&&eL.push(QV);Ld=y[o8.offlineVideoPolicy];QV=k;var YU=o8==null?void 0:o8.playerResponseTimestamp,Fn=_.Hq(Ld.key).entityId;o8=_.io(Fn,"mainVideoEntity");if(Ld.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var vE="OFFLINE_VIDEO_STATE_DISABLED";Ld.expirationTimestamp&&Number(Ld.expirationTimestamp)<Date.now()/1E3&&(vE="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Ld.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")vE="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(xU==null?void 0:xU.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":vE="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":vE="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":vE="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":vE="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":vE="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":vE="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:vE="OFFLINE_VIDEO_STATE_UNKNOWN"}if(vE==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(xU==null?void 0:xU.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":vE="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":vE="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":vE=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Fn={id:Fn,videoState:vE};if(xU==null?0:xU.cotn)Fn.cotn=xU.cotn;if(xU==null?0:xU.maximumDownloadQuality)Fn.selectedVideoQuality=xU==null?void 0:xU.maximumDownloadQuality;if(xU==null?0:xU.lastProgressTimeMs)Fn.lastProgressTimeMs=xU.lastProgressTimeMs;YU&&(Fn.playerResponseSavedTimeMs=String(Number(YU)*1E3));xU=String;YU=0;eL=_.K(eL);for(vE=eL.next();!vE.done;vE=eL.next())if(vE=vE.value,vE.streamsProgress){vE=_.K(vE.streamsProgress);for(var XP=vE.next();!XP.done;XP=
vE.next()){var wk=void 0;YU+=Number((wk=XP.value.numBytesDownloaded)!=null?wk:0)}}Fn.downloadedBytes=xU(YU);Fn.selectedOfflineMode=QV[o8]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Ld.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Fn.offlinePlaybackDisabledReason=Ld.offlinePlaybackDisabledReason);return Fn});
return HE.return({offlineVideos:KL,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:E}}})})};
bh3=function(){var p;return _.G(function(J){return J.nextAddress==1?J.yield(_.n$(),2):(p=J.yieldResult)?J.return(_.Gcv(p)):J.return({state:"PES Unavailable"})})};
vxw=function(){var p,J,S,H;return _.G(function(M){if(M.nextAddress==1)return M.yield(_.n$(),2);if(M.nextAddress!=3)return(p=M.yieldResult)?M.yield(mdi(p),3):M.return({state:"PES Unavailable"});J=M.yieldResult;S={};H=J.reduce(function(X,Z){X[Z.key]=Z;return X},S);
return M.return(F04(H))})};
F04=function(p){for(var J={},S=[],H=_.K(Object.keys(p)),M=H.next();!M.done;M=H.next()){var X=M.value;M=p[X];var Z=void 0;if(((Z=M)==null?void 0:Z.entityType)==="mainVideoEntity"){delete p[X];var n=M.data;M={};if(n){var b=void 0;Z=(b=n.videoId)!=null?b:"vid-"+X;X=p;M.video=n;delete M.video.formattedDescription;delete M.video.thumbnail;n.owner&&(b=X[n.owner],b==null?0:b.data)&&(delete X[b.key],M.video.owner=b.data,delete M.video.owner.avatar);if(n=n.downloadState)if(b=X[n],b==null?0:b.data)if(delete X[n],
n=b.data.playbackData)if(b=X[n],b!=null&&b.data){delete X[n];n=b.data;delete n.playerResponseJson;M.playbackData=n;if(n.transfer&&(b=X[n.transfer],b==null?0:b.data)){delete X[b.key];var F=b.data;M.transfer=F;b=[];F=_.K(F.offlineVideoStreams||[]);for(var f=F.next();!f.done;f=F.next())if(f=X[f.value])delete X[f.key],b.push(f.data);b&&(M.streams=b)}(n=n.offlineVideoPolicy)&&(n=X[n])&&n.data&&(delete X[n.key],M.offlineVideoPolicy=n.data)}J[Z]=M}}else M&&M.entityType==="offlineOrchestrationActionWrapperEntity"&&
M.data&&(delete p[M.key],Z=M.data,X=void 0,S.push({id:Z.rootActionId,type:((X=Z.actionProto)==null?void 0:X.actionType)||"",entity:M}))}J.wrapperEntities=S;Object.keys(p).length>0&&(J.unknownKeys=p);return J};
fft=function(){var p,J,S,H,M,X,Z,n,b;return _.G(function(F){if(F.nextAddress==1)return p=(new _.pH("")).hasLocalStorage(),H=!!((J=_.Hg.crypto)==null?0:(S=J.subtle)==null?0:S.importKey),M=!!_.Hg.BroadcastChannel,X=!!_.Hg.navigator.locks,F.yield(fYX(),2);Z=F.yieldResult;n=p&&H&&M&&X&&Z;b={isSupported:n};if(n)return F.return(b);b.missingBrowserFeatures=[];Z||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");p||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
H||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");M||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");X||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return F.return(b)})};
Ohk=function(p,J,S,H){var M=!1,X={contentId:void 0,contentType:"video"};J=_.K(Object.entries(J));for(var Z=J.next();!Z.done;Z=J.next()){var n=_.K(Z.value);Z=n.next().value;n=n.next().value;p.includes(Z)&&!S.has(n)?(X.contentId=n,S.add(n),M=!0):Z==="contentType"?n==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(X.contentType="playlist"):typeof n==="object"&&n!==null&&Ohk(p,n,S,H)}M&&H.push(X)};
Afi=function(){var p;return!((p=Xi?Xi:null)==null||!p.window)};
_.zot=function(p){if(_.CL()&&_.os9("Chromium")>=120){var J=_.Pi3().mediaSession;try{J.setActionHandler("enterpictureinpicture",function(){p()})}catch(S){}}};
$ds=function(p){for(var J=[],S=_.K(document.styleSheets),H=S.next(),M={};!H.done;M={node$jscomp$779:void 0},H=S.next())M.node$jscomp$779=H.value.ownerNode,M.node$jscomp$779&&(M.node$jscomp$779 instanceof HTMLStyleElement||M.node$jscomp$779 instanceof HTMLLinkElement)&&J.push(new Promise(function(X){return function(Z){var n=X.node$jscomp$779.cloneNode(!0);n.onload=function(){Z()};
n.onerror=function(){_.xQ(Error("tj"));Z()};
p.document.head.appendChild(n)}}(M)));
return Promise.all(J)};
gxL=function(p){var J=[_.m9(oxX),_.m9(eo3),_.m9(W03)];QPi(window.document.documentElement,p.document.documentElement,[_.m9(CiW),_.m9(yfL),_.m9(Bqk),_.m9(Udv),_.m9(sPs)]);QPi(window.document.body,p.document.body,J)};
QPi=function(p,J,S){p=_.K(p.attributes);for(var H=p.next();!H.done;H=p.next())if(H=H.value)try{_.Zr(S,J,H.name,H.value)}catch(M){}};
hoW=function(p,J){p=new _.ib(p.document.documentElement);p.start(tzL,J);return p};
Ddi=function(p){var J=p.document.documentElement;J.addEventListener("click",function(S){zF9(J,S)});
J.addEventListener("touchstart",function(S){QgW(S)});
J.addEventListener("mousedown",function(S){QgW(S)})};
Nqv=function(p,J,S,H){H=H===void 0?!1:H;J=new kcX(J||p,S||p);return{x:p.x+((H===void 0?0:H)?J.lengthX*-1:J.lengthX)*.2,y:p.y+((H===void 0?0:H)?J.lengthY*-1:J.lengthY)*.2}};
Tqg=function(p){if(!p)return!1;var J=p.status==="OK"||p.status==="LIVE_STREAM_OFFLINE",S,H,M,X=(M=(S=p.errorScreen)==null?void 0:S.playerLegacyDesktopYpcTrailerRenderer)!=null?M:(H=p.errorScreen)==null?void 0:H.ypcTrailerRenderer;return!!J||!!X};
_.ddi=function(p,J){if(!p)return!1;var S,H=(S=p.errorScreen)==null?void 0:S.playerLegacyDesktopYpcOfferRenderer,M;J=!!(J==null?0:(M=J.playerOverlayRenderer)==null?0:M.gatedActionsOverlayRenderer);return!!Tqg(p)||!!H||!!J};
Vzi=function(p){return uts(p,0,"gclid",p.search(lfs))>=0||uts(p,0,"gad_source",p.search(lfs))>=0};
qbv=function(p){var J=[],S=0;return{clear:function(){S=J.length=0},
push:function(H){J[S]=H;S=(S+1)%p},
iterate:function(){return function M(){var X,Z,n,b;return _.R$(M,function(F){switch(F.nextAddress){case 1:_.C_(F,2),X=J.length,Z=0;case 4:if(!(Z<X)){F.jumpTo(2);break}n=S+Z;b=_.KT;return F.yield(J[n%X],7);case 7:b(F.yieldResult);Z++;F.jumpTo(4);break;case 2:_.WZ(F),_.yV(F,0)}})}()}}};
afL=function(p){p.eventsToIgnore||(p.eventsToIgnore=[]);var J=p.eventsToIgnore.map(oHg),S=new Set(J),H=qbv(p.bufferSize);return{flush:function(){var M=Array.from(H.iterate());H.clear();M=M.map(function(X){return{name:X.name,timestamp:X.startTime,attributes:X.attributes}});
return JSON.stringify(M)},
onSpanStart:function(M){M.name==="event"&&S.has(M.attributes.type)||H.push(M)}}};
Ex9=function(p){p=afL(p);var J=p.flush;z9X({onSpanStart:p.onSpanStart});LH.subscribe("handleError",function(S){try{S.params.breadcrumbs=J()}catch(H){_.jD(H,"WARNING")}})};
Ybs=function(){eU("web_tracing_action");_.W9("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
rfw=function(){eU("web_tracing_action");_.W9("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
xdX=function(p,J,S){if(J===void 0){jPv||(rfw(),setInterval(rfw,6E5),jPv=!0);var H="web_tracing_action"}else H=J;var M,X=((M=p.endTime)!=null?M:p.startTime)-p.startTime;M={};S=wAW(p.name,X,p.startTime,{webTracing:(M[p.name]=p.attributes,M)},S,H,{spanStatus:p.status});if(p.children)for(p=_.K(p.children),H=p.next();!H.done;H=p.next())xdX(H.value,J,S)};
cfv=function(p){var J=CqX.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(S){S.data&&typeof S.data==="object"&&(S=S.data,S.from==="extension"&&S.app==="yt.telemetry"&&(J("Received message from extension",S),p.onMessage(S)))});
return function(S,H){S={app:"yt.telemetry",from:"app",key:S,payload:H};J("Sending message to extension",S);window.postMessage(S,"*")}};
Ift=function(){var p=p===void 0?3E3:p;var J=cfv({onMessage:function(){}}),S=[];
return{onSpanEnd:function(H){H.parentId==null&&S.push(H)===1&&setTimeout(function(){var M=[].concat(_.dW(S));S.length=0;J("spansReported",{spans:M})},p)}}};
L09=function(p){p=p===void 0?400:p;var J=[],S=[];return{start:function(){return M2i({checkoutEveryNth:p,emit:function(H,M){M&&(J=S,S=[]);S.push(H)}})},
getRecording:function(){return[].concat(_.dW(J),_.dW(S))}}};
S$X=function(){(new pMw({sessionReplayEvents:_.PO("web_tracing_session_replay",0)})).subscribe(function(p){if(p.sessionReplayEvents>0)try{var J=L09(p.sessionReplayEvents);J.start();if(_.z("web_tracing_session_replay_demo")){var S=console.log;window.exportSessionReplay=function(){var H=JSON.stringify(J.getRecording(),null,2);H=JR3(new Blob([H],{type:"text/plain"}));var M=document.createElement("a");M.download="session_replay.json";M.dataset.downloadurl=["application/json",M.download,M.href].join(":");
M.style.display="none";M.href=H;M.click();URL.revokeObjectURL(H);S("View replay at go/yt-session-replay-viewer")}}}catch(H){_.xQ(Error("vj"))}})};
MOW=function(){var p=window.fetch;window.fetch=function(){var J=_.Yp.apply(0,arguments),S=_.K(J),H=S.next().value;S=S.next().value;var M=rI("httpEvent",{method:(S===void 0?{}:S).method||"GET",path:H8k(H),type:"fetch"},{active:!1});return p.apply(null,_.dW(J)).then(function(X){M.addAttributes({statusCode:X.status,statusText:X.statusText});M.end();return X}).catch(function(X){M.end("SPAN_STATUS_ERROR");
throw X;})}};
XM9=function(){var p=XMLHttpRequest.prototype.open,J=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(S,H,M,X,Z){var n=this;M=M===void 0?!0:M;this._requestData={method:S,url:H.toString()};this.addEventListener("load",function(){var b=n._span;b==null||b.addAttributes({statusCode:n.status,responseContentLength:n.responseText.length});b==null||b.end()});
this.addEventListener("error",function(){var b=n._span;b==null||b.addAttributes({statusCode:n.status,statusText:n.statusText});b==null||b.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var b=n._span;b==null||b.addAttributes({statusCode:n.status,aborted:!0});b==null||b.end()});
p.apply(this,[S,H,M,X,Z])};
XMLHttpRequest.prototype.send=function(S){var H=this._requestData||{method:"N/A",url:"N/A"};this._span=rI("httpEvent",{method:H.method,path:H8k(H.url),type:"xhr"},{active:!1});J.apply(this,[S])}};
H8k=function(p){try{if(p instanceof URL)return p.pathname;p instanceof Request&&(p=p.url);return(new URL(p,"https://youtube.com")).pathname}catch(J){return"<unable to parse path>"}};
Rn9=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var p=window.performance.getEntriesByType("navigation");if(p.length>0){var J=p[0],S=window.performance.timeOrigin;rI("pageLoad",{navigationType:i8t(J.type),unloadEventStart:Math.round(J.unloadEventStart),unloadEventEnd:Math.round(J.unloadEventEnd),domInteractive:Math.round(J.domInteractive),domContentLoadedEventStart:Math.round(J.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(J.domContentLoadedEventEnd),
domComplete:Math.round(J.domComplete),loadEventStart:Math.round(J.loadEventStart),loadEventEnd:Math.round(J.loadEventEnd),redirectCount:J.redirectCount},{active:!1,startTime:S+J.startTime,endTime:S+J.loadEventEnd})}}catch(H){}})};
i8t=function(p){switch(p){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
b8W=function(){for(var p=Km3.value,J={},S=_.K(p.enabledSpansArray),H=S.next();!H.done;H=S.next())J[H.value]=!0;PqX({sessionId:Xyt(),enabledSpans:J,shouldSampleFn:function(M,X,Z){if(Z83){var n;return M==="shortToShort"||(Z==null?void 0:(n=Z.rootSpan())==null?void 0:n.name)==="shortToShort"}return!0}});
Qli();YO("pageLoad")&&Rn9();YO("httpEvent")&&(MOW(),XM9());p.exportToCsi&&z9X(nu3);p.exportToDevTools&&z9X(Ift());p.maxBreadcrumbs>0&&Ex9({eventsToIgnore:Gj3,bufferSize:p.maxBreadcrumbs})};
mYi=function(p){return new Promise(function(J){window.setTimeout(J,p)})};
Fmi=function(p){var J={bicf:function(X){p.oOc=X},
blc:function(){return p.getLatestChallengeResponse()},
bcr:function(X){p.sLa.push(X)}},S=window;
S.ntpevasrs=J;if(S.ntpqfbel!==void 0)for(var H=_.K(S.ntpqfbel),M=H.next();!M.done;M=H.next())M=M.value,M(J);S.ntpqfbel=void 0};
vu4=function(p){return _.G(function(J){if(J.nextAddress==1)return _.oI(J,2),J.yield(p.zHO(),4);if(J.nextAddress!=2)return _.X$(J,0);_.BZ(J);_.UK(J)})};
f6X=function(p){var J,S;(J=p.ytcsi)==null||(S=J.tick)==null||S.call(J,"pot_ist")};
O84=function(p){if(p instanceof Error){var J=_.Id("yt.logging.errors.log");J&&J(p,"WARNING")}};
AR4=function(p){try{var J=JSON.parse(p);if(J.bgChallenge)return J}catch(S){}};
znL=function(){var p=window,J={networkStatusManagerPromise:_.vO().resolve(new JP4(_.RJ)),initialChallengeSli:_.z("wpo_att_sli")?new _.Wtk("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};p=p===void 0?window:p;var S=p.ytAtR,H;J==null||(H=J.initialChallengeSli)==null||_.ZF(H);if(S){if(S=AR4(S)){var M;J==null||(M=J.initialChallengeSli)==null||_.nT(M,"SUCCESS");Pmt(S,J)}p.ytAtR=void 0}else p.ytAtRC=function(X){if(X=AR4(X)){var Z;J==null||(Z=J.initialChallengeSli)==null||
_.nT(Z,"SUCCESS");Pmt(X,J);p.ytAtRC=void 0}}};
en9=function(){if($YX)return $YX;try{var p=_.Q0("IFRAME");_.Lt(p,_.fA(ous));p.sandbox.add("allow-same-origin");p.style.display="none";document.body.appendChild(p);return $YX=p}catch(J){p=new _.TG("Failed to create sandbox iframe"),_.jD(p)}};
Wmi=function(p){var J,S;return(S=p==null?void 0:(J=p.contentWindow)==null?void 0:J.fetch)!=null?S:window.fetch};
Q_3=function(p){var J,S;return(S=p==null?void 0:(J=p.contentWindow)==null?void 0:J.Request)!=null?S:window.Request};
CmW=function(p){var J,S;return(S=p==null?void 0:(J=p.contentWindow)==null?void 0:J.TextDecoder)!=null?S:window.TextDecoder};
yR3=function(){return function(p,J){_.jn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[p]=J}};
BtW=function(){return function(p,J){var S={};S[p]=J;p=_.c5(_.NBX)(S);Object.keys(p).length>0&&_.o5(p)}};
guv=function(){if(K5t()==="hidden")var p="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else K5t()==="visible"&&(p="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",UYX=null);p&&s_s(p)};
s_s=function(p){if(p==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||p==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(tOg===p)return;tOg=p}var J=9E4+Math.random()*2E3;if(p!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.AV()>J)&&K5t()==="visible"){J=-1;UYX&&(J=Math.round((0,_.fO)()-UYX));var S=String;var H=_.Id("_fact",window);H=H==null||H==-1?-1:Math.max(Date.now()-H,0);_.YQ("foregroundHeartbeat",{firstActivityMs:S(H),clientDocumentNonce:io4,index:String(hnt),lastEventDeltaMs:String(J),trigger:p});
_.m$("_fact",-1,window);hnt++;UYX=(0,_.fO)()}};
DYk=function(p,J,S,H,M,X){J=new Uint8Array(J);if(p.length===0)return J;var Z=0;M=M!=null?M:p.length-1;for(var n=S;n<=M;n++){var b=p[n],F=n===S?H:0,f=void 0,O=n===M?(f=X)!=null?f:b.length:b.length;b=b.subarray(F,O);J.set(b,Z);Z+=b.length}return J};
_.kj4=function(){try{return!!self.sessionStorage}catch(p){return!1}};
Nt4=function(){var p=navigator;return new Promise(function(J,S){var H;(H=p.webkitTemporaryStorage)!=null&&H.queryUsageAndQuota?p.webkitTemporaryStorage.queryUsageAndQuota(function(M,X){J({usage:M,quota:X})},function(M){S(M)}):S(Error("Ej"))})};
Tt9=function(p,J){var S={errorSeverity:J.errorSeverity.toString(),wizFeatureFlags:Object.entries(J.featureFlags).join("\n")};Nn9(J,S);J=J.errorSeverity;J===3?_.jD(p,"ERROR",void 0,void 0,void 0,S):J===2&&_.jD(p,"WARNING",void 0,void 0,void 0,S);_.z("cow_if_errors_in_popup")&&J===3&&p.message.indexOf("<If>")!==-1&&window.alert(p.message)};
dY4=function(p,J){var S=a5.get(p)||{layerNode:J};S.layerNode=J;A_k(p,S);p.getScreenLayer=function(){return GJ(S.layerNode)}};
uxv=function(p){var J;p=p.parentNode;for(var S;p&&((J=a5.get(p))==null||!J.isRenderer)&&!((S=p.polymerController)!=null?S:p).isRenderer_;)p=p.parentNode||p.host;if(J=p)return a5.get(J)};
l6v=function(p){if(p){a5.delete(p);var J=_.vO().resolve(Oy);WFi(p,J)}};
q$s=function(p,J,S){if(S===void 0?0:S){if(S=p.getAttribute("client-ve-type"),J.data&&!J.disableReactiveLogging||S)_.uf(function(){VOk(p,_.a2(J.data))},"xg"),_.VY(function(){return void l6v(p)})}else typeof J.data!=="function"&&VOk(p,J.data)};
VOk=function(p,J){a6i++;EuL(p,J)&&_.wg.addJob(function(){_.bb(_.wg,function(){if(EuL(p,J)&&p.ownerDocument.documentElement===document.documentElement&&p){var S;if(p.getAttribute("layer")){var H=S=Number(p.getAttribute("layer")),M=a5.get(p);M?M.layerNode.layer=H:dY4(p,new Y$v(H));(H=uxv(p))&&(M=a5.get(p))!=null&&(M.layerNode.parent=H.layerNode)}else if(S=a5.get(p))S=GJ(S.layerNode);else{S=GJ;H=new Y$v;if(M=uxv(p))H.parent=M.layerNode;dY4(p,H);S=S(H)}S!=null||(S=0);H=p.getAttribute("client-ve-type");
M=Number(H);var X=!1;H=!1;var Z=a5.get(p),n;if((n=Z)&&!(n=Z[rR9]!==J)&&(n=M)){var b;n=((b=a5.get(p))==null?void 0:b.clientVeType)===void 0}n&&(Z[rR9]=J,X=H=Z.isRenderer=!0);a5.has(p)&&(a5.get(p).clientVeType=M);p.visualElement&&(H=!0);if(_.z("wiz_next_ld_fix_client_ve_spec")){var F;b=((F=_.e(J==null?void 0:J.rendererContext,_.Fj))==null?void 0:F.loggingDirectives)||(J==null?void 0:J.loggingDirectives)}else b=J==null?void 0:J.loggingDirectives;b&&b.clientVeSpec&&(F=j_t(_.nI(),p),F=_.wMi(_.bC(),b,F||
void 0,S))&&(p.visualElement=F);!p.visualElement&&M&&X&&(p.veType=M,F=void 0,_.z("wiz_next_client_ve_parent_fix")&&(F=j_t(_.nI(),p)),F=_.G$(_.bC(),p,F,S),p.visualElement=F);H&&(F=_.vO().resolve(Oy),B3w(p,{data:J,observer:F,layer:S,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
EuL=function(p,J){return(J==null?0:J.trackingParams)||(J==null?0:J.loggingDirectives)||_.e(J==null?void 0:J.rendererContext,_.Fj)||p.getAttribute("client-ve-type")?!0:!1};
xYW=function(p,J,S){p.componentType!==gr&&S instanceof HTMLElement&&J&&!_.z("cow_logging_in_component_wrapper")&&q$s(S,J,!0)};
prt=function(){if(!cRW){cRW=!0;var p=_.z("enable_wiz_context_per_component")||!1;p=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.z("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:p,enableContextBasedComponentStacks:p},{handleError:Tt9,enableComponentStacksInErrorMessages:!1});Object.assign(GA,p);pfv=I6g;Lm4();Xfi=jXv;SBs=xpi}};
Lm4=function(){_.z("cow_logging_in_component_wrapper")?(HWL=function(p,J){J instanceof HTMLElement&&q$s(J,p,!0)},qLi=function(){}):(HWL=function(){},qLi=xYW)};
Jhk=function(p,J,S){J=J===void 0?{}:J;var H,M=(H=_.e(p.commandMetadata,_.i7))==null?void 0:H.url;H=J.form||{};!S||H.element||H.skipDefaultElement||(J.form=J.form||{},J.form.element=S);if(M&&M!=="/service_ajax")return{type:0,command:p,form:J.form};if(_.z("kevlar_service_command_check")){if(_.ln(_.vO().resolve(_.Ac),p))return Object.assign({},{type:1,command:p},J)}else{var X;if((X=_.e(p.commandMetadata,_.i7))==null?0:X.apiUrl)return Object.assign({},{type:1,command:p},J)}return{type:2,command:p,form:J.form}};
S14=function(p){if(p.form){var J=p.form,S=Object.assign({},J);J=J.element;S=(delete S.element,S);if(J)return[_.pl(J,[p.command,S,p.commandController])]}return[]};
HwW=function(p){if(p.form){var J=p.form,S=Object.assign({},J);J=J.element;S=(delete S.element,S);J&&_.JP(J,[p.command],J,S)}};
Xrv=function(p,J,S){var H=new MlX(p,J),M=new m2(p,J,S);p={"/youtubei/v1/browse":new Fi(p,J,S),"/youtubei/v1/player":H,"/youtubei/v1/navigation/resolve_url":new vu,"/youtubei/v1/next":M,"/youtubei/v1/guide":new fT(S),"/youtubei/v1/search":new O0(p,J,S),"/youtubei/v1/reel/reel_item_watch":new A7(p,J,S),"/youtubei/v1/get_watch":new Pu(H,M)};p["/youtubei/v1/account/account_menu"]=new zJ;p["/youtubei/v1/notification/get_notification_menu"]=new $I;return p};
eN=function(){var p=_.vO().resolve(_.o$);return Promise.resolve(iwi(p,_.Hg.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
Rfv=function(p){return p&&(p=_.Wu(_.b29(p)))?(new URLSearchParams(p)).get("service"):null};
yb=function(p,J){_.SK(_.Qb(),function(){_.Qf("adl")});
_.vO().resolve(KJw)(J);p=p.root;p.loadData&&p.loadData(J);(J==null?0:J.response)?_.nT(yQ3(),"SUCCESS"):_.xQ(new _.TG("Lifecycle: No response in data",_.wY("IS_SHELL_LOAD"),J?J.page:"NO_PAGE",J?J.endpoint:"NO_ENDPOINT"));p.polymerController.$["page-manager"].lazyPrepareCriticalPages((J==null?void 0:J.page)||"",J.endpoint);var S,H;((H=_.e(J==null?void 0:(S=J.endpoint)==null?void 0:S.commandMetadata,_.i7))==null?0:H.webPageType)&&_.rl().dispatch(_.CT(_.e(J.endpoint.commandMetadata,_.i7).webPageType))};
ZwW=function(){var p,J;return _.G(function(S){switch(S.nextAddress){case 1:p=window;if(!p.getDataPromise){S.jumpTo(2);break}_.oI(S,3);return S.yield(p.getDataPromise(),5);case 5:return S.return(S.yieldResult);case 3:return _.BZ(S),S.yield(eN(),6);case 6:return S.return(S.yieldResult);case 2:if(p.getInitialData)return J=p.getInitialData(),p.getInitialData=void 0,S.return(J);throw Error("Gj`"+_.Hg.location.href);}})};
GEs=function(){_.rY("CSI_SERVICE_NAME","youtube");_.o5({loadType:"cold"});_.z("kevlar_log_lcp")&&n7i(function(p){_.Qf("lcp",p.value)})};
bwv=function(){var p=_.xc(document.location.href,"enable");p&&p.indexOf("scraper")>-1&&_.rY("ADD_SCRAPER_ATTRIBUTES",!0)};
Owk=function(p){var J=p.root;p=[mSW,FJi,_.Bu];_.z("web_feedback_endpoint_autolog_allowlist_killswitch")&&p.push(_.U0,v7t);fHW(function(S,H){return Jhk(S,H,J)},function(S){if(!S.command)return[];
var H;((H=S.form)==null?0:H.element)?S.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},S.form,{endpoint:S.command})})):J.handleNavigate(S);return[]},p);
_.vO().addProvider({provide:_.Ov,useValue:_.R4.instance})};
Pti=function(){var p={},J={},S;for(S in AhX){var H=_.K(_.eQ(AhX[S],void 0,"IAtZ7"));p[S]=H.next().value;J[S]=H.next().value}return[p,function(M){for(var X in M){var Z=void 0;(Z=J[X])==null||Z(M[X])}}]};
_.o7X=function(p,J){var S=!1;S=S===void 0?!1:S;var H=_.T6.getValueByKeys(p,"contents","twoColumnWatchNextResults","results","results","contents"),M=_.T6.getValueByKeys(p,"contents","twoColumnWatchNextResults","playlist","playlist")||null;S&&(M=null);var X=S=null;if(M)S=_.T6.getValueByKeys(M,"titleText"),X=_.T6.unsafeClone(_.T6.getValueByKeys(M,"longBylineText")),H="",X&&(H=_.E4(X)),X=_.aR(H);else if(H){H=_.K(H);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.videoPrimaryInfoRenderer&&(S=_.T6.getValueByKeys.apply(_.T6,
[Z].concat(_.dW(zf9)))),Z.videoSecondaryInfoRenderer&&(X=_.T6.getValueByKeys.apply(_.T6,[Z].concat(_.dW($Sv))))}else _.SB(Error("Lj"));var n;p.currentVideoEndpoint?n=p.currentVideoEndpoint:_.SB(Error("Mj"));var b;J&&(b=_.T6.getValueByKeys(J,"playabilityStatus","miniplayer","miniplayerRenderer"));p={miniplayerTitle:S,miniplayerSubtitle:X,watchEndpoint:n,playlistData:M};b&&(p.miniplayerRenderer=b);return p};
ef9=function(p){if(p)return _.CI(p)};
_.WJi=function(){return{isFullscreen:function(){throw Error("Nj");},
toggleFullscreen:function(){throw Error("Oj");},
exitFullscreen:function(){throw Error("Pj");},
isAutonavEnabled:function(){throw Error("Qj");},
setAutonavEnabled:function(){throw Error("Rj");},
isAutoplaySetExplicitly:function(){throw Error("Sj");}}};
QTX=function(p){return p.videoDuration?p.numTaps>1&&p.tapDirection!==0?_.s0(p.draggedTime/p.videoDuration,0,1):_.s0((p.playedTime||0)/p.videoDuration,0,1):0};
CtX=function(p){return p.videoDuration?p.isDragging||p.numTaps>1&&p.tapDirection!==0?_.s0(p.draggedTime/p.videoDuration,0,1):_.s0((p.playedTime||0)/p.videoDuration,0,1):0};
BEW=function(p){var J,S,H;return _.e(p==null?void 0:(J=p.markersMap)==null?void 0:(S=J.find(function(M){return M.key==="HEATSEEKER"}))==null?void 0:(H=S.value)==null?void 0:H.heatmap,yh9)};
USX=function(p){var J,S;return(S=(J=BEW(p))==null?void 0:J.heatMarkersDecorations)!=null?S:[]};
sTW=function(p){if(_.z("mweb_supported_chapters_killswitch"))return!0;var J;return!!(p==null?0:(J=p.markersMap)==null?0:J.find(function(S){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(S.key)}))};
_.g7w=function(p){var J=Object,S=J.assign,H;p={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(H=p==null?void 0:p.getPlayerState())!=null?H:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return S.call(J,{},{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,lastTapTime: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})};
tl3=function(p){return function(J){var S=p(),H,M=(H=S.playerApi)==null?void 0:H.getPlayerState();J&&J!==S.playerState&&(J===1||J===2)&&S.setState({playerState:M})}};
DSW=function(p){return function(J){var S=p(),H=S.playerApi;H&&(J==null?void 0:J.type)==="newdata"&&(hfv&&(clearTimeout(hfv),hfv=void 0),_.z("web_shorts_use_progress_state_for_gapless")?(J=H==null?void 0:H.getProgressState(J==null?void 0:J.playertype),J=J.seekableEnd-J.seekableStart):J=H==null?void 0:H.getDuration(J==null?void 0:J.playertype),S.setState({playedTime:0,videoDuration:J}))}};
kE9=function(p){return function(J){var S=p(),H=S.playerApi;if(H){var M=H.getPresentingPlayerType();_.z("web_shorts_use_progress_state_for_gapless")?(H=H.getProgressState(M),H=H.seekableEnd-H.seekableStart):H=H.getDuration(M);S.setState({playedTime:J,videoDuration:H})}}};
TEs=function(p){_.WY(112394,p,function(){return NEk},function(J){NEk=J})};
lHX=function(p,J){if(!p)return[];var S,H,M;p=((S=p.markersMap)==null?void 0:(H=S.find(function(X){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(X.key)}))==null?void 0:(M=H.value)==null?void 0:M.chapters)||[];
!dSL(p)||(J==null?0:J.ignoreStub)||(p=[uuW()].concat(_.dW(p)));return p};
uuW=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
dSL=function(p){if(p.length===0)return!1;var J;return((J=_.e(p[0],gs))==null?void 0:J.timeRangeStartMillis)!==0};
t7=function(p){return p?p.timeRangeStartMillis||0:0};
q1t=function(p,J){if(p.isDragging&&J)return p=Vlt(p,J),p===-1?uuW():lHX(J)[p]};
Vlt=function(p,J){return p.isDragging&&J?lHX(J,{ignoreStub:!0}).findIndex(function(S,H,M){S=aHt(p);return E7v(S,M,H).scrubberHovering}):-1};
aHt=function(p){return Object.assign({},p,{videoDuration:p.videoDuration*1E3,playedTime:p.playedTime*1E3,draggedTime:p.draggedTime*1E3})};
E7v=function(p,J,S){var H=t7(_.e(J[S],gs));J=t7(_.e(J[S+1],gs))||p.videoDuration;S=p.isDragging;var M;if(M=p.isDragging)M=p.draggedTime,M=M!==null&&M>=H&&M<J;var X=p.playedTime;return X!==null&&X>=H&&X<J?{videoPosition:"active",isScrubbing:S,scrubberHovering:M}:p.playedTime<H?{videoPosition:"pending",isScrubbing:S,scrubberHovering:M}:{videoPosition:"seen",isScrubbing:S,scrubberHovering:M}};
Y1t=function(p,J){return p.videoPosition==="seen"||(J===void 0?0:J)>0};
rh4=function(p,J,S){J=p/J.storyboardInterval;var H=lHX(S);if(!H.length)return-J*72;S=0;H=_.K(H);for(var M=H.next();!M.done;M=H.next())if(t7(_.e(M.value,gs))/1E3<p)S++;else break;return-(J*72)-S*56};
jTi=function(p){return p?p.width/p.columns:0};
wri=function(p){return p.isHovering?p.hoveredTime:p.draggedTime};
xSt=function(p,J){p=p.draggedTime*1E3;return p>=J.visibleTimeRangeStartMillis&&p<=J.visibleTimeRangeEndMillis};
_.ch9=function(p){if(p===void 0||Number.isNaN(p))return"--:--";var J=Math.abs(Math.floor(p)),S=Math.floor(J/86400),H=Math.floor(J%86400/3600),M=Math.floor(J%3600/60);J=Math.floor(J%60);var X="";S>0&&(X+=S+":",H<10&&(X+="0"));if(S>0||H>0)X+=H+":",M<10&&(X+="0");X+=M+":";J<10&&(X+="0");X+=J;return p>=0?X:"-"+X};
IH9=function(p,J){return function(){var S=wri(p());var H=J();var M=p().playerApi;if(M&&M.getNumberOfStoryboardLevels()!==0){var X=M.getStoryboardFrameIndex(S,1);X!==-1?H=M.getStoryboardFrame(X,1):(S=M.getStoryboardFrameIndex(S,0),M=M.getStoryboardFrame(S,0),H&&M&&(M.height*=3,M.width*=3),H=M)}else H=null;if(!H)return null;J()&&(H.width=90*H.columns,H.height=160*H.rows);return H}};
_.h7=function(p){if(!p||p.getVideoData)return p};
LJ4=function(){var p;return{playerApi:(p=_.nG())!=null?p:void 0}};
pV4=function(p){var J;_.G(function(S){if(S.nextAddress==1)return S.yield(_.Zp(),2);if(J=S.yieldResult)J.unMute(!0),J.setVolume(p,!0);_.UK(S)})};
JNw=function(p,J){p&&(p.value=""+J,p.style.setProperty("--gradient-percent",J+"%"))};
SQ4=function(p){var J;return(J=p==null?void 0:p.value)!=null?J:0};
H6L=function(){var p;_.G(function(J){if(J.nextAddress==1)return J.yield(_.Zp(),2);p=J.yieldResult;if(!p)return J.return();p.isMuted()?p.unMute(!0):p.mute(!0);_.UK(J)})};
Muv=function(p){var J=_.vO().resolve(_.DF).getPlayerElement();J&&p&&(p===1?J.pause():J.play())};
XV3=function(p){return!!_.e(p,_.kI)||!!_.e(p,_.Nk)};
i6X=function(p){_.L1(p,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
RNW=function(p){_.L1(p,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
Z6X=function(p){return _.VS(p.document.body,function(){return _.m(Kas,null)},"kh")};
n1g=function(){var p;return(p=navigator.userActivation)==null?void 0:p.isActive};
Gwt=function(){var p=window.performance.getEntriesByType("navigation");return p?p.map(function(J){return J.type}).includes("reload"):!1};
Pkv=function(){TJ(TJ(TJ(TJ(TJ(TJ(TJ(_.vO().resolve(_.ds),_.b6g),_.m5X),_.Fa4),_.v1i),_.fbi),_.O6w),_.ANv)};
zNW=function(p,J){J=J===void 0?!1:J;var S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return J||!_.z("kevlar_shorts_seedless_retry_initial_load")||(S=window,H=!(!S.getDataPromise&&!S.getInitialData),H)?Z.yield(ZwW(),2):(setTimeout(zNW.bind(window,p,!0),1E3),Z.return());if(Z.nextAddress!=3)return M=Z.yieldResult,Z.yield($5k(M),3);X=Z.yieldResult;yb(p,X);_.UK(Z)})};
$5k=function(p){var J;if((J=p.response)==null||!J.replacementEndpoint)return _.SU(p);J=_.vO().resolve(_.o$);p=p.response;_.e(p.replacementEndpoint,_.vt)&&p.sequenceContinuation&&(_.e(p.replacementEndpoint,_.vt).sequenceParams=p.sequenceContinuation);return ub(J,p.replacementEndpoint,{},_.Hg.location.href,"shorts",function(){},function(){return!1})};
eNL=function(p){var J=_.vO().resolve(o1X);p.playerResponse&&J.handleResponse(p.playerResponse);p.response&&J.handleResponse(p.response)};
Wai=function(p){var J=_.rl(),S,H=_.e((S=p.response)==null?void 0:S.frameworkUpdates,ES),M;S=_.e((M=p.playerResponse)==null?void 0:M.frameworkUpdates,ES);var X;p=_.e((X=p.reelWatchSequenceResponse)==null?void 0:X.frameworkUpdates,ES);H&&_.bo(H,J);S&&_.bo(S,J);p&&_.bo(p,J)};
Qbi=function(p){var J;_.z("enable_redirect_linking_for_desktop_web_client")&&((J=window.location.hash)==null?0:J.includes("redirect_state"))&&p.url&&(p.url=p.url.toString()+window.location.hash)};
BhX=function(p){var J=_.vO(),S=J.resolve(_.o$);J=J.resolve(_.Ckw);p.endpoint&&(S=yNt(S,p.endpoint),S.content&&p.response&&_.lb(J,p.response,S.content),S.player&&p.playerResponse&&_.lb(J,p.playerResponse,S.player),S.reelSequence&&p.reelWatchSequenceResponse&&_.lb(J,p.reelWatchSequenceResponse,S.reelSequence))};
Vb=function(p,J){eNL(J);Wai(J);var S;(J==null?0:J.url)&&((S=window.location.hash)==null?0:S.includes("redirect_state"))&&(Qbi(J),(S=Rfv(J.url))&&_.IV(p.root,"yt-initialize-third-party",[S,J]));BhX(J);S=_.vO();var H=S.resolve(U5g);J.playerResponse&&S.resolve(sbk).handleResponse(J.playerResponse);if(J.playerResponse){S=void 0;if(_.z("ab_v_vid_sig")&&J.endpoint){var M,X=(M=_.e(J.endpoint,_.lj))!=null?M:_.e(J.endpoint,_.vt);X&&(S=X.videoId)}g13(H,J.playerResponse,S)}J.playerResponse&&rYk(J.playerResponse)&&
_.z("web_enable_ab_rsp_cl")?g5X().then(function(){tu3(H,J.playerResponse);yb(p,J)}):yb(p,J)};
D5t=function(p){if(p=p.root.data){var J=_.vO().resolve(hNL);p.endpoint&&(p.response&&J.handleResponse(p.response,void 0,document.querySelector("ytd-app")),p.playerResponse&&J.handleResponse(p.playerResponse),p.reelWatchSequenceResponse&&J.handleResponse(p.reelWatchSequenceResponse))}};
kwi=function(p){var J,S,H,M,X,Z;return _.G(function(n){switch(n.nextAddress){case 1:J=window;if(!J.getDataPromise){n.jumpTo(2);break}_.oI(n,3);return n.yield(J.getDataPromise(),5);case 5:S=n.yieldResult;Vb(p,S);_.X$(n,4);break;case 3:return _.BZ(n),n.yield(eN(),6);case 6:H=n.yieldResult,yb(p,H);case 4:return n.return();case 2:if(!_.z("sw_nav_preload_pbj")){n.jumpTo(7);break}J.fetchInitialData=function(){var b;return _.G(function(F){if(F.nextAddress==1)return F.yield(eN(),2);b=F.yieldResult;yb(p,b);
_.UK(F)})};
if(J.getInitialData){J.loadInitialData=function(b){Vb(p,b)};
M=J.getInitialData();J.getInitialData=void 0;Vb(p,M);n.jumpTo(8);break}J.fetchInitialData=void 0;return n.yield(eN(),9);case 9:X=n.yieldResult,yb(p,X);case 8:return n.return();case 7:J.getInitialData?(Z=J.getInitialData(),J.getInitialData=void 0,Vb(p,Z)):J.loadInitialData=function(b){Vb(p,b)},_.UK(n)}})};
Th9=function(){var p=new Nh3;_.wOg(p);p.registerInitializationCallback(function(){XYX(void 0,void 0,void 0,_.z("web_enable_mss_batching_ks")?void 0:{batchingStrategy:"BATCH"})});
p.registerCallback("error",function(J,S,H){_.xv(Error("Wj`"+S+"`"+H))})};
d5i=typeof Object.create=="function"?Object.create:function(p){var J=function(){};
J.prototype=p;return new J};
uw4=typeof Object.defineProperties=="function"?Object.defineProperty:function(p,J,S){if(p==Array.prototype||p==Object.prototype)return p;p[J]=S.value;return p};
lbi=function(p){p=["object"==typeof globalThis&&globalThis,p,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var J=0;J<p.length;++J){var S=p[J];if(S&&S.Math==Math)return S}throw Error("a");};
_.vh=lbi(this);VuW="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.vh.BigInt64Array&&(VuW.push("BigInt64"),VuW.push("BigUint64"));var abi=function(p,J){if(J)for(var S=0;S<VuW.length;S++)qQX(VuW[S]+"Array.prototype."+p,J)},qk=function(p,J){J&&qQX(p,J)},qQX=function(p,J){var S=_.vh;
p=p.split(".");for(var H=0;H<p.length-1;H++){var M=p[H];if(!(M in S))return;S=S[M]}p=p[p.length-1];H=S[p];J=J(H);J!=H&&J!=null&&uw4(S,p,{configurable:!0,writable:!0,value:J})},E1X=function(){function p(){function S(){}
new S;Reflect.construct(S,[],function(){});
return new S instanceof S}
if(typeof Reflect!="undefined"&&Reflect.construct){if(p())return Reflect.construct;var J=Reflect.construct;return function(S,H,M){S=J(S,H);M&&Reflect.setPrototypeOf(S,M.prototype);return S}}return function(S,H,M){M===void 0&&(M=S);
M=d5i(M.prototype||Object.prototype);return Function.prototype.apply.call(S,M,H)||M}}(),YQX;
if(typeof Object.setPrototypeOf=="function")YQX=Object.setPrototypeOf;else{var rNw;a:{var jbs={a:!0},wVg={};try{wVg.__proto__=jbs;rNw=wVg.a;break a}catch(p){}rNw=!1}YQX=rNw?function(p,J){p.__proto__=J;if(p.__proto__!==J)throw new TypeError("b`"+p);return p}:null}a$=YQX;
_.Q=function(p,J){p.prototype=d5i(J.prototype);p.prototype.constructor=p;if(a$)a$(p,J);else for(var S in J)if(S!="prototype")if(Object.defineProperties){var H=Object.getOwnPropertyDescriptor(J,S);H&&Object.defineProperty(p,S,H)}else p[S]=J[S];p.superClass_=J.prototype};
x5k=function(p){var J=0;return function(){return J<p.length?{done:!1,value:p[J++]}:{done:!0}}};
_.K=function(p){var J=typeof Symbol!="undefined"&&Symbol.iterator&&p[Symbol.iterator];if(J)return J.call(p);if(typeof p.length=="number")return{next:x5k(p)};throw Error("c`"+String(p));};
HW=function(p){for(var J,S=[];!(J=p.next()).done;)S.push(J.value);return S};
_.dW=function(p){return p instanceof Array?p:HW(_.K(p))};
_.YI=function(p){return E0(p,p)};
E0=function(p,J){p.raw=J;Object.freeze&&(Object.freeze(p),Object.freeze(J));return p};
rs=function(p,J){return Object.prototype.hasOwnProperty.call(p,J)};
cNW=function(p){if(p==null)throw new TypeError("d");return Object(p)};
IbL=typeof Object.assign=="function"?Object.assign:function(p,J){p=cNW(p);for(var S=1;S<arguments.length;S++){var H=arguments[S];if(H)for(var M in H)rs(H,M)&&(p[M]=H[M])}return p};
qk("Object.assign",function(p){return p||IbL});
var jN=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Law=function(p){if(p.isRunning_)throw new TypeError("f");
p.isRunning_=!0};
jN.prototype.JSC$8871_next_=function(p){this.yieldResult=p};
var pg8=function(p,J){p.abruptCompletion_={exception:J,isException:!0};p.nextAddress=p.catchAddress_||p.finallyAddress_};
jN.prototype.return=function(p){this.abruptCompletion_={return:p};this.nextAddress=this.finallyAddress_};
jN.prototype.yield=function(p,J){this.nextAddress=J;return{value:p}};
jN.prototype.jumpTo=function(p){this.nextAddress=p};
_.UK=function(p){p.nextAddress=0};
_.oI=function(p,J,S){p.catchAddress_=J;S!=void 0&&(p.finallyAddress_=S)};
_.C_=function(p,J){p.catchAddress_=0;p.finallyAddress_=J||0};
_.X$=function(p,J,S){p.nextAddress=J;p.catchAddress_=S||0};
_.BZ=function(p,J){p.catchAddress_=J||0;J=p.abruptCompletion_.exception;p.abruptCompletion_=null;return J};
_.WZ=function(p,J,S,H){H?p.finallyContexts_[H]=p.abruptCompletion_:p.finallyContexts_=[p.abruptCompletion_];p.catchAddress_=J||0;p.finallyAddress_=S||0};
_.yV=function(p,J,S){S=p.finallyContexts_.splice(S||0)[0];(S=p.abruptCompletion_=p.abruptCompletion_||S)?S.isException?p.nextAddress=p.catchAddress_||p.finallyAddress_:S.jumpTo!=void 0&&p.finallyAddress_<S.jumpTo?(p.nextAddress=S.jumpTo,p.abruptCompletion_=null):p.nextAddress=p.finallyAddress_:p.nextAddress=J};
J9o=function(p){this.JSC$8876_context_=new jN;this.program_=p};
HLp=function(p,J){Law(p.JSC$8876_context_);var S=p.JSC$8876_context_.yieldAllIterator_;if(S)return Sin(p,"return"in S?S["return"]:function(H){return{value:H,done:!0}},J,p.JSC$8876_context_.return);
p.JSC$8876_context_.return(J);return ws(p)};
Sin=function(p,J,S,H){try{var M=J.call(p.JSC$8876_context_.yieldAllIterator_,S);if(!(M instanceof Object))throw new TypeError("e`"+M);if(!M.done)return p.JSC$8876_context_.isRunning_=!1,M;var X=M.value}catch(Z){return p.JSC$8876_context_.yieldAllIterator_=null,pg8(p.JSC$8876_context_,Z),ws(p)}p.JSC$8876_context_.yieldAllIterator_=null;H.call(p.JSC$8876_context_,X);return ws(p)};
ws=function(p){for(;p.JSC$8876_context_.nextAddress;)try{var J=p.program_(p.JSC$8876_context_);if(J)return p.JSC$8876_context_.isRunning_=!1,{value:J.value,done:!1}}catch(S){p.JSC$8876_context_.yieldResult=void 0,pg8(p.JSC$8876_context_,S)}p.JSC$8876_context_.isRunning_=!1;if(p.JSC$8876_context_.abruptCompletion_){J=p.JSC$8876_context_.abruptCompletion_;p.JSC$8876_context_.abruptCompletion_=null;if(J.isException)throw J.exception;return{value:J.return,done:!0}}return{value:void 0,done:!0}};
Mtq=function(p){this.next=function(J){Law(p.JSC$8876_context_);p.JSC$8876_context_.yieldAllIterator_?J=Sin(p,p.JSC$8876_context_.yieldAllIterator_.next,J,p.JSC$8876_context_.JSC$8871_next_):(p.JSC$8876_context_.JSC$8871_next_(J),J=ws(p));return J};
this.throw=function(J){Law(p.JSC$8876_context_);p.JSC$8876_context_.yieldAllIterator_?J=Sin(p,p.JSC$8876_context_.yieldAllIterator_["throw"],J,p.JSC$8876_context_.JSC$8871_next_):(pg8(p.JSC$8876_context_,J),J=ws(p));return J};
this.return=function(J){return HLp(p,J)};
this[Symbol.iterator]=function(){return this}};
_.R$=function(p,J){J=new Mtq(new J9o(J));a$&&p.prototype&&a$(J,p.prototype);return J};
Xgn=function(p){function J(H){return p.next(H)}
function S(H){return p.throw(H)}
return new Promise(function(H,M){function X(Z){Z.done?H(Z.value):Promise.resolve(Z.value).then(J,S).then(X,M)}
X(p.next())})};
_.G=function(p){return Xgn(new Mtq(new J9o(p)))};
qk("Symbol",function(p){if(p)return p;var J=function(X,Z){this.$jscomp$symbol$id_=X;uw4(this,"description",{configurable:!0,writable:!0,value:Z})};
J.prototype.toString=function(){return this.$jscomp$symbol$id_};
var S="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",H=0,M=function(X){if(this instanceof M)throw new TypeError("g");return new J(S+(X||"")+"_"+H++,X)};
return M});
qk("Symbol.iterator",function(p){if(p)return p;p=Symbol("h");uw4(Array.prototype,p,{configurable:!0,writable:!0,value:function(){return iL8(x5k(this))}});
return p});
qk("Symbol.asyncIterator",function(p){return p?p:Symbol("i")});
iL8=function(p){p={next:p};p[Symbol.iterator]=function(){return this};
return p};
_.e0=function(p){var J=p[Symbol.asyncIterator];return J!==void 0?J.call(p):new R44(_.K(p))};
R44=function(p){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return p};
this.next=function(J){return Promise.resolve(p.next(J))};
this["throw"]=function(J){return new Promise(function(S,H){var M=p["throw"];M!==void 0?S(M.call(p,J)):(S=p["return"],S!==void 0&&S.call(p),H(new TypeError("j")))})};
p["return"]!==void 0&&(this["return"]=function(J){return Promise.resolve(p["return"](J))})};
_.Yp=function(){for(var p=Number(this),J=[],S=p;S<arguments.length;S++)J[S-p]=arguments[S];return J};
_.KT=function(p){return p};
qk("globalThis",function(p){return p||_.vh});
qk("Reflect",function(p){return p?p:{}});
qk("Reflect.construct",function(){return E1X});
qk("Reflect.setPrototypeOf",function(p){return p?p:a$?function(J,S){try{return a$(J,S),!0}catch(H){return!1}}:null});
qk("Promise",function(p){function J(){this.batch_=null}
function S(Z){return Z instanceof M?Z:new M(function(n){n(Z)})}
if(p&&(typeof _.vh.PromiseRejectionEvent!=="undefined"||!_.vh.Promise||_.vh.Promise.toString().indexOf("[native code]")===-1))return p;J.prototype.asyncExecute=function(Z){if(this.batch_==null){this.batch_=[];var n=this;this.asyncExecuteFunction(function(){n.executeBatch_()})}this.batch_.push(Z)};
var H=_.vh.setTimeout;J.prototype.asyncExecuteFunction=function(Z){H(Z,0)};
J.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var Z=this.batch_;this.batch_=[];for(var n=0;n<Z.length;++n){var b=Z[n];Z[n]=null;try{b()}catch(F){this.asyncThrow_(F)}}}this.batch_=null};
J.prototype.asyncThrow_=function(Z){this.asyncExecuteFunction(function(){throw Z;})};
var M=function(Z){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var n=this.createResolveAndReject_();try{Z(n.resolve,n.reject)}catch(b){n.reject(b)}};
M.prototype.createResolveAndReject_=function(){function Z(F){return function(f){b||(b=!0,F.call(n,f))}}
var n=this,b=!1;return{resolve:Z(this.resolveTo_),reject:Z(this.JSC$8908_reject_)}};
M.prototype.resolveTo_=function(Z){if(Z===this)this.JSC$8908_reject_(new TypeError("n"));else if(Z instanceof M)this.settleSameAsPromise_(Z);else{a:switch(typeof Z){case "object":var n=Z!=null;break a;case "function":n=!0;break a;default:n=!1}n?this.resolveToNonPromiseObj_(Z):this.fulfill_(Z)}};
M.prototype.resolveToNonPromiseObj_=function(Z){var n=void 0;try{n=Z.then}catch(b){this.JSC$8908_reject_(b);return}typeof n=="function"?this.settleSameAsThenable_(n,Z):this.fulfill_(Z)};
M.prototype.JSC$8908_reject_=function(Z){this.settle_(2,Z)};
M.prototype.fulfill_=function(Z){this.settle_(1,Z)};
M.prototype.settle_=function(Z,n){if(this.state_!=0)throw Error("o`"+Z+"`"+n+"`"+this.state_);this.state_=Z;this.result_=n;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
M.prototype.scheduleUnhandledRejectionCheck_=function(){var Z=this;H(function(){if(Z.notifyUnhandledRejection_()){var n=_.vh.console;typeof n!=="undefined"&&n.error(Z.result_)}},1)};
M.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var Z=_.vh.CustomEvent,n=_.vh.Event,b=_.vh.dispatchEvent;if(typeof b==="undefined")return!0;typeof Z==="function"?Z=new Z("unhandledrejection",{cancelable:!0}):typeof n==="function"?Z=new n("unhandledrejection",{cancelable:!0}):(Z=_.vh.document.createEvent("CustomEvent"),Z.initCustomEvent("unhandledrejection",!1,!0,Z));Z.promise=this;Z.reason=this.result_;return b(Z)};
M.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var Z=0;Z<this.onSettledCallbacks_.length;++Z)X.asyncExecute(this.onSettledCallbacks_[Z]);this.onSettledCallbacks_=null}};
var X=new J;M.prototype.settleSameAsPromise_=function(Z){var n=this.createResolveAndReject_();Z.callWhenSettled_(n.resolve,n.reject)};
M.prototype.settleSameAsThenable_=function(Z,n){var b=this.createResolveAndReject_();try{Z.call(n,b.resolve,b.reject)}catch(F){b.reject(F)}};
M.prototype.then=function(Z,n){function b(A,P){return typeof A=="function"?function(W){try{F(A(W))}catch(y){f(y)}}:P}
var F,f,O=new M(function(A,P){F=A;f=P});
this.callWhenSettled_(b(Z,F),b(n,f));return O};
M.prototype.catch=function(Z){return this.then(void 0,Z)};
M.prototype.callWhenSettled_=function(Z,n){function b(){switch(F.state_){case 1:Z(F.result_);break;case 2:n(F.result_);break;default:throw Error("p`"+F.state_);}}
var F=this;this.onSettledCallbacks_==null?X.asyncExecute(b):this.onSettledCallbacks_.push(b);this.isRejectionHandled_=!0};
M.resolve=S;M.reject=function(Z){return new M(function(n,b){b(Z)})};
M.race=function(Z){return new M(function(n,b){for(var F=_.K(Z),f=F.next();!f.done;f=F.next())S(f.value).callWhenSettled_(n,b)})};
M.all=function(Z){var n=_.K(Z),b=n.next();return b.done?S([]):new M(function(F,f){function O(W){return function(y){A[W]=y;P--;P==0&&F(A)}}
var A=[],P=0;do A.push(void 0),P++,S(b.value).callWhenSettled_(O(A.length-1),f),b=n.next();while(!b.done)})};
return M});
var xI=function(p,J,S){if(p==null)throw new TypeError("q`"+S);if(J instanceof RegExp)throw new TypeError("r`"+S);return p+""};
qk("String.prototype.startsWith",function(p){return p?p:function(J,S){var H=xI(this,J,"startsWith"),M=H.length,X=J.length;S=Math.max(0,Math.min(S|0,H.length));for(var Z=0;Z<X&&S<M;)if(H[S++]!=J[Z++])return!1;return Z>=X}});
qk("Object.setPrototypeOf",function(p){return p||a$});
qk("Symbol.dispose",function(p){return p?p:Symbol("s")});
qk("SuppressedError",function(p){function J(S,H,M){if(!(this instanceof J))return new J(S,H,M);M=Error(M);"stack"in M&&(this.stack=M.stack);this.message=M.message;this.error=S;this.suppressed=H}
if(p)return p;_.Q(J,Error);J.prototype.name="SuppressedError";return J});
qk("Array.from",function(p){return p?p:function(J,S,H){S=S!=null?S:function(n){return n};
var M=[],X=typeof Symbol!="undefined"&&Symbol.iterator&&J[Symbol.iterator];if(typeof X=="function"){J=X.call(J);for(var Z=0;!(X=J.next()).done;)M.push(S.call(H,X.value,Z++))}else for(X=J.length,Z=0;Z<X;Z++)M.push(S.call(H,J[Z],Z));return M}});
var Kiv=function(p,J,S){p instanceof String&&(p=String(p));for(var H=p.length,M=0;M<H;M++){var X=p[M];if(J.call(S,X,M,p))return{i:M,v:X}}return{i:-1,v:void 0}};
qk("Array.prototype.find",function(p){return p?p:function(J,S){return Kiv(this,J,S).v}});
qk("WeakMap",function(p){function J(){}
function S(b){var F=typeof b;return F==="object"&&b!==null||F==="function"}
function H(b){if(!rs(b,X)){var F=new J;uw4(b,X,{value:F})}}
function M(b){var F=Object[b];F&&(Object[b]=function(f){if(f instanceof J)return f;Object.isExtensible(f)&&H(f);return F(f)})}
if(function(){if(!p||!Object.seal)return!1;try{var b=Object.seal({}),F=Object.seal({}),f=new p([[b,2],[F,3]]);if(f.get(b)!=2||f.get(F)!=3)return!1;f.delete(b);f.set(F,4);return!f.has(b)&&f.get(F)==4}catch(O){return!1}}())return p;
var X="$jscomp_hidden_"+Math.random();M("freeze");M("preventExtensions");M("seal");var Z=0,n=function(b){this.JSC$8916_id_=(Z+=Math.random()+1).toString();if(b){b=_.K(b);for(var F;!(F=b.next()).done;)F=F.value,this.set(F[0],F[1])}};
n.prototype.set=function(b,F){if(!S(b))throw Error("t");H(b);if(!rs(b,X))throw Error("u`"+b);b[X][this.JSC$8916_id_]=F;return this};
n.prototype.get=function(b){return S(b)&&rs(b,X)?b[X][this.JSC$8916_id_]:void 0};
n.prototype.has=function(b){return S(b)&&rs(b,X)&&rs(b[X],this.JSC$8916_id_)};
n.prototype.delete=function(b){return S(b)&&rs(b,X)&&rs(b[X],this.JSC$8916_id_)?delete b[X][this.JSC$8916_id_]:!1};
return n});
qk("Map",function(p){if(function(){if(!p||typeof p!="function"||!p.prototype.entries||typeof Object.seal!="function")return!1;try{var n=Object.seal({x:4}),b=new p(_.K([[n,"s"]]));if(b.get(n)!="s"||b.size!=1||b.get({x:4})||b.set({x:4},"t")!=b||b.size!=2)return!1;var F=b.entries(),f=F.next();if(f.done||f.value[0]!=n||f.value[1]!="s")return!1;f=F.next();return f.done||f.value[0].x!=4||f.value[1]!="t"||!F.next().done?!1:!0}catch(O){return!1}}())return p;
var J=new WeakMap,S=function(n){this[0]={};this[1]=X();this.size=0;if(n){n=_.K(n);for(var b;!(b=n.next()).done;)b=b.value,this.set(b[0],b[1])}};
S.prototype.set=function(n,b){n=n===0?0:n;var F=H(this,n);F.list||(F.list=this[0][F.id]=[]);F.entry?F.entry.value=b:(F.entry={next:this[1],previous:this[1].previous,head:this[1],key:n,value:b},F.list.push(F.entry),this[1].previous.next=F.entry,this[1].previous=F.entry,this.size++);return this};
S.prototype.delete=function(n){n=H(this,n);return n.entry&&n.list?(n.list.splice(n.index,1),n.list.length||delete this[0][n.id],n.entry.previous.next=n.entry.next,n.entry.next.previous=n.entry.previous,n.entry.head=null,this.size--,!0):!1};
S.prototype.clear=function(){this[0]={};this[1]=this[1].previous=X();this.size=0};
S.prototype.has=function(n){return!!H(this,n).entry};
S.prototype.get=function(n){return(n=H(this,n).entry)&&n.value};
S.prototype.entries=function(){return M(this,function(n){return[n.key,n.value]})};
S.prototype.keys=function(){return M(this,function(n){return n.key})};
S.prototype.values=function(){return M(this,function(n){return n.value})};
S.prototype.forEach=function(n,b){for(var F=this.entries(),f;!(f=F.next()).done;)f=f.value,n.call(b,f[1],f[0],this)};
S.prototype[Symbol.iterator]=S.prototype.entries;var H=function(n,b){var F=b&&typeof b;F=="object"||F=="function"?J.has(b)?F=J.get(b):(F=""+ ++Z,J.set(b,F)):F="p_"+b;var f=n[0][F];if(f&&rs(n[0],F))for(n=0;n<f.length;n++){var O=f[n];if(b!==b&&O.key!==O.key||b===O.key)return{id:F,list:f,index:n,entry:O}}return{id:F,list:f,index:-1,entry:void 0}},M=function(n,b){var F=n[1];
return iL8(function(){if(F){for(;F.head!=n[1];)F=F.previous;for(;F.next!=F.head;)return F=F.next,{done:!1,value:b(F)};F=null}return{done:!0,value:void 0}})},X=function(){var n={};
return n.previous=n.next=n.head=n},Z=0;
return S});
qk("Set",function(p){if(function(){if(!p||typeof p!="function"||!p.prototype.entries||typeof Object.seal!="function")return!1;try{var S=Object.seal({x:4}),H=new p(_.K([S]));if(!H.has(S)||H.size!=1||H.add(S)!=H||H.size!=1||H.add({x:4})!=H||H.size!=2)return!1;var M=H.entries(),X=M.next();if(X.done||X.value[0]!=S||X.value[1]!=S)return!1;X=M.next();return X.done||X.value[0]==S||X.value[0].x!=4||X.value[1]!=X.value[0]?!1:M.next().done}catch(Z){return!1}}())return p;
var J=function(S){this.JSC$8930_map_=new Map;if(S){S=_.K(S);for(var H;!(H=S.next()).done;)this.add(H.value)}this.size=this.JSC$8930_map_.size};
J.prototype.add=function(S){S=S===0?0:S;this.JSC$8930_map_.set(S,S);this.size=this.JSC$8930_map_.size;return this};
J.prototype.delete=function(S){S=this.JSC$8930_map_.delete(S);this.size=this.JSC$8930_map_.size;return S};
J.prototype.clear=function(){this.JSC$8930_map_.clear();this.size=0};
J.prototype.has=function(S){return this.JSC$8930_map_.has(S)};
J.prototype.entries=function(){return this.JSC$8930_map_.entries()};
J.prototype.values=function(){return this.JSC$8930_map_.values()};
J.prototype.keys=J.prototype.values;J.prototype[Symbol.iterator]=J.prototype.values;J.prototype.forEach=function(S,H){var M=this;this.JSC$8930_map_.forEach(function(X){return S.call(H,X,X,M)})};
return J});
qk("Math.log2",function(p){return p?p:function(J){return Math.log(J)/Math.LN2}});
qk("Object.values",function(p){return p?p:function(J){var S=[],H;for(H in J)rs(J,H)&&S.push(J[H]);return S}});
qk("Object.is",function(p){return p?p:function(J,S){return J===S?J!==0||1/J===1/S:J!==J&&S!==S}});
qk("Array.prototype.includes",function(p){return p?p:function(J,S){var H=this;H instanceof String&&(H=String(H));var M=H.length;S=S||0;for(S<0&&(S=Math.max(S+M,0));S<M;S++){var X=H[S];if(X===J||Object.is(X,J))return!0}return!1}});
qk("String.prototype.includes",function(p){return p?p:function(J,S){return xI(this,J,"includes").indexOf(J,S||0)!==-1}});
qk("Object.entries",function(p){return p?p:function(J){var S=[],H;for(H in J)rs(J,H)&&S.push([H,J[H]]);return S}});
qk("Number.isFinite",function(p){return p?p:function(J){return typeof J!=="number"?!1:!isNaN(J)&&J!==Infinity&&J!==-Infinity}});
qk("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
qk("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
qk("Number.isInteger",function(p){return p?p:function(J){return Number.isFinite(J)?J===Math.floor(J):!1}});
qk("Number.isSafeInteger",function(p){return p?p:function(J){return Number.isInteger(J)&&Math.abs(J)<=Number.MAX_SAFE_INTEGER}});
qk("String.prototype.endsWith",function(p){return p?p:function(J,S){var H=xI(this,J,"endsWith");S===void 0&&(S=H.length);S=Math.max(0,Math.min(S|0,H.length));for(var M=J.length;M>0&&S>0;)if(H[--S]!=J[--M])return!1;return M<=0}});
var ZLm=function(p,J){p instanceof String&&(p+="");var S=0,H=!1,M={next:function(){if(!H&&S<p.length){var X=S++;return{value:J(X,p[X]),done:!1}}H=!0;return{done:!0,value:void 0}}};
M[Symbol.iterator]=function(){return M};
return M};
qk("Array.prototype.entries",function(p){return p?p:function(){return ZLm(this,function(J,S){return[J,S]})}});
qk("Math.trunc",function(p){return p?p:function(J){J=Number(J);if(isNaN(J)||J===Infinity||J===-Infinity||J===0)return J;var S=Math.floor(Math.abs(J));return J<0?-S:S}});
qk("Number.isNaN",function(p){return p?p:function(J){return typeof J==="number"&&isNaN(J)}});
qk("Array.prototype.keys",function(p){return p?p:function(){return ZLm(this,function(J){return J})}});
qk("Array.prototype.values",function(p){return p?p:function(){return ZLm(this,function(J,S){return S})}});
qk("Array.prototype.fill",function(p){return p?p:function(J,S,H){var M=this.length||0;S<0&&(S=Math.max(0,M+S));if(H==null||H>M)H=M;H=Number(H);H<0&&(H=Math.max(0,M+H));for(S=Number(S||0);S<H;S++)this[S]=J;return this}});
abi("fill",function(p){return p?p:Array.prototype.fill});
qk("Object.fromEntries",function(p){return p?p:function(J){var S={};if(!(Symbol.iterator in J))throw new TypeError("v`"+J);J=J[Symbol.iterator].call(J);for(var H=J.next();!H.done;H=J.next()){H=H.value;if(Object(H)!==H)throw new TypeError("w");S[H[0]]=H[1]}return S}});
qk("String.prototype.replaceAll",function(p){return p?p:function(J,S){if(J instanceof RegExp&&!J.global)throw new TypeError("x");return J instanceof RegExp?this.replace(J,S):this.replace(new RegExp(String(J).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),S)}});
qk("Object.getOwnPropertySymbols",function(p){return p?p:function(){return[]}});
qk("String.prototype.repeat",function(p){return p?p:function(J){var S=xI(this,null,"repeat");if(J<0||J>1342177279)throw new RangeError("y");J|=0;for(var H="";J;)if(J&1&&(H+=S),J>>>=1)S+=S;return H}});
qk("Array.prototype.findIndex",function(p){return p?p:function(J,S){return Kiv(this,J,S).i}});
qk("Array.prototype.flatMap",function(p){return p?p:function(J,S){var H=[];Array.prototype.forEach.call(this,function(M,X){M=J.call(S,M,X,this);Array.isArray(M)?H.push.apply(H,M):H.push(M)});
return H}});
qk("String.prototype.codePointAt",function(p){return p?p:function(J){var S=xI(this,null,"codePointAt"),H=S.length;J=Number(J)||0;if(J>=0&&J<H){J|=0;var M=S.charCodeAt(J);if(M<55296||M>56319||J+1===H)return M;J=S.charCodeAt(J+1);return J<56320||J>57343?M:(M-55296)*1024+J+9216}}});
qk("String.fromCodePoint",function(p){return p?p:function(J){for(var S="",H=0;H<arguments.length;H++){var M=Number(arguments[H]);if(M<0||M>1114111||M!==Math.floor(M))throw new RangeError("z`"+M);M<=65535?S+=String.fromCharCode(M):(M-=65536,S+=String.fromCharCode(M>>>10&1023|55296),S+=String.fromCharCode(M&1023|56320))}return S}});
qk("String.prototype.trimLeft",function(p){function J(){return this.replace(/^[\s\xa0]+/,"")}
return p||J});
qk("String.prototype.trimStart",function(p){return p||String.prototype.trimLeft});
qk("String.prototype.padStart",function(p){return p?p:function(J,S){var H=xI(this,null,"padStart");J-=H.length;S=S!==void 0?String(S):" ";return(J>0&&S?S.repeat(Math.ceil(J/S.length)).substring(0,J):"")+H}});
qk("Promise.prototype.finally",function(p){return p?p:function(J){return this.then(function(S){return Promise.resolve(J()).then(function(){return S})},function(S){return Promise.resolve(J()).then(function(){throw S;
})})}});
qk("Math.imul",function(p){return p?p:function(J,S){J=Number(J);S=Number(S);var H=J&65535,M=S&65535;return H*M+((J>>>16&65535)*M+H*(S>>>16&65535)<<16>>>0)|0}});
qk("Object.hasOwn",function(p){return p?p:function(J,S){return Object.prototype.hasOwnProperty.call(J,S)}});
qk("Math.sign",function(p){return p?p:function(J){J=Number(J);return J===0||isNaN(J)?J:J>0?1:-1}});
qk("Array.prototype.flat",function(p){return p?p:function(J){J=J===void 0?1:J;var S=[];Array.prototype.forEach.call(this,function(H){Array.isArray(H)&&J>0?(H=Array.prototype.flat.call(H,J-1),S.push.apply(S,H)):S.push(H)});
return S}});
qk("String.raw",function(p){return p?p:function(J,S){J=cNW(J);for(var H=J.raw,M=H.length,X="",Z=0;Z<M;++Z)X+=H[Z],Z+1<M&&Z+1<arguments.length&&(X+=String(arguments[Z+1]));return X}});
qk("WeakSet",function(p){if(function(){if(!p||!Object.seal)return!1;try{var S=Object.seal({}),H=Object.seal({}),M=new p([S]);if(!M.has(S)||M.has(H))return!1;M.delete(S);M.add(H);return!M.has(S)&&M.has(H)}catch(X){return!1}}())return p;
var J=function(S){this.JSC$8941_map_=new WeakMap;if(S){S=_.K(S);for(var H;!(H=S.next()).done;)this.add(H.value)}};
J.prototype.add=function(S){this.JSC$8941_map_.set(S,!0);return this};
J.prototype.has=function(S){return this.JSC$8941_map_.has(S)};
J.prototype.delete=function(S){return this.JSC$8941_map_.delete(S)};
return J});
qk("Reflect.ownKeys",function(p){return p?p:function(J){var S=[],H=Object.getOwnPropertyNames(J);J=Object.getOwnPropertySymbols(J);for(var M=0;M<H.length;M++)(H[M].substring(0,14)=="jscomp_symbol_"?J:S).push(H[M]);return S.concat(J)}});
qk("Object.getOwnPropertyDescriptors",function(p){return p?p:function(J){for(var S={},H=Reflect.ownKeys(J),M=0;M<H.length;M++)S[H[M]]=Object.getOwnPropertyDescriptor(J,H[M]);return S}});
qk("Promise.allSettled",function(p){function J(H){return{status:"fulfilled",value:H}}
function S(H){return{status:"rejected",reason:H}}
return p?p:function(H){var M=this;H=Array.from(H,function(X){return M.resolve(X).then(J,S)});
return M.all(H)}});
qk("Number.parseInt",function(p){return p||parseInt});
_._DumpException=window._DumpException||function(p){throw p;};
window._DumpException=_._DumpException;var nso=window.ytcsi;nso&&typeof nso.tick==="function"&&nso.tick("rses_dpj");var GWo,cu,I$,LT,bL8,mWv,Fiv,vsv,Bp,f3p;GWo=GWo||{};_.Hg=this||self;_.m$=function(p,J,S){p=p.split(".");S=S||_.Hg;for(var H;p.length&&(H=p.shift());)p.length||J===void 0?S[H]&&S[H]!==Object.prototype[H]?S=S[H]:S=S[H]={}:S[H]=J};
cu=function(p,J){var S=_.Id("WIZ_global_data.oxN3nb");p=S&&S[p];return p!=null?p:J};
I$=_.Hg._F_toggles_default_kevlar_base||[];LT=function(){};
LT.get=function(){return null};
_.Msv=null;_.Id=function(p,J){p=p.split(".");J=J||_.Hg;for(var S=0;S<p.length;S++)if(J=J[p[S]],J==null)return null;return J};
_.pu=function(p){p.instance_=void 0;p.getInstance=function(){return p.instance_?p.instance_:p.instance_=new p}};
_.I8=function(p){var J=typeof p;return J!="object"?J:p?Array.isArray(p)?"array":J:"null"};
_.qW=function(p){var J=_.I8(p);return J=="array"||J=="object"&&typeof p.length=="number"};
_.Ei=function(p){var J=typeof p;return J=="object"&&p!=null||J=="function"};
_.jt=function(p){return Object.prototype.hasOwnProperty.call(p,bL8)&&p[bL8]||(p[bL8]=++mWv)};
bL8="closure_uid_"+(Math.random()*1E9>>>0);mWv=0;Fiv=function(p,J,S){return p.call.apply(p.bind,arguments)};
vsv=function(p,J,S){if(!p)throw Error();if(arguments.length>2){var H=Array.prototype.slice.call(arguments,2);return function(){var M=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(M,H);return p.apply(J,M)}}return function(){return p.apply(J,arguments)}};
_.tT=function(p,J,S){_.tT=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Fiv:vsv;return _.tT.apply(null,arguments)};
_.nl=function(p,J){var S=Array.prototype.slice.call(arguments,1);return function(){var H=S.slice();H.push.apply(H,arguments);return p.apply(this,H)}};
_.JF=function(){return Date.now()};
Bp=function(p){return p};
_.SJ=function(p,J){function S(){}
S.prototype=J.prototype;p.superClass_=J.prototype;p.prototype=new S;p.prototype.constructor=p;p.base=function(H,M,X){for(var Z=Array(arguments.length-2),n=2;n<arguments.length;n++)Z[n-2]=arguments[n];return J.prototype[M].apply(H,Z)}};
f3p=function(p){return p};var OLd,A98;_.V=function(p,J,S,H){var M=arguments.length,X=M<3?J:H===null?H=Object.getOwnPropertyDescriptor(J,S):H,Z;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")X=Reflect.decorate(p,J,S,H);else for(var n=p.length-1;n>=0;n--)if(Z=p[n])X=(M<3?Z(X):M>3?Z(J,S,X):Z(J,S))||X;M>3&&X&&Object.defineProperty(J,S,X)};
_.Y=function(p,J){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(p,J)};
OLd=function(p,J){if(J!==null&&J!==void 0){if(typeof J!=="object"&&typeof J!=="function")throw new TypeError("A");if(S===void 0){if(!Symbol.dispose)throw new TypeError("C");var S=J[Symbol.dispose]}if(typeof S!=="function")throw new TypeError("D");p.stack.push({value:J,dispose:S,async:!1})}return J};
A98=function(p){function J(X){p.error=p.hasError?new SuppressedError(X,p.error,"An error was suppressed during disposal."):X;p.hasError=!0}
function S(){for(;H=p.stack.pop();)try{if(!H.async&&M===1)return M=0,p.stack.push(H),Promise.resolve().then(S);if(H.dispose){var X=H.dispose.call(H.value);if(H.async)return M|=2,Promise.resolve(X).then(S,function(Z){J(Z);return S()})}else M|=1}catch(Z){J(Z)}if(M===1)return p.hasError?Promise.reject(p.error):Promise.resolve();
if(p.hasError)throw p.error;}
var H,M=0;S()};var Pw8="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");pgv()&&Pw8.push("details:not(:has(summary))");var SiX=Pw8.join(",");_.SJ(_.pL,Error);_.pL.prototype.name="CustomError";var z4p;var $Wq=void 0,os8,e4p=typeof TextDecoder!=="undefined",GWW,nsW=typeof String.prototype.isWellFormed==="function",ZLk=typeof TextEncoder!=="undefined";var WiE;_.sV=function(p){for(var J=[],S=0,H=0;H<p.length;H++){var M=p.charCodeAt(H);M<128?J[S++]=M:(M<2048?J[S++]=M>>6|192:((M&64512)==55296&&H+1<p.length&&(p.charCodeAt(H+1)&64512)==56320?(M=65536+((M&1023)<<10)+(p.charCodeAt(++H)&1023),J[S++]=M>>18|240,J[S++]=M>>12&63|128):J[S++]=M>>12|224,J[S++]=M>>6&63|128),J[S++]=M&63|128)}return J};
WiE=function(p){for(var J=[],S=0,H=0;S<p.length;){var M=p[S++];if(M<128)J[H++]=String.fromCharCode(M);else if(M>191&&M<224){var X=p[S++];J[H++]=String.fromCharCode((M&31)<<6|X&63)}else if(M>239&&M<365){X=p[S++];var Z=p[S++],n=p[S++];M=((M&7)<<18|(X&63)<<12|(Z&63)<<6|n&63)-65536;J[H++]=String.fromCharCode(55296+(M>>10));J[H++]=String.fromCharCode(56320+(M&1023))}else X=p[S++],Z=p[S++],J[H++]=String.fromCharCode((M&15)<<12|(X&63)<<6|Z&63)}return J.join("")};var mi=String.prototype.trim?function(p){return p.trim()}:function(p){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(p)[1]},Qv8=/&/g,CwL=/</g,y9d=/>/g,Bkp=/"/g,UWn=/'/g,svU=/\x00/g,gs8=/[\x00&<>"']/;var H_=!!(I$[0]>>15&1),ttp=!!(I$[0]&1024),h4v=!!(I$[0]>>16&1),DWo=!!(I$[0]&8),kWq=!!(I$[0]&2),Nk8=!!(I$[0]&4),Tkp=!!(I$[0]&16),dWM=!!(I$[0]&128);var A9=H_?h4v:cu(610401301,!1),uXo=H_?DWo:cu(772657768,!1),l3U=H_?kWq:cu(513659523,!1),Vt4=H_?ttp||!Nk8:cu(568333945,!0),eiL=H_?Tkp:cu(1331761403,!1),$jg=H_?ttp||!dWM:cu(748402147,!0);var zW,qi8=_.Hg.navigator;zW=qi8?qi8.userAgentData||null:null;var Zt;_.ks=function(p,J){return Array.prototype.indexOf.call(p,J,void 0)};
_.MV=function(p,J,S){Array.prototype.forEach.call(p,J,S)};
_.MU=function(p,J,S){return Array.prototype.filter.call(p,J,S)};
_.d2=function(p,J,S){return Array.prototype.map.call(p,J,S)};
Zt=function(p,J,S){return Array.prototype.some.call(p,J,S)};
_.TX4=function(p,J,S){return Array.prototype.every.call(p,J,S)};var Xz=function(p){Xz[" "](p);return p};
Xz[" "]=function(){};
var k6i=function(p,J){try{return Xz(p[J]),!0}catch(S){}return!1},m1t=function(p,J,S,H){H=H?H(J):J;
return Object.prototype.hasOwnProperty.call(p,H)?p[H]:p[H]=S(J)};var a3p,Gx,EsE,Yiv,jvM,wgM,E9W,xW4,c9M,I3m,MMk,pE8,J8v,XEo,idd,RMo;_.Pi3=function(){return _.Hg.navigator||null};
a3p=vsX();_.i9=f3i();Gx=$s("Edge");EsE=Gx||_.i9;_.Rh=$s("Gecko")&&!(_.bw(_.fL(),"WebKit")&&!$s("Edge"))&&!($s("Trident")||$s("MSIE"))&&!$s("Edge");_.Ku=_.bw(_.fL(),"WebKit")&&!$s("Edge");Yiv=_.Ku&&$s("Mobile");_.r98=_.Qv9();jvM=_.Cwt();wgM=(Ui()?zW.platform==="Linux":$s("Linux"))||_.y9L();E9W=_.e4i();xW4=Wig();c9M=$s("iPad");I3m=$s("iPod");_.LiL=_.si();MMk=_.bw(_.fL(),"KaiOS");pE8=function(){var p=_.Hg.document;return p?p.documentMode:void 0};
a:{var Spv="",Hd8=function(){var p=_.fL();if(_.Rh)return/rv:([^\);]+)(\)|;)/.exec(p);if(Gx)return/Edge\/([\d\.]+)/.exec(p);if(_.i9)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(p);if(_.Ku)return/WebKit\/(\S+)/.exec(p);if(a3p)return/(?:Version)[ \/]?(\S+)/.exec(p)}();
Hd8&&(Spv=Hd8?Hd8[1]:"");if(_.i9){var MLo=pE8();if(MLo!=null&&MLo>parseFloat(Spv)){J8v=String(MLo);break a}}J8v=Spv}XEo=J8v;idd={};_.Zj=function(p){return m1t(idd,p,function(){return _.FX(XEo,p)>=0})};
if(_.Hg.document&&_.i9){var K8p=pE8();RMo=K8p?K8p:parseInt(XEo,10)||void 0}else RMo=void 0;_.Zdm=RMo;var w9X,xq9,nUp;_.nu=Wg();w9X=Wig()||$s("iPod");xq9=$s("iPad");nUp=_.Pww();_.GF=_.CL();_.Iy=_.A9i()&&!_.si();var GoM,b9,SV3,IUi,m4E,bdv;GoM={};b9=null;SV3=_.Rh||_.Ku||typeof _.Hg.btoa=="function";_.gM=function(p,J){J===void 0&&(J=0);bdv();J=GoM[J];for(var S=Array(Math.floor(p.length/3)),H=J[64]||"",M=0,X=0;M<p.length-2;M+=3){var Z=p[M],n=p[M+1],b=p[M+2],F=J[Z>>2];Z=J[(Z&3)<<4|n>>4];n=J[(n&15)<<2|b>>6];b=J[b&63];S[X++]=F+Z+n+b}F=0;b=H;switch(p.length-M){case 2:F=p[M+1],b=J[(F&15)<<2]||H;case 1:p=p[M],S[X]=J[p>>2]+J[(p&3)<<4|F>>4]+b+H}return S.join("")};
IUi=function(p){var J="";m4E(p,function(S){J+=String.fromCharCode(S)});
return J};
_.DJi=function(p){var J=[];m4E(p,function(S){J.push(S)});
return J};
_.cg=function(p){var J=p.length,S=J*3/4;S%3?S=Math.floor(S):_.nL("=.",p[J-1])&&(S=_.nL("=.",p[J-2])?S-2:S-1);var H=new Uint8Array(S),M=0;m4E(p,function(X){H[M++]=X});
return M!==S?H.subarray(0,M):H};
m4E=function(p,J){function S(b){for(;H<p.length;){var F=p.charAt(H++),f=b9[F];if(f!=null)return f;if(!_.Rv(F))throw Error("H`"+F);}return b}
bdv();for(var H=0;;){var M=S(-1),X=S(0),Z=S(64),n=S(64);if(n===64&&M===-1)break;J(M<<2|X>>4);Z!=64&&(J(X<<4&240|Z>>2),n!=64&&J(Z<<6&192|n))}};
bdv=function(){if(!b9){b9={};for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),J=["+/=","+/","-_=","-_.","-_"],S=0;S<5;S++){var H=p.concat(J[S].split(""));GoM[S]=H;for(var M=0;M<H.length;M++){var X=H[M];b9[X]===void 0&&(b9[X]=M)}}}};var I3k=typeof Uint8Array!=="undefined",VtW=!_.i9&&typeof btoa==="function",qiw=/[-_.]/g,uXW={"-":"+",_:"/",".":"="},BE={};var yv,vUq;yv=function(p,J){if(J!==BE)throw Error("J");this.JSC$8975_value_=p;if(p!=null&&p.length===0)throw Error("I");};
_.sp=function(){return F8L||(F8L=new yv(null,BE))};
vUq=function(p){return new Uint8Array(alw(p)||0)};
yv.prototype.isEmpty=function(){return this.JSC$8975_value_==null};
yv.prototype.sizeBytes=function(){var p=alw(this);return p?p.length:0};
var alw=function(p){if(BE!==BE)throw Error("J");var J=p.JSC$8975_value_;J==null||I3k&&J!=null&&J instanceof Uint8Array||(typeof J==="string"?J=a3i(J):(_.I8(J),J=null));return J==null?J:p.JSC$8975_value_=J},F8L;var YiX=void 0;var J8=typeof Symbol==="function"&&typeof Symbol()==="symbol",fqp=pd("jas",void 0,!0),unt=pd(void 0,"0di"),Js=pd(void 0,"1oa"),UN=pd(void 0,Symbol()),SNw=pd(void 0,"0ub"),MIw=pd(void 0,"0ubs"),Cvw=pd(void 0,"0ubsb"),eUt=pd(void 0,"0actk"),eI=pd("m_m","messagePrototypeMarker",!0),vy4=pd(void 0,"vps"),L8s=pd();var wg4,jv4,Yy,Odq;wg4={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};jv4=Object.defineProperties;_.Xn=J8?fqp:"internalArrayState";Odq=[];Kd(Odq,7);Yy=Object.freeze(Odq);var Qe={},A8={},A8L=function(p,J,S){this.iterable=p;this.mapper=J;this.thisArg=S};
A8L.prototype.next=function(){var p=this.iterable.next();p.done||(p.value=this.mapper.call(this.thisArg,p.value));return p};
A8L.prototype[Symbol.iterator]=function(){return this};
var P8p=Object.freeze({}),h8={};_.zMU=kU(function(p){return p!==null&&p!==void 0});var MLW=kU(function(p){return typeof p==="number"}),Hdw=kU(function(p){return typeof p==="string"}),idL=kU(function(p){return typeof p==="boolean"}),$44=kU(function(p){return p!=null&&typeof p==="object"&&typeof p.then==="function"}),lLX=kU(function(p){return typeof p==="function"}),o2=kU(function(p){return!!p&&(typeof p==="object"||typeof p==="function")});var XEW=typeof _.Hg.BigInt==="function"&&typeof _.Hg.BigInt(0)==="bigint";var hMW=kU(function(p){return XEW?p>=oUv&&p<=eMm:p[0]==="-"?RMW(p,W8m):RMW(p,Q88)}),W8m=Number.MIN_SAFE_INTEGER.toString(),oUv=XEW?BigInt(Number.MIN_SAFE_INTEGER):void 0,Q88=Number.MAX_SAFE_INTEGER.toString(),eMm=XEW?BigInt(Number.MAX_SAFE_INTEGER):void 0;var C8o=typeof Uint8Array.prototype.slice==="function",To=0,dm=0,nUi;var nP,FP,pP,mI,P8i;nP=typeof BigInt==="function"?BigInt.asIntN:void 0;_.vp=typeof BigInt==="function"?BigInt.asUintN:void 0;FP=Number.isSafeInteger;pP=Number.isFinite;mI=Math.trunc;P8i=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var flX={};var x4X={},y8p=function(){try{var p=function(){return E1X(Map,[],this.constructor)};
_.Q(p,Map);Xz(new p);return!1}catch(J){return!0}}(),ms=function(){this.JSC$8994_map_=new Map};
_.R=ms.prototype;_.R.get=function(p){return this.JSC$8994_map_.get(p)};
_.R.set=function(p,J){this.JSC$8994_map_.set(p,J);this.size=this.JSC$8994_map_.size;return this};
_.R.delete=function(p){p=this.JSC$8994_map_.delete(p);this.size=this.JSC$8994_map_.size;return p};
_.R.clear=function(){this.JSC$8994_map_.clear();this.size=this.JSC$8994_map_.size};
_.R.has=function(p){return this.JSC$8994_map_.has(p)};
_.R.entries=function(){return this.JSC$8994_map_.entries()};
_.R.keys=function(){return this.JSC$8994_map_.keys()};
_.R.values=function(){return this.JSC$8994_map_.values()};
_.R.forEach=function(p,J){return this.JSC$8994_map_.forEach(p,J)};
ms.prototype[Symbol.iterator]=function(){return this.entries()};
var Fz=function(){if(y8p)return Object.setPrototypeOf(ms.prototype,Map.prototype),Object.defineProperties(ms.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),ms;var p=function(){return E1X(Map,[],this.constructor)};
_.Q(p,Map);return p}(),ye=function(p,J,S,H){S=S===void 0?EUi:S;
H=H===void 0?EUi:H;var M=Fz.call(this)||this;M.arrayState=p[_.Xn]|0;M.valueCtor=J;M.keyToApi=S;M.valueToApi=M.valueCtor?r8L:H;for(var X=0;X<p.length;X++){var Z=p[X],n=S(Z[0],!1,!0),b=Z[1];J?b===void 0&&(b=null):b=H(Z[1],!1,!0,void 0,void 0,M.arrayState);Fz.prototype.set.call(M,n,b)}return M};
_.Q(ye,Fz);var Bmv=function(p){if(p.arrayState&2)throw Error("N");},FI3=function(p,J){return b8(Array.from(Fz.prototype.entries.call(p),J))};
_.R=ye.prototype;_.R.clear=function(){Bmv(this);Fz.prototype.clear.call(this)};
_.R.delete=function(p){Bmv(this);return Fz.prototype.delete.call(this,this.keyToApi(p,!0,!1))};
_.R.entries=function(){if(this.valueCtor){var p=Fz.prototype.keys.call(this);p=new A8L(p,j8s,this)}else p=Fz.prototype.entries.call(this);return p};
_.R.values=function(){if(this.valueCtor){var p=Fz.prototype.keys.call(this);p=new A8L(p,ye.prototype.get,this)}else p=Fz.prototype.values.call(this);return p};
_.R.forEach=function(p,J){this.valueCtor?Fz.prototype.forEach.call(this,function(S,H,M){p.call(J,M.get(H),H,M)}):Fz.prototype.forEach.call(this,p,J)};
_.R.set=function(p,J){Bmv(this);p=this.keyToApi(p,!0,!1);return p==null?this:J==null?(Fz.prototype.delete.call(this,p),this):Fz.prototype.set.call(this,p,this.valueToApi(J,!0,!0,this.valueCtor,!1,this.arrayState))};
_.R.has=function(p){return Fz.prototype.has.call(this,this.keyToApi(p,!1,!1))};
_.R.get=function(p){p=this.keyToApi(p,!1,!1);var J=Fz.prototype.get.call(this,p);if(J!==void 0){var S=this.valueCtor;return S?(S=this.valueToApi(J,!1,!0,S,this.callToMutableOnAccess,this.arrayState),S!==J&&Fz.prototype.set.call(this,p,S),S):J}};
ye.prototype[Symbol.iterator]=function(){return this.entries()};
ye.prototype.toJSON=void 0;var wE4;var KI3=function(){},iPi=function(p,J){for(var S in p)!isNaN(S)&&J(p,+S,p[S])},ZPX=function(p){var J=new KI3;
iPi(p,function(S,H,M){J[H]=Ep(M)});
J.reviveUnknownFields=p.reviveUnknownFields;return J},ppi={reviveIntoImmutable:!0};var RU9;var OPs,ArW;var U48,cp,sI,kQ,s8m,oh,hV,gUm,tL8,Cu,hM4,y3,sw,g4;U48=_.N4(0);_.v_={};_.fu=function(p,J,S,H,M){J=cp(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J,S,M);if(J!==null||H&&p.noLegacyNull!==A8)return J};
cp=function(p,J,S,H){if(J===-1)return null;var M=J+(S?0:-1),X=p.length-1;if(!(X<1+(S?0:-1))){if(M>=X){var Z=p[X];if(Z!=null&&typeof Z==="object"&&Z.constructor===Object){S=Z[J];var n=!0}else if(M===X)S=Z;else return}else S=p[M];if(H&&S!=null){H=H(S);if(H==null)return H;if(!Object.is(H,S))return n?Z[J]=H:p[M]=H,H}return S}};
_.e9=function(p,J,S,H){l$(p);var M=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;aw(M,M[_.Xn]|0,J,S,H);return p};
_.Ow=function(p,J,S){p=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return djk(p,p[_.Xn]|0,J,S)!==void 0};
_.AF=function(p,J,S,H){var M=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return djk(M,M[_.Xn]|0,J,kQ(p,H,S))!==void 0};
_.GN=function(p){return p===P8p?2:4};
_.P_=function(p,J){p=_.fu(p,J,void 0,void 0,tIL);return p==null?_.sp():p};
sI=function(p,J,S,H){l$(p);var M=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=M[_.Xn]|0;if(H==null){var Z=kfi(M);if(NMt(Z,M,X,S)===J)Z.set(S,0);else return p}else X=TMv(M,X,S,J);aw(M,X,J,H);return p};
_.zF=function(p,J,S,H){var M=p[_.Xn]|0,X=Dq(M);M=TMv(p,M,S,J,X);aw(p,M,J,H,X)};
kQ=function(p,J,S){return _.$C(p,J)===S?S:-1};
_.$C=function(p,J){p=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return NMt(kfi(p),p,void 0,J,void 0)};
s8m=function(p,J,S){var H=p[_.Xn]|0,M=Dq(H),X=cp(p,S,M);if(X!=null&&X[eI]===Qe){if(!WE(X))return u$(X),X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var Z=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(X)&&(Z=X);if(Z){var n=Z[_.Xn]|0;n&2&&(Z=dM(Z,n))}Z=ky(Z,J);Z!==X&&aw(p,H,S,Z,M);return Z};
_.PB=function(p,J,S,H){var M=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=M[_.Xn]|0;J=djk(M,X,J,S,H);if(J==null)return J;X=M[_.Xn]|0;if(!WE(p,X)){var Z=Ypi(J);Z!==J&&(u$(p)&&(M=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=M[_.Xn]|0),J=Z,X=aw(M,X,S,J,H),qj(M,X))}return J};
_.Zd=function(p,J,S,H){var M=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return uPk(p,M,M[_.Xn]|0,J,S,H,!1,!0)};
_.Qd=function(p,J,S,H){S=llk(S);_.e9(p,J,S,H);S&&!WE(S)&&qj(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return p};
_.Ct=function(p,J,S,H){H=llk(H);sI(p,J,S,H);H&&!WE(H)&&qj(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return p};
oh=function(p,J,S){l$(p);var H=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=H[_.Xn]|0;if(S==null)return aw(H,M,J),p;for(var X=S===Yy?7:S[_.Xn]|0,Z=X,n=xy(X),b=n||Object.isFrozen(S),F=!0,f=!0,O=0;O<S.length;O++){var A=S[O];n||(A=WE(A),F&&(F=!A),f&&(f=A))}n||(X=F?13:5,X=f?X&-4097:X|4096);b&&X===Z||(S=Ep(S),Z=0,X=jI(X,M));X!==Z&&Kd(S,X);M=aw(H,M,J,S);2&X||!(4096&X||16&X)||qj(H,M);return p};
hV=function(p,J,S,H){qNg(p,J,S,H);return p};
gUm=function(p,J,S){qNg(p,J,eJ,void 0,S,1,!0);return p};
_.W_=function(p,J,S){p=_.fu(p,J,void 0,S);J=typeof p;p=p==null?p:J==="bigint"?_.N4((0,_.vp)(64,p)):_.Jr(p)?J==="string"?_.tLw(p):_.s8k(p):void 0;return p};
_.Q3=function(p,J){var S=S===void 0?!1:S;var H;return(H=_.A8t(_.fu(p,J)))!=null?H:S};
_.bW=function(p,J,S){S=S===void 0?0:S;var H;return(H=_.KP(_.fu(p,J)))!=null?H:S};
tL8=function(p,J){var S=S===void 0?0:S;p=_.$4W(_.fu(p,J));return p!=null?p:S};
Cu=function(p,J,S){S=S===void 0?U48:S;var H;return(H=_.NmL(_.fu(p,J)))!=null?H:S};
hM4=function(p){var J=J===void 0?U48:J;var S;return(S=_.W_(p,23))!=null?S:J};
y3=function(p,J){var S=S===void 0?0:S;var H;return(H=_.fu(p,J,void 0,void 0,_.cE))!=null?H:S};
_.B_=function(p,J,S,H){S=S===void 0?"":S;var M;return(M=_.$y(_.fu(p,J,H)))!=null?M:S};
_.Uw=function(p,J){var S=S===void 0?0:S;var H;return(H=_.i$(_.fu(p,J)))!=null?H:S};
sw=function(p,J){var S=S===void 0?"0":S;p=kok(_.fu(p,J),!0);return p!=null?p:S};
_.D48=function(p,J,S){p=_.wM(p,J,_.$y,3,!0);Lit(p,S);return p[S]};
g4=function(p,J,S){return _.B_(p,kQ(p,S,J))};
_.tF=function(p,J,S,H){return _.PB(p,J,kQ(p,H,S),void 0)};
_.W0=function(p,J){return _.$y(_.fu(p,J,void 0,_.v_))};
_.fC=function(p,J,S){return _.e9(p,J,Od3(S))};
_.$V=function(p,J,S){return _.LP(p,J,Od3(S),!1)};
_.hF=function(p,J,S){return _.e9(p,J,_.Rw(S))};
_.Tg=function(p,J,S){return _.e9(p,J,b$(S))};
_.g2=function(p,J,S){return _.e9(p,J,Pp(S))};
_.u6=function(p,J,S,H){return _.LP(p,J,Pp(S),"",H)};
_.zx=function(p,J,S){return _.e9(p,J,S==null?S:_.Hp(S))};
_.Dj=function(p,J,S){return _.LP(p,J,S==null?S:_.Hp(S),0)};var HG=function(p,J,S){this.buffer=p;if(S&&!J)throw Error();this.JSC$9006_isImmutable=J};var kom=function(p,J,S,H){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9009_start_=0;this.init(p,J,S,H)},kC,Tmm,d4n,unL,lqd,VLM,vpX,Nmd;
_.R=kom.prototype;_.R.init=function(p,J,S,H){var M=H===void 0?{}:H;H=M.aliasBytesFields===void 0?!1:M.aliasBytesFields;M=M.treatNewDataAsImmutable===void 0?!1:M.treatNewDataAsImmutable;this.aliasBytesFields=H;this.treatNewDataAsImmutable=M;p&&(p=Eys(p,this.treatNewDataAsImmutable),this.bytes_=p.buffer,this.bytesAreImmutable_=p.JSC$9006_isImmutable,this.JSC$9009_start_=J||0,this.end_=S!==void 0?this.JSC$9009_start_+S:this.bytes_.length,this.cursor_=this.JSC$9009_start_)};
_.R.free=function(){this.clear();Nmd.length<100&&Nmd.push(this)};
_.R.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9009_start_=0;this.aliasBytesFields=!1};
_.R.reset=function(){this.cursor_=this.JSC$9009_start_};
_.R.atEnd=function(){return this.cursor_==this.end_};
_.NU=function(p,J){var S=0,H=0,M=0,X=p.bytes_,Z=p.cursor_;do{var n=X[Z++];S|=(n&127)<<M;M+=7}while(M<32&&n&128);if(M>32)for(H|=(n&127)>>4,M=3;M<32&&n&128;M+=7)n=X[Z++],H|=(n&127)<<M;kC(p,Z);if(!(n&128))return J(S>>>0,H>>>0);throw Error();};
kC=function(p,J){p.cursor_=J;if(J>p.end_)throw Error();};
_.TF=function(p){var J=p.bytes_,S=p.cursor_,H=J[S++],M=H&127;if(H&128&&(H=J[S++],M|=(H&127)<<7,H&128&&(H=J[S++],M|=(H&127)<<14,H&128&&(H=J[S++],M|=(H&127)<<21,H&128&&(H=J[S++],M|=H<<28,H&128&&J[S++]&128&&J[S++]&128&&J[S++]&128&&J[S++]&128&&J[S++]&128)))))throw Error();kC(p,S);return M};
_.d4=function(p){var J=p.bytes_,S=p.cursor_,H=J[S],M=J[S+1],X=J[S+2];J=J[S+3];kC(p,p.cursor_+4);return(H<<0|M<<8|X<<16|J<<24)>>>0};
Tmm=function(p){var J=_.d4(p);p=_.d4(p);return bdX(J,p)};
d4n=function(p){var J=_.d4(p);p=(J>>31)*2+1;var S=J>>>23&255;J&=8388607;return S==255?J?NaN:p*Infinity:S==0?p*1.401298464324817E-45*J:p*Math.pow(2,S-150)*(J+8388608)};
unL=function(p){var J=_.d4(p),S=_.d4(p);p=(S>>31)*2+1;var H=S>>>20&2047;J=4294967296*(S&1048575)+J;return H==2047?J?NaN:p*Infinity:H==0?p*4.9E-324*J:p*Math.pow(2,H-1075)*(J+4503599627370496)};
lqd=function(p){for(var J=0,S=p.cursor_,H=S+10,M=p.bytes_;S<H;){var X=M[S++];J|=X;if((X&128)===0)return kC(p,S),!!(J&127)}throw Error();};
VLM=function(p,J){if(J<0)throw Error();var S=p.cursor_;J=S+J;if(J>p.end_)throw Error();p.cursor_=J;return S};
vpX=function(p,J){if(J==0)return _.sp();var S=VLM(p,J);p.aliasBytesFields&&p.bytesAreImmutable_?S=p.bytes_.subarray(S,S+J):(p=p.bytes_,J=S+J,S=S===J?new Uint8Array(0):C8o?p.slice(S,J):new Uint8Array(p.subarray(S,J)));return S.length==0?_.sp():new yv(S,BE)};
Nmd=[];var aqU=function(p,J,S,H){if(Nmd.length){var M=Nmd.pop();M.init(p,J,S,H);p=M}else p=new kom(p,J,S,H);this.decoder_=p;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;qp8(this,H)},qp8=function(p,J){J=J===void 0?{}:J;
p.discardUnknownFields=J.discardUnknownFields===void 0?!1:J.discardUnknownFields},Ast=function(p,J,S,H){if(EU8.length){var M=EU8.pop();
qp8(M,H);M.decoder_.init(p,J,S,H);return M}return new aqU(p,J,S,H)},bti,F7W,u9,Ypp,EU8;
aqU.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;EU8.length<100&&EU8.push(this)};
aqU.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
bti=function(p){if(p.decoder_.atEnd())return!1;p.fieldCursor_=p.decoder_.cursor_;var J=_.TF(p.decoder_)>>>0,S=J>>>3;J&=7;if(!(J>=0&&J<=5))throw Error();if(S<1)throw Error();p.nextField_=S;p.nextWireType_=J;return!0};
F7W=function(p){switch(p.nextWireType_){case 0:p.nextWireType_!=0?F7W(p):lqd(p.decoder_);break;case 1:p=p.decoder_;kC(p,p.cursor_+8);break;case 2:if(p.nextWireType_!=2)F7W(p);else{var J=_.TF(p.decoder_)>>>0;p=p.decoder_;kC(p,p.cursor_+J)}break;case 5:p=p.decoder_;kC(p,p.cursor_+4);break;case 3:J=p.nextField_;do{if(!bti(p))throw Error();if(p.nextWireType_==4){if(p.nextField_!=J)throw Error();break}F7W(p)}while(1);break;default:throw Error();}};
u9=function(p,J,S){var H=p.decoder_.end_,M=_.TF(p.decoder_)>>>0;M=p.decoder_.cursor_+M;var X=M-H;X<=0&&(p.decoder_.end_=M,S(J,p,void 0,void 0,void 0),X=M-p.decoder_.cursor_);if(X)throw Error();p.decoder_.cursor_=M;p.decoder_.end_=H;return J};
Ypp=function(p){var J=_.TF(p.decoder_)>>>0;p=p.decoder_;var S=VLM(p,J);p=p.bytes_;if(e4p){var H=p,M;(M=os8)||(M=os8=new TextDecoder("utf-8",{fatal:!0}));J=S+J;H=S===0&&J===H.length?H:H.subarray(S,J);try{var X=M.decode(H)}catch(F){if($Wq===void 0){try{M.decode(new Uint8Array([128]))}catch(f){}try{M.decode(new Uint8Array([97])),$Wq=!0}catch(f){$Wq=!1}}!$Wq&&(os8=void 0);throw F;}}else{X=S;J=X+J;S=[];for(var Z=null,n,b;X<J;)n=p[X++],n<128?S.push(n):n<224?X>=J?J9():(b=p[X++],n<194||(b&192)!==128?(X--,
J9()):S.push((n&31)<<6|b&63)):n<240?X>=J-1?J9():(b=p[X++],(b&192)!==128||n===224&&b<160||n===237&&b>=160||((M=p[X++])&192)!==128?(X--,J9()):S.push((n&15)<<12|(b&63)<<6|M&63)):n<=244?X>=J-2?J9():(b=p[X++],(b&192)!==128||(n<<28)+(b-144)>>30!==0||((M=p[X++])&192)!==128||((H=p[X++])&192)!==128?(X--,J9()):(n=(n&7)<<18|(b&63)<<12|(M&63)<<6|H&63,n-=65536,S.push((n>>10&1023)+55296,(n&1023)+56320))):J9(),S.length>=8192&&(Z=KiX(Z,S),S.length=0);X=KiX(Z,S)}return X};
_.r8d=function(p){var J=_.TF(p.decoder_)>>>0;return vpX(p.decoder_,J)};
_.j8U=function(p,J,S){var H=_.TF(p.decoder_)>>>0;for(H=p.decoder_.cursor_+H;p.decoder_.cursor_<H;)S.push(J(p.decoder_))};
EU8=[];var wEM=function(p,J){this.JSC$9016_lo=p>>>0;this.JSC$9016_hi=J>>>0},tav=function(p){p=BigInt.asUintN(64,p);
return new wEM(Number(p&BigInt(4294967295)),Number(p>>BigInt(32)))},jwX=function(p){if(!p)return x4v||(x4v=new wEM(0,0));
if(!/^\d+$/.test(p))return null;a8(p);return new wEM(To,dm)},x4v,gpi=function(p,J){this.JSC$9018_lo=p>>>0;
this.JSC$9018_hi=J>>>0},YNg=function(p){if(!p)return c88||(c88=new gpi(0,0));
if(!/^-?\d+$/.test(p))return null;a8(p);return new gpi(To,dm)},c88;var l9=function(){this.JSC$9020_buffer_=[]},ft,As,Iqv;
l9.prototype.length=function(){return this.JSC$9020_buffer_.length};
l9.prototype.end=function(){var p=this.JSC$9020_buffer_;this.JSC$9020_buffer_=[];return p};
ft=function(p,J,S){for(;S>0||J>127;)p.JSC$9020_buffer_.push(J&127|128),J=(J>>>7|S<<25)>>>0,S>>>=7;p.JSC$9020_buffer_.push(J)};
As=function(p,J){for(;J>127;)p.JSC$9020_buffer_.push(J&127|128),J>>>=7;p.JSC$9020_buffer_.push(J)};
_.DGi=function(p,J){if(J>=0)As(p,J);else{for(var S=0;S<9;S++)p.JSC$9020_buffer_.push(J&127|128),J>>=7;p.JSC$9020_buffer_.push(1)}};
Iqv=function(p,J){a8(J);m4g(function(S,H){ft(p,S>>>0,H>>>0)})};
l9.prototype.writeUint8=function(p){this.JSC$9020_buffer_.push(p>>>0&255)};
_.Fs=function(p,J){p.JSC$9020_buffer_.push(J>>>0&255);p.JSC$9020_buffer_.push(J>>>8&255);p.JSC$9020_buffer_.push(J>>>16&255);p.JSC$9020_buffer_.push(J>>>24&255)};
l9.prototype.writeInt8=function(p){this.JSC$9020_buffer_.push(p>>>0&255)};var L8U,Z4,Ny3,usi,IlX;L8U=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new l9};
Z4=function(p,J){J.length!==0&&(p.blocks_.push(J),p.totalLength_+=J.length)};
_.pp8=function(p,J){_.m7(p,J,2);J=p.encoder_.end();Z4(p,J);J.push(p.totalLength_);return J};
_.Jrp=function(p,J){var S=J.pop();for(S=p.totalLength_+p.encoder_.length()-S;S>127;)J.push(S&127|128),S>>>=7,p.totalLength_++;J.push(S);p.totalLength_++};
_.m7=function(p,J,S){As(p.encoder_,J*8+S)};
Ny3=function(p,J,S){if(S!=null)switch(wp3(S),_.m7(p,J,1),typeof S){case "number":p=p.encoder_;K8i(S);_.Fs(p,To);_.Fs(p,dm);break;case "bigint":S=tav(S);p=p.encoder_;J=S.JSC$9016_hi;_.Fs(p,S.JSC$9016_lo);_.Fs(p,J);break;default:S=jwX(S),p=p.encoder_,J=S.JSC$9016_hi,_.Fs(p,S.JSC$9016_lo),_.Fs(p,J)}};
usi=function(p,J,S){_.m7(p,J,2);As(p.encoder_,S.length);Z4(p,p.encoder_.end());Z4(p,S)};
IlX=function(p,J,S,H){S!=null&&(J=_.pp8(p,J),H(S,p),_.Jrp(p,J))};var xjX,SN8,HPo,MI8,Xpn,RU8,KIq,nyp,GfL;xjX=MG();SN8=MG();HPo=MG();MI8=MG();Xpn=MG();_.iP8=MG();_.V3=MG();RU8=MG();KIq=MG();_.ZPv=MG();nyp=MG();GfL=MG();_.bP8=MG();_.mjd=MG();_.Kt=function(p,J,S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p,J,S)};
_.Kt.prototype.toJSON=function(){return hr(this)};
_.Kt.prototype.serialize=function(p){return JSON.stringify(hr(this,p))};
var wG3=function(p,J){if(J==null||J=="")return new p;J=JSON.parse(J);if(!Array.isArray(J))throw Error("V");return new p(c94(J))};
_.Kt.prototype.getExtension=function(p){HPW(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p.fieldIndex);Jri(this,p.fieldIndex);return p.ctor?p.isRepeated?p.getExtensionFn(this,p.ctor,p.fieldIndex,_.GN(),p.JSC$9031_hasMessageId):p.getExtensionFn(this,p.ctor,p.fieldIndex,p.JSC$9031_hasMessageId):p.isRepeated?p.getExtensionFn(this,p.fieldIndex,_.GN(),p.JSC$9031_hasMessageId):p.getExtensionFn(this,p.fieldIndex,p.defaultValue,p.JSC$9031_hasMessageId)};
_.Kt.prototype.clone=function(){var p=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=p[_.Xn]|0;return BMg(this,p,J)?yrX(this,p,!0):new this.constructor(dM(p,J,!1))};
_.Kt.prototype[eI]=Qe;_.Kt.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Xs=function(p,J,S){this.$$binaryReaderFn=p;this.$$binaryWriterFn=J;p=Bp(xjX);this.$$isMsg=!!p&&S===p||!1},Mai=crX(function(p,J,S,H,M){if(p.nextWireType_!==2)return!1;
u9(p,s8m(J,H,S),M);return!0},pG3),XGt=crX(function(p,J,S,H,M){if(p.nextWireType_!==2)return!1;
u9(p,s8m(J,H,S),M);return!0},pG3),zTX=Symbol(),K7W=Symbol(),Gug=Symbol(),eTX=Symbol(),f4s=Symbol(),JsX,Sq4;var YqX,FIq,qU,vyM,flv,OPU,Aro,r4,zUn,$jE,oyn,eUL,WIM,C$p,yrn,BME,Ujp,sw4,gyq;YqX=function(p,J){var S=new L8U;W7t(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S,iv(zTX,Pv4,$G3,J));Z4(S,S.encoder_.end());p=new Uint8Array(S.totalLength_);J=S.blocks_;for(var H=J.length,M=0,X=0;X<H;X++){var Z=J[X];p.set(Z,M);M+=Z.length}S.blocks_=[p];return p};
FIq=crX(function(p,J,S,H,M){if(p.nextWireType_!==2)return!1;p=u9(p,ky([void 0,void 0],H),M);p=Ep(p);H=J[_.Xn]|0;M=Dq(H);if(H&2)throw Error();var X=cp(J,S,M);if(X instanceof ye)(X.arrayState&2)!=0?(X=FI3(X),X.push(p),aw(J,H,S,X,M)):(J=X,S=J.keyToApi(p[0],!1,!0),p=p[1],p=J.valueCtor?p===void 0?null:p:J.valueToApi(p,!1,!0,void 0,!1,J.arrayState),Fz.prototype.set.call(J,S,p));else if(Array.isArray(X)){var Z=X[_.Xn]|0;Z&8192||Kd(X,Z|=8192);Z&2&&(X=hUW(X),aw(J,H,S,X,M));X.push(p)}else aw(J,H,S,b8([p]),
M);return!0},function(p,J,S,H,M){if(J instanceof ye)J.forEach(function(n,b){IlX(p,S,ky([b,
n],H),M)});
else if(Array.isArray(J)){for(var X=0;X<J.length;X++){var Z=J[X];Array.isArray(Z)&&IlX(p,S,ky(Z,H),M)}b8(J)}});
qU=_.nt(function(p,J,S){if(p.nextWireType_!==1)return!1;_.bv(J,S,unL(p.decoder_));return!0},UGv,GfL);
vyM=_.nt(function(p,J,S,H){if(p.nextWireType_!==1)return!1;_.zF(J,S,H,unL(p.decoder_));return!0},UGv,GfL);
flv=_.nt(function(p,J,S){if(p.nextWireType_!==5)return!1;_.bv(J,S,d4n(p.decoder_));return!0},sD9,nyp);
OPU=_.By9(function(p,J,S){if(p.nextWireType_!==5&&p.nextWireType_!==2)return!1;J=_.pt(J,J[_.Xn]|0,S);p.nextWireType_==2?_.j8U(p,d4n,J):J.push(d4n(p.decoder_));return!0},function(p,J,S){J=_.ysw(_.cE,J,!0);
if(J!=null&&J.length)for(_.m7(p,S,2),As(p.encoder_,J.length*4),S=0;S<J.length;S++){var H=p.encoder_;Go4(J[S]);_.Fs(H,To)}},nyp);
Aro=_.nt(function(p,J,S,H){if(p.nextWireType_!==5)return!1;_.zF(J,S,H,d4n(p.decoder_));return!0},sD9,nyp);
_.P$8=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;_.bv(J,S,_.NU(p.decoder_,_.fqi));return!0},_.Oq,_.V3);
_.YC=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;_.bv(J,S,_.NU(p.decoder_,q4));return!0},_.Oq,_.V3);
r4=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;p=_.NU(p.decoder_,q4);_.bv(J,S,p===0?void 0:p);return!0},_.Oq,_.V3);
zUn=_.nt(function(p,J,S,H){if(p.nextWireType_!==0)return!1;_.zF(J,S,H,_.NU(p.decoder_,q4));return!0},_.Oq,_.V3);
$jE=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;_.bv(J,S,_.NU(p.decoder_,_.l8));return!0},hTi,RU8);
_.jJ=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;_.bv(J,S,_.NU(p.decoder_,bdX));return!0},hTi,RU8);
_.w4=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;_.bv(J,S,_.TF(p.decoder_));return!0},kuw,MI8);
oyn=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;p=_.TF(p.decoder_);_.bv(J,S,p===0?void 0:p);return!0},kuw,MI8);
eUL=_.nt(function(p,J,S,H){if(p.nextWireType_!==0)return!1;_.zF(J,S,H,_.TF(p.decoder_));return!0},kuw,MI8);
WIM=_.nt(function(p,J,S){if(p.nextWireType_!==1)return!1;_.bv(J,S,Tmm(p.decoder_));return!0},_.Tyi,_.ZPv);
_.Qw4=_.By9(function(p,J,S){if(p.nextWireType_!==1&&p.nextWireType_!==2)return!1;J=_.pt(J,J[_.Xn]|0,S);p.nextWireType_==2?_.j8U(p,Tmm,J):J.push(Tmm(p.decoder_));return!0},function(p,J,S){J=_.ysw(d4X,J,!1);
if(J!=null)for(var H=0;H<J.length;H++)Ny3(p,S,J[H])},_.ZPv);
_.xC=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;_.bv(J,S,lqd(p.decoder_));return!0},dGL,SN8);
_.c_=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;p=lqd(p.decoder_);_.bv(J,S,p===!1?void 0:p);return!0},dGL,SN8);
C$p=_.nt(function(p,J,S,H){if(p.nextWireType_!==0)return!1;_.zF(J,S,H,lqd(p.decoder_));return!0},dGL,SN8);
_.Ih=_.nt(function(p,J,S){if(p.nextWireType_!==2)return!1;_.bv(J,S,Ypp(p));return!0},l4X,HPo);
_.Lu=_.nt(function(p,J,S){if(p.nextWireType_!==2)return!1;p=Ypp(p);_.bv(J,S,p===""?void 0:p);return!0},l4X,HPo);
_.pX=_.nt(function(p,J,S,H){if(p.nextWireType_!==2)return!1;_.zF(J,S,H,Ypp(p));return!0},l4X,HPo);
yrn=_.By9(function(p,J,S){if(p.nextWireType_!==2)return!1;p=Ypp(p);_.pt(J,J[_.Xn]|0,S).push(p);return!0},function(p,J,S){J=_.ysw(_.$y,J,!0);
if(J!=null)for(var H=0;H<J.length;H++){var M=p,X=S,Z=J[H];Z!=null&&usi(M,X,bLi(Z))}},HPo);
BME=void 0;BME=BME===void 0?xjX:BME;_.Jd=new Xs(function(p,J,S,H,M){if(p.nextWireType_!==2)return!1;H=ky(void 0,H);_.pt(J,J[_.Xn]|0,S).push(H);u9(p,H,M);return!0},function(p,J,S,H,M){if(Array.isArray(J)){for(var X=0;X<J.length;X++)Vaw(p,J[X],S,H,M);
p=J[_.Xn]|0;p&1||Kd(J,p|1)}},BME);
_.S_=crX(function(p,J,S,H,M,X){if(p.nextWireType_!==2)return!1;var Z=J[_.Xn]|0;TMv(J,Z,X,S,Dq(Z));J=s8m(J,H,S);u9(p,J,M);return!0},Vaw);
_.Hj=_.nt(function(p,J,S){if(p.nextWireType_!==2)return!1;_.bv(J,S,_.r8d(p));return!0},_.qqg,_.bP8);
Ujp=_.nt(function(p,J,S,H){if(p.nextWireType_!==2)return!1;_.zF(J,S,H,_.r8d(p));return!0},_.qqg,_.bP8);
_.MR=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;_.bv(J,S,_.TF(p.decoder_)>>>0);return!0},a4X,Xpn);
sw4=_.nt(function(p,J,S,H){if(p.nextWireType_!==0)return!1;_.zF(J,S,H,_.TF(p.decoder_)>>>0);return!0},a4X,Xpn);
_.Xh=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;_.bv(J,S,_.TF(p.decoder_));return!0},_.Ep4,_.mjd);
_.i_=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;p=_.TF(p.decoder_);_.bv(J,S,p===0?void 0:p);return!0},_.Ep4,_.mjd);
gyq=_.nt(function(p,J,S){if(p.nextWireType_!==0)return!1;_.bv(J,S,_.NU(p.decoder_,F8t));return!0},function(p,J,S){J=Tmk(J);
if(J!=null&&(rrg(J),J!=null))switch(_.m7(p,S,0),typeof J){case "number":p=p.encoder_;S=J;J=S<0;S=Math.abs(S)*2;K8i(S);S=To;var H=dm;J&&(S==0?H==0?H=S=4294967295:(H--,S=4294967295):S--);To=S;dm=H;ft(p,To,dm);break;case "bigint":p=p.encoder_;J=J<<BigInt(1)^J>>BigInt(63);To=Number(BigInt.asUintN(32,J));dm=Number(BigInt.asUintN(32,J>>BigInt(32)));ft(p,To,dm);break;default:Iqv(p.encoder_,J)}},KIq);var DjU=function(){var p=tId,J=hU4;this.fieldIndex=175237375;this.ctor=J;this.isRepeated=0;this.getExtensionFn=_.PB;this.defaultValue=void 0;this.JSC$9031_hasMessageId=p.messageId!=null?h8:void 0};
DjU.prototype.register=function(){Xz(this)};var kfp=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(kfp,_.Kt);var NML=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(NML,_.Kt);var I4i=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(I4i,_.Kt);var TM8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(TM8,_.Kt);var djm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(djm,_.Kt);var uPm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(uPm,_.Kt);var llm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(llm,_.Kt);llm.prototype.getData=function(){return _.P_(this,2)};var VIv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(VIv,_.Kt);var qNE=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(qNE,_.Kt);qNE.prototype.getStyle=function(){return _.PB(this,kfp,1)};var ea=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(ea,_.Kt);ea.prototype.getPayloadCase=function(){return _.$C(this,yd)};
ea.prototype.getStyle=function(){return _.tF(this,qNE,6,yd)};
var al8=function(){var p=new ea,J=new djm;return _.Ct(p,7,yd,J)},EyU=function(){var p=new ea,J=new uPm;
return _.Ct(p,8,yd,J)},yd=[1,
2,3,4,5,6,7,8];var YNE=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(YNE,_.Kt);var rrE=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(rrE,_.Kt);var jwv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(jwv,_.Kt);var wpq=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(wpq,_.Kt);var xjv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(xjv,_.Kt);var crn=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(crn,_.Kt);var Ilv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Ilv,_.Kt);var LI8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(LI8,_.Kt);LI8.prototype.getData=function(){return _.P_(this,2)};var pGq=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(pGq,_.Kt);var csk=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(csk,_.Kt);csk.prototype.getPayloadCase=function(){return _.$C(this,R1)};
var R1=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var KX=function(p,J){p=Error.call(this,p);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.code=J===void 0?2:J};
_.Q(KX,Error);var Jsv=Promise;var SqM=function(p){this.channelPromise=p};
SqM.prototype.send=function(p,J,S){this.channelPromise.then(function(H){H.send(p,J,S)})};var HtL=function(p,J){this.data=p;this.channel=J};
HtL.prototype.reply=function(p,J,S){this.channel.send(p,J,S)};var XGL=function(p){this.JSC$9097_port_=p};
XGL.prototype.send=function(p,J,S){S=S===void 0?[]:S;var H=new MessageChannel;it8(H.port1,J);this.JSC$9097_port_.postMessage(p,[H.port2].concat(S))};
var RTn=function(p,J){it8(p,J);return new XGL(p)},it8=function(p,J){J&&(p.onmessage=function(S){J(new HtL(S.data,RTn(S.ports[0])))})};var K74=function(p){this.verifier_=p};
K74.prototype.verify=function(p){return this.verifier_(p)};
var ZtE=function(p){var J=Object.create(null);(typeof p==="string"?[p]:p).forEach(function(S){if(S==="null")throw Error("X");J[S]=!0});
return function(S){return J[S]===!0}};_.npU=function(){if(!_.Hg.addEventListener||!Object.defineProperty)return!1;var p=!1,J=Object.defineProperty({},"passive",{get:function(){p=!0}});
try{var S=function(){};
_.Hg.addEventListener("test",S,J);_.Hg.removeEventListener("test",S,J)}catch(H){}return p}();var GuE;_.Zv=function(p){var J=p.destination;var S=p.iframe;var H=p.origin;var M=p.channelName===void 0?"ZNWN1d":p.channelName;var X=p.onMessage===void 0?void 0:p.onMessage;p=p.onEstablished===void 0?void 0:p.onEstablished;return GuE({destination:J,getSource:function(){return S.contentWindow},
originVerifier:H instanceof K74?H:typeof H==="function"?new K74(H):new K74(ZtE(H)),channelName:M,onMessage:X,onEstablished:p})};
GuE=function(p){var J=p.destination;var S=p.getSource;var H=p.originVerifier;var M=p.token===void 0?void 0:p.token;var X=p.channelName;var Z=p.onMessage===void 0?void 0:p.onMessage;var n=p.onEstablished===void 0?void 0:p.onEstablished;return new SqM(new Jsv(function(b,F){var f=function(O){O.source&&O.source===S()&&H.verify(O.origin)&&(O.data.n||O.data)===X&&(J.removeEventListener("message",f,!1),M&&O.data.t!==M?F(Error("Y`"+X+"`"+M+"`"+O.data.t)):(b(RTn(O.ports[0],Z)),n&&n(O)))};
J.addEventListener("message",f,!1)}))};var bt8=function(p){try{p()}catch(J){MW(J)}};var F74=function(p){var J=this;var S=p.getMessageType;var H=p.onUnregisteredMessage===void 0?function(){}:p.onUnregisteredMessage;
var M=p.onBeforeRegisteredMessage===void 0?function(){}:p.onBeforeRegisteredMessage;
p=p.onAfterRegisteredMessage===void 0?function(){}:p.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=S;this.onUnregisteredMessage_=H;this.onBeforeRegisteredMessage_=M;this.onAfterRegisteredMessage_=p;this.onMessage=function(X){return mGE(J,X)}};
F74.prototype.register=function(p,J){this.registry_.set(p,J);return this};
var mGE=function(p,J){var S=p.getMessageType_(J.data),H=p.registry_.get(S);H?(bt8(function(){return p.onBeforeRegisteredMessage_(J,S)}),bt8(function(){return H(J)}),bt8(function(){return p.onAfterRegisteredMessage_(J,S)})):bt8(function(){return p.onUnregisteredMessage_(J,S)})};var vpv=function(p){this.JSC$9114_channel_=p},Ot4,AsL;
vpv.prototype.send=function(p,J,S){this.JSC$9114_channel_.send(hr(p),J,S)};
_.f4U=function(p,J){return function(S){var H=new p(S.data);return J(new HtL(H,S.channel))}};
Ot4=function(p){return function(J){return p(new HtL(J.data,new vpv(J.channel)))}};
AsL=function(p,J){return Ot4(_.f4U(p,J))};var PvM=function(p,J,S,H){this.registry=p;this.delegate=J;this.receiveMessageConstructor=S;this.createInitMessage=H;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},xGX=function(p){var J=new F74({getMessageType:p.getPayloadCase});
return new PvM(J,new vpv(_.Zv({iframe:p.child,destination:window,origin:p.origin,channelName:p.channelName,onMessage:AsL(p.receiveMessageConstructor,J.onMessage)})),p.receiveMessageConstructor,p.createInitMessage)},zTv=function(p,J){p.createInitMessage=J};
PvM.prototype.send=function(p){if(!this.initialised)throw new KX("Attempted to send a message before initialisation.");this.delegate.send(p)};
var $Gq=function(p,J){return _.G(function(S){if(!p.initialised)throw new KX("Attempted to send a message before initialisation.");return S.return(new Promise(function(H){p.delegate.send(J,AsL(p.receiveMessageConstructor,H))}))})};
PvM.prototype.init=function(){var p=this;return _.G(function(J){if(p.initialised)throw new KX("Attempted to initialise twice. The SDK can only be initialised once.");if(p.createInitMessage!==void 0){var S=p.delegate,H=S.send,M=p.createInitMessage;var X=new NML;var Z=[].concat(_.dW(p.features));X=_.Iw(X,1,Z,_.Hp);H.call(S,M.call(p,X))}p.initialised=!0;_.UK(J)})};
var nX=function(p,J){if(p.initialised)throw new KX('Attempted to set up API "'+J+'" after initialisation. All APIs must be set up before initialising the SDK.');p.features.add(J);return p.registry};
_.vh.Object.defineProperties(PvM.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var opL=function(p){this.channel=p;this.registered=!1};
opL.prototype.update=function(p){if(this.channel.isInitialised){if(!this.registered)throw new KX("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var J=new ea;var S=new TM8;S=_.fC(S,1,p);J=_.Ct(J,2,yd,S);this.channel.send(J)}else this.register();this.JSC$9128_audioEnabled=p};
opL.prototype.register=function(){nX(this.channel,1);this.registered=!0};
opL.prototype.isAudioEnabled=function(){return this.JSC$9128_audioEnabled};var eTn=function(p){this.channel=p};
_.R=eTn.prototype;_.R.onFirstFrameReady=function(p){nX(this.channel,2).register(11,function(J){J=_.tF(J.data,YNE,11,R1);if(!J)throw new KX("Unexpectedly nonexistent GameFirstFrameReadyEvent");p(_.B_(J,1))})};
_.R.onReady=function(p){nX(this.channel,2).register(4,function(J){J=_.tF(J.data,jwv,4,R1);if(!J)throw new KX("Unexpectedly nonexistent GameReadyEvent");p(_.B_(J,1))})};
_.R.onLevelComplete=function(p){nX(this.channel,2).register(5,function(J){J=_.tF(J.data,wpq,5,R1);if(!J)throw new KX("Unexpectedly nonexistent LevelCompleteEvent");p(_.B_(J,1),_.bW(J,2))})};
_.R.onGameOver=function(p){nX(this.channel,2).register(6,function(J){J=_.tF(J.data,rrE,6,R1);if(!J)throw new KX("Unexpectedly nonexistent GameOverEvent");p(_.B_(J,1))})};
_.R.pause=function(){var p=this;if(!this.channel.isInitialised)return nX(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new KX("Using unregistered Game Feature: pause.");var J=al8();return new Promise(function(S){return _.G(function(H){if(H.nextAddress==1)return H.yield($Gq(p.channel,J),2);S();_.UK(H)})})};
_.R.resume=function(){var p=this;if(!this.channel.isInitialised)return nX(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new KX("Using unregistered Game Feature: resume.");var J=EyU();return new Promise(function(S){return _.G(function(H){if(H.nextAddress==1)return H.yield($Gq(p.channel,J),2);S();_.UK(H)})})};var W7L=function(p){this.channel=p};
W7L.prototype.onReady=function(p){nX(this.channel,5).register(8,function(J){if(!_.tF(J.data,xjv,8,R1))throw new KX("Unexpectedly nonexistent PageReadyEvent");p()})};var QD8=function(p){this.channel=p};
QD8.prototype.onChange=function(p){nX(this.channel,3).register(7,function(J){J=_.tF(J.data,crn,7,R1);if(!J)throw new KX("Unexpectedly nonexistent ScoreEvent");p(_.B_(J,1),_.bW(J,2))})};var Cv8={load:function(){throw new KX("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new KX("Storage used, but storage.onSave() listener not set!");}},ys8=function(p){this.channel=p;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},By8=function(p){nX(p.channel,4).register(2,Cv8.load).register(3,Cv8.save);
p.initialSetupDone=!0};
ys8.prototype.onLoad=function(p){this.initialSetupDone||By8(this);this.loadRegistered||(this.loadRegistered=!0,nX(this.channel,4).register(2,function(J){var S,H,M;return _.G(function(X){if(X.nextAddress==1){S=_.tF(J.data,Ilv,2,R1);if(!S)throw new KX("Unexpectedly nonexistent StorageLoad");H=_.B_(S,1);return X.yield(p(H),2)}M=X.yieldResult;var Z=J.reply,n=new ea;var b=new llm;b=_.g2(b,1,H);b=_.e9(b,2,_.gm(M,!1));n=_.Ct(n,3,yd,b);Z.call(J,n);_.UK(X)})}))};
ys8.prototype.onSave=function(p){this.initialSetupDone||By8(this);this.saveRegistered||(this.saveRegistered=!0,nX(this.channel,4).register(3,function(J){var S,H,M;return _.G(function(X){if(X.nextAddress==1){S=_.tF(J.data,LI8,3,R1);if(!S)throw new KX("Unexpectedly nonexistent StorageSave");H=_.B_(S,1);M=vUq(S.getData());return X.yield(p(H,M),2)}var Z=J.reply,n=new ea;var b=new VIv;b=_.g2(b,1,H);n=_.Ct(n,4,yd,b);Z.call(J,n);_.UK(X)})}))};var UG8=function(p){this.channel=p};
UG8.prototype.update=function(p){if(!this.channel.features.has(6))throw new KX("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var J=new ea,S=new qNE;p=_.Qd(S,1,p);J=_.Ct(J,6,yd,p);this.channel.send(J)};
UG8.prototype.register=function(){nX(this.channel,6)};var sD8=function(p){this.channel=p;this.userActivityLoggingIntervalMs=0};
sD8.prototype.onUserActivity=function(p,J){this.userActivityLoggingIntervalMs=J;nX(this.channel,7).register(9,function(S){if(!_.tF(S.data,pGq,9,R1))throw new KX("Unexpectedly nonexistent ClickEvent");p()})};var gpp=function(p){var J=this;this.channel=p;this.init=this.channel.init.bind(this.channel);this.page=new W7L(this.channel);this.game=new eTn(this.channel);this.audio=new opL(this.channel);this.score=new QD8(this.channel);this.storage=new ys8(this.channel);this.style=new UG8(this.channel);this.userActivity=new sD8(this.channel);zTv(this.channel,function(S){var H=new I4i;S=_.Qd(H,1,S);S=_.hF(S,3,J.userActivity.userActivityLoggingIntervalMs);H=J.audio.isAudioEnabled();H!==void 0&&_.fC(S,2,H);H=new ea;
return _.Ct(H,5,yd,S)})};var ta8=function(){this.timedFunctionContext=0};
ta8.prototype.timeExecution=function(p,J){var S=this;return function(){var H=_.Yp.apply(0,arguments);S.timedFunctionContext=p;return J.apply(null,_.dW(H))}};var hT8=function(){var p={};this.priorityTasks=(p[3]=[],p[2]=[],p[1]=[],p);this.isFlushing=!1},e6=function(p,J,S){var H=DG8(p,S);
p.priorityTasks[S].push(J);H&&p.priorityTasks[S].length===1&&p.flush()},DG8=function(p,J){return Object.keys(p.priorityTasks).map(function(S){return Number(S)}).filter(function(S){return!isNaN(S)&&S>J}).every(function(S){return p.priorityTasks[S].length===0})};
hT8.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(p){return p.length>0});)ku8(this,3),ku8(this,2),ku8(this,1)}catch(p){throw Object.values(this.priorityTasks).forEach(function(J){return void J.splice(0,J.length)}),p;
}finally{this.isFlushing=!1}}};
var ku8=function(p,J){for(;DG8(p,J)&&p.priorityTasks[J].length>0;)p.priorityTasks[J][0](),p.priorityTasks[J].shift()};
_.vh.Object.defineProperties(hT8.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(p){return p.length>0})}}});var XZw={};var Nyq=globalThis.trustedTypes,pZi=Nyq,SKv;var Uq=function(p){this.privateDoNotAccessOrElseWrappedResourceUrl=p};
Uq.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var Typ,dGd,us8,l4v,Va8,qqE,a4v,EpM;Typ=_.YI([""]);dGd=E0(["\x00"],["\\0"]);us8=E0(["\n"],["\\n"]);l4v=E0(["\x00"],["\\u0000"]);Va8=_.YI([""]);qqE=E0(["\x00"],["\\0"]);a4v=E0(["\n"],["\\n"]);EpM=E0(["\x00"],["\\u0000"]);_.Yqv=M03(function(p){return p(Typ)})||M03(function(p){return p(dGd)})||M03(function(p){return p(us8)})||M03(function(p){return p(l4v)});
_.rsp=_.ts(Va8)&&_.ts(qqE)&&_.ts(a4v)&&_.ts(EpM);var lv;_.hs=function(p,J){this.privateDoNotAccessOrElseWrappedUrl=J};
_.hs.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.jDU=D4("about:blank");lv=D4("about:invalid#zClosurez");var i_W=function(p){this.isValid=p},wGq=new i_W(function(p){return/^[^:]*([/?#]|$)/.test(p)}),xGv=dy("data"),csm=dy("http"),I48=dy("https"),L78=dy("ftp"),pZp=dy("mailto"),Ju8=dy("intent"),SK8=dy("vnd.youtube"),Rjt=[xGv,
csm,I48,pZp,L78,wGq],Z_v=BG(function(){return typeof URL==="function"}),H_L=["data:",
"http:","https:","mailto:","ftp:"],GHL=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var wy=function(p){this.privateDoNotAccessOrElseWrappedHtml=p};
wy.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var n_X=BG(function(){return new wy(Nyq?Nyq.emptyHTML:"")});var M0q={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"},mDX=function(p,J){var S=Error.call(this,p+" cannot be used with intent "+M0q[J]);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.type=p;this.intent=J;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.Q(mDX,Error);_.HZ=function(p){this.privateDoNotAccessOrElseWrappedScript=p};
_.HZ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var vF4=function(p){this.privateDoNotAccessOrElseWrappedAttributePrefix=p};
vF4.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var frv="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var GH=function(p){this.privateDoNotAccessOrElseWrappedStyleSheet=p};
GH.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var aut=function(p){var J=_.Id("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:J,stack:"Not available"};var S=!1;try{var H=p.lineNumber||p.line||"Not available"}catch(Z){H="Not available",S=!0}try{var M=p.fileName||p.filename||p.sourceURL||_.Hg.$googDebugFname||J}catch(Z){M="Not available",S=!0}J=XZ8(p);if(!(!S&&p.lineNumber&&p.fileName&&p.stack&&p.message&&p.name)){S=p.message;
if(S==null){if(p.constructor&&p.constructor instanceof Function){if(p.constructor.name)S=p.constructor.name;else if(S=p.constructor,G5[S])S=G5[S];else{S=String(S);if(!G5[S]){var X=/function\s+([^\(]+)/m.exec(S);G5[S]=X?X[1]:"[Anonymous]"}S=G5[S]}S='Unknown Error of type "'+S+'"'}else S="Unknown Error of unknown type";typeof p.toString==="function"&&Object.prototype.toString!==p.toString&&(S+=": "+p.toString())}return{message:S,name:p.name||"UnknownError",lineNumber:H,fileName:M,stack:J||"Not available"}}return{message:p.message,
name:p.name,lineNumber:p.lineNumber,fileName:p.fileName,stack:J}},XZ8=function(p,J){J||(J={});
J[i_o(p)]=!0;var S=p.stack||"",H=p.cause;H&&!J[i_o(H)]&&(S+="\nCaused by: ",H.stack&&H.stack.indexOf(H.toString())==0||(S+=typeof H==="string"?H:H.message+"\n"),S+=XZ8(H,J));p=p.errors;if(Array.isArray(p)){H=1;var M;for(M=0;M<p.length&&!(H>4);M++)J[i_o(p[M])]||(S+="\nInner error "+H++ +": ",p[M].stack&&p[M].stack.indexOf(p[M].toString())==0||(S+=typeof p[M]==="string"?p[M]:p[M].message+"\n"),S+=XZ8(p[M],J));M<p.length&&(S+="\n... "+(p.length-M)+" more inner errors")}return S},i_o=function(p){var J=
"";
typeof p.toString==="function"&&(J=""+p);return J+p.stack},G5={};var RjL,md,iT,Z_8,nF8,KCq,c0,Dx,b_8;RjL=function(p,J){for(var S=p.split("%s"),H="",M=Array.prototype.slice.call(arguments,1);M.length&&S.length>1;)H+=S.shift()+M.shift();return H+S.join("%s")};
_.HO=function(p){return encodeURIComponent(String(p))};
md=function(p){return decodeURIComponent(p.replace(/\+/g," "))};
iT=function(p){gs8.test(p)&&(p.indexOf("&")!=-1&&(p=p.replace(Qv8,"&amp;")),p.indexOf("<")!=-1&&(p=p.replace(CwL,"&lt;")),p.indexOf(">")!=-1&&(p=p.replace(y9d,"&gt;")),p.indexOf('"')!=-1&&(p=p.replace(Bkp,"&quot;")),p.indexOf("'")!=-1&&(p=p.replace(UWn,"&#39;")),p.indexOf("\x00")!=-1&&(p=p.replace(svU,"&#0;")));return p};
Z_8=function(p){var J={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var S=_.Hg.document.createElement("div");return p.replace(KCq,function(H,M){var X=J[H];if(X)return X;M.charAt(0)=="#"&&(M=Number("0"+M.slice(1)),isNaN(M)||(X=String.fromCharCode(M)));X||(_.K_(S,xp(H+" ")),X=S.firstChild.nodeValue.slice(0,-1));return J[H]=X})};
nF8=function(p){return p.replace(/&([^;]+);/g,function(J,S){switch(S){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return S.charAt(0)!="#"||(S=Number("0"+S.slice(1)),isNaN(S))?J:String.fromCharCode(S)}})};
KCq=/&([^;\s<&]+);?/g;_.B9W=function(p){return String(p).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.GHd=String.prototype.repeat?function(p,J){return p.repeat(J)}:function(p,J){return Array(J+1).join(p)};
_.b_=function(p,J){if(!Number.isFinite(p))return String(p);p=String(p);var S=p.indexOf(".");S===-1&&(S=p.length);var H=p[0]==="-"?"-":"";H&&(p=p.substring(1));return H+(0,_.GHd)("0",Math.max(0,J-S))+p};
c0=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.JF()).toString(36)};
Dx=function(p){for(var J=0,S=0;S<p.length;++S)J=31*J+p.charCodeAt(S)>>>0;return J};
_.Zx=function(p){return String(p).replace(/\-([a-z])/g,function(J,S){return S.toUpperCase()})};
_.K1=function(p){return String(p).replace(/([A-Z])/g,"-$1").toLowerCase()};
b_8=function(p){return p.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(J,S,H){return S+H.toUpperCase()})};var mDn=function(){this.names=new Map};
mDn.prototype.getName=function(p){var J=this.names.get(p);if(J)return J;var S;J=(S=p.description)!=null?S:c0();this.names.set(p,J);return J};var FC4=function(p){var J=Error.call(this,p?p.length+" errors occurred during unsubscription:\n"+p.map(function(S,H){return H+1+") "+S.toString()}).join("\n  "):"");
this.message=J.message;"stack"in J&&(this.stack=J.stack);this.errors=p;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.Q(FC4,Error);var mC=function(p){this.initialTeardown=p;this.closed=!1;this._teardowns=this._parentage=null};
_.R=mC.prototype;
_.R.unsubscribe=function(){if(!this.closed){this.closed=!0;var p=this._parentage;if(Array.isArray(p))for(var J=_.K(p),S=J.next();!S.done;S=J.next())S.value.remove(this);else p==null||p.remove(this);J=this.initialTeardown;if(b0(J))try{J()}catch(X){var H=X instanceof FC4?X.errors:[X]}var M=this._teardowns;if(M)for(this._teardowns=null,J=_.K(M),S=J.next();!S.done;S=J.next()){S=S.value;try{b0(S)?S():S.unsubscribe()}catch(X){S=void 0,H=(S=H)!=null?S:[],X instanceof FC4?H=[].concat(_.dW(H),_.dW(X.errors)):
H.push(X)}}if(H)throw new FC4(H);}};
_.R.add=function(p){if(p&&p!==this)if(this.closed)b0(p)?p():p.unsubscribe();else{if(p instanceof mC){if(p.closed||p._hasParent(this))return;p._addParent(this)}var J;(this._teardowns=(J=this._teardowns)!=null?J:[]).push(p)}};
_.R._hasParent=function(p){var J=this._parentage;return J===p||Array.isArray(J)&&J.includes(p)};
_.R._addParent=function(p){var J=this._parentage;this._parentage=Array.isArray(J)?(J.push(p),J):J?[J,p]:p};
_.R._removeParent=function(p){var J=this._parentage;J===p?this._parentage=null:Array.isArray(J)&&$D3(J,p)};
_.R.remove=function(p){var J=this._teardowns;J&&$D3(J,p);p instanceof mC&&p._removeParent(this)};
var vFM=new mC;vFM.closed=!0;mC.JSC$9224_EMPTY=vFM;var eji=function(){setTimeout.apply(null,_.dW(_.Yp.apply(0,arguments)))};var mk=function(p){mC.call(this);this.JSC$9229_isStopped=!1;this.destination=p instanceof mk?p:new Fh(!p||b0(p)?{next:p!=null?p:void 0}:p);oFg(p)&&p.add(this)};
_.Q(mk,mC);mk.JSC$9224_EMPTY=mC.JSC$9224_EMPTY;mk.create=function(p,J,S){return new vj(p,J,S)};
_.R=mk.prototype;_.R.next=function(p){this.JSC$9229_isStopped||this._next(p)};
_.R.error=function(p){this.JSC$9229_isStopped||(this.JSC$9229_isStopped=!0,this._error(p))};
_.R.complete=function(){this.JSC$9229_isStopped||(this.JSC$9229_isStopped=!0,this._complete())};
_.R.unsubscribe=function(){this.closed||(this.JSC$9229_isStopped=!0,mC.prototype.unsubscribe.call(this))};
_.R._next=function(p){this.destination.next(p)};
_.R._error=function(p){this.destination.error(p);this.unsubscribe()};
_.R._complete=function(){this.destination.complete();this.unsubscribe()};
var Fh=function(p){this.partialObserver=p};
Fh.prototype.next=function(p){var J=this.partialObserver;if(J.next)try{J.next(p)}catch(S){vZ(S)}};
Fh.prototype.error=function(p){var J=this.partialObserver;if(J.error)try{J.error(p)}catch(S){vZ(S)}else vZ(p)};
Fh.prototype.complete=function(){var p=this.partialObserver;if(p.complete)try{p.complete()}catch(J){vZ(J)}};
var vj=function(p,J,S){mk.call(this);var H;b0(p)||!p?H={next:p!=null?p:void 0,error:J!=null?J:void 0,complete:S!=null?S:void 0}:H=p;this.destination=new Fh(H)};
_.Q(vj,mk);vj.JSC$9224_EMPTY=mk.JSC$9224_EMPTY;vj.create=mk.create;var PZ=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Au=function(p){p&&(this._subscribe=p)};
_.R=Au.prototype;_.R.lift=function(p){var J=new Au;J.source=this;J.operator=p;return J};
_.R.subscribe=function(p,J,S){p=p&&p instanceof mk||p&&b0(p.next)&&b0(p.error)&&b0(p.complete)&&oFg(p)?p:new vj(p,J,S);J=this.operator;S=this.source;p.add(J?J.call(p,S):S?this._subscribe(p):this._trySubscribe(p));return p};
_.R._trySubscribe=function(p){try{return this._subscribe(p)}catch(J){p.error(J)}};
_.R.forEach=function(p,J){var S=this;J=QIi(J);return new J(function(H,M){var X=S.subscribe(function(Z){try{p(Z)}catch(n){M(n),X==null||X.unsubscribe()}},M,H)})};
_.R._subscribe=function(p){var J;return(J=this.source)==null?void 0:J.subscribe(p)};
Au.prototype[PZ]=function(){return this};
Au.prototype.pipe=function(){var p=_.Yp.apply(0,arguments);return p.length?WC3(p)(this):this};
Au.create=function(p){return new Au(p)};var fr8=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"};
_.Q(fr8,Error);var z6=function(){this.observers=[];this.hasError=this.JSC$9245_isStopped=this.closed=!1;this.thrownError=null};
_.Q(z6,Au);_.R=z6.prototype;_.R.lift=function(p){var J=new fX(this,this);J.operator=p;return J};
_.R._throwIfClosed=function(){if(this.closed)throw new fr8;};
_.R.next=function(p){this._throwIfClosed();if(!this.JSC$9245_isStopped){var J=this.observers.slice();J=_.K(J);for(var S=J.next();!S.done;S=J.next())S.value.next(p)}};
_.R.error=function(p){this._throwIfClosed();if(!this.JSC$9245_isStopped){this.hasError=this.JSC$9245_isStopped=!0;this.thrownError=p;for(var J=this.observers;J.length;)J.shift().error(p)}};
_.R.complete=function(){this._throwIfClosed();if(!this.JSC$9245_isStopped){this.JSC$9245_isStopped=!0;for(var p=this.observers;p.length;)p.shift().complete()}};
_.R.unsubscribe=function(){this.JSC$9245_isStopped=this.closed=!0;this.observers=null};
_.R._trySubscribe=function(p){this._throwIfClosed();return Au.prototype._trySubscribe.call(this,p)};
_.R._subscribe=function(p){this._throwIfClosed();this._checkFinalizedStatuses(p);return this._innerSubscribe(p)};
_.R._innerSubscribe=function(p){var J=this,S=this.JSC$9245_isStopped,H=this.observers;return this.hasError||S?mC.JSC$9224_EMPTY:(H.push(p),new mC(function(){return $D3(J.observers,p)}))};
_.R._checkFinalizedStatuses=function(p){var J=this.thrownError,S=this.JSC$9245_isStopped;this.hasError?p.error(J):S&&p.complete()};
z6.create=function(p,J){return new fX(p,J)};
var fX=function(p,J){z6.call(this);this.destination=p;this.source=J};
_.Q(fX,z6);fX.create=z6.create;fX.prototype.next=function(p){var J,S;(J=this.destination)==null||(S=J.next)==null||S.call(J,p)};
fX.prototype.error=function(p){var J,S;(J=this.destination)==null||(S=J.error)==null||S.call(J,p)};
fX.prototype.complete=function(){var p,J;(p=this.destination)==null||(J=p.complete)==null||J.call(p)};
fX.prototype._subscribe=function(p){var J,S;return(S=(J=this.source)==null?void 0:J.subscribe(p))!=null?S:mC.JSC$9224_EMPTY};var xo=function(p){z6.call(this);this._value=p};
_.Q(xo,z6);xo.create=z6.create;xo.prototype._subscribe=function(p){var J=z6.prototype._subscribe.call(this,p);!J.closed&&p.next(this._value);return J};
xo.prototype.getValue=function(){var p=this.thrownError,J=this._value;if(this.hasError)throw p;this._throwIfClosed();return J};
xo.prototype.next=function(p){z6.prototype.next.call(this,this._value=p)};
_.vh.Object.defineProperties(xo.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var EK=new Au(function(p){return p.complete()});var UDs=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var DDg=function(p){return p&&typeof p.length==="number"&&typeof p!=="function"};var O_m={now:function(){return(O_m.delegate||Date).now()},
delegate:void 0};var Rr=function(p,J,S){p=p===void 0?Infinity:p;J=J===void 0?Infinity:J;S=S===void 0?O_m:S;z6.call(this);this.bufferSize=p;this.windowTime=J;this.timestampProvider=S;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=J===Infinity;this.bufferSize=Math.max(1,p);this.windowTime=Math.max(1,J)};
_.Q(Rr,z6);Rr.create=z6.create;Rr.prototype.next=function(p){var J=this.buffer,S=this.infiniteTimeWindow,H=this.timestampProvider,M=this.windowTime;this.JSC$9245_isStopped||(J.push(p),!S&&J.push(H.now()+M));Au8(this);z6.prototype.next.call(this,p)};
Rr.prototype._subscribe=function(p){this._throwIfClosed();Au8(this);for(var J=this._innerSubscribe(p),S=this.infiniteTimeWindow,H=this.buffer.slice(),M=0;M<H.length&&!p.closed;M+=S?1:2)p.next(H[M]);this._checkFinalizedStatuses(p);return J};
var Au8=function(p){var J=p.bufferSize,S=p.timestampProvider,H=p.buffer;p=p.infiniteTimeWindow;var M=(p?1:2)*J;J<Infinity&&M<H.length&&H.splice(0,H.length-M);if(!p){J=S.now();S=0;for(p=1;p<H.length&&H[p]<=J;p+=2)S=p;S&&H.splice(0,S+1)}};var zjq=function(p,J){J=J===void 0?P0d:J;this.schedulerActionCtor=p;this.now=J};
zjq.prototype.schedule=function(p,J,S){J=J===void 0?0:J;return(new this.schedulerActionCtor(this,p)).schedule(S,J)};
var P0d=O_m.now;var CIg=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"};
_.Q(CIg,Error);var kF=function(p,J,S,H,M){mk.call(this,p);this.onUnsubscribe=M;J&&(this._next=function(X){try{J(X)}catch(Z){this.destination.error(Z)}});
S&&(this._error=function(X){try{S(X)}catch(Z){this.destination.error(Z)}this.unsubscribe()});
H&&(this._complete=function(){try{H()}catch(X){this.destination.error(X)}this.unsubscribe()})};
_.Q(kF,mk);kF.JSC$9224_EMPTY=mk.JSC$9224_EMPTY;kF.create=mk.create;kF.prototype.unsubscribe=function(){var p;this.closed||(p=this.onUnsubscribe)!=null&&p.call(this);mk.prototype.unsubscribe.call(this)};var XC=function(p,J){this.source=p;this.subjectFactory=J;this._subject=null;this._refCount=0;this._connection=null};
_.Q(XC,Au);XC.create=Au.create;XC.prototype._subscribe=function(p){return $Dq(this).subscribe(p)};
var $Dq=function(p){var J=p._subject;if(!J||J.JSC$9245_isStopped)p._subject=p.subjectFactory();return p._subject};
XC.prototype._teardown=function(){this._refCount=0;var p=this._connection;this._subject=this._connection=null;p==null||p.unsubscribe()};
XC.prototype.connect=function(){var p=this,J=this._connection;if(!J){J=this._connection=new mC;var S=$Dq(this);J.add(this.source.subscribe(new kF(S,void 0,function(H){p._teardown();S.error(H)},function(){p._teardown();
S.complete()},function(){return p._teardown()})));
J.closed&&(this._connection=null,J=mC.JSC$9224_EMPTY)}return J};var ruW=Array.isArray;var wZv=Array.isArray,oFE=Object,xDg=oFE.getPrototypeOf,cuw=oFE.prototype,IrW=oFE.keys;var VV=function(p,J,S){mk.call(this,p);this._next=J;this.shouldComplete=S};
_.Q(VV,mk);VV.JSC$9224_EMPTY=mk.JSC$9224_EMPTY;VV.create=mk.create;VV.prototype._complete=function(){this.shouldComplete()?mk.prototype._complete.call(this):this.unsubscribe()};var RmX=["addListener","removeListener"],iAi=["addEventListener","removeEventListener"],ZAX=["on","off"];var Oj=function(){mC.call(this)};
_.Q(Oj,mC);Oj.JSC$9224_EMPTY=mC.JSC$9224_EMPTY;Oj.prototype.schedule=function(){return this};var ejp=function(p,J){return setInterval.apply(null,[p,J].concat(_.dW(_.Yp.apply(2,arguments))))};var Ad=function(p,J){mC.call(this);this.scheduler=p;this.work=J;this.pending=!1};
_.Q(Ad,Oj);Ad.JSC$9224_EMPTY=Oj.JSC$9224_EMPTY;Ad.prototype.schedule=function(p,J){J=J===void 0?0:J;if(this.closed)return this;this.state=p;p=this.id;var S=this.scheduler;p!=null&&(this.id=WCq(this,p,J));this.pending=!0;this.delay=J;this.id=this.id||this.requestAsyncId(S,this.id,J);return this};
Ad.prototype.requestAsyncId=function(p,J,S){S=S===void 0?0:S;return ejp(p.flush.bind(p,this),S)};
var WCq=function(p,J,S){S=S===void 0?0:S;if(S!=null&&p.delay===S&&p.pending===!1)return J;clearInterval(J)};
Ad.prototype.execute=function(p,J){if(this.closed)return Error("ha");this.pending=!1;if(p=this._execute(p,J))return p;this.pending===!1&&this.id!=null&&(this.id=WCq(this,this.id,null))};
Ad.prototype._execute=function(p){var J=!1;try{this.work(p)}catch(H){J=!0;var S=!!H&&H||Error(H)}if(J)return this.unsubscribe(),S};
Ad.prototype.unsubscribe=function(){if(!this.closed){var p=this.id,J=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;$D3(J,this);p!=null&&(this.id=WCq(this,p,null));this.delay=null;Oj.prototype.unsubscribe.call(this)}};var QI8=function(p,J){J=J===void 0?P0d:J;zjq.call(this,p,J);this.actions=[];this.active=!1;this.scheduled=void 0};
_.Q(QI8,zjq);QI8.prototype.flush=function(p){var J=this.actions;if(this.active)J.push(p);else{var S;this.active=!0;do if(S=p.execute(p.state,p.delay))break;while(p=J.shift());this.active=!1;if(S){for(;p=J.shift();)p.unsubscribe();throw S;}}};var DZ=new Au(Fl);var nok=Array.isArray;var Pj=function(p,J){Ad.call(this,p,J);this.scheduler=p;this.work=J};
_.Q(Pj,Ad);Pj.JSC$9224_EMPTY=Ad.JSC$9224_EMPTY;Pj.prototype.schedule=function(p,J){J=J===void 0?0:J;if(J>0)return Ad.prototype.schedule.call(this,p,J);this.delay=J;this.state=p;this.scheduler.flush(this);return this};
Pj.prototype.execute=function(p,J){return J>0||this.closed?Ad.prototype.execute.call(this,p,J):this._execute(p,J)};
Pj.prototype.requestAsyncId=function(p,J,S){S=S===void 0?0:S;return S!=null&&S>0||S==null&&this.delay>0?Ad.prototype.requestAsyncId.call(this,p,J,S):p.flush(this)};var C08=function(){QI8.apply(this,arguments)};
_.Q(C08,QI8);var EFW=new C08(Pj);var yu8=function(){this.performanceMonitor=new ta8;this.queue=new hT8;this.internalSymbol=Symbol();this.debugNames=new mDn};
yu8.prototype.getOnBackgrounded=function(){return DZ};
_.vh.Object.defineProperties(yu8.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var z5=function(p,J){J=Error.call(this,J?p+": "+J:String(p));this.message=J.message;"stack"in J&&(this.stack=J.stack);this.code=p;this.__proto__=z5.prototype;this.name=String(p)};
_.Q(z5,Error);var ko=function(p){z5.call(this,1E3,'sfr:"'+p+'"');this.measurementStrategyFailureReason=p;this.__proto__=ko.prototype};
_.Q(ko,z5);var N0=function(){z5.call(this,1003);this.__proto__=N0.prototype};
_.Q(N0,z5);var $r=function(){z5.call(this,1009);this.__proto__=$r.prototype};
_.Q($r,z5);var BWv=function(){z5.call(this,1011);this.__proto__=BWv.prototype};
_.Q(BWv,z5);var UDU=function(){z5.call(this,1007);this.__proto__=N0.prototype};
_.Q(UDU,z5);var ty=function(p){z5.call(this,1004,String(p));this.inputObservableIndex=p;this.__proto__=ty.prototype};
_.Q(ty,z5);var rTX=function(p){z5.call(this,1010,p);this.__proto__=j7X.prototype};
_.Q(rTX,z5);var j7X=function(p){z5.call(this,1005,p);this.__proto__=j7X.prototype};
_.Q(j7X,z5);var sIM=function(p){var J=_.Yp.apply(1,arguments),S=this;this.orderedFactories=[];this.orderedFactories.push(p);J.forEach(function(H){S.orderedFactories.push(H)})};
sIM.prototype.isSupported=function(p){return this.orderedFactories.some(function(J){return J.isSupported(p)})};
sIM.prototype.makeBeacon=function(p,J){for(var S=0;S<this.orderedFactories.length;S++)if(this.orderedFactories[S].isSupported(J))return this.orderedFactories[S].makeBeacon(p,J);throw new $r;};var kAk=Symbol("ia"),gFq=Symbol("ja"),xF=function(p,J){this.value=p;this.timeline=J},wW=function(p,J){if(J.timeline!==p.timeline)throw new UDU;
return p.value-J.value};
_.R=xF.prototype;_.R.equals=function(p){return wW(this,p)===0};
_.R.maximum=function(p){if(p.timeline!==this.timeline)throw new UDU;return this.value>=p.value?this:p};
_.R.round=function(){return new xF(Math.round(this.value),this.timeline)};
_.R.add=function(p){return new xF(this.value+p,this.timeline)};
_.R.toString=function(){return String(this.value)};var o1=function(p,J){this.context=p;this.JSC$9351_pinger=J};
o1.prototype.isSupported=function(p){return this.JSC$9351_pinger.isSupported(p)};
o1.prototype.makeBeacon=function(p,J){if(!this.isSupported(J))throw new $r;return new e_(this.context,this.JSC$9351_pinger,J!=null?J:void 0,p)};
var e_=function(p,J,S,H){var M=this;this.JSC$9357_pinger=J;this.properties=S;this.url=H;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var X;this.method=(X=S==null?void 0:S.beaconMethod)!=null?X:"GET";this.backgroundedSubscription=p.getOnBackgrounded().subscribe(function(){M.sendNow()})};
e_.prototype.deactivate=function(){this.internalIsPending=!1};
e_.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9357_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var p,J;this.JSC$9357_pinger.pingWithHeadersAndBody((p=this.properties)!=null?p:{},this.customHeaders,(J=this.body)!=null?J:"",this.url)}else this.JSC$9357_pinger.ping(this.url);this.internalIsPending=!1}catch(S){}else this.internalIsPending=!1};
e_.prototype.setHeader=function(p,J){this.customHeaders.set(p,J)};
_.vh.Object.defineProperties(e_.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var hjd=function(){for(var p=_.K(_.Yp.apply(0,arguments)),J=p.next();!J.done;J=p.next())if(J=J.value,J.available()){this.timeProvider=J;return}this.timeProvider=new t08};
_.R=hjd.prototype;_.R.available=function(){return this.timeProvider.available()};
_.R.now=function(){return this.timeProvider.now()};
_.R.setTimeout=function(p,J){return this.timeProvider.setTimeout(p,J)};
_.R.clearTimeout=function(p){this.timeProvider.clearTimeout(p)};
_.R.interval=function(p,J){var S=this.intervalObservable(p).subscribe(J);return function(){return void S.unsubscribe()}};
_.R.intervalObservable=function(p){return this.timeProvider.intervalObservable(p)};
_.vh.Object.defineProperties(hjd.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var t08=function(){this.timeline=Symbol()};
_.R=t08.prototype;_.R.available=function(){return!1};
_.R.now=function(){return new xF(0,this.timeline)};
_.R.setTimeout=function(){return 0};
_.R.clearTimeout=function(){};
_.R.interval=function(){return function(){}};
_.R.intervalObservable=function(){return DZ};var Wj=function(p,J){this.intrinsicFunctionNamespace=p;this.performanceMonitor=J};
_.R=Wj.prototype;_.R.setTimeout=function(p,J){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,p),J)};
_.R.clearTimeout=function(p){this.intrinsicFunctionNamespace.clearTimeout(p)};
_.R.interval=function(p,J){var S=this.intervalObservable(p).subscribe(J);return function(){return void S.unsubscribe()}};
_.R.intervalObservable=function(p){var J=this;return new Au(function(S){var H=0,M=J.intrinsicFunctionNamespace.setInterval(function(){S.next(H++)},p);
return function(){J.intrinsicFunctionNamespace.clearInterval(M)}})};
_.R.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var DDE=function(p,J){Wj.call(this,p,J);this.timeline=gFq};
_.Q(DDE,Wj);DDE.prototype.now=function(){return new xF(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
DDE.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Wj.prototype.available.call(this)};var kHm=function(p,J){Wj.call(this,p,J);this.timeline=kAk};
_.Q(kHm,Wj);kHm.prototype.now=function(){return new xF(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
kHm.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Wj.prototype.available.call(this)};var TWU=function(p){this.context=p;if(NWn===void 0)a:{var J,S,H=(J=p.global)==null?void 0:(S=J.document)==null?void 0:S.createElement("meta");if(H)try{H.httpEquiv="origin-trial";H.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";p.global.document.head.append(H);NWn=H;break a}catch(M){}NWn=void 0}},
NWn;
TWU.prototype.isSupported=function(p){return zmk(this.context)!==void 0&&!(p==null||!p.endOfSession)&&!Q4(this.context)&&!(p==null?0:p.attributionEnabled)&&!(p==null?0:p.customHeaders)&&!(p==null?0:p.customBody)};
TWU.prototype.makeBeacon=function(p,J){if(!this.isSupported(J))throw new $r;return new CX(this.context,p,J)};
var CX=function(p,J,S){this.context=p;this.properties=S;this.JSC$9384_urlWithoutToken=J;var H;this.beaconMethod=(H=S==null?void 0:S.beaconMethod)!=null?H:"GET";p=zmk(this.context);if(p===void 0)throw Error();this.fetchLater=p;dDo(this,ul8(this))},dDo=function(p,J){p.beaconResult&&p.beaconResult.activated||(p.beaconAbort=new AbortController,p.beaconResult=p.fetchLater(J,{method:p.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:p.beaconAbort.signal,activateAfter:96E4}))},ul8=function(p){p=p.JSC$9384_urlWithoutToken;
return(p.slice(-1)[0]==="&"?p:p+"&")+"flapi=1"};
CX.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
CX.prototype.sendNow=function(){};
CX.prototype.setHeader=function(){};
_.vh.Object.defineProperties(CX.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9384_urlWithoutToken},
set:function(p){this.JSC$9384_urlWithoutToken=p;p=ul8(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);dDo(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 lrU=function(p){this.context=p};
lrU.prototype.isSupported=function(){return!Q4(this.context)&&!!this.context.global.fetch};
lrU.prototype.ping=function(){var p=this;return rW.apply(null,_.dW(_.Yp.apply(0,arguments).map(function(J){return $F(p.context.global.fetch(J,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(TH(function(S){return S.status===200}))}))).pipe(yyw(function(J){return J}),U0g())};
lrU.prototype.pingWithHeadersAndBody=function(p,J,S){for(var H=_.Yp.apply(3,arguments),M=this,X=new Headers,Z=_.K(J.entries()),n=Z.next();!n.done;n=Z.next()){var b=_.K(n.value);n=b.next().value;b=b.next().value;X.set(n,b)}var F,f=(F=p.keepAlive)!=null?F:!1;rW.apply(null,_.dW(H.map(function(O){return $F(M.context.global.fetch(O,Object.assign({},{method:String(p.beaconMethod),cache:"no-cache"},f?{keepalive:!0}:{},{mode:"no-cors",headers:X,body:S}))).pipe(TH(function(A){return A.status===200}))}))).pipe(yyw(function(O){return O}),
U0g())};var V0L,h84,qKp;_.y4=function(){};
_.D3=function(p){return p};
V0L=function(p){var J=J||0;return function(){return p.apply(this,Array.prototype.slice.call(arguments,0,J))}};
_.Bj=function(p){var J=!1,S;return function(){J||(S=p(),J=!0);return S}};
_.Uj=function(p,J){var S=0;return function(H){_.Hg.clearTimeout(S);var M=arguments;S=_.Hg.setTimeout(function(){p.apply(void 0,M)},J)}};
h84=function(p,J){var S=0,H=!1,M=[],X=function(){S=0;H&&(H=!1,Z())},Z=function(){S=_.Hg.setTimeout(X,J);
var n=M;M=[];p.apply(void 0,n)};
return function(n){M=arguments;S?H=!0:Z()}};
qKp=function(p,J){var S=0,H=function(){S=0};
return function(M){S||(S=_.Hg.setTimeout(H,J),p.apply(void 0,arguments))}};var EFo=function(){return A9&&zW?zW.mobile:!ar8()&&($s("iPod")||$s("iPhone")||$s("Android")||$s("IEMobile"))},ar8=function(){return A9&&zW?!zW.mobile&&($s("iPad")||$s("Android")||$s("Silk")):$s("iPad")||$s("Android")&&!$s("Mobile")||$s("Silk")};var sj=function(p,J,S,H,M){this.allowedElements=p;this.elementPolicies=J;this.allowedGlobalAttributes=S;this.globalAttributePolicies=H;this.globallyAllowedAttributePrefixes=M},YKv=function(p,J,S){S=p.elementPolicies.get(S);
return(S==null?0:S.has(J))?S.get(J):p.allowedGlobalAttributes.has(J)?{policyAction:1}:(S=p.globalAttributePolicies.get(J))?S:p.globallyAllowedAttributePrefixes&&[].concat(_.dW(p.globallyAllowedAttributePrefixes)).some(function(H){return J.indexOf(H)===0})?{policyAction:1}:{policyAction:0}};var ru4="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(" "),
jIv=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],wZ8="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
xDE=[["dir",{policyAction:3,conditions:BG(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:BG(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:BG(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:BG(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],cu8=new sj(new Set(ru4),new Map(jIv),new Set(wZ8),new Map(xDE)),Iro=new sj(new Set(ru4.concat(["BUTTON",
"INPUT"])),new Map(jIv),new Set(BG(function(){return wZ8.concat(["class","id","name"])})),new Map(BG(function(){return xDE.concat([["style",
{policyAction:1}]])})));var LCp,psm,S9o;LCp=function(p,J,S,H,M){this.JSC$9441_sanitizerTable=p;this.styleElementSanitizer=J;this.styleAttributeSanitizer=S;this.JSC$9441_resourceUrlPolicy=H;this.JSC$9441_navigationUrlPolicy=M;this.changes=[]};
_.Jy4=function(p,J){var S=document.implementation.createHTMLDocument("");p=psm(p,J,S);S=S.body;S.appendChild(p);S=(new XMLSerializer).serializeToString(S);S=S.slice(S.indexOf(">")+1,S.lastIndexOf("</"));return xp(S)};
psm=function(p,J,S){J=uCi(J,S);J=document.createTreeWalker(J,5,function(n){if(n.nodeType===3)n=1;else if(V6k(n))if(n=lZ9(n),n===null)n=2;else{var b=p.JSC$9441_sanitizerTable;n=n!=="FORM"&&(b.allowedElements.has(n)||b.elementPolicies.has(n))?1:2}else n=2;return n});
for(var H=J.nextNode(),M=S.createDocumentFragment(),X=M;H!==null;){var Z=void 0;if(H.nodeType===3)p.styleElementSanitizer&&X.nodeName==="STYLE"?(H=p.styleElementSanitizer(H.data),Z=p.createTextNode(H)):Z=p.createTextNode(H.data);else if(V6k(H))Z=S9o(p,H,S);else throw Error("Z");X.appendChild(Z);if(H=J.firstChild())X=Z;else for(;!(H=J.nextSibling())&&(H=J.parentNode());)X=X.parentNode}return M};
LCp.prototype.createTextNode=function(p){return document.createTextNode(p)};
S9o=function(p,J,S){var H,M=lZ9(J);S=S.createElement(M);J=J.attributes;for(var X=_.K(J),Z=X.next();!Z.done;Z=X.next()){var n=Z.value;Z=n.name;n=n.value;var b=YKv(p.JSC$9441_sanitizerTable,Z,M);a:{if(H=b.conditions){H=_.K(H);for(var F=H.next();!F.done;F=H.next()){var f=_.K(F.value);F=f.next().value;f=f.next().value;var O=void 0;if((F=(O=J.getNamedItem(F))==null?void 0:O.value)&&!f.has(F)){H=!1;break a}}}H=!0}if(H)switch(b.policyAction){case 1:vs(S,Z,n);break;case 2:throw Error();case 3:vs(S,Z,n.toLowerCase());
break;case 4:p.styleAttributeSanitizer?(n=p.styleAttributeSanitizer(n),vs(S,Z,n)):vs(S,Z,n);break;case 5:p.JSC$9441_resourceUrlPolicy?(b={type:2,attributeName:Z,elementName:M},n=d0W(n),(n=p.JSC$9441_resourceUrlPolicy(n,b))&&vs(S,Z,n.toString())):vs(S,Z,n);break;case 6:if(p.JSC$9441_resourceUrlPolicy){b={type:2,attributeName:Z,elementName:M};H=[];n=_.K(n.split(","));for(F=n.next();!F.done;F=n.next())f=_.K(F.value.trim().split(/\s+/,2)),F=f.next().value,f=f.next().value,H.push({url:F,descriptor:f});
n={parts:[]};H=_.K(H);for(F=H.next();!F.done;F=H.next())F=F.value,f=d0W(F.url),(f=p.JSC$9441_resourceUrlPolicy(f,b))&&n.parts.push({url:f.toString(),descriptor:F.descriptor});vs(S,Z,q93(n))}else vs(S,Z,n);break;case 7:b=n;if(p.JSC$9441_navigationUrlPolicy){b={type:2,attributeName:Z,elementName:M};n=d0W(n);n=p.JSC$9441_navigationUrlPolicy(n,b);if(n===null)break;b=n.toString()}n=b;b=_.nFi(n);b=b!==void 0&&H_L.indexOf(b.toLowerCase())!==-1?n:"about:invalid#zClosurez";vs(S,Z,b)}}return S};
_.HAd=BG(function(){return new LCp(cu8)});
_.M6L=BG(function(){return new LCp(Iro)});var Xs4=function(){this.calledBuild=!1;this.JSC$9453_sanitizerTable=cu8},iAp=function(){Xs4.apply(this,arguments)};
_.Q(iAp,Xs4);iAp.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new LCp(this.JSC$9453_sanitizerTable,void 0,void 0,this.JSC$9453_resourceUrlPolicy,this.JSC$9453_navigationUrlPolicy)};var Rmv=/[^#]*/;var t6v={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"},K9m=_.Bj(function(){return D0k()}),
nom=function(){var p=ZAn("IFRAME"),J={};
_.MV(K9m(),function(S){p.sandbox&&p.sandbox.supports&&p.sandbox.supports(S)&&(J[S]=!0)});
return J},ZAn=function(p,J){J=J===void 0?document:J;
return J.createElement(String(p).toLowerCase())};var g7;_.s0=function(p,J,S){return Math.min(Math.max(p,J),S)};
g7=function(p,J,S){return p+S*(J-p)};_.uI=function(p,J){this.x=p!==void 0?p:0;this.y=J!==void 0?J:0};
_.R=_.uI.prototype;_.R.clone=function(){return new _.uI(this.x,this.y)};
_.R.equals=function(p){return p instanceof _.uI&&(this==p?!0:this&&p?this.x==p.x&&this.y==p.y:!1)};
_.R.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.R.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.R.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.R.translate=function(p,J){p instanceof _.uI?(this.x+=p.x,this.y+=p.y):(this.x+=Number(p),typeof J==="number"&&(this.y+=J));return this};
_.R.scale=function(p,J){this.x*=p;this.y*=typeof J==="number"?J:p;return this};_.yF=function(p,J){this.width=p;this.height=J};
_.R=_.yF.prototype;_.R.clone=function(){return new _.yF(this.width,this.height)};
_.R.area=function(){return this.width*this.height};
_.R.aspectRatio=function(){return this.width/this.height};
_.R.isEmpty=function(){return!this.area()};
_.R.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.R.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.R.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.R.scale=function(p,J){this.width*=p;this.height*=typeof J==="number"?J:p;return this};var G6U;_.T6={};G6U="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.T6.add=function(p,J,S){if(p!==null&&J in p)throw Error("na`"+J);p[J]=S};
_.T6.clear=function(p){for(var J in p)delete p[J]};
_.T6.clone=function(p){var J={},S;for(S in p)J[S]=p[S];return J};
_.T6.contains=function(p,J){return jrs(p,J)};
_.T6.containsKey=function(p,J){return p!==null&&J in p};
_.T6.containsValue=jrs;_.T6.create=cyg;_.T6.createImmutableView=function(p){var J=p;Object.isFrozen&&!Object.isFrozen(p)&&(J=Object.create(p),Object.freeze(J));return J};
_.T6.createSet=IZW;_.T6.equals=function(p,J){for(var S in p)if(!(S in J)||p[S]!==J[S])return!1;for(var H in J)if(!(H in p))return!1;return!0};
_.T6.every=function(p,J,S){for(var H in p)if(!J.call(S,p[H],H,p))return!1;return!0};
_.T6.extend=function(p,J){for(var S,H,M=1;M<arguments.length;M++){H=arguments[M];for(S in H)p[S]=H[S];for(var X=0;X<G6U.length;X++)S=G6U[X],Object.prototype.hasOwnProperty.call(H,S)&&(p[S]=H[S])}};
_.T6.filter=function(p,J,S){var H={},M;for(M in p)J.call(S,p[M],M,p)&&(H[M]=p[M]);return H};
_.T6.findKey=ws9;_.T6.findValue=function(p,J,S){return(J=ws9(p,J,S))&&p[J]};
_.T6.forEach=function(p,J,S){for(var H in p)J.call(S,p[H],H,p)};
_.T6.get=function(p,J,S){return p!==null&&J in p?p[J]:S};
_.T6.getAllPropertyNames=function(p,J,S){if(!p)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return ryv(p);for(var H={};p&&(p!==Object.prototype||J)&&(p!==Function.prototype||S);){for(var M=Object.getOwnPropertyNames(p),X=0;X<M.length;X++)H[M[X]]=!0;p=Object.getPrototypeOf(p)}return ryv(H)};
_.T6.getAnyKey=function(p){for(var J in p)return J};
_.T6.getAnyValue=function(p){for(var J in p)return p[J]};
_.T6.getCount=function(p){var J=0,S;for(S in p)J++;return J};
_.T6.getKeys=ryv;_.T6.getSuperClass=function(p){return(p=Object.getPrototypeOf(p.prototype))&&p.constructor};
_.T6.getValueByKeys=function(p,J){var S=_.qW(J),H=S?J:arguments;for(S=S?0:1;S<H.length;S++){if(p==null)return;p=p[H[S]]}return p};
_.T6.getValues=function(p){var J=[],S=0,H;for(H in p)J[S++]=p[H];return J};
_.T6.isEmpty=function(p){for(var J in p)return!1;return!0};
_.T6.isImmutableView=function(p){return!!Object.isFrozen&&Object.isFrozen(p)};
_.T6.map=function(p,J,S){var H={},M;for(M in p)H[M]=J.call(S,p[M],M,p);return H};
_.T6.remove=function(p,J){var S;(S=J in p)&&delete p[J];return S};
_.T6.set=function(p,J,S){p[J]=S};
_.T6.setIfUndefined=function(p,J,S){return J in p?p[J]:p[J]=S};
_.T6.setWithReturnValueIfNotSet=function(p,J,S){if(J in p)return p[J];S=S();return p[J]=S};
_.T6.some=function(p,J,S){for(var H in p)if(J.call(S,p[H],H,p))return!0;return!1};
_.T6.transpose=function(p){var J={},S;for(S in p)J[p[S]]=S;return J};
_.T6.unsafeClone=x0v;var IJ=function(p,J){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=p===rm4&&J||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=bA8};
IJ.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var m0M=function(p){return p instanceof IJ&&p.constructor===IJ&&p.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===bA8?p.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},bA8={},rm4={};
new IJ(rm4,"");var s9,y0,hd,F9L,OAv,fZo,lI,PI8,$0o,zmm,T5,oo8,U0E,B2v,yy8,srU,gon,t68,hm8,G$X,D0m,N28,T2m,k6p,td;s9=function(p){return p?new td(_.VF(p)):z4p||(z4p=new td)};
_.pG=function(p,J){return typeof J==="string"?p.getElementById(J):J};
y0=function(p,J){return(J||document).getElementsByTagName(String(p))};
_.vov=function(p){return F9L("yt-formatted-string","paper-input-input",p)};
hd=function(p,J,S,H){p=H||p;return(J=J&&J!="*"?String(J).toUpperCase():"")||S?p.querySelectorAll(J+(S?"."+S:"")):p.getElementsByTagName("*")};
F9L=function(p,J,S){var H=document,M=p&&p!="*"?String(p).toUpperCase():"";return M||J?(S||H).querySelector(M+(J?"."+J:"")):hd(H,p,J,S)[0]||null};
OAv=function(p,J){_.T6.forEach(J,function(S,H){H=="style"?p.style.cssText=S:H=="class"?p.className=S:H=="for"?p.htmlFor=S:fZo.hasOwnProperty(H)?p.setAttribute(fZo[H],S):_.XX(H,"aria-")||_.XX(H,"data-")?p.setAttribute(H,S):p[H]=S})};
fZo={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"};_.Bs=function(p){p=(p||window).document;p=p.compatMode=="CSS1Compat"?p.documentElement:p.body;return new _.yF(p.clientWidth,p.clientHeight)};
_.AyE=function(p){var J=_.Dv(p);p=p.defaultView;return new _.uI((p==null?void 0:p.pageXOffset)||J.scrollLeft,(p==null?void 0:p.pageYOffset)||J.scrollTop)};
_.Dv=function(p){return p.scrollingElement?p.scrollingElement:_.Ku||p.compatMode!="CSS1Compat"?p.body||p.documentElement:p.documentElement};
lI=function(p){return p?p.defaultView:window};
_.kr=function(p,J,S){return PI8(document,arguments)};
PI8=function(p,J){var S=J[1],H=zmm(p,String(J[0]));S&&(typeof S==="string"?H.className=S:Array.isArray(S)?H.className=S.join(" "):OAv(H,S));J.length>2&&$0o(p,H,J,2);return H};
$0o=function(p,J,S,H){function M(n){n&&J.appendChild(typeof n==="string"?p.createTextNode(n):n)}
for(;H<S.length;H++){var X=S[H];if(!_.qW(X)||_.Ei(X)&&X.nodeType>0)M(X);else{a:{if(X&&typeof X.length=="number"){if(_.Ei(X)){var Z=typeof X.item=="function"||typeof X.item=="string";break a}if(typeof X==="function"){Z=typeof X.item=="function";break a}}Z=!1}_.MV(Z?_.VX(X):X,M)}}};
_.Q0=function(p){return zmm(document,p)};
zmm=function(p,J){J=String(J);p.contentType==="application/xhtml+xml"&&(J=J.toLowerCase());return p.createElement(J)};
_.NR=function(){return document.createTextNode("\n")};
T5=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};
oo8=function(p,J){$0o(_.VF(p),p,arguments,1)};
_.d7=function(p){for(var J;J=p.firstChild;)p.removeChild(J)};
_.u_=function(p,J){J.parentNode&&J.parentNode.insertBefore(p,J)};
_.l_=function(p,J){J.parentNode&&J.parentNode.insertBefore(p,J.nextSibling)};
_.CC=function(p){return p&&p.parentNode?p.parentNode.removeChild(p):null};
_.em8=function(p,J){var S=J.parentNode;S&&S.replaceChild(p,J)};
_.W9E=function(p){var J,S=p.parentNode;if(S&&S.nodeType!=11)if(p.removeNode)p.removeNode(!1);else{for(;J=p.firstChild;)S.insertBefore(J,p);_.CC(p)}};
_.V4=function(p){return p.children!=void 0?p.children:Array.prototype.filter.call(p.childNodes,function(J){return J.nodeType==1})};
_.CIE=function(p){return p.nextElementSibling!==void 0?p.nextElementSibling:_.Qrn(p.nextSibling,!0)};
_.Qrn=function(p,J){for(;p&&p.nodeType!=1;)p=J?p.nextSibling:p.previousSibling;return p};
_.bS=function(p){return _.Ei(p)&&p.nodeType==1};
_.wp=function(p,J){if(!p||!J)return!1;if(p.contains&&J.nodeType==1)return p==J||p.contains(J);if(typeof p.compareDocumentPosition!="undefined")return p==J||!!(p.compareDocumentPosition(J)&16);for(;J&&p!=J;)J=J.parentNode;return J==p};
U0E=function(p,J){if(p==J)return 0;if(p.compareDocumentPosition)return p.compareDocumentPosition(J)&2?1:-1;if("sourceIndex"in p||p.parentNode&&"sourceIndex"in p.parentNode){var S=p.nodeType==1,H=J.nodeType==1;if(S&&H)return p.sourceIndex-J.sourceIndex;var M=p.parentNode,X=J.parentNode;return M==X?yy8(p,J):!S&&_.wp(M,J)?-1*B2v(p,J):!H&&_.wp(X,p)?B2v(J,p):(S?p.sourceIndex:M.sourceIndex)-(H?J.sourceIndex:X.sourceIndex)}H=_.VF(p);S=H.createRange();S.selectNode(p);S.collapse(!0);p=H.createRange();p.selectNode(J);
p.collapse(!0);return S.compareBoundaryPoints(_.Hg.Range.START_TO_END,p)};
B2v=function(p,J){var S=p.parentNode;if(S==J)return-1;for(;J.parentNode!=S;)J=J.parentNode;return yy8(J,p)};
yy8=function(p,J){for(;J=J.previousSibling;)if(J==p)return-1;return 1};
srU=function(p){var J,S=arguments.length;if(!S)return null;if(S==1)return arguments[0];var H=[],M=Infinity;for(J=0;J<S;J++){for(var X=[],Z=arguments[J];Z;)X.unshift(Z),Z=Z.parentNode;H.push(X);M=Math.min(M,X.length)}X=null;for(J=0;J<M;J++){Z=H[0][J];for(var n=1;n<S;n++)if(Z!=H[n][J])return X;X=Z}return X};
_.VF=function(p){return p.nodeType==9?p:p.ownerDocument||p.document};
gon=function(p){return p.contentDocument||p.contentWindow.document};
_.qR=function(p,J){if("textContent"in p)p.textContent=J;else if(p.nodeType==3)p.data=String(J);else if(p.firstChild&&p.firstChild.nodeType==3){for(;p.lastChild!=p.firstChild;)p.removeChild(p.lastChild);p.firstChild.data=String(J)}else _.d7(p),p.appendChild(_.VF(p).createTextNode(String(J)))};
t68={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};hm8={IMG:" ",BR:"\n"};G$X=function(p){var J;p.tagName=="A"&&p.hasAttribute("href")||p.tagName=="INPUT"||p.tagName=="TEXTAREA"||p.tagName=="SELECT"||p.tagName=="BUTTON"?J=!p.disabled&&(!p.hasAttribute("tabindex")||D0m(p)):J=p.hasAttribute("tabindex")&&D0m(p);return J};
D0m=function(p){p=p.tabIndex;return typeof p==="number"&&p>=0&&p<32768};
N28=function(p){var J=[];k6p(p,J,!0);p=J.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};
T2m=function(p){var J=[];k6p(p,J,!1);return J.join("")};
k6p=function(p,J,S){if(!(p.nodeName in t68))if(p.nodeType==3)S?J.push(String(p.nodeValue).replace(/(\r\n|\r|\n)/g,"")):J.push(p.nodeValue);else if(p.nodeName in hm8)J.push(hm8[p.nodeName]);else for(p=p.firstChild;p;)k6p(p,J,S),p=p.nextSibling};
_.d0o=function(p,J,S){if(!J&&!S)return null;var H=J?String(J).toUpperCase():null;return _.ar(p,function(M){return(!H||M.nodeName==H)&&(!S||typeof M.className==="string"&&_.dk(M.className.split(/\s+/),S))},!0)};
_.ar=function(p,J,S){p&&!S&&(p=p.parentNode);for(S=0;p;){if(J(p))return p;p=p.parentNode;S++}return null};
td=function(p){this.JSC$9481_document_=p||_.Hg.document||document};
_.R=td.prototype;_.R.getElement=function(p){return _.pG(this.JSC$9481_document_,p)};
_.R.$=td.prototype.getElement;_.R.getElementsByTagName=function(p,J){return(J||this.JSC$9481_document_).getElementsByTagName(String(p))};
_.R.getElementsByTagNameAndClass=function(p,J,S){return hd(this.JSC$9481_document_,p,J,S)};
_.R.$$=td.prototype.getElementsByTagNameAndClass;_.R.setProperties=OAv;_.R.JSC$9483_createDom=function(p,J,S){return PI8(this.JSC$9481_document_,arguments)};
_.R.createElement=function(p){return zmm(this.JSC$9481_document_,p)};
_.R.createTextNode=function(p){return this.JSC$9481_document_.createTextNode(String(p))};
_.R.getWindow=function(){return this.JSC$9481_document_.defaultView};
var U9=function(p){return _.AyE(p.JSC$9481_document_)};
_.R=td.prototype;_.R.appendChild=function(p,J){p.appendChild(J)};
_.R.append=oo8;_.R.canHaveChildren=T5;_.R.removeNode=_.CC;_.R.getChildren=_.V4;_.R.contains=_.wp;_.R.isFocusable=G$X;_.R=Ay.prototype;_.R.getWidth=function(){return this.right-this.left};
_.R.getHeight=function(){return this.bottom-this.top};
_.R.clone=function(){return new Ay(this.top,this.right,this.bottom,this.left)};
_.R.contains=function(p){return this&&p?p instanceof Ay?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};
_.R.expand=function(p,J,S,H){_.Ei(p)?(this.top-=p.top,this.right+=p.right,this.bottom+=p.bottom,this.left-=p.left):(this.top-=p,this.right+=Number(J),this.bottom+=Number(S),this.left-=Number(H));return this};
_.R.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};
_.R.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};
_.R.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};
_.R.translate=function(p,J){p instanceof _.uI?(this.left+=p.x,this.right+=p.x,this.top+=p.y,this.bottom+=p.y):(this.left+=p,this.right+=p,typeof J==="number"&&(this.top+=J,this.bottom+=J));return this};
_.R.scale=function(p,J){J=typeof J==="number"?J:p;this.left*=p;this.right*=p;this.top*=J;this.bottom*=J;return this};var a1=function(p,J,S,H){this.left=p;this.top=J;this.width=S;this.height=H};
_.R=a1.prototype;_.R.clone=function(){return new a1(this.left,this.top,this.width,this.height)};
_.R.boundingRect=function(p){var J=Math.max(this.left+this.width,p.left+p.width),S=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=J-this.left;this.height=S-this.top};
_.R.contains=function(p){return p instanceof _.uI?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};
_.R.distance=function(p){var J=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(J*J+p*p)};
_.R.getSize=function(){return new _.yF(this.width,this.height)};
_.R.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};
_.R.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};
_.R.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};
_.R.translate=function(p,J){p instanceof _.uI?(this.left+=p.x,this.top+=p.y):(this.left+=p,typeof J==="number"&&(this.top+=J));return this};
_.R.scale=function(p,J){J=typeof J==="number"?J:p;this.left*=p;this.width*=p;this.top*=J;this.height*=J;return this};var lZ8,r7,eWi,Yr,Eo4,aZ8,Y98,fv9,ry8,ws8;_.Ej=function(p,J,S){if(typeof J==="string")(J=_.uC8(p,J))&&(p.style[J]=S);else for(var H in J){S=p;var M=J[H],X=_.uC8(S,H);X&&(S.style[X]=M)}};
lZ8={};_.uC8=function(p,J){var S=lZ8[J];if(!S){var H=_.Zx(J);S=H;p.style[H]===void 0&&(H=(_.Ku?"Webkit":_.Rh?"Moz":null)+b_8(H),p.style[H]!==void 0&&(S=H));lZ8[J]=S}return S};
_.Rt=function(p,J){var S=_.VF(p);return S.defaultView&&S.defaultView.getComputedStyle&&(p=S.defaultView.getComputedStyle(p,null))?p[J]||p.getPropertyValue(J)||"":""};
_.jm=function(p,J){return _.Rt(p,J)||(p.currentStyle?p.currentStyle[J]:null)||p.style&&p.style[J]};
_.V6m=function(p){return _.jm(p,"position")};
r7=function(p,J,S){if(J instanceof _.uI){var H=J.x;J=J.y}else H=J,J=S;p.style.left=Yr(H,!1);p.style.top=Yr(J,!1)};
eWi=function(p){try{return p.getBoundingClientRect()}catch(J){return{left:0,top:0,right:0,bottom:0}}};
_.q0=function(p){var J=_.VF(p),S=new _.uI(0,0);if(p==(J?_.VF(J):document).documentElement)return S;p=eWi(p);J=U9(s9(J));S.x=p.left+J.x;S.y=p.top+J.y;return S};
_.q9q=function(p,J,S){if(J instanceof _.yF)S=J.height,J=J.width;else if(S==void 0)throw Error("oa");p.style.width=Yr(J,!0);p.style.height=Yr(S,!0)};
Yr=function(p,J){typeof p=="number"&&(p=(J?Math.round(p):p)+"px");return p};
Eo4=function(p){return aZ8(p)};
aZ8=function(p){var J=Y98;if(_.jm(p,"display")!="none")return J(p);var S=p.style,H=S.display,M=S.visibility,X=S.position;S.visibility="hidden";S.position="absolute";S.display="inline";p=J(p);S.display=H;S.position=X;S.visibility=M;return p};
Y98=function(p){var J=p.offsetWidth,S=p.offsetHeight,H=_.Ku&&!J&&!S;return(J===void 0||H)&&p.getBoundingClientRect?(p=eWi(p),new _.yF(p.right-p.left,p.bottom-p.top)):new _.yF(J,S)};
fv9=function(p){var J=_.q0(p);p=aZ8(p);return new a1(J.x,J.y,p.width,p.height)};
ry8=function(p,J){p=p.style;"opacity"in p?p.opacity=J:"MozOpacity"in p?p.MozOpacity=J:"filter"in p&&(p.filter=J===""?"":"alpha(opacity="+Number(J)*100+")")};
_.JZ=function(p,J){p.style.display=J?"":"none"};
_.jrU=function(p){return"rtl"==_.jm(p,"direction")};
ws8=function(p){var J=_.Rt(p,"marginLeft"),S=_.Rt(p,"marginRight"),H=_.Rt(p,"marginTop");p=_.Rt(p,"marginBottom");return new Ay(parseFloat(H),parseFloat(S),parseFloat(p),parseFloat(J))};
_.x08=function(p){var J=_.Rt(p,"borderLeftWidth"),S=_.Rt(p,"borderRightWidth"),H=_.Rt(p,"borderTopWidth");p=_.Rt(p,"borderBottomWidth");return new Ay(parseFloat(H),parseFloat(S),parseFloat(p),parseFloat(J))};var j_=function(p){this.context=p};
j_.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:!Q4(this.context)};
j_.prototype.ping=function(){var p=this;return tu(_.Yp.apply(0,arguments).map(function(J){try{var S=p.context.global,H=!1;H=H===void 0?!1:H;S.google_image_requests||(S.google_image_requests=[]);var M=ZAn("IMG",S.document);H&&(M.attributionSrc="");M.src=J;S.google_image_requests.push(M);return!0}catch(X){return!1}}).every(function(J){return J}))};
j_.prototype.pingWithHeadersAndBody=function(p,J,S){this.ping.apply(this,_.dW(_.Yp.apply(3,arguments)))};var cyE=function(p){this.context=p};
cyE.prototype.isSupported=function(p){return IZo&&!Q4(this.context)&&L9w(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)};
cyE.prototype.makeBeacon=function(p,J){if(!this.isSupported(J))throw new $r;return new w7(this.context,p)};
var IZo=!1,w7=function(p,J){this.context=p;this.JSC$9502_urlWithoutToken=J;p=L9w(this.context);if(p===void 0)throw Error();this.wrappedBeacon=new p(L98(this),{})},L98=function(p){p=p.JSC$9502_urlWithoutToken;
return(p.slice(-1)[0]==="&"?p:p+"&")+"pbapi=1"};
w7.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
w7.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
w7.prototype.setHeader=function(){};
_.vh.Object.defineProperties(w7.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9502_urlWithoutToken},
set:function(p){this.JSC$9502_urlWithoutToken=p;this.wrappedBeacon.setURL(L98(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(p){if(p!=="GET")throw new $r;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var p0o=function(p){this.context=p};
p0o.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 J;return!Q4(this.context)&&((J=this.context.global.navigator)==null?void 0:J.sendBeacon)!==void 0};
p0o.prototype.ping=function(){var p=this;return tu(_.Yp.apply(0,arguments).map(function(J){var S;return(S=p.context.global.navigator)==null?void 0:S.sendBeacon(J)}).every(function(J){return J}))};
p0o.prototype.pingWithHeadersAndBody=function(p,J,S){this.ping.apply(this,_.dW(_.Yp.apply(3,arguments)))};var Ws=function(p){this.value=p},Sm=function(p,J){return tu(p.value).pipe(or(J))},ML=new Ws(!1),kVX=new Ws(!0);var E9=function(p){this.value=p;this.releasedSubject=new z6};
E9.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.vh.Object.defineProperties(E9.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9515_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var bCW=["FRAME","IMG","IFRAME"],iCk=/^[01](px)?$/,GNX=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},ncX=function(){var p=new GNX;
p.crossDomainLoadedDefault=!0;p.pendingImagesBlockLoad=!0;return p};var JT8=function(p,J){var S=PW3(p);if(S)if(S.onCreativeLoad)S.onCreativeLoad(J);else{var H=J?[J]:[],M=function(X){for(var Z=0;Z<H.length;++Z)try{H[Z](1,X)}catch(n){}H={push:function(n){n(1,X)}}};
S.onCreativeLoad=function(X){H.push(X)};
S.setAttribute("data-creative-load-listener","");S.addEventListener("creativeLoad",function(X){M(X.detail)});
_.Hg.addEventListener("message",function(X){ATg(S,M,X)})}};var xr=function(p,J){var S=this;this.global=p;this.parentContext=J;this.JSC$9526_onVisibilityChange=this.document?rW(tu(!0),aI(this.document,"visibilitychange")).pipe(cZ(this.parentContext.performanceMonitor,748),TH(function(){return S.getVisibilityState()}),Hs()):tu("visible");
this.document?aI(this.document,"DOMContentLoaded").pipe(cZ(this.parentContext.performanceMonitor,739),S6(1)):tu(Mmv("DOMContentLoaded"))},Dz3=function(p){return p.document!==null&&p.document.visibilityState!==void 0};
xr.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
xr.prototype.querySelector=function(p){return this.document?this.document.querySelector(p):null};
xr.prototype.querySelectorAll=function(p){return this.document?_.VX(this.document.querySelectorAll(p)):[]};
xr.prototype.elementFromPoint=function(p,J){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;p=this.document.elementFromPoint(p,J);return p===null?null:new E9(p)};
var eYW=function(p,J,S){S=S===void 0?!1:S;if(J.ref===void 0||!p.document)return tu(J).pipe(cZ(p.parentContext.performanceMonitor,749));var H=new Rr(1),M=function(){H.next(J)};
S||JT8(J.ref,M);mLs(J.ref,M);return H.pipe(cZ(p.parentContext.performanceMonitor,749),S6(1))};
_.vh.Object.defineProperties(xr.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return k6i(this.global,"document")?this.global.document||null:null}}});var zw4=_.YI(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),$Lv=_.YI(["./reach_worklet.js"]),oct=_.YI(["./reach_worklet.js"]),SVq=_.YI(["./reach_worklet.html"]),HCU=_.YI(["./reach_worklet.js"]),Mm8=_.YI(["./reach_worklet.js"]);_.fA(SVq);_.fA(HCU);_.fA(Mm8);var cs={left:0,top:0,width:0,height:0};var X0d,iCm,Rw4,KH8,GG,ncv,GNn,bC4,uts,lfs,vc8,fdo;X0d=function(p,J,S,H,M,X,Z){var n="";p&&(n+=p+":");S&&(n+="//",J&&(n+=J+"@"),n+=S,H&&(n+=":"+H));M&&(n+=M);X&&(n+="?"+X);Z&&(n+="#"+Z);return n};
iCm=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.ZL=function(p){return p.match(iCm)};
_.Wu=function(p,J){return p?J?decodeURI(p):decodeURIComponent(p):p};
Rw4=function(p){p=_.ZL(p)[1]||null;!p&&_.Hg.self&&_.Hg.self.location&&(p=_.Hg.self.location.protocol.slice(0,-1));return p?p.toLowerCase():""};
_.nQ=function(p){return _.Wu(_.ZL(p)[3]||null,!0)};
_.yn=function(p){return _.Wu(_.ZL(p)[5]||null,!0)};
_.b29=function(p){var J=p.indexOf("#");return J<0?null:p.slice(J+1)};
KH8=function(p){p=_.ZL(p);return X0d(p[1],p[2],p[3],p[4])};
_.ZCp=function(p){p=_.ZL(p);return X0d(p[1],null,p[3],p[4])};
_.kV=function(p){p=_.ZL(p);return X0d(null,null,null,null,p[5],p[6],p[7])};
_.aV=function(p){var J=p.indexOf("#");return J<0?p:p.slice(0,J)};
GG=function(p,J){p=_.ZL(p);J=_.ZL(J);return p[3]==J[3]&&p[1]==J[1]&&p[4]==J[4]};
ncv=function(p,J){if(p){p=p.split("&");for(var S=0;S<p.length;S++){var H=p[S].indexOf("="),M=null;if(H>=0){var X=p[S].substring(0,H);M=p[S].substring(H+1)}else X=p[S];J(X,M?md(M):"")}}};
GNn=function(p){var J=p.indexOf("#");J<0&&(J=p.length);var S=p.indexOf("?");if(S<0||S>J){S=J;var H=""}else H=p.substring(S+1,J);return[p.slice(0,S),H,p.slice(J)]};
bC4=function(p,J){return J?p?p+"&"+J:J:p};
_.mLU=function(p,J){if(!J)return p;p=GNn(p);p[1]=bC4(p[1],J);return p[0]+(p[1]?"?"+p[1]:"")+p[2]};
_.FHp=function(p,J,S){if(Array.isArray(J))for(var H=0;H<J.length;H++)_.FHp(p,String(J[H]),S);else J!=null&&S.push(p+(J===""?"":"="+_.HO(J)))};
_.Uv=function(p){var J=[],S;for(S in p)_.FHp(S,p[S],J);return J.join("&")};
_.KQ=function(p,J){J=_.Uv(J);return _.mLU(p,J)};
_.cj=function(p,J,S){S=S!=null?"="+_.HO(S):"";return _.mLU(p,J+S)};
uts=function(p,J,S,H){for(var M=S.length;(J=p.indexOf(S,J))>=0&&J<H;){var X=p.charCodeAt(J-1);if(X==38||X==63)if(X=p.charCodeAt(J+M),!X||X==61||X==38||X==35)return J;J+=M+1}return-1};
lfs=/#|$/;_.xc=function(p,J){var S=p.search(lfs),H=uts(p,0,J,S);if(H<0)return null;var M=p.indexOf("&",H);if(M<0||M>S)M=S;H+=J.length+1;return md(p.slice(H,M!==-1?M:0))};
vc8=/[?&]($|#)/;_.YV=function(p,J){for(var S=p.search(lfs),H=0,M,X=[];(M=uts(p,H,J,S))>=0;)X.push(p.substring(H,M)),H=Math.min(p.indexOf("&",M)+1||S,S);X.push(p.slice(H));return X.join("").replace(vc8,"$1")};
_.pE=function(p,J,S){return _.cj(_.YV(p,J),J,S)};
fdo=function(p){var J=GNn(window.location.href),S=J[1],H=[];S&&S.split("&").forEach(function(M){var X=M.indexOf("=");X=X>=0?M.slice(0,X):M;p.hasOwnProperty(X)||H.push(M)});
J[1]=bC4(H.join("&"),_.Uv(p));return J[0]+(J[1]?"?"+J[1]:"")+J[2]};var qVg=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(qVg,_.Kt);var VmL=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(VmL,_.Kt);var kNX=function(p,J){return _.g2(p,2,J)},ldW=function(p,J){return _.g2(p,3,J)};
VmL.prototype.getModel=function(){return _.B_(this,4)};
var TpW=function(p,J){return _.g2(p,4,J)},DLW=function(p,J){return _.g2(p,5,J)},uSL=function(p,J){return _.g2(p,9,J)},hwi=function(p,J){return oh(p,10,J)},tm4=function(p,J){return _.fC(p,11,J)},NpX=function(p,J){return _.g2(p,1,J)},dL9=function(p,J){return _.fC(p,7,J)};var s7k="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var H0=function(p,J,S,H){p=p===void 0?window:p;J=J===void 0?null:J;S=S===void 0?new ta8:S;H=H===void 0?ewL():H;yu8.call(this);var M=this;this.global=p;this.debugChannel=J;this.performanceMonitor=S;this.onPageHide=XsW(function(){return aI(M.global,"pagehide")}).pipe(cZ(this.performanceMonitor,941));
this.onLoad=XsW(function(){return aI(M.global,"load")}).pipe(cZ(this.performanceMonitor,738),S6(1));
this.onResize=XsW(function(){return aI(M.global,"resize")}).pipe(cZ(this.performanceMonitor,741));
this.onMessage=XsW(function(){return aI(M.global,"message")}).pipe(cZ(this.performanceMonitor,740));
this.document=new xr(this.global,this);this.timeProvider=new hjd(new kHm(this.intrinsicFunctionNamespace,this.performanceMonitor),new DDE(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new sIM(new TWU(this),new cyE(this),new o1(this,new lrU(this)),new o1(this,new p0o(this)),new o1(this,new j_(this)))};
_.Q(H0,yu8);H0.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(p){return p}};
var Q4=function(p){var J=p.global;return!!p.global.HTMLFencedFrameElement&&!!J.fence&&typeof J.fence.reportEvent==="function"};
_.R=H0.prototype;_.R.reportFencedFrameEvent=function(p){Q4(this)&&this.global.fence.reportEvent(p)};
_.R.getOnBackgrounded=function(){return this.onPageHide.pipe(cZ(this.performanceMonitor,942),or(this.queue),TH(function(){}))};
_.R.postMessage=function(p,J,S){S=S===void 0?[]:S;this.global.postMessage(p,J,S)};
_.R.getWidth=function(){return N2i(this.global)?this.global.width:0};
_.R.getHeight=function(){return N2i(this.global)?this.global.height:0};
_.R.isMobile=function(){return ar8()||EFo()};
var Yo=function(p,J){try{var S=yTs(J,p.global,p.isMobile());return{left:S.left,top:S.top,width:S.getWidth(),height:S.getHeight()}}catch(H){return cs}};
H0.prototype.validate=function(){var p=this.beaconFactory.isSupported()||Q4(this);return this.global&&this.timeProvider.available()&&p};
var JTw=function(p){return(p=Ec4(p.global))?$F(p):null};
_.vh.Object.defineProperties(H0.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(p){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(p){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!N2i(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}}});_.OCM=!_.i9&&!_.A9i();var NYs=function(p){return p};var dz9=function(p){return p.pipe(j0(function(J){var S=J.endOfSessionReason;var H;return((H=J.viewable)==null?void 0:H.extrapolateToNow().value)||S!=void 0}),S6(1),L_())};var Ids=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},LHk=function(p){var J=p.sequenceNumber.toString(10).padStart(2,"0");
J=""+p.startTime+J;p.sequenceNumber<99&&p.sequenceNumber++;return J};var hYg=OK(bI(function(p){return p.endOfSessionReason===void 0}),TH(function(p){return Object.assign({},p,{timestamps:hy(p)})}),j0(function(p){var J=p.viewable;
p=p.timestamps;var S;return(S=J==null?void 0:J.extrapolateUsingTimestampMap(p).value)!=null?S:!1}),TH(function(p){var J=p.beaconFactory;
var S=p.timestampedExposureHistory;var H=p.timeOnScreen;var M=p.binaryContext;p=p.timestamps;if(J===void 0||S===void 0||H===void 0||M===void 0)return!1;if(H.extrapolateUsingTimestampMap(p).value.every(function(X){return X>=0}))return!0;
S=S.map(function(X){return X.timestamp+":"+X.value}).join(",");
H=pW4({bin:M,tos:H},p);J.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+H+("&eh="+S)).sendNow();return!0}),bI(function(p){return!p}),L_());var SG3=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 TY9=function(p){var J=[];return p.pipe(TH(function(S){var H=S.beaconFactory,M=S.fetchBeaconFactory,X=S.timeOnScreen,Z=S.timeOnScreenUrlPrefixes,n=S.payloadMapper,b=S.timeOnScreenPingId,F=S.timeOnScreenReason,f=S.urlSerializer,O=S.viewable,A=S.hasImpressionFired,P=S.inStatefulBeaconExperiment,W=S.supportsPendingBeacon,y=S.supportsFetchLater,t=S.turtlexReportEventData;if(!S.geometryMeasurable||!A||S.maxTimeOnScreen===void 0||X===void 0||Z===void 0||n===void 0||b===void 0||f===void 0||H===void 0)return!1;
if(S.isTurtlex){if(F===void 0)return!1;Z=S.reportFencedFrameEvent;if(!Z)return!1;Z({eventType:"active-view-time-on-screen",eventData:t!=null?t:"",destination:["buyer"]});return!0}if(!(P||y||F))return!1;t=hy(S);var D;O=(D=O==null?void 0:O.extrapolateUsingTimestampMap(t).value)!=null?D:!1;D=f(Object.assign({},S,{pingId:b,viewState:O?4:3,reasonCode:F!=null?F:"u",payloadMapper:n,urlPrefixes:Z}),t);if(P){for(;J.length>Z.length;)S=void 0,(S=J.shift())==null||S.deactivate();D.forEach(function(E,a){a>=J.length?
J.push(H.makeBeacon(E)):J[a].url=E});
return W&&M&&F!==void 0?(D.forEach(function(E){M.makeBeacon(E).sendNow()}),!0):F!==void 0}if(W&&M&&F!==void 0)return D.forEach(function(E){M.makeBeacon(E).sendNow()}),!0;
if(y&&M){for(;J.length>Z.length;)W=void 0,(W=J.shift())==null||W.deactivate();var k=f(Object.assign({},S,{pingId:b,viewState:O?4:3,reasonCode:F!=null?F:"u",payloadMapper:n,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),t)[0];D.forEach(function(E,a){a>=J.length?J.push(H.makeBeacon(k,{endOfSession:!0})):J[a].url=k});
return F!==void 0?(D.forEach(function(E){M.makeBeacon(E).sendNow()}),!0):F!==void 0}return F!==void 0?(D.forEach(function(E){H.makeBeacon(E).sendNow()}),!0):!1}),bI(function(S){return!S}),L_())};var uat=OK(j0(function(p){return p.immediateUrlPrefixes!==void 0&&p.payloadMapper!==void 0&&p.urlSerializer!==void 0&&p.inferredPingId!==void 0&&p.beaconFactory!==void 0}),j0(function(p){return nTi(p)!==null}),KrW(function(p){return p.activeViewUnmeasurableEvent},function(p){return p.emit}),TH(function(p){if(p.isTurtlex){var J=p.reportFencedFrameEvent;
if(J){var S;J({eventType:"active-view-unmeasurable",eventData:(S=p.turtlexReportEventData)!=null?S:"",destination:["buyer"]})}}else{S=void 0;var H=nTi(p);if(H==="x"){var M,X=(M=p.geometricMeasurementErrors)!=null?M:p.contextValidationErrors;X&&(J=X.stack,S=X.message)}p.urlSerializer(Object.assign({},p,{urlPrefixes:p.immediateUrlPrefixes,payloadMapper:p.payloadMapper,pingId:p.inferredPingId,viewState:2,reasonCode:H,errorMessage:S,errorStack:J}),hy(p)).forEach(function(Z){p.beaconFactory.makeBeacon(Z).sendNow()})}}),
S6(1),L_());var GAi=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var tnk=OK(j0(function(p){return p.payloadMapper!==void 0&&p.immediateUrlPrefixes!==void 0&&p.urlSerializer!==void 0&&p.inferredPingId!==void 0&&p.beaconFactory!==void 0}),TH(function(p){return Object.assign({},p,{timestamps:hy(p)})}),j0(function(p){var J=p.viewable;
var S=p.hasImpressionFired;p=p.timestamps;var H;return!!S&&((H=J==null?void 0:J.extrapolateUsingTimestampMap(p).value)!=null?H:!1)}),KrW(function(p){return p.activeViewViewableEvent},function(p){return p.emit}),TH(function(p){var J=p.beaconFactory,S=p.turtlexReportEventData;
if(p.isTurtlex){var H=p.reportFencedFrameEvent;if(!H)return!1;H({eventType:"active-view-viewable",eventData:S!=null?S:"",destination:["buyer"]});return!0}S=p.urlSerializer(Object.assign({},p,{urlPrefixes:p.immediateUrlPrefixes,payloadMapper:p.payloadMapper,pingId:p.inferredPingId,viewState:4,reasonCode:"v"}),p.timestamps);(H=p.cpmavUrls)&&H.length>0&&p.viewUrlSerializer&&p.viewUrlSerializer(H,p).forEach(function(M){J.makeBeacon(M).sendNow()});
(H=p.viewableRelayUrls)&&H.length>0&&p.viewUrlSerializer&&p.viewUrlSerializer(H,p).forEach(function(M){J.makeBeacon(M).sendNow()});
S.forEach(function(M){J.makeBeacon(M,{attributionEnabled:p.isViewableAttributionEnabled}).sendNow()});
return!0}),bI(function(p){return!p}),L_());var Sgs=TH(function(p){return[p.value.topWindowViewportExternalGeometry.width,p.value.topWindowViewportExternalGeometry.height]});var w2=function(p,J){this.callback=p;this.options=J;this.intersectionObserverV2=this.intersectionObserverV1=null},Tri=function(p,J){J?p.intersectionObserverV2||(J=Object.assign({},p.options,{delay:100,
trackVisibility:!0}),p.intersectionObserverV2=new IntersectionObserver(p.callback,J)):p.intersectionObserverV1||(p.intersectionObserverV1=new IntersectionObserver(p.callback,p.options))},ATE=function(p,J){p=J?p.intersectionObserverV2:p.intersectionObserverV1;
if(!p)throw new BWv;return p};
w2.prototype.observe=function(p,J){ATE(this,p).observe(J)};
w2.prototype.unobserve=function(p,J){ATE(this,p).unobserve(J)};
w2.prototype.disconnect=function(p){ATE(this,p).disconnect()};
w2.prototype.takeRecords=function(p){return ATE(this,p).takeRecords()};var Q29={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:cs,topWindowViewportExternalGeometry:cs,measurementRequests:new z6,elementGeometrySourceName:"ns",elementGeometry:cs,intersectionGeometry:cs,viewportLocalAppOffset:{x:0,y:0}};var ETX=Ir(OK(TH(function(p){var J;return(J=p.exposureOverride)!=null?J:u4W(p)}),TH(function(p){return isFinite(p)?p:0}))),IDX=Ir(OK(TH(function(p){var J;
return(J=p.exposureOverride)!=null?J:u4W(p)}),TH(function(p){return isFinite(p)?p:-1})));var I1=function(p,J){this.a=p;this.b=J;if(p.clock.timeline!==J.clock.timeline)throw Error();};
I1.prototype.equivalentTo=function(p){return p instanceof I1?this.a.equivalentTo(p.a)&&this.b.equivalentTo(p.b):!1};
I1.prototype.extrapolateToTime=function(p){var J=this.a.extrapolateToTime(p).value,S=this.b.extrapolateToTime(p).value;return{timestamp:p,value:[J,S]}};
_.vh.Object.defineProperties(I1.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),J=this.a.lastMeasurement.timestamp.equals(p)?this.a.lastMeasurement.value:this.a.extrapolateToTime(p).value,S=this.b.lastMeasurement.timestamp.equals(p)?this.b.lastMeasurement.value:this.b.extrapolateToTime(p).value;return{timestamp:p,value:[J,S]}}}});var LX=function(p,J){this.input=p;this.mapFunction=J;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
LX.prototype.equivalentTo=function(p){return p instanceof LX?this.input.equivalentTo(p.input)&&this.mapFunction===p.mapFunction:!1};
LX.prototype.extrapolateToTime=function(p){p=this.input.extrapolateToTime(p);return{timestamp:p.timestamp,value:this.mapFunction(p.value)}};
_.vh.Object.defineProperties(LX.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var pn=function(){};
pn.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
pn.prototype.extrapolateUsingTimestampMap=function(p){var J=this.clock.timeline,S,H=(S=p.get(J))!=null?S:this.clock.now();p.set(J,H);return this.extrapolateToTime(H)};
pn.prototype.map=function(p){return new PWq(this,p)};
pn.prototype.joinWith=function(p){return new zwM(this,p)};
var zwM=function(){I1.apply(this,arguments);this.map=pn.prototype.map;this.joinWith=pn.prototype.joinWith;this.extrapolateToNow=pn.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=pn.prototype.extrapolateUsingTimestampMap};
_.Q(zwM,I1);var PWq=function(){LX.apply(this,arguments);this.map=pn.prototype.map;this.joinWith=pn.prototype.joinWith;this.extrapolateToNow=pn.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=pn.prototype.extrapolateUsingTimestampMap};
_.Q(PWq,LX);var pC=function(p,J){this.lastMeasurement=J;this.extrapolateToNow=pn.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=pn.prototype.extrapolateUsingTimestampMap;this.map=pn.prototype.map;this.joinWith=pn.prototype.joinWith;this.clock=p};
pC.prototype.equivalentTo=function(p){return p.active};
pC.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.vh.Object.defineProperties(pC.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var J4k=TH(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 VQg=OK(j0(function(p){return!isNaN(p)}),ZZ(function(p,J){return isNaN(p)?J:Math.min(p,J)},NaN),Hs());var YGs=Ir(OK(TH(function(p){return p.intersectionGeometry.width*p.intersectionGeometry.height/(p.exposedViewportLocalGeometry.width*p.exposedViewportLocalGeometry.height)}),TH(function(p){return isFinite(p)?Math.min(1,p):0})));var p5i=OK(Ir(TH(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 X5X=function(p,J){var S=this;this.timeProvider=p;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=J.pipe(Hs()).subscribe(function(H){RYi(S);S.measurementRequestObserver=H})},KTW=function(p,J){RYi(p);
p.lastMeasurementRequest=p.timeProvider.setTimeout(function(){var S;return void((S=p.measurementRequestObserver)==null?void 0:S.next())},J)},RYi=function(p){p.lastMeasurementRequest!==null&&p.timeProvider.clearTimeout(p.lastMeasurementRequest);
p.lastMeasurementRequest=null};
X5X.prototype.dispose=function(){RYi(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var $L8=function(){};var Uzw=function(p,J){this.context=p;this.strategies=J};
_.Q(Uzw,$L8);Uzw.prototype.buildGeometrySource=function(p,J){var S=this.strategies.map(function(X){return X.buildGeometrySource(p,J)}),H=mzW(S.map(function(X){return X.geometrySource})),M=H.capturedErrors.pipe(ocL());
return{geometrySource:H.chain.pipe(or(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:M,strategyErrors:H.capturedErrors}].concat(_.dW(S.map(function(X){return X.additionalOutputs}))))}};
var ocL=function(){return ZZ(function(p,J){J instanceof ko?p.push(J.measurementStrategyFailureReason):p.push(-1);return p},[])};var gvi=function(p,J){this.context=p;this.poller=J};
_.Q(gvi,$L8);gvi.prototype.buildGeometrySource=function(p,J){var S=FTL(fJt(this.context,this.poller),Cf3(this.context,J.requestSource));return{geometrySource:bVW(p.measurableCreative.pipe(S),J.inApp),additionalOutputs:{}}};var sd9=function(p,J,S){S=S===void 0?tQ9(p,J):S;this.context=p;this.intersectionObserverStrategy=S};
_.Q(sd9,$L8);sd9.prototype.buildGeometrySource=function(p,J){var S=this.intersectionObserverStrategy(J.useV2);return{geometrySource:bVW(p.measurableCreative.pipe(S,hWW(this.context)),J.inApp),additionalOutputs:{}}};var ewd=function(p,J,S){var H=H===void 0?Symbol():H;this.element=p;this.immediateUrls=J;this.timeOnScreenUrls=S;this.symbol=H};var MnX=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),$zs=Object.freeze([1,.75,MnX.exposureThreshold,MnX.largeAdExposureThreshold,0]);var DKX=function(p,J){J=J===void 0?36E5:J;var S=S===void 0?!0:S;this.creatives=new z6;this.elementsToUnregister=new z6;this.elementMap=new Map;var H=new H0(window,null);H.beaconFactory=new o1(H,new j_(H));BYW(H,this.creatives,this.elementsToUnregister,p,J,S).subscribe()},TZX=function(p,J,S,H){if(!p.elementMap.has(J)){var M=new E9(J);
p.elementMap.set(J,M);p.creatives.next(new ewd(M,S,H))}},NZ9=function(p,J){p.elementsToUnregister.next(J);
var S=p.elementMap.get(J);S!==void 0&&(S.release(),p.elementMap.delete(J))};var lVi=function(p){var J=p.url;p=p.uaDataValues;this.JSC$9631_url_=J;this.uaDataValues_=p;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var S=/[?&]([^&=]+)=([^&]*)/g;p=S.exec(J);)this.urlParamValues_[p[1]]=p[2]},Vht=function(p){p=p.uaDataValues_;
if(!p)return"";var J=XS("uap",p.platform)+XS("uapv",p.platformVersion)+XS("uafv",p.uaFullVersion)+XS("uaa",p.architecture)+XS("uam",p.model)+XS("uab",p.bitness);p.fullVersionList&&(J+="&uafvl="+encodeURIComponent(p.fullVersionList.map(function(S){return encodeURIComponent(S.brand)+";"+encodeURIComponent(S.version)}).join("|")));
p.wow64!=null&&(J+="&uaw="+Number(p.wow64));return J.slice(1)};var WH8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(WH8,_.Kt);WH8.prototype.getId=function(){return _.B_(this,1)};var Je=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Je,_.Kt);Je.prototype.getSeconds=function(){return Cu(this,1)};
Je.prototype.setSeconds=function(p){return _.LP(this,1,b$(p),"0")};_.UX=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(_.UX,_.Kt);_.UX.prototype.getSeconds=function(){return Cu(this,1)};
_.UX.prototype.setSeconds=function(p){return _.LP(this,1,b$(p),"0")};
_.Q7U=function(p){var J=Number(sw(p,1));p=_.bW(p,2);return new Date(J*1E3+p/1E6)};var SE=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(SE,_.Kt);SE.prototype.getUrl=function(){return _.B_(this,1)};
SE.prototype.setUrl=function(p){return _.u6(this,1,p)};
SE.prototype.getHeight=function(){return _.bW(this,2)};
SE.prototype.getWidth=function(){return _.bW(this,3)};var Hz=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Hz,_.Kt);Hz.prototype.getAspectRatio=function(){return y3(this,1)};
Hz.prototype.getDuration=function(){return _.PB(this,Je,2)};var CW8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(CW8,_.Kt);var yTU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(yTU,_.Kt);var Bpd=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Bpd,_.Kt);var ULU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(ULU,_.Kt);var s7m=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(s7m,_.Kt);var gcd=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(gcd,_.Kt);var tmM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(tmM,_.Kt);var hwp=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(hwp,_.Kt);var DLo=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(DLo,_.Kt);var Mv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Mv,_.Kt);var Xv=[2,4,5,6,7];var kNv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(kNv,_.Kt);var eJ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(eJ,_.Kt);_.R=eJ.prototype;_.R.getId=function(){return _.PB(this,WH8,1)};
_.R.getName=function(){return _.B_(this,2)};
_.R.setDescription=function(p){return _.u6(this,3,p)};
_.R.getUrl=function(){return _.B_(this,8)};
_.R.setUrl=function(p){return _.u6(this,8,p)};
var iV=function(p){return _.Zd(p,SE,10,_.GN())};
eJ.prototype.getOwner=function(p){return _.D48(this,40,p)};
var Rq=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Rq,_.Kt);_.Kn=[0,r4,oyn];_.Zo=[0,r4,oyn];var Npv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Npv,_.Kt);var nn=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(nn,_.Kt);nn.prototype.getStatus=function(){return _.Uw(this,1)};
nn.prototype.removeItem=function(p){return gUm(this,2,p)};var Tpo=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Tpo,_.Kt);Tpo.prototype.getName=function(){return _.B_(this,8)};var Gi=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Gi,_.Kt);Gi.prototype.getCommand=function(){return _.Uw(this,1)};
Gi.prototype.getSource=function(){return _.PB(this,Tpo,2)};
Gi.prototype.setVisible=function(p){return _.$V(this,5,p)};
Gi.prototype.removeItem=function(p){return gUm(this,7,p)};var dL8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(dL8,_.Kt);dL8.prototype.getCommand=function(){return _.Uw(this,1)};
dL8.prototype.removeItem=function(p){return gUm(this,4,p)};
var uSd=_.$p(dL8);var bV=function(p,J,S){S=S===void 0?Error():S;var H=Error.call(this);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=p;J+=":";S instanceof Error?(this.message=J+S.message,this.stack=S.stack||""):(this.message=J+String(S),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(bV,Error);_.gp=function(){this.JSC$9689_disposed_=this.JSC$9689_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.gp.prototype.JSC$9689_disposed_=!1;_.gp.prototype.isDisposed=function(){return this.JSC$9689_disposed_};
_.gp.prototype.dispose=function(){this.JSC$9689_disposed_||(this.JSC$9689_disposed_=!0,this.disposeInternal())};
_.gp.prototype[Symbol.dispose]=function(){this.dispose()};
_.$c=function(p,J){p.addOnDisposeCallback(_.nl(_.iW,J))};
_.gp.prototype.addOnDisposeCallback=function(p,J){this.JSC$9689_disposed_?J!==void 0?p.call(J):p():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),J&&(p=p.bind(J)),this.onDisposeCallbacks_.push(p))};
_.gp.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var mE=function(p){_.gp.call(this);this.wpc=p};
_.Q(mE,_.gp);mE.prototype.zHO=function(){return this.wpc.f()};
mE.prototype.ppW=function(p){return this.wpc.c(p)};
mE.prototype.ku=function(p){return this.wpc.m(Evv(p))};
mE.prototype.wFM=function(p){return this.wpc.mws(Evv(p))};
var KC=function(p){_.gp.call(this);var J=this;this.vm=p;this.tpa="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.tKf=void 0;this.xMH=this.vm.p;this.pli=this.zld.bind(this);this.addOnDisposeCallback(function(){return void ldo(J)})};
_.Q(KC,_.gp);var Vmd=function(p){var J;return _.G(function(S){if(S.nextAddress==1){if(!p.vm.wpc)throw new bV(30,"NWA");return p.lhd?S.return(p.lhd):S.yield(p.vm.wpc(),2)}J=S.yieldResult;p.lhd=new mE(J);return S.return(p.lhd)})};
KC.prototype.snapshot=function(p){return this.vm.s(Object.assign({},p.jr&&{c:p.jr},p.az5&&{s:p.az5},p.vMW!==void 0&&{p:p.vMW}))};
KC.prototype.zld=function(p){this.vm.e(p)};
KC.prototype.zAc=function(p,J){return this.vm.c(p,J,!1)};
var ldo=function(p){p.tKf!==void 0&&(p.tpa.forEach(function(J){var S;(S=p.tKf)==null||S.removeEventListener(J,p.pli)}),p.tKf=void 0)};
KC.prototype.xLp=function(){return this.vm.l()};var Fv=function(){_.gp.apply(this,arguments);this.hyI=1};
_.Q(Fv,_.gp);Fv.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.hyI++;return this};
Fv.prototype.dispose=function(){--this.hyI||_.gp.prototype.dispose.call(this)};var qVE=function(p){this.dh2=p;p.addNewEventMetric("/client_streamz/bg/frs",_.v0("mk"))};
qVE.prototype.record=function(p,J){this.dh2.record("/client_streamz/bg/frs",p,J)};
var adq=function(p){this.zIi=p;p.addNewEventMetric("/client_streamz/bg/wrl",_.v0("mn"),FS("ac"),FS("sc"),_.v0("rk"),_.v0("mk"))};
adq.prototype.record=function(p,J,S,H,M,X){this.zIi.record("/client_streamz/bg/wrl",p,J,S,H,M,X)};
var EcM=function(p){this.srp=p;p.addNewCounter("/client_streamz/bg/ec",_.v0("en"),_.v0("mk"))};
EcM.prototype.increment=function(p,J){this.srp.JSC$9942_incrementCounter("/client_streamz/bg/ec",p,J)};
var YV8=function(p){this.kCC=p;p.addNewEventMetric("/client_streamz/bg/el",_.v0("en"),_.v0("mk"))};
YV8.prototype.record=function(p,J,S){this.kCC.record("/client_streamz/bg/el",p,J,S)};
var rTv=function(p){this.wRu=p;p.addNewCounter("/client_streamz/bg/cec",FS("ec"),_.v0("mk"))};
rTv.prototype.increment=function(p,J){this.wRu.JSC$9942_incrementCounter("/client_streamz/bg/cec",p,J)};
var j7v=function(p){this.rJa=p;p.addNewCounter("/client_streamz/bg/po/csc",FS("cs"),_.v0("mk"))};
j7v.prototype.increment=function(p,J){this.rJa.JSC$9942_incrementCounter("/client_streamz/bg/po/csc",p,J)};
var w0o=function(p){this.hRU=p;p.addNewCounter("/client_streamz/bg/po/ctav",_.v0("av"),_.v0("mk"))};
w0o.prototype.increment=function(p,J){this.hRU.JSC$9942_incrementCounter("/client_streamz/bg/po/ctav",p,J)};
var xLd=function(p){this.lfp=p;p.addNewCounter("/client_streamz/bg/po/cwsc",_.v0("su"),_.v0("mk"))};
xLd.prototype.increment=function(p,J){this.lfp.JSC$9942_incrementCounter("/client_streamz/bg/po/cwsc",p,J)};var PhX=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(PhX,_.Kt);var Alg=function(p,J){return _.Iw(p,3,J,zMs)};var cTU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(cTU,_.Kt);var IdU=[1,2,3];var LHm=[0,IdU,_.pX,eUL,C$p];var pWM=[0,_.Jd,[0,qU,_.YC]];var JZm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(JZm,_.Kt);var SGq=[1,2,3];var HU8=[0,SGq,zUn,vyM,_.S_,pWM];var MQp=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(MQp,_.Kt);var XWv=[0,_.Jd,LHm,HU8];var iUd=[0,_.Ih];var RWm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(RWm,_.Kt);var Kro=[0,_.Ih,-1,_.xC];var ZUm=[0,_.Ih,-1,_.w4,_.xC];var nTp=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(nTp,_.Kt);var GA8=[1,2,3];var bUL=[0,GA8,_.S_,Kro,_.S_,ZUm,_.S_,iUd];var msE=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(msE,_.Kt);msE.prototype.JSC$9762_serializeBinary=rsi([0,_.Ih,bUL,yrn,_.Jd,XWv,WIM,_.Qw4]);var FrM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(FrM,_.Kt);var OUn=function(p){var J=new msE;J=_.g2(J,1,p.JSC$9878_metricName);var S=vTE(p);J=_.Iw(J,3,S,_.fP);S=[];for(var H=[],M=_.K(p.cellMap.keys()),X=M.next();!X.done;X=M.next())H.push(X.value.split(","));for(M=0;M<H.length;M++){X=H[M];for(var Z=p.cellType,n=p.getCells(X)||[],b=[],F=0;F<n.length;F++){var f=n[F],O=f&&f.cellValue;f=new JZm;switch(Z){case 3:O=Number(O);Number.isFinite(O)&&sI(f,1,SGq,b$(O));break;case 2:sI(f,2,SGq,_.jL(Number(O)))}b.push(f)}Z=b;for(n=0;n<Z.length;n++){b=Z[n];F=new MQp;b=_.Qd(F,
2,b);F=[];f=fDp(p);for(O=0;O<f.length;O++){var A=f[O],P=X[O],W=new cTU;switch(A){case 3:sI(W,1,IdU,Pp(String(P)));break;case 2:A=Number(P);Number.isFinite(A)&&sI(W,2,IdU,_.Rw(A));break;case 1:sI(W,3,IdU,Od3(P==="true"))}F.push(W)}oh(b,1,F);S.push(b)}}oh(J,4,S);return J};var AZE=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 J=p.substring(p.indexOf("://")+3),S=J.indexOf("/");S!=-1&&(J=J.substring(0,S));S=p.substring(0,p.indexOf("://"));if(!S)throw Error("qa`"+p);if(S!=="http"&&S!=="https"&&S!=="chrome-extension"&&S!=="moz-extension"&&
S!=="file"&&S!=="android-app"&&S!=="chrome-search"&&S!=="chrome-untrusted"&&S!=="chrome"&&S!=="app"&&S!=="devtools")throw Error("ra`"+S);p="";var H=J.indexOf(":");if(H!=-1){var M=J.substring(H+1);J=J.substring(0,H);if(S==="http"&&M!=="80"||S==="https"&&M!=="443")p=":"+M}return S+"://"+J+p};var zWq=function(p,J,S){var H=String(_.Hg.location.href);return H&&p&&J?[J,PfU(AZE(H),p,S||null)].join(" "):null},PfU=function(p,J,S){var H=[],M=[];
if((Array.isArray(S)?2:1)==1)return M=[J,p],_.MV(H,function(n){M.push(n)}),$s8(M.join(" "));
var X=[],Z=[];_.MV(S,function(n){Z.push(n.key);X.push(n.value)});
S=Math.floor((new Date).getTime()/1E3);M=X.length==0?[S,J,p]:[X.join(":"),S,J,p];_.MV(H,function(n){M.push(n)});
p=$s8(M.join(" "));p=[S,p];Z.length==0||p.push(Z.join(""));return p.join("_")},$s8=function(p){var J=LTW();
J.update(p);return J.digestString().toLowerCase()};var vz=function(p){this.JSC$9773_document_=p||{cookie:""}},oTv;
_.R=vz.prototype;_.R.isEnabled=function(){if(!_.Hg.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};
_.R.set=function(p,J,S){var H=!1;if(typeof S==="object"){var M=S.sameSite;H=S.secure||!1;var X=S.domain||void 0;var Z=S.path||void 0;var n=S.maxAge}if(/[;=\s]/.test(p))throw Error("sa`"+p);if(/[;\r\n]/.test(J))throw Error("ta`"+J);n===void 0&&(n=-1);S=X?";domain="+X:"";Z=Z?";path="+Z:"";H=H?";secure":"";n=n<0?"":n==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+n*1E3)).toUTCString();this.JSC$9773_document_.cookie=p+"="+J+S+Z+n+H+(M!=null?";samesite="+M:"")};
_.R.get=function(p,J){for(var S=p+"=",H=(this.JSC$9773_document_.cookie||"").split(";"),M=0,X;M<H.length;M++){X=mi(H[M]);if(X.lastIndexOf(S,0)==0)return X.slice(S.length);if(X==p)return""}return J};
_.R.remove=function(p,J,S){var H=this.containsKey(p);this.set(p,"",{maxAge:0,path:J,domain:S});return H};
_.R.getKeys=function(){return oTv(this).keys};
_.R.getValues=function(){return oTv(this).values};
_.R.isEmpty=function(){return!this.JSC$9773_document_.cookie};
_.R.getCount=function(){return this.JSC$9773_document_.cookie?(this.JSC$9773_document_.cookie||"").split(";").length:0};
_.R.containsKey=function(p){return this.get(p)!==void 0};
_.R.containsValue=function(p){for(var J=oTv(this).values,S=0;S<J.length;S++)if(J[S]==p)return!0;return!1};
_.R.clear=function(){for(var p=oTv(this).keys,J=p.length-1;J>=0;J--)this.remove(p[J])};
oTv=function(p){p=(p.JSC$9773_document_.cookie||"").split(";");for(var J=[],S=[],H,M,X=0;X<p.length;X++)M=mi(p[X]),H=M.indexOf("="),H==-1?(J.push(""),S.push(M)):(J.push(M.substring(0,H)),S.push(M.substring(H+1)));return{keys:J,values:S}};
_.tl=new vz(typeof document=="undefined"?null:document);var a$W,eWp;a$W=function(){var p=_.Hg.__SAPISID||_.Hg.__APISID||_.Hg.__3PSAPISID||_.Hg.__1PSAPISID||_.Hg.__OVERRIDE_SID;if(p)return!0;typeof document!=="undefined"&&(p=new vz(document),p=p.get("SAPISID")||p.get("APISID")||p.get("__Secure-3PAPISID")||p.get("__Secure-1PAPISID"));return!!p};
eWp=function(p,J,S,H){(p=_.Hg[p])||typeof document==="undefined"||(p=(new vz(document)).get(J));return p?zWq(p,S,H):null};
_.fV4=function(p){var J=AZE(_.Hg==null?void 0:_.Hg.location.href),S=[];if(a$W()){J=J.indexOf("https:")==0||J.indexOf("chrome-extension:")==0||J.indexOf("chrome-untrusted://new-tab-page")==0||J.indexOf("moz-extension:")==0;var H=J?_.Hg.__SAPISID:_.Hg.__APISID;H||typeof document==="undefined"||(H=new vz(document),H=H.get(J?"SAPISID":"APISID")||H.get("__Secure-3PAPISID"));(H=H?zWq(H,J?"SAPISIDHASH":"APISIDHASH",p):null)&&S.push(H);J&&((J=eWp("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",p))&&S.push(J),
(p=eWp("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",p))&&S.push(p))}return S.length==0?null:S.join(" ")};var Wrn=function(){this.minSize=1024};
Wrn.prototype.compress=function(p){var J,S,H,M;return _.G(function(X){switch(X.nextAddress){case 1:return J=new CompressionStream("gzip"),S=(new Response(J.readable)).arrayBuffer(),H=J.writable.getWriter(),X.yield(H.write((new TextEncoder).encode(p)),2);case 2:return X.yield(H.close(),3);case 3:return M=Uint8Array,X.yield(S,4);case 4:return X.return(new M(X.yieldResult))}})};
Wrn.prototype.isSupported=function(p){return p<this.minSize?!1:typeof CompressionStream!=="undefined"};var Q28=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Q28,_.Kt);var fn=function(p,J){this.intervalMs=p;this.callback=J;this.enabled=!1;this.nowFn=function(){return _.JF()};
this.lastTimeMs=this.nowFn()};
fn.prototype.setInterval=function(p){this.intervalMs=p;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
fn.prototype.start=function(){var p=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){p.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
fn.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
fn.prototype.tick=function(){var p=this;if(this.enabled){var J=Math.max(this.nowFn()-this.lastTimeMs,0);J<this.intervalMs*.8?this.timer=setTimeout(function(){p.tick()},this.intervalMs-J):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Cfq=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Cfq,_.Kt);var yZn=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(yZn,_.Kt);var Brn=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Brn,_.Kt);Brn.prototype.getTransmissionType=function(){return _.Uw(this,1)};var HQi=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(HQi,_.Kt);var On=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(On,_.Kt);var Svg=function(p){oh(MBi,1,p)};
On.prototype.getModel=function(){return _.B_(this,6)};
var Us8=_.$p(On);var s2p=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(s2p,_.Kt);var pOW=["platform","platformVersion","architecture","model","uaFullVersion"],MBi=new On,Jlv=null;var Ae=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Ae,_.Kt);var gT8=function(p){return _.zx(p,1,1)};var tQ8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p,4)};
_.Q(tQ8,_.Kt);_.Pz=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p,36)};
_.Q(_.Pz,_.Kt);_.Pz.prototype.getExperimentIds=function(){return _.PB(this,Q28,16)};var hWo=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p,19)};
_.Q(hWo,_.Kt);hWo.prototype.setLogSource=function(p){return _.zx(this,2,p)};
hWo.prototype.setScheduler=function(p){return _.zx(this,10,p)};var kAm=function(p,J){this.isServiceWorkerScope=J=J===void 0?!1:J;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new hWo;Number.isInteger(p)&&this.logRequest.setLogSource(p);J||(this.locale=document.documentElement.getAttribute("lang"));Dsv(this,new Ae)};
kAm.prototype.setLogSource=function(p){this.logRequest.setLogSource(p);return this};
var Dsv=function(p,J){_.Qd(p.logRequest,1,J);_.Uw(J,1)||gT8(J);p.isServiceWorkerScope||(J=zi(p),_.B_(J,5)||_.g2(J,5,p.locale));p.uach&&(J=zi(p),_.PB(J,On,9)||_.Qd(J,9,p.uach))},Nrn=function(p,J){p.transmissionType=J},Trp=function(p){var J=J===void 0?pOW:J;
var S=p.isServiceWorkerScope?void 0:lI();S?XOW(S,J).then(function(H){p.uach=Us8(H!=null?H:"[]");H=zi(p);_.Qd(H,9,p.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},zi=function(p){var J=_.PB(p.logRequest,Ae,1);
J||(J=new Ae,Dsv(p,J));p=J;J=_.PB(p,s2p,11);J||(J=new s2p,_.Qd(p,11,J));return J};
kAm.prototype.build=function(p,J,S,H,M,X){J=J===void 0?0:J;S=S===void 0?0:S;H=H===void 0?null:H;M=M===void 0?0:M;X=X===void 0?0:X;if(!this.isServiceWorkerScope){var Z=zi(this);var n=new Brn;n=_.zx(n,1,this.transmissionType);n=_.fC(n,2,this.isFinal);S=_.hF(n,3,S>0?S:void 0);S=_.hF(S,4,M>0?M:void 0);S=_.hF(S,5,X>0?X:void 0);M=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;X=M[_.Xn]|0;S=WE(S,X)?S:BMg(S,M,X)?yrX(S,M):new S.constructor(dM(M,X,!0));_.Qd(Z,10,S)}Z=this.logRequest.clone();S=Date.now().toString();
Z=_.e9(Z,4,b$(S));p=p.slice();p=oh(Z,3,p);H&&(Z=new Cfq,H=_.hF(Z,13,H),Z=new yZn,H=_.Qd(Z,2,H),Z=new tQ8,H=_.Qd(Z,1,H),H=_.zx(H,2,9),_.Qd(p,18,H));J&&_.Tg(p,14,J);return p};OV.prototype.currBackoffCount_=0;OV.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
OV.prototype.getValue=function(){return this.currValue_};
var dsv=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 tId=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p,8)};
_.Q(tId,_.Kt);var u4o=_.$p(tId);var hU4=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(hU4,_.Kt);var $f;$f=new DjU;var oq=function(p){_.gp.call(this);var J=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9851_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$9851_sendBeaconApiEnabled=!1;this.logSource=p.logSource;this.getAuthHeaderValue=
p.getAuthHeaderValue||function(){};
this.logRequestBuilder=new kAm(p.logSource,p.isServiceWorkerScope);this.network=p.network||null;this.productID=p.productID||null;this.bufferSize=1E3;this.clearcutUrl=p.urlOverride||null;this.sessionIndex=p.sessionIndex||null;this.disableAutomaticFlush=p.disableAutomaticFlush||!1;this.withCredentials=!p.disableWithCredentials;this.isServiceWorkerScope=p.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!lI()&&!!lI().navigator&&lI().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(lD8())).searchParams&&!!(new URL(lD8())).searchParams.set;var S=gT8(new Ae);Dsv(this.logRequestBuilder,S);this.flushBackoff=new OV(1E4,3E5,.1);p=VQE(this,p.backgroundJobDeferrer);this.JSC$9851_flushTimer=new fn(this.flushBackoff.getValue(),p);this.backupTimer=new fn(6E5,p);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){qGL(J);
var H;(H=J.metalogService)==null||H.flush()}}),document.addEventListener("pagehide",function(){qGL(J);
var H;(H=J.metalogService)==null||H.flush()}))};
_.Q(oq,_.gp);var VQE=function(p,J){return p.isBrowserSupported?J?function(){J().then(function(){p.flush()})}:function(){p.flush()}:function(){}};
oq.prototype.disposeInternal=function(){qGL(this);this.JSC$9851_flushTimer.stop();this.backupTimer.stop();_.gp.prototype.disposeInternal.call(this)};
var aDL=function(p){p.clearcutUrl||(p.clearcutUrl=lD8());try{return(new URL(p.clearcutUrl)).toString()}catch(J){return(new URL(p.clearcutUrl,lI().location.origin)).toString()}};
oq.prototype.dispatch=function(p){if(p instanceof _.Pz)this.log(p);else try{var J=new _.Pz,S=p.serialize();var H=_.g2(J,8,S);this.log(H)}catch(M){eE(this,4,1)}};
var eE=function(p,J,S){p.metalogService&&p.metalogService.increment(J,S)};
oq.prototype.log=function(p){eE(this,2,1);if(this.isBrowserSupported){p=p.clone();var J=this.sequencePosition++;p=_.Tg(p,21,J);this.componentId&&_.g2(p,26,this.componentId);J=p;if(kok(_.fu(J,1))==null){var S=Date.now();S=Number.isFinite(S)?S.toString():"0";_.e9(J,1,b$(S))}_.D49(_.fu(J,15))!=null||_.Tg(J,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(S=this.experimentIds.clone(),_.Qd(J,16,S));eE(this,1,1);J=this.pendingEvents.length-this.bufferSize+1;J>0&&(this.pendingEvents.splice(0,J),
this.numLogsDroppedSinceLastFlush+=J,eE(this,3,J));this.pendingEvents.push(p);this.disableAutomaticFlush||this.JSC$9851_flushTimer.enabled||this.JSC$9851_flushTimer.start()}};
oq.prototype.flush=function(p,J){var S=this;if(this.pendingEvents.length===0)p&&p();else if(this.JSC$9851_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,ETv(this);else{var H=Date.now();if(this.noFlushUntilMs>H&&this.startWaitingMs<H)J&&J("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?Nrn(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var M=this.pendingEvents.length,
X=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),Z=this.getAuthHeaderValue();if(Z&&this.lastFailedAuth===Z)J&&J("stale-auth-token");else{this.pendingEvents=[];this.JSC$9851_flushTimer.enabled&&this.JSC$9851_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;H=X.serialize();var n;this.JSC$9851_compressor&&this.JSC$9851_compressor.isSupported(H.length)&&
(n=this.JSC$9851_compressor.compress(H));var b=YGU(this,H,Z),F=function(A){S.flushBackoff.reset();S.JSC$9851_flushTimer.setInterval(S.flushBackoff.getValue());if(A){var P=null;try{var W=JSON.stringify(JSON.parse(A.replace(")]}'\n","")));P=u4o(W)}catch(y){}P&&(A=Number(Cu(P,1,_.N4("-1"))),A>0&&(S.startWaitingMs=Date.now(),S.noFlushUntilMs=S.startWaitingMs+A),HPW(P.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,$f.fieldIndex),Jri(P,$f.fieldIndex),P=$f.ctor?$f.getExtensionFn(P,$f.ctor,$f.fieldIndex,
$f.JSC$9031_hasMessageId):$f.getExtensionFn(P,$f.fieldIndex,null,$f.JSC$9031_hasMessageId),P=P===null?void 0:P)&&(P=_.bW(P,1,-1),P!==-1&&(S.flushBackoff=new OV(P<1?1:P,3E5,.1),S.JSC$9851_flushTimer.setInterval(S.flushBackoff.getValue())))}p&&p();S.numRetriesSinceLastSuccessfulFlush=0},f=function(A,P){var W=_.Zd(X,_.Pz,3,_.GN());
var y=Number(Cu(X,14));dsv(S.flushBackoff);S.JSC$9851_flushTimer.setInterval(S.flushBackoff.getValue());A===401&&Z&&(S.lastFailedAuth=Z);y&&(S.numLogsDroppedSinceLastFlush+=y);P===void 0&&(P=S.isRetryable(A));P&&(S.pendingEvents=W.concat(S.pendingEvents),S.disableAutomaticFlush||S.JSC$9851_flushTimer.enabled||S.JSC$9851_flushTimer.start());eE(S,7,1);J&&J("net-send-failed",A);++S.numRetriesSinceLastSuccessfulFlush},O=function(){S.network&&S.network.send(b,F,f)};
n?n.then(function(A){eE(S,5,M);b.requestHeaders["Content-Encoding"]="gzip";b.requestHeaders["Content-Type"]="application/binary";b.body=A;b.bodyType=2;O()},function(){eE(S,6,M);
O()}):O()}}}};
var YGU=function(p,J,S){S=S===void 0?null:S;var H=H===void 0?p.withCredentials:H;var M={},X=new URL(aDL(p));S&&(M.Authorization=S);p.sessionIndex&&(M["X-Goog-AuthUser"]=p.sessionIndex,X.searchParams.set("authuser",p.sessionIndex));p.pageId&&(Object.defineProperty(M,"X-Goog-PageId",{value:p.pageId}),X.searchParams.set("pageId",p.pageId));return{url:X.toString(),body:J,bodyType:1,requestHeaders:M,requestType:"POST",withCredentials:H,timeoutMillis:p.timeoutMillis}},qGL=function(p){p.logRequestBuilder.isFinal=
!0;
p.flush();p.logRequestBuilder.isFinal=!1},ETv=function(p){rZn(p,function(J,S){J=new URL(J);
J.searchParams.set("format","json");var H=!1;try{H=lI().navigator.sendBeacon(J.toString(),S.serialize())}catch(M){}H||(p.isSendBeaconSupported=!1);return H})},rZn=function(p,J){if(p.pendingEvents.length!==0){var S=new URL(aDL(p));
S.searchParams.delete("format");var H=p.getAuthHeaderValue();H&&S.searchParams.set("auth",H);S.searchParams.set("authuser",p.sessionIndex||"0");for(H=0;H<10&&p.pendingEvents.length;++H){var M=p.pendingEvents.slice(0,32),X=p.logRequestBuilder.build(M,p.numLogsDroppedSinceLastFlush,p.numRetriesSinceLastSuccessfulFlush,p.productID,p.persistedLogRecoveredCount,p.persistedLogExpiredCount);if(!J(S.toString(),X)){++p.numRetriesSinceLastSuccessfulFlush;break}p.numLogsDroppedSinceLastFlush=0;p.numRetriesSinceLastSuccessfulFlush=
0;p.persistedLogRecoveredCount=0;p.persistedLogExpiredCount=0;p.pendingEvents=p.pendingEvents.slice(M.length)}p.JSC$9851_flushTimer.enabled&&p.JSC$9851_flushTimer.stop()}};
oq.prototype.isRetryable=function(p){return 500<=p&&p<600||p===401||p===0};
var lD8=function(){return"https://play.google.com/log?format=json&hasfast=true"};var j2E=function(){this.abortSupported=typeof AbortController!=="undefined"};
j2E.prototype.send=function(p,J,S){var H=this,M,X,Z,n,b,F,f,O,A,P;return _.G(function(W){switch(W.nextAddress){case 1:return X=(M=H.abortSupported?new AbortController:void 0)?setTimeout(function(){M.abort()},p.timeoutMillis):void 0,_.oI(W,2,3),Z=Object.assign({},{method:p.requestType,
headers:Object.assign({},p.requestHeaders)},p.body&&{body:p.body},p.withCredentials&&{credentials:"include"},{signal:p.timeoutMillis&&M?M.signal:null}),W.yield(fetch(p.url,Z),5);case 5:n=W.yieldResult;if(n.status!==200){(b=S)==null||b(n.status);W.jumpTo(3);break}if((F=J)==null){W.jumpTo(7);break}return W.yield(n.text(),8);case 8:F(W.yieldResult);case 7:case 3:_.WZ(W);clearTimeout(X);_.yV(W,0);break;case 2:f=_.BZ(W);switch((O=f)==null?void 0:O.name){case "AbortError":(A=S)==null||A(408);break;default:(P=
S)==null||P(400)}W.jumpTo(3)}})};
j2E.prototype.getTransmissionType=function(){return 4};_.P0=function(p,J){J=J===void 0?"0":J;_.gp.call(this);this.logSource=p;this.sessionIndex=J;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9869_clearExperimentIds=this.productID=null;this.JSC$9869_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.Q(_.P0,_.gp);var vas=function(p,J){p.buildLabel=J;return p},Fdg=function(p,J){p.network=J;
return p},OQv=function(p,J){p.JSC$9869_clearExperimentIds=J},mVi=function(p){p.JSC$9869_sendBeaconApiEnabled=!0;
return p};
_.P0.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.P0.prototype.build=function(){this.network||(this.network=new j2E);var p=new oq({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.fV4,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.$c(this,p);if(this.buildLabel){var J=this.buildLabel,S=
zi(p.logRequestBuilder);_.g2(S,7,J)}p.JSC$9851_compressor=new Wrn;this.componentId&&(p.componentId=this.componentId);this.productID&&(p.productID=this.productID);this.pageId&&(p.pageId=this.pageId);this.JSC$9869_clearExperimentIds&&((S=this.JSC$9869_clearExperimentIds)?(p.experimentIds||(p.experimentIds=new Q28),J=p.experimentIds,S=S.serialize(),_.g2(J,4,S)):p.experimentIds&&_.e9(p.experimentIds,4));this.JSC$9869_sendBeaconApiEnabled&&(p.JSC$9851_sendBeaconApiEnabled=p.isSendBeaconSupported);Trp(p.logRequestBuilder);
this.bufferSize&&(p.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(p);return p};var zXX=function(p,J,S,H,M,X,Z){p=p===void 0?-1:p;J=J===void 0?"":J;S=S===void 0?"":S;H=H===void 0?!1:H;M=M===void 0?"":M;_.gp.call(this);this.logSource=p;this.componentId=J;X?J=X:(p=new _.P0(p,"0"),p.componentId=J,_.$c(this,p),S!==""&&(p.destinationUrl=S),H&&(p.serviceWorkerScopeEnabled=!0),M&&vas(p,M),Z&&Fdg(p,Z),J=p.build());this.JSC$9873_transport=J};
_.Q(zXX,_.gp);zXX.prototype.flush=function(p){p=p||[];if(p.length){for(var J=new FrM,S=[],H=0;H<p.length;H++){var M=p[H],X=OUn(M);S.push(X);M.clear()}oh(J,1,S);this.JSC$9873_transport.dispatch(J);this.JSC$9873_transport.flush()}};var wWv=function(p){this.cellValue=p};var Qr=function(p,J,S){this.JSC$9878_metricName=p;this.cellType=J;this.fields=S||[];this.cellMap=new Map},fDp=function(p){return p.fields.map(function(J){return J.fieldType})},vTE=function(p){return p.fields.map(function(J){return J.fieldName})};
_.R=Qr.prototype;_.R.addCell=function(p){var J=_.Yp.apply(1,arguments),S=this.getCells(J);S?S.push(new wWv(p)):this.JSC$9878_setCell(p,J)};
_.R.JSC$9878_setCell=function(p){var J=this.JSC$9878_getKey(_.Yp.apply(1,arguments));this.cellMap.set(J,[new wWv(p)])};
_.R.getCells=function(){var p=this.JSC$9878_getKey(_.Yp.apply(0,arguments));return this.cellMap.has(p)?this.cellMap.get(p):void 0};
_.R.getCell=function(){var p=this.getCells(_.Yp.apply(0,arguments));return p&&p.length?p[0]:void 0};
_.R.clear=function(){this.cellMap.clear()};
_.R.JSC$9878_getKey=function(){var p=_.Yp.apply(0,arguments);return p?p.join(","):"key"};var xsn=function(p,J){Qr.call(this,p,3,J)};
_.Q(xsn,Qr);xsn.prototype.JSC$9881_incrementCounterBy=function(p){var J=_.Yp.apply(1,arguments),S=0,H=this.getCell(J);H&&(S=H.cellValue);this.JSC$9878_setCell(S+p,J)};var cZ8=function(p,J){Qr.call(this,p,2,J)};
_.Q(cZ8,Qr);cZ8.prototype.record=function(p){this.addCell(p,_.Yp.apply(1,arguments))};_.Cn=function(p){this.id=p};
_.Cn.prototype.toString=function(){return this.id};_.yr=function(p,J){this.type=p instanceof _.Cn?String(p):p;this.currentTarget=this.target=J;this.defaultPrevented=this.propagationStopped_=!1};
_.yr.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.yr.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Bz=function(p,J){_.yr.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,J)};
_.SJ(_.Bz,_.yr);
_.Bz.prototype.init=function(p,J){var S=this.type=p.type,H=p.changedTouches&&p.changedTouches.length?p.changedTouches[0]:null;this.target=p.target||p.srcElement;this.currentTarget=J;J=p.relatedTarget;J||(S=="mouseover"?J=p.fromElement:S=="mouseout"&&(J=p.toElement));this.relatedTarget=J;H?(this.clientX=H.clientX!==void 0?H.clientX:H.pageX,this.clientY=H.clientY!==void 0?H.clientY:H.pageY,this.screenX=H.screenX||0,this.screenY=H.screenY||0):(this.offsetX=_.Ku||p.offsetX!==void 0?p.offsetX:p.layerX,
this.offsetY=_.Ku||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||(S=="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&&_.Bz.superClass_.preventDefault.call(this)};
_.Bz.prototype.isButton=function(p){return this.event_.button==p};
_.Bz.prototype.stopPropagation=function(){_.Bz.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Bz.prototype.preventDefault=function(){_.Bz.superClass_.preventDefault.call(this);var p=this.event_;p.preventDefault?p.preventDefault():p.returnValue=!1};var IDn="closure_listenable_"+(Math.random()*1E6|0),Un=function(p){return!(!p||!p[IDn])};var Lrq=0;var p5p=function(p,J,S,H,M){this.listener=p;this.proxy=null;this.src=J;this.type=S;this.capture=!!H;this.handler=M;this.key=++Lrq;this.removed=this.callOnce=!1},J4m=function(p){p.removed=!0;
p.listener=null;p.proxy=null;p.src=null;p.handler=null};AT.prototype.add=function(p,J,S,H,M){var X=p.toString();p=this.listeners[X];p||(p=this.listeners[X]=[],this.typeCount_++);var Z=SgU(p,J,H,M);Z>-1?(J=p[Z],S||(J.callOnce=!1)):(J=new p5p(J,this.src,X,!!H,M),J.callOnce=S,p.push(J));return J};
AT.prototype.remove=function(p,J,S,H){p=p.toString();if(!(p in this.listeners))return!1;var M=this.listeners[p];J=SgU(M,J,S,H);return J>-1?(J4m(M[J]),_.gsi(M,J),M.length==0&&(delete this.listeners[p],this.typeCount_--),!0):!1};
var HV8=function(p,J){var S=J.type;if(!(S in p.listeners))return!1;var H=_.uw(p.listeners[S],J);H&&(J4m(J),p.listeners[S].length==0&&(delete p.listeners[S],p.typeCount_--));return H};
AT.prototype.removeAll=function(p){p=p&&p.toString();var J=0,S;for(S in this.listeners)if(!p||S==p){for(var H=this.listeners[S],M=0;M<H.length;M++)++J,J4m(H[M]);delete this.listeners[S];this.typeCount_--}return J};
AT.prototype.getListener=function(p,J,S,H){p=this.listeners[p.toString()];var M=-1;p&&(M=SgU(p,J,S,H));return M>-1?p[M]:null};
AT.prototype.hasListener=function(p,J){var S=p!==void 0,H=S?p.toString():"",M=J!==void 0;return _.T6.some(this.listeners,function(X){for(var Z=0;Z<X.length;++Z)if(!(S&&X[Z].type!=H||M&&X[Z].capture!=J))return!0;return!1})};
var SgU=function(p,J,S,H){for(var M=0;M<p.length;++M){var X=p[M];if(!X.removed&&X.listener==J&&X.capture==!!S&&X.handler==H)return M}return-1};var Mnn,X5n,iVU,KT4,ZV8,fI,Oa,bV4,nvU,GV4,sn,mzo,RYp;Mnn="closure_lm_"+(Math.random()*1E6|0);X5n={};iVU=0;_.z$=function(p,J,S,H,M){if(H&&H.once)return fI(p,J,S,H,M);if(Array.isArray(J)){for(var X=0;X<J.length;X++)_.z$(p,J[X],S,H,M);return null}S=RYp(S);return Un(p)?p.listen(J,S,_.Ei(H)?!!H.capture:!!H,M):KT4(p,J,S,!1,H,M)};
KT4=function(p,J,S,H,M,X){if(!J)throw Error("va");var Z=_.Ei(M)?!!M.capture:!!M,n=sn(p);n||(p[Mnn]=n=new AT(p));S=n.add(J,S,H,Z,X);if(S.proxy)return S;H=ZV8();S.proxy=H;H.src=p;H.listener=S;if(p.addEventListener)_.npU||(M=Z),M===void 0&&(M=!1),p.addEventListener(J.toString(),H,M);else if(p.attachEvent)p.attachEvent(nvU(J.toString()),H);else if(p.addListener&&p.removeListener)p.addListener(H);else throw Error("wa");iVU++;return S};
ZV8=function(){var p=GV4,J=function(S){return p.call(J.src,J.listener,S)};
return J};
fI=function(p,J,S,H,M){if(Array.isArray(J)){for(var X=0;X<J.length;X++)fI(p,J[X],S,H,M);return null}S=RYp(S);return Un(p)?p.listenOnce(J,S,_.Ei(H)?!!H.capture:!!H,M):KT4(p,J,S,!0,H,M)};
_.gx=function(p,J,S,H,M){if(Array.isArray(J))for(var X=0;X<J.length;X++)_.gx(p,J[X],S,H,M);else H=_.Ei(H)?!!H.capture:!!H,S=RYp(S),Un(p)?p.unlisten(J,S,H,M):p&&(p=sn(p))&&(J=p.getListener(J,S,H,M))&&Oa(J)};
Oa=function(p){if(typeof p==="number"||!p||p.removed)return!1;var J=p.src;if(Un(J))return HV8(J.eventTargetListeners_,p);var S=p.type,H=p.proxy;J.removeEventListener?J.removeEventListener(S,H,p.capture):J.detachEvent?J.detachEvent(nvU(S),H):J.addListener&&J.removeListener&&J.removeListener(H);iVU--;(S=sn(J))?(HV8(S,p),S.typeCount_==0&&(S.src=null,J[Mnn]=null)):J4m(p);return!0};
bV4=function(p,J,S,H,M){S=RYp(S);H=!!H;return Un(p)?p.getListener(J,S,H,M):p?(p=sn(p))?p.getListener(J,S,H,M):null:null};
nvU=function(p){return p in X5n?X5n[p]:X5n[p]="on"+p};
GV4=function(p,J){if(p.removed)p=!0;else{J=new _.Bz(J,this);var S=p.listener,H=p.handler||p.src;p.callOnce&&Oa(p);p=S.call(H,J)}return p};
sn=function(p){p=p[Mnn];return p instanceof AT?p:null};
mzo="__closure_events_fn_"+(Math.random()*1E9>>>0);RYp=function(p){if(typeof p==="function")return p;p[mzo]||(p[mzo]=function(J){return p.handleEvent(J)});
return p[mzo]};_.te=function(){_.gp.call(this);this.eventTargetListeners_=new AT(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.SJ(_.te,_.gp);_.te.prototype[IDn]=!0;_.R=_.te.prototype;_.R.setParentEventTarget=function(p){this.parentEventTarget_=p};
_.R.addEventListener=function(p,J,S,H){_.z$(this,p,J,S,H)};
_.R.removeEventListener=function(p,J,S,H){_.gx(this,p,J,S,H)};
_.R.dispatchEvent=function(p){var J,S=this.parentEventTarget_;if(S)for(J=[];S;S=S.parentEventTarget_)J.push(S);S=this.actualEventTarget_;var H=p.type||p;if(typeof p==="string")p=new _.yr(p,S);else if(p instanceof _.yr)p.target=p.target||S;else{var M=p;p=new _.yr(H,S);_.T6.extend(p,M)}M=!0;var X;if(J)for(X=J.length-1;!p.propagationStopped_&&X>=0;X--){var Z=p.currentTarget=J[X];M=FTd(Z,H,!0,p)&&M}p.propagationStopped_||(Z=p.currentTarget=S,M=FTd(Z,H,!0,p)&&M,p.propagationStopped_||(M=FTd(Z,H,!1,p)&&
M));if(J)for(X=0;!p.propagationStopped_&&X<J.length;X++)Z=p.currentTarget=J[X],M=FTd(Z,H,!1,p)&&M;return M};
_.R.disposeInternal=function(){_.te.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.R.listen=function(p,J,S,H){return this.eventTargetListeners_.add(String(p),J,!1,S,H)};
_.R.listenOnce=function(p,J,S,H){return this.eventTargetListeners_.add(String(p),J,!0,S,H)};
_.R.unlisten=function(p,J,S,H){return this.eventTargetListeners_.remove(String(p),J,S,H)};
_.R.removeAllListeners=function(p){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(p):0};
var FTd=function(p,J,S,H){J=p.eventTargetListeners_.listeners[String(J)];if(!J)return!0;J=J.concat();for(var M=!0,X=0;X<J.length;++X){var Z=J[X];if(Z&&!Z.removed&&Z.capture==S){var n=Z.listener,b=Z.handler||Z.src;Z.callOnce&&HV8(p.eventTargetListeners_,Z);M=n.call(b,H)!==!1&&M}}return M&&!H.defaultPrevented};
_.te.prototype.getListener=function(p,J,S,H){return this.eventTargetListeners_.getListener(String(p),J,S,H)};
_.te.prototype.hasListener=function(p,J){return this.eventTargetListeners_.hasListener(p!==void 0?String(p):void 0,J)};var he=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(p){return p&&AsyncContext.Snapshot.wrap(p)}:function(p){return p};var vv8=function(p,J){this.create_=p;this.reset_=J;this.occupants_=0;this.JSC$9913_head_=null};
vv8.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var p=this.JSC$9913_head_;this.JSC$9913_head_=p.next;p.next=null}else p=this.create_();return p};
vv8.prototype.put=function(p){this.reset_(p);this.occupants_<100&&(this.occupants_++,p.next=this.JSC$9913_head_,this.JSC$9913_head_=p)};var fJL=function(){this.workTail_=this.workHead_=null};
fJL.prototype.add=function(p,J){var S=RXk.get();S.set(p,J);this.workTail_?this.workTail_.next=S:this.workHead_=S;this.workTail_=S};
fJL.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 RXk=new vv8(function(){return new OV8},function(p){return p.reset()}),OV8=function(){this.next=this.scope=this.fn=null};
OV8.prototype.set=function(p,J){this.fn=p;this.scope=J;this.next=null};
OV8.prototype.reset=function(){this.next=this.scope=this.fn=null};var A48,Kds,iQs,PeM;Kds=!1;iQs=new fJL;_.Do=function(p,J){A48||PeM();Kds||(A48(),Kds=!0);iQs.add(p,J)};
PeM=function(){var p=Promise.resolve(void 0);A48=function(){p.then(ZQL)}};var zY8=function(p){p.prototype.$goog_Thenable=!0},$zU=function(p){if(!p)return!1;
try{return!!p.$goog_Thenable}catch(J){return!1}};var ovd,eY4,WTn,CeL,y4U,BY4,tnm,kVn,uaL,TY8,ZhL;_.UI=function(p,J){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(p!=_.y4)try{var S=this;p.call(J,function(H){S.resolve_(2,H)},function(H){S.resolve_(3,H)})}catch(H){this.resolve_(3,H)}};
ovd=function(){this.next=this.context=this.JSC$9924_onRejected=this.JSC$9924_onFulfilled=this.child=null;this.always=!1};
ovd.prototype.reset=function(){this.context=this.JSC$9924_onRejected=this.JSC$9924_onFulfilled=this.child=null;this.always=!1};
eY4=new vv8(function(){return new ovd},function(p){p.reset()});
WTn=function(p,J,S){var H=eY4.get();H.JSC$9924_onFulfilled=p;H.JSC$9924_onRejected=J;H.context=S;return H};
_.SU=function(p){if(p instanceof _.UI)return p;var J=new _.UI(_.y4);J.resolve_(2,p);return J};
_.o4=function(p){return new _.UI(function(J,S){S(p)})};
CeL=function(p,J,S){Qd8(p,J,S,null)||_.Do(_.nl(J,p))};
_.kf=function(p){return new _.UI(function(J,S){var H=p.length,M=[];if(H)for(var X=function(F,f){H--;M[F]=f;H==0&&J(M)},Z=function(F){S(F)},n,b=0;b<p.length;b++)n=p[b],CeL(n,_.nl(X,b),Z);
else J(M)})};
y4U=function(p){return new _.UI(function(J){var S=p.length,H=[];if(S)for(var M=function(n,b,F){S--;H[n]=b?{fulfilled:!0,value:F}:{fulfilled:!1,reason:F};S==0&&J(H)},X,Z=0;Z<p.length;Z++)X=p[Z],CeL(X,_.nl(M,Z,!0),_.nl(M,Z,!1));
else J(H)})};
BY4=function(p){return new _.UI(function(J,S){var H=p.length,M=[];if(H)for(var X=function(F){J(F)},Z=function(F,f){H--;
M[F]=f;H==0&&S(M)},n,b=0;b<p.length;b++)n=p[b],CeL(n,X,_.nl(Z,b));
else J(void 0)})};
_.qr=function(){var p,J,S=new _.UI(function(H,M){p=H;J=M});
return new Uz8(S,p,J)};
_.UI.prototype.then=function(p,J,S){return sd8(this,he(typeof p==="function"?p:null),he(typeof J==="function"?J:null),S)};
zY8(_.UI);tnm=function(p,J,S,H){gvp(p,WTn(J||_.y4,S||null,H))};
_.Nv=function(p,J){J=he(J);J=WTn(J,J);J.always=!0;gvp(p,J);return p};
_.UI.prototype.finally=function(p){var J=this;p=he(p);return new _.UI(function(S,H){tnm(J,function(M){p();S(M)},function(M){p();
H(M)})})};
_.UI.prototype.thenCatch=function(p,J){return sd8(this,null,he(p),J)};
_.UI.prototype.catch=_.UI.prototype.thenCatch;_.UI.prototype.cancel=function(p){if(this.state_==0){var J=new _.DP(p);_.Do(function(){hYE(this,J)},this)}};
var hYE=function(p,J){if(p.state_==0)if(p.parent_){var S=p.parent_;if(S.callbackEntries_){for(var H=0,M=null,X=null,Z=S.callbackEntries_;Z&&(Z.always||(H++,Z.child==p&&(M=Z),!(M&&H>1)));Z=Z.next)M||(X=Z);M&&(S.state_==0&&H==1?hYE(S,J):(X?(H=X,H.next==S.callbackEntriesTail_&&(S.callbackEntriesTail_=H),H.next=H.next.next):Dzq(S),kVn(S,M,3,J)))}p.parent_=null}else p.resolve_(3,J)},gvp=function(p,J){p.callbackEntries_||p.state_!=2&&p.state_!=3||NYU(p);
p.callbackEntriesTail_?p.callbackEntriesTail_.next=J:p.callbackEntries_=J;p.callbackEntriesTail_=J},sd8=function(p,J,S,H){var M=WTn(null,null,null);
M.child=new _.UI(function(X,Z){M.JSC$9924_onFulfilled=J?function(n){try{var b=J.call(H,n);X(b)}catch(F){Z(F)}}:X;
M.JSC$9924_onRejected=S?function(n){try{var b=S.call(H,n);b===void 0&&n instanceof _.DP?Z(n):X(b)}catch(F){Z(F)}}:Z});
M.child.parent_=p;gvp(p,M);return M.child};
_.UI.prototype.unblockAndFulfill_=function(p){this.state_=0;this.resolve_(2,p)};
_.UI.prototype.unblockAndReject_=function(p){this.state_=0;this.resolve_(3,p)};
_.UI.prototype.resolve_=function(p,J){this.state_==0&&(this===J&&(p=3,J=new TypeError("xa")),this.state_=1,Qd8(J,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=J,this.state_=p,this.parent_=null,NYU(this),p!=3||J instanceof _.DP||TY8(this,J)))};
var Qd8=function(p,J,S,H){if(p instanceof _.UI)return tnm(p,J,S,H),!0;if($zU(p))return p.then(J,S,H),!0;if(_.Ei(p))try{var M=p.then;if(typeof M==="function")return dz8(p,M,J,S,H),!0}catch(X){return S.call(H,X),!0}return!1},dz8=function(p,J,S,H,M){var X=!1,Z=function(b){X||(X=!0,S.call(M,b))},n=function(b){X||(X=!0,H.call(M,b))};
try{J.call(p,Z,n)}catch(b){n(b)}},NYU=function(p){p.executing_||(p.executing_=!0,_.Do(p.executeCallbacks_,p))},Dzq=function(p){var J=null;
p.callbackEntries_&&(J=p.callbackEntries_,p.callbackEntries_=J.next,J.next=null);p.callbackEntries_||(p.callbackEntriesTail_=null);return J};
_.UI.prototype.executeCallbacks_=function(){for(var p;p=Dzq(this);)kVn(this,p,this.state_,this.result_);this.executing_=!1};
kVn=function(p,J,S,H){if(S==3&&J.JSC$9924_onRejected&&!J.always)for(;p&&p.hadUnhandledRejection_;p=p.parent_)p.hadUnhandledRejection_=!1;if(J.child)J.child.parent_=null,uaL(J,S,H);else try{J.always?J.JSC$9924_onFulfilled.call(J.context):uaL(J,S,H)}catch(M){ZhL.call(null,M)}eY4.put(J)};
uaL=function(p,J,S){J==2?p.JSC$9924_onFulfilled.call(p.context,S):p.JSC$9924_onRejected&&p.JSC$9924_onRejected.call(p.context,S)};
TY8=function(p,J){p.hadUnhandledRejection_=!0;_.Do(function(){p.hadUnhandledRejection_&&ZhL.call(null,J)})};
ZhL=MW;_.DP=function(p){_.pL.call(this,p)};
_.SJ(_.DP,_.pL);_.DP.prototype.name="cancel";var Uz8=function(p,J,S){this.promise=p;this.resolve=J;this.reject=S};var Ti;_.$d=function(p,J){_.te.call(this);this.JSC$9936_interval_=p||1;this.timerObject_=J||_.Hg;this.boundTick_=(0,_.tT)(this.tick_,this);this.last_=_.JF()};
_.SJ(_.$d,_.te);_.R=_.$d.prototype;_.R.enabled=!1;_.R.JSC$9938_timer_=null;_.R.setInterval=function(p){this.JSC$9936_interval_=p;this.JSC$9938_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9938_timer_&&this.stop()};
_.R.tick_=function(){if(this.enabled){var p=_.JF()-this.last_;p>0&&p<this.JSC$9936_interval_*.8?this.JSC$9938_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9936_interval_-p):(this.JSC$9938_timer_&&(this.timerObject_.clearTimeout(this.JSC$9938_timer_),this.JSC$9938_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.R.start=function(){this.enabled=!0;this.JSC$9938_timer_||(this.JSC$9938_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9936_interval_),this.last_=_.JF())};
_.R.stop=function(){this.enabled=!1;this.JSC$9938_timer_&&(this.timerObject_.clearTimeout(this.JSC$9938_timer_),this.JSC$9938_timer_=null)};
_.R.disposeInternal=function(){_.$d.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Ti=function(p,J,S){if(typeof p==="function")S&&(p=(0,_.tT)(p,S));else if(p&&typeof p.handleEvent=="function")p=(0,_.tT)(p.handleEvent,p);else throw Error("ya");return Number(J)>2147483647?-1:_.Hg.setTimeout(p,J||0)};
_.lJU=function(p){var J=null;return(new _.UI(function(S,H){J=Ti(function(){S(void 0)},p);
J==-1&&H(Error("za"))})).thenCatch(function(S){_.Hg.clearTimeout(J);
throw S;})};var o7=function(p){_.gp.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$9942_flushTimer=new _.$d(this.flushInterval);this.JSC$9942_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.$c(this,this.JSC$9942_flushTimer)};
_.Q(o7,_.gp);o7.prototype.sendIsolatedPayload=function(p){this.shouldSendIsolatedPayload=p;this.invocationLimit=1};
var Vn4=function(p){p.JSC$9942_flushTimer.enabled||p.JSC$9942_flushTimer.start();p.invocationCount++;p.invocationCount>=p.invocationLimit&&p.snapshotAndFlush()};
o7.prototype.snapshotAndFlush=function(){var p=this.metricMap.values();p=[].concat(_.dW(p)).filter(function(J){return J.cellMap.size});
p.length&&this.streamzLogger.flush(p,this.shouldSendIsolatedPayload);qgp(p);this.invocationCount=0;this.JSC$9942_flushTimer.enabled&&this.JSC$9942_flushTimer.stop()};
o7.prototype.addNewCounter=function(p){var J=_.Yp.apply(1,arguments);this.metricMap.has(p)||this.metricMap.set(p,new xsn(p,J))};
o7.prototype.addNewEventMetric=function(p){var J=_.Yp.apply(1,arguments);this.metricMap.has(p)||this.metricMap.set(p,new cZ8(p,J))};
var aJp=function(p,J){return p.disabledMetrics.has(J)?void 0:p.metricMap.get(J)};
o7.prototype.JSC$9942_incrementCounter=function(p){this.JSC$9942_incrementCounterBy(p,1,_.Yp.apply(1,arguments))};
o7.prototype.JSC$9942_incrementCounterBy=function(p,J){var S=_.Yp.apply(2,arguments),H=aJp(this,p);H&&H instanceof xsn&&(H.JSC$9881_incrementCounterBy(J,S),Vn4(this))};
o7.prototype.record=function(p,J){var S=_.Yp.apply(2,arguments),H=aJp(this,p);H&&H instanceof cZ8&&(H.record(J,S),Vn4(this))};
var qgp=function(p){for(var J=0;J<p.length;J++)p[J].clear()};_.dx=function(p,J,S){S=S===void 0?{}:S;J=Error.call(this,J);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.code=p;this.metadata=S;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(_.dx,Error);_.dx.prototype.toString=function(){var p="RpcError("+(GGw(this.code)||String(this.code))+")";this.message&&(p+=": "+this.message);return p};_.Ev8=_.Hg.JSON.parse;_.uV=_.Hg.JSON.stringify;_.zX=_.Hg.JSON.parse;_.Ygv=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 r4U=function(p){switch(p){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var jd8,w58=function(){};
_.SJ(w58,_.bQW);w58.prototype.createInstance=function(){return new XMLHttpRequest};
jd8=new w58;_.lV=function(p){_.te.call(this);this.headers=new Map;this.JSC$9951_xmlHttpFactory_=p||null;this.JSC$9951_active_=!1;this.JSC$9951_xhr_=null;this.JSC$9951_lastUri_="";this.JSC$9951_lastErrorCode_=0;this.JSC$9951_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9951_timeoutId_=null;this.responseType_="";this.JSC$9951_withCredentials_=!1};
_.SJ(_.lV,_.te);var xzm=/^https?$/i,c4L=["POST","PUT"],IJL=[],r3g=function(p,J,S,H,M,X,Z){var n=new _.lV;IJL.push(n);J&&n.listen("complete",J);n.listenOnce("ready",n.cleanupSend_);X&&(n.timeoutInterval_=Math.max(0,X));Z&&(n.JSC$9951_withCredentials_=Z);n.send(p,S,H,M)};
_.lV.prototype.cleanupSend_=function(){this.dispose();_.uw(IJL,this)};
_.lV.prototype.send=function(p,J,S,H){if(this.JSC$9951_xhr_)throw Error("Aa`"+this.JSC$9951_lastUri_+"`"+p);J=J?J.toUpperCase():"GET";this.JSC$9951_lastUri_=p;this.JSC$9951_lastError_="";this.JSC$9951_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9951_active_=!0;this.JSC$9951_xhr_=this.createXhr();this.JSC$9951_xhr_.onreadystatechange=he((0,_.tT)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9951_xhr_.open(J,String(p),!0),this.inOpen_=!1}catch(Z){LTo(this,Z);return}p=S||"";S=new Map(this.headers);
if(H)if(Object.getPrototypeOf(H)===Object.prototype)for(var M in H)S.set(M,H[M]);else if(typeof H.keys==="function"&&typeof H.get==="function"){M=_.K(H.keys());for(var X=M.next();!X.done;X=M.next())X=X.value,S.set(X,H.get(X))}else throw Error("Ba`"+String(H));H=Array.from(S.keys()).find(function(Z){return"content-type"==Z.toLowerCase()});
M=_.Hg.FormData&&p instanceof _.Hg.FormData;!_.dk(c4L,J)||H||M||S.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");J=_.K(S);for(H=J.next();!H.done;H=J.next())S=_.K(H.value),H=S.next().value,S=S.next().value,this.JSC$9951_xhr_.setRequestHeader(H,S);this.responseType_&&(this.JSC$9951_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9951_xhr_&&this.JSC$9951_xhr_.withCredentials!==this.JSC$9951_withCredentials_&&(this.JSC$9951_xhr_.withCredentials=this.JSC$9951_withCredentials_);
try{this.JSC$9951_timeoutId_&&(clearTimeout(this.JSC$9951_timeoutId_),this.JSC$9951_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9951_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9951_xhr_.send(p),this.inSend_=!1}catch(Z){LTo(this,Z)}};
_.lV.prototype.createXhr=function(){return this.JSC$9951_xmlHttpFactory_?this.JSC$9951_xmlHttpFactory_.createInstance():jd8.createInstance()};
_.lV.prototype.timeout_=function(){typeof GWo!="undefined"&&this.JSC$9951_xhr_&&(this.JSC$9951_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9951_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var LTo=function(p,J){p.JSC$9951_active_=!1;p.JSC$9951_xhr_&&(p.inAbort_=!0,p.JSC$9951_xhr_.abort(),p.inAbort_=!1);p.JSC$9951_lastError_=J;p.JSC$9951_lastErrorCode_=5;pO4(p);Jl8(p)},pO4=function(p){p.errorDispatched_||(p.errorDispatched_=!0,p.dispatchEvent("complete"),p.dispatchEvent("error"))};
_.lV.prototype.abort=function(p){this.JSC$9951_xhr_&&this.JSC$9951_active_&&(this.JSC$9951_active_=!1,this.inAbort_=!0,this.JSC$9951_xhr_.abort(),this.inAbort_=!1,this.JSC$9951_lastErrorCode_=p||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Jl8(this))};
_.lV.prototype.disposeInternal=function(){this.JSC$9951_xhr_&&(this.JSC$9951_active_&&(this.JSC$9951_active_=!1,this.inAbort_=!0,this.JSC$9951_xhr_.abort(),this.inAbort_=!1),Jl8(this,!0));_.lV.superClass_.disposeInternal.call(this)};
_.lV.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)SvE(this);else this.onReadyStateChangeEntryPoint_()};
_.lV.prototype.onReadyStateChangeEntryPoint_=function(){SvE(this)};
var SvE=function(p){if(p.JSC$9951_active_&&typeof GWo!="undefined")if(p.inSend_&&_.Vr(p)==4)setTimeout(p.onReadyStateChange_.bind(p),0);else if(p.dispatchEvent("readystatechange"),p.isComplete()){p.JSC$9951_active_=!1;try{if(p.isSuccess())p.dispatchEvent("complete"),p.dispatchEvent("success");else{p.JSC$9951_lastErrorCode_=6;try{var J=_.Vr(p)>2?p.JSC$9951_xhr_.statusText:""}catch(S){J=""}p.JSC$9951_lastError_=J+" ["+p.getStatus()+"]";pO4(p)}}finally{Jl8(p)}}},Jl8=function(p,J){if(p.JSC$9951_xhr_){p.JSC$9951_timeoutId_&&
(clearTimeout(p.JSC$9951_timeoutId_),p.JSC$9951_timeoutId_=null);
var S=p.JSC$9951_xhr_;p.JSC$9951_xhr_=null;J||p.dispatchEvent("ready");try{S.onreadystatechange=null}catch(H){}}};
_.lV.prototype.isActive=function(){return!!this.JSC$9951_xhr_};
_.lV.prototype.isComplete=function(){return _.Vr(this)==4};
_.lV.prototype.isSuccess=function(){var p=this.getStatus(),J;if(!(J=r4U(p))){if(p=p===0)p=Rw4(String(this.JSC$9951_lastUri_)),p=!xzm.test(p);J=p}return J};
_.Vr=function(p){return p.JSC$9951_xhr_?p.JSC$9951_xhr_.readyState:0};
_.R=_.lV.prototype;_.R.getStatus=function(){try{return _.Vr(this)>2?this.JSC$9951_xhr_.status:-1}catch(p){return-1}};
_.R.getResponseText=function(){try{return this.JSC$9951_xhr_?this.JSC$9951_xhr_.responseText:""}catch(p){return""}};
_.R.getResponse=function(){try{if(!this.JSC$9951_xhr_)return null;if("response"in this.JSC$9951_xhr_)return this.JSC$9951_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9951_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9951_xhr_)return this.JSC$9951_xhr_.mozResponseArrayBuffer}return null}catch(p){return null}};
_.R.getAllResponseHeaders=function(){return this.JSC$9951_xhr_&&_.Vr(this)>=2?this.JSC$9951_xhr_.getAllResponseHeaders()||"":""};
_.R.getLastError=function(){return typeof this.JSC$9951_lastError_==="string"?this.JSC$9951_lastError_:String(this.JSC$9951_lastError_)};var fL4=function(){};
fL4.prototype.send=function(p,J,S){J=J===void 0?function(){}:J;
S=S===void 0?function(){}:S;
r3g(p.url,function(H){H=H.target;H.isSuccess()?J(H.getResponseText()):S(H.getStatus())},p.requestType,p.body,p.requestHeaders,p.timeoutMillis,p.withCredentials)};
fL4.prototype.getTransmissionType=function(){return 1};var HQp=function(p,J){this.gWF=p;this.event=J;this.startTime=em()},oaL;
HQp.prototype.done=function(){this.gWF.y4(this.event,em()-this.startTime)};
var qv=function(){Fv.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.Q(qv,Fv);_.aq=function(p,J,S){var H=em();J=J();p.y4(S,em()-H);return J};
oaL=function(){qv.apply(this,arguments)};
_.Q(oaL,qv);_.R=oaL.prototype;_.R.rkW=function(){};
_.R.pT=function(){};
_.R.y4=function(){};
_.R.logError=function(){};
_.R.z9=function(){};
_.R.gnM=function(){};
_.R.ond=function(){};
_.R.pvq=function(){};
var MBp=function(p){qv.call(this);var J=this;this.ze=p;this.TEST_ONLY={pNv:function(){return J.ze},
getExperimentIds:function(){return J.ze.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void J.ze.dispose()})};
_.Q(MBp,qv);_.R=MBp.prototype;_.R.update=function(p){this.ze.dispose();this.ze=p};
_.R.pT=function(p){this.ze.pT(p)};
_.R.y4=function(p,J){this.ze.y4(p,J)};
_.R.logError=function(p){this.ze.logError(p)};
_.R.z9=function(){this.ze.z9()};
_.R.gnM=function(p){this.ze.gnM(p)};
_.R.ond=function(p){this.ze.ond(p)};
_.R.pvq=function(p){this.ze.pvq(p)};
_.R.rkW=function(p){this.ze.rkW(p)};
var XOo=function(p,J){_.gp.call(this);var S=this;this.callback=p;this.gp5=J;this.s2t=-J;this.addOnDisposeCallback(function(){return void clearTimeout(S.timer)})};
_.Q(XOo,_.gp);var iQU=function(p){if(p.timer===void 0){var J=Math.max(0,p.s2t+p.gp5-em());p.timer=setTimeout(function(){try{p.callback()}finally{p.s2t=em(),p.timer=void 0}},J)}},RXm=function(p,J){qv.call(this);
this.metrics=p;this.yB=J};
_.Q(RXm,qv);_.R=RXm.prototype;_.R.rkW=function(p){this.metrics.uYi.record(p,this.yB)};
_.R.pT=function(p){this.metrics.eventCount.increment(p,this.yB)};
_.R.y4=function(p,J){this.metrics.j0C.record(J,p,this.yB)};
_.R.logError=function(p){this.metrics.errorCount.increment(p,this.yB)};
_.R.gnM=function(p){this.metrics.ooi.increment(p,this.yB)};
_.R.ond=function(p){this.metrics.em9.increment(p,this.yB)};
_.R.pvq=function(p){this.metrics.cB9.increment(p,this.yB)};
var eXg=function(p,J){J=J===void 0?[]:J;var S={yB:p.yB||"_",oqs:p.oqs||[],wrW:p.wrW|0,destinationUrl:p.destinationUrl,bt7:p.bt7||function(){},
wGs:p.wGs||function(X,Z){return $V4(X,Z,S.bt7,S.destinationUrl)}},H=S.wGs("51",S.oqs.concat(J));
RXm.call(this,{uYi:new qVE(H),errorCount:new rTv(H),eventCount:new EcM(H),j0C:new YV8(H),i78:new adq(H),ooi:new j7v(H),em9:new w0o(H),cB9:new xLd(H)},S.yB);var M=this;this.TEST_ONLY={getExperimentIds:function(){return M.options.oqs.concat(M.zFI).sort(function(X,Z){return X-Z})}};
this.options=S;this.service=H;this.nBL=!p.wGs;this.flushDebouncer=new XOo(function(){return void M.service.snapshotAndFlush()},S.wrW);
this.addOnDisposeCallback(function(){M.flushDebouncer.dispose();M.nBL&&M.service.dispose()});
(this.zFI=J.slice()).sort(_.kW3)};
_.Q(eXg,RXm);eXg.prototype.z9=function(){iQU(this.flushDebouncer)};var dJt=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(dJt,_.Kt);_.ups=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(_.ups,_.Kt);var d_=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p,0,d_.messageId)};
_.Q(d_,_.Kt);var KdU=_.jDs(d_);d_.messageId="bfkj";var w5i=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(w5i,_.Kt);var ZQd=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(ZQd,_.Kt);var nav=_.$p(ZQd);_.iy=function(){var p=this;this.promise=new Promise(function(J,S){p.resolve=J;p.reject=S})};_.En=function(p){_.gp.call(this);var J=this;this.ojt=Math.floor(Math.random()*200);this.oVc=new ZQd;if("challenge"in p&&KdU(p.challenge)){var S=_.B_(p.challenge,4,void 0,h8);var H=_.B_(p.challenge,5,void 0,h8);_.B_(p.challenge,7,void 0,h8)&&(this.oVc=nav(_.B_(p.challenge,7,void 0,h8)))}else S=p.program,H=p.globalName;this.addOnDisposeCallback(function(){var W,y,t;return _.G(function(D){if(D.nextAddress==1)return D.yield(J.g7E,2);W=D.yieldResult;y=W.ykk;(t=y)==null||t();_.UK(D)})});
this.vY=Wd9(p.kwh||{},this.oVc);_.$c(this,this.vY);var M=new _.iy;this.g7E=M.promise;this.vY.pT("t");var X=this.vY.share(),Z=new HQp(X,"t"),n=function(W,y,t,D){if(!J.vY.isDisposed()){var k="k";y?k="h":t&&(k="u");k!=="k"?D!==0&&(J.vY.pT(k),J.vY.y4(k,W)):J.ojt<=0?(J.vY.pT(k),J.vY.y4(k,W),J.ojt=Math.floor(Math.random()*200)):J.ojt--}},b=function(W,y,t,D){Promise.resolve().then(function(){Z.done();
X.z9();X.dispose();M.resolve({igF:W,ykk:y,vAL:t,jeC:D})})};
if(!_.Hg[H])throw this.vY.logError(25),Error("Ca");if(!_.Hg[H].a)throw this.vY.logError(26),Error("Da");try{var F=_.Hg[H].a;H=[];for(var f=[],O=xzk(this.oVc),A=0;A<O.length;A++)H.push(O[A]),f.push(1);var P=c4t(this.oVc);for(O=0;O<P.length;O++)H.push(P[O]),f.push(2);this.f0j=_.K(F(S,b,!0,p.aN2,n,[H,f],_.B_(this.oVc,5),!1)).next().value;this.xMH=M.promise.then(function(){})}catch(W){throw this.vY.logError(28),W;
}};
_.Q(_.En,_.gp);_.En.prototype.snapshot=function(p){if(this.isDisposed())throw Error("Ea");this.vY.pT("n");var J=this.vY.share();return this.g7E.then(function(S){var H=S.igF;return new Promise(function(M){var X=new HQp(J,"n");H(function(Z){X.done();J.rkW(Z.length);J.z9();J.dispose();M(Z)},[p.jr,
p.az5,p.p9C,p.vMW])})})};
_.En.prototype.zld=function(p){this.g7E.then(function(J){var S;(S=J.vAL)==null||S(p)})};
_.En.prototype.zAc=function(p,J){return this.g7E.then(function(S){var H;return(H=S.jeC)==null?void 0:H(p,J,!1)})};
_.En.prototype.xLp=function(){return this.vY.share()};var GG8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(GG8,_.Kt);var ztw=_.jDs(GG8);var bQ4=function(){this.promises={};this.lWQ=null},mV8=function(){bQ4.instance||(bQ4.instance=new bQ4);
return bQ4.instance},vaU=function(p,J){return FdE(p,_.PB(J,dJt,1,h8),_.PB(J,_.ups,2,h8),_.B_(J,3,void 0,h8))},FdE=function(p,J,S,H){if(!J&&!S)return Promise.resolve();
if(!H)return UVv(J,S);var M;(M=p.promises)[H]||(M[H]=new Promise(function(X,Z){UVv(J,S).then(function(){p.lWQ=H;X()},function(n){delete p.promises[H];
Z(n)})}));
return p.promises[H]};var fLM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(fLM,_.Kt);var OQ8=function(p,J){return _.u6(p,1,J)},AlE=function(p,J){return _.u6(p,2,J)};var Yf=function(p){_.gp.call(this);var J=this;this.options=p;this.cC7=new _.iy;this.xMH=this.cC7.promise;this.aGs=new _.iy;this.fQK=1;this.tpx=new _.iy;this.vNp=[];this.quW=p.quW||function(){};
this.oap=new MBp(Wd9(p.kwh||{}));Phv(this,p.sy,p.kZU,p.uKd,p.aHA,Object.assign({},zXn,p.uc5||{}));this.addOnDisposeCallback(function(){return void $VM(J)})};
_.Q(Yf,_.gp);Yf.prototype.snapshot=function(p){var J=this;return _.G(function(S){switch(S.nextAddress){case 1:if(J.isDisposed())throw Error("Ea");if(J.gq||J.r3F){S.jumpTo(2);break}return S.yield(J.aGs.promise,2);case 2:if(!J.gq){S.jumpTo(4);break}return S.yield(J.gq.snapshot(p),5);case 5:return S.return(S.yieldResult);case 4:throw J.r3F;}})};
var oad=function(p){var J;return _.G(function(S){if(p.isDisposed())throw Error("Ea");(J=p.f8)!=null&&(J.endTimeMs=0,J.resolver(1));return S.yield(p.tpx.promise,0)})},$VM=function(p){p.r3F=Error("Ga");
p.aGs.resolve();IJt(p.cC7.promise);p.cC7.reject(Error("Ga"));p.oap.dispose();Promise.all(p.vNp).then(function(){var S;return _.G(function(H){(S=p.gq)==null||S.dispose();p.gq=void 0;_.UK(H)})});
p.vNp=[];var J;(J=p.f8)!=null&&(J.endTimeMs=0,J.resolver(1));IJt(p.tpx.promise);p.tpx.reject(Error("Ga"))};
Yf.prototype.zld=function(p){var J,S;(J=this.gq)==null||(S=J.zld)==null||S.call(J,p)};
Yf.prototype.zAc=function(p,J){var S,H,M;return(M=(S=this.gq)==null?void 0:(H=S.zAc)==null?void 0:H.call(S,p,J))!=null?M:Promise.resolve()};
var eXE=function(p,J){var S=p.quW;p.quW=function(){S();J()}},Wd8=function(p,J){p.isDisposed()||(p.gq=J,p.oap.update(J.xLp()),p.aGs.resolve(),p.cC7.resolve(void 0),p.quW())};
Yf.prototype.handleError=function(p){if(!this.isDisposed()){this.r3F=p;this.aGs.resolve();var J,S;(S=(J=this.options).eKj)==null||S.call(J,p)}};
var QyL=function(p,J){J&&(Promise.all(p.vNp).then(function(){return void J.dispose()}),p.vNp=[])},rx=function(p,J){p.fQK=J;
var S,H;(H=(S=p.options).kmL)==null||H.call(S,J)},Chq=function(p){p.isDisposed()||(p.tpx.resolve(),p.tpx=new _.iy)},Phv=function(p,J,S,H,M,X){H=H===void 0?mV8():H;
M=M===void 0?Promise.resolve(void 0):M;var Z,n,b,F,f,O,A,P,W,y,t,D;_.G(function(k){switch(k.nextAddress){case 1:return k.yield(0,3);case 3:n=null;if(!Z){k.jumpTo(6);break}rx(p,7);_.oI(k,7);return k.yield(B0(Z.snapshot({}),X.gzu,function(){return Promise.resolve("E:CTO")}),9);
case 9:n=k.yieldResult;_.X$(k,6);break;case 7:_.BZ(k),n="E:UCE";case 6:b=void 0,F=Z?X.nUJ:X.fzL,f=new OV(F,X.bdU,X.yCl,X.gU7),O=1;case 10:if(!(O<=X.maxAttempts)){k.jumpTo(12);break}if(O===1){k.jumpTo(13);break}rx(p,0);p.f8=new yl8(f.getValue(),X.pxi,X.aZC);return k.yield(p.f8.promise,14);case 14:A=k.yieldResult,p.f8=void 0,A===1?(O=1,f.reset()):dsv(f);case 13:_.oI(k,15);P=void 0;if(S){P=S;k.jumpTo(17);break}rx(p,5);W=H.lWQ;return k.yield(B0(B1U(J,W,n),X.yVF,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:P=k.yieldResult;case 17:return rx(p,3),k.yield(B0(vaU(H,P),X.rXN,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return rx(p,8),k.yield(M,20);case 20:return y=new _.En({challenge:P,kwh:p.options.kwh,aN2:p.options.aN2}),k.yield(B0(y.xMH,X.ogI,function(){return Promise.reject(Error("Ja"))}),21);
case 21:b=y;k.jumpTo(12);break;case 15:t=_.BZ(k),p.handleError(t),Chq(p);case 11:O++;k.jumpTo(10);break;case 12:if(p.isDisposed()){k.jumpTo(5);break}b&&(S=void 0,QyL(p,Z),Z=b,Wd8(p,b),Chq(p));rx(p,2);p.f8=new yl8(X.lta,X.pxi,X.aZC);return k.yield(p.f8.promise,22);case 22:p.f8=void 0;if(p.isDisposed()){k.jumpTo(5);break}k.jumpTo(3);break;case 5:(D=Z)==null||D.dispose(),_.UK(k)}})};
Yf.prototype.xLp=function(){return this.oap.share()};
var zXn={lta:432E5,pxi:3E5,aZC:10,gzu:1E4,yVF:3E4,rXN:3E4,ogI:6E4,fzL:1E3,nUJ:6E4,bdU:6E5,yCl:.25,gU7:2,maxAttempts:10},yl8=function(p,J,S){var H=this;this.endTimeMs=Date.now()+p;this.promise=new Promise(function(X){H.resolver=X});
var M=function(){var X=H.endTimeMs-Date.now();X<=S?H.resolver(0):setTimeout(M,Math.min(X,J))};
M()};var UV8,tBk=(UV8=Math.imul)!=null?UV8:function(p,J){return p*J|0},UV=[196,
200,224,18],jE=function(p,J,S){S=S===void 0?[]:S;this.maxItems=p;this.aY=J===void 0?0:J;this.ou=S},sym=function(p){var J=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!J)return new jE(p);var S=J.split(",");if(S.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new jE(p);J=S.slice(1);J.length===1&&J[0]===""&&(J=[]);S=Number(S[0]);return isNaN(S)||S<0||S>J.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new jE(p)):new jE(p,S,J)};
jE.prototype.serialize=function(){return String(this.aY)+","+this.ou.join()};
jE.prototype.insert=function(p,J){var S=void 0;if(this.ou[this.aY]!==p){var H=this.ou.indexOf(p);H!==-1?(this.ou.splice(H,1),H<this.aY&&this.aY--,this.ou.splice(this.aY,0,p)):(S=this.ou[this.aY],this.ou[this.aY]=p)}this.aY=(this.aY+1)%this.maxItems;p=syk("iU5q-!O9@$",this.serialize());S&&p&&J(S);return p};
var gaU=function(p,J){this.yWS=J;try{var S=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(H){S=!1}S&&(this.index=sym(p))},tBm=function(p,J,S,H,M){var X=p.index?_.aq(p.yWS,function(){return N1W(p.index,DVW(J),S,H,M)},"W"):"u";
p.yWS.pvq(X)},hXp=function(p,J,S){var H=_.K(p.index?_.aq(p.yWS,function(){return T1g(DVW(J),S)},"R"):["u"]),M=H.next().value;
H=H.next().value;p.yWS.ond(M);return H};var DV4={toString:function(p){var J=[],S=0;p-=-2147483648;J[S++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(p%52);for(p=Math.floor(p/52);p>0;)J[S++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(p%62),p=Math.floor(p/62);return J.join("")}};var T1E=function(p){p=kGn(p);for(var J=2654435769,S=2654435769,H=314159265,M=p.length,X=M,Z=0,n=function(){J-=S;J-=H;J^=H>>>13;S-=H;S-=J;S^=J<<8;H-=J;H-=S;H^=S>>>13;J-=S;J-=H;J^=H>>>12;S-=H;S-=J;S^=J<<16;H-=J;H-=S;H^=S>>>5;J-=S;J-=H;J^=H>>>3;S-=H;S-=J;S^=J<<10;H-=J;H-=S;H^=S>>>15};X>=12;X-=12,Z+=12)J+=N1o(p,Z),S+=N1o(p,Z+4),H+=N1o(p,Z+8),n();
H+=M;switch(X){case 11:H+=p[Z+10]<<24;case 10:H+=p[Z+9]<<16;case 9:H+=p[Z+8]<<8;case 8:S+=p[Z+7]<<24;case 7:S+=p[Z+6]<<16;case 6:S+=p[Z+5]<<8;case 5:S+=p[Z+4];case 4:J+=p[Z+3]<<24;case 3:J+=p[Z+2]<<16;case 2:J+=p[Z+1]<<8;case 1:J+=p[Z]}n();return DV4.toString(H)},kGn=function(p){for(var J=[],S=0;S<p.length;S++)J.push(p.charCodeAt(S));
return J},N1o=function(p,J){return p[J]+(p[J+1]<<8)+(p[J+2]<<16)+(p[J+3]<<24)};var wx=function(p){_.gp.call(this);this.dC=p;this.kkt=new _.iy};
_.Q(wx,_.gp);var dV8=function(p,J){var S=setTimeout(function(){p.kkt.resolve()},J);
p.addOnDisposeCallback(function(){return void clearTimeout(S)})};
wx.prototype.wFM=function(p,J){var S=this.ku(p);J==null||J(S);return _.aq(this.dC,function(){return _.gM(S,2)},this.sGX)};
var u9L=function(p,J,S,H){return _.aq(p.dC,function(){return S?p.wFM(J,H):p.ku(J,H)},p.rIs)},lLn=function(p,J,S,H){wx.call(this,p);
this.bFL=J;this.xij=S;this.rIs="m";this.sGX="x";this.yIk=0;dV8(this,H)};
_.Q(lLn,wx);lLn.prototype.ku=function(p,J){var S=this;this.dC.pT(this.rIs);++this.yIk>=this.xij&&this.kkt.resolve();var H=p();p=_.aq(this.dC,function(){return S.bFL(H)},"C");
if(p===void 0)throw new bV(17,"YNJ:Undefined");if(!(p instanceof Uint8Array))throw new bV(18,"ODM:Invalid");J==null||J(p);return p};
var VBv=function(p,J,S){wx.call(this,p);this.nF9=J;this.rIs="f";this.sGX="z";dV8(this,S)};
_.Q(VBv,wx);VBv.prototype.ku=function(){return this.nF9};
var qv8=function(p,J,S){wx.call(this,p);this.ngl=J;this.rIs="w";this.sGX="z";dV8(this,S)};
_.Q(qv8,wx);qv8.prototype.ku=function(){var p=this;return _.aq(this.dC,function(){return _.cg(p.ngl)},"d")};
qv8.prototype.wFM=function(){return this.ngl};
var aL8=function(p,J){wx.call(this,p);this.error=J;this.rIs="e";this.sGX="y"};
_.Q(aL8,wx);var Ead=function(p,J){var S=(J(p.error.message)+":"+J(p.error.stack)).substring(0,2048);J=S.length+1;S=dVi(S);var H=new Uint8Array(4+S.length);H.set([42,J&127|128,J>>7,p.error.code]);H.set(S,4);return H};
aL8.prototype.ku=function(){if(this.qR5)return this.qR5;this.qR5=Ead(this,function(p){return"_"+T1E(p)});
return Ead(this,function(p){return p})};
var Yvd=function(p,J,S){wx.call(this,p);this.c89=J;this.clientState=S;this.rIs="S";this.sGX="q"};
_.Q(Yvd,wx);Yvd.prototype.ku=function(){var p=Math.floor(Date.now()/1E3),J=[Math.random()*255,Math.random()*255],S=J.concat([this.c89&255,this.clientState],[p>>24&255,p>>16&255,p>>8&255,p&255]);p=new Uint8Array(2+S.length);p[0]=34;p[1]=S.length;p.set(S,2);S=p.subarray(2);for(var H=J=J.length;H<S.length;++H)S[H]^=S[H%J];this.dC.gnM(this.clientState);return p};var rlU={xUU:3E4,qS5:2E4},xf=function(p){_.gp.call(this);var J=this;this.ejh=new _.iy;this.zfO=0;this.kw=void 0;this.state=2;this.vm=p.vm;this.sy=p.sy;this.uc5=Object.assign({},rlU,p.uc5||{});this.kb=p.vm.xLp();var S;this.onError=(S=p.onError)!=null?S:function(){};
this.hRJ=p.hRJ||!1;if(jyo(p)){var H=this.vm;this.d1v=function(){return oad(H).catch(function(Z){Z=J.reportError(new bV(J.dn?20:32,"TRG:Disposed",Z));J.kw=Z;var n;(n=J.dn)==null||n.dispose();J.dn=void 0;J.ejh.reject(Z)})};
eXE(H,function(){return void wOE(J)});
H.fQK===2&&wOE(this)}else this.d1v=p.tjN,wOE(this);var M=this.kb.share();M.pT("o");var X=new HQp(M,"o");this.ejh.promise.then(function(){X.done();M.z9();M.dispose()},function(){return void M.dispose()});
this.addOnDisposeCallback(function(){J.dn?(J.dn.dispose(),J.dn=void 0):J.kw?J.kb.z9():(J.kw=J.reportError(new bV(32,"TNP:Disposed")),J.kb.z9(),J.ejh.reject(J.kw))});
_.$c(this,this.kb)};
_.Q(xf,_.gp);xf.prototype.zHO=function(){return this.ejh.promise};
var xV8=function(p,J){if(!(J instanceof bV))if(J instanceof _.dx){var S=Error(J.toString());S.stack=J.stack;J=new bV(11,"EBH:Error",S)}else J=new bV(12,"BSO:Unknown",J);return p.reportError(J)},wOE=function(p){var J,S,H,M,X,Z,n,b,F,f,O,A,P,W,y;
return _.G(function(t){switch(t.nextAddress){case 1:J=void 0;p.zfO++;S=new _.iy;p.vm instanceof Yf&&p.vm.vNp.push(S.promise);if(!p.hRJ){t.jumpTo(2);break}H=new _.iy;setTimeout(function(){return void H.resolve()});
return t.yield(H.promise,2);case 2:return M=p.kb.share(),_.oI(t,4,5),p.state=5,X={},Z=[],t.yield(B0(p.vm.snapshot({jr:X,p9C:Z}),p.uc5.qS5,function(){return Promise.reject(new bV(15,"MDA:Timeout"))}),7);
case 7:n=t.yieldResult;if(p.isDisposed())throw new bV(p.dn?20:32,"MDA:Disposed");b=Z[0];p.state=6;return t.yield(B0(clv(p.sy,n),p.uc5.xUU,function(){return Promise.reject(new bV(10,"BWB:Timeout"))}),8);
case 8:F=t.yieldResult;if(p.isDisposed())throw new bV(p.dn?20:32,"BWB:Disposed");p.state=7;J=_.aq(M,function(){var k=IL4(p,F,S,b);k.kkt.promise.then(function(){return void p.d1v()});
return k},"i");
case 5:_.WZ(t);M.dispose();_.yV(t,6);break;case 4:f=_.BZ(t);(O=J)==null||O.dispose();if(!p.kw){A=xV8(p,f);S.resolve();var D;if(D=p.vm instanceof Yf&&p.zfO<2)a:if(f instanceof bV)D=f.code!==32&&f.code!==20&&f.code!==10;else{if(f instanceof _.dx)switch(f.code){case 2:case 13:case 14:case 4:break;default:D=!1;break a}D=!0}if(D)return P=(1+Math.random()*.25)*(p.dn?6E4:1E3),W=setTimeout(function(){return void p.d1v()},P),p.addOnDisposeCallback(function(){return void clearTimeout(W)}),t.return();
p.kw=A}M.logError(p.dn?13:14);p.ejh.reject(p.kw);return t.return();case 6:p.state=8,p.zfO=0,(y=p.dn)==null||y.dispose(),p.dn=J,p.ejh.resolve(),_.UK(t)}})},IL4=function(p,J,S,H){var M=tL8(J,2)*1E3;
if(M<=0)throw new bV(31,"TTM:Invalid");if(_.B_(J,4))return new qv8(p.kb,_.B_(J,4),M);if(!tL8(J,3))return new VBv(p.kb,vUq(_.P_(J,1)),M);if(!H)throw new bV(4,"PMD:Undefined");H=H(vUq(_.P_(J,1)));if(!(H instanceof Function))throw new bV(16,"APF:Failed");p.eF2=Math.floor((Date.now()+M)/1E3);p=new lLn(p.kb,H,tL8(J,3),M);p.addOnDisposeCallback(function(){return void S.resolve()});
return p};
xf.prototype.ku=function(p){return Ld8(this,Object.assign({},p),!1)};
xf.prototype.wFM=function(p){return Ld8(this,Object.assign({},p),!0)};
xf.prototype.ppW=function(p){if(p>150)return!1;try{return this.cache=new gaU(p,this.kb),!0}catch(J){return this.reportError(new bV(22,"GBJ:init",J)),!1}};
xf.prototype.reportError=function(p){this.kb.logError(p.code);this.onError(p);return p};
var pB8=function(p,J){J=J instanceof bV?J:new bV(5,"TVD:error",J);return p.reportError(J)},Ld8=function(p,J,S){try{if(p.isDisposed())throw new bV(21,"BNT:disposed");
if(!p.dn&&p.kw)throw p.kw;var H,M;return(M=(H=JqE(p,J,S))!=null?H:S3q(p,J,S))!=null?M:HOm(p,J,S)}catch(X){if(!J.boK)throw pB8(p,X);return M9o(p,S,X)}},JqE=function(p,J,S){var H;
return(H=p.dn)==null?void 0:u9L(H,function(){return XBp(p,J)},S,function(M){var X;
if(p.dn instanceof lLn&&((X=J.iA)==null?0:X.rfC))try{var Z;(Z=p.cache)==null||tBm(Z,XBp(p,J),M,J.iA.he5,p.eF2-120)}catch(n){p.reportError(new bV(24,"ELX:write",n))}})},S3q=function(p,J,S){var H;
if((H=J.iA)!=null&&H.esJ)try{var M,X=(M=p.cache)==null?void 0:hXp(M,XBp(p,J),J.iA.he5);return X?S?_.aq(p.kb,function(){return _.gM(X,2)},"a"):X:void 0}catch(Z){p.reportError(new bV(23,"RXO:read",Z))}},HOm=function(p,J,S){var H={stack:[],
error:void 0,hasError:!1};try{if(!J.f9O)throw new bV(29,"SDF:notready");return u9L(OLd(H,new Yvd(p.kb,0,p.state)),function(){return XBp(p,J)},S)}catch(M){H.error=M,H.hasError=!0}finally{A98(H)}},M9o=function(p,J,S){var H={stack:[],
error:void 0,hasError:!1};try{var M=pB8(p,S);return u9L(OLd(H,new aL8(p.kb,M)),function(){return[]},J)}catch(X){H.error=X,H.hasError=!0}finally{A98(H)}},XBp=function(p,J){return J.dap?J.dap:J.jr?_.aq(p.kb,function(){return J.dap=dVi(J.jr)},"c"):[]},jyo=function(p){return kU(function(J){if(!o2(J))return!1;
for(var S=_.K(Object.entries(p)),H=S.next();!H.done;H=S.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;if(!(H in J)){if(M.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!M(J[H]))return!1}return!0})}({vm:function(p){return kU(function(J){return J instanceof p})}(Yf)},"");var iOq=function(){var p=_.SS();this.JSC$10069_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",mH("cookie_enabled"),mH("cookie_3p_enabled"),_.v0("browser"))};
iOq.prototype.increment=function(p,J,S){this.JSC$10069_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",p,J,S)};
var LxW=function(){var p=_.SS();this.JSC$10093_streamzService=p;p.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",FS("tick"),mH("from_st_cookie"))};
LxW.prototype.increment=function(p,J){this.JSC$10093_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",p,J)};
var R2p=function(){var p=_.SS();this.JSC$10099_streamzService=p;p.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.v0("status"))};
R2p.prototype.increment=function(p){this.JSC$10099_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",p)};
var K$v=function(){var p=_.SS();this.JSC$10102_streamzService=p;p.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.v0("stage"),mH("is_using_ytd_player"),mH("has_expandable_tiles"))};
K$v.prototype.increment=function(p,J,S){this.JSC$10102_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",p,J,S)};
var ZOq=function(){var p=_.SS();this.JSC$10105_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/response_signature",_.v0("check_status"))};
ZOq.prototype.increment=function(p){this.JSC$10105_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/web/response_signature",p)};
var n_v=function(){var p=_.SS();this.JSC$10108_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.v0("sig"),FS("de"))};
n_v.prototype.increment=function(p,J){this.JSC$10108_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/web/e_sig_log",p,J)};
var Gxd=function(){var p=_.SS();this.JSC$10111_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.v0("sig"),FS("de"))};
Gxd.prototype.increment=function(p,J){this.JSC$10111_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/web/e_sig_en",p,J)};
_.bO8=function(){var p=_.SS();this.JSC$10114_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.v0("action"))};
_.bO8.prototype.increment=function(p){this.JSC$10114_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/web/enforcement_intent",p)};var cz=window;var m1L=(new Date).getTime();_.T6.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.T6.createSet("action","cite","data","formaction","href","manifest","poster","src");var F$8=function(p){this.servicePromise_=p;p.then((0,_.tT)(function(){},this),function(){},this)},v_q=function(p,J,S){p.servicePromise_.then(function(H){var M=H[J];
if(!M)throw Error("Ka`"+J);return M.apply(H,S)})},Aqq=function(p,J,S){for(var H=Array(arguments.length-2),M=2;M<arguments.length;M++)H[M-2]=arguments[M];
M=fkp(p,J).then(function(X){return X.apply(null,H)},function(X){X=Error("La`"+J+"`"+p+"`"+X,{cause:X});
delete OOd[J];return _.o4(X)});
return new F$8(M)},OOd={},fkp=function(p,J){var S=OOd[J];
if(S)return S;S=(S=_.Id(J))?_.SU(S):(new _.UI(function(H,M){var X=(new td(document)).createElement("SCRIPT");X.async=!0;_.RI(X,_.sq(m0M(p)));X.onload=X.onreadystatechange=function(){X.readyState&&X.readyState!="loaded"&&X.readyState!="complete"||H()};
X.onerror=function(Z){M(Error("Ma`"+J+"`"+p,{cause:Z}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(X)})).then(function(){var H=_.Id(J);
if(!H)throw Error("Na`"+J+"`"+p);return H});
return OOd[J]=S};var P4M={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},$18=function(){var p=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=u9t(function(){return _.G(function(J){if(J.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?J.return(Promise.resolve()):J.yield(z2M(p),2);p.rsaForList.length>
0&&document.addEventListener("click",p.requestAccessForHelpPanel);_.UK(J)})});
this.requestAccessForHelpPanel=function(){if(!(p.rsaForPromises.length>0)){for(var J=_.K(p.rsaForList),S=J.next();!S.done;S=J.next()){S=S.value;try{p.rsaForPromises.push(document.requestStorageAccessFor(S))}catch(H){}}Promise.all(p.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){p.reset()})}}};
$18.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var z2M=function(p){var J,S,H,M;return _.G(function(X){switch(X.nextAddress){case 1:J=_.K(Object.values(P4M)),S=J.next();case 2:if(S.done){X.jumpTo(0);break}H=S.value;_.oI(X,5);return X.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:H}),7);case 7:M=X.yieldResult;M.state!=="granted"&&p.rsaForList.push(H);_.X$(X,3);break;case 5:_.BZ(X);X.jumpTo(0);break;case 3:S=J.next(),X.jumpTo(2)}})};(new $18).initialize();var o_n=function(p){this.JSC$10128_loader_=p};
o_n.prototype.startHelp=function(p){v_q(this.JSC$10128_loader_,"startHelp",arguments)};
o_n.prototype.JSC$10130_loadChatSupport=function(p){v_q(this.JSC$10128_loader_,"loadChatSupport",arguments)};
var W$v=function(p,J){J=J||{};p=Aqq(e28,"help.service.Lazy.create",p,{apiKey:J.apiKey||J.apiKey,asxUiUri:J.asxUiUri||J.asxUiUri,environment:J.environment||J.environment,flow:J.flow||J.flow,frdProductData:J.frdProductData||J.frdProductData,frdProductDataSerializedJspb:J.frdProductDataSerializedJspb||J.frdProductDataSerializedJspb,helpCenterPath:J.helpCenterPath||J.helpCenterPath,locale:J.locale||J.locale||"en-US".replace(/-/g,"_"),nonce:J.nonce||J.nonce,productData:J.productData||J.productData,receiverUri:J.receiverUri||
J.receiverUri,renderApiUri:J.renderApiUri||J.renderApiUri,theme:J.theme||J.theme,window:J.window||J.window});return new o_n(p)},e28=new IJ(rm4,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Q68=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Q68,_.Kt);var C4p=_.$p(Q68);var yqq=[0,_.Lu,r4,oyn];_.Bgm=new function(p,J,S,H){this.configType=p;this.flagName=S;this.defaultValue=H;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 s6U=function(){this.retriever=_.vO().resolve(U14)};_.w_={get payments(){return window.payments}};VBX(Node);VBX(Element);var g_n=VBX(HTMLElement);VBX(SVGElement);var t9n,h28,pN,D1d;t9n=function(p){return typeof p.className=="string"?p.className:p.getAttribute&&p.getAttribute("class")||""};
h28=function(p){return p.classList?p.classList:t9n(p).match(/\S+/g)||[]};
_.Iq=function(p,J){typeof p.className=="string"?p.className=J:p.setAttribute&&p.setAttribute("class",J)};
_.Ln=function(p,J){return p.classList?p.classList.contains(J):_.dk(h28(p),J)};
_.Ea=function(p,J){if(p.classList)p.classList.add(J);else if(!_.Ln(p,J)){var S=t9n(p);_.Iq(p,S+(S.length>0?" "+J:J))}};
pN=function(p,J){if(p.classList)Array.prototype.forEach.call(J,function(M){_.Ea(p,M)});
else{var S={};Array.prototype.forEach.call(h28(p),function(M){S[M]=!0});
Array.prototype.forEach.call(J,function(M){S[M]=!0});
J="";for(var H in S)J+=J.length>0?" "+H:H;_.Iq(p,J)}};
_.qn=function(p,J){p.classList?p.classList.remove(J):_.Ln(p,J)&&_.Iq(p,Array.prototype.filter.call(h28(p),function(S){return S!=J}).join(" "))};
D1d=function(p,J){p.classList?Array.prototype.forEach.call(J,function(S){_.qn(p,S)}):_.Iq(p,Array.prototype.filter.call(h28(p),function(S){return!_.dk(J,S)}).join(" "))};var kxn=function(p){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=p.document},d1U=function(p,J){Ngp(p);
var S=document.createElement("div"),H;(H=J.parentNode)==null||H.insertBefore(S,J);S.tabIndex=0;S.id="fc-focus-trap-pre-div";S=document.createElement("div");var M;(M=J.parentNode)==null||M.insertBefore(S,J.nextSibling);S.tabIndex=0;S.id="fc-focus-trap-post-div";var X=Tg8(p,J),Z=Tg8(p,J,!0);X&&Z&&(p.focusChangeHandler=function(){var n=p.document.activeElement;if(n)if(_.wp(J,n))p.previouslyFocusedElement=n;else if(n===p.document.activeElement)switch(p.previouslyFocusedElement){case X:Z.focus();p.previouslyFocusedElement=
Z;break;default:X.focus(),p.previouslyFocusedElement=X}},p.document.addEventListener("focus",p.focusChangeHandler,!0),p.document.addEventListener("focusin",p.focusChangeHandler))},Ngp=function(p){p.focusChangeHandler&&(document.removeEventListener("focus",p.focusChangeHandler,!0),document.removeEventListener("focusin",p.focusChangeHandler),p.focusChangeHandler=null);
var J;(J=document.getElementById("fc-focus-trap-pre-div"))==null||J.remove();var S;(S=document.getElementById("fc-focus-trap-post-div"))==null||S.remove()},u$m=function(p,J,S,H,M){S=S===void 0?!0:S;
var X;M=(X=M===void 0?null:M)!=null?X:Tg8(p,J,H===void 0?!1:H);M!==null&&(M.focus(),S&&d1U(p,J))};
kxn.prototype.disableButton=function(p,J){J=J===void 0?null:J;p.disabled=!0;J&&_.Ea(p,J)};
var Tg8=function(p,J,S){S=S===void 0?!1:S;if(G$X(J)&&!S)return J;var H=S?[].slice.call(J.children,0).reverse():J.children;H=_.K(H);for(var M=H.next();!M.done;M=H.next())if(M=M.value,g_n(M)&&(M=Tg8(p,M,S)))return M;return G$X(J)&&S?J:null};var lkU=function(p){this.originalBodyOverflow="";this.JSC$10155_domHelper=s9(p);var J;this.isScrollingEnabled=((J=this.JSC$10155_domHelper.JSC$9481_document_.body)==null?void 0:J.style.overflow)!=="hidden"};
lkU.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10155_domHelper.JSC$9481_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.SJ(_.Dd,_.gp);_.R=_.Dd.prototype;_.R.JSC$10158_id_=0;_.R.disposeInternal=function(){_.Dd.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10156_listener_;delete this.handler_};
_.R.start=function(p){this.stop();this.JSC$10158_id_=Ti(this.callback_,p!==void 0?p:this.JSC$10156_interval_)};
_.R.stop=function(){this.isActive()&&_.Hg.clearTimeout(this.JSC$10158_id_);this.JSC$10158_id_=0};
_.R.fire=function(){this.stop();this.JSC$10158_doAction_()};
_.R.isActive=function(){return this.JSC$10158_id_!=0};
_.R.JSC$10158_doAction_=function(){this.JSC$10158_id_=0;this.JSC$10156_listener_&&this.JSC$10156_listener_.call(this.handler_)};_.oC=function(p){_.gp.call(this);this.handler_=p;this.JSC$10159_keys_={}};
_.SJ(_.oC,_.gp);var V98=[];_.oC.prototype.listen=function(p,J,S,H){Array.isArray(J)||(J&&(V98[0]=J.toString()),J=V98);for(var M=0;M<J.length;M++){var X=_.z$(p,J[M],S||this.handleEvent,H||!1,this.handler_||this);if(!X)break;this.JSC$10159_keys_[X.key]=X}return this};
_.oC.prototype.listenOnce=function(p,J,S,H){return q3E(this,p,J,S,H)};
var q3E=function(p,J,S,H,M,X){if(Array.isArray(S))for(var Z=0;Z<S.length;Z++)q3E(p,J,S[Z],H,M,X);else{J=fI(J,S,H||p.handleEvent,M,X||p.handler_||p);if(!J)return p;p.JSC$10159_keys_[J.key]=J}return p};
_.oC.prototype.unlisten=function(p,J,S,H,M){if(Array.isArray(J))for(var X=0;X<J.length;X++)this.unlisten(p,J[X],S,H,M);else if(p=bV4(p,J,S||this.handleEvent,_.Ei(H)?!!H.capture:!!H,M||this.handler_||this))Oa(p),delete this.JSC$10159_keys_[p.key];return this};
_.oC.prototype.removeAll=function(){_.T6.forEach(this.JSC$10159_keys_,function(p,J){this.JSC$10159_keys_.hasOwnProperty(J)&&Oa(p)},this);
this.JSC$10159_keys_={}};
_.oC.prototype.disposeInternal=function(){_.oC.superClass_.disposeInternal.call(this);this.removeAll()};
_.oC.prototype.handleEvent=function(){throw Error("Oa");};var JJ=function(){_.gp.call(this);this.services_={}};
_.SJ(JJ,_.gp);JJ.prototype.connect=function(p){p&&p()};
JJ.prototype.isConnected=function(){return!0};
JJ.prototype.registerService=function(p,J,S){this.services_[p]={callback:J,objectPayload:!!S}};
JJ.prototype.getService=function(p,J){var S=this.services_[p];return S?S:this.defaultService_?{callback:_.nl(this.defaultService_,p),objectPayload:_.Ei(J)}:null};
var akm=function(p,J){if(J&&typeof p==="string")try{return JSON.parse(p)}catch(S){return null}else if(!J&&typeof p!=="string")return(0,_.uV)(p);return p};
JJ.prototype.disposeInternal=function(){JJ.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 Sb=function(p,J){this.sequence_=[];this.onCancelFunction_=p;this.defaultScope_=J||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};
Sb.prototype.cancel=function(p){if(this.fired_)this.result_ instanceof Sb&&this.result_.cancel();else{if(this.parent_){var J=this.parent_;delete this.parent_;p?J.cancel(p):(J.branches_--,J.branches_<=0&&J.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Hd(this))}};
Sb.prototype.continue_=function(p,J){this.blocked_=!1;E_L(this,p,J)};
var E_L=function(p,J,S){p.fired_=!0;p.result_=S;p.hadError_=!J;Y38(p)},j68=function(p){if(p.fired_){if(!p.silentlyCanceled_)throw new rqE(p);
p.silentlyCanceled_=!1}};
Sb.prototype.callback=function(p){j68(this);E_L(this,!0,p)};
Sb.prototype.errback=function(p){j68(this);E_L(this,!1,p)};
var wB8=function(p,J,S){M7(p,J,null,S)};
Sb.prototype.finally=function(p){var J=this;return x1L(new Promise(function(S,H){M7(J,function(M){p();S(M)},function(M){p();
H(M)})}))};
var M7=function(p,J,S,H){var M=p.fired_;M||(J===S?J=S=he(J):(J=he(J),S=he(S)));p.sequence_.push([J,S,H]);M&&Y38(p)};
Sb.prototype.then=function(p,J,S){var H,M,X=new _.UI(function(Z,n){M=Z;H=n});
M7(this,M,function(Z){Z instanceof Hd?X.cancel():H(Z);return cq8},this);
return X.then(p,J,S)};
zY8(Sb);var IkU=function(p,J){J instanceof Sb?wB8(p,(0,_.tT)(J.branch,J)):wB8(p,function(){return J})};
Sb.prototype.branch=function(p){var J=new Sb;M7(this,J.callback,J.errback,J);p&&(J.parent_=this,this.branches_++);return J};
Sb.prototype.isError=function(p){return p instanceof Error};
var L$U=function(p){return Zt(p.sequence_,function(J){return typeof J[1]==="function"})},cq8={},Y38=function(p){if(p.unhandledErrorId_&&p.fired_&&L$U(p)){var J=p.unhandledErrorId_,S=pLv[J];
S&&(_.Hg.clearTimeout(S.JSC$10176_id_),delete pLv[J]);p.unhandledErrorId_=0}p.parent_&&(p.parent_.branches_--,delete p.parent_);J=p.result_;for(var H=S=!1;p.sequence_.length&&!p.blocked_;){var M=p.sequence_.shift(),X=M[0],Z=M[1];M=M[2];if(X=p.hadError_?Z:X)try{var n=X.call(M||p.defaultScope_,J);n===cq8&&(n=void 0);n!==void 0&&(p.hadError_=p.hadError_&&(n==J||p.isError(n)),p.result_=J=n);if($zU(J)||typeof _.Hg.Promise==="function"&&J instanceof _.Hg.Promise)H=!0,p.blocked_=!0}catch(b){J=b,p.hadError_=
!0,L$U(p)||(S=!0)}}p.result_=J;H&&(n=(0,_.tT)(p.continue_,p,!0),H=(0,_.tT)(p.continue_,p,!1),J instanceof Sb?(M7(J,n,H),J.blocking_=!0):J.then(n,H));S&&(J=new JVp(J),pLv[J.JSC$10176_id_]=J,p.unhandledErrorId_=J.JSC$10176_id_)},x1L=function(p){var J=new Sb;
p.then(function(S){J.callback(S)},function(S){J.errback(S)});
return J},rqE=function(){_.pL.call(this)};
_.SJ(rqE,_.pL);rqE.prototype.message="Deferred has already fired";rqE.prototype.name="AlreadyCalledError";var Hd=function(){_.pL.call(this)};
_.SJ(Hd,_.pL);Hd.prototype.message="Deferred was canceled";Hd.prototype.name="CanceledError";var JVp=function(p){this.JSC$10176_id_=_.Hg.setTimeout((0,_.tT)(this.throwError,this),0);this.JSC$10176_error_=p};
JVp.prototype.throwError=function(){delete pLv[this.JSC$10176_id_];throw this.JSC$10176_error_;};
var pLv={};var SIE={1:"NativeMessagingTransport"},HHo=["pu","lru","pru","lpu","ppu"],XL8=function(){for(var p=10,J=MDv,S=J.length,H="";p-- >0;)H+=J.charAt(Math.floor(Math.random()*S));return H},MDv="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Xf=function(p){_.gp.call(this);this.JSC$10179_domHelper_=p||s9()};
_.SJ(Xf,_.gp);Xf.prototype.transportType=0;Xf.prototype.getWindow=function(){return this.JSC$10179_domHelper_.getWindow()};
Xf.prototype.getName=function(){return SIE[String(this.transportType)]||""};var il=function(p,J,S,H,M){Xf.call(this,S);this.JSC$10182_channel_=p;this.protocolVersion_=M||2;this.peerHostname_=J||"*";this.JSC$10182_eventHandler_=new _.oC(this);this.maybeAttemptToConnectTimer_=new _.$d(100,this.getWindow());this.oneSidedHandshake_=!!H;this.setupAckReceived_=new Sb;this.setupAckSent_=new Sb;this.JSC$10182_connected_=new Sb;this.endpointId_=XL8();this.peerEndpointId_=null;this.oneSidedHandshake_?iH8(this.JSC$10182_channel_)==1?IkU(this.JSC$10182_connected_,this.setupAckReceived_):
IkU(this.JSC$10182_connected_,this.setupAckSent_):(IkU(this.JSC$10182_connected_,this.setupAckReceived_),this.protocolVersion_==2&&IkU(this.JSC$10182_connected_,this.setupAckSent_));wB8(this.JSC$10182_connected_,this.notifyConnected_,this);this.JSC$10182_connected_.callback(!0);this.JSC$10182_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.SJ(il,Xf);il.prototype.peerProtocolVersion_=null;il.prototype.initialized_=!1;il.prototype.transportType=1;var RpL={};il.prototype.sendTimerId_=0;
var nQp=function(p){var J=p.event_.data;if(typeof J!=="string")return!1;var S=J.indexOf("|"),H=J.indexOf(":");if(S==-1||H==-1)return!1;var M=J.substring(0,S);S=J.substring(S+1,H);J=J.substring(H+1);if(H=RE[M])return H.xpcDeliver(S,J,p.event_.origin),!0;H=K48(J)[0];for(var X in RE){var Z=RE[X];if(iH8(Z)==1&&!Z.isConnected()&&S=="tp"&&(H=="SETUP"||H=="SETUP_NTPV2")&&ZHo(Z,p.event_.origin))return delete RE[Z.name],Z.name=M,RE[M]=Z,Z.xpcDeliver(S,J),!0}return!1},GgM=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")},bH8=function(p,J){if(p.protocolVersion_!=2||p.peerProtocolVersion_!=null&&p.peerProtocolVersion_!=2||J!=2){if(p.peerProtocolVersion_!=null&&p.peerProtocolVersion_!=1||J!=1)return;
p.send("tp","SETUP_ACK")}else p.send("tp","SETUP_ACK_NTPV2");p.setupAckSent_.fired_||p.setupAckSent_.callback(!0)},m8d=function(p,J){J>p.peerProtocolVersion_&&(p.peerProtocolVersion_=J);
p.peerProtocolVersion_==1&&(p.setupAckSent_.fired_||p.oneSidedHandshake_||p.setupAckSent_.callback(!0),p.peerEndpointId_=null)};
_.R=il.prototype;_.R.connect=function(){var p=this.getWindow(),J=_.jt(p),S=RpL[J];typeof S!=="number"&&(S=0);S==0&&_.z$(p.postMessage?p:p.document,"message",nQp,!1,il);RpL[J]=S+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.R.maybeAttemptToConnect_=function(){var p=iH8(this.JSC$10182_channel_)==0;this.oneSidedHandshake_&&p||this.JSC$10182_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),GgM(this))};
_.R.send=function(p,J){var S=this.JSC$10182_channel_.peerWindowObject_;S&&(this.send=function(H,M){var X=this,Z=this.JSC$10182_channel_.name;this.sendTimerId_=Ti(function(){X.sendTimerId_=0;try{var n=S.postMessage?S:S.document;n.postMessage&&n.postMessage(Z+"|"+H+":"+M,X.peerHostname_)}catch(b){}},0)},this.send(p,J))};
_.R.notifyConnected_=function(){var p=this.JSC$10182_channel_,J=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;p.isConnected()||p.connectionDelay_&&p.connectionDelay_.isActive()||(p.state_=2,_.iW(p.connectionDelay_),J!==void 0?(p.connectionDelay_=new _.Dd(p.connectCb_,J),p.connectionDelay_.start()):(p.connectionDelay_=null,p.connectCb_()))};
_.R.disposeInternal=function(){if(this.initialized_){var p=this.getWindow(),J=_.jt(p),S=RpL[J];RpL[J]=S-1;S==1&&_.gx(p.postMessage?p:p.document,"message",nQp,!1,il)}this.sendTimerId_&&(_.Hg.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.iW(this.JSC$10182_eventHandler_);delete this.JSC$10182_eventHandler_;_.iW(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10182_connected_.cancel();delete this.JSC$10182_connected_;delete this.send;il.superClass_.disposeInternal.call(this)};
var K48=function(p){p=p.split(",");p[1]=p[1]||null;return p};var vQ8;_.KN=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(_.qW(p)){for(var J=[],S=p.length,H=0;H<S;H++)J.push(p[H]);return J}return _.T6.getValues(p)};
_.F4o=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(_.qW(p)||typeof p==="string"){var J=[];p=p.length;for(var S=0;S<p;S++)J.push(S);return J}return _.T6.getKeys(p)}}};
vQ8=function(p,J,S){if(p.forEach&&typeof p.forEach=="function")p.forEach(J,S);else if(_.qW(p)||typeof p==="string")Array.prototype.forEach.call(p,J,S);else for(var H=_.F4o(p),M=_.KN(p),X=M.length,Z=0;Z<X;Z++)J.call(S,M[Z],H&&H[Z],p)};var KQs,vd,Os,oQU,ftE,AVo,OHp,$88,PSU;
_.V1=function(p,J){this.JSC$10187_domain_=this.userInfo_=this.scheme_="";this.JSC$10187_port_=null;this.fragment_=this.JSC$10187_path_="";this.JSC$10187_ignoreCase_=!1;var S;p instanceof _.V1?(this.JSC$10187_ignoreCase_=J!==void 0?J:p.JSC$10187_ignoreCase_,_.ZI(this,p.scheme_),this.userInfo_=p.userInfo_,_.nN(this,p.JSC$10187_domain_),_.Gq(this,p.JSC$10187_port_),_.bl(this,p.getPath()),_.mb(this,p.JSC$10187_queryData_.clone()),_.Ff(this,p.fragment_)):p&&(S=_.ZL(String(p)))?(this.JSC$10187_ignoreCase_=
!!J,_.ZI(this,S[1]||"",!0),this.userInfo_=vd(S[2]||""),_.nN(this,S[3]||"",!0),_.Gq(this,S[4]),_.bl(this,S[5]||"",!0),_.mb(this,S[6]||"",!0),_.Ff(this,S[7]||"",!0)):(this.JSC$10187_ignoreCase_=!!J,this.JSC$10187_queryData_=new _.fN(null,this.JSC$10187_ignoreCase_))};
_.V1.prototype.toString=function(){var p=[],J=this.scheme_;J&&p.push(Os(J,ftE,!0),":");var S=this.JSC$10187_domain_;if(S||J=="file")p.push("//"),(J=this.userInfo_)&&p.push(Os(J,ftE,!0),"@"),p.push(_.HO(S).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),S=this.JSC$10187_port_,S!=null&&p.push(":",String(S));if(S=this.getPath())this.JSC$10187_domain_&&S.charAt(0)!="/"&&p.push("/"),p.push(Os(S,S.charAt(0)=="/"?OHp:AVo,!0));(S=this.JSC$10187_queryData_.toString())&&p.push("?",S);(S=this.fragment_)&&p.push("#",
Os(S,PSU));return p.join("")};
_.V1.prototype.resolve=function(p){var J=this.clone(),S=!!p.scheme_;S?_.ZI(J,p.scheme_):S=!!p.userInfo_;S?J.userInfo_=p.userInfo_:S=!!p.JSC$10187_domain_;S?_.nN(J,p.JSC$10187_domain_):S=p.JSC$10187_port_!=null;var H=p.getPath();if(S)_.Gq(J,p.JSC$10187_port_);else if(S=!!p.JSC$10187_path_){if(H.charAt(0)!="/")if(this.JSC$10187_domain_&&!this.JSC$10187_path_)H="/"+H;else{var M=J.getPath().lastIndexOf("/");M!=-1&&(H=J.getPath().slice(0,M+1)+H)}M=H;if(M==".."||M==".")H="";else if(_.nL(M,"./")||_.nL(M,
"/.")){H=_.XX(M,"/");M=M.split("/");for(var X=[],Z=0;Z<M.length;){var n=M[Z++];n=="."?H&&Z==M.length&&X.push(""):n==".."?((X.length>1||X.length==1&&X[0]!="")&&X.pop(),H&&Z==M.length&&X.push("")):(X.push(n),H=!0)}H=X.join("/")}else H=M}S?_.bl(J,H):S=p.JSC$10187_queryData_.toString()!=="";S?_.mb(J,p.JSC$10187_queryData_.clone()):S=!!p.fragment_;S&&_.Ff(J,p.fragment_);return J};
_.V1.prototype.clone=function(){return new _.V1(this)};
_.ZI=function(p,J,S){p.scheme_=S?vd(J,!0):J;p.scheme_&&(p.scheme_=p.scheme_.replace(/:$/,""));return p};
_.nN=function(p,J,S){p.JSC$10187_domain_=S?vd(J,!0):J;return p};
_.Gq=function(p,J){if(J){J=Number(J);if(isNaN(J)||J<0)throw Error("Pa`"+J);p.JSC$10187_port_=J}else p.JSC$10187_port_=null;return p};
_.V1.prototype.getPath=function(){return this.JSC$10187_path_};
_.bl=function(p,J,S){p.JSC$10187_path_=S?vd(J,!0):J;return p};
_.mb=function(p,J,S){J instanceof _.fN?(p.JSC$10187_queryData_=J,zp8(p.JSC$10187_queryData_,p.JSC$10187_ignoreCase_)):(S||(J=Os(J,$88)),p.JSC$10187_queryData_=new _.fN(J,p.JSC$10187_ignoreCase_));return p};
_.pU=function(p,J,S){p.JSC$10187_queryData_.set(J,S);return p};
_.LC=function(p,J){return p.JSC$10187_queryData_.get(J)};
_.Ff=function(p,J,S){p.fragment_=S?vd(J):J;return p};
_.AJ=function(p){_.pU(p,"zx",c0());return p};
_.I7=function(p,J){return p instanceof _.V1?p.clone():new _.V1(p,J)};
KQs=function(p,J){p instanceof _.V1||(p=_.I7(p));J instanceof _.V1||(J=_.I7(J));return p.resolve(J)};
vd=function(p,J){return p?J?decodeURI(p.replace(/%25/g,"%2525")):decodeURIComponent(p):""};
Os=function(p,J,S){return typeof p==="string"?(p=encodeURI(p).replace(J,oQU),S&&(p=p.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),p):null};
oQU=function(p){p=p.charCodeAt(0);return"%"+(p>>4&15).toString(16)+(p&15).toString(16)};
ftE=/[#\/\?@]/g;AVo=/[#\?:]/g;OHp=/[#\?]/g;$88=/[#\?@]/g;PSU=/#/g;_.fN=function(p,J){this.count_=this.keyMap_=null;this.encodedQuery_=p||null;this.JSC$10188_ignoreCase_=!!J};
_.Pd=function(p){p.keyMap_||(p.keyMap_=new Map,p.count_=0,p.encodedQuery_&&ncv(p.encodedQuery_,function(J,S){p.add(md(J),S)}))};
_.R=_.fN.prototype;_.R.getCount=function(){_.Pd(this);return this.count_};
_.R.add=function(p,J){_.Pd(this);this.encodedQuery_=null;p=zq(this,p);var S=this.keyMap_.get(p);S||this.keyMap_.set(p,S=[]);S.push(J);this.count_+=1;return this};
_.R.remove=function(p){_.Pd(this);p=zq(this,p);return this.keyMap_.has(p)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(p).length,this.keyMap_.delete(p)):!1};
_.R.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.R.isEmpty=function(){_.Pd(this);return this.count_==0};
_.R.containsKey=function(p){_.Pd(this);p=zq(this,p);return this.keyMap_.has(p)};
_.R.containsValue=function(p){var J=this.getValues();return _.dk(J,p)};
_.R.forEach=function(p,J){_.Pd(this);this.keyMap_.forEach(function(S,H){S.forEach(function(M){p.call(J,M,H,this)},this)},this)};
_.R.getKeys=function(){_.Pd(this);for(var p=Array.from(this.keyMap_.values()),J=Array.from(this.keyMap_.keys()),S=[],H=0;H<J.length;H++)for(var M=p[H],X=0;X<M.length;X++)S.push(J[H]);return S};
_.R.getValues=function(p){_.Pd(this);var J=[];if(typeof p==="string")this.containsKey(p)&&(J=J.concat(this.keyMap_.get(zq(this,p))));else{p=Array.from(this.keyMap_.values());for(var S=0;S<p.length;S++)J=J.concat(p[S])}return J};
_.R.set=function(p,J){_.Pd(this);this.encodedQuery_=null;p=zq(this,p);this.containsKey(p)&&(this.count_-=this.keyMap_.get(p).length);this.keyMap_.set(p,[J]);this.count_+=1;return this};
_.R.get=function(p,J){if(!p)return J;p=this.getValues(p);return p.length>0?String(p[0]):J};
_.epE=function(p,J,S){p.remove(J);S.length>0&&(p.encodedQuery_=null,p.keyMap_.set(zq(p,J),_.VX(S)),p.count_+=S.length)};
_.fN.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var p=[],J=Array.from(this.keyMap_.keys()),S=0;S<J.length;S++){var H=J[S],M=_.HO(H);H=this.getValues(H);for(var X=0;X<H.length;X++){var Z=M;H[X]!==""&&(Z+="="+_.HO(H[X]));p.push(Z)}}return this.encodedQuery_=p.join("&")};
_.fN.prototype.clone=function(){var p=new _.fN;p.encodedQuery_=this.encodedQuery_;this.keyMap_&&(p.keyMap_=new Map(this.keyMap_),p.count_=this.count_);return p};
var zq=function(p,J){J=String(J);p.JSC$10188_ignoreCase_&&(J=J.toLowerCase());return J},zp8=function(p,J){J&&!p.JSC$10188_ignoreCase_&&(_.Pd(p),p.encodedQuery_=null,p.keyMap_.forEach(function(S,H){var M=H.toLowerCase();
H!=M&&(this.remove(H),_.epE(this,M,S))},p));
p.JSC$10188_ignoreCase_=J};
_.fN.prototype.extend=function(p){for(var J=0;J<arguments.length;J++)vQ8(arguments[J],function(S,H){this.add(H,S)},this)};var $0=function(p,J){JJ.call(this);for(var S=0,H;H=HHo[S];S++)if(H in p&&!/^https?:\/\//.test(p[H]))throw Error("Ra`"+p[H]+"`"+H);this.cfg_=p;this.name=this.cfg_.cn||XL8();this.JSC$10183_domHelper_=J||s9();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.oC(this);p.lpu=p.lpu||KH8(this.JSC$10183_domHelper_.getWindow().location.href)+"/robots.txt";p.ppu=p.ppu||KH8(p.pu||"")+"/robots.txt";RE[this.name]=this;bV4(window,"unload",W4L)||fI(window,"unload",W4L)};
_.SJ($0,JJ);var QJp=RegExp("^%*tp$"),CSv=RegExp("^%+tp$");_.R=$0.prototype;_.R.connectionDelay_=null;_.R.peerWindowDeferred_=null;_.R.transport_=null;_.R.state_=1;_.R.isConnected=function(){return this.state_==2};
_.R.peerWindowObject_=null;_.R.iframeElement_=null;_.R.getConfig=function(){return this.cfg_};
_.R.connect=function(p){this.connectCb_=p||_.y4;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?wB8(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.R.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10183_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("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10183_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new il(this,this.cfg_.ph,this.JSC$10183_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.R.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.iW(this.transport_);this.connectCb_=this.transport_=null;_.iW(this.connectionDelay_);this.connectionDelay_=null};
_.R.send=function(p,J){if(this.isConnected()){try{var S=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(M){S=!1}if(S){_.Ei(J)&&(J=(0,_.uV)(J));S=this.transport_;var H=S.send;QJp.test(p)&&(p="%"+p);p=p.replace(/[%:|]/g,encodeURIComponent);H.call(S,p,J)}else this.close()}};
_.R.xpcDeliver=function(p,J,S){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.tT)(this.xpcDeliver,this,p,J,S));else if(ZHo(this,S)&&!this.isDisposed()&&this.state_!=3)if(p&&p!="tp")this.isConnected()&&(p=p.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),p=CSv.test(p)?p.substring(1):p,p=this.getService(p,J))&&(J=akm(J,p.objectPayload),J!=null&&p.callback(J));else switch(p=this.transport_,S=K48(J),J=S[1],S[0]){case "SETUP_ACK":m8d(p,1);p.setupAckReceived_.fired_||p.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":p.protocolVersion_==2&&(m8d(p,2),p.setupAckReceived_.fired_||p.setupAckReceived_.callback(!0));break;case "SETUP":m8d(p,1);bH8(p,1);break;case "SETUP_NTPV2":p.protocolVersion_==2&&(S=p.peerProtocolVersion_,m8d(p,2),bH8(p,2),S!=1&&p.peerEndpointId_==null||p.peerEndpointId_==J||GgM(p),p.peerEndpointId_=J)}};
var iH8=function(p){var J=p.cfg_.role;return typeof J==="number"?J:window.parent==p.peerWindowObject_?1:0},ZHo=function(p,J){var S=p.cfg_.ph;
return _.Rv(J==null?"":String(J))||_.Rv(S==null?"":String(S))||J==p.cfg_.ph};
$0.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete RE[this.name];_.iW(this.peerLoadHandler_);delete this.peerLoadHandler_;$0.superClass_.disposeInternal.call(this)};
var W4L=function(){for(var p in RE)_.iW(RE[p])},RE={};var BfU=function(p,J){this.win=p;this.allowAdsHttpEndpoint=J;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10197_domHelper=s9(p);this.scrollManager=new lkU(p);this.accessibilityManager=new kxn(p);yVd(this)},yVd=function(p){var J=function(){p.allowAdsPopup&&p.allowAdsPopup.style.setProperty("display","none","important");
p.wallElement.style.setProperty("display","","important");Ngp(p.accessibilityManager);u$m(p.accessibilityManager,p.wallElement.querySelector(".fc-dialog-container"),!1,!1,p.wallElement.querySelector(".fc-button-whitelist"));p.scrollManager.enableScrolling()};
p.allowAdsPopup=p.JSC$10197_domHelper.JSC$9483_createDom("DIV",{"class":"fc-whitelist-root"});p.allowAdsPopup.style.setProperty("display","none","important");p.JSC$10197_domHelper.appendChild(p.JSC$10197_domHelper.JSC$9481_document_.body,p.allowAdsPopup);var S=p.JSC$10197_domHelper.JSC$9483_createDom("DIV",{"class":"fc-dialog-overlay"});p.JSC$10197_domHelper.appendChild(p.allowAdsPopup,S);var H=p.JSC$10197_domHelper.JSC$9483_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:J});p.JSC$10197_domHelper.appendChild(p.allowAdsPopup,
H);S=p.JSC$10197_domHelper.JSC$9483_createDom("IFRAME");S.className="fc-whitelist-dialog";S.frameBorder="0";S.id="fc-whitelist-iframe";S.tabIndex="0";_.Lt(S,p.allowAdsHttpEndpoint);p.JSC$10197_domHelper.appendChild(H,S);H={};H.pu=_.gy(p.allowAdsHttpEndpoint).toString();H.tp=1;H.cn="fc-whitelist-channel";H.ifrid=S.id;H.osh=!0;p.allowAdsCrossPageChannel=new $0(H);p.allowAdsCrossPageChannel.registerService("close",J);p.allowAdsCrossPageChannel.registerService("refresh",function(){p.win.location.reload()});
p.allowAdsCrossPageChannel.registerService("resize",function(M){if(M){var X=p.allowAdsPopup.querySelector(".fc-whitelist-dialog");M.width&&X.style.setProperty("width",M.width,"important");M.height&&X.style.setProperty("height",M.height,"important")}},!0);
p.allowAdsCrossPageChannel.connect()};
BfU.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10197_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var oE=window,eb=document,U8E=oE.location,sJn=function(){},gQp=/\[native code\]/,Wd=function(p,J,S){return p[J]=p[J]||S},tDM=function(p){p=p.sort();
for(var J=[],S=void 0,H=0;H<p.length;H++){var M=p[H];M!=S&&J.push(M);S=M}return J},QE=function(){var p;
if((p=Object.create)&&gQp.test(p))p=p(null);else{p={};for(var J in p)p[J]=void 0}return p},CN=Wd(oE,"gapi",{});var yE={};yE=Wd(oE,"___jsl",QE());Wd(yE,"I",0);Wd(yE,"hel",10);var hp8=function(){var p=U8E.href;if(yE.dpo)var J=yE.h;else{J=yE.h;var S=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),H=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(p=p&&(S.exec(p)||H.exec(p)))try{J=decodeURIComponent(p[2])}catch(M){}}return J},D8U=function(p){var J=Wd(yE,"PQ",[]);
yE.PQ=[];var S=J.length;if(S===0)p();else for(var H=0,M=function(){++H===S&&p()},X=0;X<S;X++)J[X](M)},kgo=function(p){return Wd(Wd(yE,"H",QE()),p,QE())};var Bd=function(p){this.JSC$10199_obj_=p};
Bd.prototype.value=function(){return this.JSC$10199_obj_};
Bd.prototype.getWidth=function(){return this.JSC$10199_obj_.width};
Bd.prototype.getHeight=function(){return this.JSC$10199_obj_.height};
Bd.prototype.getStyle=function(){return this.JSC$10199_obj_.style};var Nf8=function(p){this.JSC$10202_obj_=p||{}};
_.R=Nf8.prototype;_.R.value=function(){return this.JSC$10202_obj_};
_.R.setUrl=function(p){this.JSC$10202_obj_.url=p;return this};
_.R.getUrl=function(){return this.JSC$10202_obj_.url};
_.R.getStyle=function(){return this.JSC$10202_obj_.style};
_.R.getId=function(){return this.JSC$10202_obj_.id};
_.R.getContext=function(){return this.JSC$10202_obj_.context};
var Tf8=function(p){p.JSC$10202_obj_.attributes=p.JSC$10202_obj_.attributes||{};return new Bd(p.JSC$10202_obj_.attributes)};var d88=function(){Nf8.apply(this,arguments)};
_.Q(d88,Nf8);var ub8=Wd(yE,"perf",QE());Wd(ub8,"g",QE());var lto=Wd(ub8,"i",QE());Wd(ub8,"r",[]);QE();QE();var qIp=function(p,J,S){J&&J.length>0&&(J=VDM(J),S&&S.length>0&&(J+="___"+VDM(S)),J.length>28&&(J=J.substr(0,28)+(J.length-28)),S=J,J=Wd(lto,"_p",QE()),Wd(J,S,QE())[p]=(new Date).getTime(),J=ub8.r,typeof J==="function"?J(p,"_p",S):J.push([p,"_p",S]))},VDM=function(p){return p.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var atd=QE(),EQM=[],Us=function(p){throw Error("Ua`"+p);};
EQM.push(["jsl",function(p){for(var J in p)if(Object.prototype.hasOwnProperty.call(p,J)){var S=p[J];typeof S=="object"?yE[J]=Wd(yE,J,[]).concat(S):Wd(yE,J,S)}if(J=p.u)p=Wd(yE,"us",[]),p.push(J),(J=/^https:(.*)$/.exec(J))&&p.push("http:"+J[1])}]);
var YIq=/^(\/[a-zA-Z0-9_\-]+)+$/,rVp=[/\/amp\//,/\/amp$/,/^\/amp$/],jJE=/^[a-zA-Z0-9\-_\.,!]+$/,wLL=/^gapi\.loaded_[0-9]+$/,x8v=/^[a-zA-Z0-9,._-]+$/,pJo=function(p,J,S,H,M){var X=p.split(";"),Z=X.shift(),n=atd[Z],b=null;n?b=n(X,J,S,H):Us("no hint processor for: "+Z);b||Us("failed to generate load url");J=b;S=J.match(cVm);(H=J.match(It4))&&H.length===1&&L4E.test(J)&&S&&S.length===1||Us("failed sanity: "+p);try{p="?";if(M&&M.length>0){DWW(M);var F=M.join(",");b=b+"?le="+F;p="&"}if(yE.rol){var f=yE.ol;
f&&f.length&&(b=""+b+p+"ol="+f.length)}}catch(O){}return b},HEv=function(p,J,S,H){p=Jw4(p);
wLL.test(S)||Us("invalid_callback");J=Sym(J);H=H&&H.length?Sym(H):null;var M=function(X){return encodeURIComponent(X).replace(/%2C/g,",")};
return[encodeURIComponent(p.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",M(p.version),"/m=",M(J),H?"/exm="+M(H):"","/rt=j/sv=1/d=1/ed=1",p.activeMods?"/am="+M(p.activeMods):"",p.resourceSig?"/rs="+M(p.resourceSig):"",p.zcms?"/t="+M(p.zcms):"","/cb=",M(S)].join("")},Jw4=function(p){p.charAt(0)!=="/"&&Us("relative path");
for(var J=p.substring(1).split("/"),S=[];J.length;){p=J.shift();if(!p.length||p.indexOf(".")==0)Us("empty/relative directory");else if(p.indexOf("=")>0){J.unshift(p);break}S.push(p)}p={};for(var H=0,M=J.length;H<M;++H){var X=J[H].split("="),Z=decodeURIComponent(X[0]),n=decodeURIComponent(X[1]);X.length==2&&Z&&n&&(p[Z]=p[Z]||n)}J="/"+S.join("/");YIq.test(J)||Us("invalid_prefix");S=0;for(H=rVp.length;S<H;++S)rVp[S].test(J)&&Us("invalid_prefix");S=M54(p,"k",!0);H=M54(p,"am");M=M54(p,"rs");p=M54(p,"t");
return{pathPrefix:J,version:S,activeMods:H,resourceSig:M,zcms:p}},Sym=function(p){for(var J=[],S=0,H=p.length;S<H;++S){var M=p[S].replace(/\./g,"_").replace(/-/g,"_");
x8v.test(M)&&J.push(M)}return J.join(",")},M54=function(p,J,S){p=p[J];
!p&&S&&Us("missing: "+J);if(p){if(jJE.test(p))return p;Us("invalid: "+J)}return null},L4E=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,It4=/\/cb=/g,cVm=/\/\//g;
atd.m=function(p,J,S,H){(p=p[0])||Us("missing_hint");return"https://apis.google.com"+HEv(p,J,S,H)};
var XJ8=decodeURI("%73cript"),iE8=/^[-+_0-9\/A-Za-z]+={0,2}$/,RH8=function(p,J){for(var S=[],H=0;H<p.length;++H){var M=p[H],X;if(X=M){a:{for(X=0;X<J.length;X++)if(J[X]===M)break a;X=-1}X=X<0}X&&S.push(M)}return S},KoL=function(){var p=yE.nonce;
return p!==void 0?p&&p===String(p)&&p.match(iE8)?p:yE.nonce=null:eb.querySelector?(p=eb.querySelector("script[nonce]"))?(p=p.nonce||p.getAttribute("nonce")||"",p&&p===String(p)&&p.match(iE8)?yE.nonce=p:yE.nonce=null):null:null},GUq=function(p){if(eb.readyState!="loading")ZEq(p);
else{var J=KoL(),S="";J!==null&&(S=' nonce="'+J+'"');p="<"+XJ8+' src="'+encodeURI(p)+'"'+S+"></"+XJ8+">";eb.write(nX8?nX8.createHTML(p):p)}},ZEq=function(p){var J=eb.createElement(XJ8);
J.setAttribute("src",nX8?nX8.createScriptURL(p):p);p=KoL();p!==null&&J.setAttribute("nonce",p);J.async="true";(p=eb.getElementsByTagName(XJ8)[0])?p.parentNode.insertBefore(J,p):(eb.head||eb.body||eb.documentElement).appendChild(J)},myM=function(p,J,S){bEq(function(){var H=J===hp8()?Wd(CN,"_",QE()):QE();
H=Wd(kgo(J),"_",H);p(H)},S)},M3w=function(p,J){var S=J||{};
typeof J=="function"&&(S={},S.callback=J);var H=(J=S)&&J._c;if(H)for(var M=0;M<EQM.length;M++){var X=EQM[M][0],Z=EQM[M][1];Z&&Object.prototype.hasOwnProperty.call(H,X)&&Z(H[X],p,J)}J=[];p?J=p.split(":"):S.features&&(J=S.features);if(!(p=S.h)&&(p=hp8(),!p))throw Error("Va");Fo8(J||[],S,p)},Fo8=function(p,J,S){p=tDM(p)||[];
var H=J.callback,M=J.config,X=J.timeout,Z=J.ontimeout,n=J.onerror,b=void 0;typeof n=="function"&&(b=n);var F=null,f=!1;if(X&&!Z||!X&&Z)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";n=Wd(kgo(S),"r",[]).sort();var O=Wd(kgo(S),"L",[]).sort(),A=yE.le||[],P=[].concat(n),W=function(E,a){if(f)return 0;oE.clearTimeout(F);O.push.apply(O,y);var q=((CN||{}).config||{}).update;q?q(M):M&&Wd(yE,"cu",[]).push(M);if(a){qIp("me0",E,P);try{myM(a,S,b)}finally{qIp("me1",E,P)}}return 1};
X>0&&(F=oE.setTimeout(function(){f=!0;Z()},X));
var y=RH8(p,O);if(y.length){y=RH8(p,n);var t=Wd(yE,"CP",[]),D=t.length;t[D]=function(E){if(!E)return 0;qIp("ml1",y,P);var a=function(w){t[D]=null;W(y,E)&&D8U(function(){H&&H();w()})},q=function(){var w=t[D+1];
w&&w()};
D>0&&t[D-1]?t[D]=function(){a(q)}:a(q)};
if(y.length){var k="loaded_"+yE.I++;CN[k]=function(E){t[D](E);CN[k]=null};
p=pJo(S,y,"gapi."+k,n,A);n.push.apply(n,y);qIp("ml0",y,P);J.sync||oE.___gapisync?GUq(p):ZEq(p)}else t[D](sJn)}else W(y)&&H&&H()},vXv;
var fyL=null,OEm=_.Hg.trustedTypes;if(OEm&&OEm.createPolicy){try{fyL=OEm.createPolicy("goog#gapi",{createHTML:f3p,createScript:f3p,createScriptURL:f3p})}catch(p){_.Hg.console&&_.Hg.console.error(p.message)}vXv=fyL}else vXv=fyL;var nX8=vXv,bEq=function(p,J){if(yE.hee&&yE.hel>0)try{return p()}catch(S){J&&J(S),yE.hel--,M3w("debug_error",function(){try{window.___jsl.hefn(S)}catch(H){throw S;}})}else try{return p()}catch(S){throw J&&J(S),S;
}},AwL=CN.load;
AwL&&Wd(yE,"ol",[]).push(AwL);CN.load=function(p,J){return bEq(function(){return M3w(p,J)})};var rls;var zH8=function(p,J){var S=S||[];this.serviceId_=p;this.moduleId_=J||null;this.dependencies_=[];PZn(this,S)};
zH8.prototype.toString=function(){return this.serviceId_};
zH8.prototype.getModuleId=function(){return this.moduleId_};
var PZn=function(p,J){var S=!1;S=S===void 0?!1:S;p.dependencies_=p.dependencies_.concat(J);if(S){if(!p.moduleId_)throw Error("Wa`"+p.serviceId_);J.map(function(H){return H.getModuleId()}).forEach(function(H){jyW(function(M){M.addExtraEdge(p.moduleId_,H)})})}};var kdt=new zH8("MpJwZc","MpJwZc");var BG4=new _.Cn("a"),T0t=new _.Cn("c"),N0i=function(p,J,S){_.yr.call(this,p,J);this.node=J;this.kind=S};
_.Q(N0i,_.yr);var $y8=function(){this.JSC$10215_keys_={};this.urlPrefix_="";this.JSC$10215_queryData_={}};
$y8.prototype.toString=function(){var p=this.urlPrefix_+oXn(this),J=_.Uv(this.JSC$10215_queryData_),S="";J!=""&&(S="?"+J);return p+S};
var eHn=function(p){p=ss(p,"md");return!!p&&p!=="0"},oXn=function(p){var J=[],S=function(H){p.JSC$10215_keys_[H]!==void 0&&J.push(H+"="+p.JSC$10215_keys_[H])};
eHn(p)?(S("md"),S("k"),S("ck"),S("am"),S("rs"),S("gssmodulesetproto"),S("slk"),S("dti")):(S("sdch"),S("k"),S("ck"),S("am"),S("rt"),"d"in p.JSC$10215_keys_||g$(p,"d","0"),S("d"),S("exm"),S("excm"),(p.JSC$10215_keys_.excm||p.JSC$10215_keys_.exm)&&J.push("ed=1"),S("im"),S("dg"),S("sm"),ss(p,"br")!="1"&&ss(p,"br")!="0"||S("br"),S("br-d"),ss(p,"rb")=="1"&&S("rb"),ss(p,"zs")!=="0"&&S("zs"),Won(p)!==""&&S("wt"),S("gssmodulesetproto"),S("ujg"),S("sp"),S("rs"),S("cb"),S("ee"),S("slk"),S("dti"),S("m"));return J.join("/")},
ss=function(p,J){return p.JSC$10215_keys_[J]?p.JSC$10215_keys_[J]:null},g$=function(p,J,S){S?p.JSC$10215_keys_[J]=S:delete p.JSC$10215_keys_[J]},QZn=function(p,J){p.urlPrefix_=J},CZn=function(p,J){J&&J.length>0?(J.sort(),g$(p,"exm",J.join(","))):g$(p,"exm",null)},yw8=function(p,J){J&&J.length>0?(J.sort(),g$(p,"excm",J.join(","))):g$(p,"excm",null)},Bdd=function(p){return(p=ss(p,"m"))?p.split(","):[]},Won=function(p){switch(ss(p,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Uyo=function(p,J){var S=Object.keys(J).filter(function(H){return!!Object.keys(J[H]).length}).map(function(H){var M=Object.keys(J[H]);
M.length>1&&M.sort();return H+":"+M.join(",")});
S.sort();g$(p,"ee",S.join(";"))},u$k=function(p){var J=ss(p,"ee");
if(!J)return{};p={};J=_.K(J.split(";"));for(var S=J.next();!S.done;S=J.next()){var H=_.K(S.value.split(":"));S=H.next().value;H=H.next().value;p[S]={};H=_.K(H.split(","));for(var M=H.next();!M.done;M=H.next())p[S][M.value]=!0}return p},sZ8=function(p){delete p.JSC$10215_keys_.m;
delete p.JSC$10215_keys_.exm;delete p.JSC$10215_keys_.ed};
$y8.prototype.clone=function(){var p=new $y8;p.JSC$10215_keys_=Object.assign({},this.JSC$10215_keys_);p.urlPrefix_=this.urlPrefix_;p.JSC$10215_queryData_=Object.assign({},this.JSC$10215_queryData_);return p};
var lks=function(p,J){J=J===void 0?!0:J;var S=gXL(p),H=new $y8,M=_.ZL(S)[5];_.T6.forEach(t54,function(Z){var n=M.match("/"+Z+"=([^/]+)");n&&g$(H,Z,n[1])});
var X="";X=p.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";QZn(H,p.substr(0,p.indexOf(X)+X.length));if(!J)return H;(p=_.ZL(S)[6]||null)&&ncv(p,function(Z,n){H.JSC$10215_queryData_[Z]=n});
return H},Ngi=function(p){p=_.yn(gXL(p));
return p===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(p)?/\/k=/.test(p):!1},gXL=function(p){return p.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?p.substr(65):p},t54={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},hH8=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.tJ=function(p){this.JSC$10227_id_=p;this.opts={}};
_.tJ.prototype.JSC$10229_setLabel=function(p){this.label_=p||void 0;return this};
_.tJ.prototype.addUploadMetadata=function(p,J){var S=this.opts.data||{};S[p]=J;this.opts.data=S;return this};
var Dy8=function(p){var J=_.T6.filter(p.opts,function(S){return S!==null});
J=_.T6.isEmpty(J)?null:J;p=[p.JSC$10227_id_,p.label_,J];J=UWX(p);return p=p.slice(0,J+1)};
_.tJ.prototype.toString=function(){var p=Dy8(this);return"("+_.d2(p,function(J){return JSON.stringify(J)}).join(",")+")"};
_.tJ.prototype.getId=function(){return this.JSC$10227_id_};
_.tJ.prototype.getOptions=function(){return _.T6.clone(this.opts)};var hJ=function(){_.tJ.call(this,"image-search")};
_.Q(hJ,_.tJ);hJ.prototype.setSize=function(p){this.opts.imgsz=p;return this};
hJ.prototype.JSC$10229_setLabel=function(p){_.tJ.prototype.JSC$10229_setLabel.call(this,p);return this};
hJ.prototype.addUploadMetadata=function(p,J){_.tJ.prototype.addUploadMetadata.call(this,p,J);return this};var DI=function(){_.tJ.call(this,"maps")};
_.Q(DI,_.tJ);DI.prototype.setZoom=function(p){this.opts.zoom=p;return this};
DI.prototype.JSC$10229_setLabel=function(p){_.tJ.prototype.JSC$10229_setLabel.call(this,p);return this};
DI.prototype.addUploadMetadata=function(p,J){_.tJ.prototype.addUploadMetadata.call(this,p,J);return this};_.k0=function(){_.tJ.call(this,"photos")};
_.Q(_.k0,_.tJ);_.k0.prototype.JSC$10229_setLabel=function(p){_.tJ.prototype.JSC$10229_setLabel.call(this,p);return this};
_.k0.prototype.addUploadMetadata=function(p,J){_.tJ.prototype.addUploadMetadata.call(this,p,J);return this};var N7=function(){_.tJ.call(this,"url")};
_.Q(N7,_.tJ);var kU8=function(){var p=new N7;p.opts.type="video";p.opts.site="youtube.com";return p};
N7.prototype.JSC$10229_setLabel=function(p){_.tJ.prototype.JSC$10229_setLabel.call(this,p);return this};
N7.prototype.addUploadMetadata=function(p,J){_.tJ.prototype.addUploadMetadata.call(this,p,J);return this};var Tq=function(){_.tJ.call(this,"video-search")};
_.Q(Tq,_.tJ);var Nd8=function(){var p=new Tq;p.opts.site="youtube.com";return p};
Tq.prototype.JSC$10229_setLabel=function(p){_.tJ.prototype.JSC$10229_setLabel.call(this,p);return this};
Tq.prototype.addUploadMetadata=function(p,J){_.tJ.prototype.addUploadMetadata.call(this,p,J);return this};var Tdv=function(){_.tJ.call(this,"web")};
_.Q(Tdv,_.tJ);Tdv.prototype.JSC$10229_setLabel=function(p){_.tJ.prototype.JSC$10229_setLabel.call(this,p);return this};
Tdv.prototype.addUploadMetadata=function(p,J){_.tJ.prototype.addUploadMetadata.call(this,p,J);return this};var d$=function(){this.items_=[];this.opts={}},dy4=function(p){switch(p){case "image-search":return new hJ;
case "maps":return new DI;case "photos":return new _.k0;case "url":return new N7;case "video-search":return new Tq;case "web":return new Tdv}return new _.tJ(p)};
d$.prototype.addView=function(p){this.items_.push(typeof p==="string"?dy4(p):p);return this};
var uK8=function(p){return"("+_.d2(p.items_,function(J){return J.toString()}).join(",")+")"};
d$.prototype.toString=function(){return uK8(this)};
d$.prototype.getViews=function(p,J){J=J===void 0?[]:J;for(var S=this.items_,H=0;H<S.length;H++){var M=S[H];M instanceof d$?M.getViews(p,J):M.getId()==p&&J.push(M)}return J};
d$.prototype.getOptions=function(){return _.T6.clone(this.opts)};var Yc=function(p){this.basePickerUrl_=p||"https://docs.google.com/picker";this.nav_=new d$};
Yc.prototype.nav_=null;Yc.prototype.addView=function(p){this.nav_.addView(p);return this};
Yc.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Yc.prototype.getViews=function(p){return this.nav_.getViews(p)};
_.lyU=function(p,J){p.callback_=J;return p};var V5n=new Map;V5n.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");V5n.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");V5n.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var qyv=new Set;qyv.add("application/vnd.google-apps.kix");qyv.add("application/vnd.google-apps.ritz");qyv.add("application/vnd.google-apps.punch");var JSm=function(p,J,S){var H=S&&_.B_(S,1);S=ayE(S);var M=p[0].getId();switch(_.Uw(M,2)){case 13:return EXn(p,J,H,S);case 3:return Yy4(p,J,H,S);case 10:return rw8(p,J,H,S);case 27:return rw8(p,J,H,S);case 12:return jZv(p,J);case 2:return wJ8(p,J,H,S);case 5:return xy8(p,J,H,S);case 9:return cwE(p,J,H,S);case 6:return Iyp(p,J,H,S);case 25:return Lo8(p,J,H,S);case 1:return _.Ow(p[0],CW8,26)?phd(p,J,H,S):rw8(p,J,H,S);default:return{}}},Iyp=function(p,J,S,H){p=p.map(function(M){return{id:M.getId().getId(),
serviceId:"youtube",name:M.getName(),description:_.B_(M,3),type:ul(M),lastEditedUtc:_.Q7U(_.PB(M,_.UX,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:M.getUrl(),embedUrl:_.B_(M,13),thumbnails:ll(iV(M))}});
return{action:J,docs:p,viewToken:H,view:S||"youtube",v2Translated:!0}},wJ8=function(p,J,S,H){var M=p.map(function(X){var Z=X.getId().getId(),n=_.B_(X,7),b=X.getName(),F=ul(X),f=_.Q7U(_.PB(X,_.UX,12)).getTime(),O=X.getUrl(),A=Number(hM4(X)),P=_.B_(X,3),W=_.B_(X,11),y=ll(iV(X));
var t=_.PB(X,Rq,21);t=_.Q3(t,1);var D=_.PB(X,Rq,21);D=_.B_(D,10);var k=_.B_(X,13);var E=_.PB(X,Rq,21);E=_.Q3(E,9);var a=_.PB(X,Rq,21);a=_.B_(a,11);Z={id:Z,serviceId:"docs",mimeType:n,name:b,type:F,lastEditedUtc:f,url:O,sizeBytes:A,description:P,iconUrl:W,thumbnails:y,isShared:t,downloadUrl:D,embedUrl:k,copyable:E,resourceKey:a};n=_.PB(X,Rq,21);_.Q3(n,12)&&(Z.uploadState="success",Z.isNew=!0);n=_.PB(X,Rq,21);_.Ow(n,Hz,3)&&(X=_.PB(X,Rq,21),X=_.PB(X,Hz,3),_.Ow(X,Je,2)&&(n=qL(X.getDuration().getSeconds()),
b=X.getDuration(),b=_.bW(b,2),Z.duration=n+b/1E9),Z.aspectRatio=X.getAspectRatio());return Z});
return{action:J,docs:M,viewToken:H,view:S||"all",extraUserInputs:SLv(p),v2Translated:!0}},xy8=function(p,J,S,H){p=p.map(function(M){var X=_.PB(M,kNv,15);
X=_.PB(X,SE,1);hV(M,10,SE,X);return{id:M.getId().getId(),serviceId:"web",mimeType:_.B_(M,7),name:M.getName(),type:ul(M),url:M.getUrl(),description:_.B_(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ll(iV(M))}});
return{action:J,docs:p,viewToken:H,view:S||"image-search",v2Translated:!0}},cwE=function(p,J,S,H){p=p.map(function(M){return{serviceId:"url",
name:iV(M)[0].getUrl().split("/").pop(),type:ul(M),mimeType:_.B_(M,7),url:M.getUrl(),description:_.B_(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ll(iV(M))}});
return{action:J,docs:p,viewToken:H,view:S||"url",v2Translated:!0}},phd=function(p,J,S,H){p=p.map(function(M){return{id:M.getId().getId(),
serviceId:"picasa",name:M.getName(),type:ul(M),description:_.B_(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ll(iV(M))}});
return{action:J,docs:p,viewToken:H,view:S||"webcam",v2Translated:!0}},rw8=function(p,J,S,H){return{action:J,
docs:p.map(Hz8),viewToken:H,view:MT8(S||"upload",p),extraUserInputs:SLv(p),v2Translated:!0}},MT8=function(p,J){return J.some(function(S){var H;
return((H=_.PB(S,Mv,30))==null?void 0:_.Uw(H,3))===9})?p+"/gmailphotos":p},Yy4=function(p,J,S,H){var M=p.map(function(X){var Z={id:X.getId().getId(),
serviceId:"picasa",mimeType:_.B_(X,7),name:X.getName(),type:ul(X),lastEditedUtc:_.Q7U(_.PB(X,_.UX,12)).getTime(),url:X.getUrl(),sizeBytes:Number(hM4(X)),description:_.B_(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ll(iV(X)),mediaKey:X.getId().getId(),parentId:_.B_(X,4)},n,b=(n=_.PB(X,ULU,18))==null?void 0:_.PB(n,Bpd,3);b&&(Z.latitude=y3(b,1),Z.longitude=y3(b,2));var F;X=(F=_.PB(X,ULU,18))==null?void 0:Cu(F,6);F=X!=null?qL(X):void 0;F&&(Z.version=
F);return Z});
return{action:J,docs:M,viewToken:H,view:S||"photos",extraUserInputs:SLv(p),v2Translated:!0}},EXn=function(p,J,S,H){p=p.map(function(M){return{id:M.getId().getId(),
serviceId:"et",name:iV(M)[0].getUrl().split("/").pop(),description:_.B_(M,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ll(iV(M),"etjpg")}});
return{action:J,docs:p,viewToken:H,view:S||"et",v2Translated:!0}},Lo8=function(p,J,S,H){p=p.map(function(M){var X=M.getId().getId(),Z=H["2"];
return{id:X,serviceId:Z.type!=="gmail_themes"&&Z.parent==="6226252643674576769"?"picasa":"static_themes",name:M.getName(),mimeType:_.B_(M,7),type:ul(M),description:_.B_(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:M.getUrl(),embedUrl:M.getUrl(),thumbnails:ll(iV(M))}});
return{action:J,docs:p,viewToken:H,view:S||"photos",v2Translated:!0}},jZv=function(p,J){p=p.map(function(S){var H=_.PB(S,yTU,27);
H=_.wM(H,1,_.$y,_.GN())[0];return{id:S.getId().getId(),serviceId:"contacts",mimeType:_.B_(S,7),name:S.getName(),description:_.B_(S,3),url:"mailto:"+H,thumbnail:[{url:_.B_(S,11)}],email:H}});
return{action:J,docs:p,view:"contacts",v2Translated:!0}},ayE=function(p){if(!p)return{};
var J=_.B_(p,3);J=J&&JSON.parse(J)||{};return{0:_.B_(p,1),1:_.B_(p,2),2:J}},ll=function(p,J){J=J===void 0?"":J;
if(!p.length)return null;J=="etjpg"&&(p=p.filter(function(S){return S.getUrl().includes("w1200-h300")}));
return p.map(function(S){return{url:S.getUrl(),height:S.getHeight(),width:S.getWidth(),type:J}})},SLv=function(p){return{isAttachment:p.some(function(J){return _.Q3(J,31)})}},Hz8=function(p){var J,S={id:(J=p.getId())==null?void 0:J.getId(),
serviceId:Xh8(p),mimeType:_.B_(p,7),name:p.getName(),type:ul(p),sizeBytes:Number(hM4(p)),description:_.B_(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ll(iV(p)),isNew:!0};if(J=_.PB(p,Mv,30)){S.dataUrl=_.B_(J,1)||null;a:{var H=_.PB(p,Mv,30);switch(_.Uw(H,3)){case 9:H=_.tF(H,hwp,2,Xv);H={remoteRefs:H&&_.B_(H,1)};break a;case 10:case 15:H=_.tF(H,tmM,4,Xv);var M=iV(p);H={photo_id:H&&_.B_(H,1),media_key:p.getId().getId(),media_type:_.Uw(p,6)===1?1:2,image_url:M&&
M[0].getUrl(),width:M&&String(M[0].getWidth()),height:M&&String(M[0].getHeight())};break a}H=null}S.uploadMetadata=H;S.uploadId=_.B_(J,9)||null;S.uploadState=iz8(J)||null}(H=J&&_.tF(J,tmM,4,Xv))&&(S.id=_.B_(H,1));(H=J&&_.tF(J,DLo,5,Xv))&&(S.contentId=_.B_(H,1));(H=J&&_.tF(J,s7m,7,Xv))&&(S.contentId=_.B_(H,1));(H=J&&_.tF(J,gcd,6,Xv))&&(S.contentId=_.B_(H,1));(J==null?void 0:_.Uw(J,3))===1&&(S.mediaKey=p.getId().getId());return S},Xh8=function(p){var J;
switch(((J=_.PB(p,Mv,30))==null?void 0:_.Uw(J,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},ul=function(p){switch(_.Uw(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 _.B_(p,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},iz8=function(p){switch(p==null?void 0:_.Uw(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 ndM,Rtn,KNd,Zz4;_.GdE=function(p,J){var S=J||{};J=S.document||document;var H=_.gy(p).toString(),M=(new td(J)).createElement("SCRIPT"),X={script_:M,timeout_:void 0},Z=new Sb(Rtn,X),n=null,b=S.timeout!=null?S.timeout:5E3;b>0&&(n=window.setTimeout(function(){KNd(M,!0);Z.errback(new Zz4(1,"Timeout reached for loading script "+H))},b),X.timeout_=n);
M.onload=M.onreadystatechange=function(){M.readyState&&M.readyState!="loaded"&&M.readyState!="complete"||(KNd(M,S.cleanupWhenDone||!1,n),Z.callback(null))};
M.onerror=function(){KNd(M,!0,n);Z.errback(new Zz4(0,"Error while loading script "+H))};
X=S.attributes||{};_.T6.extend(X,{type:"text/javascript",charset:"UTF-8"});OAv(M,X);_.RI(M,p);ndM(J).appendChild(M);return Z};
ndM=function(p){var J=y0("HEAD",p);return J&&J.length!==0?J[0]:p.documentElement};
Rtn=function(){if(this&&this.script_){var p=this.script_;p&&p.tagName=="SCRIPT"&&KNd(p,!0,this.timeout_)}};
KNd=function(p,J,S){S!=null&&_.Hg.clearTimeout(S);p.onload=function(){};
p.onerror=function(){};
p.onreadystatechange=function(){};
J&&window.setTimeout(function(){_.CC(p)},0)};
Zz4=function(p,J){var S="Jsloader error (code #"+p+")";J&&(S+=": "+J);_.pL.call(this,S);this.code=p};
_.SJ(Zz4,_.pL);var bzd=_.YI(["https://apis.google.com/js/api.js"]),mXo=_.fA(bzd),Oz8=function(p,J,S){S=S===void 0?{}:S;var H=!1,M=FN8(p,J,S).then(function(Z){H=!0;return Z}),X=_.lJU(5E3).then(function(){return H?FN8(p,J,S):vdo(J,S).then(function(Z){return fnv(Z,p)})});
return BY4([M,X])},FN8=function(p,J,S){S=S===void 0?{}:S;
return AS8(J,S).then(function(H){return fnv(H,p)})},fnv=function(p,J){var S=_.XX(J,"gapi.")?J.slice(5):J;
return p[S]?_.SU(p[S]):new _.UI(function(H,M){var X=Ti(function(){M(Error("Ya"))},3E4);
p.load(J,{callback:function(){_.Hg.clearTimeout(X);H(p[S])},
onerror:function(Z){_.Hg.clearTimeout(X);M(Z)}})})},AS8=function(p,J){J=J===void 0?{}:J;
return p.gapi&&p.gapi.load?_.SU(p.gapi):vdo(p,J)},vdo=function(p,J){J=J===void 0?{}:J;
return _.GdE(mXo,{document:p.document,attributes:J}).then(function(){return p.gapi})},Pu8=function(){};
Pu8.prototype.load=function(p,J,S){J=J===void 0?window:J;S=S===void 0?{}:S;var H=Date.now();return Oz8(p,J,S).then(function(M){var X=Date.now();return{library:M,loadStartMs:H,loadEndMs:X}},function(M){throw M instanceof Error?M:Error(String(M));
})};var iO3=function(){_.gp.call(this);this.gapiLoader_=new Pu8;this.origin_=null;this.gapiPickerIframeResolver_=_.qr();this.gapiIframesResolver_=_.qr();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.Q(iO3,_.gp);var zt8=function(p,J){var S=S===void 0?{}:S;var H=_.Id("gapi.iframes",J);return H?(p=Date.now(),_.SU({library:H,loadStartMs:p,loadEndMs:p})):p.gapiLoader_.load("gapi.iframes",J,S)},$Xq=function(p,J,S,H,M,X){var Z=!1;
Z=Z===void 0?!1:Z;zt8(p,lI(J.ownerDocument)).then(function(n){var b=n.library;p.gapiIframesResolver_.resolve(b);n=p.gapiPickerIframeResolver_;var F=n.resolve,f=Z;f=f===void 0?!1:f;var O={};O["host-message-handler"]=S;p.hostMessageHandlerInternal_=O;var A=_.I7(H);A=_.I7(A);A=_.Gq(_.nN(_.ZI(new _.V1,A.scheme_),A.JSC$10187_domain_),A.JSC$10187_port_).toString();p.origin_=A;A=(new d88).setUrl(H);A.JSC$10202_obj_.where=J;A.JSC$10202_obj_.allowPost=f;A.JSC$10202_obj_.messageHandlers=O;f=_.Id("makeWhiteListIframesFilter",
b)([p.origin_]);A.JSC$10202_obj_.messageHandlersFilter=f;M!=null&&(A.JSC$10202_obj_.id=M);X!=null&&(A.JSC$10202_obj_.rpctoken=X);f=Tf8(A);f.JSC$10199_obj_.style={display:"block","min-width":"100%",width:"1px"};f.JSC$10199_obj_.height="100%";Tf8(A).value().allow="camera 'src' "+p.origin_;b=b.getContext().openChild(A.value());F.call(n,b)},function(n){p.gapiIframesResolver_.reject(n);
p.gapiPickerIframeResolver_.reject(n)});
return p.gapiPickerIframeResolver_.promise},odE=function(p,J){return _.kf([p.gapiIframesResolver_.promise,
p.gapiPickerIframeResolver_.promise]).then(function(S){var H=_.K(S);S=H.next().value;return(H=H.next().value)?H.send("picker-message-handler",J,void 0,_.Id("makeWhiteListIframesFilter",S)([p.origin_])):_.o4(Error("Za"))})};
iO3.prototype.disposeInternal=function(){etU(this);_.gp.prototype.disposeInternal.call(this)};
var etU=function(p){p.gapiPickerIframeResolver_.promise.then(function(J){J&&(J.unregister("host-message-handler"),delete p.hostMessageHandlerInternal_["host-message-handler"])})};var WNL=function(){this.nextId=0};var Cup=function(p,J){switch(p.action){case "select-contacts":p=QC4(p.contacts);break;case "visibility":p=p.visible;var S=new Gi;p=_.Dj(S,1,7).setVisible(p);S={};S["iframe-command"]=p.serialize();p=S;break;default:p=null}return p?odE(J,p):_.SU()},QC4=function(p){if(!p||p.length==0)return null;
var J=new Gi;_.Dj(J,1,11);var S=new WNL;p.forEach(function(H){if(H.email){var M=new eJ;M=_.u6(M,2,H.name?H.name:H.email);var X=new yTU;H=_.VIX(X,1,_.fP,H.email,_.$y);H=_.Qd(M,27,H);M=new WH8;X=":"+(S.nextId++).toString(36);M=_.u6(M,1,X);M=_.Dj(M,2,12);H=_.Qd(H,1,M)}else H=null;H&&hV(J,7,eJ,H)});
p={};p["iframe-command"]=J.serialize();return p};_.ySn=function(){if(jvM){var p=/Windows NT ([0-9.]+)/;return(p=p.exec(_.fL()))?p[1]:"0"}return _.r98?(p=/1[0|1][_.][0-9_.]+/,(p=p.exec(_.fL()))?p[0].replace(/_/g,"."):"10"):E9W?(p=/Android\s+([^\);]+)(\)|;)/,(p=p.exec(_.fL()))?p[1]:""):xW4||c9M||I3m?(p=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(p=p.exec(_.fL()))?p[1].replace(/_/g,"."):""):""}();var VE;VE=function(p){return(p=p.exec(_.fL()))?p[1]:""};
_.B0v=function(){if(_.nu)return VE(/Firefox\/([0-9.]+)/);if(_.i9||Gx||a3p)return XEo;if(_.GF){if(_.si()||_.Qv9()){var p=VE(/CriOS\/([0-9.]+)/);if(p)return p}return VE(/Chrome\/([0-9.]+)/)}if(_.Iy&&!_.si())return VE(/Version\/([0-9.]+)/);if(w9X||xq9){if(p=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.fL()))return p[1]+"."+p[2]}else if(nUp)return(p=VE(/Android\s+([0-9.]+)/))?p:VE(/Version\/([0-9.]+)/);return""}();var UXE=function(){};
_.pu(UXE);UXE.prototype.nextId_=0;_.q7=function(p){return":"+(p.nextId_++).toString(36)};var aE=function(p){_.te.call(this);this.JSC$10297_dom_=p||s9();this.JSC$10297_id_=null;this.inDocument_=!1;this.JSC$10297_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.SJ(aE,_.te);aE.prototype.idGenerator_=UXE.getInstance();aE.prototype.getId=function(){return this.JSC$10297_id_||(this.JSC$10297_id_=_.q7(this.idGenerator_))};
aE.prototype.getElement=function(){return this.JSC$10297_element_};
var Es=function(p){p.googUiComponentHandler_||(p.googUiComponentHandler_=new _.oC(p));return p.googUiComponentHandler_},sCn=function(p,J){if(p==J)throw Error("$a");
var S;if(S=J&&p.parent_&&p.JSC$10297_id_){S=p.parent_;var H=p.JSC$10297_id_;S=S.childIndex_&&H?_.T6.get(S.childIndex_,H)||null:null}if(S&&p.parent_!=J)throw Error("$a");p.parent_=J;aE.superClass_.setParentEventTarget.call(p,J)};
aE.prototype.setParentEventTarget=function(p){if(this.parent_&&this.parent_!=p)throw Error("ab");aE.superClass_.setParentEventTarget.call(this,p)};
aE.prototype.JSC$10299_createDom=function(){this.JSC$10297_element_=this.JSC$10297_dom_.createElement("DIV")};
aE.prototype.render=function(p){gdd(this,p)};
var gdd=function(p,J,S){if(p.inDocument_)throw Error("bb");p.JSC$10297_element_||p.JSC$10299_createDom();J?J.insertBefore(p.JSC$10297_element_,S||null):p.JSC$10297_dom_.JSC$9481_document_.body.appendChild(p.JSC$10297_element_);p.parent_&&!p.parent_.inDocument_||p.enterDocument()};
_.R=aE.prototype;_.R.decorate=function(p){if(this.inDocument_)throw Error("bb");if(p&&this.canDecorate(p)){this.wasDecorated_=!0;var J=_.VF(p);this.JSC$10297_dom_&&this.JSC$10297_dom_.JSC$9481_document_==J||(this.JSC$10297_dom_=s9(p));this.decorateInternal(p);this.enterDocument()}else throw Error("cb");};
_.R.canDecorate=function(){return!0};
_.R.decorateInternal=function(p){this.JSC$10297_element_=p};
_.R.enterDocument=function(){this.inDocument_=!0;tTp(this,function(p){!p.inDocument_&&p.getElement()&&p.enterDocument()})};
_.R.exitDocument=function(){tTp(this,function(p){p.inDocument_&&p.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.R.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);tTp(this,function(p){p.dispose()});
!this.wasDecorated_&&this.JSC$10297_element_&&_.CC(this.JSC$10297_element_);this.parent_=this.model_=this.JSC$10297_element_=this.childIndex_=this.children_=null;aE.superClass_.disposeInternal.call(this)};
_.R.getModel=function(){return this.model_};
_.R.addChild=function(p,J){var S=this.children_?this.children_.length:0;if(p.inDocument_&&(J||!this.inDocument_))throw Error("bb");if(S<0||S>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);p.parent_==this?(_.T6.set(this.childIndex_,p.getId(),p),_.uw(this.children_,p)):_.T6.add(this.childIndex_,p.getId(),p);sCn(p,this);_.h4X(this.children_,S,0,p);p.inDocument_&&this.inDocument_&&p.parent_==this?(J=this.getContentElement(),
(J.childNodes[S]||null)!=p.getElement()&&(p.getElement().parentElement==J&&J.removeChild(p.getElement()),S=J.childNodes[S]||null,J.insertBefore(p.getElement(),S))):J?(this.JSC$10297_element_||this.JSC$10299_createDom(),S=this.children_?this.children_[S+1]||null:null,gdd(p,this.getContentElement(),S?S.JSC$10297_element_:null)):this.inDocument_&&!p.inDocument_&&p.JSC$10297_element_&&p.JSC$10297_element_.parentNode&&p.JSC$10297_element_.parentNode.nodeType==1&&p.enterDocument()};
_.R.getContentElement=function(){return this.JSC$10297_element_};
var tTp=function(p,J){p.children_&&p.children_.forEach(J,void 0)};
aE.prototype.removeChild=function(p,J){if(p){var S=typeof p==="string"?p:p.getId();p=this.childIndex_&&S?_.T6.get(this.childIndex_,S)||null:null;S&&p&&(_.T6.remove(this.childIndex_,S),_.uw(this.children_,p),J&&(p.exitDocument(),p.JSC$10297_element_&&_.CC(p.JSC$10297_element_)),sCn(p,null))}if(!p)throw Error("eb");return p};_.SJ(clX,xV9);_.SJ(ILW,xV9);var ht8;_.T6.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var DXU=function(p,J){J?p.setAttribute("role",J):p.removeAttribute("role")},Y0=function(p,J,S){Array.isArray(S)&&(S=S.join(" "));
var H="aria-"+J;S===""||S==void 0?(ht8||(S={},ht8=(S.atomic=!1,S.autocomplete="none",S.dropeffect="none",S.haspopup=!1,S.live="off",S.multiline=!1,S.multiselectable=!1,S.orientation="vertical",S.readonly=!1,S.relevant="additions text",S.required=!1,S.sort="none",S.busy=!1,S.disabled=!1,S.hidden=!1,S.invalid="false",S)),S=ht8,J in S?p.setAttribute(H,S[J]):p.removeAttribute(H)):p.setAttribute(H,S)};var kdL;_.r$=function(p,J,S){_.te.call(this);this.target=p;this.handle=J||p;this.limits=S||new a1(NaN,NaN,NaN,NaN);this.JSC$10302_document_=_.VF(p);this.JSC$10302_eventHandler_=new _.oC(this);_.$c(this,this.JSC$10302_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;_.z$(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=kdL};
_.SJ(_.r$,_.te);kdL=_.Hg.document&&_.Hg.document.documentElement&&!!_.Hg.document.documentElement.setCapture&&!!_.Hg.document.releaseCapture;_.N08=function(p,J){p.hysteresisDistanceSquared_=Math.pow(J,2)};
_.R=_.r$.prototype;_.R.setEnabled=function(p){this.enabled_=p};
_.R.disposeInternal=function(){_.r$.superClass_.disposeInternal.call(this);_.gx(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10302_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10302_document_.releaseCapture();this.handle=this.target=null};
_.R.startDrag=function(p){var J=p.type=="mousedown";if(!this.enabled_||this.dragging_||J&&(!p.isButton(0)||_.r98&&p.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new jb("start",this,p.clientX,p.clientY,p)))this.dragging_=!0,J&&p.preventDefault();else return;else J&&p.preventDefault();J=this.JSC$10302_document_;var S=J.documentElement,H=!this.useSetCapture_;this.JSC$10302_eventHandler_.listen(J,["touchmove","mousemove"],this.handleMove_,
{capture:H,passive:!1});this.JSC$10302_eventHandler_.listen(J,["touchend","mouseup"],this.endDrag,H);this.useSetCapture_?(S.setCapture(!1),this.JSC$10302_eventHandler_.listen(S,"losecapture",this.endDrag)):this.JSC$10302_eventHandler_.listen(lI(J),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10302_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,H);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=U9(s9(this.JSC$10302_document_))}};
_.R.endDrag=function(p,J){this.JSC$10302_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10302_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new jb("end",this,p.clientX,p.clientY,p,T0L(this,this.deltaX),dXM(this,this.deltaY),J||p.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.R.handleMove_=function(p){if(this.enabled_){var J=p.clientX-this.clientX,S=p.clientY-this.clientY;this.clientX=p.clientX;this.clientY=p.clientY;this.screenX=p.screenX;this.screenY=p.screenY;if(!this.dragging_){var H=this.startX-this.clientX,M=this.startY-this.clientY;if(H*H+M*M>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new jb("start",this,p.clientX,p.clientY,p)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(p);return}}S=u7d(this,J,S);J=S.x;S=S.y;this.dragging_&&this.dispatchEvent(new jb("beforedrag",
this,p.clientX,p.clientY,p,J,S))&&(lnd(this,p,J,S),p.preventDefault())}};
var u7d=function(p,J,S){var H=U9(s9(p.JSC$10302_document_));J+=H.x-p.pageScroll.x;S+=H.y-p.pageScroll.y;p.pageScroll=H;p.deltaX+=J;p.deltaY+=S;return new _.uI(T0L(p,p.deltaX),dXM(p,p.deltaY))};
_.r$.prototype.onScroll_=function(p){var J=u7d(this,0,0);p.clientX=this.clientX;p.clientY=this.clientY;lnd(this,p,J.x,J.y)};
var lnd=function(p,J,S,H){p.target.style.left=S+"px";p.target.style.top=H+"px";p.dispatchEvent(new jb("drag",p,J.clientX,J.clientY,J,S,H))},T0L=function(p,J){var S=p.limits;
p=isNaN(S.left)?null:S.left;S=isNaN(S.width)?0:S.width;return Math.min(p!=null?p+S:Infinity,Math.max(p!=null?p:-Infinity,J))},dXM=function(p,J){var S=p.limits;
p=isNaN(S.top)?null:S.top;S=isNaN(S.height)?0:S.height;return Math.min(p!=null?p+S:Infinity,Math.max(p!=null?p:-Infinity,J))};
_.r$.prototype.isDragging=function(){return this.dragging_};
var jb=function(p,J,S,H,M,X,Z){_.yr.call(this,p);this.clientX=S;this.clientY=H;this.browserEvent=M;this.left=X!==void 0?X:J.deltaX;this.top=Z!==void 0?Z:J.deltaY};
_.SJ(jb,_.yr);var w$=function(p){this.JSC$10309_map_=new Map;var J=arguments.length;if(J>1){if(J%2)throw Error("ma");for(var S=0;S<J;S+=2)this.set(arguments[S],arguments[S+1])}else p&&this.addAll(p)};
_.R=w$.prototype;_.R.getCount=function(){return this.JSC$10309_map_.size};
_.R.getValues=function(){return Array.from(this.JSC$10309_map_.values())};
_.R.getKeys=function(){return Array.from(this.JSC$10309_map_.keys())};
_.R.containsKey=function(p){return this.JSC$10309_map_.has(p)};
_.R.containsValue=function(p){return this.getValues().some(function(J){return J==p})};
_.R.equals=function(p,J){var S=this;J=J===void 0?function(H,M){return H===M}:J;
return this===p?!0:this.JSC$10309_map_.size!=p.getCount()?!1:this.getKeys().every(function(H){return J(S.JSC$10309_map_.get(H),p.get(H))})};
_.R.isEmpty=function(){return this.JSC$10309_map_.size==0};
_.R.clear=function(){this.JSC$10309_map_.clear()};
_.R.remove=function(p){return this.JSC$10309_map_.delete(p)};
_.R.get=function(p,J){return this.JSC$10309_map_.has(p)?this.JSC$10309_map_.get(p):J};
_.R.set=function(p,J){this.JSC$10309_map_.set(p,J);return this};
_.R.addAll=function(p){if(p instanceof w$){p=_.K(p.JSC$10309_map_);for(var J=p.next();!J.done;J=p.next()){var S=_.K(J.value);J=S.next().value;S=S.next().value;this.JSC$10309_map_.set(J,S)}}else if(p)for(p=_.K(Object.entries(p)),J=p.next();!J.done;J=p.next())S=_.K(J.value),J=S.next().value,S=S.next().value,this.JSC$10309_map_.set(J,S)};
_.R.forEach=function(p,J){var S=this;J=J===void 0?this:J;this.JSC$10309_map_.forEach(function(H,M){return p.call(J,H,M,S)})};
_.R.clone=function(){return new w$(this)};(function(){for(var p=["ms","moz","webkit","o"],J,S=0;J=p[S]&&!_.Hg.requestAnimationFrame;++S)_.Hg.requestAnimationFrame=_.Hg[J+"RequestAnimationFrame"],_.Hg.cancelAnimationFrame=_.Hg[J+"CancelAnimationFrame"]||_.Hg[J+"CancelRequestAnimationFrame"];if(!_.Hg.requestAnimationFrame){var H=0;_.Hg.requestAnimationFrame=function(M){var X=(new Date).getTime(),Z=Math.max(0,16-(X-H));H=X+Z;return _.Hg.setTimeout(function(){M(X+Z)},Z)};
_.Hg.cancelAnimationFrame||(_.Hg.cancelAnimationFrame=function(M){clearTimeout(M)})}})();
var VT8=[[],[]],qLp=0,an4=!1,Ed8=0,rSn=function(p,J){var S=Ed8++,H={measureTask:{id:S,fn:p.measure,context:J},mutateTask:{id:S,fn:p.mutate,context:J},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(H.args||(H.args=[]),H.args.length=0,H.args.push.apply(H.args,arguments),H.args.push(H.state)):H.args&&H.args.length!=0?(H.args[0]=H.state,H.args.length=1):H.args=[H.state];H.isScheduled||(H.isScheduled=!0,VT8[qLp].push(H));an4||(an4=!0,window.requestAnimationFrame(YLv))}},YLv=
function(){an4=!1;
var p=VT8[qLp],J=p.length;qLp=(qLp+1)%2;for(var S,H=0;H<J;++H){S=p[H];var M=S.measureTask;S.isScheduled=!1;M.fn&&M.fn.apply(M.context,S.args)}for(H=0;H<J;++H)S=p[H],M=S.mutateTask,S.isScheduled=!1,M.fn&&M.fn.apply(M.context,S.args),S.state={};p.length=0};var jCn=_.YI(["about:blank"]),whL=_.YI(["javascript:undefined"]),xX8=_.fA(jCn);_.gy(xX8);var cSU=_.fA(whL);_.gy(cSU);var x0=function(p){_.te.call(this);this.JSC$10315_element_=p;this.listenKeyIn_=_.z$(this.JSC$10315_element_,"focus",this,!0);this.listenKeyOut_=_.z$(this.JSC$10315_element_,"blur",this,!0)};
_.SJ(x0,_.te);x0.prototype.handleEvent=function(p){var J=new _.Bz(p.event_);J.type=p.type=="focusin"||p.type=="focus"?"focusin":"focusout";this.dispatchEvent(J)};
x0.prototype.disposeInternal=function(){x0.superClass_.disposeInternal.call(this);Oa(this.listenKeyIn_);Oa(this.listenKeyOut_);delete this.JSC$10315_element_};var In8=function(p,J){this.JSC$10318_element_=p;this.JSC$10318_dom_=J};var cd=function(p,J){aE.call(this,J);this.useIframeMask_=!!p;this.lastFocus_=null;this.resizeBackgroundTask_=rSn({mutate:this.resizeBackground_},this);rSn({mutate:this.updateModalAndBackground_},this)};
_.SJ(cd,aE);_.R=cd.prototype;_.R.focusHandler_=null;_.R.visible_=!1;_.R.bgEl_=null;_.R.bgIframeEl_=null;_.R.tabCatcherElement_=null;_.R.backwardTabWrapInProgress_=!1;_.R.getCssClass=function(){return"goog-modalpopup"};
_.R.getBackgroundElement=function(){return this.bgEl_};
_.R.JSC$10299_createDom=function(){cd.superClass_.JSC$10299_createDom.call(this);var p=this.getElement(),J=mi(this.getCssClass()).split(" ");pN(p,J);p.tabIndex=0;_.JZ(p,!1);LN8(this);pf8(this)};
var LN8=function(p){if(p.useIframeMask_&&!p.bgIframeEl_){var J=p.JSC$10297_dom_.JSC$9483_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Lt(J,xX8);p.bgIframeEl_=J;p.bgIframeEl_.className=p.getCssClass()+"-bg";_.JZ(p.bgIframeEl_,!1);ry8(p.bgIframeEl_,0)}p.bgEl_||(p.bgEl_=p.JSC$10297_dom_.JSC$9483_createDom("DIV",p.getCssClass()+"-bg"),_.JZ(p.bgEl_,!1))},pf8=function(p){p.tabCatcherElement_||(p.tabCatcherElement_=p.JSC$10297_dom_.createElement("SPAN"),_.JZ(p.tabCatcherElement_,
!1),p.tabCatcherElement_.tabIndex=0,p.tabCatcherElement_.style.position="absolute")};
_.R=cd.prototype;_.R.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.R.canDecorate=function(p){return!!p&&p.tagName=="DIV"};
_.R.decorateInternal=function(p){cd.superClass_.decorateInternal.call(this,p);p=mi(this.getCssClass()).split(" ");pN(this.getElement(),p);LN8(this);pf8(this);this.getElement().tabIndex=0;_.JZ(this.getElement(),!1)};
_.R.enterDocument=function(){this.bgIframeEl_&&_.u_(this.bgIframeEl_,this.getElement());_.u_(this.bgEl_,this.getElement());cd.superClass_.enterDocument.call(this);_.l_(this.tabCatcherElement_,this.getElement());this.focusHandler_=new x0(this.JSC$10297_dom_.JSC$9481_document_);Es(this).listen(this.focusHandler_,"focusin",this.onFocus);J1E(this,!1)};
_.R.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.iW(this.focusHandler_);cd.superClass_.exitDocument.call(this);_.CC(this.bgIframeEl_);_.CC(this.bgEl_);_.CC(this.tabCatcherElement_)};
_.R.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_&&J1E(this,p),p){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10297_dom_.JSC$9481_document_.activeElement}catch(M){}this.updateModalAndBackground_();Es(this).listen(this.JSC$10297_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10297_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);SBU(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)fI(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Es(this).unlisten(this.JSC$10297_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10297_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)fI(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var J=this.JSC$10297_dom_,S=J.JSC$9481_document_.body,H=J.JSC$9481_document_.activeElement||S;if(!this.lastFocus_||this.lastFocus_==S){this.lastFocus_=null;break a}(H==S||J.contains(this.getElement(),H))&&this.lastFocus_.focus()}catch(M){}this.lastFocus_=
null}}};
var J1E=function(p,J){p.modalAriaVisibilityHelper_||(p.modalAriaVisibilityHelper_=new In8(p.JSC$10297_element_,p.JSC$10297_dom_));p=p.modalAriaVisibilityHelper_;if(J){p.hiddenElements_||(p.hiddenElements_=[]);J=p.JSC$10318_dom_.getChildren(p.JSC$10318_dom_.JSC$9481_document_.body);for(var S=0;S<J.length;S++){var H=J[S],M;if(M=H!=p.JSC$10318_element_)M=H.getAttribute("aria-hidden"),M=!(M==null||M==void 0?0:String(M));M&&(Y0(H,"hidden",!0),p.hiddenElements_.push(H))}}else if(p.hiddenElements_){for(J=
0;J<p.hiddenElements_.length;J++)p.hiddenElements_[J].removeAttribute("aria-hidden");p.hiddenElements_=null}};
cd.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var SBU=function(p,J){p.bgIframeEl_&&_.JZ(p.bgIframeEl_,J);p.bgEl_&&_.JZ(p.bgEl_,J);_.JZ(p.getElement(),J);_.JZ(p.tabCatcherElement_,J)};
_.R=cd.prototype;_.R.onShow=function(){this.dispatchEvent("show")};
_.R.onHide=function(){SBU(this,!1);this.dispatchEvent("hide")};
_.R.isVisible=function(){return this.visible_};
_.R.focus=function(){this.focusElement_()};
_.R.resizeBackground_=function(){this.bgIframeEl_&&_.JZ(this.bgIframeEl_,!1);this.bgEl_&&_.JZ(this.bgEl_,!1);var p=this.JSC$10297_dom_.JSC$9481_document_;var J=_.Bs(lI(this.JSC$10297_dom_.JSC$9481_document_)||window);var S=Math.max(J.width,Math.max(p.body.scrollWidth,p.documentElement.scrollWidth));p=Math.max(J.height,Math.max(p.body.scrollHeight,p.documentElement.scrollHeight));this.bgIframeEl_&&(_.JZ(this.bgIframeEl_,!0),_.q9q(this.bgIframeEl_,S,p));this.bgEl_&&(_.JZ(this.bgEl_,!0),_.q9q(this.bgEl_,
S,p))};
_.R.reposition=function(){var p;if(_.V6m(this.getElement())=="fixed")var J=p=0;else J=U9(this.JSC$10297_dom_),p=J.x,J=J.y;var S=Eo4(this.getElement());var H=_.Bs(lI(this.JSC$10297_dom_.JSC$9481_document_)||window);p=Math.max(p+H.width/2-S.width/2,0);J=Math.max(J+H.height/2-S.height/2,0);r7(this.getElement(),p,J);r7(this.tabCatcherElement_,p,J)};
_.R.onFocus=function(p){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():p.target==this.tabCatcherElement_&&Ti(this.focusElement_,0,this)};
_.R.focusElement_=function(){try{this.getElement().focus()}catch(p){}};
_.R.disposeInternal=function(){_.iW(this.popupShowTransition_);this.popupShowTransition_=null;_.iW(this.popupHideTransition_);this.popupHideTransition_=null;_.iW(this.bgShowTransition_);this.bgShowTransition_=null;_.iW(this.bgHideTransition_);this.bgHideTransition_=null;cd.superClass_.disposeInternal.call(this)};var a7=function(p,J,S){cd.call(this,J,S);this.JSC$10328_class_=p||"modal-dialog";this.buttons_=(new IE).addButton(H18,!0).addButton(MqM,!1,!0)};
_.SJ(a7,cd);_.R=a7.prototype;_.R.escapeToCancel_=!0;_.R.hasTitleCloseButton_=!0;_.R.modal_=!0;_.R.draggable_=!0;_.R.backgroundElementOpacity_=.5;_.R.title_="";_.R.JSC$10330_dragger_=null;_.R.JSC$10330_disposeOnHide_=!1;_.R.titleEl_=null;_.R.titleTextEl_=null;_.R.titleTextId_=null;_.R.titleCloseEl_=null;_.R.contentEl_=null;_.R.buttonEl_=null;_.R.getCssClass=function(){return this.JSC$10328_class_};
_.R.setTitle=function(p){this.title_=p;this.titleTextEl_&&_.qR(this.titleTextEl_,p)};
_.R.getTitle=function(){return this.title_};
_.R.getContent=function(){return""};
_.R.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Xf8=function(p){p.getElement()||p.render();return p.getElement()};
a7.prototype.getBackgroundElement=function(){this.getElement()||this.render();return a7.superClass_.getBackgroundElement.call(this)};
var i18=function(p,J){p.backgroundElementOpacity_=J;p.getElement()&&(J=p.getBackgroundElement())&&ry8(J,p.backgroundElementOpacity_)};
a7.prototype.setDraggable=function(p){this.draggable_=p;RCL(this,p&&this.inDocument_)};
a7.prototype.handleDrag=function(){};
var RCL=function(p,J){var S=mi(p.JSC$10328_class_+"-title-draggable").split(" ");p.getElement()&&(J?pN(p.titleEl_,S):D1d(p.titleEl_,S));J&&!p.JSC$10330_dragger_?(J=new _.r$(p.getElement(),p.titleEl_),p.JSC$10330_dragger_=J,pN(p.titleEl_,S),_.z$(p.JSC$10330_dragger_,"start",p.setDraggerLimits_,!1,p),_.z$(p.JSC$10330_dragger_,"drag",p.handleDrag,!1,p)):!J&&p.JSC$10330_dragger_&&(p.JSC$10330_dragger_.dispose(),p.JSC$10330_dragger_=null)};
_.R=a7.prototype;
_.R.JSC$10299_createDom=function(){a7.superClass_.JSC$10299_createDom.call(this);var p=this.getElement(),J=this.JSC$10297_dom_;this.titleTextId_=this.getId();var S=this.getId()+".contentEl";this.titleEl_=J.JSC$9483_createDom("DIV",this.JSC$10328_class_+"-title",this.titleTextEl_=J.JSC$9483_createDom("SPAN",{className:this.JSC$10328_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=J.JSC$9483_createDom("SPAN",this.JSC$10328_class_+"-title-close"));oo8(p,this.titleEl_,this.contentEl_=
J.JSC$9483_createDom("DIV",{className:this.JSC$10328_class_+"-content",id:S}),this.buttonEl_=J.JSC$9483_createDom("DIV",this.JSC$10328_class_+"-buttons"));DXU(this.titleTextEl_,"heading");DXU(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Y0(this.titleCloseEl_,"label","Close");DXU(p,"dialog");Y0(p,"labelledby",this.titleTextId_||"");_.JZ(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(p=this.buttons_,p.JSC$10331_element_=this.buttonEl_,p.render());_.JZ(this.buttonEl_,!!this.buttons_);
i18(this,this.backgroundElementOpacity_)};
_.R.decorateInternal=function(p){a7.superClass_.decorateInternal.call(this,p);p=this.getElement();var J=this.JSC$10328_class_+"-content";this.contentEl_=hd(document,null,J,p)[0];this.contentEl_||(this.contentEl_=this.JSC$10297_dom_.JSC$9483_createDom("DIV",J),p.appendChild(this.contentEl_));J=this.JSC$10328_class_+"-title";var S=this.JSC$10328_class_+"-title-text",H=this.JSC$10328_class_+"-title-close";(this.titleEl_=hd(document,null,J,p)[0])?(this.titleTextEl_=hd(document,null,S,this.titleEl_)[0],
this.titleCloseEl_=hd(document,null,H,this.titleEl_)[0]):(this.titleEl_=this.JSC$10297_dom_.JSC$9483_createDom("DIV",J),p.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=N28(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.kr("SPAN",{className:S,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Y0(p,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10297_dom_.JSC$9483_createDom("SPAN",H),this.titleEl_.appendChild(this.titleCloseEl_));_.JZ(this.titleCloseEl_,this.hasTitleCloseButton_);J=this.JSC$10328_class_+"-buttons";(this.buttonEl_=hd(document,null,J,p)[0])?(this.buttons_=new IE(this.JSC$10297_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10297_dom_.JSC$9483_createDom("DIV",J),p.appendChild(this.buttonEl_),this.buttons_&&(p=this.buttons_,p.JSC$10331_element_=this.buttonEl_,p.render()),_.JZ(this.buttonEl_,
!!this.buttons_));i18(this,this.backgroundElementOpacity_)};
_.R.enterDocument=function(){a7.superClass_.enterDocument.call(this);Es(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Es(this).listen(this.buttonEl_,"click",this.onButtonClick_);RCL(this,this.draggable_);Es(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var p=this.getElement();DXU(p,"dialog");this.titleTextEl_.id!==""&&Y0(p,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){p=this.JSC$10297_dom_;
var J=this.getBackgroundElement();p.removeNode(this.bgIframeEl_);p.removeNode(J)}this.isVisible()&&J1E(this,!1)}};
_.R.exitDocument=function(){this.isVisible()&&this.setVisible(!1);RCL(this,!1);a7.superClass_.exitDocument.call(this)};
_.R.setVisible=function(p){p!=this.isVisible()&&(this.inDocument_||this.render(),a7.superClass_.setVisible.call(this,p))};
_.R.onShow=function(){a7.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.R.onHide=function(){a7.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10330_disposeOnHide_&&this.dispose()};
_.R.setDraggerLimits_=function(){var p=this.JSC$10297_dom_.JSC$9481_document_,J=_.Bs(lI(p)||window),S=Math.max(p.body.scrollWidth,J.width);p=Math.max(p.body.scrollHeight,J.height);var H=Eo4(this.getElement());_.V6m(this.getElement())=="fixed"?this.JSC$10330_dragger_.limits=new a1(0,0,Math.max(0,J.width-H.width),Math.max(0,J.height-H.height)):this.JSC$10330_dragger_.limits=new a1(0,0,S-H.width,p-H.height)};
_.R.onTitleCloseClick_=function(){Kz8(this)};
var Kz8=function(p){if(p.hasTitleCloseButton_){var J=p.buttons_,S=J&&J.cancelButton_;S?(J=J.get(S),p.dispatchEvent(new LN(S,J))&&p.setVisible(!1)):p.setVisible(!1)}},Z1v=function(p){p.hasTitleCloseButton_=!1;
p.titleCloseEl_&&_.JZ(p.titleCloseEl_,p.hasTitleCloseButton_)};
a7.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;a7.superClass_.disposeInternal.call(this)};
a7.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 J=this.buttons_.get(p);this.dispatchEvent(new LN(p,J))&&this.setVisible(!1)}};
a7.prototype.onKey_=function(p){var J=!1,S=!1,H=this.buttons_,M=p.target;if(p.type=="keydown")if(this.escapeToCancel_&&p.keyCode==27){var X=H&&H.cancelButton_;M=M.tagName=="SELECT"&&!M.disabled;X&&!M?(S=!0,J=H.get(X),J=this.dispatchEvent(new LN(X,J))):M||(J=!0)}else{if(p.keyCode==9&&p.shiftKey&&M==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(f){}Ti(this.resetBackwardTabWrap_,0,this)}}else if(p.keyCode==13){if(M.tagName=="BUTTON"&&!M.disabled)X=M.name;
else if(M==this.titleCloseEl_)Kz8(this);else if(H){var Z=H.defaultButton_,n;if(n=Z)a:{n=y0("BUTTON",H.JSC$10331_element_);for(var b,F=0;b=n[F];F++)if(b.name==Z||b.id==Z){n=b;break a}n=null}M=(M.tagName=="TEXTAREA"||M.tagName=="SELECT"||M.tagName=="A")&&!M.disabled;!n||n.disabled||M||(X=Z)}X&&H&&(S=!0,J=this.dispatchEvent(new LN(X,String(H.get(X)))))}else M!=this.titleCloseEl_||p.keyCode!=32&&p.key!=" "||Kz8(this);if(J||S)p.stopPropagation(),p.preventDefault();J&&this.setVisible(!1)};
var LN=function(p,J){this.type="dialogselect";this.key=p;this.caption=J};
_.SJ(LN,_.yr);var IE=function(p){w$.call(this);p||s9();this.cancelButton_=this.JSC$10331_element_=this.defaultButton_=null};
_.SJ(IE,w$);_.R=IE.prototype;_.R.clear=function(){w$.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.R.set=function(p,J,S,H){w$.prototype.set.call(this,p,J);S&&(this.defaultButton_=p);H&&(this.cancelButton_=p);return this};
_.R.addButton=function(p,J,S){return this.set(p.key,p.caption,J,S)};
_.R.render=function(){if(this.JSC$10331_element_){_.K_(this.JSC$10331_element_,n_X);var p=s9(this.JSC$10331_element_);this.forEach(function(J,S){J=p.JSC$9483_createDom("BUTTON",{name:S},J);S==this.defaultButton_&&(J.className="goog-buttonset-default");this.JSC$10331_element_.appendChild(J)},this)}};
_.R.decorate=function(p){if(p&&p.nodeType==1){this.JSC$10331_element_=p;p=y0("BUTTON",this.JSC$10331_element_);for(var J,S,H,M=0;J=p[M];M++)if(S=J.name||J.id,H=N28(J)||J.value,S){var X=M==0;this.set(S,H,X,J.name=="cancel");X&&_.Ea(J,"goog-buttonset-default")}}};
_.R.getElement=function(){return this.JSC$10331_element_};
var H18={key:"ok",caption:"OK"},MqM={key:"cancel",caption:"Cancel"},nVm={key:"yes",caption:"Yes"},GXL={key:"no",caption:"No"},b1o={key:"save",caption:"Save"},m98={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new IE).addButton(H18,!0,!0),(new IE).addButton(H18,!0).addButton(MqM,!1,!0),(new IE).addButton(nVm,!0).addButton(GXL,!1,!0),(new IE).addButton(nVm).addButton(GXL,!0).addButton(MqM,!1,!0),(new IE).addButton(m98).addButton(b1o).addButton(MqM,!0,!0));_.SJ(Ldw,a7);_.SJ(pBw,Yc);var Fzm=_.YI(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),vVU=_.YI(["//apis.google.com/js/rpc.js"]),ZO3=_.fA(Fzm),K$X=_.fA(vVU),S33=null;var rp=function(p,J){_.te.call(this);this.JSC$10340_element_=p;p=_.bS(this.JSC$10340_element_)?this.JSC$10340_element_:this.JSC$10340_element_?this.JSC$10340_element_.body:null;this.isRtl_=!!p&&_.jrU(p);this.listenKey_=_.z$(this.JSC$10340_element_,_.Rh?"DOMMouseScroll":"mousewheel",this,J)};
_.SJ(rp,_.te);rp.prototype.handleEvent=function(p){var J=0,S=0,H=p.event_;H.type=="mousewheel"?(p=fxn(-H.wheelDelta),H.wheelDeltaX!==void 0?(J=fxn(-H.wheelDeltaX),S=fxn(-H.wheelDeltaY)):S=p):(p=H.detail,p>100?p=3:p<-100&&(p=-3),H.axis!==void 0&&H.axis===H.HORIZONTAL_AXIS?J=p:S=p);typeof this.maxDeltaX_==="number"&&(J=_.s0(J,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(S=_.s0(S,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(J=-J);J=new O18(p,H,J,S);this.dispatchEvent(J)};
var fxn=function(p){return _.Ku&&(_.r98||wgM)&&p%40!=0?p:p/40};
rp.prototype.disposeInternal=function(){rp.superClass_.disposeInternal.call(this);Oa(this.listenKey_);this.listenKey_=null};
var O18=function(p,J,S,H){_.Bz.call(this,J);this.type="mousewheel";this.detail=p;this.deltaX=S;this.deltaY=H};
_.SJ(O18,_.Bz);_.x8=function(p){var J="instance_";if(p.instance_&&p.hasOwnProperty(J))return p.instance_;J=new p;return p.instance_=J};var R2i;var A1q=_.YI(["https://about:blank"]),PjL=_.YI(['javascript:""']),zCp=_.YI(["about:blank"]);_.SJ(SQ,Ldw);_.R=SQ.prototype;_.R.JSC$10348_url_="";_.R.JSC$10348_iframe_=null;_.R.iframeLoaded_=!1;_.R.loadedFired_=!1;_.R.callback_=function(){};
_.R.enterDocument=function(){SQ.superClass_.enterDocument.call(this);XBi(this.getBackgroundElement(),Es(this))};
_.R.render=function(p){var J=this;SQ.superClass_.render.call(this,p);this.useGapi_?zt8(this.iframeManager_,window).then(function(){return $9v(J)}).then(null,function(){J.callback_({action:"error"})}):oVU(this)};
var $9v=function(p){var J=p.JSC$10297_dom_.JSC$9483_createDom("div",["picker-dialog-content","picker-frame"]);_.JZ(J,!1);p.getContentElement().appendChild(J);return $Xq(p.iframeManager_,J,function(S){var H=uSd(S["iframe-command"]);switch(H.getCommand()){case 1:S=p.callback_;H=_.PB(H,nn,2);var M="";switch(H.getStatus()){case 2:M="cancel";break;case 1:M="picked";break;case 3:M="error"}var X=_.Zd(H,eJ,2,_.GN(P8p));H=X.length===0?{action:M}:JSm(X,M,_.PB(H,Npv,7));S.call(p,H);p.setVisible(!1);break;case 4:Z1v(p);
p.callback_({action:"loaded"});break;case 7:case 8:S=p.callback_;a:{M=H.getCommand();X=_.PB(H,nn,2);switch(M){case 7:M="uploadScheduled";break;case 8:M="uploadStateChange";break;default:H={};break a}H=_.Zd(X,eJ,2,_.GN(P8p));if(H.length===0)H={action:M};else{var Z=_.PB(X,Npv,7);X=Z&&_.B_(Z,1);Z=ayE(Z);H=rw8(H,M,X,Z)}}S.call(p,H)}},p.JSC$10348_url_,p.targetId_,p.rpcToken_).then(function(S){p.JSC$10348_iframe_=S.getIframeEl();
eCL(p);_.JZ(p.JSC$10348_iframe_.parentElement,!0);_.Ea(p.getElement(),"picker-dialog");Wzo(p);return S})},oVU=function(p){p.JSC$10348_iframe_=p.JSC$10297_dom_.JSC$9483_createDom("IFRAME",{id:p.targetId_,
name:p.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Lt(p.JSC$10348_iframe_,QVn(p));_.Ea(p.getElement(),"picker-dialog");p.getContentElement().appendChild(p.JSC$10348_iframe_);Es(p).listen(p.JSC$10348_iframe_,"load",function(){return void eCL(p)});
p.JSC$10348_iframe_.src=p.JSC$10348_url_;Wzo(p)},y1n=function(p){CjU(p,(0,_.tT)(function(J){J.setAuthToken(this.targetId_,this.rpcToken_)},p))},Wzo=function(p){var J=_.LC(_.I7(p.JSC$10348_url_),"title");
J&&p.setTitle(J)},QVn=function(p){return _.os9("Internet Explorer")>=7&&_.XX(p.JSC$10348_url_,"https")?_.fA(A1q):_.i9?_.fA(PjL):_.fA(zCp)},eCL=function(p){y1n(p);
p.iframeLoaded_=!0;p.JSC$10348_iframe_.tabIndex=0;p.isVisible()&&p.focus()};
SQ.prototype.handleKeydown_=function(p){p.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),p.stopPropagation(),p.preventDefault())};
var CjU=function(p,J){var S=p.JSC$10346_gadgetsDomHelper_;HOk(function(){J(S.getWindow().gadgets.rpc)},S)};
SQ.prototype.setUrl=function(p){p=_.pU(new _.V1(p),"rpcService",this.targetId_);_.pU(p,"rpctoken",this.rpcToken_);_.Ff(p,"rpctoken="+this.rpcToken_);_.ZI(p,"https");this.JSC$10348_url_=p.toString();this.JSC$10348_iframe_&&(this.JSC$10348_iframe_.src=this.JSC$10348_url_)};
var BGM=function(p,J){p.callback_=J;CjU(p,(0,_.tT)(function(S){S.register(this.targetId_,(0,_.tT)(this.handlePickerAction_,this))},p))};
SQ.prototype.handlePickerAction_=function(p){var J=p.action;J=="loaded"&&(this.loadedFired_=!0,U98(this,new ILW(this.isVisible())),sVE(this),Z1v(this),Es(this).unlisten(this.JSC$10297_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10348_iframe_.tabIndex=0);J!="picked"&&J!="cancel"||this.setVisible(!1);this.callback_(p)};
var sVE=function(p){p.JSC$10348_appId_&&U98(p,new clX(p.JSC$10348_appId_,window.location.protocol+"//"+window.location.host))};
SQ.prototype.setRelayUrl=function(p){CjU(this,(0,_.tT)(function(J){J.setRelayUrl(this.targetId_,p)},this))};
var U98=function(p,J){p.useGapi_&&Cup(J,p.iframeManager_).then(null,function(){p.callback_({action:"error"})});
CjU(p,(0,_.tT)(function(S){S.call(this.targetId_,"picker",null,J)},p))};
SQ.prototype.resizePicker_=function(){var p=lI(this.JSC$10297_dom_.JSC$9481_document_)||window;if(_.LC(_.I7(this.JSC$10348_url_),"ignoreLimits")=="true")p=new _.yF(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.LC(_.I7(this.JSC$10348_url_),"shadeDialog")=="true"){var J=Xf8(this);J=ws8(J);var S=_.Bs(p);p=S.width-80;S=S.height-40;J&&(p-=J.left?J.left:0,p-=J.right?J.right:0,S-=J.top?J.top:0,S-=J.bottom?J.bottom:0);p=new _.yF(p>0?p:0,S>0?S:0)}else(J=this.preferredDialogWidth_)?(J=Math.max(320,
Math.min(1051,J)),(S=this.preferredDialogHeight_)||(S=_.Bs(p).height*.85),S=Math.max(480,Math.min(650,S))):(J=_.Bs(p),S=J.width*.618,S=S<J.height?Math.round(Math.max(480,Math.min(650,S*.85))):Math.round(Math.max(480,Math.min(650,J.height*.85))),J=Math.round(S/.618)),p=_.Bs(p),J=Math.min(J,Math.max(p.width,320)),S=Math.min(S,Math.max(p.height,480)),p=new _.yF(J,S);_.q9q(this.getContentElement(),p);this.reposition()};
SQ.prototype.reposition=function(){if(_.LC(_.I7(this.JSC$10348_url_),"shadeDialog")=="true"){var p=Eo4(this.getElement()),J=_.Bs(this.JSC$10297_dom_.getWindow());p=Math.floor(J.width/2-p.width/2);J=Xf8(this);if(J=ws8(J)){var S=J.left?J.left:0;S+=J.right?J.right:0;p=Math.floor(p-S/2)}p=p>0?p:0;J=U9(this.JSC$10297_dom_).y;r7(this.getElement(),p,J)}else SQ.superClass_.reposition.call(this)};
SQ.prototype.setVisible=function(p){if(p!=this.isVisible()&&this.autoSizeDialog_){var J=this.JSC$10297_dom_.getWindow();p?(this.resizePicker_(),Es(this).listen(J,"resize",this.resizePicker_),this.iframeLoaded_||Es(this).listen(J,"keydown",this.handleKeydown_)):(Es(this).unlisten(J,"resize",this.resizePicker_),this.iframeLoaded_||Es(this).unlisten(J,"keydown",this.handleKeydown_))}SQ.superClass_.setVisible.call(this,p);U98(this,new ILW(p))};
SQ.prototype.focus=function(){SQ.superClass_.focus.call(this);if(this.JSC$10348_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10348_iframe_.focus()}catch(p){}};var fy=function(p,J){J=J===void 0?SQ:J;Yc.call(this,p);this.pickerConstructor=J;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_=[]};
_.Q(fy,pBw);fy.prototype.JSC$10353_disposeOnHide_=!1;
fy.prototype.build=function(){this.JSC$10254_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10254_appId_);this.getRelayUrl()||this.setRelayUrl(_.bl(_.Ff(_.mb(_.I7(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var p=new this.pickerConstructor(gVn(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);p.JSC$10330_disposeOnHide_=this.JSC$10353_disposeOnHide_;
p.JSC$10348_appId_=this.JSC$10254_appId_;p.loadedFired_&&sVE(p);BGM(p,this.callback_);return p};
var tqd=function(p){p.urlParamMap_.set("multiselectEnabled","true");return p};
_.R=fy.prototype;_.R.getHeight=function(){return this.dialogHeight_};
_.R.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.R.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.R.getTitle=function(){return this.urlParamMap_.get("title")};
_.R.getWidth=function(){return this.dialogWidth_};
var hC8=function(p){p.JSC$10353_disposeOnHide_=void 0;return p};
fy.prototype.setRelayUrl=function(p){this.urlParamMap_.set("parent",p);return this};
var D9p=function(p,J){p.urlParamMap_.set("selectButtonLabel",J);return p};
fy.prototype.setSize=function(p,J){this.dialogWidth_=p;this.dialogHeight_=J;return this};
fy.prototype.setTitle=function(p){this.urlParamMap_.set("title",p);return this};
var gVn=function(p){p.postProcessors_.length&&p.urlParamMap_.set("pp",JSON.stringify(p.postProcessors_));p.urlParamMap_.set("nav",uK8(p.nav_));var J=new _.V1(p.getBaseUrl());p.urlParamMap_.forEach(function(S,H){_.pU(J,H,S)});
return J};var TGn=function(p,J){p.name!==void 0?(this.name=p.name,this.code=kXE[p.name]):(this.code=p=p.code,this.name=NGp(p));_.pL.call(this,RjL("%s %s",this.name,J))};
_.SJ(TGn,_.pL);var NGp=function(p){var J=_.T6.findKey(kXE,function(S){return p==S});
if(J===void 0)throw Error("hb`"+p);return J},pi={},kXE=(pi.AbortError=3,pi.EncodingError=5,pi.InvalidModificationError=9,pi.InvalidStateError=7,pi.NotFoundError=1,pi.NotReadableError=4,pi.NoModificationAllowedError=6,pi.PathExistsError=12,pi.QuotaExceededError=10,pi.SecurityError=2,pi.SyntaxError=8,pi.TypeMismatchError=11,pi);var d9d=function(p,J){_.yr.call(this,p.type,J);this.event_=p};
_.SJ(d9d,_.yr);var u_d=function(p,J,S){S===void 0&&(S=p.size);return p.slice?p.slice(J,S):null};var bOv=new WeakMap,GxL=function(p,J){p=[p];for(var S=J.length-1;S>=0;--S)p.push(typeof J[S],J[S]);return p.join("\v")};_.F$w(function(){if(!_.Hg.Blob)return!1;var p=new Uint8Array(100);try{var J=new Blob([p])}catch(S){return!1}return J.size!=100?!1:!0});
var lxv=_.F$w(function(){if(!_.Hg.Blob)return!1;var p=new Uint8Array(100);try{var J=new Blob([p])}catch(S){return!1}return u_d(J,0,1)===null?!1:!0});_.Hg.U3bHHf!=null||(_.Hg.U3bHHf=0);_.Hg.U3bHHf++;_.VqM=new WeakMap;_.qB8=new WeakMap;var fki={};var X4=void 0;var Aq3=Symbol("pb");var g_X=ZD("WizInjectionContext_Dispatcher");var v5=Symbol("qb");var Ug,kv;Ug=function(){this.afterRenderCallbacks=null};
_.$9X=Symbol("rb");kv=function(p){this.props=p;this.__unmounted=!1};
kv.prototype.didPatch=function(){};
kv.prototype.didMount=function(){};
kv.prototype.didUnmount=function(){};
kv.prototype.didUpdate=function(){};_.C4i=ZD("WizInjectionContext_RootElement");var Bgk=ZD("WizInjectionContext_AppContext"),yq3=ZD("WizInjectionContext_ModelRootElement"),U1W=ZD("WizInjectionContext_RendererData"),s6s=ZD("WizInjectionContext_InjectingConstructor"),Q6i=ZD("WizInjectionContext_AsyncDeps"),t9X={};var d1s=!1;var q3g={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:l3U,enableContextPerComponent:l3U,enableLazyTsx:Vt4,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:uXo,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var GA=Object.assign({},{attributes:{},handleError:function(p){throw p;}},q3g);var axv=Symbol("vb"),kT=Symbol("wb"),EQ4=Symbol("xb"),qIi=Symbol("yb"),ItW=kU(function(p){return o2(p)&&axv in p});var bf=null,F4=!1,OG=1,zA=Symbol("Cb"),yY={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var JG=Symbol("Db"),S2=Symbol("Eb"),PW=Symbol("Fb"),HHW=Object.assign({},yY,{value:JG,dirty:!0,error:null,equal:j6w,kind:"computed",producerMustRecompute:function(p){return p.value===JG||p.value===S2},
producerRecomputeValue:function(p){if(p.value===S2)throw Error("Z");var J=p.value;p.value=S2;var S=pLX(p),H=!1;try{var M=p.computation();mr(null);H=J!==JG&&J!==PW&&M!==PW&&p.equal(J,M)}catch(X){M=PW,p.error=X}finally{mr(S),p&&SIg(p)}H?p.value=J:(p.value=M,p.version++)}});var EVo=Object.assign({},yY,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var Rpt=function(){throw Error();};var ZHW=null,XLi=Object.assign({},yY,{equal:j6w,value:void 0,kind:"signal"});var nQi=Object.assign({},yY,{value:JG,dirty:!0,error:null,equal:j6w,kind:"linkedSignal",producerMustRecompute:function(p){return p.value===JG||p.value===S2},
producerRecomputeValue:function(p){if(p.value===S2)throw Error("Z");var J=p.value;p.value=S2;var S=pLX(p);try{var H=p.source();var M=p.computation(H,J===JG||J===PW?void 0:{source:p.sourceValue,value:J});p.sourceValue=H}catch(X){M=PW,p.error=X}finally{mr(S),p&&SIg(p)}J!==JG&&M!==PW&&p.equal(J,M)?p.value=J:(p.value=M,p.version++)}});Object.assign({},yY,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(p){p.schedule!==null&&p.schedule(p.ref)},
cleanupFn:function(){}});var ftg=Symbol("Gb"),Hl={},F4W=(Hl[ftg]=!0,Hl.debugName="[component]",Hl.getComponentStack=function(){for(var p=[],J=this;J;)OHi(J)&&p.push(J.debugName),J=J.parent;return p},Hl.registerSignal=function(){},Hl.registerEffect=function(){},Hl);var AVW=Symbol("Hb"),WW=Symbol("Ib");var QY=Array.isArray;var yVL;var YB4={},U8g=CSX(Object.assign({},{consumerAllowSignalWrites:!0},YB4)),gY=CSX(Object.assign({},{consumerAllowSignalWrites:!0},YB4));var gr=Symbol("Nb");var sG=null,tD4,hpi=null,D8s;var Ns=0,TA=!1,MP=function(){this.queue=new Set};
MP.prototype.schedule=function(p){this.queue.add(p)};
MP.prototype.remove=function(p){this.queue.delete(p)};
MP.prototype.clear=function(){this.queue.clear()};
var d89=Symbol("Ob"),Nf9=Symbol("Pb"),XU=function(){MP.apply(this,arguments)};
_.Q(XU,MP);XU.prototype.flush=function(){if(this.queue.size){TA=!0;for(var p=_.K(this.queue),J=p.next();!J.done;J=p.next()){J=J.value;this.queue.delete(J);try{J.run()}catch(S){r1m(S)}}TA=!1}};
var jVq=function(){XU.apply(this,arguments)};
_.Q(jVq,XU);var Tfv=new jVq,wfU=function(){XU.apply(this,arguments)};
_.Q(wfU,XU);wfU.prototype.schedule=function(p){return _.G(function(J){if(J.nextAddress==1)return J.yield(Promise.resolve(),2);p.run();_.UK(J)})};
wfU.prototype.enqueue=function(p){this.queue.add(p)};
var ub9=new wfU,ir=function(){MP.apply(this,arguments)};
_.Q(ir,MP);ir.prototype.flush=function(){this.queue.size&&L4g(this.queue)};
var x9v=function(){ir.apply(this,arguments)};
_.Q(x9v,ir);x9v.prototype.schedule=function(p){p.version===0?p.run():this.queue.add(p)};
x9v.prototype.flush=function(){if(this.queue.size)if(GA.flushRenderEffectsDuringRender){var p=this.queue;this.queue=new Set;L4g(p)}else L4g(this.queue)};
var VD4=new x9v,c18=function(){ir.apply(this,arguments)};
_.Q(c18,ir);c18.prototype.schedule=function(p){return _.G(function(J){if(J.nextAddress==1)return J.yield(Promise.resolve(),2);p.run();_.UK(J)})};
c18.prototype.enqueue=function(p){this.queue.add(p)};
var YI3=new c18,IxU=function(){ir.apply(this,arguments)};
_.Q(IxU,ir);var atL=new IxU,jJg=[VD4,Tfv,atL],cVk=[ub9,YI3],Lz4=[VD4,atL,YI3],pJW=[].concat(_.dW(jJg),_.dW(cVk)),p98=[];ZHW=function(){x8X();for(var p=_.K(p98),J=p.next();!J.done;J=p.next())J=J.value,J()};
var r1m=MW;var Ru={},JPM=Object.assign({},EVo,(Ru[axv]=!0,Ru.effectType=kT,Ru.isResettableContext=!0,Ru.consumerMarkedDirty=rVi,Ru.run=function(){Syk(this)},Ru.cleanup=function(){W$X(this)},Ru.componentStack=void 0,Ru.debugName="[effect]",Ru.destroy=function(){if(fU(this))for(var p=this.producers;p!==void 0;)p=JVi(p);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;p=_.K(Lz4);for(var J=p.next();!J.done;J=p.next())J.value.remove(this);e2w(this)},Ru[Symbol.dispose]=function(){this.destroy()},Ru)),SJE=Object.assign({},JPM,{version:1,
dirty:!1});var HEX=Object.assign({},JPM,{effectType:kT});var M5W=Object.assign({},JPM,{effectType:EQ4});var WoX=Symbol("Rb");var izi=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var ywi={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},CZX=
{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}]}},zEW={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},sZw=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],UyW={"*":{async:1,dir:0,loading:2,target:3}};var Hl8=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Ki={},t5W=(Ki[1]=null,Ki[2]=function(p,J){return J instanceof wy?cG(J):lv.toString()},Ki[3]=function(p,J){return NG(J)?_.Tu(J):Hl8.test(String(J))?String(J):lv.toString()},Ki[4]=function(p,J){return J instanceof Uq?_.gy(J):lv.toString()},Ki[5]=function(p,J){return String(J)},Ki[7]=null,Ki[8]=null,Ki[10]=null,Ki);var CTi=Symbol("Ub");var FcW=function(p){var J=MU4,S=p,H="",M="",X=1;p<0&&(p=-p);if(p===Infinity)p=(Infinity*Math.sign(S)).toString();else{for(var Z=0;Z<X9L.length;Z++){var n=X9L[Z];X=J[n];if(p>=X||X<=1&&p>.1*X){H=n;break}}H?(H+="B",M=" "):X=1;p=Math.round(S/X*10)/10+M+H}return p},X9L="Y Z E P T G M K  m u n".split(" "),MU4={"":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};_.il8=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 od={};RegExp.prototype.hasOwnProperty("sticky");var KNL=function(p){p=String(p);for(var J=function(H,M,X){for(var Z=Math.min(M.length-X,H.length),n=0;n<Z;n++){var b=M[X+n];if(H[n]!==("A"<=b&&b<="Z"?b.toLowerCase():b))return!1}return!0},S=0;(S=p.indexOf("<",S))!=-1;){if(J("\x3c/script",p,S)||J("\x3c!--",p,S))return"zSoyz";
S+=1}return p};var I2={default:"__default"};var dyW=Object.prototype.hasOwnProperty;kU9.prototype=Object.create(null);var vJ=V5X();var nV=null;var Loi=function(p){this.created=[];this.deleted=[];this.node=p};var phL=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var p=this,J=p;p;)J=p,p=p.parentNode;return J};var ayg=function(p,J){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=p;this.key=J;this.text=void 0};var Mz=null,Xa=null,Sn=null,Rd=null,wJw=[],jZX=YyW,KV=[],ZJ=[],QAt=function(p){return JSk(function(J,S,H){Sn=Xa=J;Xa=null;S(H);rwv(null);Xa=Sn;Sn=Sn.parentNode;return J},p)}(),WVk=function(p){return JSk(function(J,S,H){var M={nextSibling:J};
Xa=M;S(H);Sn&&rwv(J.nextSibling);return M===Xa?null:Xa},p)}();var GV=[],Hz9=0;var be=new kU9;var Wi=new kU9;var Ra8=V5X(),Gdg=Ra8[I2.default],nd4=Ra8.style,RtX=["focusin","focusout"],FNw="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var pfv=function(){},qLi=function(){},Xfi=function(){},SBs=function(){};var Fa=Symbol("bc");var Puv,ASw=Oz9;var QS=Symbol("cc");var Mq4=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(" ")),
H1v=new Set(["a","font","script","style","title"]);_.W5={setUp:tTi,tearDown:tTi,log:tTi,logNodeRange:tTi,graft:function(p,J){J()}};var t4={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var h4=null,DJ=function(p,J){kv.call(this,p);var S=this;this.functionComponent=J;this.hooks=[];this.hookCounter=0;this.disposeEffects=qs(function(H){S.effectContext=H;_.VY(function(){rSX(S,S.el)})},GA.alwaysTrackContexts||!!X4)};
_.Q(DJ,kv);DJ.prototype.render=function(p){var J=h4;h4=this;this.hookCounter=0;var S=mr(gY),H=_.R2(this.effectContext);try{return E_t("render",this.componentName),this.functionComponent(p)}finally{Y3v("render",this.componentName),_.R2(H),mr(S),h4=J}};
_.vh.Object.defineProperties(DJ.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return sJX(this.functionComponent)}}});var i19=Symbol("qc"),Inv=function(p,J,S){this.afterRenderCallbacks=null;this.kind=p;this.props=J;this.children=S};
_.Q(Inv,Ug);Inv.prototype.render=function(){var p=cSs(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var J=_.K(this.afterRenderCallbacks),S=J.next();!S.done;S=J.next())S=S.value,p=S(p);return p};
Inv.prototype.getChildren=function(){return this.children};var Kzv=[];Rpt=function(p){throw Error("ob`"+p.debugName);};
(function(){var p=nV;nV=function(J){p==null||p(J);Z1X(J)}})();Object.assign({},SJE,{effectType:kT,elementRef:null,attributes:null,fn:function(){var p=this.elementRef;var J;p.element!=null||(p.element=(J=p.document.getElementById(p.value))!=null?J:void 0);p=p.element;for(J=this.attributes;J;){var S=J.signal();S!==J.prevValue&&(J.prevValue=S,J.namespace===1?p[J.name]=S:izi.has(J.name)?cW(p,J.name,S?"":null):cW(p,J.name,S));J=J.next}}});_.Nz.debugName="tbhMcf";_.TV.debugName="zyMFzb";Object.assign({},SJE,{effectType:kT});_.v.debugName="RlDudd";var nVk={nonNullableCondIsNull:function(){return Error("uc")}};var O19=function(){this.map=new Map};
O19.prototype.push=function(p,J){var S=this.map;S.has(p)&&(this.multi||(this.multi=new Map),this.multi.set(J,S.get(p)));S.set(p,J)};
O19.prototype.pop=function(p){var J=this.map,S=J.get(p),H;S!==void 0&&((H=this.multi)==null?0:H.has(S))?(J.set(p,this.multi.get(S)),this.multi.delete(S)):J.delete(p);return S};_.dY.debugName="nsTGHd";_.ue.debugName="vI1rtf";_.eCt={OUT_OF_ORDER_HOOK_CALL:function(p){return Error("vc`"+p)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(p,J){return Error("zc`"+((J===void 0?0:J)?"IDOM":"Reactive")+"`"+(le(p)?p.description:p))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(p,J){return Error("Ac`"+(le(p)?p.description:p)+"`"+J)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(p){return Error("Bc`"+(le(p)?p.description:p))},
USE_ELEMENT_NOT_ASSIGNED:function(p){return Error("Cc`"+(le(p)?p.description:p))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(p){return Error("Dc`"+(le(p)?p.description:p))}};Puv=LNv;var U9i=Symbol("Ec");Ed9({beforeRender:function(p){var J=_.R2(p.effectContext);try{var S;((S=p.__syncEffects)==null?0:S.length)&&tqL(p.__syncEffects)}finally{_.R2(J)}},
didPatch:function(p){var J=_.R2(p.effectContext);try{var S;((S=p.__syncEffects)==null?0:S.length)&&tqL(p.__syncEffects)}finally{_.R2(J)}},
didUnmount:function(p){var J;((J=p.hooks)==null?0:J.length)&&p.hooks.forEach(gVX)}});var KY8,Zl8,nOM;KY8=_.Hg.window;_.Yv=(KY8==null?void 0:(Zl8=KY8.yt)==null?void 0:Zl8.config_)||(KY8==null?void 0:(nOM=KY8.ytcfg)==null?void 0:nOM.data_)||{};_.m$("yt.config_",_.Yv);var GvL={},TGX=[];_.TG=function(p){var J=_.Yp.apply(1,arguments);var S=Error.call(this,p);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.args=[].concat(_.dW(J));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(_.TG,Error);var H7X=function(p,J,S){this.actionName=p;this.optionalAction=J===void 0?!1:J;this.args=S===void 0?null:S;this.returnValue=[]};_.Zz=function(p){this.name=p};_.S5=new _.Zz("signalAction");var wfs=/^[\w.]*$/,qB9={q:!0,search_query:!0},Vq4=String(lxX);var fQ;fQ=Symbol("Fc");_.ni=function(p){this.name=p};
_.ni.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var x9X=function(p){this.key=p},JP4=function(p){this.deferredKey=p},Ixs=function(){var p=this;
this.providers=new Map;this.JSC$10644_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(p.providers)}}};
Ixs.prototype.addProvider=function(p){this.providers.set(p.provide,p);var J=this.JSC$10644_deferred.get(p.provide);if(J)try{J.resolver(this.resolve(p.provide))}catch(S){J.rejector(S)}};
Ixs.prototype.resolve=function(p){return p instanceof JP4?blE(this,p):p instanceof x9X?mqU(this,p.key,[],!0):mqU(this,p,[])};
var blE=function(p,J){J=J.deferredKey;if(p.JSC$10644_deferred.has(J))return p.JSC$10644_deferred.get(J).promise;var S={};S.promise=new Promise(function(H,M){S.resolver=H;S.rejector=M});
p.JSC$10644_deferred.set(J,S);return S.promise},mqU=function(p,J,S,H){H=H===void 0?!1:H;
if(S.indexOf(J)>-1)throw Error("Gc`"+J);if(p.cachedValues.has(J))return p.cachedValues.get(J);if(!p.providers.has(J)){if(H)return;throw Error("Hc`"+J);}H=p.providers.get(J);S.push(J);if(H.useValue!==void 0)var M=H.useValue;else if(H.useFactory)M=H[fQ]?FY8(p,H[fQ],S):[],M=H.useFactory.apply(H,_.dW(M));else if(H.useClass){M=H.useClass;var X=M[fQ]?FY8(p,M[fQ],S):[];M=new (Function.prototype.bind.apply(M,[null].concat(_.dW(X))))}else throw Error("Ic`"+J);S.pop();H.skipCache||p.cachedValues.set(J,M);return M},
FY8=function(p,J,S){return J?J.map(function(H){return H instanceof x9X?mqU(p,H.key,S,!0):mqU(p,H,S)}):[]};var c1v;var HJ=new _.ni("ENDPOINT_HANDLER_TOKEN");_.My=new _.Zz("urlEndpoint");var vOU=function(){this.data=[];this.cachedPackedInt52=-1};
vOU.prototype.set=function(p,J){J=J===void 0?!0:J;0<=p&&p<52&&Number.isInteger(p)&&this.data[p]!==J&&(this.data[p]=J,this.cachedPackedInt52=-1)};
vOU.prototype.get=function(p){return!!this.data[p]};
var fOU=function(p){p.cachedPackedInt52===-1&&(p.cachedPackedInt52=p.data.reduce(function(J,S,H){return J+(S?Math.pow(2,H):0)},0));
return p.cachedPackedInt52};var vOs=function(p){var J=OlM;p=p===void 0?_.Id("yt.ads.biscotti.lastId_")||"":p;var S=Object,H=S.assign,M={};M.dt=m1L;M.flash="0";a:{try{var X=J.JSC$10650_win_.top.location.href}catch(I){X=2;break a}X=X?X===J.doc_.location.href?0:1:2}M=(M.frm=X,M);try{M.u_tz=-(new Date).getTimezoneOffset();try{var Z=cz.history.length}catch(I){Z=0}M.u_his=Z;var n;M.u_h=(n=cz.screen)==null?void 0:n.height;var b;M.u_w=(b=cz.screen)==null?void 0:b.width;var F;M.u_ah=(F=cz.screen)==null?void 0:F.availHeight;var f;M.u_aw=
(f=cz.screen)==null?void 0:f.availWidth;var O;M.u_cd=(O=cz.screen)==null?void 0:O.colorDepth}catch(I){}Z=J.JSC$10650_win_;try{var A=Z.screenX;var P=Z.screenY}catch(I){}try{var W=Z.outerWidth;var y=Z.outerHeight}catch(I){}try{var t=Z.innerWidth;var D=Z.innerHeight}catch(I){}try{var k=Z.screenLeft;var E=Z.screenTop}catch(I){}try{t=Z.innerWidth,D=Z.innerHeight}catch(I){}try{var a=Z.screen.availWidth;var q=Z.screen.availTop}catch(I){}A=[k,E,A,P,a,q,W,y,t,D];P=CW9(!1,J.JSC$10650_win_.top);W={};var w=w===
void 0?_.Hg:w;y=new vOU;"SVGElement"in w&&"createElementNS"in w.document&&y.set(0);t=nom();t["allow-top-navigation-by-user-activation"]&&y.set(1);t["allow-popups-to-escape-sandbox"]&&y.set(2);w.crypto&&w.crypto.subtle&&y.set(3);"TextDecoder"in w&&"TextEncoder"in w&&y.set(4);w=fOU(y);J=(W.bc=w,W.bih=P.height,W.biw=P.width,W.brdim=A.join(),W.vis=OVw(J.doc_),W.wgl=!!cz.WebGLRenderingContext,W);S=H.call(S,M,J);S.ca_type="image";p&&(S.bid=p);return S},OlM=new function(){var p=window.document;
this.JSC$10650_win_=window;this.doc_=p};
_.m$("yt.ads_.signals_.getAdSignalsString",function(p){return axX(vOs(p))});_.JF();navigator.userAgent.indexOf(" (CrKey ");var il9="XMLHttpRequest"in _.Hg?function(){return new XMLHttpRequest}:null;var APU="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),P7p=[].concat(_.dW(APU),["client_dev_set_cookie"]);var FYv={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"},Zl9="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(_.dW(APU)),WYX=!1,Gvt=_.fOs,$qt=mqs;var YSW=[{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 za8={messageWeights:[],callbackWeights:[{callback:BIX,weight:500},{callback:Uq9,weight:500}]};var $qL=function(){this.callbackWeights=[];this.messageWeights=[]},oO8,Ez9=function(){if(!oO8){var p=oO8=new $qL;
p.messageWeights.length=0;p.callbackWeights.length=0;K0k(p,za8)}return oO8},K0k=function(p,J){J.messageWeights&&p.messageWeights.push.apply(p.messageWeights,J.messageWeights);
J.callbackWeights&&p.callbackWeights.push.apply(p.callbackWeights,J.callbackWeights)};_.SJ(_.sv,_.gp);_.sv.prototype.subscribe=function(p,J,S){var H=this.topics_[p];H||(H=this.topics_[p]=[]);var M=this.JSC$10674_key_;this.subscriptions_[M]=p;this.subscriptions_[M+1]=J;this.subscriptions_[M+2]=S;this.JSC$10674_key_=M+3;H.push(M);return M};
var eaL=function(p){var J=LH,S=!1,H=J.subscribe("handleError",function(M){S||(S=!0,this.unsubscribeByKey(H),p.apply(void 0,arguments))},J)};
_.sv.prototype.unsubscribe=function(p,J,S){if(p=this.topics_[p]){var H=this.subscriptions_;if(p=p.find(function(M){return H[M+1]==J&&H[M+2]==S}))return this.unsubscribeByKey(p)}return!1};
_.sv.prototype.unsubscribeByKey=function(p){var J=this.subscriptions_[p];if(J){var S=this.topics_[J];this.publishDepth_!=0?(this.pendingKeys_.push(p),this.subscriptions_[p+1]=function(){}):(S&&_.uw(S,p),delete this.subscriptions_[p],delete this.subscriptions_[p+1],delete this.subscriptions_[p+2])}return!!J};
_.sv.prototype.publish=function(p,J){var S=this.topics_[p];if(S){var H=Array(arguments.length-1),M=arguments.length,X;for(X=1;X<M;X++)H[X-1]=arguments[X];if(this.async_)for(X=0;X<S.length;X++)M=S[X],WYn(this.subscriptions_[M+1],this.subscriptions_[M+2],H);else{this.publishDepth_++;try{for(X=0,M=S.length;X<M&&!this.isDisposed();X++){var Z=S[X];this.subscriptions_[Z+1].apply(this.subscriptions_[Z+2],H)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;S=this.pendingKeys_.pop();)this.unsubscribeByKey(S)}}return X!=
0}return!1};
var WYn=function(p,J,S){_.Do(function(){p.apply(J,S)})};
_.sv.prototype.clear=function(p){if(p){var J=this.topics_[p];J&&(J.forEach(this.unsubscribeByKey,this),delete this.topics_[p])}else this.subscriptions_.length=0,this.topics_={}};
_.sv.prototype.getCount=function(p){if(p){var J=this.topics_[p];return J?J.length:0}p=0;for(J in this.topics_)p+=this.getCount(J);return p};
_.sv.prototype.disposeInternal=function(){_.sv.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var LH=new _.sv;var WB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(WB,_.Kt);WB.prototype.getColdHashData=function(){return _.B_(this,3)};
WB.prototype.getHotHashData=function(){return _.B_(this,5)};
WB.prototype.setHotHashData=function(p){return _.g2(this,5,p)};var VxW=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(VxW,_.Kt);var fus=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(fus,_.Kt);_.R=fus.prototype;_.R.getDeviceId=function(){return _.B_(this,6)};
_.R.getExperimentIds=function(p){var J=_.wM(this,9,_.KP,3,!0);Lit(J,p);return J[p]};
_.R.getPlayerType=function(){return _.Uw(this,36)};
_.R.setHomeGroupInfo=function(p){return _.Qd(this,81,p)};
_.R.clearLocationPlayabilityToken=function(){return _.e9(this,89)};var tV=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(tV,_.Kt);tV.prototype.setKey=function(p){return _.g2(this,1,p)};
tV.prototype.getValue=function(){return g4(this,2,AmL)};
var AmL=[2,3,4,5,6];var Q5m=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Q5m,_.Kt);Q5m.prototype.setTrackingParams=function(p){return _.e9(this,1,_.gm(p,!1))};var Ob3=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Ob3,_.Kt);var EZX=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(EZX,_.Kt);EZX.prototype.getExperimentIds=function(p){var J=_.wM(this,5,_.$4W,3,!0);Lit(J,p);return J[p]};var N8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(N8,_.Kt);N8.prototype.getToken=function(){return _.W0(this,2)};
N8.prototype.setToken=function(p){return _.g2(this,2,p)};var Dt=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Dt,_.Kt);Dt.prototype.setSafetyMode=function(p){return _.zx(this,5,p)};var gf=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(gf,_.Kt);gf.prototype.setClient=function(p){return _.Qd(this,1,p)};var aYw={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 q4k;_.Te=function(){var p=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Hg.addEventListener("beforeinstallprompt",function(J){J.preventDefault();p.deferredInstallPrompt=J});
_.Hg.addEventListener("appinstalled",function(){p.appInstalledEventFired=!0},{once:!0})};
q4k=function(){if(!_.Hg.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Hg.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Hg.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Hg.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Hg.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(p){return"WEB_DISPLAY_MODE_UNKNOWN"}};var jRg=function(){this.syncHeaders=!0},wqw=function(p){var J={},S=[];
"USER_SESSION_ID"in _.Yv&&S.push({key:"u",value:_.jn("USER_SESSION_ID")});if(S=_.fV4(S))J.Authorization=S,S=p=p==null?void 0:p.sessionIndex,S===void 0&&(S=Number(_.jn("SESSION_INDEX",0)),S=isNaN(S)?0:S),_.z("voice_search_auth_header_removal")||(J["X-Goog-AuthUser"]=S.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Yv||(J["X-Origin"]=window.location.origin),p===void 0&&"DELEGATED_SESSION_ID"in _.Yv&&(J["X-Goog-PageId"]=_.jn("DELEGATED_SESSION_ID"));return J};var C7M={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var GT=_.Id("ytglobal.prefsUserPrefsPrefs_")||{},yPv;_.m$("ytglobal.prefsUserPrefsPrefs_",GT);_.br=function(){this.cookieName=_.jn("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.jn("ALT_PREF_COOKIE_DOMAIN","youtube.com");var p=_.tl.get(this.cookieName,void 0);p&&this.parse(p)};
_.Gv=function(){yPv||(yPv=new _.br);return yPv};
_.br.prototype.get=function(p,J){BIv(p);Uq8(p);p=GT[p]!==void 0?GT[p].toString():null;return p!=null?p:J?J:""};
_.br.prototype.set=function(p,J){BIv(p);Uq8(p);if(J==null)throw Error("Lc");GT[p]=J.toString()};
_.br.prototype.getFlag=function(p){return!!((s5L("f"+(Math.floor(p/31)+1))||0)&1<<p%31)};
_.b7=function(p,J,S){p="f"+(Math.floor(J/31)+1);J=1<<J%31;var H=s5L(p)||0;H=S?H|J:H&~J;H===0?delete GT[p]:(S=H.toString(16),GT[p]=S.toString())};
_.br.prototype.remove=function(p){BIv(p);Uq8(p);delete GT[p]};
_.br.prototype.save=function(){var p=!0;_.z("web_secure_pref_cookie_killswitch")&&(p=!1);_.hl(this.cookieName,this.dump(),63072E3,this.cookieDomain,p)};
_.br.prototype.clear=function(){_.T6.clear(GT)};
_.br.prototype.dump=function(){var p=[],J;for(J in GT)GT.hasOwnProperty(J)&&p.push(J+"="+encodeURIComponent(String(GT[J])));return p.join("&")};
var Uq8=function(p){if(/^f([1-9][0-9]*)$/.test(p))throw Error("Mc`"+p);},BIv=function(p){if(!/^\w+$/.test(p))throw Error("Nc`"+p);
},s5L=function(p){p=GT[p]!==void 0?GT[p].toString():null;
return p!=null&&/^[A-Fa-f0-9]+$/.test(p)?parseInt(p,16):null};
_.br.prototype.parse=function(p){p=decodeURIComponent(p).split("&");for(var J=0;J<p.length;J++){var S=p[J].split("="),H=S[0];(S=S[1])&&(GT[H]=S.toString())}};var dqL={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"},Y4v={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},rkX={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},lO4={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Jm;_.m6=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.uS=function(p,J,S){return p.addJob(J,0,S)};
_.m6.prototype.addLowPriorityJob=function(p,J){return this.addJob(p,1,J)};
_.oA=function(p,J,S){return p.addJob(J,2,S)};
_.bb=function(p,J,S){return p.addJob(J,3,S)};
_.SK=function(p,J,S){return p.addJob(J,4,S)};
Jm=function(p){var J=_.Id("yt.scheduler.instance.addImmediateJob");J?J(p):p()};
_.m6.prototype.debounce=function(p,J,S){var H=this,M=0,X=function(){M&&H.cancelJob(M);M=H.addJob(p,J,S);H.cancelDebouncedJobMap.set(X,M)};
return X};
_.m6.prototype.cancelThrottle=function(p){(p=this.cancelThrottledJobMap.get(p))&&p()};var FU=function(){_.m6.apply(this,arguments)},gO8;
_.Q(FU,_.m6);_.Qb=function(){FU.instance||(FU.instance=new FU);return FU.instance};
FU.prototype.addJob=function(p,J,S){S!==void 0&&Number.isNaN(Number(S))&&(S=void 0);var H=_.Id("yt.scheduler.instance.addJob");return H?H(p,J,S):S===void 0?(p(),NaN):_.WO(p,S||0)};
FU.prototype.cancelJob=function(p){if(p===void 0||!Number.isNaN(Number(p))){var J=_.Id("yt.scheduler.instance.cancelJob");J?J(p):_.CQ(p)}};
FU.prototype.start=function(){var p=_.Id("yt.scheduler.instance.start");p&&p()};
FU.prototype.pause=function(){var p=_.Id("yt.scheduler.instance.pause");p&&p()};
gO8=function(){_.Qb();var p=_.Id("yt.scheduler.instance.setPriorityThreshold");p&&p(4)};
_.wg=_.Qb();_.d1.prototype.set=function(p,J){J===void 0?this.mechanism.remove(p):this.mechanism.set(p,(0,_.uV)(J))};
_.d1.prototype.get=function(p){try{var J=this.mechanism.get(p)}catch(S){return}if(J!==null)try{return JSON.parse(J)}catch(S){throw"Storage: Invalid value was encountered";}};
_.d1.prototype.remove=function(p){this.mechanism.remove(p)};var vl=function(p){this.mechanism=p};
_.SJ(vl,_.d1);var tUn=function(p){this.data=p},hap=function(p){return p===void 0||p instanceof tUn?p:new tUn(p)};
vl.prototype.set=function(p,J){vl.superClass_.set.call(this,p,hap(J))};
vl.prototype.getWrapper=function(p){p=vl.superClass_.get.call(this,p);if(p===void 0||p instanceof Object)return p;throw"Storage: Invalid value was encountered";};
vl.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};_.SJ(uh,vl);_.Dq8=function(p){var J=p.creation;p=p.expiration;return!!p&&p<_.JF()||!!J&&J>_.JF()};
uh.prototype.set=function(p,J,S){if(J=hap(J)){if(S){if(S<_.JF()){uh.prototype.remove.call(this,p);return}J.expiration=S}J.creation=_.JF()}uh.superClass_.set.call(this,p,J)};
uh.prototype.getWrapper=function(p,J){var S=uh.superClass_.getWrapper.call(this,p);if(S)if(!J&&_.Dq8(S))uh.prototype.remove.call(this,p);else return S};var fi=function(){};
fi.prototype.next=function(){return OE};
var OE={done:!0,value:void 0},AG=function(p){return{value:p,done:!1}};
fi.prototype.__iterator__=function(){return this};
_.kvM=function(p){if(p instanceof fi)return p;if(typeof p.__iterator__=="function")return p.__iterator__(!1);if(_.qW(p)){var J=0,S=new fi;S.next=function(){for(;;){if(J>=p.length)return OE;if(J in p)return AG(p[J++]);J++}};
return S}throw Error("Oc");};var NIv=function(p){if(p instanceof Pl||p instanceof zT||p instanceof $D)return p;if(typeof p.next=="function")return new Pl(function(){return p});
if(typeof p[Symbol.iterator]=="function")return new Pl(function(){return p[Symbol.iterator]()});
if(typeof p.__iterator__=="function")return new Pl(function(){return p.__iterator__()});
throw Error("Pc");},Pl=function(p){this.func_=p};
Pl.prototype.__iterator__=function(){return new zT(this.func_())};
Pl.prototype[Symbol.iterator]=function(){return new $D(this.func_())};
Pl.prototype.toEs6=function(){return new $D(this.func_())};
var zT=function(p){this.JSC$10759_iter_=p};
_.Q(zT,fi);zT.prototype.next=function(){return this.JSC$10759_iter_.next()};
zT.prototype[Symbol.iterator]=function(){return new $D(this.JSC$10759_iter_)};
zT.prototype.toEs6=function(){return new $D(this.JSC$10759_iter_)};
var $D=function(p){Pl.call(this,function(){return p});
this.JSC$10762_iter_=p};
_.Q($D,Pl);$D.prototype.next=function(){return this.JSC$10762_iter_.next()};var TIn=function(){};var ou=function(){};
_.SJ(ou,TIn);ou.prototype.getCount=function(){for(var p=0,J=_.K(this),S=J.next();!S.done;S=J.next())p++;return p};
ou.prototype[Symbol.iterator]=function(){return NIv(this.__iterator__(!0)).toEs6()};
ou.prototype.clear=function(){var p=Array.from(this);p=_.K(p);for(var J=p.next();!J.done;J=p.next())this.remove(J.value)};_.SJ(lh,ou);_.R=lh.prototype;_.R.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var p=this.storage_;if(p)try{p.setItem("__sak","1");p.removeItem("__sak");var J=!0}catch(S){J=S instanceof DOMException&&(S.name==="QuotaExceededError"||S.code===22||S.code===1014||S.name==="NS_ERROR_DOM_QUOTA_REACHED")&&p&&p.length!==0}else J=!1;this.cachedIsStorageAvailable_=J}return this.cachedIsStorageAvailable_};
_.R.set=function(p,J){e2(this);try{this.storage_.setItem(p,J)}catch(S){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.R.get=function(p){e2(this);p=this.storage_.getItem(p);if(typeof p!=="string"&&p!==null)throw"Storage mechanism: Invalid value was encountered";return p};
_.R.remove=function(p){e2(this);this.storage_.removeItem(p)};
_.R.getCount=function(){e2(this);return this.storage_.length};
_.R.__iterator__=function(p){e2(this);var J=0,S=this.storage_,H=new fi;H.next=function(){if(J>=S.length)return OE;var M=S.key(J++);if(p)return AG(M);M=S.getItem(M);if(typeof M!=="string")throw"Storage mechanism: Invalid value was encountered";return AG(M)};
return H};
_.R.clear=function(){e2(this);this.storage_.clear()};
_.R.key=function(p){e2(this);return this.storage_.key(p)};
var e2=function(p){if(p.storage_==null)throw Error("Qc");p.isAvailable()||MW(Error("Qc"))};_.SJ(qJs,lh);_.SJ(aO3,lh);_.SJ(Vn,ou);Vn.prototype.set=function(p,J){this.mechanism_.set(this.JSC$10777_prefix_+p,J)};
Vn.prototype.get=function(p){return this.mechanism_.get(this.JSC$10777_prefix_+p)};
Vn.prototype.remove=function(p){this.mechanism_.remove(this.JSC$10777_prefix_+p)};
Vn.prototype.__iterator__=function(p){var J=this.mechanism_[Symbol.iterator](),S=this,H=new fi;H.next=function(){var M=J.next();if(M.done)return M;for(M=M.value;M.slice(0,S.JSC$10777_prefix_.length)!=S.JSC$10777_prefix_;){M=J.next();if(M.done)return M;M=M.value}return AG(p?M.slice(S.JSC$10777_prefix_.length):S.mechanism_.get(M))};
return H};_.pH=function(p){this.expiringStorage_=(p=_.qV(p))?new uh(p):null;this.JSC$10781_domain_=document.domain||window.location.hostname};
_.R=_.pH.prototype;_.R.hasLocalStorage=function(){return!!this.expiringStorage_};
_.R.set=function(p,J,S,H){S=S||31104E3;this.remove(p);if(this.hasLocalStorage())try{this.expiringStorage_.set(p,J,Date.now()+S*1E3);return}catch(X){}var M="";if(H)try{M=escape((0,_.uV)(J))}catch(X){return}else M=escape(J);_.hl(p,M,S,this.JSC$10781_domain_)};
_.R.get=function(p,J){var S=void 0,H=!this.hasLocalStorage();if(!H)try{S=this.expiringStorage_.get(p)}catch(M){H=!0}if(H&&(S=_.tl.get(p,void 0))&&(S=unescape(S),J))try{S=JSON.parse(S)}catch(M){this.remove(p),S=void 0}return S};
_.R.remove=function(p){this.hasLocalStorage()&&this.expiringStorage_.remove(p);_.kv4(p,"/",this.JSC$10781_domain_)};
_.R.getCreationTime=function(p){return this.hasLocalStorage()&&(p=(this.expiringStorage_.getWrapper(p)||{}).creation,typeof p==="number")?p:null};var YJW=function(){var p;return function(){p||(p=new _.pH("ytidb"));return p}}();var j5W;_.Ev=[];j5W=!1;var b$v=w9X||xq9;var Wl={},dqd=(Wl.AUTH_INVALID="No user identifier specified.",Wl.EXPLICIT_ABORT="Transaction was explicitly aborted.",Wl.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Wl.MISSING_INDEX="Index not created.",Wl.MISSING_OBJECT_STORES="Object stores not created.",Wl.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Wl.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Wl.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Wl.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Wl.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Wl.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Wl.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Wl),Q7={},u68=(Q7.AUTH_INVALID="ERROR",Q7.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Q7.EXPLICIT_ABORT="IGNORED",
Q7.IDB_NOT_SUPPORTED="ERROR",Q7.MISSING_INDEX="WARNING",Q7.MISSING_OBJECT_STORES="ERROR",Q7.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Q7.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Q7.QUOTA_EXCEEDED="WARNING",Q7.QUOTA_MAYBE_EXCEEDED="WARNING",Q7.UNKNOWN_ABORT="WARNING",Q7.INCOMPATIBLE_DB_VERSION="WARNING",Q7),Ci={},lOM=(Ci.AUTH_INVALID=!1,Ci.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Ci.EXPLICIT_ABORT=!1,Ci.IDB_NOT_SUPPORTED=!1,Ci.MISSING_INDEX=!1,Ci.MISSING_OBJECT_STORES=!1,Ci.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Ci.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Ci.QUOTA_EXCEEDED=!1,Ci.QUOTA_MAYBE_EXCEEDED=!0,Ci.UNKNOWN_ABORT=!0,Ci.INCOMPATIBLE_DB_VERSION=!1,Ci),cO=function(p,J,S,H,M){J=J===void 0?{}:J;S=S===void 0?dqd[p]:S;H=H===void 0?u68[p]:H;M=M===void 0?lOM[p]:M;_.TG.call(this,S,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:p},J));this.type=p;this.message=S;this.level=H;this.retryable=M;Object.setPrototypeOf(this,cO.prototype)};
_.Q(cO,_.TG);var VU8=function(p,J){cO.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:J,foundObjectStores:p},dqd.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,VU8.prototype)};
_.Q(VU8,cO);var IOi=function(p,J){var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.index=p;this.objectStore=J;Object.setPrototypeOf(this,IOi.prototype)};
_.Q(IOi,Error);var LYs=["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 Jq=function(p){this.executor=p},pO=function(p){var J=this;
this.state={status:"PENDING"};this.JSC$10809_onFulfilled=[];this.JSC$10809_onRejected=[];p=p.executor;var S=function(M){if(J.state.status==="PENDING"){J.state={status:"FULFILLED",value:M};M=_.K(J.JSC$10809_onFulfilled);for(var X=M.next();!X.done;X=M.next())X=X.value,X()}},H=function(M){if(J.state.status==="PENDING"){J.state={status:"REJECTED",
reason:M};M=_.K(J.JSC$10809_onRejected);for(var X=M.next();!X.done;X=M.next())X=X.value,X()}};
try{p(S,H)}catch(M){H(M)}};
pO.all=function(p){return new pO(new Jq(function(J,S){var H=[],M=p.length;M===0&&J(H);for(var X={i$jscomp$468:0};X.i$jscomp$468<p.length;X={i$jscomp$468:X.i$jscomp$468},++X.i$jscomp$468)pO.resolve(p[X.i$jscomp$468]).then(function(Z){return function(n){H[Z.i$jscomp$468]=n;M--;M===0&&J(H)}}(X)).catch(function(Z){S(Z)})}))};
pO.resolve=function(p){return new pO(new Jq(function(J,S){p instanceof pO?p.then(J,S):J(p)}))};
pO.reject=function(p){return new pO(new Jq(function(J,S){S(p)}))};
pO.prototype.then=function(p,J){var S=this,H=p!=null?p:S4v,M=J!=null?J:Jkv;return new pO(new Jq(function(X,Z){S.state.status==="PENDING"?(S.JSC$10809_onFulfilled.push(function(){qJU(S,S,H,X,Z)}),S.JSC$10809_onRejected.push(function(){aOq(S,S,M,X,Z)})):S.state.status==="FULFILLED"?qJU(S,S,H,X,Z):S.state.status==="REJECTED"&&aOq(S,S,M,X,Z)}))};
pO.prototype.catch=function(p){return this.then(void 0,p)};
var qJU=function(p,J,S,H,M){try{if(p.state.status!=="FULFILLED")throw Error("Tc");var X=S(p.state.value);X instanceof pO?EOn(p,J,X,H,M):H(X)}catch(Z){M(Z)}},aOq=function(p,J,S,H,M){try{if(p.state.status!=="REJECTED")throw Error("Uc");
var X=S(p.state.reason);X instanceof pO?EOn(p,J,X,H,M):H(X)}catch(Z){M(Z)}},EOn=function(p,J,S,H,M){J===S?M(new TypeError("Vc")):S.then(function(X){X instanceof pO?EOn(p,J,X,H,M):H(X)},function(X){M(X)})};var y7;y7=window;_.fO=y7.ytcsi&&y7.ytcsi.now?y7.ytcsi.now:y7.performance&&y7.performance.timing&&y7.performance.now&&y7.performance.timing.navigationStart?function(){return y7.performance.timing.navigationStart+y7.performance.now()}:function(){return(new Date).getTime()};var HB=function(p,J){this.JSC$10821_wrapped=p;this.options=J;this.transactionCount=0;this.startedMs=Math.round((0,_.fO)());this.hasUnknownAbortedTransaction=!1},Bl=function(){return _.z("idb_immediate_commit")},j54,w9v,g9,IOp;
HB.prototype.add=function(p,J,S){return _.KO(this,[p],{mode:"readwrite",enableRetries:!0,commit:Bl()},function(H){return H.objectStore(p).add(J,S)})};
HB.prototype.clear=function(p){return _.KO(this,[p],{mode:"readwrite",enableRetries:!0},function(J){return J.objectStore(p).clear()})};
HB.prototype.close=function(){this.JSC$10821_wrapped.close();var p;((p=this.options)==null?0:p.closed)&&this.options.closed()};
HB.prototype.count=function(p,J){return _.KO(this,[p],{mode:"readonly",enableRetries:!0,commit:Bl()},function(S){return S.objectStore(p).count(J)})};
var SD=function(p,J,S){p=p.JSC$10821_wrapped.createObjectStore(J,S);return new UE(p)};
HB.prototype.delete=function(p,J){return _.KO(this,[p],{mode:"readwrite",enableRetries:!0,commit:Bl()&&!(J instanceof IDBKeyRange)},function(S){return S.objectStore(p).delete(J)})};
var YJo=function(p,J){return _.KO(p,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(S){return S.objectStore("ResponseStore").index("byInterface").delete(J)})};
HB.prototype.get=function(p,J){return _.KO(this,[p],{mode:"readonly",enableRetries:!0,commit:Bl()},function(S){return S.objectStore(p).get(J)})};
HB.prototype.getAll=function(p,J,S){return _.KO(this,[p],{mode:"readonly",enableRetries:!0},function(H){return H.objectStore(p).getAll(J,S)})};
HB.prototype.put=function(p,J,S){return _.KO(this,[p],{mode:"readwrite",enableRetries:!0,commit:Bl()},function(H){return H.objectStore(p).put(J,S)})};
HB.prototype.objectStoreNames=function(){return Array.from(this.JSC$10821_wrapped.objectStoreNames)};
_.KO=function(p,J,S,H){var M,X,Z,n,b,F,f,O,A,P,W,y;return _.G(function(t){switch(t.nextAddress){case 1:var D={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof S==="string"?D.mode=S:Object.assign(D,S);M=D;p.transactionCount++;X=M.enableRetries?3:1;Z=0;case 2:if(n){t.jumpTo(4);break}Z++;b=Math.round((0,_.fO)());_.oI(t,5);F=p.JSC$10821_wrapped.transaction(J,M.mode);D=t.yield;var k=!!M.commit;var E=new M1(F);k=rPn(E,H,k);return D.call(t,k,7);case 7:return f=t.yieldResult,O=Math.round((0,_.fO)()),
j54(p,b,O,Z,void 0,J.join(),M),t.return(f);case 5:A=_.BZ(t);P=Math.round((0,_.fO)());W=pqL(A,p.JSC$10821_wrapped.name,J.join(),p.JSC$10821_wrapped.version);if((y=W instanceof cO&&!W.retryable)||Z>=X)j54(p,b,P,Z,W,J.join(),M),n=W;t.jumpTo(2);break;case 4:return t.return(Promise.reject(n))}})};
j54=function(p,J,S,H,M,X,Z){J=S-J;M?(M instanceof cO&&(M.type==="QUOTA_EXCEEDED"||M.type==="QUOTA_MAYBE_EXCEEDED")&&r1("QUOTA_EXCEEDED",{dbName:w1(p.JSC$10821_wrapped.name),objectStoreNames:X,transactionCount:p.transactionCount,transactionMode:Z.mode}),M instanceof cO&&M.type==="UNKNOWN_ABORT"&&(S-=p.startedMs,S<0&&S>=2147483648&&(S=0),r1("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:X,transactionDuration:J,transactionCount:p.transactionCount,dbDuration:S}),p.hasUnknownAbortedTransaction=!0),
w9v(p,!1,H,X,J,Z.tag),_.Ya(M)):w9v(p,!0,H,X,J,Z.tag)};
w9v=function(p,J,S,H,M,X){r1("TRANSACTION_ENDED",{objectStoreNames:H,connectionHasUnknownAbortedTransaction:p.hasUnknownAbortedTransaction,duration:M,isSuccessful:J,tryCount:S,tag:X===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":X})};
HB.prototype.getName=function(){return this.JSC$10821_wrapped.name};
var UE=function(p){this.JSC$10836_wrapped=p};
UE.prototype.add=function(p,J){return S9(this.JSC$10836_wrapped.add(p,J))};
UE.prototype.autoIncrement=function(){return this.JSC$10836_wrapped.autoIncrement};
UE.prototype.clear=function(){return S9(this.JSC$10836_wrapped.clear()).then(function(){})};
var HL=function(p,J,S){p.JSC$10836_wrapped.createIndex(J,S,{unique:!1})};
UE.prototype.count=function(p){return S9(this.JSC$10836_wrapped.count(p))};
var xq8=function(p,J){return nO(p,{query:J},function(S){return S.delete().then(function(){return S.continue()})}).then(function(){})};
UE.prototype.delete=function(p){return p instanceof IDBKeyRange?xq8(this,p):S9(this.JSC$10836_wrapped.delete(p))};
UE.prototype.get=function(p){return S9(this.JSC$10836_wrapped.get(p))};
UE.prototype.getAll=function(p,J){return"getAll"in IDBObjectStore.prototype?S9(this.JSC$10836_wrapped.getAll(p,J)):cPo(this,p,J)};
var cPo=function(p,J,S){var H=[];return nO(p,{query:J},function(M){if(!(S!==void 0&&H.length>=S))return H.push(M.getValue()),M.continue()}).then(function(){return H})};
UE.prototype.index=function(p){try{return new sE(this.JSC$10836_wrapped.index(p))}catch(J){if(J instanceof Error&&J.name==="NotFoundError")throw new IOi(p,this.JSC$10836_wrapped.name);throw J;}};
UE.prototype.getName=function(){return this.JSC$10836_wrapped.name};
UE.prototype.keyPath=function(){return this.JSC$10836_wrapped.keyPath};
UE.prototype.put=function(p,J){return S9(this.JSC$10836_wrapped.put(p,J))};
var nO=function(p,J,S){p=p.JSC$10836_wrapped.openCursor(J.query,J.direction);return IOp(p).then(function(H){return Xqs(H,S)})},M1=function(p){var J=this;
this.JSC$10844_wrapped=p;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(S,H){J.JSC$10844_wrapped.addEventListener("complete",function(){S()});
J.JSC$10844_wrapped.addEventListener("error",function(M){M.currentTarget===M.target&&H(J.JSC$10844_wrapped.error)});
J.JSC$10844_wrapped.addEventListener("abort",function(){var M=J.JSC$10844_wrapped.error;if(M)H(M);else if(!J.aborted){M=cO;for(var X=J.JSC$10844_wrapped.objectStoreNames,Z=[],n=0;n<X.length;n++){var b=X.item(n);if(b===null)throw Error("Wc");Z.push(b)}M=new M("UNKNOWN_ABORT",{objectStoreNames:Z.join(),dbName:J.JSC$10844_wrapped.db.name,mode:J.JSC$10844_wrapped.mode});H(M)}})})},rPn=function(p,J,S){var H=new Promise(function(M,X){try{var Z=J(p);
S&&p.commit();Z.then(function(n){M(n)}).catch(X)}catch(n){X(n),p.abort()}});
return Promise.all([H,p.done]).then(function(M){return _.K(M).next().value})};
M1.prototype.abort=function(){this.JSC$10844_wrapped.abort();this.aborted=!0;throw new cO("EXPLICIT_ABORT");};
M1.prototype.commit=function(){if(!this.aborted){var p,J;(J=(p=this.JSC$10844_wrapped).commit)==null||J.call(p)}};
M1.prototype.objectStore=function(p){p=this.JSC$10844_wrapped.objectStore(p);var J=this.objectStoreCache.get(p);J||(J=new UE(p),this.objectStoreCache.set(p,J));return J};
var sE=function(p){this.JSC$10846_wrapped=p};
sE.prototype.count=function(p){return S9(this.JSC$10846_wrapped.count(p))};
sE.prototype.delete=function(p){return _.O3(this,{query:p},function(J){return J.delete().then(function(){return J.continue()})})};
sE.prototype.get=function(p){return S9(this.JSC$10846_wrapped.get(p))};
sE.prototype.getAll=function(p,J){return"getAll"in IDBIndex.prototype?S9(this.JSC$10846_wrapped.getAll(p,J)):LYU(this,p,J)};
var LYU=function(p,J,S){var H=[];return _.O3(p,{query:J},function(M){if(!(S!==void 0&&H.length>=S))return H.push(M.getValue()),M.continue()}).then(function(){return H})};
sE.prototype.keyPath=function(){return this.JSC$10846_wrapped.keyPath};
sE.prototype.unique=function(){return this.JSC$10846_wrapped.unique};
_.O3=function(p,J,S){p=p.JSC$10846_wrapped.openCursor(J.query===void 0?null:J.query,J.direction===void 0?"next":J.direction);return IOp(p).then(function(H){return Xqs(H,S)})};
g9=function(p,J){this.request=p;this.cursor=J};
IOp=function(p){return S9(p).then(function(J){return J?new g9(p,J):null})};
g9.prototype.continue=function(p){this.cursor.continue(p);return IOp(this.request)};
g9.prototype.delete=function(){return S9(this.cursor.delete()).then(function(){})};
g9.prototype.getValue=function(){return this.cursor.value};
g9.prototype.update=function(p){return S9(this.cursor.update(p))};var tG=function(p,J){this.name=p;this.options=J;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},pqd;
tG.prototype.openDb=function(p,J,S){S=S===void 0?{}:S;return R0W(p,J,S)};
tG.prototype.delete=function(p){p=p===void 0?{}:p;return _.i4(this.name,p)};
pqd=function(p,J){return new cO("INCOMPATIBLE_DB_VERSION",{dbName:p.name,oldVersion:p.options.version,newVersion:J})};
_.R6=function(p,J){if(!J)throw LQ("openWithToken",w1(p.name));return p.open()};
tG.prototype.open=function(){var p=this;if(!this.isCompatible)throw pqd(this);if(this.connectionPromise)return this.connectionPromise;var J,S=function(){p.connectionPromise===J&&(p.connectionPromise=void 0)},H={blocking:function(X){X.close()},
closed:S,terminated:S,upgrade:this.options.upgrade},M=function(){var X,Z,n,b,F,f,O,A,P,W;return _.G(function(y){switch(y.nextAddress){case 1:return Z=(X=Error().stack)!=null?X:"",_.oI(y,2),y.yield(p.openDb(p.name,p.options.version,H),4);case 4:for(var t=n=y.yieldResult,D=p.options,k=[],E=_.K(Object.keys(D.objectStores)),a=E.next();!a.done;a=E.next()){a=a.value;var q=D.objectStores[a],w=q.removedAtVersion===void 0?Number.MAX_VALUE:q.removedAtVersion;!(t.JSC$10821_wrapped.version>=q.addedAtVersion)||
t.JSC$10821_wrapped.version>=w||t.JSC$10821_wrapped.objectStoreNames.contains(a)||k.push(a)}b=k;if(b.length===0){y.jumpTo(5);break}F=Object.keys(p.options.objectStores);f=n.objectStoreNames();if(p.timesReopenedToFixMissingObjectStore<_.PO("ytidb_reopen_db_retries",0))return p.timesReopenedToFixMissingObjectStore++,n.close(),_.Ya(new cO("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:p.name,expectedObjectStores:F,foundObjectStores:f})),y.return(M());if(!(p.timesDeletedToFixMissingObjectStore<_.PO("ytidb_remake_db_retries",
1))){y.jumpTo(6);break}p.timesDeletedToFixMissingObjectStore++;return y.yield(p.delete(),7);case 7:return _.Ya(new cO("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:p.name,expectedObjectStores:F,foundObjectStores:f})),y.return(M());case 6:throw new VU8(f,F);case 5:return y.return(n);case 2:O=_.BZ(y);if(O instanceof DOMException?O.name!=="VersionError":"DOMError"in self&&O instanceof DOMError?O.name!=="VersionError":!(O instanceof Object&&"message"in O)||O.message!=="An attempt was made to open a database using a lower version than the existing version."){y.jumpTo(8);
break}return y.yield(p.openDb(p.name,void 0,Object.assign({},H,{upgrade:void 0})),9);case 9:A=y.yieldResult;P=A.JSC$10821_wrapped.version;if(p.options.version!==void 0&&P>p.options.version+1)throw A.close(),p.isCompatible=!1,pqd(p,P);return y.return(A);case 8:throw S(),O instanceof Error&&!_.z("ytidb_async_stack_killswitch")&&(O.stack=O.stack+"\n"+Z.substring(Z.indexOf("\n")+1)),pqL(O,p.name,"",(W=p.options.version)!=null?W:-1);}})};
return this.connectionPromise=J=M()};var Kgw=new tG("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(p,J){J(1)&&SD(p,"databases",{keyPath:"actualName"})}});var vZ4,mwk=new function(){}(new function(){});new _.iy;var Jk8=function(p,J){tG.call(this,p,J);this.options=J;jB(p)};
_.Q(Jk8,tG);var QR4=function(p,J){var S;return function(){S||(S=new Jk8(p,J));return S}};
Jk8.prototype.openDb=function(p,J,S){S=S===void 0?{}:S;return(this.options.shared?z0W:PoX)(p,J,Object.assign({},S))};
Jk8.prototype.delete=function(p){p=p===void 0?{}:p;return(this.options.shared?Wgs:$wX)(this.name,p)};var S48={},Co9=vB("ytGcfConfig",{objectStores:(S48.coldConfigStore={addedAtVersion:1},S48.hotConfigStore={addedAtVersion:1},S48),shared:!1,upgrade:function(p,J){J(1)&&(HL(SD(p,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),HL(SD(p,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var H$n=function(){_.gp.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var p=_.Id("yt.gcf.config.hotUpdateCallbacks");p?(this.localHotConfigJobQueue=[].concat(_.dW(p)),this.sharedHotConfigJobQueue=p):(this.sharedHotConfigJobQueue=[],_.m$("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.Q(H$n,_.gp);H$n.prototype.disposeInternal=function(){for(var p=_.K(this.localHotConfigJobQueue),J=p.next();!J.done;J=p.next()){var S=this.sharedHotConfigJobQueue;J=S.indexOf(J.value);J>=0&&S.splice(J,1)}this.localHotConfigJobQueue.length=0;_.gp.prototype.disposeInternal.call(this)};var lS=function(){var p=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new H$n;this.TEST_ONLY={initializeConfigDb:function(){p.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return p.coldGlobalConfigGroup},
setHotConfigGroup:function(J){Mx8(p,J)},
setHotHashData:function(J){p.setHotHashData(J)},
setColdConfigGroup:function(J){XqU(p,J)},
getColdHashData:function(){return p.coldHashData},
getHotHashData:function(){return p.hotHashData},
getHotConfigGroup:function(){return p.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return i$8()},
getExportedHotConfigGroup:function(){return hG()},
getExportedColdHashData:function(){return _.Id("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Id("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){R04(p)},
resetInstance:function(){p.setHotHashData(void 0);Kg8(p);delete lS.instance},
setDebounceTimer:function(J){p.debounceTimer=J},
getDebounceTimer:function(){return p.debounceTimer}}},Z$8=function(){if(!lS.instance){var p=new lS;
lS.instance=p}return lS.instance},b$8=function(p){var J;
_.G(function(S){if(S.nextAddress==1)return _.z("start_client_gcf")||_.z("delete_gcf_config_db")?_.z("start_client_gcf")?S.yield(_.F$(),3):S.jumpTo(2):S.return();S.nextAddress!=2&&((J=S.yieldResult)&&_.NV()&&!_.z("delete_gcf_config_db")?(p.isConfigDbInitialized=!0,R04(p)):(nZn(p),Grq(p)));return _.z("delete_gcf_config_db")?S.yield(txX(),0):S.jumpTo(0)})},VH=function(){var p;
return(p=hG())!=null?p:_.jn("RAW_HOT_CONFIG_GROUP")},mwm=function(p){var J,S,H,M,X,Z;
return _.G(function(n){switch(n.nextAddress){case 1:if(p.hotGlobalConfigGroup)return n.return(hG());if(!p.isConfigDbInitialized)return J=LQ("getHotConfig IDB not initialized"),_.SB(J),n.return(Promise.reject(J));S=b4();H=_.jn("TIME_CREATED_MS");if(!S){M=LQ("getHotConfig token error");_.SB(M);n.jumpTo(2);break}return n.yield(gZk(S),3);case 3:if((X=n.yieldResult)&&X.timestamp>H)return Mx8(p,X.config),p.setHotHashData(X.hashData),n.return(hG());case 2:Grq(p);if(!(S&&p.hotGlobalConfigGroup&&p.hotHashData)){n.jumpTo(4);
break}return n.yield(Bl3(p.hotGlobalConfigGroup,p.hotHashData,S,H),4);case 4:return p.hotGlobalConfigGroup?n.return(hG()):(Z=new _.TG("Config not available in ytConfig"),_.SB(Z),n.return(Promise.reject(Z)))}})},vZM=function(p){var J,S,H,M,X,Z;
return _.G(function(n){switch(n.nextAddress){case 1:if(p.coldGlobalConfigGroup)return n.return(i$8());if(!p.isConfigDbInitialized)return J=LQ("getColdConfig IDB not initialized"),_.SB(J),n.return(Promise.reject(J));S=b4();H=_.jn("TIME_CREATED_MS");if(!S){M=LQ("getColdConfig");_.SB(M);n.jumpTo(2);break}return n.yield(sRt(S),3);case 3:if((X=n.yieldResult)&&X.timestamp>H)return XqU(p,X.config),Fgo(p,X.configData),Kg8(p,X.hashData),n.return(i$8());case 2:nZn(p);if(!(S&&p.coldGlobalConfigGroup&&p.coldHashData&&
p.configData)){n.jumpTo(4);break}return n.yield(UwW(p.coldGlobalConfigGroup,p.coldHashData,p.configData,S,H),4);case 4:return p.coldGlobalConfigGroup?n.return(i$8()):(Z=new _.TG("Config not available in ytConfig"),_.SB(Z),n.return(Promise.reject(Z)))}})},R04=function(p){if(!p.hotGlobalConfigGroup||!p.coldGlobalConfigGroup){if(!b4()){var J=LQ("scheduleGetConfigs");
_.SB(J)}p.initJob||(p.initJob=_.wg.addLowPriorityJob(function(){return _.G(function(S){switch(S.nextAddress){case 1:return _.oI(S,2),S.yield(mwm(p),4);case 4:_.X$(S,3);break;case 2:_.BZ(S);case 3:return _.oI(S,5),S.yield(vZM(p),7);case 7:_.X$(S,6);break;case 5:_.BZ(S);case 6:p.initJob&&(p.initJob=0),_.UK(S)}})},100))}},Uri=function(p,J,S){var H,M,X;
return _.G(function(Z){switch(Z.nextAddress){case 1:if(!_.z("start_client_gcf")){Z.jumpTo(0);break}S&&Mx8(p,S);p.setHotHashData(J);H=b4();if(!H){Z.jumpTo(3);break}if(S){Z.jumpTo(4);break}return Z.yield(gZk(H),5);case 5:M=Z.yieldResult,S=(X=M)==null?void 0:X.config;case 4:return Z.yield(Bl3(S,J,H),3);case 3:if(S)for(var n=S,b=_.K(p.configUpdateService.sharedHotConfigJobQueue),F=b.next();!F.done;F=b.next())F=F.value,F(n);_.UK(Z)}})},sYt=function(p,J,S){var H,M,X,Z;
return _.G(function(n){if(n.nextAddress==1){if(!_.z("start_client_gcf"))return n.jumpTo(0);Kg8(p,J);return(H=b4())?S?n.jumpTo(4):n.yield(sRt(H),5):n.jumpTo(0)}n.nextAddress!=4&&(M=n.yieldResult,S=(X=M)==null?void 0:X.config);if(!S)return n.jumpTo(0);Z=S.configData;return n.yield(UwW(S,J,Z,H),0)})},ckX=function(){var p=Z$8(),J=(0,_.fO)()-p.debounceTimer;
if(!(p.debounceTimer!==0&&J<_.PO("send_config_hash_timer"))){J=_.Id("yt.gcf.config.coldConfigData");var S=_.Id("yt.gcf.config.hotHashData"),H=_.Id("yt.gcf.config.coldHashData");J&&S&&H&&(p.debounceTimer=(0,_.fO)());return{coldConfigData:J,hotHashData:S,coldHashData:H}}},nZn=function(p){XqU(p,_.jn("RAW_COLD_CONFIG_GROUP"));
Kg8(p,_.jn("SERIALIZED_COLD_HASH_DATA"));var J;Fgo(p,(J=p.coldGlobalConfigGroup)==null?void 0:J.configData)},Grq=function(p){Mx8(p,_.jn("RAW_HOT_CONFIG_GROUP"));
p.setHotHashData(_.jn("SERIALIZED_HOT_HASH_DATA"))},Mx8=function(p,J){p.hotGlobalConfigGroup=J;
_.m$("yt.gcf.config.hotConfigGroup",p.hotGlobalConfigGroup||null)},XqU=function(p,J){p.coldGlobalConfigGroup=J;
_.m$("yt.gcf.config.coldConfigGroup",p.coldGlobalConfigGroup||null)};
lS.prototype.setHotHashData=function(p){this.hotHashData=p;_.m$("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Kg8=function(p,J){p.coldHashData=J;_.m$("yt.gcf.config.coldHashData",p.coldHashData||null)},Fgo=function(p,J){p.configData=J;
_.m$("yt.gcf.config.coldConfigData",p.configData||null)},hG=function(){return _.Id("yt.gcf.config.hotConfigGroup")},i$8=function(){return _.Id("yt.gcf.config.coldConfigGroup")};var U3={},fYn=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";U3.assign=function(p){for(var J=Array.prototype.slice.call(arguments,1);J.length;){var S=J.shift();if(S){if(typeof S!=="object")throw new TypeError("Zc`"+S);for(var H in S)Object.prototype.hasOwnProperty.call(S,H)&&(p[H]=S[H])}}return p};
U3.shrinkBuf=function(p,J){if(p.length===J)return p;if(p.subarray)return p.subarray(0,J);p.length=J;return p};
var O$4={arraySet:function(p,J,S,H,M){if(J.subarray&&p.subarray)p.set(J.subarray(S,S+H),M);else for(var X=0;X<H;X++)p[M+X]=J[S+X]},
flattenChunks:function(p){var J,S;var H=S=0;for(J=p.length;H<J;H++)S+=p[H].length;var M=new Uint8Array(S);H=S=0;for(J=p.length;H<J;H++){var X=p[H];M.set(X,S);S+=X.length}return M}},AkM={arraySet:function(p,J,S,H,M){for(var X=0;X<H;X++)p[M+X]=J[S+X]},
flattenChunks:function(p){return[].concat.apply([],p)}};
U3.setTyped=function(){fYn?(U3.Buf8=Uint8Array,U3.Buf16=Uint16Array,U3.Buf32=Int32Array,U3.assign(U3,O$4)):(U3.Buf8=Array,U3.Buf16=Array,U3.Buf32=Array,U3.assign(U3,AkM))};
U3.setTyped();var Pon=!0;try{new Uint8Array(1)}catch(p){Pon=!1}
var gtX=function(p){var J,S,H=p.length,M=0;for(J=0;J<H;J++){var X=p.charCodeAt(J);if((X&64512)===55296&&J+1<H){var Z=p.charCodeAt(J+1);(Z&64512)===56320&&(X=65536+(X-55296<<10)+(Z-56320),J++)}M+=X<128?1:X<2048?2:X<65536?3:4}var n=new U3.Buf8(M);for(J=S=0;S<M;J++)X=p.charCodeAt(J),(X&64512)===55296&&J+1<H&&(Z=p.charCodeAt(J+1),(Z&64512)===56320&&(X=65536+(X-55296<<10)+(Z-56320),J++)),X<128?n[S++]=X:(X<2048?n[S++]=192|X>>>6:(X<65536?n[S++]=224|X>>>12:(n[S++]=240|X>>>18,n[S++]=128|X>>>12&63),n[S++]=
128|X>>>6&63),n[S++]=128|X&63);return n};var Acg={};Acg=function(p,J,S,H){var M=p&65535|0;p=p>>>16&65535|0;for(var X;S!==0;){X=S>2E3?2E3:S;S-=X;do M=M+J[H++]|0,p=p+M|0;while(--X);M%=65521;p%=65521}return M|p<<16|0};for(var q1={},Dz,z04=[],$wv=0;$wv<256;$wv++){Dz=$wv;for(var oZn=0;oZn<8;oZn++)Dz=Dz&1?3988292384^Dz>>>1:Dz>>>1;z04[$wv]=Dz}q1=function(p,J,S,H){S=H+S;for(p^=-1;H<S;H++)p=p>>>8^z04[(p^J[H])&255];return p^-1};var hq={};hq={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 RdW=[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],Zyi=[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],ssv=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],fcL=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Tx=Array(576);Qp(Tx);var dg=Array(60);Qp(dg);var gg=Array(512);Qp(gg);var s3=Array(256);Qp(s3);var KuX=Array(29);Qp(KuX);var nts=Array(30);Qp(nts);var ycs,BoL,Uc9,Cyg=!1;var j9;
j9=[new rg(0,0,0,0,function(p,J){var S=65535;for(S>p.pending_buf_size-5&&(S=p.pending_buf_size-5);;){if(p.lookahead<=1){a6(p);if(p.lookahead===0&&J===0)return 1;if(p.lookahead===0)break}p.strstart+=p.lookahead;p.lookahead=0;var H=p.block_start+S;if(p.strstart===0||p.strstart>=H)if(p.lookahead=p.strstart-H,p.strstart=H,u4(p,!1),p.strm.avail_out===0)return 1;if(p.strstart-p.block_start>=p.w_size-262&&(u4(p,!1),p.strm.avail_out===0))return 1}p.insert=0;if(J===4)return u4(p,!0),p.strm.avail_out===0?3:
4;p.strstart>p.block_start&&u4(p,!1);return 1}),
new rg(4,4,8,4,Pyv),new rg(4,5,16,8,Pyv),new rg(4,6,32,32,Pyv),new rg(4,4,16,16,Y_),new rg(8,16,32,32,Y_),new rg(8,16,128,128,Y_),new rg(8,32,128,256,Y_),new rg(32,128,258,1024,Y_),new rg(32,258,258,4096,Y_)];var Qsi={};Qsi=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 tSs=Object.prototype.toString;
Wug.prototype.push=function(p,J){var S=this.strm,H=this.options.chunkSize;if(this.ended)return!1;var M=J===~~J?J:J===!0?4:0;typeof p==="string"?S.input=gtX(p):tSs.call(p)==="[object ArrayBuffer]"?S.input=new Uint8Array(p):S.input=p;S.next_in=0;S.avail_in=S.input.length;do{S.avail_out===0&&(S.output=new U3.Buf8(H),S.next_out=0,S.avail_out=H);p=edi(S,M);if(p!==1&&p!==0)return e08(this,p),this.ended=!0,!1;if(S.avail_out===0||S.avail_in===0&&(M===4||M===2))if(this.options.to==="string"){var X=U3.shrinkBuf(S.output,
S.next_out);J=X;X=X.length;if(X<65537&&(J.subarray&&Pon||!J.subarray))J=String.fromCharCode.apply(null,U3.shrinkBuf(J,X));else{for(var Z="",n=0;n<X;n++)Z+=String.fromCharCode(J[n]);J=Z}this.chunks.push(J)}else J=U3.shrinkBuf(S.output,S.next_out),this.chunks.push(J)}while((S.avail_in>0||S.avail_out===0)&&p!==1);if(M===4)return(S=this.strm)&&S.state?(H=S.state.status,H!==42&&H!==69&&H!==73&&H!==91&&H!==103&&H!==113&&H!==666?p=Dk(S,-2):(S.state=null,p=H===113?Dk(S,-3):0)):p=-2,e08(this,p),this.ended=
!0,p===0;M===2&&(e08(this,0),S.avail_out=0);return!0};
var e08=function(p,J){J===0&&(p.result=p.options.to==="string"?p.chunks.join(""):U3.flattenChunks(p.chunks));p.chunks=[];p.err=J;p.msg=p.strm.msg};var WgU=typeof TextEncoder!=="undefined"?new TextEncoder:null,Kyk=WgU?function(p){return WgU.encode(p)}:function(p){p=_.sV(p);
for(var J=new Uint8Array(p.length),S=0;S<J.length;S++)J[S]=p[S];return J};var wNs={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},caL={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var kD=function(p,J){this.version=p;this.args=J};
kD.prototype.serialize=function(){return{version:this.version,args:this.args}};var To9=function(p,J){this.topic=p;this.dataClass=J};
To9.prototype.toString=function(){return this.topic};var QRM=_.Id("ytPubsub2Pubsub2Instance")||new _.sv;_.sv.prototype.subscribe=_.sv.prototype.subscribe;_.sv.prototype.unsubscribeByKey=_.sv.prototype.unsubscribeByKey;_.sv.prototype.publish=_.sv.prototype.publish;_.sv.prototype.clear=_.sv.prototype.clear;_.m$("ytPubsub2Pubsub2Instance",QRM);var Nov=_.Id("ytPubsub2Pubsub2SubscribedKeys")||{};_.m$("ytPubsub2Pubsub2SubscribedKeys",Nov);var uVk=_.Id("ytPubsub2Pubsub2TopicToKeys")||{};_.m$("ytPubsub2Pubsub2TopicToKeys",uVk);
var dcL=_.Id("ytPubsub2Pubsub2IsAsync")||{};_.m$("ytPubsub2Pubsub2IsAsync",dcL);_.m$("ytPubsub2Pubsub2SkipSubKey",null);var xcW=void 0,jsg=void 0;var Mhv=_.PO("max_body_size_to_compress",5E5),X64=_.PO("min_body_size_to_compress",500),cB=!0,GIv=0,I6=0,n3s=_.PO("compression_performance_threshold_lr",250),mQi=_.PO("slow_compressions_before_abandon_count",4),Lu3=!1,p64=new Map,RuL=1,i3g=!0;_.SJ(LO,v39);LO.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 Co8=function(p,J,S){S||(S=0);var H=p.W_;if(typeof J==="string")for(var M=0;M<16;M++)H[M]=J.charCodeAt(S)<<24|J.charCodeAt(S+1)<<16|J.charCodeAt(S+2)<<8|J.charCodeAt(S+3),S+=4;else for(M=0;M<16;M++)H[M]=J[S]<<24|J[S+1]<<16|J[S+2]<<8|J[S+3],S+=4;for(J=16;J<80;J++)S=H[J-3]^H[J-8]^H[J-14]^H[J-16],H[J]=(S<<1|S>>>31)&4294967295;J=p.chain_[0];S=p.chain_[1];M=p.chain_[2];for(var X=p.chain_[3],Z=p.chain_[4],n,b,F=0;F<80;F++)F<40?F<20?(n=X^S&(M^X),b=1518500249):(n=S^M^X,b=1859775393):F<60?(n=S&M|X&(S|M),
b=2400959708):(n=S^M^X,b=3395469782),n=(J<<5|J>>>27)+n+Z+b+H[F]&4294967295,Z=X,X=M,M=(S<<30|S>>>2)&4294967295,S=J,J=n;p.chain_[0]=p.chain_[0]+J&4294967295;p.chain_[1]=p.chain_[1]+S&4294967295;p.chain_[2]=p.chain_[2]+M&4294967295;p.chain_[3]=p.chain_[3]+X&4294967295;p.chain_[4]=p.chain_[4]+Z&4294967295};
LO.prototype.update=function(p,J){if(p!=null){J===void 0&&(J=p.length);for(var S=J-this.blockSize,H=0,M=this.buf_,X=this.inbuf_;H<J;){if(X==0)for(;H<=S;)Co8(this,p,H),H+=this.blockSize;if(typeof p==="string")for(;H<J;){if(M[X]=p.charCodeAt(H),++X,++H,X==this.blockSize){Co8(this,M);X=0;break}}else for(;H<J;)if(M[X]=p[H],++X,++H,X==this.blockSize){Co8(this,M);X=0;break}}this.inbuf_=X;this.total_+=J}};
LO.prototype.digest=function(){var p=[],J=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var S=this.blockSize-1;S>=56;S--)this.buf_[S]=J&255,J/=256;Co8(this,this.buf_);for(S=J=0;S<5;S++)for(var H=24;H>=0;H-=8)p[J]=this.chain_[S]>>H&255,++J;return p};var AnX;var TT=function(p){var J=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(f){J.databaseToken=f},
triggerThrottle:function(){J.throttledSend()},
cancelThrottle:function(){J.cancelThrottledSend()},
immediateSend:function(f){return _.G(function(O){return O.yield(J.immediateSend(f),0)})},
requestWithinAgeLimit:function(f,O){return J.requestWithinAgeLimit(f,O)},
retryQueuedRequests:function(){J.retryQueuedRequests()}};
var S;this.throttleTimeout=(S=p.throttleTimeout)!=null?S:100;var H;this.retryMaxAttempts=(H=p.retryMaxAttempts)!=null?H:1;var M;this.requestAgeLimitMs=(M=p.requestAgeLimitMs)!=null?M:2592E6;var X;this.queuedRequestAgeLimitMs=(X=p.queuedRequestAgeLimitMs)!=null?X:12E4;var Z;this.retryDelayMs=(Z=p.retryDelayMs)!=null?Z:5E3;var n;this.databaseToken=(n=p.databaseToken)!=null?n:void 0;this.enableCleaning=!!p.enableCleaning;var b;this.cleaningRate=(b=p.cleaningRate)!=null?b:.1;var F;this.potentialEsfErrorLimit=
(F=p.potentialEsfErrorLimit)!=null?F: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;NP(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&ykm(this)},ykm=function(p){NP(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)))};
_.R=TT.prototype;_.R.writeThenSend=function(p,J){var S=this;J=J===void 0?{}:J;if(NP(this)&&this.initialized){var H={url:p,options:J,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(H,this.databaseToken).then(function(M){H.id=M;S.networkManager.isNetworkAvailable()&&S.immediateSend(H)}).catch(function(M){S.immediateSend(H);
Blq(S,M)})}else this.sendFn(p,J)};
_.R.sendThenWrite=function(p,J,S){var H=this;J=J===void 0?{}:J;if(NP(this)&&this.initialized){var M={url:p,options:J,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(M.skipRetry=S);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!M.skipRetry){if(!M.skipRetry){var X=J.onError?J.onError:function(){};
J.onError=function(Z,n){return _.G(function(b){if(b.nextAddress==1)return b.yield(H.logsStore.set(M,H.databaseToken).catch(function(F){Blq(H,F)}),2);
X(Z,n);_.UK(b)})}}this.sendFn(p,J,M.skipRetry)}else this.logsStore.set(M,this.databaseToken).catch(function(Z){H.sendFn(p,J,M.skipRetry);
Blq(H,Z)})}else this.sendFn(p,J,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&S)};
_.R.sendAndWrite=function(p,J){var S=this;J=J===void 0?{}:J;if(NP(this)&&this.initialized){var H={url:p,options:J,timestamp:this.now(),status:"NEW",sendCount:0},M=!1,X=J.onSuccess?J.onSuccess:function(){};
H.options.onSuccess=function(Z,n){H.id!==void 0?S.logsStore.deleteRequest(H.id,S.databaseToken):M=!0;S.networkManager.networkStatusHint&&S.getBooleanFlag&&S.getBooleanFlag("vss_network_hint")&&S.networkManager.networkStatusHint(!0);X(Z,n)};
this.sendFn(H.url,H.options,void 0,!0);this.logsStore.set(H,this.databaseToken).then(function(Z){H.id=Z;M&&S.logsStore.deleteRequest(H.id,S.databaseToken)}).catch(function(Z){Blq(S,Z)})}else this.sendFn(p,J,void 0,!0)};
_.R.throttledSend=function(){var p=this;if(!NP(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var J;return _.G(function(S){if(S.nextAddress==1)return S.yield(p.logsStore.getMostRecentByStatus("NEW",p.databaseToken),2);if(S.nextAddress!=3)return J=S.yieldResult,J?S.yield(p.immediateSend(J),3):(p.cancelThrottledSend(),S.return());p.intervalJob&&(p.intervalJob=0,p.throttledSend());_.UK(S)})},this.throttleTimeout))};
_.R.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.R.immediateSend=function(p){var J=this,S;return _.G(function(H){switch(H.nextAddress){case 1:if(!NP(J))throw Error("cd");if(p.id===void 0){H.jumpTo(2);break}return H.yield(J.logsStore.markAsQueued(p.id,J.databaseToken),3);case 3:(S=H.yieldResult)||J.handleWarning(Error("dd"));case 2:if(J.requestWithinAgeLimit(p,J.requestAgeLimitMs)){H.jumpTo(4);break}J.handleWarning(Error("ed"));if(p.id===void 0){H.jumpTo(5);break}return H.yield(J.logsStore.deleteRequest(p.id,J.databaseToken),5);case 5:return H.return();
case 4:p.skipRetry||(p=Uwo(J,p));if(!p){H.jumpTo(0);break}if(!p.skipRetry||p.id===void 0){H.jumpTo(8);break}return H.yield(J.logsStore.deleteRequest(p.id,J.databaseToken),8);case 8:J.sendFn(p.url,p.options,!!p.skipRetry),_.UK(H)}})};
var Uwo=function(p,J){if(!NP(p))throw Error("fd");var S=J.options.onError?J.options.onError:function(){};
J.options.onError=function(M,X){var Z,n,b,F;return _.G(function(f){switch(f.nextAddress){case 1:Z=eus(X);(n=WyX(X))&&p.getBooleanFlag&&p.getBooleanFlag("web_enable_error_204")&&p.handleError(Error("gd"),J.url,X);if(!(p.getBooleanFlag&&p.getBooleanFlag("nwl_consider_error_code")&&Z||p.getBooleanFlag&&!p.getBooleanFlag("nwl_consider_error_code")&&p.potentialEsfErrorCounter<=p.potentialEsfErrorLimit)){f.jumpTo(2);break}if(!p.networkManager.sendNetworkCheckRequest){f.jumpTo(3);break}return f.yield(p.networkManager.sendNetworkCheckRequest(),
3);case 3:if(p.networkManager.isNetworkAvailable()){f.jumpTo(2);break}S(M,X);if(!p.getBooleanFlag||!p.getBooleanFlag("nwl_consider_error_code")||((b=J)==null?void 0:b.id)===void 0){f.jumpTo(6);break}return f.yield(p.logsStore.resetRequest(J.id,p.databaseToken,!1),6);case 6:return f.return();case 2:if(p.getBooleanFlag&&p.getBooleanFlag("nwl_consider_error_code")&&!Z&&p.potentialEsfErrorCounter>p.potentialEsfErrorLimit)return f.return();p.potentialEsfErrorCounter++;if(((F=J)==null?void 0:F.id)===void 0){f.jumpTo(8);
break}return J.sendCount<p.retryMaxAttempts?f.yield(p.logsStore.resetRequest(J.id,p.databaseToken,!0,n?!1:void 0),12):f.yield(p.logsStore.deleteRequest(J.id,p.databaseToken),8);case 12:p.jobManager.addLowPriorityJob(function(){p.networkManager.isNetworkAvailable()&&p.throttledSend()},p.retryDelayMs);
case 8:S(M,X),_.UK(f)}})};
var H=J.options.onSuccess?J.options.onSuccess:function(){};
J.options.onSuccess=function(M,X){var Z;return _.G(function(n){if(n.nextAddress==1)return((Z=J)==null?void 0:Z.id)===void 0?n.jumpTo(2):n.yield(p.logsStore.deleteRequest(J.id,p.databaseToken),2);p.networkManager.networkStatusHint&&p.getBooleanFlag&&p.getBooleanFlag("vss_network_hint")&&p.networkManager.networkStatusHint(!0);H(M,X);_.UK(n)})};
return J};
TT.prototype.requestWithinAgeLimit=function(p,J){p=p.timestamp;return this.now()-p>=J?!1:!0};
TT.prototype.retryQueuedRequests=function(){var p=this;if(!NP(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(J){J&&!p.requestWithinAgeLimit(J,p.queuedRequestAgeLimitMs)?p.jobManager.addLowPriorityJob(function(){return _.G(function(S){if(S.nextAddress==1)return J.id===void 0?S.jumpTo(2):S.yield(p.logsStore.resetRequest(J.id,p.databaseToken),2);p.retryQueuedRequests();_.UK(S)})}):p.networkManager.isNetworkAvailable()&&p.throttledSend()})};
var Blq=function(p,J){p.writeError&&!p.networkManager.isNetworkAvailable()?p.writeError(J):p.handleError(J)},NP=function(p){return!!p.databaseToken||p.bypassDbTokenDependency};var Qf3;var hGi={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532};var sRL={},kIL=vB("ServiceWorkerLogsDatabase",{objectStores:(sRL.SWHealthLog={addedAtVersion:1},sRL),shared:!0,upgrade:function(p,J){J(1)&&HL(SD(p,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var aV4={},qDi=0;var jfi;var d9=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},KH=function(){if(!d9.instance){var p=_.Id("yt.networkRequestMonitor.instance")||new d9;
_.m$("yt.networkRequestMonitor.instance",p);d9.instance=p}return d9.instance};
d9.prototype.requestComplete=function(p,J){J&&(this.anyRequestHasSucceeded=!0);p=this.removeParams(p);this.requestMap.get(p)||this.requestMap.set(p,J)};
d9.prototype.isEndpointCFR=function(p){p=this.removeParams(p);return(p=this.requestMap.get(p))?!1:p===!1&&this.anyRequestHasSucceeded?!0:null};
d9.prototype.removeParams=function(p){return p.split("?")[0]};
d9.prototype.removeParams=d9.prototype.removeParams;d9.prototype.isEndpointCFR=d9.prototype.isEndpointCFR;d9.prototype.requestComplete=d9.prototype.requestComplete;d9.getInstance=KH;var ur=function(p){_.te.call(this);var J=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=p!=null?p:{addLowPriorityJob:function(M,X){return setTimeout(M,X)},
cancelJob:function(M){clearTimeout(M)}};
var S,H;this.isOnline=(H=(S=window.navigator)==null?void 0:S.onLine)!=null?H:!0;this.onNavigatorChange=function(){return _.G(function(M){return M.yield(gZm(J),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||txv(this)};
_.Q(ur,_.te);ur.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete ur.instance};
ur.prototype.isNetworkAvailable=function(){return this.isOnline};
var txv=function(p){p.pollingJob=p.jobManager.addLowPriorityJob(function(){var J;return _.G(function(S){if(S.nextAddress==1)return p.isOnline?((J=window.navigator)==null?0:J.onLine)?S.jumpTo(3):S.yield(gZm(p),3):S.yield(gZm(p),3);txv(p);_.UK(S)})},3E4)},gZm=function(p,J){return p.networkRequestPromise?p.networkRequestPromise:p.networkRequestPromise=new Promise(function(S){var H,M,X,Z;
return _.G(function(n){switch(n.nextAddress){case 1:return H=window.AbortController?new window.AbortController:void 0,X=(M=H)==null?void 0:M.signal,Z=!1,_.oI(n,2,3),H&&(p.abortTimeoutKey=p.jobManager.addLowPriorityJob(function(){H.abort()},J||2E4)),n.yield(fetch("/generate_204",{method:"HEAD",
signal:X}),5);case 5:Z=!0;case 3:_.WZ(n);p.networkRequestPromise=void 0;p.abortTimeoutKey&&(p.jobManager.cancelJob(p.abortTimeoutKey),p.abortTimeoutKey=0);Z!==p.isOnline&&(p.isOnline=Z,p.isOnline?p.dispatchEvent("networkstatus-online"):p.dispatchEvent("networkstatus-offline"));S(Z);_.yV(n,0);break;case 2:_.BZ(n),Z=!1,n.jumpTo(3)}})})};var lr=function(){_.te.call(this);var p=this;this.shouldFlushErrors=!1;ur.instance||(ur.instance=new ur(_.wg));this.sharedNetworkStatusManager=ur.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(p.shouldFlushErrors&&_.z("offline_error_handling")){var J=w6L().get("errors",!0);if(J){for(var S in J)if(J[S]){var H=new _.TG(S,"sent via offline_errors");H.name=J[S].name;H.stack=J[S].stack;H.level=J[S].level;_.xv(H)}w6L().set("errors",{},2592E3,!0)}}})};
_.Q(lr,_.te);var h0E=function(){if(!lr.instance){var p=_.Id("yt.networkStatusManager.instance")||new lr;_.m$("yt.networkStatusManager.instance",p);lr.instance=p}return lr.instance};
_.R=lr.prototype;_.R.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.R.networkStatusHint=function(p){this.sharedNetworkStatusManager.isOnline=p};
_.R.getWindowStatus=function(){var p=window.navigator.onLine;return p===void 0?!0:p};
_.R.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.R.listen=function(p,J){return this.sharedNetworkStatusManager.listen(p,J)};
_.R.sendNetworkCheckRequest=function(p){p=gZm(this.sharedNetworkStatusManager,p);p.then(function(J){_.z("use_cfr_monitor")&&KH().requestComplete("generate_204",J)});
return p};
lr.prototype.sendNetworkCheckRequest=lr.prototype.sendNetworkCheckRequest;lr.prototype.listen=lr.prototype.listen;lr.prototype.enableErrorFlushing=lr.prototype.enableErrorFlushing;lr.prototype.getWindowStatus=lr.prototype.getWindowStatus;lr.prototype.networkStatusHint=lr.prototype.networkStatusHint;lr.prototype.isNetworkAvailable=lr.prototype.isNetworkAvailable;lr.getInstance=h0E;_.RJ=function(p){p=p===void 0?{}:p;_.te.call(this);var J=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=h0E();var S=_.Id("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);S&&(p.rateLimit?(this.rateLimit=p.rateLimit,S("networkstatus-online",function(){DwL(J,"publicytnetworkstatus-online")}),S("networkstatus-offline",function(){DwL(J,"publicytnetworkstatus-offline")})):(S("networkstatus-online",function(){J.dispatchEvent("publicytnetworkstatus-online")}),S("networkstatus-offline",
function(){J.dispatchEvent("publicytnetworkstatus-offline")})))};
_.Q(_.RJ,_.te);_.RJ.prototype.isNetworkAvailable=function(){var p=_.Id("yt.networkStatusManager.instance.isNetworkAvailable");return p?p.bind(this.nsmInstance)():!0};
_.RJ.prototype.networkStatusHint=function(p){var J=_.Id("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);J&&J(p)};
_.RJ.prototype.sendNetworkCheckRequest=function(p){var J=this,S;return _.G(function(H){S=_.Id("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(J.nsmInstance);return _.z("skip_network_check_if_cfr")&&KH().isEndpointCFR("generate_204")?H.return(new Promise(function(M){var X;J.networkStatusHint(((X=window.navigator)==null?void 0:X.onLine)||!0);M(J.isNetworkAvailable())})):S?H.return(S(p)):H.return(!0)})};
var DwL=function(p,J){p.rateLimit?p.lastJobTime?(_.wg.cancelJob(p.schedulerJob),p.schedulerJob=_.wg.addLowPriorityJob(function(){p.lastPublicSignalSent!==J&&(p.dispatchEvent(J),p.lastPublicSignalSent=J,p.lastJobTime=(0,_.fO)())},p.rateLimit-((0,_.fO)()-p.lastJobTime))):(p.dispatchEvent(J),p.lastPublicSignalSent=J,p.lastJobTime=(0,_.fO)()):p.dispatchEvent(J)};var pig,V7=function(){TT.call(this,{logsStore:{cleanLogsStore:hui,deleteRequest:th4,getMostRecentByStatus:UQW,markAsQueued:sfs,resetRequest:g3t,set:Bwv},networkManager:_.Jzv(),handleError:function(p,J,S){var H,M=S==null?void 0:(H=S.error)==null?void 0:H.code;if(M===400||M===415){var X;p=new _.TG(p.message,J,S==null?void 0:(X=S.error)==null?void 0:X.code);_.SB(p,void 0,void 0,void 0,!0)}else _.xv(p)},
handleWarning:_.SB,sendFn:IVi,now:_.fO,writeError:xQi,jobManager:_.Qb(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.PO("potential_esf_error_limit",10),getBooleanFlag:_.z,disableYtIdbTransactions:!(_.NV()&&_.Sa4())});this.initializationPromise=new _.iy;_.z("networkless_immediately_drop_all_requests")&&DQ4();Wgs("LogsDatabaseV2")};
_.Q(V7,TT);_.Nln=function(){var p=_.Id("yt.networklessRequestController.instance");p||(p=new V7,_.m$("yt.networklessRequestController.instance",p),_.z("networkless_logging")&&_.F$().then(function(J){p.databaseToken=J;ykm(p);p.initializationPromise.resolve();p.enableCleaning&&Math.random()<=p.cleaningRate&&p.databaseToken&&TwW(p.databaseToken);_.z("networkless_immediately_drop_sw_health_store")&&krE(p)}));
return p};
V7.prototype.writeThenSend=function(p,J){J||(J={});J=Ly9(p,J);_.NV()||(this.initialized=!1);TT.prototype.writeThenSend.call(this,p,J)};
V7.prototype.sendThenWrite=function(p,J,S){J||(J={});J=Ly9(p,J);_.NV()||(this.initialized=!1);TT.prototype.sendThenWrite.call(this,p,J,S)};
V7.prototype.sendAndWrite=function(p,J){J||(J={});J=Ly9(p,J);_.NV()||(this.initialized=!1);TT.prototype.sendAndWrite.call(this,p,J)};
V7.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var krE=function(p){var J;_.G(function(S){if(!p.databaseToken)throw J=LQ("clearSWHealthLogsDb"),J;return S.return(dQg(p.databaseToken).catch(function(H){p.handleError(H)}))})};_.MrW=!1;_.HIi=_.Hg.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.MrW};_.m$("ytNetworklessLoggingInitializationOptions",_.HIi);var EI=function(p){var J=this;this.config_=null;p?this.config_=p:h0g()&&(this.config_=_.Aq());_.uS(_.wg,function(){o3W(J)},5E3)};
EI.prototype.isReady=function(){!this.config_&&h0g()&&(this.config_=_.Aq());return!!this.config_};
var $Qw=function(p,J,S,H){!_.jn("VISITOR_DATA")&&J!=="visitor_id"&&Math.random()<.01&&_.SB(new _.TG("Missing VISITOR_DATA when sending innertube request.",J,S,H));if(!p.isReady()){var M=new _.TG("innertube xhrclient not ready",J,S,H);_.xv(M);throw M;}var X={headers:H.headers||{},method:"POST",postParams:S,postBody:H.postBody,postBodyFormat:H.postBodyFormat||"JSON",onTimeout:function(){H.onTimeout()},
onFetchTimeout:H.onTimeout,onSuccess:function(O,A){if(H.onSuccess)H.onSuccess(A)},
onFetchSuccess:function(O){if(H.onSuccess)H.onSuccess(O)},
onProgress:function(O){if(H.onProgress)H.onProgress(O)},
onError:function(O,A){if(H.onError)H.onError(A)},
onFetchError:function(O){if(H.onError)H.onError(O)},
timeout:H.timeout,withCredentials:!0,compress:H.compress};X.headers["Content-Type"]||(X.headers["Content-Type"]="application/json");var Z="";(M=p.config_.innertubeHostOverride)&&(Z=M);var n=p.config_.innertubeUseThirdPartyAuth||!1,b=_.xws(n,Z,H);Object.assign(X.headers,b);X.headers.Authorization&&!Z&&n&&(X.headers["x-origin"]=window.location.origin);var F=_.Ry(Z+("/youtubei/"+p.config_.innertubeApiVersion+"/"+J),{alt:"json"}),f=function(O){O=O===void 0?!1:O;var A;if(H.retry&&Z!="www.youtube-nocookie.com"&&
(O||_.z("skip_ls_gel_retry")||X.headers["Content-Type"]!=="application/json"||(A=POL(J,S,b,n)),A)){var P=X.onSuccess,W=X.onFetchSuccess;X.onSuccess=function(D,k){zuw(A);P(D,k)};
S.onFetchSuccess=function(D,k){zuw(A);W(D,k)}}try{if(O&&H.retry&&!H.networklessOptions.bypassNetworkless)X.method="POST",H.networklessOptions.writeThenSend?_.Nln().writeThenSend(F,X):_.Nln().sendAndWrite(F,X);
else if(H.compress){var y=!H.networklessOptions.writeThenSend;if(X.postBody){var t=X.postBody;typeof t!=="string"&&(t=JSON.stringify(X.postBody));Z39(F,t,X,_.BO,y)}else Z39(F,JSON.stringify(X.postParams),X,Ol4,y)}else Ol4(F,X)}catch(D){if(D.name==="InvalidAccessError")A&&(zuw(A),A=0),_.SB(Error("id"));else throw D;}A&&_.uS(_.wg,function(){o3W(p)},5E3)};
_.Xi9()?fYX().then(function(O){f(O)}):f(!1)};var QW4=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(QW4,_.Kt);var Tl8=0,RZX=_.Ku?"webkit":_.Rh?"moz":_.i9?"ms":a3p?"o":"";_.m$("ytDomDomGetNextId",_.Id("ytDomDomGetNextId")||function(){return++Tl8});var dwd={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},Fb=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 J in p)J in dwd||(this[J]=p[J]);this.scale=p.scale;this.rotation=p.rotation;var S=p.target||p.srcElement;S&&S.nodeType==3&&(S=S.parentNode);this.target=S;var H=p.relatedTarget;if(H)try{H=H.nodeName?H:null}catch(M){H=null}else this.type=="mouseover"?H=p.fromElement:this.type=="mouseout"&&(H=p.toElement);this.relatedTarget=H;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(M){}},uD8=function(p){if(document.body&&document.documentElement){var J=document.body.scrollTop+document.documentElement.scrollTop;
p.pageX_=p.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);p.pageY_=p.clientY+J}};
Fb.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Fb.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Fb.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var m4=_.Hg.ytEventsEventsListeners||{};_.m$("ytEventsEventsListeners",m4);var mnX=_.Hg.ytEventsEventsCounter||{count:0};_.m$("ytEventsEventsCounter",mnX);var F59=_.Bj(function(){var p=!1;try{var J=Object.defineProperty({},"capture",{get:function(){p=!0}});
window.addEventListener("test",null,J)}catch(S){}return p});_.SJ(fH,_.gp);fH.prototype.onMouseMove_=function(p){p.pageX_===void 0&&uD8(p);var J=p.pageX_;p.pageY_===void 0&&uD8(p);this.position_=new _.uI(J,p.pageY_)};
fH.prototype.checkPosition_=function(){if(this.position_){var p=(0,_.fO)();if(this.previousTime_!=0){var J=this.previousPosition_,S=this.position_,H=J.x-S.x;J=J.y-S.y;H=Math.sqrt(H*H+J*J)/(p-this.previousTime_);this.cycles_[this.index_]=Math.abs((H-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(S=J=0;S<4;S++)J+=this.cycles_[S]||0;J>=3&&this.callback_();this.previousVelocity_=H}this.previousTime_=p;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
fH.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.v2v(this.mouseListenerKey_)};var zZX={};var Bns=new _.Zz("rawColdConfigGroup");var ymW=new _.Zz("rawHotConfigGroup");var lYn=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(lYn,_.Kt);var WAW=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(WAW,_.Kt);var df=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p,500)};
_.Q(df,_.Kt);df.prototype.getPayloadCase=function(){return _.$C(this,Vxo)};
df.prototype.getContext=function(){return _.PB(this,WAW,33)};
var Vxo=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var $r4=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q($r4,_.Kt);var czw=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(czw,_.Kt);czw.prototype.setVideoId=function(p){return sI(this,1,ImW,Pp(p))};
czw.prototype.getPlaylistId=function(){return _.W0(this,kQ(this,ImW,2))};
var ImW=[1,2];var vzw=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(vzw,_.Kt);vzw.prototype.getContext=function(){return _.PB(this,gf,1)};
vzw.prototype.getTier=function(){return _.Uw(this,7)};var q4m,zg,$Q;q4m=_.Hg.ytPubsubPubsubInstance||new _.sv;zg=_.Hg.ytPubsubPubsubSubscribedKeys||{};$Q=_.Hg.ytPubsubPubsubTopicToKeys||{};_.$nW=_.Hg.ytPubsubPubsubIsSynchronous||{};_.sv.prototype.subscribe=_.sv.prototype.subscribe;_.sv.prototype.unsubscribeByKey=_.sv.prototype.unsubscribeByKey;_.sv.prototype.publish=_.sv.prototype.publish;_.sv.prototype.clear=_.sv.prototype.clear;_.m$("ytPubsubPubsubInstance",q4m);_.m$("ytPubsubPubsubTopicToKeys",$Q);_.m$("ytPubsubPubsubIsSynchronous",_.$nW);
_.m$("ytPubsubPubsubSubscribedKeys",zg);var eD=window;var qP=_.z("web_enable_lifecycle_monitoring")&&CC4()!==0,aY8=_.z("web_enable_lifecycle_monitoring");var EZv=function(p){var J=this;var S=S===void 0?0:S;var H=H===void 0?_.Qb():H;this.JSC$11042_defaultPriority=S;this.scheduler=H;this.completedResolver=new _.iy;this.scheduledPayloads=p;for(p={i$jscomp$492:0};p.i$jscomp$492<this.scheduledPayloads.length;p={payload$jscomp$20:void 0,i$jscomp$492:p.i$jscomp$492},p.i$jscomp$492++)p.payload$jscomp$20=this.scheduledPayloads[p.i$jscomp$492],S=function(M){return function(){M.payload$jscomp$20.job();J.scheduledPayloads[M.i$jscomp$492].processed=!0;J.scheduledPayloads.every(function(X){return X.processed===
!0})&&J.completedResolver.resolve()}}(p),H=this.getPriority(p.payload$jscomp$20),H=this.scheduler.addJob(S,H),this.scheduledPayloads[p.i$jscomp$492]=Object.assign({},p.payload$jscomp$20,{job:S,
jobId:H})};
EZv.prototype.flushJobs=function(){var p=this,J=Array.from(this.scheduledPayloads.keys()).sort(function(H,M){return p.getPriority(p.scheduledPayloads[M])-p.getPriority(p.scheduledPayloads[H])});
J=_.K(J);for(var S=J.next();!S.done;S=J.next())S=this.scheduledPayloads[S.value],S.jobId===void 0||S.processed||(this.scheduler.cancelJob(S.jobId),this.scheduler.addJob(S.job,10))};
EZv.prototype.cancel=function(){for(var p=_.K(this.scheduledPayloads),J=p.next();!J.done;J=p.next())J=J.value,J.jobId===void 0||J.processed||this.scheduler.cancelJob(J.jobId),J.processed=!0;this.completedResolver.resolve()};
EZv.prototype.getPriority=function(p){var J;return(J=p.priority)!=null?J:this.JSC$11042_defaultPriority};var au=function(p){this.state=p;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};qP&&yzW(this.state)};
au.prototype.install=function(p){this.plugins.push(p);return this};
au.prototype.uninstall=function(){var p=this;_.Yp.apply(0,arguments).forEach(function(J){J=p.plugins.indexOf(J);J>-1&&p.plugins.splice(J,1)})};
au.prototype.transition=function(p,J){var S=this;qP&&Bei(this.state);var H=this.transitions.find(function(X){return Array.isArray(X.from)?X.from.find(function(Z){return Z===S.state&&X.to===p}):X.from===S.state&&X.to===p});
if(H){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Y48(this,p,J);this.state=p;qP&&yzW(this.state);H=H.action.bind(this);var M=this.plugins.filter(function(X){return X[p]}).map(function(X){return X[p]});
H(rkv(this,M),J)}else throw Error("jd`"+this.state+"`"+p);};
var rkv=function(p,J){var S=J.filter(function(M){return jRE(p,M)===10}),H=J.filter(function(M){return jRE(p,M)!==10});
return p.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var M=_.Yp.apply(0,arguments);return _.G(function(X){if(X.nextAddress==1)return X.yield(p.runImmediateJobsAsync.apply(p,[S].concat(_.dW(M))),2);p.setJobSetWithScheduledJobs.apply(p,[H].concat(_.dW(M)));_.UK(X)})}:function(){var M=_.Yp.apply(0,arguments);
p.runImmediateJobsSync.apply(p,[S].concat(_.dW(M)));p.setJobSetWithScheduledJobs.apply(p,[H].concat(_.dW(M)))}};
au.prototype.runImmediateJobsSync=function(p){var J=_.Yp.apply(1,arguments);_.Qb();for(var S=_.K(p),H=S.next(),M={};!H.done;M={lifecycle$jscomp$2:void 0},H=S.next())M.lifecycle$jscomp$2=H.value,Jm(function(X){return function(){wq8(X.lifecycle$jscomp$2.name);s4L(function(){return X.lifecycle$jscomp$2.callback.apply(X.lifecycle$jscomp$2,_.dW(J))});
EE(X.lifecycle$jscomp$2.name)}}(M))};
au.prototype.runImmediateJobsAsync=function(p){var J=_.Yp.apply(1,arguments),S,H,M,X;return _.G(function(Z){Z.nextAddress==1&&(_.Qb(),S=_.K(p),H=S.next(),M={});if(Z.nextAddress!=3){if(H.done)return Z.jumpTo(0);M.lifecycle$jscomp$3=H.value;M.asyncJobCompletion=void 0;X=function(n){return function(){wq8(n.lifecycle$jscomp$3.name);var b=s4L(function(){return n.lifecycle$jscomp$3.callback.apply(n.lifecycle$jscomp$3,_.dW(J))});
$44(b)?n.asyncJobCompletion=_.z("web_lifecycle_error_handling_killswitch")?b.then(function(){EE(n.lifecycle$jscomp$3.name)}):b.then(function(){EE(n.lifecycle$jscomp$3.name)},function(F){UnX(F);
EE(n.lifecycle$jscomp$3.name)}):EE(n.lifecycle$jscomp$3.name)}}(M);
Jm(X);return M.asyncJobCompletion?Z.yield(M.asyncJobCompletion,3):Z.jumpTo(3)}M={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};H=S.next();return Z.jumpTo(2)})};
au.prototype.setJobSetWithScheduledJobs=function(p){var J=_.Yp.apply(1,arguments),S=this,H=p.map(function(M){return{job:function(){wq8(M.name);s4L(function(){return M.callback.apply(M,_.dW(J))});
EE(M.name)},
priority:jRE(S,M)}});
H.length&&(this.jobSet=new EZv(H))};
var jRE=function(p,J){var S,H;return(H=(S=p.overridePriority)!=null?S:J.priority)!=null?H:0},wq8=function(p){qP&&p&&yzW(p)},EE=function(p){qP&&p&&Bei(p)},Y48=function(p,J,S){aY8&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+p.constructor.name+"] '"+p.state+"' to '"+J+"'"),console.log("with message: ",S),console.groupEnd())};
_.vh.Object.defineProperties(au.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var xwU=function(p){au.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(){}}]},ckv;
_.Q(xwU,au);xwU.prototype.runApplicationNavigationBegin=function(p,J){var S=this;this.navigationTimer=_.uS(_.wg,function(){S.currentState==="application_navigating"&&S.transition("none")},5E3);
p(J==null?void 0:J.event)};
xwU.prototype.runApplicationNavigationEnd=function(p,J){this.navigationTimer&&(_.wg.cancelJob(this.navigationTimer),this.navigationTimer=null);p(J==null?void 0:J.event)};
_.CnW=function(){ckv||(ckv=new xwU);return ckv};var QY4=[];_.m$("yt.logging.transport.getScrapedGelPayloads",function(){return QY4});var WL=function(){var p=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return p.totalEntries}}};
WL.prototype.storePayload=function(p,J){p=g2X(p);this.store[p]?this.store[p].push(J):(this.memoizedKeySequences={},this.store[p]=[J]);this.totalEntries++;_.z("more_accurate_gel_parser")&&(J=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(J));return p};
WL.prototype.smartExtractMatchingEntries=function(p){if(!p.keys.length)return[];for(var J=IY8(this,p.keys.splice(0,1)[0]),S=[],H=0;H<J.length;H++)this.store[J[H]]&&p.sizeLimit&&(this.store[J[H]].length<=p.sizeLimit?(S.push.apply(S,_.dW(this.store[J[H]])),delete this.store[J[H]]):S.push.apply(S,_.dW(this.store[J[H]].splice(0,p.sizeLimit))));this.totalEntries-=S.length;(p==null?0:p.sizeLimit)&&S.length<(p==null?void 0:p.sizeLimit)&&(p.sizeLimit-=S.length,S.push.apply(S,_.dW(this.smartExtractMatchingEntries(p))));
return S};
WL.prototype.extractMatchingEntries=function(p){p=IY8(this,p);for(var J=[],S=0;S<p.length;S++)this.store[p[S]]&&(J.push.apply(J,_.dW(this.store[p[S]])),delete this.store[p[S]]);this.totalEntries-=J.length;return J};
WL.prototype.getSequenceCount=function(p){p=IY8(this,p);for(var J=0,S=0;S<p.length;S++){var H=void 0;J+=((H=this.store[p[S]])==null?void 0:H.length)||0}return J};
var IY8=function(p,J){var S=g2X(J);if(p.memoizedKeySequences[S])return p.memoizedKeySequences[S];var H=Object.keys(p.store)||[];if(H.length<=1&&g2X(J)===H[0])return H;for(var M=[],X=0;X<H.length;X++){var Z=H[X].split("/");if(Lgp(J.auth,Z[0])){var n=J.isJspb;Lgp(n===void 0?"undefined":n?"true":"false",Z[1])&&Lgp(J.cttAuthInfo,Z[2])&&(n=J.tier,n=n===void 0?"undefined":JSON.stringify(n),Lgp(n,Z[3])&&M.push(H[X]))}}return p.memoizedKeySequences[S]=M},Lgp=function(p,J){return p===void 0||p==="undefined"?
!0:p===J};
WL.prototype.getSequenceCount=WL.prototype.getSequenceCount;WL.prototype.extractMatchingEntries=WL.prototype.extractMatchingEntries;WL.prototype.smartExtractMatchingEntries=WL.prototype.smartExtractMatchingEntries;WL.prototype.storePayload=WL.prototype.storePayload;var RGt,Xv4,KMi,BL,ptU,tK4,gz4,MKX,Hbi,Yat,ibt,eGw,pvW;RGt=_.PO("initial_gel_batch_timeout",2E3);Xv4=_.PO("gel_queue_timeout_max_ms",6E4);KMi=_.PO("gel_min_batch_size",5);BL=void 0;ptU=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
tK4=new ptU;gz4=new ptU;MKX=new ptU;Hbi=new ptU;ibt=!0;eGw=1;_.oz4=new Map;pvW=_.Hg.ytLoggingTransportTokensToCttTargetIds_||{};_.m$("ytLoggingTransportTokensToCttTargetIds_",pvW);var L5i=_.Hg.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.m$("ytLoggingTransportTokensToJspbCttTargetIds_",L5i);var yH={};var q8=_.Hg.ytLoggingGelSequenceIdObj_||{};_.m$("ytLoggingGelSequenceIdObj_",q8);var k7k=[];var jY3=new Set,lu3=0,cmW=0,xrL=0,qSi=[],VKk=[],Iuv=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var GyL=function(){};
GyL.prototype.getUrl=function(p,J){J=J===void 0?!1:J;return p.hasOwnProperty("shareEndpoint")?null:_.Sl4(p,null,J)};
var oLv=function(p,J,S){p={endpoint:J,actions:[]};S=(S.path?S.path[0]:S.target).icon||"";J=S.indexOf(":");J>0&&(S=S.substr(J+1));S&&p.actions.push(S);return p};var KVX=/Command$/,RKi=/Endpoint$/,MHg=new Map;var Jco,Sr8;Jco=1;_.XK=function(){this.actionRoutingMap=new Map};
_.XK.prototype.triggerAction=function(p){var J=new H7X(p,!1,_.Yp.apply(1,arguments));this.handleAction(J);return J.returnValue};
_.XK.prototype.triggerOptionalAction=function(p){var J=new H7X(p,!0,_.Yp.apply(1,arguments));this.handleAction(J);return J.returnValue};
_.YD=function(p,J,S){J.forEach(function(H){var M=iGX(H);M&&p.triggerOptionalAction(M,H,S,void 0)})};
_.XK.prototype.handleAction=function(p){var J=this.actionRoutingMap.get(p.actionName);J&&Sr8(p,J);p.optionalAction||p.returnValue.length!==0||(p=new _.TG("Unhandled action",p.actionName),_.SB(p))};
Sr8=function(p,J){J.forEach(function(S){var H=null;S?H=S.apply(null,p.args):(S=Error("kd"),S.params=p.actionName,_.xv(S));p.returnValue.push(H)})};
_.RZ=function(p,J,S){S||(S=Jco++);for(var H=_.K(Object.keys(J)),M=H.next();!M.done;M=H.next()){M=M.value;var X=p.actionRoutingMap.get(M);X||(X=new Map,p.actionRoutingMap.set(M,X));p.registerActionHandler(S,M,J[M],X)}return S};
_.XK.prototype.registerActionHandler=function(p,J,S,H){H.set(p,_.c5(S))};
_.KE=function(p,J,S){J=_.K(Object.keys(J));for(var H=J.next();!H.done;H=J.next())(H=p.actionRoutingMap.get(H.value))&&H.delete(S)};
_.pu(_.XK);var FVt=function(p,J){var S=_.XK.getInstance();_.ad(function(){var H={},M=_.RZ(S,(H[p]=J,H));_.VY(function(){var X={};_.KE(S,(X[p]="",X),M)})})};var QNv=Symbol("md");Puv=LNv;var gms=new Set(["For","If","Match","Watch"]),HyL={},MSM=(HyL[I2.default]=function(){return bzL},HyL.style=function(){return bzL},HyL),XtL;
for(XtL in MSM)GA.attributes[XtL]=MSM[XtL](GA.attributes[XtL]);var Oy=new _.ni("VISIBILITY_OBSERVER");var VHw={retrieve:function(p){return this.id.\u0275prov.token===p.\u0275prov.token?this.contextValue:this?_.KU(this,this.id):Aq3}};var I6g=function(p,J,S){if(p!==PTw)return!1;p=QAt(document.createElement("div"),function(){var H=Og(!1);try{S[0]()}finally{Og(H)}});
p=Array.from(p.childNodes);p.length===1&&(p=p[0]);return p};var iy4=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(p){}var Rdo=typeof WeakRef==="function";var Kuv=function(p){this.value=p};
Kuv.prototype.deref=function(){return this.value};
var Zy8=Rdo?WeakRef:Kuv,ntU=function(p){this.newKeyHandler=p;this.map=new WeakMap};
ntU.prototype.add=function(p,J){this.map.has(p)||(this.newKeyHandler(p),this.map.set(p,[]));this.map.get(p).push(new Zy8(J))};
ntU.prototype.get=function(p){var J=this;return function H(){var M,X,Z,n,b,F,f,O,A,P,W;return _.R$(H,function(y){switch(y.nextAddress){case 1:_.C_(y,2);M=J.map.get(p);if(!M)return y.return();X=0;Z=_.K(M);n=Z.next();case 4:if(n.done){y.jumpTo(6);break}b=n.value;F=b.deref();if(!F){y.jumpTo(5);break}X++;f=_.KT;return y.yield(F,8);case 8:f(y.yieldResult);case 5:n=Z.next();y.jumpTo(4);break;case 6:if(2*X<M.length){O=0;A=_.K(M);for(P=A.next();!P.done;P=A.next())W=P.value,W.deref()&&(M[O++]=W);M.length=
O}case 2:_.WZ(y),_.yV(y,0)}})}()};var GeU=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},w$W=new ntU(function(p){p.addEventListener("abort",cHX,{once:!0})}),jAi=new WeakMap,byE=function(p){p=p===void 0?r9:p;
this.signal=new p};
byE.prototype.abort=function(p){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=p,p=new Event("abort"),this.signal.dispatchEvent(p))};
var r9=function(){this.target=GeU();this.aborted=!1;this.onabort=null};
r9.prototype.throwIfAborted=function(){rH9.call(this)};
r9.prototype.addEventListener=function(p,J,S){this.target.addEventListener(p,J,S)};
r9.prototype.removeEventListener=function(p,J,S){this.target.removeEventListener(p,J,S)};
r9.prototype.dispatchEvent=function(p){if(this.onabort&&p.type==="abort")this.onabort(p);return this.target.dispatchEvent(p)};
r9.abort=Yli;r9.timeout=Ipv;r9.any=x6i;var Emw=iy4?AbortController:byE,j2=iy4?AbortSignal:r9;typeof j2.abort!=="function"&&(j2.abort=Yli);typeof j2.prototype.throwIfAborted!=="function"&&(j2.prototype.throwIfAborted=rH9);typeof j2.any!=="function"&&(j2.any=x6i);typeof j2.timeout!=="function"&&(j2.timeout=Ipv);var PJ=null,pYg=new Map;var mcm=function(p){p=p.clone();sZ8(p);g$(p,"dg",null);g$(p,"d","0");CZn(p,null);yw8(p,null);return p},FuM=!0,vt8=function(p,J,S){var H=S===void 0?{}:S;
S=H.cssRowKey===void 0?void 0:H.cssRowKey;var M=H.combinedSignature===void 0?void 0:H.combinedSignature;var X=H.extraEdges===void 0?void 0:H.extraEdges;H=H.callback===void 0?void 0:H.callback;g$(p,"m",J.join(","));X&&Uyo(p,X);S&&(g$(p,"ck",S),M?g$(p,"rs",M):FuM&&(FuM=!1));if(H){if(H!=null&&!hH8.test(H))throw Error("Xa`"+H);g$(p,"cb",H)}p=p.toString();_.XX(p,"/")&&(p=KH8(document.location.href)+p);return _.sq(p)};var OyE=function(p){return fcd(p).then(function(J){return JSON.parse(J.responseText)})},fcd=function(p){var J={},S=J.xmlHttpFactory?J.xmlHttpFactory.createInstance():jd8.createInstance();
return(new _.UI(function(H,M){var X;try{S.open("GET",p,!0)}catch(b){M(new w9("Error opening XHR: "+b.message,p,S))}S.onreadystatechange=function(){if(S.readyState==4){_.Hg.clearTimeout(X);var b;!(b=r4U(S.status))&&(b=S.status===0)&&(b=Rw4(p),b=!(b=="http"||b=="https"||b==""));b?H(S):M(new AcE(S.status,p,S))}};
S.onerror=function(){M(new w9("Network error",p,S))};
if(J.headers)for(var Z in J.headers){var n=J.headers[Z];n!=null&&S.setRequestHeader(Z,n)}J.withCredentials&&(S.withCredentials=J.withCredentials);J.responseType&&(S.responseType=J.responseType);J.mimeType&&S.overrideMimeType(J.mimeType);J.timeoutMs>0&&(X=_.Hg.setTimeout(function(){S.onreadystatechange=function(){};
S.abort();M(new Py8(p,S))},J.timeoutMs));
try{S.send(null)}catch(b){S.onreadystatechange=function(){},_.Hg.clearTimeout(X),M(new w9("Error sending XHR: "+b.message,p,S))}})).thenCatch(function(H){H instanceof _.DP&&S.abort();
throw H;})},w9=function(p,J,S){_.pL.call(this,p+", url="+J);
this.url=J;this.xhr=S};
_.SJ(w9,_.pL);w9.prototype.name="XhrError";var AcE=function(p,J,S){w9.call(this,"Request Failed, status="+p,J,S);this.status=p};
_.SJ(AcE,w9);AcE.prototype.name="XhrHttpError";var Py8=function(p,J){w9.call(this,"Request timed out",p,J)};
_.SJ(Py8,w9);Py8.prototype.name="XhrTimeoutError";LT=LT||{};var xD=function(){_.gp.call(this)};
_.SJ(xD,_.gp);xD.prototype.initialize=function(){};var zdL=function(p,J){this.fn_=p;this.handler_=J};
zdL.prototype.execute=function(p){this.fn_&&(this.fn_.call(this.handler_||null,p),this.fn_=this.handler_=null)};
zdL.prototype.abort=function(){this.handler_=this.fn_=null};var cl=function(p,J){_.gp.call(this);this.deps_=p;this.JSC$11197_id_=J;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.SJ(cl,_.gp);cl.prototype.moduleConstructor_=xD;cl.prototype.module_=null;cl.prototype.getId=function(){return this.JSC$11197_id_};
cl.prototype.registerCallback=function(p,J){return Iu(this.onloadCallbacks_,p,J)};
var $c8=function(p,J){Iu(p.onErrorCallbacks_,J)},Iu=function(p,J,S){J=new zdL(J,S);
p.push(J);return J};
cl.prototype.isLoaded=function(){return!!this.module_};
cl.prototype.onLoad=function(p){var J=new this.moduleConstructor_;J.initialize(p());this.module_=J;J=(J=otd(this.earlyOnloadCallbacks_,p()))||otd(this.onloadCallbacks_,p());J||(this.onErrorCallbacks_.length=0);return J};
cl.prototype.onError=function(p){(p=otd(this.onErrorCallbacks_,p))&&MW(Error("rd`"+p));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var otd=function(p,J){for(var S=[],H=0;H<p.length;H++)try{p[H].execute(J)}catch(M){MW(M),S.push(M)}p.length=0;return S.length?S:null};
cl.prototype.disposeInternal=function(){cl.superClass_.disposeInternal.call(this);_.iW(this.module_)};var ed8,Uc8,ycU,Bod,Qs8,CyE,Dcq,tSU,hdq;
_.$X=function(p,J,S,H,M){H=H===void 0?!1:H;M=M===void 0?!1:M;var X=X===void 0?!0:X;this.scsReferenceUrl_=lks(_.gy(p).toString(),X);this.cssRowKey_=J;this.combinedSignature_=S;this.useNegativeLoading_=H;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(p=ss(this.scsReferenceUrl_,"excm"))?p.split(","):[];this.shouldScanForCss_=M;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;V99();_.Li(this,Bdd(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
ed8=function(p,J){if(J.href||J.getAttribute("data-href"))if(J=J.href||J.getAttribute("data-href"),Ngi(J)&&!lks(J).urlPrefix_.endsWith("_/js/")){J=Bdd(lks(J));J=_.K(J);for(var S=J.next();!S.done;S=J.next())S=S.value,p.loadedCssModuleList_.includes(S)||p.loadedCssModuleList_.push(S)}};
_.$X.prototype.JSC$11202_loadModules=function(p,J,S){var H=S===void 0?{}:S;J=H.extraEdges;S=H.onError;var M=H.onSuccess;H=H.forceReload;if(!p)throw Error("sd");if(this.shouldScanForCss_){for(var X=_.K(document.getElementsByTagName("style")),Z=X.next();!Z.done;Z=X.next())ed8(this,Z.value);X=_.K(document.getElementsByTagName("link"));for(Z=X.next();!Z.done;Z=X.next())ed8(this,Z.value)}WuE(this,Qs8(this,p),J,S,M,H)};
var WuE=function(p,J,S,H,M,X){H=H===void 0?function(){}:H;
M=M===void 0?function(){}:M;
X=X===void 0?!1:X;CyE(p,J,function(Z,n,b){b=b===void 0?n:b;p.enableFallbackFetch&&X?p.loadWithFetch(Z,n,H,M,b):p.load(Z,n,H,M,b,S)},S)||H(-1)};
_.$X.prototype.loadWithFetch=function(){_.G(function(){throw Error("td");})};
_.$X.prototype.maybeSetAdditionalFields=function(){};
Uc8=function(p,J,S){if(p.useNegativeLoading_){var H=p.scsReferenceUrl_;p={cssRowKey:p.cssRowKey_,combinedSignature:p.combinedSignature_,extraEdges:S,requestedModuleIds:ycU(p),requestedCssModuleIds:Bod(p)};var M=p===void 0?{}:p;p=M.requestedModuleIds===void 0?[]:M.requestedModuleIds;S=M.requestedCssModuleIds===void 0?[]:M.requestedCssModuleIds;var X=M.cssRowKey===void 0?void 0:M.cssRowKey;var Z=M.combinedSignature===void 0?void 0:M.combinedSignature;var n=M.extraEdges===void 0?void 0:M.extraEdges;
M=M.callback===void 0?void 0:M.callback;H=mcm(H);g$(H,"d","1");CZn(H,p);yw8(H,S);J=vt8(H,J,{cssRowKey:X,combinedSignature:Z,extraEdges:n,callback:M})}else H=p.scsReferenceUrl_,p={cssRowKey:p.cssRowKey_,combinedSignature:p.combinedSignature_,requestedModuleIds:ycU(p),requestedCssModuleIds:Bod(p)},n=p===void 0?{}:p,p=n.requestedCssModuleIds===void 0?[]:n.requestedCssModuleIds,S=n.cssRowKey===void 0?void 0:n.cssRowKey,X=n.combinedSignature===void 0?void 0:n.combinedSignature,Z=n.extraEdges===void 0?
void 0:n.extraEdges,n=n.callback===void 0?void 0:n.callback,H=mcm(H),yw8(H,p),J=vt8(H,J,{cssRowKey:S,combinedSignature:X,extraEdges:Z,callback:n});return J};
_.Li=function(p,J){for(var S=!1,H=[],M=0;M<J.length;++M){var X=J[M];p.requestedModuleMap_[X]||(p.requestedModuleMap_[X]=!0,p.requestedModuleList_.push(X),S=!0,H.push(X))}S&&(p.requestedModuleListSorted_=!1)};
_.pk=function(p,J){for(var S=[],H=0;H<J.length;++H){var M=J[H];p.requestedModuleMap_[M]&&(delete p.requestedModuleMap_[M],_.uw(p.requestedModuleList_,M),S.push(M))}};
_.$X.prototype.load=function(p,J,S,H,M){M=M===void 0?J:M;_.gy(p);var X=this.useCors_,Z=this.corsMode_,n=this.fetchPriority,b=_.Q0("SCRIPT");_.RI(b,p);X&&(b.crossOrigin=Z);b.async=!1;n&&b.setAttribute("fetchpriority",n);_.Li(this,J);_.ss8(this,p,b,J,S,H,M)};
_.ss8=function(p,J,S,H,M,X,Z){Z=Z===void 0?H:Z;p.lastScript_=S;p.insertPos.insertBefore(S,p.insertPos.firstChild);_.gtv(S,H,function(){S.parentElement.removeChild(S);p.lastScript_==S&&(p.lastScript_=null);X()},function(n){S.parentElement.removeChild(S);
p.lastScript_==S&&(p.lastScript_=null);_.pk(p,n);p.pendingModuleGraphUpdate_?p.pendingModuleGraphUpdate_.then(function(){M(-1,J)}):M(-1,J)},Z)};
_.gtv=function(p,J,S,H,M){M=M===void 0?J:M;var X=J.length,Z=function(){X=0;p.onload=null;p.onerror=null;n=function(){}},n=function(){Z();
var F=M.filter(function(f){return!uW().getModuleInfo(f).isLoaded()});
F.length!==0?H(F,"Response was successful but was missing module(s) "+F+"."):S()},b=function(){X--;
X==0&&n()};
J.forEach(function(F){F=uW().getModuleInfo(F);F.isLoaded()?b():(Iu(F.earlyOnloadCallbacks_,b),$c8(F,b))});
p.onload=function(){return n()};
p.onerror=function(){Z();H(J)}};
ycU=function(p){p.requestedModuleListSorted_||(p.requestedModuleListSorted_=!0,p.requestedModuleList_.sort());return p.requestedModuleList_};
Bod=function(p){p=p.loadedCssModuleList_;p.sort();return p};
Qs8=function(p,J){return J.filter(function(S){return!p.requestedModuleMap_[S]})};
CyE=function(p,J,S,H){if(p.pendingModuleGraphUpdate_)return p.pendingModuleGraphUpdate_.then(function(){CyE(p,J,S,H)}),!0;
if(!p.useNegativeLoading_){var M=[],X=Object.assign({},p.requestedModuleMap_);tSU(p,J,function(f){M.push(f.getId())},H,function(f){return!f.isLoaded()},X);
J=M}for(X=0;X<J.length;){for(var Z=J.length-X,n=X==0?J:J.slice(X,J.length),b=Uc8(p,n,H),F=_.gy(b).toString();F.length>p.urlMaxLength;)if(Z>1)Z-=Math.ceil((F.length-p.urlMaxLength)/6),Z=Math.max(Z,1),n=J.slice(X,X+Z),b=Uc8(p,n,H),F=_.gy(b).toString();else return p.useNegativeLoading_?(p.useNegativeLoading_=!1,p.pendingModuleGraphUpdate_=hdq(p).then(function(f){Dcq(p,f,H)}),CyE(p,J.slice(X),S,H)):!1;
X+=Z;p.useNegativeLoading_?S(b,n):S(b,n,X===J.length?J:[])}return!0};
Dcq=function(p,J,S){uW().setAllModuleInfoString((J||{}).moduleGraph);tSU(p,ycU(p),function(H){_.Li(p,[H.getId()])},S);
p.pendingModuleGraphUpdate_=null};
tSU=function(p,J,S,H,M,X){X=X===void 0?{}:X;var Z=uW();J=_.K(J);for(var n=J.next();!n.done;n=J.next()){n=n.value;var b=Z.getModuleInfo(n);if(!(X[n]||M&&!M(b))){X[n]=!0;var F=b.deps_||[];if(H){var f=[];H[n]&&(f=Object.keys(H[n]));F=F.concat(f)}tSU(p,F,S,H,M,X);S(b)}}};
hdq=function(p){p=p.scsReferenceUrl_.clone();sZ8(p);g$(p,"dg",null);g$(p,"md","1");return OyE(p.toString())};var SXi=new Uint8Array(123);var ke8=[];var No8=function(){this.JSC$10209_loader_=null};
_.R=No8.prototype;_.R.setBatchModeEnabled=function(){};
_.R.setAllModuleInfoString=function(){};
_.R.addExtraEdge=function(){throw Error("ud");};
_.R.removeExtraEdge=function(){throw Error("vd");};
_.R.getModuleContext=function(){return null};
_.R.isActive=function(){return!1};
_.R.isUserActive=function(){return!1};
_.R.registerInitializationCallback=function(){};
_.R.registerCallback=function(){};var J3=function(p,J,S,H,M){var X=Error.call(this);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.name="ModuleLoadFailure";this.type=p;this.status=J;this.requestedModuleIds=S;this.url=H;this.cause=M;this.message=this.toString()};
_.Q(J3,Error);J3.prototype.toString=function(){return To8(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var To8=function(p){switch(p.type){case J3.Type.UNAUTHORIZED:return"Unauthorized";case J3.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case J3.Type.TIMEOUT:return"Timed out";case J3.Type.OLD_CODE_GONE:return"Out of date module id";case J3.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+p.type}};
LT.ModuleLoadFailure=J3;LT.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var SY=function(){this.moduleIds_=this.JSC$10209_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11215_extraEdges_={};this.JSC$11215_callbackMap_={};this.JSC$11215_currentlyLoadingModule_=this.baseModuleInfo_=new cl([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Sb;this.isDisposed_=this.userLastActive_=this.lastActive_=this.batchModeEnabled_=
!1};
_.SJ(SY,No8);var dcd=function(p,J){_.pL.call(this,"Error loading "+p+": "+J)};
_.SJ(dcd,_.pL);SY.prototype.setBatchModeEnabled=function(p){this.batchModeEnabled_=p};
SY.prototype.setAllModuleInfoString=function(p,J){if(!(this instanceof SY))this.setAllModuleInfoString(p,J);else if(typeof p==="string"){if(p.startsWith("d$")){p=p.substring(2);for(var S=[],H=0,M=p.indexOf("/"),X=0,Z=!1,n=0;;){var b=Z?p.substring(X):p.substring(X,M);if(b.length===0)H++,X="sy"+H.toString(36),b=[];else{var F=b.indexOf(":");if(F<0)X=b,b=[];else if(F===b.length-1)X=b.substring(0,F),b=Array(S[n-1]);else{X=b.substring(0,F);b=b.substring(F+1).split(",");F=n;for(var f=0;f<b.length;f++)F-=
b[f].length===0?1:Number(b[f]),b[f]=S[F]}F=0;if(X.length===0)F=1;else if(X.charAt(0)==="+"||X.charAt(0)==="-")F=Number(X);F!==0&&(H+=F,X="sy"+H.toString(36))}S.push(X);uVm(this,X,b);if(Z)break;X=M+1;M=p.indexOf("/",X);M===-1&&(Z=!0);n++}this.moduleIds_=S}else if(p.startsWith("p$"))lcm(this,p);else{p=p.split("/");S=[];for(H=0;H<p.length;H++){n=p[H].split(":");M=n[0];Z=[];if(n[1])for(Z=n[1].split(","),n=0;n<Z.length;n++)Z[n]=S[parseInt(Z[n],36)];S.push(M);uVm(this,M,Z)}this.moduleIds_=S}J&&J.length?
(_.av(this.loadingModuleIds_,J),this.lastInitialModuleId_=_.gk(J)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11215_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11215_currentlyLoadingModule_=null,(J=this.baseModuleInfo_.onLoad((0,_.tT)(this.getModuleContext,this)))&&J.length&&VSn(this,new LT.ModuleLoadFailure(LT.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,J[0])),HP(this))}};
var lcm=function(p,J){var S=J.substring(2);for(J=0;J<64;J++)SXi["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(J)]=J;var H={buf:S,pos:0};zU(H);var M=zU(H),X=zU(H)+1;J=Array(M);var Z=Array(M),n=Array(M);X=Array(X);var b=0,F=0,f=H.pos,O=H.buf.indexOf("|",H.pos);H.pos=O+1;for(O=0;O<M;O++){var A=zU(H),P=A&2,W=A&1;A>>>=2;W?(b+=A>>>1^-(A&1),A="sy"+b.toString(36)):(W=f,f+=A,A=S.substring(W,f));J[O]=A;P&&(X[F++]=A)}X[F]="";H.pos++;F=M&-2;S=M&1;for(b=0;b<F;b+=2)f=HYw(H),n[b]=
f&7,n[b+1]=f>>>3&7;S&&(S=HYw(H),n[F]=S&7);H.pos++;for(F=0;F<M;F++)n[F]===7&&(n[F]=zU(H));H.pos++;for(S=F=0;S<M;S++){b=n[S];f=b===0?ke8:Array(b);Z[S]=f;O=F;for(P=0;P<b;P++)O-=zU(H),f[P]=X[O];X[F]===J[S]&&F++}for(H=0;H<J.length;H++)uVm(p,J[H],Z[H]);p.moduleIds_=J};
_.R=SY.prototype;_.R.getModuleInfo=function(p){return this.moduleInfoMap[p]};
_.R.addExtraEdge=function(p,J){var S=this.getModuleInfo(p);S&&S.isLoaded()?this.load(J):(this.JSC$11215_extraEdges_[p]||(this.JSC$11215_extraEdges_[p]={}),this.JSC$11215_extraEdges_[p][J]=!0)};
_.R.removeExtraEdge=function(p,J){if(this.JSC$11215_extraEdges_[p]){delete this.JSC$11215_extraEdges_[p][J];for(var S in this.JSC$11215_extraEdges_[p])return;delete this.JSC$11215_extraEdges_[p]}};
_.R.isActive=function(){return this.loadingModuleIds_.length>0};
_.R.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var HP=function(p){var J=p.lastActive_,S=p.isActive();S!=J&&(p.executeCallbacks_(S?"active":"idle"),p.lastActive_=S);J=p.isUserActive();J!=p.userLastActive_&&(p.executeCallbacks_(J?"userActive":"userIdle"),p.userLastActive_=J)},uVm=function(p,J,S){p.moduleInfoMap[J]?(p=p.moduleInfoMap[J].deps_,p!=S&&p.splice.apply(p,[0,
p.length].concat(_.dW(S)))):p.moduleInfoMap[J]=new cl(S,J)},ac8=function(p,J,S){var H=[];
DWW(J,H);J=[];for(var M={},X=0;X<H.length;X++){var Z=H[X],n=p.getModuleInfo(Z);if(!n)throw Error("wd`"+Z);var b=new Sb;M[Z]=b;n.isLoaded()?b.callback(null):(qrp(p,Z,n,!!S,b),p.isModuleLoading(Z)||J.push(Z))}J.length>0&&(p.loadingModuleIds_.length===0?p.loadModules_(J):(p.requestedModuleIdsQueue_.push(J),HP(p)));return M},qrp=function(p,J,S,H,M){S.registerCallback(M.callback,M);
$c8(S,function(X){M.errback(new dcd(J,X))});
p.isModuleLoading(J)?H&&(Etv(p,J),HP(p)):H&&Etv(p,J)};
SY.prototype.loadModules_=function(p,J,S){var H=this;J=J===void 0?0:J;var M=Yrm(this,p);this.loadingModuleIds_=M;this.requestedLoadingModuleIds_=this.batchModeEnabled_?p:_.VX(M);HP(this);if(M.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,M);p=this.JSC$10209_loader_;if(!p)throw Error("xd");if(Object.keys(this.JSC$11215_extraEdges_).length>0&&!p.supportsExtraEdges)throw Error("yd");S=(0,_.tT)(p.JSC$11202_loadModules,p,_.VX(M),this.moduleInfoMap,{extraEdges:this.JSC$11215_extraEdges_,
forceReload:!!S,onError:function(X,Z,n){var b=H.requestedLoadingModuleIds_;X=X!=null?X:void 0;var F=J;n=n===void 0?!1:n;n=(n===void 0?0:n)?0:(F===void 0?0:F)+1;F=_.VX(M);H.requestedLoadingModuleIds_=b;M.forEach(_.nl(_.uw,H.requestedModuleIds_),H);X==401?(VSn(H,new LT.ModuleLoadFailure(LT.ModuleLoadFailure.Type.UNAUTHORIZED,X)),H.requestedModuleIdsQueue_.length=0):X==410?(rcU(H,new LT.ModuleLoadFailure(LT.ModuleLoadFailure.Type.OLD_CODE_GONE,X)),jsE(H)):n>=3?(rcU(H,new LT.ModuleLoadFailure(LT.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
X,F,Z)),jsE(H)):H.loadModules_(H.requestedLoadingModuleIds_,n,X==8001||!1)},
onTimeout:(0,_.tT)(this.handleLoadTimeout_,this)});(p=Math.pow(J,2)*5E3)?_.Hg.setTimeout(S,p):S()}};
var Yrm=function(p,J){J=J.filter(function(M){return p.moduleInfoMap[M].isLoaded()?(_.Hg.setTimeout(function(){return Error("zd`"+M)},0),!1):!0});
for(var S=[],H=0;H<J.length;H++)S=S.concat(wto(p,J[H]));DWW(S);return!p.batchModeEnabled_&&S.length>1?(J=S.shift(),p.requestedModuleIdsQueue_=S.map(function(M){return[M]}).concat(p.requestedModuleIdsQueue_),[J]):S},wto=function(p,J){var S=_.T6.createSet(p.requestedModuleIds_),H=[];
S[J]||H.push(J);J=[J];for(var M=0;M<J.length;M++)for(var X=p.getModuleInfo(J[M]).deps_,Z=X.length-1;Z>=0;Z--){var n=X[Z];p.getModuleInfo(n).isLoaded()||S[n]||(H.push(n),J.push(n))}H.reverse();DWW(H);return H};
SY.prototype.JSC$11210_setLoaded=function(){if(this.JSC$11215_currentlyLoadingModule_){var p=this.JSC$11215_currentlyLoadingModule_.getId(),J=[];if(this.JSC$11215_extraEdges_[p]){for(var S=_.K(Object.keys(this.JSC$11215_extraEdges_[p])),H=S.next();!H.done;H=S.next()){H=H.value;var M=this.getModuleInfo(H);M&&!M.isLoaded()&&(this.removeExtraEdge(p,H),J.push(H))}this.loadMultiple(J)}this.isDisposed()||((J=this.moduleInfoMap[p].onLoad((0,_.tT)(this.getModuleContext,this)))&&J.length&&VSn(this,new LT.ModuleLoadFailure(LT.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,J[0])),_.uw(this.userInitiatedLoadingModuleIds_,p),_.uw(this.loadingModuleIds_,p),this.loadingModuleIds_.length===0&&jsE(this),this.lastInitialModuleId_&&p==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),HP(this),this.JSC$11215_currentlyLoadingModule_=null)}};
SY.prototype.isModuleLoading=function(p){if(_.dk(this.loadingModuleIds_,p))return!0;for(var J=0;J<this.requestedModuleIdsQueue_.length;J++)if(_.dk(this.requestedModuleIdsQueue_[J],p))return!0;return!1};
SY.prototype.load=function(p,J){return ac8(this,[p],J)[p]};
SY.prototype.loadMultiple=function(p){return ac8(this,p)};
var Etv=function(p,J){_.dk(p.userInitiatedLoadingModuleIds_,J)||p.userInitiatedLoadingModuleIds_.push(J)};
SY.prototype.beforeLoadModuleCode=function(p){var J=this;this.JSC$11215_currentlyLoadingModule_&&this.JSC$11215_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11210_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[p]&&xco(this,this.moduleInfoMap[p].deps_||[],function(S){S.module_=new xD;_.uw(J.loadingModuleIds_,S.getId())},function(S){return!S.isLoaded()});
this.JSC$11215_currentlyLoadingModule_=this.getModuleInfo(p)};
SY.prototype.registerInitializationCallback=function(p){this.JSC$11215_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new cl([],"synthetic_module_overhead"),this.JSC$11215_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);Iu(this.JSC$11215_currentlyLoadingModule_.earlyOnloadCallbacks_,p)};
SY.prototype.handleLoadTimeout_=function(){rcU(this,new LT.ModuleLoadFailure(LT.ModuleLoadFailure.Type.TIMEOUT));jsE(this)};
var rcU=function(p,J){p.requestedLoadingModuleIds_.length>1?p.requestedModuleIdsQueue_=p.requestedLoadingModuleIds_.map(function(S){return[S]}).concat(p.requestedModuleIdsQueue_):VSn(p,J)},VSn=function(p,J){var S=p.requestedLoadingModuleIds_;
p.loadingModuleIds_.length=0;for(var H=[],M=0;M<p.requestedModuleIdsQueue_.length;M++){var X=p.requestedModuleIdsQueue_[M].filter(function(b){var F=wto(this,b);return Zt(S,function(f){return _.dk(F,f)})},p);
_.av(H,X)}for(M=0;M<S.length;M++)_.svs(H,S[M]);for(M=0;M<H.length;M++){for(X=0;X<p.requestedModuleIdsQueue_.length;X++)_.uw(p.requestedModuleIdsQueue_[X],H[M]);_.uw(p.userInitiatedLoadingModuleIds_,H[M])}if(M=p.JSC$11215_callbackMap_.error)for(X=0;X<M.length;X++)for(var Z=M[X],n=0;n<H.length;n++)Z("error",H[n],J);for(H=0;H<S.length;H++)if(p.moduleInfoMap[S[H]])p.moduleInfoMap[S[H]].onError(J);p.requestedLoadingModuleIds_.length=0;HP(p)},jsE=function(p){for(;p.requestedModuleIdsQueue_.length;){var J=
p.requestedModuleIdsQueue_.shift().filter(function(S){return!this.getModuleInfo(S).isLoaded()},p);
if(J.length>0){p.loadModules_(J);return}}HP(p)};
SY.prototype.registerCallback=function(p,J){Array.isArray(p)||(p=[p]);for(var S=0;S<p.length;S++){var H=p[S],M=J,X=this.JSC$11215_callbackMap_;X[H]||(X[H]=[]);X[H].push(M)}};
SY.prototype.executeCallbacks_=function(p){for(var J=this.JSC$11215_callbackMap_[p],S=0;J&&S<J.length;S++)J[S](p)};
var xco=function(p,J,S,H,M){H=H===void 0?function(){return!0}:H;
M=M===void 0?{}:M;J=_.K(J);for(var X=J.next();!X.done;X=J.next()){X=X.value;var Z=p.getModuleInfo(X);!M[X]&&H(Z)&&(M[X]=!0,xco(p,Z.deps_||[],S,H,M),S(Z))}};
SY.prototype.dispose=function(){_.R7(_.T6.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11215_callbackMap_={};this.isDisposed_=!0};
SY.prototype.isDisposed=function(){return this.isDisposed_};
_.dp=function(){return new SY};var ccE=[5E3,2E4],Nh3=function(){this.JSC$10209_loader_=null;this.JSC$11223_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11223_queue_=[];this.JSC$11223_extraEdges_=Object.create(null);this.JSC$11223_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.Q(Nh3,No8);_.R=Nh3.prototype;_.R.setAllModuleInfoString=function(){this.JSC$11223_currentlyLoadingModule_&&this.JSC$11223_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11210_setLoaded()};
_.R.getModuleInfo=function(p){var J=this.JSC$11223_moduleInfoMap_[p];J||(J=new cl([],p),this.JSC$11223_moduleInfoMap_[p]=J);return J};
_.R.addExtraEdge=function(p,J){this.getModuleInfo(p).isLoaded()?this.load(J):(this.JSC$11223_extraEdges_[p]||(this.JSC$11223_extraEdges_[p]={}),this.JSC$11223_extraEdges_[p][J]=!0)};
_.R.removeExtraEdge=function(p,J){if(this.JSC$11223_extraEdges_[p]){delete this.JSC$11223_extraEdges_[p][J];for(var S in this.JSC$11223_extraEdges_[p])return;delete this.JSC$11223_extraEdges_[p]}};
_.R.isModuleLoading=function(p){return!!this.loadingModules_[p]};
_.R.load=function(p){Ic8(this,[p]);return Luq(this,p)};
_.R.loadMultiple=function(p){var J=this,S=Object.create(null),H=[];p.forEach(function(M){S[M]||(S[M]=Luq(J,M),H.push(M))});
Ic8(this,H);return S};
_.R.beforeLoadModuleCode=function(p){var J;((J=this.JSC$11223_currentlyLoadingModule_)==null?void 0:J.getId())==="synthetic_module_overhead"&&this.JSC$11210_setLoaded();var S,H;p6M(this,(H=(S=this.JSC$11223_moduleInfoMap_[p])==null?void 0:S.deps_)!=null?H:[],function(M){M.module_=new xD},function(M){return!M.isLoaded()});
this.JSC$11223_currentlyLoadingModule_=this.getModuleInfo(p)};
_.R.JSC$11210_setLoaded=function(){if(this.JSC$11223_currentlyLoadingModule_){var p=this.JSC$11223_currentlyLoadingModule_.getId(),J=[];if(this.JSC$11223_extraEdges_[p]){for(var S=_.K(Object.keys(this.JSC$11223_extraEdges_[p])),H=S.next();!H.done;H=S.next())H=H.value,this.getModuleInfo(H).isLoaded()||(this.removeExtraEdge(p,H),J.push(H));this.loadMultiple(J)}this.JSC$11223_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11223_currentlyLoadingModule_=null;(!this.isModuleLoading(p)&&/^sy[0-9a-z]{0,4}$/.test(p)||p==="synthetic_module_overhead")&&delete this.JSC$11223_moduleInfoMap_[p];this.unsetModulesAsLoading(p)}};
_.R.registerInitializationCallback=function(p){this.JSC$11223_currentlyLoadingModule_||(this.JSC$11223_moduleInfoMap_.synthetic_module_overhead=new cl([],"synthetic_module_overhead"),this.JSC$11223_currentlyLoadingModule_=this.JSC$11223_moduleInfoMap_.synthetic_module_overhead);Iu(this.JSC$11223_currentlyLoadingModule_.earlyOnloadCallbacks_,p)};
_.R.setModulesAsLoading=function(){var p=this;_.Yp.apply(0,arguments).forEach(function(J){p.loadingModules_[J]=!0})};
_.R.unsetModulesAsLoading=function(){var p=this;_.Yp.apply(0,arguments).forEach(function(J){delete p.loadingModules_[J]})};
var Luq=function(p,J){return new _.UI(function(S,H){var M=p.getModuleInfo(J);M.isLoaded()?S(null):(M.registerCallback(function(){S(null)}),$c8(M,function(X){var Z="Error loading "+J+": "+X;
X instanceof LT.ModuleLoadFailure&&X.url&&(Z=Z+", requested url: "+X.url.toString());H(Error(Z))}))})},Ic8=function(p,J){J=J.filter(function(S){return!p.isModuleLoading(S)&&!p.getModuleInfo(S).isLoaded()});
J.length>0&&(p.setModulesAsLoading.apply(p,_.dW(J)),p.JSC$11223_queue_.push(J),Jn8(p))},Jn8=function(p){for(var J={};p.activeLoads_<Infinity&&p.JSC$11223_queue_.length>0;J={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})J.ids$jscomp$37=p.JSC$11223_queue_.shift().filter(function(S){return!p.getModuleInfo(S).isLoaded()}),J.ids$jscomp$37.length>0&&(p.activeLoads_++,J.finishLoad=function(S){return function(){p.activeLoads_--;
Jn8(p);S.finishLoad=function(){}}}(J),_.kf(J.ids$jscomp$37.map(function(S){return Luq(p,S)})).then(function(S){return function(){(0,S.finishLoad)()}}(J)),J.attempt$jscomp$6=0,J.load$jscomp$1=function(S){return function(){if(Object.keys(p.JSC$11223_extraEdges_).length>0&&!p.JSC$10209_loader_.supportsExtraEdges)throw Error("yd");
p.JSC$10209_loader_.JSC$11202_loadModules(S.ids$jscomp$37,p.JSC$11223_moduleInfoMap_,{extraEdges:p.JSC$11223_extraEdges_,onError:function(H,M){var X=ccE[S.attempt$jscomp$6++];X!==void 0?setTimeout(function(){(0,S.load$jscomp$1)()},X):(p.unsetModulesAsLoading.apply(p,_.dW(S.ids$jscomp$37)),(0,S.finishLoad)(),S.ids$jscomp$37.forEach(function(Z){Z=p.getModuleInfo(Z);
if(!Z.isLoaded())Z.onError(new LT.ModuleLoadFailure(LT.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,H,S.ids$jscomp$37,M))}))}})}}(J),(0,J.load$jscomp$1)())},p6M=function(p,J,S,H,M){H=H===void 0?function(){return!0}:H;
M=M===void 0?{}:M;J=_.K(J);for(var X=J.next();!X.done;X=J.next()){X=X.value;var Z=p.getModuleInfo(X);!M[X]&&H(Z)&&(M[X]=!0,p6M(p,Z.deps_||[],S,H,M),S(Z))}};var SD8=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Rl9=Symbol("Bd");window.JSCompiler_renameProperty=function(p){return p};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var H38=!SD8||HTMLElement.es5Shimmed||_.Hg.Reflect===void 0||_.Hg.customElements===void 0||_.Hg.customElements.polyfillWrapFlushCallback||!1,Mh8,dit=function(){var p=HTMLElement;if(H38)return p;if(Mh8!==void 0)return Mh8;var J=_.Hg.Reflect,S=function(){return J.construct(p,[],this.constructor)};
S.prototype=p.prototype;S.prototype.constructor=S;S.es5Shimmed=!0;Object.setPrototypeOf(S,p);return Mh8=S},X6M=!1;H38||X6M||(X6M=!0,_.Hg.HTMLElement=dit());/*

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 bYk=/(url\()([^)]*)(\))/g,n8s=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Gst,oZ;var pz=!window.ShadyDOM||!window.ShadyDOM.inUse,i3E=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Rud=!window.customElements.polyfillWrapFlushCallback,Kym;if(Kym=pz&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Z38=new CSSStyleSheet;Z38.replaceSync("");var n3U=document.createElement("div");n3U.attachShadow({mode:"open"});n3U.shadowRoot.adoptedStyleSheets=[Z38];Kym=n3U.shadowRoot.adoptedStyleSheets[0]===Z38}catch(p){Kym=!1}
var GI8=Kym,b3M=window.Polymer&&window.Polymer.rootPath||FKv(document.baseURI||window.location.href),Ny=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,oIw=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,iu=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,mQ8=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,LE=window.Polymer&&window.Polymer.legacyOptimizations||!1,X7=window.Polymer&&window.Polymer.legacyWarnings||!1,Fyn=window.Polymer&&window.Polymer.syncInitialRender||
!1,dd=window.Polymer&&window.Polymer.legacyUndefined||!1,v38=window.Polymer&&window.Polymer.orderedComputed||!1,ME=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Xg=window.Polymer&&window.Polymer.fastDomIf||!1,iB=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,fVM=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,O3M=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var RL={},Anv={},lZ=function(){return HTMLElement.apply(this,arguments)||this};
_.Q(lZ,HTMLElement);lZ.import=function(p,J){return p?(p=RL[p]||Anv[p.toLowerCase()])&&J?p.querySelector(J):p:null};
lZ.prototype.attributeChangedCallback=function(p,J,S){J!==S&&this.register()};
lZ.prototype.register=function(p){if(p=p||this.id){if(iu&&(RL[p]||Anv[p.toLowerCase()])!==void 0)throw RL[p]=Anv[p.toLowerCase()]=null,Error("Cd`"+p);this.id=p;RL[p]=Anv[p.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.vh.Object.defineProperties(lZ.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var p=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;p=_.e5(this.getAttribute("assetpath")||"",p.baseURI);this.__assetpath=FKv(p)}return this.__assetpath}}});
_.vh.Object.defineProperties(lZ,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
lZ["import"]=lZ.import;lZ.prototype.modules=RL;customElements.define("dom-module",lZ);var POd=0,fP4=0,WJ=[],zu8=0,v8g=!1,$Q8=document.createTextNode(""),o3o,cJ;(new window.MutationObserver(OYX)).observe($Q8,{characterData:!0});_.Kk={after:function(p){return{run:function(J){return window.setTimeout(J,p)},
cancel:function(J){window.clearTimeout(J)}}},
run:function(p,J){return window.setTimeout(p,J)},
cancel:function(p){window.clearTimeout(p)}};
_.$2={run:function(p){return window.requestAnimationFrame(p)},
cancel:function(p){window.cancelAnimationFrame(p)}};
o3o={run:function(p){return window.requestIdleCallback?window.requestIdleCallback(p):window.setTimeout(p,16)},
cancel:function(p){window.cancelIdleCallback?window.cancelIdleCallback(p):window.clearTimeout(p)}};
cJ={run:function(p){v8g||(v8g=!0,$Q8.textContent=zu8++);WJ.push(p);return POd++},
cancel:function(p){var J=p-fP4;if(J>=0){if(!WJ[J])throw Error("Dd`"+p);WJ[J]=null}}};var euU=0,ZR=function(p){var J=p.__mixinApplications;J||(J=new WeakMap,p.__mixinApplications=J);var S=euU++;return function(H){var M=H.__mixinSet;if(M&&M[S])return H;var X=J,Z=X.get(H);Z||(Z=p(H),X.set(H,Z),H=Object.create(Z.__mixinSet||M||null),H[S]=!0,Z.__mixinSet=H);return Z}};_.kX=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(p){return ShadyDOM.patch(p)}:function(p){return p};var Wyv=ZR(function(p){var J=function(){var S=p.call(this)||this;S.__dataEnabled=!1;S.__dataReady=!1;S.__dataInvalid=!1;S.__data={};S.__dataPending=null;S.__dataOld=null;S.__dataInstanceProps=null;S.__dataCounter=0;S.__serializing=!1;S._initializeProperties();return S};
_.Q(J,p);J.createProperties=function(S){var H=this.prototype,M;for(M in S)M in H||H._createPropertyAccessor(M)};
J.attributeNameForProperty=function(S){return S.toLowerCase()};
J.typeForProperty=function(){};
J.prototype._createPropertyAccessor=function(S,H){this._addPropertyToAttributeMap(S);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[S]||(this.__dataHasAccessor[S]=!0,this._definePropertyAccessor(S,H))};
J.prototype._addPropertyToAttributeMap=function(S){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var H=this.__dataAttributes[S];H||(H=this.constructor.attributeNameForProperty(S),this.__dataAttributes[H]=S);return H};
J.prototype._definePropertyAccessor=function(S,H){Object.defineProperty(this,S,{get:function(){return this.__data[S]},
set:H?function(){}:function(M){this._setPendingProperty(S,M,!0)&&this._invalidateProperties()}})};
J.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
J.prototype._initializeProperties=function(){for(var S in this.__dataHasAccessor)this.hasOwnProperty(S)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[S]=this[S],delete this[S])};
J.prototype._initializeInstanceProperties=function(S){Object.assign(this,S)};
J.prototype._setProperty=function(S,H){this._setPendingProperty(S,H)&&this._invalidateProperties()};
J.prototype._getProperty=function(S){return this.__data[S]};
J.prototype._setPendingProperty=function(S,H){var M=this.__data[S],X=this._shouldPropertyChange(S,H,M);X&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||S in this.__dataOld||(this.__dataOld[S]=M),this.__data[S]=H,this.__dataPending[S]=H);return X};
J.prototype._isPropertyPending=function(S){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(S))};
J.prototype._invalidateProperties=function(){var S=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,cJ.run(function(){S.__dataInvalid&&(S.__dataInvalid=!1,S._flushProperties())}))};
J.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
J.prototype._flushProperties=function(){this.__dataCounter++;var S=this.__data,H=this.__dataPending,M=this.__dataOld;this._shouldPropertiesChange(S,H,M)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(S,H,M));this.__dataCounter--};
J.prototype._shouldPropertiesChange=function(S,H){return!!H};
J.prototype._propertiesChanged=function(){};
J.prototype._shouldPropertyChange=function(S,H,M){return M!==H&&(M===M||H===H)};
J.prototype.attributeChangedCallback=function(S,H,M,X){H!==M&&this._attributeToProperty(S,M);p.prototype.attributeChangedCallback&&p.prototype.attributeChangedCallback.call(this,S,H,M,X)};
J.prototype._attributeToProperty=function(S,H,M){if(!this.__serializing){var X=this.__dataAttributes;S=X&&X[S]||S;this[S]=this._deserializeValue(H,M||this.constructor.typeForProperty(S))}};
J.prototype._propertyToAttribute=function(S,H,M){this.__serializing=!0;M=arguments.length<3?this[S]:M;this._valueToNodeAttribute(this,M,H||this.constructor.attributeNameForProperty(S));this.__serializing=!1};
J.prototype._valueToNodeAttribute=function(S,H,M){H=this._serializeValue(H);if(M==="class"||M==="name"||M==="slot")S=(0,_.kX)(S);H===void 0?S.removeAttribute(M):S.setAttribute(M,H===""&&window.trustedTypes?window.trustedTypes.emptyScript:H)};
J.prototype._serializeValue=function(S){switch(typeof S){case "boolean":return S?"":void 0;default:return S!=null?S.toString():void 0}};
J.prototype._deserializeValue=function(S,H){switch(H){case Boolean:return S!==null;case Number:return Number(S);default:return S}};
return J});var Qfq=0,AXw=[];var COv=ZR(function(p){function J(X){X=Object.getPrototypeOf(X);return X.prototype instanceof M?X:null}
function S(X){if(!X.hasOwnProperty("__ownProperties")){var Z=null;if(X.hasOwnProperty("properties")){var n=X.properties;if(n){Z={};for(var b in n){var F=n[b];Z[b]=typeof F==="function"?{type:F}:F}}}X.__ownProperties=Z}return X.__ownProperties}
var H=Wyv(p),M=function(){return H.apply(this,arguments)||this};
_.Q(M,H);M.finalize=function(){if(!this.hasOwnProperty("__finalized")){var X=J(this);X&&X.finalize();this.__finalized=!0;this._finalizeClass()}};
M._finalizeClass=function(){var X=S(this);X&&this.createProperties(X)};
M.typeForProperty=function(X){return(X=this._properties[X])&&X.type};
M.prototype._initializeProperties=function(){Qfq++;this.constructor.finalize();H.prototype._initializeProperties.call(this)};
M.prototype.connectedCallback=function(){H.prototype.connectedCallback&&H.prototype.connectedCallback.call(this);this._enableProperties()};
M.prototype.disconnectedCallback=function(){H.prototype.disconnectedCallback&&H.prototype.disconnectedCallback.call(this)};
_.vh.Object.defineProperties(M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var X=this;if(!this.hasOwnProperty("__observedAttributes")){P6i(this.prototype);var Z=this._properties;this.__observedAttributes=Z?Object.keys(Z).map(function(n){return X.prototype._addPropertyToAttributeMap(n)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var X=J(this);this.__properties=Object.assign({},X&&X._properties,S(this))}return this.__properties}}});
return M});var zlk={},$B9=/-[a-z]/g,o8w=/([A-Z])/g;for(var ynm={},Bw8=HTMLElement.prototype;Bw8;){for(var UQ4=Object.getOwnPropertyNames(Bw8),sfU=0;sfU<UQ4.length;sfU++)ynm[UQ4[sfU]]=!0;Bw8=Object.getPrototypeOf(Bw8)}var g3L=window.trustedTypes?function(p){return trustedTypes.isHTML(p)||trustedTypes.isScript(p)||trustedTypes.isScriptURL(p)}:function(){return!1},thM=ZR(function(p){var J=Wyv(p);
p=function(){return J.apply(this,arguments)||this};
_.Q(p,J);p.createPropertiesForAttributes=function(){for(var S=this.observedAttributes,H=0;H<S.length;H++)this.prototype._createPropertyAccessor(QT(S[H]))};
p.attributeNameForProperty=function(S){return CE(S)};
p.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);J.prototype._initializeProperties.call(this)};
p.prototype._initializeProtoProperties=function(S){for(var H in S)this._setProperty(H,S[H])};
p.prototype._ensureAttribute=function(S,H){this.hasAttribute(S)||this._valueToNodeAttribute(this,H,S)};
p.prototype._serializeValue=function(S){switch(typeof S){case "object":if(S instanceof Date)return S.toString();if(S){if(g3L(S))return S;try{return JSON.stringify(S)}catch(H){return""}}default:return J.prototype._serializeValue.call(this,S)}};
p.prototype._deserializeValue=function(S,H){switch(H){case Object:try{var M=JSON.parse(S)}catch(X){M=S}break;case Array:try{M=JSON.parse(S)}catch(X){M=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+S)}break;case Date:M=isNaN(S)?String(S):Number(S);M=new Date(M);break;default:M=J.prototype._deserializeValue.call(this,S,H)}return M};
p.prototype._definePropertyAccessor=function(S,H){if(!ynm[S]){var M=this[S];M!==void 0&&(this.__data?this._setPendingProperty(S,M):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[S]=M))}J.prototype._definePropertyAccessor.call(this,S,H)};
p.prototype._hasAccessor=function(S){return this.__dataHasAccessor&&this.__dataHasAccessor[S]};
p.prototype._isPropertyPending=function(S){return!!(this.__dataPending&&S in this.__dataPending)};
return p});var hup={"dom-if":!0,"dom-repeat":!0},DQM=!1,kId=!1,Nwv=function(){var p=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(J){return J}});
return function(J,S,H){S=S.getAttribute(H);p&&H.startsWith("on-")?J.setAttribute(H,p.createScript(S,H)):J.setAttribute(H,S)}}(),Tw4=ZR(function(p){var J=function(){return p.apply(this,arguments)||this};
_.Q(J,p);J._parseTemplate=function(S,H){if(!S._templateInfo){var M=S._templateInfo={};M.nodeInfoList=[];M.nestedTemplate=!!H;M.stripWhiteSpace=H&&H.stripWhiteSpace||S.hasAttribute&&S.hasAttribute("strip-whitespace");this._parseTemplateContent(S,M,{parent:null})}return S._templateInfo};
J._parseTemplateContent=function(S,H,M){return this._parseTemplateNode(S.content,H,M)};
J._parseTemplateNode=function(S,H,M){var X=!1;S.localName!="template"||S.hasAttribute("preserve-content")?S.localName==="slot"&&(H.hasInsertionPoint=!0):X=this._parseTemplateNestedTemplate(S,H,M)||X;if(!DQM){DQM=!0;var Z=document.createElement("textarea");Z.placeholder="a";kId=Z.placeholder===Z.textContent}kId&&S.localName==="textarea"&&S.placeholder&&S.placeholder===S.textContent&&(S.textContent=null);S.firstChild&&this._parseTemplateChildNodes(S,H,M);S.hasAttributes&&S.hasAttributes()&&(X=this._parseTemplateNodeAttributes(S,
H,M)||X);return X||M.noted};
J._parseTemplateChildNodes=function(S,H,M){if(S.localName!=="script"&&S.localName!=="style")for(var X=S.firstChild,Z=0,n;X;X=n){if(X.localName=="template"){var b=X.getAttribute("is");if(b&&hup[b])for(n=X,n.removeAttribute("is"),X=n.ownerDocument.createElement(b),n.parentNode.replaceChild(X,n),X.appendChild(n);n.attributes.length;)b=n.attributes[0].name,Nwv(X,n,b),n.removeAttribute(b)}n=X.nextSibling;if(X.nodeType===Node.TEXT_NODE){for(b=n;b&&b.nodeType===Node.TEXT_NODE;)X.textContent+=b.textContent,
n=b.nextSibling,S.removeChild(b),b=n;if(H.stripWhiteSpace&&!X.textContent.trim()){S.removeChild(X);continue}}b={parentIndex:Z,parentInfo:M};this._parseTemplateNode(X,H,b)&&(b.infoIndex=H.nodeInfoList.push(b)-1);X.parentNode&&Z++}};
J._parseTemplateNestedTemplate=function(S,H,M){H=this._parseTemplate(S,H);(H.content=S.content.ownerDocument.createDocumentFragment()).appendChild(S.content);M.templateInfo=H;return!0};
J._parseTemplateNodeAttributes=function(S,H,M){for(var X=!1,Z=Array.from(S.attributes),n=Z.length-1,b;b=Z[n];n--)X=this._parseTemplateNodeAttribute(S,H,M,b.name,b.value)||X;return X};
J._parseTemplateNodeAttribute=function(S,H,M,X,Z){return X.slice(0,3)==="on-"?(S.removeAttribute(X),M.events=M.events||[],M.events.push({name:X.slice(3),value:Z}),!0):X==="id"?(M.id=Z,!0):!1};
J._contentForTemplate=function(S){var H=S._templateInfo;return H&&H.content||S.content};
J.prototype._stampTemplate=function(S,H){S&&!S.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(S);H=H||this.constructor._parseTemplate(S);var M=H.nodeInfoList;S=document.importNode(H.content||S.content,!0);S.__noInsertionPoint=!H.hasInsertionPoint;var X=S.nodeList=Array(M.length);S.$={};for(var Z=0,n=M.length,b=void 0;Z<n&&(b=M[Z]);Z++){var F=X[Z]=elX(S,b);b.id&&(S.$[b.id]=F);var f=F,O=b,A=H;O.templateInfo&&(f._templateInfo=O.templateInfo,f._parentTemplateInfo=
A);if(b.events&&b.events.length)for(f=0,O=b.events,A=void 0;f<O.length&&(A=O[f]);f++)this._addMethodEventListenerToNode(F,A.name,A.value,this)}return S};
J.prototype._addMethodEventListenerToNode=function(S,H,M,X){M=WKi(X||S,M);this._addEventListenerToNode(S,H,M);return M};
J.prototype._addEventListenerToNode=function(S,H,M){S.addEventListener(H,M)};
J.prototype._removeEventListenerFromNode=function(S,H,M){S.removeEventListener(H,M)};
return J});var hw=0,TU=[],dQE={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},uME=/[A-Z]/,lVp=function(p,J,S,H,M){var X=M?BJ(p):p;if(J=J[X])for(X=0;X<J.length;X++){var Z=J[X];if(Z.info.lastRun!==hw&&(!M||stw(p,Z.trigger))){Z.info.lastRun=hw;Z=Z.info;for(var n=S,b=H,F=0,f=n.length-1,O=-1;F<=f;){var A=F+f>>1,P=b.get(n[A].methodInfo)-b.get(Z.methodInfo);if(P<0)F=A+1;else if(P>0)f=A-1;else{O=A;break}}O<
0&&(O=f+1);n.splice(O,0,Z)}}},YX4=[],VhL=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"),Gm=ZR(function(p){var J=Tw4(thM(p));
p=function(){var S=J.call(this)||this;S.__isPropertyEffectsClient=!0;return S};
_.Q(p,J);p.prototype._initializeProperties=function(){J.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(nk.length){var S=nk[nk.length-1];S._enqueueClient(this);this.__dataHost=S}};
p.prototype._initializeProtoProperties=function(S){this.__data=Object.create(S);this.__dataPending=Object.create(S);this.__dataOld={}};
p.prototype._initializeInstanceProperties=function(S){var H=this.__readOnly,M;for(M in S)H&&H[M]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[M]=this.__dataPending[M]=S[M])};
p.prototype._addPropertyEffect=function(S,H,M){this._createPropertyAccessor(S,H=="__readOnly");var X=UBW(this,H,!0)[S];X||(X=this[H][S]=[]);X.push(M)};
p.prototype._removePropertyEffect=function(S,H,M){S=UBW(this,H,!0)[S];M=S.indexOf(M);M>=0&&S.splice(M,1)};
p.prototype._hasPropertyEffect=function(S,H){H=this[H];return!(!H||!H[S])};
p.prototype._hasReadOnlyEffect=function(S){return this._hasPropertyEffect(S,"__readOnly")};
p.prototype._hasNotifyEffect=function(S){return this._hasPropertyEffect(S,"__notifyEffects")};
p.prototype._hasReflectEffect=function(S){return this._hasPropertyEffect(S,"__reflectEffects")};
p.prototype._hasComputedEffect=function(S){return this._hasPropertyEffect(S,"__computeEffects")};
p.prototype._setPendingPropertyOrPath=function(S,H,M,X){if(X||BJ(Array.isArray(S)?S[0]:S)!==S){if(!X&&(X=tw(this,S),S=B_v(this,S,H),!S||!J.prototype._shouldPropertyChange.call(this,S,H,X)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(S,H,M)){if(M=this.__dataLinkedPaths)for(var Z in M)X=M[Z],Uy(Z,S)?(X=sy(Z,X,S),this._setPendingPropertyOrPath(X,H,!0,!0)):Uy(X,S)&&(X=sy(X,Z,S),this._setPendingPropertyOrPath(X,H,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[S])return this._setPendingProperty(S,
H,M);this[S]=H}return!1};
p.prototype._setUnmanagedPropertyToNode=function(S,H,M){if(M!==S[H]||typeof M=="object")H==="className"&&(S=(0,_.kX)(S)),S[H]=M};
p.prototype._setPendingProperty=function(S,H,M){var X=this.__dataHasPaths&&yT(S);if(this._shouldPropertyChange(S,H,(X?this.__dataTemp:this.__data)[S])){this.__dataPending||(this.__dataPending={},this.__dataOld={});S in this.__dataOld||(this.__dataOld[S]=this.__data[S]);X?this.__dataTemp[S]=H:this.__data[S]=H;this.__dataPending[S]=H;if(X||this.__notifyEffects&&this.__notifyEffects[S])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[S]=M;return!0}return!1};
p.prototype._setProperty=function(S,H){this._setPendingProperty(S,H,!0)&&this._invalidateProperties()};
p.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
p.prototype._enqueueClient=function(S){this.__dataPendingClients=this.__dataPendingClients||[];S!==this&&this.__dataPendingClients.push(S)};
p.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
p.prototype.__enableOrFlushClients=function(){var S=this.__dataPendingClients;if(S){this.__dataPendingClients=null;for(var H=0;H<S.length;H++){var M=S[H];M.__dataEnabled?M.__dataPending&&M._flushProperties():M._enableProperties()}}};
p.prototype._readyClients=function(){this.__enableOrFlushClients()};
p.prototype.setProperties=function(S,H){for(var M in S)!H&&this.__readOnly&&this.__readOnly[M]||this._setPendingPropertyOrPath(M,S[M],!0);this._invalidateProperties()};
p.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
p.prototype._propertiesChanged=function(S,H,M){S=this.__dataHasPaths;this.__dataHasPaths=!1;var X;if(X=this.__computeEffects)if(v38){hw++;var Z=N_X(this),n=[],b;for(b in H)lVp(b,X,n,Z,S);for(;b=n.shift();)dBX(this,"",H,M,b)&&lVp(b.methodInfo,X,n,Z,S);Object.assign(M,this.__dataOld);Object.assign(H,this.__dataPending);this.__dataPending=null}else for(Z=H;Dy(this,X,Z,M,S);)Object.assign(M,this.__dataOld),Object.assign(H,this.__dataPending),Z=this.__dataPending,this.__dataPending=null;X=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(H,M,S);this._flushClients();Dy(this,this.__reflectEffects,H,M,S);Dy(this,this.__observeEffects,H,M,S);if(X){Z=this.__notifyEffects;n=hw++;for(var F in X)if(X[F]){if(b=Z){var f=Z;b=n;var O=F,A=H,P=M,W=S,y=!1,t=W?BJ(O):O;if(f=f[t]){t=0;for(var D=f.length,k=void 0;t<D&&(k=f[t]);t++)k.info&&k.info.lastRun===b||W&&!stw(O,k.trigger)||(k.info&&(k.info.lastRun=b),k.fn(this,O,A,P,k.info,W,void 0),y=!0)}b=y}if(b)var E=!0;else{if(b=S)b=F,O=H,A=BJ(b),A!==
b?(A=CE(A)+"-changed",ts4(this,A,O[b],b),b=!0):b=!1;b&&(E=!0)}}var a;E&&(a=this.__dataHost)&&a._invalidateProperties&&a._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
p.prototype._propagatePropertyChanges=function(S,H,M){this.__propagateEffects&&Dy(this,this.__propagateEffects,S,H,M);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,S,H,M)};
p.prototype._runEffectsForTemplate=function(S,H,M,X){var Z=this,n=function(b,F){Dy(Z,S.propertyEffects,b,M,F,S.nodeList);for(var f=S.firstChild;f;f=f.nextSibling)Z._runEffectsForTemplate(f,b,M,F)};
S.runEffects?S.runEffects(n,H,X):n(H,X)};
p.prototype.linkPaths=function(S,H){S=gd(S);H=gd(H);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[S]=H};
p.prototype.unlinkPaths=function(S){S=gd(S);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[S]};
p.prototype.notifySplices=function(S,H){var M={path:""};S=tw(this,S,M);xBX(this,S,M.path,H)};
p.prototype.get=function(S,H){return tw(H||this,S)};
p.prototype.set=function(S,H,M){M?B_v(M,S,H):this.__readOnly&&this.__readOnly[S]||this._setPendingPropertyOrPath(S,H,!0)&&this._invalidateProperties()};
p.prototype.push=function(S){var H=_.Yp.apply(1,arguments),M={path:""},X=tw(this,S,M),Z=X.length,n=X.push.apply(X,_.dW(H));H.length&&uZ(this,X,M.path,Z,H.length,[]);return n};
p.prototype.pop=function(S){var H={path:""};S=tw(this,S,H);var M=!!S.length,X=S.pop();M&&uZ(this,S,H.path,S.length,0,[X]);return X};
p.prototype.splice=function(S,H,M){var X=_.Yp.apply(3,arguments),Z={path:""},n=tw(this,S,Z);H<0?H=n.length-Math.floor(-H):H&&(H=Math.floor(H));var b=arguments.length===2?n.splice(H):n.splice.apply(n,[H,M].concat(_.dW(X)));(X.length||b.length)&&uZ(this,n,Z.path,H,X.length,b);return b};
p.prototype.shift=function(S){var H={path:""};S=tw(this,S,H);var M=!!S.length,X=S.shift();M&&uZ(this,S,H.path,0,0,[X]);return X};
p.prototype.unshift=function(S){var H=_.Yp.apply(1,arguments),M={path:""},X=tw(this,S,M),Z=X.unshift.apply(X,_.dW(H));H.length&&uZ(this,X,M.path,0,H.length,[]);return Z};
p.prototype.notifyPath=function(S,H){if(arguments.length==1){var M={path:""};H=tw(this,S,M);M=M.path}else M=Array.isArray(S)?gd(S):S;this._setPendingPropertyOrPath(M,H,!0,!0)&&this._invalidateProperties()};
p.prototype._createReadOnlyProperty=function(S,H){this._addPropertyEffect(S,"__readOnly");H&&(this["_set"+(S[0].toUpperCase()+S.substring(1))]=function(M){this._setProperty(S,M)})};
p.prototype._createPropertyObserver=function(S,H,M){var X={property:S,method:H,dynamicFn:!!M};this._addPropertyEffect(S,"__observeEffects",{fn:g8t,info:X,trigger:{name:S}});M&&this._addPropertyEffect(H,"__observeEffects",{fn:g8t,info:X,trigger:{name:H}})};
p.prototype._createMethodObserver=function(S,H){var M=jtW(S);if(!M)throw Error("Ed`"+S);aP9(this,M,"__observeEffects",T_v,null,H)};
p.prototype._createNotifyingProperty=function(S){this._addPropertyEffect(S,"__notifyEffects",{fn:hl9,info:{eventName:CE(S)+"-changed",property:S}})};
p.prototype._createReflectedProperty=function(S){var H=this.constructor.attributeNameForProperty(S);H[0]==="-"?console.warn("Property "+S+" cannot be reflected to attribute "+H+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(S,"__reflectEffects",{fn:DBW,info:{attrName:H}})};
p.prototype._createComputedProperty=function(S,H,M){var X=jtW(H);if(!X)throw Error("Fd`"+H);H=aP9(this,X,"__computeEffects",dBX,S,M);UBW(this,"__computeInfo")[S]=H};
p.prototype._marshalArgs=function(S,H,M){for(var X=this.__data,Z=[],n=0,b=S.length;n<b;n++){var F=S[n],f=F.name,O=F.structured,A=F.wildcard,P=F.value;F.literal||(A?(F=Uy(f,H),O=wYg(X,M,F?H:f),P={path:F?H:f,value:O,base:F?tw(X,f):O}):P=O?wYg(X,M,f):X[f]);if(dd&&!this._overrideLegacyUndefined&&P===void 0&&S.length>1)return TU;Z[n]=P}return Z};
p.addPropertyEffect=function(S,H,M){this.prototype._addPropertyEffect(S,H,M)};
p.createPropertyObserver=function(S,H,M){this.prototype._createPropertyObserver(S,H,M)};
p.createMethodObserver=function(S,H){this.prototype._createMethodObserver(S,H)};
p.createNotifyingProperty=function(S){this.prototype._createNotifyingProperty(S)};
p.createReadOnlyProperty=function(S,H){this.prototype._createReadOnlyProperty(S,H)};
p.createReflectedProperty=function(S){this.prototype._createReflectedProperty(S)};
p.createComputedProperty=function(S,H,M){this.prototype._createComputedProperty(S,H,M)};
p.bindTemplate=function(S){return this.prototype._bindTemplate(S)};
p.prototype._bindTemplate=function(S,H){var M=this.constructor._parseTemplate(S),X=this.__preBoundTemplateInfo==M;if(!X)for(var Z in M.propertyEffects)this._createPropertyAccessor(Z);H?(M=Object.create(M),M.wasPreBound=X,this.__templateInfo?(S=S._parentTemplateInfo||this.__templateInfo,H=S.lastChild,M.parent=S,S.lastChild=M,(M.previousSibling=H)?H.nextSibling=M:S.firstChild=M):this.__templateInfo=M):this.__preBoundTemplateInfo=M;return M};
p._addTemplatePropertyEffect=function(S,H,M){(S.hostProps=S.hostProps||{})[H]=!0;S=S.propertyEffects=S.propertyEffects||{};(S[H]=S[H]||[]).push(M)};
p.prototype._stampTemplate=function(S,H){H=H||this._bindTemplate(S,!0);nk.push(this);S=J.prototype._stampTemplate.call(this,S,H);nk.pop();H.nodeList=S.nodeList;if(!H.wasPreBound)for(var M=H.childNodes=[],X=S.firstChild;X;X=X.nextSibling)M.push(X);S.templateInfo=H;M=H.nodeList;X=H.nodeInfoList;if(X.length)for(var Z=0;Z<X.length;Z++){var n=M[Z],b=X[Z].bindings;if(b)for(var F=0;F<b.length;F++){var f=b[F],O=n,A=f;if(A.isCompound){for(var P=O.__dataCompoundStorage||(O.__dataCompoundStorage={}),W=A.parts,
y=Array(W.length),t=0;t<W.length;t++)y[t]=W[t].literal;W=A.target;P[W]=y;A.literal&&A.kind=="property"&&(W==="className"&&(O=(0,_.kX)(O)),O[W]=A.literal)}qXi(n,this,f)}n.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(H,this.__data,null,!1),this._flushClients());return S};
p.prototype._removeBoundDom=function(S){S=S.templateInfo;var H=S.previousSibling,M=S.nextSibling,X=S.parent;H?H.nextSibling=M:X&&(X.firstChild=M);M?M.previousSibling=H:X&&(X.lastChild=H);S.nextSibling=S.previousSibling=null;S=S.childNodes;for(H=0;H<S.length;H++)M=S[H],(0,_.kX)((0,_.kX)(M).parentNode).removeChild(M)};
p._parseTemplateNode=function(S,H,M){var X=J._parseTemplateNode.call(this,S,H,M);if(S.nodeType===Node.TEXT_NODE){var Z=this._parseBindings(S.textContent,H);Z&&(S.textContent=E8W(Z)||" ",Vsv(this,H,M,"text","textContent",Z),X=!0)}return X};
p._parseTemplateNodeAttribute=function(S,H,M,X,Z){var n=this._parseBindings(Z,H);if(n){Z=X;var b="property";uME.test(X)?b="attribute":X[X.length-1]=="$"&&(X=X.slice(0,-1),b="attribute");var F=E8W(n);F&&b=="attribute"&&(X=="class"&&S.hasAttribute("class")&&(F+=" "+S.getAttribute(X)),S.setAttribute(X,F));b=="attribute"&&Z=="disable-upgrade$"&&S.setAttribute(X,"");S.localName==="input"&&Z==="value"&&S.setAttribute(Z,"");S.removeAttribute(Z);b==="property"&&(X=QT(X));Vsv(this,H,M,b,X,n,F);return!0}return J._parseTemplateNodeAttribute.call(this,
S,H,M,X,Z)};
p._parseTemplateNestedTemplate=function(S,H,M){var X=J._parseTemplateNestedTemplate.call(this,S,H,M),Z=S.parentNode,n=M.templateInfo,b=Z.localName==="dom-if",F=Z.localName==="dom-repeat";ME&&(b||F)&&(Z.removeChild(S),M=M.parentInfo,M.templateInfo=n,M.noted=!0,X=!1);S=n.hostProps;if(Xg&&b)S&&(H.hostProps=Object.assign(H.hostProps||{},S),ME||(M.parentInfo.noted=!0));else for(var f in S)Vsv(this,H,M,"property","_host_"+f,[{mode:"{",source:f,dependencies:[f],hostProp:!0}]);return X};
p._parseBindings=function(S,H){for(var M=[],X=0,Z;(Z=VhL.exec(S))!==null;){Z.index>X&&M.push({literal:S.slice(X,Z.index)});X=Z[1][0];var n=!!Z[2];Z=Z[3].trim();var b=!1,F="",f=-1;X=="{"&&(f=Z.indexOf("::"))>0&&(F=Z.substring(f+2),Z=Z.substring(0,f),b=!0);f=jtW(Z);var O=[];if(f){var A=f,P=A.args;A=A.methodName;for(var W=0;W<P.length;W++){var y=P[W];y.literal||O.push(y)}if((P=H.dynamicFns)&&P[A]||f.static)O.push(A),f.dynamicFn=!0}else O.push(Z);M.push({source:Z,mode:X,negate:n,customEvent:b,signature:f,
dependencies:O,event:F});X=VhL.lastIndex}X&&X<S.length&&(S=S.substring(X))&&M.push({literal:S});return M.length?M:null};
p._evaluateBinding=function(S,H,M,X,Z,n){S=H.signature?T_v(S,M,X,Z,H.signature):M!=H.source?tw(S,H.source):n&&yT(M)?tw(S,M):S.__data[M];H.negate&&(S=!S);return S};
_.vh.Object.defineProperties(p.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return dQE}}});
return p}),nk=[];var qD8=window.ShadyCSS&&window.ShadyCSS.cssBuild,bB=ZR(function(p){function J(H,M,X,Z){if(!qD8){for(var n=M.content.querySelectorAll("style"),b=puX(M),F=J7W(X),f=M.content.firstElementChild,O=0;O<F.length;O++){var A=F[O];A.textContent=H._processStyleText(A.textContent,Z);M.content.insertBefore(A,f)}for(f=F=0;f<b.length;f++)O=b[f],A=n[F],A!==O?(O=O.cloneNode(!0),A.parentNode.insertBefore(O,A)):F++,O.textContent=H._processStyleText(O.textContent,Z)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(M,
X);if(O3M&&qD8&&GI8&&(M=M.content.querySelectorAll("style"))){var P="";Array.from(M).forEach(function(W){P+=W.textContent;W.parentNode.removeChild(W)});
H._styleSheet=new CSSStyleSheet;H._styleSheet.replaceSync(P)}}
var S=COv(Gm(p));p=function(){return S.call(this)||this};
_.Q(p,S);p._finalizeClass=function(){S._finalizeClass.call(this);var H;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(H=this.__ownObservers)&&this.createObservers(H,this._properties);this._prepareTemplate()};
p._prepareTemplate=function(){var H=this.template;H&&(typeof H==="string"?(console.error("template getter must return HTMLTemplateElement"),H=null):LE||(H=H.cloneNode(!0)));this.prototype._template=H};
p.createProperties=function(H){for(var M in H){var X=this.prototype,Z=M,n=H[M],b=H;n.computed&&(n.readOnly=!0);n.computed&&(X._hasReadOnlyEffect(Z)?console.warn("Cannot redefine computed property '"+Z+"'."):X._createComputedProperty(Z,n.computed,b));n.readOnly&&!X._hasReadOnlyEffect(Z)?X._createReadOnlyProperty(Z,!n.computed):n.readOnly===!1&&X._hasReadOnlyEffect(Z)&&console.warn("Cannot make readOnly property '"+Z+"' non-readOnly.");n.reflectToAttribute&&!X._hasReflectEffect(Z)?X._createReflectedProperty(Z):
n.reflectToAttribute===!1&&X._hasReflectEffect(Z)&&console.warn("Cannot make reflected property '"+Z+"' non-reflected.");n.notify&&!X._hasNotifyEffect(Z)?X._createNotifyingProperty(Z):n.notify===!1&&X._hasNotifyEffect(Z)&&console.warn("Cannot make notify property '"+Z+"' non-notify.");n.observer&&X._createPropertyObserver(Z,n.observer,b[n.observer]);X._addPropertyToAttributeMap(Z)}};
p.createObservers=function(H,M){for(var X=this.prototype,Z=0;Z<H.length;Z++)X._createMethodObserver(H[Z],M)};
p.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);S.prototype._initializeProperties.call(this);this.rootPath=b3M;this.importPath=this.constructor.importPath;var H=this.constructor;if(!H.hasOwnProperty("__propertyDefaults")){H.__propertyDefaults=null;var M=H._properties,X;for(X in M){var Z=M[X];"value"in Z&&(H.__propertyDefaults=H.__propertyDefaults||{},H.__propertyDefaults[X]=Z)}}if(H=H.__propertyDefaults)for(var n in H)M=H[n],
this._canApplyPropertyDefault(n)&&(M=typeof M.value=="function"?M.value.call(this):M.value,this._hasAccessor(n)?this._setPendingProperty(n,M,!0):this[n]=M)};
p.prototype._canApplyPropertyDefault=function(H){return!this.hasOwnProperty(H)};
p._processStyleText=function(H,M){return mBW(H,M)};
p._finalizeTemplate=function(H){var M=this.prototype._template;if(M&&!M.__polymerFinalized){M.__polymerFinalized=!0;var X=this.importPath;X=X?_.e5(X):"";J(this,M,H,X);this.prototype._bindTemplate(M)}};
p.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);S.prototype.connectedCallback.call(this)};
p.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);S.prototype.ready.call(this)};
p.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));S.prototype._readyClients.call(this)};
p.prototype._attachDom=function(H){var M=(0,_.kX)(this);if(M.attachShadow)return H?(M.shadowRoot||(M.attachShadow({mode:"open",shadyUpgradeFragment:H}),M.shadowRoot.appendChild(H),this.constructor._styleSheet&&(M.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Fyn&&window.ShadyDOM&&window.ShadyDOM.flushInitial(M.shadowRoot),M.shadowRoot):null;throw Error("Hd");};
p.prototype.updateStyles=function(H){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,H)};
p.prototype.resolveUrl=function(H,M){!M&&this.importPath&&(M=_.e5(this.importPath));return _.e5(H,M)};
p._parseTemplateContent=function(H,M,X){M.dynamicFns=M.dynamicFns||this._properties;return S._parseTemplateContent.call(this,H,M,X)};
p._addTemplatePropertyEffect=function(H,M,X){!X7||M in this._properties||X.info.part.signature&&X.info.part.signature.static||X.info.part.hostProp||H.nestedTemplate||console.warn("Property '"+M+"' used in template but not declared in 'properties'; attribute will not be observed.");return S._addTemplatePropertyEffect.call(this,H,M,X)};
_.vh.Object.defineProperties(p,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var H=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof H==="function"&&(H=H());if(H===void 0){if(H=this.hasOwnProperty("is")){H=this.is;var M=null;if(H&&(!iu||mQ8)&&(M=lZ.import(H,"template"),iu&&!M))throw Error("Gd`"+H);H=M}H=H||Object.getPrototypeOf(this.prototype).constructor.template}this._template=H}return this._template},
set:function(H){this._template=H}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var H=this.importMeta;H?this._importPath=FKv(H.url):this._importPath=(H=lZ.import(this.is))&&H.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return p});var aVM=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(p){return p}}),K2t=function(p,J){E3d(p,J);
this.value=J.reduce(function(S,H,M){return S+ZTt(H)+p[M+1]},p[0]).toString()},E3d;
K2t.prototype.toString=function(){return this.value};
_.YDE=function(p){var J=_.Yp.apply(1,arguments);E3d(p,J);var S=document.createElement("template");J=J.reduce(function(H,M,X){if(M instanceof HTMLTemplateElement)M=M.innerHTML;else if(M instanceof K2t)M=ZTt(M);else throw Error("Jd`"+M);return H+M+p[X+1]},p[0]);
aVM&&(J=aVM.createHTML(J));S.innerHTML=J;return S};
E3d=function(p,J){if(!Array.isArray(p)||!Array.isArray(p.raw)||J.length!==p.length-1)throw new TypeError("Kd");};var mZ=bB(HTMLElement);var rnp=ZR(function(p){var J=bB(p);p=function(){var S=J.call(this)||this;S.__lastItems=null;S.__lastMulti=null;S.__selectedMap=null;return S};
_.Q(p,J);p.prototype.__updateSelection=function(S,H){var M=H.path;M=="items"?(H=H.base||[],M=this.__lastItems,S!==this.__lastMulti&&this.clearSelection(),M&&(M=R1g(H,M),this.__applySplices(M)),this.__lastItems=H,this.__lastMulti=S):H.path=="items.splices"?this.__applySplices(H.value.indexSplices):(S=M.slice(6),H=parseInt(S,10),S.indexOf(".")<0&&S==H&&this.__deselectChangedIdx(H))};
p.prototype.__applySplices=function(S){for(var H=this,M=this.__selectedMap,X={},Z=0;Z<S.length;X={s$jscomp$109:void 0},Z++){X.s$jscomp$109=S[Z];M.forEach(function(f){return function(O,A){O<f.s$jscomp$109.index||(O>=f.s$jscomp$109.index+f.s$jscomp$109.removed.length?M.set(A,O+f.s$jscomp$109.addedCount-f.s$jscomp$109.removed.length):M.set(A,-1))}}(X));
for(var n=0;n<X.s$jscomp$109.addedCount;n++){var b=X.s$jscomp$109.index+n;M.has(this.items[b])&&M.set(this.items[b],b)}}this.__updateLinks();var F=0;M.forEach(function(f,O){f<0?(H.multi?H.splice("selected",F,1):H.selected=H.selectedItem=null,M.delete(O)):F++})};
p.prototype.__updateLinks=function(){var S=this;this.__dataLinkedPaths={};if(this.multi){var H=0;this.__selectedMap.forEach(function(M){M>=0&&S.linkPaths("items."+M,"selected."+H++)})}else this.__selectedMap.forEach(function(M){S.linkPaths("selected","items."+M);
S.linkPaths("selectedItem","items."+M)})};
p.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
p.prototype.isSelected=function(S){return this.__selectedMap.has(S)};
p.prototype.isIndexSelected=function(S){return this.isSelected(this.items[S])};
p.prototype.__deselectChangedIdx=function(S){var H=this,M=this.__selectedIndexForItemIndex(S);if(M>=0){var X=0;this.__selectedMap.forEach(function(Z,n){M==X++&&H.deselect(n)})}};
p.prototype.__selectedIndexForItemIndex=function(S){if(S=this.__dataLinkedPaths["items."+S])return parseInt(S.slice(9),10)};
p.prototype.deselect=function(S){var H=this.__selectedMap.get(S);if(H>=0){this.__selectedMap.delete(S);var M;this.multi&&(M=this.__selectedIndexForItemIndex(H));this.__updateLinks();this.multi?this.splice("selected",M,1):this.selected=this.selectedItem=null}};
p.prototype.deselectIndex=function(S){this.deselect(this.items[S])};
p.prototype.select=function(S){this.selectIndex(this.items.indexOf(S))};
p.prototype.selectIndex=function(S){var H=this.items[S];this.isSelected(H)?this.toggle&&this.deselectIndex(S):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(H,S),this.__updateLinks(),this.multi?this.push("selected",H):this.selected=this.selectedItem=H)};
_.vh.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}),jfp=rnp(mZ),Fg=function(){return jfp.apply(this,arguments)||this};
_.Q(Fg,jfp);_.vh.Object.defineProperties(Fg,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Fg.is,Fg);var w6d=window.Polymer;window.Polymer=function(p){return window.Polymer._polymerFn(p)};
w6d&&Object.assign(Polymer,w6d);Polymer._polymerFn=function(){throw Error("Ld");};/*

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:mBW,resolveUrl:_.e5,pathFromUrl:FKv};Polymer.DomModule=lZ;Polymer.Async={timeOut:_.Kk,animationFrame:_.$2,idlePeriod:o3o,microTask:cJ};Polymer.dedupingMixin=ZR;Polymer.wrap=_.kX;Polymer.PropertiesChanged=Wyv;Polymer.telemetry={instanceCount:Qfq,incrementInstanceCount:function(){Qfq++},
registrations:AXw,register:P6i,dumpRegistrations:function(){AXw.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=COv;Polymer.CaseMap={dashToCamelCase:QT,camelToDashCase:CE};Polymer.PropertyAccessors=thM;Polymer.TemplateStamp=Tw4;Polymer.Path={isPath:yT,root:BJ,isAncestor:QtW,isDescendant:Uy,translate:sy,matches:C6t,normalize:gd,split:yX4,get:tw,set:B_v,isDeep:yT};Polymer.Settings={useShadow:pz,useNativeCSSProperties:i3E,useNativeCustomElements:Rud,get rootPath(){return b3M},setRootPath:function(p){b3M=p},
get sanitizeDOMValue(){return Ny},setSanitizeDOMValue:function(p){Ny=p},
get passiveTouchGestures(){return oIw},setPassiveTouchGestures:function(p){oIw=p},
get strictTemplatePolicy(){return iu},setStrictTemplatePolicy:function(p){iu=p},
get allowTemplateFromDomModule(){return mQ8},setAllowTemplateFromDomModule:function(p){mQ8=p},
get legacyOptimizations(){return LE},setLegacyOptimizations:function(p){LE=p},
get syncInitialRender(){return Fyn},setSyncInitialRender:function(p){Fyn=p},
get legacyUndefined(){return dd},setLegacyUndefined:function(p){dd=p},
get legacyWarnings(){return X7},setLegacyWarnings:function(p){X7=p},
get orderedComputed(){return v38},setOrderedComputed:function(p){v38=p},
get fastDomIf(){return Xg},setFastDomIf:function(p){Xg=p},
get removeNestedTemplates(){return ME},setRemoveNestedTemplates:function(p){ME=p},
get suppressTemplateNotifications(){return iB},setSuppressTemplateNotifications:iB};Polymer.rootPath!==void 0&&(b3M=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Ny=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(oIw=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(iu=Polymer.strictTemplatePolicy);mQ8=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(LE=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(Fyn=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(dd=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(X7=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(v38=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Xg=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(ME=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(iB=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Ny},
set:function(p){Ny=p}});Polymer.PropertyEffects=Gm;Polymer.StyleGather={stylesFromModules:LKt,stylesFromModule:IPs,stylesFromTemplate:puX,stylesFromModuleImports:J7W,cssFromModules:HTg,cssFromModule:S0i,cssFromTemplate:MNW,cssFromModuleImports:function(p){return(p=lZ.import(p))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(p):""}};Polymer.ElementMixin=bB;Polymer.updateStyles=function(p){window.ShadyCSS&&window.ShadyCSS.styleDocument(p)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:R1g};Polymer.html=_.YDE;Polymer.htmlLiteral=function(p){return new K2t(p,_.Yp.apply(1,arguments))};Polymer.Element=mZ;Polymer.ArraySelectorMixin=rnp;Polymer.ArraySelector=Fg;var xQp=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,cnU=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,qwL=/@media\s(.*)/;var mkX=null,bTi=window.HTMLImports&&window.HTMLImports.whenReady||null,F2g;var IVp=null,vP=null,fk=function(){this.customStyles=[];this.enqueued=!1;vIW(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},Ly8=function(p){!p.enqueued&&vP&&(p.enqueued=!0,vIW(vP))};
fk.prototype.addCustomStyle=function(p){p.__seenByShadyCSS||(p.__seenByShadyCSS=!0,this.customStyles.push(p),Ly8(this))};
fk.prototype.getStyleForCustomStyle=function(p){if(p.__shadyCSSCachedStyle)return p.__shadyCSSCachedStyle;var J;p.getStyle?J=p.getStyle():J=p;return J};
fk.prototype.processStyles=function(){for(var p=this.customStyles,J=0;J<p.length;J++){var S=p[J];if(!S.__shadyCSSCachedStyle){var H=this.getStyleForCustomStyle(S);H&&(H=H.__appliedElement||H,IVp&&IVp(H),S.__shadyCSSCachedStyle=H)}}return p};
fk.prototype.addCustomStyle=fk.prototype.addCustomStyle;fk.prototype.getStyleForCustomStyle=fk.prototype.getStyleForCustomStyle;fk.prototype.processStyles=fk.prototype.processStyles;Object.defineProperties(fk.prototype,{transformCallback:{get:function(){return IVp},
set:function(p){IVp=p}},
validateCallback:{get:function(){return vP},
set:function(p){var J=!1;vP||(J=!0);vP=p;J&&Ly8(this)}}});var OTW=!(window.ShadyDOM&&window.ShadyDOM.inUse),fFW,F7;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(F7=window.ShadyCSS.cssBuild);var piE=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?fFW=window.ShadyCSS.nativeCss:window.ShadyCSS?(A7w(window.ShadyCSS),window.ShadyCSS=void 0):A7w(window.WebComponents&&window.WebComponents.flags);var uzw=fFW;var Jz8=new fk;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(p,J){Jz8.processStyles();nIt(p,J)},
styleElement:function(){Jz8.processStyles()},
styleDocument:function(p){Jz8.processStyles();nIt(document.body,p)},
getComputedStyleValue:function(p,J){return GJW(p,J)},
flushCustomStyles:function(){},
nativeCss:uzw,nativeShadow:OTW,cssBuild:F7,disableRuntime:piE});window.ShadyCSS.CustomStyleInterface=Jz8;var SaM=window.ShadyCSS.CustomStyleInterface,O2=function(){var p=HTMLElement.call(this)||this;p._style=null;SaM.addCustomStyle(p);return p};
_.Q(O2,HTMLElement);O2.prototype.getStyle=function(){if(this._style)return this._style;var p=this.querySelector("style");if(!p)return null;this._style=p;var J=p.getAttribute("include");J&&(p.removeAttribute("include"),p.textContent=HTg(J)+p.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
O2.prototype.getStyle=O2.prototype.getStyle;window.customElements.define("custom-style",O2);Polymer.CustomStyle=O2;var A3=function(){this._timer=this._callback=this._asyncModule=null},PP,Mr4;
A3.prototype.setConfig=function(p,J){var S=this;this._asyncModule=p;this._callback=J;this._timer=this._asyncModule.run(function(){S._timer=null;PP.delete(S);S._callback()})};
A3.prototype.cancel=function(){this.isActive()&&(HI8(this),PP.delete(this))};
var HI8=function(p){p.isActive()&&(p._asyncModule.cancel(p._timer),p._timer=null)};
A3.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
A3.prototype.isActive=function(){return this._timer!=null};
_.zm=function(p,J,S){p instanceof A3?HI8(p):p=new A3;p.setConfig(J,S);return p};
PP=new Set;_.$e=function(p){PP.add(p)};
Mr4=function(){var p=!!PP.size;PP.forEach(function(J){try{J.flush()}catch(S){setTimeout(function(){throw S;})}});
return p};var z1L=typeof document.head.style.touchAction==="string",Pbt=["mousedown","mousemove","mouseup","click"],Ukk=[0,1,4,2],Xi8;try{Xi8=(new MouseEvent("test",{buttons:1})).buttons===1}catch(p){Xi8=!1}var BsL=Xi8,$kW=!1;(function(){try{var p=Object.defineProperty({},"passive",{get:function(){$kW=!0}});
window.addEventListener("test",null,p);window.removeEventListener("test",null,p)}catch(J){}})();
var W2i=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Q$s=[],iId={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},VNg={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},CbL=function(p){var J=p.sourceCapabilities;if(!J||J.firesTouchEvents)if(p.__polymerGesturesHandled={skip:!0},p.type==="click"){J=!1;for(var S=h1w(p),H=0;H<S.length;H++){if(S[H].nodeType===Node.ELEMENT_NODE)if(S[H].localName==="label")Q$s.push(S[H]);
else if(iId[S[H].localName]){var M=S[H];var X=Array.prototype.slice.call(M.labels||[]);if(!X.length){X=[];try{var Z=M.getRootNode();if(M.id){var n=Z.querySelectorAll("label[for = '"+M.id+"']");for(M=0;M<n.length;M++)X.push(n[M])}}catch(b){}}for(M=0;M<X.length;M++)J=J||Q$s.indexOf(X[M])>-1}if(S[H]===RZn)return}J||(p.preventDefault(),p.stopPropagation())}},RZn=null,oL=null,kJW=0,NsW=0,Dkg=-1,TsL=!1;
document.addEventListener("touchend",function(p){oL||y79(!0);RZn=h1w(p)[0];oL=_.zm(oL,_.Kk.after(2500),function(){y79();oL=RZn=null})},$kW?{passive:!0}:!1);
var h1w=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(p){return p.composedPath&&p.composedPath()||[]},rd={},Ey=[];
dkL({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){aZ(this.info)},
mousedown:function(p){if(qy(p)){var J=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),S=this;gIs(this.info,function(H){qy(H)||(IZ("up",J,H),aZ(S.info))},function(H){qy(H)&&IZ("up",J,H);
aZ(S.info)});
IZ("down",J,p)}},
touchstart:function(p){IZ("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),p.changedTouches[0],p)},
touchend:function(p){IZ("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),p.changedTouches[0],p)}});
dkL({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;aZ(this.info)},
mousedown:function(p){if(qy(p)){var J=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),S=this,H=function(M){var X=M.clientX,Z=M.clientY;uiX(S.info,X,Z)&&(S.info.state=S.info.started?M.type==="mouseup"?"end":"track":"start",S.info.state==="start"&&YX("tap"),S.info.addMove({x:X,y:Z}),qy(M)||(S.info.state="end",aZ(S.info)),J&&lFX(S.info,J,M),S.info.started=!0)};
gIs(this.info,H,function(M){S.info.started&&H(M);aZ(S.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 J=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p);p=p.changedTouches[0];var S=p.clientX,H=p.clientY;uiX(this.info,S,H)&&(this.info.state==="start"&&YX("tap"),this.info.addMove({x:S,y:H}),lFX(this.info,J,p),this.info.state="track",this.info.started=!0)},
touchend:function(p){var J=_._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}),lFX(this.info,J,p))}});
dkL({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){qy(p)&&(this.info.x=p.clientX,this.info.y=p.clientY)},
click:function(p){qy(p)&&q0W(this.info,p)},
touchstart:function(p){p=p.changedTouches[0];this.info.x=p.clientX;this.info.y=p.clientY},
touchend:function(p){q0W(this.info,p.changedTouches[0],p)}});var K5L=ZR(function(p){var J=function(){return p.apply(this,arguments)||this};
_.Q(J,p);J.prototype._addEventListenerToNode=function(S,H,M){j5(S,H,M)||p.prototype._addEventListenerToNode.call(this,S,H,M)};
J.prototype._removeEventListenerFromNode=function(S,H,M){wd(S,H,M)||p.prototype._removeEventListenerFromNode.call(this,S,H,M)};
return J});var eY=ZR(function(p){var J=function(){return p.apply(this,arguments)||this};
_.Q(J,p);J.prototype._shouldPropertyChange=function(S,H,M){return aFW(this,S,H,M,!0)};
return J}),ZIE=ZR(function(p){var J=function(){return p.apply(this,arguments)||this};
_.Q(J,p);J.prototype._shouldPropertyChange=function(S,H,M){return aFW(this,S,H,M,this.mutableData)};
_.vh.Object.defineProperties(J,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return J});
eY._mutablePropertyChange=aFW;var EIi=!1;var n2p=K5L(ZIE(Gm(HTMLElement))),WP=function(){var p=n2p.call(this)||this;if(iu)throw Error("Md");p.root=null;p.$=null;p.__children=null;return p};
_.Q(WP,n2p);_.R=WP.prototype;_.R.attributeChangedCallback=function(){this.mutableData=!0};
_.R.connectedCallback=function(){Y0t()||(this.style.display="none");this.render()};
_.R.disconnectedCallback=function(){this.__removeChildren()};
_.R.__insertChildren=function(){(0,_.kX)((0,_.kX)(this).parentNode).insertBefore(this.root,this)};
_.R.__removeChildren=function(){if(this.__children)for(var p=0;p<this.__children.length;p++)this.root.appendChild(this.__children[p])};
_.R.render=function(){var p=this;if(!this.__children){var J=J||this.querySelector("template");if(!J){var S=new MutationObserver(function(){if(J=p.querySelector("template"))S.disconnect(),p.render();else throw Error("Nd");});
S.observe(this,{childList:!0});return}this.root=this._stampTemplate(J);this.$=this.root.$;this.__children=[];for(var H=this.root.firstChild;H;H=H.nextSibling)this.__children[this.__children.length]=H;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.vh.Object.defineProperties(WP,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",WP);Polymer.Debouncer=A3;Polymer.Gestures={gestures:rd,recognizers:Ey,deepTargetFind:tNX,addListener:j5,removeListener:wd,register:dkL,setTouchAction:_.xX,prevent:YX,resetMouseCanceller:function(){oL&&oL.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:j5,remove:wd};Polymer.GestureEventListeners=K5L;Polymer.MutableData=eY;Polymer.OptionalMutableData=ZIE;Polymer.DomBind=WP;_.Qw=function(){do{var p=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var J=Mr4()}while(p||J)};var r7X=null;j$w.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:j$w,writable:!0}});var SwX=Gm(j$w),JFg=eY(SwX),G$v=Gm(function(){}),JS=function(p){var J=G$v.call(this)||this;
J._configureProperties(p);J.root=J._stampTemplate(J.__dataHost);var S=[];J.children=S;for(var H=J.root.firstChild;H;H=H.nextSibling)S.push(H),H.__templatizeInstance=J;J.__templatizeOwner&&J.__templatizeOwner.__hideTemplateChildren__&&J._showHideChildren(!0);S=J.__templatizeOptions;(p&&S.instanceProps||!S.instanceProps)&&J._enableProperties();return J};
_.Q(JS,G$v);_.R=JS.prototype;_.R._configureProperties=function(p){if(this.__templatizeOptions.forwardHostProp)for(var J in this.__hostProps)this._setPendingProperty(J,this.__dataHost["_host_"+J]);for(var S in p)this._setPendingProperty(S,p[S])};
_.R.forwardHostProp=function(p,J){this._setPendingPropertyOrPath(p,J,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.R._addEventListenerToNode=function(p,J,S){var H=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(p,J,function(X){X.model=H;S(X)});
else{var M=this.__dataHost.__dataHost;M&&M._addEventListenerToNode(p,J,S)}};
_.R._showHideChildren=function(p){xkL(p,this.children)};
_.R._setUnmanagedPropertyToNode=function(p,J,S){p.__hideTemplateChildren__&&p.nodeType==Node.TEXT_NODE&&J=="textContent"?p.__polymerTextContent__=S:G$v.prototype._setUnmanagedPropertyToNode.call(this,p,J,S)};
_.R.dispatchEvent=function(){return!0};
_.vh.Object.defineProperties(JS.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var p=this.__parentModel;if(!p){var J;p=this;do p=p.__dataHost.__dataHost;while((J=p.__templatizeOptions)&&!J.parentModel);this.__parentModel=p}return p}}});
var IFi=eY(JS);var Ck=function(){var p=mZ.call(this)||this;p.__renderDebouncer=null;p._lastIf=!1;p.__hideTemplateChildren__=!1;return p};
_.Q(Ck,mZ);_.R=Ck.prototype;_.R.__debounceRender=function(){var p=this;this.__renderDebouncer=_.zm(this.__renderDebouncer,cJ,function(){return p.__render()});
_.$e(this.__renderDebouncer)};
_.R.disconnectedCallback=function(){mZ.prototype.disconnectedCallback.call(this);var p=(0,_.kX)(this).parentNode;p&&(p.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.kX)(p).host)||this.__teardownInstance()};
_.R.connectedCallback=function(){mZ.prototype.connectedCallback.call(this);Y0t()||(this.style.display="none");this.if&&this.__debounceRender()};
_.R.__ensureTemplate=function(){var p=this;if(!this.__template){var J=this._templateInfo?this:(0,_.kX)(this).querySelector("template");if(!J){var S=new MutationObserver(function(){if((0,_.kX)(p).querySelector("template"))S.disconnect(),p.__render();else throw Error("Qd");});
S.observe(this,{childList:!0});return!1}this.__template=J}return!0};
_.R.__ensureInstance=function(){var p=(0,_.kX)(this).parentNode;if(this.__hasInstance()){var J=this.__getInstanceNodes();if(J&&J.length&&(0,_.kX)(this).previousSibling!==J[J.length-1])for(var S=0,H=void 0;S<J.length&&(H=J[S]);S++)(0,_.kX)(p).insertBefore(H,this)}else{if(!p||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(p)}return!0};
_.R.render=function(){_.Qw()};
_.R.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();iB&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.R.__hasInstance=function(){};
_.R.__getInstanceNodes=function(){};
_.R.__createAndInsertInstance=function(){};
_.R.__teardownInstance=function(){};
_.R._showHideChildren=function(){};
_.vh.Object.defineProperties(Ck,{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:Ck.prototype.__debounceRender},restamp:{type:Boolean,observer:Ck.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var bIL=function(){var p=Ck.call(this)||this;p.__instance=null;p.__syncInfo=null;return p};
_.Q(bIL,Ck);_.R=bIL.prototype;_.R.__hasInstance=function(){return!!this.__instance};
_.R.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.R.__createAndInsertInstance=function(p){var J=this,S=this.__dataHost||this;if(iu&&!this.__dataHost)throw Error("Od");var H=S._bindTemplate(this.__template,!0);H.runEffects=function(M,X,Z){var n=J.__syncInfo;if(J.if)n&&(J.__syncInfo=null,J._showHideChildren(),X=Object.assign(n.changedProps,X)),M(X,Z);else if(J.__instance)if(n||(n=J.__syncInfo={runEffects:M,changedProps:{}}),Z)for(var b in X)M=BJ(b),n.changedProps[M]=J.__dataHost[M];else Object.assign(n.changedProps,X)};
this.__instance=S._stampTemplate(this.__template,H);(0,_.kX)(p).insertBefore(this.__instance,this)};
_.R.__syncHostProperties=function(){var p=this.__syncInfo;p&&(this.__syncInfo=null,p.runEffects(p.changedProps,!1))};
_.R.__teardownInstance=function(){var p=this.__dataHost||this;this.__instance&&(p._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.R._showHideChildren=function(){var p=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==p&&(this.__instance.__hidden=p,xkL(p,this.__instance.templateInfo.childNodes));p||this.__syncHostProperties()};
var mnn=function(){var p=Ck.call(this)||this;p.__ctor=null;p.__instance=null;p.__invalidProps=null;return p};
_.Q(mnn,Ck);_.R=mnn.prototype;_.R.__hasInstance=function(){return!!this.__instance};
_.R.__getInstanceNodes=function(){return this.__instance.children};
_.R.__createAndInsertInstance=function(p){this.__ctor||(this.__ctor=MX(this.__template,this,{mutableData:!0,forwardHostProp:function(J,S){this.__instance&&(this.if?this.__instance.forwardHostProp(J,S):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[BJ(J)]=!0))}}));
this.__instance=new this.__ctor;(0,_.kX)(p).insertBefore(this.__instance.root,this)};
_.R.__teardownInstance=function(){if(this.__instance){var p=this.__instance.children;if(p&&p.length){var J=(0,_.kX)(p[0]).parentNode;if(J){J=(0,_.kX)(J);for(var S=0,H=void 0;S<p.length&&(H=p[S]);S++)J.removeChild(H)}}this.__instance=this.__invalidProps=null}};
_.R.__syncHostProperties=function(){var p=this.__invalidProps;if(p){this.__invalidProps=null;for(var J in p)this.__instance._setPendingProperty(J,this.__dataHost[J]);this.__instance._flushProperties()}};
_.R._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()};
_.yG=Xg?bIL:mnn;customElements.define(_.yG.is,_.yG);Polymer.enqueueDebouncer=_.$e;Polymer.flush=_.Qw;Polymer.Templatize={templatize:MX,modelForElement:KsW};Polymer.TemplateInstanceBase=JS;Polymer.DomIf=_.yG;var F58=ZIE(mZ),C3=function(){var p=F58.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};
_.Q(C3,F58);_.R=C3.prototype;_.R.disconnectedCallback=function(){F58.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var p=0;p<this.__instances.length;p++)this.__detachInstance(p);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.R.connectedCallback=function(){F58.prototype.connectedCallback.call(this);Y0t()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var p=(0,_.kX)((0,_.kX)(this).parentNode),J=0;J<this.__instances.length;J++)this.__attachInstance(J,p);this.__chunkingId&&this.__render()}};
_.R.__ensureTemplatized=function(){var p=this;if(!this.__ctor){var J=this.template=this._templateInfo?this:this.querySelector("template");if(!J){var S=new MutationObserver(function(){if(p.querySelector("template"))S.disconnect(),p.__render();else throw Error("Rd");});
S.observe(this,{childList:!0});return!1}var H={};H[this.as]=!0;H[this.indexAs]=!0;H[this.itemsIndexAs]=!0;this.__ctor=MX(J,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:H,forwardHostProp:function(M,X){for(var Z=this.__instances,n=0,b=void 0;n<Z.length&&(b=Z[n]);n++)b.forwardHostProp(M,X)},
notifyInstanceProp:function(M,X,Z){C6t(this.as,X)&&(M=M[this.itemsIndexAs],X==this.as&&(this.items[M]=Z),X=sy(this.as,"items."+M,X),this.notifyPath(X,Z))}})}return!0};
_.R.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.R.__functionFromPropertyValue=function(p){if(typeof p==="string"){var J=this.__getMethodHost();return function(){return J[p].apply(J,arguments)}}return p};
_.R.__sortChanged=function(p){this.__sortFn=this.__functionFromPropertyValue(p);this.items&&this.__debounceRender(this.__render)};
_.R.__filterChanged=function(p){this.__filterFn=this.__functionFromPropertyValue(p);this.items&&this.__debounceRender(this.__render)};
_.R.__computeFrameTime=function(p){return Math.ceil(1E3/p)};
_.R.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.R.__handleObservedPaths=function(p){if(this.__sortFn||this.__filterFn)if(!p)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var J=this.__observePaths,S=0;S<J.length;S++)p.indexOf(J[S])===0&&this.__debounceRender(this.__render,this.delay)};
_.R.__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))};
_.R.__debounceRender=function(p,J){J=J===void 0?0:J;this.__renderDebouncer=_.zm(this.__renderDebouncer,J>0?_.Kk.after(J):cJ,p.bind(this));_.$e(this.__renderDebouncer)};
_.R.render=function(){this.__debounceRender(this.__render);_.Qw()};
_.R.__render=function(){var p=this;if(this.__ensureTemplatized()){var J=this.items||[],S=this.__sortAndFilterItems(J),H=this.__calculateLimit(S.length);this.__updateInstances(J,H,S);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){p.__chunkingId=null;p.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);iB&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.R.__sortAndFilterItems=function(p){for(var J=this,S=Array(p.length),H=0;H<p.length;H++)S[H]=H;this.__filterFn&&(S=S.filter(function(M,X,Z){return J.__filterFn(p[M],X,Z)}));
this.__sortFn&&S.sort(function(M,X){return J.__sortFn(p[M],p[X])});
return S};
_.R.__calculateLimit=function(p){var J=p,S=this.__instances.length;if(this.initialCount){var H;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(J=Math.min(p,this.initialCount),this.__chunkCount=(H=Math.max(J-S,0))||1):(H=Math.min(Math.max(p-S,0),this.__chunkCount),J=Math.min(S+H,p));this.__shouldMeasureChunk=H===this.__chunkCount;this.__shouldContinueChunking=J<p;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return J};
_.R.__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)};
_.R.__updateInstances=function(p,J,S){var H=this.__itemsIdxToInstIdx={},M;for(M=0;M<J;M++){var X=this.__instances[M],Z=S[M],n=p[Z];H[Z]=M;X?(X._setPendingProperty(this.as,n),X._setPendingProperty(this.indexAs,M),X._setPendingProperty(this.itemsIndexAs,Z),X._flushProperties()):this.__insertInstance(n,M,Z)}for(p=this.__instances.length-1;p>=M;p--)this.__detachAndRemoveInstance(p)};
_.R.__detachInstance=function(p){p=this.__instances[p];for(var J=(0,_.kX)(p.root),S=0;S<p.children.length;S++)J.appendChild(p.children[S]);return p};
_.R.__attachInstance=function(p,J){J.insertBefore(this.__instances[p].root,this)};
_.R.__detachAndRemoveInstance=function(p){this.__detachInstance(p);this.__instances.splice(p,1)};
_.R.__stampInstance=function(p,J,S){var H={};H[this.as]=p;H[this.indexAs]=J;H[this.itemsIndexAs]=S;return new this.__ctor(H)};
_.R.__insertInstance=function(p,J,S){p=this.__stampInstance(p,J,S);S=(S=this.__instances[J+1])?S.children[0]:this;(0,_.kX)((0,_.kX)(this).parentNode).insertBefore(p.root,S);return this.__instances[J]=p};
_.R._showHideChildren=function(p){for(var J=0;J<this.__instances.length;J++)this.__instances[J]._showHideChildren(p)};
_.R.__handleItemPath=function(p,J){var S=p.slice(6),H=S.indexOf(".");p=H<0?S:S.substring(0,H);if(p==parseInt(p,10)){S=H<0?"":S.substring(H+1);this.__handleObservedPaths(S);if(p=this.__instances[this.__itemsIdxToInstIdx[p]])p._setPendingPropertyOrPath(this.as+(S?"."+S:""),J,!1,!0),p._flushProperties();return!0}};
_.R.itemForElement=function(p){return(p=this.modelForElement(p))&&p[this.as]};
_.R.indexForElement=function(p){return(p=this.modelForElement(p))&&p[this.indexAs]};
_.R.modelForElement=function(p){return KsW(this.template,p)};
_.vh.Object.defineProperties(C3,{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:C3.prototype.__sortChanged},filter:{type:Function,observer:C3.prototype.__filterChanged},observe:{type:String,observer:C3.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!iB,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.*)"]}}});
C3.prototype._setRenderedItemCount=function(){};
customElements.define(C3.is,C3);Polymer.DomRepeat=C3;var v28=function(p,J){var S=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=p;this.callback=J;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){S._schedule()};
this.connect();this._schedule()},fm8=function(p){var J=(0,_.kX)(p);
if(RC(p))return J.assignedNodes({flatten:!0});p=[];for(var S=0;S<J.childNodes.length;S++){var H=J.childNodes[S];RC(H)?p.push.apply(p,_.dW((0,_.kX)(H).assignedNodes({flatten:!0}))):p.push(H)}return p};
_.R=v28.prototype;_.R.connect=function(){var p=this;RC(this._target)?this._listenSlots([this._target]):(0,_.kX)(this._target).children&&(this._listenSlots((0,_.kX)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(J){p._processMutations(J)}):(this._nativeChildrenObserver=new MutationObserver(function(J){p._processMutations(J)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.R.disconnect=function(){RC(this._target)?this._unlistenSlots([this._target]):(0,_.kX)(this._target).children&&(this._unlistenSlots((0,_.kX)(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};
_.R._schedule=function(){var p=this;this._scheduled||(this._scheduled=!0,cJ.run(function(){return p.flush()}))};
_.R._processMutations=function(p){this._processSlotMutations(p);this.flush()};
_.R._processSlotMutations=function(p){if(p)for(var J=0;J<p.length;J++){var S=p[J];S.addedNodes&&this._listenSlots(S.addedNodes);S.removedNodes&&this._unlistenSlots(S.removedNodes)}};
_.R.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:[]},J=fm8(this._target),S=R1g(J,this._effectiveNodes),H=0,M=void 0;H<S.length&&(M=S[H]);H++)for(var X=0,Z=void 0;X<M.removed.length&&(Z=M.removed[X]);X++)p.removedNodes.push(Z);
H=0;for(M=void 0;H<S.length&&(M=S[H]);H++)for(X=M.index;X<M.index+M.addedCount;X++)p.addedNodes.push(J[X]);this._effectiveNodes=J;J=!1;if(p.addedNodes.length||p.removedNodes.length)J=!0,this.callback.call(this._target,p);return J};
_.R._listenSlots=function(p){for(var J=0;J<p.length;J++){var S=p[J];RC(S)&&S.addEventListener("slotchange",this._boundSchedule)}};
_.R._unlistenSlots=function(p){for(var J=0;J<p.length;J++){var S=p[J];RC(S)&&S.removeEventListener("slotchange",this._boundSchedule)}};var yw=Element.prototype,OIv=yw.matches||yw.matchesSelector||yw.mozMatchesSelector||yw.msMatchesSelector||yw.oMatchesSelector||yw.webkitMatchesSelector,Az8=function(p,J){return OIv.call(p,J)},Kz=function(p){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(p);
this.node=p},o2v;
_.R=Kz.prototype;_.R.observeNodes=function(p){return new v28(this.node,p)};
_.R.unobserveNodes=function(p){p.disconnect()};
_.R.notifyObserver=function(){};
_.R.deepContains=function(p){if((0,_.kX)(this.node).contains(p))return!0;var J=p;for(p=p.ownerDocument;J&&J!==p&&J!==this.node;)J=(0,_.kX)(J).parentNode||(0,_.kX)(J).host;return J===this.node};
_.R.getOwnerRoot=function(){return(0,_.kX)(this.node).getRootNode()};
_.R.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.kX)(this.node).assignedNodes({flatten:!0}):[]};
_.R.getDestinationInsertionPoints=function(){for(var p=[],J=(0,_.kX)(this.node).assignedSlot;J;)p.push(J),J=(0,_.kX)(J).assignedSlot;return p};
_.R.importNode=function(p,J){return(0,_.kX)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(p,J)};
_.R.getEffectiveChildNodes=function(){return fm8(this.node)};
_.R.queryDistributedElements=function(p){for(var J=this.getEffectiveChildNodes(),S=[],H=0,M=J.length,X=void 0;H<M&&(X=J[H]);H++)X.nodeType===Node.ELEMENT_NODE&&Az8(X,p)&&S.push(X);return S};
_.vh.Object.defineProperties(Kz.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var p=this.node;return p._activeElement!==void 0?p._activeElement:p.activeElement}}});
var BP=function(p){this.event=p};
_.vh.Object.defineProperties(BP.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 PCU=Kz;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var zZv=window.ShadyDOM.Wrapper,$no=function(){return zZv.apply(this,arguments)||this};
_.Q($no,zZv);Object.getOwnPropertyNames(Kz.prototype).forEach(function(p){p!="activeElement"&&p!="constructor"&&($no.prototype[p]=Kz.prototype[p])});
nCi($no.prototype,["classList"]);PCU=$no;Object.defineProperties(BP.prototype,{localTarget:{get:function(){var p=this.event.currentTarget;p=p&&_.f1(p).getOwnerRoot();for(var J=this.path,S=0;S<J.length;S++){var H=J[S];if(_.f1(H).getOwnerRoot()===p)return H}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else ZuL(),nCi(Kz.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),GFv();o2v=PCU;_.f1=function(p){p=p||document;if(p instanceof PCU)return p;if(p instanceof BP)return p;var J=p.__domApi;J||(p instanceof Event?J=new BP(p):J=new PCU(p),p.__domApi=J);return J};var eZd=/:host\(:dir\((ltr|rtl)\)\)/g,W5q=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Q4m=/:dir\((?:ltr|rtl)\)/,CCM=!(!window.ShadyDOM||!window.ShadyDOM.inUse),nz=[],U2=null,Zn="",yzo=ZR(function(p){CCM||U2||(Zn=document.documentElement.getAttribute("dir"),U2=new MutationObserver(buX),U2.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var J=thM(p);p=function(){var S=J.call(this)||this;S.__autoDirOptOut=!1;return S};
_.Q(p,J);p._processStyleText=function(S,H){S=J._processStyleText.call(this,S,H);!CCM&&Q4m.test(S)&&(S=this._replaceDirInCssText(S),this.__activateDir=!0);return S};
p._replaceDirInCssText=function(S){S=S.replace(eZd,':host([dir="$1"])');return S=S.replace(W5q,':host([dir="$2"]) $1')};
p.prototype.ready=function(){J.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
p.prototype.connectedCallback=function(){J.prototype.connectedCallback&&J.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(U2&&U2.takeRecords().length&&buX(),nz.push(this),this.__autoDirOptOut||this.setAttribute("dir",Zn))};
p.prototype.disconnectedCallback=function(){J.prototype.disconnectedCallback&&J.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var S=nz.indexOf(this);S>-1&&nz.splice(S,1)}};
p.__activateDir=!1;return p});var Be8=function(p){for(;p;){var J=Object.getOwnPropertyDescriptor(p,"observedAttributes");if(J)return J.get;p=Object.getPrototypeOf(p.prototype).constructor}return function(){return[]}};
ZR(function(p){var J=bB(p),S=Be8(J);p=function(){return J.call(this)||this};
_.Q(p,J);p.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:J.prototype._initializeProperties.call(this)};
p.prototype._enableProperties=function(){this.__isUpgradeDisabled||J.prototype._enableProperties.call(this)};
p.prototype._canApplyPropertyDefault=function(H){return J.prototype._canApplyPropertyDefault.call(this,H)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(H))};
p.prototype.attributeChangedCallback=function(H,M,X,Z){H=="disable-upgrade"?this.__isUpgradeDisabled&&X==null&&(J.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.kX)(this).isConnected&&J.prototype.connectedCallback.call(this)):J.prototype.attributeChangedCallback.call(this,H,M,X,Z)};
p.prototype.connectedCallback=function(){this.__isUpgradeDisabled||J.prototype.connectedCallback.call(this)};
p.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||J.prototype.disconnectedCallback.call(this)};
_.vh.Object.defineProperties(p,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return S.call(this).concat("disable-upgrade")}}});
return p});var Gd=!1,FsX=[],bu=[];var AFg=window.ShadyDOM,P9t=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",$U4):document.readyState==="interactive"||document.readyState==="complete"?$U4():window.addEventListener("DOMContentLoaded",$U4);var Wsi=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=""},oCs=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,ekL=/@import[^;]*;/gim,shg=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,gC9=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,tJi=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,hks=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,B4t=/^@[^\s]*keyframes/,
yFg=/\s+/g;var DU9={};var T4s=Promise.resolve();var Unn=new Set;var s4d=/;\s*/m,g2v=/^\s*(initial)|(inherit)\s*$/,tr8=/\s*!important/,hZm=function(){this._map={}};
hZm.prototype.set=function(p,J){p=p.trim();this._map[p]={properties:J,dependants:{}}};
hZm.prototype.get=function(p){p=p.trim();return this._map[p]||null};
var DnM=null,s2=function(){this._measureElement=this._currentElement=null;this._map=new hZm};
_.R=s2.prototype;_.R.detectMixin=function(p){p=cnU.test(p)||xQp.test(p);cnU.lastIndex=0;xQp.lastIndex=0;return p};
_.R.transformTemplate=function(p,J){if(p._gatheredStyle===void 0){var S=[];for(var H=p.content.querySelectorAll("style"),M=0;M<H.length;M++){var X=H[M];if(X.hasAttribute("shady-unscoped")){if(!OTW){var Z=X.textContent;if(!Unn.has(Z)){Unn.add(Z);var n=document.createElement("style");n.setAttribute("shady-unscoped","");n.textContent=Z;document.head.appendChild(n)}X.parentNode.removeChild(X)}}else S.push(X.textContent),X.parentNode.removeChild(X)}(S=S.join("").trim())?(H=document.createElement("style"),
H.textContent=S,p.content.insertBefore(H,p.content.firstChild),S=H):S=null;p._gatheredStyle=S}return(p=p._gatheredStyle)?this.JSC$11423_transformStyle(p,J):null};
_.R.JSC$11423_transformStyle=function(p,J){J=J===void 0?"":J;var S=VJW(p);this.transformRules(S,J);p.textContent=ljX(S);return S};
_.R.transformCustomStyle=function(p){var J=this,S=VJW(p);aj4(S,function(H){H.selector===":root"&&(H.selector="html");J.transformRule(H)});
p.textContent=ljX(S);return S};
_.R.transformRules=function(p,J){var S=this;this._currentElement=J;aj4(p,function(H){S.transformRule(H)});
this._currentElement=null};
_.R.transformRule=function(p){p.cssText=k$o(this,p.parsedCssText,p);p.selector===":root"&&(p.selector=":host > *")};
var k$o=function(p,J,S){J=J.replace(xQp,function(H,M,X,Z){return p._produceCssProperties(H,M,X,Z,S)});
return p._consumeCssProperties(J,S)};
_.R=s2.prototype;_.R._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)};
_.R._fallbacksFromPreviousRules=function(p){for(var J=this,S=p;S.parent;)S=S.parent;var H={},M=!1;aj4(S,function(X){(M=M||X===p)||X.selector===p.selector&&Object.assign(H,J._cssTextToMap(X.parsedCssText))});
return H};
_.R._consumeCssProperties=function(p,J){for(var S;S=cnU.exec(p);){var H=S[0],M=S[1];S=S.index;var X=S+H.indexOf("@apply"),Z=S+H.length;H=p.slice(0,X);p=p.slice(Z);X=J?this._fallbacksFromPreviousRules(J):{};Object.assign(X,this._cssTextToMap(H));M=this._atApplyToCssProperties(M,X);p=H+M+p;cnU.lastIndex=S+M.length}return p};
_.R._atApplyToCssProperties=function(p,J){p=p.replace(s4d,"");var S=[],H=this._map.get(p);H||(this._map.set(p,{}),H=this._map.get(p));if(H){this._currentElement&&(H.dependants[this._currentElement]=!0);var M,X=H.properties;for(M in X){var Z=J&&J[M];H=[M,": var(",p,"_-_",M];Z&&H.push(",",Z.replace(tr8,""));H.push(")");tr8.test(X[M])&&H.push(" !important");S.push(H.join(""))}}return S.join("; ")};
_.R._replaceInitialOrInherit=function(p,J){var S=g2v.exec(J);S&&(J=S[1]?this._getInitialValueForProperty(p):"apply-shim-inherit");return J};
_.R._cssTextToMap=function(p,J){J=J===void 0?!1:J;p=p.split(";");for(var S,H,M={},X=0;X<p.length;X++)if(S=p[X])H=S.split(":"),H.length>1&&(S=H[0].trim(),H=H.slice(1).join(":"),J&&(H=this._replaceInitialOrInherit(S,H)),M[S]=H);return M};
_.R._invalidateMixinEntry=function(p){if(DnM)for(var J in p.dependants)J!==this._currentElement&&DnM(J)};
_.R._produceCssProperties=function(p,J,S,H,M){var X=this;S&&ECw(S,function(W,y){y&&X._map.get(y)&&(H="@apply "+y+";")});
if(!H)return p;var Z=this._consumeCssProperties(""+H,M);M=p.slice(0,p.indexOf("--"));var n=Z=this._cssTextToMap(Z,!0),b=this._map.get(J),F=b&&b.properties;F?n=Object.assign(Object.create(F),Z):this._map.set(J,n);var f=[],O,A=!1;for(O in n){var P=Z[O];P===void 0&&(P="initial");!F||O in F||(A=!0);f.push(J+"_-_"+O+": "+P)}A&&this._invalidateMixinEntry(b);b&&(b.properties=n);S&&(M=p+";"+M);return M+f.join("; ")+";"};
s2.prototype.detectMixin=s2.prototype.detectMixin;s2.prototype.transformStyle=s2.prototype.JSC$11423_transformStyle;s2.prototype.transformCustomStyle=s2.prototype.transformCustomStyle;s2.prototype.transformRules=s2.prototype.transformRules;s2.prototype.transformRule=s2.prototype.transformRule;s2.prototype.transformTemplate=s2.prototype.transformTemplate;s2.prototype._separator="_-_";Object.defineProperty(s2.prototype,"invalidCallback",{get:function(){return DnM},
set:function(p){DnM=p}});var gS=new s2,NeU=function(){this.customStyleInterface=null;gS.invalidCallback=kFi},t3=function(p){!p.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(p.customStyleInterface=window.ShadyCSS.CustomStyleInterface,p.customStyleInterface.transformCallback=function(J){gS.transformCustomStyle(J)},p.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){p.customStyleInterface.enqueued&&p.flushCustomStyles()})})};
_.R=NeU.prototype;_.R.prepareTemplate=function(p,J){t3(this);YwW(p)===""&&(DU9[J]=p,J=gS.transformTemplate(p,J),p._styleAst=J)};
_.R.flushCustomStyles=function(){t3(this);if(this.customStyleInterface){var p=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var J=0;J<p.length;J++){var S=this.customStyleInterface.getStyleForCustomStyle(p[J]);S&&gS.transformCustomStyle(S)}this.customStyleInterface.enqueued=!1}}};
_.R.styleSubtree=function(p,J){t3(this);J&&nIt(p,J);if(p.shadowRoot)for(this.styleElement(p),p=p.shadowRoot.children||p.shadowRoot.childNodes,J=0;J<p.length;J++)this.styleSubtree(p[J]);else for(p=p.children||p.childNodes,J=0;J<p.length;J++)this.styleSubtree(p[J])};
_.R.styleElement=function(p){t3(this);var J=p.localName,S;J?J.indexOf("-")>-1?S=J:S=p.getAttribute&&p.getAttribute("is")||"":S=p.is;J=DU9[S];if(!(J&&YwW(J)!==""||!J||N4X(J))){if(N4X(J)||J._applyShimValidatingVersion!==J._applyShimNextVersion)this.prepareTemplate(J,S),dUk(J);if(p=p.shadowRoot)if(p=p.querySelector("style"))p.__cssRules=J._styleAst,p.textContent=ljX(J._styleAst)}};
_.R.styleDocument=function(p){t3(this);this.styleSubtree(document.body,p)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var NE=new NeU,Teo=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(p,J){NE.flushCustomStyles();NE.prepareTemplate(p,J)},
prepareTemplateStyles:function(p,J,S){window.ShadyCSS.prepareTemplate(p,J,S)},
prepareTemplateDom:function(){},
styleSubtree:function(p,J){NE.flushCustomStyles();NE.styleSubtree(p,J)},
styleElement:function(p){NE.flushCustomStyles();NE.styleElement(p)},
styleDocument:function(p){NE.flushCustomStyles();NE.styleDocument(p)},
getComputedStyleValue:function(p,J){return GJW(p,J)},
flushCustomStyles:function(){NE.flushCustomStyles()},
nativeCss:uzw,nativeShadow:OTW,cssBuild:F7,disableRuntime:piE};Teo&&(window.ShadyCSS.CustomStyleInterface=Teo)}window.ShadyCSS.ApplyShim=gS;var dn8;dn8=window.ShadyCSS;_.Tm=ZR(function(p){p=K5L(bB(p));var J=qD8?p:yzo(p),S=Be8(J),H={x:"pan-x",y:"pan-y",none:"none",all:"auto"};p=function(){return J.call(this)||this};
_.Q(p,J);p.prototype.created=function(){};
p.prototype.__attributeReaction=function(M,X,Z){(this.__dataAttributes&&this.__dataAttributes[M]||M==="disable-upgrade")&&this.attributeChangedCallback(M,X,Z,null)};
p.prototype.setAttribute=function(M,X){if(fVM&&!this._legacyForceObservedAttributes){var Z=this.getAttribute(M);J.prototype.setAttribute.call(this,M,X);this.__attributeReaction(M,Z,String(X))}else J.prototype.setAttribute.call(this,M,X)};
p.prototype.removeAttribute=function(M){if(fVM&&!this._legacyForceObservedAttributes){var X=this.getAttribute(M);J.prototype.removeAttribute.call(this,M);this.__attributeReaction(M,X,null)}else J.prototype.removeAttribute.call(this,M)};
p.prototype._enableProperties=function(){this.__isUpgradeDisabled||J.prototype._enableProperties.call(this)};
p.prototype._canApplyPropertyDefault=function(M){return J.prototype._canApplyPropertyDefault.call(this,M)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(M))};
p.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(J.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
p.prototype.attached=function(){};
p.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(J.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
p.prototype.detached=function(){};
p.prototype.attributeChangedCallback=function(M,X,Z,n){X!==Z&&(M=="disable-upgrade"?this.__isUpgradeDisabled&&Z==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.kX)(this).isConnected&&this.connectedCallback()):(J.prototype.attributeChangedCallback.call(this,M,X,Z,n),this.attributeChanged(M,X,Z)))};
p.prototype.attributeChanged=function(){};
p.prototype._initializeProperties=function(){if(LE&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var M=Object.getPrototypeOf(this);M.hasOwnProperty("__hasRegisterFinished")||(this._registered(),M.__hasRegisterFinished=!0);J.prototype._initializeProperties.call(this);this.root=this;this.created();fVM&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
p.prototype._takeAttributes=function(){for(var M=this.attributes,X=0,Z=M.length;X<Z;X++){var n=M[X];this.__attributeReaction(n.name,null,n.value)}};
p.prototype._registered=function(){};
p.prototype.ready=function(){this._ensureAttributes();J.prototype.ready.call(this)};
p.prototype._ensureAttributes=function(){};
p.prototype._applyListeners=function(){};
p.prototype.serialize=function(M){return this._serializeValue(M)};
p.prototype.deserialize=function(M,X){return this._deserializeValue(M,X)};
p.prototype.reflectPropertyToAttribute=function(M,X,Z){this._propertyToAttribute(M,X,Z)};
p.prototype.serializeValueToAttribute=function(M,X,Z){this._valueToNodeAttribute(Z||this,M,X)};
p.prototype.extend=function(M,X){if(!M||!X)return M||X;for(var Z=Object.getOwnPropertyNames(X),n=0,b=void 0;n<Z.length&&(b=Z[n]);n++){var F=Object.getOwnPropertyDescriptor(X,b);F&&Object.defineProperty(M,b,F)}return M};
p.prototype.mixin=function(M,X){for(var Z in X)M[Z]=X[Z];return M};
p.prototype.chainObject=function(M,X){M&&X&&M!==X&&(M.__proto__=X);return M};
p.prototype.instanceTemplate=function(M){M=this.constructor._contentForTemplate(M);return document.importNode(M,!0)};
p.prototype.fire=function(M,X,Z){Z=Z||{};X=X===null||X===void 0?{}:X;M=new Event(M,{bubbles:Z.bubbles===void 0?!0:Z.bubbles,cancelable:!!Z.cancelable,composed:Z.composed===void 0?!0:Z.composed});M.detail=X;(0,_.kX)(Z.node||this).dispatchEvent(M);return M};
p.prototype.listen=function(M,X,Z){M=M||this;var n=this.__boundListeners||(this.__boundListeners=new WeakMap),b=n.get(M);b||(b={},n.set(M,b));n=X+Z;b[n]||(b[n]=this._addMethodEventListenerToNode(M,X,Z,this))};
p.prototype.unlisten=function(M,X,Z){M=M||this;var n=this.__boundListeners&&this.__boundListeners.get(M);Z=X+Z;var b=n&&n[Z];b&&(this._removeEventListenerFromNode(M,X,b),n[Z]=null)};
p.prototype.setScrollDirection=function(M,X){_.xX(X||this,H[M]||"auto")};
p.prototype.$$=function(M){return this.root.querySelector(M)};
p.prototype.distributeContent=function(){var M=_.f1(this);window.ShadyDOM&&M.shadowRoot&&ShadyDOM.flush()};
p.prototype.getEffectiveChildNodes=function(){return _.f1(this).getEffectiveChildNodes()};
p.prototype.queryDistributedElements=function(M){return _.f1(this).queryDistributedElements(M)};
p.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(M){return M.nodeType===Node.ELEMENT_NODE})};
p.prototype.getEffectiveTextContent=function(){for(var M=this.getEffectiveChildNodes(),X=[],Z=0,n;n=M[Z];Z++)n.nodeType!==Node.COMMENT_NODE&&X.push(n.textContent);return X.join("")};
p.prototype.queryEffectiveChildren=function(M){return(M=this.queryDistributedElements(M))&&M[0]};
p.prototype.queryAllEffectiveChildren=function(M){return this.queryDistributedElements(M)};
p.prototype.getContentChildNodes=function(M){return(M=this.root.querySelector(M||"slot"))?_.f1(M).getDistributedNodes():[]};
p.prototype.getContentChildren=function(M){return this.getContentChildNodes(M).filter(function(X){return X.nodeType===Node.ELEMENT_NODE})};
p.prototype.isLightDescendant=function(M){return this!==M&&(0,_.kX)(this).contains(M)&&(0,_.kX)(this).getRootNode()===(0,_.kX)(M).getRootNode()};
p.prototype.isLocalDescendant=function(M){return this.root===(0,_.kX)(M).getRootNode()};
p.prototype.scopeSubtree=function(M,X){return zkt(M,X===void 0?!1:X)};
p.prototype.getComputedStyleValue=function(M){return dn8.getComputedStyleValue(this,M)};
p.prototype.debounce=function(M,X,Z){this._debouncers=this._debouncers||{};return this._debouncers[M]=_.zm(this._debouncers[M],Z>0?_.Kk.after(Z):cJ,X.bind(this))};
p.prototype.isDebouncerActive=function(M){this._debouncers=this._debouncers||{};M=this._debouncers[M];return!(!M||!M.isActive())};
p.prototype.flushDebouncer=function(M){this._debouncers=this._debouncers||{};(M=this._debouncers[M])&&M.flush()};
p.prototype.cancelDebouncer=function(M){this._debouncers=this._debouncers||{};(M=this._debouncers[M])&&M.cancel()};
p.prototype.async=function(M,X){return X>0?_.Kk.run(M.bind(this),X):~cJ.run(M.bind(this))};
p.prototype.cancelAsync=function(M){M<0?cJ.cancel(~M):_.Kk.cancel(M)};
p.prototype.create=function(M,X){M=document.createElement(M);if(X)if(M.setProperties)M.setProperties(X);else for(var Z in X)M[Z]=X[Z];return M};
p.prototype.elementMatches=function(M,X){return Az8(X||this,M)};
p.prototype.toggleAttribute=function(M,X){var Z=this;arguments.length===3&&(Z=arguments[2]);arguments.length==1&&(X=!Z.hasAttribute(M));if(X)return(0,_.kX)(Z).setAttribute(M,""),!0;(0,_.kX)(Z).removeAttribute(M);return!1};
p.prototype.toggleClass=function(M,X,Z){Z=Z||this;arguments.length==1&&(X=!Z.classList.contains(M));X?Z.classList.add(M):Z.classList.remove(M)};
p.prototype.transform=function(M,X){X=X||this;X.style.webkitTransform=M;X.style.transform=M};
p.prototype.translate3d=function(M,X,Z,n){this.transform("translate3d("+M+","+X+","+Z+")",n||this)};
p.prototype.arrayDelete=function(M,X){if(Array.isArray(M)){if(X=M.indexOf(X),X>=0)return M.splice(X,1)}else if(X=tw(this,M).indexOf(X),X>=0)return this.splice(M,X,1);return null};
p.prototype._logger=function(M,X){Array.isArray(X)&&X.length===1&&Array.isArray(X[0])&&(X=X[0]);switch(M){case "log":case "warn":case "error":console[M].apply(console,_.dW(X))}};
p.prototype._log=function(){this._logger("log",_.Yp.apply(0,arguments))};
p.prototype._warn=function(){this._logger("warn",_.Yp.apply(0,arguments))};
p.prototype._error=function(){this._logger("error",_.Yp.apply(0,arguments))};
p.prototype._logf=function(M){return["[%s::%s]",this.is,M].concat(_.dW(_.Yp.apply(1,arguments)))};
_.vh.Object.defineProperties(p.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var M=(0,_.kX)(this).getRootNode();return M instanceof DocumentFragment?M.host:M}}});
_.vh.Object.defineProperties(p,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return fVM&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],P6i(this.prototype)),this.__observedAttributes):S.call(this).concat("disable-upgrade")}}});
p.prototype.is="";return p});Polymer.FlattenedNodesObserver=v28;Polymer.DomApi=o2v;Polymer.EventApi=BP;Polymer.dom=_.f1;Polymer.dom.matchesSelector=Az8;Polymer.dom.flush=_.Qw;Polymer.dom.addDebouncer=_.$e;Polymer.DirMixin=yzo;Polymer.RenderStatus={beforeNextRender:_.Ouk,afterNextRender:_.mN,flush:function(){for(;FsX.length||bu.length;)mUi(FsX),mUi(bu);Gd=!1}};Polymer.LegacyElementMixin=_.Tm;var uj8;uj8=eY._mutablePropertyChange;var lmL={properties:{mutableData:Boolean},_shouldPropertyChange:function(p,J,S){return uj8(this,p,J,S,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(p,J,S){return uj8(this,p,J,S,!0)}};
Polymer.OptionalMutableDataBehavior=lmL;var rFL={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Ij9={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},cFg=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Ij9),Vr8=(0,_.Tm)(HTMLElement),aS4=function(p,J){p||console.warn("Polymer.Class requires `info` argument");J=J?J(Vr8):Vr8;J=LsX(p,J,p.behaviors);J.is=J.prototype.is=
p.is;return J};Polymer.Class=aS4;Polymer.mixinBehaviors=function(p,J){return LsX({},(0,_.Tm)(J),p)};
Polymer.GenerateClassFromInfo=LsX;_.QG=function(p){var J=typeof p==="function"?p:_.QG.Class(p);p._legacyForceObservedAttributes&&(J.prototype._legacyForceObservedAttributes=p._legacyForceObservedAttributes);customElements.define(J.is,J);return J};
_.QG.Class=aS4;Polymer._polymerFn=_.QG;var qaL=window.onLegacyPolymerFunctionDefinedCallback;qaL&&qaL();var Yov={templatize:function(p,J){this._templatizerTemplate=p;this.ctor=MX(p,this,{mutableData:!!J,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(p){return new this.ctor(p)},
modelForElement:function(p){return KsW(this._templatizerTemplate,p)}};Polymer.Templatizer=Yov;_.dS=(0,_.Tm)(HTMLElement).prototype;Polymer.Base=_.dS;var JdW=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.fz=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Q(_.fz,PolymerFakeBaseClass);var OL=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Q(OL,PolymerFakeBaseClass);var Sjt=Symbol("Sd"),nrv=[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 amm=amm||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},E2L;(function(p){function J(a,q,w){var I=E.get(a);if(!I){if(!w)return;I=new D;E.set(a,I)}a=I.get(q);if(!a){if(!w)return;a=new D;I.set(q,a)}return a}
function S(a,q,w){if(H(a,q,w))return!0;q=A(q);return q!==null?S(a,q,w):!1}
function H(a,q,w){q=J(q,w,!1);return q===void 0?!1:!!q.has(a)}
function M(a,q,w){if(H(a,q,w))return X(a,q,w);q=A(q);if(q!==null)return M(a,q,w)}
function X(a,q,w){q=J(q,w,!1);if(q!==void 0)return q.get(a)}
function Z(a,q){var w=n(a,q);a=A(a);if(a===null)return w;var I=Z(a,q);if(I.length<=0)return w;if(w.length<=0)return I;q=new k;a=[];w=_.K(w);for(var Z3=w.next();!Z3.done;Z3=w.next())Z3=Z3.value,q.has(Z3)||(q.add(Z3),a.push(Z3));w=_.K(I);for(I=w.next();!I.done;I=w.next())I=I.value,q.has(I)||(q.add(I),a.push(I));return a}
function n(a,q){a=J(a,q,!1);var w=[];a&&a.forEach(function(I,Z3){return w.push(Z3)});
return w}
function b(a){return a===void 0}
function F(a){return typeof a==="object"?a!==null:typeof a==="function"}
function f(a){return typeof a==="function"}
function O(a){return typeof a==="symbol"?a:String(a)}
function A(a){var q=Object.getPrototypeOf(a);if(typeof a!=="function"||a===t||q!==t)return q;var w=Object.getPrototypeOf(a.prototype);if(w==null||w===Object.prototype)return q;w=w.constructor;return typeof w!=="function"||w===a?q:w}
function P(){function a(){this._keys=[];this._values=[];this._cache=q}
var q={};a.prototype={get size(){return this._keys.length},has:function(w){return w===this._cache?!0:this._find(w)>=0?(this._cache=w,!0):!1},
get:function(w){var I=this._find(w);if(I>=0)return this._cache=w,this._values[I]},
set:function(w,I){this.delete(w);this._keys.push(w);this._values.push(I);this._cache=w;return this},
delete:function(w){w=this._find(w);return w>=0?(this._keys.splice(w,1),this._values.splice(w,1),this._cache=q,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=q},
forEach:function(w){for(var I=this.size,Z3=0;Z3<I;++Z3){var vg=this._keys[Z3],yX=this._values[Z3];this._cache=vg;w.call(this,yX,vg,this)}},
_find:function(w){for(var I=this._keys,Z3=I.length,vg=0;vg<Z3;++vg)if(I[vg]===w)return vg;return-1}};
return a}
function W(){function a(){this._map=new D}
a.prototype={get size(){return this._map.length},has:function(q){return this._map.has(q)},
add:function(q){this._map.set(q,q);return this},
delete:function(q){return this._map.delete(q)},
clear:function(){this._map.clear()},
forEach:function(q,w){this._map.forEach(q,w)}};
return a}
function y(){function a(){this._key=w()}
function q(ov,NW){for(var TW=0;TW<NW;++TW)ov[TW]=Math.random()*255|0}
function w(){do{if(Z3)var ov=Z3.randomBytes(16);else typeof Uint8Array==="function"?(ov=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(ov):q(ov,16)):(ov=Array(16),q(ov,16));ov[6]=ov[6]&79|64;ov[8]=ov[8]&191|128;for(var NW="",TW=0;TW<16;++TW){var Ys=ov[TW];if(TW===4||TW===6||TW===8)NW+="-";Ys<16&&(NW+="0");NW+=Ys.toString(16).toLowerCase()}ov="@@WeakMap@@"+NW}while(vg.call(yX,ov));yX[ov]=!0;return ov}
function I(ov,NW){if(!vg.call(ov,Pg)){if(!NW)return;Object.defineProperty(ov,Pg,{value:Object.create(null)})}return ov[Pg]}
var Z3=typeof global!=="undefined"&&typeof amm==="object"&&typeof require==="function"&&require("crypto"),vg=Object.prototype.hasOwnProperty,yX={},Pg=w();a.prototype={has:function(ov){return(ov=I(ov,!1))?this._key in ov:!1},
get:function(ov){if(ov=I(ov,!1))return ov[this._key]},
set:function(ov,NW){I(ov,!0)[this._key]=NW;return this},
delete:function(ov){return(ov=I(ov,!1))&&this._key in ov?delete ov[this._key]:!1},
clear:function(){this._key=w()}};
return a}
var t=Object.getPrototypeOf(Function),D=typeof Map==="function"?Map:P(),k=typeof Set==="function"?Set:W(),E=new (typeof WeakMap==="function"?WeakMap:y());p.decorate=function(a,q,w,I){if(b(I)){if(b(w)){if(!Array.isArray(a))throw new TypeError;if(!f(q))throw new TypeError;for(w=a.length-1;w>=0;--w)if(I=(0,a[w])(q),!b(I)){if(!f(I))throw new TypeError;q=I}return q}if(!Array.isArray(a))throw new TypeError;if(!F(q))throw new TypeError;w=O(w);for(I=a.length-1;I>=0;--I)(0,a[I])(q,w)}else{if(Array.isArray(a))if(F(q)){if(b(w))throw new TypeError;
if(!F(I))throw new TypeError;}else throw new TypeError;else throw new TypeError;w=O(w);for(var Z3=a.length-1;Z3>=0;--Z3){var vg=(0,a[Z3])(q,w,I);if(!b(vg)){if(!F(vg))throw new TypeError;I=vg}}return I}};
p.metadata=function(a,q){return function(w,I){if(b(I)){if(!f(w))throw new TypeError;J(w,void 0,!0).set(a,q)}else{if(!F(w))throw new TypeError;I=O(I);J(w,I,!0).set(a,q)}}};
p.defineMetadata=function(a,q){var w;if(F(q))b(w)||(w=O(w));else throw new TypeError;J(q,w,!0).set("parameters",a)};
p.hasMetadata=function(a,q,w){if(F(q))b(w)||(w=O(w));else throw new TypeError;return S(a,q,w)};
p.hasOwnMetadata=function(a,q,w){if(F(q))b(w)||(w=O(w));else throw new TypeError;return H(a,q,w)};
p.getMetadata=function(a,q,w){if(F(q))b(w)||(w=O(w));else throw new TypeError;return M(a,q,w)};
p.getOwnMetadata=function(a,q,w){if(F(q))b(w)||(w=O(w));else throw new TypeError;return X(a,q,w)};
p.getMetadataKeys=function(a,q){if(F(a))b(q)||(q=O(q));else throw new TypeError;return Z(a,q)};
p.getOwnMetadataKeys=function(a,q){if(F(a))b(q)||(q=O(q));else throw new TypeError;return n(a,q)};
p.deleteMetadata=function(a,q,w){if(F(q))b(w)||(w=O(w));else throw new TypeError;var I=J(q,w,!1);if(!b(I)){if(!I.delete(a))return!1;if(I.size>0)return!0;a=E.get(q);a.delete(w);if(a.size>0)return!0;E.delete(q);return!0}};
(function(a){if(typeof a.Reflect!=="undefined"){if(a.Reflect!==p)for(var q in p)a.Reflect[q]=p[q]}else a.Reflect=p})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(E2L||(E2L={}));var PFX=self;var YaL=[0,_.w4,_.Ih,_.w4];var rzp=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(rzp,_.Kt);var j4E=_.PG(rzp,[0,_.Hj,_.Jd,YaL,_.Ih,_.Xh]);var xnv=[0,_.MR,-3,_.Xh,_.Hj,_.w4,_.P$8,_.MR,$jE,flv,qU,_.xC,_.w4,function(){return wiU},
_.Ih],wiU=[0,_.Jd,function(){return xnv},
_.Hj,14,_.MR];_.SJ(_.AS,_.gp);_.R=_.AS.prototype;_.R.start=function(){this.stop();this.usingListeners_=!1;var p=cz8(this),J=Im4(this);p&&!J&&this.JSC$11466_win_.mozRequestAnimationFrame?(this.JSC$11466_id_=_.z$(this.JSC$11466_win_,"MozBeforePaint",this.callback_),this.JSC$11466_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11466_id_=p&&J?p.call(this.JSC$11466_win_,this.callback_):this.JSC$11466_win_.setTimeout(V0L(this.callback_),20)};
_.R.stop=function(){if(this.isActive()){var p=cz8(this),J=Im4(this);p&&!J&&this.JSC$11466_win_.mozRequestAnimationFrame?Oa(this.JSC$11466_id_):p&&J?J.call(this.JSC$11466_win_,this.JSC$11466_id_):this.JSC$11466_win_.clearTimeout(this.JSC$11466_id_)}this.JSC$11466_id_=null};
_.R.fire=function(){this.stop();this.JSC$11468_doAction_()};
_.R.isActive=function(){return this.JSC$11466_id_!=null};
_.R.JSC$11468_doAction_=function(){this.usingListeners_&&this.JSC$11466_id_&&Oa(this.JSC$11466_id_);this.JSC$11466_id_=null;this.JSC$11466_listener_.call(this.handler_,_.JF())};
_.R.disposeInternal=function(){this.stop();_.AS.superClass_.disposeInternal.call(this)};
var cz8=function(p){p=p.JSC$11466_win_;return p.requestAnimationFrame||p.webkitRequestAnimationFrame||p.mozRequestAnimationFrame||p.oRequestAnimationFrame||p.msRequestAnimationFrame||null},Im4=function(p){p=p.JSC$11466_win_;
return p.cancelAnimationFrame||p.cancelRequestAnimationFrame||p.webkitCancelRequestAnimationFrame||p.mozCancelRequestAnimationFrame||p.oCancelRequestAnimationFrame||p.msCancelRequestAnimationFrame||null};_.nb=function(p,J,S){_.gp.call(this);this.JSC$11469_listener_=S!=null?p.bind(S):p;this.JSC$11469_interval_=J;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11469_timer_=null};
_.Q(_.nb,_.gp);_.R=_.nb.prototype;_.R.fire=function(p){this.args_=arguments;this.JSC$11469_timer_||this.pauseCount_?this.shouldFire_=!0:L58(this)};
_.R.stop=function(){this.JSC$11469_timer_&&(_.Hg.clearTimeout(this.JSC$11469_timer_),this.JSC$11469_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.R.pause=function(){this.pauseCount_++};
_.R.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11469_timer_||(this.shouldFire_=!1,L58(this))};
_.R.disposeInternal=function(){_.gp.prototype.disposeInternal.call(this);this.stop()};
var L58=function(p){p.JSC$11469_timer_=Ti(function(){p.JSC$11469_timer_=null;p.shouldFire_&&!p.pauseCount_&&(p.shouldFire_=!1,L58(p))},p.JSC$11469_interval_);
var J=p.args_;p.args_=null;p.JSC$11469_listener_.apply(null,J)};var pv4=function(p,J){this.childIterator_=p[_.Hg.Symbol.iterator]();this.mapFn_=J};
pv4.prototype[Symbol.iterator]=function(){return this};
pv4.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 Jm8=function(p,J){return new pv4(p,J)};var SSn={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 R5X=function(p){var J=Hb8(p);if(!J)throw Error("Wd`"+p);return J},Hb8=function(p){var J={};
p=String(p);var S=p.charAt(0)=="#"?p:"#"+p;if(MKv.test(S))return J.hex=LFW(S),J.type="hex",J;S=G9i(p);return S.length?(J.hex=NXX(S[0],S[1],S[2]),J.type="rgb",J):SSn&&(p=SSn[p.toLowerCase()])?(J.hex=p,J.type="named",J):null},XvM=/#(.)(.)(.)/,LFW=function(p){if(!MKv.test(p))throw Error("Yd`"+p);
p.length==4&&(p=p.replace(XvM,"#$1$1$2$2$3$3"));return p.toLowerCase()},KFk=function(p){p=LFW(p);
p=parseInt(p.slice(1),16);return[p>>16,p>>8&255,p&255]},NXX=function(p,J,S){p=Number(p);
J=Number(J);S=Number(S);if(p!=(p&255)||J!=(J&255)||S!=(S&255))throw Error("Zd`"+p+"`"+J+"`"+S);J=p<<16|J<<8|S;return p<16?"#"+(16777216|J).toString(16).slice(1):"#"+J.toString(16)},MKv=/^#(?:[0-9a-f]{3}){1,2}$/i,ibL=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,G9i=function(p){var J=p.match(ibL);
if(J){p=Number(J[1]);var S=Number(J[2]);J=Number(J[3]);if(p>=0&&p<=255&&S>=0&&S<=255&&J>=0&&J<=255)return[p,S,J]}return[]};var RGL={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},Gs=RGL;Gs=RGL;var L3w,KMp,Zbn;L3w=function(p,J){switch(J){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};
KMp=function(p,J,S,H,M){p=new Date(p,J,S);M=M||0;return p.valueOf()+(((H!==void 0?H:3)-M+7)%7-((p.getDay()+6)%7-M+7)%7)*864E5};
_.uB=function(p,J,S){typeof p==="number"?(this.date=Zbn(p,J||0,S||1),nzo(this,S||1)):_.Ei(p)?(this.date=Zbn(p.getFullYear(),p.getMonth(),p.getDate()),nzo(this,p.getDate())):(this.date=new Date(_.JF()),p=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),nzo(this,p))};
Zbn=function(p,J,S){J=new Date(p,J,S);p>=0&&p<100&&J.setFullYear(J.getFullYear()-1900);return J};
_.R=_.uB.prototype;_.R.firstDayOfWeek_=Gs.FIRSTDAYOFWEEK;_.R.firstWeekCutOffDay_=Gs.FIRSTWEEKCUTOFFDAY;_.R.clone=function(){var p=new _.uB(this.date);p.firstDayOfWeek_=this.firstDayOfWeek_;p.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return p};
_.R.getFullYear=function(){return this.date.getFullYear()};
_.R.getYear=function(){return this.getFullYear()};
_.R.getMonth=function(){return this.date.getMonth()};
_.R.getDate=function(){return this.date.getDate()};
_.R.getTime=function(){return this.date.getTime()};
_.R.getDay=function(){return this.date.getDay()};
_.R.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.R.getUTCMonth=function(){return this.date.getUTCMonth()};
_.R.getUTCDate=function(){return this.date.getUTCDate()};
_.R.getUTCDay=function(){return this.date.getDay()};
_.R.getUTCHours=function(){return this.date.getUTCHours()};
_.R.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.R.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.R.set=function(p){this.date=new Date(p.getFullYear(),p.getMonth(),p.getDate())};
_.R.setFullYear=function(p){this.date.setFullYear(p)};
_.R.setYear=function(p){this.setFullYear(p)};
_.R.setMonth=function(p){this.date.setMonth(p)};
_.R.setDate=function(p){this.date.setDate(p)};
_.R.setTime=function(p){this.date.setTime(p)};
_.R.setUTCFullYear=function(p){this.date.setUTCFullYear(p)};
_.R.setUTCMonth=function(p){this.date.setUTCMonth(p)};
_.R.setUTCDate=function(p){this.date.setUTCDate(p)};
_.R.add=function(p){if(p.years||p.months){var J=this.getMonth()+p.months+p.years*12,S=this.getYear()+Math.floor(J/12);J%=12;J<0&&(J+=12);var H=Math.min(L3w(S,J),this.getDate());this.setDate(1);this.setFullYear(S);this.setMonth(J);this.setDate(H)}p.days&&(S=this.getYear(),J=S>=0&&S<=99?-1900:0,p=new Date((new Date(S,this.getMonth(),this.getDate(),12)).getTime()+p.days*864E5),this.setDate(1),this.setFullYear(p.getFullYear()+J),this.setMonth(p.getMonth()),this.setDate(p.getDate()),nzo(this,p.getDate()))};
_.R.JSC$11482_toIsoString=function(p){var J=this.getFullYear(),S=J<0?"-":J>=1E4?"+":"";return[S+_.b_(Math.abs(J),S?6:4),_.b_(this.getMonth()+1,2),_.b_(this.getDate(),2)].join(p?"-":"")};
_.R.equals=function(p){return!(!p||this.getYear()!=p.getYear()||this.getMonth()!=p.getMonth()||this.getDate()!=p.getDate())};
_.R.toString=function(){return this.JSC$11482_toIsoString()};
var nzo=function(p,J){p.getDate()!=J&&p.date.setUTCHours(p.date.getUTCHours()+(p.getDate()<J?1:-1))};
_.uB.prototype.valueOf=function(){return this.date.valueOf()};var Vw=function(p,J,S,H,M){this.reversed=!!J;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!S;p&&lB(this,p,H);this.depth=M!=void 0?M:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.SJ(Vw,fi);var lB=function(p,J,S,H){if(p.node=J)p.tagType=typeof S==="number"?S:p.node.nodeType!=1?0:p.reversed?-1:1;typeof H==="number"&&(p.depth=H)};
_.R=Vw.prototype;_.R.JSC$11497_copyFrom=function(p){this.node=p.node;this.tagType=p.tagType;this.depth=p.depth;this.reversed=p.reversed;this.constrained=p.constrained};
_.R.clone=function(){return new Vw(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.R.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return OE;var p=this.node;var J=this.reversed?-1:1;if(this.tagType==J){var S=this.reversed?p.lastChild:p.firstChild;S?lB(this,S):lB(this,p,J*-1)}else(S=this.reversed?p.previousSibling:p.nextSibling)?lB(this,S):lB(this,p.parentNode,J*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(p=this.node)?AG(p):OE};
_.R.equals=function(p){return p.node==this.node&&(!this.node||p.tagType==this.tagType)};
_.R.splice=function(p){var J=this.node,S=this.reversed?1:-1;this.tagType==S&&(this.tagType=S*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Vw.prototype.next.call(this);this.reversed=!this.reversed;S=_.qW(arguments[0])?arguments[0]:arguments;for(var H=S.length-1;H>=0;H--)_.l_(S[H],J);_.CC(J)};var G7L=function(){},qE=function(p){for(var J=[],S=p.getTextRangeCount(),H=0;H<S;H++)J.push(p.getTextRange(H));
return J};
G7L.prototype.isReversed=function(){return!1};
G7L.prototype.getWindow=function(){return lI(_.VF(this.JSC$11499_getStartNode()))};
var bbE=function(p,J){Vw.call(this,p,J,!0)};
_.SJ(bbE,Vw);var aL=function(p,J,S,H,M){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!M;if(p){this.startNode_=p;this.startOffset_=J;this.endNode_=S;this.endOffset_=H;if(p.nodeType==1&&p.tagName!="BR")if(p=p.childNodes,J=p[J])this.startNode_=J,this.startOffset_=0;else{p.length&&(this.startNode_=_.gk(p));var X=!0}S.nodeType==1&&((this.endNode_=S.childNodes[H])?this.endOffset_=0:this.endNode_=S)}Vw.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);X&&this.next()};
_.SJ(aL,bbE);_.R=aL.prototype;_.R.JSC$11505_getStartNode=function(){return this.startNode_};
_.R.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)};
_.R.next=function(){return this.isLast()?OE:aL.superClass_.next.call(this)};
_.R.JSC$11497_copyFrom=function(p){this.startNode_=p.startNode_;this.endNode_=p.endNode_;this.startOffset_=p.startOffset_;this.endOffset_=p.endOffset_;this.isReversed_=p.isReversed_;aL.superClass_.JSC$11497_copyFrom.call(this,p)};
_.R.clone=function(){var p=new aL(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);p.JSC$11497_copyFrom(this);return p};var mrv=function(){};
mrv.prototype.__iterator__=function(){return new aL(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var E2=function(p){this.range_=p};
_.SJ(E2,mrv);var FMp=function(p){var J=_.VF(p).createRange();if(p.nodeType==3)J.setStart(p,0),J.setEnd(p,p.length);else if(T5(p)||p.nodeType==3){for(var S,H=p;(S=H.firstChild)&&(T5(S)||S.nodeType==3);)H=S;J.setStart(H,0);for(H=p;(S=H.lastChild)&&(T5(S)||S.nodeType==3);)H=S;J.setEnd(H,H.nodeType==1?H.childNodes.length:H.length)}else S=p.parentNode,p=Array.prototype.indexOf.call(S.childNodes,p),J.setStart(S,p),J.setEnd(S,p+1);return J},vz8=function(p,J,S,H){var M=_.VF(p).createRange();
M.setStart(p,J);M.setEnd(S,H);return M};
_.R=E2.prototype;_.R.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.R.getContainer=function(){return this.range_.commonAncestorContainer};
_.R.compareBrowserRangeEndpoints=function(p,J,S){return this.range_.compareBoundaryPoints(S==1?J==1?_.Hg.Range.START_TO_START:_.Hg.Range.START_TO_END:J==1?_.Hg.Range.END_TO_START:_.Hg.Range.END_TO_END,p)};
_.R.isCollapsed=function(){return this.range_.collapsed};
_.R.select=function(p){this.selectInternal(lI(_.VF(this.range_.startContainer)).getSelection(),p)};
_.R.selectInternal=function(p){p.removeAllRanges();p.addRange(this.range_)};
_.R.insertNode=function(p,J){var S=this.range_.cloneRange();S.collapse(J);S.insertNode(p);S.detach();return p};
_.R.collapse=function(p){this.range_.collapse(p)};_.SJ(Ph,E2);Ph.prototype.selectInternal=function(p,J){!J||this.isCollapsed()?Ph.superClass_.selectInternal.call(this,p,J):(p.collapse(this.range_.endContainer,this.range_.endOffset),p.extend(this.range_.startContainer,this.range_.startOffset))};_.SJ(zd,E2);zd.prototype.compareBrowserRangeEndpoints=function(p,J,S){return zd.superClass_.compareBrowserRangeEndpoints.call(this,p,J,S)};
zd.prototype.selectInternal=function(p,J){J?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 fuU=function(p){return _.Ku?new zd(p):_.Rh?new Ph(p):new E2(p)};var Ye=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Obq;
_.SJ(Ye,G7L);Obq=function(p,J){var S=new Ye;S.browserRangeWrapper_=p;S.isReversed_=!!J;return S};
_.Amd=function(p){p=_.Ku?new zd(FMp(p)):_.Rh?new Ph(FMp(p)):new E2(FMp(p));return Obq(p)};
_.rS=function(p,J,S,H){var M=new Ye;M.isReversed_=Pnq(p,J,S,H);if(_.bS(p)&&!T5(p)){var X=p.parentNode;J=Array.prototype.indexOf.call(X.childNodes,p);p=X}_.bS(S)&&!T5(S)&&(X=S.parentNode,H=Array.prototype.indexOf.call(X.childNodes,S),S=X);M.isReversed_?(M.startNode_=S,M.startOffset_=H,M.endNode_=p,M.endOffset_=J):(M.startNode_=p,M.startOffset_=J,M.endNode_=S,M.endOffset_=H);return M};
_.R=Ye.prototype;_.R.clone=function(){var p=new Ye;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};
_.R.JSC$11499_getType=function(){return"text"};
_.R.getBrowserRangeObject=function(){return jY(this).range_};
_.R.getTextRangeCount=function(){return 1};
_.R.getTextRange=function(){return this};
var jY=function(p){var J;if(!(J=p.browserRangeWrapper_)){J=p.JSC$11499_getStartNode();var S=p.JSC$11499_getStartOffset(),H=p.JSC$11499_getEndNode(),M=p.JSC$11499_getEndOffset();J=_.Ku?new zd(vz8(J,S,H,M)):_.Rh?new Ph(vz8(J,S,H,M)):new E2(vz8(J,S,H,M));J=p.browserRangeWrapper_=J}return J};
_.R=Ye.prototype;_.R.getContainer=function(){return jY(this).getContainer()};
_.R.JSC$11499_getStartNode=function(){return this.startNode_||(this.startNode_=jY(this).range_.startContainer)};
_.R.JSC$11499_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=jY(this).range_.startOffset};
_.R.JSC$11499_getEndNode=function(){return this.endNode_||(this.endNode_=jY(this).range_.endContainer)};
_.R.JSC$11499_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=jY(this).range_.endOffset};
_.R.isReversed=function(){return this.isReversed_};
_.R.JSC$11499_containsRange=function(p,J){if(p.JSC$11499_getType()=="text"){var S=jY(this);p=jY(p);J=J&&!p.isCollapsed();p=p.range_;S=J?S.compareBrowserRangeEndpoints(p,0,1)>=0&&S.compareBrowserRangeEndpoints(p,1,0)<=0:S.compareBrowserRangeEndpoints(p,0,0)>=0&&S.compareBrowserRangeEndpoints(p,1,1)<=0}else S=!1;return S};
_.R.isCollapsed=function(){return jY(this).isCollapsed()};
_.R.JSC$11499_getText=function(){return jY(this).range_.toString()};
_.R.__iterator__=function(){return new aL(this.JSC$11499_getStartNode(),this.JSC$11499_getStartOffset(),this.JSC$11499_getEndNode(),this.JSC$11499_getEndOffset())};
_.R.select=function(){jY(this).select(this.isReversed_)};
_.R.JSC$11499_removeContents=function(){var p=jY(this).range_;p.extractContents();if(p.startContainer.hasChildNodes()&&(p=p.startContainer.childNodes[p.startOffset])){var J=p.previousSibling;T2m(p)==""&&_.CC(p);J&&T2m(J)==""&&_.CC(J)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.R.insertNode=function(p,J){p=jY(this).insertNode(p,J);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return p};
_.R.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 zGE=function(){};
_.SJ(zGE,G7L);zGE.prototype.JSC$11499_containsRange=function(p,J){var S=qE(this);p=qE(p);return(J?Zt:_.TX4)(p,function(H){return Zt(S,function(M){return M.JSC$11499_containsRange(H,J)})})};
zGE.prototype.insertNode=function(p,J){J?_.u_(p,this.JSC$11499_getStartNode()):_.l_(p,this.JSC$11499_getEndNode());return p};var $rM,ozM=s9().JSC$9481_document_.documentElement;$rM=ozM.requestFullscreen?"fullscreenchange":ozM.webkitRequestFullscreen?"webkitfullscreenchange":ozM.mozRequestFullScreen?"mozfullscreenchange":ozM.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var eG8=function(){var p=s9().JSC$9481_document_;return!!(p.webkitIsFullScreen||p.mozFullScreen||p.msFullscreenElement||p.fullscreenElement)};var wS=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.SJ(wS,zGE);_.R=wS.prototype;_.R.clone=function(){var p=new wS;p.browserRanges_=_.VX(this.browserRanges_);return p};
_.R.JSC$11499_getType=function(){return"mutli"};
_.R.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.R.getTextRangeCount=function(){return this.browserRanges_.length};
_.R.getTextRange=function(p){this.ranges_[p]||(this.ranges_[p]=Obq(fuU(this.browserRanges_[p])));return this.ranges_[p]};
_.R.getContainer=function(){if(!this.container_){for(var p=[],J=this.getTextRangeCount(),S=0;S<J;S++)p.push(this.getTextRange(S).getContainer());this.container_=srU.apply(null,p)}return this.container_};
var xe=function(p){p.sortedRanges_||(p.sortedRanges_=qE(p),p.sortedRanges_.sort(function(J,S){var H=J.JSC$11499_getStartNode();J=J.JSC$11499_getStartOffset();var M=S.JSC$11499_getStartNode();S=S.JSC$11499_getStartOffset();return H==M&&J==S?0:Pnq(H,J,M,S)?1:-1}));
return p.sortedRanges_};
_.R=wS.prototype;_.R.JSC$11499_getStartNode=function(){return xe(this)[0].JSC$11499_getStartNode()};
_.R.JSC$11499_getStartOffset=function(){return xe(this)[0].JSC$11499_getStartOffset()};
_.R.JSC$11499_getEndNode=function(){return _.gk(xe(this)).JSC$11499_getEndNode()};
_.R.JSC$11499_getEndOffset=function(){return _.gk(xe(this)).JSC$11499_getEndOffset()};
_.R.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.R.JSC$11499_getText=function(){return qE(this).map(function(p){return p.JSC$11499_getText()}).join("")};
_.R.__iterator__=function(){return new cP(this)};
_.R.select=function(){var p=this.getWindow().getSelection();p.removeAllRanges();for(var J=this.getTextRangeCount(),S=0;S<J;S++)p.addRange(this.getTextRange(S).getBrowserRangeObject())};
_.R.JSC$11499_removeContents=function(){qE(this).forEach(function(p){p.JSC$11499_removeContents()})};
_.R.collapse=function(p){if(!this.isCollapsed()){var J=p?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;J.collapse(p);this.ranges_=[J];this.sortedRanges_=[J];this.browserRanges_=[J.getBrowserRangeObject()]}};
var cP=function(p){this.iterators_=null;this.currentIdx_=0;p&&(this.iterators_=xe(p).map(function(J){return _.kvM(J)}));
Vw.call(this,p?this.JSC$11505_getStartNode():null,!1,!0)};
_.SJ(cP,bbE);_.R=cP.prototype;_.R.JSC$11505_getStartNode=function(){return this.iterators_[0].JSC$11505_getStartNode()};
_.R.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.R.next=function(){for(;this.currentIdx_<this.iterators_.length;){var p=this.iterators_[this.currentIdx_],J=p.next();if(J.done)this.currentIdx_++;else return lB(this,p.node,p.tagType,p.depth),J}return OE};
_.R.JSC$11497_copyFrom=function(p){this.iterators_=_.VX(p.iterators_);cP.superClass_.JSC$11497_copyFrom.call(this,p)};
_.R.clone=function(){var p=new cP(null);p.JSC$11497_copyFrom(this);return p};var WME,Pnq;_.i6=function(){var p=window.getSelection();return p&&WME(p)};
WME=function(p){var J=!1;if(p.createRange)try{var S=p.createRange()}catch(M){return null}else if(p.rangeCount){if(p.rangeCount>1){S=new wS;J=p.rangeCount;for(var H=0;H<J;H++)S.browserRanges_.push(p.getRangeAt(H));return S}S=p.getRangeAt(0);J=Pnq(p.anchorNode,p.anchorOffset,p.focusNode,p.focusOffset)}else return null;return Obq(fuU(S),J)};
_.IL=function(p,J){return _.rS(p,J,p,J)};
_.Lk=function(p,J,S,H){return _.rS(p,J,S,H)};
Pnq=function(p,J,S,H){if(p==S)return H<J;var M;if(p.nodeType==1&&J)if(M=p.childNodes[J])p=M,J=0;else if(_.wp(p,S))return!0;if(S.nodeType==1&&H)if(M=S.childNodes[H])S=M,H=0;else if(_.wp(S,p))return!1;return(U0E(p,S)||J-H)>0};var po=function(){_.te.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.tT)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.tT)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.tT)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.tT)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.tT)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.tT)(this.dispatchProgressEvent_,this)};
_.SJ(po,_.te);po.prototype.abort=function(){try{this.reader_.abort()}catch(p){throw new TGn(p,"aborting read");}};
po.prototype.getError=function(){return this.reader_.error&&new TGn(this.reader_.error,"reading file")};
po.prototype.dispatchProgressEvent_=function(p){this.dispatchEvent(new d9d(p,this))};
po.prototype.disposeInternal=function(){po.superClass_.disposeInternal.call(this);delete this.reader_};
var Cn4=function(p){var J=new po,S=QYM(J);J.reader_.readAsArrayBuffer(p);return S},ym4=function(p){var J=new po,S=QYM(J);
J.reader_.readAsDataURL(p);return S},QYM=function(p){var J=new Sb;
p.listen("loadend",_.nl(function(S,H){var M=H.reader_.result,X=H.getError();M==null||X?S.errback(X):S.callback(M);H.dispose()},J,p));
return J};var JQ=function(){_.te.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11539_eventHandler_=new _.oC(this);this.JSC$11539_isInitialized_=!1};
_.SJ(JQ,_.te);var BnU=new _.Cn("d"),Urp=new _.Cn("beforedragstart"),sYL=new _.Cn("dragstart"),gzM=new _.Cn("beforedragmove"),tKM=new _.Cn("dragmove"),hGp=new _.Cn("beforedragend"),DrE=new _.Cn("dragend"),k7m=new _.Cn("e");JQ.prototype.isDragging=function(){return!!this.JSC$11539_dragger_};
var Nn8=function(p,J){J.dlgGrowthDirection_=0;J.dlgDragHoverClass_=void 0;J.dlgDragPermission=0;p.dragLists_.push(J)},Tn4=function(p,J){p.getHandleForDragItem_=J};
JQ.prototype.init=function(){if(!this.JSC$11539_isInitialized_){for(var p=this.dragLists_.length,J=0;J<p;J++)for(var S=_.V4(this.dragLists_[J]),H=S.length,M=0;M<H;++M){var X=S[M],Z=this.getHandleForDragItem_(X),n=_.jt(Z);this.dragItemForHandle_[n]=X;this.dragItemHoverClasses_&&(this.JSC$11539_eventHandler_.listen(X,"mouseover",this.handleDragItemMouseover_),this.JSC$11539_eventHandler_.listen(X,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11539_eventHandler_.listen(Z,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11539_eventHandler_.listen(Z,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(X);this.JSC$11539_eventHandler_.listen(Z,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11539_isInitialized_=!0}};
JQ.prototype.disposeInternal=function(){this.JSC$11539_eventHandler_.dispose();for(var p=this.dragLists_.length,J=0;J<p;J++){var S=this.dragLists_[J];S.dlgGrowthDirection_=void 0;S.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;drM(this);JQ.superClass_.disposeInternal.call(this)};
var uB8=function(p,J){for(var S=p.dragLists_.length,H=0;H<S;H++){var M=p.dragLists_[H];M.dlgBounds_=fv9(M)}S=p.dragItems_.length;for(H=0;H<S;H++)M=p.dragItems_[H],M!=J&&(M.dlgBounds_=fv9(M))};
_.R=JQ.prototype;
_.R.handlePotentialDragStart_=function(p){var J=_.jt(p.currentTarget);J=this.dragItemForHandle_[J];if(J.parentElement.dlgDragPermission!=2){this.currDragItem_=J;a:{J=this.currDragItem_;for(var S=J.cloneNode(!0),H=y0("TEXTAREA",J),M=y0("TEXTAREA",S),X=0;X<H.length;X++)M[X].value=H[X].value;switch(J.tagName){case "TR":J=_.kr("TABLE",null,_.kr("TBODY",null,S));break a;case "TD":case "TH":J=_.kr("TABLE",null,_.kr("TBODY",null,_.kr("TR",null,S)));break a;case "TEXTAREA":S.value=J.value;default:J=S;break a}J=
void 0}this.draggerEl_=J;this.draggerElClasses_&&pN(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.VF(this.currDragItem_).body.appendChild(this.draggerEl_);S=_.q0(this.currDragItem_);J=this.draggerEl_;H=_.q0(J);if(S instanceof _.uI){var Z=S.y;S=S.x}r7(J,J.offsetLeft+(S-H.x),J.offsetTop+(Number(Z)-H.y));this.JSC$11539_dragger_=new _.r$(this.draggerEl_);_.N08(this.JSC$11539_dragger_,this.hysteresisDistance_);
_.z$(this.JSC$11539_dragger_,"start",this.handleDragStart_,!1,this);_.z$(this.JSC$11539_dragger_,"end",this.handleDragEnd_,!1,this);_.z$(this.JSC$11539_dragger_,"earlycancel",this.JSC$11541_cleanup_,!1,this);this.dispatchEvent(new So(BnU,this,p,this.currDragItem_,this.draggerEl_,this.JSC$11539_dragger_));this.JSC$11539_dragger_.startDrag(p)}};
_.R.handleDragStart_=function(p){if(this.dispatchEvent(new So(Urp,this,p.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.CIE(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?pN(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var J=aZ8(this.draggerEl_);this.draggerEl_.halfWidth=J.width/2;this.draggerEl_.halfHeight=J.height/2;J=this.draggerEl_.getBoundingClientRect();
var S=p.clientY,H=T0L(this.JSC$11539_dragger_,p.clientX);if(H>J.right){var M=this.currDragItem_.getBoundingClientRect();this.JSC$11539_dragger_.deltaX=H-(H-M.left)/M.width*J.width}S=dXM(this.JSC$11539_dragger_,S);S>J.bottom&&(this.JSC$11539_dragger_.deltaY+=S-J.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";uB8(this,this.currDragItem_);this.currDragItem_.style.display="";_.z$(this.JSC$11539_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new So(sYL,
this,p.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11539_dragger_))}else p.preventDefault(),this.JSC$11541_cleanup_()};
_.R.handleDragMove_=function(p){var J=_.q0(this.draggerEl_);J=new _.uI(J.x+this.draggerEl_.halfWidth,J.y+this.draggerEl_.halfHeight);a:{var S=null;if(this.currDragItem_.style.display!="none"){S=this.currDragItem_.parentNode;var H=fv9(S);if(luq(J,H))break a}H=this.dragLists_.length;for(var M=0;M<H;M++){var X=this.dragLists_[M];if(X!=S&&luq(J,X.dlgBounds_)){S=X;break a}}S=null}if(S){if(S==null)throw Error("$d");H=0;M=!1;X=void 0;switch(S.dlgGrowthDirection_){case 0:H=J.y;var Z=VKm;var n=qSp;break;case 4:M=
!0;case 2:H=J.x;Z=auL;n=qSp;break;case 5:M=!0;case 3:H=J.x,Z=Ez8,n=YSo}for(var b=null,F,f=_.V4(S),O=f.length,A=0;A<O;A++){var P=f[A];if(P!=this.currDragItem_){var W=Z(P.dlgBounds_);if(M){var y=rmM(P,J);X===void 0&&(X=y);n(H,W)&&(F==void 0||y<X||y==X&&(n(W,F)||W==F))&&(b=P,F=W);y<X&&(X=y)}else n(H,W)&&(F==void 0||n(W,F))&&(b=P,F=W)}}Z=b!==null&&rmM(b,J)>X?null:b}else Z=null;if(!this.dispatchEvent(new So(gzM,this,p,this.currDragItem_,this.draggerEl_,this.JSC$11539_dragger_,J,S,Z)))return!1;if(S&&S.dlgDragPermission!=
1)this.currDragItem_.parentNode==S&&_.CIE(this.currDragItem_)==Z||S.insertBefore(this.currDragItem_,Z),this.currDragItem_.style.display="",S.dlgDragHoverClass_&&_.Ea(S,S.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",n=this.dragLists_.length,F=0;F<n;F++)H=this.dragLists_[F],H.dlgDragHoverClass_&&_.qn(H,H.dlgDragHoverClass_);S!=this.currHoverList_&&(this.currHoverList_=S,uB8(this,this.currDragItem_));this.dispatchEvent(new So(tKM,this,p,this.currDragItem_,this.draggerEl_,this.JSC$11539_dragger_,
J,S,Z));return!1};
_.R.JSC$11541_cleanup_=function(){drM(this);this.JSC$11539_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var p=this.dragLists_.length,J=0;J<p;J++)this.dragLists_[J].dlgBounds_=null;p=this.dragItems_.length;for(J=0;J<p;J++)this.dragItems_[J].dlgBounds_=null};
_.R.handleDragEnd_=function(p){if(!this.dispatchEvent(new So(hGp,this,p,this.currDragItem_,this.draggerEl_,this.JSC$11539_dragger_)))return!1;drM(this);this.dispatchEvent(new So(DrE,this,p,this.currDragItem_,this.draggerEl_,this.JSC$11539_dragger_));this.JSC$11541_cleanup_();return!0};
var drM=function(p){_.iW(p.JSC$11539_dragger_);var J=p.draggerEl_&&p.draggerEl_.parentElement;p.draggerEl_&&_.CC(p.draggerEl_);p.currDragItem_&&p.currDragItem_.style.display=="none"&&(p.origList_.insertBefore(p.currDragItem_,p.origNextItem_),p.currDragItem_.style.display="");p.currDragItemClasses_&&p.currDragItem_?D1d(p.currDragItem_,p.currDragItemClasses_||[]):p.currDragItem_&&(p.currDragItem_.style.visibility="");for(var S=p.dragLists_.length,H=0;H<S;H++){var M=p.dragLists_[H];M.dlgDragHoverClass_&&
_.qn(M,M.dlgDragHoverClass_)}J&&p.dispatchEvent(new So(k7m,p,null,p.currDragItem_,p.draggerEl_,p.JSC$11539_dragger_))};
_.R=JQ.prototype;_.R.getHandleForDragItem_=function(p){return p};
_.R.handleDragItemMouseover_=function(p){pN(p.currentTarget,this.dragItemHoverClasses_||[])};
_.R.handleDragItemMouseout_=function(p){D1d(p.currentTarget,this.dragItemHoverClasses_||[])};
_.R.handleDragItemHandleMouseover_=function(p){pN(p.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.R.handleDragItemHandleMouseout_=function(p){D1d(p.currentTarget,this.dragItemHandleHoverClasses_||[])};
var luq=function(p,J){return p.x>J.left&&p.x<J.left+J.width&&p.y>J.top&&p.y<J.top+J.height},rmM=function(p,J){p=p.dlgBounds_;
return Math.abs(J.y-(p.top+(p.height-1)/2))},VKm=function(p){return p.top+p.height-1},auL=function(p){return p.left+p.width-1},Ez8=function(p){return p.left||0},qSp=function(p,J){return p<J},YSo=function(p,J){return p>J},So=function(p,J,S,H,M,X){_.yr.call(this,p);
this.event=S;this.currDragItem=H;this.draggerEl=M;this.JSC$11543_dragger=X};
_.SJ(So,_.yr);_.SJ(eT,_.gp);var jYq=new _.uI(0,0);eT.prototype.JSC$11547_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
eT.prototype.JSC$11547_onMouseMove=function(p){var J=this.containerIsActuallyContent_?jYq:U9(s9(this.containerNode_)),S=this.horizontalScrolling_?this.calculateScrollDelta(p.clientX+J.x,this.scrollBounds_.left,this.scrollBounds_.width):0,H=this.calculateScrollDelta(p.clientY+J.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=S;this.scrollDelta_.y=H;!(S=!S&&!H)&&(S=this.constrainScroll_)&&(S=p.clientX+J.x,p=p.clientY+J.y,J=this.containerBounds_,S=!(J.left<=S&&J.left+J.width>=
S&&J.top<=p&&J.top+J.height>=p));S?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
eT.prototype.calculateScrollDelta=function(p,J,S){var H=0;p<J?H=-8:p>J+S&&(H=8);return H};
eT.prototype.disposeInternal=function(){eT.superClass_.disposeInternal.call(this);this.JSC$11545_eventHandler_.dispose();this.scrollTimer_.dispose()};var wvn={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"}}},Hy=wvn;Hy=wvn;var M3={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 xrd=function(){},Vc=function(p){if(typeof p=="number"){var J=new xrd;
J.standardOffset_=p;var S=p;if(S==0)S="Etc/GMT";else{var H=["Etc/GMT",S<0?"-":"+"];S=Math.abs(S);H.push(Math.floor(S/60)%100);S%=60;S!=0&&H.push(":",_.b_(S,2));S=H.join("")}J.timeZoneId_=S;S=p;S==0?S="UTC":(H=["UTC",S<0?"+":"-"],S=Math.abs(S),H.push(Math.floor(S/60)%100),S%=60,S!=0&&H.push(":",S),S=H.join(""));p=cmo(p);J.tzNames_=[S,S];J.tzNamesExt_={STD_LONG_NAME_GMT:p,STD_GENERIC_LOCATION:p};J.transitions_=[];return J}J=new xrd;J.timeZoneId_=p.id;J.standardOffset_=-p.std_offset;J.tzNames_=p.names;
J.tzNamesExt_=p.names_ext;J.transitions_=p.transitions;return J},cmo=function(p){var J=["GMT"];
J.push(p<=0?"+":"-");p=Math.abs(p);J.push(_.b_(Math.floor(p/60)%100,2),":",_.b_(p%60,2));return J.join("")},Iu8=function(p,J){J=Date.UTC(J.getUTCFullYear(),J.getUTCMonth(),J.getUTCDate(),J.getUTCHours(),J.getUTCMinutes())/36E5;
for(var S=0;S<p.transitions_.length&&J>=p.transitions_[S];)S+=2;return S==0?0:p.transitions_[S-1]},LMp=function(p,J){p=p.standardOffset_-Iu8(p,J);
return p===-1440?0:p};var qw=function(p,J){this.patternParts_=[];this.JSC$11558_dateTimeSymbols_=J||Gs;typeof p=="number"?p$L(this,p):JHm(this,p)},SlM=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],XI=function(p){return p.getHours?p.getHours():0},JHm=function(p,J){for(PP3&&(J=J.replace(/\u200f/g,""));J;){for(var S=J,H=0;H<SlM.length;++H){var M=J.match(SlM[H]);
if(M){var X=M[0];J=J.substring(X.length);H==0&&(X=="''"?X="'":(X=X.substring(1,M[1]=="'"?X.length-1:X.length),X=X.replace(/''/g,"'")));p.patternParts_.push({text:X,type:H});break}}if(S===J)throw Error("ae`"+J);}};
qw.prototype.format=function(p,J){if(!p)throw Error("be");var S=J?(p.getTimezoneOffset()-LMp(J,p))*6E4:0,H=S?new Date(p.getTime()+S):p,M=H;J&&H.getTimezoneOffset()!=p.getTimezoneOffset()&&(H=new Date(H.getTime()+(H.getTimezoneOffset()-p.getTimezoneOffset())*6E4),M=new Date(p.getTime()+(S+(S>0?-864E5:864E5))));S=[];for(var X=0;X<this.patternParts_.length;++X){var Z=this.patternParts_[X].text;1==this.patternParts_[X].type?S.push(HGd(this,Z,p,H,M,J)):S.push(Z)}return S.join("")};
var p$L=function(p,J){if(J<4)var S=p.JSC$11558_dateTimeSymbols_.DATEFORMATS[J];else if(J<8)S=p.JSC$11558_dateTimeSymbols_.TIMEFORMATS[J-4];else if(J<12)S=p.JSC$11558_dateTimeSymbols_.DATETIMEFORMATS[J-8],S=S.replace("{1}",p.JSC$11558_dateTimeSymbols_.DATEFORMATS[J-8]),S=S.replace("{0}",p.JSC$11558_dateTimeSymbols_.TIMEFORMATS[J-8]);else if(J===12)S=p.JSC$11558_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(J===13)S=p.JSC$11558_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{p$L(p,10);return}JHm(p,S)},ia=function(p,J){J=String(J);
p=p.JSC$11558_dateTimeSymbols_||Gs;if(p.ZERODIGIT!==void 0&&!A0X){for(var S=[],H=0;H<J.length;H++){var M=J.charCodeAt(H);S.push(48<=M&&M<=57?String.fromCharCode(p.ZERODIGIT+M-48):J.charAt(H))}J=S.join("")}return J},A0X=!1,PP3=!1,X$U=function(p,J,S,H){S=S.getFullYear();
S<=0&&H&&(S=1-S);return ia(p,MHE(S,J))},MHE=function(p,J){J==2&&(p%=100);
p<0&&J++;return _.b_(p,J)},RK=function(p){if(!(p.getHours&&p.getSeconds&&p.getMinutes))throw Error("ce");
},iGv=function(p,J){RK(J);
J=XI(J);return p.JSC$11558_dateTimeSymbols_.AMPMS[J>=12&&J<24?1:0]},HGd=function(p,J,S,H,M,X){var Z=J.length;
switch(J.charAt(0)){case "G":return S=H.getFullYear()>0?1:0,Z>=4?p.JSC$11558_dateTimeSymbols_.ERANAMES[S]:p.JSC$11558_dateTimeSymbols_.ERAS[S];case "y":return X$U(p,Z,H,!0);case "Y":return S=(new Date(KMp(H.getFullYear(),H.getMonth(),H.getDate(),p.JSC$11558_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,p.JSC$11558_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),Z==2&&(S%=100),ia(p,MHE(S,Z));case "u":return X$U(p,Z,H,!1);case "M":a:switch(S=H.getMonth(),Z){case 5:Z=p.JSC$11558_dateTimeSymbols_.NARROWMONTHS[S];
break a;case 4:Z=p.JSC$11558_dateTimeSymbols_.MONTHS[S];break a;case 3:Z=p.JSC$11558_dateTimeSymbols_.SHORTMONTHS[S];break a;default:Z=ia(p,_.b_(S+1,Z))}return Z;case "k":return RK(M),ia(p,_.b_(XI(M)||24,Z));case "S":return ia(p,(M.getMilliseconds()/1E3).toFixed(Math.min(3,Z)).slice(2)+(Z>3?_.b_(0,Z-3):""));case "E":return S=H.getDay(),Z>=4?p.JSC$11558_dateTimeSymbols_.WEEKDAYS[S]:p.JSC$11558_dateTimeSymbols_.SHORTWEEKDAYS[S];case "a":return iGv(p,M);case "b":return iGv(p,M);case "B":return iGv(p,
M);case "h":return RK(M),ia(p,_.b_(XI(M)%12||12,Z));case "K":return RK(M),ia(p,_.b_(XI(M)%12,Z));case "H":return RK(M),ia(p,_.b_(XI(M),Z));case "c":a:switch(S=H.getDay(),Z){case 5:Z=p.JSC$11558_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[S];break a;case 4:Z=p.JSC$11558_dateTimeSymbols_.STANDALONEWEEKDAYS[S];break a;case 3:Z=p.JSC$11558_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[S];break a;default:Z=ia(p,_.b_(S,1))}return Z;case "L":a:switch(S=H.getMonth(),Z){case 5:Z=p.JSC$11558_dateTimeSymbols_.STANDALONENARROWMONTHS[S];
break a;case 4:Z=p.JSC$11558_dateTimeSymbols_.STANDALONEMONTHS[S];break a;case 3:Z=p.JSC$11558_dateTimeSymbols_.STANDALONESHORTMONTHS[S];break a;default:Z=ia(p,_.b_(S+1,Z))}return Z;case "Q":return S=Math.floor(H.getMonth()/3),Z<4?p.JSC$11558_dateTimeSymbols_.SHORTQUARTERS[S]:p.JSC$11558_dateTimeSymbols_.QUARTERS[S];case "d":return ia(p,_.b_(H.getDate(),Z));case "m":return RK(M),ia(p,_.b_(M.getMinutes?M.getMinutes():0,Z));case "s":return RK(M),ia(p,_.b_(M.getSeconds(),Z));case "v":return(X||Vc(S.getTimezoneOffset())).timeZoneId_;
case "V":return p=X||Vc(S.getTimezoneOffset()),Z<=2?p.timeZoneId_:Iu8(p,S)>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 S=KMp(M.getFullYear(),M.getMonth(),M.getDate(),p.JSC$11558_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,p.JSC$11558_dateTimeSymbols_.FIRSTDAYOFWEEK),ia(p,_.b_(Math.floor(Math.round((S-(new Date((new Date(S)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,Z));case "z":return p=X||Vc(S.getTimezoneOffset()),Z<4?p.tzNames_[Iu8(p,S)>0?2:0]:p.tzNames_[Iu8(p,S)>0?3:1];case "Z":return J=X||Vc(S.getTimezoneOffset()),Z<4?(Z=-LMp(J,S),p=[Z<0?"-":"+"],Z=Math.abs(Z),p.push(_.b_(Math.floor(Z/60)%100,2),_.b_(Z%60,2)),Z=p.join("")):Z=ia(p,cmo(LMp(J,S))),Z;default:return""}};var RKp=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,KVv=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,WPv=function(p){this.patternParts_=[];this.JSC$11567_dateTimeSymbols_=Gs;if(typeof p=="number"){p>11&&(p=10);if(p<4)var J=this.JSC$11567_dateTimeSymbols_.DATEFORMATS[p];else p<8?J=this.JSC$11567_dateTimeSymbols_.TIMEFORMATS[p-4]:(J=this.JSC$11567_dateTimeSymbols_.DATETIMEFORMATS[p-8],J=J.replace("{1}",this.JSC$11567_dateTimeSymbols_.DATEFORMATS[p-8]),J=J.replace("{0}",this.JSC$11567_dateTimeSymbols_.TIMEFORMATS[p-
8]));ZGE(this,J)}else ZGE(this,p)},ZGE=function(p,J){for(var S=!1,H="",M=0;M<J.length;M++){var X=J.charAt(M);
if(RKp.test(X))for(H.length>0&&(p.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1}),H=""),p.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});M<J.length-1&&J.charAt(M+1)==" ";)M++;else if(S)X=="'"?M+1<J.length&&J.charAt(M+1)=="'"?(H+="'",M++):S=!1:H+=X;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(X)>=0){H.length>0&&(p.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1}),H="");for(var Z=J.charAt(M),n=M+1;n<J.length&&J.charAt(n)==Z;)n++;Z=n-M;Z<=0?n=!1:(n="MydhHmsSDkK".indexOf(X),
n=n>0||n==0&&Z<3);p.patternParts_.push({text:X,count:Z,abutStart:!1,numeric:n});M+=Z-1}else X=="'"?M+1<J.length&&J.charAt(M+1)=="'"?(H+="'",M++):S=!0:H+=X}H.length>0&&p.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1});J=!1;for(S=0;S<p.patternParts_.length;S++)p.patternParts_[S].numeric?!J&&S+1<p.patternParts_.length&&p.patternParts_[S+1].numeric&&(J=!0,p.patternParts_[S].abutStart=!0):J=!1};
WPv.prototype.parse=function(p,J,S){var H=!1,M=!1;S&&(H=S.predictive||!1,M=S.validate||!1);if(H)for(S=0;S<this.patternParts_.length;S++){var X=this.patternParts_[S];if(X.count>0&&("abBhHkKm".indexOf(X.text.charAt(0))<0||X.count>2||X.abutStart))throw Error("de`"+X.text.charAt(0));}X=new nmn;S=[0];X.dayPeriodIndex=-1;for(var Z=0;Z<this.patternParts_.length&&!(H&&S[0]>=p.length);Z++){if(this.patternParts_[Z].count==0){a:{var n=p;var b=S,F=this.patternParts_[Z],f=H;if(F.text.match(RKp)!=null){if(F=b[0],
Gyd(n,b),b[0]>F){n=!0;break a}}else{if(n.indexOf(F.text,b[0])==b[0]){b[0]+=F.text.length;n=!0;break a}if(f&&F.text.indexOf(n.substring(b[0]))==0){b[0]+=n.length-b[0];n=!0;break a}}n=!1}if(n)continue;return 0}if(this.patternParts_[Z].abutStart){a:{b=p;F=S;f=Z;var O=F[0],A=0;for(n=f;n<this.patternParts_.length;n++){var P=this.patternParts_[n],W=P.count;if(W===0)break;if(n==f&&(W-=A,A++,W==0)){n=0;break a}var y=n>f&&P.numeric,t=F[0];if(!bG8(this,b,F,P,W,X,!1)||y&&F[0]-t<W)n=f-1,F[0]=O}n-=f}if(n<=0)return 0;
Z+=n-1}else if(!bG8(this,p,S,this.patternParts_[Z],0,X,H))return 0}a:{p=M;if(J==null)throw Error("ee");X.era!=void 0&&X.year!=void 0&&X.era==0&&X.year>0&&(X.year=-(X.year-1));X.year!=void 0&&J.setFullYear(X.year);H=J.getDate();J.setDate(1);X.month!=void 0&&J.setMonth(X.month);X.day!=void 0?J.setDate(X.day):(M=L3w(J.getFullYear(),J.getMonth()),J.setDate(H>M?M:H));typeof J.setHours==="function"&&(X.hours==void 0&&(X.hours=J.getHours()),X.hours<12&&(X.ampm!=void 0&&X.ampm>0?X.hours+=12:X.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(X.dayPeriodName)||["night1","night2"].includes(X.dayPeriodName)&&X.hours>=6)&&(X.hours+=12)),J.setHours(X.hours));typeof J.setMinutes==="function"&&X.minutes!=void 0&&J.setMinutes(X.minutes);typeof J.setSeconds==="function"&&X.seconds!=void 0&&J.setSeconds(X.seconds);typeof J.setMilliseconds==="function"&&X.milliseconds!=void 0&&J.setMilliseconds(X.milliseconds);if(p&&(X.year&&X.year!=J.getFullYear()||X.month&&X.month!=
J.getMonth()||X.day&&X.day!=J.getDate()||X.hours&&X.hours>=24||X.minutes&&X.minutes>=60||X.seconds&&X.seconds>=60||X.milliseconds&&X.milliseconds>=1E3))J=!1;else{X.tzOffset!=void 0&&J.setTime(J.getTime()+(X.tzOffset-J.getTimezoneOffset())*60*1E3);X.ambiguousYear&&(p=new Date,p.setFullYear(p.getFullYear()-80),J.getTime()<p.getTime()&&J.setFullYear(p.getFullYear()+100));if(X.dayOfWeek!=void 0)if(X.day==void 0)X=(7+X.dayOfWeek-J.getDay())%7,X>3&&(X-=7),p=J.getMonth(),J.setDate(J.getDate()+X),J.getMonth()!=
p&&J.setDate(J.getDate()+(X>0?-7:7));else if(X.dayOfWeek!=J.getDay()){J=!1;break a}J=!0}}return J?S[0]:0};
var bG8=function(p,J,S,H,M,X,Z){Gyd(J,S);if(H.numeric&&M>0&&S[0]+M>J.length)return!1;switch(H.text.charAt(0)){case "G":return Ko(J,S,[p.JSC$11567_dateTimeSymbols_.ERAS],function(n){return X.era=n}),!0;
case "M":case "L":return m6p(p,J,S,M,H,X);case "E":return Ko(J,S,[p.JSC$11567_dateTimeSymbols_.WEEKDAYS,p.JSC$11567_dateTimeSymbols_.SHORTWEEKDAYS],function(n){return X.dayOfWeek=n});
case "B":case "b":return M=[],p=[[].concat(p.JSC$11567_dateTimeSymbols_.AMPMS)],M.push("isAm"),M.push("isPm"),J=Ko(J,S,p,function(n){return X.dayPeriodIndex=n},Z),X.dayPeriodName=M[X.dayPeriodIndex],Z?J:!0;
case "a":return J=Ko(J,S,[p.JSC$11567_dateTimeSymbols_.AMPMS],function(n){return X.ampm=n},Z),Z?J:!0;
case "y":return FVL(p,J,S,H,M,X);case "Q":return Ko(J,S,[p.JSC$11567_dateTimeSymbols_.QUARTERS,p.JSC$11567_dateTimeSymbols_.SHORTQUARTERS],function(n){X.month=n*3;X.day=1});
case "d":return Z$(p,J,S,H,M,function(n){X.day=n}),!0;
case "S":return vm8(p,J,S,M,X);case "h":case "K":case "H":case "k":return J=Z$(p,J,S,H,M,function(n){X.hours=H.text.charAt(0)==="h"&&n===12?0:n},Z),Z?J:!0;
case "m":return J=Z$(p,J,S,H,M,function(n){X.minutes=n},Z),Z?J:!0;
case "s":return Z$(p,J,S,H,M,function(n){X.seconds=n}),!0;
case "z":case "Z":case "v":return fp8(p,J,S,X);default:return!1}},FVL=function(p,J,S,H,M,X){var Z=S[0];
M=no(p,J,S,M);M===null&&(M=no(p,J,S,0,!0));if(M===null)return!1;M>=0&&S[0]-Z==2&&H.count==2?(p=M,J=(new Date).getFullYear()-80,S=J%100,X.ambiguousYear=p==S,p+=Math.floor(J/100)*100+(p<S?100:0),X.year=p):X.year=M;return!0},m6p=function(p,J,S,H,M,X){return M.numeric&&Z$(p,J,S,M,H,function(Z){X.month=Z-1})?!0:Ko(J,S,[p.JSC$11567_dateTimeSymbols_.MONTHS,
p.JSC$11567_dateTimeSymbols_.STANDALONEMONTHS,p.JSC$11567_dateTimeSymbols_.SHORTMONTHS,p.JSC$11567_dateTimeSymbols_.STANDALONESHORTMONTHS],function(Z){X.month=Z})},vm8=function(p,J,S,H,M){var X=S[0];
p=no(p,J,S,H);if(p===null)return!1;S=S[0]-X;M.milliseconds=S<3?p*Math.pow(10,3-S):Math.round(p/Math.pow(10,S-3));return!0},fp8=function(p,J,S,H){J.indexOf("GMT",S[0])==S[0]&&(S[0]+=3);
if(S[0]>=J.length)return H.tzOffset=0,!0;var M=S[0],X=no(p,J,S,0,!0);if(X===null)return!1;if(S[0]<J.length&&J.charAt(S[0])==":"){var Z=X*60;S[0]++;X=no(p,J,S,0);if(X===null)return!1;Z+=X}else Z=X,Z=Z<24&&S[0]-M<=3?Z*60:Z%100+Z/100*60;H.tzOffset=-Z;return!0},Z$=function(p,J,S,H,M,X,Z){Z=Z||!1;
var n=S[0];p=no(p,J,S,M);if(p===null)return!1;if(Z&&S[0]-n<H.count){if(S[0]<J.length)return!1;p*=Math.pow(10,H.count-(S[0]-n))}X(p);return!0},Ko=function(p,J,S,H,M){M=M||!1;
for(var X,Z=0;Z<S.length;Z++){X=J;for(var n=S[Z],b=M,F=0,f=null,O=p.substring(X[0]).toLowerCase(),A=0;A<n.length;A++){var P=n[A].toLowerCase();if(b&&P.indexOf(O)==0){F=O.length;f=A;break}n[A].length>F&&O.indexOf(P)==0&&(F=n[A].length,f=A)}f!==null&&(X[0]+=F);X=f;if(X!==null)return H(X),!0}return!1},Gyd=function(p,J){(p=p.substring(J[0]).match(KVv))&&(J[0]+=p[0].length)},no=function(p,J,S,H,M){J=H>0?J.substring(0,S[0]+H):J;
M=M||!1;if(p.JSC$11567_dateTimeSymbols_.ZERODIGIT){H=[];for(var X=S[0];X<J.length;X++){var Z=J.charCodeAt(X)-p.JSC$11567_dateTimeSymbols_.ZERODIGIT;H.push(0<=Z&&Z<=9?String.fromCharCode(Z+48):J.charAt(X))}J=H.join("")}else J=J.substring(S[0]);p=J.match(new RegExp("^"+(M?"[+-]?":"")+"\\d+"));if(!p)return null;S[0]+=p[0].length;return parseInt(p[0],10)},nmn=function(){};
nmn.prototype.ambiguousYear=!1;var OG8;
OG8={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 AH8={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}"]};
AH8={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 PT8=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_=AH8;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]}};
PT8.prototype.format=function(p){return zKo(this,p)};
var zKo=function(p,J){var S=J.length;switch(S){case 0:return"";case 1:return String(J[0]);case 2:return p.listTwoPattern_.replace("{0}",String(J[0])).replace("{1}",String(J[1]))}for(var H=p.listStartPattern_.replace("{0}",String(J[0])).replace("{1}",String(J[1])),M=2;M<S-1;++M)H=p.listMiddlePattern_.replace("{0}",H).replace("{1}",String(J[M]));return p.listEndPattern_.replace("{0}",H).replace("{1}",String(J[S-1]))};var $6n={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"},omM=$6n,eKM=$6n;eKM=omM=$6n;var QAL,GQ,mt,Rvg,ba,WVm;
_.dl=function(p,J,S,H){var M;if(M=J){a:if(J&&J.length===3){for(M=0;M<3;M++){var X=J[M];if(X<"A"||X>"Z"&&X<"a"||X>"z"){M=!1;break a}}M=!0}else M=!1;M=!M}if(M)throw new TypeError("fe");this.intlCurrencyCode_=J?J.toUpperCase():null;this.currencyStyle_=S||0;this.overrideNumberFormatSymbols_=H||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_=GQ(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:ba(this,GQ(this).DECIMAL_PATTERN);break;case 2:ba(this,GQ(this).SCIENTIFIC_PATTERN);break;case 3:ba(this,GQ(this).PERCENT_PATTERN);break;case 4:p=GQ(this).CURRENCY_PATTERN;J=["0"];if(S=
M3[mt(this)]){S=S[0]&7;if(S>0)for(J.push("."),H=0;H<S;H++)J.push("0");p=p.replace(/0.00/g,J.join(""))}ba(this,p);break;case 5:WVm(this,1);break;case 6:WVm(this,2);break;default:throw Error("ie");}else ba(this,p)};
QAL=!1;GQ=function(p){return p.overrideNumberFormatSymbols_||(QAL?eKM:omM)};
mt=function(p){return p.intlCurrencyCode_||GQ(p).DEF_CURRENCY_CODE};
Rvg=function(p,J){if(J>308)throw Error("he`"+J);p.maximumFractionDigits_=J;return p};
ba=function(p,J){var S=[0];p.positivePrefix_=CTp(p,J,S);for(var H=S[0],M=-1,X=0,Z=0,n=0,b=-1,F=J.length,f=!0;S[0]<F&&f;S[0]++)switch(J.charAt(S[0])){case "#":Z>0?n++:X++;b>=0&&M<0&&b++;break;case "0":if(n>0)throw Error("oe`"+J);Z++;b>=0&&M<0&&b++;break;case ",":b>0&&p.groupingArray_.push(b);b=0;break;case ".":if(M>=0)throw Error("pe`"+J);M=X+Z+n;break;case "E":if(p.useExponentialNotation_)throw Error("qe`"+J);p.useExponentialNotation_=!0;p.minExponentDigits_=0;S[0]+1<F&&J.charAt(S[0]+1)=="+"&&(S[0]++,
p.useSignForPositiveExponent_=!0);for(;S[0]+1<F&&J.charAt(S[0]+1)=="0";)S[0]++,p.minExponentDigits_++;if(X+Z<1||p.minExponentDigits_<1)throw Error("re`"+J);f=!1;break;default:S[0]--,f=!1}Z==0&&X>0&&M>=0&&(Z=M,Z==0&&Z++,n=X-Z,X=Z-1,Z=1);if(M<0&&n>0||M>=0&&(M<X||M>X+Z)||b==0)throw Error("se`"+J);n=X+Z+n;p.maximumFractionDigits_=M>=0?n-M:0;M>=0&&(p.minimumFractionDigits_=X+Z-M,p.minimumFractionDigits_<0&&(p.minimumFractionDigits_=0));p.minimumIntegerDigits_=(M>=0?M:n)-X;p.useExponentialNotation_&&(p.maximumIntegerDigits_=
X+p.minimumIntegerDigits_,p.maximumFractionDigits_==0&&p.minimumIntegerDigits_==0&&(p.minimumIntegerDigits_=1));p.groupingArray_.push(Math.max(0,b));p.decimalSeparatorAlwaysShown_=M==0||M==n;H=S[0]-H;p.positiveSuffix_=CTp(p,J,S);S[0]<J.length&&J.charAt(S[0])==";"?(S[0]++,p.multiplier_!=1&&(p.negativePercentSignExpected_=!0),p.negativePrefix_=CTp(p,J,S),S[0]+=H,p.negativeSuffix_=CTp(p,J,S)):(p.negativePrefix_+=p.positivePrefix_,p.negativeSuffix_+=p.positiveSuffix_)};
WVm=function(p,J){p.compactStyle_=J;ba(p,GQ(p).DECIMAL_PATTERN);p.minimumFractionDigits_=0;Rvg(p,2);if(p.minimumFractionDigits_>0)throw Error("ge");p.significantDigits_=2};
_.dl.prototype.parse=function(p,J){J=J||[0];if(this.compactStyle_!==0)throw Error("je");p=p.replace(/ |\u202f/g,"\u00a0");var S=p.indexOf(this.positivePrefix_,J[0])==J[0],H=p.indexOf(this.negativePrefix_,J[0])==J[0];S&&H&&(this.positivePrefix_.length>this.negativePrefix_.length?H=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(S=!1));S?J[0]+=this.positivePrefix_.length:H&&(J[0]+=this.negativePrefix_.length);if(p.indexOf(GQ(this).INFINITY,J[0])==J[0]){J[0]+=GQ(this).INFINITY.length;var M=
Infinity}else{M=p;var X=!1,Z=!1,n=!1,b=-1,F=1,f=GQ(this).DECIMAL_SEP,O=GQ(this).GROUP_SEP,A=GQ(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");O=O.replace(/\u202f/g,"\u00a0");for(var P="";J[0]<M.length;J[0]++){var W=M.charAt(J[0]),y=yHm(this,W);if(y>=0&&y<=9)P+=y,n=!0;else if(W==f.charAt(0)){if(X||Z)break;P+=".";X=!0}else if(W==O.charAt(0)&&("\u00a0"!=O.charAt(0)||J[0]+1<M.length&&yHm(this,M.charAt(J[0]+1))>=0)){if(X||Z)break}else if(W==A.charAt(0)){if(Z)break;P+="E";Z=!0;b=J[0]}else if(W==
"+"||W=="-"){if(n&&b!=J[0]-1)break;P+=W}else if(this.multiplier_==1&&W==GQ(this).PERCENT.charAt(0)){if(F!=1)break;F=100;if(n){J[0]++;break}}else if(this.multiplier_==1&&W==GQ(this).PERMILL.charAt(0)){if(F!=1)break;F=1E3;if(n){J[0]++;break}}else break}this.multiplier_!=1&&(F=this.multiplier_);M=parseFloat(P)/F}if(S){if(p.indexOf(this.positiveSuffix_,J[0])!=J[0])return NaN;J[0]+=this.positiveSuffix_.length}else if(H){if(p.indexOf(this.negativeSuffix_,J[0])!=J[0])return NaN;J[0]+=this.negativeSuffix_.length}return H?
-M:M};
_.dl.prototype.format=function(p){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(p))return GQ(this).NAN;var J=[];var S=p;if(this.compactStyle_==0)S=FI;else{S=Math.abs(S);var H=BTd(this,S<=1?0:U68(S)).divisorBase;S=BTd(this,H+U68(sAq(this,vy(S,-H)).intValue))}p=vy(p,-S.divisorBase);(H=p<0||p==0&&1/p<0)?S.negative_prefix?J.push(S.negative_prefix):(J.push(S.prefix),J.push(this.negativePrefix_)):(J.push(S.prefix),J.push(this.positivePrefix_));if(isFinite(p))if(p*=
H?-1:1,p*=this.multiplier_,this.useExponentialNotation_){var M=p;if(M==0)gmU(this,M,this.minimumIntegerDigits_,J),tHn(this,0,J);else{var X=Math.floor(Math.log(M)/Math.log(10)+2E-15);M=vy(M,-X);var Z=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(Z=X%this.maximumIntegerDigits_,Z<0&&(Z=this.maximumIntegerDigits_+Z),M=vy(M,Z),X-=Z,Z=1):this.minimumIntegerDigits_<1?(X++,M=vy(M,-1)):(X-=this.minimumIntegerDigits_-1,M=vy(M,this.minimumIntegerDigits_-
1));gmU(this,M,Z,J);tHn(this,X,J)}}else gmU(this,p,this.minimumIntegerDigits_,J);else J.push(GQ(this).INFINITY);H?S.negative_suffix?J.push(S.negative_suffix):(isFinite(p)&&J.push(S.suffix),J.push(this.negativeSuffix_)):(isFinite(p)&&J.push(S.suffix),J.push(this.positiveSuffix_));return J.join("")};
var sAq=function(p,J){var S=vy(J,p.maximumFractionDigits_);p.significantDigits_>0&&(S=hKm(S,p.significantDigits_,p.maximumFractionDigits_));S=Math.round(S);if(isFinite(S)){var H=Math.floor(vy(S,-p.maximumFractionDigits_));S=Math.floor(S-vy(H,p.maximumFractionDigits_));if(S<0||S>=vy(1,p.maximumFractionDigits_))H=Math.round(J),S=0}else H=J,S=0;return{intValue:H,fracValue:S}},gmU=function(p,J,S,H){if(p.minimumFractionDigits_>p.maximumFractionDigits_)throw Error("le");
H||(H=[]);J=sAq(p,J);var M=J.intValue,X=J.fracValue,Z=p.minimumFractionDigits_>0||X>0||!1;J=p.minimumFractionDigits_;Z&&(J=p.minimumFractionDigits_);for(var n="",b=M;b>1E20;)n="0"+n,b=Math.round(vy(b,-1));n=b+n;var F=GQ(p).DECIMAL_SEP;b=GQ(p).ZERO_DIGIT.codePointAt(0);var f=n.length,O=0;if(M>0||S>0){for(M=f;M<S;M++)H.push(String.fromCodePoint(b));if(p.groupingArray_.length>=2)for(S=1;S<p.groupingArray_.length;S++)O+=p.groupingArray_[S];S=f-O;if(S>0){M=p.groupingArray_;O=f=0;for(var A,P=GQ(p).GROUP_SEP,
W=n.length,y=0;y<W;y++)if(H.push(String.fromCodePoint(b+Number(n.charAt(y)))),W-y>1)if(A=M[O],y<S){var t=S-y;(A===1||A>0&&t%A===1)&&H.push(P)}else O<M.length&&(y===S?O+=1:A===y-S-f+1&&(H.push(P),f+=A,O+=1))}else{S=n;n=p.groupingArray_;M=GQ(p).GROUP_SEP;A=S.length;P=[];for(f=n.length-1;f>=0&&A>0;f--){O=n[f];for(W=0;W<O&&A-W-1>=0;W++)P.push(String.fromCodePoint(b+Number(S.charAt(A-W-1))));A-=O;A>0&&P.push(M)}H.push.apply(H,P.reverse())}}else Z||H.push(String.fromCodePoint(b));(p.decimalSeparatorAlwaysShown_||
Z)&&H.push(F);X=String(X);Z=X.split("e+");Z.length==2&&(X=String(hKm(parseFloat(Z[0]),p.significantDigits_,1)),X=X.replace(".",""),X+=(0,_.GHd)("0",parseInt(Z[1],10)-X.length+1));p.maximumFractionDigits_+1>X.length&&(X="1"+(0,_.GHd)("0",p.maximumFractionDigits_-X.length)+X);for(p=X.length;X.charAt(p-1)=="0"&&p>J+1;)p--;for(J=1;J<p;J++)H.push(String.fromCodePoint(b+Number(X.charAt(J))))},tHn=function(p,J,S){S.push(GQ(p).EXP_SYMBOL);
J<0?(J=-J,S.push(GQ(p).MINUS_SIGN)):p.useSignForPositiveExponent_&&S.push(GQ(p).PLUS_SIGN);J=""+J;for(var H=GQ(p).ZERO_DIGIT,M=J.length;M<p.minExponentDigits_;M++)S.push(H);p=H.codePointAt(0)-D68;for(H=0;H<J.length;H++)S.push(String.fromCodePoint(p+J.codePointAt(H)))},yHm=function(p,J){J=J.codePointAt(0);
if(48<=J&&J<58)return J-48;p=GQ(p).ZERO_DIGIT.codePointAt(0);return p<=J&&J<p+10?J-p:-1},D68="0".codePointAt(0),CTp=function(p,J,S){for(var H="",M=!1,X=J.length;S[0]<X;S[0]++){var Z=J.charAt(S[0]);
if(Z=="'")S[0]+1<X&&J.charAt(S[0]+1)=="'"?(S[0]++,H+="'"):M=!M;else if(M)H+=Z;else switch(Z){case "#":case "0":case ",":case ".":case ";":return H;case "\u00a4":if(S[0]+1<X&&J.charAt(S[0]+1)=="\u00a4")S[0]++,H+=mt(p);else switch(p.currencyStyle_){case 0:Z=mt(p);H+=Z in M3?M3[Z][1]:Z;break;case 2:Z=mt(p);var n=M3[Z];H+=n?Z==n[1]?Z:Z+" "+n[1]:Z;break;case 1:Z=mt(p),H+=Z in M3?M3[Z][2]:Z}break;case "%":if(!p.negativePercentSignExpected_&&p.multiplier_!=1)throw Error("me");if(p.negativePercentSignExpected_&&
p.multiplier_!=100)throw Error("ne");p.multiplier_=100;p.negativePercentSignExpected_=!1;H+=GQ(p).PERCENT;break;case "\u2030":if(!p.negativePercentSignExpected_&&p.multiplier_!=1)throw Error("me");if(p.negativePercentSignExpected_&&p.multiplier_!=1E3)throw Error("ne");p.multiplier_=1E3;p.negativePercentSignExpected_=!1;H+=GQ(p).PERMILL;break;default:H+=Z}}return H},FI={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},BTd=function(p,J){p=p.compactStyle_==1?Hy.COMPACT_DECIMAL_SHORT_PATTERN:Hy.COMPACT_DECIMAL_LONG_PATTERN;p==null&&(p=Hy.COMPACT_DECIMAL_SHORT_PATTERN);if(J<3)return FI;J=Math.min(14,J);var S=p[vy(1,J)];for(--J;!S&&J>=3;)S=p[vy(1,J)],J--;if(!S)return FI;S=S.other;var H=p="",M=S.indexOf(";");M>=0&&(S=S.substring(0,M),M=S.substring(M+1))&&(H=/([^0]*)(0+)(.*)/.exec(M),p=H[1],H=H[3]);return S&&S!="0"?(S=/([^0]*)(0+)(.*)/.exec(S))?{divisorBase:J+
1-(S[2].length-1),negative_prefix:p,negative_suffix:H,prefix:S[1],suffix:S[3]}:FI:FI},U68=function(p){if(!isFinite(p))return p>0?p:0;
for(var J=0;(p/=10)>=1;)J++;return J},vy=function(p,J){if(!p||!isFinite(p)||J==0)return p;
p=String(p).split("e");return parseFloat(p[0]+"e"+(parseInt(p[1]||0,10)+J))},kyL=function(p,J){return p&&isFinite(p)?vy(Math.round(vy(p,J)),-J):p},hKm=function(p,J,S){if(!p)return p;
J=J-U68(p)-1;return J<-S?kyL(p,-S):kyL(p,J)};var NTd=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"},TTm=NTd;
TTm=NTd;var d6m=function(p,J){var S=p|0;if(void 0===J){J=Math;var H=J.min,M=p+"",X=M.indexOf(".");J=H.call(J,X===-1?0:M.length-X-1,3)}H=Math.pow(10,J);p={v:J,f:(p*H|0)%H};return S==1&&p.v==0?"one":"other"},Tr=d6m;
Tr=d6m;var qln=function(p){this.JSC$11610_pattern_=p;this.parsedPattern_=this.literals_=this.initialLiterals_=null;p=omM;var J=Hy;if(uJm!==p||lpU!==J)uJm=p,lpU=J,VH8=new _.dl(1);this.numberFormatter_=VH8},uJm=null,lpU=null,VH8=null,ap8=RegExp("'([{}#].*?)'","g"),Em8=RegExp("''","g");
qln.prototype.format=function(p){if(this.JSC$11610_pattern_){this.initialLiterals_=[];var J=Ylp(this,this.JSC$11610_pattern_);this.parsedPattern_=rH8(this,J);this.JSC$11610_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.VX(this.initialLiterals_),J=[],jA8(this,this.parsedPattern_,p,!1,J),p=J.join("");this.literals_.length>0;)p=p.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else p="";return p};
var jA8=function(p,J,S,H,M){for(var X=0;X<J.length;X++)switch(J[X].type){case 4:M.push(J[X].value);break;case 3:var Z=J[X].value;var n=p,b=M,F=S[Z];F===void 0?b.push("Undefined parameter - "+Z):(n.literals_.push(F),b.push(n.buildPlaceholder_(n.literals_)));break;case 2:Z=J[X].value;n=p;b=S;F=H;var f=M,O=Z.argumentIndex;b[O]===void 0?f.push("Undefined parameter - "+O):(O=Z[b[O]],O===void 0&&(O=Z.other),jA8(n,O,b,F,f));break;case 0:Z=J[X].value;w$o(p,Z,S,Tr,H,M);break;case 1:Z=J[X].value,w$o(p,Z,S,
TTm,H,M)}},w$o=function(p,J,S,H,M,X){var Z=J.argumentIndex,n=J.argumentOffset,b=+S[Z];
isNaN(b)?X.push("Undefined or invalid parameter - "+Z):(n=b-n,Z=J[S[Z]],Z===void 0&&(H=H(Math.abs(n)),Z=J[H],Z===void 0&&(Z=J.other)),J=[],jA8(p,Z,S,M,J),S=J.join(""),M?X.push(S):(p=p.numberFormatter_.format(n),X.push(S.replace(/#/g,p))))},Ylp=function(p,J){var S=p.initialLiterals_,H=p.buildPlaceholder_.bind(p);
J=J.replace(Em8,function(){S.push("'");return H(S)});
return J=J.replace(ap8,function(M,X){S.push(X);return H(S)})},x6p=function(p){var J=0,S=[],H=[],M=/[{}]/g;
M.lastIndex=0;for(var X;X=M.exec(p);){var Z=X.index;X[0]=="}"?(S.pop(),S.length==0&&(X={type:1},X.value=p.substring(J,Z),H.push(X),J=Z+1)):(S.length==0&&(J=p.substring(J,Z),J!=""&&H.push({type:0,value:J}),J=Z+1),S.push("{"))}p=p.substring(J);p!=""&&H.push({type:0,value:p});return H},cHv=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,Ip8=/^\s*(\w+)\s*,\s*selectordinal\s*,/,LVn=/^\s*(\w+)\s*,\s*select\s*,/,rH8=function(p,J){var S=[];
J=x6p(J);for(var H=0;H<J.length;H++){var M={};if(0==J[H].type)M.type=4,M.value=J[H].value;else if(1==J[H].type){var X=J[H].value;switch(cHv.test(X)?0:Ip8.test(X)?1:LVn.test(X)?2:/^\s*\w+\s*/.test(X)?3:5){case 2:M.type=2;M.value=pYE(p,J[H].value);break;case 0:M.type=0;M.value=JX8(p,J[H].value);break;case 1:M.type=1;M.value=SXp(p,J[H].value);break;case 3:M.type=3,M.value=J[H].value}}S.push(M)}return S},pYE=function(p,J){var S="";
J=J.replace(LVn,function(n,b){S=b;return""});
var H={};H.argumentIndex=S;J=x6p(J);for(var M=0;M<J.length;){var X=J[M].value;M++;var Z=void 0;1==J[M].type&&(Z=rH8(p,J[M].value));H[X.replace(/\s/g,"")]=Z;M++}return H},JX8=function(p,J){var S="",H=0;
J=J.replace(cHv,function(b,F,f){S=F;f&&(H=parseInt(f,10));return""});
var M={};M.argumentIndex=S;M.argumentOffset=H;J=x6p(J);for(var X=0;X<J.length;){var Z=J[X].value;X++;var n=void 0;1==J[X].type&&(n=rH8(p,J[X].value));M[Z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=n;X++}return M},SXp=function(p,J){var S="";
J=J.replace(Ip8,function(n,b){S=b;return""});
var H={};H.argumentIndex=S;H.argumentOffset=0;J=x6p(J);for(var M=0;M<J.length;){var X=J[M].value;M++;var Z=void 0;1==J[M].type&&(Z=rH8(p,J[M].value));H[X.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Z;M++}return H};
qln.prototype.buildPlaceholder_=function(p){return"\ufddf_"+(p.length-1).toString(10)+"_"};var ieW=function(){var p={style:1},J=HY8;this.style_=(p==null?void 0:p.style)||0;this.durationSymbols_=J||OG8},Ms8=function(p,J){switch(J){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}},fo=function(p,J,S){a:{S=Ms8(p,S);
switch(p.style_){case 1:if(S.LONG!=void 0){p=S.LONG;break a}case 2:if(S.NARROW!=void 0){p=S.NARROW;break a}default:p=S.SHORT;break a}p=void 0}return p?(new qln("{DURATION_VALUE,plural,"+p+"}")).format({DURATION_VALUE:J}):""};
ieW.prototype.format=function(p){var J=[],S=p.years,H=p.months,M=p.weeks,X=p.days,Z=p.hours,n=p.minutes;p=p.seconds;S!=null&&J.push(fo(this,S,"years"));H!=null&&J.push(fo(this,H,"months"));M!=null&&J.push(fo(this,M,"weeks"));X!=null&&J.push(fo(this,X,"days"));Z!=null&&J.push(fo(this,Z,"hours"));n!=null&&J.push(fo(this,n,"minutes"));p!=null&&J.push(fo(this,p,"seconds"));return(new PT8).format(J)};var XYn;
XYn={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 $Fs=function(){this.rdtfSymbols_=iYE||XYn;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
$Fs.prototype.format=function(p,J){a:{J=Rl8(this,J);switch(this.style_){case 2:if(J.NARROW!=void 0){J=J.NARROW;break a}case 1:if(J.SHORT!=void 0){J=J.SHORT;break a}default:J=J.LONG;break a}J=void 0}if(!this.alwaysNumeric_&&J&&J.R&&J.R[""+p])p=J.R[""+p];else if(J){var S=Math.abs(p);p=(new qln("{N,plural,"+(p>0||p==0&&1/p==Infinity?J.F:J.P)+"}")).format({N:S})}else p="";return p};
var Rl8=function(p,J){switch(J){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 KKd=function(p,J,S,H,M,X,Z,n){this.x0=p;this.y0=J;this.x1=S;this.y1=H;this.x2=M;this.y2=X;this.x3=Z;this.y3=n};
KKd.prototype.clone=function(){return new KKd(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
KKd.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 ZY8=function(p,J){if(J==0)return p.x0;if(J==1)return p.x3;var S=g7(p.x0,p.x1,J),H=g7(p.x1,p.x2,J);p=g7(p.x2,p.x3,J);S=g7(S,H,J);H=g7(H,p,J);return g7(S,H,J)},n8U=function(p,J){var S=(J-p.x0)/(p.x3-p.x0);
if(S<=0)return 0;if(S>=1)return 1;for(var H=0,M=1,X=0,Z=0;Z<8;Z++){X=ZY8(p,S);var n=(ZY8(p,S+1E-6)-X)/1E-6;if(Math.abs(X-J)<1E-6)return S;if(Math.abs(n)<1E-6)break;else X<J?H=S:M=S,S-=(X-J)/n}for(Z=0;Math.abs(X-J)>1E-6&&Z<8;Z++)X<J?(H=S,S=(S+M)/2):(M=S,S=(S+H)/2),X=ZY8(p,S);return S};var OM=function(){_.te.call(this);this.JSC$11631_name_="closure_frame"+GsL++;this.iframesForDisposal_=[];bYm[this.JSC$11631_name_]=this},AQ;
_.SJ(OM,_.te);var bYm={},GsL=0,mBo=function(p,J){var S=s9(p);vQ8(J,function(H,M){Array.isArray(H)||(H=[H]);_.MV(H,function(X){X=S.JSC$9483_createDom("INPUT",{type:"hidden",name:M,value:X});p.appendChild(X)})})};
_.R=OM.prototype;_.R.JSC$11633_form_=null;_.R.JSC$11633_iframe_=null;_.R.iframeName_=null;_.R.nextIframeId_=0;_.R.JSC$11633_active_=!1;_.R.complete_=!1;_.R.success_=!1;_.R.lastContent_=null;_.R.JSC$11633_lastErrorCode_=0;_.R.iframeDisposalTimer_=null;
_.R.send=function(p,J,S,H){if(this.JSC$11633_active_)throw Error("te");p=new _.V1(p);J=J?J.toUpperCase():"GET";S&&_.AJ(p);AQ||(AQ=_.kr("FORM"),AQ.acceptCharset="utf-8",S=AQ.style,S.position="absolute",S.visibility="hidden",S.top=S.left="-10px",S.width=S.height="10px",S.overflow="hidden",document.body.appendChild(AQ));this.JSC$11633_form_=AQ;J=="GET"&&mBo(this.JSC$11633_form_,p.JSC$10187_queryData_);H&&mBo(this.JSC$11633_form_,H);S=p.toString();S=qvv(S);H=this.JSC$11633_form_;S=_.ry(D4(S));S!==void 0&&
(H.action=S);this.JSC$11633_form_.method=J;FK8(this);v8E(this)};
_.R.abort=function(p){if(this.JSC$11633_active_){var J=Py(this);if(J)if(Un(J))J.removeAllListeners(void 0);else if(J=sn(J)){var S=0,H;for(H in J.listeners)for(var M=J.listeners[H].concat(),X=0;X<M.length;++X)Oa(M[X])&&++S}this.success_=this.JSC$11633_active_=this.complete_=!1;this.JSC$11633_lastErrorCode_=p||7;this.dispatchEvent("abort");fPM(this)}};
_.R.disposeInternal=function(){this.JSC$11633_active_&&this.abort();OM.superClass_.disposeInternal.call(this);this.JSC$11633_iframe_&&OYv(this);v8E(this);this.JSC$11633_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11633_form_=null;this.JSC$11633_lastErrorCode_=0;delete bYm[this.JSC$11631_name_]};
_.R.isComplete=function(){return this.complete_};
_.R.isSuccess=function(){return this.success_};
_.R.isActive=function(){return this.JSC$11633_active_};
_.R.getResponseText=function(){return this.lastContent_};
_.R.getLastError=function(){return _.Ygv(this.JSC$11633_lastErrorCode_)};
var FK8=function(p){p.JSC$11633_active_=!0;p.complete_=!1;p.JSC$11633_lastErrorCode_=0;p.iframeName_=p.JSC$11631_name_+"_"+(p.nextIframeId_++).toString(36);p.JSC$11633_iframe_=s9(p.JSC$11633_form_).JSC$9483_createDom("IFRAME",{name:p.iframeName_,id:p.iframeName_});var J=p.JSC$11633_iframe_.style;J.visibility="hidden";J.width=J.height="10px";J.display="none";_.Ku?J.marginTop=J.marginLeft="-10px":(J.position="absolute",J.top=J.left="-10px");s9(p.JSC$11633_form_).JSC$9481_document_.body.appendChild(p.JSC$11633_iframe_);
J=p.iframeName_+"_inner";var S=gon(p.JSC$11633_iframe_);if(document.baseURI){var H=iT(J);H='<head><base href="'+iT(document.baseURI)+'"></head><body><iframe id="'+H+'" name="'+H+'"></iframe>';H=xp(H)}else H=iT(J),H=xp('<body><iframe id="'+H+'" name="'+H+'"></iframe>');S.write(cG(H));_.z$(S.getElementById(J),"load",p.onIframeLoaded_,!1,p);H=y0("TEXTAREA",p.JSC$11633_form_);for(var M=0,X=H.length;M<X;M++){var Z=H[M].value;T2m(H[M])!=Z&&(_.qR(H[M],Z),H[M].value=Z)}H=S.importNode(p.JSC$11633_form_,!0);
H.target=J;H.action=p.JSC$11633_form_.action;S.body.appendChild(H);M=y0("SELECT",p.JSC$11633_form_);X=y0("SELECT",H);Z=0;for(var n=M.length;Z<n;Z++)for(var b=y0("OPTION",M[Z]),F=y0("OPTION",X[Z]),f=0,O=b.length;f<O;f++)F[f].selected=b[f].selected;M=y0("INPUT",p.JSC$11633_form_);X=y0("INPUT",H);Z=0;for(n=M.length;Z<n;Z++)if(M[Z].type=="file"&&M[Z].value!=X[Z].value){p.JSC$11633_form_.target=J;H=p.JSC$11633_form_;break}try{p.errorHandled_=!1,H.submit(),S.close(),_.Rh&&setTimeout(p.testForFirefoxSilentError_.bind(p),
250)}catch(A){_.gx(S.getElementById(J),"load",p.onIframeLoaded_,!1,p),S.close(),zQ(p,2)}};
OM.prototype.onIframeLoaded_=function(){_.gx(Py(this),"load",this.onIframeLoaded_,!1,this);try{var p=this.JSC$11633_iframe_?gon(Py(this)):null;this.complete_=!0;this.JSC$11633_active_=!1;try{var J=p.body;this.lastContent_=J.textContent||J.innerText}catch(M){var S=1}var H;S||typeof this.errorChecker_!="function"||(H=this.errorChecker_(p))&&(S=4);S?zQ(this,S):(this.success_=!0,this.JSC$11633_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),fPM(this))}catch(M){zQ(this,1)}};
var zQ=function(p,J){p.errorHandled_||(p.success_=!1,p.JSC$11633_active_=!1,p.complete_=!0,p.JSC$11633_lastErrorCode_=J,p.dispatchEvent("complete"),p.dispatchEvent("error"),fPM(p),p.errorHandled_=!0)},fPM=function(p){OYv(p);
v8E(p);p.JSC$11633_form_=null;p.dispatchEvent("ready")},OYv=function(p){var J=p.JSC$11633_iframe_;
J&&(J.onreadystatechange=null,J.onload=null,J.onerror=null,p.iframesForDisposal_.push(J));p.iframeDisposalTimer_&&(clearTimeout(p.iframeDisposalTimer_),p.iframeDisposalTimer_=null);_.Rh?p.iframeDisposalTimer_=setTimeout(p.disposeIframes_.bind(p),2E3):p.disposeIframes_();p.JSC$11633_iframe_=null;p.iframeName_=null};
OM.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var p=this.iframesForDisposal_.pop();_.CC(p)}};
var v8E=function(p){p.JSC$11633_form_&&p.JSC$11633_form_==AQ&&_.d7(p.JSC$11633_form_)},Py=function(p){return p.JSC$11633_iframe_?gon(p.JSC$11633_iframe_).getElementById(p.iframeName_+"_inner"):null};
OM.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11633_active_){var p=this.JSC$11633_iframe_?gon(Py(this)):null;p&&!k6i(p,"documentUri")?(_.gx(Py(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?zQ(this,3):zQ(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.$9=function(p){return p=="\r"||p=="\n"||p==" "||p=="\t"};var AX8;_.oK=function(p){this.errorMessage_=null;this.result_=[];this.JSC$11635_buffer_="";this.stack_=[];this.JSC$11635_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!p||!p.deliverMessageAsRawString)};
AX8={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};_.oK.prototype.isInputValid=function(){return this.streamState_!=3};
_.oK.prototype.done=function(){return this.streamState_===2};
var eo=function(p,J,S){p.streamState_=3;p.errorMessage_="The stream is broken @"+p.JSC$11635_pos_+"/"+S+". With input:\n"+J;throw Error(p.errorMessage_);};
_.oK.prototype.acceptsBinaryInput=function(){return!1};
_.oK.prototype.parse=function(p){function J(){for(;A<p.length;)if(_.$9(p[A]))A++,X.JSC$11635_pos_++;else break;return A<F}
function S(){for(var W;;){W=p[A++];if(!W)break;X.JSC$11635_pos_++;switch(X.state_){case b.INIT:W==="{"?X.state_=b.OBJECT_OPEN:W==="["?X.state_=b.ARRAY_OPEN:_.$9(W)||eo(X,p,A);continue;case b.KEY_START:case b.OBJECT_OPEN:if(_.$9(W))continue;if(X.state_===b.KEY_START)Z.push(b.KEY_END);else if(W==="}"){M("{}");X.state_=H();continue}else Z.push(b.OBJECT_END);W==='"'?X.state_=b.STRING:eo(X,p,A);continue;case b.KEY_END:case b.OBJECT_END:if(_.$9(W))continue;W===":"?(X.state_===b.OBJECT_END&&(Z.push(b.OBJECT_END),
X.depth_++),X.state_=b.VALUE):W==="}"?(X.depth_--,M(),X.state_=H()):W===","?(X.state_===b.OBJECT_END&&Z.push(b.OBJECT_END),X.state_=b.KEY_START):eo(X,p,A);continue;case b.ARRAY_OPEN:case b.VALUE:if(_.$9(W))continue;if(X.state_===b.ARRAY_OPEN)if(X.depth_++,X.state_=b.VALUE,W==="]"){X.depth_--;if(X.depth_===0){X.state_=b.ARRAY_END;return}M("[]");X.state_=H();continue}else Z.push(b.ARRAY_END);W==='"'?X.state_=b.STRING:W==="{"?X.state_=b.OBJECT_OPEN:W==="["?X.state_=b.ARRAY_OPEN:W==="t"?X.state_=b.TRUE1:
W==="f"?X.state_=b.FALSE1:W==="n"?X.state_=b.NULL1:W!=="-"&&("0123456789".indexOf(W)!==-1?X.state_=b.NUM_DIGIT:eo(X,p,A));continue;case b.ARRAY_END:if(W===",")Z.push(b.ARRAY_END),X.state_=b.VALUE,X.depth_===1&&(O=A);else if(W==="]"){X.depth_--;if(X.depth_===0)return;M();X.state_=H()}else if(_.$9(W))continue;else eo(X,p,A);continue;case b.STRING:var y=A;a:for(;;){for(;X.unicodeCount_>0;)if(W=p[A++],X.unicodeCount_===4?X.unicodeCount_=0:X.unicodeCount_++,!W)break a;if(W==='"'&&!X.slashed_){X.state_=
H();break}if(W==="\\"&&!X.slashed_&&(X.slashed_=!0,W=p[A++],!W))break;if(X.slashed_)if(X.slashed_=!1,W==="u"&&(X.unicodeCount_=1),W=p[A++])continue;else break;n.lastIndex=A;W=n.exec(p);if(!W){A=p.length+1;break}A=W.index+1;W=p[W.index];if(!W)break}X.JSC$11635_pos_+=A-y;continue;case b.TRUE1:if(!W)continue;W==="r"?X.state_=b.TRUE2:eo(X,p,A);continue;case b.TRUE2:if(!W)continue;W==="u"?X.state_=b.TRUE3:eo(X,p,A);continue;case b.TRUE3:if(!W)continue;W==="e"?X.state_=H():eo(X,p,A);continue;case b.FALSE1:if(!W)continue;
W==="a"?X.state_=b.FALSE2:eo(X,p,A);continue;case b.FALSE2:if(!W)continue;W==="l"?X.state_=b.FALSE3:eo(X,p,A);continue;case b.FALSE3:if(!W)continue;W==="s"?X.state_=b.FALSE4:eo(X,p,A);continue;case b.FALSE4:if(!W)continue;W==="e"?X.state_=H():eo(X,p,A);continue;case b.NULL1:if(!W)continue;W==="u"?X.state_=b.NULL2:eo(X,p,A);continue;case b.NULL2:if(!W)continue;W==="l"?X.state_=b.NULL3:eo(X,p,A);continue;case b.NULL3:if(!W)continue;W==="l"?X.state_=H():eo(X,p,A);continue;case b.NUM_DECIMAL_POINT:W===
"."?X.state_=b.NUM_DIGIT:eo(X,p,A);continue;case b.NUM_DIGIT:if("0123456789.eE+-".indexOf(W)!==-1)continue;else A--,X.JSC$11635_pos_--,X.state_=H();continue;default:eo(X,p,A)}}}
function H(){var W=Z.pop();return W!=null?W:b.VALUE}
function M(W){X.depth_>1||(W||(W=O===-1?X.JSC$11635_buffer_+p.substring(f,A):p.substring(O,A)),X.deliverMessageAsRawString_?X.result_.push(W):X.result_.push(JSON.parse(W)),O=A)}
for(var X=this,Z=X.stack_,n=X.stringInputPattern_,b=AX8,F=p.length,f=0,O=-1,A=0;A<F;)switch(X.streamState_){case 3:return eo(X,p,A),null;case 2:return J()&&eo(X,p,A),null;case 0:if(J()){var P=p[A++];X.JSC$11635_pos_++;if(P==="["){X.streamState_=1;f=A;X.state_=b.ARRAY_OPEN;continue}else eo(X,p,A)}return null;case 1:return S(),X.depth_===0&&X.state_==b.ARRAY_END?(X.streamState_=2,X.JSC$11635_buffer_=p.substring(A)):X.JSC$11635_buffer_=O===-1?X.JSC$11635_buffer_+p.substring(f):p.substring(O),X.result_.length>
0?(P=X.result_,X.result_=[],P):null}return null};_.SJ(_.Wh,uh);QB.prototype.getValue=function(){return this.JSC$11643_value_};
QB.prototype.clone=function(){return new QB(this.JSC$11643_key_,this.JSC$11643_value_)};var Wy=function(p){this.nodes_=[];if(p)a:{if(p instanceof Wy){var J=p.getKeys();p=p.getValues();if(this.getCount()<=0){for(var S=this.nodes_,H=0;H<J.length;H++)S.push(new QB(J[H],p[H]));break a}}else J=_.T6.getKeys(p),p=_.T6.getValues(p);for(S=0;S<J.length;S++)this.insert(J[S],p[S])}};
_.R=Wy.prototype;_.R.insert=function(p,J){var S=this.nodes_;S.push(new QB(p,J));p=S.length-1;J=this.nodes_;for(S=J[p];p>0;){var H=p-1>>1;if(J[H].JSC$11643_key_>S.JSC$11643_key_)J[p]=J[H],p=H;else break}J[p]=S};
_.R.remove=function(){var p=this.nodes_,J=p.length,S=p[0];if(!(J<=0)){if(J==1)p.length=0;else{p[0]=p.pop();p=0;J=this.nodes_;for(var H=J.length,M=J[p];p<H>>1;){var X=p*2+1,Z=p*2+2;X=Z<H&&J[Z].JSC$11643_key_<J[X].JSC$11643_key_?Z:X;if(J[X].JSC$11643_key_>M.JSC$11643_key_)break;J[p]=J[X];p=X}J[p]=M}return S.getValue()}};
_.R.peek=function(){var p=this.nodes_;if(p.length!=0)return p[0].getValue()};
_.R.getValues=function(){for(var p=this.nodes_,J=[],S=p.length,H=0;H<S;H++)J.push(p[H].getValue());return J};
_.R.getKeys=function(){for(var p=this.nodes_,J=[],S=p.length,H=0;H<S;H++)J.push(p[H].JSC$11643_key_);return J};
_.R.containsValue=function(p){return this.nodes_.some(function(J){return J.getValue()==p})};
_.R.containsKey=function(p){return this.nodes_.some(function(J){return J.JSC$11643_key_==p})};
_.R.clone=function(){return new Wy(this)};
_.R.getCount=function(){return this.nodes_.length};
_.R.isEmpty=function(){return this.nodes_.length===0};
_.R.clear=function(){this.nodes_.length=0};_.QU=function(p,J){this.JSC$11649_map_={};this.JSC$11649_keys_=[];this.version_=this.size=0;var S=arguments.length;if(S>1){if(S%2)throw Error("ma");for(var H=0;H<S;H+=2)this.set(arguments[H],arguments[H+1])}else p&&this.addAll(p)};
_.R=_.QU.prototype;_.R.getCount=function(){return this.size};
_.R.getValues=function(){Co(this);for(var p=[],J=0;J<this.JSC$11649_keys_.length;J++)p.push(this.JSC$11649_map_[this.JSC$11649_keys_[J]]);return p};
_.R.getKeys=function(){Co(this);return this.JSC$11649_keys_.concat()};
_.R.containsKey=function(p){return this.has(p)};
_.R.has=function(p){return yU(this.JSC$11649_map_,p)};
_.R.containsValue=function(p){for(var J=0;J<this.JSC$11649_keys_.length;J++){var S=this.JSC$11649_keys_[J];if(yU(this.JSC$11649_map_,S)&&this.JSC$11649_map_[S]==p)return!0}return!1};
_.R.equals=function(p,J){if(this===p)return!0;if(this.size!=p.getCount())return!1;J=J||P68;Co(this);for(var S,H=0;S=this.JSC$11649_keys_[H];H++)if(!J(this.get(S),p.get(S)))return!1;return!0};
var P68=function(p,J){return p===J};
_.QU.prototype.isEmpty=function(){return this.size==0};
_.QU.prototype.clear=function(){this.JSC$11649_map_={};this.version_=this.size=this.JSC$11649_keys_.length=0};
_.QU.prototype.remove=function(p){return this.delete(p)};
_.QU.prototype.delete=function(p){return yU(this.JSC$11649_map_,p)?(delete this.JSC$11649_map_[p],--this.size,this.version_++,this.JSC$11649_keys_.length>2*this.size&&Co(this),!0):!1};
var Co=function(p){if(p.size!=p.JSC$11649_keys_.length){for(var J=0,S=0;J<p.JSC$11649_keys_.length;){var H=p.JSC$11649_keys_[J];yU(p.JSC$11649_map_,H)&&(p.JSC$11649_keys_[S++]=H);J++}p.JSC$11649_keys_.length=S}if(p.size!=p.JSC$11649_keys_.length){J={};for(H=S=0;S<p.JSC$11649_keys_.length;){var M=p.JSC$11649_keys_[S];yU(J,M)||(p.JSC$11649_keys_[H++]=M,J[M]=1);S++}p.JSC$11649_keys_.length=H}};
_.R=_.QU.prototype;_.R.get=function(p,J){return yU(this.JSC$11649_map_,p)?this.JSC$11649_map_[p]:J};
_.R.set=function(p,J){yU(this.JSC$11649_map_,p)||(this.size+=1,this.JSC$11649_keys_.push(p),this.version_++);this.JSC$11649_map_[p]=J};
_.R.addAll=function(p){if(p instanceof _.QU)for(var J=p.getKeys(),S=0;S<J.length;S++)this.set(J[S],p.get(J[S]));else for(J in p)this.set(J,p[J])};
_.R.forEach=function(p,J){for(var S=this.getKeys(),H=0;H<S.length;H++){var M=S[H],X=this.get(M);p.call(J,X,M,this)}};
_.R.clone=function(){return new _.QU(this)};
_.R.transpose=function(){for(var p=new _.QU,J=0;J<this.JSC$11649_keys_.length;J++){var S=this.JSC$11649_keys_[J];p.set(this.JSC$11649_map_[S],S)}return p};
_.R.keys=function(){return NIv(this.__iterator__(!0)).toEs6()};
_.R.values=function(){return NIv(this.__iterator__(!1)).toEs6()};
_.R.entries=function(){var p=this;return Jm8(this.keys(),function(J){return[J,p.get(J)]})};
_.R.__iterator__=function(p){Co(this);var J=0,S=this.version_,H=this,M=new fi;M.next=function(){if(S!=H.version_)throw Error("ue");if(J>=H.JSC$11649_keys_.length)return OE;var X=H.JSC$11649_keys_[J++];return AG(p?X:H.JSC$11649_map_[X])};
return M};
var yU=function(p,J){return Object.prototype.hasOwnProperty.call(p,J)};var $B8=function(){this.JSC$11652_map_=new _.QU;this.JSC$11652_head_=new zlm("");this.JSC$11652_head_.next=this.JSC$11652_head_.prev=this.JSC$11652_head_},o88=function(p,J){if(J=p.JSC$11652_map_.get(J))J.remove(),p.insert_(J);
return J};
_.R=$B8.prototype;_.R.get=function(p,J){return(p=o88(this,p))?p.value:J};
_.R.set=function(p,J){var S=o88(this,p);S?S.value=J:(S=new zlm(p,J),this.JSC$11652_map_.set(p,S),this.insert_(S))};
_.R.peek=function(){return this.JSC$11652_head_.next.value};
_.R.shift=function(){return elv(this,this.JSC$11652_head_.next)};
_.R.pop=function(){return elv(this,this.JSC$11652_head_.prev)};
_.R.remove=function(p){return(p=this.JSC$11652_map_.get(p))?(this.removeNode(p),!0):!1};
_.R.removeNode=function(p){p.remove();this.JSC$11652_map_.remove(p.key)};
_.R.getCount=function(){return this.JSC$11652_map_.getCount()};
_.R.isEmpty=function(){return this.JSC$11652_map_.isEmpty()};
_.R.getKeys=function(){return this.map(function(p,J){return J})};
_.R.getValues=function(){return this.map(function(p){return p})};
_.R.contains=function(p){return this.some(function(J){return J==p})};
_.R.containsKey=function(p){return this.JSC$11652_map_.containsKey(p)};
_.R.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11652_head_.prev)};
_.R.forEach=function(p,J){for(var S=this.JSC$11652_head_.next;S!=this.JSC$11652_head_;S=S.next)p.call(J,S.value,S.key,this)};
_.R.map=function(p,J){for(var S=[],H=this.JSC$11652_head_.next;H!=this.JSC$11652_head_;H=H.next)S.push(p.call(J,H.value,H.key,this));return S};
_.R.some=function(p,J){for(var S=this.JSC$11652_head_.next;S!=this.JSC$11652_head_;S=S.next)if(p.call(J,S.value,S.key,this))return!0;return!1};
_.R.every=function(p,J){for(var S=this.JSC$11652_head_.next;S!=this.JSC$11652_head_;S=S.next)if(!p.call(J,S.value,S.key,this))return!1;return!0};
_.R.insert_=function(p){p.next=this.JSC$11652_head_.next;p.prev=this.JSC$11652_head_;this.JSC$11652_head_.next=p;for(p.next.prev=p;this.getCount()>100;)this.removeNode(this.JSC$11652_head_.prev)};
var elv=function(p,J){p.JSC$11652_head_!=J&&p.removeNode(J);return J.value},zlm=function(p,J){this.key=p;
this.value=J};
zlm.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var WKp=function(){Wy.apply(this,arguments)};
_.Q(WKp,Wy);WKp.prototype.enqueue=function(p,J){this.insert(p,J)};var Qto=function(){var p=Error();p.name="SecurityError";throw p;},WWk=function(){return{get opener(){return null},
get closed(){return!0},get location(){Qto()},get document(){Qto()},postMessage:function(){},
close:function(){},
focus:function(){}}};var OXs={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 z6i={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 C6L={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(z6i).join("|");var yXM=function(){function p(n){n.substr(-1)!==";"&&(n+=";");return Z(n)}
for(var J=Object.keys(C6L).sort(P_9),S=Object.keys(z6i).sort(P_9),H=0,M=0;H<S.length;H++)J[M]===S[H]?(S[H]+=";?",M++):S[H]+=";";var X=new RegExp("&(?:"+S.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),Z=$R9();return function(n){return String(n).replace(X,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 B_8={};var UBo=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"),st8=/[\\&]/,g8L=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),tsM=RegExp('[&<>"]',"g"),hl8=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),DB4=function(p){return p.charCodeAt(0)===92?p.charAt(1):yXM(p)},ks4=function(p){return st8.test(p)?p.replace(g8L,DB4):p},N_n=function(p){try{var J,S="";
if(typeof M!=="string"){var H=M;var M=";/?:@&=+$,-_.!~*'()#"}typeof H==="undefined"&&(H=!0);var X,Z=B_8[M];if(Z)var n=Z;else{Z=B_8[M]=[];for(X=0;X<128;X++){var b=String.fromCharCode(X);/^[0-9a-z]$/i.test(b)?Z.push(b):Z.push("%"+("0"+X.toString(16).toUpperCase()).slice(-2))}for(X=0;X<M.length;X++)Z[M.charCodeAt(X)]=M[X];n=Z}var F=0;for(J=p.length;F<J;F++){var f=p.charCodeAt(F);if(H&&f===37&&F+2<J&&/^[0-9a-f]{2}$/i.test(p.slice(F+1,F+3)))S+=p.slice(F,F+3),F+=2;else if(f<128)S+=n[f];else if(f>=55296&&
f<=57343){if(f>=55296&&f<=56319&&F+1<J){var O=p.charCodeAt(F+1);if(O>=56320&&O<=57343){S+=encodeURIComponent(p[F]+p[F+1]);F++;continue}}S+="%EF%BF%BD"}else S+=encodeURIComponent(p[F])}return S}catch(A){return p}},T_8=function(p){switch(p){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return p}},By=function(p,J){return tsM.test(p)?J?p.replace(hl8,T_8):p.replace(tsM,T_8):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 gL;if(String.fromCodePoint)gL=function(p){try{return String.fromCodePoint(p)}catch(J){if(J instanceof RangeError)return String.fromCharCode(65533);throw J;}};
else{var dBn=String.fromCharCode,umd=Math.floor;gL=function(){var p=[],J=-1,S=arguments.length;if(!S)return"";for(var H="";++J<S;){var M=Number(arguments[J]);if(!isFinite(M)||M<0||M>1114111||umd(M)!==M)return String.fromCharCode(65533);if(M<=65535)p.push(M);else{M-=65536;var X=(M>>10)+55296;M=M%1024+56320;p.push(X,M)}if(J+1===S||p.length>16384)H+=dBn.apply(null,p),p.length=0}return H}};var lP8=function(p){this.root=this.current=p;this.entering=!0};
lP8.prototype.next=function(){var p=this.current,J=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 S=!0;break a;default:S=!1}J&&S?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:J,node:p}};
var sL=function(p,J){this._type=p;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=J;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};
sL.prototype.appendChild=function(p){p.unlink();p._parent=this;this._lastChild?(this._lastChild._next=p,p._prev=this._lastChild):this._firstChild=p;this._lastChild=p};
sL.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var Vs8=function(p,J){J.unlink();J._next=p._next;J._next&&(J._next._prev=J);J._prev=p;p._next=J;J._parent=p._parent;J._next||(J._parent._lastChild=J)};
sL.prototype.insertBefore=function(p){p.unlink();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)};
_.vh.Object.defineProperties(sL.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 ork=/[ \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,
e6W={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 qX8=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]/),
aP8=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),E8o=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),YXM=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),rX8=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),jt4=/`+/,wYE=/^`+/,xBn=/\.\.\./g,cX8=/--+/g,IPU=/^<([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])?)*)>/,
LKL=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,puv=/^ *(?:\n *)?/,J74=/^[ \t\n\x0b\x0c\x0d]/,S0p=/[ \t\n\x0b\x0c\x0d]+/g,HTE=/^\s/,MN4=/ *$/,Xuv=/^ */,iT8=/^ *(?:\n|$)/,R1E=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),K2L=/^[^\n`\[\]\\!<&*_'"]+/m,tQ=function(p){var J=new sL("text");J._literal=p;return J},hQ=function(p){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=p||{}};
hQ.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]};
hQ.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var D$=function(p){p.match(puv);return!0},ZTL=function(p,J,S){var H=0;
var M=p.pos;if(J===39||J===34)H++,p.pos++;else for(;p.peek()===J;)H++,p.pos++;if(H===0)H=null;else{var X=M===0?"\n":p.subject.charAt(M-1);var Z=p.peek();Z=Z===-1?"\n":gL(Z);var n=HTE.test(Z);Z=qX8.test(Z);var b=HTE.test(X);var F=qX8.test(X);X=!n&&!(Z&&!b&&!F);n=!b&&!(F&&!n&&!Z);J===95?(b=X&&(!n||F),Z=n&&(!X||Z)):(b=J===39||J===34?X&&!n:X,Z=n);p.pos=M;H={numdelims:H,can_open:b,can_close:Z}}if(!H)return!1;M=H.numdelims;Z=p.pos;p.pos+=M;Z=J===39?"\u2019":J===34?"\u201c":p.subject.slice(Z,p.pos);Z=tQ(Z);
S.appendChild(Z);p.delimiters={cc:J,numdelims:M,origdelims:M,node:Z,previous:p.delimiters,next:null,can_open:H.can_open,can_close:H.can_close};p.delimiters.previous!==null&&(p.delimiters.previous.next=p.delimiters);return!0},nIL=function(p,J){J.previous!==null&&(J.previous.next=J.next);
J.next===null?p.delimiters=J.previous:J.next.previous=J.previous},GJ4=function(p,J){var S,H,M=[],X=!1;
M[95]=J;M[42]=J;M[39]=J;M[34]=J;for(S=p.delimiters;S!==null&&S.previous!==J;)S=S.previous;for(;S!==null;){var Z=S.cc;if(S.can_close){var n=S.previous;for(H=!1;n!==null&&n!==J&&n!==M[Z];){X=(S.can_open||n.can_close)&&(n.origdelims+S.origdelims)%3===0;if(n.cc===S.cc&&n.can_open&&!X){H=!0;break}n=n.previous}var b=S;if(Z===42||Z===95)if(H){var F=S.numdelims>=2&&n.numdelims>=2?2:1;var f=n.node;var O=S.node;n.numdelims-=F;S.numdelims-=F;f._literal=f._literal.slice(0,f._literal.length-F);O._literal=O._literal.slice(0,
O._literal.length-F);var A=new sL(F===1?"emph":"strong");for(F=f._next;F&&F!==O;){var P=F._next;F.unlink();A.appendChild(F);F=P}Vs8(f,A);F=n;P=S;F.next!==P&&(F.next=P,P.previous=F);n.numdelims===0&&(f.unlink(),nIL(p,n));S.numdelims===0&&(O.unlink(),n=S.next,nIL(p,S),S=n)}else S=S.next;else Z===39?(S.node._literal="\u2019",H&&(n.node._literal="\u2018"),S=S.next):Z===34&&(S.node._literal="\u201d",H&&(n.node.literal="\u201c"),S=S.next);H||X||(M[Z]=b.previous,b.can_open||nIL(p,b))}else S=S.next}for(;p.delimiters!==
null&&p.delimiters!==J;)nIL(p,p.delimiters)},bTp=function(p){p=p.match(aP8);
return p===null?null:ks4(p.substr(1,p.length-2))},mkn=function(p){var J=p.match(E8o);
if(J===null){J=p.pos;for(var S=0,H;(H=p.peek())!==-1;)if(H===92)p.pos+=1,p.peek()!==-1&&(p.pos+=1);else if(H===40)p.pos+=1,S+=1;else if(H===41)if(S<1)break;else p.pos+=1,--S;else if(J74.exec(gL(H))!==null)break;else p.pos+=1;J=p.subject.substr(J,p.pos-J);return N_n(ks4(J))}return N_n(ks4(J.substr(1,J.length-2)))},F2E=function(p){p=p.match(R1E);
return p===null||p.length>1001?0:p.length},vIo=function(p,J,S,H){p.brackets!==null&&(p.brackets.bracketAfter=!0);
p.brackets={node:J,previous:p.brackets,previousDelimiter:p.delimiters,index:S,image:H,active:!0}},fF4=function(p,J){var S;
return(S=p.match(K2L))?(p.options.smart?J.appendChild(tQ(S.replace(xBn,"\u2026").replace(cX8,function(H){var M=0,X=0;H.length%3===0?X=H.length/3:H.length%2===0?M=H.length/2:H.length%3===2?(M=1,X=(H.length-2)/3):(M=2,X=(H.length-4)/3);H="";var Z;for(Z=0;Z<X;Z++)H+="\u2014";for(Z=0;Z<M;Z++)H+="\u2013";return H}))):J.appendChild(tQ(S)),!0):!1},OTo=function(p,J,S){p.subject=J;
p.pos=0;J=p.pos;var H=F2E(p);if(H===0)return 0;var M=p.subject.substr(0,H);if(p.peek()===58)p.pos++;else return p.pos=J,0;D$(p);H=mkn(p);if(H===null||H.length===0)return p.pos=J,0;var X=p.pos;D$(p);var Z=bTp(p);Z===null&&(Z="",p.pos=X);var n=!0;p.match(iT8)===null&&(Z===""?n=!1:(Z="",p.pos=X,n=p.match(iT8)!==null));if(!n)return p.pos=J,0;M=WkL(M);if(M==="")return p.pos=J,0;S[M]||(S[M]={destination:H,title:Z});return p.pos-J},A78=function(p,J){var S,H=p.peek();
if(H===-1)return!1;switch(H){case 10:p.pos+=1;if((S=J._lastChild)&&S.type==="text"&&S._literal[S._literal.length-1]===" "){var M=S._literal[S._literal.length-2]===" ";S._literal=S._literal.replace(MN4,"");J.appendChild(new sL(M?"linebreak":"softbreak"))}else J.appendChild(new sL("softbreak"));p.match(Xuv);S=!0;break;case 92:S=p.subject;p.pos+=1;p.peek()===10?(p.pos+=1,S=new sL("linebreak"),J.appendChild(S)):YXM.test(S.charAt(p.pos))?(J.appendChild(tQ(S.charAt(p.pos))),p.pos+=1):J.appendChild(tQ("\\"));
S=!0;break;case 96:a:if(S=p.match(wYE),S===null)S=!1;else{M=p.pos;for(var X;(X=p.match(jt4))!==null;)if(X===S){X=new sL("code");X._literal=p.subject.slice(M,p.pos-S.length).trim().replace(S0p," ");J.appendChild(X);S=!0;break a}p.pos=M;J.appendChild(tQ(S));S=!0}break;case 42:case 95:S=ZTL(p,H,J);break;case 39:case 34:S=p.options.smart&&ZTL(p,H,J);break;case 91:S=p.pos;p.pos+=1;M=tQ("[");J.appendChild(M);vIo(p,M,S,!1);S=!0;break;case 33:S=p.pos;p.pos+=1;p.peek()===91?(p.pos+=1,M=tQ("!["),J.appendChild(M),
vIo(p,M,S+1,!0)):J.appendChild(tQ("!"));S=!0;break;case 93:var Z,n=!1,b;p.pos+=1;var F=p.pos;M=p.brackets;if(M===null)J.appendChild(tQ("]"));else if(M.active){S=M.image;var f=p.pos;p.peek()===40&&(p.pos++,D$(p)&&(X=mkn(p))!==null&&D$(p)&&(J74.test(p.subject.charAt(p.pos-1))&&(Z=bTp(p)),1)&&D$(p)&&p.peek()===41?(p.pos+=1,n=!0):p.pos=f);if(!n){var O=p.pos,A=F2E(p);A>2?b=p.subject.slice(O,O+A):M.bracketAfter||(b=p.subject.slice(M.index,F));A===0&&(p.pos=f);b&&(b=p.refmap[WkL(b)])&&(X=b.destination,Z=
b.title,n=!0)}if(n){F=new sL(S?"image":"link");F._destination=X;F._title=Z||"";for(X=M.node._next;X;)Z=X._next,X.unlink(),F.appendChild(X),X=Z;J.appendChild(F);GJ4(p,M.previousDelimiter);p.brackets=p.brackets.previous;M.node.unlink();if(!S)for(M=p.brackets;M!==null;)M.image||(M.active=!1),M=M.previous}else p.brackets=p.brackets.previous,p.pos=F,J.appendChild(tQ("]"))}else J.appendChild(tQ("]")),p.brackets=p.brackets.previous;S=!0;break;case 60:(S=p.match(IPU))?(S=S.slice(1,S.length-1),M=new sL("link"),
M._destination=N_n("mailto:"+S),M._title="",M.appendChild(tQ(S)),J.appendChild(M),S=!0):(S=p.match(LKL))?(S=S.slice(1,S.length-1),M=new sL("link"),M._destination=N_n(S),M._title="",M.appendChild(tQ(S)),J.appendChild(M),S=!0):S=!1;S||(S=p.match(UBo),S===null?S=!1:(M=new sL("html_inline"),M._literal=S,J.appendChild(M),S=!0));break;case 38:(S=p.match(rX8))?(J.appendChild(tQ(yXM(S))),S=!0):S=!1;break;default:S=fF4(p,J)}S||(p.pos+=1,J.appendChild(tQ(gL(H))));return!0};
hQ.prototype.parseInlines=function(p){this.subject=p._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;A78(this,p););p._string_content=null;GJ4(this,null)};
hQ.prototype.parse=hQ.prototype.parseInlines;var PbL=[/./,/^<(?: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")],z1d=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],$ko=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,oI8=/^[#`~*+_=<>0-9-\|]|\|/,e18=/[^ \t\f\v\r\n]/,W2p=/^[*+-]/,Q$U=/^(\d{1,9})([.)])/,Cbd=/^#{1,6}(?:[ \t]+|$)/,y78=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Bsd=/^(?:`{3,}|~{3,})(?= *$)/,Ukm=/^(?:=+|-+)[ \t]*$/,s$U=/\r\n|\n|\r/,C_3=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,ydW=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,gIU={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(p){return p!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(p,J){for(p=J._firstChild;p;){if(Q1i(p)&&p._next){J._listData.tight=!1;break}for(var S=p._firstChild;S;){if(Q1i(S)&&(p._next||S._next)){J._listData.tight=!1;break}S=S._next}p=p._next}},
canContain:function(p){return p==="item"},
acceptsLines:!1},block_quote:{continue:function(p){var J=p.currentLine;if(p.indented||Bh(J,p.nextNonspace)!==62)return 1;k9(p);N3(p,1,!1);yB(Bh(J,p.offset))&&N3(p,1,!0);return 0},
finalize:function(){},
canContain:function(p){return p!=="item"},
acceptsLines:!1},item:{continue:function(p,J){if(p.blank){if(J._firstChild==null)return 1;k9(p)}else if(p.indent>=J._listData.markerOffset+J._listData.padding)N3(p,J._listData.markerOffset+J._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(p){return p!=="item"&&!B7W(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,J){var S=p.currentLine,H=p.indent;if(J._isFenced){if((H=H<=3&&S.charAt(p.nextNonspace)===J._fenceChar&&S.slice(p.nextNonspace).match(Bsd))&&H[0].length>=J._fenceLength)return p.finalize(J,p.lineNumber),2;for(J=J._fenceOffset;J>0&&yB(Bh(S,p.offset));)N3(p,1,!0),J--}else if(H>=4)N3(p,4,!0);else if(p.blank)k9(p);else return 1;return 0},
finalize:function(p,J){if(J._isFenced){var S=J._string_content,H=S.indexOf("\n");p=S.slice(0,H);S=S.slice(H+1);J.info=ks4(p.trim());J._literal=S}else J._literal=J._string_content.replace(/(\n *)+$/,"\n");J._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(p,J){return!p.blank||J._htmlBlockType!==6&&J._htmlBlockType!==7?0:1},
finalize:function(p,J){J._literal=J._string_content.replace(/(\n *)+$/,"");J._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(p){return p.blank?1:0},
finalize:function(p,J){for(var S,H=!1;Bh(J._string_content,0)===91&&(S=OTo(p.inlineParser,J._string_content,p.refmap));)J._string_content=J._string_content.slice(S),H=!0;H&&!e18.test(J._string_content)&&J.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(p){return UL(p.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(p){return p=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(p,J){if(!J._rowIsDelimiter){p=J._isHeader?"th":"td";for(var S=J._parent._tableColumns,H=J._string_content,M=0,X="",Z,n=J._sourcepos[0][0];M<H.length;){switch(H[M]){case "|":Z&&(Z._string_content=X.trim(),X="",Z=null,S--,S<=0&&(M=H.length));break;default:if(!Z){Z=new sL(p,[[n,M],[n,M]]);var b=J._parent._columnAlignment,F=J._parent._tableColumns-S;b&&F<=b.length&&F>=0&&(Z._alignment=b[F]);J.appendChild(Z)}X+=H[M];Z._sourcepos[1][1]=M}M++}Z&&(Z._string_content=X.trim());J._string_content=
""}},
canContain:function(p){return p!=="row"},
acceptsLines:!1}},tNv=[function(p){if(p.indented||Bh(p.currentLine,p.nextNonspace)!==62)return 0;k9(p);N3(p,1,!1);yB(Bh(p.currentLine,p.offset))&&N3(p,1,!0);TQ(p);p.addChild("block_quote",p.nextNonspace);return 1},
function(p){var J;if(!p.indented&&(J=p.currentLine.slice(p.nextNonspace).match(Cbd))){k9(p);N3(p,J[0].length,!1);TQ(p);var S=p.addChild("heading",p.nextNonspace);S.level=J[0].trim().length;S._string_content=p.currentLine.slice(p.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");N3(p,p.currentLine.length-p.offset);return 2}return 0},
function(p){var J;if(!p.indented&&(J=p.currentLine.slice(p.nextNonspace).match(y78))){var S=J[0].length;TQ(p);var H=p.addChild("code_block",p.nextNonspace);H._isFenced=!0;H._fenceLength=S;H._fenceChar=J[0][0];H._fenceOffset=p.indent;k9(p);N3(p,S,!1);return 2}return 0},
function(p,J){if(!p.indented&&Bh(p.currentLine,p.nextNonspace)===60){var S=p.currentLine.slice(p.nextNonspace),H;for(H=1;H<=7;H++)if(PbL[H].test(S)&&(H<7||J.type!=="paragraph"))return TQ(p),p.addChild("html_block",p.offset)._htmlBlockType=H,2}return 0},
function(p,J){var S;if(!p.indented&&J.type==="paragraph"&&(S=p.currentLine.slice(p.nextNonspace).match(Ukm))){TQ(p);var H=new sL("heading",J.sourcepos);H.level=S[0][0]==="="?1:2;H._string_content=J._string_content;Vs8(J,H);J.unlink();p.tip=H;N3(p,p.currentLine.length-p.offset,!1);return 2}return 0},
function(p){return!p.indented&&$ko.test(p.currentLine.slice(p.nextNonspace))?(TQ(p),p.addChild("thematic_break",p.nextNonspace),N3(p,p.currentLine.length-p.offset,!1),2):0},
function(p,J){var S,H;if(!(H=p.indented&&J.type!=="list")){a:{var M=J,X=p.currentLine.slice(p.nextNonspace);H={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:p.indent};if(S=X.match(W2p))H.type="bullet",H.bulletChar=S[0][0];else{if(!(S=X.match(Q$U))||M.type==="paragraph"&&S[1]!=="1"){S=null;break a}H.type="ordered";H.start=parseInt(S[1],10);H.delimiter=S[2]}var Z=Bh(p.currentLine,p.nextNonspace+S[0].length);if(Z!==-1&&Z!==9&&Z!==32||M.type==="paragraph"&&!p.currentLine.slice(p.nextNonspace+
S[0].length).match(e18))S=null;else{k9(p);N3(p,S[0].length,!0);M=p.column;X=p.offset;do N3(p,1,!0),Z=Bh(p.currentLine,p.offset);while(p.column-M<5&&yB(Z));Z=Bh(p.currentLine,p.offset)===-1;var n=p.column-M;n>=5||n<1||Z?(H.padding=S[0].length+1,p.column=M,p.offset=X,yB(Bh(p.currentLine,p.offset))&&N3(p,1,!0)):H.padding=S[0].length+n;S=H}}H=!S}if(H)return 0;TQ(p);(H=p.tip.type!=="list")||(J=J._listData,H=!(J.type===S.type&&J.delimiter===S.delimiter&&J.bulletChar===S.bulletChar));H&&(J=p.addChild("list",
p.nextNonspace),J._listData=S);J=p.addChild("item",p.nextNonspace);J._listData=S;return 1},
function(p){var J;return((J=p.options.shouldParseIndentAsCodeBlock)!=null?J:1)&&p.indented&&p.tip.type!=="paragraph"&&!p.blank?(N3(p,4,!0),TQ(p),p.addChild("code_block",p.offset),2):0},
function(p,J){var S=UL(p.currentLine),H=UL(p.lookahead);if(S!==0&&H<0&&Math.abs(S)==Math.abs(H)&&!B7W(J.type)){TQ(p);J=p.addChild("table",p.nextNonspace);J._tableRows=1;J._tableColumns=Math.abs(S);S=p.lookahead;if(ydW.test(S)){H=[];for(var M=0,X=!1,Z=0,n=void 0;M<S.length;){var b=Z>=3;switch(S[M]){case "-":Z++;break;case "|":X&&(H.push(n),n=void 0,Z=0);X=!0;break;case ":":n||b||(n="left"),!n&&b&&(n="right"),n==="left"&&b&&(n="center")}M++}S=H}else S=void 0;J._columnAlignment=S;J=p.addChild("row",
p.nextNonspace);J._isHeader=!0;N3(p,p.currentLine.length-p.offset,!1);J._string_content=p.currentLine;return 1}return 0},
function(p,J){if(J.type=="table"&&UL(p.currentLine)!==0){TQ(p);var S=J;J=p.addChild("row",p.nextNonspace);UL(p.currentLine)<0?J._rowIsDelimiter=!0:S._tableRows+=1;N3(p,p.currentLine.length-p.offset,!1);J._string_content=p.currentLine;return 2}return 0}],oRL=function(){var p={shouldParseIndentAsCodeBlock:!1};
p=p===void 0?{}:p;this.lastMatchedContainer=this.doc=URg();this.refmap={};this.lastLineLength=0;this.inlineParser=new hQ(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=gIU;this.blockStarts=tNv},h18=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"};
oRL.prototype.addChild=function(p,J){for(;!this.blocks[this.tip.type].canContain(p);)this.finalize(this.tip,this.lineNumber-1);p=new sL(p,[[this.lineNumber,J+1],[0,0]]);p._string_content="";this.tip.appendChild(p);return this.tip=p};
var TQ=function(p){if(!p.allClosed){for(;p.oldtip!==p.lastMatchedContainer;){var J=p.oldtip._parent;p.finalize(p.oldtip,p.lineNumber-1);p.oldtip=J}p.allClosed=!0}},N3=function(p,J,S){for(var H=p.currentLine,M,X;J>0&&(X=H[p.offset]);)X==="\t"?(M=4-p.column%4,S?(p.partiallyConsumedTab=M>J,M=M>J?J:M,p.column+=M,p.offset+=p.partiallyConsumedTab?0:1,J-=M):(p.partiallyConsumedTab=!1,p.column+=M,p.offset+=1,--J)):(p.partiallyConsumedTab=!1,p.offset+=1,p.column+=1,--J)},k9=function(p){p.offset=p.nextNonspace;
p.column=p.nextNonspaceColumn;p.partiallyConsumedTab=!1},DkE=function(p){for(var J=p.currentLine,S=p.offset,H=p.column,M;(M=J.charAt(S))!=="";)if(M===" ")S++,H++;
else if(M==="\t")S++,H+=4-H%4;else break;p.blank=M==="\n"||M==="\r"||M==="";p.nextNonspace=S;p.nextNonspaceColumn=H;p.indent=p.nextNonspaceColumn-p.column;p.indented=p.indent>=4};
oRL.prototype.finalize=function(p,J){var S=p._parent;p._open=!1;p.sourcepos[1]=[J,this.lastLineLength];this.blocks[p.type].finalize(this,p);this.tip=S};
oRL.prototype.parse=function(p){this.tip=this.doc=URg();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 J=p.split(s$U),S=J.length;p.charCodeAt(p.length-1)===10&&--S;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(p=0;p<S;p++)a:{var H=void 0,M=J[p],X=J[p+1],Z=!0,n=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;M.indexOf("\x00")!==-1&&(M=M.replace(/\0/g,"\ufffd"));this.currentLine=M;for(this.lookahead=X;(H=n._lastChild)&&H._open;){n=H;DkE(this);switch(this.blocks[n.type].continue(this,n)){case 0:break;case 1:Z=!1;break;case 2:this.lastLineLength=M.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!Z){n=n._parent;break}}this.allClosed=n===this.oldtip;this.lastMatchedContainer=
n;H=n.type!=="paragraph"&&gIU[n.type].acceptsLines;X=this.blockStarts;for(Z=X.length;!H;){DkE(this);if(!this.indented&&!oI8.test(M.slice(this.nextNonspace))){k9(this);break}for(var b=0;b<Z;){var F=X[b](this,n);if(F===1){n=this.tip;break}else if(F===2){n=this.tip;H=!0;break}else b++}if(b===Z){k9(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){TQ(this);this.blank&&n.lastChild&&(n.lastChild._lastLineBlank=!0);H=n.type;X=this.blank&&!(H==="block_quote"||H==="code_block"&&n._isFenced||
H==="item"&&!n._firstChild&&n.sourcepos[0][0]===this.lineNumber);for(Z=n;Z;)Z._lastLineBlank=X,Z=Z._parent;this.blocks[H].acceptsLines?(h18(this),H==="html_block"&&n._htmlBlockType>=1&&n._htmlBlockType<=5&&z1d[n._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(n,this.lineNumber)):this.offset<M.length&&!this.blank&&(this.addChild("paragraph",this.offset),k9(this),h18(this))}else h18(this);this.lastLineLength=M.length}for(;this.tip;)this.finalize(this.tip,S);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");M=new lP8(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;S=M.next();)J=S.node,p=J.type,S.entering||p!=="paragraph"&&p!=="heading"&&p!=="th"&&p!="td"||this.inlineParser.parse(J);this.options.time&&console.timeEnd("inline parsing");return this.doc};s1k.prototype.render=function(p){p=new lP8(p);var J;this.buffer="";for(this.lastOut="\n";J=p.next();){var S=J.node.type;if(this[S])this[S](J.node,J.entering)}return this.buffer};
s1k.prototype.out=function(p){dL(this,p)};
var dL=function(p,J){p.buffer+=J;p.lastOut=J};
s1k.prototype.cr=function(){this.lastOut!=="\n"&&dL(this,"\n")};var kJ4=/^javascript:|vbscript:|file:|data:/i,Nso=/^data:image\/(?:png|gif|jpeg|webp)/i,Tsd=function(p){return kJ4.test(p)&&!Nso.test(p)};
g0.prototype=Object.create(s1k.prototype);_.R=g0.prototype;_.R.text=function(p){this.out(p.literal)};
_.R.html_inline=function(p){this.options.safe?dL(this,"\x3c!-- raw HTML omitted --\x3e"):dL(this,p.literal)};
_.R.html_block=function(p){this.cr();this.options.safe?dL(this,"\x3c!-- raw HTML omitted --\x3e"):dL(this,p.literal);this.cr()};
_.R.softbreak=function(){dL(this,this.options.softbreak)};
_.R.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.R.link=function(p,J){var S=this.attrs(p);J?(this.options.safe&&Tsd(p.destination)||S.push(["href",By(p.destination,!0)]),p.title&&S.push(["title",By(p.title,!0)]),this.tag("a",S)):this.tag("/a")};
_.R.image=function(p,J){J?(this.disableTags===0&&(this.options.safe&&Tsd(p.destination)?dL(this,'<img src="" alt="'):dL(this,'<img src="'+By(p.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(p.title&&dL(this,'" title="'+By(p.title,!0)),dL(this,'" />')))};
_.R.emph=function(p,J){this.tag(J?"em":"/em")};
_.R.strong=function(p,J){this.tag(J?"strong":"/strong")};
_.R.paragraph=function(p,J){var S=p.parent.parent;p=this.attrs(p);S!==null&&S.type==="list"&&S.listTight||(J?(this.cr(),this.tag("p",p)):(this.tag("/p"),this.cr()))};
_.R.heading=function(p,J){var S="h"+p.level;p=this.attrs(p);J?(this.cr(),this.tag(S,p)):(this.tag("/"+S),this.cr())};
_.R.code=function(p){this.tag("code");this.out(p.literal);this.tag("/code")};
_.R.code_block=function(p){var J=p.info?p.info.split(/\s+/):[],S=this.attrs(p);J.length>0&&J[0].length>0&&S.push(["class","language-"+By(J[0],!0)]);this.cr();this.tag("pre");this.tag("code",S);this.out(p.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.R.thematic_break=function(p){p=this.attrs(p);this.cr();this.tag("hr",p,!0);this.cr()};
_.R.block_quote=function(p,J){p=this.attrs(p);J?(this.cr(),this.tag("blockquote",p)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.R.list=function(p,J){var S=p.listType==="bullet"?"ul":"ol",H=this.attrs(p);J?(p=p.listStart,p!==null&&p!==1&&H.push(["start",p.toString()]),this.cr(),this.tag(S,H)):(this.cr(),this.tag("/"+S));this.cr()};
_.R.item=function(p,J){p=this.attrs(p);J?this.tag("li",p):(this.tag("/li"),this.cr())};
_.R.custom_inline=function(p,J){J&&p.onEnter?dL(this,p.onEnter):!J&&p.onExit&&dL(this,p.onExit)};
_.R.custom_block=function(p,J){this.cr();J&&p.onEnter?dL(this,p.onEnter):!J&&p.onExit&&dL(this,p.onExit);this.cr()};
_.R.table=function(p,J){p=this.attrs(p);J?(this.cr(),this.tag("table",p)):(this.tag("/table"),this.cr())};
_.R.row=function(p,J){p._rowIsDelimiter||(p=this.attrs(p),J?this.tag("tr",p):this.tag("/tr"))};
_.R.td=function(p,J){var S=this.attrs(p);p._alignment&&S.push(["align",p._alignment]);J?this.tag("td",S):this.tag("/td")};
_.R.th=function(p,J){var S=this.attrs(p);p._alignment&&S.push(["align",p._alignment]);J?this.tag("th",S):this.tag("/th")};
_.R.out=function(p){dL(this,By(p,!1))};
_.R.tag=function(p,J,S){if(!(this.disableTags>0)){this.buffer+="<"+p;if(J&&J.length>0){p=0;for(var H;(H=J[p])!==void 0;)this.buffer+=" "+H[0]+'="'+H[1]+'"',p++}S&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.R.attrs=function(p){var J=[];this.options.sourcepos&&(p=p.sourcepos)&&J.push(["data-sourcepos",String(p[0][0])+":"+String(p[0][1])+"-"+String(p[1][0])+":"+String(p[1][1])]);return J};
g0.prototype.text=g0.prototype.text;g0.prototype.html_inline=g0.prototype.html_inline;g0.prototype.html_block=g0.prototype.html_block;g0.prototype.softbreak=g0.prototype.softbreak;g0.prototype.linebreak=g0.prototype.linebreak;g0.prototype.link=g0.prototype.link;g0.prototype.image=g0.prototype.image;g0.prototype.emph=g0.prototype.emph;g0.prototype.strong=g0.prototype.strong;g0.prototype.paragraph=g0.prototype.paragraph;g0.prototype.heading=g0.prototype.heading;g0.prototype.code=g0.prototype.code;
g0.prototype.code_block=g0.prototype.code_block;g0.prototype.thematic_break=g0.prototype.thematic_break;g0.prototype.block_quote=g0.prototype.block_quote;g0.prototype.list=g0.prototype.list;g0.prototype.item=g0.prototype.item;g0.prototype.custom_inline=g0.prototype.custom_inline;g0.prototype.custom_block=g0.prototype.custom_block;g0.prototype.table=g0.prototype.table;g0.prototype.row=g0.prototype.row;g0.prototype.td=g0.prototype.td;g0.prototype.th=g0.prototype.th;g0.prototype.out=g0.prototype.out;
g0.prototype.tag=g0.prototype.tag;g0.prototype.attrs=g0.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 dkd,uiv,n6X;(function(){function p(h,g){return h<g?-1:h>g?1:h>=g?0:NaN}
function J(h){return function(g,u){return p(h(g),u)}}
function S(){for(var h=0,g=arguments.length,u={},St;h<g;++h){if(!(St=arguments[h]+"")||St in u)throw Error("we`"+St);u[St]=[]}return new H(u)}
function H(h){this._=h}
function M(h,g){return h.trim().split(/^|\s+/).map(function(u){var St="",GW=u.indexOf(".");GW>=0&&(St=u.slice(GW+1),u=u.slice(0,GW));if(u&&!g.hasOwnProperty(u))throw Error("xe`"+u);return{type:u,name:St}})}
function X(h,g,u){for(var St=0,GW=h.length;St<GW;++St)if(h[St].name===g){h[St]=Nvl;h=h.slice(0,St).concat(h.slice(St+1));break}u!=null&&h.push({name:g,value:u});return h}
function Z(h){var g=h,u=g.indexOf(":");u>=0&&(g=h.slice(0,u))!=="xmlns"&&(h=h.slice(u+1));return pT.hasOwnProperty(g)?{space:pT[g],local:h}:h}
function n(h){return function(){var g=this.ownerDocument,u=this.namespaceURI;return u==="http://www.w3.org/1999/xhtml"&&g.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?g.createElement(h):g.createElementNS(u,h)}}
function b(h){return function(){return this.ownerDocument.createElementNS(h.space,h.local)}}
function F(h){h=Z(h);return(h.local?b:n)(h)}
function f(){}
function O(h){return h==null?f:function(){return this.querySelector(h)}}
function A(h){return Array(h.length)}
function P(h,g){this.ownerDocument=h.ownerDocument;this.namespaceURI=h.namespaceURI;this._next=null;this._parent=h;this.__data__=g}
function W(h){return function(){return h}}
function y(h,g,u,St,GW,Oi){for(var QX=0,h9,R8=g.length,SL=Oi.length;QX<SL;++QX)(h9=g[QX])?(h9.__data__=Oi[QX],St[QX]=h9):u[QX]=new P(h,Oi[QX]);for(;QX<R8;++QX)if(h9=g[QX])GW[QX]=h9}
function t(h,g,u,St,GW,Oi,QX){var h9,R8,SL={},Zq=g.length,Op=Oi.length,wm=Array(Zq),tr;for(h9=0;h9<Zq;++h9)if(R8=g[h9])wm[h9]=tr="$"+QX.call(R8,R8.__data__,h9,g),tr in SL?GW[h9]=R8:SL[tr]=R8;for(h9=0;h9<Op;++h9)tr="$"+QX.call(h,Oi[h9],h9,Oi),(R8=SL[tr])?(St[h9]=R8,R8.__data__=Oi[h9],SL[tr]=null):u[h9]=new P(h,Oi[h9]);for(h9=0;h9<Zq;++h9)(R8=g[h9])&&SL[wm[h9]]===R8&&(GW[h9]=R8)}
function D(h,g){return h<g?-1:h>g?1:h>=g?0:NaN}
function k(h){return function(){this.removeAttribute(h)}}
function E(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function a(h,g){return function(){this.setAttribute(h,g)}}
function q(h,g){return function(){this.setAttributeNS(h.space,h.local,g)}}
function w(h,g){return function(){var u=g.apply(this,arguments);u==null?this.removeAttribute(h):this.setAttribute(h,u)}}
function I(h,g){return function(){var u=g.apply(this,arguments);u==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,u)}}
function Z3(h){return function(){this.style.removeProperty(h)}}
function vg(h,g,u){return function(){this.style.setProperty(h,g,u)}}
function yX(h,g,u){return function(){var St=g.apply(this,arguments);St==null?this.style.removeProperty(h):this.style.setProperty(h,St,u)}}
function Pg(h,g){return h.style.getPropertyValue(g)||(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView).getComputedStyle(h,null).getPropertyValue(g)}
function ov(h){return function(){delete this[h]}}
function NW(h,g){return function(){this[h]=g}}
function TW(h,g){return function(){var u=g.apply(this,arguments);u==null?delete this[h]:this[h]=u}}
function Ys(){this.textContent=""}
function Go(h){return function(){this.textContent=h}}
function $U(h){return function(){var g=h.apply(this,arguments);this.textContent=g==null?"":g}}
function LL(){this.innerHTML=""}
function fd(h){return function(){this.innerHTML=h}}
function Qv(h){return function(){var g=h.apply(this,arguments);this.innerHTML=g==null?"":g}}
function t8(){return null}
function Wp(){var h=this.parentNode;h&&h.removeChild(this)}
function ON(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function KL(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function HE(h,g,u){h=o8(h,g,u);return function(St){var GW=St.relatedTarget;GW&&(GW===this||GW.compareDocumentPosition(this)&8)||h.call(this,St)}}
function o8(h,g,u){return function(){h.call(this,this.__data__,g,u)}}
function xU(h){return h.trim().split(/^|\s+/).map(function(g){var u="",St=g.indexOf(".");St>=0&&(u=g.slice(St+1),g=g.slice(0,St));return{type:g,name:u}})}
function eL(h){return function(){var g=this.__on;if(g){for(var u=0,St=-1,GW=g.length,Oi;u<GW;++u)(Oi=g[u],h.type&&Oi.type!==h.type||Oi.name!==h.name)?g[++St]=Oi:this.removeEventListener(Oi.type,Oi.listener,Oi.capture);++St?g.length=St:delete this.__on}}}
function Ld(h,g,u){var St=wH8.hasOwnProperty(h.type)?HE:o8;return function(GW,Oi,QX){GW=this.__on;var h9;Oi=St(g,Oi,QX);if(GW){QX=0;for(var R8=GW.length;QX<R8;++QX)if((h9=GW[QX]).type===h.type&&h9.name===h.name){this.removeEventListener(h9.type,h9.listener,h9.capture);this.addEventListener(h9.type,h9.listener=Oi,h9.capture=u);h9.value=g;return}}this.addEventListener(h.type,Oi,u);h9={type:h.type,name:h.name,value:g,listener:Oi,capture:u};GW?GW.push(h9):this.__on=[h9]}}
function QV(h,g,u){var St=h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView,GW=St.CustomEvent;typeof GW==="function"?GW=new GW(g,u):(GW=St.document.createEvent("Event"),u?(GW.initEvent(g,u.bubbles,u.cancelable),GW.detail=u.detail):GW.initEvent(g,!1,!1));h.dispatchEvent(GW)}
function YU(h,g){return function(){return QV(this,h,g)}}
function Fn(h,g){return function(){return QV(this,h,g.apply(this,arguments))}}
function vE(h,g){this._groups=h;this._parents=g}
function XP(){return new vE([[document.documentElement]],Tv$)}
function wk(){this._="@"+(++d_U).toString(36)}
function SI(h,g,u){h.prototype=g.prototype=u;u.constructor=h}
function vG(h,g){h=Object.create(h.prototype);for(var u in g)h[u]=g[u];return h}
function Sa(){}
function Ar(h){var g;h=(h+"").trim().toLowerCase();return(g=uEN.exec(h))?(g=parseInt(g[1],16),new CP(g>>8&15|g>>4&240,g>>4&15|g&240,(g&15)<<4|g&15,1)):(g=lhM.exec(h))?EN(parseInt(g[1],16)):(g=VdP.exec(h))?new CP(g[1],g[2],g[3],1):(g=q8w.exec(h))?new CP(g[1]*255/100,g[2]*255/100,g[3]*255/100,1):(g=ahy.exec(h))?nC(g[1],g[2],g[3],g[4]):(g=EBw.exec(h))?nC(g[1]*255/100,g[2]*255/100,g[3]*255/100,g[4]):(g=Y8y.exec(h))?r2(g[1],g[2]/100,g[3]/100,1):(g=rYM.exec(h))?r2(g[1],g[2]/100,g[3]/100,g[4]):xgE.hasOwnProperty(h)?
EN(xgE[h]):h==="transparent"?new CP(NaN,NaN,NaN,0):null}
function EN(h){return new CP(h>>16&255,h>>8&255,h&255,1)}
function nC(h,g,u,St){St<=0&&(h=g=u=NaN);return new CP(h,g,u,St)}
function Ps(h){h instanceof Sa||(h=Ar(h));if(!h)return new CP;h=h.rgb();return new CP(h.r,h.g,h.b,h.opacity)}
function Vv(h,g,u,St){return arguments.length===1?Ps(h):new CP(h,g,u,St==null?1:St)}
function CP(h,g,u,St){this.r=+h;this.g=+g;this.b=+u;this.opacity=+St}
function Mj(h){h=Math.max(0,Math.min(255,Math.round(h)||0));return(h<16?"0":"")+h.toString(16)}
function r2(h,g,u,St){St<=0?h=g=u=NaN:u<=0||u>=1?h=g=NaN:g<=0&&(h=NaN);return new vW(h,g,u,St)}
function hT(h){if(h instanceof vW)return new vW(h.h,h.s,h.l,h.opacity);h instanceof Sa||(h=Ar(h));if(!h)return new vW;if(h instanceof vW)return h;h=h.rgb();var g=h.r/255,u=h.g/255,St=h.b/255,GW=Math.min(g,u,St),Oi=Math.max(g,u,St),QX=NaN,h9=Oi-GW,R8=(Oi+GW)/2;h9?(QX=g===Oi?(u-St)/h9+(u<St)*6:u===Oi?(St-g)/h9+2:(g-u)/h9+4,h9/=R8<.5?Oi+GW:2-Oi-GW,QX*=60):h9=R8>0&&R8<1?0:QX;return new vW(QX,h9,R8,h.opacity)}
function EV(h,g,u,St){return arguments.length===1?hT(h):new vW(h,g,u,St==null?1:St)}
function vW(h,g,u,St){this.h=+h;this.s=+g;this.l=+u;this.opacity=+St}
function pA(h,g,u){return(h<60?g+(u-g)*h/60:h<180?u:h<240?g+(u-g)*(240-h)/60:g)*255}
function $_(h){if(h instanceof Bg)return new Bg(h.l,h.a,h.b,h.opacity);if(h instanceof Up){if(isNaN(h.h))return new Bg(h.l,0,0,h.opacity);var g=h.h*cMq;return new Bg(h.l,Math.cos(g)*h.c,Math.sin(g)*h.c,h.opacity)}h instanceof CP||(h=Ps(h));var u=ow(h.r),St=ow(h.g),GW=ow(h.b);g=lw(.2225045*u+.7168786*St+.0606169*GW);if(u===St&&St===GW)var Oi=u=g;else Oi=lw((.4360747*u+.3850649*St+.1430804*GW)/.96422),u=lw((.0139322*u+.0971045*St+.7141733*GW)/.82521);return new Bg(116*g-16,500*(Oi-g),200*(g-u),h.opacity)}
function Bg(h,g,u,St){this.l=+h;this.a=+g;this.b=+u;this.opacity=+St}
function lw(h){return h>jGp?Math.pow(h,1/3):h/IUp+LGq}
function rk(h){return h>Qt?h*h*h:IUp*(h-LGq)}
function PE(h){return 255*(h<=.0031308?12.92*h:1.055*Math.pow(h,1/2.4)-.055)}
function ow(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}
function kp(h){if(h instanceof Up)return new Up(h.h,h.c,h.l,h.opacity);h instanceof Bg||(h=$_(h));if(h.a===0&&h.b===0)return new Up(NaN,0,h.l,h.opacity);var g=Math.atan2(h.b,h.a)*pw8;return new Up(g<0?g+360:g,Math.sqrt(h.a*h.a+h.b*h.b),h.l,h.opacity)}
function sN(h,g,u,St){return arguments.length===1?kp(h):new Up(h,g,u,St==null?1:St)}
function Up(h,g,u,St){this.h=+h;this.c=+g;this.l=+u;this.opacity=+St}
function Cd(h,g,u,St){if(arguments.length===1){var GW=h;if(GW instanceof Ve)GW=new Ve(GW.h,GW.s,GW.l,GW.opacity);else{GW instanceof CP||(GW=Ps(GW));var Oi=GW.g/255,QX=GW.b/255,h9=(JYo*QX+GW.r/255*-1.7884503806-3.5172982438*Oi)/(JYo+-1.7884503806-3.5172982438);QX-=h9;var R8=(1.97294*(Oi-h9)- -.29227*QX)/-.90649;QX=(Oi=Math.sqrt(R8*R8+QX*QX)/(1.97294*h9*(1-h9)))?Math.atan2(R8,QX)*pw8-120:NaN;GW=new Ve(QX<0?QX+360:QX,Oi,h9,GW.opacity)}}else GW=new Ve(h,g,u,St==null?1:St);return GW}
function Ve(h,g,u,St){this.h=+h;this.s=+g;this.l=+u;this.opacity=+St}
function aD(h,g,u,St,GW){var Oi=h*h,QX=Oi*h;return((1-3*h+3*Oi-QX)*g+(4-6*Oi+3*QX)*u+(1+3*h+3*Oi-3*QX)*St+QX*GW)/6}
function zo(h){return function(){return h}}
function j6(h,g){return function(u){return h+u*g}}
function wr(h,g,u){return h=Math.pow(h,u),g=Math.pow(g,u)-h,u=1/u,function(St){return Math.pow(h+St*g,u)}}
function Eq(h,g){var u=g-h;return u?j6(h,u>180||u<-180?u-360*Math.round(u/360):u):zo(isNaN(h)?g:h)}
function xT(h){return(h=+h)===1?iZ:function(g,u){return u-g?wr(g,u,h):zo(isNaN(g)?u:g)}}
function iZ(h,g){var u=g-h;return u?j6(h,u):zo(isNaN(h)?g:h)}
function h3(h){return function(g){var u=g.length,St=Array(u),GW=Array(u),Oi=Array(u),QX;for(QX=0;QX<u;++QX){var h9=Vv(g[QX]);St[QX]=h9.r||0;GW[QX]=h9.g||0;Oi[QX]=h9.b||0}St=h(St);GW=h(GW);Oi=h(Oi);h9.opacity=1;return function(R8){h9.r=St(R8);h9.g=GW(R8);h9.b=Oi(R8);return h9+""}}}
function $v(h,g){return h=+h,g-=h,function(u){return h+g*u}}
function m5(h){return function(){return h}}
function FG(h){return function(g){return h(g)+""}}
function o6(h,g){var u=bai.lastIndex=mgX.lastIndex=0,St,GW,Oi,QX=-1,h9=[],R8=[];h+="";for(g+="";(St=bai.exec(h))&&(GW=mgX.exec(g));)(Oi=GW.index)>u&&(Oi=g.slice(u,Oi),h9[QX]?h9[QX]+=Oi:h9[++QX]=Oi),(St=St[0])===(GW=GW[0])?h9[QX]?h9[QX]+=GW:h9[++QX]=GW:(h9[++QX]=null,R8.push({i:QX,x:$v(St,GW)})),u=mgX.lastIndex;u<g.length&&(Oi=g.slice(u),h9[QX]?h9[QX]+=Oi:h9[++QX]=Oi);return h9.length<2?R8[0]?FG(R8[0].x):m5(g):(g=R8.length,function(SL){for(var Zq=0,Op;Zq<g;++Zq)h9[(Op=R8[Zq]).i]=Op.x(SL);return h9.join("")})}
function UT(h,g,u,St,GW,Oi){var QX,h9,R8;if(QX=Math.sqrt(h*h+g*g))h/=QX,g/=QX;if(R8=h*u+g*St)u-=h*R8,St-=g*R8;if(h9=Math.sqrt(u*u+St*St))u/=h9,St/=h9,R8/=h9;h*St<g*u&&(h=-h,g=-g,R8=-R8,QX=-QX);return{translateX:GW,translateY:Oi,rotate:Math.atan2(g,h)*S84,skewX:Math.atan(R8)*S84,scaleX:QX,scaleY:h9}}
function E3(h,g,u,St){function GW(SL){return SL.length?SL.pop()+" ":""}
function Oi(SL,Zq,Op,wm,tr,WG){SL!==Op||Zq!==wm?(tr=tr.push("translate(",null,g,null,u),WG.push({i:tr-4,x:$v(SL,Op)},{i:tr-2,x:$v(Zq,wm)})):(Op||wm)&&tr.push("translate("+Op+g+wm+u)}
function QX(SL,Zq,Op,wm){SL!==Zq?(SL-Zq>180?Zq+=360:Zq-SL>180&&(SL+=360),wm.push({i:Op.push(GW(Op)+"rotate(",null,St)-2,x:$v(SL,Zq)})):Zq&&Op.push(GW(Op)+"rotate("+Zq+St)}
function h9(SL,Zq,Op,wm){SL!==Zq?wm.push({i:Op.push(GW(Op)+"skewX(",null,St)-2,x:$v(SL,Zq)}):Zq&&Op.push(GW(Op)+"skewX("+Zq+St)}
function R8(SL,Zq,Op,wm,tr,WG){SL!==Op||Zq!==wm?(tr=tr.push(GW(tr)+"scale(",null,",",null,")"),WG.push({i:tr-4,x:$v(SL,Op)},{i:tr-2,x:$v(Zq,wm)})):Op===1&&wm===1||tr.push(GW(tr)+"scale("+Op+","+wm+")")}
return function(SL,Zq){var Op=[],wm=[];SL=h(SL);Zq=h(Zq);Oi(SL.translateX,SL.translateY,Zq.translateX,Zq.translateY,Op,wm);QX(SL.rotate,Zq.rotate,Op,wm);h9(SL.skewX,Zq.skewX,Op,wm);R8(SL.scaleX,SL.scaleY,Zq.scaleX,Zq.scaleY,Op,wm);SL=Zq=null;return function(tr){for(var WG=-1,YF=wm.length,sK;++WG<YF;)Op[(sK=wm[WG]).i]=sK.x(tr);return Op.join("")}}}
function CA(h){return function(g,u){var St=h((g=EV(g)).h,(u=EV(u)).h),GW=iZ(g.s,u.s),Oi=iZ(g.l,u.l),QX=iZ(g.opacity,u.opacity);return function(h9){g.h=St(h9);g.s=GW(h9);g.l=Oi(h9);g.opacity=QX(h9);return g+""}}}
function Wz(h){return function(g,u){var St=h((g=sN(g)).h,(u=sN(u)).h),GW=iZ(g.c,u.c),Oi=iZ(g.l,u.l),QX=iZ(g.opacity,u.opacity);return function(h9){g.h=St(h9);g.c=GW(h9);g.l=Oi(h9);g.opacity=QX(h9);return g+""}}}
function $A(h){return function St(u){function GW(Oi,QX){var h9=h((Oi=Cd(Oi)).h,(QX=Cd(QX)).h),R8=iZ(Oi.s,QX.s),SL=iZ(Oi.l,QX.l),Zq=iZ(Oi.opacity,QX.opacity);return function(Op){Oi.h=h9(Op);Oi.s=R8(Op);Oi.l=SL(Math.pow(Op,u));Oi.opacity=Zq(Op);return Oi+""}}
u=+u;GW.gamma=St;return GW}(1)}
function DR(){return jA||(HBp(QO),jA=PT.now()+RH9)}
function QO(){jA=0}
function ke(){this._call=this._time=this._next=null}
function oH(h,g,u){var St=new ke;St.restart(h,g,u);return St}
function Cz(){jA=(Kot=PT.now())+RH9;CJ=z4=0;try{DR();++CJ;for(var h=ZE3,g;h;)(g=jA-h._time)>=0&&h._call.call(null,g),h=h._next;--CJ}finally{CJ=0;h=ZE3;for(var u=Infinity;h;)if(h._call){u>h._time&&(u=h._time);var St=h;h=h._next}else g=h._next,h._next=null,h=St?St._next=g:ZE3=g;$M=St;sT(u);jA=0}}
function Cc(){var h=PT.now(),g=h-Kot;g>1E3&&(RH9-=g,Kot=h)}
function sT(h){CJ||(z4&&(z4=clearTimeout(z4)),h-jA>24?(h<Infinity&&(z4=setTimeout(Cz,h-PT.now()-RH9)),op&&(op=clearInterval(op))):(op||(Kot=PT.now(),op=setInterval(Cc,1E3)),CJ=1,HBp(Cz)))}
function M4(h,g,u){var St=new ke;g=g==null?0:+g;St.restart(function(GW){St.stop();h(GW+g)},g,u);
return St}
function zf(h,g,u,St,GW,Oi){var QX=h.__transition;if(!QX)h.__transition={};else if(u in QX)return;NL(h,u,{name:g,index:St,group:GW,on:wwI,tween:x_w,time:Oi.time,delay:Oi.delay,duration:Oi.duration,ease:Oi.ease,timer:null,state:0})}
function Tf(h,g){h=u0(h,g);if(h.state>0)throw Error("ye");return h}
function RD(h,g){h=u0(h,g);if(h.state>2)throw Error("ze");return h}
function u0(h,g){h=h.__transition;if(!h||!(h=h[g]))throw Error("Ae");return h}
function NL(h,g,u){function St(R8){var SL,Zq;if(u.state!==1)return Oi();for(wm in QX){var Op=QX[wm];if(Op.name===u.name){if(Op.state===3)return M4(St);Op.state===4?(Op.state=6,Op.timer.stop(),Op.on.call("interrupt",h,h.__data__,Op.index,Op.group),delete QX[wm]):+wm<g&&(Op.state=6,Op.timer.stop(),delete QX[wm])}}M4(function(){u.state===3&&(u.state=4,u.timer.restart(GW,u.delay,u.time),GW(R8))});
u.state=2;u.on.call("start",h,h.__data__,u.index,u.group);if(u.state===2){u.state=3;h9=Array(Zq=u.tween.length);var wm=0;for(SL=-1;wm<Zq;++wm)if(Op=u.tween[wm].value.call(h,h.__data__,u.index,u.group))h9[++SL]=Op;h9.length=SL+1}}
function GW(R8){R8=R8<u.duration?u.ease.call(null,R8/u.duration):(u.timer.restart(Oi),u.state=5,1);for(var SL=-1,Zq=h9.length;++SL<Zq;)h9[SL].call(null,R8);u.state===5&&(u.on.call("end",h,h.__data__,u.index,u.group),Oi())}
function Oi(){u.state=6;u.timer.stop();delete QX[g];for(var R8 in QX)return;delete h.__transition}
var QX=h.__transition,h9;QX[g]=u;u.timer=oH(function(R8){u.state=1;u.timer.restart(St,u.delay,u.time);u.delay<=R8&&St(R8-u.delay)},0,u.time)}
function LV(h,g){var u,St;return function(){var GW=RD(this,h),Oi=GW.tween;if(Oi!==u){St=u=Oi;Oi=0;for(var QX=St.length;Oi<QX;++Oi)if(St[Oi].name===g){St=St.slice();St.splice(Oi,1);break}}GW.tween=St}}
function ah(h,g,u){var St,GW;if(typeof u!=="function")throw Error();return function(){var Oi=RD(this,h),QX=Oi.tween;if(QX!==St){GW=(St=QX).slice();QX={name:g,value:u};for(var h9=0,R8=GW.length;h9<R8;++h9)if(GW[h9].name===g){GW[h9]=QX;break}h9===R8&&GW.push(QX)}Oi.tween=GW}}
function UM(h,g,u){var St=h._id;h.each(function(){var GW=RD(this,St);(GW.value||(GW.value={}))[g]=u.apply(this,arguments)});
return function(GW){return u0(GW,St).value[g]}}
function Mdv(h,g){var u;return(typeof g==="number"?$v:g instanceof Ar?XwL:(u=Ar(g))?(g=u,XwL):o6)(h,g)}
function cYj(h){return function(){this.removeAttribute(h)}}
function IhI(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function Lnj(h,g,u){var St,GW;return function(){var Oi=this.getAttribute(h);return Oi===u?null:Oi===St?GW:GW=g(St=Oi,u)}}
function p2e(h,g,u){var St,GW;return function(){var Oi=this.getAttributeNS(h.space,h.local);return Oi===u?null:Oi===St?GW:GW=g(St=Oi,u)}}
function JON(h,g,u){var St,GW,Oi;return function(){var QX=u(this);if(QX==null)return void this.removeAttribute(h);var h9=this.getAttribute(h);return h9===QX?null:h9===St&&QX===GW?Oi:Oi=g(St=h9,GW=QX)}}
function SzU(h,g,u){var St,GW,Oi;return function(){var QX=u(this);if(QX==null)return void this.removeAttributeNS(h.space,h.local);var h9=this.getAttributeNS(h.space,h.local);return h9===QX?null:h9===St&&QX===GW?Oi:Oi=g(St=h9,GW=QX)}}
function HFp(h,g){function u(){var St=this,GW=g.apply(St,arguments);return GW&&function(Oi){St.setAttributeNS(h.space,h.local,GW(Oi))}}
u._value=g;return u}
function MZl(h,g){function u(){var St=this,GW=g.apply(St,arguments);return GW&&function(Oi){St.setAttribute(h,GW(Oi))}}
u._value=g;return u}
function X2M(h,g){return function(){Tf(this,h).delay=+g.apply(this,arguments)}}
function iFI(h,g){return g=+g,function(){Tf(this,h).delay=g}}
function RJw(h,g){return function(){RD(this,h).duration=+g.apply(this,arguments)}}
function KxI(h,g){return g=+g,function(){RD(this,h).duration=g}}
function ZFP(h,g){if(typeof g!=="function")throw Error();return function(){RD(this,h).ease=g}}
function nA$(h){return(h+"").trim().split(/^|\s+/).every(function(g){var u=g.indexOf(".");u>=0&&(g=g.slice(0,u));return!g||g==="start"})}
function GKP(h,g,u){var St,GW,Oi=nA$(g)?Tf:RD;return function(){var QX=Oi(this,h),h9=QX.on;if(h9!==St)(GW=(St=h9).copy()).on(g,u);QX.on=GW}}
function bFe(h){return function(){var g=this.parentNode,u;for(u in this.__transition)if(+u!==h)return;g&&g.removeChild(this)}}
function mfI(h,g){var u,St,GW;return function(){var Oi=Pg(this,h),QX=(this.style.removeProperty(h),Pg(this,h));return Oi===QX?null:Oi===u&&QX===St?GW:GW=g(u=Oi,St=QX)}}
function Fxl(h){return function(){this.style.removeProperty(h)}}
function vAe(h,g,u){var St,GW;return function(){var Oi=Pg(this,h);return Oi===u?null:Oi===St?GW:GW=g(St=Oi,u)}}
function f2e(h,g,u){var St,GW,Oi;return function(){var QX=Pg(this,h),h9=u(this);h9==null&&(h9=(this.style.removeProperty(h),Pg(this,h)));return QX===h9?null:QX===St&&h9===GW?Oi:Oi=g(St=QX,GW=h9)}}
function OFw(h,g,u){function St(){var GW=this,Oi=g.apply(GW,arguments);return Oi&&function(QX){GW.style.setProperty(h,Oi(QX),u)}}
St._value=g;return St}
function AOU(h){return function(){this.textContent=h}}
function PFP(h){return function(){var g=h(this);this.textContent=g==null?"":g}}
function tL(h,g,u,St){this._groups=h;this._parents=g;this._name=u;this._id=St}
function FGw(h){return{type:h}}
function v4w(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function nXv(){}
function iB8(h,g){var u=new nXv;if(h instanceof nXv)h.each(function(QX,h9){u.set(h9,QX)});
else if(Array.isArray(h)){var St=-1,GW=h.length,Oi;if(g==null)for(;++St<GW;)u.set(St,h[St]);else for(;++St<GW;)u.set(g(Oi=h[St],St,h),Oi)}else if(h)for(St in h)u.set(St,h[St]);return u}
function GU3(){}
function RP8(h){return function(g){for(var u={},St=0;St<h.length;St++)u[h[St]]=g[St]||"";return u}}
function zJf(h,g){var u=RP8(h);return function(St,GW){return g(u(St),GW,h)}}
function $fr(h){var g=Object.create(null),u=[];h.forEach(function(St){for(var GW in St)GW in g||u.push(g[GW]=GW)});
return u}
function Knd(h){function g(QX,h9){function R8(){if(WG)return fUW;if(YF)return YF=!1,ZBv;var GU,LU=Op,UJ;if(QX.charCodeAt(LU)===34){for(;Op++<Zq&&QX.charCodeAt(Op)!==34||QX.charCodeAt(++Op)===34;);(GU=Op)>=Zq?WG=!0:(UJ=QX.charCodeAt(Op++))===10?YF=!0:UJ===13&&(YF=!0,QX.charCodeAt(Op)===10&&++Op);return QX.slice(LU+1,GU-1).replace(/""/g,'"')}for(;Op<Zq;){if((UJ=QX.charCodeAt(GU=Op++))===10)YF=!0;else if(UJ===13)YF=!0,QX.charCodeAt(Op)===10&&++Op;else if(UJ!==Oi)continue;return QX.slice(LU,GU)}return WG=
!0,QX.slice(LU,Zq)}
var SL=[],Zq=QX.length,Op=0,wm=0,tr,WG=Zq<=0,YF=!1;QX.charCodeAt(Zq-1)===10&&--Zq;for(QX.charCodeAt(Zq-1)===13&&--Zq;(tr=R8())!==fUW;){for(var sK=[];tr!==ZBv&&tr!==fUW;)sK.push(tr),tr=R8();h9&&(sK=h9(sK,wm++))==null||SL.push(sK)}return SL}
function u(QX){return QX.map(St).join(h)}
function St(QX){return QX==null?"":GW.test(QX)?'"'+QX.replace(/"/g,'""')+'"':QX}
var GW=new RegExp('["'+h+"\n\r]"),Oi=h.charCodeAt(0);return{parse:function(QX,h9){var R8,SL;QX=g(QX,function(Zq,Op){if(R8)return R8(Zq,Op-1);SL=Zq;R8=h9?zJf(Zq,h9):RP8(Zq)});
QX.columns=SL||[];return QX},
parseRows:g,format:function(QX,h9){h9==null&&(h9=$fr(QX));return[h9.map(St).join(h)].concat(QX.map(function(R8){return h9.map(function(SL){return St(R8[SL])}).join(h)})).join("\n")},
formatRows:function(QX){return QX.map(u).join("\n")}}}
function oAP(h){if(!h.ok)throw Error("Be`"+h.status+"`"+h.statusText);return h.text()}
function nB8(h){return function(g,u,St){arguments.length===2&&typeof u==="function"&&(St=u,u=void 0);return fetch(g,u).then(oAP).then(function(GW){return h(GW,St)})}}
function G2q(h,g,u,St){if(isNaN(g)||isNaN(u))return h;var GW,Oi=h._root;St={data:St};var QX=h._x0,h9=h._y0,R8=h._x1,SL=h._y1,Zq,Op,wm,tr,WG;if(!Oi)return h._root=St,h;for(;Oi.length;)if((wm=g>=(Zq=(QX+R8)/2))?QX=Zq:R8=Zq,(tr=u>=(Op=(h9+SL)/2))?h9=Op:SL=Op,GW=Oi,!(Oi=Oi[WG=tr<<1|wm]))return GW[WG]=St,h;var YF=+h._x.call(null,Oi.data);var sK=+h._y.call(null,Oi.data);if(g===YF&&u===sK)return St.next=Oi,GW?GW[WG]=St:h._root=St,h;do GW=GW?GW[WG]=Array(4):h._root=Array(4),(wm=g>=(Zq=(QX+R8)/2))?QX=Zq:R8=
Zq,(tr=u>=(Op=(h9+SL)/2))?h9=Op:SL=Op;while((WG=tr<<1|wm)===(wm=(sK>=Op)<<1|YF>=Zq));return GW[wm]=Oi,GW[WG]=St,h}
function H6(h,g,u,St,GW){this.node=h;this.x0=g;this.y0=u;this.x1=St;this.y1=GW}
function eJP(h){return h[0]}
function WxP(h){return h[1]}
function OaL(h,g,u,St,GW,Oi){this._x=h;this._y=g;this._x0=u;this._y0=St;this._x1=GW;this._y1=Oi;this._root=void 0}
function bB8(h){for(var g={data:h.data},u=g;h=h.next;)u=u.next={data:h.data};return g}
function bE3(h,g){if((g=(h=g?h.toExponential(g-1):h.toExponential()).indexOf("e"))<0)return null;var u=h.slice(0,g);return[u.length>1?u[0]+u.slice(2):u,+h.slice(g+1)]}
function QHP(h){return h=bE3(Math.abs(h)),h?h[1]:NaN}
function CFp(h,g){return function(u,St){for(var GW=u.length,Oi=[],QX=0,h9=h[0],R8=0;GW>0&&h9>0;){R8+h9+1>St&&(h9=Math.max(1,St-R8));Oi.push(u.substring(GW-=h9,GW+h9));if((R8+=h9+1)>St)break;h9=h[QX=(QX+1)%h.length]}return Oi.reverse().join(g)}}
function yOp(h){return function(g){return g.replace(/[0-9]/g,function(u){return h[+u]})}}
function AMw(h){return new PA4(h)}
function PA4(h){if(!(g=BXP.exec(h)))throw Error("Ce`"+h);var g;this.fill=g[1]||" ";this.align=g[2]||">";this.sign=g[3]||"-";this.symbol=g[4]||"";this.zero=!!g[5];this.width=g[6]&&+g[6];this.comma=!!g[7];this.precision=g[8]&&+g[8].slice(1);this.trim=!!g[9];this.type=g[10]||""}
function m_8(h,g){g=bE3(h,g);if(!g)return h+"";h=g[0];g=g[1];return g<0?"0."+Array(-g).join("0")+h:h.length>g+1?h.slice(0,g+1)+"."+h.slice(g+1):h+Array(g-h.length+2).join("0")}
function FnE(h){return h}
function Ufp(h){function g(h9){function R8(ID){var CH=UJ,rM=RA,oD,Gu;if(LU==="c")rM=pV(ID)+rM,ID="";else{ID=+ID;var Dl=ID<0;ID=pV(Math.abs(ID),sK);if(GU){var pQ=ID.length,ST=1,bZ=-1;a:for(;ST<pQ;++ST)switch(ID[ST]){case ".":bZ=oD=ST;break;case "0":bZ===0&&(bZ=ST);oD=ST;break;default:if(!+ID[ST])break a;bZ>0&&(bZ=0)}ID=bZ>0?ID.slice(0,bZ)+ID.slice(oD+1):ID}Dl&&+ID===0&&(Dl=!1);CH=(Dl?Op==="("?Op:"-":Op==="-"||Op==="("?"":Op)+CH;rM=(LU==="s"?vBU[8+fhE/3]:"")+rM+(Dl&&Op==="("?")":"");if(zN)for(Dl=-1,
oD=ID.length;++Dl<oD;)if(Gu=ID.charCodeAt(Dl),48>Gu||Gu>57){rM=(Gu===46?GW+ID.slice(Dl+1):ID.slice(Dl))+rM;ID=ID.slice(0,Dl);break}}YF&&!tr&&(ID=u(ID,Infinity));Gu=CH.length+ID.length+rM.length;Dl=Gu<WG?Array(WG-Gu+1).join(SL):"";YF&&tr&&(ID=u(Dl+ID,Dl.length?WG-rM.length:Infinity),Dl="");switch(Zq){case "<":ID=CH+ID+rM+Dl;break;case "=":ID=CH+Dl+ID+rM;break;case "^":ID=Dl.slice(0,Gu=Dl.length>>1)+CH+ID+rM+Dl.slice(Gu);break;default:ID=Dl+CH+ID+rM}return Oi(ID)}
h9=AMw(h9);var SL=h9.fill,Zq=h9.align,Op=h9.sign,wm=h9.symbol,tr=h9.zero,WG=h9.width,YF=h9.comma,sK=h9.precision,GU=h9.trim,LU=h9.type;LU==="n"?(YF=!0,LU="g"):OBM[LU]||(sK==null&&(sK=12),GU=!0,LU="g");if(tr||SL==="0"&&Zq==="=")tr=!0,SL="0",Zq="=";var UJ=wm==="$"?St[0]:wm==="#"&&/[boxX]/.test(LU)?"0"+LU.toLowerCase():"",RA=wm==="$"?St[1]:/[%p]/.test(LU)?QX:"",pV=OBM[LU],zN=/[defgprs%]/.test(LU);sK=sK==null?6:/[gprs]/.test(LU)?Math.max(1,Math.min(21,sK)):Math.max(0,Math.min(20,sK));R8.toString=function(){return h9+
""};
return R8}
var u=h.grouping&&h.thousands?CFp(h.grouping,h.thousands):FnE,St=h.currency,GW=h.decimal,Oi=h.numerals?yOp(h.numerals):FnE,QX=h.percent||"%";return{format:g,formatPrefix:function(h9,R8){var SL=g((h9=AMw(h9),h9.type="f",h9));h9=Math.max(-8,Math.min(8,Math.floor(QHP(R8)/3)))*3;var Zq=Math.pow(10,-h9),Op=vBU[8+h9/3];return function(wm){return SL(Zq*wm)+Op}}}}
function Ew(){this.reset()}
function AY8(h,g,u){var St=h.s=g+u,GW=St-g;h.t=g-(St-GW)+(u-GW)}
function my4(h){return h>1?J7:h<-1?-J7:Math.asin(h)}
function sHP(){}
function PG8(h){var g=h[0];h=h[1];var u=SN(h);return[u*SN(g),u*hk(g),hk(h)]}
function zPL(h,g){return[h[1]*g[2]-h[2]*g[1],h[2]*g[0]-h[0]*g[2],h[0]*g[1]-h[1]*g[0]]}
function $_M(h){var g=Fow(h[0]*h[0]+h[1]*h[1]+h[2]*h[2]);h[0]/=g;h[1]/=g;h[2]/=g}
function gAj(){var h=[],g;return{point:function(u,St){g.push([u,St])},
lineStart:function(){h.push(g=[])},
lineEnd:sHP,rejoin:function(){h.length>1&&h.push(h.pop().concat(h.shift()))},
result:function(){var u=h;h=[];g=null;return u}}}
function vXX(h,g,u,St){this.x=h;this.z=g;this.o=u;this.e=St;this.v=!1;this.n=this.p=null}
function tZU(h,g,u,St,GW){var Oi=[],QX=[];h.forEach(function(Op){if(!((wm=Op.length-1)<=0)){var wm,tr=Op[0],WG=Op[wm],YF=tr;if(hL(YF[0]-WG[0])<1E-6&&hL(YF[1]-WG[1])<1E-6){GW.lineStart();for(h9=0;h9<wm;++h9)GW.point((tr=Op[h9])[0],tr[1]);GW.lineEnd()}else Oi.push(wm=new vXX(tr,Op,null,!0)),QX.push(wm.o=new vXX(tr,null,wm,!1)),Oi.push(wm=new vXX(WG,Op,null,!1)),QX.push(wm.o=new vXX(WG,null,wm,!0))}});
if(Oi.length){QX.sort(g);oBm(Oi);oBm(QX);var h9=0;for(h=QX.length;h9<h;++h9)QX[h9].e=u=!u;u=Oi[0];for(var R8;;){for(var SL=u,Zq=!0;SL.v;)if((SL=SL.n)===u)return;g=SL.z;GW.lineStart();do{SL.v=SL.o.v=!0;if(SL.e){if(Zq)for(h9=0,h=g.length;h9<h;++h9)GW.point((R8=g[h9])[0],R8[1]);else St(SL.x,SL.n.x,1,GW);SL=SL.n}else{if(Zq)for(g=SL.p.z,h9=g.length-1;h9>=0;--h9)GW.point((R8=g[h9])[0],R8[1]);else St(SL.x,SL.p.x,-1,GW);SL=SL.p}SL=SL.o;g=SL.z;Zq=!Zq}while(!SL.v);GW.lineEnd()}}}
function oBm(h){if(g=h.length){for(var g,u=0,St=h[0],GW;++u<g;)St.n=GW=h[u],GW.p=St,St=GW;St.n=GW=h[0];GW.p=St}}
function hJP(h){return h.length>1}
function DfI(h,g){return((h=h.x)[0]<0?h[1]-J7-1E-6:J7-h[1])-((g=g.x)[0]<0?g[1]-J7-1E-6:J7-g[1])}
function z$i(){}
function eP4(h){return function(g,u){var St=SN(g),GW=SN(u);St=h(St*GW);return[St*GW*hk(g),St*hk(u)]}}
function e4(h){return function(g,u){var St=Fow(g*g+u*u),GW=h(St),Oi=hk(GW);GW=SN(GW);return[Wnp(g*Oi,St*GW),my4(St&&u*Oi/St)]}}
function kK$(h){var g=0,u=h.children,St=u&&u.length;if(St)for(;--St>=0;)g+=u[St].value;else g=1;h.value=g}
function QGE(h,g){var u=new WT(h);h=+h.value&&(u.value=h.value);var St,GW=[u],Oi,QX,h9,R8;for(g==null&&(g=NXP);St=GW.pop();)if(h&&(St.value=+St.data.value),(QX=g(St.data))&&(R8=QX.length))for(St.children=Array(R8),h9=R8-1;h9>=0;--h9)GW.push(Oi=St.children[h9]=new WT(QX[h9])),Oi.parent=St,Oi.depth=St.depth+1;return u.eachBefore(TXU)}
function NXP(h){return h.children}
function dfy(h){h.data=h.data.data}
function TXU(h){var g=0;do h.height=g;while((h=h.parent)&&h.height<++g)}
function WT(h){this.data=h;this.depth=this.height=0;this.parent=null}
function Q1(h,g,u,St){function GW(Oi){return h(Oi=new Date(+Oi)),Oi}
GW.floor=GW;GW.ceil=function(Oi){return h(Oi=new Date(Oi-1)),g(Oi,1),h(Oi),Oi};
GW.round=function(Oi){var QX=GW(Oi),h9=GW.ceil(Oi);return Oi-QX<h9-Oi?QX:h9};
GW.offset=function(Oi,QX){return g(Oi=new Date(+Oi),QX==null?1:Math.floor(QX)),Oi};
GW.range=function(Oi,QX,h9){var R8=[],SL;Oi=GW.ceil(Oi);h9=h9==null?1:Math.floor(h9);if(!(Oi<QX&&h9>0))return R8;do R8.push(SL=new Date(+Oi)),g(Oi,h9),h(Oi);while(SL<Oi&&Oi<QX);return R8};
GW.filter=function(Oi){return Q1(function(QX){if(QX>=QX)for(;h(QX),!Oi(QX);)QX.setTime(QX-1)},function(QX,h9){if(QX>=QX)if(h9<0)for(;++h9<=0;)for(;g(QX,-1),!Oi(QX););
else for(;--h9>=0;)for(;g(QX,1),!Oi(QX););})};
u&&(GW.count=function(Oi,QX){$gv.setTime(+Oi);o4i.setTime(+QX);h($gv);h(o4i);return Math.floor(u($gv,o4i))},GW.every=function(Oi){Oi=Math.floor(Oi);
return isFinite(Oi)&&Oi>0?Oi>1?GW.filter(St?function(QX){return St(QX)%Oi===0}:function(QX){return GW.count(0,QX)%Oi===0}):GW:null});
return GW}
function wO(h){return Q1(function(g){g.setDate(g.getDate()-(g.getDay()+7-h)%7);g.setHours(0,0,0,0)},function(g,u){g.setDate(g.getDate()+u*7)},function(g,u){return(u-g-(u.getTimezoneOffset()-g.getTimezoneOffset())*6E4)/6048E5})}
function xW(h){return Q1(function(g){g.setUTCDate(g.getUTCDate()-(g.getUTCDay()+7-h)%7);g.setUTCHours(0,0,0,0)},function(g,u){g.setUTCDate(g.getUTCDate()+u*7)},function(g,u){return(u-g)/6048E5})}
function uqP(h){if(0<=h.y&&h.y<100){var g=new Date(-1,h.m,h.d,h.H,h.M,h.S,h.L);g.setFullYear(h.y);return g}return new Date(h.y,h.m,h.d,h.H,h.M,h.S,h.L)}
function fyt(h){if(0<=h.y&&h.y<100){var g=new Date(Date.UTC(-1,h.m,h.d,h.H,h.M,h.S,h.L));g.setUTCFullYear(h.y);return g}return new Date(Date.UTC(h.y,h.m,h.d,h.H,h.M,h.S,h.L))}
function QR(h){return{y:h,m:0,d:1,H:0,M:0,S:0,L:0}}
function l2e(h){function g(rM,oD){return function(Gu){var Dl=[],pQ=-1,ST=0,bZ=rM.length,$a,sM;for(Gu instanceof Date||(Gu=new Date(+Gu));++pQ<bZ;)if(rM.charCodeAt(pQ)===37){Dl.push(rM.slice(ST,pQ));(ST=CGo[$a=rM.charAt(++pQ)])!=null?$a=rM.charAt(++pQ):ST=$a==="e"?" ":"0";if(sM=oD[$a])$a=sM(Gu,ST);Dl.push($a);ST=pQ+1}Dl.push(rM.slice(ST,pQ));return Dl.join("")}}
function u(rM,oD){return function(Gu){var Dl=QR(1900);if(St(Dl,rM,Gu,0)!=Gu.length)return null;if("Q"in Dl)return new Date(Dl.Q);"p"in Dl&&(Dl.H=Dl.H%12+Dl.p*12);if("V"in Dl){if(Dl.V<1||Dl.V>53)return null;"w"in Dl||(Dl.w=1);if("Z"in Dl){Gu=fyt(QR(Dl.y));var pQ=Gu.getUTCDay();Gu=pQ>4||pQ===0?e$w.ceil(Gu):e$w(Gu);Gu=yYq.offset(Gu,(Dl.V-1)*7);Dl.y=Gu.getUTCFullYear();Dl.m=Gu.getUTCMonth();Dl.d=Gu.getUTCDate()+(Dl.w+6)%7}else Gu=oD(QR(Dl.y)),pQ=Gu.getDay(),Gu=pQ>4||pQ===0?WG9.ceil(Gu):WG9(Gu),Gu=Bvd.offset(Gu,
(Dl.V-1)*7),Dl.y=Gu.getFullYear(),Dl.m=Gu.getMonth(),Dl.d=Gu.getDate()+(Dl.w+6)%7}else if("W"in Dl||"U"in Dl)"w"in Dl||(Dl.w="u"in Dl?Dl.u%7:"W"in Dl?1:0),pQ="Z"in Dl?fyt(QR(Dl.y)).getUTCDay():oD(QR(Dl.y)).getDay(),Dl.m=0,Dl.d="W"in Dl?(Dl.w+6)%7+Dl.W*7-(pQ+5)%7:Dl.w+Dl.U*7-(pQ+6)%7;return"Z"in Dl?(Dl.H+=Dl.Z/100|0,Dl.M+=Dl.Z%100,fyt(Dl)):oD(Dl)}}
function St(rM,oD,Gu,Dl){for(var pQ=0,ST=oD.length,bZ=Gu.length,$a;pQ<ST;){if(Dl>=bZ)return-1;$a=oD.charCodeAt(pQ++);if($a===37){if($a=oD.charAt(pQ++),$a=CH[$a in CGo?oD.charAt(pQ++):$a],!$a||(Dl=$a(rM,Gu,Dl))<0)return-1}else if($a!=Gu.charCodeAt(Dl++))return-1}return Dl}
var GW=h.dateTime,Oi=h.date,QX=h.time,h9=h.periods,R8=h.days,SL=h.shortDays,Zq=h.months,Op=h.shortMonths,wm=Cx(h9),tr=yR(h9),WG=Cx(R8),YF=yR(R8),sK=Cx(SL),GU=yR(SL),LU=Cx(Zq),UJ=yR(Zq),RA=Cx(Op),pV=yR(Op),zN={a:function(rM){return SL[rM.getDay()]},
A:function(rM){return R8[rM.getDay()]},
b:function(rM){return Op[rM.getMonth()]},
B:function(rM){return Zq[rM.getMonth()]},
c:null,d:U_8,e:U_8,f:VZr,H:qzP,I:a2y,j:EAw,L:sG8,m:Yzj,M:rOP,p:function(rM){return h9[+(rM.getHours()>=12)]},
Q:gBm,s:tdv,S:jHr,u:w2y,U:xfI,V:cON,w:I2p,W:Lxj,x:null,X:null,y:pCf,Y:Jol,Z:ShI,"%":hPv},ID={a:function(rM){return SL[rM.getUTCDay()]},
A:function(rM){return R8[rM.getUTCDay()]},
b:function(rM){return Op[rM.getUTCMonth()]},
B:function(rM){return Zq[rM.getUTCMonth()]},
c:null,d:D_p,e:D_p,f:HMP,H:MAU,I:XCI,j:iM$,L:k2p,m:RVI,M:KQy,p:function(rM){return h9[+(rM.getUTCHours()>=12)]},
Q:gBm,s:tdv,S:ZMe,u:nWy,U:GYl,V:bMM,w:mHl,W:FQf,x:null,X:null,y:vWl,Y:f5$,Z:OMe,"%":hPv},CH={a:function(rM,oD,Gu){return(oD=sK.exec(oD.slice(Gu)))?(rM.w=GU[oD[0].toLowerCase()],Gu+oD[0].length):-1},
A:function(rM,oD,Gu){return(oD=WG.exec(oD.slice(Gu)))?(rM.w=YF[oD[0].toLowerCase()],Gu+oD[0].length):-1},
b:function(rM,oD,Gu){return(oD=RA.exec(oD.slice(Gu)))?(rM.m=pV[oD[0].toLowerCase()],Gu+oD[0].length):-1},
B:function(rM,oD,Gu){return(oD=LU.exec(oD.slice(Gu)))?(rM.m=UJ[oD[0].toLowerCase()],Gu+oD[0].length):-1},
c:function(rM,oD,Gu){return St(rM,GW,oD,Gu)},
d:Nvq,e:Nvq,f:AoP,H:Tv8,I:Tv8,j:PHe,L:zVj,m:$HP,M:oWy,p:function(rM,oD,Gu){return(oD=wm.exec(oD.slice(Gu)))?(rM.p=tr[oD[0].toLowerCase()],Gu+oD[0].length):-1},
Q:eVI,s:WQl,S:QMI,u:CHP,U:yoP,V:BOM,w:UHU,W:sMy,x:function(rM,oD,Gu){return St(rM,Oi,oD,Gu)},
X:function(rM,oD,Gu){return St(rM,QX,oD,Gu)},
y:gWP,Y:tAw,Z:hVw,"%":DHP};zN.x=g(Oi,zN);zN.X=g(QX,zN);zN.c=g(GW,zN);ID.x=g(Oi,ID);ID.X=g(QX,ID);ID.c=g(GW,ID);return{format:function(rM){var oD=g(rM,zN);oD.toString=function(){return rM};
return oD},
parse:function(rM){var oD=u(rM,uqP);oD.toString=function(){return rM};
return oD},
utcFormat:function(rM){var oD=g(rM,ID);oD.toString=function(){return rM};
return oD},
utcParse:function(rM){var oD=u(rM,fyt);oD.toString=function(){return rM};
return oD}}}
function CV(h,g,u){var St=h<0?"-":"";h=(St?-h:h)+"";var GW=h.length;return St+(GW<u?Array(u-GW+1).join(g)+h:h)}
function kYe(h){return h.replace(NOy,"\\$&")}
function Cx(h){return new RegExp("^(?:"+h.map(kYe).join("|")+")","i")}
function yR(h){for(var g={},u=-1,St=h.length;++u<St;)g[h[u].toLowerCase()]=u;return g}
function UHU(h,g,u){return(g=sJ.exec(g.slice(u,u+1)))?(h.w=+g[0],u+g[0].length):-1}
function CHP(h,g,u){return(g=sJ.exec(g.slice(u,u+1)))?(h.u=+g[0],u+g[0].length):-1}
function yoP(h,g,u){return(g=sJ.exec(g.slice(u,u+2)))?(h.U=+g[0],u+g[0].length):-1}
function BOM(h,g,u){return(g=sJ.exec(g.slice(u,u+2)))?(h.V=+g[0],u+g[0].length):-1}
function sMy(h,g,u){return(g=sJ.exec(g.slice(u,u+2)))?(h.W=+g[0],u+g[0].length):-1}
function tAw(h,g,u){return(g=sJ.exec(g.slice(u,u+4)))?(h.y=+g[0],u+g[0].length):-1}
function gWP(h,g,u){return(g=sJ.exec(g.slice(u,u+2)))?(h.y=+g[0]+(+g[0]>68?1900:2E3),u+g[0].length):-1}
function hVw(h,g,u){return(g=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(g.slice(u,u+6)))?(h.Z=g[1]?0:-(g[2]+(g[3]||"00")),u+g[0].length):-1}
function $HP(h,g,u){return(g=sJ.exec(g.slice(u,u+2)))?(h.m=g[0]-1,u+g[0].length):-1}
function Nvq(h,g,u){return(g=sJ.exec(g.slice(u,u+2)))?(h.d=+g[0],u+g[0].length):-1}
function PHe(h,g,u){return(g=sJ.exec(g.slice(u,u+3)))?(h.m=0,h.d=+g[0],u+g[0].length):-1}
function Tv8(h,g,u){return(g=sJ.exec(g.slice(u,u+2)))?(h.H=+g[0],u+g[0].length):-1}
function oWy(h,g,u){return(g=sJ.exec(g.slice(u,u+2)))?(h.M=+g[0],u+g[0].length):-1}
function QMI(h,g,u){return(g=sJ.exec(g.slice(u,u+2)))?(h.S=+g[0],u+g[0].length):-1}
function zVj(h,g,u){return(g=sJ.exec(g.slice(u,u+3)))?(h.L=+g[0],u+g[0].length):-1}
function AoP(h,g,u){return(g=sJ.exec(g.slice(u,u+6)))?(h.L=Math.floor(g[0]/1E3),u+g[0].length):-1}
function DHP(h,g,u){return(h=TON.exec(g.slice(u,u+1)))?u+h[0].length:-1}
function eVI(h,g,u){return(g=sJ.exec(g.slice(u)))?(h.Q=+g[0],u+g[0].length):-1}
function WQl(h,g,u){return(g=sJ.exec(g.slice(u)))?(h.Q=+g[0]*1E3,u+g[0].length):-1}
function U_8(h,g){return CV(h.getDate(),g,2)}
function qzP(h,g){return CV(h.getHours(),g,2)}
function a2y(h,g){return CV(h.getHours()%12||12,g,2)}
function EAw(h,g){return CV(1+Bvd.count(Bk(h),h),g,3)}
function sG8(h,g){return CV(h.getMilliseconds(),g,3)}
function VZr(h,g){return sG8(h,g)+"000"}
function Yzj(h,g){return CV(h.getMonth()+1,g,2)}
function rOP(h,g){return CV(h.getMinutes(),g,2)}
function jHr(h,g){return CV(h.getSeconds(),g,2)}
function w2y(h){h=h.getDay();return h===0?7:h}
function xfI(h,g){return CV(dHe.count(Bk(h),h),g,2)}
function cON(h,g){var u=h.getDay();h=u>=4||u===0?QBk(h):QBk.ceil(h);return CV(QBk.count(Bk(h),h)+(Bk(h).getDay()===4),g,2)}
function I2p(h){return h.getDay()}
function Lxj(h,g){return CV(WG9.count(Bk(h),h),g,2)}
function pCf(h,g){return CV(h.getFullYear()%100,g,2)}
function Jol(h,g){return CV(h.getFullYear()%1E4,g,4)}
function ShI(h){h=h.getTimezoneOffset();return(h>0?"-":(h*=-1,"+"))+CV(h/60|0,"0",2)+CV(h%60,"0",2)}
function D_p(h,g){return CV(h.getUTCDate(),g,2)}
function MAU(h,g){return CV(h.getUTCHours(),g,2)}
function XCI(h,g){return CV(h.getUTCHours()%12||12,g,2)}
function iM$(h,g){return CV(1+yYq.count(Uk(h),h),g,3)}
function k2p(h,g){return CV(h.getUTCMilliseconds(),g,3)}
function HMP(h,g){return k2p(h,g)+"000"}
function RVI(h,g){return CV(h.getUTCMonth()+1,g,2)}
function KQy(h,g){return CV(h.getUTCMinutes(),g,2)}
function ZMe(h,g){return CV(h.getUTCSeconds(),g,2)}
function nWy(h){h=h.getUTCDay();return h===0?7:h}
function GYl(h,g){return CV(uHU.count(Uk(h),h),g,2)}
function bMM(h,g){var u=h.getUTCDay();h=u>=4||u===0?CAW(h):CAW.ceil(h);return CV(CAW.count(Uk(h),h)+(Uk(h).getUTCDay()===4),g,2)}
function mHl(h){return h.getUTCDay()}
function FQf(h,g){return CV(e$w.count(Uk(h),h),g,2)}
function vWl(h,g){return CV(h.getUTCFullYear()%100,g,2)}
function f5$(h,g){return CV(h.getUTCFullYear()%1E4,g,4)}
function OMe(){return"+0000"}
function hPv(){return"%"}
function gBm(h){return+h}
function tdv(h){return Math.floor(+h/1E3)}
function FC(h){for(var g=h.length/6|0,u=Array(g),St=0;St<g;)u[St]="#"+h.slice(St*6,++St*6);return u}
function Jl(h){return l5I(h[h.length-1])}
function OEk(h){var g=h.length;return function(u){return h[Math.max(0,Math.min(g-1,Math.floor(u*g)))]}}
function d_M(h){this._context=h}
function uEp(h){this._curve=h}
function lhm(h,g,u){var St=h._x1-h._x0;g-=h._x1;var GW=(h._y1-h._y0)/(St||g<0&&-0);h=(u-h._y1)/(g||St<0&&-0);return((GW<0?-1:1)+(h<0?-1:1))*Math.min(Math.abs(GW),Math.abs(h),.5*Math.abs((GW*g+h*St)/(St+g)))||0}
function Vdd(h,g){var u=h._x1-h._x0;return u?(3*(h._y1-h._y0)/u-g)/2:g}
function yMi(h,g,u){var St=h._x0,GW=h._x1,Oi=h._y1,QX=(GW-St)/3;h._context.bezierCurveTo(St+QX,h._y0+QX*g,GW-QX,Oi-QX*u,GW,Oi)}
function BUk(h){this._context=h}
function q88(h){this._context=h}
function BT(h,g,u){this.k=h;this.x=g;this.y=u}
(function(h){h.length===1&&(h=J(h));return{left:function(g,u,St,GW){St==null&&(St=0);GW==null&&(GW=g.length);for(;St<GW;){var Oi=St+GW>>>1;h(g[Oi],u)<0?St=Oi+1:GW=Oi}return St},
right:function(g,u,St,GW){St==null&&(St=0);GW==null&&(GW=g.length);for(;St<GW;){var Oi=St+GW>>>1;h(g[Oi],u)>0?GW=Oi:St=Oi+1}return St}}})(p);
var Nvl={value:function(){}};
H.prototype=S.prototype={constructor:H,on:function(h,g){var u=this._,St=M(h+"",u),GW,Oi=-1,QX=St.length;if(arguments.length<2)for(;++Oi<QX;){var h9;if(h9=GW=(h=St[Oi]).type){a:{h9=u[GW];for(var R8=0,SL=h9.length;R8<SL;++R8)if((GW=h9[R8]).name===h.name){GW=GW.value;break a}GW=void 0}h9=GW}if(h9)return GW}else{if(g!=null&&typeof g!=="function")throw Error("De`"+g);for(;++Oi<QX;)if(GW=(h=St[Oi]).type)u[GW]=X(u[GW],h.name,g);else if(g==null)for(GW in u)u[GW]=X(u[GW],h.name,null);return this}},
copy:function(){var h={},g=this._,u;for(u in g)h[u]=g[u].slice();return new H(h)},
call:function(h,g){if((GW=arguments.length-2)>0)for(var u=Array(GW),St=0,GW,Oi;St<GW;++St)u[St]=arguments[St+2];if(!this._.hasOwnProperty(h))throw Error("xe`"+h);Oi=this._[h];St=0;for(GW=Oi.length;St<GW;++St)Oi[St].value.apply(g,u)},
apply:function(h,g,u){if(!this._.hasOwnProperty(h))throw Error("xe`"+h);h=this._[h];for(var St=0,GW=h.length;St<GW;++St)h[St].value.apply(g,u)}};
var pT={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/"},ahU=function(h){return function(){return this.matches(h)}};
if(typeof document!=="undefined"){var Um=document.documentElement;if(!Um.matches){var VAI=Um.webkitMatchesSelector||Um.msMatchesSelector||Um.mozMatchesSelector||Um.oMatchesSelector;ahU=function(h){return function(){return VAI.call(this,h)}}}}var EB8=ahU;
P.prototype={constructor:P,appendChild:function(h){return this._parent.insertBefore(h,this._next)},
insertBefore:function(h,g){return this._parent.insertBefore(h,g)},
querySelector:function(h){return this._parent.querySelector(h)},
querySelectorAll:function(h){return this._parent.querySelectorAll(h)}};
var wH8={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(wH8={mouseenter:"mouseover",mouseleave:"mouseout"}));var Tv$=[null];vE.prototype=XP.prototype={constructor:vE,select:function(h){typeof h!=="function"&&(h=O(h));for(var g=this._groups,u=g.length,St=Array(u),GW=0;GW<u;++GW)for(var Oi=g[GW],QX=Oi.length,h9=St[GW]=Array(QX),R8,SL,Zq=0;Zq<QX;++Zq)(R8=Oi[Zq])&&(SL=h.call(R8,R8.__data__,Zq,Oi))&&("__data__"in R8&&(SL.__data__=R8.__data__),h9[Zq]=SL);return new vE(St,
this._parents)},
filter:function(h){typeof h!=="function"&&(h=EB8(h));for(var g=this._groups,u=g.length,St=Array(u),GW=0;GW<u;++GW)for(var Oi=g[GW],QX=Oi.length,h9=St[GW]=[],R8,SL=0;SL<QX;++SL)(R8=Oi[SL])&&h.call(R8,R8.__data__,SL,Oi)&&h9.push(R8);return new vE(St,this._parents)},
data:function(h,g){if(!h)return tr=Array(this.size()),SL=-1,this.each(function(LU){tr[++SL]=LU}),tr;
var u=g?t:y,St=this._parents,GW=this._groups;typeof h!=="function"&&(h=W(h));for(var Oi=GW.length,QX=Array(Oi),h9=Array(Oi),R8=Array(Oi),SL=0;SL<Oi;++SL){var Zq=St[SL],Op=GW[SL],wm=Op.length,tr=h.call(Zq,Zq&&Zq.__data__,SL,St),WG=tr.length,YF=h9[SL]=Array(WG),sK=QX[SL]=Array(WG);wm=R8[SL]=Array(wm);u(Zq,Op,YF,sK,wm,tr,g);Op=Zq=0;for(var GU;Zq<WG;++Zq)if(wm=YF[Zq]){for(Zq>=Op&&(Op=Zq+1);!(GU=sK[Op])&&++Op<WG;);wm._next=GU||null}}QX=new vE(QX,St);QX._enter=h9;QX._exit=R8;return QX},
enter:function(){return new vE(this._enter||this._groups.map(A),this._parents)},
exit:function(){return new vE(this._exit||this._groups.map(A),this._parents)},
merge:function(h){var g=this._groups;h=h._groups;for(var u=g.length,St=Math.min(u,h.length),GW=Array(u),Oi=0;Oi<St;++Oi)for(var QX=g[Oi],h9=h[Oi],R8=QX.length,SL=GW[Oi]=Array(R8),Zq,Op=0;Op<R8;++Op)if(Zq=QX[Op]||h9[Op])SL[Op]=Zq;for(;Oi<u;++Oi)GW[Oi]=g[Oi];return new vE(GW,this._parents)},
order:function(){for(var h=this._groups,g=-1,u=h.length;++g<u;)for(var St=h[g],GW=St.length-1,Oi=St[GW],QX;--GW>=0;)if(QX=St[GW])Oi&&Oi!==QX.nextSibling&&Oi.parentNode.insertBefore(QX,Oi),Oi=QX;return this},
sort:function(h){function g(Op,wm){return Op&&wm?h(Op.__data__,wm.__data__):!Op-!wm}
h||(h=D);for(var u=this._groups,St=u.length,GW=Array(St),Oi=0;Oi<St;++Oi){for(var QX=u[Oi],h9=QX.length,R8=GW[Oi]=Array(h9),SL,Zq=0;Zq<h9;++Zq)if(SL=QX[Zq])R8[Zq]=SL;R8.sort(g)}return(new vE(GW,this._parents)).order()},
call:function(){var h=arguments[0];arguments[0]=this;h.apply(null,arguments);return this},
nodes:function(){var h=Array(this.size()),g=-1;this.each(function(){h[++g]=this});
return h},
node:function(){for(var h=this._groups,g=0,u=h.length;g<u;++g)for(var St=h[g],GW=0,Oi=St.length;GW<Oi;++GW){var QX=St[GW];if(QX)return QX}return null},
size:function(){var h=0;this.each(function(){++h});
return h},
empty:function(){return!this.node()},
each:function(h){for(var g=this._groups,u=0,St=g.length;u<St;++u)for(var GW=g[u],Oi=0,QX=GW.length,h9;Oi<QX;++Oi)(h9=GW[Oi])&&h.call(h9,h9.__data__,Oi,GW);return this},
attr:function(h,g){var u=Z(h);if(arguments.length<2){var St=this.node();return u.local?St.getAttributeNS(u.space,u.local):St.getAttribute(u)}return this.each((g==null?u.local?E:k:typeof g==="function"?u.local?I:w:u.local?q:a)(u,g))},
style:function(h,g,u){return arguments.length>1?this.each((g==null?Z3:typeof g==="function"?yX:vg)(h,g,u==null?"":u)):Pg(this.node(),h)},
property:function(h,g){return arguments.length>1?this.each((g==null?ov:typeof g==="function"?TW:NW)(h,g)):this.node()[h]},
text:function(h){return arguments.length?this.each(h==null?Ys:(typeof h==="function"?$U:Go)(h)):this.node().textContent},
html:function(h){return arguments.length?this.each(h==null?LL:(typeof h==="function"?Qv:fd)(h)):this.node().innerHTML},
append:function(h){var g=typeof h==="function"?h:F(h);return this.select(function(){return this.appendChild(g.apply(this,arguments))})},
insert:function(h,g){var u=typeof h==="function"?h:F(h),St=g==null?t8:typeof g==="function"?g:O(g);return this.select(function(){return this.insertBefore(u.apply(this,arguments),St.apply(this,arguments)||null)})},
remove:function(){return this.each(Wp)},
clone:function(h){return this.select(h?KL:ON)},
datum:function(h){return arguments.length?this.property("__data__",h):this.node().__data__},
on:function(h,g,u){var St=xU(h+""),GW=St.length,Oi;if(arguments.length<2){var QX=this.node().__on;if(QX)for(var h9=0,R8=QX.length,SL;h9<R8;++h9){var Zq=0;for(SL=QX[h9];Zq<GW;++Zq)if((Oi=St[Zq]).type===SL.type&&Oi.name===SL.name)return SL.value}}else{QX=g?Ld:eL;u==null&&(u=!1);for(Zq=0;Zq<GW;++Zq)this.each(QX(St[Zq],g,u));return this}},
dispatch:function(h,g){return this.each((typeof g==="function"?Fn:YU)(h,g))}};
var d_U=0;wk.prototype=function(){return new wk}.prototype={constructor:wk,
get:function(h){for(var g=this._;!(g in h);)if(!(h=h.parentNode))return;return h[g]},
set:function(h,g){return h[this._]=g},
remove:function(h){return this._ in h&&delete h[this._]},
toString:function(){return this._}};
var sk=1/.7,uEN=/^#([0-9a-f]{3})$/,lhM=/^#([0-9a-f]{6})$/,VdP=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),q8w=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),ahy=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),EBw=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*\\)$"),
Y8y=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),rYM=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*\\)$"),xgE={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};
SI(Sa,Ar,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
SI(CP,Vv,vG(Sa,{brighter:function(h){h=h==null?sk:Math.pow(sk,h);return new CP(this.r*h,this.g*h,this.b*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new CP(this.r*h,this.g*h,this.b*h,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"#"+Mj(this.r)+Mj(this.g)+Mj(this.b)},
toString:function(){var h=this.opacity;h=isNaN(h)?1:Math.max(0,Math.min(1,h));return(h===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))+(h===1?")":", "+h+")")}}));
SI(vW,EV,vG(Sa,{brighter:function(h){h=h==null?sk:Math.pow(sk,h);return new vW(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new vW(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=this.h%360+(this.h<0)*360,g=this.l,u=g+(g<.5?g:1-g)*(isNaN(h)||isNaN(this.s)?0:this.s);g=2*g-u;return new CP(pA(h>=240?h-240:h+120,g,u),pA(h,g,u),pA(h<120?h+240:h-120,g,u),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 cMq=Math.PI/180,pw8=180/Math.PI,LGq=4/29,Qt=6/29,IUp=3*Qt*Qt,jGp=Qt*Qt*Qt;SI(Bg,function(h,g,u,St){return arguments.length===1?$_(h):new Bg(h,g,u,St==null?1:St)},vG(Sa,{brighter:function(h){return new Bg(this.l+18*(h==null?1:h),this.a,this.b,this.opacity)},
darker:function(h){return new Bg(this.l-18*(h==null?1:h),this.a,this.b,this.opacity)},
rgb:function(){var h=(this.l+16)/116,g=isNaN(this.a)?h:h+this.a/500,u=isNaN(this.b)?h:h-this.b/200;g=.96422*rk(g);h=1*rk(h);u=.82521*rk(u);return new CP(PE(3.1338561*g-1.6168667*h-.4906146*u),PE(-.9787684*g+1.9161415*h+.033454*u),PE(.0719453*g-.2289914*h+1.4052427*u),this.opacity)}}));
SI(Up,sN,vG(Sa,{brighter:function(h){return new Up(this.h,this.c,this.l+18*(h==null?1:h),this.opacity)},
darker:function(h){return new Up(this.h,this.c,this.l-18*(h==null?1:h),this.opacity)},
rgb:function(){return $_(this).rgb()}}));
var JYo=1.78277*-.29227-.1347134789;SI(Ve,Cd,vG(Sa,{brighter:function(h){h=h==null?sk:Math.pow(sk,h);return new Ve(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new Ve(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=isNaN(this.h)?0:(this.h+120)*cMq,g=+this.l,u=isNaN(this.s)?0:this.s*g*(1-g),St=Math.cos(h);h=Math.sin(h);return new CP(255*(g+u*(-.14861*St+1.78277*h)),255*(g+u*(-.29227*St+-.90649*h)),255*(g+1.97294*St*u),this.opacity)}}));
var XwL=function u(g){function St(Oi,QX){var h9=GW((Oi=Vv(Oi)).r,(QX=Vv(QX)).r),R8=GW(Oi.g,QX.g),SL=GW(Oi.b,QX.b),Zq=iZ(Oi.opacity,QX.opacity);return function(Op){Oi.r=h9(Op);Oi.g=R8(Op);Oi.b=SL(Op);Oi.opacity=Zq(Op);return Oi+""}}
var GW=xT(g);St.gamma=u;return St}(1),l5I=h3(function(g){var u=g.length-1;
return function(St){var GW=St<=0?St=0:St>=1?(St=1,u-1):Math.floor(St*u),Oi=g[GW],QX=g[GW+1];return aD((St-GW/u)*u,GW>0?g[GW-1]:2*Oi-QX,Oi,QX,GW<u-1?g[GW+2]:2*QX-Oi)}});
h3(function(g){var u=g.length;return function(St){var GW=Math.floor(((St%=1)<0?++St:St)*u);return aD((St-GW/u)*u,g[(GW+u-1)%u],g[GW%u],g[(GW+1)%u],g[(GW+2)%u])}});
var bai=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mgX=new RegExp(bai.source,"g"),S84=180/Math.PI,Ugs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},sm,sBw,Y8U,Awt,qhI=E3(function(g){if(g==="none")return Ugs;sm||(sm=document.createElement("DIV"),sBw=document.documentElement,Y8U=document.defaultView);sm.style.transform=g;g=Y8U.getComputedStyle(sBw.appendChild(sm),null).getPropertyValue("transform");sBw.removeChild(sm);g=g.slice(7,-1).split(",");return UT(+g[0],+g[1],+g[2],+g[3],
+g[4],+g[5])},"px, ","px)","deg)"),a5M=E3(function(g){if(g==null)return Ugs;
Awt||(Awt=document.createElementNS("http://www.w3.org/2000/svg","g"));Awt.setAttribute("transform",g);if(!(g=Awt.transform.baseVal.consolidate()))return Ugs;g=g.matrix;return UT(g.a,g.b,g.c,g.d,g.e,g.f)},", ",")",")");
CA(Eq);CA(iZ);Wz(Eq);Wz(iZ);$A(Eq);var g4X=$A(iZ),CJ=0,z4=0,op=0,ZE3,$M,Kot=0,jA=0,RH9=0,PT=typeof performance==="object"&&performance.now?performance:Date,HBp=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(g){setTimeout(g,17)};
ke.prototype=oH.prototype={constructor:ke,restart:function(g,u,St){if(typeof g!=="function")throw new TypeError("Ee");St=(St==null?DR():+St)+(u==null?0:+u);this._next||$M===this||($M?$M._next=this:ZE3=this,$M=this);this._call=g;this._time=St;sT()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,sT())}};
var wwI=S("start","end","interrupt"),x_w=[],EWp=XP.prototype.constructor,rYm=0,gR=XP.prototype;tL.prototype=function(g){return XP().transition(g)}.prototype={constructor:tL,
select:function(g){var u=this._name,St=this._id;typeof g!=="function"&&(g=O(g));for(var GW=this._groups,Oi=GW.length,QX=Array(Oi),h9=0;h9<Oi;++h9)for(var R8=GW[h9],SL=R8.length,Zq=QX[h9]=Array(SL),Op,wm,tr=0;tr<SL;++tr)(Op=R8[tr])&&(wm=g.call(Op,Op.__data__,tr,R8))&&("__data__"in Op&&(wm.__data__=Op.__data__),Zq[tr]=wm,zf(Zq[tr],u,St,tr,Zq,u0(Op,St)));return new tL(QX,this._parents,u,St)},
filter:function(g){typeof g!=="function"&&(g=EB8(g));for(var u=this._groups,St=u.length,GW=Array(St),Oi=0;Oi<St;++Oi)for(var QX=u[Oi],h9=QX.length,R8=GW[Oi]=[],SL,Zq=0;Zq<h9;++Zq)(SL=QX[Zq])&&g.call(SL,SL.__data__,Zq,QX)&&R8.push(SL);return new tL(GW,this._parents,this._name,this._id)},
merge:function(g){if(g._id!==this._id)throw Error();var u=this._groups;g=g._groups;for(var St=u.length,GW=Math.min(St,g.length),Oi=Array(St),QX=0;QX<GW;++QX)for(var h9=u[QX],R8=g[QX],SL=h9.length,Zq=Oi[QX]=Array(SL),Op,wm=0;wm<SL;++wm)if(Op=h9[wm]||R8[wm])Zq[wm]=Op;for(;QX<St;++QX)Oi[QX]=u[QX];return new tL(Oi,this._parents,this._name,this._id)},
selection:function(){return new EWp(this._groups,this._parents)},
transition:function(){for(var g=this._name,u=this._id,St=++rYm,GW=this._groups,Oi=GW.length,QX=0;QX<Oi;++QX)for(var h9=GW[QX],R8=h9.length,SL,Zq=0;Zq<R8;++Zq)if(SL=h9[Zq]){var Op=u0(SL,u);zf(SL,g,St,Zq,h9,{time:Op.time+Op.delay+Op.duration,delay:0,duration:Op.duration,ease:Op.ease})}return new tL(GW,this._parents,g,St)},
call:gR.call,nodes:gR.nodes,node:gR.node,size:gR.size,empty:gR.empty,each:gR.each,on:function(g,u){var St=this._id;return arguments.length<2?u0(this.node(),St).on.on(g):this.each(GKP(St,g,u))},
attr:function(g,u){var St=Z(g),GW=St==="transform"?a5M:Mdv;return this.attrTween(g,typeof u==="function"?(St.local?SzU:JON)(St,GW,UM(this,"attr."+g,u)):u==null?(St.local?IhI:cYj)(St):(St.local?p2e:Lnj)(St,GW,u+""))},
attrTween:function(g,u){var St="attr."+g;if(arguments.length<2)return(St=this.tween(St))&&St._value;if(u==null)return this.tween(St,null);if(typeof u!=="function")throw Error();var GW=Z(g);return this.tween(St,(GW.local?HFp:MZl)(GW,u))},
style:function(g,u,St){var GW=g==="transform"?qhI:Mdv;return u==null?this.styleTween(g,mfI(g,GW)).on("end.style."+g,Fxl(g)):this.styleTween(g,typeof u==="function"?f2e(g,GW,UM(this,"style."+g,u)):vAe(g,GW,u+""),St)},
styleTween:function(g,u,St){var GW="style."+g;if(arguments.length<2)return(GW=this.tween(GW))&&GW._value;if(u==null)return this.tween(GW,null);if(typeof u!=="function")throw Error();return this.tween(GW,OFw(g,u,St==null?"":St))},
text:function(g){return this.tween("text",typeof g==="function"?PFP(UM(this,"text",g)):AOU(g==null?"":g+""))},
remove:function(){return this.on("end.remove",bFe(this._id))},
tween:function(g,u){var St=this._id;if(arguments.length<2){St=u0(this.node(),St).tween;for(var GW=0,Oi=St.length,QX;GW<Oi;++GW)if((QX=St[GW]).name===g)return QX.value;return null}return this.each((u==null?LV:ah)(St,g,u))},
delay:function(g){var u=this._id;return arguments.length?this.each((typeof g==="function"?X2M:iFI)(u,g)):u0(this.node(),u).delay},
duration:function(g){var u=this._id;return arguments.length?this.each((typeof g==="function"?RJw:KxI)(u,g)):u0(this.node(),u).duration},
ease:function(g){var u=this._id;return arguments.length?this.each(ZFP(u,g)):u0(this.node(),u).ease}};
var tk3={time:null,delay:0,duration:250,ease:function(g){return((g*=2)<=1?g*g*g:(g-=2)*g*g+2)/2}};
XP.prototype.transition=function(g){var u;if(g instanceof tL){var St=g._id;g=g._name}else St=++rYm,(u=tk3).time=DR(),g=g==null?null:g+"";for(var GW=this._groups,Oi=GW.length,QX=0;QX<Oi;++QX)for(var h9=GW[QX],R8=h9.length,SL,Zq=0;Zq<R8;++Zq)if(SL=h9[Zq]){var Op=SL,wm=g,tr=St,WG=Zq,YF=h9,sK;if(!(sK=u))a:{sK=void 0;for(var GU=St;!(sK=SL.__transition)||!(sK=sK[GU]);)if(!(SL=SL.parentNode)){sK=(tk3.time=DR(),tk3);break a}}zf(Op,wm,tr,WG,YF,sK)}return new tL(GW,this._parents,g,St)};
["e","w"].map(FGw);["n","s"].map(FGw);"n e s w nw ne se sw".split(" ").map(FGw);v4w.prototype=function(){return new v4w}.prototype={constructor:v4w,
moveTo:function(g,u){this._+="M"+(this._x0=this._x1=+g)+","+(this._y0=this._y1=+u)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(g,u){this._+="L"+(this._x1=+g)+","+(this._y1=+u)},
bezierCurveTo:function(g,u,St,GW,Oi,QX){this._+="C"+ +g+","+ +u+","+ +St+","+ +GW+","+(this._x1=+Oi)+","+(this._y1=+QX)},
rect:function(g,u,St,GW){this._+="M"+(this._x0=this._x1=+g)+","+(this._y0=this._y1=+u)+"h"+ +St+"v"+ +GW+"h"+-St+"Z"},
toString:function(){return this._}};
nXv.prototype=iB8.prototype={constructor:nXv,has:function(g){return" "+g in this},
get:function(g){return this[" "+g]},
set:function(g,u){this[" "+g]=u;return this},
remove:function(g){g=" "+g;return g in this&&delete this[g]},
clear:function(){for(var g in this)g[0]===" "&&delete this[g]},
keys:function(){var g=[],u;for(u in this)u[0]===" "&&g.push(u.slice(1));return g},
values:function(){var g=[],u;for(u in this)u[0]===" "&&g.push(this[u]);return g},
entries:function(){var g=[],u;for(u in this)u[0]===" "&&g.push({key:u.slice(1),value:this[u]});return g},
size:function(){var g=0,u;for(u in this)u[0]===" "&&++g;return g},
empty:function(){for(var g in this)if(g[0]===" ")return!1;return!0},
each:function(g){for(var u in this)u[0]===" "&&g(this[u],u.slice(1),this)}};
var cC=iB8.prototype;GU3.prototype=function(g,u){var St=new GU3;if(g instanceof GU3)g.each(function(QX){St.add(QX)});
else if(g){var GW=-1,Oi=g.length;if(u==null)for(;++GW<Oi;)St.add(g[GW]);else for(;++GW<Oi;)St.add(u(g[GW],GW,g))}return St}.prototype={constructor:GU3,
has:cC.has,add:function(g){this[" "+g]=g;return this},
remove:cC.remove,clear:cC.clear,values:cC.keys,size:cC.size,empty:cC.empty,each:cC.each};var ZBv={},fUW={},Yhj=Knd(",").parse,roM=Knd("\t").parse;nB8(Yhj);nB8(roM);var MQ=function(g,u,St){u=new OaL(u==null?eJP:u,St==null?WxP:St,NaN,NaN,NaN,NaN);return g==null?u:u.addAll(g)}.prototype=OaL.prototype;
MQ.copy=function(){var g=new OaL(this._x,this._y,this._x0,this._y0,this._x1,this._y1),u=this._root,St,GW;if(!u)return g;if(!u.length)return g._root=bB8(u),g;for(St=[{source:u,target:g._root=Array(4)}];u=St.pop();)for(var Oi=0;Oi<4;++Oi)if(GW=u.source[Oi])GW.length?St.push({source:GW,target:u.target[Oi]=Array(4)}):u.target[Oi]=bB8(GW);return g};
MQ.add=function(g){var u=+this._x.call(null,g),St=+this._y.call(null,g);return G2q(this.cover(u,St),u,St,g)};
MQ.addAll=function(g){var u,St,GW=g.length,Oi,QX,h9=Array(GW),R8=Array(GW),SL=Infinity,Zq=Infinity,Op=-Infinity,wm=-Infinity;for(St=0;St<GW;++St)isNaN(Oi=+this._x.call(null,u=g[St]))||isNaN(QX=+this._y.call(null,u))||(h9[St]=Oi,R8[St]=QX,Oi<SL&&(SL=Oi),Oi>Op&&(Op=Oi),QX<Zq&&(Zq=QX),QX>wm&&(wm=QX));Op<SL&&(SL=this._x0,Op=this._x1);wm<Zq&&(Zq=this._y0,wm=this._y1);this.cover(SL,Zq).cover(Op,wm);for(St=0;St<GW;++St)G2q(this,h9[St],R8[St],g[St]);return this};
MQ.cover=function(g,u){if(isNaN(g=+g)||isNaN(u=+u))return this;var St=this._x0,GW=this._y0,Oi=this._x1,QX=this._y1;if(isNaN(St))Oi=(St=Math.floor(g))+1,QX=(GW=Math.floor(u))+1;else if(St>g||g>Oi||GW>u||u>QX){var h9=Oi-St,R8=this._root,SL;switch(SL=(u<(GW+QX)/2)<<1|g<(St+Oi)/2){case 0:do{var Zq=Array(4);Zq[SL]=R8;R8=Zq}while(h9*=2,Oi=St+h9,QX=GW+h9,g>Oi||u>QX);break;case 1:do Zq=Array(4),Zq[SL]=R8,R8=Zq;while(h9*=2,St=Oi-h9,QX=GW+h9,St>g||u>QX);break;case 2:do Zq=Array(4),Zq[SL]=R8,R8=Zq;while(h9*=
2,Oi=St+h9,GW=QX-h9,g>Oi||GW>u);break;case 3:do Zq=Array(4),Zq[SL]=R8,R8=Zq;while(h9*=2,St=Oi-h9,GW=QX-h9,St>g||GW>u)}this._root&&this._root.length&&(this._root=R8)}else return this;this._x0=St;this._y0=GW;this._x1=Oi;this._y1=QX;return this};
MQ.data=function(){var g=[];this.visit(function(u){if(!u.length){do g.push(u.data);while(u=u.next)}});
return g};
MQ.extent=function(g){return arguments.length?this.cover(+g[0][0],+g[0][1]).cover(+g[1][0],+g[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
MQ.find=function(g,u,St){var GW=this._x0,Oi=this._y0,QX,h9,R8,SL,Zq=this._x1,Op=this._y1,wm=[],tr=this._root,WG;tr&&wm.push(new H6(tr,GW,Oi,Zq,Op));St==null?St=Infinity:(GW=g-St,Oi=u-St,Zq=g+St,Op=u+St,St*=St);for(;WG=wm.pop();)if(!(!(tr=WG.node)||(QX=WG.x0)>Zq||(h9=WG.y0)>Op||(R8=WG.x1)<GW||(SL=WG.y1)<Oi))if(tr.length){WG=(QX+R8)/2;var YF=(h9+SL)/2;wm.push(new H6(tr[3],WG,YF,R8,SL),new H6(tr[2],QX,YF,WG,SL),new H6(tr[1],WG,h9,R8,YF),new H6(tr[0],QX,h9,WG,YF));if(tr=(u>=YF)<<1|g>=WG)WG=wm[wm.length-
1],wm[wm.length-1]=wm[wm.length-1-tr],wm[wm.length-1-tr]=WG}else if(WG=g-+this._x.call(null,tr.data),YF=u-+this._y.call(null,tr.data),WG=WG*WG+YF*YF,WG<St){var sK=Math.sqrt(St=WG);GW=g-sK;Oi=u-sK;Zq=g+sK;Op=u+sK;sK=tr.data}return sK};
MQ.remove=function(g){if(isNaN(SL=+this._x.call(null,g))||isNaN(Zq=+this._y.call(null,g)))return this;var u,St=this._root,GW,Oi=this._x0,QX=this._y0,h9=this._x1,R8=this._y1,SL,Zq,Op,wm,tr,WG,YF;if(!St)return this;if(St.length)for(;;){(tr=SL>=(Op=(Oi+h9)/2))?Oi=Op:h9=Op;(WG=Zq>=(wm=(QX+R8)/2))?QX=wm:R8=wm;if(!(u=St,St=St[YF=WG<<1|tr]))return this;if(!St.length)break;if(u[YF+1&3]||u[YF+2&3]||u[YF+3&3]){var sK=u;var GU=YF}}for(;St.data!==g;)if(!(GW=St,St=St.next))return this;(g=St.next)&&delete St.next;
if(GW)return g?GW.next=g:delete GW.next,this;if(!u)return this._root=g,this;g?u[YF]=g:delete u[YF];(St=u[0]||u[1]||u[2]||u[3])&&St===(u[3]||u[2]||u[1]||u[0])&&!St.length&&(sK?sK[GU]=St:this._root=St);return this};
MQ.removeAll=function(g){for(var u=0,St=g.length;u<St;++u)this.remove(g[u]);return this};
MQ.root=function(){return this._root};
MQ.size=function(){var g=0;this.visit(function(u){if(!u.length){do++g;while(u=u.next)}});
return g};
MQ.visit=function(g){var u=[],St,GW=this._root,Oi,QX,h9,R8,SL;for(GW&&u.push(new H6(GW,this._x0,this._y0,this._x1,this._y1));St=u.pop();)if(!g(GW=St.node,QX=St.x0,h9=St.y0,R8=St.x1,SL=St.y1)&&GW.length){St=(QX+R8)/2;var Zq=(h9+SL)/2;(Oi=GW[3])&&u.push(new H6(Oi,St,Zq,R8,SL));(Oi=GW[2])&&u.push(new H6(Oi,QX,Zq,St,SL));(Oi=GW[1])&&u.push(new H6(Oi,St,h9,R8,Zq));(Oi=GW[0])&&u.push(new H6(Oi,QX,h9,St,Zq))}};
MQ.visitAfter=function(g){var u=[],St=[],GW;for(this._root&&u.push(new H6(this._root,this._x0,this._y0,this._x1,this._y1));GW=u.pop();){var Oi=GW.node;if(Oi.length){var QX,h9=GW.x0,R8=GW.y0,SL=GW.x1,Zq=GW.y1,Op=(h9+SL)/2,wm=(R8+Zq)/2;(QX=Oi[0])&&u.push(new H6(QX,h9,R8,Op,wm));(QX=Oi[1])&&u.push(new H6(QX,Op,R8,SL,wm));(QX=Oi[2])&&u.push(new H6(QX,h9,wm,Op,Zq));(QX=Oi[3])&&u.push(new H6(QX,Op,wm,SL,Zq))}St.push(GW)}for(;GW=St.pop();)g(GW.node,GW.x0,GW.y0,GW.x1,GW.y1);return this};
MQ.x=function(g){return arguments.length?(this._x=g,this):this._x};
MQ.y=function(g){return arguments.length?(this._y=g,this):this._y};
var BXP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;AMw.prototype=PA4.prototype;PA4.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 fhE,OBM={"%":function(g,u){return(g*100).toFixed(u)},
b:function(g){return Math.round(g).toString(2)},
c:function(g){return g+""},
d:function(g){return Math.round(g).toString(10)},
e:function(g,u){return g.toExponential(u)},
f:function(g,u){return g.toFixed(u)},
g:function(g,u){return g.toPrecision(u)},
o:function(g){return Math.round(g).toString(8)},
p:function(g,u){return m_8(g*100,u)},
r:m_8,s:function(g,u){var St=bE3(g,u);if(!St)return g+"";var GW=St[0];St=St[1];St=St-(fhE=Math.max(-8,Math.min(8,Math.floor(St/3)))*3)+1;var Oi=GW.length;return St===Oi?GW:St>Oi?GW+Array(St-Oi+1).join("0"):St>0?GW.slice(0,St)+"."+GW.slice(St):"0."+Array(1-St).join("0")+bE3(g,Math.max(0,u+St-1))[0]},
X:function(g){return Math.round(g).toString(16).toUpperCase()},
x:function(g){return Math.round(g).toString(16)}},vBU="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),jMP;
(function(g){return jMP=Ufp(g)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Ew.prototype={constructor:Ew,reset:function(){this.s=this.t=0},
add:function(g){AY8(PZX,g,this.t);AY8(this,PZX.s,this.s);this.s?this.t+=PZX.t:this.s=PZX.t},
valueOf:function(){return this.s}};
var PZX=new Ew,Hh=Math.PI,J7=Hh/2,jGE=Hh/4,wCr=Hh*2,h$i=Hh/180,hL=Math.abs,Dgv=Math.atan,Wnp=Math.atan2,SN=Math.cos,hk=Math.sin,Fow=Math.sqrt;new Ew;new Ew;new Ew;var k0X=new Ew;(function(g,u,St,GW){return function(Oi){function QX(pV,zN){g(pV,zN)&&Oi.point(pV,zN)}
function h9(pV,zN){tr.point(pV,zN)}
function R8(){RA.point=h9;tr.lineStart()}
function SL(){RA.point=QX;tr.lineEnd()}
function Zq(pV,zN){UJ.push([pV,zN]);YF.point(pV,zN)}
function Op(){YF.lineStart();UJ=[]}
function wm(){Zq(UJ[0][0],UJ[0][1]);YF.lineEnd();var pV=YF.clean(),zN=WG.result(),ID=zN.length,CH;UJ.pop();GU.push(UJ);UJ=null;if(ID)if(pV&1){if(ID=zN[0],(zN=ID.length-1)>0){sK||(Oi.polygonStart(),sK=!0);Oi.lineStart();for(pV=0;pV<zN;++pV)Oi.point((CH=ID[pV])[0],CH[1]);Oi.lineEnd()}}else ID>1&&pV&2&&zN.push(zN.pop().concat(zN.shift())),LU.push(zN.filter(hJP))}
var tr=u(Oi),WG=gAj(),YF=u(WG),sK=!1,GU,LU,UJ,RA={point:QX,lineStart:R8,lineEnd:SL,polygonStart:function(){RA.point=Zq;RA.lineStart=Op;RA.lineEnd=wm;LU=[];GU=[]},
polygonEnd:function(){RA.point=QX;RA.lineStart=R8;RA.lineEnd=SL;var pV=LU,zN=pV.length;var ID=-1;for(var CH=0,rM,oD;++ID<zN;)CH+=pV[ID].length;for(rM=Array(CH);--zN>=0;)for(oD=pV[zN],ID=oD.length;--ID>=0;)rM[--CH]=oD[ID];LU=rM;pV=GU;zN=GW[0];CH=GW[1];var Gu=hk(CH);ID=[hk(zN),-SN(zN),0];oD=rM=0;k0X.reset();Gu===1?CH=J7+1E-6:Gu===-1&&(CH=-J7-1E-6);Gu=0;for(var Dl=pV.length;Gu<Dl;++Gu)if(ST=(pQ=pV[Gu]).length){var pQ,ST,bZ=pQ[ST-1],$a=bZ[0],sM=bZ[1]/2+jGE,zH9=hk(sM),ww8=SN(sM);for(sM=0;sM<ST;++sM,$a=
NUt,zH9=x_8,ww8=g8,bZ=$yi){var $yi=pQ[sM],NUt=$yi[0];g8=$yi[1]/2+jGE;var x_8=hk(g8),g8=SN(g8),tU=NUt-$a,TUt=tU>=0?1:-1,dgi=TUt*tU,oXX=dgi>Hh;zH9*=x_8;k0X.add(Wnp(zH9*TUt*hk(dgi),ww8*g8+zH9*SN(dgi)));rM+=oXX?tU+TUt*wCr:tU;oXX^$a>=zN^NUt>=zN&&(bZ=zPL(PG8(bZ),PG8($yi)),$_M(bZ),$a=zPL(ID,bZ),$_M($a),$a=(oXX^tU>=0?-1:1)*my4($a[2]),CH>$a||CH===$a&&(bZ[0]||bZ[1]))&&(oD+=oXX^tU>=0?1:-1)}}pV=(rM<-1E-6||rM<1E-6&&k0X<-1E-6)^oD&1;LU.length?(sK||(Oi.polygonStart(),sK=!0),tZU(LU,DfI,pV,St,Oi)):pV&&(sK||(Oi.polygonStart(),
sK=!0),Oi.lineStart(),St(null,null,1,Oi),Oi.lineEnd());sK&&(Oi.polygonEnd(),sK=!1);LU=GU=null},
sphere:function(){Oi.polygonStart();Oi.lineStart();St(null,null,1,Oi);Oi.lineEnd();Oi.polygonEnd()}};
return RA}})(function(){return!0},function(g){var u=NaN,St=NaN,GW=NaN,Oi;
return{lineStart:function(){g.lineStart();Oi=1},
point:function(QX,h9){var R8=QX>0?Hh:-Hh,SL=hL(QX-u);if(hL(SL-Hh)<1E-6)g.point(u,St=(St+h9)/2>0?J7:-J7),g.point(GW,St),g.lineEnd(),g.lineStart(),g.point(R8,St),g.point(QX,St),Oi=0;else if(GW!==R8&&SL>=Hh){hL(u-GW)<1E-6&&(u-=GW*1E-6);hL(QX-R8)<1E-6&&(QX-=R8*1E-6);SL=u;var Zq=St,Op=QX,wm,tr,WG=hk(SL-Op);St=hL(WG)>1E-6?Dgv((hk(Zq)*(tr=SN(h9))*hk(Op)-hk(h9)*(wm=SN(Zq))*hk(SL))/(wm*tr*WG)):(Zq+h9)/2;g.point(GW,St);g.lineEnd();g.lineStart();g.point(R8,St);Oi=0}g.point(u=QX,St=h9);GW=R8},
lineEnd:function(){g.lineEnd();u=St=NaN},
clean:function(){return 2-Oi}}},function(g,u,St,GW){g==null?(St*=J7,GW.point(-Hh,St),GW.point(0,St),GW.point(Hh,St),GW.point(Hh,0),GW.point(Hh,-St),GW.point(0,-St),GW.point(-Hh,-St),GW.point(-Hh,0),GW.point(-Hh,St)):hL(g[0]-u[0])>1E-6?(g=g[0]<u[0]?Hh:-Hh,St=St*g/2,GW.point(-g,St),GW.point(0,St),GW.point(g,St)):GW.point(u[0],u[1])},[-Hh,
-J7]);new Ew;new Ew;new Ew;new Ew;z$i.prototype={constructor:z$i,point:function(g,u){this.stream.point(g,u)},
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()}};
SN(30*h$i);(function(g){return function(u){var St=new z$i,GW;for(GW in g)St[GW]=g[GW];St.stream=u;return St}})({point:function(g,u){this.stream.point(g*h$i,u*h$i)}});
eP4(function(g){return Fow(2/(1+g))}).invert=e4(function(g){return 2*my4(g/2)});
eP4(function(g){return(g=g>1?0:g<-1?Hh:Math.acos(g))&&g/hk(g)}).invert=e4(function(g){return g});
Fow(3);e4(Dgv);e4(my4);e4(function(g){return 2*Dgv(g)});
WT.prototype=QGE.prototype={constructor:WT,count:function(){return this.eachAfter(kK$)},
each:function(g){var u,St=[this],GW;do{var Oi=St.reverse();for(St=[];u=Oi.pop();)if(g(u),u=u.children){var QX=0;for(GW=u.length;QX<GW;++QX)St.push(u[QX])}}while(St.length);return this},
eachAfter:function(g){for(var u,St=[this],GW=[],Oi,QX;u=St.pop();)if(GW.push(u),u=u.children)for(Oi=0,QX=u.length;Oi<QX;++Oi)St.push(u[Oi]);for(;u=GW.pop();)g(u);return this},
eachBefore:function(g){for(var u,St=[this],GW;u=St.pop();)if(g(u),u=u.children)for(GW=u.length-1;GW>=0;--GW)St.push(u[GW]);return this},
sum:function(g){return this.eachAfter(function(u){for(var St=+g(u.data)||0,GW=u.children,Oi=GW&&GW.length;--Oi>=0;)St+=GW[Oi].value;u.value=St})},
sort:function(g){return this.eachBefore(function(u){u.children&&u.children.sort(g)})},
path:function(g){var u=this;var St=u;var GW=g;if(St!==GW){var Oi=St.ancestors(),QX=GW.ancestors(),h9=null;St=Oi.pop();for(GW=QX.pop();St===GW;)h9=St,St=Oi.pop(),GW=QX.pop();St=h9}for(GW=[u];u!==St;)u=u.parent,GW.push(u);for(u=GW.length;g!==St;)GW.splice(u,0,g),g=g.parent;return GW},
ancestors:function(){for(var g=this,u=[g];g=g.parent;)u.push(g);return u},
links:function(){var g=this,u=[];g.each(function(St){St!==g&&u.push({source:St.parent,target:St})});
return u},
copy:function(){return QGE(this).eachBefore(dfy)}};
(function(g,u){this._=g;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=u}).prototype=Object.create(WT.prototype);
var $gv=new Date,o4i=new Date,cY4=Q1(function(){},function(g,u){g.setTime(+g+u)},function(g,u){return u-g});
cY4.every=function(g){g=Math.floor(g);return isFinite(g)&&g>0?g>1?Q1(function(u){u.setTime(Math.floor(u/g)*g)},function(u,St){u.setTime(+u+St*g)},function(u,St){return(St-u)/g}):cY4:null};
Q1(function(g){g.setTime(Math.floor(g/1E3)*1E3)},function(g,u){g.setTime(+g+u*1E3)},function(g,u){return(u-g)/1E3},function(g){return g.getUTCSeconds()});
Q1(function(g){g.setTime(Math.floor(g/6E4)*6E4)},function(g,u){g.setTime(+g+u*6E4)},function(g,u){return(u-g)/6E4},function(g){return g.getMinutes()});
Q1(function(g){var u=g.getTimezoneOffset()*6E4%36E5;u<0&&(u+=36E5);g.setTime(Math.floor((+g-u)/36E5)*36E5+u)},function(g,u){g.setTime(+g+u*36E5)},function(g,u){return(u-g)/36E5},function(g){return g.getHours()});
var Bvd=Q1(function(g){g.setHours(0,0,0,0)},function(g,u){g.setDate(g.getDate()+u)},function(g,u){return(u-g-(u.getTimezoneOffset()-g.getTimezoneOffset())*6E4)/864E5},function(g){return g.getDate()-1}),dHe=wO(0),WG9=wO(1);
wO(2);wO(3);var QBk=wO(4);wO(5);wO(6);Q1(function(g){g.setDate(1);g.setHours(0,0,0,0)},function(g,u){g.setMonth(g.getMonth()+u)},function(g,u){return u.getMonth()-g.getMonth()+(u.getFullYear()-g.getFullYear())*12},function(g){return g.getMonth()});
var Bk=Q1(function(g){g.setMonth(0,1);g.setHours(0,0,0,0)},function(g,u){g.setFullYear(g.getFullYear()+u)},function(g,u){return u.getFullYear()-g.getFullYear()},function(g){return g.getFullYear()});
Bk.every=function(g){return isFinite(g=Math.floor(g))&&g>0?Q1(function(u){u.setFullYear(Math.floor(u.getFullYear()/g)*g);u.setMonth(0,1);u.setHours(0,0,0,0)},function(u,St){u.setFullYear(u.getFullYear()+St*g)}):null};
Q1(function(g){g.setUTCSeconds(0,0)},function(g,u){g.setTime(+g+u*6E4)},function(g,u){return(u-g)/6E4},function(g){return g.getUTCMinutes()});
Q1(function(g){g.setUTCMinutes(0,0,0)},function(g,u){g.setTime(+g+u*36E5)},function(g,u){return(u-g)/36E5},function(g){return g.getUTCHours()});
var yYq=Q1(function(g){g.setUTCHours(0,0,0,0)},function(g,u){g.setUTCDate(g.getUTCDate()+u)},function(g,u){return(u-g)/864E5},function(g){return g.getUTCDate()-1}),uHU=xW(0),e$w=xW(1);
xW(2);xW(3);var CAW=xW(4);xW(5);xW(6);Q1(function(g){g.setUTCDate(1);g.setUTCHours(0,0,0,0)},function(g,u){g.setUTCMonth(g.getUTCMonth()+u)},function(g,u){return u.getUTCMonth()-g.getUTCMonth()+(u.getUTCFullYear()-g.getUTCFullYear())*12},function(g){return g.getUTCMonth()});
var Uk=Q1(function(g){g.setUTCMonth(0,1);g.setUTCHours(0,0,0,0)},function(g,u){g.setUTCFullYear(g.getUTCFullYear()+u)},function(g,u){return u.getUTCFullYear()-g.getUTCFullYear()},function(g){return g.getUTCFullYear()});
Uk.every=function(g){return isFinite(g=Math.floor(g))&&g>0?Q1(function(u){u.setUTCFullYear(Math.floor(u.getUTCFullYear()/g)*g);u.setUTCMonth(0,1);u.setUTCHours(0,0,0,0)},function(u,St){u.setUTCFullYear(u.getUTCFullYear()+St*g)}):null};
var CGo={"-":"",_:" ",0:"0"},sJ=/^\s*\d+/,TON=/^%/,NOy=/[\\^$*+?|[\]().{}]/g,eHX;(function(g){eHX=l2e(g);dkd=eHX.utcFormat;uiv=eHX.utcParse;return eHX})({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||dkd("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||uiv("%Y-%m-%dT%H:%M:%S.%LZ");FC("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
FC("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");FC("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");FC("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");FC("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");FC("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");FC("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
FC("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");FC("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");FC("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");FC("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");FC("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var xHU=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(FC);Jl(xHU);var cop=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(FC);Jl(cop);var I5y=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(FC);Jl(I5y);var LQy=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(FC);
Jl(LQy);var pFr=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(FC);Jl(pFr);var JAN=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(FC);Jl(JAN);var SoI=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(FC);Jl(SoI);var Hf$=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(FC);Jl(Hf$);var Mfj=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(FC);Jl(Mfj);var XFP=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(FC);Jl(XFP);var ifw=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(FC);Jl(ifw);var Rb$=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(FC);Jl(Rb$);var K_y=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(FC);Jl(K_y);var ZfN=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(FC);Jl(ZfN);var nll=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(FC);Jl(nll);var GLP=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(FC);Jl(GLP);var bf$=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(FC);Jl(bf$);var mow=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(FC);Jl(mow);var F_I=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(FC);Jl(F_I);var vlM=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(FC);Jl(vlM);var fSl=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(FC);Jl(fSl);var OfP=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(FC);Jl(OfP);var AAI=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(FC);Jl(AAI);var PzI=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(FC);Jl(PzI);var zbM=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(FC);Jl(zbM);var $oP=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(FC);Jl($oP);var olN=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(FC);Jl(olN);g4X(Cd(300,.5,0),Cd(-240,.5,1));g4X(Cd(-100,.75,.35),Cd(80,1.5,.8));g4X(Cd(260,.75,.35),Cd(80,1.5,.8));Cd();Vv();OEk(FC("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
OEk(FC("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
OEk(FC("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
OEk(FC("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
d_M.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(g,u){g=+g;u=+u;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(g,u):this._context.moveTo(g,u);break;case 1:this._point=2;default:this._context.lineTo(g,u)}}};
(function(g){function u(St){return new uEp(g(St))}
u._curve=g;return u})(function(g){return new d_M(g)});
uEp.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(g,u){this._curve.point(u*Math.sin(g),u*-Math.cos(g))}};
BUk.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:yMi(this,this._t0,Vdd(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(g,u){var St=NaN;g=+g;u=+u;if(g!==this._x1||u!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(g,u):this._context.moveTo(g,u);break;case 1:this._point=2;break;case 2:this._point=3;yMi(this,Vdd(this,St=lhm(this,g,u)),St);break;default:yMi(this,this._t0,St=lhm(this,g,u))}this._x0=this._x1;this._x1=g;this._y0=this._y1;this._y1=u;this._t0=St}}};
(function(g){this._context=new q88(g)}.prototype=Object.create(BUk.prototype)).point=function(g,u){BUk.prototype.point.call(this,u,g)};
q88.prototype={moveTo:function(g,u){this._context.moveTo(u,g)},
closePath:function(){this._context.closePath()},
lineTo:function(g,u){this._context.lineTo(u,g)},
bezierCurveTo:function(g,u,St,GW,Oi,QX){this._context.bezierCurveTo(u,g,GW,St,QX,Oi)}};
BT.prototype={constructor:BT,scale:function(g){return g===1?this:new BT(this.k*g,this.x,this.y)},
translate:function(g,u){return g===0&u===0?this:new BT(this.k,this.x+this.k*g,this.y+this.k*u)},
apply:function(g){return[g[0]*this.k+this.x,g[1]*this.k+this.y]},
invert:function(g){return[(g[0]-this.x)/this.k,(g[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new BT(1,0,0);n6X=Ar;pT.svg=pT.svg;pT.xhtml=pT.xhtml;pT.xlink=pT.xlink;pT.xml=pT.xml;pT.xmlns=pT.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 lFv="hammer_"+(Math.random()*1E6|0),VNE=function(){var p=document||document;if(!p[lFv]){var J=function(){(function(S,H,M,X){function Z(Bg,lw,rk){return setTimeout(A(Bg,rk),lw)}
function n(Bg,lw,rk){return Array.isArray(Bg)?(b(Bg,rk[lw],rk),!0):!1}
function b(Bg,lw,rk){var PE;if(Bg)if(Bg.forEach)Bg.forEach(lw,rk);else if(Bg.length!==X){var ow=0;for(PE=Bg.length;ow<PE;ow++)lw.call(rk,Bg[ow],ow,Bg)}else for(ow in Bg)Bg.hasOwnProperty(ow)&&lw.call(rk,Bg[ow],ow,Bg)}
function F(Bg,lw,rk){for(var PE=Object.keys(lw),ow=0,kp=PE.length;ow<kp;ow++)if(!rk||rk&&Bg[PE[ow]]===X)Bg[PE[ow]]=lw[PE[ow]];return Bg}
function f(Bg,lw){return F(Bg,lw,!0)}
function O(Bg,lw,rk){lw=lw.prototype;var PE=Bg.prototype=Object.create(lw);PE.constructor=Bg;PE._super=lw;rk&&F(PE,rk)}
function A(Bg,lw){return function(){return Bg.apply(lw,arguments)}}
function P(Bg,lw){return typeof Bg=="function"?Bg.apply(lw?lw[0]||X:X,lw):Bg}
function W(Bg,lw,rk){b(t(lw),function(PE){Bg.addEventListener(PE,rk,!1)})}
function y(Bg,lw,rk){b(t(lw),function(PE){Bg.removeEventListener(PE,rk,!1)})}
function t(Bg){return Bg.trim().split(/\s+/g)}
function D(Bg,lw,rk){if(Bg.indexOf&&!rk)return Bg.indexOf(lw);for(var PE=0,ow=Bg.length;PE<ow;PE++)if(rk&&Bg[PE][rk]==lw||!rk&&Bg[PE]===lw)return PE;return-1}
function k(Bg,lw,rk){for(var PE=[],ow=[],kp=0,sN=Bg.length;kp<sN;kp++){var Up=lw?Bg[kp][lw]:Bg[kp];D(ow,Up)<0&&PE.push(Bg[kp]);ow[kp]=Up}rk&&(PE=lw?PE.sort(function(Cd,Ve){return Cd[lw]>Ve[lw]}):PE.sort());
return PE}
function E(Bg,lw){for(var rk,PE=lw[0].toUpperCase()+lw.slice(1),ow=0,kp=Fn.length;ow<kp;ow++)if(rk=(rk=Fn[ow])?rk+PE:lw,rk in Bg)return rk;return X}
function a(Bg,lw){var rk=this;this.manager=Bg;this.callback=lw;this.element=Bg.element;this.target=Bg.options.inputTarget;this.domHandler=function(PE){P(Bg.options.enable,[Bg])&&rk.handler(PE)};
this.evEl&&W(this.element,this.evEl,this.domHandler);this.evTarget&&W(this.target,this.evTarget,this.domHandler);this.evWin&&W(S,this.evWin,this.domHandler)}
function q(Bg){var lw;EN?lw=NW:nC?lw=TW:Ar?lw=Ys:lw=ov;return new lw(Bg,w)}
function w(Bg,lw,rk){var PE=rk.pointers.length,ow=rk.changedPointers.length,kp=lw&1&&PE-ow===0;rk.isFirst=!!kp;rk.isFinal=!!(lw&12&&PE-ow===0);kp&&(Bg.session={});rk.eventType=lw;lw=Bg.session;PE=rk.pointers;ow=PE.length;lw.firstInput||(lw.firstInput=I(rk));ow>1&&!lw.firstMultiple?lw.firstMultiple=I(rk):ow===1&&(lw.firstMultiple=!1);kp=lw.firstInput;var sN=(ow=lw.firstMultiple)?ow.center:kp.center,Up=rk.center=Z3(PE);rk.timeStamp=SI();rk.deltaTime=rk.timeStamp-kp.timeStamp;rk.angle=Pg(sN,Up);rk.distance=
yX(sN,Up);kp=rk.center;sN=lw.offsetDelta||{};Up=lw.prevDelta||{};var Cd=lw.prevInput||{};if(rk.eventType===1||Cd.eventType===4)Up=lw.prevDelta={x:Cd.deltaX||0,y:Cd.deltaY||0},sN=lw.offsetDelta={x:kp.x,y:kp.y};rk.deltaX=Up.x+(kp.x-sN.x);rk.deltaY=Up.y+(kp.y-sN.y);rk.offsetDirection=vg(rk.deltaX,rk.deltaY);ow?(kp=ow.pointers,kp=yX(PE[0],PE[1],Vv)/yX(kp[0],kp[1],Vv)):kp=1;rk.scale=kp;ow?(ow=ow.pointers,PE=Pg(PE[1],PE[0],Vv)-Pg(ow[1],ow[0],Vv)):PE=0;rk.rotation=PE;sN=lw.lastInterval||rk;PE=rk.timeStamp-
sN.timeStamp;rk.eventType!=8&&(PE>25||sN.velocity===X)?(kp=sN.deltaX-rk.deltaX,sN=sN.deltaY-rk.deltaY,Up=kp/PE||0,Cd=sN/PE||0,PE=Up,ow=Cd,Up=wk(Up)>wk(Cd)?Up:Cd,kp=vg(kp,sN),lw.lastInterval=rk):(Up=sN.velocity,PE=sN.velocityX,ow=sN.velocityY,kp=sN.direction);rk.velocity=Up;rk.velocityX=PE;rk.velocityY=ow;rk.direction=kp;lw=Bg.element;a:{for(PE=rk.srcEvent.target;PE;){if(PE==lw){PE=!0;break a}PE=PE.parentNode}PE=!1}PE&&(lw=rk.srcEvent.target);rk.target=lw;Bg.emit("hammer.input",rk);Bg.recognize(rk);
Bg.session.prevInput=rk}
function I(Bg){for(var lw=[],rk=0;rk<Bg.pointers.length;rk++)lw[rk]={clientX:XP(Bg.pointers[rk].clientX),clientY:XP(Bg.pointers[rk].clientY)};return{timeStamp:SI(),pointers:lw,center:Z3(lw),deltaX:Bg.deltaX,deltaY:Bg.deltaY}}
function Z3(Bg){var lw=Bg.length;if(lw===1)return{x:XP(Bg[0].clientX),y:XP(Bg[0].clientY)};for(var rk=0,PE=0,ow=0;ow<lw;ow++)rk+=Bg[ow].clientX,PE+=Bg[ow].clientY;return{x:XP(rk/lw),y:XP(PE/lw)}}
function vg(Bg,lw){return Bg===lw?1:wk(Bg)>=wk(lw)?Bg>0?2:4:lw>0?8:16}
function yX(Bg,lw,rk){rk||(rk=Ps);var PE=lw[rk[0]]-Bg[rk[0]];Bg=lw[rk[1]]-Bg[rk[1]];return Math.sqrt(PE*PE+Bg*Bg)}
function Pg(Bg,lw,rk){rk||(rk=Ps);return Math.atan2(lw[rk[1]]-Bg[rk[1]],lw[rk[0]]-Bg[rk[0]])*180/Math.PI}
function ov(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;a.apply(this,arguments)}
function NW(){this.evEl=hT;this.evWin=EV;a.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function TW(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};a.apply(this,arguments)}
function Ys(){a.apply(this,arguments);var Bg=A(this.handler,this);this.touch=new TW(this.manager,Bg);this.mouse=new ov(this.manager,Bg)}
function Go(Bg,lw){this.manager=Bg;this.set(lw)}
function $U(Bg){if(Bg.indexOf("none")>-1)return"none";var lw=Bg.indexOf("pan-x")>-1,rk=Bg.indexOf("pan-y")>-1;return lw&&rk?"pan-x pan-y":lw||rk?lw?"pan-x":"pan-y":Bg.indexOf("manipulation")>-1?"manipulation":"auto"}
function LL(Bg){this.id=vG++;this.manager=null;this.options=f(Bg||{},this.defaults);Bg=this.options.enable;this.options.enable=Bg===X?!0:Bg;this.state=1;this.simultaneous={};this.requireFail=[]}
function fd(Bg){return Bg==16?"down":Bg==8?"up":Bg==2?"left":Bg==4?"right":""}
function Qv(Bg,lw){return(lw=lw.manager)?lw.get(Bg):Bg}
function t8(){LL.apply(this,arguments)}
function Wp(){t8.apply(this,arguments);this.pY=this.pX=null}
function ON(){t8.apply(this,arguments)}
function KL(){LL.apply(this,arguments);this._input=this._timer=null}
function HE(){t8.apply(this,arguments)}
function o8(){t8.apply(this,arguments)}
function xU(){LL.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function eL(Bg,lw){lw=lw||{};var rk=lw.recognizers;lw.recognizers=rk===X?eL.defaults.preset:rk;return new Ld(Bg,lw)}
function Ld(Bg,lw){lw=lw||{};this.options=f(lw,eL.defaults);this.options.inputTarget=this.options.inputTarget||Bg;this.handlers={};this.session={};this.recognizers=[];this.element=Bg;this.input=q(this);this.touchAction=new Go(this,this.options.touchAction);QV(this,!0);b(lw.recognizers,function(rk){var PE=this.add(new rk[0](rk[1]));rk[2]&&PE.recognizeWith(rk[2]);rk[3]&&PE.requireFailure(rk[2])},this)}
function QV(Bg,lw){var rk=Bg.element;b(Bg.options.cssProps,function(PE,ow){rk.style[E(rk.style,ow)]=lw?PE:""})}
function YU(Bg,lw){var rk=H.createEvent("Event");rk.initEvent(Bg,!0,!0);rk.gesture=lw;lw.target.dispatchEvent(rk)}
var Fn=" webkit moz MS ms o".split(" "),vE=H.createElement("div"),XP=Math.round,wk=Math.abs,SI=Date.now,vG=1,Sa=/mobile|tablet|ip(ad|hone|od)|android/i,Ar="ontouchstart"in S,EN=E(S,"PointerEvent")!==X,nC=Ar&&Sa.test(navigator.userAgent),Ps=["x","y"],Vv=["clientX","clientY"];a.prototype={handler:function(){},
destroy:function(){this.evEl&&y(this.element,this.evEl,this.domHandler);this.evTarget&&y(this.target,this.evTarget,this.domHandler);this.evWin&&y(S,this.evWin,this.domHandler)}};
var CP={mousedown:1,mousemove:2,mouseup:4};O(ov,a,{handler:function(Bg){var lw=CP[Bg.type];lw&1&&Bg.button===0&&(this.pressed=!0);lw&2&&Bg.which!==1&&(lw=4);this.pressed&&this.allow&&(lw&4&&(this.pressed=!1),this.callback(this.manager,lw,{pointers:[Bg],changedPointers:[Bg],pointerType:"mouse",srcEvent:Bg}))}});
var Mj={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},r2={2:"touch",3:"pen",4:"mouse",5:"kinect"},hT="pointerdown",EV="pointermove pointerup pointercancel";S.MSPointerEvent&&(hT="MSPointerDown",EV="MSPointerMove MSPointerUp MSPointerCancel");O(NW,a,{handler:function(Bg){var lw=this.store,rk=!1,PE=Bg.type.toLowerCase().replace("ms","");PE=Mj[PE];var ow=r2[Bg.pointerType]||Bg.pointerType;PE&1&&(Bg.button===0||ow=="touch")?lw.push(Bg):PE&12&&(rk=!0);var kp=D(lw,Bg.pointerId,"pointerId");
kp<0||(lw[kp]=Bg,this.callback(this.manager,PE,{pointers:lw,changedPointers:[Bg],pointerType:ow,srcEvent:Bg}),rk&&lw.splice(kp,1))}});
var vW={touchstart:1,touchmove:2,touchend:4,touchcancel:8};O(TW,a,{handler:function(Bg){var lw=vW[Bg.type];var rk=Array.prototype.slice.call(Bg.touches,0);var PE=this.targetIds;if(lw&3&&rk.length===1)PE[rk[0].identifier]=!0,PE=[rk,rk];else{var ow,kp=Array.prototype.slice.call(Bg.targetTouches,0),sN=Array.prototype.slice.call(Bg.changedTouches,0),Up=[];if(lw===1)for(rk=0,ow=kp.length;rk<ow;rk++)PE[kp[rk].identifier]=!0;rk=0;for(ow=sN.length;rk<ow;rk++)PE[sN[rk].identifier]&&Up.push(sN[rk]),lw&12&&
delete PE[sN[rk].identifier];PE=Up.length?[k(kp.concat(Up),"identifier",!0),Up]:void 0}PE&&this.callback(this.manager,lw,{pointers:PE[0],changedPointers:PE[1],pointerType:"touch",srcEvent:Bg})}});
O(Ys,a,{handler:function(Bg,lw,rk){var PE=rk.pointerType=="mouse";if(rk.pointerType=="touch")this.mouse.allow=!1;else if(PE&&!this.mouse.allow)return;lw&12&&(this.mouse.allow=!0);this.callback(Bg,lw,rk)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var pA=E(vE.style,"touchAction"),$_=pA!==X;Go.prototype={set:function(Bg){Bg=="compute"&&(Bg=this.compute());$_&&(this.manager.element.style[pA]=Bg);this.actions=Bg.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Bg=[];b(this.manager.recognizers,function(lw){P(lw.options.enable,[lw])&&(Bg=Bg.concat(lw.getTouchAction()))});
return $U(Bg.join(" "))},
preventDefaults:function(Bg){if(!$_){var lw=Bg.srcEvent;Bg=Bg.offsetDirection;if(this.manager.session.prevented)lw.preventDefault();else{var rk=this.actions,PE=rk.indexOf("none")>-1,ow=rk.indexOf("pan-y")>-1;rk=rk.indexOf("pan-x")>-1;if(PE||ow&&rk||ow&&Bg&6||rk&&Bg&24)return this.preventSrc(lw)}}},
preventSrc:function(Bg){this.manager.session.prevented=!0;Bg.preventDefault()}};
LL.prototype={defaults:{},set:function(Bg){F(this.options,Bg);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Bg){if(n(Bg,"recognizeWith",this))return this;var lw=this.simultaneous;Bg=Qv(Bg,this);lw[Bg.id]||(lw[Bg.id]=Bg,Bg.recognizeWith(this));return this},
dropRecognizeWith:function(Bg){if(n(Bg,"dropRecognizeWith",this))return this;Bg=Qv(Bg,this);delete this.simultaneous[Bg.id];return this},
requireFailure:function(Bg){if(n(Bg,"requireFailure",this))return this;var lw=this.requireFail;Bg=Qv(Bg,this);D(lw,Bg)===-1&&(lw.push(Bg),Bg.requireFailure(this));return this},
dropRequireFailure:function(Bg){if(n(Bg,"dropRequireFailure",this))return this;Bg=Qv(Bg,this);Bg=D(this.requireFail,Bg);Bg>-1&&this.requireFail.splice(Bg,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Bg){return!!this.simultaneous[Bg.id]},
emit:function(Bg){function lw(ow){rk.manager.emit(rk.options.event+(ow?PE&16?"cancel":PE&8?"end":PE&4?"move":PE&2?"start":"":""),Bg)}
var rk=this,PE=this.state;PE<8&&lw(!0);lw();PE>=8&&lw(!0)},
tryEmit:function(Bg){if(this.canEmit())return this.emit(Bg);this.state=32},
canEmit:function(){for(var Bg=0;Bg<this.requireFail.length;Bg++)if(!(this.requireFail[Bg].state&33))return!1;return!0},
recognize:function(Bg){Bg=F({},Bg);P(this.options.enable,[this,Bg])?(this.state&56&&(this.state=1),this.state=this.process(Bg),this.state&30&&this.tryEmit(Bg)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
O(t8,LL,{defaults:{pointers:1},attrTest:function(Bg){var lw=this.options.pointers;return lw===0||Bg.pointers.length===lw},
process:function(Bg){var lw=this.state,rk=Bg.eventType,PE=lw&6;Bg=this.attrTest(Bg);return PE&&(rk&8||!Bg)?lw|16:PE||Bg?rk&4?lw|8:lw&2?lw|4:2:32}});
O(Wp,t8,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Bg=this.options.direction;if(Bg===30)return["none"];var lw=[];Bg&6&&lw.push("pan-y");Bg&24&&lw.push("pan-x");return lw},
directionTest:function(Bg){var lw=this.options,rk=!0,PE=Bg.distance,ow=Bg.direction,kp=Bg.deltaX,sN=Bg.deltaY;ow&lw.direction||(lw.direction&6?(ow=kp===0?1:kp<0?2:4,rk=kp!=this.pX,PE=Math.abs(Bg.deltaX)):(ow=sN===0?1:sN<0?8:16,rk=sN!=this.pY,PE=Math.abs(Bg.deltaY)));Bg.direction=ow;return rk&&PE>lw.threshold&&ow&lw.direction},
attrTest:function(Bg){return t8.prototype.attrTest.call(this,Bg)&&(this.state&2||!(this.state&2)&&this.directionTest(Bg))},
emit:function(Bg){this.pX=Bg.deltaX;this.pY=Bg.deltaY;var lw=fd(Bg.direction);lw&&this.manager.emit(this.options.event+lw,Bg);this._super.emit.call(this,Bg)}});
O(ON,t8,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Bg){return this._super.attrTest.call(this,Bg)&&(Math.abs(Bg.scale-1)>this.options.threshold||this.state&2)},
emit:function(Bg){this._super.emit.call(this,Bg);Bg.scale!==1&&this.manager.emit(this.options.event+(Bg.scale<1?"in":"out"),Bg)}});
O(KL,LL,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Bg){var lw=this.options,rk=Bg.pointers.length===lw.pointers,PE=Bg.distance<lw.threshold,ow=Bg.deltaTime>lw.time;this._input=Bg;if(!PE||!rk||Bg.eventType&12&&!ow)this.reset();else if(Bg.eventType&1)this.reset(),this._timer=Z(function(){this.state=8;this.tryEmit()},lw.time,this);
else if(Bg.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Bg){this.state===8&&(Bg&&Bg.eventType&4?this.manager.emit(this.options.event+"up",Bg):(this._input.timeStamp=SI(),this.manager.emit(this.options.event,this._input)))}});
O(HE,t8,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Bg){return this._super.attrTest.call(this,Bg)&&(Math.abs(Bg.rotation)>this.options.threshold||this.state&2)}});
O(o8,t8,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Wp.prototype.getTouchAction.call(this)},
attrTest:function(Bg){var lw=this.options.direction;if(lw&30)var rk=Bg.velocity;else lw&6?rk=Bg.velocityX:lw&24&&(rk=Bg.velocityY);return this._super.attrTest.call(this,Bg)&&lw&Bg.direction&&wk(rk)>this.options.velocity&&Bg.eventType&4},
emit:function(Bg){var lw=fd(Bg.direction);lw&&this.manager.emit(this.options.event+lw,Bg);this.manager.emit(this.options.event,Bg)}});
O(xU,LL,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Bg){var lw=this.options,rk=Bg.pointers.length===lw.pointers,PE=Bg.distance<lw.threshold,ow=Bg.deltaTime<lw.time;this.reset();if(Bg.eventType&1&&this.count===0)return this.failTimeout();if(PE&&ow&&rk){if(Bg.eventType!=4)return this.failTimeout();rk=this.pTime?Bg.timeStamp-this.pTime<lw.interval:!0;PE=!this.pCenter||yX(this.pCenter,Bg.center)<lw.posThreshold;this.pTime=Bg.timeStamp;this.pCenter=Bg.center;PE&&rk?this.count+=1:this.count=1;this._input=Bg;if(this.count%lw.taps===0)return this.hasRequireFailures()?
(this._timer=Z(function(){this.state=8;this.tryEmit()},lw.interval,this),2):8}return 32},
failTimeout:function(){this._timer=Z(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))}});
eL.VERSION="2.0.2";eL.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[HE,{enable:!1}],[ON,{enable:!1},["rotate"]],[o8,{direction:6}],[Wp,{direction:6},["swipe"]],[xU],[xU,{event:"doubletap",taps:2},["tap"]],[KL]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Ld.prototype={set:function(Bg){F(this.options,Bg);return this},
stop:function(Bg){this.session.stopped=Bg?2:1},
recognize:function(Bg){var lw=this.session;if(!lw.stopped){this.touchAction.preventDefaults(Bg);var rk=this.recognizers,PE=lw.curRecognizer;if(!PE||PE&&PE.state&8)PE=lw.curRecognizer=null;for(var ow=0,kp=rk.length;ow<kp;ow++){var sN=rk[ow];lw.stopped===2||PE&&sN!=PE&&!sN.canRecognizeWith(PE)?sN.reset():sN.recognize(Bg);!PE&&sN.state&14&&(PE=lw.curRecognizer=sN)}}},
get:function(Bg){if(Bg instanceof LL)return Bg;for(var lw=this.recognizers,rk=0;rk<lw.length;rk++)if(lw[rk].options.event==Bg)return lw[rk];return null},
add:function(Bg){if(n(Bg,"add",this))return this;var lw=this.get(Bg.options.event);lw&&this.remove(lw);this.recognizers.push(Bg);Bg.manager=this;this.touchAction.update();return Bg},
remove:function(Bg){if(n(Bg,"remove",this))return this;var lw=this.recognizers;Bg=this.get(Bg);lw.splice(D(lw,Bg),1);this.touchAction.update();return this},
on:function(Bg,lw){var rk=this.handlers;b(t(Bg),function(PE){rk[PE]=rk[PE]||[];rk[PE].push(lw)});
return this},
off:function(Bg,lw){var rk=this.handlers;b(t(Bg),function(PE){lw?rk[PE].splice(D(rk[PE],lw),1):delete rk[PE]});
return this},
emit:function(Bg,lw){this.options.domEvents&&YU(Bg,lw);var rk=this.handlers[Bg]&&this.handlers[Bg].slice();if(rk&&rk.length){lw.type=Bg;lw.preventDefault=function(){lw.srcEvent.preventDefault()};
Bg=0;for(var PE=rk.length;Bg<PE;Bg++)rk[Bg](lw)}},
destroy:function(){this.element&&QV(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
F(eL,{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:Ld,Input:a,TouchAction:Go,Recognizer:LL,AttrRecognizer:t8,Tap:xU,Pan:Wp,Swipe:o8,Pinch:ON,Rotate:HE,Press:KL,on:W,off:y,each:b,merge:f,extend:F,inherit:O,bindFn:A,prefixed:E});
S[M]=eL})(window,document,"Hammer");
return window.Hammer}.call({});
J.DOCUMENT=p;p[lFv]=J}return p[lFv]};/*

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

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
*/
_.QG({_template:function(){if(t_n!==void 0)return t_n;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;gr8===void 0&&(gr8=document.createElement("template"));var H=gr8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return t_n=p},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.rL,_.la],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=_.rL.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 J=this.textarea;J&&(J.value!==p&&(J.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 J=_.f1(p).path;this.value=J?J[0].value:p.target.value},
_constrain:function(p){var J;p=p||[""];for(J=this.maxRows>0&&p.length>this.maxRows?p.slice(0,this.maxRows):p.slice(0);this.rows>0&&J.length<this.rows;)J.push("");return J.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 h68;var DRE;_.QG({_template:function(){if(DRE!==void 0)return DRE;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
var J=p.content,S=J.insertBefore;h68===void 0&&(h68=document.createElement("template"));var H=h68;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return DRE=p},
is:"tp-yt-iron-collapse",behaviors:[_.wL],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,J){p=p==="auto"?"":p;J=J&&!this.noAnimation&&this.isAttached&&this._desiredSize!==p;this._desiredSize=p;this._updateTransition(!1);J&&(J=this._calcSize(),p===""&&(this.style[this._dimensionMax]="",p=this._calcSize()),this.style[this._dimensionMax]=J,this.scrollTop=this.scrollTop,this._updateTransition(!0),J=p!==J);this.style[this._dimensionMax]=p;J||this._transitionEnd()},
enableTransition:function(p){_.dS._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){_.f1(p).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var k5E;var N78;var T7o=void 0,dRv={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,J=_.f1((p=this.hostElement)!=null?p:
this).parentNode;J&&J.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(J=J.host);return J},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,J=window.getComputedStyle((p=this.hostElement)!=null?p:this);p=window.getComputedStyle(this.sizingTarget);var S,H,M;this._fitInfo={inlineStyle:{top:((S=this.hostElement)!=null?S:this).style.top||"",left:((H=this.hostElement)!=null?H:this).style.left||"",position:((M=this.hostElement)!=null?M:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:J.top!=="auto"?"top":J.bottom!=="auto"?"bottom":null,horizontally:J.left!=="auto"?"left":J.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(J.marginTop,10)||0,right:parseInt(J.marginRight,10)||0,bottom:parseInt(J.marginBottom,10)||0,left:parseInt(J.marginLeft,10)||0}}}},
resetFit:function(){var p=this._fitInfo||{},J;for(J in p.sizerInlineStyle)this.sizingTarget.style[J]=p.sizerInlineStyle[J];for(J in p.inlineStyle){var S=void 0;((S=this.hostElement)!=null?S:this).style[J]=p.inlineStyle[J]}this._fitInfo=null},
refit:function(){var p=this.sizingTarget.scrollLeft,J=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=p;this.sizingTarget.scrollTop=J},
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 J;((J=this.hostElement)!=null?J:this).style.left="0px";var S;((S=this.hostElement)!=null?S:this).style.top="0px";var H,M=((H=this.hostElement)!=null?H:this).getBoundingClientRect();J=this.__getNormalizedRect(this.positionTarget);H=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(H={left:H.left+24,right:H.right-24,top:H.top+24,bottom:H.bottom-24});if(this.expandSizingTargetForScrollbars){var X=this.sizingTarget.offsetWidth;var Z=this.sizingTarget.offsetHeight;var n=this.sizingTarget.clientWidth;var b=this.sizingTarget.clientHeight}p=this._fitInfo.margin;J=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:M.width+p.left+p.right,height:M.height+p.top+p.bottom},M,J,H);var F=J.left+p.left,f=J.top+p.top;S=Math.min(H.right-p.right,F+M.width);var O=Math.min(H.bottom-
p.bottom,f+M.height);F=Math.max(H.left+p.left,Math.min(F,S-this._fitInfo.sizedBy.minWidth));f=Math.max(H.top+p.top,Math.min(f,O-this._fitInfo.sizedBy.minHeight));S=Math.max(S-F,this._fitInfo.sizedBy.minWidth);O=Math.max(O-f,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=S+"px";this.sizingTarget.style.maxHeight=O+"px";F-=M.left;M=f-M.top;var A;((A=this.hostElement)!=null?A:this).style.left=F+"px";var P;((P=this.hostElement)!=null?P:this).style.top=M+"px";if(this.expandSizingTargetForScrollbars){A=
this.sizingTarget.offsetHeight;Z=A-this.sizingTarget.clientHeight-(Z-b);if(Z>0){this.sizingTarget.style.maxHeight=Math.min(H.height-p.top-p.bottom,O+Z)+"px";Z=this.sizingTarget.offsetHeight;b=Z-A;var W;J.verticalAlign==="top"?W=M:J.verticalAlign==="middle"?W=M-b/2:J.verticalAlign==="bottom"&&(W=M-b);W=Math.max(H.top+p.top,Math.min(W,H.bottom-p.bottom-Z));var y;((y=this.hostElement)!=null?y:this).style.top=W+"px"}W=this.sizingTarget.offsetWidth;X=W-this.sizingTarget.clientWidth-(X-n);if(X>0){T7o!==
void 0?n=T7o:(n=document.createElement("div"),Object.assign(n.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),y=document.createElement("div"),y.style.width="200px",y.style.height="200px",n.appendChild(y),document.body.appendChild(n),T7o=Math.abs(n.offsetWidth-100)>1?n.offsetWidth-n.clientWidth:0,document.body.removeChild(n),n=T7o);this.sizingTarget.style.maxWidth=Math.min(H.width-p.left-p.right,S+X-n)+"px";X=this.sizingTarget.offsetWidth+n;n=X-W;var t;
J.horizontalAlign==="left"?t=F:J.horizontalAlign==="center"?t=F-n/2:J.horizontalAlign==="right"&&(t=F-n);t=Math.max(H.left+p.left,Math.min(t,H.right-p.right-X));var D;((D=this.hostElement)!=null?D:this).style.left=t+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var p=this._fitInfo;if(!p.positionedBy.vertically){var J;((J=this.hostElement)!=null?J:this).style.position="fixed";var S;((S=this.hostElement)!=null?S:this).style.top="0px"}if(!p.positionedBy.horizontally){var H;((H=this.hostElement)!=null?H:this).style.position="fixed";var M;((M=this.hostElement)!=null?M:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var X;J=((X=this.hostElement)!=null?X:this).getBoundingClientRect();
p.sizedBy.height||this.__sizeDimension(J,p.positionedBy.vertically,"top","bottom","Height");p.sizedBy.width||this.__sizeDimension(J,p.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(p,J,S,H,M){this.__sizeDimension(p,J,S,H,M)},
__sizeDimension:function(p,J,S,H,M){var X=this._fitInfo,Z=this.__getNormalizedRect(this.fitInto);Z=M==="Width"?Z.width:Z.height;p=(J=J===H)?Z-p[H]:p[S];S=X.margin[J?S:H];H="offset"+M;var n;X=((n=this.hostElement)!=null?n:this)[H]-this.sizingTarget[H];this.sizingTarget.style["max"+M]=Z-S-p-X+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var p=this._fitInfo.positionedBy;if(!p.vertically||!p.horizontally){var J;((J=this.hostElement)!=null?J:this).style.position="fixed";if(!p.vertically){var S;((S=this.hostElement)!=null?S:this).style.top="0px"}if(!p.horizontally){var H;((H=this.hostElement)!=null?H:this).style.left="0px"}var M;J=((M=this.hostElement)!=null?M:this).getBoundingClientRect();M=this.__getNormalizedRect(this.fitInto);if(!p.vertically){S=M.top-J.top+(M.height-
J.height)/2;var X;((X=this.hostElement)!=null?X:this).style.top=S+"px"}if(!p.horizontally){p=M.left-J.left+(M.width-J.width)/2;var Z;((Z=this.hostElement)!=null?Z: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,J,S){return Math.abs(Math.min(0,p.top)+Math.min(0,S.bottom-(p.top+J.height)))*J.width+Math.abs(Math.min(0,p.left)+Math.min(0,S.right-(p.left+J.width)))*J.height},
__getPosition:function(p,J,S,H,M,X){var Z=[{verticalAlign:"top",horizontalAlign:"left",top:M.top+this.verticalOffset,left:M.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:M.top+this.verticalOffset,left:M.right-S.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:M.bottom-S.height-this.verticalOffset,left:M.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:M.bottom-S.height-this.verticalOffset,left:M.right-S.width-
this.horizontalOffset}];if(this.noOverlap){for(var n=0,b=Z.length;n<b;n++){var F={},f;for(f in Z[n])F[f]=Z[n][f];Z.push(F)}Z[0].top=Z[1].top+=M.height;Z[2].top=Z[3].top-=M.height;Z[4].left=Z[6].left+=M.width;Z[5].left=Z[7].left-=M.width}J=J==="auto"?null:J;p=p==="auto"?null:p;p&&p!=="center"||(Z.push({verticalAlign:"top",horizontalAlign:"center",top:M.top+this.verticalOffset+(this.noOverlap?M.height:0),left:M.left-H.width/2+M.width/2+this.horizontalOffset}),Z.push({verticalAlign:"bottom",horizontalAlign:"center",
top:M.bottom-S.height-this.verticalOffset-(this.noOverlap?M.height:0),left:M.left-H.width/2+M.width/2+this.horizontalOffset}));J&&J!=="middle"||(Z.push({verticalAlign:"middle",horizontalAlign:"left",top:M.top-H.height/2+M.height/2+this.verticalOffset,left:M.left+this.horizontalOffset+(this.noOverlap?M.width:0)}),Z.push({verticalAlign:"middle",horizontalAlign:"right",top:M.top-H.height/2+M.height/2+this.verticalOffset,left:M.right-S.width-this.horizontalOffset-(this.noOverlap?M.width:0)}));J==="middle"&&
p==="center"&&Z.push({verticalAlign:"middle",horizontalAlign:"center",top:M.top-H.height/2+M.height/2+this.verticalOffset,left:M.left-H.width/2+M.width/2+this.horizontalOffset});for(n=0;n<Z.length;n++){H=Z[n];M=H.verticalAlign===J;b=H.horizontalAlign===p;if(!this.dynamicAlign&&!this.noOverlap&&M&&b){var O=H;break}F=(!J||M)&&(!p||b);if(this.dynamicAlign||F){H.offscreenArea=this.__getOffscreenArea(H,S,X);if(H.offscreenArea===0&&F){O=H;break}H.alignsOk=M+b;O=O||H;M=H.offscreenArea-O.offscreenArea;if(M<
0||M===0&&H.alignsOk>O.alignsOk)O=H}}return O}};/*

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 RW,uhn,lvp;RW=Element.prototype;uhn=RW.matches||RW.matchesSelector||RW.mozMatchesSelector||RW.msMatchesSelector||RW.oMatchesSelector||RW.webkitMatchesSelector;lvp=function(){};
_.qjn=function(p){var J=V_U,S=[];return J._collectTabbableNodes(p,S)?J._sortByTabIndex(S):S};
_.R=lvp.prototype;_.R.isFocusable=function(p){return uhn.call(p,"input, select, textarea, button, object")?uhn.call(p,":not([disabled])"):uhn.call(p,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.R._normalizedTabIndex=function(p){return this.isFocusable(p)?(p=p.getAttribute("tabindex")||0,Number(p)):-1};
_.R._collectTabbableNodes=function(p,J){if(p.nodeType!==Node.ELEMENT_NODE||!this._isVisible(p))return!1;var S=this._normalizedTabIndex(p),H=S>0;S>=0&&J.push(p);if(p.localName==="content"||p.localName==="slot")S=_.f1(p).getDistributedNodes();else{var M;S=((M=_.f1(p).shadowRoot)!=null?M:_.f1(p.root||p)).children}for(p=0;p<S.length;p++)H=this._collectTabbableNodes(S[p],J)||H;return H};
_.R._isVisible=function(p){var J=p.style;return J.visibility!=="hidden"&&J.display!=="none"?(J=window.getComputedStyle(p),J.visibility!=="hidden"&&J.display!=="none"):!1};
_.R._sortByTabIndex=function(p){var J=p.length;if(J<2)return p;var S=Math.ceil(J/2);J=this._sortByTabIndex(p.slice(0,S));p=this._sortByTabIndex(p.slice(S));return this._mergeSortByTabIndex(J,p)};
_.R._mergeSortByTabIndex=function(p,J){for(var S=[];p.length>0&&J.length>0;)this._hasLowerTabOrder(p[0],J[0])?S.push(J.shift()):S.push(p.shift());return S.concat(p,J)};
_.R._hasLowerTabOrder=function(p,J){p=Math.max(p.tabIndex,0);J=Math.max(J.tabIndex,0);return p===0||J===0?J>p:p>J};
var V_U=new lvp;var avE;var Er8;_.QG({_template:function(){if(Er8!==void 0)return Er8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;avE===void 0&&(avE=document.createElement("template"));var H=avE;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return Er8=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&&_.f1(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.f1(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 K7=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;j5(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)};
K7.prototype._bringOverlayAtIndexToFront=function(p){var J=this._overlays[p];if(J){var S=this._overlays.length-1,H=this._overlays[S];H&&this._shouldBeBehindOverlay(J,H)&&S--;if(!(p>=S)){H=Math.max(this._getZ(_.YjE(this)),this._minimumZ);for(this._getZ(J)<=H&&this._applyOverlayZ(J,H);p<S;)this._overlays[p]=this._overlays[p+1],p++;this._overlays[S]=J}}};
K7.prototype.addOverlay=function(p){var J=this._overlays.indexOf(p);if(J>=0)this._bringOverlayAtIndexToFront(J);else{J=this._overlays.length;var S=this._overlays[J-1],H=Math.max(this._getZ(S),this._minimumZ),M=this._getZ(p);S&&this._shouldBeBehindOverlay(p,S)&&(this._applyOverlayZ(S,H),J--,H=Math.max(this._getZ(this._overlays[J-1]),this._minimumZ));M<=H&&this._applyOverlayZ(p,H);this._overlays.splice(J,0,p)}this.trackBackdrop()};
K7.prototype.removeOverlay=function(p){p=this._overlays.indexOf(p);p!==-1&&(this._overlays.splice(p,1),this.trackBackdrop())};
_.YjE=function(p){return p._overlays[p._overlays.length-1]};
_.R=K7.prototype;_.R.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()};
_.R._overlayWithBackdrop=function(){for(var p=this._overlays.length-1;p>=0;p--)if(this._overlays[p].withBackdrop)return this._overlays[p]};
_.R._getZ=function(p){var J=this._minimumZ;if(p){var S,H,M=Number(((S=p.hostElement)!=null?S:p).style.zIndex||window.getComputedStyle((H=p.hostElement)!=null?H:p).zIndex);M===M&&(J=M)}return J};
_.R._setZ=function(p,J){var S;((S=p.hostElement)!=null?S:p).style.zIndex=J};
_.R._applyOverlayZ=function(p,J){this._setZ(p,J+2)};
_.R._overlayInPath=function(p){p=p||[];for(var J=0;J<p.length;J++){var S=void 0;if(((S=p[J].polymerController)!=null?S:p[J])._manager===this)return p[J]}};
_.R._onCaptureClick=function(p){var J=this._overlays.length-1;if(J!==-1)for(var S=_.f1(p).path,H,M;(H=this._overlays[J])&&this._overlayInPath(S)!==((M=H.hostElement)!=null?M:H);)if(H._onCaptureClick(p),H.allowClickThrough)J--;else break};
_.R._onCaptureFocus=function(p){var J=_.YjE(this);J&&J._onCaptureFocus(p)};
_.R._onCaptureKeyDown=function(p){var J=_.YjE(this);J&&(_.ua.keyboardEventMatchesKeys(p,"esc")?J._onCaptureEsc(p):_.ua.keyboardEventMatchesKeys(p,"tab")&&J._onCaptureTab(p))};
_.R._shouldBeBehindOverlay=function(p,J){return!p.alwaysOnTop&&J.alwaysOnTop&&!J.contains(p)};
_.vh.Object.defineProperties(K7.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&&_.f1(p.root).activeElement;)p=_.f1(p.root).activeElement;return p}}});
_.ZN=new K7;var A3X=0,PBi=0,zh9=null,$EL=[],OB=["wheel","mousewheel","DOMMouseScroll"],oeL;_.z("web_no_lock_on_touchstart_killswitch")&&(OB.push("touchstart"),OB.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;_.n7={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:_.ZN},_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||_.f1((p=this.hostElement)!=null?p:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var p;return _.qjn((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=_.f1((p=this.hostElement)!=null?p:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var p;_.f1((p=this.hostElement)!=null?p:this).unobserveNodes(this._observer)}this._observer=null;for(var J in this.__rafs)this.__rafs[J]!==null&&cancelAnimationFrame(this.__rafs[J]);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 J;((J=this.hostElement)!=null?J:this).style.display="none"}},
_openedChanged:function(p){if(p){var J;((J=this.hostElement)!=null?J:this).removeAttribute("aria-hidden")}else{var S;((S=this.hostElement)!=null?S: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 J;((J=this.hostElement)!=null?J:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var S;((S=this.hostElement)!=null?S: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 J;((J=this.hostElement)!=null?J:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var p,J;((p=this.hostElement)!=null?p:this).style.transition=((J=this.hostElement)!=null?J:this).style.webkitTransition="none";var S,H;((S=this.hostElement)!=null?S:this).style.transform=((H=this.hostElement)!=null?H:this).style.webkitTransform="none";var M;((M=this.hostElement)!=null?M:this).style.display=""},
_finishPositioning:function(){var p;((p=this.hostElement)!=null?p:this).style.display="none";this.scrollTop=this.scrollTop;var J,S;((J=this.hostElement)!=null?J:this).style.transition=((S=this.hostElement)!=null?S:this).style.webkitTransition="";var H,M;((H=this.hostElement)!=null?H:this).style.transform=((M=this.hostElement)!=null?M:this).style.webkitTransform="";var X;((X=this.hostElement)!=null?X: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,J;if(!(J=p===document.body))a:{for(;p;p=p.assignedSlot||p.parentNode||p.host)if(p===this){J=!0;break a}J=!1}J&&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 J=_.f1(p).path;J.indexOf(this)===-1?(p.stopPropagation(),this._applyFocus()):this._focusedChild=J[0]}},
_onCaptureEsc:function(p){this.noCancelOnEscKey||this.cancel(p)},
_onCaptureTab:function(p){if(this.withBackdrop){this.__ensureFirstLastFocusables();var J=p.shiftKey,S=J?this.__firstFocusableNode:this.__lastFocusableNode;J=J?this.__lastFocusableNode:this.__firstFocusableNode;if(S===J)S=!0;else{var H=this._manager.deepActiveElement;S=H===S||H===this}S&&(p.preventDefault(),this._focusedChild=J,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,J){var S=this.__rafs;S[p]!==null&&cancelAnimationFrame(S[p]);S[p]=requestAnimationFrame(function(){S[p]=null;J.call(this)}.bind(this))},
__updateScrollObservers:function(p,J,S){p&&J&&this.__isValidScrollAction(S)?(S==="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),oeL=_._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),oeL=_._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(pz)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(J){J.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||_.f1(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)}};
_.Gb=[dRv,_.wL,_.n7];_.QG({_template:function(){if(N78!==void 0)return N78;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;k5E===void 0&&(k5E=document.createElement("template"));var H=k5E;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return N78=p},
is:"tp-yt-iron-dropdown",behaviors:[_.la,_.ua,_.Gb,iuo],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=_.f1(this.$.content).getDistributedNodes(),J=0,S=p.length;J<S;J++)if(p[J].nodeType===Node.ELEMENT_NODE)return p[J]},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(),_.n7._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.n7._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.n7._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var p=this.containedElement,J=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),S=0;S<J.length;S++)J[S].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():_.n7._applyFocus.apply(this,arguments)}});var rdm;var j18;/*

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 wjM=new _.EM({type:"iconset"});
_.QG({_template:function(){if(j18!==void 0)return j18;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;rdm===void 0&&(rdm=document.createElement("template"));
var H=rdm;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return j18=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&&_.f1(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=wjM.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,_.f1(this.root).appendChild(this._img)}});var xR8;var cd8;_.QG({_template:function(){if(cd8!==void 0)return cd8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
var J=p.content,S=J.insertBefore;xR8===void 0&&(xR8=document.createElement("template"));var H=xR8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return cd8=p},
is:"tp-yt-iron-input",behaviors:[_.rL],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(){_.ip.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.f1(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.f1(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,J){J&&(p===void 0?J.value=null:p!==J.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 J=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&&J)},
_onKeypress:function(p){if(this.allowedPattern||this.inputElement.type==="number"){var J=this._patternRegExp;if(J&&!(p.metaKey||p.ctrlKey||p.altKey)){this._patternAlreadyChecked=!0;var S=String.fromCharCode(p.charCode);this._isPrintable(p)&&!J.test(S)&&(p.preventDefault(),this._announceInvalidCharacter("Invalid character "+S+" not entered."))}}},
_checkPatternValidity:function(){var p=this._patternRegExp;if(!p)return!0;for(var J=0;J<this.inputElement.value.length;J++)if(!p.test(this.inputElement.value[J]))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=_.rL.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 Ivn;var Lk8;var pzn=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Jeq=pzn&&pzn[1]>=8;
_.QG({_template:function(){if(Lk8!==void 0)return Lk8;var p=document.createElement("template");_.C(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 aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Ivn===void 0&&(Ivn=document.createElement("template"));var H=Ivn;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return Lk8=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},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[Yov,_.wL,_.X_8,lmL],_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 _.f1(_.f1(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 J=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
p=this._iterateItems(function(S,H){J+=this._getPhysicalSizeIncrement(S);if(J>this._scrollPosition)return this.grid?H-H%this._itemsPerRow:H;if(this.grid&&this._virtualCount-1===H)return H-H%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 J=this._physicalTop+this._scrollOffset;this._iterateItems(function(S,H){J<this._scrollBottom&&(p=H);J+=this._getPhysicalSizeIncrement(S)})}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,_.$2);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,_.$2)},
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)),J=p-this._scrollPosition,S=J>=0;this._scrollPosition=p;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(J)>this._physicalSize&&this._physicalSize>0?(J-=this._scrollOffset,S=Math.round(J/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=S,this._physicalStart+=S,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(p=this._getReusables(S),S?(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,S?null:p.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),cJ))},
_getReusables:function(p){var J=[],S=this._hiddenContentSize*this._ratio,H=this._virtualStart,M=this._virtualEnd,X=this._physicalCount,Z=this._physicalTop+this._scrollOffset;var n=this._physicalBottom+this._scrollOffset;var b=this._scrollPosition,F=this._scrollBottom;if(p){var f=this._physicalStart;n=b-Z}else f=this._physicalEnd,n-=F;for(;;){var O=this._getPhysicalSizeIncrement(f);n-=O;if(J.length>=X||n<=S)break;if(p){if(M+J.length+1>=this._virtualCount)break;if(Z+O>=b-this._scrollOffset)break;J.push(f);
Z+=O;f=(f+1)%X}else{if(H-J.length<=0)break;if(Z+this._physicalSize-O<=F)break;J.push(f);Z-=O;f=f===0?X-1:f-1}}return{indexes:J,physicalTop:Z-this._scrollOffset}},
_update:function(p,J){if(!(p&&p.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(p);this._updateMetrics(p);if(J)for(;J.length;)p=J.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(p);this._positionItems();this._updateScrollerSize()}},
_createPool:function(p){this._ensureTemplatized();var J,S=Array(p);for(J=0;J<p;J++){var H=this.stamp(null);S[J]=H.root.querySelector("*");this._itemsParent.appendChild(H.root)}return S},
_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 J=p%this._itemsPerRow;J&&p-J<=this._physicalCount&&(p+=this._itemsPerRow);p-=J}p-=this._physicalCount;J=Math.round(this._physicalCount*.5);if(!(p<0)){if(p>0){J=window.performance.now();[].push.apply(this._physicalItems,this._createPool(p));for(var S=0;S<p;S++)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()-J)/p;J=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||J===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,J)),o3o):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,J),cJ))}},
_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,J){typeof J!=="undefined"&&(this.notifyResize(),_.Qw(),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,
_.$2);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(S){return S.addedCount>0||S.removed.length>0})){var J=this._getActiveElement();
this.contains(J)&&J.blur()}p=p.value.indexSplices.some(function(S){return S.index+S.addedCount>=this._virtualStart&&S.index<=this._virtualEnd},this);
this._isClientFull()&&!p||this._debounce("_render",this._render,_.$2)}else p.path!=="items.length"&&this._forwardItemPath(p.path,p.value)},
_forwardItemPath:function(p,J){p=p.slice(6);var S=p.indexOf(".");S===-1&&(S=p.length);var H,M=this.modelForElement(this._offscreenFocusedItem),X=parseInt(p.substring(0,S),10);if(H=this._isIndexRendered(X)){var Z=this._getPhysicalIndex(X);var n=this.modelForElement(this._physicalItems[Z])}else M&&(n=M);n&&n[this.indexAs]===X&&(p=p.substring(S+1),p=this.as+(p?"."+p:""),n._setPendingPropertyOrPath(p,J,!1,!0),n._flushProperties&&n._flushProperties(),H&&(this._updateMetrics([Z]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(p){p.forEach(function(J){J.removed.forEach(this._removeItem,this);J.index<this._virtualStart&&(J=Math.max(J.addedCount-J.removed.length,J.index-this._virtualStart),this._virtualStart+=J,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=J))},this)},
_removeItem:function(p){this.$.selector.deselect(p);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===p&&this._removeFocusedItem()},
_iterateItems:function(p,J){var S,H;if(arguments.length===2&&J)for(H=0;H<J.length;H++){var M=J[H];var X=this._computeVidx(M);if((S=p.call(this,M,X))!=null)return S}else{M=this._physicalStart;for(X=this._virtualStart;M<this._physicalCount;M++,X++)if((S=p.call(this,M,X))!=null)return S;for(M=0;M<this._physicalStart;M++,X++)if((S=p.call(this,M,X))!=null)return S}},
_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(J,S){var H=this._physicalItems[J],M=this.items&&this.items[S];if(M!=null){var X=this.modelForElement(H);X.__key__=null;this._forwardProperty(X,this.as,M);this._forwardProperty(X,this.selectedAs,this.$.selector.isSelected(M));this._forwardProperty(X,this.indexAs,S);this._forwardProperty(X,"tabIndex",this._focusedVirtualIndex===S?0:-1);this._physicalIndexForKey[X.__key__]=J;X._flushProperties&&X._flushProperties(!0);H.removeAttribute("hidden")}else H.setAttribute("hidden",
"")},p)},
_updateMetrics:function(p){_.Qw();var J=0,S=0,H=this._physicalAverageCount,M=this._physicalAverage;this._iterateItems(function(X){S+=this._physicalSizes[X];this._physicalSizes[X]=this._physicalItems[X].offsetHeight;J+=this._physicalSizes[X];this._physicalAverageCount+=this._physicalSizes[X]?1:0},p);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(S=this._itemsPerRow===1?S:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+J-S,this._itemsPerRow=1);this._physicalAverageCount!==H&&(this._physicalAverage=Math.round((M*H+J)/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 J=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(S,H){var M=Math.floor(H%this._itemsPerRow*this._itemWidth+J);this._isRTL&&(M*=-1);this.translate3d(M+"px",p+"px",0,this._physicalItems[S]);this._shouldRenderNextRow(H)&&(p+=this._rowHeight)})}else this._iterateItems(function(S){this.translate3d(0,p+"px",0,this._physicalItems[S]);
p+=this._physicalSizes[S]})},
_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 J=this._scrollPosition;!Jeq&&J>0&&this._resetScrollPosition(J-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)&&(_.Qw(),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 J=this._physicalStart,S=this._virtualStart,H=0,M=this._hiddenContentSize;S<p&&
H<=M;)H+=this._getPhysicalSizeIncrement(J),J=(J+1)%this._physicalCount,S++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+H);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)},_.$2)},
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 J=this.modelForElement(this._physicalItems[this._getPhysicalIndex(p)]);J&&(J[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 J=this.modelForElement(p.target);if(J){var S=_.f1(p).path[0];p=this._getActiveElement();var H=this._physicalItems[this._getPhysicalIndex(J[this.indexAs])];if(S.localName!=="input"&&S.localName!=="button"&&S.localName!=="select"){S=J.tabIndex;J.tabIndex=-100;var M=p?p.tabIndex:-1;J.tabIndex=S;p&&H!==p&&H.contains(p)&&M!==-100||this.toggleSelectionForItem(J[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 J=this._physicalItems[this._getPhysicalIndex(p)],S=this.modelForElement(J),H;S.tabIndex=-100;J.tabIndex===-100&&(H=J);H||(H=_.f1(J).querySelector('[tabindex="-100"]'));S.tabIndex=0;this._focusedVirtualIndex=p;H&&H.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 J=this.stamp(null);this._focusBackfillItem=J.root.querySelector("*");this._itemsParent.appendChild(J.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),J=this._physicalItems[p];if(J){var S=this.modelForElement(J),H=this.modelForElement(this._offscreenFocusedItem);S[this.as]===H[this.as]?(this._focusBackfillItem=J,S.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 J=this.modelForElement(this._focusedItem),S=this._offscreenFocusedItem!==null,H=this._focusedVirtualIndex;p&&(J===p?this._isIndexVisible(H)||this.scrollToIndex(H):(this._restoreFocusedItem(),J&&(J.tabIndex=-1),p.tabIndex=0,this._focusedVirtualIndex=H=p[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(H),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],S&&!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,J,S){return Math.min(S,Math.max(J,p))},
_debounce:function(p,J,S){this._debouncers=this._debouncers||{};this._debouncers[p]=_.zm(this._debouncers[p],S,J.bind(this));_.$e(this._debouncers[p])},
_forwardProperty:function(p,J,S){p._setPendingProperty(J,S)},
_forwardHostPropV2:function(p,J){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&this.modelForElement(S).forwardHostProp(p,J)},this)},
_notifyInstancePropV2:function(p,J,S){C6t(this.as,J)&&(p=p[this.indexAs],J==this.as&&(this.items[p]=S),this.notifyPath(sy(this.as,"items."+p,J),S))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(p,J,S){J.indexOf(this.as+".")===0&&this.notifyPath("items."+p.__key__+"."+J.slice(this.as.length+1),S)},
_forwardParentPath:function(p,J){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&this.modelForElement(S).notifyPath(p,J)},this)},
_forwardParentProp:function(p,J){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&(this.modelForElement(S)[p]=J)},this)},
_getActiveElement:function(){var p=this._itemsParent.node.domHost;return _.f1(p?p.root:document).activeElement},
_scrollTargetChanged:function(p,J){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(J)if(p==="document")this.scrollTarget=this._doc;else if(typeof p==="string"){var S,H;this.scrollTarget=(J=(H=(S=this.domHost)==null?void 0:S.polymerController)!=null?H:this.domHost)&&J.$?J.$[p]:_.f1(this.ownerDocument).querySelector("#"+p)}else this._isValidScrollTarget()&&(this._oldScrollTarget=p,this._toggleScrollListener(this._shouldHaveListener,p))}});var Snv;var Hnm;var MEp=function(p,J,S,H){p-=S;J-=H;return Math.sqrt(p*p+J*J)},Xzn=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
ehW.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var WZ4=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 ehW(p.element)};
QL9.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var p=Xzn()-this.mouseDownStart;this.mouseUpStart&&(p-=this.mouseUpElapsed);return p},get mouseUpElapsed(){return this.mouseUpStart?Xzn()-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===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var p=this.radius/(this.containerMetrics.size/2);var J=this.xNow-this.containerMetrics.width/2;var S=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+J+"px, "+S+"px)";this.waveContainer.style.transform="translate3d("+J+"px, "+S+"px, 0)";this.wave.style.webkitTransform="scale("+p+","+p+")";this.wave.style.transform="scale3d("+p+","+p+",1)"},
downAction:function(p){var J=this.containerMetrics.width/2,S=this.containerMetrics.height/2;WZ4(this);this.mouseDownStart=Xzn();this.center?(this.xStart=J,this.yStart=S):(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=J,this.yEnd=S);p=this.containerMetrics;J=this.xStart;S=this.yStart;this.maxRadius=Math.max(MEp(J,S,0,0),MEp(J,S,
p.width,0),MEp(J,S,0,p.height),MEp(J,S,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=Xzn())},
remove:function(){_.f1(_.f1(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.QG({_template:function(){if(Hnm!==void 0)return Hnm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Snv===void 0&&(Snv=document.createElement("template"));var H=Snv;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return Hnm=p},
is:"tp-yt-paper-ripple",behaviors:[_.ua],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(){_.f1(this).parentNode.nodeType==11?this.keyEventTarget=_.f1(this).getOwnerRoot().host:this.keyEventTarget=_.f1(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(J){J.upAction(p)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var p=0;p<this.ripples.length;++p){var J=this.ripples[p];J.isOpacityFullyDecayed&&!J.isRestingAtMaxRadius&&this.removeRipple(J)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var p=new QL9(this);_.f1(this.$.waves).appendChild(p.waveContainer);this.$.background.style.backgroundColor=p.color;this.ripples.push(p);this._setAnimating(!0);return p},
removeRipple:function(p){var J=this.ripples.indexOf(p);J<0||(this.ripples.splice(J,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 J=this.ripples[p];J.draw();this.$.background.style.opacity=J.outerOpacity;J.isOpacityFullyDecayed&&!J.isRestingAtMaxRadius&&this.removeRipple(J)}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,J){J!==void 0&&(p?this.downAction():this.upAction())}});var bp={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(p){VU._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 J=this._rippleContainer||this.root;J&&_.f1(J).appendChild(this._ripple);if(p){J=_.f1(this._rippleContainer||this);var S=_.f1(p).rootTarget;J.deepContains(S)&&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 inp={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){VU._spaceKeyDownHandler.call(this,p);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(p){VU._spaceKeyUpHandler.call(this,p);this.hasRipple()&&this._ripple.uiUpAction()}},R_M=[j$8,
_.la,bp,inp];_.KEn={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(p){p&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=p)},
_createRipple:function(){var p=bp._createRipple();p.id="ink";p.setAttribute("center","");p.classList.add("circle");return p}};
_.Zn4=[j$8,_.la,bp,_.KEn];_.nf8=[_.Zn4,c7m,{_checkedChanged:function(){xkd._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){bp._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var GiM;var bnU;var mvv=function(){};
_.R=mvv.prototype;_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._buttonStateChanged=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._createRipple=function(){};
_.R._noinkChanged=function(){};
_.R._computeKeyboardClass=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
_.R._setElevation=function(){};
mvv=_.QG({_template:function(){if(bnU!==void 0)return bnU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
var J=p.content,S=J.insertBefore;GiM===void 0&&(GiM=document.createElement("template"));var H=GiM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return bnU=p},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[R_M],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?inp._calculateElevation.apply(this):this._setElevation(0)}});var FEE;var vfd;var fo8={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(p){_.z("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(p)},
_onDialogClickWrapped:function(p){_.z("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,J){J&&(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))},
isAriaModalChanged:function(p){if(p){var J;((J=this.hostElement)!=null?J:this).setAttribute("aria-modal","true")}else{var S;((S=this.hostElement)!=null?S:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(p){this.closingReason=this.closingReason||{};this.closingReason.confirmed=p},
_onDialogClick:function(p){for(var J=_.f1(p).path,S=0,H,M=J.indexOf((H=this.hostElement)!=null?H:this);S<M;S++)if(H=J[S],H.hasAttribute&&(H.hasAttribute("dialog-dismiss")||H.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(H.hasAttribute("dialog-confirm"));this.close();p.stopPropagation();break}}},Ond=[_.Gb,
fo8];var Aed=document.createElement("template");_.C(Aed,'<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(Aed.content);var PVp=document.createElement("template");_.C(PVp,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(PVp.content);_.QG({_template:function(){if(vfd!==void 0)return vfd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
var J=p.content,S=J.insertBefore;FEE===void 0&&(FEE=document.createElement("template"));var H=FEE;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return vfd=p},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[Ond,iuo],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 z_d;var $vq;_.QG({_template:function(){if($vq!==void 0)return $vq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;z_d===void 0&&(z_d=document.createElement("template"));var H=z_d;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return $vq=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,J,S;if(((p=window.ShadyDOM)==null?void 0:p.noPatch)!==!0&&((J=window.ShadyDOM)==null?void 0:J.noPatch)!=="on-demand"||((S=this.__shady_parentNode)==null?void 0:S.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(fo8)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var of8=_.YI(['<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>']),e_p=_.YDE(of8);e_p.setAttribute("style","display: none;");document.head.appendChild(e_p.content);var WE4;var QqM;var CVE;var ye8;_.QG({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[x9],configure:function(p){var J=p.node,S=J.getBoundingClientRect().height;return this._effect=new KeyframeEffect(J,[{height:S/2+"px"},{height:S+"px"}],this.timingFromConfig(p))}});
_.QG({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[x9],configure:function(p){var J=p.node,S=J.getBoundingClientRect().width;return this._effect=new KeyframeEffect(J,[{width:S/2+"px"},{width:S+"px"}],this.timingFromConfig(p))}});
_.QG({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[x9],configure:function(p){var J=p.node,S=J.getBoundingClientRect().width;return this._effect=new KeyframeEffect(J,[{width:S+"px"},{width:S-S/20+"px"}],this.timingFromConfig(p))}});
_.QG({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[x9],configure:function(p){var J=p.node,S=J.getBoundingClientRect().height;this.setPrefixedProperty(J,"transformOrigin","0 0");return this._effect=new KeyframeEffect(J,[{height:S+"px",transform:"translateY(0)"},{height:S/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(p))}});var mA={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},BxL=function(){};
_.R=BxL.prototype;_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._focusBlurHandler=function(){};
_.R._changedControlState=function(){};
_.R._setFocused=function(){};
BxL=_.QG({_template:function(){if(ye8!==void 0)return ye8;var p=document.createElement("template");_.C(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]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;CVE===void 0&&(CVE=document.createElement("template"));var H=CVE;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return ye8=p},
is:"tp-yt-paper-menu-button",behaviors:[_.ua,_.la],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:mA.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:mA.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:mA.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var p=_.f1(this.$.content).getDistributedNodes(),J=0,S=p.length;J<S;J++)if(p[J].nodeType===Node.ELEMENT_NODE)return p[J]},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,J){p?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):J!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(p){_.la._disabledChanged.apply(this,arguments);p&&this.opened&&this.close()},
__onIronOverlayCanceled:function(p){var J=this.$.trigger;_.f1(p.detail).path.indexOf(J)>-1&&p.preventDefault()}});
Object.keys(mA).forEach(function(p){BxL[p]=mA[p]});var UvU=_.q3.IronButtonState,sqL=(0,_.Tm)(HTMLElement);
_.QG({_template:function(){if(QqM!==void 0)return QqM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;WE4===void 0&&(WE4=document.createElement("template"));var H=WE4;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return QqM=p},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[UvU,_.la,bp,_.aK,_.rL],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 J=(0,_.kX)(this);J.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:p});J.shadowRoot.appendChild(p);return sqL.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=_.f1(this.$.content).getDistributedNodes(),J=0,S=p.length;J<S;J++)if(p[J].nodeType===Node.ELEMENT_NODE)return p[J]},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 J="";p?J=p.label||p.getAttribute("label")||p.textContent.trim():J="";this.value=J;this._setSelectedItemLabel(J)},
_computeMenuVerticalOffset:function(p,J){return J?J:p?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var p=this.opened?"true":"false",J=this.contentElement;J&&J.setAttribute("aria-expanded",p)},
_computeLabelClass:function(p,J,S){var H="label";if(p)S&&(H+=" label-is-hidden");else if(S||J)H+=" label-is-floating";return H},
_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 gfE;var tE8;_.QG({is:"tp-yt-paper-icon-button",_template:function(){if(tE8!==void 0)return tE8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;gfE===void 0&&(gfE=document.createElement("template"));var H=gfE;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return tE8=p},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.Zn4],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(p,J){var S=this.getAttribute("aria-label");S&&J!=S||this.setAttribute("aria-label",p)}});var h_8;var Dv8;_.F8=[j$8,_.la,{hostAttributes:{role:"option",tabindex:"0"}}];_.QG({_template:function(){if(Dv8!==void 0)return Dv8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;h_8===void 0&&(h_8=document.createElement("template"));var H=h_8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return Dv8=p},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.F8]});var kip;var Nx8;var Txd={attached:function(){this.fire("addon-attached")},
update:function(){}};var dv4=1,uvM=1,lov=1,VEU=[_.la,_.ua,{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();!mZ&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(p,J){p?p=p+" "+J:p=J;return p},
_onAddonAttached:function(p){p=_.f1(p).rootTarget;if(p.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,p.id);else{var J="paper-input-add-on-"+uvM++;p.id=J;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,J)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(p){_.la._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 J=this.inputElement.selectionStart;this.value=p;this.inputElement.selectionStart=J;this.inputElement.selectionEnd=J}catch(S){this.value=p}},
_computeAlwaysFloatLabel:function(p,J){return J||p},
_updateAriaLabelledBy:function(){var p=_.f1(this.root).querySelector("label");if(p){if(p.id)var J=p.id;else J="paper-input-label-"+dv4++,p.id=J;this._ariaLabelledBy=J}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+lov++)},
_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 qn8;var aoL;_.QG({_template:function(){if(aoL!==void 0)return aoL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;qn8===void 0&&(qn8=document.createElement("template"));var H=qn8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return aoL=p},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[Txd],properties:{_charCounterStr:{type:String,value:"0"}},update:function(p){if(p.inputElement){p.value=p.value||"";var J=p.value.toString().length.toString();p.inputElement.hasAttribute("maxlength")&&(J+="/"+p.inputElement.getAttribute("maxlength"));this._charCounterStr=J}}});var Efp;var YnM;_.QG({_template:function(){if(YnM!==void 0)return YnM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Efp===void 0&&(Efp=document.createElement("template"));var H=Efp;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return YnM=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 QT(this.attrForValue)},get _inputElement(){return _.f1(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 J=p.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,J.value===void 0||J.value===""))return;this._handleValueAndAutoValidate(p.target)},
_handleValue:function(p){var J=this._inputElementValue;J||J===0||p.type==="number"&&!p.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:p,value:J,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 J,S=0;J=this._addons[S];S++)J.update(p)},
_computeInputContentClass:function(p,J,S,H,M){var X="input-content";p?(M&&(X+=" label-is-hidden"),H&&!this.noUnfloatedLabelError&&(X+=" is-invalid")):(p=this.querySelector("label"),J||M?(X+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",H?X+=" is-invalid":S&&(X+=" label-is-highlighted")):(p&&(this.$.labelAndInputContainer.style.position="relative"),H&&!this.noUnfloatedLabelError&&(X+=" is-invalid")));S&&(X+=" focused");return X},
_computeUnderlineClass:function(p,J){var S="underline";J?S+=" is-invalid":p&&(S+=" is-highlighted");return S},
_computeAddOnContentClass:function(p,J){var S="add-on-content";J?S+=" is-invalid":p&&(S+=" is-highlighted");return S}});var re8;var jqE;_.QG({_template:function(){if(jqE!==void 0)return jqE;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;re8===void 0&&(re8=document.createElement("template"));var H=re8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return jqE=p},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[Txd],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(p){this._setInvalid(p.invalid)}});_.QG({is:"tp-yt-paper-input",_template:function(){if(Nx8!==void 0)return Nx8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;kip===void 0&&(kip=document.createElement("template"));var H=kip;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return Nx8=p},
behaviors:[VEU,_.aK],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 wzm;var xvL;_.QG({_template:function(){if(xvL!==void 0)return xvL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=
p.content,S=J.insertBefore;wzm===void 0&&(wzm=document.createElement("template"));var H=wzm;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return xvL=p},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.F8]});var ceo;var Ioo;_.QG({_template:function(){if(Ioo!==void 0)return Ioo;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
var J=p.content,S=J.insertBefore;ceo===void 0&&(ceo=document.createElement("template"));var H=ceo;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return Ioo=p},
is:"tp-yt-paper-item-body"});var LEm;var pdp;var JJq=function(){};
_.R=JJq.prototype;_.R.indexOf=function(){};
_.R.selectPrevious=function(){};
_.R.selectNext=function(){};
_.R.selectIndex=function(){};
_.R.forceSynchronousItemUpdate=function(){};
_.R._checkFallback=function(){};
_.R._addListener=function(){};
_.R._removeListener=function(){};
_.R._activateEventChanged=function(){};
_.R._updateItems=function(){};
_.R._selectSelected=function(){};
_.R._filterItem=function(){};
_.R._valueToItem=function(){};
_.R._valueToIndex=function(){};
_.R._indexToValue=function(){};
_.R._valueForItem=function(){};
_.R._observeItems=function(){};
_.R._itemActivate=function(){};
_.R.multiChanged=function(){};
_.R._updateAttrForSelected=function(){};
_.R._updateSelected=function(){};
_.R._selectMulti=function(){};
_.R._selectionChange=function(){};
_.R._toggleSelected=function(){};
_.R._valuesToItems=function(){};
_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R.select=function(){};
_.R._resetTabindices=function(){};
_.R._updateMultiselectable=function(){};
_.R._focusWithKeyboardEvent=function(){};
_.R._clearSearchText=function(){};
_.R._focusPrevious=function(){};
_.R._focusNext=function(){};
_.R._applySelection=function(){};
_.R._focusedItemChanged=function(){};
_.R._onIronItemsChanged=function(){};
_.R._onShiftTabDown=function(){};
_.R._onFocus=function(){};
_.R._onUpKey=function(){};
_.R._onDownKey=function(){};
_.R._onEscKey=function(){};
_.R._onKeydown=function(){};
_.R._activateHandler=function(){};
_.R._disabledChanged=function(){};
_.R._setSelectedItem=function(){};
_.R._setItems=function(){};
_.R._setSelectedItems=function(){};
_.R._setFocusedItem=function(){};
JJq=_.QG({_template:function(){if(pdp!==void 0)return pdp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
var J=p.content,S=J.insertBefore;LEm===void 0&&(LEm=document.createElement("template"));var H=LEm;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return pdp=p},
is:"tp-yt-paper-listbox",behaviors:[JFE],hostAttributes:{role:"listbox"}});var SsE;var HNE;var MbL={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,J){return[p||J?"active":"",J?"cooldown":""].join(" ")},
__activeChanged:function(p,J){this.__setAriaHidden(!p);this.__coolingDown=!p&&J},
__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}};_.QG({_template:function(){if(HNE!==void 0)return HNE;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;SsE===void 0&&(SsE=document.createElement("template"));var H=SsE;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return HNE=p},
is:"tp-yt-paper-spinner",behaviors:[MbL]});var XdU;var iN8;_.QG({_template:function(){if(iN8!==void 0)return iN8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;XdU===void 0&&(XdU=document.createElement("template"));var H=XdU;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return iN8=p},
is:"tp-yt-paper-spinner-lite",behaviors:[MbL]});var RS8;var Kbp;_.QG({_template:function(){if(Kbp!==void 0)return Kbp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;RS8===void 0&&(RS8=document.createElement("template"));var H=RS8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return Kbp=p},
is:"tp-yt-paper-tab",behaviors:[_.la,_.q3.IronButtonState,bp],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=_.f1(this).parentNode;return!!p&&!!p.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(p){if(this.link){var J=this.queryEffectiveChildren("a");J&&p.target!==J&&J.click()}}});var ZNL;var n08;var GqM=_.YI(['<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>']),bNL=_.YDE(GqM);document.head.appendChild(bNL.content);_.QG({_template:function(){if(n08!==void 0)return n08;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;ZNL===void 0&&(ZNL=document.createElement("template"));var H=ZNL;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return n08=p},
is:"tp-yt-paper-tabs",behaviors:[_.wL,_.Huo],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){_.f1(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,J,S,H){return!J||S?"hidden":p?H?"hidden":"not-visible":""},
_computeTabsContentClass:function(p,J){var S="tabs-content";p&&(S+=" scrollable");if(!p||J)S+=" fit-container";return S},
_computeSelectionBarClass:function(p,J){var S="selection-bar";p?S+=" hidden":J&&(S+=" align-bottom");return S},
_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();_.jo._activateHandler.apply(this,arguments)},
_scheduleActivation:function(p,J){this._pendingActivationItem=p;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,J)},
_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,J){this.scrollable&&this._affectScroll(J&&-J.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,J){if(p){var S=this.$.tabsContent.getBoundingClientRect(),H=S.width,M=p.getBoundingClientRect();S=M.left-S.left;this._pos={width:this._calcPercent(M.width,H),left:this._calcPercent(S,H)};if(this.noSlide||J==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var X=J.getBoundingClientRect();J=this.items.indexOf(J);p=this.items.indexOf(p);this.$.selectionBar.classList.add("expand");
p=J<p;this._isRTL&&(p=!p);p?this._positionBar(this._calcPercent(M.left+M.width-X.left,H)-5,this._left):this._positionBar(this._calcPercent(X.left+X.width-M.left,H)-5,this._calcPercent(S,H)+5);this.scrollable&&this._scrollToSelectedIfNeeded(M.width,S)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(p,J){J-=this.$.tabsContainer.scrollLeft;J<0?this.$.tabsContainer.scrollLeft+=J:(J+=p-this.$.tabsContainer.offsetWidth,J>0&&(this.$.tabsContainer.scrollLeft+=J))},
_calcPercent:function(p,J){return 100*p/J},
_positionBar:function(p,J){p=p||0;J=J||0;this._width=p;this._left=J;this.transform("translateX("+J+"%) 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 m78;var Fbo;_.QG({_template:function(){if(Fbo!==void 0)return Fbo;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;m78===void 0&&(m78=document.createElement("template"));var H=m78;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return Fbo=p},
is:"tp-yt-paper-textarea",behaviors:[VEU,_.aK],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 v0q;var fId;/*

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 ONL=function(){};
_.R=ONL.prototype;_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._noinkChanged=function(){};
_.R._focusedChanged=function(){};
_.R.registered=function(){};
_.R._invalidChanged=function(){};
_.R.hasValidator=function(){};
_.R.validate=function(){};
_.R._getValidity=function(){};
_.R._requiredChanged=function(){};
_.R._valueChanged=function(){};
_.R._checkedChanged=function(){};
_.R._buttonStateChanged=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
ONL=_.QG({is:"tp-yt-paper-toggle-button",_template:function(){if(fId!==void 0)return fId;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;v0q===void 0&&(v0q=document.createElement("template"));var H=v0q;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return fId=p},
behaviors:[_.nf8],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");_.mN(this,function(){_.xX(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=bp._createRipple();p.id="ink";p.setAttribute("recenters","");p.classList.add("circle","toggle-ink");return p}});var AJ8;var Plo;_.QG({_template:function(){if(Plo!==void 0)return Plo;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;AJ8===void 0&&(AJ8=document.createElement("template"));var H=AJ8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return Plo=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=_.f1(this).parentNode,J=_.f1(this).getOwnerRoot(),S;this.for?S=_.f1(J).querySelector("#"+this.for):S=p.nodeType==Node.DOCUMENT_FRAGMENT_NODE?J.host:p;return S},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&&_.f1(this).textContent.trim()===""){for(var p=!0,J=_.f1(this).getEffectiveChildNodes(),S=0;S<J.length;S++)if(J[S].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 J=this.offsetParent.getBoundingClientRect(),S=this._target.getBoundingClientRect(),H=this.getBoundingClientRect(),M=(S.width-H.width)/2,X=(S.height-H.height)/2,Z=S.left-J.left,n=S.top-J.top;switch(this.position){case "top":var b=Z+M;var F=n-H.height-p;break;case "bottom":b=Z+M;F=n+S.height+p;break;case "left":b=Z-H.width-p;F=n+X;break;case "right":b=Z+S.width+
p,F=n+X}this.fitToVisibleBounds?(J.left+b+H.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,b)+"px",this.style.right="auto"),J.top+F+H.height>window.innerHeight?(this.style.bottom=J.height+"px",this.style.top="auto"):(this.style.top=Math.max(-J.top,F)+"px",this.style.bottom="auto")):(this.style.left=b+"px",this.style.top=F+"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 J=this.animationConfig[p][0].timing.delay;p==="entry"?this.updateStyles({"--paper-tooltip-delay-in":J+"ms"}):p==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":J+
"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 zSU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(zSU,_.Kt);var $74=_.PG(zSU,[0,_.Xh]);var vN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(vN,_.Kt);var o08=[3,4],eSv=[5,6];var WbM=[0,o08,eSv,_.Kn,-1,_.S_,_.Zo,-1,Ujp,sw4];var QEp=_.PG(vN,WbM),Clq=_.zu(WbM);var yJ8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(yJ8,_.Kt);var B$8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(B$8,_.Kt);var U78=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(U78,_.Kt);var sEE=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(sEE,_.Kt);var g0n=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(g0n,_.Kt);var f7=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(f7,_.Kt);f7.prototype.getSource=function(){return _.Uw(this,1)};
f7.prototype.getMessage=function(){return _.B_(this,4)};
f7.prototype.getData=function(){return _.PB(this,g0n,8)};var tbE=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(tbE,_.Kt);var Od=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Od,_.Kt);var Aa=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Aa,_.Kt);var PN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(PN,_.Kt);PN.prototype.getUrl=function(){return _.B_(this,1)};
PN.prototype.setUrl=function(p){return _.g2(this,1,p)};
PN.prototype.hasUrl=function(){return _.$y(_.fu(this,1))!=null};var hSq=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(hSq,_.Kt);var D74=[3];var kqM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(kqM,_.Kt);var zb=function(p){var J=new kqM;return _.zx(J,2,p)};
kqM.prototype.getLanguage=function(){return g4(this,4,$i)};
var N$p=function(p){var J=zb(1);return _.Ct(J,6,$i,p)},$i=[3,
4,5,6];var T$o=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(T$o,_.Kt);var oW=function(p){var J=new T$o;return _.zx(J,1,p)},e3=function(p,J){return _.Ct(p,2,d78,J)},d78=[2,
3,4,5];var ufM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(ufM,_.Kt);var WN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(WN,_.Kt);var lIo=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(lIo,_.Kt);var Vbn=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Vbn,_.Kt);var qsL=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(qsL,_.Kt);var aIE=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(aIE,_.Kt);var E0n=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(E0n,_.Kt);var Qs=function(p){return _.PB(p,Aa,5)};var YsM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(YsM,_.Kt);YsM.prototype.getValue=function(){return Cu(this,1)};var rJo=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(rJo,_.Kt);var C7=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(C7,_.Kt);C7.prototype.getMetadata=function(){return _.tF(this,qsL,7,ys)};
C7.prototype.hasMetadata=function(){return _.AF(this,qsL,7,ys)};
var jEd=_.jDs(C7),ys=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var BN=function(p){this.JSC$12325_name_=p;this.files_=[];this.directories_=[];this.directoryMap_={}};
BN.prototype.getName=function(){return this.JSC$12325_name_};var sd=function(p,J){this.callback_=J;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new BN("");wdq(this,p,this.rootDirectory_);Ud(this)},wdq=function(p,J,S){for(var H=0;H<J.length;H++){var M=J[H];
M.isFile?(p.fileOps_++,M.file((0,_.tT)(p.handleFileSuccess_,p,S),(0,_.tT)(p.handleFileError_,p))):p.unscannedDirectories_.push(new x7d(M,S))}},Ud=function(p){if(p.unscannedDirectories_.length>0&&p.directoryOps_<5&&!p.hasError_){p.directoryOps_++;
var J=p.unscannedDirectories_.shift(),S=J.entry,H=new BN(S.name);J=J.parent;J.directoryMap_[H.getName()]=H;J.directories_.push(H);S=S.createReader();S.readEntries((0,_.tT)(p.handleDirectorySuccess_,p,S,H),(0,_.tT)(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_)};
sd.prototype.handleDirectorySuccess_=function(p,J,S){wdq(this,S,J);S.length==0?(this.directoryOps_--,Ud(this)):p.readEntries((0,_.tT)(this.handleDirectorySuccess_,this,p,J),(0,_.tT)(this.handleDirectoryError_,this))};
sd.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Ud(this)};
sd.prototype.handleFileSuccess_=function(p,J){p.files_.push(J);this.fileOps_--;Ud(this)};
sd.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Ud(this)};
var x7d=function(p,J){this.entry=p;this.parent=J};var gB=function(p){_.te.call(this);_.z$(p,"drop",this.onObjectsDropped_,!1,this);_.z$(p,"dragenter",this.onFilesDragged_,!1,this);_.z$(p,"dragover",this.onFilesDragged_,!1,this);_.z$(p,"dragleave",this.onDragLeave_,!1,this);_.z$(p,"dragend",this.onDragLeave_,!1,this)};
_.SJ(gB,_.te);var cJE=function(p,J){_.yr.call(this,"f");this.files=p;this.directories=J};
_.SJ(cJE,_.yr);var IIo=function(){_.yr.call(this,"h")};
_.SJ(IIo,_.yr);var Lbp=function(){_.yr.call(this,"i")};
_.SJ(Lbp,_.yr);var pl4=function(){_.yr.call(this,"g")};
_.SJ(pl4,_.yr);gB.prototype.onObjectsDropped_=function(p){var J=this;p.preventDefault();var S=p.event_.dataTransfer;if((p=S&&S.items)&&p.length>0&&p[0].webkitGetAsEntry){S=[];for(var H=[],M=0;M<p.length;M++){var X=p[M].webkitGetAsEntry();X?S.push(X):H.push(p[M])}new sd(S,function(Z,n,b){b?J.dispatchEvent(new pl4("Error occurred while reading from the file system.")):J.dispatchEvent(new cJE(Z,n,H))})}else(p=S&&S.files)&&this.dispatchEvent(new cJE(Array.from(p),[]))};
gB.prototype.onFilesDragged_=function(p){p.type==="dragenter"&&this.dispatchEvent(new IIo);p.preventDefault()};
gB.prototype.onDragLeave_=function(){this.dispatchEvent(new Lbp)};var JG8=function(p,J){this.JSC$12348_name_=p;this.inputElement_=J};
JG8.prototype.getName=function(){return this.JSC$12348_name_};
JG8.prototype.getInputElement=function(){return this.inputElement_};var ta=function(p,J,S){J=J===void 0?"single_file":J;S=S===void 0?[]:S;_.te.call(this);this.overlayTarget_=p;this.parentOverlay_=p!=null?p.parentNode:_.Q0("scotty-overlay-parent");this.selectorType_=J;this.acceptTypes_=S;this.overlay_=SEp(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.Q(ta,_.te);
var SEp=function(p,J,S,H){var M=document.createElement("input");M.setAttribute("type","file");M.setAttribute("name","Filedata");_.z$(M,"change",p.onFilesSelected_,!1,p);S==="multiple_file"&&(M.multiple="true");S==="single_directory"&&(M.webkitdirectory="true");H.length>0&&M.setAttribute("accept",H.join(","));M.style.position="absolute";M.style.overflow="hidden";M.style.height="0px";M.style.width="0px";M.style.opacity="0";M.setAttribute("aria-hidden","true");M.setAttribute("tabIndex",-1);if(p.overlayTarget_!=
null)return M.style.height=J.offsetHeight+"px",M.style.width=J.offsetWidth+"px",p.parentOverlay_&&(p.parentOverlay_.style.position="relative"),_.l_(M,J),r7(M,new _.uI(J.offsetLeft,J.offsetTop)),M;p.parentOverlay_.appendChild(M);return M};
ta.prototype.click=function(){this.overlay_.click()};
ta.prototype.onFilesSelected_=function(p){a:{try{var J=(new XMLHttpRequest).upload!==void 0;break a}catch(F){}J=!1}if(J){var S;p=Array.from((S=p.target.files)!=null?S:[]);S=[];if(this.selectorType_==="single_directory"&&(_.Ku||Gx||_.Rh)){S=new BN("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(J=0;J<p.length;J++)for(var H=p[J],M=H.webkitRelativePath.split("/"),X=S,Z=0;Z<M.length;Z++){var n=M[Z];if(Z==M.length-1){n!="."&&X.files_.push(H);break}var b=X.directoryMap_[n];b==void 0&&(n=
b=new BN(n),X.directoryMap_[n.getName()]=n,X.directories_.push(n));X=b}S=S.directories_}this.dispatchEvent(new Hip(p,S,null))}else p=p.target.value,p.match(/^c:\\fakepath\\/i)&&(p=p.substring(12)),this.dispatchEvent(new Hip([],[],new JG8(p,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=SEp(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Hip=function(p,J){_.yr.call(this,"j");this.files=p;this.directories=J};
_.Q(Hip,_.yr);var M28=function(p){this.uploadUrl_=p};var Xlp=function(){_.te.call(this)};
_.SJ(Xlp,_.te);var ha=function(p){_.yr.call(this,p)};
_.SJ(ha,_.yr);var DN=function(p){_.yr.call(this,p)};
_.SJ(DN,_.yr);var ii8=function(p,J,S,H,M){_.te.call(this);S=document.createElement("form");S.setAttribute("method",J);S.setAttribute("enctype","multipart/form-data");S.setAttribute("encoding","multipart/form-data");J=document.createElement("input");J.setAttribute("type","hidden");J.setAttribute("name","metadata");J.setAttribute("value",M);S.appendChild(J);S.appendChild(H);this.JSC$12365_form_=S;p=new _.V1(p);_.pU(p,"upload_protocol","multipart");this.JSC$12365_url_=p.toString();this.JSC$12365_request_=new OM;this.state_=
"Ready";this.JSC$12365_errorDescription_=null;this.JSC$12365_eventHandler_=new _.oC(this);_.$c(this,this.JSC$12365_eventHandler_);this.JSC$12365_eventHandler_.listen(this.JSC$12365_request_,"success",this.onTransferSuccess_);this.JSC$12365_eventHandler_.listen(this.JSC$12365_request_,"error",this.onTransferError_)};
_.Q(ii8,Xlp);_.R=ii8.prototype;_.R.run=function(){this.state_="Transferring";var p=this.JSC$12365_request_,J=this.JSC$12365_form_;if(p.JSC$11633_active_)throw Error("te");var S=new _.V1(this.JSC$12365_url_||J.action);p.JSC$11633_form_=J;J=p.JSC$11633_form_;S=_.ry(S.toString());S!==void 0&&(J.action=S);FK8(p)};
_.R.getResponseCode=function(){return null};
_.R.getResponseText=function(){return this.JSC$12365_request_&&this.JSC$12365_request_.getResponseText()||null};
_.R.JSC$30167_getErrorDescription=function(){return this.JSC$12365_errorDescription_};
_.R.cancel=function(){this.JSC$12365_request_&&this.JSC$12365_request_.abort();this.state_="Cancelled";this.dispatchEvent(new ha("o"))};
_.R.pause=function(){};
_.R.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new ha("l"))};
_.R.onTransferError_=function(){this.JSC$12365_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new ha("n"))};var ki=function(){_.lV.call(this)};
_.Q(ki,_.lV);ki.prototype.createXhr=function(){var p=_.lV.prototype.createXhr.call(this);p.upload&&(p.upload.onprogress=(0,_.tT)(this.onProgress_,this));return p};
ki.prototype.onProgress_=function(p){this.dispatchEvent(p)};var RE8=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Zi8=function(p,J){var S=p.attempt_+1;
if(p.maxAttempts_>0&&S>p.maxAttempts_)return!1;S==0?J():p.delayCallId_=Ti(function(){p.delayCallId_=null;J()},K6n(p),p);
p.attempt_=S;return!0};
RE8.prototype.reset=function(){this.delayCallId_&&_.Hg.clearTimeout(this.delayCallId_);this.attempt_=-1};
var K6n=function(p){var J=250*Math.pow(2,p.attempt_);p.maxDelayMs_>=0&&(J=Math.min(J,p.maxDelayMs_));return J};var y3k=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var NI=function(){_.te.call(this);this.JSC$12375_request_=this.state_=null;this.JSC$12375_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12375_bytesTransferred_=0;this.retryIterator_=new RE8;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12375_errorDescription_=null;this.JSC$12375_eventHandler_=new _.oC(this);_.$c(this,this.JSC$12375_eventHandler_);this.JSC$12375_url_=this.blob_=null;this.JSC$12375_method_=void 0;this.chunkSize_=this.JSC$12375_metadata_=
this.JSC$12375_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12375_responseText_=this.JSC$12375_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.SJ(NI,Xlp);_.R=NI.prototype;_.R.run=function(){Tb(this)};
_.R.getResponseCode=function(){return this.JSC$12375_responseCode_};
_.R.getResponseText=function(){return this.JSC$12375_responseText_};
_.R.JSC$30167_getErrorDescription=function(){return this.JSC$12375_errorDescription_};
_.R.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12375_eventHandler_.removeAll();this.JSC$12375_request_&&this.JSC$12375_request_.abort();this.retryIterator_.reset();var p=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(p==="Upload"||p==="Query")p=new ki,p.JSC$9951_withCredentials_=this.JSC$12375_withCredentials_,p.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12375_bytesTransferred_=
0;this.dispatchEvent(new ha("o"))}};
_.R.pause=function(){this.pauseRequested_=!0};
var Tb=function(p){var J=p.state_;p.pauseRequested_?(p.pauseRequested_=!1,p.stateAfterUnpausing_=J,p.state_="Paused"):Zi8(p.retryIterator_,function(){switch(p.state_){case "Start":p.JSC$12375_request_=new ki;var S=_.T6.clone(p.JSC$12375_headers_);p.blob_.size!=null&&(S["Content-Length"]=p.blob_.size);S=BS3(S);S["X-Goog-Upload-Protocol"]="resumable";S["X-Goog-Upload-Command"]="start";p.JSC$12375_eventHandler_.removeAll();p.JSC$12375_eventHandler_.listen(p.JSC$12375_request_,"complete",p.onStartComplete_);
p.JSC$12375_request_.JSC$9951_withCredentials_=p.JSC$12375_withCredentials_;p.JSC$12375_request_.send(p.JSC$12375_url_,p.JSC$12375_method_,p.JSC$12375_metadata_,S);p.lastCommandResponseCode_=null;p.dispatchEvent(new DN("q"));break;case "Upload":S=p.transferHandle_.uploadUrl_;var H=p.blob_.size;if(lxv()){var M=p.chunkSize_;var X=p.offset_+M>=H;H=u_d(p.blob_,p.offset_,X?H:p.offset_+M)}else p.offset_=0,H=p.blob_,X=!0;p.JSC$12375_request_=new ki;p.JSC$12375_request_.JSC$9951_withCredentials_=p.JSC$12375_withCredentials_;
p.JSC$12375_eventHandler_.removeAll();p.JSC$12375_eventHandler_.listen(p.JSC$12375_request_,"progress",p.onUploadProgress_);M=(0,_.tT)(p.JSC$12377_onUploadComplete_,p,p.offset_+H.size,X);p.JSC$12375_eventHandler_.listen(p.JSC$12375_request_,"complete",M);p.lastCommandResponseCode_=null;p.dispatchEvent(new DN("q"));X=Object.assign({},p.JSC$12375_headers_||{},{"X-Goog-Upload-Command":"upload"+(X?", finalize":""),"X-Goog-Upload-Offset":p.offset_});p.JSC$12375_request_.send(S,"POST",H,X);break;case "Query":p.JSC$12375_request_=
new ki;p.JSC$12375_eventHandler_.removeAll();p.JSC$12375_eventHandler_.listen(p.JSC$12375_request_,"complete",p.onQueryComplete_);S=Object.assign({},p.JSC$12375_headers_||{},{"X-Goog-Upload-Command":"query"});p.JSC$12375_request_.send(p.transferHandle_.uploadUrl_,"POST","",S);p.lastCommandResponseCode_=null;p.dispatchEvent(new DN("q"));break;default:throw Error("lf");}})||dB(p,"Transfer encountered too many consecutive failures.")},dB=function(p,J){p.state_="Error";
p.JSC$12375_errorDescription_=J;p.dispatchEvent(new ha("n"))};
NI.prototype.onStartComplete_=function(p){var J=p.target;this.lastCommandResponseCode_=J.getStatus();this.dispatchEvent(new DN("r"));if(nDv(J))GT8(this,J);else if(biL(J)){p=Ms(p.target.getAllResponseHeaders());for(var S in p)_.XX(S.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new ha("m"));S=A1(p,"X-Goog-Upload-URL");p=(p=A1(p,"X-Goog-Upload-Chunk-Granularity"))?parseInt(p,10):1;S===void 0||isNaN(p)||p<=0?dB(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
p)*p,this.transferHandle_=new M28(S),this.dispatchEvent(new ha("p")),this.state_="Upload",this.retryIterator_.reset(),Tb(this))}else Tb(this)};
NI.prototype.onUploadProgress_=function(p){this.JSC$12375_bytesTransferred_=this.offset_+p.loaded;this.dispatchEvent(new ha("k"))};
NI.prototype.JSC$12377_onUploadComplete_=function(p,J,S){var H=this,M,X;return _.G(function(Z){switch(Z.nextAddress){case 1:M=S.target;H.lastCommandResponseCode_=M.getStatus();H.dispatchEvent(new DN("r"));if(mPU(M)||M.getStatus()==404)return H.JSC$12375_bytesTransferred_=p,GT8(H,M),Z.return();if(biL(M)){Z.jumpTo(2);break}if(!(X=H.detectCorruptedBlobEnabled_)){Z.jumpTo(3);break}return Z.yield(F6n(H),4);case 4:X=Z.yieldResult;case 3:if(X)return dB(H,"Blob has been modified or corrupted."),Z.return();
H.requireUploadRequestModification_=M.getStatus()==400;H.state_="Query";Tb(H);return Z.return();case 2:if(J)return dB(H,"Got a non-final success response after issuing a finalize command."),Z.return();H.JSC$12375_bytesTransferred_=p;H.offset_=p;H.retryIterator_.reset();Tb(H);return Z.return()}})};
NI.prototype.onQueryComplete_=function(p){var J=p.target;this.lastCommandResponseCode_=J.getStatus();this.dispatchEvent(new DN("r"));nDv(J)?(J.getStatus()===200&&(this.JSC$12375_bytesTransferred_=this.blob_.size),GT8(this,J)):biL(J)?(p=Ms(p.target.getAllResponseHeaders()),p=parseInt(A1(p,"X-Goog-Upload-Size-Received"),10),isNaN(p)?dB(this,"Server did not respond with current offset."):p<this.offset_?dB(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
p+"."):this.requireUploadRequestModification_&&this.offset_===p?dB(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$12375_bytesTransferred_=p,this.state_="Upload",Tb(this))):Tb(this)};
var GT8=function(p,J){p.JSC$12375_responseCode_=J.getStatus();var S=Ms(J.getAllResponseHeaders());UEi(S);p.JSC$12375_responseText_=J.getResponseText();p.state_="Response received";p.dispatchEvent(new ha("l"))},biL=function(p){var J=p.getStatus();
p=Ms(p.getAllResponseHeaders());p=A1(p,"X-Goog-Upload-Status");return J===200&&p==="active"},mPU=function(p){p=Ms(p.getAllResponseHeaders());
return A1(p,"X-Goog-Upload-Status")==="final"},nDv=function(p){if(mPU(p))return!0;
p=p.getStatus();return p>=400&&p<500},F6n=function(p){var J;
return _.G(function(S){if(S.nextAddress==1){if(!p.blob_||p.originalBlobSize_<=0)return S.return(!1);if(p.blob_.size!==p.originalBlobSize_)return S.return(!0);_.oI(S,2);if(J=u_d(p.blob_,0,1)){var H=S.yield,M=new po,X=QYM(M);M.reader_.readAsBinaryString(J);S=H.call(S,X,4)}else S=S.return(!0);return S}if(S.nextAddress!=2)return S.return(p.blob_.size!==p.originalBlobSize_);_.BZ(S);return S.return(!0)})};var vDq=function(p,J,S,H,M,X){_.te.call(this);this.payload_=H;this.JSC$12378_url_=p;this.JSC$12378_method_=J;this.JSC$12378_headers_=S;this.JSC$12378_metadata_=M;this.encoding_=X||"binary";p=new _.uB;this.boundary_="uploader-"+c0()+"-"+p.JSC$11482_toIsoString();this.JSC$12378_responseText_=this.JSC$12378_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12378_errorDescription_=null;this.JSC$12378_eventHandler_=new _.oC(this);_.$c(this,this.JSC$12378_eventHandler_)};
_.Q(vDq,Xlp);_.R=vDq.prototype;
_.R.run=function(){var p=_.T6.clone(this.JSC$12378_headers_);this.payload_.length!=null&&(p["Content-Length"]=this.payload_.length);p=BS3(p);p["X-Goog-Upload-Protocol"]="multipart";p["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new ki;this.JSC$12378_eventHandler_.removeAll();this.JSC$12378_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12378_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12378_url_,this.JSC$12378_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12378_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)};
_.R.getResponseCode=function(){return this.JSC$12378_responseCode_};
_.R.getResponseText=function(){return this.JSC$12378_responseText_};
_.R.JSC$30167_getErrorDescription=function(){return this.JSC$12378_errorDescription_};
_.R.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12378_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new ha("o")))};
_.R.pause=function(){};
_.R.onTransferProgress_=function(){this.dispatchEvent(new ha("k"))};
_.R.onTransferComplete_=function(p){var J=p.target.getStatus();J===void 0||J===-1?(this.JSC$12378_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new ha("n"))):(this.JSC$12378_responseCode_=J,p=p.target,J=Ms(p.getAllResponseHeaders()),UEi(J),this.JSC$12378_responseText_=p.getResponseText(),this.state_="Complete",this.dispatchEvent(new ha("l")))};_.fz8=function(p,J,S,H){H=H===void 0?!1:H;if(S instanceof JG8)return new ii8(p,"POST",J,S.getInputElement(),"");if(typeof S==="string"||S instanceof String)return new vDq(p,"POST",J,S,"");var M=new NI(void 0);M.JSC$12375_url_=p;M.JSC$12375_method_="POST";M.JSC$12375_headers_=J;M.blob_=S;M.originalBlobSize_=S.size;M.JSC$12375_metadata_="";H&&(M.JSC$12375_withCredentials_=H);M.state_="Start";return M};var up=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(up,_.Kt);_.R=up.prototype;_.R.getEnableSsEngine=function(){return _.Q3(this,2)};
_.R.getEnableAwr=function(){return _.Q3(this,3)};
_.R.getAlohaAutoGaRollout=function(){return _.Q3(this,5)};
_.R.getEnableConfigurator=function(){return _.Q3(this,6)};
_.R.getEnableMweb=function(){return _.Q3(this,7)};
var AGn=function(){var p=Oi8();return _.$V(p,7,!0)};
up.prototype.getEnableCtlConsentCheckbox=function(){return _.Q3(this,8)};
up.prototype.getEnableIframe=function(){return _.Q3(this,9)};
var Oi8=function(){var p=new up;p=_.$V(p,5,!0);p=_.$V(p,2,!0);p=_.$V(p,4,!1);p=_.$V(p,8,!0);return _.$V(p,9,!0)};
up.prototype.getEnableScreenshotNudge=function(){return _.Q3(this,10)};
var Pr8=function(){var p=AGn();return _.$V(p,10,!0)};
up.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Q3(this,11)};
up.prototype.getEnableJunkNudge=function(){return _.Q3(this,12)};
var wP3=function(){var p=Pr8();return _.$V(p,12,!0)};
_.R=up.prototype;_.R.getEnableConfiguratorLocale=function(){return _.Q3(this,13)};
_.R.getEnableTinyNoPointer=function(){return _.Q3(this,14)};
_.R.getEnableSupportSessionLogging=function(){return _.Q3(this,15)};
_.R.getEnableFileUploadForScreenshot=function(){return _.Q3(this,16)};
_.R.getEnableDirectDeflectionForSingleCategory=function(){return _.Q3(this,17)};
_.R.getEnableImageSanitization=function(){return _.Q3(this,18)};
_.R.getEnableAlohaBinarySplit=function(){return _.Q3(this,19)};
_.R.getEnableDbFeedbackIntents=function(){return _.Q3(this,20)};
_.R.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Q3(this,21)};
_.R.getEnableFeedbackCategoryCustomUi=function(){return _.Q3(this,22)};
_.R.getEnableRealtimeCtl=function(){return _.Q3(this,23)};var jLX=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(jLX,_.Kt);var sLW=[/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 tY9="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 hhW=_.YI(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),DEw=_.YI(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Pf=function(){var p=Error.call(this,"Form is either loading or already opened");this.message=p.message;"stack"in p&&(this.stack=p.stack);this.name="DuplicateFormError"};
_.Q(Pf,Error);var NS4,ug4,TSi,lRv;var lp,zEo;
lp=function(p,J,S){p.timeOfStartCall=(new Date).getTime();var H=S||_.Hg,M=H.document,X=p.nonce||_.S0(H.document);X&&!p.nonce&&(p.nonce=X);if(p.flow=="help"){var Z=_.Id("document.location.href",H);!p.helpCenterContext&&Z&&(p.helpCenterContext=Z.substring(0,1200));Z=!0;if(J&&JSON&&JSON.stringify){var n=JSON.stringify(J);(Z=n.length<=1200)&&(p.psdJson=n)}Z||(J={invalidPsd:!0})}J=[p,J,S];H.GOOGLE_FEEDBACK_START_ARGUMENTS=J;S=p.feedbackServerUri||"//www.google.com/tools/feedback";if(Z=H.GOOGLE_FEEDBACK_START)Z.apply(H,J);
else{H=S+"/load.js?";for(var b in p)J=p[b],J==null||_.Ei(J)||(H+=encodeURIComponent(b)+"="+encodeURIComponent(J)+"&");p=s9(M).createElement("SCRIPT");X&&p.setAttribute("nonce",X);_.RI(p,_.sq(H));M.body.appendChild(p)}};
zEo=function(p,J,S,H){var M,X;return _.G(function(Z){M=S||_.Hg;var n=p.serverEnvironment==="DEV",b=S||_.Hg;b=p.nonce||_.S0(b.document);n={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:n,nonce:b,useNightlyRelease:n,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}};J&&(b=new Map(Object.entries(J)),n.extraData.productSpecificData=b);X=n;return Z.yield(Ee9(X,H,M),0)})};
_.$Pm=function(p,J,S){try{if(p.flow==="help"){var H=p.helpCenterPath.replace(/^\//,"");_.Ju(S||window,"https://support.google.com/"+H)}else p.flow==="submit"?lp(p,J,S):xEi(p.productId,p.feedbackServerUri).then(function(M){M=_.PB(M,up,1);var X=!Yiv||(M==null?void 0:M.getEnableMweb()),Z=!p.tinyNoPointer||(M==null?void 0:M.getEnableTinyNoPointer());!M||M.getAlohaAutoGaRollout()&&X&&Z?zEo(p,J,S,M).catch(function(n){!n||n instanceof Pf||lp(p,J,S)}):lp(p,J,S)},function(M){!M||M instanceof Pf||lp(p,J,S)})}catch(M){zEo(p,
J,S,null).catch(function(X){!X||X instanceof Pf||lp(p,J,S)})}};
_.m$("userfeedback.api.startFeedback",_.$Pm);var c3X=/https?:\/\/\S+\.\S+/,IR3=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],LZW=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var hvk=function(p){var J=p.split(""),S=[-263237435,15,J,function(H,M,X){var Z=M.length;X.forEach(function(n,b,F){this.push(F[b]=M[(M.indexOf(n)-M.indexOf(this[b])+b+Z--)%M.length])},H.split(""))},
function(H,M){H=(H%M.length+M.length)%M.length;M.splice(-H).reverse().forEach(function(X){M.unshift(X)})},
"response",function(){for(var H=64,M=[];++H-M.length-32;){switch(H){case 58:H-=14;case 91:case 92:case 93:continue;case 123:H=47;case 94:case 95:case 96:continue;case 46:H=95}M.push(String.fromCharCode(H))}return M},
null,12,1540023973,65941107,null,J,function(H,M){for(H=(H%M.length+M.length)%M.length;H--;)M.unshift(M.pop())},
695603893,function(H){for(var M=H.length;M;)H.push(H.splice(--M,1)[0])},
"'[;'[(",function(H,M){H.push(M)},
null,function(H,M,X,Z,n){return M(X,Z,n)},
"continuation",J,function(H,M){if(H.length!=0){M=(M%H.length+H.length)%H.length;var X=H[0];H[0]=H[M];H[M]=X}},
function(){for(var H=64,M=[];++H-M.length-32;){switch(H){case 91:H=44;continue;case 123:H=65;break;case 65:H-=18;continue;case 58:H=96;continue;case 46:H=95}M.push(String.fromCharCode(H))}return M},
'"),/]];'];S[7]=S;S[11]=S;S[18]=S;try{(((0,S[15])(S[21]),S[22])(S[11],S[9]),S[22])(S[new Date("1970-01-01T04:30:12.000+04:30")/1E3],S[1]),((0,S[22])(S[11],S[23]),S[4])(S[10],S[18]),(0,S[20])(S[21],S[14])<<(0,S[17])(S[18],S[1]),(0,S[4])(S[8],S[21]),(0,S[19])((0,S[19])((0,S[17])(S[7],S[9]),S[3],S[20],(0,S[6])(),S[2]),S[3],S[5],(0,S[15])(),S[2])}catch(H){return"aTlOUOubTO4AP____8P_"+p}return J.join("")};_.oDo=new _.Zz("runAttestationCommand");var eE4=new _.Zz("verifyCommand");_.PY=new _.Zz("accessibilityContext");var W6d=new _.Zz("accessibilityData");var Quv=new _.Zz("profileCardCommand");var Bz9=new _.Zz("signInEndpoint");var yBX=new _.Zz("signOutEndpoint");var yG8;_.Cro=new _.Zz("accountItemSectionRenderer");yG8=new _.Zz("accountItemRenderer");_.B9o=new _.Zz("saveCommandToSessionStorageAction");var UPE=new _.Zz("crossAccountChannelTransferEndpoint");var $t4=new _.Zz("getAccountMenuEndpoint");_.oks=new _.Zz("getAccountSwitcherEndpoint");var zOi=new _.Zz("getAccountsListEndpoint");var su8=new _.Zz("getAccountsListInnertubeEndpoint");_.gD8=new _.Zz("addToToastAction");var t2n=new _.Zz("hideEnclosingAction");_.Vs=new _.Zz("replaceEnclosingAction");var hE8=new _.Zz("buttonRefreshAction");var DPq=new _.Zz("adsControlFlowOpportunityReceivedCommand");var kTo=new _.Zz("openAdAllowlistInstructionCommand");var N98=new _.Zz("videoMastheadAdPrimaryVideoRenderer");var T9p=new _.Zz("displayAdRenderer");_.dP8=new _.Zz("inFeedAdLayoutRenderer");var uU4=new _.Zz("sequenceItemInPlayerAdLayoutRenderer");_.lzo=new _.Zz("adSlotRenderer");var V28=new _.Zz("adAvatarViewModel");var qE8=new _.Zz("adBadgeViewModel");var az8=new _.Zz("adButtonViewModel");var EDv=new _.Zz("adImageViewModel");var EqX=new _.Zz("reelsAdCardButtonedViewModel");var YEv=new _.Zz("reelsPlayerOverlayLayoutViewModel");var rGU=new _.Zz("formDataDecoratorCommand");var ju8=new _.Zz("updateConversationIdCommand");var wlM=new _.Zz("showSchedulingPanelCommand");var xPU=new _.Zz("backstageCommentsRenderer");var cGM=new _.Zz("backstageImageRenderer");var Izo=new _.Zz("backstagePostRenderer");var L6M=new _.Zz("backstageZeroStateRenderer");var pPv=new _.Zz("postRenderer");var J38=new _.Zz("sharedPostRenderer");var S2o=new _.Zz("createBackstagePostEndpoint");var Hk8=new _.Zz("getPostVideoPreviewEndpoint");var MYM=new _.Zz("updateBackstagePostEndpoint");var XP8=new _.Zz("filterChipTransformCommand");var ikE=new _.Zz("insertRichSectionCommand");var FJi=new _.Zz("talkToRecsDeselectCommand");var RhM=new _.Zz("talkToRecsNextCommand");var mSW=new _.Zz("talkToRecsSelectCommand");var EKv=new _.Zz("talkToRecsUpdateTextCommand");_.Ge=new _.Zz("browseEndpoint");_.KZp=new _.Zz("confirmDialogEndpoint");var Zko=new _.Zz("expandOnHoverCardRenderer");var ne8=new _.Zz("lumiereShelfDetailsRenderer");var Gmv=new _.Zz("revealBusinessEmailCommand");var bk8=new _.Zz("validateChannelHandleCommand");var mEp=new _.Zz("channelCreationFormEndpoint");var FZq=new _.Zz("aboutChannelViewModel");var ve4=new _.Zz("channelThumbnailWithLinkRenderer");var fRU=new _.Zz("channelCreationServiceEndpoint");var OkL=new _.Zz("updateChannelPageSettingsEndpoint");var qI=function(p){this.delegate=p},aW=function(){qI.apply(this,arguments)};
_.Q(aW,qI);_.vh.Object.defineProperties(aW.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(p){this.delegate.entityMetadata=p}}});var A3v=function(){aW.apply(this,arguments)};
_.Q(A3v,aW);A3v.prototype.getAssociations=function(){return[]};
A3v.prototype.getTypeName=function(){return"channelHandle"};var eyX=new _.Zz("webThumbnailDetailsExtensionData");_.gT=new _.Zz("commandContext");var PB8=new _.Zz("addVideoLinkAction");var zh8=new _.Zz("banAuthorAction");var $Ed=new _.Zz("createCommentAction");var oed=new _.Zz("createCommentReplyAction");var eh4=new _.Zz("createPollAction");var WZM=new _.Zz("hideIdentityChipAction");var QL8=new _.Zz("openUpdateCommentDialogAction");var CB8=new _.Zz("pinCommentAction");var y3m=new _.Zz("removeCommentAction");var BSq=new _.Zz("unpinCommentAction");var Ed=new _.Zz("updateBackstagePollAction");var UEp=new _.Zz("updateCommentVoteAction");var sLo=new _.Zz("commentThreadRenderer");var gen=function(){aW.apply(this,arguments)};
_.Q(gen,aW);gen.prototype.getAssociations=function(){return[]};
gen.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var tY8=function(){aW.apply(this,arguments)};
_.Q(tY8,aW);tY8.prototype.getAssociations=function(){return[]};
tY8.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.hho=new _.Zz("commentDialogRenderer");var DE8=new _.Zz("reloadCommentsCommand");var kmv=new _.Zz("updateCommentsSettingsEndpoint");var NSM=new _.Zz("commentViewModel");var TSp=new _.Zz("triStateButtonViewModel");var dEU=new _.Zz("voiceReplyContainerViewModel");_.H9=new _.Zz("commandExecutorCommand");var yM=new _.Zz("emoji");var ugM=new _.Zz("updateCreatorChannelInnertubeCommand");_.lR8=new _.Zz("appendContinuationItemsAction");_.VY8=new _.Zz("changeEngagementPanelVisibilityAction");_.hm=new _.Zz("continuationCommand");var q28=new _.Zz("hideReportedCommentAction");var aR8=new _.Zz("listMutationCommand");_.Yi=new _.Zz("openPopupAction");var Ee8=new _.Zz("persistSubscriptionsDisplayPreferencesCommand");var LZo;_.Y28=new _.Zz("playlistRemoveVideosAction");_.r3E=new _.Zz("updatePlaylistAction");_.jLv=new _.Zz("addToPlaylistCommand");_.wPq=new _.Zz("endPlaylistCommand");_.xEp=new _.Zz("recoverPlaylistCommand");_.c3n=new _.Zz("refreshPlaylistCommand");_.IRq=new _.Zz("refreshFormCommand");LZo=new _.Zz("openOnePickAddVideoModalCommand");_.BPi=new _.Zz("reloadContinuationItemsCommand");_.pyd=new _.Zz("scrollToEngagementPanelCommand");var JQq=new _.Zz("selectCountryCommand");var SM8=new _.Zz("showReloadUiCommand");var Ho8=new _.Zz("undoFeedbackAction");var MoM=new _.Zz("updateButtonAction");var XyL=new _.Zz("updateSubscribeButtonAction");var ioM=new _.Zz("updateToggleAction");var Rc8=new _.Zz("webNativeShareCommand");_.i7=new _.Zz("webCommandMetadata");_.rB=new _.Zz("webHandleServiceEndpointExtension");var fM3=new _.Zz("webNavigationEndpointData");var Kt8=new _.Zz("backgroundAudioPlaybackCommand");var Zon=new _.Zz("copyLinkCommand");var n9p=new _.Zz("playlistVotingRefreshPopupCommand");var GQo=new _.Zz("selectChipCommand");var bon=new _.Zz("setCookieCommand");var m3p=new _.Zz("setLocalStorageCommand");var Ftn=new _.Zz("setPrefStorageEntryCommand");var AQ8;_.v9U=new _.Zz("settingsUpdateCheckboxCommand");_.f$m=new _.Zz("settingsUpdateTextCommand");_.Oo8=new _.Zz("settingsUpdateOptionsCommand");AQ8=new _.Zz("settingsUpdateSwitchCommand");_.Pa8=new _.Zz("settingsUpdateConnectedAppRendererCommand");var zcM=new _.Zz("showCreatorChatbotEngagementPanelCommand");var $38=new _.Zz("updateTextInputFormFieldRendererCommand");var o9v=new _.Zz("updateToggleButtonStateCommand");var ecv=new _.Zz("updateUrlParamCommand");var Wtm=new _.Zz("webSubmitFormCommand");var QK8=new _.Zz("channelSwitcherPageRenderer"),CaL=new _.Zz("updateChannelSwitcherPageAction");_.js=new _.Zz("continuationItemRenderer");_.j3=new _.Zz("richItemRenderer");var yQq=new _.Zz("richSectionRenderer");_.BLE=new _.Zz("richShelfRenderer");_.U3d=new _.Zz("metadataBadgeRenderer");_.sK8=new _.Zz("multiPageMenuNotificationSectionRenderer");_.g98=new _.Zz("playlistLoopButtonStateRenderer");var toE=new _.Zz("claimLegacyYoutubeChannelEndpoint");var hco=new _.Zz("getNotificationMenuEndpoint");var D3q=new _.Zz("getSearchInVideoCommand");_.kQp=new _.Zz("getTranscriptEndpoint");_.X6=new _.Zz("signalServiceEndpoint");var NLd=new _.Zz("verifyAgeEndpoint");var NDi=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(NDi,_.Kt);NDi.prototype.getPath=function(){return _.B_(this,1)};
NDi.prototype.getValue=function(){return _.B_(this,2)};var TLp=[0,_.Ih,-1];var d3v=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(d3v,_.Kt);var ka9=_.PG(d3v,[0,_.Jd,TLp]);var uIn=new _.Zz("dismissalEndpoint");var l$L=new _.Zz("elementsCommand");_.Ua=new _.Zz("innertubeCommand");var Vo8=new _.Zz("multipleInlinePlaybackCommand");var pQX=new _.Zz("loggingDirectives");var qMM=new _.Zz("acknowledgeChannelTouStrikeCommand");var a$4=function(){aW.apply(this,arguments)};
_.Q(a$4,aW);a$4.prototype.getAssociations=function(){return[]};
a$4.prototype.getTypeName=function(){return"booleanEntity"};var E9o=function(){aW.apply(this,arguments)};
_.Q(E9o,aW);E9o.prototype.getAssociations=function(){return[]};
E9o.prototype.getTypeName=function(){return"stringEntity"};var ES=new _.Zz("entityBatchUpdate");_.YM8=new _.Zz("entityUpdateCommand");var rQL=function(){aW.apply(this,arguments)};
_.Q(rQL,aW);rQL.prototype.getAssociations=function(){var p=[];this.delegate.alternateChannel&&p.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&p.push.apply(p,_.dW(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&p.push(this.delegate.oneofChannelEntity);return[].concat(_.dW(new Set(p)))};
rQL.prototype.getTypeName=function(){return"fakeChannel"};var jKq=function(){aW.apply(this,arguments)};
_.Q(jKq,aW);jKq.prototype.getAssociations=function(){var p=[];this.delegate.entryCollection&&p.push(this.delegate.entryCollection);return[].concat(_.dW(new Set(p)))};
jKq.prototype.getTypeName=function(){return"fakePlaylist"};
var wyn=function(){aW.apply(this,arguments)};
_.Q(wyn,aW);wyn.prototype.getAssociations=function(){var p=[];this.delegate.parentPlaylist&&p.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var J=_.K(this.delegate.entries),S=J.next();!S.done;S=J.next())p.push.apply(p,_.dW((new x3o(S.value)).getAssociations()));return[].concat(_.dW(new Set(p)))};
wyn.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var x3o=function(){qI.apply(this,arguments)};
_.Q(x3o,qI);x3o.prototype.getAssociations=function(){var p=[];this.delegate.video&&p.push(this.delegate.video);return[].concat(_.dW(new Set(p)))};var cQn=function(){aW.apply(this,arguments)};
_.Q(cQn,aW);cQn.prototype.getAssociations=function(){var p=[];this.delegate.descriptionEntity&&p.push(this.delegate.descriptionEntity);this.delegate.creators&&p.push.apply(p,_.dW(this.delegate.creators));this.delegate.theBiggestFan&&p.push(this.delegate.theBiggestFan);return[].concat(_.dW(new Set(p)))};
cQn.prototype.getTypeName=function(){return"fakeVideo"};
var I$p=function(){aW.apply(this,arguments)};
_.Q(I$p,aW);I$p.prototype.getAssociations=function(){return[]};
I$p.prototype.getTypeName=function(){return"fakeVideoDescription"};var Ltp=new _.Zz("fantasyRosterViewModel");var pNd=new _.Zz("addFollowUpSurveyCommand");var Ja8=new _.Zz("getSurveyCommand");var Sdm=new _.Zz("ratingSurveyOptionRenderer");_.U0=new _.Zz("feedbackEndpoint");var H7v=new _.Zz("reportHistoryTableCellRenderer"),M38=new _.Zz("reportHistoryTableTextCellRenderer"),XN8=new _.Zz("reportHistoryTableReasonCellRenderer");_.i78=new _.Zz("flagEndpoint");var R3o=new _.Zz("deleteFlowStepsCommand");_.KA4=new _.Zz("flowNextStepCommand");_.Z7L=new _.Zz("flowPrevStepCommand");var nid=new _.Zz("getFlowCommand");var Gb8=new _.Zz("submitFormWithValidationFlowCommand");_.b74=new _.Zz("updateFlowCommand");var mIo=function(){aW.apply(this,arguments)};
_.Q(mIo,aW);mIo.prototype.getAssociations=function(){return[]};
mIo.prototype.getTypeName=function(){return"flowStateEntity"};var FAp=new _.Zz("flowFormState");_.wB=new _.Zz("flowStepRenderer");var vim=new _.Zz("gameCardRenderer");var fNU=new _.Zz("accountLinkingStateChangedCommand");var O7q=function(){aW.apply(this,arguments)};
_.Q(O7q,aW);O7q.prototype.getAssociations=function(){return[]};
O7q.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var AaU=new _.Zz("changeMiniAppPlayStateCommand");var Ppq=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Ppq,_.Kt);var xi=[1,2,3];var z3d=[0,xi,C$p,_.pX,Aro];var $IM=_.PG(Ppq,z3d),oi8=_.zu(z3d);var e3m=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(e3m,_.Kt);var WAo=[0,_.YC,_.Ih];var QWM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(QWM,_.Kt);var CpM=[0,_.Ih,_.YC,-1];var cN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(cN,_.Kt);var yav=_.zu([0,1,WAo,_.Xh,CpM]);var BBd=new _.Zz("miniAppScoreChallengeViewModel");var UIE=new _.Zz("miniGameCardViewModel");var sWo=new _.Zz("teaserCardViewModel");var gid=function(){aW.apply(this,arguments)};
_.Q(gid,aW);gid.prototype.getAssociations=function(){return[]};
gid.prototype.getTypeName=function(){return"logoEntity"};var t38=new _.Zz("feedbackItemRenderer");var h3v=function(){aW.apply(this,arguments)};
_.Q(h3v,aW);h3v.prototype.getAssociations=function(){return[]};
h3v.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.DIq=new _.Zz("playerInterstitialRenderer");var kbd=new _.Zz("getKidsBlocklistPickerCommand");_.NBn=new _.Zz("updateKidsBlacklistEndpoint");_.IW=new _.Zz("likeEndpoint");var TB8,dI8,u8o;TB8=new _.Zz("addChatItemAction");dI8=new _.Zz("removeChatItemAction");u8o=new _.Zz("markChatItemAsDeletedAction");_.lN8=new _.Zz("setLiveChatCollapsedStateAction");var V3v=function(){aW.apply(this,arguments)};
_.Q(V3v,aW);V3v.prototype.getAssociations=function(){return[]};
V3v.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var qd8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(qd8,_.Kt);qd8.prototype.getPayloadCase=function(){return _.$C(this,aNE)};
var aNE=[3,4];var EiE=[0,_.Jd,[0,[1,2],_.pX,_.S_,[0,_.Lu,1,_.Lu]]];var Ydp=[0,_.Ih,-1];var raL=[0,[1],_.pX];var L7=[0,[1,2],_.pX,_.S_,[0,_.Xh]];var p5=[0,_.Ih];var jW8=[0,[0,_.xC,_.w4,[0,_.Lu,_.i_,_.Lu]],1,[0,_.xC]];var wNU=[0,r4];var xIE=[0,r4];var cad=[0,xIE,wNU];var IN8=[0,_.Jd,[0,[1,2],_.pX,-1],_.xC];var LAE=[0,[2],1,_.S_,[0,_.Lu,-1,IN8]];var pmn=[0,[1],_.S_,[0,_.Lu,_.Ih,_.i_,1,IN8]];var J_U=[0,_.w4,-1,OPU,_.Xh];var Su8=[0,[0,qU,-3],-4];var J_=[0,_.xC,-3,_.Ih,_.xC,_.Kn,_.xC,EiE,_.xC,-2];var S7=[0,_.Jd,[0,[1,2],_.pX,-1],_.xC,_.Ih];var H58=[0,[3],L7,[0,[2,3,4],gyq,_.pX,-2],_.S_,[0,_.Ih],_.YC];var M7d=[0,[3,5],_.Ih,_.jJ,_.S_,[0,1,_.YC,_.Xh],_.Xh,_.S_,[0,_.Xh,_.YC]];var Xmd=[0,2,_.jJ,_.Ih,-1];var i5n=[0,WIM];var R9d=[0,[3,4],2,zUn,_.pX,_.Ih];var KOE=[0,_.Xh,-2,1,_.Ih];var Z58=[0,_.Ih,-1,_.Xh];var nEp=[0,p5,function(){return Hm},
p5,_.Ih],GZ8=[0,_.Xh,p5,L7,function(){return Hm},
_.Ih],Hm=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],p5,_.jJ,[0,_.xC,1,_.xC,1,_.xC,1,_.Xh,-1,p5],[0,1,_.xC,2,_.xC,_.Xh,_.xC],1,_.jJ,-1,_.Ih,_.jJ,2,qU,[0,qU,_.jJ],_.Ih,1,jW8,1,L7,_.Kn,1,[0,[0,_.Jd,[0,_.Ih,_.xC,_.Xh]]],[0,_.xC,[0,_.YC,[0,_.i_]],_.YC,1,[0,oyn,-1]],_.Ih,[0,1,_.Ih],76,_.S_,[0,L7,S7,jW8,1,[0,_.Jd,S7]],1,_.S_,[0,L7,_.Ih,_.xC],
_.S_,[0,L7,raL],_.S_,[0,L7,raL,_.jJ],_.S_,[0,L7,raL],_.S_,[0,L7,_.Jd,p5,L7,yrn],_.S_,[0,L7,p5,_.Ih],_.S_,[0,L7,_.xC,J_,-1,_.xC],4,_.S_,[0,L7,_.xC,_.jJ,J_,_.xC],_.S_,[0,[4,9],L7,_.Xh,_.jJ,_.pX,S7,1,jW8,_.Ih,_.pX,KOE],_.S_,[0,L7,p5,L7,_.Xh,_.Ih],_.S_,[0,_.xC,L7,J_,_.xC,_.Ih],_.S_,[0,L7,p5,L7,_.Xh,_.Ih],1,_.S_,[0,L7,_.Xh,_.Ih,J_],_.S_,[0,L7,_.Xh,[0,_.Ih,_.jJ],_.Ih,_.jJ,_.Ih,_.MR,-2,3,Z58,_.Jd,Z58,Z58,KOE],_.S_,[0,L7,_.Xh,pmn,_.Jd,[0,xIE,LAE],p5,_.Jd,cad,_.Ih,1,_.Xh,J_U,Su8,flv,-1],_.S_,[0,L7,[0,_.i_,
-1,pmn,_.Jd,[0,xIE,LAE,wNU],[0,_.Zo],1,_.Lu],p5,_.Ih],_.S_,[0,L7,S7,_.Ih,[0,_.w4]],_.S_,function(){return GZ8},
_.S_,[0,L7,_.jJ,_.Ih,-1,_.xC],_.S_,[0,[6,7],L7,_.Jd,Xmd,_.Xh,S7,1,_.S_,R9d,_.S_,i5n],_.S_,[0,_.Jd,Xmd,_.Xh,_.xC],_.S_,[0,_.Ih,yqq,-1],_.S_,[0,p5,_.Jd,cad,_.Ih],_.S_,[0,L7,p5,_.Ih],_.S_,[0,_.MR,_.Ih],_.S_,[0,Ydp],_.S_,[0,Ydp],_.S_,[0,S7],_.S_,[0,p5,S7],_.S_,function(){return nEp},
_.S_,[0,p5,_.Ih],_.S_,[0,p5,_.Ih],1,_.S_,[0,_.xC,L7,J_,_.xC,J_],_.S_,[0,_.Zo],1,_.S_,[0],1,_.S_,[0,p5,_.Xh,L7,_.Xh],_.S_,[0,[1,2],_.S_,R9d,_.S_,i5n,_.jJ],_.S_,[0,_.Zo,S7,M7d,_.Ih,_.jJ],_.S_,[0,M7d,_.Ih,_.jJ],_.S_,[0,J_U,S7,_.xC,Su8],_.S_,H58,_.S_,[0],_.S_,[0,_.Ih,-1,_.YC],_.S_,[0,p5,_.Ih],_.S_,[0,H58,_.YC,_.Ih],_.S_,[0,L7,J_,_.xC],_.S_,[0,L7,J_,_.xC],_.S_,[0,J_U,Su8,S7,_.Kn,_.xC,flv,-1],_.S_,[0,L7,J_,_.xC]];var b5d=[0,_.Jd,Hm];var ml4=_.PG(qd8,[0,aNE,1,_.YC,_.S_,[0,[18,22,24],b5d,3,[0,b5d],1,_.YC,[0,_.Jd,[0,_.jJ,qU],_.jJ],1,Hm,-1,[0,_.c_,-2,_.Kn,_.c_,-1,_.Kn,_.c_,EiE,_.c_,-2],FIq,[!0,_.Ih,[0,raL,2,_.Ih,_.jJ,_.xC,2,_.Ih,_.MR]],[0,[1,2,3],[5,6],_.S_,[0,_.Lu],_.S_,[0,_.Lu,-1],_.S_,[0,_.Lu],1,_.S_,Ydp,_.S_,[0,_.Ih]],[0,Hm,-1],_.Zo,Hm,_.S_,Hm,[0,b5d],_.YC,Hm,_.S_,Hm,_.Ih,_.S_,Hm],_.S_,wiU,_.YC]);var FOd=new _.Zz("liveChatEndpoint");var vEn=new _.Zz("liveChatItemContextMenuEndpoint");var fa8=new _.Zz("liveChatReplayEndpoint");_.O5d=new _.Zz("emojiPickerRenderer");var A_m=new _.Zz("liveChatAuthorBadgeViewModel");var Pqn=new _.Zz("deleteLiveChatMessageCommand");var z9n=new _.Zz("liveChatActionEndpoint");var $lv=new _.Zz("createLiveChatPollEndpoint");var oE8=new _.Zz("manageLiveChatUserEndpoint");var e9d=new _.Zz("moderateLiveChatEndpoint");_.WOM=new _.Zz("sendLiveChatMessageEndpoint");var Qlp=new _.Zz("sendLiveChatVoteEndpoint");var Cqn=new _.Zz("clearLocationCommand");var y_m=new _.Zz("resolveLocationCommand");var BCq=new _.Zz("interactionLoggingCommandMetadata");var Ul8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Ul8,_.Kt);var slU=function(p,J){return _.fC(p,1,J)};var gEp=[0,_.xC];var t78=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(t78,_.Kt);var h9U=function(p,J){return hV(p,1,Ul8,J)};t78.prototype.JSC$12474_serializeBinary=rsi([0,_.Jd,gEp]);var $3w={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 DlL={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"},
kZv={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 J8X={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT"};_.lGi=new _.Zz("logFlowLoggingEventCommand");_.Fj=new _.Zz("loggingContext");var NCd=new _.Zz("audioTrackSelectActionCommand");var TCm=new _.Zz("captionLanguageSelectActionCommand");var dlE=new _.Zz("showAudioTrackPickerActionCommand");var uY8=new _.Zz("showCaptionLanguageSelectActionCommand");var la8=new _.Zz("dismissDialogEndpoint");var V78=new _.Zz("dismissPlayerOverlayCommand");var quv=new _.Zz("hideItemSectionVideosByIdCommand");var aa8=new _.Zz("showMiniplayerCommand");var EEE=function(){aW.apply(this,arguments)};
_.Q(EEE,aW);EEE.prototype.getAssociations=function(){return[]};
EEE.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var Yun=function(){aW.apply(this,arguments)};
_.Q(Yun,aW);Yun.prototype.getAssociations=function(){return[]};
Yun.prototype.getTypeName=function(){return"downloadStatusEntity"};var r_v=function(){aW.apply(this,arguments)};
_.Q(r_v,aW);r_v.prototype.getAssociations=function(){return[]};
r_v.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var jld=function(){aW.apply(this,arguments)};
_.Q(jld,aW);jld.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(_.dW(new Set(p)))};
jld.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var wmm=function(){aW.apply(this,arguments)};
_.Q(wmm,aW);wmm.prototype.getAssociations=function(){var p=[];this.delegate.refresh&&p.push(this.delegate.refresh);if(this.delegate.downloads)for(var J=_.K(this.delegate.downloads),S=J.next();!S.done;S=J.next())p.push.apply(p,_.dW((new xlM(S.value)).getAssociations()));return[].concat(_.dW(new Set(p)))};
wmm.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var xlM=function(){qI.apply(this,arguments)};
_.Q(xlM,qI);xlM.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(_.dW(new Set(p)))};var c_E=function(){aW.apply(this,arguments)};
_.Q(c_E,aW);c_E.prototype.getAssociations=function(){var p=[];this.delegate.localImageEntities&&p.push.apply(p,_.dW(this.delegate.localImageEntities));return[].concat(_.dW(new Set(p)))};
c_E.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var IaU=function(){aW.apply(this,arguments)};
_.Q(IaU,aW);IaU.prototype.getAssociations=function(){var p=[];this.delegate.playbackData&&p.push(this.delegate.playbackData);this.delegate.localImageEntities&&p.push.apply(p,_.dW(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&p.push(this.delegate.videoDownloadContextEntity);return[].concat(_.dW(new Set(p)))};
IaU.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var LOL=function(){aW.apply(this,arguments)};
_.Q(LOL,aW);LOL.prototype.getAssociations=function(){return[]};
LOL.prototype.getTypeName=function(){return"offlineabilityEntity"};var pRd=function(){aW.apply(this,arguments)};
_.Q(pRd,aW);pRd.prototype.getAssociations=function(){var p=[];this.delegate.fakeChildren&&p.push.apply(p,_.dW(this.delegate.fakeChildren));return[].concat(_.dW(new Set(p)))};
pRd.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var JW4=function(){aW.apply(this,arguments)};
_.Q(JW4,aW);JW4.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(_.dW(new Set(p)))};
JW4.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var STm=function(){aW.apply(this,arguments)};
_.Q(STm,aW);STm.prototype.getAssociations=function(){return[]};
STm.prototype.getTypeName=function(){return"continuationTokenEntity"};var Hqn=function(){aW.apply(this,arguments)};
_.Q(Hqn,aW);Hqn.prototype.getAssociations=function(){var p=[];this.delegate.channelOwner&&p.push(this.delegate.channelOwner);this.delegate.videos&&p.push.apply(p,_.dW(this.delegate.videos));this.delegate.collaboratorChannels&&p.push.apply(p,_.dW(this.delegate.collaboratorChannels));this.delegate.downloadState&&p.push(this.delegate.downloadState);this.delegate.refresh&&p.push(this.delegate.refresh);return[].concat(_.dW(new Set(p)))};
Hqn.prototype.getTypeName=function(){return"mainPlaylistEntity"};var MgM=function(){aW.apply(this,arguments)};
_.Q(MgM,aW);MgM.prototype.getAssociations=function(){var p=[];this.delegate.video&&p.push(this.delegate.video);this.delegate.channelContributor&&p.push(this.delegate.channelContributor);return[].concat(_.dW(new Set(p)))};
MgM.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var XR8=function(){qI.apply(this,arguments)};
_.Q(XR8,qI);XR8.prototype.getAssociations=function(){var p=[];this.delegate.recommendedVideoMetadata&&p.push.apply(p,_.dW((new iqd(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.dW(new Set(p)))};
var iqd=function(){qI.apply(this,arguments)};
_.Q(iqd,qI);iqd.prototype.getAssociations=function(){var p=[];this.delegate.localImageEntities&&p.push.apply(p,_.dW(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&p.push(this.delegate.videoDownloadContextEntity);return[].concat(_.dW(new Set(p)))};var RDv=function(){qI.apply(this,arguments)};
_.Q(RDv,qI);RDv.prototype.getAssociations=function(){var p=[];this.delegate.playbackPosition&&p.push(this.delegate.playbackPosition);return[].concat(_.dW(new Set(p)))};var KXE=function(){aW.apply(this,arguments)};
_.Q(KXE,aW);KXE.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,_.dW((new RDv(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&p.push.apply(p,_.dW((new XR8(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.dW(new Set(p)))};
KXE.prototype.getTypeName=function(){return"mainVideoEntity"};var Zq8=function(){aW.apply(this,arguments)};
_.Q(Zq8,aW);Zq8.prototype.getAssociations=function(){var p=[];this.delegate.userChannelDetails&&p.push(this.delegate.userChannelDetails);return[].concat(_.dW(new Set(p)))};
Zq8.prototype.getTypeName=function(){return"ytMainChannelEntity"};var nwm=function(){aW.apply(this,arguments)};
_.Q(nwm,aW);nwm.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,_.dW(this.delegate.localImageEntities));this.delegate.downloadStatus&&p.push(this.delegate.downloadStatus);return[].concat(_.dW(new Set(p)))};
nwm.prototype.getTypeName=function(){return"ytMainVideoEntity"};var f04=new _.Zz("downloadsPageSmartDownloadsOptInBannerParams");var zgs=new _.Zz("downloadsPageUpsellBannerParams");var Gk4=function(){aW.apply(this,arguments)};
_.Q(Gk4,aW);Gk4.prototype.getAssociations=function(){return[]};
Gk4.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var bqL=function(){aW.apply(this,arguments)};
_.Q(bqL,aW);bqL.prototype.getAssociations=function(){return[]};
bqL.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var mZo=function(){aW.apply(this,arguments)};
_.Q(mZo,aW);mZo.prototype.getAssociations=function(){return[]};
mZo.prototype.getTypeName=function(){return"macroMarkerEntity"};var FXU=function(){aW.apply(this,arguments)};
_.Q(FXU,aW);FXU.prototype.getAssociations=function(){return[]};
FXU.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var vwM=function(){aW.apply(this,arguments)};
_.Q(vwM,aW);vwM.prototype.getAssociations=function(){return[]};
vwM.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var fgE=function(){aW.apply(this,arguments)};
_.Q(fgE,aW);fgE.prototype.getAssociations=function(){return[]};
fgE.prototype.getTypeName=function(){return"playerStateEntity"};var Oq8=function(){aW.apply(this,arguments)};
_.Q(Oq8,aW);Oq8.prototype.getAssociations=function(){return[]};
Oq8.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var AWn=function(){aW.apply(this,arguments)};
_.Q(AWn,aW);AWn.prototype.getAssociations=function(){return[]};
AWn.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var Pcm=function(){aW.apply(this,arguments)};
_.Q(Pcm,aW);Pcm.prototype.getAssociations=function(){return[]};
Pcm.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.Nk=new _.Zz("dislikeButtonViewModel");_.kI=new _.Zz("likeButtonViewModel");var zDE=new _.Zz("videoSummaryContentViewModel");var $ZM=new _.Zz("videoSummaryParagraphViewModel");var owv=new _.Zz("changeTimelyActionVisibilityCommand");var eDo=new _.Zz("hideEngagementPanelEndpoint");var WXn=new _.Zz("refreshPanelEndpoint");var QQ8=new _.Zz("scrollToSectionEndpoint");var Ccn=new _.Zz("seekToVideoTimestampCommand");_.Bu=new _.Zz("showEngagementPanelEndpoint");var yWM=new _.Zz("showTransientPlayerScrimOverlayCommand");var Bbn=new _.Zz("toggleEngagementPanelCommand");_.UZ8=new _.Zz("createBroadcastCommand");var sQM=new _.Zz("metadataUpdateCommand");var gwL=function(){aW.apply(this,arguments)};
_.Q(gwL,aW);gwL.prototype.getAssociations=function(){return[]};
gwL.prototype.getTypeName=function(){return"featuredProductsEntity"};var tgn=function(){aW.apply(this,arguments)};
_.Q(tgn,aW);tgn.prototype.getAssociations=function(){return[]};
tgn.prototype.getTypeName=function(){return"pinnedProductEntity"};var hDq=function(){aW.apply(this,arguments)};
_.Q(hDq,aW);hDq.prototype.getAssociations=function(){return[]};
hDq.prototype.getTypeName=function(){return"trendingOfferEntity"};_.DZ8=new _.Zz("merchandiseShelfRenderer");var kkp=new _.Zz("shoppingContentLineItemViewModel");var Nbo=new _.Zz("gridMovieRenderer");_.Tb4=new _.Zz("movieRenderer");var dZq=function(){aW.apply(this,arguments)};
_.Q(dZq,aW);dZq.prototype.getAssociations=function(){return[]};
dZq.prototype.getTypeName=function(){return"compositeSourceEntity"};var uFU=function(){aW.apply(this,arguments)};
_.Q(uFU,aW);uFU.prototype.getAssociations=function(){var p=[];this.delegate.compositeSourceKeys&&p.push.apply(p,_.dW(this.delegate.compositeSourceKeys));return[].concat(_.dW(new Set(p)))};
uFU.prototype.getTypeName=function(){return"multiviewStagingEntity"};var lgo=function(){aW.apply(this,arguments)};
_.Q(lgo,aW);lgo.prototype.getAssociations=function(){var p=[];this.delegate.trackDownloadMetadatas&&p.push.apply(p,_.dW(this.delegate.trackDownloadMetadatas));return[].concat(_.dW(new Set(p)))};
lgo.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var Vg4=function(){aW.apply(this,arguments)};
_.Q(Vg4,aW);
Vg4.prototype.getAssociations=function(){var p=[];this.delegate.downloadedTracks&&p.push.apply(p,_.dW(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&p.push.apply(p,_.dW(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&p.push.apply(p,_.dW(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&p.push.apply(p,_.dW(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&p.push.apply(p,_.dW(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
p.push.apply(p,_.dW(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&p.push.apply(p,_.dW(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&p.push.apply(p,_.dW(this.delegate.metadataOnlyTracks));return[].concat(_.dW(new Set(p)))};
Vg4.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var qT8=function(){aW.apply(this,arguments)};
_.Q(qT8,aW);qT8.prototype.getAssociations=function(){var p=[];this.delegate.trackDownloadMetadatas&&p.push.apply(p,_.dW(this.delegate.trackDownloadMetadatas));return[].concat(_.dW(new Set(p)))};
qT8.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var agU=function(){aW.apply(this,arguments)};
_.Q(agU,aW);agU.prototype.getAssociations=function(){var p=[];this.delegate.playbackData&&p.push(this.delegate.playbackData);this.delegate.localImageEntities&&p.push.apply(p,_.dW(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&p.push(this.delegate.videoDownloadContextEntity);return[].concat(_.dW(new Set(p)))};
agU.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var Ewo=function(){aW.apply(this,arguments)};
_.Q(Ewo,aW);
Ewo.prototype.getAssociations=function(){var p=[];this.delegate.musicLibraryStatusEntity&&p.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&p.push.apply(p,_.dW(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,_.dW(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(_.dW(new Set(p)))};
Ewo.prototype.getTypeName=function(){return"musicAlbumRelease"};
var YTL=function(){aW.apply(this,arguments)};
_.Q(YTL,aW);YTL.prototype.getAssociations=function(){var p=[];this.delegate.albumRelease&&p.push(this.delegate.albumRelease);this.delegate.tracks&&p.push.apply(p,_.dW(this.delegate.tracks));return[].concat(_.dW(new Set(p)))};
YTL.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var rW8=function(){aW.apply(this,arguments)};
_.Q(rW8,aW);rW8.prototype.getAssociations=function(){var p=[];this.delegate.albumRelease&&p.push(this.delegate.albumRelease);return[].concat(_.dW(new Set(p)))};
rW8.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var jQo=function(){aW.apply(this,arguments)};
_.Q(jQo,aW);jQo.prototype.getAssociations=function(){var p=[];this.delegate.details&&p.push(this.delegate.details);this.delegate.userDetails&&p.push(this.delegate.userDetails);return[].concat(_.dW(new Set(p)))};
jQo.prototype.getTypeName=function(){return"musicArtist"};
var wRM=function(){aW.apply(this,arguments)};
_.Q(wRM,aW);wRM.prototype.getAssociations=function(){var p=[];this.delegate.parentArtist&&p.push(this.delegate.parentArtist);return[].concat(_.dW(new Set(p)))};
wRM.prototype.getTypeName=function(){return"musicArtistDetail"};
var xZv=function(){aW.apply(this,arguments)};
_.Q(xZv,aW);xZv.prototype.getAssociations=function(){var p=[];this.delegate.parentArtist&&p.push(this.delegate.parentArtist);return[].concat(_.dW(new Set(p)))};
xZv.prototype.getTypeName=function(){return"musicArtistUserDetail"};var cWv=function(){aW.apply(this,arguments)};
_.Q(cWv,aW);cWv.prototype.getAssociations=function(){return[]};
cWv.prototype.getTypeName=function(){return"musicLibraryEdit"};var Igq=function(){aW.apply(this,arguments)};
_.Q(Igq,aW);Igq.prototype.getAssociations=function(){return[]};
Igq.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var LXm=function(){aW.apply(this,arguments)};
_.Q(LXm,aW);
LXm.prototype.getAssociations=function(){var p=[];this.delegate.tracks&&p.push.apply(p,_.dW(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,_.dW((new p3M(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.dW(new Set(p)))};
LXm.prototype.getTypeName=function(){return"musicPlaylist"};
var p3M=function(){qI.apply(this,arguments)};
_.Q(p3M,qI);p3M.prototype.getAssociations=function(){var p=[];this.delegate.creatorEntity&&p.push(this.delegate.creatorEntity);return[].concat(_.dW(new Set(p)))};var JLp=function(){aW.apply(this,arguments)};
_.Q(JLp,aW);JLp.prototype.getAssociations=function(){return[]};
JLp.prototype.getTypeName=function(){return"musicShare"};var SZp=function(){aW.apply(this,arguments)};
_.Q(SZp,aW);
SZp.prototype.getAssociations=function(){var p=[];this.delegate.musicLibraryStatusEntity&&p.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&p.push.apply(p,_.dW(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(_.dW(new Set(p)))};
SZp.prototype.getTypeName=function(){return"musicTrack"};
var HDn=function(){aW.apply(this,arguments)};
_.Q(HDn,aW);HDn.prototype.getAssociations=function(){var p=[];this.delegate.parentTrack&&p.push(this.delegate.parentTrack);return[].concat(_.dW(new Set(p)))};
HDn.prototype.getTypeName=function(){return"musicTrackDetail"};
var Mp8=function(){aW.apply(this,arguments)};
_.Q(Mp8,aW);Mp8.prototype.getAssociations=function(){var p=[];this.delegate.parentTrack&&p.push(this.delegate.parentTrack);return[].concat(_.dW(new Set(p)))};
Mp8.prototype.getTypeName=function(){return"musicTrackUserDetail"};var EX=new _.Zz("musicResponsiveListItemRenderer");var gk4=new _.Zz("addToPlaylistEndpoint");var X38=new _.Zz("captionPickerEndpoint");var iD8=new _.Zz("suggestStats");var RgL=new _.Zz("backstageImageUploadEndpoint");var KU8=new _.Zz("createBackstagePostDialogEndpoint");_.ZDM=new _.Zz("createCommentReplyDialogEndpoint");_.nNU=new _.Zz("updateCommentDialogEndpoint");_.G_m=new _.Zz("updateCommentReplyDialogEndpoint");var bD8=new _.Zz("menuEndpoint");var muv=new _.Zz("modalEndpoint");var maL=new _.Zz("playlistEditorEndpoint");var FUv=new _.Zz("copyTextEndpoint");var vNd,f0M;vNd=new _.Zz("shareEndpoint");f0M=new _.Zz("shareEntityEndpoint");_.OD8=new _.Zz("shareEntityServiceEndpoint");_.eFt=new _.Zz("userFeedbackEndpoint");_.lj=new _.Zz("watchEndpoint");var Sz4=new _.Zz("watchPlaylistEndpoint");var AL8=new _.Zz("addUpcomingEventReminderEndpoint");_.Ml=new _.Zz("getCommentsFromInboxCommand");var P18=new _.Zz("notificationOptOutEndpoint");var zgU=new _.Zz("recordNotificationInteractionsEndpoint");var $am=new _.Zz("removeUpcomingEventReminderEndpoint");_.rn=new _.Zz("getDownloadActionCommand");_.oN4=new _.Zz("offlineOrchestrationActionCommand");var egq=function(){aW.apply(this,arguments)};
_.Q(egq,aW);egq.prototype.getAssociations=function(){return[]};
egq.prototype.getTypeName=function(){return"captionTrack"};var WUE=function(){aW.apply(this,arguments)};
_.Q(WUE,aW);WUE.prototype.getAssociations=function(){return[]};
WUE.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var QO8=function(){aW.apply(this,arguments)};
_.Q(QO8,aW);QO8.prototype.getAssociations=function(){return[]};
QO8.prototype.getTypeName=function(){return"offlineVideoPolicy"};var C1E=function(){aW.apply(this,arguments)};
_.Q(C1E,aW);C1E.prototype.getAssociations=function(){return[]};
C1E.prototype.getTypeName=function(){return"offlineVideoStreams"};var yLq=function(){aW.apply(this,arguments)};
_.Q(yLq,aW);yLq.prototype.getAssociations=function(){var p=[];this.delegate.transfer&&p.push(this.delegate.transfer);this.delegate.adsPlaybackData&&p.push.apply(p,_.dW(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(_.dW(new Set(p)))};
yLq.prototype.getTypeName=function(){return"playbackData"};var BFd=function(){aW.apply(this,arguments)};
_.Q(BFd,aW);BFd.prototype.getAssociations=function(){return[]};
BFd.prototype.getTypeName=function(){return"refresh"};var Uan=function(){aW.apply(this,arguments)};
_.Q(Uan,aW);Uan.prototype.getAssociations=function(){var p=[];this.delegate.offlineVideoStreams&&p.push.apply(p,_.dW(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&p.push.apply(p,_.dW(this.delegate.captionTrack));return[].concat(_.dW(new Set(p)))};
Uan.prototype.getTypeName=function(){return"transfer"};var sOM=function(){aW.apply(this,arguments)};
_.Q(sOM,aW);sOM.prototype.getAssociations=function(){return[]};
sOM.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var gNm=new _.Zz("showMoreDrawerCommand");var tpo=new _.Zz("updateEngagementPanelContentCommand");var hg8=new _.Zz("getPdgBuyFlowCommand");var Dam=new _.Zz("liveChatPurchaseMessageEndpoint");var k_8=new _.Zz("openSuperStickerBuyFlowCommand");var NFL=new _.Zz("updatePdgFeatureEnablementCommand");var TFm=function(){aW.apply(this,arguments)};
_.Q(TFm,aW);TFm.prototype.getAssociations=function(){return[]};
TFm.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var dad=function(){aW.apply(this,arguments)};
_.Q(dad,aW);dad.prototype.getAssociations=function(){return[]};
dad.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.uNo=new _.Zz("pdgCommentChipRenderer");_.l0n=new _.Zz("permissionRoleBottomBarRenderer");_.Vp8=new _.Zz("updatePermissionRoleCommand");var qZd=new _.Zz("prefetchWatchCommand");var a0p=new _.Zz("updatePlayerErrorMessageCommand");var eOk=new _.Zz("toggleCaptionsVisibilityCommand");var EN8=new _.Zz("playerDisclosureViewModel");_.YZq=new _.Zz("quickActionsViewModel");var rLp=new _.Zz("playerResponse");var jO8=new _.Zz("playlistRenderer");_.w34=new _.Zz("playlistVideoListRenderer");_.XY=new _.Zz("playlistEditEndpoint");var xa8=new _.Zz("createImagePollCommand");var cL4=new _.Zz("createQuizCommand");var I0L=new _.Zz("quizRenderer");var LUm=new _.Zz("uploadedVideoRenderer");var p7U=new _.Zz("decorateMessageEndpoint");var J08=new _.Zz("lpOfferCardOptionViewModel");var S7v=new _.Zz("sfvAudioItemPlaybackCommand");var HeL=function(){aW.apply(this,arguments)};
_.Q(HeL,aW);HeL.prototype.getAssociations=function(){return[]};
HeL.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.iq=new _.Zz("reelNonVideoContentEndpoint");_.vt=new _.Zz("reelWatchEndpoint");var M$E=new _.Zz("reelActionBarViewModel");_.Rl=new _.Zz("reelItemRenderer");var X78=new _.Zz("reelMetapanelViewModel");_.K5=new _.Zz("reelNonVideoContentRenderer");_.ie4=new _.Zz("reelPlayerOverlayRenderer");var Rr8=new _.Zz("shortsLockupViewModel");var KBM=new _.Zz("sponsorButtonViewModel");var Zep=new _.Zz("reelItemWatchResponse");var nY8=new _.Zz("textBadgeRenderer");_.Za=new _.Zz("buttonRenderer");_.n5=new _.Zz("toggleButtonRenderer");var NKw=new _.Zz("switchButtonViewModel");_.G38=new _.Zz("confirmDialogRenderer");var bem;bem=new _.Zz("menuRenderer");_.mFm=new _.Zz("menuFlexibleItemRenderer");var FBL=new _.Zz("pollRenderer");_.vYv=new _.Zz("backgroundPromoRenderer");var Oe4;_.fXU=new _.Zz("chipCloudRenderer");Oe4=new _.Zz("chipCloudChipRenderer");var A0v=new _.Zz("dropdownRenderer");var PPq=new _.Zz("gridVideoRenderer");_.zrn=new _.Zz("itemSectionRenderer");_.$FU=new _.Zz("messageRenderer");var oYM=new _.Zz("sortFilterHeaderRenderer");_.GZ=new _.Zz("videoRenderer");var erq=new _.Zz("resolveUrlCommandMetadata");var WBv=function(){aW.apply(this,arguments)};
_.Q(WBv,aW);WBv.prototype.getAssociations=function(){return[]};
WBv.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.QxM=new _.Zz("getAnswerCommand");_.by=new _.Zz("searchEndpoint");var CPp=new _.Zz("genAiRichTextViewModel");var Ut4=new _.Zz("overviewAnswerViewModel");var y0n=new _.Zz("videoOverviewViewModel");var BVL=new _.Zz("addToPlaylistServiceEndpoint");var UFn=new _.Zz("clearSearchHistoryEndpoint");var sxm=new _.Zz("clearWatchHistoryEndpoint");var gYE=new _.Zz("webSerializedServiceEndpointExtension");_.t$o=new _.Zz("createCommentEndpoint");var hrU=new _.Zz("createCommentReplyEndpoint");var DF8=new _.Zz("performCommentActionEndpoint");var k3m=new _.Zz("updateCommentEndpoint");var NVq=new _.Zz("updateCommentReplyEndpoint");_.bq=new _.Zz("createPlaylistServiceEndpoint");var TVn=new _.Zz("deletePlaylistEndpoint");var dFv=new _.Zz("deleteVideoEndpoint");var sF4=new _.Zz("getReportFormEndpoint");var uc8=new _.Zz("modifyChannelNotificationPreferenceEndpoint");var VVX;_.FJ=new _.Zz("offlinePlaylistEndpoint");VVX={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 qCk;_.mV=new _.Zz("offlineVideoEndpoint");qCk={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 lXm=new _.Zz("pingingEndpoint");_.V$v=new _.Zz("selectActiveIdentityEndpoint");var q7o=new _.Zz("setSettingEndpoint");var v7t=new _.Zz("undoFeedbackEndpoint");var aX8=new _.Zz("unsubscribeEndpoint");_.EYq=new _.Zz("updatedMetadataEndpoint");var Y74=function(){aW.apply(this,arguments)};
_.Q(Y74,aW);Y74.prototype.getAssociations=function(){return[]};
Y74.prototype.getTypeName=function(){return"settingEntity"};_.r0U=new _.Zz("updateLocalAppSettingCommand");var jx8=new _.Zz("saveImageToDeviceEndpoint");var w7m=new _.Zz("shareImageCommand");var xF8=new _.Zz("sharingProviderDataCommand");var c0o=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(c0o,_.Kt);var IXq=[0,_.Ih,-1];c0o.prototype.JSC$12681_serializeBinary=rsi(IXq);var LBL=_.zu(IXq);var pHm=new _.Zz("userMentionSuggestionRenderer");var JMU=new _.Zz("liveChatTunnelCommand");var StM=new _.Zz("showSponsorshipsGiftOfferDialogCommand");var Ha8=new _.Zz("sponsorshipsScrollableShelfViewModel");var MkM=new _.Zz("updateUpcomingEventReminderButtonStateCommand");var XHp=new _.Zz("upcomingEventReminderButtonStateRenderer");var iam=new _.Zz("subscribeEndpoint");var R$8=new _.Zz("registerTasksCommand");var KGd=new _.Zz("hideSheetCommand");var Zam=new _.Zz("hideSnackbarCommand");var n4d=new _.Zz("showDialogCommand");_.zy=new _.Zz("showSheetCommand");var G0v=new _.Zz("showSnackbarCommand");var ba8=function(){aW.apply(this,arguments)};
_.Q(ba8,aW);ba8.prototype.getAssociations=function(){return[]};
ba8.prototype.getTypeName=function(){return"chipEntity"};var mgn=function(){aW.apply(this,arguments)};
_.Q(mgn,aW);mgn.prototype.getAssociations=function(){return[]};
mgn.prototype.getTypeName=function(){return"dismissState"};_.tH=new _.Zz("avatarViewModel");var FG8=new _.Zz("badgeViewModel");_.mO=new _.Zz("buttonViewModel");_.FY=new _.Zz("chipViewModel");var v48=new _.Zz("contentPreviewImageViewModel");var fUo=new _.Zz("decoratedAvatarViewModel");_.I9s=new _.Zz("engagementBarViewModel");_.Oad=new _.Zz("imageBannerViewModel");var AM8=new _.Zz("lockupContentMetadataRowExtension");_.PAM=new _.Zz("lockupMetadataViewModel");_.z$8=new _.Zz("lockupViewModel");var $g8=new _.Zz("avatarStackViewModel");_.o48=new _.Zz("contentMetadataViewModel");var e$8=function(){aW.apply(this,arguments)};
_.Q(e$8,aW);e$8.prototype.getAssociations=function(){return[]};
e$8.prototype.getTypeName=function(){return"pageHeaderEntity"};_.WG8=new _.Zz("pageHeaderViewModel");var QBm=new _.Zz("snackbarViewModel");var CAo=new _.Zz("thumbnailHoverOverlayToggleActionsViewModel");_.f5=new _.Zz("toggleButtonViewModel");var yM8=function(){aW.apply(this,arguments)};
_.Q(yM8,aW);yM8.prototype.getAssociations=function(){return[]};
yM8.prototype.getTypeName=function(){return"votingEntity"};_.LS3=new _.Zz("votingViewModel");var BUm=new _.Zz("sectionHeaderViewModel");var UgU=new _.Zz("notifyDropdownOptionSelectedCommand");var nbw=new _.Zz("listViewModel");_.$m=new _.Zz("listItemViewModel");var sB8=new _.Zz("dialogHeaderViewModel");var g4v=function(){aW.apply(this,arguments)};
_.Q(g4v,aW);g4v.prototype.getAssociations=function(){return[]};
g4v.prototype.getTypeName=function(){return"dataFreshnessEntity"};var PQk=new _.Zz("suspenseViewModel");var tkq=new _.Zz("tooltipViewModel");var h$8=function(){aW.apply(this,arguments)};
_.Q(h$8,aW);h$8.prototype.getAssociations=function(){return[]};
h$8.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var Dg8=function(){aW.apply(this,arguments)};
_.Q(Dg8,aW);Dg8.prototype.getAssociations=function(){return[]};
Dg8.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var k0v=function(){aW.apply(this,arguments)};
_.Q(k0v,aW);k0v.prototype.getAssociations=function(){return[]};
k0v.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.NUL=new _.Zz("transcriptSubmitCaptionCorrectionCommand");var TUL=function(){aW.apply(this,arguments)};
_.Q(TUL,aW);TUL.prototype.getAssociations=function(){return[]};
TUL.prototype.getTypeName=function(){return"buttonEntity"};var Jpt=new _.Zz("unpluggedStringRunImage");var dgp=new _.Zz("tabViewModel");var ue8=new _.Zz("tabbedViewModel");var lUm=function(){aW.apply(this,arguments)};
_.Q(lUm,aW);lUm.prototype.getAssociations=function(){return[]};
lUm.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.Vkp=new _.Zz("updateDescriptionAction");var qto=new _.Zz("updateToggleButtonTextAction");var aUM=new _.Zz("showFullscreenPlayerControlsCommand");var E4o=new _.Zz("updateVideoMetadataCommand");_.Ytm=new _.Zz("autoplaySwitchButtonRenderer");var gs;_.rMq=new _.Zz("multiMarkersPlayerBarRenderer");gs=new _.Zz("chapterRenderer");var jB8=new _.Zz("heatMarkerRenderer");var yh9=new _.Zz("heatmapRenderer");var Ih8=new _.Zz("smartSkipPlayerScrimOverlayRenderer");var Ln4=new _.Zz("timedMarkerDecorationRenderer");var lWL=new _.Zz("postWebToNativeMessageCommand");var sX=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(sX,_.Kt);sX.prototype.getMethodName=function(){return _.B_(this,1)};var p2v=[0,_.Ih,-2];sX.prototype.JSC$12703_serializeBinary=rsi(p2v);var JOp=_.PG(sX,p2v);var SzM=new _.Zz("whitelistEditEndpoint");var HFE=new _.Zz("clearUrlParamCommand");var MZq=new _.Zz("commerceActionCommand");_.X2m=new _.Zz("getPaymentInstrumentsParamsCommand");var iFL=new _.Zz("getPaymentsClientTokenCommand");var RJ8=new _.Zz("googlePaymentBillingCommand");var KxL=new _.Zz("googlePaymentPurchaseManagerCommand");_.ZFd=new _.Zz("logGtmCommand");var nA8=new _.Zz("updateCardItemOnClickCommand");_.GKd=new _.Zz("ypcPauseSubscriptionCommand");_.bFv=new _.Zz("ypcResumeSubscriptionCommand");var mf8=function(){aW.apply(this,arguments)};
_.Q(mf8,aW);mf8.prototype.getAssociations=function(){return[]};
mf8.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var Fxq=function(){aW.apply(this,arguments)};
_.Q(Fxq,aW);Fxq.prototype.getAssociations=function(){return[]};
Fxq.prototype.getTypeName=function(){return"commerceCartListEntity"};var vAv=function(){aW.apply(this,arguments)};
_.Q(vAv,aW);vAv.prototype.getAssociations=function(){return[]};
vAv.prototype.getTypeName=function(){return"iconBadgeEntity"};var f2v=function(){aW.apply(this,arguments)};
_.Q(f2v,aW);f2v.prototype.getAssociations=function(){return[]};
f2v.prototype.getTypeName=function(){return"pdpStateEntity"};var OF8=function(){aW.apply(this,arguments)};
_.Q(OF8,aW);OF8.prototype.getAssociations=function(){return[]};
OF8.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var At4=new _.Zz("ypcOffersEndpoint");var AOM=new _.Zz("cardItemRenderer"),PFn=new _.Zz("cardItemTextRenderer");var zJo=new _.Zz("commerceCartItemQuantityPickerRenderer");var $f8=new _.Zz("linkCardRenderer");var hzX=new _.Zz("quantityIncrementerButtonViewModel");var oAd=new _.Zz("quantityIncrementerViewModel");var eJn=new _.Zz("themedImageViewModel");_.Wxn=new _.Zz("ypcCancelRecurrenceEndpoint");var QHn=new _.Zz("ypcCompleteTransactionEndpoint");_.CFE=new _.Zz("ypcGetCartEndpoint");_.El=new _.Zz("ypcGetOffersEndpoint");_.Ou=new _.Zz("ypcHandleTransactionEndpoint");var yOE=new _.Zz("ypcLogWalletAnalyticDataEndpoint");_.BXd=new _.Zz("ypcRedeemCodeEndpoint");var UfE=new _.Zz("ypcUpdateFopEndpoint");e3(oW(1),zb(4));RTn((new MessageChannel).port2);var sHn=function(){this.register=new Map},ecX=function(p,J,S){p=p+"_"+J;
A_.register.has(p)?S=A_.register.get(p):(S=S(),A_.register.set(p,S));return S},gA4=function(p){p=_.K(p.register.values());
for(var J=p.next();!J.done;J=p.next())_.nT(J.value,"ABORTED")};
sHn.prototype.clear=function(){gA4(this);this.register.clear()};
var A_=new sHn;var Hoi=Date.now().toString();var io4=Xyt();var FtX={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 tZM,eq;tZM=1;eq=function(p){this.veData=p};
_.Az=function(p){return new eq({trackingParams:p})};
_.KG=function(p,J,S,H,M,X){var Z=tZM++;return new eq({veType:p,veCounter:Z,elementIndex:S,dataElement:J,youtubeData:H,jspbYoutubeData:M,loggingDirectives:X})};
_.R=eq.prototype;
_.R.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};
_.R.getAsJspb=function(){var p=new Q5m;this.veData.trackingParams!==void 0?p.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.hF(p,2,this.veData.veType),this.veData.veCounter!==void 0&&_.hF(p,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.hF(p,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.fC(p,5,!0));if(this.veData.dataElement!==void 0){var J=this.veData.dataElement.getAsJspb();_.Qd(p,7,J)}this.veData.youtubeData!==void 0&&_.Qd(p,8,this.veData.jspbYoutubeData);
return p};
_.R.toString=function(){return JSON.stringify(this.getAsJson())};
_.R.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.R.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.m$("yt_logging_screen.getRootVeType",GQW);_.m$("yt_logging_screen.getCurrentCsn",_.C1);_.m$("yt_logging_screen.getCttAuthInfo",y1);_.m$("yt_logging_screen.setCurrentScreen",_.Bf);var hJd=function(){this.events=new Map},Df8=function(p){var J=[];
p=_.K(p.events.values());for(var S=p.next();!S.done;S=p.next())J.push(S.value);return J};
hJd.prototype.clear=function(){this.events.clear()};var NXn=function(){this.logTransport=new kK8;this.loggedEventRegister=new hJd;this.unloggedEventRegister=new hJd;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12740_flushTimer=new _.$d(this.flushInterval);this.JSC$12740_flushTimer.listen("tick",this.flush,!1,this)};
NXn.prototype.flush=function(){if(this.eventsCount){var p={loggedEvents:Df8(this.loggedEventRegister),unloggedEvents:Df8(this.unloggedEventRegister)};if(_.z("export_player_version_to_ytconfig")){var J;(J=_.jn("PLAYER_CLIENT_VERSION"))?(J=J.split("-")[0].replace(/\./g,""),J=isNaN(Number(J))?"0":J):J="";var S=_.jn("PLAYER_CLIENT_VERSION");if(S){S=S.split("-");var H="";S.length>1&&(H=S[S.length-1]);S=SMi(H.startsWith("canary_experiment")?"canary":H.startsWith("canary_control")?"control":"none")}else S=
"CLIENT_CANARY_STATE_UNKNOWN";p.dimensions={playerClientVersion:J,playerCanaryState:S}}this.logTransport.flush(p);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12740_flushTimer.enabled&&this.JSC$12740_flushTimer.stop()}};
var TXM=function(p){Pm==null&&(Pm=new NXn);var J=Pm;var S=J.loggedEventRegister;p.dimensions=p.dimensions||{};p.dimensions.csn=_.C1()||"";var H=Oov(p.dimensions).join(";");if(p.records!=null)if(S.events.has(H)){var M;(M=S.events.get(H).records)==null||M.push.apply(M,_.dW(p.records))}else S.events.set(H,p);J.JSC$12740_flushTimer.enabled||J.JSC$12740_flushTimer.start();J.eventsCount++;J.eventsCount>=100&&J.flush()};var kK8=function(){};
kK8.prototype.flush=function(p,J){_.z("enable_client_sli_logging")&&_.YQ("sliEventBatch",p,{sendIsolatedPayload:!!J})};var Pm;var uqd;uqd=function(p){var J=dfU;p=p===void 0?{}:p;J=J.name;var S=o9X("SUCCESS");TXM({dimensions:p,records:[{name:J,state:"SLI_STATE_END",status:S}]})};
_.Wtk=function(p,J,S,H){this.name=p;this.sliId=J;this.timeoutMs=S;this.statusOnTimeout=H;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Wtk.prototype.getId=function(){return this.sliId};
_.ZF=function(p,J){J=J===void 0?{}:J;p.ongoing||(p.ongoing=!0,p.dimensions=J,p.logSliId=Yjg(),TXM({dimensions:p.dimensions,records:[{name:p.name,state:"SLI_STATE_START",sliId:p.logSliId}]}),p.timeoutMs>0&&(p.timeoutHandle=setTimeout(function(){_.nT(p,p.statusOnTimeout)},p.timeoutMs)))};
_.nT=function(p,J){p.ongoing&&(p.timeoutMs>0&&clearTimeout(p.timeoutHandle),p.ongoing=!1,J={dimensions:p.dimensions,records:[{name:p.name,status:o9X(J),state:"SLI_STATE_END",sliId:p.logSliId}]},A_.register.delete(p.name+"_"+p.sliId),TXM(J))};var dfU=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var l2v=function(){aW.apply(this,arguments)};
_.Q(l2v,aW);l2v.prototype.getAssociations=function(){return[]};
l2v.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var TJW=new _.Zz("highlightTextDecoratorColorMapExtension");var kBX=new _.Zz("styleRunColorMapExtension");var g99=_.YI(["data-"]),D33={};var NLL={};var zZ=function(p){this.wrappedPromise_=p===void 0?null:p;this.state_=0;this.JSC$12771_value_=null};
zZ.prototype.then=function(p,J,S){return this.wrappedPromise_?this.wrappedPromise_.then(p,J,S):this.state_===1&&p?(p=p.call(S,this.JSC$12771_value_))&&typeof p.then==="function"?p:_.$E(p):this.state_===2&&J?(p=J.call(S,this.JSC$12771_value_))&&typeof p.then==="function"?p:_.VZ8(p):this};
zZ.prototype.getValue=function(){return this.JSC$12771_value_};
zZ.prototype.isRejected=function(){return this.state_==2};
zY8(zZ);_.VZ8=function(p){var J=new zZ;p=p===void 0?null:p;J.state_=2;J.JSC$12771_value_=p===void 0?null:p;return J};
_.$E=function(p){var J=new zZ;p=p===void 0?null:p;J.state_=1;J.JSC$12771_value_=p===void 0?null:p;return J};var I$i="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var qzn=["load","abort","error"],ol=function(p,J,S){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12791_maxAspectRatio_=p;this.disableAnimation_=J===void 0?!1:J;this.disableExifRotation_=S===void 0?!1:S;this.JSC$12791_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12791_reject_=this.resolve_=null};
ol.prototype.transform=function(p){var J=this;this.mime_=p.type;M7(ym4(p),this.dataUrlRead_,this.readError_,this);M7(Cn4(p.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(S,H){J.resolve_=S;J.JSC$12791_reject_=H})};
ol.prototype.dataUrlRead_=function(p){this.dataUrl_=p;this.angle_!=null&&a2U(this)};
ol.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 J=2,S=p.byteLength;J<S;){var H=p.getUint16(J),M=p.getUint16(J+2);if(H===65505){J+=4;H=p.getUint32(J);M=p.getUint16(J+4);if(H!==1165519206||M!==0)break;J+=6;H=p.getUint16(J)===18761;J+=p.getUint32(J+4,H);M=p.getUint16(J,H);J+=2;for(var X=0;X<M;X++){if(p.getUint16(J,H)===274){J+=8;p=p.getUint16(J,H);break a}J+=12}}else if(H>>8!==255)break;
else J+=M+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&&a2U(this)};
ol.prototype.readError_=function(){this.JSC$12791_reject_()};
var a2U=function(p){fI(p.JSC$12791_image_,qzn,p.completeTransform_,!1,p);p.JSC$12791_image_.src=_.Vd(p.dataUrl_).toString();p.JSC$12791_image_.src!=lv.toString()&&p.JSC$12791_image_.src.substr(0,11)==="data:image/"||p.JSC$12791_reject_()};
ol.prototype.completeTransform_=function(){if(this.JSC$12791_image_.src!=lv.toString()){var p=_.Vd(this.dataUrl_),J=this.JSC$12791_image_.naturalHeight?this.JSC$12791_image_.naturalWidth/this.JSC$12791_image_.naturalHeight:null;this.invalidAspectRatio=J>this.JSC$12791_maxAspectRatio_||J<1/this.JSC$12791_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var S=this.JSC$12791_image_.naturalWidth,H=this.JSC$12791_image_.naturalHeight,M=J=0,X=this.JSC$12791_image_.naturalHeight?this.JSC$12791_image_.naturalWidth/
this.JSC$12791_image_.naturalHeight:null;X>this.JSC$12791_maxAspectRatio_?(S=this.JSC$12791_maxAspectRatio_*H,J=(S-this.JSC$12791_image_.naturalWidth)/2,this.cropped=!0):X<1/this.JSC$12791_maxAspectRatio_?(H=this.JSC$12791_maxAspectRatio_*S,M=(H-this.JSC$12791_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)X=S,S=H,H=X,X=J,J=M,M=X;switch(this.angle_){case 90:M-=S;break;case 180:J-=S;M-=H;break;case 270:J-=
H}this.cropped||this.angle_%360!==0?(p=document.createElement("canvas"),p.width=S||1,p.height=H||1,this.JSC$12791_image_.naturalWidth&&this.JSC$12791_image_.naturalHeight&&(S=p.getContext("2d"),S.rotate(Math.PI/180*this.angle_),S.drawImage(this.JSC$12791_image_,J,M,this.JSC$12791_image_.naturalWidth,this.JSC$12791_image_.naturalHeight)),this.transformedData=_.Vd(p.toDataURL(this.mime_))):this.transformedData=p}else this.transformedData=p;this.resolve_(this)}};var e7=function(p,J){_.yr.call(this,p);this.value=J};
_.Q(e7,_.yr);
var Wm=function(p,J,S,H,M,X,Z){Z=Z===void 0?!1:Z;_.te.call(this);var n=this;this.JSC$12796_url_=p;this.channelId_=J;this.maxFileSizeMb_=S;this.JSC$12796_maxAspectRatio_=H;this.dropZoneEl_=M;this.rejectInvalidAspectRatio_=Z;this.selectButtonEl_=X;this.JSC$12796_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new gB(this.dropZoneEl_);this.selectOverlay_=new ta(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12796_image_=this.transfer_=null;this.handler_=new _.oC(this);_.$c(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(X,"click",function(){n.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.Q(Wm,_.te);Wm.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();_.te.prototype.disposeInternal.call(this)};
Wm.prototype.uploadPromise=function(){if(this.JSC$12796_image_==null)return null;this.uploadPromise_||EA8(this);return this.uploadPromise_};
Wm.prototype.cancel=function(){Yz4(this);this.JSC$12796_image_=null};
var Yz4=function(p){p.transfer_&&p.transfer_.cancel();p.transfer_=null;p.uploadPromise_=null;p.resolve_=null;p.JSC$12796_reject_=null},EA8=function(p){Yz4(p);
p.transfer_=_.fz8(p.JSC$12796_url_,{"X-YouTube-ChannelId":p.channelId_},p.JSC$12796_image_);p.handler_.listenOnce(p.transfer_,"l",p.JSC$12798_onUploadComplete_);p.handler_.listenOnce(p.transfer_,"n",p.onUploadError_);p.transfer_.run();p.uploadPromise_=new Promise(function(J,S){p.resolve_=J;p.JSC$12796_reject_=S})};
_.R=Wm.prototype;_.R.onChange_=function(p){p.files.length&&(this.JSC$12796_image_=p.files[0],this.JSC$12796_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12796_image_=null,this.dispatchEvent(new e7("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(EA8(this),(new ol(this.JSC$12796_maxAspectRatio_)).transform(this.JSC$12796_image_).then((0,_.tT)(this.onPreview_,this),(0,_.tT)(this.onPreviewError_,this))))};
_.R.onPreview_=function(p){if(p.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12796_image_=null),this.dispatchEvent(new e7("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;p.cropped&&this.dispatchEvent(new e7("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new e7("yt.comments.ImageUploadOverlay.CHANGE_EVENT",p.transformedData))};
_.R.onPreviewError_=function(){this.JSC$12796_image_=null;this.dispatchEvent(new e7("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.R.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 e7("yt.comments.ImageUploadOverlay.HOVER_EVENT",p))};
_.R.JSC$12798_onUploadComplete_=function(){var p=(0,_.Ev8)(this.transfer_.getResponseText());this.resolve_(p.encryptedBlobId)};
_.R.onUploadError_=function(){this.JSC$12796_reject_();Yz4(this)};var rOn=function(p){p=p||{};var J={},S={};this.url=p.url||"";this.args=p.args||_.T6.clone(J);this.assets=p.assets||{};this.attrs=p.attrs||_.T6.clone(S);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||{}};
rOn.prototype.clone=function(){var p=new rOn,J;for(J in this)if(this.hasOwnProperty(J)){var S=this[J];_.I8(S)=="object"?p[J]=_.T6.clone(S):p[J]=S}return p};var jH8,w2U,xf8,at,I2E,Lx4,pCo,Joq,ShL,HMd,MAM,XC8,iM8,RV8,KQU,ZMv,nWU,GYq,bMm,mHq,FQo,vWq,f58,OMv,Aod,PHv,zV4,$Hd,oWU,jc9,eVL,WQq,QML,CHn,yod,BOm,UHM,sMU,gWd,tA8,rI3,hV8,DHd,kYv,NOU,TOp,dHv,uHM,l5L,VA8,qh8,a5m,EWE,Yh4,rom,jMn,QK,wC8,xHM,coE,I5U,LQU,pF8,JAp,So8,Hf8,Mf4,XFd,if8,Rb8,K_U,Zfp,nlq,GLd,bf8,mo8,E5t,F_L,vlm,fSq,Ofd,AA8,Pz8,zbm,$od,olp,ebm,W_8,Q3q,CzE,yAq,Bim,Uo4,s3d,gln,tf4,hbv,DoU,kL8,Ni8,TiU,doo;jH8=["account/accounts_list"];w2U=["acknowledge_channel_tou_strike"];xf8=["notification/add_upcoming_event_reminder"];
_.cOp=["att/get"];at=["browse","music/browse","streaming_browse","unplugged/browse"];I2E=["channel/claim_legacy_youtube_channel"];Lx4=["history/clear_search_history"];pCo=["history/clear_watch_history"];Joq=["comment/perform_comment_action"];ShL=["comment/get_comment_replies"];HMd=["ypc/commerce_action"];MAM=["backstage/create_post"];XC8=["live/create_broadcast"];iM8=["channel/create_channel"];RV8=["comment/create_comment_reply"];KQU=["comment/create_comment"];ZMv=["live_chat/create_poll"];nWU=["playlist/create"];
GYq=["decorate_message"];bMm=["live_chat/delete_message"];mHq=["playlist/delete"];FQo=["video/delete"];vWq=["like/dislike"];f58=["dismissal/dismiss"];OMv=["flag/flag"];Aod=["flow"];PHv=["account/account_menu"];zV4=["playlist/get_add_to_playlist"];$Hd=["get_answer"];oWU=["channel/get_channel_creation_form"];jc9=["offline/get_download_action"];eVL=["kids/get_kids_blocklist_picker"];WQq=["live_chat/get_item_context_menu"];QML=["live_chat/get_live_chat_message_buy_flow"];CHn=["live_chat/get_live_chat_replay"];
yod=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];BOm=["live_chat/get_live_chat_super_sticker_buy_flow"];UHM=["notification/get_notification_menu"];sMU=["playlist/get_settings_editor"];gWd=["backstage/get_post_video_preview"];tA8=["account/get_profile_card"];rI3=["share/get_share_panel"];hV8=["share/get_sharing_provider_data"];DHd=["get_survey"];kYv=["notification/get_unseen_count"];NOU=["get_user_mention_suggestions"];TOp=["get_watch"];dHv=["guide"];
uHM=["feedback"];l5L=["kids/update_blacklist"];VA8=["like/like"];qh8=["live_chat/live_chat_action"];a5m=["live_chat/manage_user"];EWE=["video_manager/metadata_update"];Yh4=["live_chat/moderate"];rom=["notification/modify_channel_preference"];jMn=["notification/opt_out"];QK=["get_panel","get_posts_by_host_panel"];wC8=["player"];xHM=["browse/edit_playlist"];coE=["notification/record_interactions"];I5U=["reel/reel_item_watch"];LQU=["reel/reel_watch_sequence"];pF8=["like/removelike"];JAp=["notification/remove_upcoming_event_reminder"];
So8=["flag/get_form"];Hf8=["miniapp/report_value"];Mf4=["navigation/resolve_url"];XFd=["channel/reveal_business_email"];if8=["in_video/search"];Rb8=["search","sfv/search","unplugged/search"];K_U=["live_chat/send_message"];Zfp=["live_chat/send_live_chat_vote"];nlq=["account/set_setting"];GLd=["submit_caption_correction"];bf8=["submit_form"];mo8=["subscription/subscribe"];E5t=["get_transcript"];F_L=["resolve_location","unplugged/resolve_location"];vlm=["subscription/unsubscribe"];fSq=["backstage/update_post"];
Ofd=["channel_edit/update_channel_page_settings"];AA8=["comment/update_comment_reply"];Pz8=["comment/update_comment"];zbm=["comment/update_comments_settings"];$od=["creator/update_creator_channel"];olp=["pdg/update_enablement"];ebm=["updated_metadata"];W_8=["channel_edit/validate_channel_handle"];Q3q=["verify_age"];CzE=["next","unplugged/watch_next"];yAq=["whitelist/edit"];Bim=["ypc/cancel_recurrence"];Uo4=["ypc/complete_transaction"];s3d=["ypc/get_cart"];gln=["ypc/get_fix_instrument_params"];
tf4=["ypc/get_offers"];hbv=["ypc/get_payment_instruments_params"];DoU=["ypc/handle_transaction"];kL8=["ypc/log_payment_server_analytics"];Ni8=["ypc/pause_subscription"];TiU=["ypc/redeem_code"];doo=["ypc/resume_subscription"];var u0d=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,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,273905,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,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,
221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,
25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,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,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,
72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,
133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,
282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,281127,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,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,
30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,
150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,
147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,
37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,
267581,273232,82039];var R5=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.m$("yt.msgs_",R5);var C5=new _.ni("ACTION_ROUTER_TOKEN");_.yK=function(){this.autonavState_=_.z("kevlar_is_pupi_enabled")?2:niL()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.yK.prototype.getState=function(){return this.autonavState_};
_.yK.prototype.pause=function(p){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=p):this.autonavState_==1&&(this.disabledAutonavPauseReason_=p)};
_.yK.prototype.setState=function(p,J,S){J&&(this.autoplayChangedByUser=!0);J=this.autonavState_===3||p===3;this.autonavState_!=p&&(this.autonavState_=p,p!=3&&_.Gb9(p==2),p=_.z("kevlar_is_pupi_enabled")?S||J:!0,_.XK.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,p,S))};
_.yK.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.pu(_.yK);var Bm=function(){this.ys=!1};var Uu={},oiw=(Uu.auto_search="LATENCY_ACTION_AUTO_SEARCH",Uu.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Uu.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Uu.app_startup="LATENCY_ACTION_APP_STARTUP",Uu.browse="LATENCY_ACTION_BROWSE",Uu.cast_splash="LATENCY_ACTION_CAST_SPLASH",Uu.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Uu.channels="LATENCY_ACTION_CHANNELS",Uu.chips="LATENCY_ACTION_CHIPS",Uu.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Uu.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Uu.editor="LATENCY_ACTION_EDITOR",Uu.embed="LATENCY_ACTION_EMBED",Uu.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Uu.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Uu.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Uu.explore="LATENCY_ACTION_EXPLORE",Uu.favorites="LATENCY_ACTION_FAVORITES",Uu.home="LATENCY_ACTION_HOME",Uu.inboarding="LATENCY_ACTION_INBOARDING",Uu.landing="LATENCY_ACTION_LANDING",Uu.learning="LATENCY_ACTION_LEARNING",
Uu.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Uu.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Uu.library="LATENCY_ACTION_LIBRARY",Uu.live="LATENCY_ACTION_LIVE",Uu.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Uu.management="LATENCY_ACTION_MANAGEMENT",Uu.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Uu.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Uu.onboarding="LATENCY_ACTION_ONBOARDING",Uu.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Uu.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Uu.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Uu.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Uu.prebuffer="LATENCY_ACTION_PREBUFFER",Uu.prefetch="LATENCY_ACTION_PREFETCH",Uu.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Uu.profile_switcher="LATENCY_ACTION_LOGIN",Uu.projects="LATENCY_ACTION_PROJECTS",Uu.reel_watch="LATENCY_ACTION_REEL_WATCH",Uu.results="LATENCY_ACTION_RESULTS",Uu.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Uu.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Uu.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Uu.review="LATENCY_ACTION_REVIEW",Uu.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Uu.search_ui="LATENCY_ACTION_SEARCH_UI",Uu.search_suggest="LATENCY_ACTION_SUGGEST",Uu.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Uu.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Uu.seek="LATENCY_ACTION_PLAYER_SEEK",Uu.settings="LATENCY_ACTION_SETTINGS",Uu.store="LATENCY_ACTION_STORE",
Uu.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Uu.tenx="LATENCY_ACTION_TENX",Uu.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Uu.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Uu.watch="LATENCY_ACTION_WATCH",Uu.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Uu["watch,watch7"]="LATENCY_ACTION_WATCH",Uu["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Uu["watch,watch7ad"]="LATENCY_ACTION_WATCH",Uu["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Uu.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Uu.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Uu.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Uu.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Uu.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Uu.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Uu.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Uu.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Uu),lS8=0;var V3X=function(p,J){kD.call(this,1,arguments);this.timer=J};
_.Q(V3X,kD);var lNw=new To9("aft-recorded",V3X);var Cp4=_.Hg.ytLoggingGelSequenceIdObj_||{};_.m$("ytLoggingGelSequenceIdObj_",Cp4);var su=_.Hg.ytLoggingLatencyUsageStats_||{};_.m$("ytLoggingLatencyUsageStats_",su);var gC=function(){this.cleanupJob=0},UIg=function(){gC.instance||(gC.instance=new gC);
return gC.instance};
_.R=gC.prototype;_.R.baseline=function(p,J,S){t_(this,"baseline_"+p)||_.YQ("latencyActionBaselined",{clientActionNonce:p},{timestamp:J,cttAuthInfo:S})};
_.R.tick=function(p,J,S,H){t_(this,"tick_"+p+"_"+J)||_.YQ("latencyActionTicked",{tickName:p,clientActionNonce:J},{timestamp:S,cttAuthInfo:H})};
_.R.info=function(p,J,S){var H=Object.keys(p).join("");t_(this,"info_"+H+"_"+J)||(p=Object.assign({},p),p.clientActionNonce=J,_.YQ("latencyActionInfo",p,{cttAuthInfo:S}))};
_.R.jspbInfo=function(p,J,S){for(var H="",M=0;M<hr(p).length;M++)hr(p)[M]!==void 0&&(H=M===0?H.concat(""+M):H.concat("_"+M));t_(this,"info_"+H+"_"+J)||(_.g2(p,2,J),J={cttAuthInfo:S},S=_.z("jspb_sparse_encoded_pivot")?new df([{}]):new df,_.Ct(S,7,Vxo,p),yaX("latencyActionInfo",S,J))};
_.R.span=function(p,J,S){var H=Object.keys(p).join("");t_(this,"span_"+H+"_"+J)||(p.clientActionNonce=J,_.YQ("latencyActionSpan",p,{cttAuthInfo:S}))};
var t_=function(p,J){su[J]=su[J]||{count:0};var S=su[J];S.count++;S.time=(0,_.fO)();p.cleanupJob||(p.cleanupJob=_.uS(_.wg,function(){var H=(0,_.fO)(),M;for(M in su)su[M]&&H-su[M].time>6E4&&delete su[M];p&&(p.cleanupJob=0)},5E3));
return S.count>5?(S.count===6&&Math.random()*1E5<1&&(S=new _.TG("CSI data exceeded logging limit with key",J.split("_")),J.indexOf("plev")>=0||_.xQ(S)),!0):!1};var Vf8,qoU;Vf8=window;qoU=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.fl=Vf8.performance||Vf8.mozPerformance||Vf8.msPerformance||Vf8.webkitPerformance||new qoU;var u8W=!1,giL=!1,qdv=(0,_.tT)(_.fl.clearResourceTimings||_.fl.webkitClearResourceTimings||_.fl.mozClearResourceTimings||_.fl.msClearResourceTimings||_.fl.oClearResourceTimings||_.y4,_.fl);var wAW=_.c5(function(p,J,S,H,M,X,Z){if(!_.z("web_csi_action_sampling_enabled")||!_.mY(X).actionDisabled){Z=Z==null?void 0:Z.spanStatus;var n=_.F6(X);if(n.gelSpans)n.gelSpans[p]=!0;else{var b={};n.gelSpans=(b[p]=!0,b)}lS8++;p={spanName:p,spanLengthUsec:String(Math.round(J*1E3)),spanNonce:lS8};Z&&(p.spanStatus=Z);H&&(p.spanInfo=H);M&&(p.parentSpanNonce=M);S&&(p.spanStartTimeUsec=String(Math.round(S*1E3)));_.v9(X||"").span[String(p.spanName)]=p;S=_.F6(X);S.gelSpans||(S.gelSpans={});_.sB(S.gelSpans,
p);S=Aas(X);X=_.mY(X).cttAuthInfo;UIg().span(p,S,X);return p.spanNonce}}),aSM=window;
aSM.ytcsi&&(aSM.ytcsi.infoGel=_.o5,aSM.ytcsi.tick=_.Qf);var pmX=function(p){kD.call(this,1,arguments);this.csn=p};
_.Q(pmX,kD);var qri=new To9("screen-created",pmX),fa9=[],LAg=vEX,O5L=0,tP=new Map,J_s=new Map,Suw=new Map;var rR9=Symbol("Cf"),a5=new WeakMap;var h_=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},vi=function(){h_.instance||(h_.instance=new h_);
return h_.instance};
_.R=h_.prototype;_.R.setClient=function(p){this.client=p};
_.R.JSC$12880_newScreen=function(){this.clear();this.csn=_.C1()};
_.R.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.R.reportShown=function(p,J,S,H){var M=this.JSC$12880_getTrackingParams(p),X=p.visualElement?p.visualElement:M;J=this.shownElements.has(X);var Z=this.visibleState.get(X);this.shownElements.add(X);this.visibleState.set(X,!0);p.impressionLog&&!J&&p.impressionLog();if(M||p.visualElement)if(S=El8(this,p,S))if(X=Yo8(this,p),Da(this,p)||X){M=p.visualElement?p.visualElement:_.Az(M);var n=p.interactionLoggingClientData;X||J?Da(this,p)&4?Z||nEi(this.client,S,M,n):Da(this,p)&1&&!J&&R9L(this.client,S,M,n,H):
R9L(this.client,S,M,n,H)}};
_.R.reportHidden=function(p,J,S,H){var M=this.JSC$12880_getTrackingParams(p),X=p.visualElement?p.visualElement:M;J=this.hiddenElements.has(X);var Z=this.visibleState.get(X);this.hiddenElements.add(X);this.visibleState.set(X,!1);if(Z===!1)return!0;if(!M&&!p.visualElement)return!1;S=El8(this,p,S);if(!S||!Da(this,p)&&Yo8(this,p))return!1;M=p.visualElement?p.visualElement:_.Az(M);Da(this,p)&8?GZw(this.client,S,M,void 0,void 0,H):Da(this,p)&2&&!J&&(p=this.client,H=gI({cttAuthInfo:y1(S)||void 0,automatedLogEventSource:H},
S),J={csn:S,ve:M.getAsJson(),eventType:2},S==="UNDEFINED_CSN"?DO("visualElementHidden",H,J):p?aJ("visualElementHidden",J,p,H):_.YQ("visualElementHidden",J,H));return!0};
_.R.JSC$12880_getTrackingParams=function(p){var J=this.getData(p),S,H;if(_.z("il_use_view_model_logging_context")&&(J==null?0:(S=J.context)==null?0:(H=S.loggingContext)==null?0:H.loggingDirectives))return J.context.loggingContext.loggingDirectives.trackingParams||"";var M,X;if(J==null?0:(M=J.rendererContext)==null?0:(X=M.loggingContext)==null?0:X.loggingDirectives)return J.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(J==null?0:J.loggingDirectives)return J.loggingDirectives.trackingParams||
"";var Z;return((Z=p.veContainer)==null?0:Z.trackingParams)?p.veContainer.trackingParams:(J==null?void 0:J.trackingParams)||""};
_.R.JSC$12880_elementShouldLogGesture=function(p,J){p=this.getData(p);return!!((Math.floor(Number(p&&p.loggingDirectives&&p.loggingDirectives.gestures&&p.loggingDirectives.gestures.types||""))||0)&J)};
_.R.JSC$12880_getNearestParentVe=function(p){var J=this.JSC$12880_getTrackingParams(p);return p.visualElement?p.visualElement:J?_.Az(J):p.parentElement?this.JSC$12880_getNearestParentVe(p.parentElement):null};
var El8=function(p,J,S){var H=_.C1(S);return p.csn===null||H===p.csn||S?H:(p=new _.TG("VisibilityLogger called before newScreen",{caller:J.tagName,previous_csn:p.csn,current_csn:H}),_.xQ(p),null)};
h_.prototype.getData=function(p){var J,S=p.data||((J=p.props)==null?void 0:J.data);if(!S||p.isWebComponentWrapper){var H;S=(H=a5.get(p))==null?void 0:H[rR9]}return S};
var Yo8=function(p,J){var S;return!((S=p.getData(J))==null||!S.loggingDirectives)},Da=function(p,J){p=p.getData(J);
return Math.floor(Number(p&&p.loggingDirectives&&p.loggingDirectives.visibility&&p.loggingDirectives.visibility.types||""))||1};var kE;kE=function(){};
_.nI=function(){kE.instance||(kE.instance=new kE);return kE.instance};
kE.prototype.setClient=function(p){_.c5(vi().setClient).bind(vi())(p)};
_.rAo=function(){_.nI();_.c5(vi().JSC$12880_newScreen).bind(vi())()};
kE.prototype.clear=function(){_.c5(vi().clear).bind(vi())()};
kE.prototype.reportShown=function(p,J,S,H){_.c5(vi().reportShown).bind(vi())(p,J,S,H)};
kE.prototype.reportHidden=function(p,J,S,H){return _.c5(vi().reportHidden).bind(vi())(p,J,S,H)};
var N3v=function(p,J){return _.c5(vi().JSC$12880_getTrackingParams).bind(vi())(J)},j_t=function(p,J){return _.c5(vi().JSC$12880_getNearestParentVe).bind(vi())(J)};var Nl,j3m;Nl=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};
_.bC=function(){Nl.instance||(Nl.instance=new Nl);return Nl.instance};
Nl.prototype.setClient=function(p){this.client=p};
j3m=function(p,J,S){S=S===void 0?{}:S;_.c5(function(){var H,M,X,Z=((H=_.e(J==null?void 0:J.commandMetadata,_.i7))==null?void 0:H.rootVe)||((M=_.e(J==null?void 0:J.commandMetadata,BCq))==null?void 0:(X=M.screenVisualElement)==null?void 0:X.uiType);if(Z){H=_.e(J==null?void 0:J.commandMetadata,erq);if(H==null?0:H.parentTrackingParams){var n=_.Az(H.parentTrackingParams);if(H.parentCsn)var b=H.parentCsn}else S.clickedVisualElement?n=S.clickedVisualElement:J.clickTrackingParams&&(n=_.Az(J.clickTrackingParams));
a:{H=_.e(J,_.lj);M=_.e(J,Sz4);if(H){if(M=b7W(H,"VIDEO")){H={token:M,videoId:H.videoId};break a}}else if(M&&(H=b7W(M,"PLAYLIST"))){H={token:H,playlistId:M.playlistId};break a}H=void 0}S=Object.assign({},{cttAuthInfo:H,parentCsn:b},S);if(_.z("expectation_logging")){var F;S.loggingExpectations=((F=_.e(J==null?void 0:J.commandMetadata,BCq))==null?void 0:F.loggingExpectations)||void 0}_.TZ(p,Z,n,S)}else _.xQ(new _.TG("Error: Trying to create a new screen without a rootVeType",J))})()};
_.TZ=function(p,J,S,H){H=H===void 0?{}:H;_.c5(function(){u0d.includes(J)||(_.xQ(new _.TG("createClientScreen() called with a non-page VE",J)),J=83769);H.isHistoryNavigation||(p.forwardHistoryStack=[],p.backHistoryStack.push({rootVe:J,key:H.key||""}));p.graftQueue=[];p.stateChangedQueue=[];H.dataPromises?wFE(p,J,S,H):xo8(p,J,S,H)})()};
_.cAL=function(p,J,S){S=S===void 0?0:S;_.c5(function(){J.then(function(H){p.pendingScreenCreation.has(S)&&p.pendingScreenFn&&p.pendingScreenFn();var M=_.C1(S),X=_.Wf(S);if(M&&X){var Z={automatedLogEventSource:3},n;(H==null?0:(n=H.response)==null?0:n.trackingParams)&&hP(p.client,M,X,_.Az(H.response.trackingParams),!1,Z);var b;(H==null?0:(b=H.playerResponse)==null?0:b.trackingParams)&&hP(p.client,M,X,_.Az(H.playerResponse.trackingParams),!1,Z)}})})()};
Nl.prototype.graftServerVe=function(p,J,S){var H=this;return _.c5(function(){var M=_.Az(p);_.dC(H,M,J,S);return M})()};
_.wMi=function(p,J,S,H){return _.z("enable_client_ve_spec")&&J.clientVeSpec?(J=_.KG(J.clientVeSpec.uiType,void 0,J.clientVeSpec.elementIndex,J.clientVeSpec.clientYoutubeData,void 0,J),_.dC(p,J,S,H)?J:null):J.trackingParams?p.graftServerVe(J.trackingParams,S,H):null};
_.G$=function(p,J,S,H){return _.c5(function(){if(!J.veType)return _.wf(new _.TG("Error: Trying to graft a client VE without a veType.")),null;if(J.visibilityTypes){var M=J.visibilityTypes.reduce(function(X,Z){return X|Z});
M={visibility:{types:String(M)}}}M=_.KG(J.veType,J.visualElement,J.elementIndex,J.clientYouTubeData,void 0,M);return _.dC(p,M,S,H)?M:null})()};
_.dC=function(p,J,S,H){H=H===void 0?0:H;return _.c5(function(){if(p.pendingScreenCreation.has(H))return p.graftQueue.push([J,S]),!0;var M=_.C1(H),X=S||_.Wf(H);if(M&&X){if(_.z("combine_ve_grafts")){var Z=p.cachedVisualElements.get(X.toString());Z?Z.push(J):(p.cachedRootVisualElements.set(X.toString(),X),p.cachedVisualElements.set(X.toString(),[J]));p.attachTimeout||(p.attachTimeout=_.uS(_.wg,function(){ISU(p,M)},1200))}else hP(p.client,M,X,J);
return!0}return!1})()};
_.uq=function(p,J,S){S=S===void 0?0:S;var H=p.recurringGrafts.get(S)||new Map;if(_.z("smarter_ve_dedupping"))for(var M=Array.from(H.keys()),X=0;X<M.length;X++){var Z=void 0,n=void 0;var b=J;var F=M[X];F.isClientVe()&&b.isClientVe()?(Z=b.getAsJson(),n=F.getAsJson(),b=Z.veType!==n.veType||Z.elementIndex!==n.elementIndex||Z.dataElement!==n.dataElement||b.getLoggingDirectives()!==F.getLoggingDirectives()?!1:!0):b=F.veData.trackingParams!==void 0&&b.veData.trackingParams!==void 0?((n=b.veData)==null?void 0:
n.trackingParams)===((Z=F.veData)==null?void 0:Z.trackingParams):!1;if(b)return}else if(H.has(J))return;H.set(J,void 0);p.recurringGrafts.set(S,H);_.C1(S)==="UNDEFINED_CSN"||p.pendingScreenCreation.has(S)||_.dC(p,J,void 0,S)};
_.lq=function(p,J,S,H){H=_.C1(H===void 0?0:H);if(!H)return!1;mlW(p.client,H,J,S);return!0};
_.VK=function(p,J,S,H){if(!J)return!1;H=_.C1(H===void 0?0:H);if(!H)return!1;mlW(p.client,H,_.Az(J),S);return!0};
_.dn=function(p,J){var S=J.getScreenLayer&&J.getScreenLayer();if(J.visualElement)return _.lq(p,J.visualElement,void 0,S);J=N3v(_.nI(),J);return _.VK(p,J,void 0,S)};
Nl.prototype.clickCommand=function(p,J,S){return _.VK(this,p.clickTrackingParams,J,S===void 0?0:S)};
Nl.prototype.stateChanged=function(p,J,S){this.visualElementStateChanged(_.Az(p),J,S===void 0?0:S)};
Nl.prototype.visualElementStateChanged=function(p,J,S){S=S===void 0?0:S;S===0&&this.pendingScreenCreation.has(S)?this.stateChangedQueue.push([p,J]):this.logStateChanged(p,J,S)};
Nl.prototype.logStateChanged=function(p,J,S){S=S===void 0?0:S;var H=_.C1(S);p=p||_.Wf(S);return H&&p?(FOL(this.client,H,p,J),!0):!1};
var wFE=function(p,J,S,H){H=H===void 0?{}:H;p.pendingScreenCreation.add(H.layer||0);p.pendingScreenFn=function(){xo8(p,J,S,H);var Z=_.Wf(H.layer);if(Z){for(var n=_.K(p.graftQueue),b=n.next();!b.done;b=n.next())b=b.value,_.dC(p,b[0],b[1]||Z,H.layer);Z=_.K(p.stateChangedQueue);for(n=Z.next();!n.done;n=Z.next())n=n.value,p.logStateChanged(n[0],n[1])}};
S||_.C1(H.layer)||p.pendingScreenFn();if(H.dataPromises)for(var M=_.K(H.dataPromises),X=M.next();!X.done;X=M.next())_.cAL(p,X.value,H.layer);else _.jD(Error("Df"))},xo8=function(p,J,S,H){H=H===void 0?{}:H;
var M=void 0;H.layer||(H.layer=0);M=H.parentLayer!==void 0?H.parentLayer:H.layer;var X=_.C1(M);M=_.Wf(M);var Z=S||M,n;Z&&(H.parentCsn!==void 0?n={clientScreenNonce:H.parentCsn,visualElement:Z}:X&&X!=="UNDEFINED_CSN"&&(n={clientScreenNonce:X,visualElement:Z}));var b,F=_.jn("EVENT_ID");X==="UNDEFINED_CSN"&&F&&(b={servletData:{serializedServletEventId:F}});_.z("combine_ve_grafts")&&X&&ISU(p,X);_.z("no_client_ve_attach_unless_shown")&&Z&&X&&i5X(Z,X);try{var f=_.H5w(p.client,J,n,H.csnToClone,H.cttAuthInfo,
b,H.implicitGestureType,void 0,H.loggingExpectations,H.automatedLogEventSource)}catch(P){_.cL(P,{rootVeType:J,rootVe:M,parentVisualElement:S,currentCsn:X,parentEl:n,csnToClone:H.csnToClone});_.jD(P);return}_.Bf(f,J,H.layer,H.cttAuthInfo);X&&X!=="UNDEFINED_CSN"&&M&&!v9s(X)&&GZw(p.client,X,M,!0);p.backHistoryStack[p.backHistoryStack.length-1]&&!p.backHistoryStack[p.backHistoryStack.length-1].csn&&(p.backHistoryStack[p.backHistoryStack.length-1].csn=f||"");_.o5({clientScreenNonce:f});_.rAo();var O=_.Wf(H.layer);
X&&X!=="UNDEFINED_CSN"&&O&&_.z("music_web_mark_root_visible")&&_.Tv(f,O);p.pendingScreenCreation.delete(H.layer||0);p.pendingScreenFn=void 0;var A;(A=p.recurringGrafts.get(H.layer))==null||A.forEach(function(P,W){P?_.dC(p,W,P,H.layer):O&&_.dC(p,W,O,H.layer)});
L_4(p)},L_4=function(p){for(var J=0;J<p.afterNewScreenOneOffJobs.length;J++){var S=p.afterNewScreenOneOffJobs[J];
try{S()}catch(H){_.jD(H)}}for(J=p.afterNewScreenOneOffJobs.length=0;J<p.afterNewScreenRecurringJobs.length;J++){S=p.afterNewScreenRecurringJobs[J];try{S()}catch(H){_.jD(H)}}},ISU=function(p,J){if(J===void 0)for(var S=m3i(),H=0;H<S.length;H++)S[H]!==void 0&&ISU(p,S[H]);
else p.cachedVisualElements.forEach(function(M,X){(X=p.cachedRootVisualElements.get(X))&&M7L(p.client,J,X,M)}),p.cachedVisualElements.clear(),p.cachedRootVisualElements.clear(),p.attachTimeout=void 0};var ql=function(p){p=p===void 0?{layer:0}:p;this.ys=!1;this.createScreenConfig=p;p={};this.h8S=(p.response=!1,p.playerResponse=!1,p)};
_.Q(ql,Bm);ql.prototype.validate=function(p){return!(!p.data||!p.data.response&&!p.data.playerResponse)};
ql.prototype.handle=function(p){var J=_.bC(),S=this.createScreenConfig.layer;p.data.response&&p.data.response.trackingParams&&!this.h8S.response&&(J.graftServerVe(p.data.response.trackingParams,void 0,S),this.h8S.response=!0);p.data.playerResponse&&p.data.playerResponse.trackingParams&&!this.h8S.playerResponse&&(J.graftServerVe(p.data.playerResponse.trackingParams,void 0,S),this.h8S.playerResponse=!0)};var al=function(){this.iq=_.qr();this.l8=[];this.sPc=0};
al.prototype.processChunk=function(p){if(p){for(var J=_.K(this.l8),S=J.next();!S.done;S=J.next())S=S.value,S.validate(p)&&(S.handle(p),S.ys=!0);_.Qf("np"+this.sPc);this.sPc++}};var oE9=function(p,J,S){S=S===void 0?{}:S;this.name=p;this.id=EJ.nextSpanId++;this.sessionId=EJ.sessionId;this.attributes=J;this.status="SPAN_STATUS_UNSET";var H;this.startTime=(H=S.startTime)!=null?H:(0,_.fO)();this.isActiveSpan=S.active;if(p=EJ.stack[EJ.stack.length-1])this.parentId=p.id,p.children||(p.children=[]),p.children.push(this);p=_.K(EJ.processors);for(J=p.next();!J.done;J=p.next()){J=J.value;try{var M=H=void 0;(M=(H=J).onSpanStart)==null||M.call(H,this)}catch(X){_.xQ(X)}}S.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",S.endTime))};
oE9.prototype.end=function(p,J){p=p===void 0?"SPAN_STATUS_OK":p;this.endTime=J=J===void 0?(0,_.fO)():J;this.duration=this.endTime-this.startTime;this.status=p;this.isActiveSpan!==!1&&(EJ.stack[EJ.stack.length-1]===this?EJ.stack.pop():_.xQ(Error("Ef`"+String(this.name))));p=_.K(EJ.processors);for(J=p.next();!J.done;J=p.next()){J=J.value;try{var S=void 0,H=void 0;(H=(S=J).onSpanEnd)==null||H.call(S,this)}catch(M){_.xQ(M)}}};
oE9.prototype.addAttributes=function(p){Object.assign(this.attributes,p)};
var e9L={end:function(){},
addAttributes:function(){}},EJ={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},$lX={rootSpan:function(){return EJ.stack[0]}};_.jU={};var pMw=function(p){this.observers=[];this.value=p};
_.R=pMw.prototype;_.R.subscribe=function(p){var J=this;if(p.idx!=null)throw Error("Gf");p.idx=this.observers.length;this.observers.push(p);try{p(this.value)}catch(S){}return function(){var S=J.observers[J.observers.length-1];J.observers[p.idx]=S;S.idx=p.idx;J.observers.pop()}};
_.R.update=function(p){this.value=p(this.value);this.notify()};
_.R.mutate=function(p){p(this.value);this.notify()};
_.R.set=function(p){this.value=p;this.notify()};
_.R.notify=function(){for(var p=_.K(this.observers),J=p.next();!J.done;J=p.next()){J=J.value;try{J(this.value)}catch(S){}}};var fHW,pDv,H08;_.R4=function(p,J,S,H,M,X,Z,n){Z=Z===void 0?[]:Z;n=n===void 0?[]:n;this.buildCommandPayload=p;this.navigate=J;this.handleServiceRequest=S;this.sendAction=H;this.JSC$12929_screenManager=M;this.commandResolverMap=X;this.autoLogResolverAllowlist=Z;this.metaCommandClickLoggingDenylist=n;this.pendingCommands=new Set;this.isTracingEnabled=!1;pDv(this)};
fHW=function(p,J,S){var H=[_.YM8,RhM],M=S14,X=HwW,Z=_.bC(),n=JvE;S=S===void 0?[]:S;H=H===void 0?[]:H;_.R4.instance=new _.R4(p,J,M,X,Z,n,S,H)};
pDv=function(p){if(!p.isTracingEnabled&&YO("command")){var J=p.resolveCommand;p.resolveCommand=function(S,H){a:{for(M in S)if(Object.prototype.hasOwnProperty.call(S,M)){var M={commandType:M};break a}M={}}return rI("command",M,J.bind(this,S,H))};
p.isTracingEnabled=!0}};
H08=function(p,J,S){if(!p.commandResolverMap)return!1;var H=sls(J,p.commandResolverMap);return H?((p.autoLogResolverAllowlist.some(function(M){return!!_.e(J,M)})||(S==null?0:S.forceClickLogging))&&S6L(p,J,S),H instanceof Promise?H.then(function(M){M.resolve(J,S)}):H.resolve(J,S),!0):!1};
_.R4.prototype.resolveCommand=function(p,J){var S=this,H=Mwn(p);if(H08(this,p,J))return!0;if(H)return XD4(this,p,J);if(!this.buildCommandPayload)return y_k(p,"Unhandled command by buildCommandPayload"),!1;var M=this.buildCommandPayload(p,J);if(J==null?0:J.commandController)M.commandController=J.commandController;if(M.type===0){if(!this.navigate)return BC3(p,"navigate"),!1;if(!i0o(M.command))return y_k(p,"Page requests need to specify a url"),!1;_.z("logging_avoid_blocking_during_navigation")&&_.CnW().transition("application_navigating");
p=this.navigate(M)||[];y4U(p).then(function(){S.pendingCommands.delete(M.command)});
return!0}if(M.type===1){if(!this.handleServiceRequest)return BC3(p,"handleServiceRequest"),!1;(J==null?0:J.forceClickLogging)&&S6L(this,M.command,J);p=this.handleServiceRequest(M);y4U(p).then(function(){S.pendingCommands.delete(M.command)});
return!0}if(M.type===2){if(!this.sendAction)return BC3(p,"sendAction"),!1;S6L(this,M.command,J);this.sendAction(M);return!0}return!1};
var S6L=function(p,J,S){if((S==null||!S.disableClickTracking)&&p.JSC$12929_screenManager)if(J.clickTrackingParams&&_.z("log_click_with_layer_from_element_in_command_handler")){var H;S=S==null?void 0:(H=S.form)==null?void 0:H.element;p.JSC$12929_screenManager.clickCommand(J,null,S&&S.getScreenLayer&&S.getScreenLayer())}else J.clickTrackingParams?p.JSC$12929_screenManager.clickCommand(J):!_.z("disable_clicked_visual_element_in_command_handler")&&(S==null?0:S.clickedVisualElement)&&_.lq(p.JSC$12929_screenManager,
S.clickedVisualElement)},Mwn=function(p){var J=!!_.e(p,_.H9),S;
p=((S=_.e(p,_.X6))==null?void 0:S.signal)==="CLIENT_SIGNAL";return J||p},XD4=function(p,J,S){var H=_.e(J,_.H9);
if(H)var M=(H==null?void 0:H.commands)||[];else{var X;if(((X=_.e(J,_.X6))==null?void 0:X.signal)==="CLIENT_SIGNAL"){var Z;M=((Z=_.e(J,_.X6))==null?void 0:Z.actions)||[]}}if(M){(H=RqU(p,M))&&S6L(p,J,S);J=_.K(M);for(M=J.next();!M.done;M=J.next()){M=M.value;try{var n=Object.assign({},S);H&&(n.disableClickTracking=!0);p.resolveCommand(M,n)}catch(b){b instanceof Error&&_.jD(b)}}return!0}y_k(J,"Could not handle the meta command");return!1},RqU=function(p,J){return J.every(function(S){return p.metaCommandClickLoggingDenylist.some(function(H){return!!_.e(S,
H)})})},i0o=function(p){var J;
return!((J=_.e(p==null?void 0:p.commandMetadata,_.i7))==null||!J.url)};var Eu=function(){Bm.apply(this,arguments)};
_.Q(Eu,Bm);Eu.prototype.validate=function(p){var J,S;return!this.ys&&!!((J=p.data.response)==null?0:(S=J.onResponseReceivedEndpoints)==null?0:S.length)};
Eu.prototype.handle=function(p){var J=_.R4.instance;p=_.K(p.data.response.onResponseReceivedEndpoints);for(var S=p.next();!S.done;S=p.next())J.resolveCommand(S.value)};var Kv8,Z0p,nSm;
Kv8=function(){this.companionCanvasActivation=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=_.SU();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.YE=function(){Z0p||(Z0p=new Kv8);return Z0p};
nSm=function(){var p=_.YE();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;p.companionCanvasActivation=!1};
_.Gt4=function(){var p=_.YE(),J=p.mediaSessionPipActivation,S=p.watchPipActivation,H=p.watchWhileActivation,M=p.playlistWatchPageActivation,X=p.lockupActivation,Z=p.showMiniplayerCommandActivation,n=p.navigatingAwayFromWatchDeletedVideo,b=p.shortsPipActivation,F=p.playlistSuggestionsShelfActivation,f=p.productDetailsPageActivation,O=p.miniAppPageActivation,A=p.playablesDestPageActivation,P=p.companionCanvasActivation;return!p.miniplayerButtonActivation&&!M&&!F&&!f&&!O&&!A&&!X&&!Z&&!J&&!S&&!H&&!b&&
!P||n};var rCi;_.rC=_.xO("FEwhat_to_watch","/",3854);_.jit=_.xO("FEdownloads","/feed/downloads",42352);rCi=_.xO("FEmusic_offline","browse/FEmusic_offline",42352);var YZ=function(p,J){J=J===void 0?[]:J;var S=S===void 0?[]:S;J=rdk.apply(null,[j19.apply(null,_.dW(J))].concat(_.dW(S)));this.store=IvX(p,void 0,J)};
YZ.prototype.getState=function(){return this.store.getState()};
YZ.prototype.dispatch=function(p){return this.store.dispatch(p)};
YZ.prototype.subscribe=function(p){return this.store.subscribe(p)};
YZ.prototype.replaceReducer=function(p){return this.store.replaceReducer(p)};
YZ.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.j7=function(p,J,S){var H=J(p.getState());return p.subscribe(function(){var M=J(p.getState());if(M!==H){var X=H;H=M;S(M,X)}})};var $Z4;_.P$=function(p,J,S){return _.Jk({type:"REPLACE_ENTITY",payload:{entityPayload:S,entityType:p,key:J}})};
$Z4=function(p){return _.Jk({type:"REPLACE_ENTITIES",payload:p})};
_.BY=function(p,J,S,H){return _.Jk({type:"UPDATE_ENTITY",payload:{entityPayload:S,entityType:p,key:J,mergeOption:H}})};var aaw=function(p){var J=this;p=p===void 0?[]:p;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;p.forEach(function(S){J.append(S)})};
_.R=aaw.prototype;_.R.getLength=function(){return this.totalLength};
_.R.append=function(p){var J=this.arrays.length===0?!1:(J=this.arrays[this.arrays.length-1])&&J.buffer===p.buffer&&J.byteOffset+J.length===p.byteOffset;J?(J=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(J.buffer,J.byteOffset,J.length+p.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(p);this.totalLength+=p.length};
_.R.split=function(p){for(var J=new aaw,S=new aaw,H=_.K(this.arrays),M=H.next();!M.done;M=H.next())M=M.value,p>=M.length?(J.append(M),p-=M.length):p?(J.append(new Uint8Array(M.buffer,M.byteOffset,p)),S.append(new Uint8Array(M.buffer,M.byteOffset+p,M.length-p)),p=0):S.append(M);return{headView:J,tailView:S}};
_.R.isFocused=function(p){return p>=this.arrayPos&&p<this.arrayPos+this.arrays[this.arrayIdx].length};
_.R.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};
var b08=function(p,J){p.focus(J);return p.arrays[p.arrayIdx][J-p.arrayPos]};(function(){var p=function(H){return new Uint8Array(H)},J=function(H){for(var M=new Uint8Array(H.length),X=0;X<H.length;X++)M[X]=H[X];
return M},S=new Uint8Array([1]);
return S.length===1&&S[0]===1?p:J})();
var TCk=Array(1024),NCL=window.TextDecoder?new TextDecoder:void 0,uYw=window.TextEncoder?new TextEncoder:void 0;var quX=function(p){this.arrayView=p;this.pos=0;this.pendingTagAndType=-1},Sx=function(p){var J=b08(p.arrayView,p.pos);
++p.pos;if(J<128)return J;for(var S=J&127,H=1;J>=128;)J=b08(p.arrayView,p.pos),++p.pos,H*=128,S+=(J&127)*H;return S},EEg=function(p,J){var S=p.pendingTagAndType;
for(p.pendingTagAndType=-1;p.pos+1<=p.arrayView.totalLength;){S<0&&(S=Sx(p));var H=S>>3,M=S&7;if(H===J)return!0;if(H>J){p.pendingTagAndType=S;break}S=-1;switch(M){case 0:Sx(p);break;case 1:p.pos+=8;break;case 2:H=Sx(p);p.pos+=H;break;case 5:p.pos+=4}}return!1};var r_X=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=V7i(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},XD=function(p,J){J=p.pos+J;
if(!(p.buf.length>=J)){for(var S=p.buf.length*2;S<J;)S*=2;p.buf=V7i(S,p.wasm,p.buf.subarray(0,p.pos));p.view=new DataView(p.buf.buffer,p.buf.byteOffset,p.buf.byteLength)}},Mw=function(p,J){if(J>268435455){XD(p,4);
for(var S=J&1073741823,H=0;H<4;H++)p.view.setUint8(p.pos,S&127|128),S>>=7,p.pos+=1;J=Math.floor(J/268435456)}for(XD(p,4);J>127;)p.view.setUint8(p.pos,J&127|128),J>>=7,p.pos+=1;p.view.setUint8(p.pos,J);p.pos+=1};for(var jlL={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},YuX={},mC4=_.K(Object.entries(jlL)),Fv8=mC4.next();!Fv8.done;Fv8=mC4.next()){var vSd=_.K(Fv8.value),fK4=vSd.next().value,O08=vSd.next().value,Avv=fK4,PNL=O08;PNL&&(YuX[PNL]=Avv)};var xl4=function(p,J){p=p===void 0?{}:p;switch(J.type){case "ENTITY_LOADED":return J.payload.reduce(function(H,M){var X,Z=(X=M.options)==null?void 0:X.persistenceOption;if(Z&&Z!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Z!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return H;if(!M.entityKey)return _.jD(Error("If")),H;if(M.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!M.payload)return M=new _.TG("REPLACE entity mutation is missing a payload",{entityKey:M.entityKey}),_.jD(M),H;var n=(0,_.T6.getAnyKey)(M.payload);
return Ias(H,n,M.entityKey,M.payload[n])}if(M.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{M=M.entityKey;try{var b=_.Hq(M).entityType;n=Ias(H,b,M);break a}catch(O){if(O instanceof Error){M=new _.TG("Failed to deserialize entity key",{entityKey:M,originalMessage:O.message});_.jD(M);n=H;break a}throw O;}n=void 0}return n}if(M.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!M.payload)return M=new _.TG("UPDATE entity mutation is missing a payload",{entityKey:M.entityKey}),_.jD(M),H;n=(0,_.T6.getAnyKey)(M.payload);
var F,f;return LOt(H,n,M.entityKey,M.payload[n],(F=M.fieldMask)==null?void 0:(f=F.mergeOptions)==null?void 0:f.repeatedFieldsMergeOption)}return H},p);
case "REPLACE_ENTITY":var S=J.payload;return Ias(p,S.entityType,S.key,S.entityPayload);case "REPLACE_ENTITIES":return Object.keys(J.payload).reduce(function(H,M){var X=J.payload[M];return Object.keys(X).reduce(function(Z,n){return Ias(Z,M,n,X[n])},H)},p);
case "UPDATE_ENTITY":return S=J.payload,LOt(p,S.entityType,S.key,S.entityPayload,S.mergeOption);default:return p}};var pRL;var zqp=!1,wC,xE,cm,Il,L5,$C8=function(p){_.gp.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!zqp){var J,S=new Uint8Array(256),H=new Uint8Array(256);var M=1;for(J=0;J<256;J++)S[M]=J,H[J]=M,M^=M<<1^(M>>7&&283);wC=new Uint8Array(256);xE=K$(256);cm=K$(256);Il=K$(256);L5=K$(256);for(var X=0;X<256;X++){M=X?H[255^S[X]]:0;M^=M<<1^M<<2^M<<3^M<<4;M=M&255^M>>>8^99;wC[X]=M;J=M<<1^(M>>7&&283);var Z=J^M;xE[X]=J<<24|M<<16|M<<8|Z;cm[X]=Z<<24|xE[X]>>>8;Il[X]=M<<24|cm[X]>>>
8;L5[X]=M<<24|Il[X]>>>8}zqp=!0}M=K$(44);for(S=0;S<4;S++)M[S]=p[4*S]<<24|p[4*S+1]<<16|p[4*S+2]<<8|p[4*S+3];for(H=1;S<44;S++)p=M[S-1],S%4||(p=(wC[p>>16&255]^H)<<24|wC[p>>8&255]<<16|wC[p&255]<<8|wC[p>>>24],H=H<<1^(H>>7&&283)),M[S]=M[S-4]^p;this.key=M};
_.Q($C8,_.gp);
$C8.prototype.encrypt=function(p){var J=p.length;p=new Uint8Array(p.buffer.slice(p.byteOffset,p.byteOffset+J));for(var S=this.cipherBlock,H=0;H<J&&this.blockOffset<16;)p[H++]^=S[this.blockOffset++];for(var M=J-(J-H)%16;H<M;)oSn(this),p[H++]^=S[0],p[H++]^=S[1],p[H++]^=S[2],p[H++]^=S[3],p[H++]^=S[4],p[H++]^=S[5],p[H++]^=S[6],p[H++]^=S[7],p[H++]^=S[8],p[H++]^=S[9],p[H++]^=S[10],p[H++]^=S[11],p[H++]^=S[12],p[H++]^=S[13],p[H++]^=S[14],p[H++]^=S[15];if(H<J)for(oSn(this),this.blockOffset=0;H<J;)p[H++]^=
S[this.blockOffset++];return p};
var oSn=function(p){for(var J=p.key,S=p.counter[0]^J[0],H=p.counter[1]^J[1],M=p.counter[2]^J[2],X=p.counter[3]^J[3],Z=3;Z>=0&&!(p.counter[Z]=-~p.counter[Z]);Z--);for(var n,b,F=4;F<40;)Z=xE[S>>>24]^cm[H>>16&255]^Il[M>>8&255]^L5[X&255]^J[F++],n=xE[H>>>24]^cm[M>>16&255]^Il[X>>8&255]^L5[S&255]^J[F++],b=xE[M>>>24]^cm[X>>16&255]^Il[S>>8&255]^L5[H&255]^J[F++],X=xE[X>>>24]^cm[S>>16&255]^Il[H>>8&255]^L5[M&255]^J[F++],S=Z,H=n,M=b;p=p.cipherBlock;Z=J[40];p[0]=wC[S>>>24]^Z>>>24;p[1]=wC[H>>16&255]^Z>>16&255;p[2]=
wC[M>>8&255]^Z>>8&255;p[3]=wC[X&255]^Z&255;Z=J[41];p[4]=wC[H>>>24]^Z>>>24;p[5]=wC[M>>16&255]^Z>>16&255;p[6]=wC[X>>8&255]^Z>>8&255;p[7]=wC[S&255]^Z&255;Z=J[42];p[8]=wC[M>>>24]^Z>>>24;p[9]=wC[X>>16&255]^Z>>16&255;p[10]=wC[S>>8&255]^Z>>8&255;p[11]=wC[H&255]^Z&255;Z=J[43];p[12]=wC[X>>>24]^Z>>>24;p[13]=wC[S>>16&255]^Z>>16&255;p[14]=wC[H>>8&255]^Z>>8&255;p[15]=wC[M&255]^Z&255};var eqq=!1;(function(){var p=function(H){return new Uint8Array(H)},J=function(H){for(var M=new Uint8Array(H.length),X=0;X<H.length;X++)M[X]=H[X];
return M},S=new Uint8Array([1]);
return S.length===1&&S[0]===1?p:J})();
var pq;var CN8=function(p){a:{if(!eqq&&!Gx){if(pq){var J=pq;break a}pq=(J=window.crypto)==null?void 0:J.subtle;var S,H,M;if(((S=pq)==null?0:S.importKey)&&((H=pq)==null?0:H.sign)&&((M=pq)==null?0:M.encrypt)){J=pq;break a}pq=void 0}J=void 0}J&&(this.nativeEncryptor=new Wvm(p,J));this.encryptorPolyfill=new Qe4(p)};
CN8.prototype.encrypt=function(p,J){var S=this,H;return _.G(function(M){switch(M.nextAddress){case 1:if(!S.nativeEncryptor){M.jumpTo(2);break}_.oI(M,3);return M.yield(S.nativeEncryptor.encrypt(p,J),5);case 5:return M.return(M.yieldResult);case 3:H=_.BZ(M),_.xQ(H),eqq=!0,S.nativeEncryptor=void 0;case 2:return M.return(S.encryptorPolyfill.encrypt(p,J))}})};
CN8.prototype.decrypt=function(p,J){return this.encrypt(p,J)};
var Wvm=function(p,J){this.JSC$13002_aesKey=p;this.subtleCrypto=J};
Wvm.prototype.encrypt=function(p,J){var S=this,H;return _.G(function(M){if(M.nextAddress==1)return _.oI(M,2),M.yield(yv8(S,p,J),4);if(M.nextAddress!=2)return M.return(M.yieldResult);H=_.BZ(M);_.xQ(H);eqq=!0;throw H;})};
var yv8=function(p,J,S){var H,M;return _.G(function(X){switch(X.nextAddress){case 1:if(p.cryptoKey){X.jumpTo(2);break}return X.yield(p.subtleCrypto.importKey("raw",p.JSC$13002_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:p.cryptoKey=X.yieldResult;case 2:return H={name:"AES-CTR",counter:S,length:128},X.yield(p.subtleCrypto.encrypt(H,p.cryptoKey,J),4);case 4:return M=X.yieldResult,X.return(new Uint8Array(M))}})},Qe4=function(p){this.JSC$13005_aesKey=p};
Qe4.prototype.encrypt=function(p,J){this.encryptor||(this.encryptor=new $C8(this.JSC$13005_aesKey));for(var S=this.encryptor,H=0;H<4;H++)S.counter[H]=J[H*4]<<24|J[H*4+1]<<16|J[H*4+2]<<8|J[H*4+3];S.blockOffset=16;return this.encryptor.encrypt(p)};
Qe4.prototype.decrypt=function(p,J){return this.encrypt(p,J)};var BHn={},HqX=vB("yt-idb-pref-storage",{objectStores:(BHn.prefs={addedAtVersion:1},BHn),shared:!1,upgrade:function(p,J){J(1)&&HL(SD(p,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.JW=function(p){this.token=p};
_.JW.getInstance=function(){return _.G(function(p){return p.return(new Promise(function(J){_.F$().then(function(S){S?(_.JW.instance||(_.JW.instance=new _.JW(S)),J(_.JW.instance)):J(void 0)})}))})};
_.JW.prototype.get=function(p){var J=this,S,H,M;return _.G(function(X){if(X.nextAddress==1)return X.yield(Mg4(J.token),2);if(X.nextAddress!=3)return S=X.yieldResult,X.yield(S.get("prefs",p),3);H=X.yieldResult;if(!H)return X.return();M=(0,_.fO)();return H.expirationTimestampMs<=M?X.return():X.return(H.value)})};
_.JW.prototype.set=function(p,J,S){S=S===void 0?31536E3:S;var H=this,M,X,Z;return _.G(function(n){if(n.nextAddress==1)return M=(0,_.fO)(),X={key:p,value:J,expirationTimestampMs:M+S*1E3},n.yield(Mg4(H.token),2);Z=n.yieldResult;return n.yield(Z.put("prefs",X),0)})};
_.JW.prototype.remove=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(Mg4(J.token),2);S=H.yieldResult;return H.yield(S.delete("prefs",p),0)})};var Sg={},UCd=(Sg.INVALID_ENCODER_VERSION="Invalid encoder version",Sg.KEY_CREATION_FAILED="Failed to create encoder key",Sg.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Sg.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Sg.WRONG_DATA_TYPE="Encoder cannot process the data type",Sg),ZY=function(p,J){J=J===void 0?{}:J;_.TG.call(this,UCd[p],Object.assign({},{name:"PESEncoderError",type:p},J));this.type=p;this.level="WARNING";Object.setPrototypeOf(this,ZY.prototype)};
_.Q(ZY,_.TG);var HR=function(){};
HR.prototype.encode=function(p,J){try{return this.encodeImpl(p,J)}catch(S){KXg(S,iqL)}};
HR.prototype.decode=function(p,J){try{return this.decodeImpl(p,J)}catch(S){KXg(S,RDX)}};
var seq=function(p,J,S){var H;return _.G(function(M){if(M.nextAddress==1)return _.oI(M,2),M.yield(p.decodeAsyncImpl(J,S),4);if(M.nextAddress!=2)return M.return(M.yieldResult);H=_.BZ(M);KXg(H,RDX);_.UK(M)})};
HR.prototype.decodeAsyncImpl=function(p,J){return Promise.resolve(this.decodeImpl(p,J))};var MZ=function(p,J){this.aesEncryptor=p;this.aesEncryptorAsync=J};
_.Q(MZ,HR);MZ.prototype.encodeImpl=function(p,J){J=Zqi(J);p=(new TextEncoder).encode(JSON.stringify(p));return this.aesEncryptor.encrypt(p,J)};
MZ.prototype.decodeImpl=function(p,J){if(!(p instanceof Uint8Array))throw XRi(1);var S=new TextDecoder;J=Zqi(J);p=this.aesEncryptor.decrypt(p,J);return JSON.parse(S.decode(p))};
MZ.prototype.decodeAsyncImpl=function(p,J){var S=this,H,M,X;return _.G(function(Z){if(Z.nextAddress==1){if(!(p instanceof Uint8Array))throw XRi(1);H=new TextDecoder;M=Zqi(J);return Z.yield(S.aesEncryptorAsync.decrypt(p,M),2)}X=Z.yieldResult;return Z.return(JSON.parse(H.decode(X)))})};var nwk={accountLinkStatusEntity:O7q,booleanEntity:a$4,buttonEntity:TUL,captionTrack:egq,channelHandle:A3v,chipEntity:ba8,commerceAcquisitionClientPayloadEntity:mf8,commerceCartListEntity:Fxq,compositeSourceEntity:dZq,multiviewStagingEntity:uFU,contextNoteFeedEntityPayload:gen,contextNoteUserRatingEntityPayload:tY8,continuationTokenEntity:STm,downloadQualityPickerEntity:EEE,downloadsPageRefreshTokenEntity:r_v,downloadsPageViewConfigurationEntity:Gk4,downloadStatusEntity:Yun,dismissState:mgn,sfvAudioItemCurrentlyPlayingEntity:HeL,
emojiFountainDataEntity:Dg8,emojiCustomizationSetEntity:h$8,fakeChannel:rQL,fakePlaylist:jKq,fakePlaylistEntryCollection:wyn,fakeVideo:cQn,fakeVideoDescription:I$p,featuredProductsEntity:gwL,flowStateEntity:mIo,iconBadgeEntity:vAv,interstitialInteractionStateEntity:h3v,likeButtonAnimationEntity:bqL,liveChatPollStateEntity:V3v,dataFreshnessEntity:g4v,liveViewerLeaderboardChatEntryPointStateEntity:TFm,liveViewerLeaderboardPointsEntity:dad,liveReactionsDataEntity:k0v,logoEntity:gid,macroMarkerEntity:mZo,
mainDownloadsLibraryEntity:jld,mainDownloadsListEntity:wmm,mainPlaylistDownloadStateEntity:c_E,mainPlaylistEntity:Hqn,mainPlaylistVideoEntity:MgM,mainVideoDownloadStateEntity:IaU,mainVideoEntity:KXE,markersEngagementPanelSyncEntity:FXU,markersVisibilityOverrideEntity:vwM,musicAlbumReleaseDetail:YTL,musicAlbumReleaseDownloadMetadataEntity:lgo,musicAlbumRelease:Ewo,musicAlbumReleaseUserDetail:rW8,musicArtistDetail:wRM,musicArtist:jQo,musicArtistUserDetail:xZv,musicDownloadsLibraryEntity:Vg4,musicLibraryEdit:cWv,
musicLibraryStatusEntity:Igq,musicPlaylist:LXm,musicPlaylistDownloadMetadataEntity:qT8,musicShare:JLp,musicTrackDetail:HDn,musicTrackDownloadMetadataEntity:agU,musicTrack:SZp,musicTrackUserDetail:Mp8,offlineOrchestrationActionWrapperEntity:WUE,offlineVideoPolicy:QO8,offlineVideoStreams:C1E,offlineabilityEntity:LOL,orchestrationWebSamplingEntity:pRd,pageHeaderEntity:e$8,pdpStateEntity:f2v,pinnedProductEntity:tgn,playbackData:yLq,playerStateEntity:fgE,quantityIncrementerEntity:OF8,refresh:BFd,saveToPlaylistListEntity:WBv,
selectedChipIndexEntityPayload:Oq8,settingEntity:Y74,stringEntity:E9o,suggestedFeedbackChipStateEntity:AWn,transfer:Uan,trendingOfferEntity:hDq,videoDownloadContextEntity:sOM,videoOverviewAsyncDataEntity:l2v,videoPlaybackPositionEntity:lUm,votingEntity:yM8,ytMainChannelEntity:Zq8,youchatPendingResponseEntity:Pcm,ytMainDownloadedVideoEntity:JW4,ytMainVideoEntity:nwm};var gSp,hqn,FD,AWX,Pck,NH8,dC8,THq,ktL;gSp=function(p,J){this.JSC$13024_wrapped=p;this.JSC$13024_encoderRegistry=J;this.changedKeys={}};
hqn=function(p,J){return twM(p.JSC$13024_encoderRegistry,J.version).decode(J.data,J.key)};
_.DCn=function(p,J,S){return p.JSC$13024_wrapped.objectStore("EntityStore").get(J).then(function(H){if(H){if(S&&H.entityType!==S)throw Error("Jf");return hqn(p,H)}})};
FD=function(p,J,S){return S?(S=S.map(function(H){return _.DCn(p,H,J)}),pO.all(S)):p.JSC$13024_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(J)).then(function(H){return H.map(function(M){return hqn(p,M)})})};
_.Oqw=function(p,J,S){var H=wmk(J),M=twM(p.JSC$13024_encoderRegistry,1),X=Object.assign({},J);return p.JSC$13024_wrapped.objectStore("EntityStore").get(H).then(function(Z){if(Z){if(Z.entityType!==S)throw Error("Jf");X.entityMetadata||(Z=hqn(p,Z),X.entityMetadata=Z.entityMetadata)}}).then(function(){var Z={key:H,
entityType:S,data:M.encode(X,H),version:1};return pO.all([p.JSC$13024_wrapped.objectStore("EntityStore").put(Z),ktL(p,X,S)])}).then(function(){NH8(p,H,S);
return H})};
AWX=function(p,J){var S=_.Hq(J).entityType;return pO.all([p.JSC$13024_wrapped.objectStore("EntityStore").delete(J),THq(p,J)]).then(function(){NH8(p,J,S)})};
Pck=function(p,J,S,H){var M=twM(p.JSC$13024_encoderRegistry,1);return _.DCn(p,J,H).then(function(X){if(X){X=kZX(X,S);var Z={key:J,entityType:H,data:M.encode(X,J),version:1};return pO.all([p.JSC$13024_wrapped.objectStore("EntityStore").put(Z),ktL(p,X,H)])}}).then(function(){NH8(p,J,H);
return J})};
NH8=function(p,J,S){var H=p.changedKeys[S];H||(H=new Set,p.changedKeys[S]=H);H.add(J)};
dC8=function(p,J,S){var H=wmk(J);S=GkW(S);if(!S)return pO.resolve([]);S=new S(J);p=p.JSC$13024_wrapped.objectStore("EntityAssociationStore");J=[];S=_.K(S.getAssociations());for(var M=S.next();!M.done;M=S.next())J.push(p.put({parentEntityKey:H,childEntityKey:M.value}));return pO.all(J).then(function(X){return X.map(function(Z){return Z[1]})})};
THq=function(p,J){return p.JSC$13024_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(J))};
ktL=function(p,J,S){var H=wmk(J);return THq(p,H).then(function(){return dC8(p,J,S)})};var urv=function(){};
_.Q(urv,HR);urv.prototype.encodeImpl=function(p){return p};
urv.prototype.decodeImpl=function(p){if(p instanceof Uint8Array)throw XRi(0);return p};var FXs=function(){this.cacheMap={};this.cacheMap[0]=new urv;if(!_.z("aes_pes_encoder_killswitch")){var p=this.cacheMap;try{var J=_.ka();var S=Zqi(J);var H=new MZ(new Qe4(S),new CN8(S))}catch(M){throw p=M instanceof Error?new ZY("KEY_CREATION_FAILED",{originalMessage:M.message}):new ZY("KEY_CREATION_FAILED"),_.jD(p),p;}p[1]=H}},twM=function(p,J){J=J===void 0?0:J;
p=p.cacheMap[J];if(!p)throw J=new ZY("INVALID_ENCODER_VERSION",{encoderVersion:J}),_.jD(J),J;return p};var Gr=function(p,J){_.gp.call(this);this.token=p;this.JSC$13038_encoderRegistry=J;this.observers=[];p=new _.Hg.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.ka());p.onmessage=this.JSC$13038_handleMessage.bind(this);this.channel=p};
_.Q(Gr,_.gp);_.mg=function(p,J,S){var H,M,X,Z;return _.G(function(n){if(n.nextAddress==1)return n.yield(STk(p.token),2);if(n.nextAddress!=3)return H=n.yieldResult,n.yield(_.KO(H,["EntityStore","EntityAssociationStore"],J,function(b){M=new gSp(b,p.JSC$13038_encoderRegistry);return S(M)}),3);
X=n.yieldResult;M&&(Z=M.changedKeys,Object.keys(Z).length>0&&(p.channel.postMessage(Z),lKm(p,Z)));return n.return(X)})};
Gr.prototype.observe=function(p){var J=this;this.observers.push(p);return function(){var S=J.observers.indexOf(p);S>=0&&J.observers.splice(S,1)}};
var mdi=function(p){var J;return _.G(function(S){if(S.nextAddress==1)return S.yield(_.mg(p,{mode:"readonly",enableRetries:!0},function(H){return H.JSC$13024_wrapped.objectStore("EntityStore").getAll()}),2);
J=S.yieldResult;return S.return(Promise.all(J.filter(function(H){return!!H}).map(function(H){var M,X;
return _.G(function(Z){if(Z.nextAddress==1){M=H.key;X=H.entityType;var n=Z.yield;var b=seq(twM(p.JSC$13038_encoderRegistry,H.version),H.data,H.key);return n.call(Z,b,2)}return Z.return({key:M,entityType:X,data:Z.yieldResult})})})))})};
Gr.prototype.JSC$13038_handleMessage=function(p){lKm(this,p.data)};
var lKm=function(p,J){p=_.K(p.observers);for(var S=p.next();!S.done;S=p.next())S=S.value,S(J)};
Gr.prototype.disposeInternal=function(){this.channel.close()};
var bqt;var XF,q68,dZ3;XF={};_.VwM=(XF.mainVideoEntity="mainVideoEntityActionMetadata",XF.mainPlaylistEntity="mainPlaylistEntityActionMetadata",XF.musicTrack="musicTrackEntityActionMetadata",XF.musicPlaylist="musicPlaylistEntityActionMetadata",XF);q68=new _.ni("DOWNLOADS_ENTITY_TYPE_MAP");_.oR=_.io("","downloadsPageViewConfigurationEntity");dZ3=_.io("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.ALv=_.io("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.io("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.io("SMART_DOWNLOADS_ENABLED","settingEntity");_.io("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var WXX=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var gwt=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var aKL={isLeaderTab:!0};var iDi={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var ic=window,Nw=ic.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",X7i=ic.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||Tr,nYv=ic.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Gs,iYE=ic.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||XYn,HY8=ic.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||OG8,KS3=ic.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||eKM;var M$g;Vc({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 er3=G3v(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(p){return p}}}),U2W=G3v(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(p){return p}}}),vYX=new Map;var Qx4=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],zrX;var ESv=function(p){return _.Jk({type:"SET_EPHEMERAL_ACTION",payload:p})};var Y6U={ephemeralAction:null};var rvn=hS({ephemeralAction:function(p,J){p=p===void 0?Y6U.ephemeralAction:p;switch(J.type){case "SET_EPHEMERAL_ACTION":return J.payload;default:return p}}});var je8=function(p){return _.Jk({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:p})};var wD4={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var xC8={sharedUi:wD4,a11y:Y6U,entities:{}},c0W={sharedUi:function(p,J){p=p===void 0?wD4:p;switch(J.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},p,{animatedThumbnailEnabled:J.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},p,{inlinePreviewEnabled:J.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},p,{currentPageType:J.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},p,{currentPageSubType:J.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},p,{persistentPanelVisible:J.payload});default:return p}},
a11y:rvn,entities:c_g};var gYg={playlistId:"",inviteLinkURL:""};var cvn={continuationCommand:{}};var q7W=hS({continuationCommand:function(p,J){p=p===void 0?cvn.continuationCommand:p;switch(J.type){case "SET_CONTINUATION_COMMAND":return J.payload.continuationCommand;default:return p}}});var hrs={currentFormId:"",commandsMap:{}};var aXv=hS({isLeaderTab:function(p,J){p=p===void 0?aKL.isLeaderTab:p;switch(J.type){case "SET_IS_LEADER_TAB":var S,H;return(H=J==null?void 0:(S=J.payload)==null?void 0:S.isLeaderTab)!=null?H:p;default:return p}}});var LvM;_.IKU=function(p){return _.Jk({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:p}})};
LvM=function(p){return _.Jk({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:p}})};var RQ={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var xFw=hS({isDesktopSmallWidth:function(p,J){p=p===void 0?RQ.isDesktopSmallWidth:p;switch(J.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return J.payload.isDesktopSmallWidth;default:return p}},
isShortsActive:function(p,J){p=p===void 0?RQ.isShortsActive:p;switch(J.type){case "SET_IS_SHORTS_ACTIVE":return J.payload.isShortsActive;default:return p}},
isWatchWhileMode:function(p,J){p=p===void 0?RQ.isWatchWhileMode:p;switch(J.type){case "SET_IS_WATCH_WHILE_MODE":return J.payload.isWatchWhileMode;default:return p}},
playerState:function(p,J){p=p===void 0?RQ.playerState:p;switch(J.type){case "SET_PLAYER_STATE":return J.payload.playerState;default:return p}},
isFullscreen:function(p,J){p=p===void 0?RQ.isFullscreen:p;switch(J.type){case "SET_IS_FULLSCREEN":return J.payload.isFullscreen;default:return p}},
isSmallScreenSqueezeback:function(p,J){p=p===void 0?RQ.isSmallScreenSqueezeback:p;switch(J.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return J.payload.isSmallScreenSqueezeback;default:return p}},
isShortsPipActive:function(p,J){p=p===void 0?RQ.isShortsPipActive:p;switch(J.type){case "SET_IS_SHORTS_PIP_ACTIVE":return J.payload.isShortsPipActive;default:return p}},
isPlaybackStarted:function(p,J){p=p===void 0?RQ.isPlaybackStarted:p;switch(J.type){case "SET_IS_PLAYBACK_STARTED":return J.payload.isPlaybackStarted;default:return p}}});var k3k={currentMode:"canvas-hidden"};var LBt=function(){return function(p){return function(J){var S=p(J);_.IV(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[J],!0);return S}}};var pIU,hik;pIU=new _.iy;_.H$=new _.ni("WATCH_PLAYER_PROMISE_TOKEN");_.J2p=new _.iy;_.SPM=new _.ni("SHORTS_PLAYER_PROMISE_TOKEN");hik=new _.ni("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var pHk=function(){return function(p){return function(J){J.type==="ENTITY_LOADED"&&_.vO().resolve(_.H$).then(function(S){var H;(H=S.dispatchReduxAction)==null||H.call(S,J)});
return p(J)}}};var HS8={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var EY3=hS({additionalContext:function(p,J){p=p===void 0?HS8.additionalContext:p;switch(J.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var S;return(S=J.payload)!=null?S:"";default:return p}},
impersonatedChannelUrl:function(p,J){p=p===void 0?HS8.impersonatedChannelUrl:p;switch(J.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var S;return(S=J.payload)!=null?S:"";default:return p}},
selectedVideoIds:function(p,J){p=p===void 0?HS8.selectedVideoIds:p;switch(J.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var S={};return Object.assign({},p,(S[J.payload]=!0,S));case "VIDEO_UNSELECTED":return J=J.payload,p=Object.assign({},p),delete p[J],p;default:return p}}});var Mc8={parentClickTrackingParams:""};var Y7W=hS({parentClickTrackingParams:function(p,J){p=p===void 0?Mc8.parentClickTrackingParams:p;switch(J.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return J.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return p}}});var XIE=function(p){return _.Jk({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:p})},iS8=function(p){return _.Jk({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:p})};var RQL={stepStates:{}};var r0s=hS({stepStates:function(p,J){p=p===void 0?RQL.stepStates:p;switch(J.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var S=p,H=J.payload,M,X,Z;p={};J={selectionStates:Object.assign({},(Z=(M=S[H.stepId])==null?void 0:M.selectionStates)!=null?Z:{},(p[H.token]={isSelected:H.isSelected},p)),userQuery:(X=S[H.stepId])==null?void 0:X.userQuery};M={};return Object.assign({},S,(M[H.stepId]=J,M));case "TALK_TO_RECS_UPDATE_USER_QUERY":return M=p,X=J.payload,Z=
{selectionStates:Object.assign({},(H=(S=M[X.stepId])==null?void 0:S.selectionStates)!=null?H:{}),userQuery:{userQuery:X.userQuery,token:X.userQueryToken}},S={},Object.assign({},M,(S[X.stepId]=Z,S));default:return p}}});var K1L,ZSo,GMd;K1L=function(p){return _.Jk({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:p})};
ZSo=function(p){return _.Jk({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:p})};
_.CT=function(p){return _.Jk({type:"SET_CURRENT_PAGE_TYPE",payload:p})};
_.nPL=function(p){return _.Jk({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:p})};
GMd=function(p){return _.Jk({type:"SET_CHIP_BAR_IS_STICKY",payload:p})};var TVX={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"};_.bS8=function(p){return _.Jk({type:"SET_PLAYER_STATE",payload:{playerState:p}})};var Kq={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:ucv(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var jxi=hS({isTheaterMode:function(p,J){p=p===void 0?ucv():p;switch(J.type){case "SET_IS_THEATER_MODE":return J.payload.isTheaterMode;default:return p}},
isWatchActive:function(p,J){p=p===void 0?Kq.isWatchActive:p;switch(J.type){case "SET_IS_WATCH_ACTIVE":return J.payload.isWatchActive;default:return p}},
isLearningJourneyActive:function(p,J){p=p===void 0?Kq.isLearningJourneyActive:p;switch(J.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return J.payload.isLearningJourneyActive;default:return p}},
isWatchFullscreen:function(p,J){p=p===void 0?Kq.isWatchFullscreen:p;switch(J.type){case "SET_IS_WATCH_FULLSCREEN":return J.payload.isWatchFullscreen;default:return p}},
isWatchNarrowWidth:function(p,J){p=p===void 0?Kq.isWatchNarrowWidth:p;switch(J.type){case "SET_IS_WATCH_NARROW_WIDTH":return J.payload.isWatchNarrowWidth;default:return p}},
isSwatcherooActive:function(p,J){p=p===void 0?Kq.isSwatcherooActive:p;switch(J.type){case "SET_IS_SWATCHEROO_ACTIVE":return J.payload.isSwatcherooActive;default:return p}},
isWatchRetroMode:function(p,J){p=p===void 0?Kq.isWatchRetroMode:p;switch(J.type){case "SET_IS_WATCH_RETRO_MODE":return J.payload.isWatchRetroMode;default:return p}},
isLiveChatCollapsed:function(p,J){p=p===void 0?Kq.isLiveChatCollapsed:p;switch(J.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return J.payload.isLiveChatCollapsed;default:return p}},
openEngagementPanels:function(p,J){p=p===void 0?Kq.openEngagementPanels:p;var S=[].concat(_.dW(p));switch(J.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return S.push(J.payload.panelToAdd),S;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return S.splice(S.indexOf(J.payload.panelToRemove),1),S;default:return p}},
playerState:function(p,J){p=p===void 0?Kq.playerState:p;switch(J.type){case "SET_PLAYER_STATE":return J.payload.playerState;default:return p}},
watchScrollTop:function(p,J){p=p===void 0?Kq.watchScrollTop:p;switch(J.type){case "SET_WATCH_SCROLL_TOP":return J.payload.watchScrollTop;default:return p}},
watchWindowSize:function(p,J){p=p===void 0?Kq.watchWindowSize:p;switch(J.type){case "SET_WATCH_WINDOW_SIZE":return J.payload.watchWindowSize;default:return p}}});var mbM={surveyFeedbackData:{feedbackTokens:[]}};var w7k=hS({surveyFeedbackData:function(p,J){p=p===void 0?mbM.surveyFeedbackData:p;switch(J.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return J.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},p,J.payload);default:return p}}});var lXk={};var St4=void 0;_.z("web_enable_redux_store_on_demand")||(St4=JMs());var F1p=function(p,J,S){var H=this;this.listId=p;this.JSC$13182_updateCallback=J;this.isOfflineVideoCallback=S;_.rl().subscribe(function(){H.handleUpdate()})};
F1p.prototype.getPlaylistData=function(){var p=_.rl().getState().entities;if(this.listId&&this.listId!=="PPSV"){var J=wR4(p,this.listId,!0),S=_.io(this.listId,"mainPlaylistEntity"),H,M;p=p==null?void 0:(H=p.mainPlaylistEntity)==null?void 0:(M=H[S])==null?void 0:M.title;return Haw(J,p,this.listId)}J=_.tgX(WUg(p));p=_.tgX(_.ex(p));p=J.concat(p);return Haw(p)};
F1p.prototype.getPlaylistId=function(){return this.listId};
F1p.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13182_updateCallback(this.listId,this.getPlaylistData(),{})};var Zg=function(p,J,S,H){H=H===void 0?[]:H;this.JSC$13185_playlistNetworkManager=p;this.listId=J;this.JSC$13185_updateCallback=S;this.videoIds=H;this.pendingUpdates=[];this.currentIndex=0};
Zg.prototype.JSC$13185_setCurrentIndex=function(p){this.currentIndex=p};
Zg.prototype.setListId=function(p){this.listId=p};
var vPv=function(p,J){p.currentCreateRequest&&p.currentCreateRequest.cancel(J);p.currentUpdateRequest&&p.currentUpdateRequest.cancel(J);p.currentRefreshRequest&&p.currentRefreshRequest.cancel(J)};
Zg.prototype.delete=function(){vPv(this,"PROXY DELETED")};
Zg.prototype.addVideos=function(p,J,S){var H=this;S!==void 0?this.videoIds.splice.apply(this.videoIds,[S,0].concat(_.dW(p))):this.videoIds.push.apply(this.videoIds,_.dW(p));this.listId||this.currentCreateRequest?(p.forEach(function(M,X){M={addedVideoId:M,action:"ACTION_ADD_VIDEO"};S&&(M.addedVideoPosition=S+X);H.pendingUpdates.push(M)}),nq(this)):f18(this,J.onCreateListCommand)};
var OSp=function(p,J,S,H,M){dW4(p.videoIds,J,S);J>p.currentIndex&&S<=p.currentIndex?p.JSC$13185_setCurrentIndex(p.currentIndex+1):J===p.currentIndex?p.JSC$13185_setCurrentIndex(S):J<p.currentIndex&&S>=p.currentIndex&&p.JSC$13185_setCurrentIndex(p.currentIndex-1);p.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:H,movedSetVideoIdPredecessor:M});nq(p)},f18=function(p,J){vPv(p,"OBSOLETE");
p.currentCreateRequest=A2m(p.JSC$13185_playlistNetworkManager,J,p.videoIds);_.Nv(p.currentCreateRequest,function(){p.currentCreateRequest=void 0}).then(function(S){p.setListId(S.playlistId);
p.pendingUpdates.length>0?nq(p):PEd(p)})},nq=function(p){if(p.pendingUpdates.length!==0&&(p.currentRefreshRequest&&p.currentRefreshRequest.cancel("OBSOLETE"),!p.currentUpdateRequest&&!p.currentCreateRequest)){var J=p.pendingUpdates.splice(0,p.pendingUpdates.length);
p.currentUpdateRequest=p.JSC$13185_playlistNetworkManager.updatePlaylist(p.listId,J);_.Nv(p.currentUpdateRequest,function(){p.currentUpdateRequest=void 0}).then(function(){p.pendingUpdates.length>0?nq(p):PEd(p)}).thenCatch(function(){p.pendingUpdates.unshift.apply(p.pendingUpdates,_.dW(J))})}},PEd=function(p){p.currentRefreshRequest=_.zQ8(p.JSC$13185_playlistNetworkManager,p.listId,p.currentIndex,p.videoIds[p.currentIndex]);
_.Nv(p.currentRefreshRequest,function(){p.currentRefreshRequest=void 0}).then(function(J){p.JSC$13185_updateCallback(J.playlistId,J.playlistPanelRenderer,J.autoplayRenderer)})};
Zg.prototype.size=function(){return this.videoIds.length};var $bE=function(p,J,S,H){H=H===void 0?[]:H;Zg.call(this,p,J,S,H);this.JSC$13185_playlistNetworkManager=p;this.listId=J;this.JSC$13185_updateCallback=S;this.videoIds=H};
_.Q($bE,Zg);_.Gk=function(p,J,S,H,M,X,Z){M=M===void 0?[]:M;Z=Z===void 0?vz:Z;Zg.call(this,p,J,S,M);this.JSC$13185_playlistNetworkManager=p;this.listId=J;this.JSC$13185_updateCallback=S;this.onAuthChange=H;this.videoIds=M;this.storage=X;this.cookieReader=Z;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.SK(_.wg,this.checkLoggedInStatusChange.bind(this),1E3)};
_.Q(_.Gk,Zg);_.R=_.Gk.prototype;_.R.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.SK(_.wg,this.checkLoggedInStatusChange.bind(this),1E3)};
_.R.JSC$13185_setCurrentIndex=function(p){Zg.prototype.JSC$13185_setCurrentIndex.call(this,p);this.store()};
_.R.delete=function(){_.wg.cancelJob(this.queueSapisIdJob);Zg.prototype.delete.call(this)};
_.R.setListId=function(p){Zg.prototype.setListId.call(this,p);this.store()};
_.R.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var oPv=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],eQv=["playerResponse","videoDetails"],W18=["response","currentVideoEndpoint","watchEndpoint","videoId"],Qa8=["response","currentVideoEndpoint","watchEndpoint","playlistId"],CEM=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],y2o=["response","contents","twoColumnWatchNextResults","playlist","playlist"],B6n=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
Ub8=["response","contents","twoColumnWatchNextResults"];var bc={},KGL=(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 RJv,A2m;RJv=function(p,J){this.networkManager=p;this.innertubeTransportService=J};
A2m=function(p,J,S){if(!_.e(J,_.bq))return _.o4(Error("Nf"));_.e(J,_.bq).videoIds=S;S={create_playlist_title:_.Kl("QUEUE",void 0,"Queue")};return iak(_.VI(p.innertubeTransportService,J,S),Mk4)};
_.zQ8=function(p,J,S,H){J={videoId:H,playlistId:J,playlistIndex:S};S=_.jx(CzE);return iak(_.mX(p.innertubeTransportService,J,S),R$v)};
RJv.prototype.updatePlaylist=function(p,J){return iak(_.VI(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:p,actions:J}}),XHi)};var sa8=function(p){this.storage=p},gP8;
sa8.prototype.store=function(p,J){J=J===void 0?0:J;if(this.storage&&p.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",p),this.storage.set("TLPQindex",String(J)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(S){}};
sa8.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
sa8.prototype.getPlaylistId=function(){if(!this.storage)return null;var p=null;try{p=this.storage.get("TLPQplaylist")}catch(J){}return p};var uev=["navigationEndpoint","watchEndpoint","videoId"],G0X=["nextButtonVideo","watchEndpoint","videoId"];_.Or=new _.ni("NETWORK_TOKEN");_.xz=new _.ni("PAGE_TOKEN");_.FF=new _.ni("PLAYLIST_TOKEN");var tc8;tc8=new _.ni("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Ac=new _.ni("INNERTUBE_TRANSPORT_TOKEN");var hQ8,vR,kMM,N6p,db8,uT8;hQ8=new Set(["ci","cr","carml"]);vR=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13232_parkedJobs=new Map;this.parkedProcessors=new Map};
_.fq=function(){vR.instance||(vR.instance=new vR);return vR.instance};
vR.prototype.onAny=function(p){return _.Dbv(this,p,2)};
vR.prototype.parkOrScheduleJob=function(p,J,S,H,M){_.OT(this,S)?_.Qb().addJob(p,J,H):(M&&(p=kMM(p),N6p(this,p,J,S,M)),M=this.JSC$13232_parkedJobs.get(S),M||(this.JSC$13232_parkedJobs.set(S,[]),M=this.JSC$13232_parkedJobs.get(S)),M.push({job:p,priority:J,delay:H}))};
vR.prototype.addListener=function(p,J,S){S&&(J=kMM(J),N6p(this,J,0,p,S));S=this.parkedProcessors.get(p);S||(this.parkedProcessors.set(p,[]),S=this.parkedProcessors.get(p));S.push(J)};
vR.prototype.processSignal=function(p){if(!_.OT(this,p)){this.inProgressSignals.add(p);var J=this.JSC$13232_parkedJobs.get(p);if(J){J=_.K(J);for(var S=J.next();!S.done;S=J.next())S=S.value,_.Qb().addJob(S.job,S.priority,S.delay);this.JSC$13232_parkedJobs.delete(p)}if(J=this.parkedProcessors.get(p)){J=_.K(J);for(S=J.next();!S.done;S=J.next())S=S.value,S();this.parkedProcessors.delete(p)}this.signals.push(p);this.inProgressSignals.delete(p)}};
_.OT=function(p,J){return hQ8.has(J)||_.wY("IS_HOMEPAGE_COLD")||_.wY("IS_RESULTS_PAGE_COLD")||_.wY("IS_WATCH_PAGE_COLD")?p.signals.indexOf(J)>=0:!0};
kMM=function(p){var J=!1;return function(){J||(J=!0,p())}};
N6p=function(p,J,S,H,M){if(T6q.has(H))_.Qb().addJob(J,S,M);else{var X=p.compoundSignals.get(H);X&&_.Qb().addJob(function(){_.OT(p,H)||(X.isTimeoutConditionSatisfied?_.Qb().addJob(J,S):X.timeoutConditionObservers.push(function(){_.Qb().addJob(J,S)}))},S,M)}};
_.Dbv=function(p,J,S){if(J.length>1){var H=[],M=Object.create(null);J=_.K(J);for(var X=J.next();!X.done;X=J.next())X=X.value,M[X]||(H.push(X),M[X]=!0);J=H}if(J.length===1)return J[0];X=J;H="";M=S===2?"|":"&";X.sort();X=_.K(X);for(var Z=X.next();!Z.done;Z=X.next())H+=Z.value+M;if(!p.compoundSignals.get(H)){M=0;X=[];Z=_.K(J);for(var n=Z.next();!n.done;n=Z.next())n=n.value,M++,_.OT(p,n)||X.push(n);(S=S===2)&&M>X.length||!S&&!X.length?p.signals.push(H):db8(p,H,S,J,X)}return H};
db8=function(p,J,S,H,M){var X=M.length,Z=function(){S||--X===0?p.processSignal(J):uT8(p,J)};
M=_.K(M);for(var n=M.next();!n.done;n=M.next())p.addListener(n.value,Z);p.compoundSignals.set(J,{signals:H,isOnAny:S,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});uT8(p,J)};
uT8=function(p,J){if(!_.OT(p,J)){var S=p.compoundSignals.get(J);if(S&&!S.isTimeoutConditionSatisfied){for(var H=!1,M=0,X=0,Z=_.K(S.signals),n=Z.next();!n.done;n=Z.next()){var b=n.value;n=!_.OT(p,b);T6q.has(b)?H=!0:(b=p.compoundSignals.get(b))?n&&!b.isTimeoutConditionSatisfied&&(X++,S.isInitialized||b.timeoutConditionObservers.push(function(){uT8(p,J)})):n&&M++}S.isInitialized=!0;
S.isOnAny?H&&(S.isTimeoutConditionSatisfied=!0):M===0&&X===0&&(S.isTimeoutConditionSatisfied=!0);if(S.isTimeoutConditionSatisfied)for(S=_.K(S.timeoutConditionObservers),H=S.next();!H.done;H=S.next())H=H.value,H()}}};
vR.prototype.processSignal=vR.prototype.processSignal;vR.prototype.parkOrScheduleJob=vR.prototype.parkOrScheduleJob;vR.prototype.onAny=vR.prototype.onAny;_.m$("ytsignals.getInstance",_.fq);vR.prototype.onAny=vR.prototype.onAny;vR.prototype.parkOrScheduleJob=vR.prototype.parkOrScheduleJob;vR.prototype.processSignal=vR.prototype.processSignal;var T6q=new Set(["eop","eocs","dl","pcl"]);_.DF=new _.ni("MINIPLAYER_SERVICE");var AW,l1U,Vcq;AW=function(p,J,S){var H=_.XK.getInstance();if(!gP8){var M=new aO3;var X=void 0,Z=_.jn("ID_TOKEN");Z&&M.isAvailable()&&(X=new Vn(M,"yt-queue"+Z));gP8=new sa8(X)}M=gP8;X=_.fq();this.JSC$13239_actionRouter=H;this.JSC$13239_pageManager=p;this.playlistManager=J;this.JSC$13239_playlistNetworkManager=S;this.storage=M;this.signals=X;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.PR=function(){if(!l1U){var p=_.vO(),J=p.resolve(_.F9(_.xz)),S=p.resolve(_.F9(_.Or)),H=p.resolve(_.F9(_.FF));p=p.resolve(_.Ac);l1U=new AW(J,H,new RJv(S,p))}return l1U};
Vcq=function(p,J,S){if(S){var H;if(((H=p.responsePlaylistData)==null?void 0:H.playlistId)!==S)return}p.responsePlaylistData&&(S=Ytk(J,p.responsePlaylistData),p.responsePlaylistData=(0,_.T6.unsafeClone)(p.responsePlaylistData),jB9(p.responsePlaylistData,S));S=p.temporaryItems.findIndex(function(M){return M.videoId===J});
S>-1&&p.temporaryItems.splice(S,1);_.zk(p,_.$w(p,p.response?p.response.autoplayRenderer:void 0))};
_.qP4=function(p,J){if(p.responsePlaylistData){var S=rM3(J,p.responsePlaylistData);jB9(p.responsePlaylistData,S);if(p.queueProxy){var H=p.queueProxy;S<0||(H.videoIds.splice(S,1),S<H.currentIndex&&H.JSC$13185_setCurrentIndex(H.currentIndex-1),H.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:J}),nq(H))}}_.zk(p,_.$w(p,p.response?p.response.autoplayRenderer:void 0))};
AW.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.zk(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
AW.prototype.setPlaylistData=function(p,J,S){this.temporaryItems=[];this.listId=p;this.responsePlaylistData=J;_.zk(this,_.$w(this,S))};
var a1L=function(p){return(p==null?0:p.playlistId)?p.playlistId:"PPSV"},EP8=function(p){return p&&p.playlistId?p.playlistId==="PPSV"?!0:rWi(_.rl().getState().entities,p.playlistId):!1};
AW.prototype.isPlayingOfflineVideo=function(){return this.response?EP8(this.response):!1};
AW.prototype.closeMiniplayer=function(p){var J=this.queueProxy&&this.queueProxy.size()<=1,S=_.vO().resolve(_.DF);if(!this.queueProxy||J)this.queueProxy&&this.clearQueue(),S.close(!0);else{S.pipController.getWindow()&&window.focus();J=this.responsePlaylistData;var H=this.temporaryItems.length+(J&&J.contents?J.contents.length:0);J=_.Kl("QUEUE_CLEARED_UNPLURALIZED")||_.ZO("QUEUE_CLEARED",H);J=_.xZ(J);S=_.Kl("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");H=_.Kl("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.ZO("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",H);var M=_.Kl("MINIPLAYER_CLOSE",void 0,"Close"),X=_.Kl("CANCEL",void 0,"Cancel");_.YD(this.JSC$13239_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.aR(S),dialogMessages:[_.aR(H)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aR(M),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
J]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.aR(X)}}}}}}],p)}};
_.$w=function(p,J){var S={},H=p.response;S.autoplayRenderer=J;if(!p.responsePlaylistData&&!p.temporaryItems.length)return!H||!H.hasRelatedVideoData&&_.z("kevlar_prefetch_data_augments_network_data")||(S.playerData={rvs:H.relatedVideoArgs,endScreenRenderer:H.endScreenRenderer}),S;S.playerData={};if(p.index===void 0)return _.jD(Error("Pf")),S;S.panel=p.responsePlaylistData?(0,_.T6.unsafeClone)(p.responsePlaylistData):{titleText:_.aR(_.Kl("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
J=S.panel;if(J.contents)for(var M=_.K(p.temporaryItems),X=M.next();!X.done;X=M.next())J.contents.push({playlistPanelVideoRenderer:X.value});p.queueProxy&&H&&H.playingVideo&&H.playingVideoId&&!E4W(H.playingVideoId,S.panel)&&(J=H.playingVideo,M=S.panel,X=p.index,M.contents&&M.contents.splice(X===void 0?0:X,0,{playlistPanelVideoRenderer:J}));H&&H.playingVideoId&&(J=p.index,M=S.panel,J=!M.contents||J>=M.contents.length?void 0:M.contents[J].playlistPanelVideoRenderer,J&&J.videoId===H.playingVideoId||(J=
Ytk(H.playingVideoId,S.panel),p.index=J!==-1?J:p.index?p.index-1:0));J=aU4(p.index+1,S.panel);M=void 0;p.index>0&&(M=aU4(p.index-1,S.panel));if(M||J)S.autoplayRenderer=lUk(J,M,S.autoplayRenderer);!J&&(H==null?0:H.relatedVideoArgs)&&(S.playerData.rvs=H.relatedVideoArgs);H=H?H.playlistIndexOffset:0;p.queueProxy?cM3(S.panel,p.index,H,qtW,!0,!0,!0):cM3(S.panel,p.index,H);S.playerData.playlistPanelRenderer=S.panel;return S};
AW.prototype.openToast=function(p){_.vO().resolve(_.DF).openToast(p,_.Kl("ADDED_TO_QUEUE",void 0,"Added to queue"))};
AW.prototype.isMiniplayerActive=function(){return _.vO().resolve(_.DF).isMiniplayerActive()};
_.zk=function(p,J){p.playlistManager.setAutoplayRenderer(J.autoplayRenderer||null);p.playlistManager.setPlaylistData(J.panel||null);J.playerData&&p.playlistManager.setPlayerPlaybackControlData(J.playerData)};var LG3="#";var YPM={},r28={},jaq={},wIq={},xbv={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:(YPM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",YPM),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:(r28.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",r28),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:(jaq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",jaq),trackingParams:"yl"}},popupType:"tw"}},
icon:{iconType:"ar"},trackingParams:"vi",accessibilityData:{accessibilityData:{label:"hy"}}}},hoverText:{simpleText:"ap"},trackingParams:"pp"}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"ol"}]},trackingParams:"kz"},headline:{text:"wa",isTemplated:43,trackingParams:"yb"},description:{text:"cl",trackingParams:"aq"},actionButton:{buttonRenderer:{text:{simpleText:"xg"},navigationEndpoint:{clickTrackingParams:"wp",commandMetadata:{webCommandMetadata:{url:"uh",webPageType:"bs",
rootVe:44}},urlEndpoint:{url:"xq",target:"fi"}},trackingParams:"fo"}},startMs:5,trackingParams:"kh"}},adLayoutLoggingData:{serializedAdServingDataEntry:"ir"},elementId:"mp",inPlayerSlotId:"fh",inPlayerLayoutId:"bh"}},trackingParams:"ao",layoutId:"gc",associatedPlayerBytesLayoutId:"up"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"wj"}]},trackingParams:"zr"},headline:{text:"rq",isTemplated:82,trackingParams:"gr"},description:{text:"fj",isTemplated:57,trackingParams:"li"},actionButton:{buttonRenderer:{style:"mu",
text:{simpleText:"cg"},navigationEndpoint:{clickTrackingParams:"eb",commandMetadata:{webCommandMetadata:{url:"vn",webPageType:"nw",rootVe:96}},urlEndpoint:{url:"bs",target:"dr"}},trackingParams:"iq"}},durationMilliseconds:39,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:"mt"}},navigationEndpoint:{clickTrackingParams:"uz",loggingUrls:[{baseUrl:"rn"}],commandMetadata:{webCommandMetadata:{url:"cu",webPageType:"qs",rootVe:26}},urlEndpoint:{url:"ty",target:"he"}},trackingParams:"bw",backgroundImage:{thumbnail:{thumbnails:[{url:"pd"}]},
trackingParams:"wm"},adRendererCommands:{impressionCommand:{clickTrackingParams:"io",commandExecutorCommand:{commands:[{clickTrackingParams:"hd",loggingUrls:[{baseUrl:"hz"}],pingingEndpoint:{hack:81}}]}}},skipButton:{skipButtonRenderer:{message:{text:"db",isTemplated:42,trackingParams:"ga"},trackingParams:"pa"}},adLayoutLoggingData:{serializedAdServingDataEntry:"bt"},layoutId:"ec",inPlayerSlotId:"nl",inPlayerLayoutId:"qh",associatedPlayerBytesLayoutId:"qe"}}]}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"rj"}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"zf",adTimeOffset:{offsetStartMilliseconds:"63",offsetEndMilliseconds:"83"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"59",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:"330100",offsetEndMilliseconds:"594666"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"0",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"65",offsetEndMilliseconds:"30"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"51",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wg"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"56",offsetEndMilliseconds:"86"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"25",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"nh"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:"25",offsetEndMilliseconds:"13"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"32",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"ti"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"47",offsetEndMilliseconds:"84"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"go"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"14",offsetEndMilliseconds:"87"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"79",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"34",offsetEndMilliseconds:"12"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"27",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"fp"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"66",offsetEndMilliseconds:"35"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"98",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"cn"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"59",offsetEndMilliseconds:"8"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"26",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wz"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"84",offsetEndMilliseconds:"90"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"92",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"nl"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"50",offsetEndMilliseconds:"67"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"96",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"ov"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"13",offsetEndMilliseconds:"2"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"52",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"by"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"73",offsetEndMilliseconds:"64"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"67",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"uc"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"10",offsetEndMilliseconds:"zo"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"22",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"en"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:"eg",isTemplated:93,trackingParams:"it"},description:{text:"ux",isTemplated:43,trackingParams:"sj"},actionButton:{buttonRenderer:{text:{simpleText:"de"},navigationEndpoint:{clickTrackingParams:"ex",commandMetadata:{webCommandMetadata:{url:"ue",webPageType:"ow",rootVe:77}},urlEndpoint:{url:"yh",target:"pg"}},
trackingParams:"xf"}},iconImage:{thumbnail:{thumbnails:[{url:"te",width:19,height:23}]},trackingParams:"lv"},bannerImage:{thumbnail:{thumbnails:[{url:"gj",width:38,height:67}]},trackingParams:"ow"},navigationEndpoint:{clickTrackingParams:"um",commandMetadata:{webCommandMetadata:{url:"fq",webPageType:"fd",rootVe:61}},urlEndpoint:{url:"gi",target:"tq"}},trackingParams:"ie",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"ng",size:"xv",isDisabled:53,icon:{iconType:"bq"},navigationEndpoint:{clickTrackingParams:"yl",
openPopupAction:{popup:{aboutThisAdRenderer:{url:(wIq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",wIq),trackingParams:"hi"}},popupType:"sb"}},trackingParams:"ho",accessibilityData:{accessibilityData:{label:"kl"}}}},hoverText:{simpleText:"xd"},trackingParams:"dv"}},adVideoId:"je",impressionPings:[{baseUrl:"xj"}],adLayoutLoggingData:{serializedAdServingDataEntry:"dt"},associatedCompositePlayerBytesLayoutId:"te"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"vs"}}}],adSlots:[{adSlotRenderer:{adSlotMetadata:{slotId:"1234",
slotType:"SLOT_TYPE_PLAYER_BYTES",adSlotLoggingData:{serializedSlotAdServingDataEntry:"ob"},triggerEvent:"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},fulfillmentContent:{fulfilledLayout:{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"ot",layoutType:"xg",adLayoutLoggingData:{serializedAdServingDataEntry:"yk"}},renderingContent:{playerBytesSequentialLayoutRenderer:{sequentialLayouts:[{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"je",layoutType:"ww",adLayoutLoggingData:{serializedAdServingDataEntry:"ve"}},
renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:94,pings:{impressionPings:[{baseUrl:"pl"},{baseUrl:"zs"}],errorPings:[{baseUrl:"hh"}],mutePings:[{baseUrl:"qh"}],unmutePings:[{baseUrl:"ey"}],pausePings:[{baseUrl:"pz"}],rewindPings:[{baseUrl:"bh"}],resumePings:[{baseUrl:"mw"}],skipPings:[{baseUrl:"si"}],closePings:[{baseUrl:"oh"}],progressPings:[{baseUrl:"ly",offsetMilliseconds:1},{baseUrl:"ac",offsetMilliseconds:80},{baseUrl:"sy",offsetMilliseconds:72}],fullscreenPings:[{baseUrl:"kw"}],
activeViewViewablePings:[{baseUrl:"oz"}],endFullscreenPings:[{baseUrl:"uc"}],activeViewMeasurablePings:[{baseUrl:"vu"}],abandonPings:[{baseUrl:"sf"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"qg"}],completePings:[{baseUrl:"jv"}],activeViewTracking:{trafficType:"sq"}},clickthroughEndpoint:{clickTrackingParams:"fn",commandMetadata:{webCommandMetadata:{url:"tf",webPageType:"ox",rootVe:73}},urlEndpoint:{url:"ny",target:"uc"}},csiParameters:[{key:"qe",value:"em"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action",
elementId:"bq",trackingParams:"dr",legacyInfoCardVastExtension:"pa",sodarExtensionData:{siub:"mi",bgub:"hc",scs:"cw",bgp:"co"},externalVideoId:"ya",adLayoutLoggingData:{serializedAdServingDataEntry:"jj"},layoutId:"sc"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nr",layoutType:"kn",adLayoutLoggingData:{serializedAdServingDataEntry:"cf"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:52,trackingParams:"yq",abandonCommands:{commands:[{clickTrackingParams:"wi",
loggingUrls:[{baseUrl:"jb"}],pingingEndpoint:{hack:90}}]},skipPings:[{baseUrl:"av"}],layoutId:"nj"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nl",layoutType:"wm",adLayoutLoggingData:{serializedAdServingDataEntry:"zw"}},renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:80,pings:{impressionPings:[{baseUrl:"ji"},{baseUrl:"ao"},{baseUrl:"cc"}],errorPings:[{baseUrl:"jt"}],mutePings:[{baseUrl:"mn"},{baseUrl:"ce"}],unmutePings:[{baseUrl:"rd"},{baseUrl:"lb"}],pausePings:[{baseUrl:"et"},
{baseUrl:"fv"}],rewindPings:[{baseUrl:"ft"}],resumePings:[{baseUrl:"qj"},{baseUrl:"ot"}],skipPings:[{baseUrl:"ky"},{baseUrl:"jb"}],closePings:[{baseUrl:"hw"}],progressPings:[{baseUrl:"vh",offsetMilliseconds:36},{baseUrl:"um",offsetMilliseconds:77},{baseUrl:"sq",offsetMilliseconds:19},{baseUrl:"ui",offsetMilliseconds:15},{baseUrl:"nl",offsetMilliseconds:86}],fullscreenPings:[{baseUrl:"rp"},{baseUrl:"cn"}],activeViewViewablePings:[{baseUrl:"ml"},{baseUrl:"kq"}],endFullscreenPings:[{baseUrl:"ym"}],activeViewMeasurablePings:[{baseUrl:"di"},
{baseUrl:"ol"}],abandonPings:[{baseUrl:"aj"},{baseUrl:"wo"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"ms"},{baseUrl:"uj"}],startPings:[{baseUrl:"gy"}],firstQuartilePings:[{baseUrl:"ly"}],secondQuartilePings:[{baseUrl:"sw"}],thirdQuartilePings:[{baseUrl:"gt"}],completePings:[{baseUrl:"hu"},{baseUrl:"gs"}],activeViewTracking:{trafficType:"mr"}},clickthroughEndpoint:{clickTrackingParams:"yq",commandMetadata:{webCommandMetadata:{url:"dn",webPageType:"ms",rootVe:54}},urlEndpoint:{url:"hs",
target:"jt"}},csiParameters:[{key:"zn",value:"eq"}],playerVars:"bi",elementId:"gr",trackingParams:"qc",legacyInfoCardVastExtension:"xv",sodarExtensionData:{siub:"ul",bgub:"yr",scs:"ui",bgp:"vy"},externalVideoId:"fp",adLayoutLoggingData:{serializedAdServingDataEntry:"gt"},layoutId:"bh"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"xy",layoutType:"bf",adLayoutLoggingData:{serializedAdServingDataEntry:"rj"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:95,trackingParams:"ee",
abandonCommands:{commands:[{clickTrackingParams:"mi",loggingUrls:[{baseUrl:"yi"},{baseUrl:"tm"}],pingingEndpoint:{hack:47}}]},skipPings:[{baseUrl:"uk"},{baseUrl:"yj"}],layoutId:"ft"}}}}]}},layoutExitNormalTriggers:[{id:"hq",onLayoutSelfExitRequestedTrigger:{triggeringLayoutId:"hv"}}],layoutExitSkipTriggers:[{id:"up",skipRequestedTrigger:{triggeringLayoutId:"nm"}},{id:"yl",skipRequestedTrigger:{triggeringLayoutId:"gh"}},{id:"zd",skipRequestedTrigger:{triggeringLayoutId:"mo"}},{id:"bc",skipRequestedTrigger:{triggeringLayoutId:"jj"}}],
layoutExitMuteTriggers:[{id:"ql",skipRequestedTrigger:{triggeringLayoutId:"hr"}},{id:"rc",skipRequestedTrigger:{triggeringLayoutId:"ln"}}]}}},slotEntryTrigger:{id:"lc",beforeContentVideoIdStartedTrigger:{}},slotFulfillmentTriggers:[{id:"xq",slotIdEnteredTrigger:{triggeringSlotId:"da"}}],slotExpirationTriggers:[{id:"vv",slotIdExitedTrigger:{triggeringSlotId:"re"}},{id:"jg",onNewPlaybackAfterContentVideoIdTrigger:{}}]}}],adBreakHeartbeatParams:"mw",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:"pz",
type:"az",payload:{offlineabilityEntity:{key:"ql",command:{innertubeCommand:{clickTrackingParams:"nz",ypcGetOfflineUpsellEndpoint:{params:"pw"}}},addToOfflineButtonState:"os",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:"xp",visibility:{types:"1"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:"19",nanos:12}}}};var k2i=[{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:xbv},{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:xbv}}];var QGg;_.XV=[[["a2luZCNkcnN0ZnBiZjJ6aXg=","YWx1ZSM3cTQ0cnp4aDdxY3d2"],"VEFSVCN3Nms5YWc1bmt3cG1BRF9QTEFDRU1FTlRfS0lORF9T"]];
QGg=[[["bWFyeSNiam5tbGJxeTk2dnVwcmk=",null,null],[null,["ZXJlciM2aHc3dGl4c3cxaGt5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5k","Y29wZSNxMnppdmM5ajRlYzNzdHlsZS1z"],null],["ZC1hZCNwMzZ0bHh3Z3RwcWFtYXN0aGVh",["ZXJlciNkcHI5anBkNnVpcTd5dGQtcmljaC1ncmlkLXJlbmQ="],null],[null,["ZXJlciNmOTh6dWgyaWwzdWd5dGQtcmljaC1ncmlkLXJlbmQ=","Y29wZSNqb3g5MGJlN2I0bzFzdHlsZS1z"],null],[null,["ZXJlciNtc2E1NDZyN2hwY3V5dGQtYmFubmVyLXByb21vLXJlbmQ=","Y29wZSNybHh0M2l4cW05bnNzdHlsZS1z"],null],[null,["ZXJlciN4ZTRkN3hnaHl4djF5dGQtYWQtc2xvdC1yZW5k"],
null]],[["LWFkcyNwY2E1dDY5Z3doZ2VwbGF5ZXI=",null,null]]];_.Mc=["YWNrcyNmY2hzYzY4aW5tcG5nbG9iYWxDYWxsYg==","Y3RlZCNxeWoyeWdlbXY2N21vbkFibm9ybWFsaXR5RGV0ZQ==","U2tpcCNiZmJnc3doa3NjODFvbkFk","cG9uc2UjczNlMm9yamJpZnRyYXdfcGxheWVyX3Jlcw==","bG90cyMydTl4ZTNkczdyZzVhZFM="];_.oQ="YWNrcyNmY2hzYzY4aW5tcG5nbG9iYWxDYWxsYg== Y3RlZCNxeWoyeWdlbXY2N21vbkFibm9ybWFsaXR5RGV0ZQ== U2tpcCNiZmJnc3doa3NjODFvbkFk cG9uc2UjczNlMm9yamJpZnRyYXdfcGxheWVyX3Jlcw== c19rcyNoZXlmODc3bWI4eXh3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcA== YV9lZiMyYno5ODJlOWNlZWNhYl9z bG90cyMydTl4ZTNkczdyZzVhZFM=".split(" ");var eg;eg=function(p,J,S){this.cfc=p;this.yDF=J;this.xmc=S};
_.jGg=[new eg("b.f_",!1,0),new eg("j.s_",!1,2),new eg("r.s_",!1,4),new eg("e.h_",!1,6),new eg("i.s_",!0,8),new eg("s.t_",!1,10),new eg("p.h_",!1,12),new eg("s.i_",!1,14),new eg("f.i_",!1,16),new eg("a.b_",!1,18),new eg("a.o_",!1),new eg("g.o_",!1,22),new eg("p.i_",!1,24),new eg("p.m_",!1),new eg("n.k_",!0,20),new eg("i.f_",!1),new eg("a.s_",!0),new eg("m.c_",!1),new eg("n.h_",!1,26),new eg("o.p_",!1),new eg("m.p_",!0,28),new eg("o.a_",!1),new eg("d.p_",!1),new eg("e.i_",!1)].reduce(function(p,J){p[J.cfc]=
J;return p},{});var c2L=function(){};
c2L.prototype.flush=function(p,J){p=p===void 0?[]:p;J=J===void 0?!1:J;if(_.z("enable_client_streamz_web")){p=_.K(p);for(var S=p.next();!S.done;S=p.next())S=OUn(S.value),this.rootSpec&&_.Qd(S,2,this.rootSpec),S={serializedIncrementBatch:_.gM(S.JSC$9762_serializeBinary())},_.YQ("streamzIncremented",S,{sendIsolatedPayload:J})}};
var MdX=function(){};
_.Q(MdX,c2L);var I18=function(p){var J=new nTp;var S=new RWm;S=_.g2(S,1,"botguard");p=_.g2(S,2,p);this.rootSpec=_.Ct(J,1,GA8,p)};
_.Q(I18,c2L);var Jc,L1o=new Map;var U_w,iBi,vBs,ZBX,bBw,ePW,gBk,$_4;U_w=2;iBi=2;vBs=2;ZBX=2;bBw=2;ePW=2;gBk=2;$_4=new Gxd;var J$L,SYp;J$L=function(){this.ongoingFlowNonces=new Map};
_.Ky=function(){SYp||(SYp=new J$L);return SYp};
_.Rs=function(p,J,S){return{eventType:{flowEventNamespace:p,flowEventType:J},metadata:S,statusCode:void 0,csn:void 0,can:void 0}};
_.x_v=function(p,J){var S=_.Ky(),H=HWd(S,J,!0);S.logFlowEvent(p,J,H,void 0)};
J$L.prototype.logFlowEvent=function(p,J,S,H){J={flowNonce:S||HWd(this,J),flowType:J,flowEventType:p.eventType};p.metadata&&(J.flowMetadata=p.metadata);p.statusCode!==void 0&&(J.flowEventStatus=p.statusCode);p.csn&&(J.csn=p.csn);p.can&&(J.can=p.can);_.YQ("flowEvent",J,H)};
var HWd=function(p,J,S){S=S===void 0?!1:S;var H=p.ongoingFlowNonces.get(J);if(!H||S)H=oV(16),p.ongoingFlowNonces.set(J,H);return H};_.My8=new n_v;var JOi={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var WR=function(p,J,S,H,M,X,Z){S=S===void 0?!1:S;H=H===void 0?!1:H;X=X===void 0?_.PR():X;this.ys=!1;this.r97=p;this.in5=J;this.kkJ=S;this.fromHistory=H;this.previousVideoId=M;this.wZL=X;this.tempData=Z;this.s9L=new _.bO8};
_.Q(WR,Bm);WR.prototype.validate=function(p){return!(!p.data.playerResponse||p.data.page!=="watch"&&p.data.page!=="learning_journey_watch"&&p.data.page!=="shorts"||this.ys)};
WR.prototype.handle=function(p){var J=this,S=_.e(p.endpoint,_.lj),H=_.e(p.endpoint,_.vt);if(_.z("kevlar_continue_playback_without_player_response")&&(S==null?0:S.videoId)&&this.previousVideoId&&(S==null?void 0:S.videoId)===this.previousVideoId&&(S==null?0:S.continuePlayback)&&!this.fromHistory)this.r97.resolve();else{var M={};S?M.watch_endpoint=S:H&&(M.watch_endpoint=H,H.endTimeSeconds&&(M.end=H.endTimeSeconds));p.data.page==="watch"?(p.data.filler||this.kkJ||(_.Cl("cfg"),_.XK.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(M,X8U(this,p.endpoint)),_.z("enable_masthead_quartile_ping_fix")&&Object.assign(M,iW8(this)),Object.assign(M,void 0),p.data.forceExternalPlaylist&&(M.external_list=!0)):p.data.page==="shorts"?_.XK.getInstance().triggerAction("yt-start-loading-shorts"):p.data.page==="learning_journey_watch"&&_.XK.getInstance().triggerAction("yt-start-loading-learning-journey");if(S=this.in5()){try{S.loadVideoWithPlayerResponse(p.data.playerResponse,M),S.getPlayerPromise().then(this.r97.resolve)}catch(X){_.jD(X),
this.r97.resolve()}this.ys=!0;S.getPlayerPromise().then(function(X){X.addEventListener("onAbnormalityDetected",function(){var Z=p.data.playerResponse,n=X.getVideoData().cpn;gBk=0;_.p8p=n;if(n=rYk(Z))J.s9L.increment("IN_PLAYER"),_.Zc(5),_.z("ab_st_vid_ks")?X.pauseVideo(!0):X.stopVideo(),Z.playabilityStatus=Object.assign({},Z.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:n}}),Z.videoDetails=void 0,_.XK.getInstance().triggerOptionalAction("yt-updated-playability-status",
Z.playabilityStatus)})})}else _.xQ(Error("Sf"))}};
var X8U=function(p,J){var S=_.e(J,_.lj);if(J&&S&&S.playlistId&&S.videoId&&(p=p.wZL,p.queueProxy?(p=p.queueProxy,S=p.listId===S.playlistId?p.attributionData.get(S.videoId):void 0):S=void 0,S))return{queue_info:S}},iW8=function(p){var J;
if((J=p.tempData)==null?0:J.adpings)return{adpings:p.tempData.adpings}};var Q5=function(p,J,S){this.ys=!1;this.r17=p;this.hd5=J;this.hCC=S};
_.Q(Q5,Bm);Q5.prototype.validate=function(p){return!!_.T6.getValueByKeys.apply(null,[p.data].concat(_.dW(Ub8)))};
Q5.prototype.handle=function(p){var J=this;this.r17.promise.then(function(){var S=p.data;var H=_.T6.getValueByKeys.apply(null,[S].concat(_.dW(oPv))),M=_.T6.getValueByKeys.apply(null,[S].concat(_.dW(y2o))),X=_.T6.getValueByKeys.apply(null,[S].concat(_.dW(W18)));var Z=(Z=_.T6.getValueByKeys.apply(null,[S].concat(_.dW(eQv))))?{videoId:Z.videoId,thumbnail:Z.thumbnail,title:Z.title?_.aR(Z.title):void 0,shortBylineText:Z.author?_.aR(Z.author):void 0}:void 0;var n=void 0;_.z("web_get_playlist_id_from_current_endpoint_ks")||
(n=_.T6.getValueByKeys.apply(null,[S].concat(_.dW(Qa8))));var b=_.T6.getValueByKeys.apply(null,[S].concat(_.dW(B6n))),F=_.T6.getValueByKeys.apply(null,[S].concat(_.dW(CEM))),f=!!b||!!F&&!!F.results&&F.results.length>0,O=0;M&&M.currentIndex&&M.localCurrentIndex&&(O=M.currentIndex-M.localCurrentIndex);M&&M.playlistId&&(n=M.playlistId);S={rawResponse:S,autoplayRenderer:H,hasRelatedVideoData:f,playingVideo:Z,playingVideoId:X,playlistPanelRenderer:M,playlistId:n,playlistIndex:M&&M.currentIndex,relatedVideoArgs:b,
endScreenRenderer:F,playlistIndexOffset:O};a:{H=J.hCC;M=J.hd5;H.response=S;if(EP8(S))H.downloadPlaylistProxy&&H.downloadPlaylistProxy.getPlaylistId()===a1L(S)||(H.downloadPlaylistProxy=new F1p(a1L(S),H.setPlaylistData.bind(H),H.isPlayingOfflineVideo.bind(H))),H.responsePlaylistData=H.downloadPlaylistProxy.getPlaylistData(),H.listId=a1L(S),H.index=0;else if(S.playlistPanelRenderer&&S.playlistId&&S.autoplayRenderer)S.playlistId.startsWith("TLPQ")?H.queueProxy?H.listId===S.playlistId?(H.index=S.playlistIndex,
H.responsePlaylistData=S.playlistPanelRenderer,H.queueProxy.JSC$13185_setCurrentIndex(H.index)):S.playingVideoId&&H.index!==void 0&&M.clientParams.autoSaveToQueue&&(H.index+=1,H.queueProxy.JSC$13185_setCurrentIndex(H.index),H.queueProxy.addVideos([S.playingVideoId],{},H.index)):(H.queueProxy=new _.Gk(H.JSC$13239_playlistNetworkManager,S.playlistId,H.setPlaylistData.bind(H),H.clearQueue.bind(H),_.wHv(S.playlistPanelRenderer),H.storage),H.responsePlaylistData=S.playlistPanelRenderer,H.listId=S.playlistId,
H.index=S.playlistIndex):(H.index=S.playlistIndex,H.listId!==S.playlistId&&H.clearQueue(),H.responsePlaylistData=S.playlistPanelRenderer,H.listId=S.playlistId,H.playlistProxy=new $bE(H.JSC$13239_playlistNetworkManager,S.playlistId,H.setPlaylistData.bind(H),_.wHv(S.playlistPanelRenderer)));else if(!H.queueProxy)H.responsePlaylistData=void 0;else if(S.playingVideoId&&M.clientParams.autoSaveToQueue){if(H.index===void 0){_.jD(Error("Of"));H.clearQueue();break a}H.queueProxy.videoIds.includes(S.playingVideoId)||
(H.index+=1,H.queueProxy.JSC$13185_setCurrentIndex(H.index),H.queueProxy.addVideos([S.playingVideoId],{},H.index))}_.zk(H,_.$w(H,H.response.autoplayRenderer))}})};var Rs8=function(p,J){J=J===void 0?_.PR():J;al.call(this);this.l8.push(new Q5(this.iq,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},J));this.l8.push(new WR(this.iq,p,!1,!1));_.z("web_response_commands_chunk_processor")&&this.l8.push(new Eu)};
_.Q(Rs8,al);Rs8.prototype.processChunk=function(p){p&&p.data.player===void 0&&this.iq.resolve();al.prototype.processChunk.call(this,p)};var Cq=function(p,J){p=p===void 0?{layer:0}:p;this.ys=!1;this.createScreenConfig=p;this.eKu=J};
_.Q(Cq,Bm);Cq.prototype.validate=function(p){return!(this.ys||!p.endpoint)};
Cq.prototype.handle=function(p){var J=_.bC(),S,H,M=(H=_.e((S=p.endpoint)==null?void 0:S.commandMetadata,_.i7))==null?void 0:H.rootVe;this.eKu&&M?_.TZ(J,M,this.eKu,this.createScreenConfig):j3m(J,p.endpoint,this.createScreenConfig);this.ys=!0};var y5=function(p,J){this.ys=!1;this.lyp=p;this.previousVideoId=J};
_.Q(y5,Bm);y5.prototype.validate=function(p){return _.z("kevlar_continue_playback_without_player_response")&&(p=_.e(p.endpoint,_.lj),(p==null?0:p.videoId)&&this.previousVideoId&&(p==null?void 0:p.videoId)===this.previousVideoId&&(p==null?0:p.continuePlayback))?!1:this.lyp.sPc===0};
y5.prototype.handle=function(p){_.XK.getInstance().triggerAction("yt-stop-old-player",p.data,!0)};var Kl8=function(p){p=p===void 0?{layer:0}:p;al.call(this);this.l8.push(new y5(this));this.l8.push(new Cq(p));this.l8.push(new ql(p))};
_.Q(Kl8,al);var BR=function(){Bm.apply(this,arguments)};
_.Q(BR,Bm);BR.prototype.validate=function(p){return!!p.data.preconnect};
BR.prototype.handle=function(p){_.Qf("bc");p=_.K(p.data.preconnect);for(var J=p.next();!J.done;J=p.next())J=J.value,(new Image).src=J};var ZW8=function(p,J,S,H,M,X,Z){S=S===void 0?{layer:0}:S;X=X===void 0?_.PR():X;al.call(this);if(H)if(M){M=X;this.l8.push(new Q5(this.iq,J,M));this.l8.push(new BR);var n,b;this.l8.push(new WR(this.iq,p,!1,!((n=J.clientParams)==null||!n.fromHistory),(b=J.clientParams)==null?void 0:b.previousVideoId,M,J.tempData));var F;this.l8.push(new y5(this,(F=J.clientParams)==null?void 0:F.previousVideoId));var f;(f=J.clientParams)!=null&&f.fromHistory||(S.layer||(S=Object.assign({},S,{layer:0})),this.l8.push(new Cq(S,
Z)),this.l8.push(new ql(S)))}else this.l8.push(new Q5(this.iq,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},X)),this.l8.push(new WR(this.iq,p,!1,!1));else this.l8.push(new y5(this)),this.l8.push(new Cq(S)),this.l8.push(new ql(S));_.z("web_response_commands_chunk_processor")&&H&&this.l8.push(new Eu)};
_.Q(ZW8,al);ZW8.prototype.processChunk=function(p){p&&p.data.player===void 0&&this.iq.resolve();al.prototype.processChunk.call(this,p)};var nhL=function(){this.ys=this.ys=!1};
_.Q(nhL,Bm);nhL.prototype.validate=function(p){return!this.ys&&!(!p.data.csn||!p.data.rootVe)};
nhL.prototype.handle=function(p){this.ys=!0;_.Bf(p.data.csn,p.data.rootVe,3)};var GR8=function(p,J,S){S=S===void 0?{layer:0}:S;al.call(this);this.l8.push(new WR(this.iq,p));this.l8.push(new Cq(S));this.l8.push(new ql(S))};
_.Q(GR8,al);var bWE=function(p,J,S,H,M){S=S===void 0?{layer:0}:S;H=H===void 0?_.PR():H;al.call(this);var X=!!J&&!!J.clientParams&&!!J.clientParams.miniplayer;X&&this.l8.push(new nhL);this.l8.push(new Q5(this.iq,J,H));this.l8.push(new BR);var Z,n;this.l8.push(new WR(this.iq,p,X,!((Z=J.clientParams)==null||!Z.fromHistory),(n=J.clientParams)==null?void 0:n.previousVideoId,H,J.tempData));var b;this.l8.push(new y5(this,(b=J.clientParams)==null?void 0:b.previousVideoId));var F;(F=J.clientParams)!=null&&F.fromHistory||
(S.layer||(S=Object.assign({},S,{layer:X?3:0})),this.l8.push(new Cq(S,M)),this.l8.push(new ql(S)));_.z("web_response_commands_chunk_processor")&&this.l8.push(new Eu)};
_.Q(bWE,al);var gb,vho;gb={};
_.mpv=(gb["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},gb["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},gb["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},gb["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gb["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gb["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gb["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},gb);_.tW=new _.pH("yt-edu");_.Fl8=function(){this.JSC$13337_eduDisplayedThisLoad_={}};
vho=function(p){var J=_.Fl8.getInstance();var S=_.PO("kevlar_tooltip_impression_cap");J=S&&parseInt(_.tW.get(p+"-impression")||0,10)>=S||_.tW.get(p+"-dismissed")?!1:(S=_.mpv[p])&&!J.JSC$13337_eduDisplayedThisLoad_[S.setKey||p]&&(S.titleText&&_.Kl(S.titleText)||S.bodyText&&_.Kl(S.bodyText))?!0:!1;if(!J)return null;J=_.mpv[p];if(!J)return null;S=J.bodyText?_.Kl(J.bodyText):void 0;var H=J.titleText?_.Kl(J.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:J.position,popup:{bubbleHintRenderer:{text:H?
_.aR(H):void 0,detailsText:S?_.aR(S):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aR(_.Kl("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:p}}]}}}}}}}},{eduImpressionAction:{key:p}}]};
_.pu(_.Fl8);var cYW=!1;for(var f88="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),OWd=[],hW=6;hW>=1;hW--)OWd.push({columnCount:hW,query:hW==1?0:hW*2*107-4+32,className:"grid-"+hW+"-columns",width:hW*2*107+"px"});_.Dg=function(p){this.actionRouter_=p=p===void 0?_.XK.getInstance():p;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.A$4(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.A$4=function(p){var J=p.documentWidth_-(p.miniGuideVisible_?72:0)-(p.guidePersistentAndVisible_?240:0)-(p.persistentPanelVisible_?400:0);return OWd.find(function(S){return J>S.query})};
_.pu(_.Dg);var PdE=function(){var p=this;this.JSC$13349_keyboardInUse=!1;document.addEventListener("keydown",function(){p.onKeydown()});
document.addEventListener("mousedown",function(){p.JSC$13349_keyboardInUse=!1})},zsq;
PdE.prototype.isKeyBoardInUse=function(){return this.JSC$13349_keyboardInUse};
PdE.prototype.onKeydown=function(){this.JSC$13349_keyboardInUse=!0};var $p8,Tk;_.kw=new _.pH("yt-mentions");_.NZ=function(){};
$p8=function(p,J){return Tk(J,"drag-to-reorder-edu-displayed")};
Tk=function(p,J,S,H,M,X){S=S===void 0?"OPEN_POPUP_POSITION_TOP":S;if(J){if(_.kw.get(J))return;_.kw.set(J,!0,H)}if(M&&X!==void 0){J=Number(_.kw.get(M)||0);if(J>=X)return;_.kw.set(M,J+1)}return[{openPopupAction:{popupType:"HINT",position:S,popup:{bubbleHintRenderer:{detailsText:p,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.pu(_.NZ);var oho,esv,Wld;oho=function(p,J,S,H){this.JSC$13359_taskManager_=p;this.onFulfilled_=typeof J==="function"?J:null;this.onRejected_=typeof S==="function"?S:null;this.JSC$13359_context_=H};
esv=function(p,J){p.onFulfilled_&&_.oA(p.JSC$13359_taskManager_,function(){p.onFulfilled_.call(p.JSC$13359_context_,J)})};
Wld=function(p,J){p.onRejected_&&_.oA(p.JSC$13359_taskManager_,function(){p.onRejected_.call(p.JSC$13359_context_,J)})};
_.db=function(p){this.JSC$13362_taskManager_=p;this.callbacks_=[]};
_.db.prototype.then=function(p,J,S){this.callbacks_.push(new oho(this.JSC$13362_taskManager_,p,J,S));return this};
_.db.prototype.onSuccess=function(p){this.callbacks_.forEach(function(J){esv(J,p)})};
_.db.prototype.onFailure=function(p){this.callbacks_.forEach(function(J){Wld(J,p)})};
_.db.prototype.cancel=function(){this.callbacks_.length=0};
zY8(_.db);_.HFg=null;_.Am=new _.ni("ACTIVITY_TOKEN");var QX8;_.o$=new _.ni("PAGE_REQUEST_TOKEN");QX8=new _.ni("FETCH_PBJ_TOKEN");_.Cdv=function(p){if(p.validatedFragments_.length==0)return null;if(!p.mergedPrefetchedData_){for(var J=[],S=_.K(p.validatedFragments_),H=S.next();!H.done;H=S.next()){H=_.K(p.fragmentConfiguration_[H.value].graftedKeys);for(var M=H.next();!M.done;M=H.next())(M=p.prefetchedData_[M.value].trackingParams)&&J.push(M)}p.mergedPrefetchedData_={};Object.assign(p.mergedPrefetchedData_,p.prefetchedData_,{clientSideGrafts:J})}return p.mergedPrefetchedData_};var y$v;_.uc=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
y$v=function(p,J,S){if(_.MZ3(J))return p.prefetchCache_.get(_.X2k(J,S))};_.lc=new _.ni("NAVIGATION_TOKEN");var Ba4=function(p){var J=this;var S=S===void 0?Kxt():S;var H=H===void 0?_.vO().resolve(_.lc):H;this.onePickCommand=p;this.JSC$13434_playlistNetworkManager=S;this.navigationManager=H;this.videoPickerBuilder=_.iFt("yt-addtoplaylist");_.lyU(hC8(D9p(tqd(this.videoPickerBuilder.setTitle(p.modalTitle).setSize(1E3).addView(Nd8()).addView(kU8())).addView("youtube"),p.selectButtonLabel)),function(M){J.handleAction(M)})};
Ba4.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
Ba4.prototype.handleAction=function(p){var J=this;if(p&&this.onePickCommand.listId&&p.action==="picked"&&p.docs){var S=[];p.docs.forEach(function(H){S.push({addedVideoId:H.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13434_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,S).then(function(){_.z("playlist_add_video_hard_reload_killswitch")?J.navigationManager.reload():UpE(J.navigationManager)})}};var sXp=function(){if(this.constructor===sXp)throw new TypeError("Uf");};
_.R=sXp.prototype;_.R.dispose=function(){};
_.R.disconnect=function(){};
_.R.reconnect=function(){};
_.R.observe=function(p,J,S){return{element:p,option:S}};
_.R.unobserveByKey=function(){};var ZFL=function(p,J){J=J===void 0?0:J;sXp.call(this);this.viewroot=p;this.defaultPrescanHeight=J;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};
_.Q(ZFL,sXp);_.R=ZFL.prototype;_.R.dispose=function(){this.disconnect();this.handlers.clear()};
_.R.disconnect=function(p){this.isConnected=!1;this.pauseObservingUntilReconnect=p===void 0?!1:p;this.observer.disconnect();p=_.K(this.prescanObservers.values());for(var J=p.next();!J.done;J=p.next())J.value.disconnect()};
_.R.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var p=_.K(this.handlers),J=p.next();!J.done;J=p.next()){var S=_.K(J.value);J=S.next().value;var H=S.next().value;S=!1;H=_.K(H.keys());for(var M=H.next();!M.done;M=H.next())if((M=M.value)&&M.state==="prescan"){S=!0;break}S&&ghE(this,J).observe(J);this.observer.observe(J)}}};
_.R.handleObserveEvent=function(p){p=_.K(p);for(var J=p.next();!J.done;J=p.next()){J=J.value;var S=this.handlers.get(J.target);if(S){var H=J.isIntersecting;S=_.K(S);for(var M=S.next();!M.done;M=S.next()){var X=_.K(M.value);M=X.next().value;X=X.next().value;M&&(M.state==="visible"&&H||M.state==="hidden"&&!H)&&(X(J.target,M.state),M.calledOnce&&this.unobserveByKey({element:J.target,option:M}))}}}};
_.R.handlePrescanEvent=function(p){p=_.K(p);for(var J=p.next();!J.done;J=p.next()){J=J.value;var S=this.handlers.get(J.target);if(S&&J.isIntersecting){S=_.K(S);for(var H=S.next();!H.done;H=S.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;H&&H.state==="prescan"&&(M(J.target,H.state),H.calledOnce&&this.unobserveByKey({element:J.target,option:H}))}}}};
_.R.observe=function(p,J,S){var H=(H=this.handlers.get(p))&&H.has(S)?{element:p,option:S}:void 0;if(H)return H;H={element:p,option:S};this.handlers.has(p)||this.handlers.set(p,new Map);var M=this.handlers.get(p);M&&!M.has(S)&&M.set(S,J);this.pauseObservingUntilReconnect||(S.state==="prescan"&&ghE(this,p).observe(p),this.observer.observe(p));return H};
_.R.unobserveByKey=function(p){var J=this.handlers.get(p.element);if(J&&J.has(p.option)){J.delete(p.option);if(p&&p.option.state==="prescan")for(var S=_.K(this.prescanObservers.values()),H=S.next();!H.done;H=S.next())H.value.unobserve(p.element);J.size===0&&(this.handlers.delete(p.element),this.observer.unobserve(p.element))}};
var ghE=function(p,J){var S=p.defaultPrescanHeight;J.hasAttribute("prescan-height")&&(J=Number(J.getAttribute("prescan-height")),isNaN(J)||(S=J));if(p.prescanObservers.has(S))return p.prescanObservers.get(S);J="-0.1px -0.1px "+S+"px -0.1px";J=new IntersectionObserver(p.handlePrescanEvent.bind(p),p.viewroot?{root:p.viewroot,rootMargin:J}:{rootMargin:J});p.prescanObservers.set(S,J);return J};var tyU=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],hsp=function(){var p,J=this;this.JSC$13451_actionRouter=p=p===void 0?_.XK.getInstance():p;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return J.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return J.visibilityObservedElementHandlerKeys}}},Dpo,V5,Ta8;
hsp.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.z("kevlar_use_vimio_behavior")&&_.jn("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=nAw())};
hsp.prototype.dispose=function(){this.visibilityMonitor&&_.gx(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
hsp.prototype.handleVisibilityRefreshed=function(){for(var p=_.K(this.targetMap.entries()),J=p.next();!J.done;J=p.next()){var S=_.K(J.value);J=S.next().value;S=S.next().value;_.kR8(this,J,S)}};
_.qZ=function(p,J,S){V5(p,S);var H=_.Nao(p,J);H.element=S;p.targetedElements.set(S,J);_.kR8(p,J,H)};
V5=function(p,J){var S=p.targetedElements.get(J);if(S){var H=p.targetMap.get(S);H&&(delete H.element,p.targetMap.set(S,H));p.targetedElements.delete(J);p.visibilityObserver&&p.visibilityObservedElementHandlerKeys&&(S=p.visibilityObservedElementHandlerKeys.get(J))&&(p.visibilityObserver.unobserveByKey(S),p.visibilityObservedElementHandlerKeys.delete(J))}};
_.kR8=function(p,J,S){var H=S.action,M=S.element;M&&H&&(tyU.includes(J)||_.jn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||p.visibilityMonitor&&p.visibilityMonitor.isNodeVisible(M)?Ta8(p,J,S):p.visibilityObserver&&(p.visibilityObservedElementHandlerKeys||(p.visibilityObservedElementHandlerKeys=new WeakMap),H=p.visibilityObserver.observe(M,function(){Ta8(p,J,S);p.visibilityObservedElementHandlerKeys.delete(M)},{calledOnce:!0,
state:"visible"}),p.visibilityObservedElementHandlerKeys.set(M,H)))};
Ta8=function(p,J,S){var H=S.action;(S=S.element)&&H&&(_.YD(p.JSC$13451_actionRouter,[H],S),p.targetMap.delete(J),p.targetedElements.delete(S),p.triggeredTargets.add(J))};
_.Nao=function(p,J){var S=p.targetMap.get(J);S||(S={},p.targetMap.set(J,S));return S};
_.aQ=function(){Dpo||(Dpo=new hsp);return Dpo};var dpv=document.createElement("div");dpv.style.touchAction="pan-down";var GKL=dpv.style.touchAction==="pan-down";var u1m,l8d;u1m=function(){this.hammerFn=VNE();this.JSC$13459_screenManager=_.bC();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.KG(83615);_.uq(this.JSC$13459_screenManager,this.ve);bFX()};
_.ET=function(){l8d||(l8d=new u1m);return l8d};
u1m.prototype.registerTouchEvents=function(p,J,S){var H=_.Yp.apply(3,arguments),M=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}]]});S&&M.set({touchAction:S});this.nodeManagerMapping.set(p,M);var X=
mfi(J);H=_.K(H);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;if(Z.includes("swipe")||Z.includes("pinch")||Z.includes("pan"))Z.includes("swipe")?M.get("swipe").set({enable:!0,direction:X,velocity:.2}):Z.includes("pinch")?M.get("pinch").set({enable:!0}):Z.includes("pan")&&(M.get("pan").set({enable:!0,direction:X}),M.get("swipe").set({enable:!0,direction:X,velocity:.2}),M.get("swipe").recognizeWith("pan"));VyL(this,p,M,Z)}};
var VyL=function(p,J,S,H){S.on(H,function(M){if(H.includes("pinch"))p.lastPinchTime=Date.now();else if(H.includes("swipe")&&Date.now()-p.lastPinchTime<400)return;M.pointerType!=="mouse"&&(M=H==="doubletap"?{coordinates:M.center}:H.includes("pan")?M:H.includes("swipe")?{target:M.target}:{},J.dispatchEvent(new CustomEvent(H,{bubbles:!0,composed:!0,detail:M})))})};
u1m.prototype.unregisterTouchEvents=function(p){var J=_.Yp.apply(1,arguments),S=this.nodeManagerMapping.get(p);if(S){J=_.K(J);for(var H=J.next();!H.done;H=J.next())S.off(H.value);this.nodeManagerMapping.delete(p);p.style.touchAction="unset"}};var qY8=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Fx3=null;_.Pt={getLocalStorage:_.Bj(function(){try{var p=new qJs;var J=p.isAvailable()?p:null}catch(S){return null}return J?new _.Wh(J):null}),
getSessionStorage:_.Bj(function(){var p=new aO3;return p.isAvailable()?new _.Wh(p):null})};var a8U=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},tZ4=function(){a8U.instance||(a8U.instance=new a8U);
return a8U.instance},hJL=function(p){var J=p.networkEvents;
p.networkEvents=[];return _.z("enable_network_monitoring")?J:[]};var EhM;EhM={};_.YYm=vB("yt-serviceworker-metadata",{objectStores:(EhM.auth={addedAtVersion:1},EhM["resource-manifest-assets"]={addedAtVersion:2},EhM),shared:!0,upgrade:function(p,J){J(1)&&SD(p,"resource-manifest-assets");J(2)&&SD(p,"auth")},
version:2});var zJW=self.location.origin+"/";$f9([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);$f9([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);$f9([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);$f9([/purge_shell=1/]);var r$8=void 0;r$8=r$8===void 0?[]:r$8;
for(var jX8=[],w88=_.K(P7p),xpp=w88.next();!xpp.done;xpp=w88.next())jX8.push({key:xpp.value});for(var c$d=_.K(r$8),I8v=c$d.next();!I8v.done;I8v=c$d.next())jX8.push(I8v.value);var LlU,Wt=_.Hg==null?void 0:(LlU=_.Hg.performance)==null?void 0:LlU.memory,WxX=!1,Dfi={},yOg={},Qi={},Cy=navigator;var Yw=function(p){this.JSC$13504_expiringStorage=new uh(p)};
Yw.prototype.set=function(p,J,S){S=S!==void 0?Date.now()+S:void 0;this.JSC$13504_expiringStorage.set(p,J,S)};
Yw.prototype.get=function(p){return this.JSC$13504_expiringStorage.get(p)};
Yw.prototype.remove=function(p){this.JSC$13504_expiringStorage.remove(p)};var qzX=_.YI(["https://www.youtube.com/",""]),a2s=_.YI(["https://studio.youtube.com/",""]),w2s="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",YzW=null,pCW;var pKm=_.YI(["https://www.youtube.com/iframe_api"]),rb=function(){this.playerResolver_=_.qr();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.y4;this.playbackDurationSeconds_=0},Jxo=function(p){var J=function(){return window.YT&&typeof window.YT.ready==="function"};
if(J())return _.SU(window.YT);var S=_.qr(),H=_.Q0("SCRIPT");H.onload=H.onreadystatechange=function(){H.readyState&&H.readyState!="loaded"&&H.readyState!="complete"||(H.onload=_.y4,H.onreadystatechange=_.y4,H.onerror=_.y4,J()?S.resolve(window.YT):S.reject(new _.TG("Failed to load the iframe player library","script.onload",H.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
H.onerror=function(M){H.onload=_.y4;H.onreadystatechange=_.y4;H.onerror=_.y4;S.reject(new _.TG("Failed to load the iframe player library","script.onerror",M&&M.target&&M.target.src))};
_.RI(H,_.fA(pKm));p.insertBefore(H,p.firstChild);return S.promise},SU8=function(p,J,S){var H,M;
_.G(function(X){switch(X.nextAddress){case 1:return p.playbackEndedCallback_=S,_.oI(X,2),X.yield(Jxo(J.parentElement||null),4);case 4:H=X.yieldResult;_.X$(X,3);break;case 2:return M=_.BZ(X),M instanceof _.TG&&M.args&&M.args[0]=="script.onerror"?_.xQ(M):_.jD(M),X.return();case 3:H.ready(function(){return new H.Player(J,{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)}})}),_.UK(X)}})};
_.R=rb.prototype;_.R.getPlayerPromise=function(){return this.playerPromise_};
_.R.onPlayerReady_=function(p){this.playerResolver_.resolve(p.target)};
_.R.onPlayerStateChange_=function(p){if(p.data==YT.PlayerState.PLAYING){p=p.target;var J=p.getCurrentTime();p.addCueRange("playback",J,J+this.playbackDurationSeconds_)}};
_.R.onCueRangeExit_=function(p){p.data=="playback"&&(p.target.stopVideo(),this.playbackEndedCallback_())};
_.R.stopVideo=function(){this.playerPromise_.then(function(p){p.stopVideo()})};
var HRm=function(p){p.playerVars_&&p.playerPromise_.then(function(J){typeof J.cueVideoByPlayerVars!="function"?_.xQ(new _.TG("vmh: player API not ready","cueVideoByPlayerVars",typeof J.cueVideoByPlayerVars)):J.cueVideoByPlayerVars(p.playerVars_)})};
rb.prototype.playVideo=function(){var p=this;this.playerVars_&&this.playerPromise_.then(function(J){typeof J.loadVideoByPlayerVars!="function"?(J=new _.TG("vmh: player API not ready","loadVideoByPlayerVars",typeof J.loadVideoByPlayerVars),_.jD(J)):J.loadVideoByPlayerVars(p.playerVars_)})};
var MRd=function(p,J,S,H,M){J&&(S===void 0&&(S=0),H===void 0&&(H=0),p.playbackDurationSeconds_=H/1E3,p.playerVars_={adformat:"17_8",videoId:J,suggestedQuality:"hd720",startSeconds:S/1E3,player_params:M})};
rb.prototype.mute=function(){this.playerPromise_.then(function(p){p.mute()})};
rb.prototype.unMute=function(){this.playerPromise_.then(function(p){p.unMute()})};var RVi=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var jg;jg=function(){this.tokenJars={};if(this.cookiesEnabled=_.DL()){var p=_.tl.get("CONSISTENCY",void 0);p&&XKU(this,{encryptedTokenJarContents:p})}};
_.ZMX=function(){jg.instance||(jg.instance=new jg);return jg.instance};
jg.prototype.handleResponse=function(p,J){if(!J)throw Error("Zf");var S,H;J=((S=J.innerTubeRequest.context)==null?void 0:(H=S.request)==null?void 0:H.consistencyTokenJars)||[];var M;(p=(M=p.responseContext)==null?void 0:M.consistencyTokenJar)&&this.replace(J,p)};
jg.prototype.replace=function(p,J){p=_.K(p);for(var S=p.next();!S.done;S=p.next())delete this.tokenJars[S.value.encryptedTokenJarContents];XKU(this,J)};
var XKU=function(p,J){if(J.encryptedTokenJarContents&&(p.tokenJars[J.encryptedTokenJarContents]=J,typeof J.expirationSeconds==="string")){var S=Number(J.expirationSeconds);setTimeout(function(){delete p.tokenJars[J.encryptedTokenJarContents]},S*1E3);
p.cookiesEnabled&&_.hl("CONSISTENCY",J.encryptedTokenJarContents,S,void 0,!0)}};var iRE,wb;iRE=window.location.hostname.split(".").slice(-2).join(".");_.uy=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var p=_.jn("LOCATION_PLAYABILITY_TOKEN");_.jn("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=R5v(this))&&(p=this.localStorage.get("yt-location-playability-token"));p&&(this.locationPlayabilityToken=p,this.mostRecentPosition=void 0)};
_.uy.getInstance=function(){wb=_.Id("yt.clientLocationService.instance");wb||(wb=new _.uy,_.m$("yt.clientLocationService.instance",wb));return wb};
_.uy.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};
_.uy.prototype.handleResponse=function(p){var J;p=(J=p.responseContext)==null?void 0:J.locationPlayabilityToken;p!==void 0&&(this.locationPlayabilityToken=p,this.mostRecentPosition=void 0,_.jn("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=R5v(this))&&this.localStorage.set("yt-location-playability-token",p,15552E3):_.hl("YT_CL",JSON.stringify({loctok:p}),15552E3,iRE,!0))};
var R5v=function(p){return p.localStorage===void 0?new _.pH("yt-client-location"):p.localStorage};
_.uy.prototype.clearLocationPlayabilityToken=function(p){p==="TVHTML5"?(this.localStorage=R5v(this))&&this.localStorage.remove("yt-location-playability-token"):_.kv4("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.uy.prototype.getCurrentPositionFromGeolocation=function(){var p=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var J=!1,S=1E4;_.jn("INNERTUBE_CLIENT_NAME")==="MWEB"&&(J=!0,S=15E3);return new Promise(function(H,M){navigator.geolocation.getCurrentPosition(function(X){p.mostRecentPosition=X;H(X)},function(X){M(X)},{enableHighAccuracy:J,
maximumAge:0,timeout:S})})};
_.uy.prototype.createUnpluggedLocationInfo=function(p){var J={};p=p.coords;if(p==null?0:p.latitude)J.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)J.longitudeE7=Math.floor(p.longitude*1E7);if(p==null?0:p.accuracy)J.locationRadiusMeters=Math.round(p.accuracy);return J};
_.uy.prototype.createLocationInfo=function(p){var J={};p=p.coords;if(p==null?0:p.latitude)J.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)J.longitudeE7=Math.floor(p.longitude*1E7);return J};var KFm=function(p,J){var S=t1();p||(p="unknown");J||(J="unknown");p="MAIN_APP_WEB_PAGE_TYPE_"+p.toUpperCase();p in DlL||(p="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");J="MAIN_APP_WEB_REQUEST_TYPE_"+J.toUpperCase();J in kZv||(J="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.ZF(S,{mainAppWeb:{pageType:p,requestType:J,isShellLoad:_.wY("IS_SHELL_LOAD",!1)}})},ZR8={start:function(){_.ZF(Cat(),{mainAppWeb:_.ly()})},
success:function(){_.nT(Cat(),"SUCCESS")},
failure:function(){_.nT(Cat(),"FAILURE")},
cancelled:function(){_.nT(Cat(),"CANCELLED")}};var n6n,G9p,FQW;n6n=_.YI(["/sw.js"]);G9p=_.YI(["/sw.js?0"]);_.bRp=_.fA(n6n);FQW=_.fA(G9p);var mOd=function(){var p=Error.apply(this,arguments);this.message=p.message;"stack"in p&&(this.stack=p.stack)};
_.Q(mOd,Error);_.as.prototype.load=function(p){this.megabloxUrl_=_.jn("YPC_MB_URL");_.h1(this.megabloxUrl_,(0,_.tT)(function(){p&&p()},this))};
_.N8g=function(p,J,S,H,M,X,Z,n,b,F,f){_.f5w(b);p.load((0,_.tT)(function(){try{var O=X?X:_.jn("HL"),A=_.jn("SESSION_INDEX");_.XN9("client",function(){W$v("59",{helpCenterPath:"/youtube",locale:O,window:window}).JSC$10130_loadChatSupport({authuser:String(A)})})}catch(P){throw Vi(10,f,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),M&&M(P),_.jD(P),P;
}FF4(this,J,S,H,M,X,Z,n,b,F,f)},p))};
_.as.prototype.openFixFlowDialog=function(p,J,S,H){this.load((0,_.tT)(function(){try{v68(this,_.Id("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(p).withIntegratorCallback(J).load(S,H)}catch(M){throw _.jD(M),M;}},this))};
var v68=function(p,J,S,H){var M=J.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.z("enable_window_constrained_buy_flow_dialog")&&(M=M.usingPopupStyle(_.Id("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));H&&(M=M.usingCloseCallback(H));J.bootstrap.fromPaymentsUrl(p.megabloxUrl_);p=J.bootstrap.asMashupMode(M);S=S?S:_.jn("HL");p.usingGaiaIndex(_.jn("SESSION_INDEX")).usingLocale(S).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.z("enable_google_payments_buyflow_material2_style_web")?
p.usingStyle(":m2;pc=#444;ac=#065fd4"):p.usingStyle(":md;pc=#444;ac=#065fd4");return p},FF4=function(p,J,S,H,M,X,Z,n,b,F,f){try{var O=_.Id("payments.business.integration");
if(!O)throw new mOd("payments.business.integration is undefined");var A=O.standaloneContextAuthId.forUserId(),P=v68(p,O,X,function(){AoL(!1);n&&n()});
Z&&P.usingServerAnalyticsEventHandler(Z);var W=P.inStandaloneContext(A).buyFlow(function(y){if(y&&(!y.integratorData||y.integratorData===""||y.error))if(y.error!=null)if(String(y.error)==="-1")_.OMX(b);else{var t=String(y.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Vi(10,f,t,y.debugCode);_.qc(t,b,y.debugCode);t=new _.TG("PAYMENT_ERROR_MESSAGE::"+y.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+y.internalErrorDetails);
_.jD(t)}else Vi(10,f,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.qc("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",b,"EMPTY_INTEGRATOR_DATA"),_.jD(Error("bg"));S&&(AoL(!1),S(y))}).withEncryptedParameters(J);
F&&W.withClientParameters(WiE(_.DJi(F)));W.load(function(){Vi(24,f);_.yf("ttc",void 0,"commerce_transaction");eU("commerce_transaction");H&&(H(),AoL(!0))},function(y){if(y==null?0:y.debugCode)var t=y==null?void 0:y.debugCode;
else if(!y||(y==null?0:y.debugCode))t="EMPTY_LOAD_FAILURE_ERROR",_.jD(Error(t));else{t="EMPTY_LOAD_FAILURE_DEBUG_CODE";var D=new _.TG("LOAD_FAILURE:"+y.message," DEBUG_CODE:"+t);_.jD(D)}Vi(10,f,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",t);_.qc("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",b,t);_.jD(y);M&&M(y)})}catch(y){throw y instanceof mOd&&(Vi(10,f,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),M&&M(y)),_.jD(y),y;
}};var fG8;fG8=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.hev=function(p,J){J=J===void 0?!1:J;p=fG8.test(p)?_.sq(p):null;!J&&window.payments||!p?(p=_.qr(),J=p.promise,p.resolve()):J=_.GdE(p,{attributes:{"data-payments-main":"",id:"payment-lib"}});return J};var ORL;ORL=_.YI(["//www.googletagmanager.com/gtm.js?id=",""]);_.xw=function(p,J){_.pG(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:J}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.jn("GL")}),J=_.Q0("SCRIPT"),J.async=!0,_.RI(J,_.fA(ORL,p)),J.id="gtm",p=document.getElementsByTagName("script"),p.length==0?document.head.appendChild(J):(p=p[0],p.parentNode.insertBefore(J,p)))};
_.cR=function(p){if(p=JSON.parse(p))window.dataLayer=window.dataLayer||[],window.dataLayer.push(p)};var AxL,PsM;AxL=_.YI(["https://clients2.google.com/gr/gr_sync.js"]);_.gMw=function(){};
_.gMw.prototype.init=function(){if(PsM()){var p=_.qr();p.resolve();return p.promise}return _.GdE(_.fA(AxL)).then(function(){if(!PsM())throw Error("cg");},function(){throw Error("dg");
})};
_.t44=function(){if(!PsM())return"";var p=window.google.gr;p.init({async:{schedule:"sync"},merchantId:"youtube"});p.start();p=p.finish();return p==null?"":p};
PsM=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.T=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Q(_.T,PolymerFakeBaseClassWithoutHtml);_.f3=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Q(_.f3,PolymerFakeBaseClassWithoutHtml);var PHX=window.ShadyDOM;var Hfw,JAi,XFL,ifv,K_s,Zfi,IQ,p3;Hfw=_.z("enable_shadydom_free_scoped_query_methods");JAi=_.z("enable_shadydom_free_scoped_node_methods");XFL=_.z("enable_shadydom_free_scoped_readonly_properties_batch_one");ifv=_.z("enable_shadydom_free_parent_node");K_s=_.z("enable_shadydom_free_children");Zfi=_.z("enable_shadydom_free_last_child");IQ=window.ShadyDOM;_.Rf=IQ&&IQ.noPatch&&IQ.wrap?IQ.wrap:IQ?function(p){return IQ.patch(p)}:function(p){return p};
p3=function(p){if(p instanceof ShadowRoot)this.host=(0,_.Rf)(p.host),this.root=p;else if(p.$$){this.host=(0,_.Rf)(p);var J;this.root=(J=p.root)!=null?J:this.host}else if(p.polymerController){this.host=(0,_.Rf)(p);var S;this.root=(S=this.host.shadowRoot)!=null?S:this.host}else this.root=this.host=(0,_.Rf)(p)};
Soi();MfW();nl3();GLL();Rbw();var z5U={querySelector:function(p,J){J=tAv(J,wo(p));return _.z("sunnydom_native_scoped_query_selectors")?$HL(p,J):$HL(_.xt(p),J)},
querySelectorAll:function(p,J){J=tAv(J,wo(p));return _.z("sunnydom_native_scoped_query_selectors")?Array.from(oWs(p,J)):oWs(_.xt(p),J)}},$OE={appendChild:function(p,J){var S=wo(p),H=_.jS(J);
return _.LQs(_.xt(p),S?_.Is(J,S,H):J)},
cloneNode:function(p,J){var S=_.jS(p);p=_.xt(p);J=ro(p).prototype.cloneNode.call(p,J);return S?Ly(J,S):J},
contains:function(p,J){var S=wo(p),H=_.jS(J);return S!==H?!1:pF9(p,J)},
insertBefore:function(p,J,S){var H=wo(p),M=_.jS(J);p=_.xt(p);J=H?_.Is(J,H,M):J;return ro(p).prototype.insertBefore.call(p,J,S)},
removeChild:function(p,J){var S=wo(p);p=_.xt(p);J=S?Ly(J,S):J;return ro(p).prototype.removeChild.call(p,J)},
replaceChild:function(p,J,S){var H=wo(p),M=_.jS(J);J=H?_.Is(J,H,M):M?Ly(J,M):J;S=H?Ly(S,H):S;p=_.xt(p);return ro(p).prototype.replaceChild.call(p,J,S)},
getRootNode:function(p,J){J=J===void 0?{composed:!0}:J;var S;if(((S=J)!=null?S:{}).composed)p=I5s(p);else{J=p;for(p=WQ3(p);p;)J=p,p=DHL(p);p=J}return p}},mov=XFL?{firstChild:YhW,
nextSibling:qhi,previousSibling:EWg,firstElementChild:rok,lastElementChild:wC9,nextElementSibling:VAi,previousElementSibling:a5k,childNodes:xH4}:{};ifv&&(mov.parentNode=l5t);K_s&&(mov.children=cog);Zfi&&(mov.lastChild=jMX);Hfw&&bfw(z5U);JAi&&bfw($OE);F_t();var vlk=function(p){this.node=p instanceof ShadowRoot?p.host:p};
fS3();OfL();var zbk=new WeakMap;var oli=Symbol("Bd");var yA3=new Set(["tap","track","down","up"]),Bik=_.z("pbcm_fi_query_decorators");var Lq=function(){return _.f3.apply(this,arguments)||this};
_.Q(Lq,_.f3);_.R=Lq.prototype;_.R.getState=function(){return this.store.getState()};
_.R.dispatch=function(p){this.store.dispatch(p)};
_.R.beforeRegister=function(){if(this&&typeof this==="object"){var p;var J=!!this.useSignals||!((p=this.polymerController)==null||!p.useSignals)}else J=!1;if(!J&&this.properties)for(J=_.K(Object.keys(this.properties)),p=J.next();!p.done;p=J.next()){var S=p.value;p=this.properties[S];if(p.selector){if(p.computed)throw Error("kg");S=["reduxPropertiesRecomputeTrigger",'"'+S+'"'].concat(_.dW(p.selectorArgs||[])).join(",");p.computed="recomputeReduxSelector("+S+")"}}};
_.R.attached=function(){var p=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){p.reduxPropertiesRecomputeTrigger++}));
_.z("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.R.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.R.recomputeReduxSelector=function(p,J){var S=_.Yp.apply(2,arguments),H=this.properties[J].selector;if(!H)throw Error("ig`"+J);return H.apply(null,[this.store.getState()].concat(_.dW(S)))};
_.R.select=function(p){var J=_.Yp.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return p.apply(null,[this.store.getState()].concat(_.dW(J)))};
_.vh.Object.defineProperties(Lq.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
Lq.prototype.recomputeReduxSelector=Lq.prototype.recomputeReduxSelector;_.V([_.N(),_.Y("design:type",Number)],Lq.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.V([_.OD()],Lq);var pD=[],tfW={},UD=function(){return OL.apply(this,arguments)||this};
_.Q(UD,OL);UD.prototype._addPropertyEffect=function(p,J,S){if(J==="__observeEffects"&&S){var H,M=(H=S.info.method)!=null?H:S.info.methodName;if(M){var X=this[M];this[M]=function(){pD.push(M);try{X==null||X.apply(this,arguments)}finally{pD.pop()}}}}_.dS._addPropertyEffect.apply(this,[p,
J,S])};
UD.prototype._setPendingProperty=function(p,J,S){if(pD.length){var H=pD[pD.length-1],M;(M=tfW[this.is])!=null&&M.has(H)||(hbX(this.is,H),_.YQ("polymerPropertyChangedInObserver",{componentName:this.is,observerName:H}))}return _.dS._setPendingProperty.apply(this,[p,J,S])};
_.V([M_i()],UD);var Dos=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Nii,zI={};_.z("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=zI);var eh=function(){return _.f3.apply(this,arguments)||this};
_.Q(eh,_.f3);eh.prototype._setUnmanagedPropertyToNode=function(p,J,S){p.loggingStatus&&(p.loggingStatus.isDeclarativeExternal=!0);if(S!==p[J]||typeof S==="object")p[J]=S;p.is&&p.polymerController&&p.polymerController!==p&&$3(p.is,J,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");p.loggingStatus&&(p.loggingStatus.isDeclarativeExternal=!1)};
_.V([_.OD()],eh);kLv()&&(JS.prototype._setUnmanagedPropertyToNode=(new eh)._setUnmanagedPropertyToNode);_.cAt={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(p){},set polymerController(p){}}]};var B6=function(){var p=OL.apply(this,arguments)||this;p.json=function(){};
return p};
_.Q(B6,OL);B6.prototype.equals=function(p,J){return p===J};
B6.prototype.isEmpty=function(p){var J;(J=!p)||(J=_.qW(p)&&p.length===0);return J};
_.V([M_i()],B6);var o6p=function(p){p=MY4(p);MI.call(this,p)};
_.Q(o6p,MI);o6p.prototype.addProvider=function(p){p=p.key?p:MY4([p])[0];var J=this.keyIdToIndex.get(p.key.id);if(J){if(Vf9(p,this.providers[J]))throw Error("lg`"+p.key.displayName);}else MI.prototype.addProvider.call(this,p)};
var e58=new o6p([]);var WF8=!1;var j3k={};WF8||(rAW(),WF8=!0);
j3k.InjectBehavior={initializeInjection:function(){var p=this.provide;try{if((p=p!=null?p:[])&&p.length>0)for(var J=MY4(p),S=_.K(J),H=S.next();!H.done;H=S.next())e58.addProvider(H.value);var M=new Set;qos(this.behaviors||[],M);J={};for(var X=_.K(M),Z=X.next();!Z.done;Z=X.next()){var n=Z.value;n.inject&&Object.assign(J,n.inject)}this.inject&&Object.assign(J,this.inject);for(var b=_.K(Object.keys(J)),F=b.next();!F.done;F=b.next()){var f=F.value,O=J[f];try{this[f]=e58.resolve(O)}catch(A){throw A;}}}catch(A){throw Error(A.message);
}}};var xoi;var ISs=/\bclass\b/.test(function(){}.toString()),Jvg=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var QoM=function(p){this.wasDefined=!0;Array.isArray(p)||p instanceof Array?(this.JSC$13662_getImpl=p[0],this.JSC$13662_setImpl=p[1]):this.JSC$13662_getImpl=p};
_.R=QoM.prototype;_.R.getWithPath=function(p){return MwX(this.JSC$13662_getImpl(),p)};
_.R.setWithPath=function(p,J){var S=this;if(p.length)throw Error("mg");if(!this.JSC$13662_setImpl)throw Error("ng");UG(function(){S.JSC$13662_setImpl(J)})};
_.R.notifyPath=function(){throw Error("og");};
_.R.notifySplices=function(){throw Error("pg");};
_.R.getChangeRecordSignal=function(p,J){var S=this;if(p.length)throw Error("qg");return function(){var H=S.getWithPath(p);return{path:J!=null?J:"",base:H,value:H}}};
_.R.getSplicesSignal=function(){throw Error("rg");};
_.R.getPathMutationSignal=function(){throw Error("sg");};
_.R.pop=function(){throw Error("tg");};
_.R.push=function(){throw Error("ug");};
_.R.splice=function(){throw Error("vg");};
_.R.unshift=function(){throw Error("wg");};var JL=function(p){var J=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(p)||p instanceof Array?(this.JSC$13667_getImpl=p[0],this.JSC$13667_setImpl=p[1]):this.JSC$13667_getImpl=p;this.wasDefined=!1;_.$T(function(){J.wasDefined=J.JSC$13667_getImpl()!==void 0})};
JL.prototype.getWithPath=function(p){return MwX(this.JSC$13667_getImpl(),p)};
JL.prototype.setWithPath=function(p,J){var S=this;if(p[p.length-1]!=="*"&&p[p.length-1]!=="splices"){var H=_.$T(function(){return S.getWithPath([])});
if(p.length===0){if(!this.JSC$13667_setImpl)throw Error("xg");if(H===J)return;this.wasDefined||(this.wasDefined=J!==void 0);UG(function(){S.JSC$13667_setImpl(J)})}else{for(var M=0;M<p.length-1;M++){if(!H)return;
H=H[p[M]]}M=p[p.length-1];H&&(H[M]=J);this.wasDefined||(this.wasDefined=p.length>1||J!==void 0)}Cs8(this,p,{pathComponents:p,value:J})}};
JL.prototype.notifyPath=function(p,J){p.length===0?J&&this.setWithPath(p,J.value):Cs8(this,p,{pathComponents:p,value:J==null?void 0:J.value,fallbackWhenUndefined:J==null?void 0:J.value})};
var Cs8=function(p,J,S,H){if(p.setMutationSignal){var M=++p.mutationIndex,X=[p.observedPath],Z=p.observedPath,n;J.length===0&&(n=Z);for(var b=0;b<J.length;b++){var F=Z.subPaths[J[b]];if(!F)break;X.push(F);Z=F;b===J.length-1&&(n=F)}for(J=!1;X.length;)Z=X.shift(),Z.data={index:M,mutation:S,spliceMutationIndex:H},J||(J=Z===n),J&&X.push.apply(X,_.dW(Object.values(Z.subPaths)));UG(function(){p.setMutationSignal(M)})}};
JL.prototype.notifySplices=function(p,J){var S=this,H=_.$T(function(){return S.getWithPath(p)}),M=[].concat(_.dW(p),["splices"]);
Cs8(this,M,{pathComponents:M,value:{indexSplices:J}});if(H==null?0:H.length)J=this.mutationIndex,M=[].concat(_.dW(p),["length"]),Cs8(this,M,{pathComponents:M,value:H.length},J)};
var yxn=function(p,J,S,H,M,X){p.notifySplices(S,[{index:H,addedCount:M,removed:X,object:J,type:"splice"}])},B38=function(p,J){p=p.observedPath;
for(var S=0;S<J.length;S++){var H=J[S],M=p.subPaths[H];M||(M={pathComponents:J.slice(0,S+1),subPaths:{}},p.subPaths[H]=M);p=M}},soo=function(p,J,S){B38(p,J);
if(!p.getMutationSignal){var H=_.K(_.eQ(p.mutationIndex,void 0,"sNBMCd"));p.getMutationSignal=H.next().value;p.setMutationSignal=H.next().value}var M=p.getMutationSignal;return _.BW(function(){M();return S(UO8(p,J))},void 0,"zvsXEd")};
JL.prototype.getChangeRecordSignal=function(p,J){var S=this,H=this.mutationIndex,M;return soo(this,p,function(X){if(X&&X.index>H){var Z=X.mutation;H=X.index;M=void 0}X=_.$T(function(){return S.getWithPath(p)});
if(Z){var n=Z.pathComponents[Z.pathComponents.length-1],b=[].concat(_.dW(Z.pathComponents));if(n==="splices"||n==="length")return{base:X,path:(J?[J].concat(_.dW(b)):b).join("."),value:Z.value};var F=p.length>b.length?p:b,f;return{base:X!=null?X:Z.fallbackWhenUndefined,path:(J?[J].concat(_.dW(F)):F).join("."),value:(f=_.$T(function(){return S.getWithPath(F)}))!=null?f:Z.fallbackWhenUndefined}}M||(M={base:X,
path:(J?[J].concat(_.dW(p)):p).join("."),value:X});return M})};
JL.prototype.getSplicesSignal=function(p){var J=this.mutationIndex,S;return soo(this,p,function(H){if(H&&H.index>J&&H.spliceMutationIndex!==J){var M=H.mutation;J=H.index;S=void 0}return M&&M.pathComponents[M.pathComponents.length-1]==="splices"?S=H=M.value:S})};
JL.prototype.getPathMutationSignal=function(p){var J=this;B38(this,p);if(!this.getMutationSignal){var S=_.K(_.eQ(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=S.next().value;this.setMutationSignal=S.next().value}var H=this.getMutationSignal,M=this.mutationIndex,X;return _.BW(function(){H();var Z=UO8(J,p);if(Z&&Z.index>M&&Z.mutation&&XDW(Z.mutation.pathComponents,p)){var n=Z.mutation;M=Z.index}if(!X||M!==X.index){var b,F;Z=(F=_.$T(function(){return J.getWithPath(p)}))!=null?F:(b=n)==null?
void 0:b.fallbackWhenUndefined;
X={index:M,value:Z}}return X},void 0,"RXYC9b")};
var UO8=function(p,J){p=p.observedPath;J=_.K(J);for(var S=J.next();!S.done;S=J.next())p=p.subPaths[S.value];return p.data};
JL.prototype.pop=function(p){var J=this,S=_.$T(function(){return J.getWithPath(p)});
if(!(S instanceof Array))throw Error("yg");var H=S.length>0,M=S.pop();H&&yxn(this,S,p,S.length,0,[M]);return M};
JL.prototype.push=function(p){var J=_.Yp.apply(1,arguments),S=this,H=_.$T(function(){return S.getWithPath(p)});
if(!(H instanceof Array))throw Error("zg");var M=H.length,X=H.push.apply(H,_.dW(J));J.length&&yxn(this,H,p,M,J.length,[]);return X};
JL.prototype.splice=function(p,J,S){var H=_.Yp.apply(3,arguments),M=this,X=_.$T(function(){return M.getWithPath(p)});
if(!(X instanceof Array))throw Error("Ag");J<0?J=X.length-Math.floor(-J):J&&(J=Math.floor(J));var Z=X.splice.apply(X,[J,S].concat(_.dW(H)));(H.length||Z.length)&&yxn(this,X,p,J,H.length,Z);return Z};
JL.prototype.unshift=function(p){var J=_.Yp.apply(1,arguments),S=this,H=_.$T(function(){return S.getWithPath(p)});
if(!(H instanceof Array))throw Error("Bg");var M=H.unshift.apply(H,_.dW(J));J.length&&yxn(this,H,p,0,J.length,[]);return M};var Sp=function(p,J,S){this.model=p;this.unknownSignalResolver=J;this.options=S;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];J=_.K(Fvw());p=J.next().value;J=J.next().value;this.owner=p;this.disposeImpl=J};
Sp.prototype.dispose=function(){if(!this.isDisposed){for(var p=_.K(this.childSignalProxies),J=p.next();!J.done;J=p.next())J.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var g6L=function(p,J){p=_.R2(p.owner);try{J()}finally{_.R2(p)}};
Sp.prototype.effect=function(p){g6L(this,function(){_.uf(p,"h")})};
var tRo=function(p,J){p.options!=null||(p.options={});var S;(S=p.options).immutableProps!=null||(S.immutableProps=new Set);p.options.immutableProps.add(J)},urX=function(p,J){J=""+J;
h5v(p,J);var S,H;if((S=p.options)==null?0:(H=S.immutableProps)==null?0:H.has(J))return!0;var M;if((M=p.model.__signalCache)==null?0:M.has(J))S=p.model.__signalCache.get(J),Array.isArray(S)&&tRo(p,J);var X,Z,n;return(n=(X=p.options)==null?void 0:(Z=X.immutableProps)==null?void 0:Z.has(J))!=null?n:!1},DO4=function(p,J){var S;
p.unknownSignalResolver&&(S=p.unknownSignalResolver(J));var H,M;((H=p.options)==null?0:(M=H.immutableProps)==null?0:M.has(J))?S!=null||(S=new QoM(_.eQ(p.model[J],void 0,"By5iP"))):S!=null||(S=new JL(_.eQ(p.model[J],void 0,"CXghNc")));var X=p.model.hostElement;Object.defineProperty(p.model,J,{get:function(){doW(X,J);return S.getWithPath([])},
set:function(Z){of(X,J);p.setWithPath([J],Z)},
configurable:!0});return S},h5v=function(p,J){var S,H,M;
((S=p.model.__signalCache)==null||!S.has(J))&&((H=p.options)==null?0:(M=H.externalSignalProps)==null?0:M.has(J))&&p.model[J]},DV=function(p,J){J=""+J;
var S=p.signalCache[J];if(S!==void 0)return S;S=!1;h5v(p,J);var H;if((H=p.model.__signalCache)==null?0:H.has(J))if(S=p.model.__signalCache.get(J),Array.isArray(S))S=!0,tRo(p,J);else return p.signalCache[J]=p.model.__signalCache.get(J).signal,p.signalCache[J];var M,X;H=(X=(M=p.options)==null?void 0:M.reactivityMode)!=null?X:0;var Z,n;if(!((Z=p.options)==null?0:(n=Z.reactiveProps)==null?0:n.has(J))&&!S&&H===1)throw Error("Cg`"+J);M=S?k98(p,J):DO4(p,J);return p.signalCache[J]=M},k98=function(p,J){var S=
Object.getOwnPropertyDescriptor(p.model.constructor.prototype,J),H=function(){return p.model[J]};
return new QoM(S&&S.get&&!S.set?H:[H,function(M){p.model[J]=M}])};
Sp.prototype.getWithPath=function(p){var J=_.K(p);p=J.next().value;J=HW(J);doW(this.model.hostElement,""+p);return DV(this,p).getWithPath(J)};
Sp.prototype.setWithPath=function(p,J){if(p.length){of(this.model.hostElement,p.join("."));var S=_.K(p);p=S.next().value;S=HW(S);DV(this,p).setWithPath(S,J)}};
Sp.prototype.getPathMutationSignal=function(p){var J=_.K(p);p=J.next().value;J=HW(J);return DV(this,p).getPathMutationSignal(J)};
Sp.prototype.notifyPath=function(p,J){var S=_.K(p);p=S.next().value;S=HW(S);DV(this,p).notifyPath(S,J)};
var N38=function(p,J){if(J.type==="literal")return function(){return{rootWasDefined:!0,value:J.value}};
var S=tn(J.path),H=_.K(S),M=H.next().value;H=HW(H);var X,Z;if(J.type==="path"&&(S.length===1||((X=p.options)==null?0:(Z=X.immutableProps)==null?0:Z.has(M))))return function(){var O=p.getWithPath(S.slice(0,1));O=MwX(O,S.slice(1));return{rootWasDefined:DV(p,S[0]).wasDefined,value:O}};
var n=DV(p,M);if(J.type==="path"){var b=n.getPathMutationSignal(H);return function(){var O,A=(O=b())==null?void 0:O.value;return{rootWasDefined:n.wasDefined,value:A}}}if(J.type==="splices"){var F=n.getSplicesSignal(H);
return function(){var O=F();return{rootWasDefined:n.wasDefined,value:O}}}var f=n.getChangeRecordSignal(H,""+M);
return function(){var O=f();return{rootWasDefined:n.wasDefined,value:O}}},GtW=function(p,J,S){var H=S.map(function(n){return N38(p,n)}),M=S.length===0,X=[],Z=S.length!==1||S[0].type!=="path"?!1:!0;
p.effect(function(){for(var n=H.length,b=[],F=!!X.length,f=0;f<n;f++){var O=H[f](),A=O.rootWasDefined;O=O.value;M||(M=A);b[f]=O;Z&&(b[f+n]=F?X[f]:b[f],X[f]=O)}M&&EG(p.owner,function(){return void J.apply(null,_.dW(b))})})},i0W=function(p,J,S,H,M){var X=DV(p,J);
M!==void 0&&X.setWithPath([],M);GtW(p,function(){var Z=_.Yp.apply(0,arguments);of(p.model.hostElement,J,!0);X.setWithPath([],S.apply(null,_.dW(Z)))},H)};
Sp.prototype.arrayPush=function(p){var J=_.Yp.apply(1,arguments),S=_.K(p),H=S.next().value;S=HW(S);H=DV(this,H);return H.push.apply(H,[S].concat(_.dW(J)))};
Sp.prototype.arraySplice=function(p,J,S){var H=_.Yp.apply(3,arguments),M=_.K(p),X=M.next().value;M=HW(M);X=DV(this,X);return X.splice.apply(X,[M,J,S].concat(_.dW(H)))};
Sp.prototype.arrayUnshift=function(p){var J=_.Yp.apply(1,arguments),S=_.K(p),H=S.next().value;S=HW(S);H=DV(this,H);return H.unshift.apply(H,[S].concat(_.dW(J)))};
Sp.prototype.notifySplices=function(p,J){var S=_.K(p);p=S.next().value;S=HW(S);DV(this,p).notifySplices(S,J)};var T3n=!0,dOv=!1,l1s=!1,ukn=!1,lGp=0;ukn=!1;lGp=0;T3n=!0;dOv=l1s=!1;var zqi=/([^\s]+?)\(([\s\S]*)\)/,O09=/\.([^.]+)$/,oSX=/\\,/g,vSL=/&comma;/g,fKW=/\\(.)/g,$C9=[],AvX={"*":"wildcard",splices:"splices"};var tw4=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"),BHX=/[A-Z]/,VRv=["class","hidden","id","on-dom-change"],DCX=new Set([].concat(_.dW(VRv),
["if","notify-dom-change","restamp"])),ktt=new Set([].concat(_.dW(VRv),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),NHv=new Set(["restamp"]);var DpW=new Set(["className","id"]);var Vw4=Symbol(),wDW=window;var HSv=window;var nPt=0,iS9=0,k3=[],ZSW=0,XIg=!1,K1t=document.createTextNode("");(new window.MutationObserver(RQt)).observe(K1t,{characterData:!0});var TI=new Map,NQ=0,qU8=function(p){this.mappedHandleId=p},bSi=function(p,J,S,H){this.mappedHandleId=p;
var M=this;this.mappedHandleId=p;this.callback=J;this.waitTime=S;this.schedulerPriority=H;this.handleId=_.wg.addJob(function(){M.callback();TI.delete(M.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.Q(bSi,qU8);bSi.prototype.cancel=function(){_.wg.cancelJob(this.handleId);TI.delete(this.mappedHandleId)};
var mb4=function(p,J){this.mappedHandleId=p;var S=this;this.mappedHandleId=p;this.callback=J;this.handleId=GML(function(){S.callback();TI.delete(S.mappedHandleId)})};
_.Q(mb4,qU8);mb4.prototype.cancel=function(){var p=this.handleId-iS9;p<0||k3.length<=p||(k3[p]=null);TI.delete(this.mappedHandleId)};var OSi=function(){};
OSi.prototype.cancel=function(){this.jobHandle!==void 0&&(F1i(this.jobHandle),this.jobHandle=void 0)};
OSi.prototype.run=function(p,J,S){var H=this;this.cancel();this.callback=p;this.jobHandle=_.dw(function(){p();H.callback=void 0},J,S)};
OSi.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var vPX=new WeakMap;var aGq=ZR(function(p){for(var J=p,S=0;S<3;S++)J=Object.getPrototypeOf(J);delete J.prototype.connectedCallback;var H=function(){return p.apply(this,arguments)||this};
_.Q(H,p);H.prototype._attachDom=function(M){if(!M)return null;var X=(0,_.Rf)(this.hostElement);X.attachShadow({mode:"open",shadyUpgradeFragment:M});X.shadowRoot.appendChild(M);return X.shadowRoot};
H.prototype._takeAttributes=function(){for(var M=this.hostElement.attributes,X=0;X<M.length;X++){var Z=M[X],n=void 0,b=void 0;(b=(n=this).__attributeReaction)==null||b.call(n,Z.name,null,Z.value)}};
H.prototype._readyClients=function(){p.prototype._readyClients.call(this);this.root=this};
H.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);p.prototype.connectedCallback.call(this)};
_.vh.Object.defineProperties(H,{template:{configurable:!0,enumerable:!0,get:function(){return H.prototype._template}}});
return H}),E68=ZR(function(p){var J=function(){return p.apply(this,arguments)||this};
_.Q(J,p);J.prototype.created=function(){if(this.__notifyEffects)for(var S=_.K(Object.values(this.__notifyEffects)),H=S.next();!H.done;H=S.next()){H=_.K(H.value);for(var M=H.next();!M.done;M=H.next())M.value.fn=$bg}if(this.__reflectEffects)for(S=_.K(Object.values(this.__reflectEffects)),H=S.next();!H.done;H=S.next())for(H=_.K(H.value),M=H.next();!M.done;M=H.next())M.value.fn=oPX};
J.prototype._addEventListenerToNode=function(S,H,M){S=lO(S);j5(S,H,M)||p.prototype._addEventListenerToNode.call(this,S,H,M)};
J.prototype._removeEventListenerFromNode=function(S,H,M){S=lO(S);wd(S,H,M)||p.prototype._removeEventListenerFromNode.call(this,S,H,M)};
J.prototype._propertiesChanged=function(S,H,M){if(this.__dataToNotify&&this.__notifyEffects)for(var X=_.K(Object.keys(this.__dataToNotify)),Z=X.next();!Z.done;Z=X.next()){Z=Z.value;var n=zQi(Z);this.__notifyEffects[n]||delete this.__dataToNotify[Z]}else this.__dataToNotify=null;p.prototype._propertiesChanged.call(this,S,H,M)};
J.prototype.fire=function(S,H,M){H=H===void 0?{}:H;var X;return _.cf(lO((X=M==null?void 0:M.node)!=null?X:this),S,H,M)};
J.prototype._ensureAttribute=function(S,H){var M=lO(this);M.hasAttribute(S)||hn(M,H,S)};
J.prototype.isLightDescendant=function(S){var H=lO(this);return lO(H)!==S&&_.Jn(H).contains(S)&&_.Jn(H).getRootNode()===_.Jn(S).getRootNode()};
return J});
_.la.ready=function(){var p;((p=this.hostElement)!=null?p:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var J;((J=this.hostElement)!=null?J:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.wL._subscribeIronResize=function(p){var J;((J=p.hostElement)!=null?J:p).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.wL._unsubscribeIronResize=function(p){var J;((J=p.hostElement)!=null?J:p).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Qaw=[Array,Boolean,Date,Number,Object,String],qQ=function(p,J,S,H){this.polySiInfo=p;this.polySiParams=J;this.polySiContext=S;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;H||this instanceof HTMLElement&&(H=this);if(!H)throw Error("Jg");this.allowedProps=J.allowedProps;this.hostElement=H;this.is=p.is;this.upgradeDisabled=!!J.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");p=new Set(J.reactiveSchemas.filter(function(M){return M.type!==
"observe"}).map(function(M){return M.propertyKey}));
this.signalProxy=new Sp(this,void 0,{reactiveProps:p,reactivityMode:J.reactivityMode});this.__dataHasAccessor={};J=_.K(J.reactiveSchemas);for(p=J.next();!p.done;p=J.next())p=p.value,p.type==="signal"&&(this.__dataHasAccessor[p.propertyKey]=!0);this.upgradeDisabled||YUv(this)};
qQ.prototype.getExtraMethodsToForward=function(){return[]};
var YUv=function(p){p.polySiContext.didRegister||(p.registered(),p.polySiContext.didRegister=!0);p.polySiContext.finalizedTemplate||(p.polySiContext.finalizedTemplate={},p.polySiParams.templateGetter&&(p.polySiContext.finalizedTemplate.processedTemplate=Mcv(p.polySiParams.templateGetter,p.polySiParams.is)));rxU(p);var J=p.hostElement;J.loggingStatus!=null||(J.loggingStatus={});J.loggingStatus.isInitializing=!0;_.$T(function(){return void p.created()});
J.loggingStatus.isInitializing=!1;p.isPolySiElementConnected&&jo8(p)},jo8=function(p){p.didCallReady||(_.$T(function(){return void p.ready()}),p.didCallReady=!0);
p.isAttached=!0;p.attached()};
_.R=qQ.prototype;_.R.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||jo8(this)};
_.R.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.R.attributeChangedCallback=function(p,J,S){if(this.upgradeDisabled)p==="disable-upgrade"&&S===null&&(this.upgradeDisabled=!1,YUv(this));else if(J!==S){var H=_.Zx(p),M=this.polySiContext.typesForSignals[H];if(M&&(!this.reflecting||_.z("polysi_attribute_changed_serializing_killswitch"))){switch(M){case Object:try{var X=JSON.parse(S)}catch(n){X=S}break;case Array:try{X=JSON.parse(S)}catch(n){X=null}break;case Date:X=isNaN(S)?String(S):Number(S);X=new Date(X);break;case Boolean:X=S!==null;break;case Number:X=
Number(S);break;default:X=S}this[H]=X}H=_.K(this.polySiParams.behaviors);for(M=H.next();!M.done;M=H.next())X=void 0,(X=M.value.attributeChanged)==null||X.call(this,p,J,S);var Z;(Z=this.attributeChanged)==null||Z.call(this,p,J,S)}};
_.R.attributeChangedCallbackWrapper=function(p,J,S){this.attributeChangedCallback(p,J,S)};
_.R.setPropertiesFromInitialAttributeValues=function(){for(var p=0;p<this.hostElement.attributes.length;p++){var J=this.hostElement.attributes[p];(J.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(J.name))&&this.attributeChangedCallback(J.name,null,J.value)}};
_.R.created=function(){this.provide=this.polySiParams.provide;var p;(p=this.initializeInjection)==null||p.call(this);p=_.K(this.polySiParams.reactiveSchemas);for(var J=p.next();!J.done;J=p.next())J=J.value,J.type==="signal"&&(this.mutablePropNames.add(J.propertyKey),DV(this.signalProxy,J.propertyKey));W19(this,this.polySiInfo,this.polySiParams.behaviors);p=_.K(this.polySiParams.reactiveSchemas);for(J=p.next();!J.done;J=p.next())J=J.value,J.type==="signal"&&J.value!==void 0&&(this.signalProxy.model[J.propertyKey]=
typeof J.value==="function"?J.value.call(this):J.value);if(this.polySiParams.signalProperties)for(p=_.K(this.polySiParams.signalProperties),J=p.next();!J.done;J=p.next()){J=J.value;var S=void 0;((S=this.__signalCache)==null?0:S.has(J))||(this.signalProxy.model[J]=void 0)}ukn||wKv(this);eQX(this);p=_.K(this.polySiParams.behaviors);for(J=p.next();!J.done;J=p.next())S=void 0,(S=J.value.created)==null||S.call(this);var H;(H=this.polySiInfo.created)==null||H.call(this)};
_.R.registered=function(){var p=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var J=Object.getPrototypeOf(this);J.addReactiveSchema=function(n){p.polySiParams.reactiveSchemas.push(n)};
for(var S=_.K(this.polySiParams.behaviors),H=S.next();!H.done;H=S.next()){var M=void 0;(M=H.value.beforeRegister)==null||M.call(J)}var X;(X=this.polySiInfo.beforeRegister)==null||X.call(J);J.addReactiveSchema=y2W;S=_.K(this.polySiParams.behaviors);for(H=S.next();!H.done;H=S.next())M=void 0,(M=H.value.registered)==null||M.call(J);var Z;(Z=this.polySiInfo.registered)==null||Z.call(J)};
_.R.ready=function(){var p;(p=this.beforeReady)==null||p.call(this);ukn&&wKv(this);var J;if(p=(J=this.polySiContext.finalizedTemplate)==null?void 0:J.processedTemplate){p=SP4(p.template,p.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:p.hasInsertionPoint,thisCtx:this});J=p.nodesById;p=p.root;var S=this.hostElement;var H=H===void 0?!1:H;S=(0,_.Rf)(S);if(!S.attachShadow)throw Error("Hd");if(!S.shadowRoot||H)S.attachShadow({mode:"open",shadyUpgradeFragment:p}),S.shadowRoot.appendChild(p);
this.root=S.shadowRoot;this.$=J}xO8(this);H=_.K(this.polySiParams.behaviors);for(J=H.next();!J.done;J=H.next())p=void 0,(p=J.value.ready)==null||p.call(this);var M;(M=this.polySiInfo.ready)==null||M.call(this)};
_.R.attached=function(){for(var p=_.K(this.polySiParams.behaviors),J=p.next();!J.done;J=p.next()){var S=void 0;(S=J.value.attached)==null||S.call(this)}var H;(H=this.polySiInfo.attached)==null||H.call(this)};
_.R.detached=function(){for(var p=_.K(this.polySiParams.behaviors),J=p.next();!J.done;J=p.next()){var S=void 0;(S=J.value.detached)==null||S.call(this)}var H;(H=this.polySiInfo.detached)==null||H.call(this)};
var rxU=function(p){for(var J=_.K(p.polySiParams.behaviors),S=J.next();!S.done;S=J.next())if(S=S.value,S.listeners)for(var H in S.listeners)J2i(p,p.hostElement,H,S.listeners[H]);if(p.polySiInfo.listeners)for(var M in p.polySiInfo.listeners)J2i(p,p.hostElement,M,p.polySiInfo.listeners[M])},J2i=function(p,J,S,H,M){p=H09(p,H,M);
j5(J,S,p)||J.addEventListener(S,p);return p},wKv=function(p){for(var J=_.K(p.polySiParams.reactiveSchemas),S=J.next();!S.done;S=J.next())S=S.value,S.type==="compute"||S.type==="computeWithMethod"?Rqs(p.signalProxy,S,p):S.type==="redux"?nSk(p.signalProxy,S,p.store):S.type==="signal"&&S.readOnly&&Z0i(p.signalProxy,S)},xO8=function(p){for(var J=_.K(p.polySiParams.reactiveSchemas),S=J.next(),H={};!S.done;H={schema$jscomp$12:void 0},S=J.next())H.schema$jscomp$12=S.value,H.schema$jscomp$12.type==="notify"?
b0w(p.signalProxy,H.schema$jscomp$12,p.hostElement):H.schema$jscomp$12.type==="observe"?mCW(p.signalProxy,H.schema$jscomp$12,p):H.schema$jscomp$12.type==="reflect"&&p.signalProxy.effect(function(X){return function(){var Z=p.signalProxy.getWithPath([X.schema$jscomp$12.propertyKey]);
p.reflecting=!0;Wvk(p.hostElement,X.schema$jscomp$12.propertyKey,Z,!0);p.reflecting=!1}}(H));
if(p.reflectedAttributes)for(J=_.K(Object.entries(p.reflectedAttributes)),H=J.next(),S={};!H.done;S={key$jscomp$938:void 0,value$jscomp$10216:void 0},H=J.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;S.key$jscomp$938=H;S.value$jscomp$10216=M;p.signalProxy.effect(function(X){return function(){p.reflecting=!0;Wvk(p.hostElement,X.key$jscomp$938,(0,X.value$jscomp$10216)(),!0);p.reflecting=!1}}(S))}};
_.R=qQ.prototype;_.R._setPendingProperty=function(p,J){this.set(p,J);return!1};
_.R._enableProperties=function(){};
_.R._setPendingPropertyOrPath=function(p,J){this.notifyPath(p,J);return!1};
_.R._addPropertyEffect=function(){};
_.R._stampTemplate=function(){throw Error("Kg");};
_.R.fire=function(p,J,S){J=J===void 0?{}:J;S=S===void 0?{}:S;var H,M,X={bubbles:(H=S.bubbles)!=null?H:!0,cancelable:!!S.cancelable,composed:(M=S.composed)!=null?M:!0},Z;return _.cf(B6X((Z=S.node)!=null?Z:this.hostElement),p,J,X)};
_.R.get=function(p,J){var S=tn(p);return J?MwX(J,S):p==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(S)};
_.R.linkPaths=function(){};
_.R.listen=function(p,J,S){p=B6X(p);this.boundListeners!=null||(this.boundListeners=new WeakMap);var H=this.boundListeners.get(p);H||(H={},this.boundListeners.set(p,H));var M=J+S;H[M]||(H[M]=J2i(this,p,J,S))};
_.R.notifyPath=function(p,J){this.signalProxy.notifyPath(tn(p),arguments.length===2?{value:J}:void 0)};
_.R.canNotifyPath=function(p){return this.mutablePropNames.has(p)&&!urX(this.signalProxy,p)};
_.R.notifySplices=function(p,J){this.signalProxy.notifySplices(tn(p),J)};
_.R.pop=function(p){var J=this.signalProxy;p=tn(p);var S=_.K(p);p=S.next().value;S=HW(S);return DV(J,p).pop(S)};
_.R.push=function(p){var J=_.Yp.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[tn(p)].concat(_.dW(J)))};
_.R.set=function(p,J,S){if(S)throw Error("Lg");p==="hidden"?this.hostElement.hidden=!!J:this.signalProxy.setWithPath(tn(p),J)};
_.R.setProperties=function(p){p=_.K(Object.entries(p));for(var J=p.next();!J.done;J=p.next()){var S=_.K(J.value);J=S.next().value;S=S.next().value;this[J]=S}};
_.R.splice=function(p,J,S){var H=_.Yp.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[tn(p),J,S].concat(_.dW(H)))};
_.R.unlinkPaths=function(){};
_.R.unlisten=function(p,J,S){p=B6X(p);if(this.boundListeners){var H=this.boundListeners.get(p);if(H){S=J+S;var M=H[S];M&&(wd(p,J,M)||p.removeEventListener(J,M),delete H[S])}}};
_.R.unshift=function(p){var J=_.Yp.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[tn(p)].concat(_.dW(J)))};
_.vh.Object.defineProperties(qQ.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 uT9=[Array,Boolean,Date,Number,Object,String];var qPW=!1;var H3=function(){var p=HTMLElement.apply(this,arguments)||this;p.restamp=!1;p.notifyDomChange=!1;p.JSC$13775_didCallConnected=!1;p.JSC$13775_renderDebouncer=null;p.disableTemplateUpdateSignalImpl=af()?void 0:_.eQ(!1,void 0,"Ofhkwb");var J;p.getDisableTemplateUpdate=(J=p.disableTemplateUpdateSignalImpl)==null?void 0:J[0];var S;p.setDisableTemplateUpdate=(S=p.disableTemplateUpdateSignalImpl)==null?void 0:S[1];return p};
_.Q(H3,HTMLElement);var cxM=function(p){p.conditionSignalImpl!=null||(p.conditionSignalImpl=new JL(_.eQ(!1,void 0,"gE52Fb")));return p.conditionSignalImpl};
_.R=H3.prototype;_.R.showHideChildren=function(p){IGp(this,p,this.if)};
_.R.attributeChangedCallback=function(p,J,S){if(this.JSC$13775_didCallConnected)throw Error("Pg`"+p);p==="notify-dom-change"?this.notifyDomChange=S!==null:p==="restamp"&&(this.restamp=S!==null)};
_.R.debounceRender=function(){this.JSC$13775_renderDebouncer=_.zm(this.JSC$13775_renderDebouncer,cJ,this.JSC$13775_renderImpl.bind(this));_.$e(this.JSC$13775_renderDebouncer)};
_.R.disconnectedCallback=function(){var p=(0,_.Rf)(this).parentNode;(!p||p.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in p&&!p.host)&&LF4(this)};
_.R.connectedCallback=function(){var p=this;this.JSC$13775_didCallConnected=!0;T3n?a1t():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.z("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){cxM(p).getWithPath([]);p.debounceRender()})};
_.R.render=function(){_.Qw()};
_.R.JSC$13775_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var p=this.if,J=!1;if(p){this.hasInstance()||(pQv(this),J=!0);a:{var S=(0,_.Rf)(this).parentNode;if(this.hasInstance()){var H=this.instance.children;if((H==null?0:H.length)&&(0,_.Rf)(this).previousSibling!==H[H.length-1])for(var M=0;M<H.length;M++)(0,_.Rf)(S).insertBefore(H[M],this)}else{if(!S){S=!1;break a}JpL(this,S)}S=!0}if(!S)return}else this.restamp&&LF4(this);IGp(this,!1,p);p&&!J&&pQv(this);dOv&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.R.hasInstance=function(){return!!this.instance};
var JpL=function(p,J){var S=p.parentSignalProxy;if(af()){var H=_.K(_.eQ(!0,void 0,"dkzufd"));var M=H.next().value;H=H.next().value;S=p.parentSignalProxy}else{var X;var Z=new Sp((X=SFq(p))!=null?X:{},function(b){var F=DV(p.parentSignalProxy,b).getChangeRecordSignal([]);b=_.eQ(void 0,void 0,"iG8Uwe");var f=new JL(b);Z.effect(function(){if(p.getDisableTemplateUpdate&&!p.getDisableTemplateUpdate()){var O=F();f.notifyPath(tn(O.path),{value:O.value})}});
return f});
p.parentSignalProxy.childSignalProxies.push(Z);var n=S=Z}S=SP4(p.templateInfo,p.templateInfo.nodeInfoList,S,{eventListenerHost:p.eventListenerHost,hasInsertionPoint:p.templateInfo.hasInsertionPoint,thisCtx:p.eventListenerHost,enabledSignal:af()?M:void 0,getModel:function(){return SFq(p)}}).root;
p.instance={root:S,children:[],hidden:!1,signalProxy:n,getTemplateUpdatesEnabled:M,setTemplateUpdatesEnabled:H};n=_.K(S.childNodes);for(M=n.next();!M.done;M=n.next())p.instance.children.push(M.value);(0,_.Rf)(J).insertBefore(p.instance.root,p)},SFq=function(p){if((p=p.parentSignalProxy.model)&&!p.hostElement){var J={},S;
for(S in p)p.hasOwnProperty(S)&&(J[S]=p[S]);return J}},LF4=function(p){if(p.instance){var J=p.instance.children;
if(J.length){var S=(0,_.Rf)(J[0]).parentNode;if(S){S=(0,_.Rf)(S);for(var H=0;H<J.length;H++)S.removeChild(J[H])}}af()?p.instance.setTemplateUpdatesEnabled(!1):p.instance.signalProxy.dispose();p.instance=void 0}},IGp=function(p,J,S){J=J||!S;
p.instance&&p.instance.hidden!==J&&(p.instance.hidden=J,Vc3(J,p.instance.children))},pQv=function(p){if(af()){var J=p.instance;
J&&EG(p.parentSignalProxy.owner,function(){return!J.getTemplateUpdatesEnabled()})&&J.setTemplateUpdatesEnabled(!0)}else p.setDisableTemplateUpdate(!1)};
_.vh.Object.defineProperties(H3.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var p=this;return EG(this.parentSignalProxy.owner,function(){return cxM(p).getWithPath([])})},
set:function(p){p||(af()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));cxM(this).setWithPath([],!!p)}}});
_.vh.Object.defineProperties(H3,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",H3);var Hcd=[],Ma=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$13782_renderDebouncer=null;p.instances=[];p.chunkingId=null;p.chunkCount=null;p.shouldMeasureChunk=!1;p.shouldContinueChunking=!1;p.renderStartTime=null;p.JSC$13782_didCallConnected=!1;return p};
_.Q(Ma,HTMLElement);var MeL=function(p){p.itemSignalImpl!=null||(p.itemSignalImpl=new JL(_.eQ(Hcd,void 0,"YBrqgf")));return p.itemSignalImpl},XQ8=function(p,J){Array.isArray(J)||(J=Hcd);
MeL(p).setWithPath([],J)};
_.R=Ma.prototype;_.R.showHideChildren=function(p){for(var J=_.K(this.instances),S=J.next();!S.done;S=J.next())Vc3(p,S.value.children)};
_.R.notifyPath=function(p,J){p=tn(p);p[0]==="items"&&(p.length===1?XQ8(this,J):MeL(this).setWithPath(p.slice(1),J))};
_.R.canNotifyPath=function(p){return p==="items"};
_.R.attributeChangedCallback=function(p,J,S){if(this.JSC$13782_didCallConnected)throw Error("Qg`"+p);p==="as"?this.as=S:p==="index-as"?this.indexAs=S:p==="items-index-as"?this.itemsIndexAs=S:p==="initial-count"?this.initialCount=Number(S):p==="notify-dom-change"?this.notifyDomChange=S!==null:p==="target-framerate"&&(this.targetFramerate=Number(S))};
_.R.disconnectedCallback=function(){this.isDetached=!0;for(var p=0;p<this.instances.length;p++)icm(this,p);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.R.connectedCallback=function(){var p=this,J=MeL(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var M=J(),X=tn(M.path);if(X[0]===void 0||X[0]==="splices"||X[0]==="length")p.debounceRender();else{var Z=X[0];if(Z=p.instances[typeof Z==="string"?Math.floor(Number(Z)):Z])X=[p.as].concat(_.dW(X.slice(1))),Z.signalProxy.notifyPath(X,M)}});
this.JSC$13782_didCallConnected=!0;T3n?a1t():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var S=(0,_.Rf)((0,_.Rf)(this).parentNode),H=0;H<this.instances.length;H++)S.insertBefore(this.instances[H].root,this);this.chunkingId&&this.render()}};
_.R.debounceRender=function(){this.JSC$13782_renderDebouncer=_.zm(this.JSC$13782_renderDebouncer,cJ,this.JSC$13782_renderImpl.bind(this));_.$e(this.JSC$13782_renderDebouncer)};
_.R.render=function(){this.debounceRender();_.Qw()};
_.R.JSC$13782_renderImpl=function(){var p=this;if(!this.parentSignalProxy.isDisposed){var J=this.items,S=Rxv(this,J.length);Kwp(this,J,S);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){p.chunkingId=null;if(p.shouldMeasureChunk){var H=performance.now()-p.renderStartTime;p.chunkCount=Math.round(Math.ceil(1E3/p.targetFramerate)/H*p.chunkCount)||1}p.shouldContinueChunking&&p.debounceRender()}));
dOv&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var Rxv=function(p,J){var S=J,H=p.instances.length;if(p.initialCount){if(p.chunkCount){var M=Math.min(Math.max(J-H,0),p.chunkCount);S=Math.min(H+M,J)}else S=Math.min(J,p.initialCount),M=Math.max(S-H,0),p.chunkCount=M||1;p.shouldMeasureChunk=M===p.chunkCount;p.shouldContinueChunking=S<J;p.renderStartTime=performance.now()}return S},Kwp=function(p,J,S){for(var H=0;H<S;H++){var M=p.instances[H],X=J[H];
M?(M.signalProxy.setWithPath([p.as],X),M.signalProxy.setWithPath([p.indexAs],H)):Zcm(p,X,H)}for(J=p.instances.length-1;J>=H;J--)S=p,M=J,icm(S,M),_.K(S.instances.splice(M,1)).next().value.signalProxy.dispose()},icm=function(p,J){p=p.instances[J];
J=(0,_.Rf)(p.root);for(var S=0;S<p.children.length;S++)J.appendChild(p.children[S])},Zcm=function(p,J,S){var H={};
J=Object.assign({},ngn(p),(H[p.as]=J,H[p.indexAs]=S,H[p.itemsIndexAs]=S,H));var M=new Sp(J,function(Z){if(Z!==p.as&&Z!==p.indexAs){if(Z===p.itemsIndexAs)return DV(M,p.indexAs);var n=DV(p.parentSignalProxy,Z).getChangeRecordSignal([]);Z=_.eQ(void 0,void 0,"T21Pqc");var b=new JL(Z);M.effect(function(){var F=n();b.notifyPath(tn(F.path),{value:F.value})});
return b}});
p.parentSignalProxy.childSignalProxies.push(M);H=SP4(p.templateInfo,p.templateInfo.nodeInfoList,M,{eventListenerHost:p.eventListenerHost,getModel:function(){var Z={};return Object.assign({},ngn(p),(Z[p.as]=M.model[p.as],Z[p.indexAs]=M.model[p.indexAs],Z[p.itemsIndexAs]=M.model[p.indexAs],Z))},
hasInsertionPoint:p.templateInfo.hasInsertionPoint,thisCtx:p.eventListenerHost,methodInvocationRequirement:lGp,enabledSignal:p.stampingEnabled}).root;J={root:H,children:[],signalProxy:M};H=_.K(H.childNodes);for(var X=H.next();!X.done;X=H.next())J.children.push(X.value);H=(H=p.instances[S+1])?H.children[0]:p;(0,_.Rf)((0,_.Rf)(p).parentNode).insertBefore(J.root,H);p.instances[S]=J},ngn=function(p){if((p=p.parentSignalProxy.model)&&!p.hostElement){var J={},S;
for(S in p)p.hasOwnProperty(S)&&(J[S]=p[S]);return J}};
Ma.prototype.itemForElement=function(p){var J=this,S=this.instances.find(function(H){return H.children.includes(p)});
if(S)return EG(this.parentSignalProxy.owner,function(){return S.signalProxy.getWithPath([J.as])})};
Ma.prototype.indexForElement=function(p){var J=this.instances.findIndex(function(S){return S.children.includes(p)});
return J>=0?J:void 0};
_.vh.Object.defineProperties(Ma.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var p=this;return EG(this.parentSignalProxy.owner,function(){return MeL(p).getWithPath([])})},
set:function(p){XQ8(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}}});
_.vh.Object.defineProperties(Ma,{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",Ma);var GBo,bc8;_.XN=new _.ni("STATE_STORE_TOKEN");GBo=new _.ni("SELECT_TOKEN");bc8=new _.ni("DISPATCH_TOKEN");var xbX={getSelectFn:function(){var p;return(p=_.vO().resolve(_.F9(GBo)))!=null?p:EPv},
getDispatchFn:function(){var p;return(p=_.vO().resolve(_.F9(bc8)))!=null?p:_.ED().dispatch.bind(_.ED())},
getAppStore:function(){return _.vO().resolve(_.XN)}},YP4,wI3=!1;var HWL=function(){};var p8i=void 0;var mu8=function(){};
mu8.prototype.hasAttribute=function(p){if(p==="dir")return!1;if(p==="disable-upgrade"){var J,S;return(S=(J=this.hostElement)==null?void 0:J.hasAttribute("disable-upgrade"))!=null?S:!1}throw Error("Rg`"+p);};
mu8.prototype.attributeChangedCallbackWrapper=function(p,J,S){if(p==="disable-upgrade"&&this.__isUpgradeDisabled&&S===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var H;((H=this.hostElement)!=null?H:this).isConnected&&this.connectedCallback()}else J===S||this.__isReflecting||this.attributeChangedCallback(p,J,S)};
mu8.prototype.getExtraMethodsToForward=function(){for(var p=this,J=[],S=_.K(FwL),H=S.next(),M={};!H.done;M={tagName$jscomp$67:void 0,name$jscomp$630:void 0},H=S.next())M.name$jscomp$630=H.value,H=void 0,M.name$jscomp$630==="_setPendingProperty"?(M.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),H=function(X){return function(Z,n,b){$3(X.tagName$jscomp$67,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return p._setPendingProperty(Z,n,b)}}(M)):H=function(X){return function(){return p[X.name$jscomp$630].apply(p,
_.dW(_.Yp.apply(0,arguments)))}}(M),J.push([M.name$jscomp$630,
H]);return J};
for(var iWi=E68(aGq((0,_.Tm)(mu8))),nht=["disabled","disable-upgrade"],vgp=(0,_.Tm)(function(){}),fMq=new Set(Object.getOwnPropertyNames(vgp.prototype)),vhW=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.dW(fMq))),bWg=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),FwL=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),Oco=new Set([].concat(_.dW(bWg),_.dW(FwL),_.dW(fMq))),Apv=_.K(Oco),Px8=Apv.next();!Px8.done;Px8=Apv.next())Dos.add(Px8.value);var Flw={created:function(){eQX(this);this.initializeInjection()}};var WlL=!1,If=window.ShadyDOM,tys=["appendChild","insertBefore","removeChild","replaceChild"],ghg=[Node];If&&ghg.push(If.Wrapper);var u1k,l8L,a8s={};var L3,w8v=new WeakMap,YYk=new Set;var pKk=new Set("context didCallReady is info params signalProxy".split(" ")),SUv="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),HRk="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var zx8=hS({entities:c_g}),$un=new YZ(zx8);var ogU=function(){return _.f3.apply(this,arguments)||this};
_.Q(ogU,_.f3);_.vh.Object.defineProperties(ogU.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return $un}}});
_.V([_.OD()],ogU);_.i1=[Lq.prototype,ogU.prototype];_.RO={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var p=this,J={};setTimeout(function(){var S;return _.cf((S=p.hostElement)!=null?S:p,"yt-live-chat-add-tooltip-target",J)},0);
this.handler_=J.handler},
detached:function(){if(this.handler_){var p;this.handler_.removeElementFromSupportingTooltips((p=this.hostElement)!=null?p:this)}this.handler_=null}}};_.iC=new _.ni("ICON_MANAGER_TOKEN");var ex8=[48,20,18,16,15,13,12],e5v=new Map,Ps4=new Set,fGi=new Set,Axt=new Set,v6i=new Set,ORt=new Set,$Og=new Promise(function(p){var J=!1,S=!1,H=!1,M=[],X=function(Z){if("detail"in Z)if(Z=Z.detail,Z.name==="yt-icons")z5s(Z),J=!0;else if(Z.name==="yt-sys-icons")z5s(Z),S=!0;else{var n;((n=Z.name)==null?0:n.includes("yt-sys-icons"))&&Z.size!==24&&(z5s(Z,!0),M.push(Z.size),M.length===ex8.length&&(H=!0))}J&&S&&H&&(window.removeEventListener("iron-iconset-added",X),p())};
window.addEventListener("iron-iconset-added",X)}),Wwq=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"]]);_.KD={};_.KD.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.E4,computeHref_:function(p,J){J=J===void 0?!1:J;if(!p||p.commandExecutorCommand)return null;var S=bGv(p,J);return J||S!==null?S?_.z("enable_polymer_resin")?_.Vd(S).toString():S:null:(_.xQ(new _.TG("computeHref was null",this.is,p)),null)},
computeOptionalHref_:function(p){return this.computeHref_(p,!0)},
computeNofollow_:function(p){return p?HGL(p)?"nofollow":null:null},
computeIcon_:function(p){return p&&p.iconType?_.Xj(p.iconType):""},
resolveCommand:function(p,J,S){J=J===void 0?{}:J;return _.KI(p,this.hostElement,J,S===void 0?!1:S)}};var CxM,Z0;_.QUE={};CxM=null;
Z0={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_=nAw(this.viewroot));_.dw(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var p=this;this.unobserve_();if(_.z("kevlar_vimio_use_shared_monitor"))B3w(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 J=[];this.visibilityOptionVisible_&&J.push(this.visibilityObserver.observe(this.hostElement,function(){return p.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&J.push(this.visibilityObserver.observe(this.hostElement,function(){return p.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&J.push(this.visibilityObserver.observe(this.hostElement,function(){return p.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=J}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){WFi(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=_.ar(this.parentNode,function(S){var H,M=(H=S.polymerController)!=null?H:S;return!!M.getVisibilityObserverForChild&&M.getVisibilityObserverForChild()},!0);
if(p){var J;this.localVisibilityObserver_=((J=p.polymerController)!=null?J:p).getVisibilityObserverForChild()}else CxM||(CxM=nAw()),this.localVisibilityObserver_=CxM;return this.localVisibilityObserver_},visibilityCallback:function(p){p?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.z("kevlar_use_vimio_behavior")||(Z0={});Z0&&!_.z("kevlar_use_vimio_behavior")&&(delete Z0.attached,delete Z0.detached);_.QUE.YtVisibilityObserverBehavior=[Z0];var ypo={};ypo.YtVisualElementBehavior=[_.QUE.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.z("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.z("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var p=this.getScreenLayer&&this.getScreenLayer(),J=this.getVisibilityLogger();J&&J.reportShown(this,void 0,p)}},
onHidden:function(){if(_.z("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.z("kevlar_vimio_use_shared_monitor")){var p=this.getScreenLayer&&this.getScreenLayer(),J=this.getVisibilityLogger();J&&J.reportHidden(this,void 0,p)}},
getVisibilityLogger:function(){return _.z("kevlar_use_vimio_behavior")?_.nI():null},
shouldSkipLogging:function(){if(_.jn("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var p=this.getParentRenderer&&this.getParentRenderer();if(!p)return!1;var J,S=(J=p.polymerController)!=null?J:p;if(!S.data)return!1;p=this.data.trackingParams;p=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:p;var H;J=(H=S.data)==null?void 0:H.trackingParams;var M,X;J=((M=S.data)==null?0:M.loggingDirectives)?(X=S.data)==null?void 0:X.loggingDirectives.trackingParams:J;return p&&J&&p===
J}}];var g6t=new Map,Pi;var Y$v=function(p){this.layer=p},GJ=function(p){return p.layer!==void 0?p.layer:p.parent?GJ(p.parent):p.layer=0};var T3X;_.x={};T3X=0;_.x.YtRendererBehavior=[_.KD.YtComponentBehavior,ypo.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_:_.z("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var p,J;(J=(p=this.monitorScrollElement)!=null?p:this.hostElement)==null||J.removeEventListener("scroll",_.n3(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();UO9(this.hostElement);V5(_.aQ(),this.hostElement);a5.delete(this.hostElement)},
registerRenderer:function(p){var J;((J=p.polymerController)!=null?J: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,J=this.getParentRenderer();if(J){var S,H,M;(H=(S=(M=J.polymerController)!=null?M:J).registerRenderer)==null||H.call(S,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var X,Z;(Z=(X=this.monitorScrollElement)!=null?X:this.hostElement)==null||Z.addEventListener("scroll",_.n3(this,this.onScroll))}_.wg.addJob(function(){tRW(p.hostElement)},8);
S=new Y$v(this.screenLayer||void 0);(J=a5.get(J))&&J.layerNode&&(S.parent=J.layerNode);J={};A_k(this.hostElement,(J.isRenderer=!0,J.layerNode=S,J[rR9]=this.data,J))},
getParentRenderer:function(){for(var p=this.hostElement.parentNode,J,S;p&&((J=a5.get(p))==null||!J.isRenderer)&&!((S=p.polymerController)!=null?S:p).isRenderer_;)p=p.parentNode||p.host;return p},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.z("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.wY("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.z("debug_web_ve_data")&&this.data.trackingParams){var p="";try{p=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(S){_.jD(S)}if(p){var J=gOv(p,1);J!==void 0&&(this.hostElement.dataset.veIndex=String(J));p=gOv(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,_.z("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Az(this.data.loggingDirectives.trackingParams)),this.visualElement=_.G$(_.bC(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var p=this.data.targetId;_.qZ(_.aQ(),p,this.hostElement)}else V5(_.aQ(),this.hostElement)},
onScroll:function(){var p=Date.now();p-this.lastHandledScroll_<50||(this.lastHandledScroll_=p,this.markDirty())},
markDirty:function(){_.z("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():dOX(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var p=this.getParentRenderer();if(p&&(p=a5.get(p))&&p.layerNode)return GJ(p.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.dW(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 J,S;(p==null?0:(J=p.commandMetadata)==null?0:(S=J.webCommandMetadata)==null?0:S.sendPost)?_.pl(this.hostElement,[p,{impression:!0}]):_.JP(this.hostElement,[p],this.hostElement)},
logExplicitClick:function(p){var J=_.C1(this.getScreenLayer());if(J){var S,H=(S=p.polymerController)!=null?S:p;p=H.visualElement;H=H.trackingParams||H.clickTrackingParams;!p&&H&&(p=_.Az(H));p&&_.l7(J,p)}}}];var BJd={},nD=function(){return _.f3.apply(this,arguments)||this};
_.Q(nD,_.f3);nD.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
nD.prototype.onPdgItemBehaviorClick=nD.prototype.onPdgItemBehaviorClick;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],nD.prototype,"data",void 0);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],nD.prototype,"onPdgItemBehaviorClick",null);_.V([_.OD()],nD);BJd.YtPdgLiveChatItemBehavior=[nD.prototype,_.x.YtRendererBehavior];var Uun;var sU8;_.G_={};_.G_.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var b1=function(){var p=OL.apply(this,arguments)||this;p.switchTemplateAtRegistration=!1;return p};
_.Q(b1,OL);b1.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||qUw(this),_.A2k(this,"doRender"),this.doRender())};
b1.prototype.debounceRender=function(){this.templatingFn&&_.uO(this,"doRender",this.doRender)};
b1.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.jD(Error("ah"))};
b1.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.V([M_i()],b1);var ggq=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,mU={},rxs=(mU[1]={filterString:null,isUnwrappable:null,unwrap:null},mU[2]={filterString:function(p,J,S){return iT(S)},
isUnwrappable:function(p){return p instanceof wy},
unwrap:function(p){return cG(p)}},mU[3]={filterString:function(p,J,S){return ggq.test(S)?S:lv.toString()},
isUnwrappable:function(p){return NG(p)},
unwrap:function(p){return _.Tu(p)}},mU[4]={filterString:function(){return lv.toString()},
isUnwrappable:function(p){return p instanceof Uq},
unwrap:function(p){return _.gy(p).toString()}},mU[5]={filterString:function(p,J,S){return S},
isUnwrappable:function(p){return typeof p==="string"},
unwrap:function(p){return p.toString()}},mU[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(p){return p instanceof _.HZ},
unwrap:function(p){return Xl(p)}},mU[8]={filterString:function(p,J,S){S=String(S).toLowerCase();
return gXt(p,J,S)?S:"zClosurez"},
isUnwrappable:null,unwrap:null},mU[10]={filterString:null,isUnwrappable:null,unwrap:null},mU);vJ[I2["default"]]=wKX;var xO9=[];(function(){var p=nV;nV=function(J){p==null||p(J);er(function(){for(var S=0;S<J.length;S++)cx4(J[S])})}})();var teE=function(){var p=_.f3.apply(this,arguments)||this;p.hasUnmounted=!1;return p};
_.Q(teE,_.f3);_.R=teE.prototype;_.R.beforeRegister=function(){var p=this.doIdomRender;this.templatingFn?_.jD(Error("$g")):(this.templatingFn=p,this.switchTemplateAtRegistration=!0,YUX(this))};
_.R.attached=function(){};
_.R.detached=function(){cx4(this.hostElement)};
_.R.renderIdom=function(){throw Error("ch");};
_.R.doIdomRender=function(){var p=this;QAt(this.hostElement,function(){p.renderIdom()})};
_.V([_.OD()],teE);var hxp=[b1.prototype,teE.prototype];var Dun,kBn=function(){return Dun!==void 0?Dun:Dun=document.createElement("template")};
document.head.appendChild(kBn().content);var NJ8;var TJo,du8=function(){return TJo!==void 0?TJo:TJo=document.createElement("template")};
document.head.appendChild(du8().content);var uoE;var lML=document.head,Vep=lML.appendChild,qF4;if(uoE===void 0){var aML=document.createElement("template");_.C(aML,"\x3c!--css-build:shady--\x3e");aML.content.insertBefore(du8().content.cloneNode(!0),aML.content.firstChild);uoE=aML}qF4=uoE;Vep.call(lML,qF4.content);var Ego,YFL=function(){return Ego!==void 0?Ego:Ego=document.createElement("template")};
document.head.appendChild(YFL().content);var rpd;var jUL=document.head,wQm=jUL.appendChild,xu4;if(rpd===void 0){var cpd=document.createElement("template");_.C(cpd,"\x3c!--css-build:shady--\x3e");cpd.content.insertBefore(YFL().content.cloneNode(!0),cpd.content.firstChild);rpd=cpd}xu4=rpd;wQm.call(jUL,xu4.content);var IMU=document.head,LwE=IMU.appendChild,pUv;if(NJ8===void 0){var JKv=document.createElement("template");_.C(JKv,"\x3c!--css-build:shady--\x3e");JKv.content.insertBefore(kBn().content.cloneNode(!0),JKv.content.firstChild);NJ8=JKv}pUv=NJ8;LwE.call(IMU,pUv.content);var Sfv,H98=function(){return Sfv!==void 0?Sfv:Sfv=document.createElement("template")};
document.head.appendChild(H98().content);var MWp;_.uC=new _.ni("DARK_THEME_TOKEN");var uog=new _.Zz("accessibilityProperties");var duw=new _.Zz("layoutProperties");var lMt=new _.Zz("imageType");var XU8={};if("ytAttributedStringLinkHoverColor"in XU8)throw Error("fh`ytAttributedStringLinkHoverColor");(function(p,J){XU8[p]="value"in J&&"unit"in J?HcL(p,J):function(S){try{return J(S)}catch(H){throw Error("dh`"+p+"`"+H.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var i98=function(p){var J=this;this.holdTime=p===void 0?500:p;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(S){var H=new CustomEvent("LONG_PRESS"),M;(M=S.changedTouches[0].target)==null||M.dispatchEvent(H)};
this.ontouchstart=function(S){J.longPressTimeout=_.bb(_.wg,function(){J.onlongpress(S);J.longPressOccurred=!0},J.holdTime)};
this.ontouchmove=function(){_.wg.cancelJob(J.longPressTimeout);J.longPressTimeout=NaN;J.longPressOccurred=!1;J.moveOccurred=!0};
this.ontouchend=function(S){if(J.longPressTimeout&&!J.longPressOccurred&&!J.moveOccurred){var H;(H=S.changedTouches[0].target)==null||H.dispatchEvent(new Event("click"))}_.wg.cancelJob(J.longPressTimeout);J.longPressTimeout=NaN;J.longPressOccurred=!1;J.moveOccurred=!1}};var $uX=function(p,J){i98.call(this,J);var S=this;this.callback=p;this.onlongpress=function(H){var M;(M=S.callback)==null||M.call(S,H)}};
_.Q($uX,i98);var ogs=function(p,J){var S=Object.assign({},J);p=_.K(new Map([["ontouchstart",p.ontouchstart],["ontouchend",p.ontouchend],["ontouchmove",p.ontouchmove]]));for(var H=p.next(),M={};!H.done;M={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},H=p.next()){var X=_.K(H.value);H=X.next().value;X=X.next().value;M.eventName$jscomp$103=H;M.eventHandler$jscomp$2=X;J[M.eventName$jscomp$103]=function(Z){return function(n){var b;(b=S[Z.eventName$jscomp$103])==null||b.call(S,n);(0,Z.eventHandler$jscomp$2)(n)}}(M)}};_.Ov=new _.ni("COMMAND_HANDLER_TOKEN");var XQw=new _.Zz("parallelCommand");var Kwi=new _.Zz("performOnceCommand");var RxX=new _.Zz("serialCommand");var Zck=void 0;var Ry8=function(){this.data=[];this.consumer=null};
Ry8.prototype.push=function(p){this.consumer?this.consumer(p):this.data.push(p)};var aA={};_.eQ(aA,void 0,"sgPmTd");_.eQ(null,void 0,"jypsq");_.eQ(null,void 0,"mWiOof");var TNv=new Ry8;var OcW=[xGv,csm,I48,pZp,L78,wGq,Ju8,SK8];var NJ9=new _.Zz("bracketTextDecorator");var T$=new _.Zz("highlightTextDecorator");_.VM=new _.ni("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var gg3=function(){},KLE;
(KLE=window.requestIdleCallback)==null||KLE.bind(window);var hxi={calledOnce:!1,state:"visible"},teg={calledOnce:!1,state:"hidden"};var Z98=new _.ni("ICON_WIZ_COMPONENT_TOKEN");_.bn=_.d(function(p){var J=p.icon;var S=p.active;var H=p.className;var M=p.style;var X=p.dataSelected;var Z=p.dataDisabled;var n=p.role;var b=p.animateIcon;var F=p.themeOverride;var f=p.ariaHidden;var O=p.ariaExpanded;var A=p.ariaLabel;var P=p.tabindex;var W=p.id;var y=p.size;var t=p.iconFilter;var D=p.gradientColor;var k=p.onKeydown;var E=p.title;return _.m(_.v,{cond:J,then:function(){var a=_.vO().resolve(Z98);return _.m(a,{icon:J,dataSelected:X,dataDisabled:Z,animateIcon:b,themeOverride:F,ariaExpanded:O,
tabindex:P,id:W,active:S,size:y,role:n,className:H,ariaHidden:f,ariaLabel:A,style:function(){return M!=null&&M()||y==null||!y()?M==null?void 0:M():"width: "+(y==null?void 0:y())+"px;height: "+((y==null?void 0:y())+"px;")},
title:E,iconFilter:t,gradientColor:D,onKeydown:k})}})},"l");
_.bn.idomCompat={callbacks:{onKeydown:!0}};var H9v=new _.Zz("borderImageProcessor");var i9w=window.devicePixelRatio||1;var n$4=new Map([["yt_outline_bag_black_24","bag"]]);var FN=function(p){var J=this;this.margin=.1;this.whenInViewportWithMargin=p;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){J.requestScan()});
window.addEventListener("touchend",function(){J.requestScan()});
window.addEventListener("updateui",function(){J.requestScan()});
var S=new _.nb((0,_.tT)(this.requestScan,this),100);window.addEventListener("scroll",function(){S.fire()},!0);
window.addEventListener("resize",(0,_.tT)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){J.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.tT)(this.requestScan,this))};
FN.prototype.observe=function(p){this.observationTargets.includes(p)||this.observationTargets.push(p)};
FN.prototype.unobserve=function(p){this.observationTargets=this.observationTargets.filter(function(J){return J!==p})};
FN.prototype.requestScan=function(){var p=this;this.scanRequested||(er(function(){n$M(p)}),this.scanRequested=!0)};
var n$M=function(p){var J=(1+p.margin)*(document.documentElement.clientHeight||window.innerHeight);p.observationTargets=p.observationTargets.filter(function(S){var H=S.getBoundingClientRect();(H=J>H.top&&!!H.height)&&p.whenInViewportWithMargin(S);return!H&&S.parentNode});
p.scanRequested=!1};
FN.prototype.disconnect=function(){this.observationTargets=[]};var Gzn,miq;Gzn=_.K(_.eQ(v$X(),void 0,"O3X2wd"));_.b9U=Gzn.next().value;miq=Gzn.next().value;window.addEventListener("resize",function(){miq(v$X())});var FLL={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},v$n=void 0,fsp=window.innerWidth,O9v=window.innerHeight;window.addEventListener("resize",function(){v$n=void 0});var AKm;if("IntersectionObserver"in window)AKm=AKk();else{if(v$n===void 0){var PU8;PU8="matchMedia"in window?window.matchMedia(FLL.landscape+","+FLL.portrait).matches:void 0;v$n=PU8!==void 0?PU8:fsp>=930&&O9v>=550||fsp>=550&&O9v>=930}AKm=v$n?{observe:function(p){er(function(){var J;(J=p.onViewportEntered)==null||J.call(p)})},
unobserve:function(){}}:new FN(function(p){er(function(){var J;
(J=p.onViewportEntered)==null||J.call(p)})})}var fsi=AKm;var zyq=_.d(function(p){var J=!1,S=_.nE("img",function(H){_.VY(function(){J=!0;H.onload=null})});
_.lf(function(){var H,M=(H=p.data)==null?void 0:H.call(p),X,Z=(X=p.getSrc)==null?void 0:X.call(p).cb,n;H=(n=p.config)==null?void 0:n.call(p);if(n=S.value)if(X=function(F,f){if(!J)return Z?Z(F,f):F},$iw(n,H),_.z("web_image_dont_reload_same_src")&&zy3(n,M,X))_.z("web_image_dont_reload_same_src_simulate_load")&&n.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var b;PU9(n,M||null,X,H,(b=p.lazy)==null?void 0:b.call(p))}},"zS0jKb");
return _.m("img",{el:S})},"n");
zyq.idomCompat=!0;_.a4=_.d(function(p){var J=function(){var S,H=p.data(),M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w,I,Z3,vg,yX,Pg,ov,NW,TW,Ys,Go;var $U={contentMode:(M=p.contentMode)==null?void 0:M.call(p),loadedClass:(X=p.loadedClass)==null?void 0:X.call(p),isPreloaded:(Z=p.isPreloaded)==null?void 0:Z.call(p),notifyOnLoaded:(n=p.notifyOnLoaded)==null?void 0:n.call(p),notifyOnUnloaded:(b=p.notifyOnUnloaded)==null?void 0:b.call(p),preferredThumbnail:(F=p.preferredThumbnail)==null?void 0:F.call(p),preserveHeight:(f=p.preserveHeight)==
null?void 0:f.call(p),preserveWidth:(O=p.preserveWidth)==null?void 0:O.call(p),objectPosition:(A=p.objectPosition)==null?void 0:A.call(p),targetWidth:(P=p.targetWidth)==null?void 0:P.call(p),targetHeight:(W=p.targetHeight)==null?void 0:W.call(p),shouldShowPlaceholder:(y=p.shouldShowPlaceholder)==null?void 0:y.call(p),useWidth:(t=p.useWidth)==null?void 0:t.call(p),isToggled:(D=p.isToggled)==null?void 0:D.call(p),alt:(k=p.alt)==null?void 0:k.call(p),className:(E=p.className)==null?void 0:E.call(p),
onerror:p.onerror,onload:p.onload,style$:((a=p.style$)==null?void 0:a.call(p))||((q=p.style)==null?void 0:q.call(p)),color:(w=p.color)==null?void 0:w.call(p),width:(I=p.width)==null?void 0:I.call(p),height:(Z3=p.height)==null?void 0:Z3.call(p),"aria-hidden$":(Ys=(vg=p["aria-hidden$"])==null?void 0:vg.call(p))!=null?Ys:(yX=p.ariaHidden)==null?void 0:yX.call(p),draggable:(Pg=p.draggable)==null?void 0:Pg.call(p),"data-disabled$":(Go=(ov=p["data-disabled$"])==null?void 0:ov.call(p))!=null?Go:(NW=p.dataDisabled)==
null?void 0:NW.call(p),size:(TW=p.size)==null?void 0:TW.call(p)};return WLk(H,$U,(S=p.hideOn404)==null?void 0:S.call(p))};
return _.m(_.ue,null,_.m(_.Nz,{when:function(){var S;return((S=J())==null?void 0:S.type)==="image"}},function(){return _.m(zyq,{data:function(){return J().image},
getSrc:{cb:function(S,H){var M=J().image.sources,X=J().config.isPreloaded,Z=J().config.useWidth,n=J().config.targetWidth,b=J().config.targetHeight,F=J().config.preferredThumbnail;return _.Ry9(H,M,X,Z,n,b,F)||""}},
config:function(){var S=J().config,H;for(H in S)S[H]===void 0&&delete S[H];return S},
lazy:p.renderLazy})}),_.m(_.Nz,{when:function(){var S;
return((S=J())==null?void 0:S.type)==="icon"}},function(){return _.m(_.bn,{icon:function(){return J().iconName},
role:function(){return J().config.role},
className:function(){return J().config.className},
style:function(){return J().config.style$+";width: "+(J().config.width+"px;height: ")+(J().config.height+"px;color: ")+(J().config.color+";")},
ariaLabel:function(){return J().config["aria-label$"]},
ariaHidden:function(){return J().config["aria-hidden$"]},
dataDisabled:function(){return J().config["data-disabled$"]},
active:function(){return J().config.isToggled},
size:function(){return J().config.size}})}))},"o");
_.a4.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var $i8=function(p){return function(J){return _.m(qlX,null,function(){var S=J.data(),H=_.a2(J.config);return _.m(PTw,null,function(){return void p(S,H)})})}}(sNg),Bjt=_.d(function(p){var J=function(M){var X,Z,n=_.Y2(function(P){X=M();
Z=qs(function(){for(var W=_.K(O()),y=W.next();!y.done;y=W.next()){y=g$i(y.value);y=typeof y==="string"?document.createTextNode(y):y;if(!(y instanceof Node)){W=new _.TG("Part is not a node",y,typeof y);_.jD(W);break}P.appendChild(y)}})}),b=_.rw(p.config),F=function(){var P;
return EgW(M(),(P=b())==null?void 0:P.ariaLabel)},f=CUs(b,{isEqual:hy9}),O=function(){var P=Vei(M(),f());
YFt(P,f());return M().content?IMs(M().content,P).parts:[]},A=!0;
_.lf(function(){M();f();if(A){A=!1;var P=yKv(M(),X);if(!_.z("web_attributed_string_race_fix")||P)return}var W=O();Promise.resolve().then(function(){var y=n.value;if(y){y.innerText="";var t;(t=Z)==null||t();Z=_.VS(y,function(){return _.m(tWi,{parts:W})},"r")}})},"hIYo9d");
return _.m("span",{el:n,class:function(){return M()&&ypW(M(),b())},
dir:function(){var P;return((P=b())==null?0:P.userInput)?"auto":void 0},
"aria-label":function(){var P;return F()?(P=b())==null?void 0:P.ariaLabel:void 0},
role:function(){return F()?"text":void 0}})},S=CUs(function(){var M,X=(M=p.text)==null?void 0:M.call(p);
if(X)return M=qFW(X),(M==null?0:M.content)?M:void 0},{isEqual:yKv}),H;
return((H=p.config)==null?0:H.contentAsserted)?J(S):_.m(_.v,{cond:S,then:J})},"t");
Bjt.idomCompat=!0;_.v3=_.d(function(p){var J=_.rw(p.text),S=Diw(p);p.contentAsserted!==void 0&&(S.contentAsserted=!0);return _.z("attr_string_reactive")?_.m(Bjt,{text:J,config:S}):_.m(_.v,{cond:function(){var H;return J()&&((H=qFW(J()))==null?void 0:H.content)},
then:function(){return _.m($i8,{data:p.text,config:S})},
debugInstance:"Apcuac"})},"u");
_.v3.idomCompat=!0;var kz9=function(p,J,S){J=J===void 0?"unknown":J;S=S===void 0?{}:S;_.TG.call(this,p+" ("+J+")",Object.assign({},{name:"YtWcwError",tagName:J},S));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(kz9,_.TG);_.x2=new WeakMap;_.we=!1;var lsL,VWw,uWk;_.fD=Symbol("hh");_.jr=Symbol("ih");lsL=Symbol("jh");VWw=new Set(Object.getOwnPropertyNames(Element.prototype));uWk=Symbol("kh");var o$L=_.d(function(p){return _.m("yt-attributed-string",{"aria-label":p.ariaLabel,hidden:p.hidden,id:p.id,class:p.className,"force-default-style":p.forceDefaultStyle},_.m(_.v3,{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,isHeadline:p.isHeadline}))},"v");
_.z("web_wiz_attributed_string")&&_.ci(o$L,"yt-attributed-string",{props:{ariaHidden:_.fD,ariaLabel:_.fD,className:_.fD,ellipsisTruncate:_.fD,isOverlay:_.fD,linkInheritColor:_.fD,noEndpoints:_.fD,noStyleRuns:_.fD,noLinkColor:_.fD,noPreWrap:_.fD,noWrap:_.fD,skipOnClick:_.fD,userInput:_.fD,headerRuns:_.fD,isHeadline:_.fD,id:_.fD,data:_.fD,hidden:_.fD,forceDefaultStyle:_.fD,text:_.jr,disableUpgrade:_.jr,disable:_.jr,slot:_.jr}});var OZ=function(){return _.T.apply(this,arguments)||this};
_.Q(OZ,_.T);OZ.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},sNg(this.data,this.config))};
_.V([_.B(hxp),_.Y("design:type",Object)],OZ.prototype,"ytIdomTemplatingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],OZ.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],OZ.prototype,"ariaLabel",void 0);_.V([_.N(),_.Y("design:type",Boolean)],OZ.prototype,"disable",void 0);_.V([_.N(),_.Y("design:type",Boolean)],OZ.prototype,"ellipsisTruncate",void 0);_.V([_.N(),_.Y("design:type",Boolean)],OZ.prototype,"isOverlay",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],OZ.prototype,"linkInheritColor",void 0);_.V([_.N(),_.Y("design:type",Boolean)],OZ.prototype,"noPreWrap",void 0);_.V([_.N(),_.Y("design:type",Boolean)],OZ.prototype,"noWrap",void 0);_.V([_.N(),_.Y("design:type",Boolean)],OZ.prototype,"userInput",void 0);_.V([_.N(),_.Y("design:type",Boolean)],OZ.prototype,"noEndpoints",void 0);_.V([_.N(),_.Y("design:type",Array)],OZ.prototype,"headerRuns",void 0);
_.V([_.sD({is:"yt-attributed-string",disableElementRegistration:!0})],OZ);
_.z("web_wiz_attributed_string")||_.l(OZ,"yt-attributed-string",function(){if(MWp===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
p.content.insertBefore(H98().content.cloneNode(!0),p.content.firstChild);MWp=p}p=MWp;return p},{mode:2});var eyv,WLm,wU4;eyv=function(){this.firstThumbnailLoaded=!1};
_.QN8=function(){WLm||(WLm=new eyv);return WLm};
wU4=function(p){var J=_.QN8();J.firstThumbnailLoaded||(J.firstThumbnailLoaded=!0,_.Qf("ftl",p))};
eyv.prototype.reset=function(){this.firstThumbnailLoaded=!1};var asg=0,jNX=new WeakMap,Yf9=0,pb=new Set;var CUU,yK8=function(){return CUU!==void 0?CUU:CUU=document.createElement("template")};
document.head.appendChild(yK8().content);var BjL;var LLs,JU4,AL;_.Hv=_.Hg.caches;AL=function(){};
AL.prototype.open=function(p){return _.Hv.open(Uip(p))};
AL.prototype.has=function(p){return _.Hv.has(Uip(p))};
AL.prototype.delete=function(p){return _.Hv.delete(Uip(p))};
AL.prototype.match=function(p,J){var S=this,H,M,X,Z,n,b;return _.G(function(F){switch(F.nextAddress){case 1:return F.yield(S.keys(),2);case 2:H=F.yieldResult,M=_.K(H),X=M.next();case 3:if(X.done){F.jumpTo(5);break}Z=X.value;return F.yield(S.open(Z),6);case 6:return n=F.yieldResult,F.yield(n.match(p,J),7);case 7:if(b=F.yieldResult)return F.return(b);X=M.next();F.jumpTo(3);break;case 5:return F.return()}})};
var SkL=function(){};
_.Q(SkL,AL);var Uip=function(p){if(p.includes(":"))throw Error("nh`"+p);return p+":"+_.ka("CacheStorage get")};
SkL.prototype.keys=function(){var p,J,S,H,M,X,Z,n,b;return _.G(function(F){if(F.nextAddress==1)return p=[],J=_.ka("CacheStorage keys"),F.yield(_.Hv.keys(),2);S=F.yieldResult;H=_.K(S);for(M=H.next();!M.done;M=H.next())X=M.value,Z=_.Isk(X),n=Z.originalName,b=Z.datasyncId,b===J&&p.push(n);return F.return(p)})};var P3=function(){var p=_.T.apply(this,arguments)||this;p.objectURL=null;p.loadTime=Infinity;return p};
_.Q(P3,_.T);_.R=P3.prototype;_.R.renderIdom=function(){cK4(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&o$t(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.R.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"}};
_.R.logThumbnailFailureVe=function(){var p=_.KG(197497);_.dC(_.bC(),p);var J=_.C1();J&&p&&J&&_.dI(J,[p])};
_.R.loadImageFromCacheIfExists=function(p){var J=this,S=p.target;(S==null?0:S.src)&&M8i(S.src).then(function(H){J.objectURL=_.qG(H).toString();J.setSrc(S,J.objectURL)}).catch(function(){})};
_.R.onError=function(p){var J=this;if(_.z("web_use_cache_for_image_fallback")){var S=p.target;S&&M8i(S.src).then(function(H){J.objectURL=_.qG(H).toString();J.setSrc(S,J.objectURL)}).catch(function(){_.z("kevlar_woffle_log_thumbnail_failure_ve")&&J.logThumbnailFailureVe();
_.z("kevlar_woffle_fallback_image")&&J.setSrc(S,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.R.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.R.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(J){p.loadImageFromCacheIfExists(J);p.revokeObjectURL();xi4(p.hostElement)},
onerror:function(J){p.onError(J)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.z("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.R.setSrc=function(p,J){J&&(p.src=J)};
_.V([_.B(hxp),_.Y("design:type",Object)],P3.prototype,"ytIdomTemplatingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],P3.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],P3.prototype,"alt",void 0);_.V([_.N(),_.Y("design:type",Boolean)],P3.prototype,"ftlEligible",void 0);_.V([_.N(),_.Y("design:type",Number)],P3.prototype,"height",void 0);_.V([_.N(),_.Y("design:type",Boolean)],P3.prototype,"notifyOnLoaded",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],P3.prototype,"notifyOnUnloaded",void 0);_.V([_.N(),_.Y("design:type",String)],P3.prototype,"objectFit",void 0);_.V([_.N(),_.Y("design:type",String)],P3.prototype,"objectPosition",void 0);_.V([_.N(),_.Y("design:type",String)],P3.prototype,"preferredThumbnail",void 0);_.V([_.N(),_.Y("design:type",Boolean)],P3.prototype,"preserveHeight",void 0);_.V([_.N(),_.Y("design:type",Boolean)],P3.prototype,"preserveWidth",void 0);
_.V([_.N({value:!0}),_.Y("design:type",Boolean)],P3.prototype,"useWidth",void 0);_.V([_.N({value:function(){return!_.wY("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.Y("design:type",Boolean)],P3.prototype,"shouldRenderLazy",void 0);_.V([_.N(),_.Y("design:type",Number)],P3.prototype,"width",void 0);_.V([_.sD({is:"yt-image",disableElementRegistration:!0})],P3);
_.l(P3,"yt-image",function(){if(BjL===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);p.content.insertBefore(yK8().content.cloneNode(!0),p.content.firstChild);
BjL=p}p=BjL;return p},{mode:2});var z_=function(){return _.T.apply(this,arguments)||this};
_.Q(z_,_.T);z_.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var p=_.sa(this.data.onVisibleCommand);p&&this.ytComponentBehavior.resolveCommand(p)}};
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],z_.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.G_.YtVisibilityBehavior),_.Y("design:type",Object)],z_.prototype,"ytVisibilityBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],z_.prototype,"data",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],z_);
_.l(z_,"yt-bumper-user-edu-content-view-model",function(){if(sU8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Uun===void 0&&(Uun=document.createElement("template"));var H=Uun;S.call(J,H.content.cloneNode(!0),p.content.firstChild);sU8=p}p=sU8;return p},{mode:0});var sNE;var g$8,tWp=function(){if(g$8!==void 0)return g$8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;sNE===void 0&&(sNE=document.createElement("template"));var H=sNE;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return g$8=p};var hy8;_.$N={};hy8=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"]);_.$N.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var p=this.getContext_();return p?p.getTaskManager():_.wg},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var p=_.cf(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 hy8.has(this.hostElement.localName)},
getNetworkManager:function(){var p=this.getContext_();if(p)return p.getNetworkManager()}};var nHw,Di8,Njd,kz8;_.oO=function(p){var J=Di8.get(p);if(J&&(J=J.pop()))return kz8++,J;Njd++;try{var S=document.createElement(p)}catch(H){throw new _.TG("ElementPool failed to create element",p,H.message);}return S};
nHw=function(p){var J=p.is;if(J){var S=Di8.get(J);S||(S=[],Di8.set(J,S));var H=_.jn("ELEMENT_POOL_CONFIG")||{};S.length>=(H[J]!==void 0?H[J]:_.jn("ELEMENT_POOL_DEFAULT_CAP",0))||S.push(p)}else _.xQ(new _.TG("Element pool should only handle custom elements:",p.nodeName))};
Di8=new Map;Njd=0;kz8=0;var Mr=new WeakMap,ZJW=new WeakMap;var diL;_.ep=function(p,J,S){S=S===void 0?_.Qb():S;this.JSC$14051_defaultPriority=p;this.signal=J;this.scheduler=S;this.nextJobDescriptor=0;this.JSC$14051_parkedJobs=[];this.scheduledJobs=new Map};
_.W3=function(p,J){if(J){var S=_.fq();p.signal&&!_.OT(S,p.signal)?(S.addListener(p.signal,function(){p.processSignal()}),p.JSC$14051_parkedJobs.push({job:J,
priority:void 0})):Tj8(p,J)}};
diL=function(p,J){if(J!==p.JSC$14051_defaultPriority){p.JSC$14051_defaultPriority=J;for(var S=_.K(p.scheduledJobs.values()),H=S.next();!H.done;H=S.next())H=H.value,p.scheduler.cancelJob(H.jobId),H.jobId=p.scheduler.addJob(H.jobWrapper,J)}};
_.ep.prototype.flushJobs=function(){diL(this,10);this.processSignal()};
_.ep.prototype.cancel=function(){for(var p=_.K(this.scheduledJobs),J=p.next();!J.done;J=p.next()){var S=_.K(J.value);J=S.next().value;S=S.next().value;this.scheduler.cancelJob(S.jobId);this.scheduledJobs.delete(J)}this.JSC$14051_parkedJobs=[]};
_.ep.prototype.processSignal=function(){for(var p=_.K(this.JSC$14051_parkedJobs),J=p.next();!J.done;J=p.next())J=J.value,Tj8(this,J.job,J.priority);this.JSC$14051_parkedJobs=[]};
var Tj8=function(p,J,S){S=S||p.JSC$14051_defaultPriority;if(S===10)Jm(J);else{var H=p.nextJobDescriptor++,M=function(){J();p.scheduledJobs.delete(H)},X=p.scheduler.addJob(M,S);
p.scheduledJobs.set(H,{jobWrapper:M,jobId:X,priority:S})}};var uWm;_.QD={};uWm={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.QD.YtRendererstamperBehavior=[_.$N.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 J=this.stampDom[p];J&&J.id&&this.addReactiveSchema({type:"observe",method:{methodName:iJv(J.id),args:[{type:"wildcard",path:p}]}})}else{(p=(this.constructor.generatedFrom||this).observers)||(p=[]);for(J in this.stampDom){var S=this.stampDom[J];S&&S.id&&p.push(iJv(S.id)+"("+J+".*)")}this.constructor.generatedFrom.observers=p}},
addStampDomObserverFns_:function(){for(var p in this.stampDom){var J=this.stampDom[p];J.id?(this[iJv(J.id)]=this.rendererStamperObserver_.bind(this,p,J.id),this.hasDataPath_[p]=!1):(J=new _.TG("Bad rendererstamper config",this.is+":"+p),_.jD(J))}},
rendererStamperObserver_:function(p,J,S){if(S.path==p){if(S.value===void 0&&!this.hasDataPath_[p])return;this.hasDataPath_[p]=S.value!==void 0}this.rendererStamperApplyChangeRecord_(p,J,S)},
rendererStamperApplyChangeRecord_:function(p,J,S){var H=this.renderJobsMap_[J],M=null;p==S.path?(S=S.value,_.qW(S)||(S=S===void 0||S===null?[]:[S]),p=this.stampDom[p],p.mapping&&(M=this.stampDomArray_.bind(this,S,J,p.mapping,p.reuseComponents,p.events,p.stamperStableList)),H&&H.cancel(),S=p.usePageScheduler?this.getTaskManager():void 0,H||p.initialRenderPriority==void 0)?p.renderPriority==void 0||H||(H=new _.ep(p.renderPriority,p.waitForSignal,S),this.renderJobsMap_[J]=H):(H=new _.ep(p.initialRenderPriority,
p.waitForSignal,S),this.renderJobsMap_[J]=H,M=function(X,Z){X();diL(Z,10)}.bind(this,M,H)):M=p+".splices"==S.path?this.stampDomArraySplices_.bind(this,p,J,S.value):this.forwardRendererStamperChanges_.bind(this,p,J,S);
H?_.W3(H,M):M()},
forwardRendererStamperChanges_:function(p,J,S){var H=S.path.slice(p.length+1),M=this.getStampContainer_(J),X=H.indexOf("."),Z=H.substring(0,X),n=!1,b=0,F=parseInt(Z,0);if(Z[0]=="#"){n=parseInt(Z.substring(1),0);F=this.get(p);var f=this.get([p,Z]);F[n]==f?b=n:b=F.indexOf(f);n=!0}else isNaN(F)||(b=F,n=!0);n&&(H=H.substring(Z.length+1),X=H.indexOf("."));Z=this.polymerDom(M).children[b];var O;if(M=(O=Z==null?void 0:Z.polymerController)!=null?O:Z)H="data"+H.slice(X),typeof M.notifyPath!=="function"?_.xQ(new _.TG("notifyPath missing",
this.is+": "+p+", "+J)):S.value?M.notifyPath(H,S.value):M.notifyPath(H)},
stampDomArraySplices_:function(p,J,S){if(S&&S.indexSplices){var H=this.getStampContainer_(J);if(H){for(var M=this.polymerDom(H),X=Kf4(this.stampDom[p].reuseComponents),Z=S.indexSplices.length,n=0;n<Z;n++){for(var b=S.indexSplices[n],F=M.children[b.index],f=b.removed.length;f>0;f--)F&&F.parentElement&&(this.polymerDom(F.parentElement).removeChild(F),X&&nHw(F),F=M.children[b.index]);f=this.stampDom[p].mapping;for(var O=b.index+b.addedCount,A=document.createDocumentFragment(),P=X,W=b.index;W<O;W++){var y=
b.object[W],t=XkW(f,y);if(t){var D=f[t];y=y[t];t=this.getComponentName_(D,y);var k=F?Mr.has(F):!1;P&&F&&F.is==t&&k?(t=F,this.telemetry_.reuse++,F=F.nextElementSibling):P&&F&&k?(t=this.createComponent_(D,y,X),k=this.polymerDom(F).nextElementSibling,M.insertBefore(t,k),bJX(this.is,M,F,X),F=k):(P=!1,t=this.createComponent_(D,y,X),A.appendChild(t));this.deferRenderStamperBinding_(t,D,y)}else D=new _.TG("Unimplemented type",p,J,H.tagName,Object.keys(y)[0]),_.jD(D)}M.insertBefore(A,F)}this.flushRenderStamperComponentBindings_();
this.stampDom[p].events&&_.cf(this.hostElement,"yt-rendererstamper-finished",{container:H})}else p=new _.TG("Container object not found",J,this.hostElement?this.hostElement.is:""),_.jD(p)}},
stampDomArray_:function(p,J,S,H,M,X){var Z=this.getStampContainer_(J);if(Z)if(J=this.polymerDom(Z),H=Kf4(H),p){var n=0,b=0,F;if(X=X===void 0?_.wY("STAMPER_STABLE_LIST",!1):X||!1)for(F=J.firstElementChild;F&&!Mr.has(F)&&p.length>b;){X=p[b];var f=XkW(S,X);if(f){if(this.getComponentName_(S[f],X[f])!=F.is){var O=this.createComponent_(S[f],X[f],H),A=this.polymerDom(F).nextElementSibling;A?J.insertBefore(O,A):J.appendChild(O);bJX(this.is,J,F,H);F=O}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(F,
S[f],X[f]);n++;b++;F=this.polymerDom(F).nextElementSibling}else b++}m$i(this.is,J,n,H);n=F;if(p.length>b){X=document.createDocumentFragment();for(f=p.length;b<f;b++)if(O=p[b],A=XkW(S,O))F=this.createComponent_(S[A],O[A],H),this.deferRenderStamperBinding_(F,S[A],O[A]),X.appendChild(F);n&&this.polymerDom(n).parentNode&&F&&!Mr.has(F)?J.insertBefore(X,n):J.appendChild(X)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();M&&_.cf(this.hostElement,"yt-rendererstamper-finished",
{container:Z})}else m$i(this.is,J,0,H);else p=new _.TG("Container object not found",J,this.hostElement?this.hostElement.is:""),_.jD(p)},
polymerDom:function(p){return this.minimizePipBreakages?p:_.f1(p)},
getStampContainer_:function(p){return this.$&&this.$[p]||_.Jn(this.hostElement).querySelector("#"+p)},
getComponentName_:function(p,J){return typeof p==="string"?p:p.matcher?p.matcher.call(this,J):p.component},
createComponent_:function(p,J,S){p=this.getComponentName_(p,J);try{var H=YYk.has(p);if(S&&!H){var M=_.oO(p);try{_.K3(M)}catch(X){S="Failed to clear styles for "+p+".",X.message&&(S+=" Original error: "+X.message),_.xQ(new _.TG(S))}}else M=document.createElement(p)}catch(X){return M="YtRendererStamperBehavior failed to create "+p+".",X.message&&(M+=" Original description: "+X.message),X.message="YtRendererStamperBehavior failed to create element",_.cL(X,M),uWm.hasOwnProperty(p)?_.xQ(X):_.jD(X),document.createElement("SPAN")}this.telemetry_.create++;
return M},
deferRenderStamperBinding_:function(p,J,S){this.deferredBindingTasks_.push({component:p,typeOrConfig:J,data:S})},
flushRenderStamperComponentBindings_:function(){for(var p=0,J=this.deferredBindingTasks_.length;p<J;p++){var S=this.deferredBindingTasks_[p];if(!S)break;var H=void 0,M=void 0,X=void 0,Z=void 0,n=S.component,b=S.typeOrConfig;S=S.data;var F=(Z=n.polymerController)!=null?Z:n;Z=n.loggingStatus;try{Z&&(Z.isRendererStamper=!0);if(typeof b!=="string"){for(X in b.attributes)b.attributes[X]===!0?n.setAttribute(X,""):b.attributes[X]===!1?n.removeAttribute(X):n.setAttribute(X,b.attributes[X]);for(M in b.params)F[M]=
b.params[M],n!==F&&$3(n.localName,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(H in b.properties){var f=b.properties[H];if(f){var O=RI4(f);F[H]=this.get(O);n!==F&&$3(n.localName,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(H==="on-tap"||H==="on-click"){var A=this.get(O);n.addEventListener("click",A);ZJW.set(n,{property:H,listener:{type:"element",eventName:"click",handler:A}})}}else{var P=new _.TG("Undefined property binding",H);_.jD(P)}}}if(b.classListBinding){var W=RI4(b.classListBinding),
y=W?this[W]:null;if(y)for(H=0;H<y.length;H++)_.XM(n,y[H],!0)}F.data=S}finally{Z&&(Z.isRendererStamper=!1)}if(H=Mr.get(n))n.hidden=!1,Mr.delete(n),_.wg.cancelJob(H)}this.deferredBindingTasks_.length=0}}];_.ci(_.d(function(p){function J(){S().seconds&&X(J0v({seconds:Number(S().seconds)-Date.now()/1E3}))}
var S=p.targetTimestamp;p=p.className;var H=_.K(_.eQ("",void 0,"U1Q8Ae")),M=H.next().value,X=H.next().value;_.qz(function(){J();var Z=setInterval(function(){J()},1E3);
_.VY(function(){clearInterval(Z)})});
return _.m("yt-countdown",{class:_.XB("ytCountDownHost",p)},_.m("div",null,M))},"x"),"yt-countdown",{props:{targetTimestamp:_.fD,
className:_.jr}});_.CD=new _.ni("KEY_MANAGER_TOKEN");var $$s={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.yD=_.d(function(p){var J=_.nE("a",p.ref),S=p.aTagConfig?p.aTagConfig:_.BW(function(){var H,M,X,Z,n;var b=(n=_.sa((X=p.command)==null?void 0:X.call(p)))!=null?n:(Z=p.command)==null?void 0:Z.call(p);return _.tz({innertubeCommand:b,skipOnClick:(H=p.skipOnClick)==null?void 0:H.call(p),defaultTarget:(M=p.target)==null?void 0:M.call(p)})||{}},void 0,"TAvz0");
_.lf(function(){_.z("mweb_get_endpoint_from_atag_command")||(J.value._data=S()._data,J.value.params=S().params)},"dcjvAe");
return _.m("a",{el:J,href:function(){return S().href$},
rel:function(){return S().rel$},
class:function(){var H,M;return(M=S().className)!=null?M:(H=p.className)==null?void 0:H.call(p)},
style:function(){var H;if((H=p.style)==null?0:H.call(p))return p.style();var M;return((M=p.disabled)==null?0:M.call(p))?"pointer-events:none":""},
"aria-haspopup":function(){return!!S()["aria-haspopup$"]},
"force-new-state":Zu(function(){return S()["force-new-state$"]}),
title:Zu(function(){var H,M;return(M=S().title$)!=null?M:(H=p.title)==null?void 0:H.call(p)}),
role:Zu(function(){var H;return((H=p.role)==null?void 0:H.call(p))||S().role$}),
target:Zu(function(){return S().target$}),
dir:Zu(function(){var H;return((H=p.dir)==null?void 0:H.call(p))||S().dir}),
tabindex:function(){var H;return S().tabindex$?Number(S().tabindex$):(H=p.tabIndex)==null?void 0:H.call(p)},
"aria-hidden":function(){var H,M;return(M=S()["aria-hidden$"])!=null?M:(H=p.ariaHidden)==null?void 0:H.call(p)},
"aria-label":function(){var H,M;return(M=S()["aria-label$"])!=null?M:(H=p.ariaLabel)==null?void 0:H.call(p)},
"aria-current":p.ariaCurrent,"aria-disabled":p.disabled,"aria-labelledby":p.ariaLabelledby,"aria-describedby":p.ariaDescribedby,"aria-selected":p.ariaSelected,"tab-identifier":p.tabIdentifier,"on:pointerdown":_.Kb(function(H){var M,X;return void((X=(M=S()).onpointerdown)==null?void 0:X.call(M,H))}),
"on:click":_.Kb(function(H){var M,X;(X=(M=S()).onclick)==null||X.call(M,H);var Z;(Z=p.onClick)==null||Z.call(p,H)}),
"on:focusin":_.Kb(function(H){var M;(M=p.onFocusin)==null||M.call(p,H)}),
"on:focusout":_.Kb(function(H){var M;(M=p.onFocusout)==null||M.call(p,H)})},p.children)},"z");var U$t={duration:1E3,easing:"ease",fill:"forwards"};BRW.componentType=gr;var t8X={duration:1E3,easing:"ease",fill:"forwards"},qf8=_.d(function(p){var J=_.nE("animated-rolling-character"),S=void 0,H=function(){var n,b;return q9((n=p.character)==null?void 0:n.call(p))||q9((b=p.previousCharacter)==null?void 0:b.call(p))},M=_.K(_.eQ(0,void 0,"CYT8Ob")),X=M.next().value,Z=M.next().value;
_.qz(function(){if(window.ResizeObserver&&_.z("web_fix_rolling_numbers_zoom_safari")){var n=new _.nb(function(){var F,f,O=Math.round(((f=(F=J.value.querySelector("div"))==null?void 0:F.getBoundingClientRect().height)!=null?f:0)*100)/100;O&&Z(O)},500),b=new ResizeObserver(function(){n.fire()});
b.observe(J.value);_.VY(function(){b.disconnect();n.dispose()})}});
_.lf(function(){var n=_.z("web_fix_rolling_numbers_zoom_safari")?X:p.marginMultiplier;if(n()){var b;(b=S)==null||b.cancel();if(H()){var F;b=((F=p.previousCharacter)==null?0:F.call(p))?Number(p.previousCharacter())+10:p.rollUp()?0:30;var f;if((f=p.shouldAnimate)==null||!f.call(p)){var O,A;b-=gHL((O=p.character)==null?void 0:O.call(p),(A=p.previousCharacter)==null?void 0:A.call(p),p.rollUp(),b)}}else{b=p.rollUp()?0:2;var P;(P=p.shouldAnimate)!=null&&P.call(p)||(F=b,f=p.rollUp()?-1:1,b=F-f)}J.value.style.marginTop=
"-"+b*n()+"px";var W;if((W=p.shouldAnimate)==null?0:W.call(p)){var y,t;S=hIw(J.value,(y=p.character)==null?void 0:y.call(p),(t=p.previousCharacter)==null?void 0:t.call(p),p.rollUp(),b,H(),n())}else{var D;J.value.style.display=((D=p.character)==null?0:D.call(p))?"":"none"}}},"CA6Pmf");
return _.m("animated-rolling-character",{el:J,class:"animatedRollingCharacterHost"},_.m(_.v,{cond:H,then:function(){return _.m(lsd,null)},
else:function(){return _.m(VW8,{character:p.character})}}))},"C");
qf8.idomCompat=!0;var D$k=_.z("web_enable_sink_animated_rolling_character_and_number")?qf8:BRW,asE=_.z("web_enable_sink_animated_rolling_character_and_number")?qf8:sji(BRW),lsd=_.d(function(){for(var p=[],J=1;J<30;J++)p.push(_.m("div",null,J%10));return _.m(_.fV,null,_.m("div",null,"\u00a0"),p,_.m("div",null,"\u00a0"))},"D"),VW8=_.d(function(p){var J=p.character;
return _.m(_.fV,null,_.m("div",null,"\u00a0"),_.m(_.v,{cond:function(){return!(J==null?0:J())||_.Rv(J==null?void 0:J())},
then:function(){return _.m("div",null,"\u00a0")},
else:function(){return _.m("div",null,J)}}),_.m("div",null,"\u00a0"))},"E");khi.componentType=gr;var E$M=_.d(function(p){var J=void 0,S=void 0,H=function(){var X;return((X=p.fontSizeMultiplier)==null?0:X.call(p))?p.heightPx()*p.fontSizeMultiplier():p.heightPx()},M=_.BW(function(){if(!p.numberText())return[];
var X,Z,n=((X=p.forceRollUp)==null?void 0:X.call(p))||!S||!((Z=p.numberValue)==null?0:Z.call(p))||S<p.numberValue(),b,F=p.numberText();X=H();Z=!((b=p.shouldAnimate)==null||!b.call(p));b=[];var f=0,O=0,A=(J?J.replace(/\D/g,"").length:0)-(F?F.replace(/\D/g,"").length:0),P=J?J.split(/(\d)/).filter(Boolean):[];for(F=F.split(/(\d)/).filter(Boolean);A<0;){var W=F[O];b.push({character:W,rollUp:n,marginMultiplier:X,shouldAnimate:Z});O++;q9(W)&&A++}for(;f<A;)W=P[f],b.push({previousCharacter:W,rollUp:n,marginMultiplier:X,
shouldAnimate:Z}),f++,q9(W)||A++;for(;O<F.length;)A=F[O],W=P[f],q9(A)===q9(W)?(O++,f++):q9(A)?(f++,A=void 0):q9(W)&&(O++,W=void 0),b.push({character:A,previousCharacter:W,rollUp:n,marginMultiplier:X,shouldAnimate:Z});J=p.numberText();var y;S=(y=p.numberValue)==null?void 0:y.call(p);return b},void 0,"kWiBv");
return _.m("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return p.numberText()?["height: "+H()+"px;","line-height: "+p.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.m(_.dY,{each:M,keyBy:"INDEX"},function(X){return _.m(asE,{character:function(){return X().character},
previousCharacter:function(){return X().previousCharacter},
marginMultiplier:function(){return X().marginMultiplier},
rollUp:function(){return X().rollUp},
shouldAnimate:function(){return X().shouldAnimate}})}))},"F");
E$M.idomCompat=!0;_.Yf8=_.z("web_enable_sink_animated_rolling_character_and_number")?E$M:sji(khi);var rKm=function(p,J){this.fillAnimation=new Animation(u5L(p),document.timeline);this.strokeAnimation=new Animation(l7k(J),document.timeline)};
rKm.prototype.play=function(){var p,J;(J=(p=this.fillAnimation).play)==null||J.call(p);var S,H;(H=(S=this.strokeAnimation).play)==null||H.call(S)};
rKm.prototype.cancel=function(){var p,J;(J=(p=this.fillAnimation).cancel)==null||J.call(p);var S,H;(H=(S=this.strokeAnimation).cancel)==null||H.call(S)};_.B3=_.d(function(p){var J=p.model;var S=p.pointerDownEvent;var H=p.pointerUpEvent;var M=p.pointerLeaveEvent;var X=p.hovered;p=_.nE("yt-touch-feedback-shape");var Z=_.nE("div"),n=_.nE("div"),b=_.K(_.re(function(){return(H==null?0:H())||(M==null?0:M())?!1:!(S==null||!S())||!1})),F=b.next().value,f=b.next().value,O=void 0,A=function(){!O&&n.value&&Z.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(O=new rKm(n.value,Z.value));
var k;(k=O)==null||k.play()},P=function(){var k;
(k=O)==null||k.cancel()},W=function(){var k;
(k=O)==null||k.cancel()};
_.lf(function(){(H==null?0:H())&&A()},"bg756c");
_.lf(function(){(S==null?0:S())&&P()},"QAes8c");
_.lf(function(){(M==null?0:M())&&W()},"YaFbrc");
b=_.Kb(function(){A();f(!1)});
var y=_.Kb(function(){P();f(!0)}),t=_.Kb(function(){W();
f(!1)});
_.VY(function(){if(O){var k;(k=O)==null||k.cancel();O=void 0}});
var D={};F=_.XB("yt-spec-touch-feedback-shape",function(){return V8i(J().color)},function(){return qkk(J().thumbnailSize,!!J().isExtended)},(D["yt-spec-touch-feedback-shape--focused"]=function(){return!!J().focused&&!J().disabled},D["yt-spec-touch-feedback-shape--circular"]=function(){return!!J().circular},D["yt-spec-touch-feedback-shape--down"]=F,D["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!J().triggerEvents},D["yt-spec-touch-feedback-shape--hovered"]=function(){return X==
null?void 0:X()},D));
return _.m("yt-touch-feedback-shape",{el:p,class:F,style:_.G7({"margin-top":function(){return J().customTopExtend?"-"+J().customTopExtend+"px":void 0}}),
"on:mousedown":y,"on:mouseup":b,"on:pointerleave":t,"on:touchstart":y,"on:touchend":b,"aria-hidden":!0},_.m(_.v,{cond:function(){return!!J().hoverEffect},
then:function(){return _.m("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.G7({"border-radius":function(){return J().borderRadius},
background:function(){var k;if(k=J().hoverEffect){for(var E=[],a=_.K((k==null?void 0:k.lightingTechniques)||[]),q=a.next();!q.done;q=a.next())switch(q.value){case 2:var w=q=void 0,I=void 0,Z3=void 0;E.push("linear-gradient(180deg, "+((q=k)==null?void 0:(w=q.palette)==null?void 0:w.keyLight)+", "+((I=k)==null?void 0:(Z3=I.palette)==null?void 0:Z3.background)+")")}var vg,yX;E.push((vg=J().hoverEffect)==null?void 0:(yX=vg.palette)==null?void 0:yX.background);k=E.join(", ")}else k=void 0;return k}})})}}),
_.m("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.G7({"border-radius":function(){return J().borderRadius},
"border-color":function(){var k,E;return(k=J().touchEffect)==null?void 0:(E=k.palette)==null?void 0:E.background}}),
el:Z}),_.m("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.G7({"border-radius":function(){return J().borderRadius},
"background-color":function(){var k,E;return(k=J().touchEffect)==null?void 0:(E=k.palette)==null?void 0:E.background}}),
el:n}))},"J");
_.B3.idomCompat=!0;var jNv={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 UZ=_.fL();UZ=UZ.toLowerCase();if(_.nL(UZ,"android")){var wUM=UZ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);wUM&&parseFloat(wUM[1])<100||UZ.match("("+Object.keys(jNv).join("|")+")")};var xiM=_.d(function(p){return _.m(_.v,{cond:p.aTagConfig,then:function(J){return _.m(_.yD,{aTagConfig:J,disabled:p.disabled,className:p.className,style:p.style,title:p.title,ariaLabel:p.ariaLabel,ariaCurrent:function(){var S,H;return((S=p.toggleable)==null?void 0:S.call(p))&&((H=p.toggled)==null?void 0:H.call(p))},
ref:p.ref},p.children)},
else:function(){return _.m("button",{el:_.Y2(p.ref),"on:click":_.Kb(function(J){var S;return(S=p.onClick)==null?void 0:S.call(p,J)}),
class:p.className,title:p.title,style:p.style,disabled:p.disabled,"aria-pressed":function(){var J,S;return((J=p.toggleable)==null?0:J.call(p))?!((S=p.toggled)==null||!S.call(p)):void 0},
"aria-label":p.ariaLabel,"aria-disabled":p.visiblyDisabled,"aria-hidden":p.ariaHidden,tabindex:p.tabIndex},p.children)}})},"K"),Ism=_.d(function(p){var J=p.data;
var S=p.hasIconLeading;var H=p.hasIconLeadingTrailing;var M=p.hasIconTrailing;var X=p.iconButton;var Z=p.iconClassName;var n=p.secondaryIconClassName;var b=p.icon;var F=p.secondaryIcon;var f=p.textContentClassName;return _.m(sZ,{className:"",style:"display: inherit; justify-content: center"},_.m(_.v,{debugInstance:"V4z1Uc",cond:function(){return b&&(S()||H()||(X==null?void 0:X()))},
then:function(){return _.m(sZ,null,_.m("div",{class:Z,"aria-hidden":"true"},b==null?void 0:b()))}}),_.m(_.v,{debugInstance:"ok3btb",
cond:function(){return(J().buttonText||J().animatedTextProps||J().formattedButtonText)&&!(X==null?0:X())},
then:function(){return _.m(sZ,null,_.m(cKM,{className:f,iconPosition:function(){return J().iconPosition},
text:function(){return J().buttonText},
oneOffCustomTextWrap:function(){return J().oneOffCustomTextWrap},
formattedButtonText:function(){return J().formattedButtonText},
animatedTextProps:function(){return J().animatedTextProps}}))}}),_.m(_.v,{debugInstance:"DO5Rz",
cond:M,then:function(){return _.m(sZ,null,_.m("div",{class:Z},b==null?void 0:b()))}}),_.m(_.v,{debugInstance:"bnojSc",
cond:H,then:function(){return _.m(sZ,null,_.m("div",{class:n},F==null?void 0:F()))}}),_.m(_.v,{debugInstance:"HN3kad",
cond:function(){return!J().disabled&&!0},
then:function(){return _.m(_.B3,{model:function(){var O=J();return{color:O.style==="overlay-dark"?4:O.style==="overlay"?O.type==="filled"?4:3:O.type==="filled"||O.style==="call-to-action-inverse"||O.style==="mono-inverse"?2:1}}})}}))},"L"),cKM=_.d(function(p){var J=function(){var S,H;
return((S=p.iconPosition)==null?void 0:S.call(p))==="icon-with-label"||((H=p.oneOffCustomTextWrap)==null?void 0:H.call(p))};
return _.m("div",{class:p.className,"aria-hidden":function(){var S,H,M;return((S=p.ariaHidden)==null?void 0:S.call(p))&&(!((H=p.animatedTextProps)==null||!H.call(p))||!((M=p.formattedButtonText)==null||!M.call(p)))}},_.m(_.ue,null,_.m(_.Nz,{when:function(){var S;
return(S=p.animatedTextProps)==null?void 0:S.call(p)}},function(){return _.m(_.Yf8,{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}})}),_.m(_.Nz,{when:function(){var S;
return(S=p.formattedButtonText)==null?void 0:S.call(p)}},function(){return _.m(_.v3,{text:function(){return Object.assign({},p.formattedButtonText(),{lineBreakMode:J()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":p.formattedButtonText().lineBreakMode,
alignment:J()?"TEXT_ALIGNMENT_CENTER":p.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!J()}})}),_.m(_.Nz,{when:function(){var S,H;
return((S=p.iconPosition)==null?void 0:S.call(p))==="icon-with-label"&&((H=p.text)==null?void 0:H.call(p))}},function(){return _.m(_.v3,{text:function(){return{content:p.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.m(_.TV,null,function(){return p.text})))},"M"),LLU=_.d(function(p){return _.m(_.v,{debugInstance:"kM7Sgc",
cond:p.hasLabel,then:function(){var J;return _.m("label",{class:p.className},p.children,(J=p.textContent)==null?void 0:J.call(p))},
else:function(){return p.children}})},"N"),sZ=_.d(function(p){return p.children},"O");var pkn=_.d(function(p){function J(){X(void 0);n(void 0);F(void 0)}
var S=_.Y2(),H=_.K(_.eQ(void 0,void 0,"Ug77pc")),M=H.next().value,X=H.next().value;H=_.K(_.eQ(void 0,void 0,"XGf7Zb"));var Z=H.next().value,n=H.next().value,b=_.K(_.eQ(void 0,void 0,"w55oqd"));H=b.next().value;var F=b.next().value;b=_.K(_.eQ(0,void 0,"rBgpzc"));var f=b.next().value,O=b.next().value;b=_.Kb(function(){switch(f()){case 1:O(2);break;case 3:var P,W;(W=(P=S.value).hidePopover)==null||W.call(P);O(0);J()}});
_.lf(function(){if(p.show()){var P;X((P=p.children)==null?void 0:P.call(p));var W;n((W=p.location)==null?void 0:W.call(p));var y;F((y=p.classNames)==null?void 0:y.call(p));switch(f()){case 0:var t,D;(D=(t=S.value).showPopover)==null||D.call(t);O(1);break;case 3:O(1);var k,E;(E=(k=S.value).hidePopover)==null||E.call(k);var a,q;(q=(a=S.value).showPopover)==null||q.call(a)}}else switch(f()){case 2:O(3);break;case 1:var w,I;(I=(w=S.value).hidePopover)==null||I.call(w);J();O(0)}},"Z8V4Qb");
_.ad(function(){});
var A={};return _.m("yt-popover",{popover:"manual",el:S,style:_.G7({left:function(){var P;return(P=Z())==null?void 0:P.left},
top:function(){var P;return(P=Z())==null?void 0:P.top},
bottom:function(){var P;return(P=Z())==null?void 0:P.bottom},
right:function(){var P;return(P=Z())==null?void 0:P.right}}),
class:_.XB("ytPopoverComponentHost",H,(A.ytPopoverComponentHostClosing=function(){return f()===3},A.ytPopoverComponentHostSeeThrough=function(){var P;
return((P=p.seeThrough)==null?void 0:P.call(p))===!0},A)),
"on:animationend":b},M)},"Q");var JUM={left:"0px",right:"auto",top:"0px",bottom:"auto"},Skd=function(){var p=this;this.registerTooltipElement=function(S){var H;p.tooltipElement=(H=S.querySelector("yt-popover"))!=null?H:void 0};
var J=_.K(_.eQ(void 0,void 0,"EIh5sc"));this.state=J.next().value;this.setState=J.next().value;J=_.K(_.eQ(void 0,void 0,"PC1M0b"));this.schedulerJobID=J.next().value;this.setSchedulerJobID=J.next().value},I7s=function(p,J){var S=FB,H=_.wg.addJob(function(){var M=HJE(S,p,J);
S.currentConfig=J;S.setState({text:J.text,location:_.z("web_tooltip_location_fix")?void 0:M,anchor:p,offset:J.offset,style:J.style})},4,J.delay);
S.setSchedulerJobID(H)},Lfw=function(){var p=FB,J=p.schedulerJobID();
J&&(_.wg.cancelJob(J),p.setSchedulerJobID(void 0));p.setState(void 0);p.currentConfig=void 0};
Skd.prototype.notify=function(p,J){var S;((S=this.state())==null?void 0:S.anchor)===p&&(S=HJE(this,p,J),this.currentConfig=J,this.setState({text:J.text,location:_.z("web_tooltip_location_fix")?void 0:S,anchor:p,offset:J.offset,style:J.style}))};
var HJE=function(p,J,S){var H=J.getBoundingClientRect();J=window.innerWidth;var M=window.innerHeight,X=S.location,Z=S.offset;S=S.text;if(p=p.tooltipElement){var n=getComputedStyle(p);p=n.font;var b=mM(n.lineHeight),F=mM(n.paddingLeft),f=mM(n.paddingRight),O=mM(n.paddingTop);n=mM(n.paddingBottom);var A=document.createElement("canvas").getContext("2d");A.font=p;S={width:A.measureText(S).width+F+f,height:b+O+n}}else S=void 0;p=S;if(!p)return JUM;S=p.width;p=p.height;F=Z+p;O=Z+S;b=H.top>=F;F=M-H.bottom>=
F;f=H.left>=O;O=J-H.right>=O;n=X;switch(X){case "top":!b&&F&&(n="bottom");break;case "bottom":!F&&b&&(n="top");break;case "left":!f&&O&&(n="right");break;case "right":!O&&f&&(n="left")}switch(n){case "top":X=H.left+H.width/2-S/2;H=H.top-p-Z;break;case "bottom":X=H.left+H.width/2-S/2;H=H.bottom+Z;break;case "left":X=H.left-S-Z;H=H.top+H.height/2-p/2;break;case "right":X=H.right+Z;H=H.top+H.height/2-p/2;break;default:X=H.left+H.width/2-S/2,H=H.bottom+Z}Z=Object.assign({},JUM);X+S>J?(Z.right="0px",Z.left=
"auto"):(Z.left=Math.round(Math.max(0,X)+window.scrollX)+"px",Z.right="auto");H+p>M?(Z.bottom="0px",Z.top="auto"):(Z.top=Math.round(Math.max(0,H)+window.scrollY)+"px",Z.bottom="auto");return Z};var FB;FB=new Skd;_.M8p=_.d(function(){var p=_.BW(function(){var M;return(M=FB.state())==null?void 0:M.anchor},void 0,"tiGUn"),J=_.BW(function(){var M;
return(M=FB.state())==null?void 0:M.text},void 0,"TA2GQe"),S=_.BW(function(){var M;
return(M=FB.state())==null?void 0:M.style},void 0,"ucvFsf"),H=_.z("web_tooltip_location_fix")?_.BW(function(){var M=p();
var X=FB.currentConfig;if(M&&X)return HJE(FB,M,X)},void 0,"EpDz6"):_.BW(function(){var M;
return(M=FB.state())==null?void 0:M.location},void 0,"aRJtfd");
return _.m("yt-tooltip",{class:"ytTooltipContainerHost",el:_.Y2(FB.registerTooltipElement),"aria-hidden":"true"},_.m(pkn,{classNames:function(){switch(S()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:H,show:function(){return!!J()&&!!H()},
seeThrough:!0},J))},"R");var TTk=ZD("stamper-context");_.gF=_.d(function(p){var J=p.data;var S=p.icon;var H=p.iconName;var M=p.animateIcon;var X=p.secondaryIcon;var Z=p.secondaryIconName;var n=p.focusedOverride;var b=p.clientOnlyWizTooltipsEnabled;J6k();var F=a7L(J),f=F.size,O=F.style;p=F.disabled;var A=F.onTap,P=F.alignByText,W=F.aTagConfig,y=F.customColors,t=F.segmentedPosition,D=F.toggled,k=F.toggleable,E=F.accessibilityLabel,a=F.onToggle,q=F.iconPosition,w=F.oneOffCustomTextWrap,I=F.disableTextEllipsis,Z3=F.disableBackdropFilter,vg=F.tooltipText,
yX=F.ariaHidden,Pg=F.tabIndex,ov=F.buttonText,NW=F.formattedButtonText,TW=F.animatedTextProps,Ys=F.onClickRateLimitMs,Go=jjw(J,S,X,H,Z,n,M),$U=Go.type;S=Go.shouldFocus;H=Go.hasIconLeading;M=Go.hasIconTrailing;var LL=Go.hasIconLeadingTrailing,fd=Go.hasIconOnly;X=Go.hasIconOnly40;var Qv=Go.hasIconWithLabel;Z=Go.iconButton;var t8=Go.visiblyDisabled;n=Go.overrideSmallSizeIcon;var Wp=Go.iconToRender;Go=Go.secondaryIconToRender;var ON=_.K(pxW(vg,F.tooltipShape)).next().value,KL=function(eL){A==null||A(eL);
k()&&(a==null||a(eL))},HE=_.BW(function(){return Ys==null?void 0:Ys()},void 0,"siKywb"),o8=_.BW(function(){return HE()?qKp(KL,HE()):KL},void 0,"wDTcN");
F={};var xU={};return _.m(LLU,{className:_.XB("yt-spec-button-shape-with-label",(F["yt-spec-button-shape-with-label--is-overlay"]=function(){return O()==="overlay"||O()==="overlay-dark"},F)),
hasLabel:Qv,textContent:function(){return _.m(cKM,{text:ov,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:w,iconPosition:q,formattedButtonText:NW,animatedTextProps:TW})}},_.m(xiM,{aTagConfig:W,
className:_.XB("yt-spec-button-shape-next",function(){return wkL($U())},function(){return t8()?void 0:x$g(O())},function(){return cUW(f())},(xU["yt-spec-button-shape-next--disabled"]=t8,xU["yt-spec-button-shape-next--focused"]=S,xU["yt-spec-button-shape-next--icon-trailing"]=M,xU["yt-spec-button-shape-next--icon-leading"]=H,xU["yt-spec-button-shape-next--icon-leading-trailing"]=LL,xU["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return LL()&&!(ov()||NW())},xU["yt-spec-button-shape-next--icon-button"]=
function(){return fd()||Qv()},xU["yt-spec-button-shape-next--icon-only-default"]=X,xU["yt-spec-button-shape-next--align-by-text"]=P,xU["yt-spec-button-shape-next--segmented-start"]=function(){return t()==="start"},xU["yt-spec-button-shape-next--segmented-end"]=function(){return t()==="end"},xU["yt-spec-button-shape-next--override-small-size-icon"]=n,xU["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=w,xU["yt-spec-button-shape-next--disable-text-ellipsis"]=I,xU["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Z3()&&!_.z("web_disable_backdrop_filter")},xU)),
style:function(){var eL=y();if(eL){var Ld=eL.color;var QV=eL.backgroundColor;eL=eL.borderColor;var YU="";Ld&&(YU+="color: "+Ld+";");QV&&(YU+="background-color: "+QV+";");eL&&(YU+="border-color: "+eL+";");Ld={style:YU}}else Ld={};return Ld.style},
onClick:function(eL){o8()(eL)},
disabled:p,ariaLabel:E,toggleable:k,toggled:D,title:function(){return(b==null?0:b())||!vg()?"":vg()},
visiblyDisabled:t8,ariaHidden:yX,tabIndex:Pg,ref:function(eL){(b==null?0:b())&&ON(eL)}},_.m(Ism,{data:J,
hasIconLeading:H,hasIconLeadingTrailing:LL,hasIconTrailing:M,iconButton:Z,icon:Wp,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:Go})))},"T");
_.gF.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.D0=_.d(function(p){var J=p.data;var S=p.className;var H=p.style;var M=p.useOutlinedIcon;var X=p.buttonOverrides;var Z=p.animatedTextProps;var n=p.onClick;var b=p.target;var F=_.nE("button-view-model",function(a){a.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var q=J().targetId;q&&_.qZ(_.aQ(),q,a);return function(){V5(_.aQ(),a)}}),f=function(){return J().iconName},O=_.fb(function(a){a:{var q=J().entityKey,w=J().buttonEntitySelectorType;
if(w&&q)switch(w){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":a=(a=_.RY(a,q))?{isHidden:a.adsState==="ADS_STATE_NONE"||a.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:a={isHidden:!1};break a}a=void 0}return a}),A,P=(A=_.vO().resolve(_.F9(_.uC)))==null?void 0:A(),W=function(){var a=J();
var q=X==null?void 0:X(),w=Z==null?void 0:Z(),I=b==null?void 0:b();if(a){var Z3=Zri(a.type);var vg=!!a.title||!!a.titleFormatted;var yX=!(!a.iconName&&!a.iconImage);vg=yX&&!vg?"icon-only":yX?a.iconTrailing||a.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;vg==="icon-only-40"&&(Z3="text");var Pg;yX=(Pg=q==null?void 0:q.state)!=null?Pg:nL9(a.state);var ov,NW=(ov=q==null?void 0:q.disabled)!=null?ov:a.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||a.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.z("web_button_vm_refactor_disabled")){var TW;NW=(TW=q==null?void 0:q.disabled)!=null?TW:yX==="disabled"}w=w&&w.numberText&&!isNaN(Number(w.numberValue))?w:void 0;ov=Object;TW=ov.assign;Pg=a.title;var Ys=a.titleFormatted,Go=a.accessibilityText,$U=KjW(a.style),LL=GOW(a.buttonSize);I=RF4(a,F,NW,n,I);NW=NW&&!a.onDisabledTap;var fd=XxL(a,F),Qv=a.customFontColor,t8=a.customBackgroundColor;var Wp=a.customBorderColor;var ON=a.customDarkThemeFontColor,KL=a.customDarkThemeBackgroundColor,HE=a.customDarkThemeBorderColor;
Qv=P&&ON?ON:Qv;t8=P&&KL?KL:t8;Wp=P&&HE?HE:Wp;Wp={color:Qv?_.Bt(Qv):void 0,backgroundColor:t8?_.Bt(t8):void 0,borderColor:Wp?_.Bt(Wp):void 0};if(HE=_.e(a.tooltipData,tkq)){var o8;t8={text:(o8=HE.tooltipText)!=null?o8:"",location:HrX(HE.placement),style:HE.style}}else t8=void 0;a=TW.call(ov,{},{buttonText:Pg,formattedButtonText:Ys,animatedTextProps:w,accessibilityLabel:Go,style:$U,type:Z3,state:yX,size:LL,iconPosition:vg,onTap:I,disabled:NW,aTagConfig:fd,customColors:Wp,tooltipText:a.tooltip,tooltipShape:t8},
q)}else a={style:"mono",type:"text",state:"active",size:"M"};a.focused=D();return a},y=function(){return Yki(W(),!!J().iconName)};
p=_.K(_.eQ(!1,void 0,"yZ8hab"));A=p.next().value;var t=p.next().value,D=A;p=_.Kb(function(){var a=_.vO().resolve(_.F9(_.CD));a&&t(a.isKeyBoardInUse());return!1});
A=_.Kb(function(){t(!1);return!1});
_.lf(function(){var a,q=_.e(J==null?void 0:(a=J())==null?void 0:a.onVisible,_.Ua);q&&_.ge(q,{disableClickTracking:!0})},"G9MlKd");
var k=function(){var a;return(J==null?0:(a=J())==null?0:a.iconImage)?{sources:[J().iconImage]}:void 0},E=_.z("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.m("button-view-model",{el:F,class:_.XB("ytSpecButtonViewModelHost",S),"on:focusin":p,"on:focusout":A},_.m(_.v,{cond:function(){var a,q;return!((q=J().entityKey&&J().buttonEntitySelectorType&&((a=O())==null?void 0:a.isHidden))!=null&&q)},
then:function(){return _.m(_.v,{cond:k,then:function(a){return _.m(_.gF,{data:W,icon:function(){return _.m(_.a4,{data:a,alt:"",targetWidth:y,targetHeight:y,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:E})},
else:function(){return _.m(_.gF,{data:W,icon:function(){return _.m(_.bn,{icon:f,active:function(){return(M==null?0:M())?!1:W().toggled},
animateIcon:function(){var a;return!!(H==null?0:(a=H())==null?0:a.animateIcon)},
size:y})},
clientOnlyWizTooltipsEnabled:E})}})}}))},"V");
_.D0.idomCompat={callbacks:{onClick:!0}};_.ci(_.d(function(p){return _.m("yt-button-view-model",{id:p.id,class:_.XB(p.scopingClassName,p.classes),icon:function(){var J;return(J=p.icon)==null?void 0:J.call(p)},
"dialog-dismiss":function(){var J;return((J=p.dialogDismiss)==null?0:J.call(p))?"":void 0}},_.m(_.D0,{data:function(){var J;
return(J=p.data)==null?void 0:J.call(p)},
className:function(){var J;return(J=p.className)==null?void 0:J.call(p)},
style:function(){var J;return(J=p.style)==null?void 0:J.call(p)},
useOutlinedIcon:function(){var J;return(J=p.useOutlinedIcon)==null?void 0:J.call(p)},
buttonOverrides:function(){var J;return(J=p.buttonOverrides)==null?void 0:J.call(p)},
animatedTextProps:function(){var J;return(J=p.animatedTextProps)==null?void 0:J.call(p)},
onClick:function(J){var S;return(S=p.onClick)==null?void 0:S.call(p,J)}}))},"W"),"yt-button-view-model",{props:{data:_.fD,
className:_.fD,style:_.fD,useOutlinedIcon:_.fD,buttonOverrides:_.fD,animatedTextProps:_.fD,onClick:_.jr,scopingClassName:_.fD,id:_.fD,icon:_.fD,dialogDismiss:_.fD,classes:_.fD,target:_.jr}});_.ci(_.d(function(p){var J=p.data;var S=p.id;var H=p.className;var M=p.iconName;var X=p.animateIcon;var Z=p.secondaryIconName;p=_.K(_.eQ(!1,void 0,"TtJl8"));var n=p.next().value,b=p.next().value,F=function(){var O=_.vO().resolve(_.F9(_.CD));O&&b(O.isKeyBoardInUse())},f=function(){b(!1)};
p=_.nE("yt-button-shape",function(O){if(_.vO().resolve(_.F9(_.CD)))return O.addEventListener("focusin",F),O.addEventListener("focusout",f),function(){O.removeEventListener("focusin",F);O.removeEventListener("focusout",f)}});
return _.m("yt-button-shape",{el:p,id:S,class:H},_.m(_.v,{cond:J,then:function(){return _.m(_.gF,{data:J,iconName:M,secondaryIconName:Z,focusedOverride:n,animateIcon:X})}}))},"X"),"yt-button-shape",{props:{data:_.fD,
id:_.fD,className:_.fD,iconName:_.fD,animateIcon:_.fD,secondaryIconName:_.fD,clientOnlyWizTooltipsEnabled:_.fD,disableUpgrade:_.fD},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var kN=function(){var p=_.T.apply(this,arguments)||this;p.isGoalActive=!0;return p};
_.Q(kN,_.T);kN.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
kN.prototype.progressBarChanged=function(){var p=_.Jn(this.hostElement).querySelector("#progress-bar-progress"),J,S,H,M=(H=Number((J=this.creatorGoalState)==null?void 0:J.currentGoalCount)/Number((S=this.creatorGoalState)==null?void 0:S.totalGoalCount)*100)!=null?H:0,X;p.style.width=((X=Math.min(M,100))!=null?X:0)+"%"};
kN.prototype.goalStateChanged=function(){var p;this.isGoalActive=((p=this.creatorGoalState)==null?void 0:p.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var J;p={"--yt-progress-bar-color":ukX((J=this.creatorGoalState)==null?void 0:J.progressBarColor)};_.K3(this.hostElement,p)};
kN.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.vh.Object.defineProperties(kN.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 J;p=Number((J=this.creatorGoalState)==null?void 0:J.endTimestampMs)/1E3;return{seconds:String(p)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.creatorGoalState)==null?0:p.themedTargetImage){var J;p=_.e((J=this.creatorGoalState)==null?void 0:J.themedTargetImage,eJn);return this.isAppDarkTheme()?p==null?void 0:p.imageDark:p==null?void 0:p.imageLight}}}});
_.vh.Object.defineProperties(kN,{template:{configurable:!0,enumerable:!0,get:function(){return tWp()}}});
kN.prototype.goalStateChanged=kN.prototype.goalStateChanged;kN.prototype.progressBarChanged=kN.prototype.progressBarChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.i1),_.Y("design:type",Object)],kN.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);
_.V([_.N({selectorArgs:["data.creatorGoalEntityKey"],selector:function(p,J){return _.RR(p.entities,"creatorGoalEntity",J)}}),
_.Y("design:type",Object)],kN.prototype,"creatorGoalState",void 0);_.V([_.N(),_.Y("design:type",Object)],kN.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],kN.prototype,"isGoalActive",void 0);_.V([_.U("creatorGoalState","isGoalActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kN.prototype,"shouldShowCountdown",null);_.V([_.U("creatorGoalState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kN.prototype,"endTimestamp",null);
_.V([_.U("creatorGoalState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kN.prototype,"targetIconThemedImage",null);_.V([_.bO("creatorGoalState.currentGoalCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kN.prototype,"progressBarChanged",null);_.V([_.bO("creatorGoalState.creatorGoalState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kN.prototype,"goalStateChanged",null);
_.V([_.sD({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],kN);_.l(kN,"yt-creator-goal-progress-flow-view-model",function(){return tWp()},{mode:0});var Xko;var iJ8;var Na=function(){return _.T.apply(this,arguments)||this};
_.Q(Na,_.T);Na.prototype.attached=function(){var p,J,S;if(this==null?0:(p=this.data)==null?0:(J=p.pdgPurchasedBumperLoggingDirectives)==null?0:(S=J.loggingDirectives)==null?0:S.trackingParams){var H,M,X;FjX(this==null?void 0:(H=this.data)==null?void 0:(M=H.pdgPurchasedBumperLoggingDirectives)==null?void 0:(X=M.loggingDirectives)==null?void 0:X.trackingParams)}};
Na.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Na.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Na.prototype,"data",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Na);
_.l(Na,"yt-live-chat-item-bumper-view-model",function(){if(iJ8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Xko===void 0&&(Xko=document.createElement("template"));var H=Xko;S.call(J,H.content.cloneNode(!0),p.content.firstChild);iJ8=p}p=iJ8;return p},{mode:0});var RIM;var KfM;_.Yz=function(p,J){this.data=p;this.actions=J;this.data=p;this.actions=J};
_.T7=function(){};_.T_={};_.T_.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(p,J){vLi(this.hostElement,p,J)},
getNavigationEndpointPopupAction:function(p){return fQX(p,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(p,J){Orw(this.hostElement,p,J,this.openPopupConfig)}};var y6g=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.dF={};
_.dF.YtEndpointBehavior=[_.T_.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.jn("openPopupConfig");(this.useClickHandler=_.wY("useClickHandler",!1))?this.hostElement.addEventListener("click",ZV(this,this.onEndpointClick_)):(j5(this.hostElement,"tap",ZV(this,this.onEndpointTap_)),j5(this.hostElement,"touchend",ZV(this,this.onEndpointTouchEnd_)));j5(this.hostElement,"touchstart",ZV(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
ZV(this,this.onEndpointTapStart_))},
onEndpointClick_:function(p){zF9(this.hostElement,p,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(p){var J=this.hostElement,S=this.openPopupConfig,H=this.disableCommandHandlerOverride;H=H===void 0?!1:H;var M=A6X(p);if(M){M.href&&tc(M.href);var X=p.detail;var Z=X.sourceEvent;X=X.preventer;Z=Z.button!==void 0?Z.button===0&&!OS(Z):X?!OS(X):!0;M.data&&Z&&Pgw(J,M,p,S,H)}},
onEndpointTouchEnd_:function(p){OS(p)||A6X(p)&&p.preventDefault()},
onEndpointTapStart_:function(p){QgW(p)}}];_.u1={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(p){for(var J=_.XK.getInstance(),S=_.K(Object.keys(p)),H=S.next();!H.done;H=S.next()){var M=H.value;H=p[M];if(this&&this[H]){var X=J.actionRoutingMap.get(M);X||(X=new Map,J.actionRoutingMap.set(M,X));J.registerActionHandler(this,M,this[H].bind(this),X)}else M=Error("ld"),M.params=H,_.xv(M)}},
unregisterActionMap:function(p){_.KE(_.XK.getInstance(),p,this)}}]};var z7=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_"+(_.z("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.z("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.z("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.z("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.z("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.z("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Pv;var $z=new Map;var hFX=window.matchMedia("(forced-colors: active)").matches;var ZJ4;var nH8;var Gh4=new _.ni("LOTTIE_LOADER_TOKEN");_.l1=_.d(function(p){var J=p.data;var S=p.className;var H=p.animationName;var M=p.animationRef;var X=p.elRefForInterop;var Z=_.mo("lottie-component"),n;_.VY(function(){var F;return void((F=n)==null?void 0:F.destroy())});
var b;_.lf(function(){var F=_.a2(H);if(F!==b){b=F;var f=Object.assign({},{animationName:F,animationRef:_.a2(M)},_.a2(J));try{_.vO().resolve(Gh4)().then(function(P){var W;(W=n)==null||W.destroy();var y,t;W=(t=X==null?void 0:(y=X())==null?void 0:y.value)!=null?t:Z.value;y=f.animationRef;t=f.listeners;P=P.loadAnimation(Object.assign({},{container:W},f.animationConfig));y&&(y.lottieEl=P);if(t)for(W=_.K(Object.entries(t)),y=W.next();!y.done;y=W.next())t=_.K(y.value),y=t.next().value,(t=t.next().value)&&
P.addEventListener(y,t);n=P})}catch(P){F=P;
var O="LottieComponent error.";F.message&&(O+=" Original description: "+F.message);_.cL(F,O);_.xQ(F);var A;((A=f.listeners)==null?0:A.error)&&f.listeners.error(F)}}},"nrJISd");
return _.m(GXt,{cond:function(){return!(X==null?0:X())},
then:function(){return _.m("lottie-component",{class:_.XB("ytLottieComponentHost",S),el:Z})}})},"Z");_.ci(_.d(function(p){return _.m("ytd-lottie-player",{id:p.id,hidden:p.hidden,class:p.className,"aria-label":p.ariaLabel,style:"display: block;"},_.m(_.l1,{data:p.data,animationName:function(){var J;return((J=p.data().animationConfig)==null?void 0:J.name)||""},
animationRef:function(){return p.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.fD,
id:_.fD,hidden:_.fD,className:_.fD,ariaLabel:_.fD}});var VD=function(){var p=_.T.apply(this,arguments)||this;p.animationRef={};p.delhiIconsEnabled=_.z("enable_web_delhi_icons");return p};
_.Q(VD,_.T);_.R=VD.prototype;
_.R.handlePropertyChange=function(){var p=this.animatedIcon,J=this.active,S=this.isDarkTheme;if(p){var H=this.previousActive!==J;this.previousActive=J;this.animationRef.lottieEl?H?this.toggleAnimation(J,p.totalFrames):_.z("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(J,p.totalFrames):J?this.initializeAnimationAsToggled(p.lottiePlayerProps,p.totalFrames):this.initializeAnimationAsUntoggled(p.lottiePlayerProps);p.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
p.type;this.lottiePlayerProps=this.computeLottiePlayerProps(p,S)}};
_.R.computeLottiePlayerProps=function(p,J){var S=this.deepCloneLottiePlayerProps(p);J?(J=p.nameDarkTheme,p=p.pathDarkTheme):(J=p.name,p=p.path);S.animationConfig.name=J;(J=$z.get(p))?S.animationConfig.animationData=J:S.animationConfig.path=p;return S};
_.R.initializeAnimationAsToggled=function(p,J){p.animationConfig.initialSegment=[J-1,J]};
_.R.initializeAnimationAsUntoggled=function(p){p.animationConfig.initialSegment=void 0};
_.R.toggleAnimation=function(p,J){if(p){var S;(S=this.animationRef.lottieEl)==null||S.playSegments([0,J],!0)}else{var H;(H=this.animationRef.lottieEl)==null||H.playSegments([0,1],!0)}};
_.R.setAnimationState=function(p,J){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(p?J-1:0,!0)};
_.R.deepCloneLottiePlayerProps=function(p){var J=Object.assign({},p.lottiePlayerProps.animationConfig);p=Object.assign({},p.lottiePlayerProps);p.animationConfig=J;return p};
VD.prototype.handlePropertyChange=VD.prototype.handlePropertyChange;_.V([_.N(),_.Y("design:type",Object)],VD.prototype,"animatedIcon",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],VD.prototype,"active",void 0);_.V([_.N(),_.Y("design:type",Boolean)],VD.prototype,"isDarkTheme",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],VD.prototype,"animatedIconType",void 0);_.V([_.N(),_.Y("design:type",Boolean)],VD.prototype,"previousActive",void 0);
_.V([_.N(),_.Y("design:type",Object)],VD.prototype,"lottiePlayerProps",void 0);_.V([_.N(),_.Y("design:type",Object)],VD.prototype,"animationRef",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],VD.prototype,"delhiIconsEnabled",void 0);_.V([_.bO("animatedIcon","active","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VD.prototype,"handlePropertyChange",null);_.V([_.sD({is:"yt-animated-icon",disableElementRegistration:!0})],VD);
_.l(VD,"yt-animated-icon",function(){if(nH8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;ZJ4===void 0&&(ZJ4=document.createElement("template"));var H=ZJ4;S.call(J,H.content.cloneNode(!0),p.content.firstChild);nH8=p}p=nH8;return p},{mode:2});var bJv;var m$8;_.oY=_.d(function(p){var J={value:null,cancelled:!1};_.VY(function(){J.cancelled=!0});
var S=_.BW(p.data,{equals:function(H,M){return H.iconName===M.iconName&&H.iconStyle===M.iconStyle&&H.iconSize===M.iconSize&&H.iconSetName===M.iconSetName&&H.iconSelected===M.iconSelected}},"ck24jb");
return _.m("span",{class:"yt-icon-shape",el:_.Y2(function(H){_.lf(function(){var M,X=(M=p.options)==null?void 0:M.call(p);M=S();dML(H,J,M,X)},"v878Je")})})},"ba");
_.oY.idomCompat=!0;var Sm4=["youtube_fill","youtube_outline"];var Ff8=new _.EM({type:"iconset",value:void 0}),qa=function(){var p=_.T.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=_.eQ(void 0,void 0,"TaEgXd");p.renderingOptionsSignal=_.eQ({iconWidth:"100%",iconHeight:"100%",iconFilter:p.iconFilter,iconColor:p.gradientColor},void 0,"a1vqYe");p.wizHasRendered=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return p};
_.Q(qa,_.T);qa.prototype.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p)};
qa.prototype.handlePropertyChange=function(){var p=this,J,S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D;return _.G(function(k){switch(k.nextAddress){case 1:if(J=!p.icon&&!p.iconName||!p.isAttached)return k.return();S=p;H=S.icon;M=S.size;X=S.defaultToFilled;Z=S.active;n=S.targetContainer;p.toggleContainerClass(n);_.z("kevlar_use_wil_icons")&&H&&(b=FFW(H),p.iconType=b.length?b[1]:null);if(H){k.jumpTo(2);break}p.iconsetName="";p.iconName="";return k.yield(p.renderIcon(n,H),3);case 3:return k.return();case 2:F=vHo(H);
f=FFW(F);f.length&&(p.iconsetName=f[0],p.iconName=f[1]);if(!_.z("kevlar_use_wil_icons")){k.jumpTo(4);break}O=qa;A=f78;P=p.iconType;W=p.active;y=p.defaultToFilled;t=p.size;D=p.iconsetName;return k.yield(OJU(),6);case 6:return k.yield(A.call(O,P,W,y,t,D,k.yieldResult),5);case 5:p.iconShapeData=k.yieldResult;case 4:if(p.shouldRenderIconShape(n)){k.jumpTo(7);break}return k.yield(p.determineIconSet(F,Z,X,M,n),7);case 7:return k.yield(p.renderIcon(n,H),0)}})};
qa.prototype.toggleContainerClass=function(p){p?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var vHo=function(p){return!_.z("default_to_innertube_icon")||p.indexOf(":")>0?p:_.Xj(p)};
_.R=qa.prototype;_.R.determineIconSet=function(p,J,S,H){var M=this;return _.G(function(X){return X.nextAddress==1?_.z("kevlar_system_icons")||_.jn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.jn("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?X.yield(M.switchToYtSysIconset(p,J,S,H),3):X.jumpTo(2):X.nextAddress!=2?X.return():X.yield(M.useYtSysIconsetForMissingIcons(p,J,S,H),0)})};
_.R.switchToYtSysIconset=function(p,J,S,H){var M=this,X,Z,n,b,F,f,O;return _.G(function(A){switch(A.nextAddress){case 1:if(!p||M.iconsetName!=="yt-icons"&&M.iconsetName!=="yt-sys-icons"){A.jumpTo(0);break}X=FFW(p);Z=X[1];var P=Z;if(o6i(P))Z=P;else{var W=P=P.toLowerCase();(P=Wwq.get(P))&&(W=P);Z=W}_.z("enable_polymer_icons_replace_underscores_dash")&&Z.includes("_filled")&&(Z=Z.replace(/_filled/g,"-filled"));return A.yield(Mn(Z,!0),3);case 3:return n=A.yieldResult,A.yield(Mn(Z,!1),4);case 4:if((b=
A.yieldResult)||J&&n)M.iconsetName="yt-sys-icons";M.iconName=M.getIconName(Z,J,S,b,n);if(H===24){A.jumpTo(0);break}F="yt-sys-icons"+H+":"+M.iconName;return A.yield(Mn(F,!1,!0),6);case 6:return f=A.yieldResult,A.yield(Mn(F,!0,!0),7);case 7:O=A.yieldResult;M.iconName=M.getIconName(Z,J,S,f,O);if(!J&&f||J&&O)M.iconsetName="yt-sys-icons"+H;_.UK(A)}})};
_.R.getIconName=function(p,J,S,H,M){p.includes("-filled")&&(p=p.replace("-filled",""));return M&&(J||S)?p+"-filled":p};
_.R.useYtSysIconsetForMissingIcons=function(p,J,S,H){var M=this,X,Z;return _.G(function(n){if(n.nextAddress==1)return M.iconsetName!=="yt-icons"?n.jumpTo(0):n.yield(Mn(M.iconName,!1,!1,!0),3);if(n.nextAddress!=4)return X=n.yieldResult,n.yield(Mn(M.iconName,!1),4);Z=n.yieldResult;if(X||!Z)return n.jumpTo(0);M.iconsetName="yt-sys-icons";return n.yield(M.switchToYtSysIconset(p,J,S,H),0)})};
_.R.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var OJU=function(){return _.G(function(p){try{return p.return(_.vO().resolve(_.iC))}catch(J){return p.return(new Promise(function(S){_.fq().parkOrScheduleJob(function(){S(_.vO().resolve(_.iC))},2,"ci")}))}})},f78=function(p,J,S,H,M,X){H=H===void 0?24:H;
if(p){p=p.toLowerCase();var Z=p.endsWith("_filled")||p.endsWith("-filled");J={iconName:p,iconStyle:(J===void 0?0:J)||(S===void 0?0:S)||Z?"youtube_fill":"youtube_outline",iconSize:H,iconSetName:M===void 0?"yt-icons":M};S=!!X.resolveIcon(J);S||(J.iconSize=void 0,S=!!X.resolveIcon(J));!S&&Z&&(J.iconName=p.substring(0,p.length-7),J.iconSize=H,S=!!X.resolveIcon(J),S||(J.iconSize=void 0,S=!!X.resolveIcon(J)));S||(J.iconStyle=void 0,S=!!X.resolveIcon(J));S||_.xQ(new _.TG("Icon not supported",{iconName:J.iconName,
iconStyle:J.iconStyle,iconSize:J.iconSize,iconType:p}));return S?J:void 0}};
_.R=qa.prototype;_.R.shouldRenderIconShape=function(p){if(!_.z("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;p=this.getContainer(p);return!DMk(p,this.icon)};
_.R.renderIcon=function(p,J){var S=this,H,M,X,Z,n,b,F,f;return _.G(function(O){switch(O.nextAddress){case 1:if(J&&S.icon!==J)return O.return();H=S.getContainer(p);M=DMk(H,S.icon);if(S.shouldRenderIconShape(p)&&S.iconType)return S.applyIconShape(M,H),O.return();S.removeIconShape();if(!H)return O.return();S.iconName===""&&S.iconset&&H&&(S.removeStaticIcon(S.iconset,H),M&&S.removeAnimatedIcon(H));if(S.iconName===""&&S.iconset||!S.iconsetName||!Ff8)return O.return();S.iconset=Ff8.byKey(S.iconsetName);
if(!S.iconset)return S.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.n3(S,S.onIconsetAdded)),O.return();S.missingIconSet&&(S.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.n3(S,S.onIconsetAdded)));Z=(X=M||S.isAnimatedIcon?gLg(S.icon):void 0)&&!X.lazyLoad;b=X&&((n=X)==null?void 0:n.lazyLoad)&&(X.lottiePlayerProps.animationConfig.animationData?!0:$z.get(S.isDarkTheme?X.pathDarkTheme:X.path)?!0:!1);if(Z||b)return S.applyAnimatedIcon(H,X,S.iconset),O.return();if(b||
(F=X)==null||!F.lazyLoad){O.jumpTo(2);break}f=NAs(X,S.isDarkTheme);S.applyStaticIcon(S.iconset,H,S.iconName,p,M);return O.yield(f,3);case 3:return O.yield(S.renderIcon(S.targetContainer,S.icon),4);case 4:return O.return();case 2:S.applyStaticIcon(S.iconset,H,S.iconName,p,M),_.UK(O)}})};
_.R.getContainer=function(p){var J,S=(J=I5s(this.hostElement))==null?void 0:J.host;J=!!S&&!!S.polymerController;if(!p||J)return p?this.getTargetContainer(p,S):this.hostElement};
_.R.getTargetContainer=function(p,J){var S=_.Jn(J).querySelector("#"+p);S||(p=new _.TG("yt-icon container missing",J.is,p),_.jD(p));return S};
_.R.applyStaticIcon=function(p,J,S,H,M){M&&this.removeAnimatedIcon(J);this.removeIconShape();M=M&&!!this.iconType&&!!this.iconShapeData&&_.z("kevlar_use_wil_icons");try{M?this.applyIconShape(!1,J):p.applyIcon(J,S)}catch(X){this.handleError(X,H,J)}};
_.R.applyIconShape=function(p,J){this.iconset&&J&&(this.removeStaticIcon(this.iconset,J),p&&this.removeAnimatedIcon(J));p={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var S=_.K(this.iconShapeDataSignal);J=S.next().value;S=S.next().value;var H=_.K(this.renderingOptionsSignal),M=H.next().value;H=H.next().value;S(this.iconShapeData);H(p);if(!this.wizHasRendered)for(this.wizHasRendered=!0,p=_.K(uAL(J,M)).next().value;p.firstChild;)_.Jn(this.hostElement).appendChild(p.firstChild)};
_.R.removeIconShape=function(){if(_.z("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.R.removeStaticIcon=function(p,J){p.removeIcon(J)};
_.R.applyAnimatedIcon=function(p,J,S){this.removeStaticIcon(S,p);this.removeIconShape();var H;S=this.animatedIconElement&&((H=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:H.type)===J.type;if(this.animatedIconElement&&S){this.animatedIconElement.polymerController.animatedIcon=J;var M;((M=this.animatedIconElement)==null?void 0:M.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=J,this.animatedIconElement.polymerController.active=this.active,_.z("delhi_modern_web_player_icons")?(J=tv9(p,this.icon)&&p.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=J?J.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.z("kevlar_use_wil_icons")?
p.insertBefore(this.animatedIconElement,p.childNodes[0]):(p=_.Jn(p),p.insertBefore(this.animatedIconElement,p.childNodes[0]))};
_.R.removeAnimatedIcon=function(p){_.z("kevlar_use_wil_icons")?this.animatedIconElement&&p.contains(this.animatedIconElement)&&p.removeChild(this.animatedIconElement):(p=_.Jn(p),this.animatedIconElement&&p.contains(this.animatedIconElement)&&p.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.R.handleError=function(p,J,S){_.cL(p,this.iconName,J,S);J=DMk(S,this.icon);var H=!1;window.location.href.includes("JpymaW6Lh2w")?H=!0:S._svgIcon&&(S=(S=S._svgIcon.parentNode)?S.tagName:"unknown",_.cL(p,S),S==="YT-ICON"&&p.name==="NotFoundError"?H=!0:p.name==="NotFoundError"&&J&&(H=!0));H?_.xQ(p):_.jD(p)};
_.vh.Object.defineProperties(qa,{template:{configurable:!0,enumerable:!0,get:function(){if(m$8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;
bJv===void 0&&(bJv=document.createElement("template"));var H=bJv;S.call(J,H.content.cloneNode(!0),p.content.firstChild);m$8=p}p=m$8;return p}}});
qa.prototype.handlePropertyChange=qa.prototype.handlePropertyChange;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],qa.prototype,"actionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",String)],qa.prototype,"icon",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],qa.prototype,"active",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],qa.prototype,"defaultToFilled",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],qa.prototype,"isAnimatedIcon",void 0);
_.V([_.N({value:24}),_.Y("design:type",Number)],qa.prototype,"size",void 0);_.V([_.N({value:""}),_.Y("design:type",String)],qa.prototype,"targetContainer",void 0);_.V([_.N(),_.Y("design:type",Object)],qa.prototype,"animatedIconElement",void 0);_.V([_.N(),_.Y("design:type",Object)],qa.prototype,"isDarkTheme",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qa.prototype,"ariaHidden",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],qa.prototype,"ariaLabel",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],qa.prototype,"role",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],qa.prototype,"tabindex",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],qa.prototype,"title",void 0);_.V([_.N(),_.Y("design:type",String)],qa.prototype,"style",void 0);_.V([_.N(),_.Y("design:type",String)],qa.prototype,"iconFilter",void 0);_.V([_.N(),_.Y("design:type",String)],qa.prototype,"gradientColor",void 0);
_.V([_.bO("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],qa.prototype,"handlePropertyChange",null);_.V([_.sD({is:"yt-icon",noInjection:!0})],qa);var lQX="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),qRk=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var AUU={};AUU.YtPlaintextBehavior=[_.ua,{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){_.GF&&(p=p.detail.keyboardEvent,p.stopImmediatePropagation(),p.preventDefault())}}];var PD4;var zI4;var aO=function(){var p=_.T.apply(this,arguments)||this;p.ignoreShadyDom=!1;p.hasChange_=!1;p.hasSetTitle_=!1;p.useIOObserverForVisibilityLogging_=_.z("kevlar_use_vimio_behavior")&&_.jn("INNERTUBE_CLIENT_NAME")==="WEB";p.ytFormattedStringObserverHandlerKeys_=void 0;return p};
_.Q(aO,_.T);_.R=aO.prototype;_.R.created=function(){this.useIOObserverForVisibilityLogging_=_.z("kevlar_use_vimio_behavior")&&_.jn("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.R.ready=function(){_.jn("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_()};
_.R.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.R.detached=function(){this.unobserveIOObservers_()};
_.R.clearContents_=function(){for(var p=this.getRoot(),J=p.lastChild;J&&J.tagName!=="STYLE";){try{p.removeChild(J)}catch(S){break}J=p.lastChild}};
_.R.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var p=_.K(this.ytFormattedStringObserverHandlerKeys_),J=p.next();!J.done;J=p.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(J.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.R.resetForAttributedString=function(){var p=this.getRoot();!p.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),p.appendChild(this.ytAttributedStringElementRef))};
_.R.resetForFormattedString=function(){var p=this.getRoot(),J=p.querySelector("yt-attributed-string");J&&(this.ytAttributedStringElementRef=p.removeChild(J))};
_.R.textChanged=function(){this.textChanged_(this.text)};
_.R.textChanged_=function(p){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!p||!p.runs&&!p.simpleText;if(_.z("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var J=this.hostElement.firstChild;J&&J.nodeName==="FONT";){var S=J;J=J.nextSibling;this.hostElement.removeChild(S)}J=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
S=p.simpleText;var H;!S&&((H=p.runs)==null?void 0:H.length)===1&&this.isSimpleString_(p.runs[0])&&(S=p.runs[0].text);S!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.jn("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(S!==void 0){try{J.textContent=S}catch(M){}J.textContent||(this.isEmpty=!0)}else p=p.runs,S!==void 0&&(p=[{text:S}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),p&&this.updateText_(p),
J.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.R.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)};
_.R.computeAriaLabel_=function(p){return p};
_.R.computeEllipsisTruncateStyling=function(p,J){return p&&!J};
_.R.computeUseAttributedString=function(p){return _.z("web_replace_formatted_with_attributed_string")&&SF3(p)&&!this.disableAttributedString&&!this.enableContentEditable};
_.R.setNodeStyle_=function(p,J){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.z("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?J.removeAttribute("dir"):J.setAttribute("dir","auto");J.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");J.style.color="";var S=null;this.noStyles||(p.bold&&(J.classList.add("bold"),S="bold"),p.deemphasize&&(J.classList.add("deemphasize"),S="deemphasize"),p.italics&&J.classList.add("italic"),
p.strikethrough&&J.classList.add("strikethrough"),p.errorUnderline&&(J.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),p.bracket&&J.classList.add("bracket"),p.textColor&&(J.style.color=_.yi(p.textColor)));S!==J.getAttribute("style-target")&&(S?J.setAttribute("style-target",S):J.removeAttribute("style-target"))};
_.R.setUpVisibilityLogging_=function(p,J){var S=this;this.setNodeTrackingParams_(p,J);var H;((H=J.data)==null?0:H.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(p=this.ytRendererBehavior.visibilityObserver.observe(J,function(M){var X=S.ytRendererBehavior.getVisibilityLogger();X&&X.reportShown(M)},this.ytRendererBehavior.visibilityOptionVisible_),J=this.ytRendererBehavior.visibilityObserver.observe(J,function(M){var X=S.ytRendererBehavior.getVisibilityLogger();
X&&X.reportHidden(M)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(p),this.ytFormattedStringObserverHandlerKeys_.push(J))};
_.R.setNodeTrackingParams_=function(p,J){J.data||(J.data={});if((p=p.loggingDirectives?p.loggingDirectives.trackingParams:null)||J.data.trackingParams)J.data.trackingParams=p};
_.R.computeHasLinkOnly_=function(p){return!(!p||p.length!==1||this.noEndpoints||!p[0].navigationEndpoint)};
_.R.getRoot=function(){var p=this.buildScopeDomOptions();return this.enableContentEditable?_.Jn(_.Jn(this.hostElement,p).querySelector("[contenteditable]")):_.Jn(this.hostElement,p)};
_.R.fixContenteditableScope=function(){var p=function(J){J&&(J.nodeType===1&&J.classList&&(J.classList.add("style-scope"),J.classList.add("yt-formatted-string")),J.childNodes&&J.childNodes.forEach(function(S){p(S)}))};
p(this.getRoot())};
_.R.updateText_=function(p){for(var J=p.length,S=this.getRoot(),H=S.firstChild;H&&H.nodeName==="STYLE";)H=H.nextSibling;for(var M=0;M<J&&H;){var X=p[M],Z=_.z("remove_cr_char")&&X.text?X.text.replace("\r",""):X.text;if(this.isSimpleString_(X)&&!this.useMixedDirectionFormattedStrings)if(H.nodeName==="#text"){H.textContent!=Z&&(H.textContent=Z);M++;H=H.nextSibling;continue}else break;if(_.e(X,yM))break;else if(!this.noEndpoints&&X.navigationEndpoint){if(H.nodeName!=="A")break;this.setDataOnAnchor_(H,
X.navigationEndpoint)}else if(H.nodeName!=="SPAN")break;this.setNodeStyle_(X,H);this.setUpVisibilityLogging_(X,H);H.textContent!=Z&&(H.textContent=Z);M++;H=H.nextSibling}if(H)for(X=S.lastChild,H=M?H.previousSibling:null;X&&X!=H;){try{S.removeChild(X)}catch(n){break}X=S.lastChild}M!==J&&this.addTextNodes_(p,M)};
_.R.addTextNodes_=function(p,J){for(var S=document.createDocumentFragment(),H=p.length;J<H;J++){var M=p[J],X=_.z("remove_cr_char")&&M.text?M.text.replace("\r",""):M.text;if(this.isSimpleString_(M)&&!this.useMixedDirectionFormattedStrings)S.appendChild(document.createTextNode(X));else{var Z=_.e(M,yM);if(Z){if(Z.image){var n=document.createElement("img");Z.isCustomEmoji||n.classList.add("small-emoji");n.classList.add("emoji");Z.isCustomEmoji&&(n.dataset.emojiId=Z.emojiId);n.src=_.I4(Z.image.thumbnails,
this.emojiSize);(M=this.get("image.accessibility.accessibilityData.label",Z))?n.alt=M:Z.shortcuts&&Z.shortcuts.length>0?n.alt=Z.shortcuts[0]:Z.emojiId&&(n.alt=Z.emojiId);S.appendChild(n);this.hasEmoji=!0}}else!this.noEndpoints&&M.navigationEndpoint?(n=document.createElement("a"),n.classList.add("yt-simple-endpoint"),n.setAttribute("spellcheck","false"),this.setDataOnAnchor_(n,M.navigationEndpoint)):n=document.createElement("span"),this.setNodeStyle_(M,n),this.setUpVisibilityLogging_(M,n),n.appendChild(document.createTextNode(X)),
S.appendChild(n)}}this.getRoot().appendChild(S)};
_.R.isSimpleString_=function(p){return(this.noEndpoints||!p.navigationEndpoint)&&!_.e(p,yM)&&(this.noStyles||!(p.bold||p.deemphasize||p.italics||p.strikethrough||p.errorUnderline||p.bracket||p.textColor))&&!p.loggingDirectives};
_.R.getRawText=function(){return _.E4(this.text)};
_.R.getFirstRunText=function(){var p;if(((p=this.text)==null?0:p.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.R.setFirstRunText=function(p){var J;((J=this.text)==null?0:J.runs)&&this.text.runs[0]&&(this.text.runs[0].text=p,this.textChanged_(this.text))};
_.R.setDataOnAnchor_=function(p,J){var S=this;!_.z("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(J)||this.isSignalServiceEndpoint_(J)?(p.onclick=this.serviceEndpointHandler_(J),ja(p,"#")):JHk({text:this.text,command:J},function(){m6i(p,J,S.target)})};
_.R.isServiceEndpoint_=function(p){var J;return!((J=_.e(p==null?void 0:p.commandMetadata,_.i7))==null||!J.sendPost)};
_.R.isSignalServiceEndpoint_=function(p){return!!_.e(p,_.X6)};
_.R.serviceEndpointHandler_=function(p){var J=this;return function(S){_.pl(J.hostElement,[p]);S.preventDefault()}};
_.R.overrideAriaLabelChanged_=function(){var p=this.getRoot();this.enableContentEditable&&p&&p.setAttribute("aria-label",this.overrideAriaLabel)};
_.R.enableContentEditableChanged_=function(){var p=this,J=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),J=_.Jn(this.hostElement,J),!J.lastChild||J.lastChild instanceof HTMLElement&&J.lastChild.id!=="contenteditable-root"){var S=document.createElement("div");S.id="contenteditable-root";S.setAttribute("contenteditable","true");S.setAttribute("dir","auto");S.onfocus=function(){p.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
J.appendChild(S);this.overrideAriaLabel&&S.setAttribute("aria-label",this.overrideAriaLabel)}}else S=_.Sh(this.hostElement).firstChild,S instanceof HTMLElement&&S.id==="contenteditable-root"&&_.Jn(this.hostElement,J).removeChild(S)};
_.R.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.R.getNodesForVisibilityLogging_=function(){return _.MU(this.getRoot().childNodes,function(p){var J;return!((J=p.data)==null||!J.trackingParams)})};
_.R.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.R.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var p=this.ytRendererBehavior.getVisibilityLogger();p&&this.getNodesForVisibilityLogging_().forEach(function(J){p.reportShown(J)})}};
_.R.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var p=this.ytRendererBehavior.getVisibilityLogger();p&&this.getNodesForVisibilityLogging_().forEach(function(J){p.reportHidden(J)})}};
_.vh.Object.defineProperties(aO.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.z("enable_mixed_direction_formatted_strings")}}});
aO.prototype.enableContentEditableChanged_=aO.prototype.enableContentEditableChanged_;aO.prototype.overrideAriaLabelChanged_=aO.prototype.overrideAriaLabelChanged_;aO.prototype.ellipsisTruncateChanged_=aO.prototype.ellipsisTruncateChanged_;aO.prototype.textChanged=aO.prototype.textChanged;_.V([_.B(AUU.YtPlaintextBehavior),_.Y("design:type",Object)],aO.prototype,"ytPlaintextBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],aO.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],aO.prototype,"text",void 0);_.V([_.N(),_.Y("design:type",Boolean)],aO.prototype,"noEndpoints",void 0);_.V([_.N(),_.Y("design:type",Boolean)],aO.prototype,"noStyles",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],aO.prototype,"isDarkTheme",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],aO.prototype,"splitLines",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],aO.prototype,"forceDefaultStyle",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],aO.prototype,"ellipsisTruncate",void 0);_.V([_.N(),_.Y("design:type",Object)],aO.prototype,"ignoreShadyDom",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.Y("design:type",Boolean)],aO.prototype,"ellipsisTruncateStyling",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.Y("design:type",String)],aO.prototype,"ariaLabel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],aO.prototype,"isEmpty",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.Y("design:type",Boolean)],aO.prototype,"hasLinkOnly_",void 0);_.V([_.N(),_.Y("design:type",Boolean)],aO.prototype,"hasEmoji",void 0);_.V([_.N(),_.Y("design:type",Boolean)],aO.prototype,"disableAttributedString",void 0);_.V([_.N(),_.Y("design:type",Boolean)],aO.prototype,"isOverlay",void 0);_.V([_.N(),_.Y("design:type",Boolean)],aO.prototype,"linkInheritColor",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],aO.prototype,"noPreWrap",void 0);_.V([_.N(),_.Y("design:type",Boolean)],aO.prototype,"userInput",void 0);_.V([_.N({value:16}),_.Y("design:type",Number)],aO.prototype,"emojiSize",void 0);_.V([_.N(),_.Y("design:type",String)],aO.prototype,"target",void 0);_.V([_.N(),_.Y("design:type",Boolean)],aO.prototype,"enableContentEditable",void 0);_.V([_.N(),_.Y("design:type",String)],aO.prototype,"overrideAriaLabel",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],aO.prototype,"respectHtmlDir",void 0);_.V([_.N(),_.Y("design:type",Boolean)],aO.prototype,"respectLangDir",void 0);_.V([_.U("plaintextOnly"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aO.prototype,"useMixedDirectionFormattedStrings",null);_.V([_.N({computed:"computeUseAttributedString(text)"}),_.Y("design:type",Boolean)],aO.prototype,"useYtAttributedString",void 0);
_.V([_.bO("text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aO.prototype,"textChanged",null);_.V([_.bO("ellipsisTruncate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aO.prototype,"ellipsisTruncateChanged_",null);_.V([_.bO("overrideAriaLabel"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aO.prototype,"overrideAriaLabelChanged_",null);
_.V([_.bO("enableContentEditable"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aO.prototype,"enableContentEditableChanged_",null);_.V([_.sD({is:"yt-formatted-string",disableElementRegistration:!0})],aO);
_.l(aO,"yt-formatted-string",function(){if(zI4===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;PD4===void 0&&(PD4=document.createElement("template"));var H=PD4;S.call(J,H.content.cloneNode(!0),p.content.firstChild);zI4=p}p=zI4;return p});var $$U;var oHE;var eId;var Wf8;var EZ=function(){var p=_.T.apply(this,arguments)||this;p.focused=!1;p.disabled=!1;p.isOverlay=!1;return p};
_.Q(EZ,_.T);EZ.prototype.triggerDown=function(){if(!this.disabled){_.XM(this.hostElement,"down",!0);var p;(p=this.currentAnimation)==null||p.cancel()}};
EZ.prototype.triggerUp=function(){if(!this.disabled){_.XM(this.hostElement,"down",!1);var p=this.fillElement;var J=this.strokeElement;typeof GroupEffect==="function"?(p=new GroupEffect([u5L(p),l7k(J)]),p=new Animation(p,document.timeline)):p=new rKm(p,J);this.currentAnimation=p;var S;(S=this.currentAnimation)==null||S.play()}};
_.V([_.FM(".stroke"),_.Y("design:type",HTMLElement)],EZ.prototype,"strokeElement",void 0);_.V([_.FM(".fill"),_.Y("design:type",HTMLElement)],EZ.prototype,"fillElement",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],EZ.prototype,"focused",void 0);_.V([_.N(),_.Y("design:type",Object)],EZ.prototype,"disabled",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],EZ.prototype,"isOverlay",void 0);_.V([_.sD({is:"yt-interaction",disableElementRegistration:!0})],EZ);
_.l(EZ,"yt-interaction",function(){if(Wf8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;eId===void 0&&(eId=document.createElement("template"));var H=eId;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Wf8=p}p=Wf8;return p},{mode:2});var YN=function(){return _.T.apply(this,arguments)||this};
_.Q(YN,_.T);_.R=YN.prototype;_.R.ready=function(){var p=this,J=_.Jn(this.hostElement).querySelector("#button");J.addEventListener("focus",function(){zsq||(zsq=new PdE);p.keyboardFocused=zsq.isKeyBoardInUse()});
J.addEventListener("blur",function(){p.keyboardFocused=!1;p.rippleUp_()})};
_.R.computeTabIndex_=function(p){return p?-1:0};
_.R.computeButtonAriaPressed_=function(p){if(this.toggleable)return p?"true":"false"};
_.R.rippleDown_=function(){_.Jn(this.hostElement).querySelector("#interaction").triggerDown()};
_.R.rippleUp_=function(){_.Jn(this.hostElement).querySelector("#interaction").triggerUp()};
_.R.onPressedChanged_=function(){var p=_.Sh(_.Jn(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Sh(_.Jn(this.hostElement).querySelector("#button")).children[0];p&&(p.active=this.pressed)};
YN.prototype.onPressedChanged_=YN.prototype.onPressedChanged_;YN.prototype.rippleUp_=YN.prototype.rippleUp_;YN.prototype.rippleDown_=YN.prototype.rippleDown_;_.V([_.N(),_.Y("design:type",String)],YN.prototype,"label",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],YN.prototype,"disabled",void 0);_.V([_.N(),_.Y("design:type",Boolean)],YN.prototype,"pressed",void 0);_.V([_.N(),_.Y("design:type",Object)],YN.prototype,"toggleable",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],YN.prototype,"untabbable",void 0);_.V([_.N(),_.Y("design:type",Boolean)],YN.prototype,"keyboardFocused",void 0);_.V([_.GI("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YN.prototype,"rippleDown_",null);_.V([_.GI("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YN.prototype,"rippleUp_",null);
_.V([_.bO("pressed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YN.prototype,"onPressedChanged_",null);_.V([_.sD({is:"yt-icon-button",disableElementRegistration:!0})],YN);
_.l(YN,"yt-icon-button",function(){if(oHE===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;$$U===void 0&&($$U=document.createElement("template"));var H=$$U;S.call(J,H.content.cloneNode(!0),p.content.firstChild);oHE=p}p=oHE;return p},{mode:2});var QjE;var CDm=function(){var p=document.body,J=p.appendChild;if(QjE===void 0){var S=document.createElement("template");_.C(S,'\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>');
QjE=S}S=QjE;J.call(p,S.content)};
document.body?CDm():window.addEventListener("DOMContentLoaded",CDm);var yUo=_.YI(["aria-"]),rF={};rF.YtRenderButtonBehavior=[_.x.YtRendererBehavior,_.dF.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!!_.vO().resolve(_.F9(_.CD))&&_.z("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?ja(this.elements_.endpoint,p):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){p=this.buttonClass.split(" ");p=_.K(p);for(var J=p.next();!J.done;J=p.next())J=J.value,_.XM(this.hostElement,J,!0),this.elements_.button&&_.XM(this.elements_.button,J,!0),this.elements_.text&&_.XM(this.elements_.text,J,!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?_.Zr([_.m9(yUo)],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=_.vO().resolve(_.F9(_.CD));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_()?_.oO("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,_.f1(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.f1(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(p,J){if(J)for(p=J.split(" "),p=_.K(p),J=p.next();!J.done;J=p.next())J=J.value,_.XM(this.hostElement,J,!1),this.elements_.button&&_.XM(this.elements_.button,J,!1),this.elements_.text&&_.XM(this.elements_.text,J,!1)},
buttonIconChanged_:function(p){this.elements_.icon?p?(this.elements_.icon.icon=p,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.f1(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.iO(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"&&_.f1(this.elements_.button).appendChild(this.elements_.icon):_.f1(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.iO(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 J=!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":J=!0;_.XM(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();p=_.f1(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;_.f1(this.elements_.endpoint).appendChild(this.elements_.button);_.f1(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.oO("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;_.f1(this.elements_.button).appendChild(this.elements_.text);_.f1(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":J=!0,this.elements_.button=this.getYtIconButton_(),p=_.f1(this.elements_.button).firstElementChild,this.elements_.icon=p,this.setIconActive_(this.elements_.icon),
_.f1(this.elements_.endpoint).appendChild(this.elements_.button)}_.iO(this.hostElement,"is-icon-button",J);_.iO(this.hostElement,"is-paper-button",!J);_.iO(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 S;_.Jn((S=this.container.hostElement)!=null?S:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.f1(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){_.z("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){_.eK(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&&_.pl(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)_.z("handle_service_request_actions")||_.pl(this.hostElement,[this.serviceEndpoint]),
_.cf(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.z("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&&_.JP(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?_.pl(this.hostElement,[p]):_.JP(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,J=_.Jn((p=this.container.hostElement)!=null?p:this.container);J.lastChild&&J.lastChild.tagName!="STYLE";)try{J.removeChild(J.lastChild)}catch(S){break}},
getYtIconButton_:function(){var p=this.reuseEnabled_()?_.oO("yt-icon-button"):document.createElement("yt-icon-button"),J=_.f1(p).firstElementChild;if(J&&J.is!="yt-icon"){for(J=_.f1(p);J.lastChild;)J.removeChild(J.lastChild);J=null}J||(J=this.getIcon_(),this.setIconActive_(J),_.f1(p).appendChild(J));return p},
reuseEnabled_:function(){return _.z("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.oO("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.oO("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.BR4={};
_.BR4.YtButtonBehavior=[rF.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 J;if((J=this.elements_)==null?0:J.button)this.elements_.button.pressed=!!p},
computeIconPositionType_:function(p){return p&&p.iconPosition||null},
computeEndpoint_:function(p){var J=p&&p.navigationEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.url"),H=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return J?J:p&&p.command&&p.command.modalEndpoint?p.command:S&&!H&&p.command?p.command:null},
computeServiceEndpoint_:function(p){var J=p&&p.serviceEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return J?J:S&&p.command?p.command:null},
computeCommand_:function(p){return p&&p.command||null},
computeButtonIcon_:function(p){return p&&p.icon&&p.icon.iconType?_.Xj(p.icon.iconType):null},
computeButtonText_:function(p,J){return!J&&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 J=p&&p.style?p.style.toLowerCase().replace(/_/g,"-")+" ":"";J+=p&&p.size?p.size.toLowerCase().replace(/_/g,"-")+" ":"";p.colorData&&p.colorData.basicColorPaletteData&&p.colorData.basicColorPaletteData.borderColor&&(J+="palette-with-border");return J.trim()}}];var Wv={};var U$L;var sj8;var gHd,t8n=function(){return gHd!==void 0?gHd:gHd=document.createElement("template")};
document.head.appendChild(t8n().content);var hI8;var D$m,kh8=function(){return D$m!==void 0?D$m:D$m=document.createElement("template")};
document.head.appendChild(kh8().content);var NRq;var TRd,d$8=function(){return TRd!==void 0?TRd:TRd=document.createElement("template")};
document.head.appendChild(d$8().content);var u5d;var l7m=document.head,V88=l7m.appendChild,qkm;if(u5d===void 0){var a7d=document.createElement("template");_.C(a7d,"\x3c!--css-build:shady--\x3e");a7d.content.insertBefore(d$8().content.cloneNode(!0),a7d.content.firstChild);u5d=a7d}qkm=u5d;V88.call(l7m,qkm.content);var EHn=document.head,Yk8=EHn.appendChild,rU8;if(NRq===void 0){var jj8=document.createElement("template");_.C(jj8,"\x3c!--css-build:shady--\x3e");jj8.content.insertBefore(kh8().content.cloneNode(!0),jj8.content.firstChild);NRq=jj8}rU8=NRq;Yk8.call(EHn,rU8.content);var wkd=document.head,x$E=wkd.appendChild,cUo;if(hI8===void 0){var I7U=document.createElement("template");_.C(I7U,"\x3c!--css-build:shady--\x3e");I7U.content.insertBefore(t8n().content.cloneNode(!0),I7U.content.firstChild);hI8=I7U}cUo=hI8;x$E.call(wkd,cUo.content);var Lf8;_.QI("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");Lf8=_.z("web_button_rework")&&_.wY("BUTTON_REWORK")||_.z("web_button_rework_with_live");_.jp=function(){return _.T.apply(this,arguments)||this};
_.Q(_.jp,_.T);_.jp.prototype.created=function(){this.openPopupConfig=_.jn("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.jp.prototype.onYtNavigate_=function(p){var J=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);J&&(this.ytOpenPopupBehavior.openPopup(J),p.stopPropagation(),p.preventDefault())};
_.vh.Object.defineProperties(_.jp,{template:{configurable:!0,enumerable:!0,get:function(){if(sj8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
var J=p.content,S=J.insertBefore;U$L===void 0&&(U$L=document.createElement("template"));var H=U$L;S.call(J,H.content.cloneNode(!0),p.content.firstChild);sj8=p}p=sj8;return p}}});
_.jp.prototype.onYtNavigate_=_.jp.prototype.onYtNavigate_;_.V([_.B(_.T_.YtOpenPopupBehavior),_.Y("design:type",Object)],_.jp.prototype,"ytOpenPopupBehavior",void 0);_.V([_.B(_.BR4.YtButtonBehavior),_.Y("design:type",Object)],_.jp.prototype,"ytButtonBehavior",void 0);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],_.jp.prototype,"onYtNavigate_",null);
_.V([_.sD({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:Lf8})],_.jp);var px4;var J6m=_.z("web_button_rework")&&_.wY("BUTTON_REWORK")||_.z("web_button_rework_with_live"),wF=function(){var p=_.T.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(J){_.cf(p.hostElement,"yt-service-request-sent-button-renderer",J)};
return p};
_.Q(wF,_.T);_.R=wF.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.R.onClick=function(p){var J,S=this.disabled||((J=this.data)==null?void 0:J.isDisabled);J=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");S&&J&&p.stopPropagation()};
_.R.computeIcon=function(){var p,J,S=(p=this.data)==null?void 0:(J=p.icon)==null?void 0:J.iconType;if(S)return _.Xj(S)};
_.R.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.R.handleUpdateButtonAction=function(p){p=_.e(p,MoM);var J=_.e(p==null?void 0:p.updatedButton,_.Za);if(this.data&&p&&J){var S=this.data;S.targetId&&p.targetId&&S.targetId===p.targetId&&(this.data=J)}};
_.vh.Object.defineProperties(wF.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var p=this;if(this.data){var J=wxg({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.cf(p.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.cf(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});J.alignByText=this.alignByText;return J}}}});
_.vh.Object.defineProperties(wF,{template:{configurable:!0,enumerable:!0,get:function(){if(px4===void 0){var p=document.createElement("template");_.C(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>');px4=p}p=px4;return p}}});
wF.prototype.onClick=wF.prototype.onClick;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],wF.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],wF.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wF.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],wF.prototype,"isPressed",void 0);
_.V([_.N(),_.Y("design:type",Object)],wF.prototype,"forceIconButton",void 0);_.V([_.N(),_.Y("design:type",Object)],wF.prototype,"forceIconOnly",void 0);_.V([_.N(),_.Y("design:type",Object)],wF.prototype,"forceModernIconButton",void 0);_.V([_.N(),_.Y("design:type",Object)],wF.prototype,"skipCommandHandling",void 0);_.V([_.N(),_.Y("design:type",Object)],wF.prototype,"alignByText",void 0);_.V([_.N(),_.Y("design:type",Object)],wF.prototype,"buttonTooltipPosition",void 0);
_.V([_.N(),_.Y("design:type",Object)],wF.prototype,"fitToVisibleBounds",void 0);_.V([_.N({computed:"computeTooltip(data)"}),_.Y("design:type",Object)],wF.prototype,"tooltip",void 0);_.V([_.N(),_.Y("design:type",Object)],wF.prototype,"overrides",void 0);_.V([_.N(),_.Y("design:type",Boolean)],wF.prototype,"disabled",void 0);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],wF.prototype,"onClick",null);
_.V([_.U("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wF.prototype,"computedButtonShape",null);_.V([_.sD({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!J6m,cssBuildOptOut:!0}),_.sD({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!J6m,cssBuildOptOut:!0})],wF);var SRd;var Hrv;var xN=function(){var p=_.T.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};
_.Q(xN,_.T);_.R=xN.prototype;_.R.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.R.ready=function(){var p=this.shouldShowPlaceholder_();_.XM(this.hostElement,"no-transition",!0);p&&this.hostElement.classList.add("with-placeholder")};
_.R.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.R.isThumbPreloaded_=function(p){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",p)};
_.R.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||Mv8};
_.R.computeThumbnailSrc_=function(p){return p&&p.thumbnails?_.I4(p.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.R.computeAlt_=function(){var p=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&p||""};
_.R.thumbnailChanged_=function(){var p=_.K([this.thumbnail,this.oldThumbnail_]),J=p.next().value;p=p.next().value;this.oldThumbnail_=J;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(p=this.computeThumbnailSrc_(p),this.computeThumbnailSrc_(J)===p))return;_.z("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(J)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):J&&_.wY("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.mN(this,this.onReload_):_.mN(this,this.onShow_):this.resetImage_();J&&(this.hostElement.style.opacity=""+J.opacity)}};
_.R.delayedSrcChanged_=function(){var p=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===p||this.resetImage_()};
_.R.setSrc_=function(p){p?(_.Jn(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Jn(this.hostElement).querySelector("#img").src=p):(_.Jn(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.R.resetImage_=function(){cK4(this.hostElement);this.empty_=!0;this.setSrc_(Mv8);this.ytRendererBehavior.invalidate(!1)};
_.R.observePlaceholderColor_=function(){var p=this.thumbnail&&this.thumbnail.placeholderColor;p?this.hostElement.style.backgroundColor=_.yi(p):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.R.onLoad_=function(){_.Jn(this.hostElement).querySelector("#img").src&&_.Jn(this.hostElement).querySelector("#img").src!==Mv8&&(xi4(this.hostElement),this.notifyOnLoaded&&_.cf(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.R.onError_=function(){var p=this;if(_.z("web_use_cache_for_image_fallback"))M8i(_.Jn(this.hostElement).querySelector("#img").src).then(function(J){p.objectURL_=_.qG(J).toString();p.setSrc_(p.objectURL_)}).catch(function(){_.z("kevlar_woffle_fallback_image")&&p.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.R.onPrescanVisible=function(){this.onShow_()};
_.R.onVisible=function(){if(_.z("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.R.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var p=this.computeSrc_();p!==_.Jn(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(p))}};
_.R.onReload_=function(){this.empty_=!1;var p=this.computeSrc_();p!==_.Jn(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(p))};
_.R.shouldShowPlaceholder_=function(){return _.z("kevlar_thumbnail_bg")};
xN.prototype.observePlaceholderColor_=xN.prototype.observePlaceholderColor_;xN.prototype.delayedSrcChanged_=xN.prototype.delayedSrcChanged_;xN.prototype.thumbnailChanged_=xN.prototype.thumbnailChanged_;_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],xN.prototype,"alt",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],xN.prototype,"ariaHidden",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],xN.prototype,"ariaLabel",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],xN.prototype,"hidden",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],xN.prototype,"id",void 0);_.V([_.B(_.G_.YtVisibilityBehavior),_.Y("design:type",Object)],xN.prototype,"ytVisibilityBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",String)],xN.prototype,"delayedSrc",void 0);
_.V([_.N(),_.Y("design:type",Object)],xN.prototype,"thumbnail",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],xN.prototype,"loaded",void 0);_.V([_.N(),_.Y("design:type",Boolean)],xN.prototype,"notifyOnLoaded",void 0);_.V([_.N(),_.Y("design:type",Number)],xN.prototype,"height",void 0);_.V([_.N(),_.Y("design:type",Number)],xN.prototype,"width",void 0);_.V([_.N({value:function(){return"width"}}),
_.Y("design:type",String)],xN.prototype,"dimension",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],xN.prototype,"fit",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],xN.prototype,"fitHeight",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],xN.prototype,"fitWidth",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],xN.prototype,"objectFit",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],xN.prototype,"objectPosition",void 0);_.V([_.N(),_.Y("design:type",String)],xN.prototype,"preferredThumbnail",void 0);_.V([_.N({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.Y("design:type",String)],xN.prototype,"alt_",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],xN.prototype,"sharedTooltipText",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],xN.prototype,"ftlEligible",void 0);_.V([_.N({value:void 0}),_.Y("design:type",String)],xN.prototype,"observeHiddenOption",void 0);_.V([_.N({value:"observe_once"}),_.Y("design:type",String)],xN.prototype,"observePrescanOption",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],xN.prototype,"roundedContainer",void 0);
_.V([_.An("thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xN.prototype,"thumbnailChanged_",null);_.V([_.An("delayedSrc"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xN.prototype,"delayedSrcChanged_",null);_.V([_.bO("thumbnail.placeholderColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xN.prototype,"observePlaceholderColor_",null);
_.V([_.sD({is:"yt-img-shadow",disableElementRegistration:!0})],xN);var Mv8=_.wY("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.pI()(xN,"yt-img-shadow",function(){if(Hrv===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;SRd===void 0&&(SRd=document.createElement("template"));var H=SRd;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Hrv=p}p=Hrv;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 KJw;_.c3=new _.ni("SCREEN_MANAGER_TOKEN");KJw=new _.ni("LOG_INITIAL_SCREEN_TOKEN");var Xxd=yI({entities:{}});_.IO=Bv(Xxd)(Xxd.entities,{selectSfvAudioItemPlaybackState:function(p,J){var S,H;p=(H=_.RR(p,"sfvAudioItemCurrentlyPlayingEntity",J))!=null?H:void 0;return(S=p==null?void 0:p.sfvAudioItemPlaybackState)!=null?S:void 0},
playlistLoopStateEntitySelector:IQ3,toggleMenuServiceItemEntitySelector:Ljt});_.LD=_.d(function(p){function J(I){return _.e(I,_.mO)}
function S(){var I=H().isTogglingDisabled||y()&&H().toggledIsTogglingDisabled,Z3=I||A()?y():!y();t(Z3);k(!1);if(!I){var vg;(vg=Z)==null||vg(!!Z3)}var yX;((yX=X)==null?0:yX())||_.VK(_.vO().resolve(_.c3),H().trackingParams);var Pg;if(!Z3||!J(H().defaultButtonViewModel)||(Pg=X)!=null&&Pg()){var ov;!J(H().toggledButtonViewModel)||((ov=X)==null?0:ov())||_.VK(_.vO().resolve(_.c3),J(H().toggledButtonViewModel).trackingParams)}else _.VK(_.vO().resolve(_.c3),J(H().defaultButtonViewModel).trackingParams)}
var H=p.data,M=p.buttonShapeOverrides,X=p.disableExplicitClickLogging,Z=p.onToggle,n=p.style,b=p.useOutlinedIcon,F=p.className,f=function(){var I,Z3;return y()?(I=p.animatedTextPropsToggled)==null?void 0:I.call(p):(Z3=p.animatedTextPropsDefault)==null?void 0:Z3.call(p)},O=_.BW(function(){return f()?Object.assign({},f(),{shouldAnimate:D()}):void 0},void 0,"Zp4uoe"),A=function(){var I;
return((I=q())==null?void 0:I.isToggled)!==void 0},P=_.K(_.re(function(){var I,Z3,vg;
return A()?(I=q())==null?void 0:I.isToggled:(vg=M==null?void 0:(Z3=M())==null?void 0:Z3.toggled)!=null?vg:H().isToggled})),W=P.next().value;
P=P.next().value;var y=W,t=P;P=_.K(_.re(function(){var I,Z3;return(I=p.animatedTextPropsToggled)==null?void 0:(Z3=I.call(p))==null?void 0:Z3.shouldAnimate}));
W=P.next().value;P=P.next().value;var D=W,k=P;W=_.K(_.eQ(!1,void 0,"mq3Zfe"));var E=W.next().value,a=W.next().value,q=_.fb(function(I){a:{var Z3=H().entityKey,vg=H().toggledStateEntitySelectorType;if(vg)switch(vg){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Z3)break;I=_.IO.selectSfvAudioItemPlaybackState(I,Z3);if(I==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){I={isToggled:!0};break a}if(I){I={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":I={isToggled:_.HZX(I).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":I={isToggled:_.HZX(I).includes("engagement-panel-live-chat-item-section")};break a;default:_.xQ(new _.TG("Error: entitySelectorType defined but not matched in selector.",I,vg))}I=void 0}return I}),w=function(){return Object.assign({},M==null?void 0:M(),{onToggle:S,
toggleable:!0,toggled:y(),focused:E()})};
return _.m("toggle-button-view-model",{"on:focusin":_.Kb(function(){var I=_.vO().resolve(_.F9(_.CD));I&&a(I.isKeyBoardInUse());return!1}),
"on:focusout":_.Kb(function(){a(!1);return!1})},_.m(_.v,{cond:function(){return y()?J(H().toggledButtonViewModel):J(H().defaultButtonViewModel)},
then:function(I){return _.m(_.D0,{data:I,className:F,style:n,useOutlinedIcon:b,buttonOverrides:w,animatedTextProps:O})}}))},"da");
_.LD.idomCompat={callbacks:{onToggle:!0}};_.ci(_.d(function(p){return _.m("yt-toggle-button-view-model",{class:function(){var J;return(J=p.scopingClassName)==null?void 0:J.call(p)}},_.m(_.LD,{data:function(){var J;
return(J=p.data)==null?void 0:J.call(p)},
buttonShapeOverrides:function(){var J;return(J=p.overrides)==null?void 0:J.call(p)},
animatedTextPropsDefault:function(){var J;return(J=p.animatedTextPropsDefault)==null?void 0:J.call(p)},
animatedTextPropsToggled:function(){var J;return(J=p.animatedTextPropsToggled)==null?void 0:J.call(p)},
disableExplicitClickLogging:function(){var J;return(J=p.disableExplicitClickLogging)==null?void 0:J.call(p)},
onToggle:function(J){var S;return(S=p.onToggle)==null?void 0:S.call(p,J)},
style:function(){var J;return(J=p.style)==null?void 0:J.call(p)},
useOutlinedIcon:function(){var J;return(J=p.useOutlinedIcon)==null?void 0:J.call(p)},
className:function(){var J;return(J=p.className)==null?void 0:J.call(p)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.fD,
buttonShapeOverrides:_.fD,overrides:_.fD,animatedTextPropsDefault:_.fD,animatedTextPropsToggled:_.fD,disableExplicitClickLogging:_.fD,onToggle:_.jr,style:_.fD,useOutlinedIcon:_.fD,className:_.fD,scopingClassName:_.fD}});var pe=function(){return _.T.apply(this,arguments)||this};
_.Q(pe,_.T);pe.prototype.onTap=function(p){p.stopPropagation();p=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.BY("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:p})):this.ytLiveChatReduxBehavior.dispatch(_.P$("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:p}))};
_.vh.Object.defineProperties(pe.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=_.e(this.data.toggleButton,_.f5),J;if(Number(((J=this.likeCountState)==null?void 0:J.likeCountIfIndifferentNumber)||"0")===0){var S;J=((S=this.data.likeCountPlaceholder)==null?void 0:S.content)||""}else{var H,M,X;J=((H=this.likeCountState)==null?void 0:(M=H.likeCountIfIndifferent)==null?void 0:M.content)||((X=this.data.likeCountPlaceholder)==null?void 0:X.content)||""}var Z,n;S=((Z=this.likeCountState)==null?void 0:(n=
Z.likeCountIfLiked)==null?void 0:n.content)||"1";Z=_.e(p.toggledButtonViewModel,_.mO);return Object.assign({},p,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.e(p.defaultButtonViewModel,_.mO),{title:J})},toggledButtonViewModel:{buttonViewModel:Object.assign({},Z,{title:S})}})}}}});
pe.prototype.onTap=pe.prototype.onTap;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],pe.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.i1),_.Y("design:type",Object)],pe.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],pe.prototype,"data",void 0);
_.V([_.N({selectorArgs:["data.likeCountEntityKey"],selector:M1W}),_.Y("design:type",Object)],pe.prototype,"likeCountState",void 0);_.V([_.N({selectorArgs:["data.engagementStateKey"],selector:br4}),_.Y("design:type",Object)],pe.prototype,"engagementState",void 0);_.V([_.U("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pe.prototype,"isLiked",null);
_.V([_.U("data","likeCountState","isLiked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pe.prototype,"toggleButton",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],pe.prototype,"onTap",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],pe);
_.l(pe,"yt-live-chat-like-button-view-model",function(){if(KfM===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;RIM===void 0&&(RIM=document.createElement("template"));var H=RIM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);KfM=p}p=KfM;return p},{mode:0});var irL;var RFM;var J0=function(){return _.T.apply(this,arguments)||this};
_.Q(J0,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],J0.prototype,"data",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],J0);
_.l(J0,"yt-live-chat-paid-message-footer-renderer",function(){if(RFM===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;irL===void 0&&(irL=document.createElement("template"));var H=irL;S.call(J,H.content.cloneNode(!0),p.content.firstChild);RFM=p}p=RFM;return p},{mode:0});var Kj4;var Zr8;var nL8;var GOo,brM=function(){if(GOo!==void 0)return GOo;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;nL8===void 0&&(nL8=document.createElement("template"));var H=nL8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return GOo=p};var S$=function(){return _.T.apply(this,arguments)||this};
_.Q(S$,_.T);S$.prototype.onTap=function(p){p.stopPropagation()};
_.vh.Object.defineProperties(S$.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=_.e(this.data.replyButton,_.mO),J,S,H,M,X,Z,n,b=Number(((J=this.replyCountState)==null?void 0:J.replyCountNumber)||"0")===0?(S=this.data)==null?void 0:(H=S.replyCountPlaceholder)==null?void 0:H.content:((M=this.replyCountState)==null?void 0:(X=M.replyCount)==null?void 0:X.content)||((Z=this.data)==null?void 0:(n=Z.replyCountPlaceholder)==null?void 0:n.content)||"",F;return Object.assign({},
p,{title:b,accessibilityText:(F=this.replyCountState)==null?void 0:F.replyButtonAccessibilityText})}}}});
_.vh.Object.defineProperties(S$,{template:{configurable:!0,enumerable:!0,get:function(){return brM()}}});
S$.prototype.onTap=S$.prototype.onTap;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],S$.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],S$.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.i1),_.Y("design:type",Object)],S$.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],S$.prototype,"data",void 0);
_.V([_.N({selectorArgs:["data.replyCountEntityKey"],selector:function(p,J){return _.RR(p.entities,"replyCountEntity",J)}}),
_.Y("design:type",Object)],S$.prototype,"replyCountState",void 0);_.V([_.U("data","replyCountState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],S$.prototype,"buttonViewModel",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],S$.prototype,"onTap",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],S$);_.l(S$,"yt-live-chat-reply-button-view-model",function(){return brM()},{mode:0});var mM8;var Fjv;var H7=function(){var p=_.T.apply(this,arguments)||this;p.ariaLabel="";return p};
_.Q(H7,_.T);
H7.prototype.dataChanged=function(){for(var p=(0,_.Rf)(_.Jn(this.hostElement).querySelector("#image"));p.firstChild;)p.removeChild(p.firstChild);if(this.data)if(this.data.icon){var J=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(J.polymerController.icon="yt-sys-icons:shield-filled",J.polymerController.defaultToFilled=!0):J.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();p.appendChild(J)}else if(this.data.customThumbnail){J=document.createElement("img");
var S=_.qfi(this.data.customThumbnail.thumbnails,16);S?(J.src=S,p.appendChild(J),J.setAttribute("alt",this.hostElement.ariaLabel||"")):_.xQ(new _.TG("Could not compute URL for thumbnail",this.data.customThumbnail))}};
H7.prototype.identity=function(p){return p};
H7.prototype.computeType=function(p){return Sr(p||void 0)};
H7.prototype.dataChanged=H7.prototype.dataChanged;_.V([_.N(),_.Y("design:type",Object)],H7.prototype,"data",void 0);_.V([_.N({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.Y("design:type",Object)],H7.prototype,"ariaLabel",void 0);_.V([_.N({computed:"computeType(data)",reflectToAttribute:!0}),_.Y("design:type",String)],H7.prototype,"type",void 0);
_.V([_.N({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.Y("design:type",String)],H7.prototype,"sharedTooltipText",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("live_chat_enable_new_moderator_badge")}}),
_.Y("design:type",Boolean)],H7.prototype,"enableNewModeratorBadge",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H7.prototype,"dataChanged",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],H7);
_.l(H7,"yt-live-chat-author-badge-renderer",function(){if(Fjv===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;mM8===void 0&&(mM8=document.createElement("template"));var H=mM8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Fjv=p}p=Fjv;return p},{mode:0});var vL8;var fQn;var MF=function(){return _.T.apply(this,arguments)||this};
_.Q(MF,_.T);_.R=MF.prototype;_.R.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"}}}}};
_.R.computeBadgesInsideChip=function(p){return p?p.filter(function(J){return Sr(J.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.R.computeBadgesOutsideChip=function(p){return this.prependChatBadges||!p?[]:p.filter(function(J){J=Sr(J.liveChatAuthorBadgeRenderer);return J!=="verified"&&J!=="owner"})};
_.R.computeBadgesBeforeChip=function(p){return this.prependChatBadges&&p?p.filter(function(J){J=Sr(J.liveChatAuthorBadgeRenderer);return J!=="verified"&&J!=="owner"}):[]};
_.R.computeIsHighlighted=function(p,J){var S=!!iRg(p,"owner"),H=!!iRg(p,"verified");p=!!iRg(p,"moderator");return(S||H&&!p)&&!J};
_.R.computeAuthorType=function(p){return XKs(p)};
_.R.computeAuthorClass=function(p,J){return J?(p?p+" ":"")+"single-line":p};
_.R.onSeedColorChanged=function(){_.z("live_chat_author_name_color_usernames")||_.z("live_chat_seed_color_usernames")||_.z("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):_.z("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
MF.prototype.onSeedColorChanged=MF.prototype.onSeedColorChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],MF.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],MF.prototype,"authorName",void 0);_.V([_.N(),_.Y("design:type",Array)],MF.prototype,"authorBadges",void 0);
_.V([_.N({computed:"computeAuthorType(authorBadges)"}),_.Y("design:type",String)],MF.prototype,"authorType",void 0);_.V([_.N({computed:"computeAuthorClass(authorType, singleLine)"}),_.Y("design:type",String)],MF.prototype,"authorClass",void 0);_.V([_.N({computed:"computeBadgesInsideChip(authorBadges)"}),_.Y("design:type",Array)],MF.prototype,"badgesInsideChip",void 0);_.V([_.N({computed:"computeBadgesOutsideChip(authorBadges)"}),_.Y("design:type",Array)],MF.prototype,"badgesOutsideChip",void 0);
_.V([_.N({computed:"computeBadgesBeforeChip(authorBadges)"}),_.Y("design:type",Array)],MF.prototype,"badgesBeforeChip",void 0);_.V([_.N({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],MF.prototype,"isHighlighted",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],MF.prototype,"singleLine",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],MF.prototype,"disableHighlighting",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],MF.prototype,"dashboardMoneyFeed",void 0);_.V([_.N({value:_.z("live_chat_prepend_badges"),reflectToAttribute:!0}),_.Y("design:type",Boolean)],MF.prototype,"prependChatBadges",void 0);_.V([_.N(),_.Y("design:type",String)],MF.prototype,"authorNameColor",void 0);_.V([_.FM("#author-name"),_.Y("design:type",HTMLDivElement)],MF.prototype,"username",void 0);
_.V([_.bO("authorNameColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MF.prototype,"onSeedColorChanged",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],MF);
_.l(MF,"yt-live-chat-author-chip",function(){if(fQn===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;vL8===void 0&&(vL8=document.createElement("template"));var H=vL8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);fQn=p}p=fQn;return p},{mode:0});var Or8;var A6v;var Xc=function(){var p=_.T.apply(this,arguments)||this;p.debounceCommand=_.Uj(function(J){p.ytComponentBehavior.resolveCommand(J)},1500);
return p};
_.Q(Xc,_.T);Xc.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",J,S,H=this.isHearted?(J=this.data)==null?void 0:J.unheartCommand:(S=this.data)==null?void 0:S.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.BY("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:p}));(p=_.sa(H))&&this.debounceCommand(p)}};
_.vh.Object.defineProperties(Xc.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var p,J;if(!((p=this.data)==null?0:(J=p.creatorThumbnail)==null?0:J.sources))return{};p={thumbnails:[]};J={};J.url=this.data.creatorThumbnail.sources[0].url;p.thumbnails.push(J);return p}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((J=this.engagementState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((J=this.engagementState)==null?void 0:J.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,J,S;return((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((J=this.engagementState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((S=this.engagementState)==null?void 0:S.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}}});
Xc.prototype.onTap=Xc.prototype.onTap;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Xc.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.i1),_.Y("design:type",Object)],Xc.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Xc.prototype,"data",void 0);
_.V([_.N({selectorArgs:["data.engagementStateKey"],selector:br4}),_.Y("design:type",Object)],Xc.prototype,"engagementState",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xc.prototype,"thumbnailDetails",null);_.V([_.U("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xc.prototype,"isHearted",null);_.V([_.U("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xc.prototype,"isEditable",null);
_.V([_.U("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xc.prototype,"showCreatorView",null);_.V([_.U("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xc.prototype,"showButton",null);_.V([_.U("data","isHearted"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Xc.prototype,"label",null);_.V([_.U("data","isHearted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xc.prototype,"heartHoverText",null);
_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xc.prototype,"onTap",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Xc);
_.l(Xc,"yt-live-chat-creator-heart-view-model",function(){if(A6v===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Or8===void 0&&(Or8=document.createElement("template"));var H=Or8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);A6v=p}p=A6v;return p},{mode:0});var iP=function(p,J){this.serviceId=new zH8(p,J)};
iP.prototype.toString=function(){return this.serviceId.toString()};var Pg8=function(){this.internalMap={}};
_.R=Pg8.prototype;_.R.contains=function(p){return Object.prototype.hasOwnProperty.call(this.internalMap,p)};
_.R.get=function(p){if(this.contains(p))return this.internalMap[p]};
_.R.set=function(p,J){this.internalMap[p]=J};
_.R.getKeys=function(){return Object.keys(this.internalMap)};
_.R.remove=function(p){delete this.internalMap[p]};var Rx=function(){this.mappings=new Pg8;this.errorCallbacks=new Set};
Rx.prototype.getModuleId=function(p){return p.serviceId.getModuleId()};
Rx.prototype.get=function(p){var J=this.mappings.get(p.toString());return zF8(this,J,p)};
Rx.prototype.getMultipleAsync=function(){var p=_.Yp.apply(0,arguments),J=this,S=p.map(function(b){return J.getModuleId(b)}),H=p.map(function(b){return J.mappings.get(b.toString())}).filter(function(b){return b});
if(H.length===p.length)return _.SU(H.map(function(b,F){return zF8(J,b,p[F])}));
var M=uW().loadMultiple(S);H=_.kf(S.map(function(b){return M[b]}));
var X=document.hidden,Z=-1,n=_.PO("get_async_timeout_ms",-1);n>-1&&(Z=setTimeout(function(){_.xQ(new _.TG("Module timeout.",S,X,document.hidden))},n));
return _.Nv(H.then(function(){return p.map(function(b){return zF8(J,J.mappings.get(b.toString()),b)})}).thenCatch(function(b){for(var F=_.K(J.errorCallbacks),f=F.next();!f.done;f=F.next())f=f.value,f(b);
throw b;}),function(){clearTimeout(Z)})};
Rx.prototype.registerService=function(p,J){this.mappings.set(p.toString(),{type:"mapping",value:J});return p};
var zF8=function(p,J,S){switch(J.type){case "mapping":return J.value;case "factory":return J=J.value(),p.mappings.set(S.toString(),{type:"mapping",value:J}),J;default:return _.rm(J)}};
Rx.prototype.onLoadError=function(p){var J=this;this.errorCallbacks.add(p);return function(){J.errorCallbacks.delete(p)}};
_.Ke=new Rx;var $Mo=function(){};
_.R=$Mo.prototype;
_.R.JSC$14326_getRequest=function(p,J,S){J=J===void 0?{}:J;S=S===void 0?C7M:S;var H=J;if(this.isNavigationCommand()){var M,X=(M=_.e(p==null?void 0:p.commandMetadata,_.i7))==null?void 0:M.url;H=_.nWs(p.clickTrackingParams,!0,!1,X,this.JSC$14326_getClientScreen(H))}else H=_.nWs(p.clickTrackingParams,!1,this.includeCsn);H={context:H};if(M=this.getExtension(p))return this.JSC$14326_buildRequest(H,M,J),M=this.getApiUrl(p),X=Object.assign({},{command:p},this.getRequestConfig(p,J)),H={input:M,requestShell:dG(M),
innerTubeRequest:H,config:X},H.config.authStrategy?H.config.authStrategy.identity=S:H.config.authStrategy={identity:S},(p=this.JSC$14326_getRequestKey(p,J))&&!H.config.requestKey&&(H.config.requestKey=p),H;p=new _.TG("Error: Failed to create Request from Command.",p);_.jD(p)};
_.R.getApiUrl=function(p){var J=_.jx(this.getApiPaths(p)),S;(p=(S=_.e(p.commandMetadata,_.i7))==null?void 0:S.apiUrl)&&(J=p);return Voi(l$t(J))};
_.R.isNavigationCommand=function(){return!1};
_.R.JSC$14326_getClientScreen=function(){};
_.R.JSC$14326_getRequestKey=function(){};
_.R.getRequestConfig=function(){};
_.vh.Object.defineProperties($Mo.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var ZX=function(){};
_.Q(ZX,$Mo);ZX.prototype.JSC$14333_getStoreKey=function(){};
ZX.prototype.JSC$14326_getRequestKey=function(p,J){J=J===void 0?{}:J;return this.JSC$14333_getStoreKey(p,J)};var ne=function(){};
_.Q(ne,ZX);ne.prototype.JSC$14326_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:dG("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
ne.prototype.getApiPaths=function(){return[]};
ne.prototype.getExtension=function(){};
ne.prototype.JSC$14326_buildRequest=function(){};var oL8={},eFL=(oL8.GET_DATASYNC_IDS=Du(ne),oL8);var WjE,Qg4,Cgd,tv8,G3,sgp,y6E,UMp,BAL;WjE="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");Qg4=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.un=function(p,J,S,H,M,X,Z,n,b){this.endpointMap=p;this.networkManager=J;this.authService=S;this.responseProcessorMap=H;this.innertubeResponseStore=M;this.contextProcessors=X;this.asyncContextProcessors=Z;this.localInnertubeRouter=n;this.requestSequencer=b;this.inflightRequests=new Map;p.signalEndpointMap||(p.signalEndpointMap={});p.signalEndpointMap=Object.assign({},eFL,p.signalEndpointMap)};
Cgd=function(p,J,S,H,M,X,Z,n,b){if(_.un.instance!==void 0){if(H=_.un.instance,p=[p!==H.endpointMap,J!==H.networkManager,S!==H.authService,M!==H.innertubeResponseStore,X!==H.contextProcessors,Z!==H.asyncContextProcessors,n!==H.localInnertubeRouter],p.some(function(F){return F}))throw new _.TG("InnerTubeTransportService is already initialized",p);
}else _.un.instance=new _.un(p,J,S,H,M,X,Z,n,b)};
_.VI=function(p,J,S){var H=H===void 0?C7M:H;var M=y6E(p,J);return M?new _.UI(function(X,Z){var n,b,F,f,O;return _.G(function(A){switch(A.nextAddress){case 1:return A.yield(M,2);case 2:n=A.yieldResult;b=n.JSC$14326_getRequest(J,S,H);if(!b){Z(new _.TG("Error: Failed to build request for command.",J));A.jumpTo(0);break}tc(b.input);f=((F=b.requestShell)==null?void 0:F.mode)==="cors"?"cors":void 0;if(p.authService.syncHeaders){O=BAL(b.config,f);A.jumpTo(4);break}return A.yield(UMp(b.config,f),5);case 5:O=
A.yieldResult;case 4:X(sgp(p,b,O)),_.UK(A)}})}):_.o4(new _.TG("Error: No request builder found for command.",J))};
tv8=function(p,J,S,H){var M=M===void 0?C7M:M;var X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w;return _.G(function(I){switch(I.nextAddress){case 1:X=Khs(J,p.endpointMap);if(!X)throw new _.TG("Error: No streaming request builder found for command",J);Z=X.JSC$14326_getRequest(J,S,M);if(!Z)throw new _.TG("Failed to build YtRequest for streaming Command",J);if((n=p.localInnertubeRouter)==null||!n.shouldPreferLocalResponse(Z.input,Z.innerTubeRequest)){I.jumpTo(2);break}return I.yield(p.localInnertubeRouter.localInnertubeResponse(Z.input,
Z.innerTubeRequest),3);case 3:return b=I.yieldResult,F={},b.playerResponse&&(G3(p,b.playerResponse,Z),F.player=b.playerResponse,(f=H)==null||f(F,b)),b.watchNextResponse&&(G3(p,b.watchNextResponse,Z),F.content=b.watchNextResponse,(O=H)==null||O(F,b)),I.return(F);case 2:P=((A=Z.requestShell)==null?void 0:A.mode)==="cors"?"cors":void 0;if(p.authService.syncHeaders){W=BAL(Z.config,P);I.jumpTo(4);break}return I.yield(UMp(Z.config,P),5);case 5:W=I.yieldResult;case 4:return D=(t=(y=Z.requestShell)==null?
void 0:y.headers)!=null?t:{},Z.requestShell=Object.assign({},Z.requestShell,{headers:Object.assign({},D,W)}),k=Object.assign({},Z.requestShell),E=JSON.stringify(Z.innerTubeRequest),Z.requestShell.method==="POST"&&(k=Object.assign({},k,{body:E})),a=function(Z3,vg){G3(p,vg.playerResponse||vg.watchNextResponse||vg.reelItemWatchResponse||vg.reelWatchSequenceResponse,Z);H==null||H(Z3,vg);_.z("web_watch_stop_scheduler_on_player_response")&&vg.playerResponse&&gO8()},q={},I.yield(gLE(p.networkManager,Z.input,
k,a),6);
case 6:return q=I.yieldResult,((w=Z.config)==null?0:w.responseTick)&&_.Qf(Z.config.responseTick),I.return(q)}})};
_.mX=function(p,J,S,H,M){M=M===void 0?{authStrategy:{identity:C7M}}:M;var X=X===void 0?!0:X;var Z=function(){};
Z=INi(xIg(S));J.context||(J.context=_.nWs(H,X));return new _.UI(function(n){var b,F,f,O,A;return _.G(function(P){if(P.nextAddress==1)return b=l$t(S),F=_.TX(b),p.authService.syncHeaders?(f=BAL(M,F),P.jumpTo(2)):P.yield(UMp(M,F),3);P.nextAddress!=2&&(f=P.yieldResult);O=Voi(l$t(S));A={input:O,requestShell:dG(O),innerTubeRequest:J,config:M};n(sgp(p,A,f,Z));_.UK(P)})})};
G3=function(p,J,S){var H;if(J&&!(J==null?0:(H=J.sequenceMetaData)==null?0:H.skipProcessing)&&p.responseProcessorMap){H=_.K(WjE);for(var M=H.next();!M.done;M=H.next())M=M.value,p.responseProcessorMap[M]&&p.responseProcessorMap[M].handleResponse(J,S)}};
sgp=function(p,J,S,H){H=H===void 0?function(){}:H;
var M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w,I,Z3,vg,yX,Pg,ov,NW,TW,Ys,Go,$U,LL,fd,Qv,t8,Wp,ON,KL,HE,o8,xU;return _.G(function(eL){switch(eL.nextAddress){case 1:Z=(M=J.config)==null?void 0:(X=M.storeStrategy)==null?void 0:X.storeKey;if(!(Z&&p.innertubeResponseStore&&p.innertubeResponseStore.has(Z))||((n=J.config)==null?0:(b=n.storeStrategy)==null?0:b.disableCache)){eL.jumpTo(2);break}return eL.yield(p.innertubeResponseStore.get(Z),3);case 3:if((F=eL.yieldResult)&&!F.isExpired())return eL.return(Promise.resolve(_.It(F)));
case 2:if(!((f=J)==null?0:(O=f.innerTubeRequest)==null?0:O.context)){eL.jumpTo(4);break}A=J.innerTubeRequest.context;if(!(p.asyncContextProcessors&&p.asyncContextProcessors.length>0)){eL.jumpTo(5);break}P=[];W=_.K(p.asyncContextProcessors);for(y=W.next();!y.done;y=W.next())t=y.value,D=t.processContext(J),D.wrappedPromise_&&P.push(D.wrappedPromise_);if(!(P.length>0)){eL.jumpTo(5);break}return eL.yield(Promise.all(P),5);case 5:k=_.K(p.contextProcessors||[]),E=k.next();case 8:if(E.done){eL.jumpTo(4);
break}a=E.value;return eL.yield(a.processContext(A),9);case 9:E=k.next();eL.jumpTo(8);break;case 4:if((q=p.localInnertubeRouter)==null||!q.shouldPreferLocalResponse(J.input,J.innerTubeRequest)){eL.jumpTo(12);break}return eL.yield(p.localInnertubeRouter.localInnertubeResponse(J.input,J.innerTubeRequest),13);case 13:return w=eL.yieldResult,G3(p,w,J),eL.return(w);case 12:return(vg=(Z3=J.config)==null?void 0:Z3.requestKey)&&p.inflightRequests.has(vg)?I=p.inflightRequests.get(vg):(yX=JSON.stringify(J.innerTubeRequest),
NW=(ov=(Pg=J.requestShell)==null?void 0:Pg.headers)!=null?ov:{},J.requestShell=Object.assign({},J.requestShell,{headers:Object.assign({},NW,S)}),TW=Object.assign({},J.requestShell),J.requestShell.method==="POST"&&(TW=Object.assign({},TW,{body:yX})),((Ys=J.config)==null?0:Ys.requestTick)&&_.Qf(J.config.requestTick),Go=function(){return p.networkManager.fetch(J.input,TW,J.config)},I=p.requestSequencer?hFv(p.requestSequencer,J,Go):Go(),vg&&p.inflightRequests.set(vg,I)),eL.yield(I,14);
case 14:($U=eL.yieldResult)&&_.z("web_streaming_player")&&Array.isArray($U)&&($U=$U[0].playerResponse);if($U&&"error"in $U&&((LL=$U)==null?0:(fd=LL.error)==null?0:fd.details))for(Qv=$U.error.details,t8=_.K(Qv),Wp=t8.next();!Wp.done;Wp=t8.next())ON=Wp.value,(KL=ON["@type"])&&Qg4.indexOf(KL)>-1&&(delete ON["@type"],$U=ON);vg&&p.inflightRequests.has(vg)&&p.inflightRequests.delete(vg);((HE=J.config)==null?0:HE.responseTick)&&_.Qf(J.config.responseTick);if($U||(o8=p.localInnertubeRouter)==null||!o8.canProvideFallbackResponse(J.input,
J.innerTubeRequest)){eL.jumpTo(15);break}return eL.yield(p.localInnertubeRouter.localFallbackInnertubeResponse(J.input,J.innerTubeRequest),16);case 16:$U=eL.yieldResult;case 15:return G3(p,$U,J),((xU=J.config)==null?0:xU.processorTick)&&_.Qf(J.config.processorTick),H(),eL.return($U||void 0)}})};
_.ln=function(p,J){return RO3(J,p.endpointMap)};
y6E=function(p,J){p=ZZk(J,p.endpointMap);if(p!==void 0)return Promise.resolve(p)};
UMp=function(p,J){var S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1){M=(S=p)==null?void 0:(H=S.authStrategy)==null?void 0:H.sessionIndex;var n=Z.yield;var b=_.SU(wqw({sessionIndex:M}));return n.call(Z,b,2)}X=Z.yieldResult;return Z.return(Promise.resolve(Object.assign({},nkk(J),X)))})};
BAL=function(p,J){var S;p=p==null?void 0:(S=p.authStrategy)==null?void 0:S.sessionIndex;S=wqw({sessionIndex:p});return Object.assign({},nkk(J),S)};var DMm,kO4,NAU,TAq,dMd,uAd,qRm,aQ8,Fc,ELn,YRp,Vvd,r6p;DMm=0;kO4=/tone[1-5]/;NAU=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");TAq="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
dMd=Number.MAX_SAFE_INTEGER;uAd=RegExp("\ufe0f","g");_.bP=function(p){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;p&&_.lQn(this,p)};
_.lQn=function(p,J){try{_.BO(J,{context:p,onSuccess:function(H,M){Array.isArray(M)?p.load(M):(H=new _.TG("Emoji manager JSON response was not an array!",{response:M}),_.jD(H))},
onError:function(H){H=new _.TG("Failed to retrieve emoji manager initial JSON data!",{url:J,statusCode:_.eB(H).toString()});_.xQ(H)}})}catch(H){var S=new _.TG("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:J});
_.xQ(S)}};
_.bP.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.bP.prototype.load=function(p,J){if(J)if(p.length)p=p.concat(J.emojis);else{this.emojis=J.emojis;this.emojiMap=J.emojiMap;this.emojiShortcutMap=J.emojiShortcutMap;this.emojiShortcutCharMap=Vvd(J);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=J.emojiRegex;return}this.emojis=[].concat(_.dW(new Set(this.emojis.concat(p))));this.hasInitializedShortcutCharMap=!1;p=Array(this.emojis.length);for(J=0;J<this.emojis.length;J++){var S=this.emojis[J];if(S.emojiId){this.emojiMap[S.emojiId]=S;this.emojiMap[S.emojiId].index=
J;for(var H=0;S.shortcuts&&H<S.shortcuts.length;H++)this.emojiShortcutMap[S.shortcuts[H].toLocaleLowerCase()]=S;p[J]=S.isCustomEmoji&&S.shortcuts?S.shortcuts[0]:S.emojiId}}p.sort(function(M,X){return X.length-M.length});
if(p.length)try{this.emojiRegex=new RegExp(p.join("|").replace("*","\\*"),"gi")}catch(M){this.emojiRegex=/$./}else this.emojiRegex=/$./};
qRm=function(p,J){J=_.K(J);for(var S=J.next();!S.done;S=J.next()){var H=S.value;if(H.emojiId&&p.emojiMap[H.emojiId]){S=Object.assign({},p.emojiMap[H.emojiId],H);p.emojiMap[H.emojiId]=S;var M=void 0;S.index&&((M=p.emojis[S.index])==null?void 0:M.emojiId)===H.emojiId&&(p.emojis[S.index]=S);H=void 0;if((H=S.shortcuts)==null?0:H.length)for(p.hasInitializedShortcutCharMap=!1,H=_.K(S.shortcuts),M=H.next();!M.done;M=H.next())p.emojiShortcutMap[M.value.toLocaleLowerCase()]=S}}};
aQ8=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return H.yield(_.JW.getInstance(),2);if(H.nextAddress!=3)return(J=H.yieldResult)?H.yield(J.get("ytlc-emoji-pref"),3):H.return();(S=H.yieldResult)&&qRm(p,Object.keys(S).map(function(M){return{emojiId:M,stickyPrefId:S[M]}}).filter(function(M){return!!M.emojiId&&!!M.stickyPrefId}));
_.UK(H)})};
_.mB=function(p,J,S){return(p=p.emojiMap[J])&&(!p.isLocked||S!==void 0&&S)?p:void 0};
Fc=function(p,J,S){S=_.mB(p,J,S===void 0?!1:S);var H=J.match("\u200d");S&&p.skinTone!==0&&(p=(H==null?void 0:H.length)===1?_.mB(p,J.replace("\u200d",NAU[p.skinTone]+"\u200d")):_.mB(p,J+NAU[p.skinTone]))&&(S=p);return S};
ELn=function(p,J){var S=p.emojiMap[J];return(S==null?0:S.stickyPrefId)?p.emojiMap[S.stickyPrefId]:Fc(p,J)};
_.MB=function(p,J){p=p.emojiShortcutMap[J.toLocaleLowerCase()];return!p||p.isLocked?null:p};
YRp=function(p,J,S){return Vvd(p,S===void 0?!1:S)[J]||{}};
Vvd=function(p,J){J=J===void 0?!1:J;if(!p.hasInitializedShortcutCharMap){p.hasInitializedShortcutCharMap=!0;for(var S=0;S<p.emojis.length;S++){var H=p.emojis[S];if(!(H.isLocked||J&&H.isCustomEmoji&&H.emojiId&&!p.pickerCustomEmojiIds.includes(H.emojiId)))for(var M=0;H.shortcuts&&M<H.shortcuts.length;M++){var X=H.shortcuts[M];X.startsWith(":_")&&H.isCustomEmoji&&(p.emojiShortcutCharMap[":_"]==null&&(p.emojiShortcutCharMap[":_"]=Object.create(null)),p.emojiShortcutCharMap[":_"][X]=H);if(!(X.length<3||
!H.isCustomEmoji&&kO4.test(X))){var Z=X.substr(0,3).toLocaleLowerCase();p.emojiShortcutCharMap[Z]==null&&(p.emojiShortcutCharMap[Z]=Object.create(null));p.emojiShortcutCharMap[Z][X]=H}}}}return p.emojiShortcutCharMap};
_.bP.prototype.createEmoji=function(p,J){J=J===void 0?!0:J;var S=document.createElement("img");p.isCustomEmoji||S.classList.add("small-emoji");S.classList.add("emoji");S.classList.add("yt-formatted-string");S.src=p.image?_.I4(p.image.thumbnails,this.emojiSize)||"":"";var H=void 0;p.image&&p.image.accessibility&&p.image.accessibility.accessibilityData&&(H=p.image.accessibility.accessibilityData.label);S.alt=H?H:(p.isCustomEmoji&&p.shortcuts?p.shortcuts[0]:p.emojiId)||"";p.isCustomEmoji&&(S.dataset.emojiId=
p.emojiId);_.i9&&(S.setAttribute("contenteditable","false"),S.setAttribute("unselectable","on"));J&&(p.shortcuts&&p.shortcuts.length&&S.setAttribute("shared-tooltip-text",p.shortcuts[0]),S.id="emoji-"+DMm++);return S};
_.bP.prototype.createDocumentFragment=function(p,J,S,H){J=J===void 0?!1:J;S=S===void 0?!0:S;H=H===void 0?!1:H;p=p.replace(uAd,"");for(var M=document.createDocumentFragment(),X=0,Z,n=0;(Z=this.emojiRegex.exec(p))!=null;){var b=_.mB(this,Z[0])||_.MB(this,Z[0]);!b||b.isCustomEmoji&&!J||(b=this.createEmoji(b,S),X!==Z.index&&M.appendChild(document.createTextNode(p.substring(X,Z.index))),M.appendChild(b),X=Z.index+Z[0].length,n++)}if(!H||n)return M.appendChild(document.createTextNode(p.substr(X))),M};
r6p=function(p,J,S){var H,M,X,Z,n,b,F,f,O;return _.G(function(A){if(A.nextAddress==1){if(!J.emojiId||!p.emojiMap[J.emojiId])return A.return();H=Object.assign({},p.emojiMap[J.emojiId],{stickyPrefId:S});p.emojiMap[J.emojiId]=H;J.index&&((M=p.emojis[J.index])==null?void 0:M.emojiId)===J.emojiId&&(p.emojis[J.index]=H);if((X=J.shortcuts)==null?0:X.length)for(p.hasInitializedShortcutCharMap=!1,Z=_.K(J.shortcuts),n=Z.next();!n.done;n=Z.next())b=n.value,p.emojiShortcutMap[b.toLocaleLowerCase()]=H;return A.yield(_.JW.getInstance(),
2)}if(A.nextAddress!=4)return(F=A.yieldResult)?A.yield(F.get("ytlc-emoji-pref"),4):A.jumpTo(0);O=(f=A.yieldResult)!=null?f:{};O[J.emojiId]=S;return A.yield(F.set("ytlc-emoji-pref",O,dMd),0)})};
_.v7=new _.bP;var xML;_.fe={};
xML={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.z("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:_.z("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 qw(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=_.Jn(this.hostElement||this).querySelector("#inline-action-button-container");p&&p.setAttribute("aria-hidden","true");this.menuButton=_.Jn(this.hostElement).querySelector("#menu-button")},
attached:function(){var p=this.menuButton;p&&(p.addEventListener("focusin",_.n3(this,this.onMenuButtonFocus_)),p.addEventListener("focusout",_.n3(this,this.onMenuButtonBlur_)))},
detached:function(){var p=this.menuButton;p&&(p.removeEventListener("focusin",_.n3(this,this.onMenuButtonFocus_)),p.removeEventListener("focusout",_.n3(this,this.onMenuButtonBlur_)))},
identity:_.D3,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 p},
computeMenuVisible_:function(p,J){return p||J},
computeHasInlineActionButtons:function(p){if(!p)return!1;var J,S;return!((J=p.inlineActionButtons)==null||!J.length)||!((S=p.additionalInlineActionButtons)==null||!S.length)},
createDocumentFragmentFromString:function(p){var J=_.v7.createDocumentFragment.bind(_.v7),S;if((S=this.participantsManager)==null||!S.viewerRegex)return J(p);S=document.createDocumentFragment();for(var H=0,M;(M=this.participantsManager.viewerRegex.exec(p))!=null;){if(M.index>0){var X=":"+M[0]+":";if((_.mB(_.v7,X)||_.MB(_.v7,X))&&p.indexOf(X)===M.index-1)continue}S.appendChild(J(p.substring(H,M.index)));H=document.createElement("span");H.appendChild(J(M[0]));H.classList.add("mention");S.appendChild(H);
H=M.index+M[0].length}S.appendChild(J(p.substring(H)));return S},
createDocumentFragment:function(p){var J=document.createDocumentFragment();if(p.simpleText)return J.appendChild(this.createDocumentFragmentFromString(p.simpleText)),J;if(!p.runs)return J;for(var S=0;S<p.runs.length;S++){var H=p.runs[S];if(H.emoji)J.appendChild(_.v7.createEmoji(H.emoji));else if(H.text)if(H.navigationEndpoint){var M=document.createElement("a");M.classList.add("yt-simple-endpoint");m6i(M,H.navigationEndpoint);_.Jn(M).appendChild(this.createDocumentFragmentFromString(H.text));J.appendChild(M)}else J.appendChild(this.createDocumentFragmentFromString(H.text))}return J},
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(J){return(J=J instanceof Element?J:null)?J.tagName&&(J.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||J.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.z("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(p)},
colorFromDecimal:function(p){return ukX(p)},
markAsDeleted:function(p,J){this.set("data.deletedStateMessage",p);this.set("data.showOriginalContentMessage",J)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(p){if(this.data.contextMenuEndpoint){var J=_.vO().resolve(_.Or),S=this.data.contextMenuEndpoint,H;(H=_.un.instance)&&_.ln(H,S)?(J=jgn(J,S),H=_.mX(H,{},J)):H=_.wxE(J,S);H.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);p&&p.stopPropagation()}},
handleGetContextMenuResponse_:function(p){var J=_.un.instance;J&&_.ln(J,{liveChatEndpoint:{}})||(p=p.response);p.liveChatItemContextMenuSupportedRenderers&&p.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(p.liveChatItemContextMenuSupportedRenderers.menuRenderer);p.actions&&_.IV(this.hostElement,"yt-live-chat-actions",[p.actions])},
handleGetContextMenuError:function(p){if(p instanceof Error||p instanceof Object||p instanceof String)var J=p;_.jD(new _.TG("Error encountered calling GetLiveChatItemContextMenu",J))},
showContextMenu_:function(p){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:p}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.cf(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.cf(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.fe.YtLiveChatItemBehavior=[xML,_.KD.YtComponentBehavior,_.T_.YtOpenPopupBehavior];_.O7=function(){};var c6E;var IQq;var LjL;var pcm;var A0=function(){var p=_.T.apply(this,arguments)||this;p.active=!1;p.identity=_.D3;return p};
_.Q(A0,_.T);A0.prototype.dataChanged=function(){this.active=!1};
A0.prototype.onClick=function(){_.cf(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
A0.prototype.dataChanged=A0.prototype.dataChanged;_.V([_.N(),_.Y("design:type",Object)],A0.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],A0.prototype,"active",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A0.prototype,"dataChanged",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],A0);
_.l(A0,"yt-live-chat-text-input-field-suggestion",function(){if(pcm===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;LjL===void 0&&(LjL=document.createElement("template"));var H=LjL;S.call(J,H.content.cloneNode(!0),p.content.firstChild);pcm=p}p=pcm;return p},{mode:0});_.P7=function(p,J,S){return CustomEvent.call(this,p,{detail:{value:J,path:S}})||this};
_.Q(_.P7,CustomEvent);_.z3=function(){var p=_.T.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};
_.Q(_.z3,_.T);_.R=_.z3.prototype;_.R.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.R.addParticipant=function(p){var J=_.Nki(this.participants,p,function(H,M){H=H[Object.keys(H)[0]];M=M[Object.keys(M)[0]];H=String(_.E4(H.authorName)).toLowerCase();M=String(_.E4(M.authorName)).toLowerCase();return H<M?-1:H==M?0:1}.bind(this));
if(J>=0){var S=this.participants[J];S[Object.keys(S)[0]].timestampUsec&&this.splice("participants",J,1,p)}else this.splice("participants",-J-1,0,p);p=p[Object.keys(p)[0]];J=_.E4(p.authorName).toLocaleLowerCase();S=J.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(S)||(this.allParticipantsCharMap_[S]={});this.allParticipantsCharMap_[S][J]=p};
_.R.getAuthorsFromPrefix=function(p){return this.allParticipantsCharMap_.hasOwnProperty(p)?this.allParticipantsCharMap_[p]:null};
_.R.computeViewerRegex_=function(p){if(!p)return null;p=p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var J=p.indexOf("@")===0&&_.z("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(J+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")};
_.R.checkForStaleParticipants_=function(){var p=this;this.trimOldParticipants_();this.asyncHandle_&&F1i(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.dw(function(){p.checkForStaleParticipants_()},3E4))};
_.R.onChatMessage_=function(p){var J=this,S=Date.now()*1E3;p.forEach(function(H){if(H=_.e(H,TB8)){H=H.item;var M=Object.keys(H)[0];J.SUPPORTED_ITEM_TYPES_.indexOf(M)!=-1&&H[M].timestampUsec>=S-J.PARTICIPANT_TIME_USEC_&&J.addParticipant(H)}},this);
this.checkForStaleParticipants_()};
_.R.trimOldParticipants_=function(){for(var p=Date.now()*1E3,J=this.participants.length-1;J>=0;J--){var S=this.participants[J];S=S[Object.keys(S)[0]];S.timestampUsec&&S.timestampUsec<p-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",J,1)}};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],_.z3.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],_.z3.prototype,"viewerName",void 0);_.V([_.N({computed:"computeViewerRegex_(viewerName)"}),_.Y("design:type",Object)],_.z3.prototype,"viewerRegex",void 0);_.V([_.N({value:function(){return[]},
notify:!0}),_.Y("design:type",Array)],_.z3.prototype,"participants",void 0);_.V([_.sD({is:"yt-live-chat-participants-manager",noInjection:!0})],_.z3);var JjU=/.*([:@#].*?)$/,$Y=/\u00a0/g,Sx4=String.fromCharCode(160),HZn={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"},ox=function(){var p=_.T.apply(this,arguments)||this;p.disabled=!1;p.liveChatRichMessageInput=null;p.messageInput=null;p.isValidWithNoInputText=!1;p.suggestions=[];p.emojiManager=_.v7;p.inputMethodEditorActive=
!1;p.suggestionIndex=-1;p.JSC$14384_lastSuggestionRange=null;return p};
_.Q(ox,_.T);_.R=ox.prototype;_.R.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.R.attached=function(){_.Rh&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.R.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.R.dataChanged=function(){if(!this.ignoreColorMapping){var p=!1,J={},S;for(S in HZn)this.data&&this.data.hasOwnProperty(S)&&(J[HZn[S]]=this.colorFromDecimal(this.data[S]),p=!0);p&&_.K3(this.hostElement,J)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.R.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.R.colorFromDecimal=function(p){p=Math.floor(Number(p));return"rgba("+[p>>16&255,p>>8&255,p&255,(p>>24&255)/255].join()+")"};
_.R.preventDrag=function(p){p.dataTransfer&&(p.dataTransfer.dropEffect="none");p.preventDefault()};
_.R.preventResize=function(p){p.returnValue=!1};
_.R.onInputChange=function(){var p=this.characterCount,J=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&J&&J.remove();if(!J&&this.characterCount>this.maxCharacterLimit){var S=window.getSelection();if(S){var H=S.getRangeAt(0);S.removeAllRanges();S.addRange(H)}}if(S=this.getCurrentRange())H=this.calculateTextBeforeRange(S),this.completeEmojisInRange(S,H,!0)||this.updateSuggestions(S,H);H=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(H);
_.cf(this.hostElement,"yt-live-chat-message-input-change",H);J&&this.characterCount===0&&J.remove();S&&S.commonAncestorContainer.parentElement.id==="input"&&S.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>p):S&&!S.collapsed&&S.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()};
_.R.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.R.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var p=this.getCurrentRange();p&&p.commonAncestorContainer.parentElement.id==="input"&&p.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.R.mergeOverflowText=function(p){if(p){var J=document.createRange();J.selectNodeContents(p);J=J.extractContents();this.input.insertBefore(J,p)}};
_.R.checkRangeAtEndOfInput=function(){var p=this.getCurrentRange();if(p){var J=_.Jn(this.hostElement).querySelector("#overflow-text"),S=document.createRange();J&&J.previousSibling?J.previousSibling instanceof HTMLImageElement?S.selectNode(J.previousSibling):S.selectNodeContents(J.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?S.selectNode(this.input.lastChild):S.selectNodeContents(this.input.lastChild));S.collapse(!1);return S.isPointInRange(p.startContainer,
p.startOffset)}return!1};
_.R.handleOverflowText=function(p){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var J=_.Jn(this.hostElement).querySelector("#overflow-text"),S=this.getCurrentRange();this.input.normalize();p=this.checkRangeAtEndOfInput()&&p;this.mergeOverflowText(J);for(var H,M=0,X=0,Z,n=this.input.childNodes,b=0;b<n.length;b++){var F=n[b];F instanceof Text?(X+=F.textContent.length,X>this.maxCharacterLimit&&(H=F,M=this.maxCharacterLimit+F.textContent.length-X)):F instanceof HTMLImageElement&&
(H=void 0,X=F.dataset.emojiId&&((H=this.data)==null?0:H.emojiCharacterCount)?X+this.data.emojiCharacterCount:X+F.alt.length,H=this.input,M=b);if(X>this.maxCharacterLimit&&H){Z=document.createRange();Z.collapse(!1);J?(X=this.input.lastChild.previousSibling,X instanceof Text?Z.setEnd(this.input.lastChild.previousSibling,X.textContent.length):X instanceof HTMLImageElement&&Z.setEnd(this.input,this.input.childNodes.length-1)):Z.selectNodeContents(this.input);Z.setStart(H,M);break}}Z&&(H=!1,S&&(p=Z.isPointInRange(S.startContainer,
S.startOffset-1)),J||(J=document.createElement("span"),J.id="overflow-text",J.textContent="",J.setAttribute("contenteditable","true"),_.Jn(_.Jn(this.hostElement).querySelector("#input")).appendChild(J),H=!0),J&&(S=Z.extractContents(),J.insertBefore(S,J.firstChild),p&&J.firstChild&&(S=document.createRange(),H?S.setStartAfter(J.lastChild):S.setStartAfter(J.firstChild),S.collapse(!0),J=window.getSelection(),J.removeAllRanges(),J.addRange(S))))}};
_.R.checkForDuplicateSpans=function(){for(var p=0;p<this.input.childNodes.length;p++){var J=this.input.childNodes[p];if(J.nodeName==="SPAN"){var S=document.createRange();S.selectNodeContents(J);S=S.extractContents();this.input.insertBefore(S,J);J.remove()}}this.handleOverflowText(!0)};
_.R.getCurrentRange=function(){var p=window.getSelection();return p&&p.rangeCount?p.getRangeAt(0).cloneRange():null};
_.R.getInputRange=function(){var p=this.getCurrentRange();if(p){for(var J=p.commonAncestorContainer,S=!1,H=_.Jn(this.hostElement).querySelector("#input");J;){if(J===H){S=!0;break}J=J.parentNode}S||(p=null)}p||(p=this.getRangeAtEnd());return p};
_.R.getRangeAtEnd=function(){var p=document.createRange(),J=_.Jn(this.hostElement).querySelector("#input").lastChild;!J||J.nodeName!=="#text"&&J.nodeName!=="SPAN"?(p.selectNodeContents(_.Jn(this.hostElement).querySelector("#input")),p.collapse(!1)):J.nodeName==="#text"?p.setStart(J,J.textContent.length):p.setStart(J,J.childNodes.length);return p};
_.R.getChatParticipantSuggestions=function(p,J,S,H){var M=_.z("live_chat_enable_handles_web_text_input_update");if(J)for(var X in J)if(X.indexOf(p)===0||M&&X.indexOf(S+p)===0){var Z=J[X],n=_.E4(Z.authorName);H.push({suggestion:{author:!0,authorType:S,image:Z.authorPhoto,alt:n,text:n}});if(H.length>=64)break}};
_.R.getSuggestions=function(p){var J=[],S=p.substring(0,3),H=YRp(_.v7,S,!0);if(H)for(var M in H)if(M.toLocaleLowerCase().indexOf(p)===0){var X=H[M];if(X&&X.emojiId){if(X=ELn(_.v7,X.emojiId)){var Z=void 0,n=void 0,b=void 0,F=void 0,f=((Z=X.image)==null?0:(n=Z.accessibility)==null?0:(b=n.accessibilityData)==null?0:b.label)||X.isCustomEmoji?(F=X.shortcuts)==null?void 0:F[0]:X.emojiId;J.push({suggestion:{emoji:!0,image:X.image,alt:f,text:M,textToInsertWhenSelected:X.isCustomEmoji?M:f}})}if(J.length>=
64)break}}if(!this.participantsManager)return null;if(S.indexOf("@")===0||S.indexOf("#")===0)H=S.charAt(0),p=p.substring(1),M=_.z("live_chat_enable_handles_web_text_input_update"),S.indexOf("@")===0&&M&&(M=this.participantsManager.getAuthorsFromPrefix(S.substring(0,2)),this.getChatParticipantSuggestions(p,M,H,J)),S=S.substring(1),S=this.participantsManager.getAuthorsFromPrefix(S),this.getChatParticipantSuggestions(p,S,H,J);return J?J.sort(function(O,A){return A.suggestion.text<O.suggestion.text?-1:
A.suggestion.text===O.suggestion.text?0:1}):null};
_.R.insertSuggestion=function(p){var J=_.z("live_chat_enable_handles_web_text_input_update"),S=p.authorType;J=p.text.indexOf(S)===0&&J?p.text+Sx4:S+p.text+Sx4;p.emoji?this.insertTextAtRange(this.JSC$14384_lastSuggestionRange,p.textToInsertWhenSelected||""):p.author&&this.insertTextAtRange(this.JSC$14384_lastSuggestionRange,J)};
_.R.updateSuggestionsAtCaret=function(){var p=this.getCurrentRange();p&&this.updateSuggestions(p,this.calculateTextBeforeRange(p))};
_.R.offsetStartOfRangeBy=function(p,J){for(;J>0;)if(p.startOffset-J>=0){p.setStart(p.startContainer,p.startOffset-J);break}else{J=p.startContainer instanceof HTMLImageElement?J-p.startContainer.alt.length:J-p.startOffset;var S=p.startContainer.previousSibling;if(!S){p.setStart(p.startContainer,0);break}if(_.z("live_chat_require_space_for_autocomplete_emoji")){var H=void 0,M=void 0;p.setStart(S,((H=S)==null?void 0:(M=H.textContent)==null?void 0:M.length)||0)}else p.setStart(S,S.childNodes.length||
0)}};
_.R.updateSuggestions=function(p,J){var S=this;this.JSC$14384_lastSuggestionRange&&(this.JSC$14384_lastSuggestionRange.detach(),this.JSC$14384_lastSuggestionRange=null);if((J=JjU.exec(J))&&J.length&&(J=J[J.length-1].toLocaleLowerCase(),J.length>2&&(this.offsetStartOfRangeBy(p,J.length),this.JSC$14384_lastSuggestionRange=p,(p=this.getSuggestions(J))&&p.length))){this.suggestions=p;_.mN(this,function(){_.Jn(S.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};
_.R.completeEmojisInRange=function(p,J,S){var H=J.replace(/[\s\xa0]+$/,"");J=J.length-H.length;H=H.split(" ");H=H[H.length-1].trim().toLocaleLowerCase();var M=H.lastIndexOf(":");if(S&&!J&&M!==H.length-1)return!1;M!==-1&&(S=H.lastIndexOf(":",M-1),S!==-1&&(H=H.substring(S)));if((S=_.MB(_.v7,H))&&S.emojiId){S=ELn(_.v7,S.emojiId)||null;this.offsetStartOfRangeBy(p,H.length+J);var X,Z,n,b;H=(((X=S)==null?0:X.isCustomEmoji)?(Z=S)==null?void 0:(n=Z.shortcuts)==null?void 0:n[0]:(b=S)==null?void 0:b.emojiId)||
"";J&&(H+=Sx4);this.insertTextAtRange(p,H);this.dropdown.opened=!1;return!0}return!1};
_.R.onSuggestion=function(p){this.insertSuggestion(p.detail);this.dropdown.opened=!1};
_.R.onKeyPress=function(p){p.keyCode===13&&(p.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.cf(this.hostElement,"yt-live-chat-send-message"))};
_.R.completeEmojis=function(){var p=document.createRange(),J=_.Jn(this.hostElement).querySelector("#input").lastChild;J?p.setStart(J,J.childNodes.length):(p.selectNodeContents(_.Jn(this.hostElement).querySelector("#input")),p.collapse(!1));this.completeEmojisInRange(p,this.calculateTextBeforeRange(p),_.z("live_chat_require_space_for_autocomplete_emoji"))};
_.R.maybePreventTextFormatting=function(p){!_.GF||!p.ctrlKey&&!p.metaKey||p.keyCode!==66&&p.keyCode!==73||(p.stopImmediatePropagation(),p.preventDefault())};
_.R.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()}};
_.R.onKeyUp=function(p){switch(p.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.i9)this.onInputChange()};
_.R.changeSuggestionIndex=function(p){if(this.dropdown.opened){var J=_.Jn(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<J.children.length&&(J.children[this.suggestionIndex].active=!1);var S=this.suggestions.length;this.suggestionIndex=(p+S)%S;p=J.children[this.suggestionIndex];p.active=!0;J.scrollTop=p.offsetTop}};
_.R.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)};
_.R.onFocus=function(){this._setFocused(!0)};
_.R.onBlur=function(){this._setFocused(!1)};
_.R.insertText=function(p){this.insertTextAtRange(this.getInputRange(),p)};
_.R.insertTextAtRange=function(p,J){if(p&&(p.collapsed||p.deleteContents(),J=_.v7.createDocumentFragment(J,!0,!1))){for(var S=_.K((J==null?void 0:J.childNodes)||[]),H=S.next();!H.done;H=S.next()){H=H.value;var M=void 0,X=void 0,Z=void 0,n=void 0,b=void 0;(Z=(M=window)==null?void 0:(X=M.ShadyCSS)==null?void 0:X.ScopingShim)==null||(b=(n=Z).scopeNode)==null||b.call(n,H,this.hostElement.localName)}S=J.lastChild;p.insertNode(J);this.focused||this.input.focus();if(this.focused){p=p.cloneRange();p.selectNodeContents(S);
p.collapse(!1);if(J=window.getSelection())J.removeAllRanges(),J.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);_.cf(this.hostElement,"yt-live-chat-message-input-change",p)}};
_.R.setLiveChatRichMessageInput=function(p){_.Jn(_.Jn(this.hostElement).querySelector("#input")).textContent="";if(p&&p.textSegments){for(var J=0;J<p.textSegments.length;J++){var S=p.textSegments[J];S.text?_.Jn(_.Jn(this.hostElement).querySelector("#input")).appendChild(_.v7.createDocumentFragment(S.text,!0,!1)):S.emojiId&&(S=_.mB(_.v7,S.emojiId))&&_.Jn(_.Jn(this.hostElement).querySelector("#input")).appendChild(_.v7.createEmoji(S,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.R.setText=function(p){this.setLiveChatRichMessageInput(p?{textSegments:[{text:p}]}:null)};
_.R.calculateTextBeforeRange=function(p){var J="",S=p.startContainer;if(S&&S instanceof Text){var H;J=((H=S.textContent)==null?void 0:H.substring(0,p.startOffset))||"";S=S.previousSibling}for(;S&&S instanceof Text;)J=S.textContent+J,S=S.previousSibling;return J.replace($Y," ")};
_.R.calculateLiveChatRichMessageInput=function(){for(var p=[],J="",S=_.Jn(_.Jn(this.hostElement).querySelector("#input")).childNodes,H=0;H<S.length;H++){var M=S[H];M instanceof Text?J+=M.textContent:M instanceof HTMLImageElement&&(M.dataset.emojiId?(J&&(p.push({text:J.replace($Y," ")}),J=""),p.push({emojiId:M.dataset.emojiId})):J+=M.alt)}J&&p.push({text:J.replace($Y," ")});if(S=_.Jn(this.hostElement).querySelector("#overflow-text")){J="";S=S.childNodes;for(H=0;H<S.length;H++)M=S[H],M instanceof Text?
J+=M.textContent:M instanceof HTMLImageElement&&(M.dataset.emojiId?(J&&(p.push({text:J.replace($Y," ")}),J=""),p.push({emojiId:M.dataset.emojiId})):J+=M.alt);J&&p.push({text:J.replace($Y," ")})}return{textSegments:p}};
_.R.computeCharacterCount=function(p){if(!p||!p.textSegments)return 0;for(var J=0,S=0;S<p.textSegments.length;S++){var H=p.textSegments[S];if(H.text)J+=H.text.length;else if(H.emojiId){var M=void 0;if((M=this.data)==null?0:M.emojiCharacterCount)J+=this.data.emojiCharacterCount;else{var X=M=void 0,Z=void 0;J+=((X=_.mB(_.v7,(M=H)==null?void 0:M.emojiId))==null?void 0:(Z=X.shortcuts)==null?void 0:Z[0].length)||0}}}return J};
_.R.characterCountChanged=function(){_.cf(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.R.focusedChanged=function(){this.hostElement.dispatchEvent(new _.P7("focused-changed",this.focused))};
_.R.focus=function(){this.setFocus(!1)};
_.R.focusAtEnd=function(){this.setFocus(!0)};
_.R.setFocus=function(p){p=p?this.getRangeAtEnd():this.getInputRange();_.Jn(this.hostElement).querySelector("#input").focus();var J=window.getSelection();J&&(J.removeAllRanges(),J.addRange(p))};
_.R.insertEmoji=function(p){var J,S=((p==null?0:p.isCustomEmoji)?(J=p.shortcuts)==null?void 0:J[0]:p==null?void 0:p.emojiId)||"";this.insertText(S)};
_.R.computeText=function(p){if(!p||!p.textSegments)return"";for(var J="",S=0;S<p.textSegments.length;S++){var H=p.textSegments[S];if(H.text)J+=H.text;else if(H.emojiId){var M=void 0,X=void 0,Z=void 0;J+=((X=_.mB(_.v7,(M=H)==null?void 0:M.emojiId))==null?void 0:(Z=X.shortcuts)==null?void 0:Z[0])||""}}return J};
_.R.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.vh.Object.defineProperties(ox.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}}});
ox.prototype.focusedChanged=ox.prototype.focusedChanged;ox.prototype.characterCountChanged=ox.prototype.characterCountChanged;ox.prototype.onSuggestion=ox.prototype.onSuggestion;ox.prototype.onMessageSet=ox.prototype.onMessageSet;ox.prototype.dataChanged=ox.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],ox.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ox.prototype,"disabled",void 0);_.V([_.U("disabled"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],ox.prototype,"inputTabIndex",null);_.V([_.U("data.maxCharacterLimit"),_.N({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],ox.prototype,"maxCharacterLimit",null);
_.V([_.U("liveChatRichMessageInput"),_.N({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],ox.prototype,"characterCount",null);_.V([_.U("maxCharacterLimit, characterCount"),_.N({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],ox.prototype,"remainingCharacterCount",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ox.prototype,"isChatMessageInput",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ox.prototype,"inputExpanded",void 0);_.V([_.N({readOnly:!0,notify:!0}),_.Y("design:type",Object)],ox.prototype,"liveChatRichMessageInput",void 0);_.V([_.N(),_.Y("design:type",Object)],ox.prototype,"messageInput",void 0);_.V([_.N(),_.Y("design:type",Boolean)],ox.prototype,"ignoreColorMapping",void 0);_.V([_.U("characterCount"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ox.prototype,"hasText",null);
_.V([_.N(),_.Y("design:type",Object)],ox.prototype,"isValidWithNoInputText",void 0);_.V([_.U("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.N(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ox.prototype,"isInputValid",null);_.V([_.N({readOnly:!0,value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],ox.prototype,"focused",void 0);_.V([_.N(),_.Y("design:type",Array)],ox.prototype,"suggestions",void 0);
_.V([_.N(),_.Y("design:type",_.bP)],ox.prototype,"emojiManager",void 0);_.V([_.N(),_.Y("design:type",_.z3)],ox.prototype,"participantsManager",void 0);_.V([_.N(),_.Y("design:type",Boolean)],ox.prototype,"noUnderline",void 0);_.V([_.N(),_.Y("design:type",Object)],ox.prototype,"inputMethodEditorActive",void 0);_.V([_.FM("#dropdown"),_.Y("design:type",Object)],ox.prototype,"dropdown",void 0);_.V([_.FM("#input"),_.Y("design:type",HTMLElement)],ox.prototype,"input",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ox.prototype,"dataChanged",null);_.V([_.bO("messageInput"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ox.prototype,"onMessageSet",null);_.V([_.GI("yt-live-chat-select-suggestion"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ox.prototype,"onSuggestion",null);
_.V([_.bO("characterCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ox.prototype,"characterCountChanged",null);_.V([_.bO("focused"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ox.prototype,"focusedChanged",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],ox);
_.M1o=_.l(ox,"yt-live-chat-text-input-field-renderer",function(){if(IQq===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;c6E===void 0&&(c6E=document.createElement("template"));var H=c6E;S.call(J,H.content.cloneNode(!0),p.content.firstChild);IQq=p}p=IQq;return p},{mode:0});var e$=function(){var p=_.T.apply(this,arguments)||this;p.buttonOverrides={style:"overlay",type:"filled"};p.allowAnimations=!1;p.modern=_.z("web_button_rework_with_live");p.noPadding=!1;return p};
_.Q(e$,_.T);_.R=e$.prototype;_.R.shouldSupportInlineActionButtons=function(){return!0};
_.R.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"}}}}};
_.R.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.R.attached=function(){this.allowAnimations=!1};
_.R.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)};_.K3(this.hostElement,p);this.allowAnimations=!0}};
_.R.messageChanged=function(){var p,J=(p=this.data)==null?void 0:p.message;p=_.Jn(_.Jn(this.hostElement).querySelector("#message"));p.textContent="";J&&p.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(J))};
_.R.computeShowOnlyHeader=function(p,J){return!p||p.pdgLikeButton||p.replyButton||p.buyFlowButton?!1:this.isEmpty(p,J)&&!p.footer};
_.R.computeShowFooterDivider=function(p,J,S){return p?!!p.footer&&!this.isEmpty(p,J)&&!S:!1};
_.R.computeIsUserEditable=function(p){return!!p.inputField};
_.R.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"};
_.R.computeNoveltyImage=function(p){if(p.headerOverlayImage&&p.headerOverlayImage.thumbnails.length){var J=p.headerOverlayImage.thumbnails[0],S,H;if((S=p.pdgPurchasedNoveltyLoggingDirectives)==null?0:(H=S.loggingDirectives)==null?0:H.trackingParams){var M,X;FjX((M=p.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(X=M.loggingDirectives)==null?void 0:X.trackingParams)}return J.width||0}return 0};
_.R.computeAuthorPhotoSize=function(p){return(p==null?0:p.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.R.inputFocus=function(){var p=_.Jn(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");p&&p.focus()};
_.R.inputInsertEmoji=function(p){var J=_.Jn(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");J&&J.insertEmoji(p)};
_.R.inputMessage=function(){var p=_.Jn(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),J;return p&&((J=this.data)==null?0:J.inputField)?(p.completeEmojis(),_.Nr(p.liveChatRichMessageInput)):null};
_.R.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.R.isEmpty=function(p,J){return p?p.empty||!(p.message||p.inputField||J):!0};
_.R.onLowerBuyButtonClick=function(){var p,J=_.e((p=this.data)==null?void 0:p.buyButton,_.Za);J&&J.trackingParams&&!VRX(J.command)&&(p=_.Az(J.trackingParams))&&(J=_.C1())&&_.l7(J,p)};
_.R.shouldSupportWholeItemClick=function(){return!0};
_.vh.Object.defineProperties(e$.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
e$.prototype.isDeletedChanged=e$.prototype.isDeletedChanged;e$.prototype.messageChanged=e$.prototype.messageChanged;e$.prototype.dataChanged=e$.prototype.dataChanged;_.V([_.B(BJd.YtPdgLiveChatItemBehavior),_.Y("design:type",Object)],e$.prototype,"ytPdgLiveChatItemBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.i1),_.Y("design:type",Object)],e$.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],e$.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],e$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],e$.prototype,"data",void 0);_.V([_.N({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:br4}),_.Y("design:type",Object)],e$.prototype,"engagementState",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.Y("design:type",Boolean)],e$.prototype,"isUserEditable",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.Y("design:type",Boolean)],e$.prototype,"hasHeartButton",void 0);_.V([_.N({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],e$.prototype,"showOnlyHeader",void 0);
_.V([_.N({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],e$.prototype,"showFooterDivider",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],e$.prototype,"allowAnimations",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],e$.prototype,"dashboardMoneyFeed",void 0);_.V([_.N({computed:"computeNoveltyImage(data)"}),_.Y("design:type",Number)],e$.prototype,"noveltyWidth",void 0);
_.V([_.N({computed:"computeAuthorPhotoSize(data)"}),_.Y("design:type",Number)],e$.prototype,"authorPhotoSize",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],e$.prototype,"modern",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],e$.prototype,"noPadding",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e$.prototype,"dataChanged",null);
_.V([_.bO("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e$.prototype,"messageChanged",null);_.V([_.U("data","dashboardMoneyFeed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e$.prototype,"hideLowerBumper",null);_.V([_.bO("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e$.prototype,"isDeletedChanged",null);
_.V([_.gw({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],e$);
_.l(e$,"yt-live-chat-paid-message-renderer",function(){if(Zr8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Kj4===void 0&&(Kj4=document.createElement("template"));var H=Kj4;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Zr8=p}p=Zr8;return p},{mode:0});var XcM;var iZ8;var W7=function(){var p=_.f3.apply(this,arguments)||this;p._noAccessors=!0;return p};
_.Q(W7,_.f3);W7.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.jn("openPopupConfig")};
_.V([_.B(_.T_.YtOpenPopupBehavior),_.Y("design:type",Object)],W7.prototype,"ytOpenPopupBehavior",void 0);_.V([_.OD()],W7);_.QJ=[_.T_.YtOpenPopupBehavior,W7.prototype];var ROq;var aY=[_.Ge,mEp,_.U0,_.QxM,_.rn,_.kQp,_.XY,_.vt,_.by,_.EYq,_.lj];_.z("web_continuation_response_processing")&&aY.push(_.hm);_.z("web_show_ep_endpoint_response_received")&&aY.push(_.Bu);var hNL=new _.ni("RESPONSE_RECEIVED_COMMANDS"),CR9=new _.ni("RESPONSE_RECEIVED_COMMANDS");var PRW="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Aj4=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],OZX=["GET_UNSEEN_NOTIFICATION_COUNT"];var Ce=function(){var p=_.f3.apply(this,arguments)||this;p._noAccessors=!0;p.serviceEndpointHandlers=[];return p};
_.Q(Ce,_.f3);Ce.prototype.created=function(){var p=this;this.endpointHandlerActionMap={"yt-service-request":function(J,S,H,M){var X;return fEi(p.hostElement,J,S,H,M,p.serviceEndpointHandlers,(X=p.onEntitiesUpdated)==null?void 0:X.bind(p))}}};
Ce.prototype.attached=function(){_.RZ(_.XK.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Ce.prototype.detached=function(){_.KE(_.XK.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.V([_.OD()],Ce);_.KhU=[Ce.prototype];var ZZm,nkm=function(){return ZZm!==void 0?ZZm:ZZm=document.createElement("template")};
document.head.appendChild(nkm().content);var GSp;var bZp=document.head,mt8=bZp.appendChild,Fh4;if(GSp===void 0){var vkp=document.createElement("template");_.C(vkp,"\x3c!--css-build:shady--\x3e");vkp.content.insertBefore(nkm().content.cloneNode(!0),vkp.content.firstChild);GSp=vkp}Fh4=GSp;mt8.call(bZp,Fh4.content);var fE8,OZv=function(){return fE8!==void 0?fE8:fE8=document.createElement("template")};
document.head.appendChild(OZv().content);var AjM;var PRo=document.head,zOp=PRo.appendChild,$tM;if(AjM===void 0){var okU=document.createElement("template");_.C(okU,"\x3c!--css-build:shady--\x3e");okU.content.insertBefore(OZv().content.cloneNode(!0),okU.content.firstChild);AjM=okU}$tM=AjM;zOp.call(PRo,$tM.content);var eOm;_.QI("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.QI("sharingRendererButtons","buttonRenderer","ytd-button-renderer");eOm=_.z("web_button_rework")&&_.wY("BUTTON_REWORK")||_.z("web_button_rework_with_live");_.yJ=function(){var p=_.T.apply(this,arguments)||this;p.isPressed=!1;p.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return p};
_.Q(_.yJ,_.T);_.R=_.yJ.prototype;_.R.created=function(){this.showTooltips=!0};
_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.onHintIdChanged=function(){var p=this,J,S,H=(J=this.ytButtonBehavior.data)==null?void 0:(S=J.hint)==null?void 0:S.hintRenderer;if(H&&H.hintId){J=_.L1(this.hostElement,"yt-get-opened-popups-action");J=(J&&J.length===1?J[0]:[]).length>0;var M=null;H.hintId!=="sponsor-pre-purchase"||J?H.hintId.startsWith("sponsor-post-purchase")&&!J?M=vho("membership-manage"):H.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!J&&(M=vho("membership-freebie-join")):M=vho("membership-join");M&&_.wg.addLowPriorityJob(function(){for(var X=
_.K(M),Z=X.next();!Z.done;Z=X.next())p.ytComponentBehavior.resolveCommand(Z.value)})}};
_.R.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.R.onYtNavigate=function(p){var J=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);J&&(p.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(J))};
_.R.onYtServiceRequestSent=function(p,J){this.handleServiceRequestActions(J);_.cf(this.hostElement,"yt-service-request-sent-button-renderer")};
_.R.onServiceRequestCompleted=function(p,J){this.handleServiceRequestActions(J);_.cf(this.hostElement,"yt-service-request-completed-button-renderer")};
_.R.updateButton=function(p){var J;if(p=(J=_.e(p,MoM))==null?void 0:J.updatedButton)this.ytButtonBehavior.data=_.e(p,_.Za)};
_.R.handleUpdateButtonAction=function(p){var J=this.ytButtonBehavior.data;J.targetId&&p.updateButtonAction.targetId&&J.targetId===p.updateButtonAction.targetId&&this.updateButton(p)};
_.R.handleServiceRequestActions=function(p){if(p=p.actions)for(var J=0;J<p.length;J++)this.updateButton(p[J])};
_.vh.Object.defineProperties(_.yJ,{template:{configurable:!0,enumerable:!0,get:function(){if(ROq===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);ROq=p}p=ROq;return p}}});
_.yJ.prototype.onServiceRequestCompleted=_.yJ.prototype.onServiceRequestCompleted;_.yJ.prototype.onYtServiceRequestSent=_.yJ.prototype.onYtServiceRequestSent;_.yJ.prototype.onYtNavigate=_.yJ.prototype.onYtNavigate;_.yJ.prototype.onPressedStateChanged=_.yJ.prototype.onPressedStateChanged;_.yJ.prototype.onHintIdChanged=_.yJ.prototype.onHintIdChanged;_.V([_.N(),_.Y("design:type",Object)],_.yJ.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],_.yJ.prototype,"isPressed",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],_.yJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.BR4.YtButtonBehavior),_.Y("design:type",Object)],_.yJ.prototype,"ytButtonBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],_.yJ.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],_.yJ.prototype,"ytComponentBehavior",void 0);
_.V([_.B(rF.YtRenderButtonBehavior),_.Y("design:type",Object)],_.yJ.prototype,"ytRenderButtonBehavior",void 0);_.V([_.bO("data.hint.hintRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],_.yJ.prototype,"onHintIdChanged",null);_.V([_.bO("isPressed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],_.yJ.prototype,"onPressedStateChanged",null);
_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],_.yJ.prototype,"onYtNavigate",null);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],_.yJ.prototype,"onYtServiceRequestSent",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],_.yJ.prototype,"onServiceRequestCompleted",null);_.V([_.gw({is:"ytd-button-renderer",disableElementRegistration:eOm})],_.yJ);var B7=function(){var p=_.T.apply(this,arguments)||this;p.modern=_.z("web_button_rework_with_live");p.buttonOverrides={style:"overlay",type:"filled"};return p};
_.Q(B7,_.T);_.R=B7.prototype;_.R.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"}}}}};
_.R.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.R.dataChanged=function(){if(this.data&&this.data.sticker){var p=_.I4(this.data.sticker.thumbnails,this.stickerWidth);p||_.t1t(p).thenCatch(function(){_.xQ(new _.TG("Failed to load Super Sticker with url",p))})}};
_.R.computeAuthorPhotoSize=function(p){return(p==null?0:p.isV2Style)?32:40};
_.R.computeIsV2Style=function(p){return(p==null?0:p.isV2Style)?!0:!1};
_.R.onStickerLoaded=function(p){var J,S,H;(J=_.Yt(p))==null||(S=J.parentNode)==null||(H=S.classList)==null||H.add("sticker-loaded")};
_.R.computeNoveltyImageWidth=function(p){var J,S;if(p==null?0:(J=p.headerOverlayImage)==null?0:(S=J.thumbnails)==null?0:S.length){J=p.headerOverlayImage.thumbnails[0];var H,M;if((H=p.pdgPurchasedNoveltyLoggingDirectives)==null?0:(M=H.loggingDirectives)==null?0:M.trackingParams){var X,Z;FjX((X=p.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Z=X.loggingDirectives)==null?void 0:Z.trackingParams)}return J.width||0}return 0};
_.R.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.R.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)},
_.K3(this.hostElement,p))};
_.R.onBuyButtonClick=function(){var p,J=_.e((p=this.data)==null?void 0:p.buyButton,_.Za);J&&!VRX(J.command)&&this.ytRendererBehavior.logExplicitClick(J)};
_.R.shouldSupportWholeItemClick=function(){return!0};
_.vh.Object.defineProperties(B7.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}}});
B7.prototype.updateStickerStyles=B7.prototype.updateStickerStyles;B7.prototype.isDeletedChanged=B7.prototype.isDeletedChanged;B7.prototype.onStickerLoaded=B7.prototype.onStickerLoaded;B7.prototype.dataChanged=B7.prototype.dataChanged;_.V([_.B(BJd.YtPdgLiveChatItemBehavior),_.Y("design:type",Object)],B7.prototype,"ytPdgLiveChatItemBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],B7.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],B7.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],B7.prototype,"data",void 0);
_.V([_.N({computed:"computeAuthorPhotoSize(data)"}),_.Y("design:type",Number)],B7.prototype,"authorPhotoSize",void 0);_.V([_.N(),_.Y("design:type",Boolean)],B7.prototype,"isDeleted",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],B7.prototype,"dashboardMoneyFeed",void 0);_.V([_.N({computed:"computeNoveltyImageWidth(data)"}),_.Y("design:type",Number)],B7.prototype,"noveltyWidth",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],B7.prototype,"modern",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.Y("design:type",Boolean)],B7.prototype,"isV2Style",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B7.prototype,"dataChanged",null);_.V([_.GI("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],B7.prototype,"onStickerLoaded",null);
_.V([_.U("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],B7.prototype,"stickerWidth",null);_.V([_.U("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],B7.prototype,"stickerHeight",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],B7.prototype,"hasHeartButton",null);_.V([_.U("data","dashboardMoneyFeed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],B7.prototype,"hideLowerBumper",null);
_.V([_.bO("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B7.prototype,"isDeletedChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B7.prototype,"updateStickerStyles",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],B7);
_.l(B7,"yt-live-chat-paid-sticker-renderer",function(){if(iZ8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;XcM===void 0&&(XcM=document.createElement("template"));var H=XcM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);iZ8=p}p=iZ8;return p},{mode:0});var WhE;var QFp;var CR8,yjv=function(){return CR8!==void 0?CR8:CR8=document.createElement("template")};
document.head.appendChild(yjv().content);var BP8,UtM=function(){return BP8!==void 0?BP8:BP8=document.createElement("template")};
document.head.appendChild(UtM().content);var sFM;var gkM,t1L=function(){return gkM!==void 0?gkM:gkM=document.createElement("template")};
document.head.appendChild(t1L().content);var hOd;var Dt8=document.head,kSv=Dt8.appendChild,NPU;if(hOd===void 0){var TPL=document.createElement("template");_.C(TPL,"\x3c!--css-build:shady--\x3e");TPL.content.insertBefore(t1L().content.cloneNode(!0),TPL.content.firstChild);hOd=TPL}NPU=hOd;kSv.call(Dt8,NPU.content);var dtq=document.head,udE=dtq.appendChild,lEo;if(sFM===void 0){var U7=document.createElement("template");_.C(U7,"\x3c!--css-build:shady--\x3e");U7.content.insertBefore(UtM().content.cloneNode(!0),U7.content.firstChild);U7.content.insertBefore(yjv().content.cloneNode(!0),U7.content.firstChild);sFM=U7}lEo=sFM;udE.call(dtq,lEo.content);var s7=function(){var p=_.f3.apply(this,arguments)||this;p.focusedIndex=0;p.verticalOffset=0;p.verticalAlign="top";p.dynamicAlign=!0;return p};
_.Q(s7,_.f3);s7.prototype.emojiUrl=function(p){p=_.mB(this.emojiManager,p);if(!p)return"";var J;p=(J=p.image)==null?void 0:J.thumbnails;return _.I4(p,24)||""};
var V1L=function(p){var J;p.emojiVariants&&(J=p.data)!=null&&J.target&&_.mN(p,function(){p.set("verticalOffset",-1*p.hostElement.clientHeight);var S=_.Jn(p.hostElement).querySelector("img");S&&S.focus()})};
_.R=s7.prototype;_.R.onKeyboardEnter=function(){};
_.R.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.R.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.R.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()}};
_.R.onYtEmojiSelect=function(p){var J=this,S,H,M,X,Z,n,b,F;return _.G(function(f){if(f.nextAddress==1)return H=(S=J.data)==null?void 0:S.emoji,Z=((M=H)==null?void 0:M.stickyPrefId)||((X=H)==null?void 0:X.emojiId),b=(n=p.detail)==null?void 0:n.emojiId,Z&&b&&Z!==b?f.yield((F=J.emojiManager)==null?void 0:r6p(F,H,b),2):f.return();_.IV(J.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[H,b]);_.UK(f)})};
_.R.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=_.Jn(this.hostElement).querySelector("#variants"))&&p.children[this.focusedIndex].focus())};
_.vh.Object.defineProperties(s7.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}}});
s7.prototype.onYtEmojiSelect=s7.prototype.onYtEmojiSelect;s7.prototype.onKeyDown=s7.prototype.onKeyDown;s7.prototype.onEmojiVariantsChanged=s7.prototype.onEmojiVariantsChanged;s7.prototype.onVerticalOffsetOrPositionTargetChanged=s7.prototype.onVerticalOffsetOrPositionTargetChanged;_.V([_.B(_.Gb),_.Y("design:type",Object)],s7.prototype,"ironOverlayBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],s7.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",_.bP)],s7.prototype,"emojiManager",void 0);
_.V([_.N(),_.Y("design:type",Object)],s7.prototype,"emojiVariants",void 0);_.V([_.N(),_.Y("design:type",Object)],s7.prototype,"focusedIndex",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],s7.prototype,"positionTarget",null);_.V([_.N({reflectToAttribute:!0}),_.U("verticalOffset","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],s7.prototype,"isPositioned",null);_.V([_.N(),_.Y("design:type",Object)],s7.prototype,"verticalOffset",void 0);
_.V([_.N(),_.Y("design:type",Object)],s7.prototype,"verticalAlign",void 0);_.V([_.N(),_.Y("design:type",Object)],s7.prototype,"dynamicAlign",void 0);_.V([_.bO("verticalOffset","positionTarget"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s7.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.V([_.bO("emojiVariants"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s7.prototype,"onEmojiVariantsChanged",null);
_.V([_.GI("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],s7.prototype,"onKeyDown",null);_.V([_.GI("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype",Promise)],s7.prototype,"onYtEmojiSelect",null);_.V([_.OD()],s7);var qxn=[s7.prototype];var aEp;var Ekd;var Yxm=/medium-light|medium-dark|light|medium|dark/,rjv=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,jFM=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),gV=function(){var p=_.T.apply(this,arguments)||this;p.userSelection={left:null,right:null};p.scrollAction="lock";p.isEmojiDraftInProgress=!1;return p};
_.Q(gV,_.T);_.R=gV.prototype;_.R.onClick=function(p){p=_.Yt(p);p instanceof HTMLImageElement&&this.selectOrUpdateEmoji(p)};
_.R.selectOrUpdateEmoji=function(p){var J=p.getAttribute("selection");J&&(J==="default"?_.cf(this.hostElement,"yt-emoji-select",_.mB(this.emojiManager,p.id)):J==="left"?this.userSelection=Object.assign({},this.userSelection,{left:p.src}):J==="right"?this.userSelection=Object.assign({},this.userSelection,{right:p.src}):J==="user"&&this.userSelection.left&&this.userSelection.right&&_.cf(this.hostElement,"yt-emoji-select",_.mB(this.emojiManager,p.id)))};
_.R.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.R.onMultiSelectorThumbnailRowChanged=function(){var p,J,S;((p=this.data)==null?0:(J=p.emoji)==null?0:(S=J.multiSelectorThumbnailRow)==null?0:S.length)&&this.openSelector()};
_.R.getThumbnailFromEmojiRow=function(p){var J,S;return(p==null?void 0:(J=p.thumbnails)==null?void 0:(S=J[0])==null?void 0:S.url)||""};
_.R.getEmojiAltTextForPartialSelector=function(p){var J;return((J=this.getThumbnailFromEmojiRow(p).match(rjv))==null?void 0:J[0])||""};
_.R.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.R.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.R.getRowSelection=function(p){return["left","right"][p]};
_.R.getIdFromComposedEmoji=function(p){return(p==null?void 0:p.emojiId)||""};
_.R.getEmojiFromPartialSelections=function(p,J){if(!p&&!J)return null;var S,H,M=(S=this.data)==null?void 0:(H=S.emoji)==null?void 0:H.variantIds;if(!M||!M.length)return null;var X;p=(X=p.match(Yxm))==null?void 0:X[0];var Z;J=(Z=J.match(Yxm))==null?void 0:Z[0];if(!p||!J)return null;var n=jFM.get(p);Z=jFM.get(J);if(n===Z){Z=Array.from(jFM.values()).filter(function(F){return F!==n}).join("|");
var b=new RegExp("^((?!("+Z+")).)*"+n+"$")}else b=new RegExp(n+".*"+Z);return(M=M.find(function(F){return b.test(F)}))&&_.mB(this.emojiManager,M)||null};
_.R.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var p,J=this.ytEmojiSelectorBehavior.emojiUrl(((p=this.data.emoji)==null?void 0:p.emojiId)||"");_.Jn(this.hostElement).querySelector('[selection="user"]').src.includes(J)||(this.isEmojiDraftInProgress=!0)}};
_.R.onDomChange=function(){V1L(this.ytEmojiSelectorBehavior)};
_.R.getFocusableElements=function(){return _.Jn(this.hostElement).querySelectorAll("img").filter(function(p){return p.getAttribute("role")==="option"})};
_.R.changeFocus=function(p){var J=this.getFocusableElements();J!=null&&J.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+p+J.length)%J.length,this.ytEmojiSelectorBehavior.focusedIndex<J.length&&(p=J[this.ytEmojiSelectorBehavior.focusedIndex])&&p.focus())};
_.R.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))};
_.vh.Object.defineProperties(gV.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var p=this,J,S,H;return this.emojiManager&&((J=this.data)==null?0:(S=J.emoji)==null?0:(H=S.variantIds)==null?0:H.length)?this.data.emoji.variantIds.map(function(M){return!!M&&_.mB(p.emojiManager,M)}).filter(function(M){return!!M}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var p,J=(p=this.userSelection)==null?void 0:p.left,S;p=(S=this.userSelection)==null?void 0:S.right;return J&&p?this.getEmojiFromPartialSelections(J,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 J;p=(J=this.userSelection)==null?void 0:J.left;var S;J=(S=this.userSelection)==null?void 0:S.right;if(!p&&!J){var H;return this.ytEmojiSelectorBehavior.emojiUrl(((H=this.data.emoji)==null?void 0:H.emojiId)||"")}return p&&!J?p:!p&&J?J:""}}});
gV.prototype.onMultiSelectorThumbnailRowChanged=gV.prototype.onMultiSelectorThumbnailRowChanged;gV.prototype.onClick=gV.prototype.onClick;_.V([_.B(_.Gb),_.Y("design:type",Object)],gV.prototype,"ironOverlayBehavior",void 0);_.V([_.B(qxn),_.Y("design:type",Object)],gV.prototype,"ytEmojiSelectorBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],gV.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",_.bP)],gV.prototype,"emojiManager",void 0);
_.V([_.N(),_.Y("design:type",Object)],gV.prototype,"userSelection",void 0);_.V([_.N(),_.Y("design:type",Object)],gV.prototype,"scrollAction",void 0);_.V([_.N(),_.Y("design:type",Object)],gV.prototype,"isEmojiDraftInProgress",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gV.prototype,"emojiVariants",null);_.V([_.U("data","userSelection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gV.prototype,"composedEmojiSelection",null);
_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],gV.prototype,"onClick",null);_.V([_.bO("data.emoji.multiSelectorThumbnailRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gV.prototype,"onMultiSelectorThumbnailRowChanged",null);_.V([_.U("data","userSelection","composedEmojiSelection"),_.Y("design:type",String),_.Y("design:paramtypes",[])],gV.prototype,"draftEmojiUrl",null);
_.V([_.sD({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],gV);
_.l(gV,"yt-emoji-multi-person-selector",function(){if(Ekd===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;aEp===void 0&&(aEp=document.createElement("template"));var H=aEp;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Ekd=p}p=Ekd;return p},{mode:2});var wc8;var xtM;var t0=function(){var p=_.T.apply(this,arguments)||this;p.tooltip_=null;return p};
_.Q(t0,_.T);_.R=t0.prototype;_.R.dataChanged_=function(){var p;if((p=this.data)==null?0:p.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Jn(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Rf)(this.tooltip_).textContent=this.data.tooltip};
_.R.computeTargetId=function(){var p;return((p=this.data)==null?void 0:p.targetId)||""};
_.R.computeId_=function(p){return p};
_.R.computeIcon_=function(p){return _.Xj(p)};
_.R.onTap_=function(){this.active=!this.active;_.cf(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.R.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("active-changed",this.active))};
_.vh.Object.defineProperties(t0.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var p,J;if((p=this.data)==null?0:(J=p.icon)==null?0:J.iconType)return this.data.icon.iconType==="SUPER_STICKER";var S,H;return((S=this.data)==null?void 0:(H=S.icon)==null?void 0:H.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
t0.prototype.activeChangedForBinding=t0.prototype.activeChangedForBinding;t0.prototype.dataChanged_=t0.prototype.dataChanged_;_.V([_.B(_.RO.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],t0.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],t0.prototype,"data",void 0);_.V([_.N({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.Y("design:type",String)],t0.prototype,"id",void 0);
_.V([_.N({computed:"computeTargetId(data.targetId)"}),_.Y("design:type",String)],t0.prototype,"targetId",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],t0.prototype,"active",void 0);_.V([_.N({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.Y("design:type",String)],t0.prototype,"icon",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t0.prototype,"dataChanged_",null);
_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],t0.prototype,"iconFilled",null);_.V([_.bO("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t0.prototype,"activeChangedForBinding",null);_.V([_.sD({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],t0);
_.l(t0,"yt-emoji-picker-category-button-renderer",function(){if(xtM===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;wc8===void 0&&(wc8=document.createElement("template"));var H=wc8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);xtM=p}p=xtM;return p},{mode:2});var cj8;var IEM;var h0=function(){var p=_.T.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$14449_ignoreNextFocus_=!1;p.longPressTimeoutId=-1;return p};
_.Q(h0,_.T);_.R=h0.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.R.emojiChanged_=function(){this.changeFocus_(0,!1);for(var p=_.bC(),J=0;J<this.emoji.length;J++){var S={veType:88013,elementIndex:J},H=this.emoji[J];H.isCustomEmoji&&(H=document.querySelector(("#"+H.emojiId).replace("/","\\/")))&&(S=_.G$(p,S))&&(H.visualElement=S)}};
_.R.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.R.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.R.emojiSkinToneChanged_=function(p){this.skinTone=p};
_.R.dataChanged=function(){this.data&&this.data.emojiData&&qRm(this.emojiManager,this.data.emojiData)};
_.R.emojiUrl=function(p){p=this.getEmoji(p);if(!p)return"";var J;p=(J=p.image)==null?void 0:J.thumbnails;return _.I4(p,24)||""};
_.R.emojiAlt=function(p){var J=this.get("image.accessibility.accessibilityData.label",p);return J?J:p.isCustomEmoji?p.shortcuts[0]:p.emojiId};
_.R.emojiAriaLabel=function(p){return p.shortcuts?p.shortcuts[0]:""};
_.R.emojiAriaSelected=function(p,J,S){return p&&S==J?"true":"false"};
_.R.getEmoji=function(p){if(this.emojiManager)return this.shouldUseStickyPreferences?ELn(this.emojiManager,p):Fc(this.emojiManager,p)};
_.R.computeId_=function(p){return p.categoryId||""};
_.R.computeEmoji=function(p){var J=this;return this.emojiManager?p.emojiIds?p.emojiIds.map(function(S){return S?_.mB(J.emojiManager,S):null}).filter(hOL):p.emojiData?p.emojiData.map(function(S){var H=!!S.emojiId&&_.mB(J.emojiManager,S.emojiId);
return H?Object.assign({},H,S):null}).filter(hOL):[]:[]};
_.R.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.R.computeAriaLabel_=function(p){return _.E4(p)};
_.R.computeAriaActivedescendant_=function(p,J){return p&&p[J]?p[J].emojiId||"":""};
_.R.handleLongPressEmojiWithVariants=function(p,J){this.changeFocusToEmoji(p.emojiId,!1);this.openVariantSelector(p,J)};
_.R.onMouseDown=function(p){var J=this;this.hostElement!==document.activeElement&&(this.JSC$14449_ignoreNextFocus_=!0);if(p.button===0){var S=_.Yt(p);if(S instanceof HTMLImageElement){var H=_.Jn(this.hostElement).querySelector("#repeat").itemForElement(S);this.emojiContainsVariants(H)&&(this.longPressTimeoutId=setTimeout(function(){J.handleLongPressEmojiWithVariants(H,S)},500))}}};
_.R.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.R.onFocus=function(){this.JSC$14449_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14449_ignoreNextFocus_=!1};
_.R.onBlur_=function(){this.showFocus=!1};
_.R.emojiContainsVariants=function(p){return!!(p&&p.variantIds&&p.variantIds.length)};
_.R.onClick=function(p){clearTimeout(this.longPressTimeoutId);p=_.Yt(p);if(p instanceof HTMLImageElement){var J=p.id;this.changeFocusToEmoji(J,!1);var S=this.getEmoji(J),H;if(H=this.shouldUseStickyPreferences&&this.emojiContainsVariants(S)){var M;H=!((M=this.emojiManager.emojiMap[J])!=null&&M.stickyPrefId)}H?(M=_.Jn(this.hostElement).querySelector("#repeat").itemForElement(p),this.openVariantSelector(M,p)):_.cf(this.hostElement,"yt-emoji-select",S)}};
_.R.isActiveEmojiWithVariants=function(p,J){return p&&J?J.stickyPrefId?p===J.stickyPrefId:p===J.emojiId:!1};
_.R.onCloseEmojiVariantSelector=function(p){this.activeEmojiWithVariantsId===p&&(this.activeEmojiWithVariantsId="")};
_.R.onMouseOver_=function(p){p=_.Yt(p);p instanceof HTMLImageElement&&_.cf(this.hostElement,"yt-emoji-hover",_.mB(this.emojiManager,p.id))};
_.R.changeFocus_=function(p,J){this.focusedIndex=(this.focusedIndex+p+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(p=this.emoji[this.focusedIndex],J&&(this.showFocus=!0,_.Jn(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.cf(this.hostElement,"yt-emoji-hover",p)))};
_.R.changeFocusToEmoji=function(p,J){if(p){var S=this.emoji.findIndex(function(H){return H.emojiId===p});
S!==-1&&this.changeFocus_(S-this.focusedIndex,J)}};
_.R.onKeyDown_=function(p){switch(p.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var J=this.emoji[this.focusedIndex];if(J&&J.emojiId){if(this.emojiContainsVariants(J)){var S=_.Jn(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(J,S)}else _.cf(this.hostElement,"yt-emoji-select",Fc(this.emojiManager,J.emojiId)),this.hostElement.focus();p.preventDefault()}}break;case 40:this.changeFocus_(1,!0);p.preventDefault();break;case 38:this.changeFocus_(-1,!0),
p.preventDefault()}};
_.R.onEmojiStickyPreferenceChanged=function(p,J){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&p.emojiId&&p.variantIds&&p.variantIds.includes(J)&&this.activeEmojiWithVariantsId!==J&&this.setStickyEmojiPreference(p.emojiId,J)};
_.R.openVariantSelector=function(p,J){this.activeEmojiWithVariantsId=p.stickyPrefId||p.emojiId||"";_.cf(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:p,target:J})};
_.R.setStickyEmojiPreference=function(p,J){if(this.data){var S=this.emoji.findIndex(function(M){return M.emojiId===p});
if(S!==-1){var H=this.emoji[S];H.stickyPrefId=J;this.set("emoji."+S,Object.assign({},H));this.activeEmojiWithVariantsId=J}}};
h0.prototype.onKeyDown_=h0.prototype.onKeyDown_;h0.prototype.onMouseOver_=h0.prototype.onMouseOver_;h0.prototype.onClick=h0.prototype.onClick;h0.prototype.onBlur_=h0.prototype.onBlur_;h0.prototype.onFocus=h0.prototype.onFocus;h0.prototype.onMouseUp=h0.prototype.onMouseUp;h0.prototype.onMouseDown=h0.prototype.onMouseDown;h0.prototype.dataChanged=h0.prototype.dataChanged;h0.prototype.disableIncrementalLoadingChanged_=h0.prototype.disableIncrementalLoadingChanged_;h0.prototype.emojiManagerChanged_=h0.prototype.emojiManagerChanged_;
h0.prototype.emojiChanged_=h0.prototype.emojiChanged_;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],h0.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],h0.prototype,"data",void 0);_.V([_.N({computed:"computeId_(data)"}),_.Y("design:type",String)],h0.prototype,"id",void 0);_.V([_.N({computed:"computeEmoji(data)"}),_.Y("design:type",Array)],h0.prototype,"emoji",void 0);_.V([_.N(),_.Y("design:type",Number)],h0.prototype,"skinTone",void 0);
_.V([_.N(),_.Y("design:type",_.bP)],h0.prototype,"emojiManager",void 0);_.V([_.N(),_.Y("design:type",Boolean)],h0.prototype,"disableIncrementalLoading",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],h0.prototype,"focusedIndex",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],h0.prototype,"showFocus",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.Y("design:type",Object)],h0.prototype,"ariaLabel",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.Y("design:type",Object)],h0.prototype,"ariaActivedescendant",void 0);_.V([_.N({value:60}),_.Y("design:type",Number)],h0.prototype,"domRepeatTargetFramerate",void 0);_.V([_.N({value:1}),_.Y("design:type",Number)],h0.prototype,"domRepeatInitialCount",void 0);_.V([_.N({value:""}),_.Y("design:type",String)],h0.prototype,"activeEmojiWithVariantsId",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],h0.prototype,"shouldUseStickyPreferences",void 0);_.V([_.bO("emoji"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h0.prototype,"emojiChanged_",null);_.V([_.bO("emojiManager"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h0.prototype,"emojiManagerChanged_",null);
_.V([_.bO("disableIncrementalLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h0.prototype,"disableIncrementalLoadingChanged_",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h0.prototype,"dataChanged",null);_.V([_.GI("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],h0.prototype,"onMouseDown",null);
_.V([_.GI("mouseup"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h0.prototype,"onMouseUp",null);_.V([_.GI("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h0.prototype,"onFocus",null);_.V([_.GI("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h0.prototype,"onBlur_",null);
_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],h0.prototype,"onClick",null);_.V([_.GI("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],h0.prototype,"onMouseOver_",null);_.V([_.GI("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],h0.prototype,"onKeyDown_",null);
_.V([_.sD({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],h0);
_.l(h0,"yt-emoji-picker-category-renderer",function(){if(IEM===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;cj8===void 0&&(cj8=document.createElement("template"));var H=cj8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);IEM=p}p=IEM;return p},{mode:2});var Lhd;var pn8;var JBd;var SCL;var DX=function(){var p=_.T.apply(this,arguments)||this;p.ariaLabel=null;p.ariaActivedescendant=null;p.getFormattedStringRawText=_.E4;p.JSC$14455_ignoreNextFocus_=!1;return p};
_.Q(DX,_.T);_.R=DX.prototype;_.R.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")};
_.R.emojiUrl=function(p){var J,S;p=(J=Fc(this.emojiManager,p,!0))==null?void 0:(S=J.image)==null?void 0:S.thumbnails;return _.I4(p,24)||""};
_.R.emojiAlt=function(p){var J=this.get("image.accessibility.accessibilityData.label",p);return J?J:p.isCustomEmoji?p.shortcuts[0]:p.emojiId};
_.R.emojiId=function(p){return"emoji"+p};
_.R.computeId_=function(p){return p.categoryId||""};
_.R.computeAriaActivedescendant_=function(p){return this.emoji&&p<this.emoji.length?this.emojiId(p):""};
_.R.emojiChanged_=function(){this.changeFocus_(0,!1);for(var p=_.bC(),J=0;J<this.emoji.length;J++){var S={veType:88013,elementIndex:J},H=this.emoji[J];H.isCustomEmoji&&(H=document.querySelector(("#"+H.emojiId).replace("/","\\/")))&&(S=_.G$(p,S))&&(H.visualElement=S)}};
_.R.computeEmoji_=function(p){var J=this;return this.emojiManager?p.emojiIds.map(function(S){return _.mB(J.emojiManager,S,!0)}).filter(Dtv):[]};
_.R.titleOffsetChanged_=function(){var p=this.hostElement.getBoundingClientRect(),J=_.Jn(this.hostElement).querySelector("#title").getBoundingClientRect();p=Math.max(0,Math.min(this.titleOffset,p.height-J.height));_.Jn(this.hostElement).querySelector("#title").style.top=p+"px"};
_.R.onEmojiMouseOver_=function(p){_.cf(this.hostElement,"yt-emoji-hover",p.model.item)};
_.R.onEmojiTap_=function(p){this.data.command&&(p=oLv(_.vO().resolve(_.F9(HJ)),this.data.command,p),_.cf(this.hostElement,"yt-navigate",p))};
_.R.emojiAriaLabel=function(p){return p.shortcuts[0]};
_.R.emojiAriaSelected=function(p,J,S){return p&&S==J?"true":"false"};
_.R.changeFocus_=function(p,J){var S=this.emoji.length;this.focusedIndex=(this.focusedIndex+p+S)%S;p=this.emoji[this.focusedIndex];if(J){var H;(H=_.Jn(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||H.scrollIntoView(!1);_.cf(this.hostElement,"yt-emoji-hover",p)}};
_.R.onMouseDown_=function(){this.JSC$14455_ignoreNextFocus_=!0};
_.R.onFocus_=function(){this.JSC$14455_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14455_ignoreNextFocus_=!1};
_.R.onBlur_=function(){this.showFocus=!1};
_.R.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()}};
DX.prototype.onKeyDown_=DX.prototype.onKeyDown_;DX.prototype.onBlur_=DX.prototype.onBlur_;DX.prototype.onFocus_=DX.prototype.onFocus_;DX.prototype.onMouseDown_=DX.prototype.onMouseDown_;DX.prototype.onEmojiTap_=DX.prototype.onEmojiTap_;DX.prototype.titleOffsetChanged_=DX.prototype.titleOffsetChanged_;DX.prototype.emojiChanged_=DX.prototype.emojiChanged_;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],DX.prototype,"ytComponentBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],DX.prototype,"data",void 0);_.V([_.N({computed:"computeId_(data)"}),_.Y("design:type",String)],DX.prototype,"id",void 0);_.V([_.N({computed:"computeEmoji_(data)"}),_.Y("design:type",Array)],DX.prototype,"emoji",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],DX.prototype,"titleOffset",void 0);_.V([_.N({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.Y("design:type",Object)],DX.prototype,"ariaLabel",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.Y("design:type",Object)],DX.prototype,"ariaActivedescendant",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],DX.prototype,"showFocus",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],DX.prototype,"focusedIndex",void 0);_.V([_.N(),_.Y("design:type",_.bP)],DX.prototype,"emojiManager",void 0);
_.V([_.bO("emoji"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"emojiChanged_",null);_.V([_.bO("titleOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"titleOffsetChanged_",null);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],DX.prototype,"onEmojiTap_",null);
_.V([_.GI("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"onMouseDown_",null);_.V([_.GI("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"onFocus_",null);_.V([_.GI("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"onBlur_",null);
_.V([_.GI("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],DX.prototype,"onKeyDown_",null);_.V([_.sD({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],DX);
_.l(DX,"yt-emoji-picker-upsell-category-renderer",function(){if(SCL===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;JBd===void 0&&(JBd=document.createElement("template"));var H=JBd;S.call(J,H.content.cloneNode(!0),p.content.firstChild);SCL=p}p=SCL;return p},{mode:2});var H2m;var MVn;var kY=function(){var p=_.T.apply(this,arguments)||this;p.scrollAction="lock";p.verticalAlign="top";return p};
_.Q(kY,_.T);_.R=kY.prototype;_.R.onClick=function(p){p=_.Yt(p);p instanceof HTMLImageElement&&_.cf(this.hostElement,"yt-emoji-select",_.mB(this.emojiManager,p.id))};
_.R.openSelector=function(){this.ironOverlayBehavior.open()};
_.R.onDomChange=function(){V1L(this.ytEmojiSelectorBehavior)};
_.R.computeIsFamilySelector=function(p){var J;return(p==null?void 0:(J=p.emoji)==null?void 0:J.emojiId)==="\ud83d\udc6a"};
_.R.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var p=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];p&&p.emojiId&&(_.cf(this.hostElement,"yt-emoji-select",_.mB(this.emojiManager,p.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.vh.Object.defineProperties(kY.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var p=this,J,S,H;return this.emojiManager&&((J=this.data)==null?0:(S=J.emoji)==null?0:(H=S.variantIds)==null?0:H.length)?this.data.emoji.variantIds.map(function(M){return!!M&&_.mB(p.emojiManager,M)}).filter(function(M){return!!M}):[]}}});
kY.prototype.onClick=kY.prototype.onClick;_.V([_.B(_.Gb),_.Y("design:type",Object)],kY.prototype,"ironOverlayBehavior",void 0);_.V([_.B(qxn),_.Y("design:type",Object)],kY.prototype,"ytEmojiSelectorBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],kY.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",_.bP)],kY.prototype,"emojiManager",void 0);_.V([_.N(),_.Y("design:type",Object)],kY.prototype,"scrollAction",void 0);_.V([_.N(),_.Y("design:type",Object)],kY.prototype,"verticalAlign",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.Y("design:type",Boolean)],kY.prototype,"isFamilySelector",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kY.prototype,"emojiVariants",null);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],kY.prototype,"onClick",null);_.V([_.sD({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],kY);
_.l(kY,"yt-emoji-variant-selector",function(){if(MVn===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;H2m===void 0&&(H2m=document.createElement("template"));var H=H2m;S.call(J,H.content.cloneNode(!0),p.content.firstChild);MVn=p}p=MVn;return p},{mode:2});var Xn8=/:/g,i2n=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],NF=function(){var p=_.T.apply(this,arguments)||this;p.emojiVariantSelector=null;p.emojiMultiPersonSelector=null;p.identity=_.D3;p.lastAnimationTime_=0;p.animationStart_=null;p.animationEnd_=null;return p};
_.Q(NF,_.T);_.R=NF.prototype;
_.R.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}}};
_.R.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.v7)};
_.R.attached=function(){_.i9&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&aQ8(this.emojiManager)};
_.R.dataChanged=function(){var p;if((p=this.data)==null?0:p.categories){p=this.emojiManager;var J=this.getCustomEmojiIds();p.pickerCustomEmojiIds=[].concat(_.dW(TAq),_.dW(J))}};
_.R.getCustomEmojiIds=function(){var p,J=(p=this.data.categories)==null?void 0:p.find(function(X){var Z;return((Z=X.emojiPickerCategoryRenderer)==null?void 0:Z.categoryId)&&i2n.includes(X.emojiPickerCategoryRenderer.categoryId)}),S;
p=(S=this.data.categories)==null?void 0:S.find(function(X){return X.emojiPickerUpsellCategoryRenderer});
var H,M;return[J==null?void 0:(H=J.emojiPickerCategoryRenderer)==null?void 0:H.emojiIds,p==null?void 0:(M=p.emojiPickerUpsellCategoryRenderer)==null?void 0:M.emojiIds].flat().filter(function(X){return!!X})};
_.R.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.R.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.R.updateCategoriesAndPlaceholderInternal=function(p,J){var S=this;p&&J&&(this.categories=p.categories||[],this.categoryButtons=p.categoryButtons||[],this.resetPlaceholder(),this.search="",_.dw(function(){S.updateButtons_()}))};
_.R.computeId_=function(p){return p.id||""};
_.R.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(p){return p.emojiPickerCategoryRenderer&&p.emojiPickerCategoryRenderer.emojiData}):!1};
_.R.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.R.onShowEmojiVariantSelector=function(p){var J=p.detail.emojiData;J.variantIds&&J.variantIds.length&&(J.multiSelectorThumbnailRow&&J.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:J,target:p.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:J,target:p.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.R.onIronOverlayClosed=function(p){var J=ELn(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");J&&p.composedPath&&(p.composedPath().includes(_.Jn(this.hostElement).querySelector("#emoji-variant-selector"))||p.composedPath().includes(_.Jn(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.IV(this.hostElement,"yt-close-emoji-variant-selector",[J.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.R.onEmojiVariantSelectorMouseup=function(p){var J=p.target.firstChild;this.variantSelectorOpened&&J&&_.dw(function(){J.noCancelOnOutsideClick=!1},100)};
_.R.onEmojiVariantSelectorMousedown=function(p){p=p.target.firstChild;this.variantSelectorOpened&&p&&(p.noCancelOnOutsideClick=!1)};
_.R.onSelectCategory_=function(p){var J=this.search!="";this.search="";for(var S=_.Jn(this.hostElement).querySelector("#categories").children,H=0;H<S.length;H++){var M=S[H];if(M.id==p.detail.categoryId){J?(_.Jn(this.hostElement).querySelector("#categories").scrollTop=M.offsetTop,this.updateButtons_()):(this.animationStart_=_.Jn(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=M.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.R.onEmojiHover_=function(p){this.placeholder=p.detail.shortcuts?p.detail.shortcuts[0]:""};
_.R.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.R.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.R.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.R.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.R.computeSearchCategory_=function(p){p=p.replace(Xn8,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();p=p.split(" ");for(var J=[],S=this.emojiManager.emojis,H=0;H<S.length;H++){var M=S[H];if(M.searchTerms)for(var X=0;X<M.searchTerms.length;X++){for(var Z=M.searchTerms[X].toLocaleLowerCase(),n=!1,b=0;b<p.length;b++)if(Z.indexOf(p[b])!=-1){n=!0;break}if(n&&(!M.isCustomEmoji||!M.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(M.emojiId))){J.push(M.emojiId);
break}}}return{categoryId:-1,emojiIds:J}};
_.R.computeSearchEmptyMessage_=function(p,J){return p&&J&&J.emojiIds&&J.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.R.computeSearching_=function(p){return this.emojiManager&&p.replace(Xn8,"").length>1};
_.R.computeSkinToneHidden=function(){var p;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((p=this.data)==null||!p.hideSkinTonePicker)};
_.R.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.R.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.R.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.R.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.R.selectSkinTone_=function(p){p=Number(p.target.getAttribute("tone"));this.set("emojiManager.skinTone",p);_.IV(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[p]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.R.skinToneChanged_=function(){_.Jn(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var p=_.Jn(this.hostElement).querySelector("#dropdown-content").children,J=0;J<p.length;J++)J===this.skinTone?p[J].setAttribute("selected",""):p[J].removeAttribute("selected")};
_.R.animateScroll_=function(p){this.lastAnimationTime_||(this.lastAnimationTime_=p);p-=this.lastAnimationTime_;p<200?(_.Jn(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*p/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Jn(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.R.searchChanged_=function(){this.updateButtons_()};
_.R.updateButtons_=function(){var p=null;if(!this.search)for(var J=_.Jn(this.hostElement).querySelector("#categories").scrollTop,S=_.Jn(this.hostElement).querySelector("#categories").children,H=0;H<S.length;H++){var M=S[H];M.offsetTop<=J&&(p=M.id)}J=_.Jn(this.hostElement).querySelector("#category-buttons").children;for(S=0;S<J.length;S++)H=J[S],H.active=H.id===p};
NF.prototype.searchChanged_=NF.prototype.searchChanged_;NF.prototype.skinToneChanged_=NF.prototype.skinToneChanged_;NF.prototype.onEmojiHover_=NF.prototype.onEmojiHover_;NF.prototype.onSelectCategory_=NF.prototype.onSelectCategory_;NF.prototype.onShowEmojiVariantSelector=NF.prototype.onShowEmojiVariantSelector;NF.prototype.updateCategoriesAndPlaceholder_=NF.prototype.updateCategoriesAndPlaceholder_;NF.prototype.dataChanged=NF.prototype.dataChanged;
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],NF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],NF.prototype,"data",void 0);_.V([_.N({value:function(){return[]}}),
_.Y("design:type",Array)],NF.prototype,"categories",void 0);_.V([_.N({value:function(){return[]}}),
_.Y("design:type",Array)],NF.prototype,"categoryButtons",void 0);_.V([_.N({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],NF.prototype,"disableScroll",void 0);_.V([_.N({computed:"computeId_(data)",reflectToAttribute:!0}),_.Y("design:type",String)],NF.prototype,"id",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],NF.prototype,"selected",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],NF.prototype,"disableIncrementalLoading",void 0);_.V([_.N(),_.Y("design:type",String)],NF.prototype,"placeholder",void 0);_.V([_.N({value:""}),_.Y("design:type",String)],NF.prototype,"search",void 0);_.V([_.N({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],NF.prototype,"searching",void 0);_.V([_.N({computed:"computeSearchCategory_(search)"}),_.Y("design:type",Object)],NF.prototype,"searchCategory",void 0);
_.V([_.N({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.Y("design:type",Object)],NF.prototype,"searchEmptyMessage",void 0);_.V([_.N({computed:"identity(emojiManager.skinTone)"}),_.Y("design:type",Number)],NF.prototype,"skinTone",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],NF.prototype,"skinToneOpened",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],NF.prototype,"variantSelectorOpened",void 0);
_.V([_.N({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.Y("design:type",Boolean)],NF.prototype,"skinToneHidden",void 0);_.V([_.N(),_.Y("design:type",_.bP)],NF.prototype,"emojiManager",void 0);_.V([_.N(),_.Y("design:type",Object)],NF.prototype,"emojiVariantSelector",void 0);_.V([_.N(),_.Y("design:type",Object)],NF.prototype,"emojiMultiPersonSelector",void 0);
_.V([_.N({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.Y("design:type",Boolean)],NF.prototype,"shouldUseStickyPreferences",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NF.prototype,"dataChanged",null);_.V([_.bO("data","selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NF.prototype,"updateCategoriesAndPlaceholder_",null);
_.V([_.GI("yt-show-emoji-variant-selector"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],NF.prototype,"onShowEmojiVariantSelector",null);_.V([_.GI("yt-emoji-picker-select-category"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],NF.prototype,"onSelectCategory_",null);_.V([_.GI("yt-emoji-hover"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],NF.prototype,"onEmojiHover_",null);
_.V([_.bO("skinTone"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NF.prototype,"skinToneChanged_",null);_.V([_.bO("search"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NF.prototype,"searchChanged_",null);_.V([_.sD({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],NF);
_.l(NF,"yt-emoji-picker-renderer",function(){if(pn8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Lhd===void 0&&(Lhd=document.createElement("template"));var H=Lhd;S.call(J,H.content.cloneNode(!0),p.content.firstChild);pn8=p}p=pn8;return p},{mode:2});var T3=function(){var p=_.T.apply(this,arguments)||this;p.emojiManager=_.v7;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.selectedIndex=1;p.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return p};
_.Q(T3,_.T);_.R=T3.prototype;_.R.handleEmojiCustomizationVisible=function(p){this.emojiPickerRenderer.selected=p;this.selectedIndex=1;p?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.R.emojiCustomizationSetChanged=function(){var p;(p=this.data)!=null&&p.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.xs(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.R.updateSaveButtonState=function(p){var J;(J=this.data)!=null&&J.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.P$("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:p}))};
_.R.emojiUrl=function(p){p=_.mB(this.emojiManager,p);if(!p)return"";var J;p=(J=p.image)==null?void 0:J.thumbnails;return _.I4(p,24)||""};
_.R.emojiAlt=function(p){var J=_.mB(this.emojiManager,p);if(!J)return p;var S,H,M,X=(J==null?void 0:(S=J.image)==null?void 0:(H=S.accessibility)==null?void 0:(M=H.accessibilityData)==null?void 0:M.label)||"";return X?X:J.isCustomEmoji?J.shortcuts[0]:J.emojiId||p};
_.R.emojiAriaLabel=function(p){var J,S;return((J=_.mB(this.emojiManager,p))==null?void 0:(S=J.shortcuts)==null?void 0:S[0])||p};
_.R.onEmojiClick=function(p){p.model.index!==0&&(this.selectedIndex=p.model.index)};
_.R.onEmojiSelect=function(p){p=p.detail;var J,S;((J=this.data)==null?0:J.emojiCustomizationSetEntityKey)&&((S=this.emojiCustomizationSet)==null?0:S.emojiId)&&p.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,p.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.P$("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,p.emojiId,this.selectedIndex)}))};
_.R.canEditEmoji=function(p,J,S){p=p.indexOf(J);return p===S||p===0||S===0?!1:!0};
_.R.getUpdatedEmojiIdList=function(p,J,S){var H=p.indexOf(J);p=[].concat(_.dW(p));H>=0&&(p[H]=p[S]);p[S]=J;return p};
_.vh.Object.defineProperties(T3,{template:{configurable:!0,enumerable:!0,get:function(){if(QFp===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;WhE===void 0&&(WhE=document.createElement("template"));var H=WhE;S.call(J,H.content.cloneNode(!0),p.content.firstChild);QFp=p}p=QFp;return p}}});
T3.prototype.onEmojiSelect=T3.prototype.onEmojiSelect;_.V([_.B(_.i1),_.Y("design:type",Object)],T3.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],T3.prototype,"ytActionHandlerBehavior",void 0);_.V([_.FM("yt-emoji-picker-renderer"),_.Y("design:type",Object)],T3.prototype,"emojiPickerRenderer",void 0);
_.V([_.N({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(p,J){return _.RR(p.entities,"emojiCustomizationSetEntity",J)},
observer:"emojiCustomizationSetChanged"}),_.Y("design:type",Object)],T3.prototype,"emojiCustomizationSet",void 0);_.V([_.N(),_.Y("design:type",Object)],T3.prototype,"originalEmojiSet",void 0);_.V([_.N(),_.Y("design:type",_.bP)],T3.prototype,"emojiManager",void 0);_.V([_.N(),_.Y("design:type",Object)],T3.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],T3.prototype,"isDarkTheme",void 0);_.V([_.N(),_.Y("design:type",Object)],T3.prototype,"selectedIndex",void 0);
_.V([_.GI("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],T3.prototype,"onEmojiSelect",null);_.V([_.sD({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],T3);var RiL;var KWL;var Z2p;var nJ8;var dV=function(){var p=_.T.apply(this,arguments)||this;p.authorBadges=[];return p};
_.Q(dV,_.T);_.R=dV.prototype;_.R.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.R.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]]"}}}}}};
_.R.dataChanged=function(){var p=XKs(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",p)};
_.R.updateMessage=function(){var p=this.data.message,J=_.Jn(_.Jn(this.hostElement).querySelector("#message"));J.textContent="";p&&J.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(p))};
_.R.shouldSupportWholeItemClick=function(){return!0};
_.R.onShowOriginalClick=function(p){p.preventDefault();this.showOriginal=!0};
_.R.computeShowBar=function(p,J,S){return p&&J||S};
_.R.computeAuthorBadges=function(p){return p.authorBadges||[]};
_.R.computeAuthorIsOwner=function(p){return!!iRg(p.authorBadges,"owner")};
_.R.computeAuthorNameColor=function(p){var J;if(_.z("live_chat_author_name_color_usernames")&&(p==null?0:(J=p.authorName)==null?0:J.simpleText))return _.bRi(_.mOL(p.authorName.simpleText));if(_.z("live_chat_seed_color_usernames")&&(p==null?0:p.authorSeedColorArgb))return _.bRi(_.Hi(p.authorSeedColorArgb));if(_.z("live_chat_colored_usernames"))return"#cc0000";var S;return _.z("live_chat_simple_color_usernames")&&(p==null?0:(S=p.authorName)==null?0:S.simpleText)&&(p==null?0:p.authorUsernameColorLight)&&
(p==null?0:p.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Hi(p.authorUsernameColorDark):_.Hi(p.authorUsernameColorLight):""};
dV.prototype.updateMessage=dV.prototype.updateMessage;dV.prototype.dataChanged=dV.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],dV.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],dV.prototype,"data",void 0);
_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dV.prototype,"showOriginal",void 0);_.V([_.N({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],dV.prototype,"isDimmed",void 0);_.V([_.N({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],dV.prototype,"showBar",void 0);
_.V([_.N({computed:"computeAuthorBadges(data)"}),_.Y("design:type",Array)],dV.prototype,"authorBadges",void 0);_.V([_.N({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],dV.prototype,"authorIsOwner",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dV.prototype,"inCollapsedBanner",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dV.prototype,"inBanner",void 0);
_.V([_.N({value:_.z("live_chat_hide_avatars"),reflectToAttribute:!0}),_.Y("design:type",Boolean)],dV.prototype,"avatarHidden",void 0);_.V([_.N({computed:"computeAuthorNameColor(data)"}),_.Y("design:type",String)],dV.prototype,"authorNameColor",void 0);_.V([_.N(),_.Y("design:type",_.z3)],dV.prototype,"participantsManager",void 0);_.V([_.N({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.Y("design:type",Object)],dV.prototype,"filledButtonOverrides",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dV.prototype,"dataChanged",null);_.V([_.bO("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dV.prototype,"updateMessage",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],dV);
_.l(dV,"yt-live-chat-text-message-renderer",function(){if(nJ8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Z2p===void 0&&(Z2p=document.createElement("template"));var H=Z2p;S.call(J,H.content.cloneNode(!0),p.content.firstChild);nJ8=p}p=nJ8;return p},{mode:0});var uP=function(){var p=_.T.apply(this,arguments)||this;p.tonalButtonOverrides={type:"tonal",style:"overlay"};return p};
_.Q(uP,_.T);
uP.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]]"}}}}}};
uP.prototype.shouldSupportInlineActionButtons=function(){return!0};
uP.prototype.shouldSupportWholeItemClick=function(){return!0};
_.vh.Object.defineProperties(uP.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],uP.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],uP.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",_.z3)],uP.prototype,"participantsManager",void 0);
_.V([_.N(),_.Y("design:type",Object)],uP.prototype,"tonalButtonOverrides",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.infoDialogButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uP.prototype,"hasInfoDialogButton",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],uP);
_.l(uP,"yt-live-chat-auto-mod-message-renderer",function(){if(KWL===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;RiL===void 0&&(RiL=document.createElement("template"));var H=RiL;S.call(J,H.content.cloneNode(!0),p.content.firstChild);KWL=p}p=KWL;return p},{mode:0});var Gpo;var b28;var mxv;var FWE=function(){return _.T.apply(this,arguments)||this};
_.Q(FWE,_.T);_.V([_.N(),_.Y("design:type",Object)],FWE.prototype,"data",void 0);_.V([_.gw({is:"ytd-factoid-renderer",disableElementRegistration:!0})],FWE);
_.l(FWE,"ytd-factoid-renderer",function(){if(mxv!==void 0)return mxv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return mxv=p},{mode:1});var lP=function(){return _.T.apply(this,arguments)||this};
_.Q(lP,_.T);lP.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.V([_.N(),_.Y("design:type",Object)],lP.prototype,"data",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],lP);
_.l(lP,"yt-live-chat-channel-activity-reputation-renderer",function(){if(b28===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Gpo===void 0&&(Gpo=document.createElement("template"));var H=Gpo;S.call(J,H.content.cloneNode(!0),p.content.firstChild);b28=p}p=b28;return p},{mode:0});var vJ8;var fi8;var VJ=function(){return _.T.apply(this,arguments)||this};
_.Q(VJ,_.T);VJ.prototype.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Boolean)],VJ.prototype,"menuFocused",void 0);_.V([_.N(),_.Y("design:type",Object)],VJ.prototype,"data",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],VJ.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],VJ);
_.l(VJ,"yt-live-chat-donation-announcement-renderer",function(){if(fi8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;vJ8===void 0&&(vJ8=document.createElement("template"));var H=vJ8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);fi8=p}p=fi8;return p},{mode:0});var O2d;var ABo,PXp=function(){if(ABo!==void 0)return ABo;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;O2d===void 0&&(O2d=document.createElement("template"));var H=O2d;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return ABo=p};var qF=function(){return _.T.apply(this,arguments)||this};
_.Q(qF,_.T);_.vh.Object.defineProperties(qF,{template:{configurable:!0,enumerable:!0,get:function(){return PXp()}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qF.prototype,"data",void 0);_.V([_.sD({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],qF);_.l(qF,"yt-live-chat-empty-feed-view-model",function(){return PXp()},{mode:0});var zi8;var $xn;var ax=function(){return _.T.apply(this,arguments)||this};
_.Q(ax,_.T);ax.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"}}}}}};
_.vh.Object.defineProperties(ax.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var p,J;return{runs:[{text:(p=this.data)==null?void 0:(J=p.channelName)==null?void 0:J.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var p=[],J;if((J=this.data)==null||!J.channelBadges)return p;var S;J=_.K((S=this.data)==null?void 0:S.channelBadges);for(S=J.next();!S.done;S=J.next()){S=_.e(S.value,A_m);var H=void 0,M=void 0;if((H=S)==null?0:(M=H.badgeImage)==null?0:M.sources)H=void 0,M={liveChatAuthorBadgeRenderer:{tooltip:S.tooltip,accessibility:{accessibilityData:{label:(H=_.e(S.rendererContext,_.PY))==null?void 0:H.label}}}},S.badgeImage.sources[0].clientResource?M.liveChatAuthorBadgeRenderer.icon=
{iconType:S.badgeImage.sources[0].clientResource.imageName}:M.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:S.badgeImage.sources},p.push(M)}return p}}});
_.V([_.N(),_.Y("design:type",Object)],ax.prototype,"data",void 0);_.V([_.U("data.channelName"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ax.prototype,"channelName",null);_.V([_.U("data.channelBadges"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],ax.prototype,"channelBadges",null);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],ax);
_.l(ax,"yt-live-chat-identity-view-model",function(){if($xn===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;zi8===void 0&&(zi8=document.createElement("template"));var H=zi8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);$xn=p}p=$xn;return p},{mode:0});var oJL;var eid;var WWm;var Qko;var E7=function(){var p=_.T.apply(this,arguments)||this;p.hidden=!1;p.supportsInlineActionButtons=!0;return p};
_.Q(E7,_.T);E7.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","")};
E7.prototype.dataChanged=function(p){var J=(0,_.Rf)(_.Jn(this.hostElement).querySelector("#detail-text"));J.textContent="";(p==null?0:p.detailText)&&J.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(p.detailText))};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],E7.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],E7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N({observer:"dataChanged"}),_.Y("design:type",Object)],E7.prototype,"data",void 0);
_.V([_.N({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Object)],E7.prototype,"hidden",void 0);_.V([_.gw({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],E7);
_.l(E7,"yt-live-chat-legacy-paid-message-renderer",function(){if(Qko===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;WWm===void 0&&(WWm=document.createElement("template"));var H=WWm;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Qko=p}p=Qko;return p},{mode:0});var CXn;var yBv;var Bz8={},YY=function(){return _.f3.apply(this,arguments)||this};
_.Q(YY,_.f3);YY.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
YY.prototype.onLiveChatMembershipItemBehaviorClick=YY.prototype.onLiveChatMembershipItemBehaviorClick;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],YY.prototype,"data",void 0);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],YY.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.V([_.OD()],YY);
Bz8.YtLiveChatMembershipItemBehavior=[YY.prototype,_.x.YtRendererBehavior];var rV=function(){var p=_.T.apply(this,arguments)||this;p.supportsInlineActionButtons=!0;p.hasPrimaryHeaderText=!1;p.showOnlyHeader=!1;p.authorBadges=[];p.modern=_.z("web_button_rework_with_live");p.buttonOverrides={style:"overlay",type:"filled"};return p};
_.Q(rV,_.T);_.R=rV.prototype;_.R.shouldSupportInlineActionButtons=function(){return!0};
_.R.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.R.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.R.messageChanged=function(){var p=this.data.message,J=(0,_.Rf)(_.Jn(this.hostElement).querySelector("#message"));J.textContent="";p&&J.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(p))};
_.R.computeHasPrimaryHeaderText=function(p){return!(!p||!p.headerPrimaryText)};
_.R.computeShowOnlyHeader=function(p,J){return this.isMessageEmpty(p,J)};
_.R.computeAuthorBadges=function(p){return p.authorBadges||[]};
_.R.isMessageEmpty=function(p,J){return!p||p.empty?!0:!p.message&&!p.inputField&&!J};
_.R.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.R.getInputElement=function(){return _.Jn(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.R.inputFocus=function(){var p=this.getInputElement();p&&p.focus()};
_.R.inputInsertEmoji=function(p){var J=this.getInputElement();J&&J.insertEmoji(p)};
_.R.inputMessage=function(){var p=this.getInputElement();return p&&this.data.inputField?(p.completeEmojis(),_.Nr(p.liveChatRichMessageInput)):null};
_.R.onFooterButtonClick=function(){this.data.footerButton&&_.cf(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.R.shouldSupportWholeItemClick=function(){return!0};
rV.prototype.isDeletedChanged=rV.prototype.isDeletedChanged;rV.prototype.messageChanged=rV.prototype.messageChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],rV.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(Bz8.YtLiveChatMembershipItemBehavior),_.Y("design:type",Object)],rV.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],rV.prototype,"data",void 0);_.V([_.N({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],rV.prototype,"hasPrimaryHeaderText",void 0);_.V([_.N({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Object)],rV.prototype,"showOnlyHeader",void 0);
_.V([_.N({computed:"computeAuthorBadges(data)"}),_.Y("design:type",Array)],rV.prototype,"authorBadges",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rV.prototype,"modern",void 0);_.V([_.bO("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rV.prototype,"messageChanged",null);_.V([_.bO("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rV.prototype,"isDeletedChanged",null);
_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],rV);
_.l(rV,"yt-live-chat-membership-item-renderer",function(){if(yBv===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;CXn===void 0&&(CXn=document.createElement("template"));var H=CXn;S.call(J,H.content.cloneNode(!0),p.content.firstChild);yBv=p}p=yBv;return p},{mode:0});var Uxv;var skp;var j$=function(){return _.T.apply(this,arguments)||this};
_.Q(j$,_.T);j$.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],j$.prototype,"data",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],j$);
_.l(j$,"yt-live-chat-mode-change-message-renderer",function(){if(skp===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Uxv===void 0&&(Uxv=document.createElement("template"));var H=Uxv;S.call(J,H.content.cloneNode(!0),p.content.firstChild);skp=p}p=skp;return p},{mode:0});var gJq;var tVM;var wV=function(){return _.T.apply(this,arguments)||this};
_.Q(wV,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],wV.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wV.prototype,"data",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],wV);
_.l(wV,"yt-live-chat-moderation-message-renderer",function(){if(tVM===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;gJq===void 0&&(gJq=document.createElement("template"));var H=gJq;S.call(J,H.content.cloneNode(!0),p.content.firstChild);tVM=p}p=tVM;return p},{mode:0});var him;var Dx8;var xY=function(){return _.T.apply(this,arguments)||this};
_.Q(xY,_.T);xY.prototype.onClick=function(){var p;if((p=this.data)!=null&&p.onClickCommand){var J;_.R4.instance.resolveCommand((J=this.data)==null?void 0:J.onClickCommand)}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.i1),_.Y("design:type",Object)],xY.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],xY.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xY.prototype,"data",void 0);
_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],xY);
_.l(xY,"yt-live-chat-offer-click-count-message-renderer",function(){if(Dx8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;him===void 0&&(him=document.createElement("template"));var H=him;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Dx8=p}p=Dx8;return p},{mode:0});var kp4;var Nzm=function(){return _.T.apply(this,arguments)||this};
_.Q(Nzm,_.T);_.V([_.N(),_.Y("design:type",Object)],Nzm.prototype,"data",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Nzm);
_.l(Nzm,"yt-live-chat-placeholder-item-renderer",function(){if(kp4===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);kp4=p}p=kp4;return p},{mode:0});var Tzm;var dx4;var u38=new qw(7),c7=function(){var p=_.T.apply(this,arguments)||this;p.data={};return p};
_.Q(c7,_.T);c7.prototype.dataChanged=function(){var p;((p=this.data)==null?0:p.class)&&_.XM(this.hostElement,this.data.class,!0);var J;((J=this.oldData)==null?0:J.class)&&_.XM(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
c7.prototype.computeTimestampString=function(p){return u38.format(new Date(p/1E3))};
c7.prototype.dataChanged=c7.prototype.dataChanged;_.V([_.N(),_.Y("design:type",Object)],c7.prototype,"data",void 0);_.V([_.N({computed:"computeTimestampString(data.timestampUsec)"}),_.Y("design:type",String)],c7.prototype,"timestampString",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],c7.prototype,"dataChanged",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],c7);
_.l(c7,"yt-live-chat-server-error-message",function(){if(dx4===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Tzm===void 0&&(Tzm=document.createElement("template"));var H=Tzm;S.call(J,H.content.cloneNode(!0),p.content.firstChild);dx4=p}p=dx4;return p},{mode:0});var liE;var VVn;var Ix=function(){var p=_.T.apply(this,arguments)||this;p.defaultToFilledIcon=!1;return p};
_.Q(Ix,_.T);Ix.prototype.computeHasPrimaryColorIcon=function(p){return p==="SPARK"||p==="SPONSORSHIP_STAR"};
Ix.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],Ix.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ix.prototype,"defaultToFilledIcon",void 0);_.V([_.N(),_.Y("design:type",Object)],Ix.prototype,"data",void 0);
_.V([_.N({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ix.prototype,"hasPrimaryColorIcon",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Ix);
_.l(Ix,"yt-live-chat-viewer-engagement-message-renderer",function(){if(VVn===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;liE===void 0&&(liE=document.createElement("template"));var H=liE;S.call(J,H.content.cloneNode(!0),p.content.firstChild);VVn=p}p=VVn;return p},{mode:0});var qCm;var Le=function(){var p=_.T.apply(this,arguments)||this;p.modernUpdate=!1;p.buttonStyle="overlay";p.buttonType="filled";return p};
_.Q(Le,_.T);Le.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Le.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Le.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Le.prototype,"modernUpdate",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],Le.prototype,"buttonStyle",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],Le.prototype,"buttonType",void 0);
_.V([_.gw({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Le);
_.l(Le,"ytd-ad-hover-text-button-renderer",function(){if(qCm!==void 0)return qCm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return qCm=p},{mode:1});var aiM;var pa=function(){var p=_.T.apply(this,arguments)||this;p.buttonOverrides={size:"XS"};return p};
_.Q(pa,_.T);pa.prototype.onHelpTap=function(p){this.data&&this.data.informationDialog&&(_.cf(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),p.preventDefault(),p.stopPropagation())};
_.V([_.N(),_.Y("design:type",Object)],pa.prototype,"buttonOverrides",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],pa.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],pa);
_.l(pa,"ytd-live-chat-purchased-product-message-renderer",function(){if(aiM!==void 0)return aiM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return aiM=p},{mode:1});var EJM;var YCp;var JM=function(){var p=_.T.apply(this,arguments)||this;p.isContainerDeleted=!1;return p};
_.Q(JM,_.T);JM.prototype.onContextMenuClick=function(p){this.ytLiveChatItemBehavior.showContextMenu(p)};
JM.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))};
JM.prototype.isContainerDeletedChanged=JM.prototype.isContainerDeletedChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],JM.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],JM.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],JM.prototype,"isContainerDeleted",void 0);
_.V([_.N(),_.Y("design:type",String)],JM.prototype,"deletedStateMessage",void 0);_.V([_.bO("isContainerDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JM.prototype,"isContainerDeletedChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],JM);
_.l(JM,"ytd-sponsorships-live-chat-header-renderer",function(){if(YCp!==void 0)return YCp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return YCp=p},{mode:1});var Sk=function(){var p=_.T.apply(this,arguments)||this;p.modern=_.z("web_button_rework_with_live");p.buttonOverrides={style:"overlay",type:"filled"};return p};
_.Q(Sk,_.T);Sk.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]]"}}}}}};
Sk.prototype.onCtaButtonClick=function(){var p,J=_.e((p=this.data)==null?void 0:p.optInPrompt,_.Za);if(p=this.maybeGetButtonCommand(J)){var S;(S=_.bC())==null||S.clickCommand(p)}};
Sk.prototype.maybeGetButtonCommand=function(p){return!p||!p.command||_.e(p.command,StM)===void 0&&_.e(p.command,JMU)===void 0?null:p.command};
Sk.prototype.shouldHideOptinPrompt=function(p,J){return!p||J};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],Sk.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Sk.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Sk.prototype,"modern",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Sk);
_.l(Sk,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(EJM!==void 0)return EJM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return EJM=p},{mode:1});var rBm;var HH=function(){return _.T.apply(this,arguments)||this};
_.Q(HH,_.T);HH.prototype.onContextMenuClick=function(p){this.ytLiveChatItemBehavior.showContextMenu(p)};
HH.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))};
HH.prototype.isDeletedChanged=HH.prototype.isDeletedChanged;_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],HH.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],HH.prototype,"data",void 0);_.V([_.bO("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HH.prototype,"isDeletedChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],HH);
_.l(HH,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(rBm!==void 0)return rBm;var p=document.createElement("template");_.C(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="star_circle_ribbon" 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(_.r().content.cloneNode(!0),p.content.firstChild);return rBm=p},{mode:1});var Mg=function(){var p=_.T.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};
_.Q(Mg,_.T);_.R=Mg.prototype;
_.R.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"}}}};
_.R.handleLiveChatAction=function(p){_.e(p,u8o)?this.handleMarkChatItemAsDeletedAction(_.e(p,u8o)):_.e(p,dI8)&&this.handleRemoveChatItemAction(_.e(p,dI8))};
_.R.handleLiveChatActions=function(p){p.forEach(this.handleLiveChatAction,this)};
_.R.handleMarkChatItemAsDeletedAction=function(p){var J=this,S;((S=this.data)==null?0:S.items)&&this.data.items.forEach(function(H,M){var X=Object.keys(H)[0];Object.values(H)[0].id===p.targetItemId&&J.markAsDeleted("data.items",M,X,p.deletedStateMessage,p.showOriginalContentMessage)})};
_.R.handleRemoveChatItemAction=function(p){var J=this,S;((S=this.data)==null?0:S.items)&&this.data.items.forEach(function(H,M){Object.values(H)[0].id===p.targetItemId&&J.splice("data.items",M,1)})};
_.R.markAsDeleted=function(p,J,S,H,M){p=[p,J,S].join(".");this.set(p+".deletedStateMessage",H);this.set(p+".showOriginalContentMessage",M)};
_.V([_.N(),_.Y("design:type",Object)],Mg.prototype,"data",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Mg.prototype,"ytActionHandlerBehavior",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Mg);
_.l(Mg,"yt-live-chat-item-display-list-renderer",function(){if(eid===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;oJL===void 0&&(oJL=document.createElement("template"));var H=oJL;S.call(J,H.content.cloneNode(!0),p.content.firstChild);eid=p}p=eid;return p},{mode:0});var jkn;var wnU,xxv=function(){if(wnU!==void 0)return wnU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;jkn===void 0&&(jkn=document.createElement("template"));var H=jkn;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return wnU=p};var Xe=function(){var p=_.T.apply(this,arguments)||this;p.isHeader=!1;return p};
_.Q(Xe,_.T);Xe.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.vh.Object.defineProperties(Xe,{template:{configurable:!0,enumerable:!0,get:function(){return xxv()}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Xe.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Xe.prototype,"isHeader",void 0);_.V([_.sD({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Xe);_.l(Xe,"yt-live-chat-item-display-renderer",function(){return xxv()},{mode:0});var cB4,Iio,Hj8,SWn;
cB4={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}};Iio={home:"eohps",search:"eosps",watch:"eowps"};_.LWU=["watch","search","home"];
_.iA=function(){this.JSC$14566_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14566_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.jn("PRECONSTRUCTION_DELAY",0);this.signals_=_.fq();this.targetPage_=""};
_.iA.prototype.init=function(p,J){p=p===void 0?"":p;J=J===void 0?null:J;if(this.JSC$14566_isInitialized_)this.abort();else if(this.JSC$14566_isInitialized_=!0,p&&_.pbM(this,p),J){var S=_.OT(this.signals_,"pcl")?0:10,H=function(){for(var M=0,X;X=_.LWU[M++];)X!=p&&X!=J&&this.pendingPages_.push(X);_.Jb8(this)}.bind(this);
this.signals_.parkOrScheduleJob(H,S,"pcl")}};
_.iA.prototype.abort=function(){this.fragmentJobId_&&(_.wg.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);SWn(this)};
_.pbM=function(p,J){p.JSC$14566_isInitialized_&&!p.targetPage_&&(p.targetPage_=J,Hj8(p,J),p.isInitialPass_=!1,Hj8(p,J),p.signals_.processSignal(Iio[p.targetPage_]),SWn(p),_.Jb8(p))};
_.Jb8=function(p){p.pendingPages_.length&&!p.pagePreparerJobId_&&(p.pagePreparerJobId_=_.uS(_.wg,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.pbM(this,this.pendingPages_.shift())}.bind(p),p.DEFAULT_DELAY_))};
Hj8=function(p,J){if(J=cB4[J])for(var S in J){var H=!1,M=S;S.charAt(0)=="~"&&(H=!0,M=S.substring(1));var X=J[S];X=typeof X=="object"?X:{count:X};J[S]=X;X.componentName=M;X.count>0&&(p.isInitialPass_?H||p.isSeenDuringInitialPass_[M]||(p.JSC$14566_queue_.push({componentName:M,count:1,signals:X.signals}),p.isSeenDuringInitialPass_[M]=!0,X.count--):p.JSC$14566_queue_.push(X))}};
SWn=function(p){p.JSC$14566_queue_.length=0;p.targetPage_="";p.isInitialPass_=!0;p.signals_.processSignal("eop")};
_.iA.getInstance=function(){return _.x8(_.iA)};var MCo=function(){this.signals=_.fq();this.init()};
MCo.prototype.startPreconstruction=function(){_.iA.getInstance().init(_.wY("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
MCo.prototype.init=function(){Xbn(this);window.Polymer&&GvL&&Ihi();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var p=_.Hg.ytcsi;if(p&&p.gt&&(p=p.gt())&&p.tick&&(p.tick.aft>0||p.tick.pbs>0)&&(_.wY("IS_HOMEPAGE_COLD")||_.wY("IS_RESULTS_PAGE_COLD")||_.wY("IS_WATCH_PAGE_COLD"))){ij8(this);break a}lck(lNw,this.onNotifications,this)}};
var Xbn=function(p){var J=function(){p.signals.processSignal("dl")};
document.readyState==="complete"?(_.SB(Error("th"),"WARNING"),J()):_.fmw(window,"load",J)};
MCo.prototype.onNotifications=function(p){p.timer||(_.wY("IS_HOMEPAGE_COLD")||_.wY("IS_RESULTS_PAGE_COLD")||_.wY("IS_WATCH_PAGE_COLD"))&&ij8(this)};
var ij8=function(p){p.signals.parkOrScheduleJob(function(){p.signals.processSignal("eocs")},10,"eor")};
new MCo;var RBo=function(){return _.f3.apply(this,arguments)||this};
_.Q(RBo,_.f3);_.vh.Object.defineProperties(RBo.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.z("enable_entity_store_from_dependency_injection")?_.ED():_.rl()}}});
_.V([_.OD()],RBo);_.RB=[Lq.prototype,RBo.prototype];var KR8=["ytd-rich-shelf-renderer"],Ka=function(){var p=_.f3.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};
_.Q(Ka,_.f3);_.R=Ka.prototype;_.R.dismissibleItemIsDismissedChanged_=function(p){_.z("kevlar_fluid_dismiss")&&(p?_.cf(this.hostElement,"yt-dismissible-item-dismissed"):_.cf(this.hostElement,"yt-dismissible-item-undismissed"))};
_.R.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.R.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 _.UI(function(J,S){p.followUpDialogPromiseResolve=J;p.followUpDialogPromiseReject=S});
_.cf(this.hostElement,"yt-enable-lockup-interaction")};
_.R.dismissibleItemOnYtServiceRequestSent_=function(p,J){J.actions&&this.dismissibleItemProcessActions(J.actions,p)};
_.R.dismissibleItemOnRequestSent=function(p){for(var J=_.K(p.detail),S=J.next();!S.done;S=J.next()){var H=void 0;(S=(H=_.e(S.value,_.X6))==null?void 0:H.actions)&&this.dismissibleItemProcessActions(S,p)}};
_.R.dismissibleItemOnCommandSent=function(p,J){J&&this.dismissibleItemProcessActions(J,p)};
_.R.setAndGetDismissedContentId=function(p){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+p};
_.R.replayDismissAction=function(p){this.dismissibleItemProcessActions([p])};
_.R.dismissibleItemProcessActions=function(p,J){for(var S=0;S<p.length;S++){var H=p[S],M=void 0;((M=_.e(H,_.H9))==null?0:M.commands)&&this.dismissibleItemProcessActions(_.e(H,_.H9).commands,J);if(_.e(H,_.Vs)){if(M=_.e(H,_.Vs),!M.replaceParentSection||KR8.includes(this.hostElement.nodeName.toLowerCase()))M.groupDismissal&&kSX(this,M.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(M),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.P$("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:H})),H=void 0,(H=J)==null||H.stopPropagation()}else if(_.e(H,t2n))this.dismissibleItemHandleHideEnclosingAction_(),H=void 0,(H=J)==null||H.stopPropagation();else if(_.e(H,Ho8))H=_.e(H,Ho8),M=void 0,((M=H)==null?0:M.targetGroupId)&&kSX(this,{targetGroupId:H.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.P$("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
H=void 0,(H=J)==null||H.stopPropagation();else if(_.e(H,_.X6))(H=_.e(H,_.X6).actions)&&_.JP(this.hostElement,H,this.hostElement),H=void 0,(H=J)==null||H.stopPropagation();else{var X=M=void 0;((M=_.e(H,_.S5))==null?void 0:M.signal)!=="TELL_US_WHY"||((X=_.e(H,_.S5))==null?0:X.targetId)&&_.z("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),H=void 0,(H=J)==null||H.stopPropagation())}}};
_.R.dismissibleItemOnYtServiceRequestCompleted_=function(p,J){var S=this.get("feedbackResponses.0.followUpDialog",J.data);S?this.followUpDialogPromiseResolve(S):J.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(J.actions,p)};
_.R.dismissibleItemHandleReplaceEnclosingAction_=function(p){this.dismissedRenderer=p.item;this.isDismissed=!0;var J=null;(J=_.Jn(this.hostElement).querySelector("#dismissed"))&&_.mN(this,function(){_.Gg(J)});
_.cf(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.R.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.R.dismissibleItemHandleUndoFeedbackAction_=function(){_.cf(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.R.dismissibleItemHandleTellUsWhySignalAction_=function(){var p=this;this.followUpDialogPromise.then(function(J){p.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:J}})})};
Ka.prototype.dismissibleItemOnYtServiceRequestCompleted_=Ka.prototype.dismissibleItemOnYtServiceRequestCompleted_;Ka.prototype.dismissibleItemOnCommandSent=Ka.prototype.dismissibleItemOnCommandSent;Ka.prototype.dismissibleItemOnRequestSent=Ka.prototype.dismissibleItemOnRequestSent;Ka.prototype.dismissibleItemOnYtServiceRequestSent_=Ka.prototype.dismissibleItemOnYtServiceRequestSent_;Ka.prototype.dismissibleItemDataChanged_=Ka.prototype.dismissibleItemDataChanged_;
Ka.prototype.dismissibleItemIsDismissedChanged_=Ka.prototype.dismissibleItemIsDismissedChanged_;_.V([_.B(_.QJ),_.Y("design:type",Object)],Ka.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Ka.prototype,"ytdReduxBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ka.prototype,"isDismissed",void 0);_.V([_.N(),_.Y("design:type",Object)],Ka.prototype,"dismissedRenderer",void 0);
_.V([_.bO("isDismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],Ka.prototype,"dismissibleItemIsDismissedChanged_",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ka.prototype,"dismissibleItemDataChanged_",null);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],Ka.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.V([_.GI("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ka.prototype,"dismissibleItemOnRequestSent",null);
_.V([_.GI("yt-dismissible-item-action"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Array]),_.Y("design:returntype")],Ka.prototype,"dismissibleItemOnCommandSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],Ka.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.V([_.OD()],Ka);_.ZU=[_.QJ,_.RB,Ka.prototype];var na=function(){var p=_.f3.apply(this,arguments)||this;p.disableGridStateAware=!1;p.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};p.currentGridClass="";return p};
_.Q(na,_.f3);na.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.mN(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var p=this.gridStateAwareGetElement();_.XM(p,"grid",!0)}};
na.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
na.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Jn(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
na.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var p="grid-disabled";else{p=_.Dg.getInstance();var J=this.get("pageSubtype");p=J&&f88.includes(J)?"grid-disabled":p.currentSnapState_?p.currentSnapState_.className:null}(J=this.gridStateAwareGetElement())&&p!==this.currentGridClass&&(p&&_.XM(J,p,!0),this.currentGridClass&&_.XM(J,this.currentGridClass,!1),this.currentGridClass=p)};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],na.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",String)],na.prototype,"gridStateAwareSizingElementSelector",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],na.prototype,"disableGridStateAware",void 0);_.V([_.OD()],na);_.G0=[na.prototype,_.u1.YtActionHandlerBehavior];_.bA=new _.ni("GUIDE_TOKEN");var Fe;_.mG={};Fe=function(){var p=_.f3.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};
_.Q(Fe,_.f3);_.R=Fe.prototype;_.R.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.R.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var p=_.vO().resolve(_.F9(_.bA));p&&(this.guidePersistentAndVisible=p.getGuidePersistentAndVisible(),this.activeEndpoint=p.getActiveEndpoint(),this.guideOpened=p.getGuideOpened(),this.miniGuideVisible=p.getMiniGuideVisible())};
_.R.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.R.handleGuideStateAction=function(p){this.guidePersistentAndVisible=p};
_.R.handleMiniGuideStateAction=function(p){this.miniGuideVisible=p};
_.R.handleGuideOpenedAction=function(p){this.guideOpened=p};
_.R.handleActiveEndpointAction=function(p){this.activeEndpoint=p};
Fe.prototype.onActiveEndpointChange=Fe.prototype.onActiveEndpointChange;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Fe.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Fe.prototype,"guidePersistentAndVisible",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Fe.prototype,"miniGuideVisible",void 0);_.V([_.N(),_.Y("design:type",Object)],Fe.prototype,"activeEndpoint",void 0);
_.V([_.bO("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fe.prototype,"onActiveEndpointChange",null);_.V([_.N(),_.Y("design:type",Boolean)],Fe.prototype,"guideOpened",void 0);_.V([_.OD()],Fe);_.mG.YtdGuideStateAwareBehavior=[];_.mG.YtdGuideStateAwareBehavior.push(Fe.prototype,_.u1.YtActionHandlerBehavior);var Zjn=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],vH=function(){var p=_.f3.apply(this,arguments)||this;p.hoverJobId=0;p.JSC$14593_touched=!1;return p};
_.Q(vH,_.f3);_.R=vH.prototype;_.R.created=function(){this.useExpandableTooltip=!Zjn.includes(this.is)};
_.R.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.R.detached=function(){this.useExpandableTooltip=!1};
_.R.lockupOnDown=function(p){this.interactionElement&&!_.jK(_.Er(p),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.R.lockupOnUp=function(p){this.interactionElement&&!_.jK(_.Er(p),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.R.onTouchStart=function(){this.JSC$14593_touched=!0};
_.R.lockupOnMouseEnter=function(){var p=this,J=_.PO("kevlar_lockup_hover_delay",-1);this.JSC$14593_touched&&J>=0?(_.wg.cancelJob(this.hoverJobId),this.hoverJobId=_.wg.addJob(function(){p.lockupIsHovered=!0},8,J),this.JSC$14593_touched=!1):this.lockupIsHovered=!0};
_.R.lockupOnMouseLeave=function(){this.hoverJobId&&(_.wg.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.R.lockupOnPopupClosed=function(p,J){var S;((S=J.popupRenderer)==null?void 0:S.is)==="ytd-menu-popup-renderer"&&(p=J.popupRenderer.veData,J=_.C1(),p&&J&&_.u7(J,[p]))};
_.R.lockupOnLockupRequested=function(p){var J=p.detail.videoIds[0],S;p.detail&&J===((S=this.data)==null?void 0:S.videoId)&&(p.detail.returnValue=[this.data])};
_.R.lockupOnYtServiceRequestSent=function(p,J){if(p=J.actions)for(var S=0;S<p.length;S++){var H=p[S];if(H.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&J.ajaxPromise){var M=void 0,X=(M=_.e(J.endpoint,_.XY))==null?void 0:M.playlistId;M=void 0;H=(M=H.removedVideoId)!=null?M:"";Vcq(_.PR(),H,X)}else H.action==="ACTION_REMOVE_VIDEO"&&J.ajaxPromise&&(X=void 0,H=(X=H.setVideoId)!=null?X:"",_.qP4(_.PR(),H))}};
_.R.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.R.lockupOnLockupEnabled=function(){if(!this.$){var p=_.vO().resolve(_.xz).getCurrentPage(),J=this.getParentRenderer?this.getParentRenderer():void 0;_.xQ(new _.TG("component not ready",this.is,this.isAttached,p==null?void 0:p.is,J==null?void 0:J.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
vH.prototype.lockupOnLockupEnabled=vH.prototype.lockupOnLockupEnabled;vH.prototype.lockupOnLockupDisabled=vH.prototype.lockupOnLockupDisabled;vH.prototype.lockupOnYtServiceRequestSent=vH.prototype.lockupOnYtServiceRequestSent;vH.prototype.lockupOnLockupRequested=vH.prototype.lockupOnLockupRequested;vH.prototype.lockupOnPopupClosed=vH.prototype.lockupOnPopupClosed;vH.prototype.lockupOnMouseLeave=vH.prototype.lockupOnMouseLeave;vH.prototype.lockupOnMouseEnter=vH.prototype.lockupOnMouseEnter;
vH.prototype.onTouchStart=vH.prototype.onTouchStart;vH.prototype.lockupOnUp=vH.prototype.lockupOnUp;vH.prototype.lockupOnDown=vH.prototype.lockupOnDown;_.V([_.N(),_.Y("design:type",Object)],vH.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],vH.prototype,"lockupIsHovered",void 0);_.V([_.N(),_.Y("design:type",Boolean)],vH.prototype,"lockupTouchTriggered",void 0);_.V([_.N(),_.Y("design:type",Boolean)],vH.prototype,"useExpandableTooltip",void 0);
_.V([_.FM("#interaction"),_.Y("design:type",Object)],vH.prototype,"interactionElement",void 0);_.V([_.GI("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],vH.prototype,"lockupOnDown",null);_.V([_.GI("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],vH.prototype,"lockupOnUp",null);
_.V([_.GI("touchstart"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vH.prototype,"onTouchStart",null);_.V([_.GI("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vH.prototype,"lockupOnMouseEnter",null);_.V([_.GI("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vH.prototype,"lockupOnMouseLeave",null);
_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],vH.prototype,"lockupOnPopupClosed",null);_.V([_.GI("yt-lockup-requested"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],vH.prototype,"lockupOnLockupRequested",null);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],vH.prototype,"lockupOnYtServiceRequestSent",null);_.V([_.GI("yt-disable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vH.prototype,"lockupOnLockupDisabled",null);
_.V([_.GI("yt-enable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vH.prototype,"lockupOnLockupEnabled",null);_.V([_.OD()],vH);_.fa=[vH.prototype];_.njq={YtdReduxBehavior:[]};_.njq.YtdReduxBehavior.push.apply(_.njq.YtdReduxBehavior,_.RB);var Ot=function(){var p=_.f3.apply(this,arguments)||this;p._noAccessors=!0;p.disableNowPlaying=!1;p.disableTooltips=!1;p.useHoveredProperty=!1;p.hovered=!1;p.isThumbnailHovered_=!1;p.addBackground=_.z("kevlar_thumbnail_bg");p.nowPlaying=!1;p.disableRounding=!1;p.size="small";return p};
_.Q(Ot,_.f3);_.R=Ot.prototype;_.R.computeThumbnailOverlaySidePanelWidth_=function(p,J){return p-J};
_.R.computeSize=function(p,J){if(!this.disableRounding){if(!p&&!J)return"small";p=Math.max(p||0,J||0);return p>=256?"large":p>=96?"medium":"small"}};
_.R.computeFinalHoveredState_=function(p,J,S){return this.nowPlaying?!1:_.z("kevlar_thumbnail_fluid")&&p?J:S};
_.R.computeHoverOverlays_=function(p,J){return p&&J?J:void 0};
_.R.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.R.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.R.checkMiniplayer_=function(){var p;if(((p=this.data)==null?0:p.playlistSetVideoId)&&_.z("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{p=_.YE();var J=p.currentEndpoint;!this.disableNowPlaying&&J&&_.e(J,_.lj)&&this.data?(J=_.e(J,_.lj),this.nowPlaying=this.data.playlistId?J.playlistId===this.data.playlistId:J.videoId===this.data.videoId,this.isVideoPlaying=p==null?void 0:p.isVideoPlaying):this.nowPlaying=!1}};
Ot.prototype.checkMiniplayer_=Ot.prototype.checkMiniplayer_;Ot.prototype.onMouseLeave_=Ot.prototype.onMouseLeave_;Ot.prototype.onMouseEnter_=Ot.prototype.onMouseEnter_;Ot.prototype.computeHoverOverlays_=Ot.prototype.computeHoverOverlays_;Ot.prototype.computeFinalHoveredState_=Ot.prototype.computeFinalHoveredState_;Ot.prototype.computeSize=Ot.prototype.computeSize;Ot.prototype.computeThumbnailOverlaySidePanelWidth_=Ot.prototype.computeThumbnailOverlaySidePanelWidth_;
_.V([_.B(_.RB),_.Y("design:type",Object)],Ot.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ot.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Number)],Ot.prototype,"height",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Ot.prototype,"bottomSidePanel",void 0);_.V([_.N(),_.Y("design:type",Number)],Ot.prototype,"width",void 0);_.V([_.N(),_.Y("design:type",Object)],Ot.prototype,"disableNowPlaying",void 0);
_.V([_.N({selector:_.Bq}),_.Y("design:type",Boolean)],Ot.prototype,"miniplayerIsActive",void 0);_.V([_.N(),_.Y("design:type",Object)],Ot.prototype,"disableTooltips",void 0);_.V([_.N(),_.Y("design:type",Object)],Ot.prototype,"useHoveredProperty",void 0);_.V([_.N(),_.Y("design:type",Object)],Ot.prototype,"hovered",void 0);_.V([_.N(),_.Y("design:type",Object)],Ot.prototype,"isThumbnailHovered_",void 0);
_.V([_.N({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.Y("design:type",Boolean)],Ot.prototype,"finalHoveredState_",void 0);_.V([_.N({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.Y("design:type",Number)],Ot.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Ot.prototype,"addBackground",void 0);
_.V([_.N({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.Y("design:type",Object)],Ot.prototype,"hoverOverlays_",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Ot.prototype,"nowPlaying",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Ot.prototype,"isVideoPlaying",void 0);_.V([_.N(),_.Y("design:type",Object)],Ot.prototype,"disableRounding",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.Y("design:type",Object)],Ot.prototype,"size",void 0);_.V([_.GI("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ot.prototype,"onMouseEnter_",null);_.V([_.GI("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ot.prototype,"onMouseLeave_",null);
_.V([_.bO("data","disableNowPlaying","miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ot.prototype,"checkMiniplayer_",null);_.V([_.OD()],Ot);var Gld=[Ot.prototype];_.AM={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(p,J){return p+":"+_.jt(J)},
getPlayerListener_:function(p,J,S){p=this.getPlayerListenerKey_(p,J);J=this.playerListeners_.get(p);S&&this.playerListeners_.delete(p);return J},
savePlayerListener_:function(p,J){var S=J.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(p,J),S);return S},
listenToPlayerEvent:function(p,J,S){S=this.savePlayerListener_(J,S);p.addEventListener(J,S)},
listenToPlayerEvents:function(p,J){J.forEach(function(S,H){this.listenToPlayerEvent(p,H,S)}.bind(this))},
unlistenFromPlayerEvent:function(p,J,S){S=this.getPlayerListener_(J,S,!0);p.removeEventListener(J,S)},
unlistenFromPlayerEvents:function(p,J){J.forEach(function(S,H){this.unlistenFromPlayerEvent(p,H,S)}.bind(this))}}};
_.PH=function(){};_.bjm=new _.ni("PLAYER_API_TOKEN");var udg=!1,aEi,V1t=!1,Yxk;var JH=function(p,J,S,H,M){_.gp.call(this);var X=this;this.playerId=J;this.webPlayerContextConfig=H;this.pgL=M;this.aTv=!1;this.api={};this.nZ3=this.rhS=null;this.fvX=new _.sv;this.fW={};this.gwH=this.bhs=this.elementId=this.l75=this.config=null;this.zx7=!1;this.eS=this.utc=null;this.iYM={};this.sJl=["onReady"];this.lastError=null;this.tZu=NaN;this.cFM={};this.duE=0;this.wT=this.targetElement=p;_.$c(this,this.fvX);mA8(this);S?this.duE=setTimeout(function(){X.loadNewVideoConfig(S)},0):H&&(FR4(this),
vjp(this))};
_.Q(JH,_.gp);JH.prototype.getId=function(){return this.playerId};
JH.prototype.loadNewVideoConfig=function(p){if(!this.isDisposed()){this.duE&&(clearTimeout(this.duE),this.duE=0);var J=p||{};J instanceof rOn||(J=new rOn(J));this.config=J;this.setConfig(p);vjp(this);this.isReady()&&fTd(this)}};
var FR4=function(p){var J;p.webPlayerContextConfig?J=p.webPlayerContextConfig.rootElementId:J=p.config.attrs.id;p.elementId=J||p.elementId;p.elementId==="video-player"&&(p.elementId=p.playerId,p.webPlayerContextConfig?p.webPlayerContextConfig.rootElementId=p.playerId:p.config.attrs.id=p.playerId);var S;((S=p.wT)==null?void 0:S.id)===p.elementId&&(p.elementId+="-player",p.webPlayerContextConfig?p.webPlayerContextConfig.rootElementId=p.elementId:p.config.attrs.id=p.elementId)};
JH.prototype.setConfig=function(p){this.l75=p;this.config=Oj8(p);FR4(this);if(!this.bhs){var J;this.bhs=Ab8(this,((J=this.config.args)==null?void 0:J.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var S;if((S=this.config)==null?0:S.attrs)p=this.config.attrs,(J=p.width)&&this.wT&&(this.wT.style.width=Yr(Number(J)||J,!0)),(p=p.height)&&this.wT&&(this.wT.style.height=Yr(Number(p)||p,!0))};
JH.prototype.getConfig=function(){return this.l75};
var fTd=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 J;p.api.loadVideoByPlayerVars((J=p.config.args)!=null?J:null)}else p.api.cueVideoByPlayerVars(p.config.args)},zBd=function(p){var J=!0,S=p.getPlayerElement();
S&&p.config&&(J=S.dataset.version===P3q(p));return J&&!!_.Id("yt.player.Application.create")},vjp=function(p){if(!p.isDisposed()&&!p.zx7){var J=zBd(p);
if(J&&(p.getPlayerElement()?"html5":null)==="html5")p.gwH="html5",p.isReady()||$Ad(p);else if(ojp(p),p.gwH="html5",J&&p.eS&&p.targetElement)p.targetElement.appendChild(p.eS),$Ad(p);else{p.config&&(p.config.loaded=!0);var S=!1;p.utc=function(){S=!0;var H=eBd(p,"player_bootstrap_method")?_.Id("yt.player.Application.createAlternate")||_.Id("yt.player.Application.create"):_.Id("yt.player.Application.create");var M=p.config?Oj8(p.config):void 0;H&&H(p.targetElement,M,p.webPlayerContextConfig,p.pgL);$Ad(p)};
p.zx7=!0;J?p.utc():(_.h1(P3q(p),p.utc),(J=WR8(p))&&Z7t(J||""),Q08(p)&&!S&&_.m$("yt.player.Application.create",null))}}};
JH.prototype.getPlayerElement=function(){var p=_.pG(document,this.elementId);!p&&this.wT&&this.wT.querySelector&&(p=this.wT.querySelector("#"+this.elementId));return p};
var $Ad=function(p){if(!p.isDisposed()){var J=p.getPlayerElement(),S=!1;J&&J.getApiInterface&&J.getApiInterface()&&(S=!0);if(S){p.zx7=!1;if(!eBd(p,"html5_remove_not_servable_check_killswitch")){var H;if((J==null?0:J.isNotServable)&&p.config&&(J==null?0:J.isNotServable((H=p.config.args)==null?void 0:H.video_id)))return}C3m(p)}else p.tZu=setTimeout(function(){$Ad(p)},50)}},C3m=function(p){mA8(p);
p.aTv=!0;var J=p.getPlayerElement();if(J){p.rhS=ybp(p,J,"addEventListener");p.nZ3=ybp(p,J,"removeEventListener");var S=J.getApiInterface();S=S.concat(J.getInternalApiInterface());for(var H=p.api,M=0;M<S.length;M++){var X=S[M];H[X]||(H[X]=ybp(p,J,X))}}for(var Z in p.fW)p.fW.hasOwnProperty(Z)&&p.rhS&&p.rhS(Z,p.fW[Z]);fTd(p);p.bhs&&p.bhs(p.api);p.fvX.publish("onReady",p.api)},ybp=function(p,J,S){var H=J[S];
return function(){var M=_.Yp.apply(0,arguments);try{return p.lastError=null,H.apply(J,M)}catch(X){if(S!=="sendAbandonmentPing")throw X.params=S,p.lastError=X,M=new _.TG("PlayerProxy error in method call",{error:X,method:S,playerId:p.playerId}),M.level="WARNING",M;}}},mA8=function(p){p.aTv=!1;
if(p.nZ3)for(var J in p.fW)p.fW.hasOwnProperty(J)&&p.nZ3(J,p.fW[J]);for(var S in p.cFM)p.cFM.hasOwnProperty(S)&&clearTimeout(Number(S));p.cFM={};p.rhS=null;p.nZ3=null;J=p.api;for(var H in J)J.hasOwnProperty(H)&&(J[H]=null);J.addEventListener=function(M,X){p.addEventListener(M,X)};
J.removeEventListener=function(M,X){p.removeEventListener(M,X)};
J.destroy=function(){p.dispose()};
J.getLastError=function(){return p.getLastError()};
J.getPlayerType=function(){return p.getPlayerType()};
J.getCurrentVideoConfig=function(){return p.getConfig()};
J.loadNewVideoConfig=function(M){p.loadNewVideoConfig(M)};
J.isReady=function(){return p.isReady()}};
JH.prototype.isReady=function(){return this.aTv};
JH.prototype.addEventListener=function(p,J){var S=this;this.isDisposed();var H=Ab8(this,J);H&&(_.dk(this.sJl,p)||this.fW[p]||(J=Bcq(this,p),this.rhS&&this.rhS(p,J)),this.fvX.subscribe(p,H),p==="onReady"&&this.isReady()&&setTimeout(function(){H(S.api)},0))};
JH.prototype.removeEventListener=function(p,J){this.isDisposed()||(J=Ab8(this,J))&&this.fvX.unsubscribe(p,J)};
var Ab8=function(p,J){var S=J;if(typeof J==="string"){if(p.iYM[J])return p.iYM[J];S=function(){var H=_.Yp.apply(0,arguments),M=_.Id(J);if(M)try{M.apply(_.Hg,H)}catch(X){throw H=new _.TG("PlayerProxy error when executing callback",{error:X}),H.level="ERROR",H;}};
p.iYM[J]=S}return S?S:null},Bcq=function(p,J){var S=function(H){var M=function(){p.isDisposed();
if(!p.isDisposed())try{p.fvX.publish(J,H!=null?H:void 0)}catch(n){var Z=new _.TG("PlayerProxy error when creating global callback",{error:n.message,event:J,playerId:p.playerId,data:H,originalStack:n.stack,componentStack:n.componentStack});Z.level="WARNING";throw Z;}};
if(eBd(p,"web_player_publish_events_immediately"))M();else{var X=setTimeout(function(){M();_.T6.remove(p.cFM,String(X))},0);
_.T6.add(p.cFM,String(X),!0)}};
return p.fW[J]=S};
JH.prototype.getPlayerType=function(){return this.gwH||(this.getPlayerElement()?"html5":null)};
JH.prototype.getLastError=function(){return this.lastError};
var ojp=function(p){p.cancel();mA8(p);p.gwH=null;p.config&&(p.config.loaded=!1);var J=p.getPlayerElement();J&&(zBd(p)||!Q08(p)?p.eS=J:(J&&J.destroy&&J.destroy(),p.eS=null));p.targetElement&&_.d7(p.targetElement)};
JH.prototype.cancel=function(){this.utc&&_.TLi(P3q(this),this.utc);clearTimeout(this.tZu);this.zx7=!1};
JH.prototype.disposeInternal=function(){ojp(this);if(this.eS&&this.config&&this.eS.destroy)try{this.eS.destroy()}catch(J){var p=new _.TG("PlayerProxy error during disposal",{error:J});p.level="ERROR";throw p;}this.iYM=null;for(p in this.fW)this.fW.hasOwnProperty(p)&&delete this.fW[p];this.l75=this.config=this.api=null;delete this.targetElement;delete this.wT;_.gp.prototype.disposeInternal.call(this)};
var Q08=function(p){var J,S;p=(J=p.config)==null?void 0:(S=J.args)==null?void 0:S.fflags;return!!p&&p.indexOf("player_destroy_old_version=true")!==-1},P3q=function(p){return p.webPlayerContextConfig?p.webPlayerContextConfig.jsUrl:(p=p.config.assets)?p.js:""},WR8=function(p){return p.webPlayerContextConfig?p.webPlayerContextConfig.cssUrl:(p=p.config.assets)?p.css:""},eBd=function(p,J){if(p.webPlayerContextConfig)var S=p.webPlayerContextConfig.serializedExperimentFlags;
else{var H;if((H=p.config)==null?0:H.args)S=p.config.args.fflags}return(S||"").split("&").includes(J+"=true")},Oj8=function(p){for(var J={},S=_.K(Object.keys(p)),H=S.next();!H.done;H=S.next()){H=H.value;
var M=p[H];J[H]=typeof M==="object"?_.T6.clone(M):M}return J};var cjw={},xt4="player_uid_"+(Math.random()*1E9>>>0);var z0=function(p,J,S,H,M,X){J=J===void 0?document.createElement("div"):J;this.webPlayerContextConfig=p;this.container=J;this.commandResolver=S;this.apiResolver=pnw();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.iy;H||X?UAn(this):s0m(this);this.pendingPlayerResponse=H;this.pendingWatchNextResponse=M;this.pendingPlayerVars=X;gjq(this)};
z0.prototype.loadVideoWithPlayerResponse=function(p,J,S){this.loadVideo(p,J,S)};
z0.prototype.loadVideoWithPlayerVars=function(p){return this.loadVideo(void 0,void 0,p)};
z0.prototype.destroy=function(p){if(p=_.pG(document,p))p=xt4+"_"+_.jt(p),(p=cjw[p])&&p.dispose()};
var hB8=function(p,J){var S;_.G(function(H){if(H.nextAddress==1)return p.pendingWatchNextResponse=J,p.synchronousApi?(S=p.synchronousApi,H.jumpTo(2)):H.yield(p.api,3);H.nextAddress!=2&&(S=H.yieldResult);if(!tCn(p,S))return H.return();p.pendingWatchNextResponse&&(S.updateVideoData({raw_watch_next_response:p.pendingWatchNextResponse}),p.pendingWatchNextResponse=void 0);_.UK(H)})},tCn=function(p,J){var S;
if(!(J==null?0:(S=J.isReady)==null?0:S.call(J))){var H;_.xQ(new _.TG("playerApi is falsey",{synchronousApi:p.synchronousApi,apiResolved:p.apiResolver.resolved,playerApiUndefined:J===void 0,playerApiNull:J===null,playerApiReady:(J==null?void 0:(H=J.isReady)==null?void 0:H.call(J))===!0,playerApiMethods:J?Object.keys(J):[]}));return!1}return!0},DAq=function(p,J){if(typeof p[J]==="function")return p[J]()},klo=function(p){var J=window,S,H=(S=J.ytplayer)==null?void 0:S.bootstrapPlayerContainer;
if((S=H==null?void 0:H.firstElementChild)&&_.Ln(S,"html5-video-player")){var M,X,Z=(M=J.ytplayer)==null?void 0:(X=M.bootstrapWebPlayerContextConfig)==null?void 0:X.contextId;M=p.webPlayerContextConfig.contextId;if(Z&&Z===M){H!==p.container&&(H=!1,DAq(S,"getPlayerState")===2&&(H=!0),p.container.appendChild(S),H||DAq(S,"playVideo"));var n;if((n=J.ytplayer)==null?0:n.bootstrapPlayerResponse)p.bootstrapPlayerResponse=J.ytplayer.bootstrapPlayerResponse}}},gjq=function(p){var J,S,H,M,X;
_.G(function(Z){if(Z.nextAddress==1)return p.pageReadyOrDataAvailable?Z.jumpTo(2):Z.yield(p.pageReadyOrDataAvailableResolver.promise,2);if(Z.nextAddress!=4)return!_.z("kevlar_player_unified_player_loading")||lEW()&&qxX()?Z.jumpTo(4):Z.yield(jF4(),4);klo(p);if(p.pendingPlayerResponse||p.pendingPlayerVars)J=wcv(p.pendingPlayerResponse,p.pendingWatchNextResponse,p.pendingPlayerVars),p.pendingPlayerResponse&&p.pendingPlayerResponse===p.bootstrapPlayerResponse&&(J.loaded=!0),p.bootstrapPlayerResponse=
void 0;S=LhL(p.container,J,p.webPlayerContextConfig);((H=J)==null?0:H.loaded)&&p.pendingWatchNextResponse?(hB8(p,p.pendingWatchNextResponse),p.pendingPlayerResponse=void 0,p.pendingPlayerVars=void 0):NcM(p);M=function(n){S.removeEventListener("onReady",M);p.synchronousApi=n;p.apiResolver.resolve(n)};
S.addEventListener("onReady",M);p.commandResolver!==void 0&&(X=p.commandResolver,S.addEventListener("innertubeCommand",function(n){X(n)}));
_.UK(Z)})};
z0.prototype.loadVideo=function(p,J,S){var H=this,M,X,Z,n,b,F,f,O,A;return _.G(function(P){if(P.nextAddress==1)return H.pendingPlayerResponse=p,H.pendingWatchNextResponse=J,H.pendingPlayerVars=S,UAn(H),H.synchronousApi?(M=H.synchronousApi,P.jumpTo(2)):P.yield(H.api,3);P.nextAddress!=2&&(M=P.yieldResult);if(!tCn(H,M))return P.return(new Promise(function(){}));
Z=new Promise(function(W){X=W});
n=function(){var W=M.getPlayerResponse();W&&(M.removeEventListener("onVideoDataChange",n),X(W))};
M.addEventListener("onVideoDataChange",n);if(H.pendingPlayerResponse||H.pendingPlayerVars)H.pendingPlayerResponse&&H.pendingPlayerResponse===H.bootstrapPlayerResponse?(X(H.pendingPlayerResponse),H.pendingWatchNextResponse&&hB8(H,H.pendingWatchNextResponse)):(b=wcv(H.pendingPlayerResponse,H.pendingWatchNextResponse,H.pendingPlayerVars),(A=(F=H.pendingPlayerResponse)==null?void 0:(f=F.playerConfig)==null?void 0:(O=f.playbackStartConfig)==null?void 0:O.startPaused)?M.cueVideoByPlayerVars(b.args):M.loadVideoByPlayerVars(b.args)),
NcM(H),H.bootstrapPlayerResponse=void 0;return P.return(Z)})};
var s0m=function(p){if(document.readyState==="complete"||document.readyState==="interactive")UAn(p);else{var J=function(){document.removeEventListener("DOMContentLoaded",J);UAn(p)};
document.addEventListener("DOMContentLoaded",J)}},UAn=function(p){p.pageReadyOrDataAvailable=!0;
p.pageReadyOrDataAvailableResolver.resolve()},NcM=function(p){p.pendingPlayerResponse=void 0;
p.pendingWatchNextResponse=void 0;p.pendingPlayerVars=void 0};
_.vh.Object.defineProperties(z0.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var $4=function(p){au.call(this,p===void 0?"document_active":p);var J=this;this.overridePriority=10;this.JSC$14626_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(S){J.transition("document_disposed",{event:S})});
window.addEventListener("beforeunload",function(S){J.transition("document_disposed_preventable",{event:S})});
window.addEventListener("unload",function(S){J.transition("document_disposed",{event:S});J.JSC$14626_hasRun=new Map})};
_.Q($4,au);
$4.prototype.runPreventableDispose=function(p,J){if(!this.JSC$14626_hasRun.get("document_disposed_preventable")){p(J==null?void 0:J.event);var S,H;if((J==null?0:(S=J.event)==null?0:S.defaultPrevented)||(J==null?0:(H=J.event)==null?0:H.returnValue)){J.event.returnValue||(J.event.returnValue=!0);J.event.defaultPrevented||J.event.preventDefault();this.JSC$14626_hasRun=new Map;this.transition("document_active");return}}this.JSC$14626_hasRun.set("document_disposed_preventable",!0);this.JSC$14626_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
$4.prototype.runDispose=function(p,J){this.JSC$14626_hasRun.get("document_disposed")?this.transition("document_active"):(p(J==null?void 0:J.event),this.JSC$14626_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
$4.prototype.runFlush=function(p,J){p(J==null?void 0:J.event);this.transition("document_active")};
$4.prototype.runActive=function(){};var oB=function(p){au.call(this,p===void 0?"document_visibility_unknown":p);var J=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(S){document.visibilityState==="visible"?J.transition("document_visible",{event:S}):J.transition("document_hidden",
{event:S})});
_.z("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(S){J.transition("document_backgrounded",{event:S})}),window.addEventListener("focus",function(S){J.transition("document_foregrounded",{event:S})}))};
_.Q(oB,au);oB.prototype.runVisible=function(p,J){p(J==null?void 0:J.event);_.z("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
oB.prototype.runHidden=function(p,J){p(J==null?void 0:J.event);_.z("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
oB.prototype.runBackgrounded=function(p,J){p(J==null?void 0:J.event)};
oB.prototype.runForegrounded=function(p,J){p(J==null?void 0:J.event)};var ek=function(){this.teardownLifecycle=new $4;this.visibilityLifecycle=new oB};
ek.prototype.install=function(){var p=_.Yp.apply(0,arguments),J=this;p.forEach(function(S){J.teardownLifecycle.install(S)});
p.forEach(function(S){J.visibilityLifecycle.install(S)})};var WH=function(){ek.call(this);var p={};this.install((p.document_disposed={callback:this.abortSlisAndFlush},p));_.z("combine_ve_grafts")&&(p={},this.install((p.document_disposed={callback:this.flushInteractionLoggingAttachVes},p)));p={};this.install((p.flush_logs={callback:this.logFinalPayload},p));_.z("web_log_cfg_cee_ks")||_.uS(_.wg,Tc8)};
_.Q(WH,ek);var JBL=function(){WH.loggingInstance||(WH.loggingInstance=new WH);return WH.loggingInstance};
WH.prototype.logFinalPayload=function(){if(_.z("web_fp_via_jspb")){var p=new lYn,J=_.C1();J&&_.g2(p,1,J);J=_.z("jspb_sparse_encoded_pivot")?new df([{}]):new df;_.Ct(J,380,Vxo,p);yaX("finalPayload",J);_.z("web_fp_via_jspb_and_json")&&_.YQ("finalPayload",{csn:_.C1()})}else _.YQ("finalPayload",{csn:_.C1()})};
WH.prototype.abortSlisAndFlush=function(){gA4(A_);Pm!=null&&Pm.flush()};
WH.prototype.flushInteractionLoggingAttachVes=function(){ISU(_.bC())};
var Tc8=function(){var p=_.jn("CLIENT_EXPERIMENT_EVENTS");if(p){var J=SpX();p=_.K(p);for(var S=p.next();!S.done;S=p.next())S=S.value,J(S)&&_.YQ("genericClientExperimentEvent",{eventType:S});delete _.Yv.CLIENT_EXPERIMENT_EVENTS}};var dAn={};
dAn.YtPlayerBehavior=[_.AM.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 _.iy;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;SCt(function(){p.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.xX(this,"pan-down"),_.z("kevlar_pinch_fullscreen")&&_.ET().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.z("kevlar_pinch_fullscreen")&&_.ET().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(p,J,S){var H=this;SH(this.useUnifiedPlayer_());if(this.mainAppPlayer_)SH(!1,"MainAppPlayer already created.");else{var M=_.z("kevlar_player_container_query_killswitch")?this.$.container:_.Jn(this.hostElement).querySelector("#container");this.mainAppPlayer_=new z0(this.getWebPlayerContextConfig_(),M,function(X){return _.KI(X,H.hostElement)},p,J,S);
this.mainAppPlayer_.api.then(function(X){H.player_=X;H.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&pIU.resolve(X)})}},
loadVideoWithPlayerResponse:function(p,J){var S=this;if(this.useUnifiedPlayer_()){var H=this.watchNextData,M,X=(M=p.videoDetails)==null?void 0:M.videoId,Z,n,b;(M=(Z=this.watchNextData)==null?void 0:(n=Z.currentVideoEndpoint)==null?void 0:(b=n.watchEndpoint)==null?void 0:b.videoId)&&X!=M&&(H=void 0,_.z("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(p,H,J):this.createMainAppPlayer_(p,H,J);this.mainAppPlayer_.api.then(function(){_.cf(S.hostElement,
"yt-player-updated")})}else this.update(NPs(p,J))},
loadVideoWithPlayerVars:function(p){var J=this;this.useUnifiedPlayer_()?(_.z("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(){_.cf(J.hostElement,"yt-player-updated")})):this.update({args:p})},
update:function(p){var J=this;if(this.useUnifiedPlayer_())SH(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(p);var S=rQt(p.args);S&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==S&&Object.assign(p.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(p).then(function(H){_.cf(J.hostElement,"yt-player-updated",_.z("kevlar_player_updated_obsolete_player_killswitch")?
H:void 0)})}_.wf(new _.TG("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(J.getPlayerPromise(),2);S=H.yieldResult;if(!S)throw Error("vh");p&&J.updatePlayerPlaylist_(p);_.UK(H)})},
acquireApi_:function(p){var J=this;if(this.useUnifiedPlayer_())SH(!1,"Invalid method call in kevlar_unified_player.");else return _.wg.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(SH(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(S){J.shouldAutoplay_(p)?S.loadVideoByPlayerVars(p.args):S.cueVideoByPlayerVars(p.args)})):this.initPlayerPromise_=this.initPlayerContainer_(p),this.initPlayerPromise_},
initPlayerContainer_:function(p){var J=this;if(this.useUnifiedPlayer_())SH(!1,"Invalid method call in kevlar_unified_player.");else return SH(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.xQ(Error("wh")),SH(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.z("kevlar_player_container_query_killswitch")?this.$.container:_.Jn(this.hostElement).querySelector("#container"),jF4().then(function(){var S=J.initPlayer_(p);J.playerResolver_.resolve(S);
return S})},
onPlayerReady_:function(p,J){this.useUnifiedPlayer_()?SH(!1,"Invalid method call in kevlar_unified_player."):(p.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&pIU.resolve(p),J(p))},
maybeCallApiMethodOnElement_:function(p,J){if(typeof p[J]==="function")return p[J]()},
maybeAdoptBootstrapPlayer_:function(){var p=window,J,S=(J=p.ytplayer)==null?void 0:J.bootstrapPlayerContainer;if((J=S==null?void 0:S.firstElementChild)&&J.classList.contains("html5-video-player")){var H,M,X=(H=p.ytplayer)==null?void 0:(M=H.bootstrapWebPlayerContextConfig)==null?void 0:M.contextId;H=this.getWebPlayerContextConfig_().contextId;if(X&&X===H){S!==this.playerContainer_&&(S=!1,this.maybeCallApiMethodOnElement_(J,"getPlayerState")===2&&(S=!0),this.playerContainer_.appendChild(J),S||this.maybeCallApiMethodOnElement_(J,
"playVideo"));var Z;if((Z=p.ytplayer)==null?0:Z.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=p.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(p){var J=this;if(this.useUnifiedPlayer_())SH(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(S){J.maybeAdoptBootstrapPlayer_();var H=p?TPt(p):void 0;H&&H==J.bootstrapPlayerResponse_&&(p.loaded=!0);H=J.playerContainer_;var M=J.getWebPlayerContextConfig_();H=LhL(H,p,M);J.player_=H;J.onPlayerReadyEvent_=J.onPlayerReady_.bind(J,J.player_,S);J.player_.addEventListener("onReady",J.onPlayerReadyEvent_);J.player_.addEventListener("innertubeCommand",
J.onPlayerInnerTubeCommand_.bind(J))})},
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=_.vO().resolve(_.xz).getCurrentPage();p&&p.getScrollTop()<=0?_.xX(this,"pan-down"):_.xX(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 J=this,S,H,M;return _.G(function(X){if(X.nextAddress==1)return S=_.vO().resolve(_.F9(_.FF)),H=!!(S&&S.playlistComponent&&S.playlistComponent.loopOn),X.yield(J.getPlayerPromise(),2);var Z=M=X.yieldResult,n=Z.updatePlaylist,b=[];if(_.z("kevlar_player_playlist_use_local_index")){var F,f;var O=(f=(F=p.localCurrentIndex)!=null?F:p.currentIndex)!=null?f:0}else{var A;O=(A=p.currentIndex)!=null?A:0}if(p.contents)for(F=0;F<p.contents.length;F++)if((f=p.contents[F])&&f.playlistPanelVideoRenderer)if(Vki(f)){f=
f.playlistPanelVideoRenderer;A="";f.shortBylineText&&(A=_.E4(f.shortBylineText));var P="";f.title?P=_.E4(f.title):f.unplayableText&&(P=_.E4(f.unplayableText));b.push({author:A,title:P,encrypted_id:f.videoId})}else F<O&&--O;n.call(Z,{index:O,list:p.playlistId?p.playlistId:"",loop:H,playlist_title:p.title,playlist_length:b.length,video:b,fetch:0,external_list:"1",title:p.title?p.title:"",playlist_author:p.ownerName?_.E4(p.ownerName):void 0});_.UK(X)})},
focusOnPlayer:function(){_.mN(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var p=this.playerContainer_.querySelector(".html5-video-player");p&&(_.Q$(_.vO().resolve(_.Am)),p.focus())}})},
preparePlayer:function(){var p=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(J){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")J();else{var S=function(){document.removeEventListener("DOMContentLoaded",S);J()};
document.addEventListener("DOMContentLoaded",S)}})).then(function(){return jF4()}).then(function(){p.initPlayerPromise_||p.preparePlayerJobId_||(p.preparePlayerJobId_=_.uS(_.wg,function(){p.initPlayerPromise_||(p.initPlayerPromise_=p.initPlayerContainer_())}))}):_.wf(new _.TG("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(p){this.useUnifiedPlayer_()?SH(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(p)||(p.args.autoplay="0")},
shouldAutoplay_:function(p){if(this.useUnifiedPlayer_())SH(!1,"Invalid method call in kevlar_unified_player.");else{var J=this.get("args.el",p);return J&&J!="detailpage"&&this.isMiniplayerActive_()||J&&(J=="sponsorshipsoffer"||J=="handlesclaiming")&&this.get("args.autoplay",p)=="0"?!1:(p=TPt(p))&&this.get("playerConfig.playbackStartConfig.startPaused",p)?!1:!0}},
isMiniplayerActive_:function(){return _.vO().resolve(_.DF).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var p=this.getPlayer();if(p){var J=p.getPlayerState();_.z("kevlar_player_check_ad_state_on_stop")&&(J=p.getPlayerState(p.getPresentingPlayerType()));J!=5&&p.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(p,J,S){S=S===void 0?!1:S;var H=this,M,X,Z,n;return _.G(function(b){if(b.nextAddress==1)return J||(J=H.hostElement),M=H.useUnifiedPlayer_()?!!H.mainAppPlayer_:!!H.initPlayerPromise_,M?b.yield(H.getPlayerPromise(),2):(S?p.insertBefore(J,p.firstChild):p.appendChild(J),b.return());X=b.yieldResult;Z=X.getPlayerState(X.getPresentingPlayerType());n=!1;if(Z==-1||Z==1||Z==3)n=!0;S?p.insertBefore(J,p.firstChild):p.appendChild(J);n&&X.playVideo();X.setSize(NaN,NaN);_.UK(b)})},
watchNextDataChanged_:function(p){var J=this;p&&(this.useUnifiedPlayer_()&&_.z("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&hB8(this.mainAppPlayer_,p):this.getPlayerPromise().then(function(S){S.updateVideoData(J.computeWatchNextPlayerVars_(p))}))},
computeWatchNextPlayerVars_:function(p){if(this.useUnifiedPlayer_()&&_.z("kevlar_unified_player_update_watch_next_killswitch"))SH(!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=_.jn("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(p=Object.assign({},p),p.rootElementId=this.playerId);p.serializedExperimentIds&&p.serializedExperimentFlags||_.xQ(Error("xh"));return p},
hasWebPlayerContextConfig_:function(){return!!_.jn("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(p){this.useUnifiedPlayer_()?SH(!1,"Invalid method call in kevlar_unified_player."):_.KI(p,this.hostElement)},
useUnifiedPlayer_:function(){var p=_.z("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.z("kevlar_unified_player")||p}}];var uZo={};uZo.YtPlaylistPanelBehavior=[_.x.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 J=p.playlistButtons.menuRenderer.topLevelButtons,S=J.length,H=0;H<S;H++)if(J[H].toggleButtonRenderer){var M=J[H].toggleButtonRenderer;M.defaultIcon.iconType=="LOOP"&&this.loopOn?M.isToggled=this.loopOn:M.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(M.isToggled=this.shuffleOn)}return p.playlistButtons}}];_.Ca={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(p,J,S){var H=this.getClickTarget_(J);if(H&&this.isClickAllowed_(H)){J.preventDefault();p=(0,_.T6.unsafeClone)(p);var M=this.getContainerBoundingRect();J=this.getRelativeClickXy_(J,M);this.expandEndpointUrlMacros_(p,{NX:J[0],NY:J[1],NB:H.code});S&&this.truncateWebCommendMetadataUrl_(p);_.cf(this.hostElement,"yt-navigate",{endpoint:p})}},
getClickTarget_:function(p){if(!this.clickTargetMap)return null;p=_.Er(p)||[];p=_.K(p);for(var J=p.next();!J.done;J=p.next()){J=J.value;if(J===_.Jn(this.hostElement).querySelector("#menu"))break;if(J=this.clickTargetMap.get(J.id))return J}return null},
getRelativeClickXy_:function(p,J){var S=Math.round(p.detail.x-J.left);p=Math.round(p.detail.y-J.top);return S<0||p<0?[null,null]:[S,p]},
getContainerBoundingRect:function(){return _.Jn(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(p,J){for(var S=_.K(p.loggingUrls||[]),H=S.next();!H.done;H=S.next())H=H.value,H.baseUrl&&(H.baseUrl=bUt(H.baseUrl,J));p.urlEndpoint&&p.urlEndpoint.url&&(p.urlEndpoint.url=bUt(p.urlEndpoint.url,J));p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.url&&(p.commandMetadata.webCommandMetadata.url=bUt(p.commandMetadata.webCommandMetadata.url,J))},
truncateWebCommendMetadataUrl_:function(p){if(p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.url){var J=p.commandMetadata.webCommandMetadata.url,S=J.indexOf("&pp=");if(S>0){var H=J.indexOf("&",S+1);p.commandMetadata.webCommandMetadata.url=H>S&&H<J.length?J.slice(0,S)+J.slice(H):J.slice(0,S)}}},
configureClickTargets:function(p,J,S){this.containerId=p;this.clickTargetMap=new Map;p=_.K(J);for(J=p.next();!J.done;J=p.next())if(J=J.value,J.location){var H=S.get(J.location);H&&(_.XM(_.Jn(this.hostElement).querySelector("#"+H),"yt-simple-endpoint",this.isClickAllowed_(J)),this.clickTargetMap.set(H,J))}},
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"}}};_.y$={};
_.y$.YtLazyListBehavior=[_.$N.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&&(diL(p,4),p.processSignal())},
deepLazyListObserver_:function(p){var J=this;if(p){var S=p.value||[];if(this.itemsPath==p.path){var H=this.nonDeferredItemCount;p=0;H>-1&&S.length>H&&(p=_.jn("REMAINING_DOVA_DEFERRED_CHUNKS",-1));p>0?(H>0&&(H=S.slice(0,H),this.setInitialItemsOnDataChanged(H)),(H=this.renderElementsOutsideVisibleArea_)?H.cancel():(H=this.renderElementsOutsideVisibleArea_=new _.ep(2,"eocs"),_.fmw(window,"scroll",function(){return J.renderDeferredElements()})),_.W3(H,function(){J.setInitialItemsOnDataChanged(S)}),_.rY("REMAINING_DOVA_DEFERRED_CHUNKS",
p-1)):this.setInitialItemsOnDataChanged(S)}else if(this.itemsPath+".splices"==p.path)this.onItemsUpdated_(S);
else H="shownItems"+p.path.substr(this.itemsPath.length),this.useSignals&&H==="shownItems.length"||this.notifyPath(H,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 J=0,S=p.length;J<S;J++){var H=p[J];if(H.index<this.shownCount&&(H.removed&&this.splice("shownItems",H.index,H.removed.length),H.addedCount)){var M=H.object.slice(H.index,H.index+H.addedCount);H=["shownItems",H.index,0];H.push.apply(H,M);this.splice.apply(this,H)}}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&&(_.wY("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.mN(this,this.tryRenderChunk_)))},
fillRange_:function(p,J){this.canShowMore&&this.items_&&(p=this.items_.slice(p,J),p.unshift("shownItems"),this.push.apply(this,p),this.shownCount=J,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var p=this;this.canShowMore&&_.uO(this,"renderChunk",function(){p.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.wY("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.oA(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?(_.A2k(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):p&&this.partiallyRenderedItems_.has(this.items_)&&(_.z("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var st;_.BH={};
st=function(){var p=_.f3.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$14655_onWheelScroll=function(J){if(p.isSearch&&
!p.disableWheelScroll&&_.z("desktop_enable_dmpanel_wheel_scroll")){var S=J.shiftKey?Math.abs(J.deltaY)>Math.abs(J.deltaX)?J.deltaY:J.deltaX:J.deltaX;S!==0&&(J.preventDefault(),p.ytLazyListBehavior.fillRemainingListItems(),p.offset+=S,Ut(p),p.reposition_())}};
p.onPointerDown=function(J){lTv(p)&&(p.dragMouseStart=J.clientX,p.dragOffsetStart=p.offset,p.dragging=!0)};
p.onPointerMove=function(J){lTv(p)&&p.dragging&&(p.ytLazyListBehavior.fillRemainingListItems(),p.offset=p.dragOffsetStart-(J.clientX-p.dragMouseStart),Ut(p),p.reposition_())};
p.onPointerUp=function(){lTv(p)&&(p.dragging=!1)};
return p};
_.Q(st,_.f3);var VCU=function(p){var J=_.Jn(p.hostElement).querySelector("#items").children;if(!J)return 0;var S=0;p=_.K(p.fullyVisibleItemsIndices);for(var H=p.next();!H.done;H=p.next())S+=J[H.value].clientWidth;return S},lTv=function(p){return p.isSearch&&_.z("desktop_enable_dmpanel_click_drag_scroll")};
st.prototype.created=function(){this.cachedViewportWidth=_.jn("initialInnerWidth")||window.innerWidth;this.JSC$14655_cachedViewportHeight=_.jn("initialInnerHeight")||window.innerHeight;_.jn("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.rY("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
st.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.z("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();qWL(this)};
st.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.z("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var p;(p=this.itemsVisibilityObserver)==null||p.disconnect();this.itemsVisibilityObserver=null;var J;(J=this.itemsObserver)==null||J.disconnect()};
var qWL=function(p){var J=_.Jn(p.hostElement).querySelector("#scroll-container");if(J){if(!p.itemsVisibilityObserver){var S=window.getComputedStyle(J).marginRight;p.itemsVisibilityObserver=new IntersectionObserver(function(H){aTU(p,H)},{root:J,
rootMargin:S,threshold:.98})}if(J=_.Jn(p.hostElement).querySelector("#items"))p.itemsObserver=new v28(J,function(H){EjE(p,H)})}},EjE=function(p,J){YW8(p)&&(Array.from(J.addedNodes).filter(function(S){return S.nodeType===Node.ELEMENT_NODE}).forEach(function(S){p.itemsVisibilityObserver&&p.itemsVisibilityObserver.observe(S)}),Array.from(J.removedNodes).filter(function(S){return S.nodeType===Node.ELEMENT_NODE}).forEach(function(S){p.itemsVisibilityObserver&&p.itemsVisibilityObserver.unobserve(S)}))},
aTU=function(p,J){var S=new Set(p.fullyVisibleItemsIndices);
J=_.K(J);for(var H=J.next();!H.done;H=J.next()){H=H.value;var M=H.target.parentElement;M?(M=Array.from(M.children).indexOf(H.target),H.isIntersecting?S.add(M):S.has(M)&&S.delete(M)):_.xQ(new _.TG("Parent element not found",H.target.nodeName))}p.fullyVisibleItemsIndices=Array.from(S).sort(function(X,Z){return X-Z});
S.size===0?_.xQ(new _.TG("No visible entries in horizontal list")):(p.startIndex=p.fullyVisibleItemsIndices[0],p.endIndex=p.fullyVisibleItemsIndices[p.fullyVisibleItemsIndices.length-1])},YW8=function(p){p.data?p=(p=p.data)&&p.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===p.itemSizeConstraint:!1:p=!1;
return p};
_.R=st.prototype;_.R.addScrollEventListeners=function(){var p=_.Jn(this.hostElement).querySelector("#scroll-container");p.style.touchAction="pan-y";p.addEventListener("wheel",this.JSC$14655_onWheelScroll);p.addEventListener("pointerdown",this.onPointerDown);p.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.R.removeScrollEventListeners=function(){var p=_.Jn(this.hostElement).querySelector("#scroll-container");p.removeEventListener("wheel",this.JSC$14655_onWheelScroll);p.removeEventListener("pointerdown",this.onPointerDown);p.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.R.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.mN(this,this.setStartIndex,[this.initialStartIndex])};
_.R.reposition_=function(){var p=_.jn("HTML_DIR")=="rtl"?"":"-",J=_.Jn(this.hostElement).querySelector("#items");J&&(J.style.transform="translateX("+p+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.R.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.mN(this,this.setButtonsState_))};
_.R.setButtonsState_=function(){this.setButtonsStateRequested=!1;var p=_.Jn(this.hostElement).querySelector("#items").firstElementChild;if(p){this.minComponentWidth||(this.minComponentWidth=rb4(this,p));p=_.Jn(this.hostElement).querySelector("#scroll-container").clientWidth;var J=_.Jn(this.hostElement).querySelector("#items");J=_.z("kevlar_horizontal_list_scroll_width_killswitch")?J.clientWidth:J.scrollWidth;var S=this.get(this.ytLazyListBehavior.itemsPath,this);if(S){var H=Math.round(p/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+H,S.length)-1)}this.ytLazyListBehavior.canShowMore?J+this.minComponentWidth>=this.offset+p&&(this.atEnd=!1):this.atEnd=this.offset+p>=J-20?!0:!1;this.atStart=this.offset<=20}};
_.R.setStartIndex=function(p){if(!this.minComponentWidth){var J=_.Jn(this.hostElement).querySelector("#items").firstElementChild;if(!J)return;this.minComponentWidth=rb4(this,J)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*p;Ut(this);this.reposition_()};
_.R.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Qw();var p=_.Jn(this.hostElement).querySelector("#scroll-container").clientWidth;_.z("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=rb4(this,_.Jn(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&&j08(this);this.offset+=YW8(this)?
VCU(this):p*this.minComponentWidth;Ut(this);this.reposition_();this.scrollCount++};
_.R.prevClick_=function(){var p=_.Jn(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=YW8(this)?VCU(this):this.minComponentWidth*this.scrollCount-1):this.offset-=YW8(this)?VCU(this):p*this.minComponentWidth;this.centerListItems&&j08(this);Ut(this);this.reposition_()};
_.R.onIronResize_=function(){this.resizeSupportEnabled&&_.mN(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.R.onItemsTransitionEnd_=function(p){_.Yt(p)===_.Jn(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.R.onChildElementFocus_=function(p){p=p.target.closest("#items > *");var J=_.Jn(this.hostElement).querySelector("#scroll-container");if(J.contains(p)){if(_.z("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+J.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Qw(),this.offset=p.offsetLeft+p.clientWidth-J.clientWidth;else return;else{var S=_.Jn(this.hostElement).querySelector("#items"),
H=_.jn("HTML_DIR")==="rtl",M=H?S.clientWidth-p.offsetLeft:p.offsetLeft;S=H?S.clientWidth-(p.offsetLeft+p.clientWidth):p.offsetLeft+p.clientWidth;var X=H?M>this.offset+J.clientWidth:M<this.offset,Z=H?S<this.offset:S>this.offset+J.clientWidth,n=H?X:Z;if(H?Z:X)J=H?S:M,this.offset=Math.abs(J)<p.clientWidth?0:J;else if(n)this.ytLazyListBehavior.fillRemainingListItems(),_.Qw(),this.offset=(H?M:S)-J.clientWidth;else return}Ut(this);this.reposition_()}};
_.R.observeShownItems_=function(){this.reset()};
_.R.checkComponentWidthResize=function(){var p=_.Jn(this.hostElement).querySelector("#items").firstElementChild;p&&(p=rb4(this,p),this.centerListItems||p!==this.minComponentWidth)&&(this.minComponentWidth=p,this.offset=p*this.scrollCount,this.centerListItems&&j08(this),Ut(this),this.reposition_())};
var rb4=function(p,J){var S=window.getComputedStyle(J).marginRight;S=Math.floor(Number(S.replace("px","")));var H=window.getComputedStyle(J).marginLeft;H=Math.floor(Number(H.replace("px","")));p.centerListItems&&!p.marginWidthRight&&(p.marginWidthRight=S,p.marginWidthLeft=H);return p.resizeSupportEnabled?J.getBoundingClientRect().width+S:J.offsetWidth+S},Ut=function(p){var J=_.Jn(p.hostElement).querySelector("#scroll-container").clientWidth,S=_.Jn(p.hostElement).querySelector("#items").clientWidth;
p.offset<0?p.offset=0:p.offset+J>=S&&(p.offset=S-J)},j08=function(p){p.offset-=(_.Jn(p.hostElement).querySelector("#scroll-container").clientWidth+p.marginWidthRight-p.minComponentWidth)/2-p.marginWidthLeft};
_.vh.Object.defineProperties(st.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var p=_.jn("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(p==-1)p=this.JSC$14655_cachedViewportHeight,p=p>1320?5:p>1020?4:p>730?3:p>430?2:1;else if(p==0)return 0;_.rY("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",p-1);p=_.jn("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;_.rY("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
p);return p},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.z("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
st.prototype.observeShownItems_=st.prototype.observeShownItems_;st.prototype.onChildElementFocus_=st.prototype.onChildElementFocus_;st.prototype.onItemsTransitionEnd_=st.prototype.onItemsTransitionEnd_;st.prototype.onIronResize_=st.prototype.onIronResize_;st.prototype.prevClick_=st.prototype.prevClick_;st.prototype.nextClick_=st.prototype.nextClick_;st.prototype.setButtonsState_=st.prototype.setButtonsState_;st.prototype.requestButtonsStateUpdate_=st.prototype.requestButtonsStateUpdate_;
st.prototype.reposition_=st.prototype.reposition_;st.prototype.reset=st.prototype.reset;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.y$.YtLazyListBehavior),_.Y("design:type",Object)],st.prototype,"ytLazyListBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],st.prototype,"atStart",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],st.prototype,"atEnd",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"startIndex",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"endIndex",void 0);_.V([_.N({value:6}),_.Y("design:type",Number)],st.prototype,"initialCount",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"scrollCount",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"initialStartIndex",void 0);
_.V([_.N(),_.Y("design:type",Object)],st.prototype,"disableScrollEventListener",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"supportComponentResize",void 0);_.V([_.N({value:function(){var p=this;return function(){return p.prevClick_()}}}),
_.Y("design:type",Function)],st.prototype,"boundPrevClick",void 0);_.V([_.N({value:function(){var p=this;return function(){return p.nextClick_()}}}),
_.Y("design:type",Function)],st.prototype,"boundNextClick",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"useFloorScrolling",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"isSearch",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"dragging",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"dragMouseStart",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"dragOffsetStart",void 0);
_.V([_.N(),_.Y("design:type",Object)],st.prototype,"disableWheelScroll",void 0);_.V([_.N(),_.Y("design:type",Object)],st.prototype,"centerListItems",void 0);_.V([_.GI("iron-resize"),_.bO("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],st.prototype,"onIronResize_",null);_.V([_.GI("transitionend"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],st.prototype,"onItemsTransitionEnd_",null);
_.V([_.GI("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],st.prototype,"onChildElementFocus_",null);_.V([_.bO("shownItems"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],st.prototype,"observeShownItems_",null);_.V([_.OD()],st);_.BH.YtdHorizontalListBehavior=[];_.BH.YtdHorizontalListBehavior.push(_.wL,_.x.YtRendererBehavior,_.y$.YtLazyListBehavior,_.mG.YtdGuideStateAwareBehavior,st.prototype);var MVX=["APP_STATE","PI"];var gU,tM=function(p){this.hostElement=p},hM=function(p,J){if(J&&(KWt(J.viewableCommands)||KWt(J.endOfSessionCommands))){var S=nJ9(J.viewableCommands);
J=nJ9(J.endOfSessionCommands);if(!gU){var H=_.PO("custom_active_view_tos_timeout_ms");gU=H>0&&H!==36E5?new DKX(Z2i(),H):new DKX(Z2i())}NZ9(gU,p.hostElement);TZX(gU,p.hostElement,S,J)}},DU=function(p){gU&&NZ9(gU,p.hostElement)};var wb8=_.YI(["about:blank"]),xA8={pushState:window.history.pushState,replaceState:window.history.replaceState};var k4=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)};
k4.prototype.init=function(){this.initialized=!0};
k4.prototype.pushState=function(p,J){this.initialized||this.init();this.internalPushState&&this.internalPushState(p,"",J)};
k4.prototype.replaceState=function(p,J){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(p,"",J)};
k4.prototype.getState=function(){return this.history&&this.history.state};var cbE=function(p){var J=function(){var S=p.apply(this,arguments)||this;S.boundHistoryPushState=!1;S.boundHistoryReplaceState=!1;S.debugInfo={};return S};
_.Q(J,p);J.prototype.init=function(){var S=_.Q0("IFRAME");_.Lt(S,_.fA(wb8));S.sandbox="allow-same-origin";S.style.display="none";this.iframe=S;document.body.appendChild(S);this.bindHistoryStateFunctions();p.prototype.init.call(this)};
J.prototype.bindHistoryStateFunctions=function(){var S=this,H=[],M;this.iframe&&((M=this.iframe.contentWindow)==null?0:M.history)&&(M=this.iframe.contentWindow.history)&&(H.push(M),Object.getPrototypeOf(M)&&H.push(Object.getPrototypeOf(M)));window.history&&H.push(window.history);M=window.history;Object.getPrototypeOf(M)&&H.push(Object.getPrototypeOf(M));H.push(xA8);M=function(Z){for(var n=null,b=0;b<H.length;b++){var F=H[b][Z];if(typeof F==="function"){n=F.bind(window.history);S.debugInfo[Z]=b;break}}return n};
if(!this.boundHistoryReplaceState){var X=M("replaceState");X&&(this.internalReplaceState=X,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(M=M("pushState"))&&(this.internalPushState=M,this.boundHistoryPushState=!0)};
return J}(k4),ITd=function(){return cbE.call(this,window.history)||this};
_.Q(ITd,cbE);ITd.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Ng=function(p){this.browserHistory=p;this.initialized=!1};
Ng.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Ng.prototype.pushState=function(p,J){this.initialized||this.init();this.browserHistory.pushState(p,J)};
Ng.prototype.replaceState=function(p,J){this.initialized||this.init();this.browserHistory.replaceState(p,J)};
Ng.prototype.handlePopstate=function(p){return p.state};_.LRU=function(p,J,S,H,M){this.endpoint=p;this.forward=J;this.historyEntry=S;this.JSC$30865_savedComponentState=H;this.legacyBorder=M===void 0?!1:M};var pS8=function(p,J){this.rootData=p;this.scrollTop=J};_.T0=new _.ni("EPHEMERAL_STORE_TOKEN");_.dU=function(p){this.data=Object.assign({},p);var J;(J=this.data.innertubeResponse)==null||delete J.frameworkUpdates};
_.dU.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.fO)()};
_.It=function(p){return Object.assign({},p.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var JiE=function(){this.maxSize=100;this.timeToDataCache=new Map};
JiE.prototype.get=function(p){var J=this.timeToDataCache.get(p);J&&(this.timeToDataCache.delete(p),this.timeToDataCache.set(p,J));if(J&&J.rootData&&(_.z("web_use_response_store_for_history_cache")||_.z("mweb_use_new_history_manager"))){var S=_.vO().resolve(_.T0),H=SOU(J),M=!!H;if(H){if(H.content){var X=uA(S,H.content);M&&X?J.rootData.response=_.It(X):M=!1}H.player&&(X=uA(S,H.player),M&&X?J.rootData.playerResponse=_.It(X):M=!1);H.reelSequence&&(S=uA(S,H.reelSequence),M&&S?J.rootData.reelWatchSequenceResponse=
_.It(S):M=!1)}M||(this.timeToDataCache.delete(p),J=void 0)}return J};
JiE.prototype.set=function(p,J){if(J.rootData&&(_.z("web_use_response_store_for_history_cache")||_.z("mweb_use_new_history_manager"))){var S=SOU(J),H=Object.assign({},J.rootData);S&&(S.content&&J.rootData.response&&(Hp8(this,S.content,J.rootData.response),H.response=null),S.player&&J.rootData.playerResponse&&(Hp8(this,S.player,J.rootData.playerResponse),H.playerResponse=null),S.reelSequence&&J.rootData.reelWatchSequenceResponse&&(Hp8(this,S.reelSequence,J.rootData.reelWatchSequenceResponse),H.reelWatchSequenceResponse=
null));J=new pS8(H,J.scrollTop)}this.timeToDataCache.has(p)?this.timeToDataCache.delete(p):this.timeToDataCache.size>=this.maxSize&&(S=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(S.value));this.maxSize!==0&&this.timeToDataCache.set(p,J)};
JiE.prototype.clear=function(){this.timeToDataCache.clear()};
var SOU=function(p){var J=_.vO().resolve(_.F9(_.o$)),S;if((S=p.rootData)==null?0:S.endpoint)return J==null?void 0:yNt(J,p.rootData.endpoint);var H;_.xQ(new _.TG("History snapshot response data does not contain endpoint",(H=p.rootData)==null?void 0:H.url));return null},Hp8=function(p,J,S){if(p.maxSize>0){var H;
(p=(H=S.responseContext)==null?void 0:H.maxAgeSeconds)&&Number(p)>0&&(H=_.vO().resolve(_.T0),S=XJ(S,p),H.put(J,new _.dU(S)))}};var MX8=function(p,J,S){this.endpoint=J;this.JSC$30871_savedComponentState=S===void 0?null:S;this.entryTime=p};var mxX=1;var lA=function(p){var J=function(){var S=p.apply(this,[].concat(_.dW(_.Yp.apply(0,arguments))))||this;S.historyEntryTime=0;S.historySnapshotCache=S.createHistoryCache();return S};
_.Q(J,p);J.prototype.createHistoryCache=function(){return new JiE};
J.prototype.saveAndReplace=function(S,H,M){var X=window.location.href;var Z=Z===void 0?{}:Z;var n=(n=this.browserHistory.getState())&&n.entryTime?n.entryTime:FWg();S=this.createNewHistoryEntry(S,Z,n);this.saveSnapshot(n,H,M);this.replaceState(S,X||window.location.href)};
J.prototype.saveAndPush=function(S,H,M,X,Z){Z=Z===void 0?{}:Z;this.saveSnapshot(this.historyEntryTime,M,X);M=this.historySnapshotCache;X=this.historyEntryTime;var n=M.timeToDataCache.keys();n=_.K(n);for(var b=n.next();!b.done;b=n.next())b=b.value,b>X&&M.timeToDataCache.delete(b);H=this.createNewHistoryEntry(H,Z);this.pushState(H,S)};
J.prototype.saveSnapshot=function(S,H,M){this.historySnapshotCache.set(S,new pS8(H,M))};
J.prototype.createNewHistoryEntry=function(S,H,M){M=M===void 0?FWg():M;return new MX8(M,S,H)};
J.prototype.handlePopstate=function(S){var H=p.prototype.handlePopstate.call(this,S),M=null,X=null,Z=!1,n=null;H&&H.entryTime&&(n=this.historySnapshotCache.get(H.entryTime)||null,Z=H.entryTime>this.historyEntryTime,this.historyEntryTime=H.entryTime,M=H.endpoint,X=H.JSC$30871_savedComponentState);this.handleHistoryCacheLoad(new _.LRU(M,Z,n,X),S);return H};
J.prototype.pushState=function(S,H){Number(S==null?void 0:S.entryTime)>=0&&(this.historyEntryTime=S.entryTime);p.prototype.pushState.call(this,S,H)};
J.prototype.replaceState=function(S,H){Number(S==null?void 0:S.entryTime)>=0&&(this.historyEntryTime=S.entryTime);p.prototype.replaceState.call(this,S,H)};
J.prototype.handleHistoryCacheLoad=function(){};
return J}(Ng),XSn=function(){var p=lA.call(this,new ITd)||this;
p.dispatchElement=null;p.entryIndex=0;return p};
_.Q(XSn,lA);_.R=XSn.prototype;_.R.init=function(p){p=p===void 0?!0:p;lA.prototype.init.call(this);this.initialized||(p||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.R.handlePopstate=function(p){var J=null;p.state||(J="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return lA.prototype.handlePopstate.call(this,p);var S=new CustomEvent("yt-history-pop",{cancelable:!0});_.IV(this.dispatchElement,"yt-history-pop",[S,{errorMsg:J}]);_.L1(this.dispatchElement,"yt-close-all-popups-action");if(!S.defaultPrevented){S=_.vO().resolve(_.xz);J=S.getCurrentData();var H=S.getCurrentPage();S=0;H?(H=_.IV(this.dispatchElement,"yt-get-page-offset",
[H]),H.length>0&&(S=H[0])):_.xQ(new _.TG("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:J?J.page:"undefined"}));J&&(J.csn=_.C1());this.saveSnapshot(this.historyEntryTime,J,S)}return lA.prototype.handlePopstate.call(this,p)};
_.R.handleHistoryCacheLoad=function(p,J){p.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.K(_.L1(this.dispatchElement,"yt-history-will-navigate",[J])).next().value||_.IV(this.dispatchElement,"yt-history-load",[J,p]))};
_.R.pushState=function(p,J){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var S=new _.TG("history.pushState is not a function",this.getDebugString());_.jD(S)}lA.prototype.pushState.call(this,p,J)};
_.R.replaceState=function(p,J){if(!this.browserHistory.boundHistoryReplaceState){var S=new _.TG("history.replaceState is not a function",this.getDebugString());_.jD(S)}lA.prototype.replaceState.call(this,p,J)};
_.R.saveAndPush=function(p,J,S,H,M){M=M===void 0?{}:M;S&&(S.csn=_.C1());lA.prototype.saveAndPush.call(this,p,J,S,H,M)};
_.R.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(",")};
_.V$=function(p,J){p.init(!0);var S=p.browserHistory.getState();p.replaceState(S,M6(J))};
XSn.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.qg=new _.ni("DESKTOP_HISTORY_MANAGER_TOKEN");var ipm=[10,20,30,40,50,60],aB=function(){this.currentPartitionIndex=0},RLd=function(p){uqd({mainAppWeb:_.ly(),
survivalSli:{partitionMinute:p,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Kqm=function(p){uqd({mainAppWeb:_.ly(),
survivalSli:{partitionMinute:p,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},Zpd=function(p){return p.currentPartitionIndex>=0&&p.currentPartitionIndex<ipm.length?ipm[p.currentPartitionIndex]:-1},nb8=function(p){return p.currentPartitionIndex>0&&p.currentPartitionIndex-1<ipm.length?ipm[p.currentPartitionIndex-1]:-1};
aB.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var p=nb8(this);p>0&&Kqm(p);p=Zpd(this);p>0&&RLd(p);Gnp(this)}};
var Gnp=function(p){var J=Zpd(p);if(J>0){var S=nb8(p);S<0&&(S=0);p.intervalId=_.wg.addJob(function(){var H=nb8(p);H>0&&Kqm(H);H=Zpd(p);H>0&&RLd(H);Gnp(p)},3,(J-S)*6E4);
p.currentPartitionIndex+=1}else p.currentPartitionIndex=-1};var bpM=function(p){eT.call(this,p,132);this.isDocument=p===document.documentElement};
_.Q(bpM,eT);bpM.prototype.calculateScrollDelta=function(p,J,S){var H=0;p<J?H=p<J-100?-48:-8:p>J+S&&(H=p>J+S+100?48:8);return H};
bpM.prototype.JSC$11547_onMouseMove=function(p){this.isDocument||(p.clientX=p.event_.pageX,p.clientY=p.event_.pageY);eT.prototype.JSC$11547_onMouseMove.call(this,p)};_.m24=function(p,J){var S=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14709_dragListGroup=null;this.onDraggerCreated=function(H){var M=H.JSC$11543_dragger;M.scrollTarget_=S.scrollElement;H=H.draggerEl;M&&H.menuOpened&&M.setEnabled(!1)};
this.onDragStart=function(H){var M=H.draggerEl;H=H.currDragItem;var X=Object.assign({},H==null?void 0:H.data);X.trackingParams=void 0;M.data=X;M.style.position="absolute";M.style.width=(H==null?void 0:H.clientWidth)+"px";M.style.zIndex="2030";M.onDrag&&M.onDrag();H=_.VF(M);(X=H.querySelector("ytd-app"))?_.Jn(X).appendChild(M):H.body.appendChild(M);S.dragScrollSupport=new bpM(S.scrollElement);S.dragScrollSupport.horizontalScrolling_=!1;M=S.dragScrollSupport;M.constrainScroll_=!!M.margin_&&!1};
this.onDrop=function(H){S.handleDrop(H);S.dragScrollSupport&&(_.iW(S.dragScrollSupport),S.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(S.JSC$14709_dragListGroup){var H=S.JSC$14709_dragListGroup;uB8(H,H.currDragItem_)}};
this.handleDrop=J};
_.Et=function(p){p.JSC$14709_dragListGroup&&(_.gx(p.JSC$14709_dragListGroup,sYL,p.onDragStart),_.gx(p.JSC$14709_dragListGroup,DrE,p.onDragStart),p.JSC$14709_dragListGroup.dispose(),p.JSC$14709_dragListGroup=null);p.dragScrollSupport&&(_.iW(p.dragScrollSupport),p.dragScrollSupport=null);p.scrollElement.removeEventListener("scroll",p.onReorderableScroll)};
_.FqM=function(p,J,S,H){H=H===void 0?"":H;_.Et(p);S&&(p.scrollElement=S);p.JSC$14709_dragListGroup=new JQ;p.JSC$14709_dragListGroup.hysteresisDistance_=2;Nn8(p.JSC$14709_dragListGroup,J);p.JSC$14709_dragListGroup.draggerElClasses_=mi("dragging").split(" ");H&&Tn4(p.JSC$14709_dragListGroup,function(M){var X=M||document,Z=null;X.getElementsByClassName?Z=X.getElementsByClassName(H)[0]:Z=F9L("*",H,M);return Z||M});
_.z$(p.JSC$14709_dragListGroup,BnU,p.onDraggerCreated);_.z$(p.JSC$14709_dragListGroup,sYL,p.onDragStart);_.z$(p.JSC$14709_dragListGroup,DrE,p.onDrop);p.JSC$14709_dragListGroup.init();p.scrollElement.addEventListener("scroll",p.onReorderableScroll,{passive:!0})};
_.vh.Object.defineProperties(_.m24.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var vb8=function(){this.skipNextNavigation=!1},feo=function(p,J,S){if(!J)return!1;
if(p.skipNextNavigation)return p.skipNextNavigation=!1;if(_.e(S,_.My))return!1;var H,M,X;if((H=_.e(S,_.Ge))==null?0:(M=H.browseEndpointContextSupportedConfigs)==null?0:(X=M.browseEndpointContextMainConfig)==null?0:X.skipConfirmation)return!1;var Z;return((Z=_.e(J.commandMetadata,_.i7))==null?void 0:Z.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
vb8.prototype.showConfirmationDialog=function(p,J){this.navigateParams=J;this.customConfirmationCommand?_.vO().resolve(_.Ov).resolveCommand(this.customConfirmationCommand):(J={openPopupAction:{popup:{confirmDialogRenderer:{title:_.aR(_.Kl("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.aR(_.Kl("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.aR(_.Kl("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.aR(_.Kl("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.XK.getInstance().triggerAction("yt-open-popup-action",J,p))};
vb8.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 Op4=function(){},P2d=function(p,J,S,H,M,X,Z){S=S===void 0?{}:S;
Z=Z===void 0?{}:Z;var n=_.vO().resolve(_.o$),b,F=(b=_.e(J,_.My))==null?void 0:b.url;return F?iwi(n,F,S,window.location.href,function(f,O){Aim(p,f,O,!1,!0,S,X,H)},function(){return!1}):ub(n,J,S,window.location.href,mu(J),function(f,O){Aim(p,f,O,!1,!0,S,X,H)},M,Z)},Aim=function(p,J,S,H,M,X,Z,n){if(!p.JSC$14724_chunkHandler)if(S.page==="learning_journey_watch"&&_.z("web_enable_canvas_on_learning_journey")){var b=!_.e(n,_.Ge);
M=M||H;if(b)if(M){if(_.z("kevlar_continue_playback_without_player_response")){var F;var f=(F=_.e(n,_.lj))==null?void 0:F.videoId}H={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:H,previousVideoId:f},tempData:X}}else H={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else H={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};p.JSC$14724_chunkHandler=new ZW8(_.IY,H,Z,b,M)}else if(S.page==="watch"||S.page==="learning_journey_watch")if(M||H){if(_.z("kevlar_continue_playback_without_player_response")){var O;
b=(O=_.e(n,_.lj))==null?void 0:O.videoId}p.JSC$14724_chunkHandler=new bWE(_.IY,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:H,previousVideoId:b},tempData:X},Z)}else p.JSC$14724_chunkHandler=new Rs8(_.IY);else S.page==="shorts"&&M&&!H?p.JSC$14724_chunkHandler=new GR8(_.IY,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:X},Z):p.JSC$14724_chunkHandler=new Kl8(Z);p.JSC$14724_chunkHandler.processChunk({endpoint:J,data:S});return p.JSC$14724_chunkHandler.iq.promise},
zLE=function(p,J,S,H,M){(S=_.Cdv(S))&&Aim(p,J,S,!1,!0,H,void 0,M)};_.$28=new _.ni("NAVIGATION_SERVICE_TOKEN");var ob8=function(){this.pendingNavigationPromise=null};
_.R=ob8.prototype;_.R.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.R.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.R.addEventListener=function(){throw Error("yh");};
_.R.dispatchEvent=function(){throw Error("yh");};
_.R.removeEventListener=function(){throw Error("yh");};var eLn=new _.ni("APP_ROOT");var fiw=null;var Wq8=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Y4=function(){_.te.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];Qzq(this)};
_.Q(Y4,_.te);Y4.prototype.verifyUser=function(){var p=Qzq(this),J=p.logout;if(!p.sessionChange)return!0;this.dispatchEvent("ytsessionchange");J&&this.dispatchEvent("ytuserinvalid");return!1};
var Qzq=function(p){var J=Wq8.map(function(M){var X;return(X=_.tl.get(M))!=null?X:""}),S=J.some(function(M,X){return p.sessionCookies&&p.sessionCookies[X]!==""&&M===""}),H=J.some(function(M,X){return p.sessionCookies&&p.sessionCookies[X]!==M});
p.sessionCookies=J;return{logout:S,sessionChange:H}};
Y4.prototype.clearTimeout=function(){this.scheduledJobId&&(_.wg.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var oJt=new _.ni("POSTMESSAGE_TUNNEL_TOKEN");var PXi=["/parent_tools","/file_download","/artist_roster"],QkW=[xGv,csm,I48,pZp,L78,wGq,Ju8,SK8];var rU=new _.ni("NAVIGATION_CONFIRMATION_SERVICE");var C2q="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),yid=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],jk=function(p,J){this.pendingNavigationPromise=null;this.JSC$14747_clientRoot=p;this.historyManager=J;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 Op4;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};_.RZ(_.XK.getInstance(),p,this.JSC$14747_clientRoot)},tXL,hLE,D2E,knm,gbL;
_.Q(jk,ob8);jk.prototype.reload=function(){_.hc(window.location.href)};
var UpE=function(p){p.currentEndpoint&&_.e(p.currentEndpoint,_.vt)?p.reload():p.currentEndpoint&&p.navigate(p.currentEndpoint,!0,void 0,{disableCache:!0})};
jk.prototype.navigate=function(p,J,S,H,M,X,Z,n){J=J===void 0?!1:J;S=S===void 0?{}:S;H=H===void 0?{}:H;var b=_.vO().resolve(rU),F;if(!Z&&feo(b,(F=this.currentEndpoint)!=null?F:void 0,p))return b.showConfirmationDialog(this.JSC$14747_clientRoot.parentElement,{endpoint:p,reload:J,params:S,tempData:H,requestType:M,createScreenConfig:X}),!1;var f=_.fq();_.OT(f,"eocs")||f.parkOrScheduleJob(function(){f.processSignal("eocs")},10,"eor");
O2L();Z=mu(p);b=H.autonav==="1";F=_.C1();Y4.instance||(Y4.instance=new Y4);var O=Y4.instance.verifyUser(),A;if(_.z("enable_dark_theme_only_on_shorts")){var P=document.documentElement.hasAttribute("dark"),W=_.kt(!0)==="USER_INTERFACE_THEME_DARK";if(Z==="shorts"){if(!P)if(_.z("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var y;_.hc((y=_.e(p==null?void 0:p.commandMetadata,_.i7))==null?void 0:y.url,void 0,void 0,window.top)}}else{var t;_.hc(_.Ry((t=_.e(p==
null?void 0:p.commandMetadata,_.i7))==null?void 0:t.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.z("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!P){var D;_.hc(_.Ry((D=_.e(p==null?void 0:p.commandMetadata,_.i7))==null?void 0:D.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(W!==P){var k;_.hc(_.Ry((k=_.e(p==null?void 0:p.commandMetadata,_.i7))==null?void 0:k.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(Z==="watch"){if(Buv(_.vO().resolve(_.DF),
p)&&(O||_.z("fix_miniplayer_navigation_killswitch")))return!1;_.z("block_all_player_prefetch_requests")||(A=y$v(_.x8(_.uc),p,b))}else{var E,a=(E=_.e(this.currentEndpoint,_.lj))==null?void 0:E.videoId;a&&_.JW.getInstance().then(function(NW){NW&&NW.set("yt-miniplayer-shown-video-id",a)})}A&&(S.frags=A.missingFragments_.join(","));
y=null;var q;t=(q=_.e(p==null?void 0:p.commandMetadata,_.i7))==null?void 0:q.ignoreNavigation;if(!t)if(_.z("kevlar_command_url")){var w;y=(w=_.e(p==null?void 0:p.commandMetadata,_.i7))==null?void 0:w.url}else y=_.Sl4(p,S);if(y&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&y==this.lastNavigationUrl)return _.o5({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.nT(t1(),"CANCELLED")}y&&(this.lastNavigationUrl=y);wwi();_.rY("IS_HOMEPAGE_COLD",
!1);_.rY("IS_RESULTS_PAGE_COLD",!1);_.rY("IS_WATCH_PAGE_COLD",!1);p.loggingUrls&&p.loggingUrls.forEach(function(NW){NW.baseUrl&&_.Xb(NW.baseUrl)});
_.UxX(p,X?X.layer:0)&&_.z("kevlar_flush_logs_on_away_navigation")&&_.rf();if(CXX(p))return!1;KFm(Z,M);if(!y)return t||_.xQ(new _.TG("Can't construct url for endpoint",p)),_.nT(t1(),"FAILURE"),!1;_.ABW();q=p&&_.e(p,_.Ge)&&_.e(p,_.Ge).browseId.startsWith("UC");S=(w=_.z("enable_dark_theme_only_on_shorts")&&Z==="shorts"?!1:_.Nc()&&document.documentElement.hasAttribute("dark")!==_.Dc())?{themeRefresh:1}:{};w&&!_.DL()&&_.kt()==="USER_INTERFACE_THEME_DARK"&&(S.theme="dark");q=w||U24(y)&&!q&&!_.z("kevlar_disable_url_allowlist");
O||(q=!0);if(q||_.jn("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var I;var Z3=(I=window.top)==null?void 0:I.location.href}catch(NW){var vg;Z3=(vg=NW)==null?void 0:vg.message}_.xQ(new _.TG("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Z3}))}p=_.z("kevlar_redirect_on_window_killswitch")?window.top:window;tc(y);_.hc(_.Ry(y,S),void 0,void 0,p);_.nT(t1(),"ABORTED");return!1}_.z("kevlar_early_popup_close")&&_.IV(this.JSC$14747_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14724_chunkHandler=void 0;var yX;Z3=mu((yX=this.currentEndpoint)!=null?yX:void 0);(yX=Z==="shorts"&&Z3==="shorts")||_.Eig();_.c5(t3v)("nr",void 0);b&&_.o5({webInfo:{navigationReason:"an"}});p.clickTrackingParams&&(H.itct=p.clickTrackingParams,H.csn=F);jH9(H);H.endpoint=JSON.stringify(p);_.z("enable_unknown_lact_fix_on_html5")&&(_.vO().resolve(_.Am),H.lact=_.AV());_.T6.isEmpty(H)||_.EB(y,H);!_.z("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(X=Object.assign({},{layer:0},X,{parentLayer:3}));this.pendingNavigationPromise=X=P2d(this.pageFetcher,p,H,this.currentEndpoint,this.JSC$14747_isNetworkPromiseStale.bind(this),X,n);X=X.then(this.handleNavigateSuccess.bind(this,X,p,A,H),this.handleNavigateFail.bind(this,X,p));_.YE().navigationFinishPromise=X;J={endpoint:p,pageType:Z,url:M6(y),reload:!!J,noProgressBar:yX};M&&(J.type=M);var Pg;M=_.ny((Pg=this.currentEndpoint)!=null?Pg:null);Pg=_.ny(p!=null?p:null);this.fireEvent("yt-navigate-start",
J);var ov;(ov=_.vO().resolve(_.F9(_.$28)))==null||ov.publish("navigation-start",{sourcePageSubtype:M,destinationPageSubtype:Pg});A&&zLE(this.pageFetcher,p,A,H,this.currentEndpoint);return!0};
jk.prototype.JSC$14747_isNetworkPromiseStale=function(p){return p!=this.pendingNavigationPromise};
var sz8=function(p,J,S,H,M){var X=mu(J);J={endpoint:J,pageType:X};M&&(J.errorMessage=M);_.xQ(S);J.navigationDoneMs=_.Qf("nd");J.navigationErrorReason=H;p.fireEvent("yt-navigate-error",J)};
jk.prototype.handleNavigateFail=function(p,J,S){var H=void 0;S instanceof _.DP&&(H=S,p$t(S));if(this.JSC$14747_isNetworkPromiseStale(p))return _.o4(H);_.nT(t1(),"FAILURE");sz8(this,J,S,"101");return _.o4(S)};
jk.prototype.handleNavigateSuccess=function(p,J,S,H,M){if(this.JSC$14747_isNetworkPromiseStale(p))return _.SU();this.pendingNavigationPromise=null;if(!M)return J=new _.TG("Missing data in response for navigation endpoint",J),_.o4(J);if(M.reload)return window.location.reload(!0),_.SU();S&&(p={},_.T6.extend(p,_.Cdv(S),M),M=p);var X,Z;S=(X=M)==null?void 0:(Z=X.timing)==null?void 0:Z.responseStart;S!=null&&_.Qf("srt",S);_.Qf("pdc");var n,b;X=(n=M)==null?void 0:(b=n.timing)==null?void 0:b.info;X!=null&&
(n=_.c5(_.NBX)(X),_.o5(n));_.nT(t1(),"SUCCESS");gbL(this,J,M,1,H);return _.SU()};
var U24=function(p){var J=p;_.z("kevlar_no_redirect_to_classic_2_ks")||(J=(new _.V1(p)).getPath());if(J==="/"||J==="/red")return!1;var S=!0;C2q.forEach(function(H){p.indexOf(H)===0&&(S=!1)});
yid.forEach(function(H){var M=H.url;_.z(H.expFlag)&&p.indexOf(M)===0&&(S=!1)});
return S};
jk.prototype.publishPageData=function(p){this.fireEvent("yt-page-data-fetched",{pageData:p})};
tXL=function(p,J,S,H,M,X){var Z=null;J.page!=="watch"&&J.page!=="learning_journey_watch"||H?J.filler||_.IV(p.JSC$14747_clientRoot,"yt-stop-old-player",[J]):Z=Aim(p.pageFetcher,M,J,S,!1,X,void 0,p.currentEndpoint);if(Z)return Z.then(p.publishPageData.bind(p,J));p.publishPageData(J);return _.SU()};
hLE=function(p,J,S){var H=null;if(!S)return H=new _.TG("Empty data",p.debugString,J);var M=S.response;if(!M)return H;var X={endpointType:mu(J)||"unknown"};M.responseContext?(M=M.responseContext.errors)&&(H=new _.TG("Errors in response context",p.debugString,J,M,X)):H=M.error||M.errorMetadata?new _.TG("Errors in response",p.debugString,J,M.error,M.errorMetadata,X):new _.TG("responseContext missing",p.debugString,J,Object.keys(M).sort().join(","),X);var Z,n,b,F;if(p=S==null?void 0:(Z=S.response)==null?
void 0:(n=Z.responseContext)==null?void 0:(b=n.webResponseContextExtensionData)==null?void 0:(F=b.webResponseContextDebugData)==null?void 0:F.debugErrorMessages)for(Z=0;Z<p.length;Z++);return H};
D2E=function(p){var J,S,H,M;return p==null?void 0:(J=p.response)==null?void 0:(S=J.responseContext)==null?void 0:(H=S.errors)==null?void 0:(M=H.error)==null?void 0:M["0"]};
knm=function(p,J){var S;if(S=J.url&&!J.url.startsWith("/clip"))S=J.url,S=!_.z("webfe_parse_debug_param_in_resolveurl_service")&&p.searchDebugUrlMatcher.test(S)||nO4(S)?!0:!1;if(S)nO4(J.url)&&_.ih(window.location.href).themeRefresh?(J=_.YV(J.url,"themeRefresh"),_.V$(p.historyManager,J)):J.url&&!GpW(J.url)&&_.V$(p.historyManager,J.url);else if(J.endpoint){var H,M,X;(S=(H=J.endpoint)==null?void 0:(M=H.commandMetadata)==null?void 0:(X=M.webCommandMetadata)==null?void 0:X.url)&&!GpW(S)&&_.V$(p.historyManager,
S);S&&J.url&&S!=J.url&&!J.url.match("playnext=1")&&new _.TG("Response url mismatch in response data",p.debugString,S,J.url)}};
_.Nu8=function(p,J,S,H,M,X,Z,n){X=X===void 0?!1:X;var b=_.vO().resolve(rU),F;if(!n&&feo(b,(F=p.currentEndpoint)!=null?F:void 0,J))return b.showConfirmationDialog(p.JSC$14747_clientRoot.parentElement,{endpoint:J,data:S,navigationType:H,tempData:M,isMiniplayer:X,isForwardHistoryNavigation:Z==null?void 0:Z.forward}),_.SU();p.pageFetcher.JSC$14724_chunkHandler=void 0;return gbL(p,J,S,H,M,X)};
gbL=function(p,J,S,H,M,X){X=X===void 0?!1:X;p.isMiniplayerExpansion=X;var Z=H===2;p.currentEndpoint=J;p.numNavigations++;p.numNavigations&&(Dfi.navigationCount=p.numNavigations);_.rY("NUM_NAV",p.numNavigations);var n=hLE(p,J,S);if(n)return sz8(p,J,n,"102",D2E(S)),_.o4(n);var b,F,f,O;n=S.rootVe||(S==null?void 0:(b=S.response)==null?void 0:(F=b.responseContext)==null?void 0:(f=F.webResponseContextExtensionData)==null?void 0:(O=f.ytConfigData)==null?void 0:O.rootVisualElementType);!Z&&S&&knm(p,S);var A,
P;b=S==null?void 0:(A=S.response)==null?void 0:(P=A.responseContext)==null?void 0:P.maxAgeSeconds;if(!Z&&!isNaN(b)){var W;_.z("kevlar_use_response_ttl_to_invalidate_cache")?W=(0,_.fO)()+1E3*b:_.z("kevlar_always_invalidate_cache")&&(W=0);isNaN(W)||(S.expirationTime=W)}_.x8(_.uc).prefetchCache_.clear();Z||S.page!=="watch"||S.type!=="reduced"&&H!==1?H=tXL(p,S,Z,!!X,J,M):(p.publishPageData(S),H=_.SU());M=H.then(function(){var y=mu(J);y={endpoint:J,pageType:y,fromHistory:Z,response:S};y.navigationDoneMs=
_.Qf("nd");p.fireEvent("yt-navigate-finish",y);var t;(t=_.vO().resolve(_.F9(_.$28)))==null||t.publish("navigation-end")});
S.csn&&n&&S.clientSideGrafts&&H.then(p.attachClientSideGrafts.bind(p,S,_.Wf()));return M};
_.R=jk.prototype;_.R.attachClientSideGrafts=function(p,J){p.clientSideGrafts&&J&&p.clientSideGrafts.forEach(function(S){if(J&&S){var H=_.Az(S);_.z("combine_ve_grafts")?_.bC().graftServerVe(S,J):_.kO(p.csn,J,H)}})};
_.R.handleSignalActionHistoryBack=function(){window.history.back()};
_.R.handleSignalActionCloseWindow=function(){window.close()};
_.R.handleSignalActionReloadPage=function(){this.reload()};
_.R.handleSignalActionSoftReloadPage=function(){UpE(this)};
_.R.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.R.fireEvent=function(p,J){p=new CustomEvent(p,{bubbles:!0,cancelable:!1,composed:!0,detail:J});this.dispatchEvent(p)};
_.R.addEventListener=function(p,J){this.JSC$14747_clientRoot.addEventListener(p,J)};
_.R.dispatchEvent=function(p){return this.JSC$14747_clientRoot.dispatchEvent(p)};
_.R.removeEventListener=function(p,J){this.JSC$14747_clientRoot.removeEventListener(p,J)};
jk[fQ]=[eLn,_.qg];_.b6g=new iP("browse","h8y2qb");_.m5X=new iP("search","JzFVk");_.Fa4=new iP("shorts","xwEKAe");_.v1i=new iP("watchFixie","nmfa2d");_.fbi=new iP("watchFlexy","CF909");_.O6w=new iP("watchGrid","Tm0L3c");_.ANv=new iP("watchLearningJourney","L3n37");var Tuq;var d2n=function(){return _.T.apply(this,arguments)||this};
_.Q(d2n,_.T);_.vh.Object.defineProperties(d2n,{template:{configurable:!0,enumerable:!0,get:function(){if(Tuq===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);Tuq=p}p=Tuq;return p}}});
_.V([_.B(dAn.YtPlayerBehavior),_.Y("design:type",Object)],d2n.prototype,"ytPlayerBehavior",void 0);_.V([_.gw({is:"ytd-player"})],d2n);var uOU;var le8;var VXU;var wU=function(){var p=_.T.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};
_.Q(wU,_.T);wU.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]]"}}}}}};
wU.prototype.handleAccountLinkingStateChangedCommand=function(p){if(p=_.e(p,fNU)){var J,S=(J=this.data)==null?void 0:J.providerKey;J=p.providerKey;S&&J&&S.id===J.id&&S.subject===J.subject&&(p=p.linked,p!==void 0&&(this.set("data.linked",p),this.notifyPath("data.linked"),_.z("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(p)))}};
wU.prototype.setPlayerAccountLinkState=function(p){var J=new t78;h9U(J,slU(new Ul8,p));var S=_.IY();S&&S.getPlayerPromise().then(function(H){H.setAccountLinkState(_.gM(J.JSC$12474_serializeBinary(),4));H.updateAccountLinkingConfig(p)})};
wU.prototype.handleShowAccountLinkDialog=function(){var p=this.get("button.buttonRenderer.command");p&&_.Mq([p],this.hostElement)};
_.vh.Object.defineProperties(wU.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}}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],wU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.V([_.B([_.u1.YtActionHandlerBehavior]),_.Y("design:type",Object)],wU.prototype,"actionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wU.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],wU.prototype,"overrides",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],wU.prototype,"forceModernIconButton",void 0);_.V([_.N({value:"bottom"}),_.Y("design:type",String)],wU.prototype,"buttonTooltipPosition",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],wU.prototype,"forceIconButton",void 0);_.V([_.N(),_.Y("design:type",Boolean)],wU.prototype,"disableTextTransform",void 0);
_.V([_.U("data","data.linked","data.isWarning"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wU.prototype,"button",null);_.V([_.gw({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],wU);
_.l(wU,"ytd-account-link-button-renderer",function(){if(VXU!==void 0)return VXU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return VXU=p},{mode:1});var qO4;var aen=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],x4=function(){return _.T.apply(this,arguments)||this};
_.Q(x4,_.T);x4.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
x4.prototype.updateButtonActiveState=function(){var p=this,J=!!aen.find(function(S){return p.currentState===S});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.z("enable_web_delhi_icons")&&(J=!1);this.button&&(this.button.isPressed=J)};
_.vh.Object.defineProperties(x4.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.playlistLoopStateEntity)==null?void 0:p.state)||((J=this.data)==null?void 0:J.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var p=void 0,J;if(this.currentState&&((J=this.data)==null?0:J.states)){J=_.K(this.data.states);for(var S=J.next();!S.done;S=J.next()){S=_.e(S.value,_.g98);var H=void 0;if(((H=S)==null?void 0:H.state)===this.currentState){p=S;break}}}return p}}});
x4.prototype.updateButtonActiveState=x4.prototype.updateButtonActiveState;_.V([_.B(_.RB),_.Y("design:type",Object)],x4.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.IO.playlistLoopStateEntitySelector}),_.Y("design:type",Object)],x4.prototype,"playlistLoopStateEntity",void 0);_.V([_.N(),_.Y("design:type",Object)],x4.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],x4.prototype,"forceIconOnly",void 0);_.V([_.FM("ytd-button-renderer"),_.Y("design:type",_.yJ)],x4.prototype,"button",void 0);
_.V([_.U("data","playlistLoopStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x4.prototype,"currentState",null);_.V([_.bO("currentButtonStateRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x4.prototype,"updateButtonActiveState",null);_.V([_.U("currentState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x4.prototype,"currentButtonStateRenderer",null);
_.V([_.gw({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],x4);
_.l(x4,"ytd-playlist-loop-button-renderer",function(){if(qO4!==void 0)return qO4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return qO4=p},
{mode:1});var EbU;var YO8=_.Kl("DOWNLOAD",{},"Download"),rio=_.Kl("DOWNLOADING",{},"Downloading"),jzE=_.Kl("DOWNLOADED",{},"Downloaded"),wSL=_.Kl("RETRY",{},"Retry"),cH=function(){var p=_.T.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};
_.Q(cH,_.T);_.R=cH.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.dataChanged=function(){var p;(p=this.data)!=null&&p.text||(p=_.gl(_.rl().getState(),this.videoId),this.updateButtonState(p))};
_.R.computeVideoId=function(p){return p};
_.R.computePlayerStateEntityKey=function(p){return p};
_.R.showHideButton=function(){this.updateButtonVisibility()};
_.R.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var p;((p=this.playerStateEntity)==null?void 0:p.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0: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};
_.R.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.R.updateButtonState=function(p){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==rio||!_.f$(p))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(p){case "TRANSFER_STATE_UNKNOWN":p=YO8;var J="OFFLINE_DOWNLOAD";var S="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":p=wSL;J="OFFLINE_DOWNLOAD";S="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":p=jzE;J="OFFLINE_PIN";S="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":p=
rio;J="OFFLINE_DOWNLOADING_ZERO";S="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":p=wSL;J="OFFLINE_DOWNLOAD";S="ACTION_RETRY";break;default:p=YO8,J="OFFLINE_DOWNLOAD",S="ACTION_ADD"}this.isVideoDeletedByUser&&(p=YO8,J="OFFLINE_DOWNLOAD",S="ACTION_ADD");var H=Object.assign({},this.data);H.text=_.aR(p);H.tooltip=p;H.icon={iconType:J};H.size="SIZE_DEFAULT";H.style="STYLE_DEFAULT";_.e(H.command,_.mV)&&(_.e(H.command,_.mV).action=S);this.set("data",H)}};
_.R.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 J;p!==((J=this.data.icon)==null?void 0:J.iconType)&&(J=Object.assign({},this.data),J.text=_.aR(rio),J.tooltip=rio,J.icon={iconType:p},_.e(J.command,_.mV)&&(_.e(J.command,_.mV).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",J))}};
cH.prototype.updateProgress=cH.prototype.updateProgress;cH.prototype.onTransferStateChanged=cH.prototype.onTransferStateChanged;cH.prototype.showHideButton=cH.prototype.showHideButton;cH.prototype.dataChanged=cH.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],cH.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],cH.prototype,"forceIconButton",void 0);
_.V([_.N(),_.Y("design:type",Object)],cH.prototype,"forceIconOnly",void 0);_.V([_.N(),_.Y("design:type",Object)],cH.prototype,"overrides",void 0);_.V([_.N(),_.Y("design:type",Object)],cH.prototype,"buttonTooltipPosition",void 0);_.V([_.N(),_.Y("design:type",Object)],cH.prototype,"styleActionButton",void 0);_.V([_.N(),_.Y("design:type",Object)],cH.prototype,"disableTextTransform",void 0);
_.V([_.N({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.Y("design:type",String)],cH.prototype,"videoId",void 0);_.V([_.N({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.Y("design:type",String)],cH.prototype,"playerStateEntityKey",void 0);_.V([_.N(),_.Y("design:type",Object)],cH.prototype,"data",void 0);_.V([_.N({selector:DY,selectorArgs:["videoId"]}),_.Y("design:type",Object)],cH.prototype,"downloadProgress",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],cH.prototype,"isDownloadComplete",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],cH.prototype,"isHidden",void 0);_.V([_.N({selector:_.gl,selectorArgs:["videoId"]}),_.Y("design:type",String)],cH.prototype,"transferState",void 0);_.V([_.N({selector:_.xa9,selectorArgs:["videoId"]}),_.Y("design:type",Object)],cH.prototype,"isVideoDeletedByUser",void 0);
_.V([_.N({selector:a0i,selectorArgs:["videoId"]}),_.Y("design:type",Object)],cH.prototype,"offlineabilityState",void 0);_.V([_.N({selector:_.RY,selectorArgs:["playerStateEntityKey"]}),_.Y("design:type",Object)],cH.prototype,"playerStateEntity",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],cH.prototype,"showTooltips",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],cH.prototype,"sendCommandWhenDisabled",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],cH.prototype,"disabled",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cH.prototype,"dataChanged",null);_.V([_.An("offlineabilityState","playerStateEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cH.prototype,"showHideButton",null);
_.V([_.An("transferState","isVideoDeletedByUser"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cH.prototype,"onTransferStateChanged",null);_.V([_.An("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cH.prototype,"updateProgress",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],cH);
_.l(cH,"ytd-download-button-renderer",function(){if(EbU!==void 0)return EbU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return EbU=p},{mode:2});var x2p;var ciL,Iep=function(){if(ciL!==void 0)return ciL;var p=document.createElement("template");_.C(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 ciL=p};var Lq8=_.z("web_button_rework")&&_.wY("BUTTON_REWORK")||_.z("web_button_rework_with_live"),po4=_.PO("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,IB=function(){var p=_.T.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$14785_browserSupportsAnimation=_.z("web_supports_animations_api");p.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};p.onTap=function(){var J;if((J=p.data)==null||!J.defaultNavigationEndpoint){var S;J=!((S=p.data)==null?0:S.isToggled);var H;if((H=p.data)==null||!H.preventAutoToggle){p.shouldAnimate=!1;p.disableTextUpdateJobId&&_.wg.cancelJob(p.disableTextUpdateJobId);p.disableTextUpdateJobId=_.wg.addLowPriorityJob(function(){p.disableTextUpdateJobId=void 0},po4);
var M;p.set("data.isToggled",!((M=p.data)==null?0:M.isToggled));S=p.getInnertubeIcon();H={toggled:J,actions:{}};S&&(H.actions[S.toLowerCase()]=J);_.cf(p.hostElement,"yt-toggle-button",H)}}};
return p};
_.Q(IB,_.T);_.R=IB.prototype;_.R.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.wg.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.toggle=function(p){var J;this.set("data.isToggled",p!==void 0?p:!((J=this.data)==null?0:J.isToggled))};
_.R.handleUpdateToggleButtonStateCommand=function(p){if(this.data){p=_.e(p,o9v);var J,S,H,M=(J=this.data)==null?void 0:(S=J.toggleButtonSupportedData)==null?void 0:(H=S.toggleButtonIdData)==null?void 0:H.id;M&&p&&M===(p==null?void 0:p.buttonId)&&this.set("data.isToggled",p.toggled)}};
_.R.handleUpdateToggleButtonTextAction=function(p){if(this.data){p=_.e(p,qto);var J,S,H,M=(J=this.data)==null?void 0:(S=J.toggleButtonSupportedData)==null?void 0:(H=S.toggleButtonIdData)==null?void 0:H.id;M&&p&&M===(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)}};
_.R.getInnertubeIcon=function(){var p=this.data;if(p){var J,S,H=((J=p.defaultIcon)==null?0:J.iconType)?(S=p.defaultIcon)==null?void 0:S.iconType:null,M,X;J=((M=p.toggledIcon)==null?0:M.iconType)?(X=p.toggledIcon)==null?void 0:X.iconType:H;return p.isToggled?J:H}};
_.R.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.vh.Object.defineProperties(IB.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$14785_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var J=p.renderer;var S=p.element;var H=p.toggled;var M=p.onTapCallback;var X=p.commandClientArgs;var Z=p.overrides;var n=p.forceIcon;var b=p.forceModernIconButton;var F=p.forceDisabled;var f=p.useAnimatedText;var O=p.animatedTextProps;p=tV4(J,H);n=!J.defaultIcon||!n&&J.defaultText?J.defaultIcon?"leading":void 0:b?"icon-only":"icon-only-40";n==="icon-only-40"&&(p.type="text");var A;b=Object;var P=b.assign,W;a:switch((W=
J.style)==null?void 0:W.styleType){case "STYLE_COMPACT_GRAY":W={size:"S"};break a;default:W={size:"M"}}var y=!!H;var t=(t=H&&J.toggledText||J.defaultText)?_.CI(t):void 0;f?(f=_.E4(H&&J.toggledText||J.defaultText))&&O&&!isNaN(Number(O.numberValue))?(O.numberText=f,H&&(O.numberValue+=1),f=O):f=void 0:f=void 0;var D,k,E,a;var q=(O=((k=H?J.toggledAccessibilityData||((q=J.toggledText)==null?void 0:q.accessibility):J.accessibilityData||((D=J.defaultText)==null?void 0:D.accessibility))==null?void 0:(E=k.accessibilityData)==
null?void 0:E.label)||((a=J.accessibility)==null?void 0:a.label))?O:_.E4(H&&J.toggledText||J.defaultText);F=F===void 0?J.isDisabled:F;S=gJ3(J,H,M,S,X);H=ski(J,H);H!=null&&H.length?(H=_.tz({innertubeCommand:vgi(H),forceNewState:!0}),H=hz(H)?H:void 0):H=void 0;J=P.call(b,{},p,W,{iconPosition:n},Z,{focused:!1,toggled:y,toggleable:!0,formattedButtonText:t,animatedTextProps:f,accessibilityLabel:q,disabled:F,onTap:S,aTagConfig:H},aQi((A=J.colorData)==null?void 0:A.basicColorPaletteData));J.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(J.type="filled");return J}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var p=this.getInnertubeIcon();if(p)return _.Xj(p)}}});
IB.prototype.resetAnimation=IB.prototype.resetAnimation;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],IB.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],IB.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],IB.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],IB.prototype,"isPressed",void 0);_.V([_.N(),_.Y("design:type",Object)],IB.prototype,"forceIconButton",void 0);_.V([_.N(),_.Y("design:type",Object)],IB.prototype,"forceIconOnly",void 0);_.V([_.N(),_.Y("design:type",Object)],IB.prototype,"forceModernIconButton",void 0);_.V([_.N(),_.Y("design:type",Object)],IB.prototype,"alignByText",void 0);_.V([_.N(),_.Y("design:type",Object)],IB.prototype,"overrides",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],IB.prototype,"disabled",void 0);_.V([_.N(),_.Y("design:type",Object)],IB.prototype,"isShorts",void 0);_.V([_.N(),_.Y("design:type",Object)],IB.prototype,"buttonTooltipPosition",void 0);_.V([_.N(),_.Y("design:type",Object)],IB.prototype,"animatedText",void 0);_.V([_.N(),_.Y("design:type",String)],IB.prototype,"textNumberValue",void 0);_.V([_.N({computed:"computeTooltip(data, data.isToggled)"}),_.Y("design:type",Object)],IB.prototype,"tooltip",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IB.prototype,"resetAnimation",null);_.V([_.U("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IB.prototype,"computedButtonShape",null);_.V([_.U("data.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IB.prototype,"computedIcon",null);
_.V([_.gw({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],IB);Lq8&&_.l(IB,"ytd-toggle-button-renderer",Iep,{mode:_.Jz("kevlar_poly_si_batch_j081")?1:2});var JEo=_.d(function(p){function J(F){var f;return _.G(function(O){if(O.nextAddress==1)return(f=!Dxi(F,n())||!n().enabled)?O.jumpTo(2):O.yield(u3w(),3);O.nextAddress!=2&&(f=O.yieldResult);if(f)return O.return();S();setTimeout(function(){Z(!1)},1500);
_.UK(O)})}
function S(){setTimeout(function(){Z(!0);var F;(F=H.lottieEl)==null||F.goToAndPlay(0)},150)}
var H=_.Gy(),M=_.K(_.eQ(!1,void 0,"UfUosc")),X=M.next().value,Z=M.next().value,n=_.rw(p.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.ad(function(){var F,f;((F=p.settings)==null?void 0:(f=F.call(p))==null?void 0:f.uniqueId)==="this is not intended behavior"&&_.xQ(new _.TG("Smartimation Settings is undefined"))});
_.lf(function(){n().experimentEnabled&&(n().enabled?kpW(J):(Z(!1),Nzk(J)),_.VY(function(){Nzk(J)}))},"IHhVmc");
_.lf(function(){n().timings.join("");n().experimentEnabled&&(Tzk(n()),_.VY(function(){dxW(n())}))},"fsfhOe");
var b=_.BW(function(){var F=H,f=n().uniqueId+"-border",O,A;var P="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((A=(O=_.vO().resolve(_.F9(_.uC)))==null?void 0:O())!=null&&A?"dark":"light")+"_v2.json";return{animationRef:F,animationConfig:{name:f,autoplay:!1,loop:!1,path:P}}},void 0,"UWvUGe");
M={};return _.m("yt-smartimation",{class:_.XB(p.className,"smartimation",(M["smartimation--experiment-enabled"]=function(){return n().experimentEnabled},M["smartimation--active-border"]=X,M["smartimation--enable-masking"]=lig(),M))},_.m(_.v,{cond:function(){return n().experimentEnabled},
then:function(){return _.m("div",{class:"smartimation__border"},_.m(_.l1,{className:"smartimation__border-gradient",data:b,animationName:function(){return b().animationConfig.name}}))}}),_.m("div",{class:"smartimation__content"},p.children))},"ha");
JEo.idomCompat=!0;_.ci(JEo,"yt-smartimation",{props:{className:_.fD,settings:_.fD}});var La=function(){var p=_.T.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};
_.Q(La,_.T);La.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
La.prototype.onDataChanged=function(){var p,J;this.shouldEnableSmartimation=(((p=this.data)==null?void 0:(J=p.timedAnimationData)==null?void 0:J.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
La.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var p=_.e(this.data.likeButton,_.n5),J=_.e(this.data.dislikeButton,_.n5);return!!((p==null?0:p.isToggled)||(J==null?0:J.isToggled))};
La.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]]"}}}}}};
_.vh.Object.defineProperties(La.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var p,J,S=((p=this.data)==null?void 0:(J=p.timedAnimationData)==null?void 0:J.animationTiming)||[];return{uniqueId:"like-dislike",timings:S,enabled:this.shouldEnableSmartimation,experimentEnabled:S.length>0}}}});
La.prototype.onDataChanged=La.prototype.onDataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],La.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],La.prototype,"likeButtonOverride",void 0);_.V([_.N(),_.Y("design:type",Object)],La.prototype,"dislikeButtonOverride",void 0);
_.V([_.U("shouldEnableSmartimation"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],La.prototype,"smartimationSettings",null);_.V([_.bO("data"),_.GI("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],La.prototype,"onDataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],La);
_.l(La,"ytd-segmented-like-dislike-button-renderer",function(){if(x2p!==void 0)return x2p;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return x2p=p},{mode:1});var S5U;var HgE;(HgE=document.body)==null||HgE.setAttribute("rounded-container","");var MF8={};MF8.YtToggleButtonBehavior=[_.u1.YtActionHandlerBehavior,rF.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 J={toggled:this.data.isToggled,actions:{}};J.actions[this.buttonIcon]=this.data.isToggled;_.cf(this.hostElement,"yt-toggle-button",J)}J=this.data.defaultServiceEndpoint||null;var S=this.data.toggledServiceEndpoint||null;if(J&&S||J&&this.data.preventAutoToggle)p=p?S:J,J=this.disableCommandHandlerOverride,_.z("killswitch_toggle_button_behavior_resolve_command")||J?_.pl(this.hostElement,
[p]):_.KI(p,this.hostElement),_.cf(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:p})}},
stateChanged_:function(){var p=this.data;if(p){var J=p.isToggled;this._setEndpoint(this.computeEndpoint_(p));this._setServiceEndpoint(this.computeServiceEndpoint_(p));this._setButtonIcon(this.computeButtonIcon_(p,J));this._setButtonText(this.computeButtonText_(p,J));this._setButtonAccessibility(this.computeAccessibility_(p,J));this._setButtonTooltip(this.computeTooltip_(p,J));this._setButtonClass(this.computeButtonClass_(p,J));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=J):this.elements_.button.setAttribute("aria-pressed",J));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=J)}},
shouldSetIconActiveState_:function(){return _.z("kevlar_system_icons")},
toggle:function(p){this.set("data.isToggled",p!==void 0?p:!this.data.isToggled);_.z("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(p){if(p){var J,S;return!!((J=this.data)==null?0:(S=J.toggledServiceEndpoint)==null?0:S.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(p){return p&&p.defaultNavigationEndpoint||null},
computeButtonIcon_:function(p,J){var S=p&&p.defaultIcon?_.Xj(p.defaultIcon.iconType):null;p=p&&p.toggledIcon?_.Xj(p.toggledIcon.iconType):S;return J?p:S},
handleUpdateToggleButtonStateCommand_:function(p){p=p.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==p.buttonId&&this.toggle(p.toggled)},
computeButtonText_:function(p,J){return p?J&&p.toggledText||p.defaultText||null:null},
computeAccessibility_:function(p,J){return p?(J?this.get("toggledAccessibilityData.accessibilityData",p):this.get("accessibilityData.accessibilityData",p))||p.accessibility||null:null},
computeTooltip_:function(p,J){return p?J&&p.toggledTooltip||p.defaultTooltip||null:null},
computeButtonClass_:function(p,J){if(!p)return"";var S="",H=p.toggledStyle||p.style;if(J=J?H:p.style){J.styleType&&(J=J.styleType);try{S+=J.toLowerCase().replace(/_/g,"-")+" "}catch(M){_.cL(M,J,typeof J),_.xQ(M)}}if(p=p.size){p.sizeType&&(p=p.sizeType);try{S+=p.toLowerCase().replace(/_/g,"-")+" "}catch(M){_.cL(M,p,typeof p),_.xQ(M)}}return S.trim()},
computeIconPositionType_:function(p){return p&&p.iconPosition||null},
computeServiceEndpoint_:function(p){var J=p&&p.serviceEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return J?J:S&&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"))}}];_.QI("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Xoo=_.z("web_button_rework")&&_.wY("BUTTON_REWORK")||_.z("web_button_rework_with_live"),pB=function(){var p=_.T.apply(this,arguments)||this;p.systemIcons=_.z("kevlar_system_icons");p.roundedContainer=!0;return p};
_.Q(pB,_.T);pB.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
pB.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var p=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var J={toggled:!!this.data.isToggled,actions:{}};J.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var S,H;J.actions.playlistId=(S=this.data.defaultServiceEndpoint)==null?void 0:(H=S.playlistEditEndpoint)==null?void 0:H.playlistId;_.cf(this.hostElement,"yt-toggle-button",J)}(p=p?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(p)}};
pB.prototype.onYtNavigate=function(p){var J=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);J&&(p.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(J))};
_.vh.Object.defineProperties(pB,{template:{configurable:!0,enumerable:!0,get:function(){if(S5U===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);S5U=p}p=S5U;return p}}});
pB.prototype.onYtNavigate=pB.prototype.onYtNavigate;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],pB.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],pB.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(MF8.YtToggleButtonBehavior),_.Y("design:type",Object)],pB.prototype,"ytToggleButtonBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],pB.prototype,"data",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],pB.prototype,"showTooltips",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],pB.prototype,"systemIcons",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],pB.prototype,"roundedContainer",void 0);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],pB.prototype,"onYtNavigate",null);
_.V([_.gw({is:"ytd-toggle-button-renderer",disableElementRegistration:Xoo})],pB);var igd,RA8;_.JY=new _.ni("PANEL_CONTROLLER_TOKEN");_.Sd=new _.ni("SHEET_CONTROLLER_TOKEN");_.Hw=new _.ni("DIALOG_CONTROLLER_TOKEN");igd=new _.ni("DIALOG_CONTAINER_TOKEN");RA8=new _.ni("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.M_=new _.ni("PERSISTENT_PANEL_CONTROLLER_TOKEN");var xxX=_.Kl("DOWNLOAD",{},"Download"),cBW=_.Kl("DOWNLOADING",{},"Downloading"),IiW=_.Kl("DOWNLOADED",{},"Downloaded"),LWs=_.Kl("RETRY",{},"Retry");var Kp8=_.d(function(p){var J=MCW,S=function(){return""},H=pb4(p.data),M=Jbw(p.data),X=SWX(p.data),Z=Hj9(p.data);
J=function(){var n=p.data(),b=jkX(n,H(),M(),X(),Z()),F=!!n.videoId,f=b.text;return{title:F?f:void 0,tooltip:F?void 0:f,accessibilityText:f,onTap:b.onTap,iconName:b.iconType,style:n.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:b.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:n.buttonSize}};
S={};S=_.XB("ytDownloadButtonViewModelHost",(S.ytDownloadButtonViewModelIsHidden=function(){var n=p.data(),b=Z();return n.playlistId||b()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||b()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},S));
return _.m("download-button-view-model",{class:S},_.m(_.D0,{data:J}))},"ia");
Kp8.idomCompat=!0;var mAi=new _.ni("SUBMIT_API_SERVICE_TOKEN");var nj3,GlL,FRW={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var tCX=new _.ni("RENDERER_LOGGER_TOKEN");var Bc3=new _.ni("RENDERER_STAMPER_OPTIONS_TOKEN");var fTL;_.Ol=new $B8;fTL=new Map;var UAX="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),gj3=["notificationTextRenderer","notificationMultiActionRenderer"],
s0k="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),ybi=Oj9(function(p){return _.a2(p==null?void 0:p.targetId)}).useUpdatableData;var C3k=0,WRw=new Set;_.AH.debugName="EjJbCe";var ZgM=_.d(function(p){var J=p.data;p=p.className;_.qz(function(){J().formId||_.jD(Error("Ch"))});
var S=_.ZjX(function(){return J().formId},function(){return J().beforeSubmitCommand},function(){return J().afterSubmitCommand}),H=S.submitForm,M=S.isValid,X=S.isSubmitting,Z=function(){return{state:J().isDisabled||!M()||X()?"disabled":"active"}};
return _.m("yt-submit-button-view-model",{class:_.XB("ytSubmitButtonViewModelHost",p)},_.m(_.AH,{data:function(){return J().button}},{buttonViewModel:function(n){return _.m(_.D0,{data:n.data,
buttonOverrides:Z,onClick:H})}}))},"la");var GDo=_.d(function(p){var J=p.backgroundLottieRef;var S=p.foregroundLottieRef;var H=p.children;var M=p.wrapperClass;var X=p.disableAnimation;p=function(){return(_.z("web_animated_actions")||_.z("web_animated_actions_v2"))&&!(X==null?0:X())};
return _.m("yt-animated-action",{class:_.XB("ytAnimatedActionHost",M)},_.m("div",{class:"ytAnimatedActionContentWithBackground"},_.m(_.v,{cond:p,then:function(){return _.m(nnq,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:J==null?void 0:J(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(hBi()?"dark":"light")+"_v5.json"}}}})}}),H),_.m(_.v,{cond:p,
then:function(){return _.m(nnq,{lottiePlayerProps:function(){return{animationRef:S==null?void 0:S(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(hBi()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
GDo.idomCompat=!0;var nnq=_.d(function(p){var J=p.wrapperClass;var S=p.lottieClass;var H=p.lottiePlayerProps;return _.m("div",{class:_.XB("ytAnimatedActionLottie",J),"aria-hidden":"true"},_.m(_.l1,{className:S,data:H,animationName:function(){return H().animationConfig.name}}))},"na");var DA3={isOpen:!1};var Nc4={isAllowed:!1};var dAX={errorMessage:"",title:"",privacy:"",isDisabled:!0};var lTX={isOpen:!1};var qWt={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var bg4={response:void 0};var Ejg=function(p,J){p=p===void 0?bg4:p;switch(J.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},p,{response:J.payload});default:return p}};var mNm={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var YWv=function(p,J){p=p===void 0?mNm:p;switch(J.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},p,{nextDisabled:J.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},p,{nextCommand:J.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},p,{footerSubmissionData:J.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},p,{isImpersonationValid:J.payload});default:return p}};var Fpn={reportFormData:void 0,reportDetailsFormData:void 0};var rbW=function(p,J){p=p===void 0?Fpn:p;switch(J.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},p,{reportFormData:J.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},p,{reportDetailsFormData:J.payload});default:return p}};var vnM=void 0;_.z("mweb_enable_redux_store_on_demand")||(vnM=new YZ(j0w()));var XE=_.z("enable_web_delhi_icons");var fBL=_.d(function(p){p=_.jh(p,{themeOverride:void 0,animationRef:{}});var J=p.animatedIconType,S=p.active,H=p.themeOverride,M=p.animationRef;p=p.staticIconFn;var X=_.K(_.eQ(void 0,void 0,"l48agc")),Z=X.next().value,n=X.next().value,b=function(){a:{var t=J();var D=H==null?void 0:H();var k;D=(D==null?void 0:D.useDarkTheme)||((k=_.vO().resolve(_.F9(_.uC)))==null?void 0:k());switch(t){case "LIKE":vnM||(vnM=new YZ(j0w()));t=(t=zIW(vnM.getState()))&&t.animationLightUrl&&t.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:D?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:D?t.animationDarkUrl:t.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(t){D=t;break a}D="animated_like_icon_"+(D?"dark":"light")+"_"+(XE?"v5":"v4");D={lottiePlayerProps:{animationConfig:{name:D,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+D+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(XE?" animated-like-icon-delhi":"")}}},totalFrames:XE?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":D={lottiePlayerProps:{animationConfig:{name:D?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(D?"dark":"light")+(XE?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(XE?" animated-subscribe-icon-delhi":"")}}},totalFrames:XE?120:79,lazyLoad:!1};break a}D=
void 0}return D},F=function(){var t,D;
return(D=(t=b())==null?void 0:t.lottiePlayerProps.animationConfig.name)!=null?D:""},f=function(){if(b()){var t=b().lottiePlayerProps.animationConfig.path;
return $z.get(t)||Z()}};
X=_.K(_.eQ(!1,void 0,"sDrGId"));var O=X.next().value;X=X.next().value;var A=xA9(X),P=function(){var t=b(),D,k,E;return(E=t==null?void 0:(D=t.lottiePlayerProps.animationConfig)==null?void 0:(k=D.rendererSettings)==null?void 0:k.className)!=null?E:""},W=void 0,y=void 0;
_.lf(function(){var t=b(),D=F(),k=f(),E=O(),a=S();if(t&&(y!==D&&(y=D,W=a,D=M(),A.animationConfig=t.lottiePlayerProps.animationConfig,A.animationRef=D,k&&(A.animationConfig.animationData=k,A.animationConfig.path=void 0),D=t.lottiePlayerProps.animationConfig.path,!$z.get(D)&&t.lazyLoad&&D&&wbi(D,n)),!(E||t.lazyLoad&&!k))){if(k=!M().lottieEl)a?(E=t.totalFrames,A.animationConfig.initialSegment=[E-1,E]):A.animationConfig.initialSegment=void 0;if(W!==a&&!k)if(k=M(),a){var q;(q=k.lottieEl)==null||q.playSegments([0,
t.totalFrames],!0)}else{var w;(w=k.lottieEl)==null||w.playSegments([0,1],!0)}W=a}},"RQVZ1d");
return _.m("animated-icon",{class:"ytAnimatedIconHost"},_.m(_.v,{cond:function(){var t,D;return!((t=b())==null||!t.lottiePlayerProps.animationConfig.path||((D=b())==null?0:D.lazyLoad)&&!f()||O())},
then:function(){return _.m(_.l1,{data:A,animationName:F,className:P,animationRef:M})},
else:p}))},"pa");_.iG=_.d(function(p){var J=_.nE("yt-subscribe-button-view-model"),S=_.nE("div"),H=_.nE("div"),M=_.Gy(),X=_.Gy(),Z=_.Gy(),n=_.v$(pSi,function(){return p.data().stateEntityStoreKey}),b=_.v$(Jig,function(){var LL,fd;
return(fd=(LL=p.data().notificationStateEntityStoreKeys)==null?void 0:LL.subsNotificationStateKey)!=null?fd:""}),F=function(){return!p.data().enableSubscribeButtonPostClickAnimation},f=_.K(_.eQ(0,void 0,"YtsSKb")),O=f.next().value,A=f.next().value;
f=_.K(_.eQ(0,void 0,"V6JxRe"));var P=f.next().value,W=f.next().value;f=_.K(_.eQ(!1,void 0,"JUCSZ"));var y=f.next().value,t=f.next().value;f=_.K(_.eQ(!1,void 0,"oV6jwf"));var D=f.next().value,k=f.next().value;f=_.K(_.eQ(!1,void 0,"hK1Whe"));var E=f.next().value,a=f.next().value,q;f=_.K(_.eQ(!1,void 0,"Asaolf"));var w=f.next().value,I=f.next().value,Z3=function(){k(!0);_.oA(_.wg,function(){k(!1)},1500)};
_.lf(function(){var LL=D();_.$T(function(){LL&&!F()&&n()&&Fq4(M,X,Z)})},"Qq6Hsf");
_.lf(function(){var LL=n();_.$T(function(){if(!F()&&LL){var fd;((fd=p.animateWidth)==null?0:fd.call(p))&&m2W(J.value,!!LL.subscribed,O(),P());var Qv,t8;((Qv=q)==null?0:Qv.subscribed)||!LL.subscribed||LL.key!==((t8=q)==null?void 0:t8.key)||Z3();q=LL}})},"hog8te");
f=_.BW(function(){var LL,fd,Qv,t8=p.data(),Wp=!((LL=n())==null||!LL.subscribed);LL=!((fd=p.isOverlay)==null||!fd.call(p));fd=y()?J:void 0;var ON=(Qv=b())==null?void 0:Qv.state;Qv=w();bp4(t8,ON);return LRs({model:t8,subscribed:Wp,isOverlay:LL,element:fd,notificationState:ON,disableTextEllipsis:!0,focused:Qv})},void 0,"hc1PRd");
var vg=function(){var LL;if(!F()&&((LL=p.animateWidth)==null?0:LL.call(p))&&(S==null?0:S.value)&&(H==null?0:H.value)&&!E()){LL=n();var fd=_.K((LL==null?0:LL.subscribed)?[S,H]:[H,S]),Qv=fd.next().value;fd=fd.next().value;Qv=Math.ceil(Qv.value.getBoundingClientRect().width);fd=Math.ceil(fd.value.getBoundingClientRect().width);A(Qv);W(fd);m2W(J.value,!(LL==null||!LL.subscribed),Qv,fd);a(!0)}},yX=_.Kb(function(LL){vg();
var fd=n();fd&&(LL.detail.endpoint.subscribeEndpoint||LL.detail.endpoint.unsubscribeEndpoint)&&ZpL(J.value,!fd.subscribed,fd)}),Pg=function(){var LL=_.vO().resolve(_.F9(_.CD));
LL&&I(LL.isKeyBoardInUse())},ov=function(){I(!1)};
_.Zy("yt-player-subscribe",function(LL){var fd=n();fd&&LL===p.data().channelId&&ZpL(J.value,!0,fd)});
_.Zy("yt-player-unsubscribe",function(LL){var fd=n();fd&&LL===p.data().channelId&&ZpL(J.value,!1,fd)});
_.Zy("yt-update-subscribe-button-action",function(LL){LL=_.e(LL,XyL);var fd=n();fd&&LL&&LL.channelId===p.data().channelId&&ZpL(J.value,!!LL.subscribed,fd)});
_.ad(function(){J.value&&(J.value.addEventListener("focusin",Pg),J.value.addEventListener("focusout",ov));var LL=_.uS(_.wg,function(){vg()});
t(!0);_.VY(function(){_.wg.cancelJob(LL);J.value&&(J.value.removeEventListener("focusin",Pg),J.value.removeEventListener("focusout",ov))})});
var NW=function(){var LL,fd,Qv;if(Qv=!((LL=n())==null||!LL.subscribed))LL=!!p.data().disableNotificationBell,Qv=(fd=b())==null?void 0:fd.state,Qv=!LL&&!!Qv;return Qv},TW=function(){var LL;
return!((LL=n())==null?0:LL.subscribed)},Ys=function(){var LL,fd;
if(fd=TW()){fd=!!p.data().disableNotificationBell;var Qv=(LL=b())==null?void 0:LL.state;fd=!fd&&!!Qv}return fd},Go={},$U={};
return _.m("yt-subscribe-button-view-model",{class:_.XB(p.className,"ytSubscribeButtonViewModelHost",(Go.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var LL,fd;return!((LL=n())==null||!LL.subscribed)&&((fd=p.animateWidth)==null?void 0:fd.call(p))&&D()},Go.ytSubscribeButtonViewModelHostHidden=function(){var LL;
return!((LL=n())==null?0:LL.subscribed)&&p.data().hideWhenUnsubscribed},Go)),
el:J,"on:yt-service-request-sent":yX},_.m(GDo,{backgroundLottieRef:M,foregroundLottieRef:X,wrapperClass:_.XB("ytSubscribeButtonViewModelAnimatedActionWrapper",($U.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var LL;return((LL=p.animateWidth)==null?void 0:LL.call(p))&&D()},$U.ytSubscribeButtonViewModelStaticWidth=function(){var LL;
return!((LL=p.animateWidth)==null?0:LL.call(p))},$U)),
disableAnimation:F},_.m("div",{el:S,class:"ytSubscribeButtonViewModelContainer"},_.m(_.gF,{data:f,icon:function(){return _.m(_.v,{cond:NW,then:function(){var LL=function(){var fd;return Kqk((fd=b())==null?void 0:fd.state)};
return _.m(_.v,{cond:function(){return F()||LL()!=="NOTIFICATIONS_NONE"},
then:function(){return _.m(_.bn,{icon:LL})},
else:function(){return _.m(fBL,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:Z})}})}})},
secondaryIconName:function(){return NW()?"EXPAND":void 0}}))),_.m("div",{el:H,
class:"ytSubscribeButtonViewModelInvisible"},_.m(_.v,{cond:function(){var LL;return((LL=p.animateWidth)==null?void 0:LL.call(p))&&!F()&&!E()},
then:function(){return _.m(_.gF,{data:_.BW(function(){var LL;return LRs({model:p.data(),subscribed:TW(),isOverlay:!((LL=p.isOverlay)==null||!LL.call(p)),element:J,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var LL;return Ys()?Kqk((LL=b())==null?void 0:LL.state):void 0},
secondaryIconName:function(){return Ys()?"EXPAND":void 0}})}})))},"sa");
_.iG.idomCompat=!0;var OgU=_.d(function(p){var J=p.data;var S=_.v$(pSi,function(){return J().subscriptionStateEntityKey});
return _.m(_.v,{cond:function(){var H=J(),M=S();return!H.hideWhenUnsubscribed||(M==null?0:M.subscribed)?_.e(J().button,_.mO):void 0},
then:function(H){return _.m("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.m(_.D0,{data:H,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
OgU.idomCompat=!0;var AE4,RG;AE4=_.d(function(p){return _.m(_.AH,{data:function(){return p.actionRow().actions}},{buttonViewModel:function(J){var S=J.data;
return _.m(RG,{isRow:p.isRow,isIconOnlyButton:function(){return vb9(S())},
useIntrinsicWidth:p.useIntrinsicWidth},_.m(_.D0,{data:S}))},
subscribeButtonViewModel:function(J){return _.m(RG,{isRow:p.isRow},_.m(_.iG,{data:J.data,isOverlay:!1,animateWidth:function(){return!p.isRow()}}))},
downloadButtonViewModel:function(J){var S=J.data;return _.m(RG,{isRow:p.isRow,isIconOnlyButton:function(){return!!S().playlistId}},_.m(Kp8,{data:S}))},
submitButtonViewModel:function(J){var S=J.data;return _.m(RG,{isRow:p.isRow,isIconOnlyButton:function(){var H=S();return vb9(_.e(H==null?void 0:H.button,_.mO))}},_.m(ZgM,{data:S}))},
toggleButtonViewModel:function(J){var S=J.data;return _.m(RG,{isRow:p.isRow,isIconOnlyButton:function(){var H=S();return vb9(_.e(H.isToggled?H.toggledButtonViewModel:H.defaultButtonViewModel,_.mO))}},_.m(_.LD,{data:S}))},
subscribePlusButtonViewModel:function(J){return _.m(RG,{isRow:p.isRow},_.m(OgU,{data:J.data}))}})},"ua");
RG=_.d(function(p){var J={};return _.m("div",{class:_.XB("ytFlexibleActionsViewModelAction",(J.ytFlexibleActionsViewModelActionRowAction=p.isRow,J.ytFlexibleActionsViewModelActionIntrinsicWidth=p.useIntrinsicWidth,J.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,J.ytFlexibleActionsViewModelActionIconOnlyButton=p.isIconOnlyButton,J))},p.children)},"va");
_.KB=_.d(function(p){var J=function(){var H;return((H=p.layout)==null?void 0:H.call(p))===1},S={};
return _.m("yt-flexible-actions-view-model",{class:_.XB("ytFlexibleActionsViewModelHost",p.className,(S.ytFlexibleActionsViewModelInline=function(){return!J()},S.ytFlexibleActionsViewModelScrollable=function(){return p.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},S))},_.m(_.dY,{each:function(){return p.data().actionsRows||[]}},function(H){return _.m(_.v,{cond:J,
then:function(){return _.m("div",{class:"ytFlexibleActionsViewModelActionRow"},_.m(AE4,{actionRow:H,isRow:J,useIntrinsicWidth:function(){return!!p.data().respectActionIntrinsicWidth}}))},
else:function(){return _.m(AE4,{actionRow:H,isRow:J})}})}))},"wa");_.ci(_.KB,"yt-flexible-actions-view-model",{props:{data:_.fD,layout:_.fD,justifyContentOverride:_.fD,className:_.fD}});_.Zh=_.d(function(p){var J=_.v$(_.tm,function(){var M;return(M=p.data().dislikeEntityKey)!=null?M:""}),S=_.BW(function(){var M=J();
return M?M.likeStatus==="DISLIKE":_.e(p.data().toggleButtonViewModel,_.f5).isToggled},void 0,"fNr9he"),H=_.BW(function(){return Object.assign({},_.e(p.data().toggleButtonViewModel,_.f5),{isToggled:S()})},void 0,"AezoCc");
return _.m("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.m(_.LD,{data:H,buttonShapeOverrides:p.buttonShapeOverrideables,onToggle:function(M){var X=J();X&&M!==(X.likeStatus==="DISLIKE")&&X.key&&_.Y3(_.BY("likeStatusEntity",X.key,{likeStatus:M?"DISLIKE":"INDIFFERENT",hadUserInteraction:M}))}}))},"xa");
_.Zh.idomCompat=!0;_.nB=_.d(function(p){var J=_.z("web_supports_animations_api"),S=CUs(function(A){var P=F();if(!A){var W,y;return{numberText:(y=P==null?void 0:(W=P.likeCountIfIndifferent)==null?void 0:W.content)!=null?y:"",numberValue:Number(P==null?void 0:P.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var t;W=(P==null?void 0:(t=P.likeCountIfIndifferent)==null?void 0:t.content)!==A.numberText;if(n()||!W)return A;var D;return{numberText:(P==null?void 0:(D=P.likeCountIfIndifferent)==null?void 0:D.content)||
"",numberValue:Number(P==null?void 0:P.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!P}}),H=CUs(function(A){var P=F();
if(!A){var W,y;return{numberText:(y=P==null?void 0:(W=P.likeCountIfLiked)==null?void 0:W.content)!=null?y:"",numberValue:Number(P==null?void 0:P.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var t;W=(P==null?void 0:(t=P.likeCountIfIndifferent)==null?void 0:t.content)!==A.numberText;if(n()||!W)return A;var D;return{numberText:(P==null?void 0:(D=P.likeCountIfLiked)==null?void 0:D.content)||"",numberValue:Number(P==null?void 0:P.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!P}}),M=_.K(_.eQ(void 0,
void 0,"xYSlUe")),X=M.next().value,Z=M.next().value,n=X,b=_.v$(_.tm,function(){var A,P;
return(P=(A=p.data())==null?void 0:A.likeStatusEntityKey)!=null?P:""}),F=_.v$(M1W,function(){var A,P;
return((A=p.likeCountEntity)==null?void 0:(P=A.call(p))==null?void 0:P.key)||""}),f=_.BW(function(){var A;
return((A=b())==null?void 0:A.likeStatus)==="LIKE"},void 0,"DG5Osd"),O=function(){var A;
return J&&!((A=p.likeCountEntity)==null||!A.call(p))};
return _.m("like-button-view-model",{class:_.XB("ytLikeButtonViewModelHost",p.className)},_.m(_.LD,{data:function(){var A=Object,P=A.assign,W;var y=_.e((W=p.data())==null?void 0:W.toggleButtonViewModel,_.f5);return P.call(A,{},y||{},{isToggled:f()})},
buttonShapeOverrides:p.buttonShapeOverrideables,animatedTextPropsDefault:function(){return O()?S():void 0},
animatedTextPropsToggled:function(){return O()?H():void 0},
onToggle:function(A){feW(A,b(),n(),Z)},
style:function(){var A;return((A=p.disableIconAnimation)==null?0:A.call(p))?void 0:{animateIcon:"true"}}}))},"ya");
_.nB.idomCompat=!0;var PJM=_.d(function(p){var J=function(){return _.e(p.data().likeButtonViewModel,_.kI)},S=function(){var M;
return((M=J())==null?void 0:M.likeStatusEntityKey)||""},H=_.BW(function(){var M,X;
var Z=(X=_.v$(_.tm,S)())!=null?X:(M=J())==null?void 0:M.likeStatusEntity;M=p.data();var n;M=(M==null?void 0:(n=M.timedAnimationData)==null?void 0:n.animationTiming)||[];return{uniqueId:"like-dislike",timings:M,enabled:(Z==null?void 0:Z.likeStatus)==="INDIFFERENT"&&M.length>0,experimentEnabled:M.length>0}},void 0,"zZ3GQb");
return _.m("segmented-like-dislike-button-view-model",{class:_.XB("ytSegmentedLikeDislikeButtonViewModelHost",p.className),"button-renderer":!0},_.m(JEo,{settings:H},_.m("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.m(_.v,{cond:J,then:function(M){return _.m(_.nB,{data:M,likeCountEntity:function(){return p.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.z("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.m(_.v,{cond:function(){return _.e(p.data().dislikeButtonViewModel,_.Nk)},
then:function(M){return _.m(_.Zh,{data:M,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
PJM.idomCompat=!0;_.ci(PJM,"segmented-like-dislike-button-view-model",{props:{data:_.fD,className:_.fD}});var zAU=_.d(function(p){var J=p.data;var S=p.className;var H=p.setMinWidth;var M=p.forceIconOnly;var X=_.nE("account-link-button-view-model"),Z=_.v$(_.OpW,function(){var A;return(A=J().accountLinkStatusEntityKey)!=null?A:""}),n=_.v$(_.OpW,function(){var A;
return(A=J().accountLinkStatusSecondaryEntityKey)!=null?A:""}),b=function(){if(!_.z("web_account_link_secondary_killswitch")){var A,P;
return((A=Z())==null?void 0:A.linked)||((P=n())==null?void 0:P.linked)}var W;return(W=Z())==null?void 0:W.linked};
_.lf(function(){var A=Z();if(A){var P=h9U(new t78,slU(new Ul8,!!A.linked));_.Zp().then(function(W){W&&(W.setAccountLinkState(_.gM(P.JSC$12474_serializeBinary(),4)),W.updateAccountLinkingConfig(!!A.linked))})}},"IvZF7");
var F=function(){return _.e(J().toggleButtonViewModel,_.f5)};
_.Zy("yt-signal-action-show-account-link-dialog",function(){if(F()){var A=b()?F().toggledButtonViewModel:F().defaultButtonViewModel;A=_.e(A,_.mO);var P;if((P=Z())==null?0:P.isWarning){P=_.e(J().warningButtonViewModel,_.mO);if(!P){_.SB(Error("Dh"));return}A=P}var W;(P=_.sa((W=A)==null?void 0:W.onTap))&&_.Mq([P],X.value)}else _.SB(Error("Eh"))});
var f=function(){var A=F();return Object.assign({},A,{isToggled:b()})},O=function(){return(M==null?0:M())?{iconPosition:"icon-only"}:{}};
return _.m("account-link-button-view-model",{class:_.XB("ytwAccountLinkButtonViewModelHost",S,function(){return(H==null?0:H())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:X,"button-renderer":!0},_.m("div",null,_.m(_.v,{cond:function(){var A;if((A=Z())==null?0:A.isWarning)return(A=_.e(J().warningButtonViewModel,_.mO))||_.SB(Error("Dh")),A},
then:function(A){return _.m(_.D0,{data:A,buttonOverrides:O})},
else:function(){return _.m(_.LD,{data:f,buttonShapeOverrides:O})}})))},"Ba");_.ci(zAU,"account-link-button-view-model",{props:{data:_.fD,className:_.jr,setMinWidth:_.jr,forceIconOnly:_.jr}});_.QI("menuRenderer","menuRenderer","ytd-menu-renderer");
var $Nv={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"}},
onm=_.z("web_fix_missing_action_buttons")?100:200,G2=function(){var p=_.T.apply(this,arguments)||this;p.safeArea=!_.z("kevlar_flex_menu_safe_area_killswitch");p.tonalOverride=!1;p.threeDotSize="M";p.isOverlay=!1;p.useOverlayDark=!1;p.topLevelIconsOnly=!1;p.JSC$14918_lastWidth=0;p.maybeUpdateFlexibleMenu=function(){_.z("web_fix_missing_action_buttons")?requestAnimationFrame(p.maybeUpdateFlexibleMenuImpl):p.maybeUpdateFlexibleMenuImpl()};
p.maybeUpdateFlexibleMenuImpl=function(){var J;if((J=p.data)!=null&&J.flexibleItems){p.maybeFlushDebouncer();J=p.hostElement.clientWidth;var S=J>p.JSC$14918_lastWidth,H,M=((H=p.topLevelButtonsContainer)==null?void 0:H.scrollHeight)||0,X;H=((X=p.flexibleItemButtonsContainer)==null?void 0:X.scrollHeight)||0;X=p.hostElement.scrollHeight>Math.max(M,H)+8;S?(p.resetFlexibleItems(),p.JSC$14918_lastWidth=p.hostElement.clientWidth,p.maybeUpdateFlexibleMenu()):X&&(p.shrinkFlexibleMenu(),p.JSC$14918_lastWidth=
J)}};
p.computeThreeDotButtonShape=function(){if(p.tonalOverride)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)_.vO().resolve(_.Ov).resolveCommand(p.data.fetchMenuCommand,{form:{element:p.hostElement}});else if(p.data.isDisabled&&p.data.disabledCommand)_.KI(p.data.disabledCommand,p.hostElement);else{var J=p.createMenuRendererVe(),S={items:p.items};p.data.menuPopupAccessibility&&(S.menuPopupAccessibility=p.data.menuPopupAccessibility);p.data.footer&&(S.footer=p.data.footer);J={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:S},veData:J}};
_.vO().resolve(_.Sd).openSheet({openPopupActionCommand:J},p.hostElement)}};
return p};
_.Q(G2,_.T);_.R=G2.prototype;_.R.updateButtonOverrides=function(){if(!_.z("menu_renderer_label_update_upkillswitch")){var p=_.Jn(this.hostElement).querySelector("yt-button-view-model");p&&(p.buttonOverrides=this.buttonOverrides)}};
_.R.computeHasItems=function(){var p;return((p=this.topLevelButtonData)==null?void 0:p.length)||this.hasFlexibleItems};
_.R.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.R.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.K3(this.hostElement,{"--ytd-menu-renderer-button-color":_.yi(this.data.iconColor)}))};
_.R.onStamperFinished=function(){this.JSC$14918_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.R.setupFlexibleMenu=function(){var p=this,J;(J=this.data)!=null&&J.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.nb(this.maybeUpdateFlexibleMenu,onm,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))};
_.R.maybeFlushDebouncer=function(){if(_.z("web_replace_formatted_with_attributed_string")){var p;(p=this.topLevelButtons)==null||p.forEach(function(S){var H;(S=(H=S.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0])&&PEL(S)});
var J;(J=this.flexibleItemButtons)==null||J.forEach(function(S){var H;(S=(H=S.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0])&&PEL(S)})}};
_.R.resetFlexibleItems=function(){var p;if((p=this.data)!=null&&p.flexibleItems){_.z("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var J;this.flexAsTopLevelButtons=(J=this.data.flexibleItems)==null?void 0:J.map(function(S){return _.e(S,_.mFm).topLevelButton});
_.z("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.R.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.R.shrinkFlexibleMenu=function(){var p;(p=this.flexAsTopLevelButtons)!=null&&p.length&&(this.flexAsTopLevelButtons=[].concat(_.dW(this.flexAsTopLevelButtons.slice(0,-1))))};
_.R.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:$Nv,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:$Nv,events:!0}}};
_.R.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.R.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.R.detached=function(){this.icon="MORE_VERT"};
_.R.computeTopLevelButtonData=function(p){if(!p)return[];var J;p=(J=p==null?void 0:p.topLevelButtons)!=null?J:[];return _.T6.unsafeClone([].concat(_.dW(p)))};
_.R.computeItems=function(p,J){if(!p)return[];var S=[];if(J){var H=(p.flexibleItems||[]).map(function(Z){return _.e(Z,_.mFm)});
H=_.K(H);for(var M=H.next();!M.done;M=H.next())M=M.value,J.includes(M.topLevelButton)||(M=M.menuItem)&&S.push(M)}var X;p=(X=p==null?void 0:p.items)!=null?X:[];return[].concat(_.dW(S),_.dW(p))};
_.R.computeMenuActive=function(p,J){return p||J};
_.R.onPopupOpened=function(){this.overlayOpen=!0;_.cf(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.R.onPopupClosed=function(){this.overlayOpen=!1;_.cf(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.R.onPopupCanceled=function(){this.overlayOpen=!1;_.cf(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.R.computeAccessibilityLabel=function(p){return this.get("accessibility.accessibilityData.label",p)};
_.R.isHidden=function(p,J){return this.tonalOverride||!p?!0:p.fetchMenuCommand||p.isDisabled&&p.disabledCommand?!1:!(J==null?0:J.length)};
_.R.isModernOverflowHidden=function(p,J){return this.tonalOverride&&p?p.fetchMenuCommand?!1:!(J==null?0:J.length):!0};
_.R.createMenuRendererVe=function(){var p=this.data.trackingParams,J=_.C1(),S=_.Wf();return p&&J&&S?(p=_.Az(p),S=_.KG(7591),_.z("combine_ve_grafts")?_.dC(_.bC(),S,p):_.kO(J,p,S),S):null};
_.vh.Object.defineProperties(G2.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"}}}});
G2.prototype.onPopupCanceled=G2.prototype.onPopupCanceled;G2.prototype.onPopupClosed=G2.prototype.onPopupClosed;G2.prototype.onPopupOpened=G2.prototype.onPopupOpened;G2.prototype.tonalOverrideChanged=G2.prototype.tonalOverrideChanged;G2.prototype.resetFlexibleItems=G2.prototype.resetFlexibleItems;G2.prototype.setupFlexibleMenu=G2.prototype.setupFlexibleMenu;G2.prototype.iconButtonColorChanged=G2.prototype.iconButtonColorChanged;G2.prototype.updateButtonOverrides=G2.prototype.updateButtonOverrides;
_.V([_.B(_.QJ),_.Y("design:type",Object)],G2.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.FM("#button-shape"),_.Y("design:type",HTMLElement)],G2.prototype,"buttonShape",void 0);_.V([_.FM("#button"),_.Y("design:type",Object)],G2.prototype,"button",void 0);
_.V([_.N(),_.Y("design:type",Object)],G2.prototype,"data",void 0);_.V([_.N({computed:"computeTopLevelButtonData(data)"}),_.Y("design:type",Array)],G2.prototype,"topLevelButtonData",void 0);_.V([_.N(),_.Y("design:type",Array)],G2.prototype,"flexAsTopLevelButtons",void 0);_.V([_.N({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.Y("design:type",Array)],G2.prototype,"items",void 0);_.V([_.N({value:"MORE_VERT"}),_.Y("design:type",String)],G2.prototype,"icon",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],G2.prototype,"safeArea",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.Y("design:type",Boolean)],G2.prototype,"menuActive",void 0);_.V([_.N(),_.Y("design:type",Boolean)],G2.prototype,"menuFocused",void 0);_.V([_.N({value:"bottom"}),_.Y("design:type",String)],G2.prototype,"buttonTooltipPosition",void 0);_.V([_.N(),_.Y("design:type",Boolean)],G2.prototype,"overlayOpen",void 0);
_.V([_.N({value:!0}),_.Y("design:type",Boolean)],G2.prototype,"forceIconButton",void 0);_.V([_.N(),_.Y("design:type",Boolean)],G2.prototype,"styleActionButton",void 0);_.V([_.N(),_.Y("design:type",Boolean)],G2.prototype,"disableTextTransformOnButtons",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],G2.prototype,"tonalOverride",void 0);_.V([_.N(),_.Y("design:type",Object)],G2.prototype,"threeDotSize",void 0);
_.V([_.N(),_.Y("design:type",Object)],G2.prototype,"threeDotButtonOverride",void 0);_.V([_.N(),_.Y("design:type",Object)],G2.prototype,"isOverlay",void 0);_.V([_.N(),_.Y("design:type",Object)],G2.prototype,"useOverlayDark",void 0);_.V([_.N({computed:"computeButtonOverride(tonalOverride)"}),_.Y("design:type",Object)],G2.prototype,"buttonOverride",void 0);_.V([_.N(),_.Y("design:type",Boolean)],G2.prototype,"minimizePipBreakages",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],G2.prototype,"hasCustomIconColor",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("flexAsTopLevelButtons"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G2.prototype,"hasFlexibleItems",null);_.V([_.N({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.Y("design:type",Boolean)],G2.prototype,"hasItems",void 0);_.V([_.N(),_.Y("design:type",Object)],G2.prototype,"topLevelIconsOnly",void 0);
_.V([_.bO("topLevelIconsOnly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G2.prototype,"updateButtonOverrides",null);_.V([_.U("topLevelIconsOnly"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G2.prototype,"buttonOverrides",null);_.V([_.FM("#top-level-buttons-computed"),_.Y("design:type",HTMLElement)],G2.prototype,"topLevelButtonsContainer",void 0);_.V([_.v6(".top-level-buttons > *"),_.Y("design:type",Array)],G2.prototype,"topLevelButtons",void 0);
_.V([_.FM("#flexible-item-buttons"),_.Y("design:type",HTMLElement)],G2.prototype,"flexibleItemButtonsContainer",void 0);_.V([_.v6("#flexible-item-buttons > *"),_.Y("design:type",Array)],G2.prototype,"flexibleItemButtons",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G2.prototype,"iconButtonColorChanged",null);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G2.prototype,"setupFlexibleMenu",null);_.V([_.An("topLevelIconsOnly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G2.prototype,"resetFlexibleItems",null);_.V([_.bO("tonalOverride"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G2.prototype,"tonalOverrideChanged",null);
_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G2.prototype,"onPopupOpened",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G2.prototype,"onPopupClosed",null);_.V([_.GI("yt-popup-canceled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G2.prototype,"onPopupCanceled",null);
_.l(G2,"ytd-menu-renderer",function(){if(le8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);le8=p}p=le8;return p},{mode:2});var eAE;var Wp8;_.bG=_.d(function(p){var J=p.data;var S=function(){if(J().icon)a:{var M={iconName:J().icon};for(var X=_.vO().resolve(_.iC),Z=_.K([12,24]),n=Z.next();!n.done;n=Z.next()){var b=n.value;n=Object.assign({},M,{iconStyle:"youtube_fill",iconSize:b});b=Object.assign({},M,{iconStyle:"youtube_outline",iconSize:b});if(X.resolveIcon(n)){M=n;break a}if(X.resolveIcon(b)){M=b;break a}}M=void 0}else M=void 0;return M};
p={};var H={};return _.m("badge-shape",{class:_.XB("yt-badge-shape",function(){return eLX(J().type)},(p["yt-badge-shape--overlay"]=function(){return J().isOverlay},p["yt-badge-shape--ads-include-dot"]=function(){return J().adsIncludeDot},p["yt-badge-shape--thumbnail-badge"]=function(){a:switch(J().type){case 17:case 18:case 19:var M=!0;
break a;default:M=!1}return M},p["yt-badge-shape--status-badge"]=function(){a:switch(J().type){case 12:case 13:case 14:case 15:case 16:var M=!0;
break a;default:M=!1}return M},p["yt-badge-shape--no-text"]=function(){return!J().text},p["yt-badge-shape--modern"]=function(){return J().modern||_.z("web_modern_badge_shape")},p)),
style:_.G7({"background-color":function(){var M;return(M=J().customColors)==null?void 0:M.backgroundColor}}),
role:function(){return J().accessibilityText?"img":void 0},
"aria-label":function(){return J().accessibilityText}},_.m(_.v,{cond:function(){return J().animation},
then:function(M){return _.m(_.l1,{className:"yt-badge-shape__icon",data:M,animationName:function(){return M().animationConfig.name||""}})}}),_.m(_.v,{cond:function(){var M;
return S()&&!((M=J())==null?0:M.animation)},
then:function(){return _.m("div",{class:"yt-badge-shape__icon"},_.m(_.oY,{data:function(){return S()}}))}}),_.m("div",{class:_.XB("yt-badge-shape__text",(H["yt-badge-shape__text--clip-text-overflow"]=function(){return J().clipTextOverflow},H["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(J().numBadgesInRow||0)>1},H))},function(){var M;
return(M=J())==null?void 0:M.text}))},"Ca");
_.bG.idomCompat=!0;_.ci(_.bG,"badge-shape",{props:{data:_.fD}});var mn=function(){var p=_.T.apply(this,arguments)||this;p.systemIcons=_.z("kevlar_system_icons");p.animated=_.z("animated_live_badge_icon");p.useBadgeShape=_.z("web_badge_shape_defrag");return p};
_.Q(mn,_.T);_.R=mn.prototype;_.R.addTooltips=function(){for(var p=_.Jn(this.hostElement).querySelectorAll(".badge"),J=0,S;S=p[J++];){var H=this.repeatElement.itemForElement(S);S=_.Jn(S);S.lastChild&&S.lastChild.is==="tp-yt-paper-tooltip"&&S.removeChild(S.lastChild);if(H=H.metadataBadgeRenderer&&H.metadataBadgeRenderer.tooltip){var M=_.oO("tp-yt-paper-tooltip");(0,_.Rf)(M).textContent=H;M.setAttribute("position","top");M.setAttribute("aria-hidden","true");S.appendChild(M)}}};
_.R.badgesChanged=function(){var p=this;_.fq().parkOrScheduleJob(function(){p.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.R.standaloneRoundedBadgeChanged=function(){var p=this.useRoundedBadge?this.useRoundedBadge:void 0;p&&(this.useRoundedBadge=p)};
_.R.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.R.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.R.computeStyle=function(p){_.z("kevlar_ytb_live_badges")&&p==="BADGE_STYLE_TYPE_LIVE_NOW"&&(p="badge-style-type-live-now-alternate");return p?p.toLowerCase().replace(/_/g,"-"):""};
_.R.computeRole=function(p){return this.computeAriaLabel(p)?"img":"status"};
_.R.computeAriaLabel=function(p){var J;return(p==null?void 0:(J=p.accessibilityData)==null?void 0:J.label)||(p==null?void 0:p.label)};
_.R.computeBadgeShape=function(p){if(p){var J,S;var H=$29(p.style);var M=obw(p.style),X=p.label,Z=((J=p.accessibilityData)==null?void 0:J.label)||p.label;a:switch(p.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":J=!0;break a;default:J=!1}var n=(S=p.icon)==null?void 0:S.iconType;a:switch(p.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":p=!0;break a;default:p=!1}H={type:H,brNzRatingBadgeType:M,text:X,accessibilityText:Z,
isOverlay:J,icon:n!=="PREMIUM"?n:void 0,modern:_.z("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:p}}else H={};return H};
_.R.updateComputedBadges=function(p,J,S){var H=this;(J=J?[J]:S?[S]:void 0)?this.computedBadges=J:this.computedBadges=p==null?void 0:p.filter(function(M){var X;if((X=M.metadataBadgeRenderer)==null?0:X.groups){X=!1;M=_.K(M.metadataBadgeRenderer.groups);for(var Z=M.next();!Z.done;Z=M.next()){Z=Z.value;var n=void 0;X=X||((n=H.hiddenBadgeGroups)==null?void 0:n.includes(Z))}return!X}return!0})};
_.R.useFilledIcons=function(p){return _.z("kevlar_system_icons")&&(p==="AUDIO_BADGE"||p==="CHECK_CIRCLE_THICK"||p==="OFFICIAL_ARTIST_BADGE"||p==="SPONSORSHIP_STAR"||p==="PERSON_RADAR_FILLED"||p==="PERSON_RADAR")};
_.R.computeBadgeShapeStyle=function(p){return this.useBadgeShape?p==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||p==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":p==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.R.computeIcon=function(p){var J,S;p=p==null?void 0:(J=p.metadataBadgeRenderer)==null?void 0:(S=J.icon)==null?void 0:S.iconType;if(p!=="PREMIUM"&&p)return _.Xj(p)};
_.R.computeStandaloneBadge=function(p){var J;p=p==null?void 0:(J=p.icon)==null?void 0:J.iconType;return p==="PREMIUM_STANDALONE"||p==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
mn.prototype.hiddenBadgeGroupsChanged=mn.prototype.hiddenBadgeGroupsChanged;mn.prototype.standaloneBadgeChanged=mn.prototype.standaloneBadgeChanged;mn.prototype.standaloneRoundedBadgeChanged=mn.prototype.standaloneRoundedBadgeChanged;mn.prototype.badgesChanged=mn.prototype.badgesChanged;_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mn.prototype,"hidden",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],mn.prototype,"componentBehavior",void 0);
_.V([_.N(),_.Y("design:type",Array)],mn.prototype,"badges",void 0);_.V([_.N(),_.Y("design:type",Object)],mn.prototype,"topStandaloneBadge",void 0);_.V([_.N(),_.Y("design:type",Object)],mn.prototype,"bottomStandaloneBadge",void 0);_.V([_.N(),_.Y("design:type",Object)],mn.prototype,"computedBadges",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mn.prototype,"mediumFontAdBadge",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mn.prototype,"useRoundedBadge",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mn.prototype,"largeFontAdBadge",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mn.prototype,"overlayAd",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mn.prototype,"overlayPremium",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mn.prototype,"noDotAdBadge",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mn.prototype,"collectionTruncate",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mn.prototype,"isThumbnailBadge",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mn.prototype,"wrapBadges",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Number)],mn.prototype,"numBadgesInRow",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mn.prototype,"systemIcons",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mn.prototype,"animated",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mn.prototype,"useBadgeShape",void 0);_.V([_.N({value:[]}),_.Y("design:type",Array)],mn.prototype,"hiddenBadgeGroups",void 0);_.V([_.FM("#repeat"),_.Y("design:type",C3)],mn.prototype,"repeatElement",void 0);_.V([_.An("badges"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mn.prototype,"badgesChanged",null);
_.V([_.An("useRoundedBadge"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mn.prototype,"standaloneRoundedBadgeChanged",null);_.V([_.An("topStandaloneBadge","bottomStandaloneBadge"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mn.prototype,"standaloneBadgeChanged",null);_.V([_.An("hiddenBadgeGroups"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mn.prototype,"hiddenBadgeGroupsChanged",null);
_.V([_.gw({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],mn);
var QS8=_.pI()(mn,"ytd-badge-supported-renderer",function(){if(Wp8===void 0){var p=document.createElement("template");_.C(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"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);Wp8=p}p=Wp8;return p},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Jz("kevlar_poly_si_batch_j053")?1:2});var FE=function(){var p=_.T.apply(this,arguments)||this;p.iconType="STAR";p.plaMedium=_.z("enable_pla_resizing_for_desktop_medium");p.plaLarge=_.z("enable_pla_resizing_for_desktop_large");p.plaExtraLarge=_.z("enable_pla_resizing_for_desktop_extra_large");p.standardizeIconSize=_.z("kevlar_system_icons");p.mediaHoverOverlayInitialVisibility=_.z("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};
_.Q(FE,_.T);_.R=FE.prototype;_.R.created=function(){this.activeView=new tM(this.hostElement)};
_.R.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"}}}};
_.R.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",FE.JSC$14930_DEFAULT_CLICK_LOCATION_BEHAVIOR,FE.JSC$14930_CLICK_LOCATION_ID_MAP))};
_.R.onTap=function(p){this.onTapOrClick(p)};
_.R.onTapOrClick=function(p){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,p,!1)};
_.R.updateMediaBackgroundImage=function(){var p=this.get("data.image.thumbnail.thumbnails");p&&(p=_.I4(p,0))&&_.K3(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+p+")"})};
_.R.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 J=this.data.impressionEndpoints[p];J.clickTrackingParams&&delete J.clickTrackingParams;_.vO().resolve(_.Ov).resolveCommand(J,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var S;((S=this.data)==null?0:S.activeView)&&hM(this.activeView,this.data.activeView)}};
_.R.handleMuteAd=function(){};
_.R.attached=function(){var p=this;_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&DU(p.activeView)})};
_.R.detached=function(){_.z("stop_av_measurement_on_detach")&&DU(this.activeView)};
_.vh.Object.defineProperties(FE.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.titleText)return"";var J;return _.Kl("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((J=this.data)==null?void 0:J.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"}}});
FE.prototype.onTap=FE.prototype.onTap;FE.prototype.dataChanged=FE.prototype.dataChanged;
FE.JSC$14930_CLICK_LOCATION_ID_MAP=_.z("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"]]);
FE.JSC$14930_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.z("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"}];_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],FE.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.ZU),_.Y("design:type",Object)],FE.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],FE.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Ca.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],FE.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.B([_.u1.YtActionHandlerBehavior]),_.Y("design:type",Object)],FE.prototype,"actionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],FE.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],FE.prototype,"clickCommand",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],FE.prototype,"miniMode",void 0);_.V([_.N(),_.Y("design:type",String)],FE.prototype,"iconType",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FE.prototype,"plaMedium",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FE.prototype,"plaLarge",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FE.prototype,"plaExtraLarge",void 0);_.V([_.U("data.titleText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],FE.prototype,"titleAriaLabel",null);_.V([_.U("data.rating"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FE.prototype,"getRating",null);_.V([_.U("data.price"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FE.prototype,"getPrice",null);
_.V([_.U("data.thirdLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FE.prototype,"getThirdLine",null);_.V([_.U("data.fourthLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FE.prototype,"getFourthLine",null);_.V([_.U("data.fifthLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FE.prototype,"getFifthLine",null);_.V([_.U("getRating"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],FE.prototype,"computeRatingHidden",null);
_.V([_.U("getPrice"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],FE.prototype,"computePriceHidden",null);_.V([_.U("getThirdLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],FE.prototype,"computeThirdLineHidden",null);_.V([_.U("getFourthLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],FE.prototype,"computeFourthLineHidden",null);_.V([_.U("getFifthLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],FE.prototype,"computeFifthLineHidden",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data.energyIcon"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],FE.prototype,"hasEnergyIcon",null);_.V([_.U("computePriceHidden","computeRatingHidden"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],FE.prototype,"computeSecondaryTextHidden",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FE.prototype,"standardizeIconSize",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FE.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FE.prototype,"noBottomMargin",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.layout"),_.Y("design:type",String),_.Y("design:paramtypes",[])],FE.prototype,"layout",null);_.V([_.U("data.layout"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FE.prototype,"mediaThumbnailWidth",null);
_.V([_.U("layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],FE.prototype,"useRoundedBadge",null);_.V([_.N(),_.Y("design:type",String)],FE.prototype,"thumbnailObjectFit",void 0);_.V([_.N(),_.Y("design:type",Object)],FE.prototype,"thumbnailFitHeight",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FE.prototype,"dataChanged",null);
_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],FE.prototype,"onTap",null);_.V([_.gw({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],FE);
_.l(FE,"ytd-display-ad-renderer",function(){if(eAE!==void 0)return eAE;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return eAE=p},{mode:1});var CJ8;var yEU;var BQp;var Wqw=new Map;var UNn=!1;var vw=function(){var p=_.T.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};
_.Q(vw,_.T);_.R=vw.prototype;_.R.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.R.attached=function(){var p=this;this.observer=new MutationObserver(function(J,S){p.handleResized();S.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.R.detached=function(){this.observer&&this.observer.disconnect()};
_.R.logTooltipEvent=function(){_.z("kevlar_wiz_tooltip_event_killswitch")||UNn||(_.Qz3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),UNn=!0)};
_.R.handleWindowResized=function(){this.handleResized()};
_.R.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")))};
_.R.onHeightChanged=function(){if(this.verified){var p=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.jn("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=p:this.textContainerEl.style.marginRight=p}};
_.R.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.jn("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.R.handleResized=function(){var p=this;this.verified&&_.wg.addLowPriorityJob(function(){p.fitBackgroundToText();var J=getComputedStyle(p.hostElement).lineHeight;J&&(J=J.match(/\d+/))&&J.length&&(p.lineHeight=Number(J[0]));p.height=p.lineHeight&&!p.wrapText?p.lineHeight:p.textEl.offsetHeight})};
_.R.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var p=document.createRange(),J=_.Jn(this.textEl).children;J.length>0?p.selectNodeContents(J[0]):p.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(p.getBoundingClientRect().width)+"px"}};
_.R.computeChannelBadgeStyle=function(p){var J;if((p==null?0:(J=p.runs)==null?0:J.length)&&p.runs[0].textColor)return"--ytd-badge-icon-color:"+_.yi(p.runs[0].textColor)+";"};
_.vh.Object.defineProperties(vw.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"?_.aR(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 _.E4(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
vw.prototype.onLineHeightChanged=vw.prototype.onLineHeightChanged;vw.prototype.onHeightChanged=vw.prototype.onHeightChanged;vw.prototype.onChannelNameChanged=vw.prototype.onChannelNameChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],vw.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],vw.prototype,"badges",void 0);_.V([_.N(),_.Y("design:type",Object)],vw.prototype,"channelName",void 0);
_.V([_.N(),_.Y("design:type",Object)],vw.prototype,"noEndpoints",void 0);_.V([_.N(),_.Y("design:type",Object)],vw.prototype,"wrapText",void 0);_.V([_.N(),_.Y("design:type",Object)],vw.prototype,"forceVerified",void 0);_.V([_.N(),_.Y("design:type",Object)],vw.prototype,"tooltipPosition",void 0);_.V([_.N(),_.Y("design:type",String)],vw.prototype,"tooltip",void 0);_.V([_.N(),_.Y("design:type",Boolean)],vw.prototype,"hasChannelArt",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"compactStyle",void 0);_.V([_.FM("#text-container"),_.Y("design:type",HTMLElement)],vw.prototype,"textContainerEl",void 0);_.V([_.FM("#text"),_.Y("design:type",Object)],vw.prototype,"textEl",void 0);_.V([_.FM("#verified-tooltip"),_.Y("design:type",HTMLElement)],vw.prototype,"verifiedTooltip",void 0);_.V([_.N(),_.Y("design:type",Object)],vw.prototype,"height",void 0);
_.V([_.N(),_.Y("design:type",Object)],vw.prototype,"lineHeight",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("badges","forceVerified"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],vw.prototype,"verified",null);_.V([_.U("badges","verified"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],vw.prototype,"hideBadges",null);_.V([_.U("channelName"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vw.prototype,"formattedName",null);
_.V([_.U("badges","verified","formattedName"),_.Y("design:type",String),_.Y("design:paramtypes",[])],vw.prototype,"tooltipText",null);_.V([_.U("hasChannelArt"),_.Y("design:type",String),_.Y("design:paramtypes",[])],vw.prototype,"tooltipOffset",null);_.V([_.bO("channelName"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vw.prototype,"onChannelNameChanged",null);
_.V([_.bO("height"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vw.prototype,"onHeightChanged",null);_.V([_.bO("lineHeight","height"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vw.prototype,"onLineHeightChanged",null);_.V([_.gw({is:"ytd-channel-name",disableElementRegistration:!0})],vw);
_.l(vw,"ytd-channel-name",function(){if(BQp!==void 0)return BQp;var p=document.createElement("template");_.C(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 aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return BQp=p},{mode:_.Jz("kevlar_poly_si_batch_j036")?1:2});var fB=function(){var p=_.T.apply(this,arguments)||this;p.standardizeIconSize=_.z("kevlar_system_icons");return p};
_.Q(fB,_.T);fB.prototype.basicPaletteChanged=function(){var p;(p=this.data.color)!=null&&p.basicColorPaletteData&&_.eK(this.hostElement,this.data.color.basicColorPaletteData)};
fB.prototype.useFilledIcons=function(p){return _.z("kevlar_system_icons")&&(p==="CHECK_CIRCLE_THICK"||p==="OFFICIAL_ARTIST_BADGE")};
_.vh.Object.defineProperties(fB.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return this.data.authorCreator||((p=this.data)==null?void 0:(J=p.color)==null?void 0:(S=J.basicColorPaletteData)==null?void 0:S.backgroundColor)}}});
fB.prototype.basicPaletteChanged=fB.prototype.basicPaletteChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],fB.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],fB.prototype,"standardizeIconSize",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.authorUnifiedVerified"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fB.prototype,"verified",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fB.prototype,"creator",null);_.V([_.bO("data.color.basicColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fB.prototype,"basicPaletteChanged",null);_.V([_.gw({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],fB);
_.l(fB,"ytd-author-comment-badge-renderer",function(){if(yEU!==void 0)return yEU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return yEU=p},{mode:1});var sSp;var O8=function(){return _.T.apply(this,arguments)||this};
_.Q(O8,_.T);O8.prototype.computeThumbnailWidth=function(p){if(p==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],O8.prototype,"data",void 0);_.V([_.N({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],O8.prototype,"icon",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],O8.prototype,"surface",void 0);
_.V([_.N({reflectToAttribute:!0,value:_.z("enable_shrink_image_size_on_web_posts_singleton")}),_.Y("design:type",Boolean)],O8.prototype,"searchSxsUx",void 0);_.V([_.N({reflectToAttribute:!0,value:_.z("enable_community_page_on_desktop")}),_.Y("design:type",Boolean)],O8.prototype,"useSmallerPostImageAttachments",void 0);_.V([_.gw({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],O8);
_.l(O8,"ytd-backstage-image-renderer",function(){if(sSp!==void 0)return sSp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return sSp=p},{mode:1});var gnE;var AY=function(){var p=_.T.apply(this,arguments)||this;p.isLoading=!1;p.selectedItemIndex=-1;return p};
_.Q(AY,_.T);_.R=AY.prototype;_.R.computeIsChannelOwner=function(p){if(!p)return!0;p=p[0];return!(p&&(p.signinEndpoint||p.selectServiceEndpoint))};
_.R.computeIsImagePoll=function(p){return(p==null?void 0:p.type)==="POLL_TYPE_IMAGE"};
_.R.computeIsTotalVotesDisabled=function(p){return!(p==null?0:p.totalVotes)};
_.R.thumbnailSrc=function(p){var J,S,H,M;return(p==null?0:(J=p.thumbnails)==null?0:(S=J[0])==null?0:S.url)?_.Vd((H=p.thumbnails)==null?void 0:(M=H[0])==null?void 0:M.url):void 0};
_.R.progressWidth=function(p){return"width:"+(p?p*100:0)+"%;"};
_.R.textAreaWidth=function(p){return this.isImagePoll?null:"width:"+(p?p*100:0)+"%;"};
_.R.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.R.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var p=this.data.choices,J=0;J<p.length;J++)if(p[J].selected){this.selectedItemIndex=J;break}};
_.R.onPopupClosed=function(p,J){p=Number(this.pollVotes.selected);J.confirmed&&(this.selectChoice(p,!1),_.IV(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.R.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.R.onYtCommentPollRevert=function(p,J){J&&(this.selectChoice(J.selectedChoiceIndex,!0),this.set("data.totalVotes",J.totalVotes))};
_.R.onYtServiceRequestSent=function(p,J){if(J.actions)for(p=0;p<J.actions.length;p++){var S=J.actions[p];_.e(S,Ed)&&this.set("data.totalVotes",_.e(S,Ed).totalVotes)}};
_.R.onYtServiceRequestCompleted=function(p){var J=this.get("detail.data.actionResults.0.feedback",p);p=this.get("detail.data.actionResults.0.status",p);if(J==="FEEDBACK_DESELECT"||J==="FEEDBACK_SELECT")this.isLoading=!1,p==="STATUS_FAILED"?_.cf(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.R.getEndpoint=function(p,J){return J===p?this.data.choices[J].deselectServiceEndpoint||null:this.data.choices[p].selectServiceEndpoint||null};
_.R.selectChoice=function(p,J){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var S=0;S<this.data.choices.length;S++){var H;if(p===this.selectedItemIndex){var M=!1;var X=H=null}else H=(M=S===p)?this.data.choices[S].voteRatioIfSelected:this.data.choices[S].voteRatioIfNotSelected,X=M?this.data.choices[S].votePercentageIfSelected:this.data.choices[S].votePercentageIfNotSelected;this.set("data.choices."+S+".voteRatio",H);
this.set("data.choices."+S+".votePercentage",X);this.set("data.choices."+S+".selected",M)}J||(this.isLoading=!0,(J=this.getEndpoint(p,this.selectedItemIndex))&&_.vO().resolve(_.Ov).resolveCommand(J,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===p?-1:p};
_.vh.Object.defineProperties(AY.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
AY.prototype.onYtServiceRequestCompleted=AY.prototype.onYtServiceRequestCompleted;AY.prototype.onYtServiceRequestSent=AY.prototype.onYtServiceRequestSent;AY.prototype.onYtCommentPollRevert=AY.prototype.onYtCommentPollRevert;AY.prototype.onPopupClosed=AY.prototype.onPopupClosed;AY.prototype.dataChanged=AY.prototype.dataChanged;_.V([_.B(_.F8),_.Y("design:type",Object)],AY.prototype,"paperItemBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],AY.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],AY.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],AY.prototype,"isLoading",void 0);_.V([_.N({computed:"computeIsChannelOwner(data.choices)"}),_.Y("design:type",Boolean)],AY.prototype,"isChannelOwner",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.Y("design:type",Boolean)],AY.prototype,"isImagePoll",void 0);_.V([_.N({computed:"computeIsTotalVotesDisabled(data)"}),_.Y("design:type",Boolean)],AY.prototype,"isTotalVotesDisabled",void 0);_.V([_.N(),_.Y("design:type",Object)],AY.prototype,"previousPollInfo",void 0);_.V([_.N(),_.Y("design:type",Object)],AY.prototype,"selectedItemIndex",void 0);_.V([_.FM("#poll-votes"),_.Y("design:type",Object)],AY.prototype,"pollVotes",void 0);
_.V([_.U("isChannelOwner"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AY.prototype,"endpointStyle",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AY.prototype,"dataChanged",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],AY.prototype,"onPopupClosed",null);
_.V([_.GI("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],AY.prototype,"onYtCommentPollRevert",null);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],AY.prototype,"onYtServiceRequestSent",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],AY.prototype,"onYtServiceRequestCompleted",null);_.V([_.gw({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],AY);
_.l(AY,"ytd-backstage-poll-renderer",function(){if(gnE!==void 0)return gnE;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return gnE=p},{mode:2});var tF8;var hA4={autoplay:!1,loop:!1},DNq={simpleText:""},Pw=function(){var p=_.T.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"},hA4,{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"},hA4,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});p.correctnessAnimationProps=[];p.correctnessAnimationRefs=[];return p};
_.Q(Pw,_.T);_.R=Pw.prototype;_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.R.computeIsChannelOwner=function(p){if(!p)return!0;p=p[0];return!(p&&(p.signinEndpoint||p.selectServiceEndpoint))};
_.R.computeIsTotalVotesDisabled=function(p){return!(p==null?0:p.totalVotes)};
_.R.computeIsImageQuiz=function(p){return(p==null?void 0:p.type)==="POLL_TYPE_IMAGE"};
_.R.onExplanationChanged=function(){this.expander.reset()};
_.R.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var p=this.data.choices;if(p){this.maybeInitializeQuizLotties(p);for(var J=0;J<p.length;J++)if(p[J].isSelected||this.isChannelOwner&&p[J].isCorrect){this.selectedItemIndex=J;return}this.selectedItemIndex=-1}}};
_.R.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var p=this.selectedItemIndex,J=Number(this.quizVotes.selected);this.selectChoice(J);this.sendVoteAction(J,p);this.quizVotes.selected=-1;var S;p=!((S=this.data)==null?0:S.enableAnimation);this.maybePlayAnswerAnimations(p)}};
_.R.onYtCommentPollRevert=function(p,J){J&&(this.selectChoice(J.selectedChoiceIndex),this.set("data.totalVotes",J.totalVotes))};
_.R.onYtServiceRequestSent=function(p,J){if(J.actions)for(p=_.K(J.actions),J=p.next();!J.done;J=p.next())(J=_.e(J.value,Ed))&&this.set("data.totalVotes",J.totalVotes)};
_.R.onYtServiceRequestCompleted=function(p){var J=this.get("detail.data.actionResults.0.feedback",p);p=this.get("detail.data.actionResults.0.status",p);if(J==="FEEDBACK_DESELECT"||J==="FEEDBACK_SELECT")this.isLoading=!1,p==="STATUS_FAILED"?_.cf(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.R.getAnimationPropsForChoiceIndex=function(p,J){return J[p]};
_.R.maybePlayAnswerAnimations=function(p){p=p===void 0?!1:p;var J;if((J=this.data)!=null&&J.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){J=_.K(this.correctnessAnimationRefs);for(var S=J.next();!S.done;S=J.next()){var H=void 0,M=void 0;(H=S.value)==null||(M=H.lottieEl)==null||M.stop()}if(!(this.selectedItemIndex<0)){J=0;p&&(J=this.isCorrect?37:25);var X,Z;(X=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(Z=X.lottieEl)==null||Z.goToAndPlay(p?J:0,!0);if(!(this.isCorrect||
(X=this.data.choices.findIndex(function(f){return f.isCorrect}),X<0))){var n,b;
(b=(n=this.correctnessAnimationRefs[X])==null?void 0:n.lottieEl)==null||b.goToAndPlay(37,!0);var F;n=(F=this.fadeContainers)==null?void 0:F.item(X);!p&&n&&this.fadeIn(n)}}}};
_.R.thumbnailSrc=function(p){var J,S,H,M;return(p==null?0:(J=p.thumbnails)==null?0:(S=J[0])==null?0:S.url)?_.Vd((H=p.thumbnails)==null?void 0:(M=H[0])==null?void 0:M.url):void 0};
_.R.a11yVotedText=function(p,J){var S,H,M=((S=this.data)==null?void 0:(H=S.correctVotedText)==null?void 0:H.simpleText)||"",X,Z;S=((X=this.data)==null?void 0:(Z=X.votedText)==null?void 0:Z.simpleText)||"";if(!J)return"";var n,b;if((n=this.data)==null?0:(b=n.choices)==null?0:b[p].isCorrect)return M;var F,f;return((F=this.data)==null?0:(f=F.choices)==null?0:f[p].isSelected)?S:""};
_.R.getEndpoint=function(p,J){return J===p?this.data.choices[p].deselectServiceEndpoint||null:this.data.choices[p].selectServiceEndpoint||null};
_.R.sendVoteAction=function(p,J){if(p=this.getEndpoint(p,J))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(p)};
_.R.selectChoice=function(p){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var J=0;J<this.data.choices.length;J++)this.set("data.choices."+J+".isSelected",p===this.selectedItemIndex?!1:J===p);this.selectedItemIndex=this.selectedItemIndex===p?-1:p};
_.R.maybeInitializeQuizLotties=function(p){var J=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(S){return{animationConfig:S.isCorrect?J.baseCorrectLottiePlayerAnimationConfig:J.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){J.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(S){return S.animationRef||{}})};
_.R.fadeIn=function(p){p.classList.add("fade-in");_.SK(_.wg,function(){p.classList.remove("fade-in")},900)};
_.vh.Object.defineProperties(Pw.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.z("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.E4(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,J;return((p=this.data)==null?void 0:(J=p.choices)==null?void 0:J.some(function(S){return S.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?DNq:this.data.choices[this.selectedItemIndex].explanation||DNq}},
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}}});
Pw.prototype.onYtServiceRequestCompleted=Pw.prototype.onYtServiceRequestCompleted;Pw.prototype.onYtServiceRequestSent=Pw.prototype.onYtServiceRequestSent;Pw.prototype.onYtCommentPollRevert=Pw.prototype.onYtCommentPollRevert;Pw.prototype.dataChanged=Pw.prototype.dataChanged;Pw.prototype.onExplanationChanged=Pw.prototype.onExplanationChanged;_.V([_.B(_.F8),_.Y("design:type",Object)],Pw.prototype,"paperItemBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Pw.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.$N.YtTaskEmitterBehavior),_.Y("design:type",Object)],Pw.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],Pw.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Pw.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],Pw.prototype,"isLoading",void 0);_.V([_.N(),_.Y("design:type",Object)],Pw.prototype,"usesPanelLockup",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.Y("design:type",Boolean)],Pw.prototype,"isChannelOwner",void 0);_.V([_.N({computed:"computeIsTotalVotesDisabled(data)"}),_.Y("design:type",Boolean)],Pw.prototype,"isTotalVotesDisabled",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.Y("design:type",Boolean)],Pw.prototype,"isImageQuiz",void 0);_.V([_.N(),_.Y("design:type",Object)],Pw.prototype,"previousQuizInfo",void 0);_.V([_.N(),_.Y("design:type",Object)],Pw.prototype,"selectedItemIndex",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data","usesPanelLockup"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pw.prototype,"shouldUseModernUi",null);
_.V([_.v6(".fade-container"),_.Y("design:type",Object)],Pw.prototype,"fadeContainers",void 0);_.V([_.N(),_.Y("design:type",Array)],Pw.prototype,"correctnessAnimationProps",void 0);_.V([_.U("explanation","showCorrectAnswer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pw.prototype,"showExplanation",null);_.V([_.U("isChannelOwner","isAttempted"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pw.prototype,"showCorrectAnswer",null);
_.V([_.U("isChannelOwner","isAttempted","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pw.prototype,"isQuizAnsweringDisabled",null);_.V([_.U("isQuizAnsweringDisabled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pw.prototype,"endpointStyle",null);_.V([_.U("data","selectedItemIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pw.prototype,"isAttempted",null);
_.V([_.U("data","selectedItemIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pw.prototype,"explanation",null);_.V([_.U("data","selectedItemIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pw.prototype,"isCorrect",null);_.V([_.FM("ytd-expander"),_.Y("design:type",Object)],Pw.prototype,"expander",void 0);_.V([_.FM("#quiz-votes"),_.Y("design:type",Object)],Pw.prototype,"quizVotes",void 0);
_.V([_.bO("explanation"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pw.prototype,"onExplanationChanged",null);_.V([_.bO("data","isChannelOwner"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pw.prototype,"dataChanged",null);_.V([_.GI("yt-comment-quiz-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Pw.prototype,"onYtCommentPollRevert",null);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],Pw.prototype,"onYtServiceRequestSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Pw.prototype,"onYtServiceRequestCompleted",null);_.V([_.gw({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Pw);
_.l(Pw,"ytd-backstage-quiz-renderer",function(){if(tF8!==void 0)return tF8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return tF8=p},{mode:1});var kD4;var z2=function(){return _.T.apply(this,arguments)||this};
_.Q(z2,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],z2.prototype,"data",void 0);_.V([_.gw({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],z2);
_.l(z2,"ytd-post-uploaded-video-renderer",function(){if(kD4!==void 0)return kD4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return kD4=p},{mode:1});var NQ8;var $B=function(){return _.T.apply(this,arguments)||this};
_.Q($B,_.T);$B.prototype.useFilledIcons=function(p){return p==="SPONSORSHIP_STAR"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],$B.prototype,"data",void 0);_.V([_.gw({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],$B);
var TQM=_.pI()($B,"ytd-sponsors-only-badge-renderer",function(){if(NQ8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);NQ8=p}p=NQ8;return p},{allowedProps:["data"],
mode:1});var dNn;var oG=function(){return _.T.apply(this,arguments)||this};
_.Q(oG,_.T);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],oG.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],oG.prototype,"data",void 0);_.V([_.gw({is:"ytd-child-video-renderer",disableElementRegistration:!0})],oG);
_.l(oG,"ytd-child-video-renderer",function(){if(dNn!==void 0)return dNn;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return dNn=p},{mode:1});var uQn;var lBm;var ed=function(){var p=_.T.apply(this,arguments)||this;p.size=0;p.fallbackImageSize={height:void 0,width:9999};p.webModernCollections=!1;return p};
_.Q(ed,_.T);_.R=ed.prototype;_.R.computeBlurredImageSize=function(p){return p?{height:p*2,width:p*2}:this.fallbackImageSize};
_.R.computeImageSize=function(p){return p?{height:p,width:p}:this.fallbackImageSize};
_.R.computeObjectFit=function(p){return p?"FILL":"CONTAIN"};
_.R.computePreserve=function(p){return p?!0:!1};
_.R.setBackground=function(){var p,J;if((p=this.data)==null?0:(J=p.thumbnail)==null?0:J.sampledThumbnailColor)p=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+p.red+","+p.green+","+p.blue+",1)"};
ed.prototype.setBackground=ed.prototype.setBackground;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],ed.prototype,"watchFeedThumbnail",void 0);_.V([_.N(),_.Y("design:type",Object)],ed.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],ed.prototype,"size",void 0);
_.V([_.N({computed:"computeBlurredImageSize(size)"}),_.Y("design:type",Object)],ed.prototype,"blurredImageSize",void 0);_.V([_.N({computed:"computeImageSize(size)"}),_.Y("design:type",Object)],ed.prototype,"imageSize",void 0);_.V([_.N({computed:"computePreserve(size)"}),_.Y("design:type",String)],ed.prototype,"preserve",void 0);_.V([_.N({computed:"computeObjectFit(size)"}),_.Y("design:type",String)],ed.prototype,"objectFit",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ed.prototype,"webModernCollections",void 0);_.V([_.bO("data.thumbnail.sampledThumbnailColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ed.prototype,"setBackground",null);_.V([_.gw({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],ed);
_.l(ed,"ytd-playlist-custom-thumbnail-renderer",function(){if(lBm!==void 0)return lBm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return lBm=p},{mode:1});var VF8;var Ww=function(){return _.T.apply(this,arguments)||this};
_.Q(Ww,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ww.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Number)],Ww.prototype,"width",void 0);_.V([_.gw({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Ww);
_.l(Ww,"ytd-playlist-video-thumbnail-renderer",function(){if(VF8!==void 0)return VF8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return VF8=p},{mode:1});var q5q;var Qg=function(){return _.T.apply(this,arguments)||this};
_.Q(Qg,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Qg.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Number)],Qg.prototype,"width",void 0);_.V([_.gw({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Qg);
_.l(Qg,"ytd-show-custom-thumbnail-renderer",function(){if(q5q!==void 0)return q5q;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return q5q=p},{mode:1});var aB8;var CB=function(){return _.T.apply(this,arguments)||this};
_.Q(CB,_.T);CB.prototype.useFilledIcons=function(p){return p==="MUSIC"||p==="COURSE"};
CB.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Ur(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)"}};
_.vh.Object.defineProperties(CB.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)}}});
CB.prototype.overlayColorChanged=CB.prototype.overlayColorChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],CB.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],CB.prototype,"overlayColor",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.icon","data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],CB.prototype,"overlayStyle",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data.icon","data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],CB.prototype,"overlayTextStyle",null);_.V([_.bO("overlayColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CB.prototype,"overlayColorChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],CB);
_.l(CB,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(aB8!==void 0)return aB8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return aB8=p},{mode:1});var EnU;var yg=function(){var p=_.T.apply(this,arguments)||this;p.active=!1;return p};
_.Q(yg,_.T);yg.prototype.computeIsSpinnerHidden=function(p){return(p==null?void 0:p.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
yg.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"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yg.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],yg.prototype,"active",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],yg);
_.l(yg,"ytd-thumbnail-overlay-downloading-renderer",function(){if(EnU!==void 0)return EnU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return EnU=p},{mode:1});var Y5E;var Bw=function(){return _.T.apply(this,arguments)||this};
_.Q(Bw,_.T);_.vh.Object.defineProperties(Bw.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Bw.prototype,"data",void 0);_.V([_.U("data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Bw.prototype,"text",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Bw);
_.l(Bw,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(Y5E!==void 0)return Y5E;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Y5E=p},{mode:1});var rE8,jSE=function(){if(rE8!==void 0)return rE8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return rE8=p};var U8=function(){return _.T.apply(this,arguments)||this};
_.Q(U8,_.T);_.vh.Object.defineProperties(U8,{template:{configurable:!0,enumerable:!0,get:function(){return jSE()}}});
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],U8.prototype,"animateEqualizer",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],U8);_.pI()(U8,"ytd-thumbnail-overlay-equalizer",function(){return jSE()},{allowedProps:["animateEqualizer"],
mode:1});var wom;var s8=function(){var p=_.T.apply(this,arguments)||this;p.nowPlayingBadge=_.z("web_now_playing_badge");p.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return p};
_.Q(s8,_.T);s8.prototype.activeChanged=function(){var p=this;_.z("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.mN(this,function(){_.cf(p.hostElement,"yt-playlist-lockup-now-playing-active",p)})};
s8.prototype.onMiniplayerPlayStateChanged=function(p){var J,S=(J=_.e(_.YE().currentEndpoint,_.lj))==null?void 0:J.videoId;this.isVideoPlaying=p&&(_.z("web_limit_now_playing_animation_killswitch")||this.videoId===S)};
s8.prototype.activeChanged=s8.prototype.activeChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],s8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],s8.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],s8.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],s8.prototype,"isVideoPlaying",void 0);_.V([_.N(),_.Y("design:type",String)],s8.prototype,"videoId",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],s8.prototype,"equalizerOnly",void 0);_.V([_.N(),_.Y("design:type",Boolean)],s8.prototype,"isActive",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],s8.prototype,"nowPlayingBadge",void 0);_.V([_.bO("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s8.prototype,"activeChanged",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],s8);
_.l(s8,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(wom!==void 0)return wom;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return wom=p},{mode:1});var xNd;var gv=function(){return _.T.apply(this,arguments)||this};
_.Q(gv,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],gv.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],gv);
_.l(gv,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(xNd!==void 0)return xNd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return xNd=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var cEm;var tY=function(){return _.T.apply(this,arguments)||this};
_.Q(tY,_.T);tY.prototype.onDurationChanged=function(){var p,J;_.Jn(this.hostElement).querySelector("#progress").style.width=((J=(p=this.data)==null?void 0:p.percentDurationWatched)!=null?J:0)+"%"};
tY.prototype.onDurationChanged=tY.prototype.onDurationChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],tY.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],tY.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tY.prototype,"isLive",void 0);_.V([_.bO("data.percentDurationWatched"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tY.prototype,"onDurationChanged",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],tY);
_.l(tY,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(cEm!==void 0)return cEm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return cEm=p},{mode:1});var IB4;var hY=function(){var p=_.T.apply(this,arguments)||this;p.bottomPanel=!1;p.richGridOverlay=!1;p.watchFeedOverlay=!1;p.isCompact=!1;return p};
_.Q(hY,_.T);hY.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.vh.Object.defineProperties(hY.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?void 0:(J=p.icon)==null?void 0:J.iconType)==="PLAY_ALL"&&_.z("kevlar_system_icons")}}});
hY.prototype.widthChanged=hY.prototype.widthChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],hY.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Number)],hY.prototype,"width",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],hY.prototype,"bottomPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],hY.prototype,"richGridOverlay",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],hY.prototype,"watchFeedOverlay",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],hY.prototype,"isCompact",void 0);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hY.prototype,"isIconFilled",null);_.V([_.bO("width","watchFeedOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hY.prototype,"widthChanged",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],hY);
_.l(hY,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(IB4!==void 0)return IB4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return IB4=p},{mode:1});var Lpv;var p14=["CLIP","SHORTS"],Dh=function(){var p=_.T.apply(this,arguments)||this;p.animated=_.z("animated_live_badge_icon");p.hasIcon=!1;p.updateTimerIntervalId=0;p.timeSinceLive=0;return p};
_.Q(Dh,_.T);_.R=Dh.prototype;_.R.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.R.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.R.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.R.hasIconOrText=function(){var p,J;return!!(((p=this.data)==null?0:p.icon)||((J=this.data)==null?0:J.text))};
_.R.initializeLiveBadgeTimer=function(){var p=this,J,S=(J=this.liveBadgeData)==null?void 0:J.startTimestampSec;if(S&&this.canShowLiveBadgeTimer()){var H;J=Number((H=this.liveBadgeData)==null?void 0:H.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(S);this.updateTimerIntervalId=_.Qn(function(){p.canShowLiveBadgeTimer()?p.timeSinceLive++:(p.timeSinceLive=0,window.clearInterval(p.updateTimerIntervalId))},J)}else this.timeSinceLive=0};
_.R.canShowLiveBadgeTimer=function(){var p=Date.now(),J,S;return p<(Number((J=this.liveBadgeData)==null?void 0:J.endTimestampSec)-1)*1E3&&p>Number((S=this.liveBadgeData)==null?void 0:S.startTimestampSec)*1E3};
_.vh.Object.defineProperties(Dh.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.C23(this.data,this.timeSinceLive):{}}},
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 p14.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Dh.prototype.initializeLiveBadgeTimer=Dh.prototype.initializeLiveBadgeTimer;Dh.prototype.dataChanged=Dh.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Dh.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Dh.prototype,"data",void 0);_.V([_.N({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],Dh.prototype,"icon",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dh.prototype,"animated",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.Y("design:type",Boolean)],Dh.prototype,"hideTimeStatus",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Dh.prototype,"hasIcon",void 0);_.V([_.N(),_.Y("design:type",Object)],Dh.prototype,"timeSinceLive",void 0);_.V([_.U("data","timeSinceLive"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Dh.prototype,"badgeShapeData",null);
_.V([_.U("data","overlayType"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Dh.prototype,"hideBadgeShape",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dh.prototype,"dataChanged",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Dh.prototype,"overlayStyle",null);
_.V([_.U("data.liveBadgeData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Dh.prototype,"liveBadgeData",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.type"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Dh.prototype,"overlayType",null);_.V([_.U("overlayType","overlayStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Dh.prototype,"useFilledIcon",null);
_.V([_.An("liveBadgeData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dh.prototype,"initializeLiveBadgeTimer",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Dh);
_.l(Dh,"ytd-thumbnail-overlay-time-status-renderer",function(){if(Lpv!==void 0)return Lpv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Lpv=p},{mode:_.Jz("kevlar_poly_si_batch_j035")?1:2});var Jtv;var kB=function(){return _.T.apply(this,arguments)||this};
_.Q(kB,_.T);kB.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"}}}}};
kB.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(p){if(this.hasPlaybackProgressBar)return{percentDurationWatched:p.percentDurationWatched}};
kB.prototype.computeHasPlaybackProgressBar=function(p){return!!p.percentDurationWatched&&p.percentDurationWatched>0};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],kB.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.Y("design:type",Boolean)],kB.prototype,"hasPlaybackProgressBar",void 0);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],kB);
_.l(kB,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Jtv!==void 0)return Jtv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Jtv=p},{mode:1});var SAq;var Hsn=_.d(function(p){var J=p.data;var S=p.children;var H=function(){return!!J().doubleStack},M=function(){return!!J().includeStackHeight};
return _.m("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!J().experimentEnabled}},_.m(_.v,{cond:J,
then:function(){var X={};return _.m(_.fV,null,_.m(_.v,{cond:M,then:function(){var Z={};return _.m("div",{class:_.XB("ytCollectionsStackSpacer",(Z.ytCollectionsStackSpacerDoubleStack=H,Z))})}}),_.m("div",{class:_.XB((X.ytCollectionsStackRelativeStack=M,X))},_.m(_.v,{cond:H,
then:function(){var Z={};return _.m("div",{class:_.XB("ytCollectionsStackCollectionStack2",function(){return J().customClassName2ndStack},(Z.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return J().enableResponsiveMode},Z)),
style:_.G7({"background-color":function(){return BuX(J())}})})}}),_.m("div",{class:_.XB("ytCollectionsStackCollectionStack1",function(){return J().customClassName1stStack},function(){return yiL(J().thumbnailSize?J().thumbnailSize:"medium")}),
style:_.G7({"background-color":function(){return BuX(J())}})}),S))}}))},"Da");_.ci(Hsn,"yt-collections-stack",{props:{data:_.fD}});var N_=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};p.webModernCollections=!1;p.isSearch=!1;p.isDoubleStack=!1;p.thumbnailSize="medium";return p};
_.Q(N_,_.T);_.R=N_.prototype;
_.R.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]]"}}}}}};
_.R.getThumbnailDetails=function(p){if(p!=null&&p.thumbnailRenderer){var J=p.thumbnailRenderer,S;if((S=J.playlistVideoThumbnailRenderer)==null?0:S.thumbnail)return J.playlistVideoThumbnailRenderer.thumbnail;var H;if((H=J.playlistCustomThumbnailRenderer)==null?0:H.thumbnail)return J.playlistCustomThumbnailRenderer.thumbnail;p=p.thumbnailRenderer;var M;if((M=p.showCustomThumbnailRenderer)==null?0:M.thumbnail)return p.showCustomThumbnailRenderer.thumbnail}};
_.R.computeOverlayColor=function(p){var J,S;if((J=this.getThumbnailDetails(p))==null?0:(S=J.darkColorPalette)==null?0:S.section2Color)return this.getThumbnailDetails(p).darkColorPalette.section2Color;var H;return(H=this.getThumbnailDetails(p))==null?void 0:H.sampledThumbnailColor};
_.R.computeWebModernCollections=function(p){if(p==null||!p.thumbnailOverlays)return!1;p=_.K(p.thumbnailOverlays);for(var J=p.next();!J.done;J=p.next()){var S=void 0;if((S=J.value)==null?0:S.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.R.computeNavigationEndpoint=function(p){return h9s(p==null?void 0:p.navigationEndpoint)};
_.vh.Object.defineProperties(N_.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:!0}}}});
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],N_.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],N_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(Gld),_.Y("design:type",Object)],N_.prototype,"ytdThumbnailBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],N_.prototype,"componentBehavior",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],N_.prototype,"watchFeedThumbnail",void 0);_.V([_.N(),_.Y("design:type",Number)],N_.prototype,"customThumbnailSize",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],N_.prototype,"hideAria",void 0);_.V([_.N(),_.Y("design:type",Object)],N_.prototype,"data",void 0);_.V([_.N({computed:"computeOverlayColor(data)"}),_.Y("design:type",Object)],N_.prototype,"overlayColor",void 0);
_.V([_.N({computed:"computeWebModernCollections(data)"}),_.Y("design:type",Object)],N_.prototype,"webModernCollections",void 0);_.V([_.N({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],N_.prototype,"computedNavigationEndpoint",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],N_.prototype,"isSearch",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],N_.prototype,"isDoubleStack",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],N_.prototype,"thumbnailSize",void 0);_.V([_.U("data","isDoubleStack","thumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],N_.prototype,"collectionStack",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],N_);
_.l(N_,"ytd-playlist-thumbnail",function(){if(SAq!==void 0)return SAq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return SAq=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var MMm;_.ci(_.d(function(p){return _.m("yt-text-view-model",{class:_.XB("ytTextViewModelHost")},_.m(_.v3,{text:function(){return p.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.fD}});var T2=function(){var p=_.T.apply(this,arguments)||this;p.noEndpoints=!1;p.amsterdamPostMvp=_.z("web_amsterdam_post_mvp_playlists");p.badges=[];p.transferState="TRANSFER_STATE_UNKNOWN";return p};
_.Q(T2,_.T);_.R=T2.prototype;_.R.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.R.getMetadata=function(p){if(!p)return[];var J=[],S=p.shortViewCountText||p.viewCountText;S&&J.push(_.E4(S));p.publishedTimeText&&J.push(_.E4(p.publishedTimeText));p.upcomingEventData&&p.upcomingEventData.upcomingEventText&&J.push(_.eH(_.E4(p.upcomingEventData.upcomingEventText),Number(p.upcomingEventData.startTime)));return J};
_.R.observeDataForBylineSeparator=function(){this.data&&_.XM(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.R.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.yi(this.metadataColor)};
_.R.getSimpleString=function(p){return _.E4(p)};
_.R.isBylineHidden=function(p){return this.noByline||!((p==null?0:p.longBylineText)||(p==null?0:p.shortBylineText))};
_.R.isMetadataHidden=function(p){var J;return((J=this.getMetadata(p))==null?void 0:J.length)===0};
_.R.isBylineMetadataSeparatorHidden=function(p){return this.isMetadataHidden(p)||!this.shouldShowVideoInfo};
_.R.isLongByline=function(p,J){return J&&!(p==null||!p.longBylineText)};
_.vh.Object.defineProperties(T2.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}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
T2.prototype.metadataColorChanged=T2.prototype.metadataColorChanged;T2.prototype.observeDataForBylineSeparator=T2.prototype.observeDataForBylineSeparator;_.V([_.B(_.RB),_.Y("design:type",Object)],T2.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],T2.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],T2.prototype,"noEndpoints",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],T2.prototype,"isSlimShort",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],T2.prototype,"radioMeta",void 0);_.V([_.N({selector:_.gn}),_.Y("design:type",Object)],T2.prototype,"isGridViewEnabled",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],T2.prototype,"richMeta",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],T2.prototype,"amsterdamPostMvp",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],T2.prototype,"noByline",void 0);_.V([_.N({computed:"isLongByline(data, radioMeta)"}),_.Y("design:type",Boolean)],T2.prototype,"longByline",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],T2.prototype,"truncateMetadataLine",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],T2.prototype,"miniMode",void 0);_.V([_.N(),_.Y("design:type",Number)],T2.prototype,"metadataColor",void 0);
_.V([_.N(),_.Y("design:type",Array)],T2.prototype,"badges",void 0);_.V([_.N({selector:_.gl,selectorArgs:["data.videoId"]}),_.Y("design:type",String)],T2.prototype,"transferState",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],T2.prototype,"isDownloading",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],T2.prototype,"typographyBump",void 0);_.V([_.FM("#metadata-line"),_.Y("design:type",HTMLElement)],T2.prototype,"metadataLine",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T2.prototype,"observeDataForBylineSeparator",null);_.V([_.bO("metadataColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T2.prototype,"metadataColorChanged",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],T2.prototype,"shouldShowVideoInfo",null);
_.V([_.U("badges"),_.Y("design:type",String),_.Y("design:paramtypes",[])],T2.prototype,"inlineBadgeClass",null);_.V([_.U("longByline"),_.Y("design:type",String),_.Y("design:paramtypes",[])],T2.prototype,"longBylineClass",null);_.V([_.U("data","longByline"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],T2.prototype,"bylineText",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],T2.prototype,"hasAttributedBylineText",null);
_.V([_.U("isGridViewEnabled","data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],T2.prototype,"watchFeedBigThumbs",null);_.V([_.gw({is:"ytd-video-meta-block",disableElementRegistration:!0})],T2);
_.l(T2,"ytd-video-meta-block",function(){if(MMm!==void 0)return MMm;var p=document.createElement("template");_.C(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    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" 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(_.r().content.cloneNode(!0),
p.content.firstChild);return MMm=p},{mode:_.Jz("kevlar_poly_si_batch_j080")?1:2});_.QI("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var dv=function(){var p=_.T.apply(this,arguments)||this;p.displayItemCount=2;p.isBackstagePlaylist=!1;p.isPostCompactPlaylist=!1;p.shouldShowChannelThumbnail=!1;return p};
_.Q(dv,_.T);_.R=dv.prototype;_.R.computeFirstVideos=function(p,J){return p===void 0||J===void 0?[]:p.slice(0,J)};
_.R.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)}};
_.R.computeThumbnailHeight=function(p,J,S,H,M){return H?M==="BIG"?280:M==="MASSIVE"?337:234:S?240:J?72:p?118:138};
_.R.computeThumbnailWidth=function(p,J,S,H,M){return H?M==="MEDIUM"?450:M==="BIG"?500:M==="MASSIVE"?600:420:S?360:J?128:p?210:246};
_.R.computeUseBiggerThumbs=function(p){return p&&_.z("enable_desktop_search_bigger_thumbs")};
_.R.computeShouldShowChannelThumbnail=function(p,J){return p&&!(J==null||!J.channelThumbnail)};
_.vh.Object.defineProperties(dv.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
dv.prototype.dataChanged=dv.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],dv.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],dv.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],dv.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],dv.prototype,"displayItemCount",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],dv.prototype,"isBackstagePlaylist",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],dv.prototype,"isPostCompactPlaylist",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dv.prototype,"isSearch",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.Y("design:type",Boolean)],dv.prototype,"useBiggerThumbs",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.zG("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],dv.prototype,"biggerThumbsStyle",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dv.prototype,"isDownloads",void 0);_.V([_.N({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.Y("design:type",Object)],dv.prototype,"shouldShowChannelThumbnail",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dv.prototype,"dataChanged",null);
_.V([_.U("isSearch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],dv.prototype,"stackThumbnailSize",null);_.V([_.gw({is:"ytd-playlist-renderer",disableElementRegistration:!0})],dv);
_.l(dv,"ytd-playlist-renderer",function(){if(uQn===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);uQn=p}p=uQn;return p},{mode:1});var X14;var isE;var uG=function(){var p=_.T.apply(this,arguments)||this;p.startX=0;return p};
_.Q(uG,_.T);uG.prototype.onEndpointMouseDown=function(p){this.startX=p.clientX};
uG.prototype.onEndpointClick=function(p){this.startX!==p.clientX&&(p.preventDefault(),p.stopPropagation())};
uG.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"};
uG.prototype.computeCardStyle=function(p){return p?p.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.vh.Object.defineProperties(uG.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?void 0:(J=p.searchRefinementCardRendererStyle)==null?void 0:J.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],uG.prototype,"data",void 0);_.V([_.N({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.Y("design:type",Number)],uG.prototype,"objectFit",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.Y("design:type",String)],uG.prototype,"cardStyle",void 0);
_.V([_.N({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],uG.prototype,"roundContainer",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uG.prototype,"isAlbumCard",null);_.V([_.U("data","isAlbumCard"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uG.prototype,"collectionStack",null);_.V([_.gw({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],uG);
_.l(uG,"ytd-search-refinement-card-renderer",function(){if(isE!==void 0)return isE;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return isE=p},{mode:1});var RRm;var lG=function(){var p=_.T.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.Q(lG,_.T);_.V([_.N(),_.Y("design:type",Object)],lG.prototype,"data",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],lG.prototype,"componentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],lG.prototype,"ytdReduxBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],lG.prototype,"isRichGrid",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],lG.prototype,"miniMode",void 0);
_.V([_.gw({is:"ytd-game-details-renderer",disableElementRegistration:!0})],lG);
_.l(lG,"ytd-game-details-renderer",function(){if(RRm!==void 0)return RRm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return RRm=p},{mode:1});var K3L;var Zsm;var Vg=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return p};
_.Q(Vg,_.T);_.R=Vg.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.currentStateData=function(p){var J=p||this.data;return J&&J.states&&J.currentStateId!=null?J.states.find(function(S){return S.stateId===J.currentStateId})||null:null};
_.R.currentStateRendererData=function(p){return(p=this.currentStateData(p))&&p.state&&p.state.buttonRenderer?p.state.buttonRenderer:null};
_.R.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())};
_.R.computeButtonIcon=function(p){p=this.currentStateRendererData(p);var J;return(p==null?0:(J=p.icon)==null?0:J.iconType)?p.icon.iconType.toLowerCase():null};
_.R.computeAccessibility=function(p){return(p=this.currentStateRendererData(p))&&p.accessibilityData?p.accessibilityData.accessibilityData||null:null};
_.R.computeButtonClass=function(p){var J=this.currentStateRendererData(p);if(!J)return"";p="";var S=J.style;S&&(p+=S.toLowerCase().replace(/_/g,"-")+" ");(J=J.size)&&(p+=J.toLowerCase().replace(/_/g,"-")+" ");return p.trim()};
_.R.computeServiceEndpoint=function(p){if(!p)return null;var J=p&&p.serviceEndpoint,S=this.get("command.commandMetadata.webCommandMetadata.sendPost",p);return J?J:S&&p.command?p.command:null};
_.R.computeBellMenuItemParams=function(p){var J;p=(J=_.e(p==null?void 0:p.command,_.H9))==null?void 0:J.commands;if(!p||p.length===0)return null;J=_.e(p[0],_.Yi);var S,H;return(J==null?0:(S=J.popup)==null?0:(H=S.menuPopupRenderer)==null?0:H.items)?J.popup.menuPopupRenderer.items.map(function(M){return M.menuServiceItemRenderer.trackingParams}):null};
_.R.handleBellMenuOpenSelectedAction=function(p){var J=p.trackingParams,S=this.computeBellMenuItemParams(this.data);this.data&&J&&S&&S.includes(J)&&this.ytRenderButtonBehavior._setButtonIcon(p.icon.iconType.toLowerCase())};
_.R.onYtServiceRequestCompleted=function(p,J){(p=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",J))&&this.set("data",p)};
_.R.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.R.resetState=function(){this.set("data.currentStateId",3)};
_.R.onYtButtonTapHandler=function(){if(this.data){var p=this.currentStateRendererData(this.data);p&&this.ytRendererBehavior.logExplicitClick(p)}};
Vg.prototype.onYtServiceRequestError=Vg.prototype.onYtServiceRequestError;Vg.prototype.onYtServiceRequestCompleted=Vg.prototype.onYtServiceRequestCompleted;Vg.prototype.stateChanged=Vg.prototype.stateChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Vg.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(rF.YtRenderButtonBehavior),_.Y("design:type",Object)],Vg.prototype,"ytRenderButtonBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Vg.prototype,"data",void 0);_.V([_.An("data","data.currentStateId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vg.prototype,"stateChanged",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],Vg.prototype,"onYtServiceRequestCompleted",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Vg.prototype,"onYtServiceRequestError",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Vg);
_.l(Vg,"ytd-subscription-notification-toggle-button-renderer",function(){if(Zsm!==void 0)return Zsm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Zsm=p},{mode:1});var nqM;var q_=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};p.tapHandler=function(){if(p.data){var J=p.currentStateRendererData();J&&p.ytRendererBehavior.logExplicitClick(J)}};
return p};
_.Q(q_,_.T);_.R=q_.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.currentStateData=function(){var p=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(J){return J.stateId===p.data.currentStateId})||null:null};
_.R.currentStateRendererData=function(){var p=this.currentStateData();return p&&p.state&&p.state.buttonRenderer?p.state.buttonRenderer:null};
_.R.computeAccessibilityLabel=function(){var p,J,S;return(p=this.currentStateRendererData())==null?void 0:(J=p.accessibilityData)==null?void 0:(S=J.accessibilityData)==null?void 0:S.label};
_.R.computeBellMenuItemParams=function(){var p,J,S=(J=_.e((p=this.data)==null?void 0:p.command,_.H9))==null?void 0:J.commands;if(!S||S.length===0)return null;p=_.e(S[0],_.Yi);var H,M;return(p==null?0:(H=p.popup)==null?0:(M=H.menuPopupRenderer)==null?0:M.items)?p.popup.menuPopupRenderer.items.map(function(X){return X.menuServiceItemRenderer.trackingParams}):null};
_.R.handleBellMenuOpenSelectedAction=function(p){var J=p.trackingParams,S=this.computeBellMenuItemParams();if(this.data&&J&&S&&S.includes(J)&&(p==null||!p.isDisabled)){var H;((H=_.e(p.serviceEndpoint,_.X6))==null?void 0:H.signal)!=="CLIENT_SIGNAL"&&(this.icon=p.icon.iconType)}};
_.R.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.R.onYtServiceRequestCompleted=function(p,J){if(p=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",J))this.icon=void 0,this.set("data",p)};
_.R.onYtServiceRequestError=function(){this.icon=void 0};
_.vh.Object.defineProperties(q_.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=this.data,J=this.textLabel,S=this.hostElement,H=this.computeAccessibilityLabel(),M=this.tapHandler,X=this.isOverlay?"overlay":"mono",Z=(p==null?0:p.disableButton)?"disabled":"active";J=J?_.CI(J):void 0;return{style:X,type:"tonal",state:Z,size:"M",focused:!1,formattedButtonText:J,iconPosition:"leading-trailing",onTap:szi(p,M,S),accessibilityLabel:H}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var p=this.currentStateRendererData(),J,S,H=(S=this.icon)!=null?S:p==null?void 0:(J=p.icon)==null?void 0:J.iconType;if(H)return _.Xj(H)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var p,J,S=(p=this.data)==null?void 0:(J=p.secondaryIcon)==null?void 0:J.iconType;if(S)return _.Xj(S)}}});
q_.prototype.onYtServiceRequestError=q_.prototype.onYtServiceRequestError;q_.prototype.onYtServiceRequestCompleted=q_.prototype.onYtServiceRequestCompleted;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],q_.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],q_.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],q_.prototype,"textLabel",void 0);
_.V([_.N(),_.Y("design:type",String)],q_.prototype,"icon",void 0);_.V([_.N(),_.Y("design:type",Boolean)],q_.prototype,"isOverlay",void 0);_.V([_.U("data.*","textLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],q_.prototype,"computedButtonShape",null);_.V([_.U("data.*","icon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],q_.prototype,"computedIcon",null);_.V([_.U("computedIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],q_.prototype,"computedAnimateIcon",null);
_.V([_.U("data.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],q_.prototype,"computedSecondaryIcon",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],q_.prototype,"onYtServiceRequestCompleted",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],q_.prototype,"onYtServiceRequestError",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],q_);
_.l(q_,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(nqM!==void 0)return nqM;var p=document.createElement("template");_.C(p,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return nqM=p},{mode:_.Jz("kevlar_poly_si_batch_j081")?1:2});var G18;_.ci(GDo,"yt-animated-action",{props:{backgroundLottieRef:_.fD,foregroundLottieRef:_.fD,wrapperClass:_.fD,disableAnimation:_.fD},unsafeExternallySettableAttributes:new Set(["key"])});var aG=function(){var p=_.T.apply(this,arguments)||this;p.animatedActionEnabled=_.z("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};
_.Q(aG,_.T);_.R=aG.prototype;_.R.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.R.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]]"}}}}}};
_.R.attached=function(){this.keyboardFocused=!1};
_.R.onYtServiceRequestSent=function(p,J){(this.get("endpoint.subscribeEndpoint",J)||this.get("endpoint.unsubscribeEndpoint",J))&&this.updateSubscriptionState(!this.subscribed)};
_.R.onYtServiceRequestCompleted=function(p,J){(p=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",J.data))&&this.bellButton&&(this.bellButton.data=p)};
_.R.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.K3(this.hostElement)};
_.R.onPlayerSubscribe=function(p){this.isCompactRed()||p!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.R.onPlayerUnsubscribe=function(p){this.isCompactRed()||p!==this.data.channelId||this.updateSubscriptionState(!1)};
_.R.handleUpdateSubscribeButtonAction=function(p){p=_.e(p,XyL);var J;p&&p.channelId===((J=this.data)==null?void 0:J.channelId)&&this.updateSubscriptionState(!!p.subscribed)};
_.R.computeButtonStyle=function(p){return this.get("style.styleType",p)||null};
_.R.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.R.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.R.updateSubscriptionState=function(p){if(p!==this.subscribed){this.set("data.subscribed",p);var J,S=(J=this.data)==null?void 0:J.subscribedEntityKey;S&&this.ytdReduxBehavior.dispatch(_.P$("subscriptionStateEntity",S,{key:S,subscribed:p}));this.isCompactRed()||_.cf(this.hostElement,"yt-subscription-changed",p);p||(_.IV(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!p),p&&this.hasBellButton&&this.startAnimation())}};
_.R.startAnimation=function(){var p=this;if(!this.isAnimating){var J=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var S;(S=this.backgroundLottieRef.lottieEl)==null||S.goToAndPlay(0);var H;(H=this.foregroundLottieRef.lottieEl)==null||H.goToAndPlay(0);_.wg.addJob(function(){p.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.wg.addJob(function(){p.updateContainerToFitContent(!!p.subscribed,!0)},2,1500);
_.wg.addJob(function(){p.isAnimating=!1},2,J)}};
_.R.maybeAnimateBellIcon=function(){var p=_.Sh(this.hostElement).querySelector("yt-animated-icon");if(p){var J;(J=p.animationRef.lottieEl)==null||J.goToAndPlay(0)}};
_.R.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.R.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.R.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var p;this.unsubscribedWidth=(p=this.subscribeButtonShape)==null?void 0:p.getBoundingClientRect().width}var J;this.subscribedWidth=(J=this.bellButton)==null?void 0:J.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.R.updateContainerToFitContent=function(p,J){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(p?(p=this.subscribedWidth,J=this.isAnimating&&!J,this.subscribedIconOnlyWidth===void 0||J||(p=this.subscribedIconOnlyWidth),this.hostElement.style.width=p+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.R.clearContainerSize=function(){this.hostElement.style.width=""};
_.R.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.R.maybeSetSubscribedButtonIconOnlyWidth=function(){var p=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var J;p.subscribedIconOnlyWidth=(J=p.bellButton)==null?void 0:J.getBoundingClientRect().width;requestAnimationFrame(function(){if(p.bellButton){var S;p.bellButton.textLabel=
(S=p.data)==null?void 0:S.subscribedButtonText}})})))};
_.vh.Object.defineProperties(aG.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 J;return this.forceIconOnly?void 0:(J=this.data)==null?void 0:J.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var p,J,S=((p=this.data)==null?void 0:(J=p.timedAnimationData)==null?void 0:J.animationTiming)||[];return{uniqueId:"subscribe",timings:S,enabled:S.length>0&&!this.subscribed,experimentEnabled:S.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 J=p.renderer;var S=p.element;var H=p.subscribed;var M=p.commandController;var X=p.isOverlay;p=p.stopPropagation;var Z=D2g(J,H);X&&(Z.style="overlay");X=Object;var n=X.assign,b;a:switch((b=J.style)==null?void 0:b.styleType){case "COMPACT_GRAY":case "COMPACT_RED":b={size:"S"};break a;default:b={size:"M"}}var F=hLg(J,
H);var f=(f=H?J.subscribedButtonText:J.unsubscribedButtonText)?_.CI(f):void 0;return n.call(X,{},Z,b,{focused:!1,toggled:H,accessibilityLabel:F,formattedButtonText:f,onTap:tXt(J,H,S,M,p)})}}}});
aG.prototype.onMouseDown=aG.prototype.onMouseDown;aG.prototype.onDataChanged=aG.prototype.onDataChanged;aG.prototype.observedSubscribed=aG.prototype.observedSubscribed;aG.prototype.onYtServiceRequestCompleted=aG.prototype.onYtServiceRequestCompleted;aG.prototype.onYtServiceRequestSent=aG.prototype.onYtServiceRequestSent;aG.prototype.maybeUpdateBellButtonText=aG.prototype.maybeUpdateBellButtonText;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],aG.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],aG.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],aG.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],aG.prototype,"data",void 0);
_.V([_.N({selectorArgs:["data.subscribedEntityKey"],selector:pSi}),_.Y("design:type",Object)],aG.prototype,"subscriptionStateEntity",void 0);_.V([_.N({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],aG.prototype,"subscribed",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],aG.prototype,"branded",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],aG.prototype,"animatedActionEnabled",void 0);
_.V([_.N(),_.Y("design:type",Object)],aG.prototype,"foregroundLottieRef",void 0);_.V([_.N(),_.Y("design:type",Object)],aG.prototype,"backgroundLottieRef",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],aG.prototype,"overlayButton",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.Y("design:type",Object)],aG.prototype,"buttonStyle",void 0);_.V([_.N(),_.Y("design:type",Object)],aG.prototype,"forceIconOnly",void 0);
_.V([_.N(),_.Y("design:type",Object)],aG.prototype,"showTextWhileAnimating",void 0);_.V([_.N({value:function(){return!!_.vO().resolve(_.F9(_.CD))&&_.z("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Y("design:type",Boolean)],aG.prototype,"useKeyboardFocused",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],aG.prototype,"keyboardFocused",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],aG.prototype,"isAnimating",void 0);_.V([_.U("data.notificationPreferenceButton.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"hasBellButton",null);
_.V([_.bO("subscribedButtonText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aG.prototype,"maybeUpdateBellButtonText",null);_.V([_.U("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"subscribedButtonText",null);_.V([_.U("data.timedAnimationData.animationTiming","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"smartimationSettings",null);
_.V([_.N({reflectToAttribute:!0}),_.U("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"subscribeButtonHidden",null);_.V([_.N({reflectToAttribute:!0}),_.U("subscribed","hasBellButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"subscribeButtonInvisible",null);
_.V([_.N({reflectToAttribute:!0}),_.U("subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"unsubscribeButtonHidden",null);_.V([_.FM("ytd-subscription-notification-toggle-button-renderer-next"),_.Y("design:type",Object)],aG.prototype,"bellButton",void 0);_.V([_.FM("#subscribe-button-shape"),_.Y("design:type",HTMLElement)],aG.prototype,"subscribeButtonShape",void 0);
_.V([_.U("overlayButton","subscribed","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"buttonShape",null);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],aG.prototype,"onYtServiceRequestSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],aG.prototype,"onYtServiceRequestCompleted",null);
_.V([_.bO("subscribed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aG.prototype,"observedSubscribed",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aG.prototype,"onDataChanged",null);_.V([_.GI("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],aG.prototype,"onMouseDown",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],aG);
_.l(aG,"ytd-subscribe-button-renderer",function(){if(G18!==void 0)return G18;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return G18=p},{mode:1});var E8=function(){var p=_.T.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.Q(E8,_.T);E8.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],E8.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],E8.prototype,"isRichGrid",void 0);_.V([_.gw({is:"ytd-game-card-renderer",disableElementRegistration:!0})],E8);
_.l(E8,"ytd-game-card-renderer",function(){if(K3L!==void 0)return K3L;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return K3L=p},{mode:1});var YB={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.z("defer_menus")&&!qY8?0:void 0,waitForSignal:"eocs"};var bsd;var mKM;var rv=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return p};
_.Q(rv,_.T);_.R=rv.prototype;_.R.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.R.onSeriesReminderStateEntityChange=function(){var p,J,S;((p=this.eventReminderStateEntity)==null?0:p.key)&&((J=this.seriesReminderStateEntity)==null?void 0:J.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((S=this.eventReminderStateEntity)==null?void 0:S.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.P$("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.R.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.R.onYtServiceRequestError=function(){var p;this.updateReminderStateEntitiesFromButtonState((p=this.data)==null?void 0:p.currentState)};
_.R.handleUpdateUpcomingEventReminderButtonStateCommand=function(p){if(p=_.e(p,MkM)){var J,S=(J=this.data)==null?void 0:J.targetId;S&&p.targetId===S&&_.dw(this.updateReminderStateEntitiesFromButtonState.bind(this,p.state))}};
_.R.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 J;if(((J=this.eventReminderStateEntity)==null?void 0:J.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var S,H;if(((S=this.seriesReminderStateEntity)==null?void 0:S.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((H=this.eventReminderStateEntity)==
null?void 0:H.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var M;return(M=this.data)==null?void 0:M.currentState};
_.R.updateReminderStateEntitiesFromButtonState=function(p){if(p){switch(p){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":p="UPCOMING_EVENT_REMINDER_STATE_NONE";var J="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":p="UPCOMING_EVENT_REMINDER_STATE_SINGLE";J="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":p="UPCOMING_EVENT_REMINDER_STATE_NONE";J="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var S;
((S=this.eventReminderStateEntity)==null?0:S.key)&&this.ytdReduxBehavior.dispatch(_.P$("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:p})));var H;((H=this.seriesReminderStateEntity)==null?0:H.key)&&this.ytdReduxBehavior.dispatch(_.P$("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:J})))}};
_.vh.Object.defineProperties(rv.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var p=this.getButtonStateFromReminderState(),J,S;if(p&&((J=this.data)==null?0:(S=J.states)==null?0:S.length))for(J=_.K(this.data.states),S=J.next();!S.done;S=J.next()){S=S.value;var H=void 0;if(((H=_.e(S,XHp))==null?void 0:H.state)===p)return _.e(S,XHp)}}}});
rv.prototype.onYtServiceRequestError=rv.prototype.onYtServiceRequestError;rv.prototype.onYtServiceRequestCompleted=rv.prototype.onYtServiceRequestCompleted;rv.prototype.onSeriesReminderStateEntityChange=rv.prototype.onSeriesReminderStateEntityChange;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],rv.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],rv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],rv.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],rv.prototype,"data",void 0);_.V([_.N({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:SOs}),_.Y("design:type",Object)],rv.prototype,"eventReminderStateEntity",void 0);
_.V([_.N({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(p,J){return _.RR(p.entities,"sportsSeriesReminderStateEntity",J)}}),
_.Y("design:type",Object)],rv.prototype,"seriesReminderStateEntity",void 0);_.V([_.U("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rv.prototype,"currentButtonStateRenderer",null);_.V([_.bO("seriesReminderStateEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rv.prototype,"onSeriesReminderStateEntityChange",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rv.prototype,"onYtServiceRequestCompleted",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rv.prototype,"onYtServiceRequestError",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],rv);
_.l(rv,"ytd-upcoming-event-reminder-button-renderer",function(){if(mKM!==void 0)return mKM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
return mKM=p},{mode:1});var F3o;var jd=function(){return _.T.apply(this,arguments)||this};
_.Q(jd,_.T);jd.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.vh.Object.defineProperties(jd.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(_.z("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],jd.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],jd.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],jd.prototype,"shelfDismissal",void 0);_.V([_.U("data.responseText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jd.prototype,"text",null);
_.V([_.U("data.responseText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jd.prototype,"textAriaLabel",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],jd);
_.l(jd,"ytd-notification-multi-action-renderer",function(){if(F3o!==void 0)return F3o;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return F3o=p},{mode:1});var vqd;var wv=function(){return _.T.apply(this,arguments)||this};
_.Q(wv,_.T);wv.prototype.ready=function(){var p=this;_.Jn(this.hostElement).querySelector("#undo").addEventListener("tap",function(){p.onUndoTap()})};
wv.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.vO().resolve(_.Ov).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wv.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],wv);
_.l(wv,"ytd-notification-text-renderer",function(){if(vqd!==void 0)return vqd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return vqd=p},{mode:1});var fCp;var xB=function(){var p=_.T.apply(this,arguments)||this;p.mouseOverDelayJobId=0;p.fadeInImageDelayJobId=0;p.startTimeMs=-1;p.loadingStartTimeMs=-1;p.loadingEndTimeMs=-1;p.hasVideoPreview=!1;return p};
_.Q(xB,_.T);_.R=xB.prototype;_.R.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.R.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.R.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.R.showThumbnail=function(){var p=this;this.csn=_.C1();_.Cl("fmth");_.wg.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.SK(_.wg,function(){p.loadingStartTimeMs=(0,_.fO)();var J=_.Jn(p.hostElement).querySelector("#thumbnail");J.complete?p.displayMouseOverImage():J.addEventListener("load",_.n3(p,p.displayMouseOverImage))},150):_.XM(_.Jn(this.hostElement).querySelector("#play"),"show",!0)};
_.R.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.R.onTap=function(){this.removeVideoPreview()};
_.R.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var p=this.videoId,J=this.csn,S=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,H=this.startTimeMs,M=this.hasVideoPreview,X=_.Az(this.trackingParams),Z={isMovingThumbnail:M};M&&H>0&&(S>0&&(Z.movingThumbnailLoadingDurationMs=Math.round(S)),Z.durationHoveredMs=Math.round((0,_.fO)()-H));p&&(Z.videoId=p);_.Vf(J,X,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:Z});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.R.removeVideoPreview=function(){_.wg.cancelJob(this.mouseOverDelayJobId);_.wg.cancelJob(this.fadeInImageDelayJobId);var p=_.Jn(this.hostElement).querySelector("#thumbnail");_.XM(p,"fade-in",!1);p.removeEventListener("load",_.n3(this,this.displayMouseOverImage));p=_.Jn(this.hostElement).querySelector("#play");_.XM(p,"fade-in",!1);_.XM(p,"show",!1)};
_.R.displayMouseOverImage=function(){var p=_.Jn(this.hostElement).querySelector("#thumbnail"),J=_.Jn(this.hostElement).querySelector("#play");this.isImageAvailable(p)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.fO)(),this.startTimeMs=(0,_.fO)(),this.fadeInImageDelayJobId=_.SK(_.wg,function(){_.XM(p,"fade-in",!0)},50)):_.XM(J,"fade-in",!0)};
_.R.computeThumbnail=function(p,J){var S;p&&p.movingThumbnailDetails&&p.movingThumbnailDetails.thumbnails&&J?S=_.I4(p.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):S=J?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(S)return _.Vd(S)};
_.R.isImageAvailable=function(p){return!(!p.src||p.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||p.naturalWidth===120)};
xB.prototype.onTap=xB.prototype.onTap;xB.prototype.dataChanged=xB.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],xB.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xB.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],xB.prototype,"csn",void 0);_.V([_.N(),_.Y("design:type",Object)],xB.prototype,"trackingParams",void 0);
_.V([_.N(),_.Y("design:type",String)],xB.prototype,"videoId",void 0);_.V([_.N(),_.Y("design:type",Boolean)],xB.prototype,"isAttachedAndDataSet",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xB.prototype,"dataChanged",null);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xB.prototype,"onTap",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],xB);
_.l(xB,"ytd-moving-thumbnail-renderer",function(){if(fCp!==void 0)return fCp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return fCp=p},{mode:1});var Os8;_.ib=function(p){this.hostElement=p;this.eventSink=null;this.eventList=[]};
_.ib.prototype.shouldForward=function(){var p,J;return(J=(p=this.eventSink)==null?void 0:p.isConnected)!=null?J:document.body.contains(this.eventSink)};
_.ib.prototype.start=function(p,J){this.eventSink&&this.stop();for(var S=0;S<p.length;S++)this.hostElement.addEventListener(p[S],_.n3(this,this.forwardEvent));var H;this.eventSink=(H=J.hostElement)!=null?H:J;this.eventList=p};
_.ib.prototype.stop=function(){for(var p=0;p<this.eventList.length;p++)this.hostElement.removeEventListener(this.eventList[p],_.n3(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.ib.prototype.forwardEvent=function(p,J){this.shouldForward()&&(p.stopPropagation(),this.eventSink instanceof Element?_.cf(this.eventSink,p.type,J):_.xQ(new _.TG("eventSink is not an element")))};_.cw={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.ib(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(p,J){this.forwarder_.start(p,J)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var IG=function(){return _.T.apply(this,arguments)||this};
_.Q(IG,_.T);_.R=IG.prototype;_.R.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=_.jn("HTML_DIR")==="rtl"?"right":"left"};
_.R.dataChanged=function(){this.popupOpen=!1};
_.R.computeAriaLabel=function(p){return _.e(p,W6d).label};
_.R.onTap=function(p){p.stopPropagation();p.preventDefault();this.data.command&&_.vO().resolve(_.Ov).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.R.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.R.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
IG.prototype.onPopupClosed=IG.prototype.onPopupClosed;IG.prototype.onPopupOpened=IG.prototype.onPopupOpened;IG.prototype.onTap=IG.prototype.onTap;IG.prototype.dataChanged=IG.prototype.dataChanged;_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],IG.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.cy),_.Y("design:type",Object)],IG.prototype,"ironButtonState",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],IG.prototype,"componentBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],IG.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:-1}),_.Y("design:type",Number)],IG.prototype,"tabindex",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.Y("design:type",Object)],IG.prototype,"ariaLabel",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],IG.prototype,"disableTooltips",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],IG.prototype,"popupOpen",void 0);
_.V([_.N(),_.Y("design:type",Element)],IG.prototype,"eventSink",void 0);_.V([_.FM("#tooltip"),_.Y("design:type",Object)],IG.prototype,"tooltip",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IG.prototype,"dataChanged",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],IG.prototype,"onTap",null);
_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IG.prototype,"onPopupOpened",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IG.prototype,"onPopupClosed",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],IG);
_.l(IG,"ytd-thumbnail-overlay-button-renderer",function(){if(Os8!==void 0)return Os8;var p=document.createElement("template");_.C(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]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return Os8=p},{mode:1});var AtM;var LB=function(){return _.T.apply(this,arguments)||this};
_.Q(LB,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],LB.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],LB.prototype,"disableAnimation",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],LB.prototype,"rounded",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],LB.prototype,"transparentBackground",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],LB.prototype,"noPadding",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],LB);
_.l(LB,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(AtM!==void 0)return AtM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return AtM=p},{mode:1});var PQm;var pF=function(){return _.T.apply(this,arguments)||this};
_.Q(pF,_.T);pF.prototype.computeIconPosition=function(p){return this.get("iconPosition",p)||null};
pF.prototype.computeIconStyle=function(p){return this.get("iconStyle",p)||null};
pF.prototype.computeIsIconStyleFilled=function(p){if(!p)return!1;var J;return p.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((J=p.icon)==null?void 0:J.iconType)==="ERROR_BLACK"};
_.V([_.N(),_.Y("design:type",Object)],pF.prototype,"data",void 0);_.V([_.N({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],pF.prototype,"iconPosition",void 0);_.V([_.N({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],pF.prototype,"iconStyle",void 0);_.V([_.N({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],pF.prototype,"iconStyleFilled",void 0);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],pF);
_.l(pF,"ytd-thumbnail-overlay-icon-renderer",function(){if(PQm!==void 0)return PQm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return PQm=p},{mode:1});var zRU;var JO=function(){return _.T.apply(this,arguments)||this};
_.Q(JO,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],JO.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],JO);
_.l(JO,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(zRU!==void 0)return zRU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return zRU=p},{mode:1});var $KU;var SZ=function(){var p=_.T.apply(this,arguments)||this;p.isPreviewLoading=!1;return p};
_.Q(SZ,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],SZ.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],SZ.prototype,"isPreviewLoading",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],SZ);
_.l(SZ,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if($KU!==void 0)return $KU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return $KU=p},{mode:1});var oqq;var H2=function(){return _.T.apply(this,arguments)||this};
_.Q(H2,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],H2.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],H2);
_.l(H2,"ytd-thumbnail-overlay-pinking-renderer",function(){if(oqq!==void 0)return oqq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return oqq=p},{mode:1});var eRE;var Mf=function(){var p=_.T.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};
_.Q(Mf,_.T);_.R=Mf.prototype;_.R.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");_.Jn(this.hostElement).querySelector("#tooltip").position=_.jn("HTML_DIR")==="rtl"?"right":"left"};
_.R.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.wg.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.wg.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.wg.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.R.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.wg.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.wg.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.wg.cancelJob(this.expandAnimationDelayJobId)};
_.R.computeIcon=function(p,J,S){return(p=S?J:p)&&p.iconType?_.Xj(p.iconType):void 0};
_.R.computeAriaLabel=function(p,J,S){return _.e(S?J:p,W6d).label};
_.R.computeTooltip=function(p,J,S){return S?J:p};
_.R.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.R.computeIconOnHover=function(p,J){if((p==null?0:p.iconType)&&!J)return _.Xj(p.iconType)};
_.R.onTap=function(p){var J=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=_.SK(_.wg,function(){J.hovered=!1;J.data&&!J.data.toggledServiceEndpoint&&(J.expandAnimationDelayJobId=_.SK(_.wg,function(){J.set("data.isToggled",
!1)},200))},2E3))};
_.R.onMouseenter=function(){var p=this;this.mouseoverDelayJobId=_.SK(_.wg,function(){p.hovered=!0},300)};
_.R.onMouseleave=function(){_.wg.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.R.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.R.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.R.onServiceRequestCompleted=function(p,J){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(J)||this.set("data.isToggled",!this.data.isToggled)};
_.R.serviceRequestWasSuccessful=function(p){return _.e(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.XY)?p.data.status==="STATUS_SUCCEEDED":!0};
Mf.prototype.onServiceRequestCompleted=Mf.prototype.onServiceRequestCompleted;Mf.prototype.onPopupClosed=Mf.prototype.onPopupClosed;Mf.prototype.onPopupOpened=Mf.prototype.onPopupOpened;Mf.prototype.onMouseleave=Mf.prototype.onMouseleave;Mf.prototype.dataChanged=Mf.prototype.dataChanged;_.V([_.B(_.cy),_.Y("design:type",Object)],Mf.prototype,"ironButtonState",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Mf.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],Mf.prototype,"ytEventForwardingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Mf.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.Y("design:type",Object)],Mf.prototype,"ariaLabel",void 0);_.V([_.N(),_.Y("design:type",Object)],Mf.prototype,"disableTooltips",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Mf.prototype,"popupOpen",void 0);_.V([_.N(),_.Y("design:type",Object)],Mf.prototype,"isLoading",void 0);_.V([_.N(),_.Y("design:type",Element)],Mf.prototype,"eventSink",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Mf.prototype,"useExpandableTooltip",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.Y("design:type",Object)],Mf.prototype,"toggled",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Mf.prototype,"hovered",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.Y("design:type",Object)],Mf.prototype,"iconOnHover",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"dataChanged",null);
_.V([_.GI("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"onMouseleave",null);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"onPopupOpened",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"onPopupClosed",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],Mf.prototype,"onServiceRequestCompleted",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Mf);
_.l(Mf,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(eRE!==void 0)return eRE;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return eRE=p},{mode:_.Jz("kevlar_poly_si_batch_j053")?1:2});var W3E;var Qnn=_.d(function(p){var J=p.data;var S=p.thumbnailSize;var H=function(){return J().enableSegmentView};
return _.m("yt-thumbnail-overlay-progress-bar-view-model",{class:_.XB("ytThumbnailOverlayProgressBarHost",function(){return knk(S==null?void 0:S())})},_.m(_.v,{cond:H,
then:function(){return _.m("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.m("div",{class:_.Qh("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+J().startPercent+"%"}}),_.m("div",{class:_.Qh("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+J().segmentDurationPercent+"%"}},_.m("div",{class:_.Qh("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.m("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.m("div",null," ",function(){return J().segmentLabel})),_.m("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.m("div",{class:_.Qh("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.m(_.v,{cond:function(){return!H()&&J().startPercent},
then:function(){var M={};return _.m("div",{class:_.Qh("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(M.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.z("web_enable_modern_progress_bar_overlay"),M))},_.m("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+J().startPercent+"%"}}))}}))},"Fa");
Qnn.idomCompat=!0;_.CQ8=_.d(function(p){var J=_.Gy(),S=_.fb(function(M){var X,Z,n;a:{var b=(X=p.data())==null?void 0:X.animationActivationTargetId;X=((Z=p.data())==null?void 0:Z.animationActivationEntityKey)||"";Z=(n=p.data())==null?void 0:n.animationActivationEntitySelectorType;if(X&&b)switch(Z){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":M=_.RY(M,X);n=_.vO().resolve(_.F9(_.DF));b=!!(M&&M.videoId===b&&(n==null?0:n.isMiniplayerActive()));b={activated:b,playAnimation:b&&M.playerState==="PLAYER_STATE_PLAYING"};
break a}b=void 0}return b});
_.lf(function(){var M;if((M=S())==null?0:M.activated){var X;if((X=S())==null?0:X.playAnimation){var Z;(Z=J.lottieEl)==null||Z.goToAndPlay(0)}else{var n;(n=J.lottieEl)==null||n.goToAndStop(0)}}},"DbQiXd");
var H=function(){var M,X=!((M=S())==null||!M.activated);if(p.data()){M=p.data();var Z=void 0;M.icon&&(Z=_.SfX(M.icon),Z=GzX(Z));var n=void 0,b;if((b=M.backgroundColor)==null?0:b.lightTheme){var F;n={backgroundColor:Ur((F=M.backgroundColor)==null?void 0:F.lightTheme,"0.8")}}if(M.text||Z||X){if(X&&M.lottieData&&J){F=M.lottieData;var f,O,A;b={animationConfig:{name:F.url,path:F.url,autoplay:(f=F.settings)==null?void 0:f.autoplay,loop:(A=(O=F.settings)==null?void 0:O.loop)!=null?A:!0},animationRef:J}}else b=
void 0;if(X)f=17;else b:switch(M.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":f=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":f=19;break b;default:f=17}X={type:f,text:X&&M.animatedText?M.animatedText:M.text,icon:Z,customColors:n,animation:b}}else X=void 0}else X=void 0;return X};
return _.m("yt-thumbnail-badge-view-model",{class:_.XB("ytThumbnailBadgeViewModelHost",p.class)},_.m(_.v,{cond:H,then:function(){return _.m(_.bG,{data:function(){return H()}})}}))},"Ha");var ytn=_.d(function(p){var J={},S={};return _.m("yt-thumbnail-bottom-overlay-view-model",{class:_.XB("ytThumbnailBottomOverlayViewModelHost",(J.ytThumbnailBottomOverlayViewModelHostBackground=function(){return p.data().enableGradientBackground},J))},_.m(_.AH,{data:function(){return p.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(H){return _.m(Qnn,{data:H.data,
thumbnailSize:p.thumbnailSize})}}),_.m("div",{class:_.XB("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var H;
return Nuv((H=p.thumbnailSize)==null?void 0:H.call(p))},(S.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var H;
return(H=p.isClip)==null?void 0:H.call(p)},S.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var H;
return!_.z("web_enable_modern_progress_bar_overlay")&&((H=p.thumbnailSize)==null?void 0:H.call(p))==="small"},S))},_.m(_.AH,{data:function(){return p.data().badge}},{thumbnailBadgeViewModel:function(H){return _.m(_.CQ8,{data:H.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.m(_.AH,{data:function(){return p.data().badges}},{thumbnailBadgeViewModel:function(H){return _.m(_.CQ8,{data:H.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
ytn.idomCompat=!0;_.ci(ytn,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.jr,thumbnailSize:_.jr,isClip:_.jr}});var riW={calledOnce:!1,state:"visible"},jzg={calledOnce:!1,state:"hidden"};var Xq=_.d(function(p){var J=p.data;var S=p.className;p=p.alwaysShow;var H=_.uOs(),M={};return _.m("thumbnail-hover-overlay-view-model",{el:_.Y2(_.sl(function(){return J().rendererContext})),
class:_.XB("ytThumbnailHoverOverlayViewModelHost",S,(M.ytThumbnailHoverOverlayViewModelHostForceHover=p,M)),"aria-label":function(){var X;return(X=_.e(J().rendererContext,_.PY))==null?void 0:X.label},
role:function(){return _.B$(J().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.B$(J().rendererContext)!==void 0?0:void 0},
"on:keypress":H},_.m("div",{class:_.XB("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(J().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var X="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:X="ytThumbnailHoverOverlayViewModelStyleCover"}return X})},_.m(_.v,{cond:function(){return J().icon},
then:function(X){return _.m(_.a4,{data:X,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.m(_.v,{cond:function(){return J().text},
then:function(X){return _.m(_.v3,{text:X,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
Xq.idomCompat=!0;var BZn=_.d(function(p){var J=p.data;return _.m(_.AH,{data:function(){return J==null?void 0:J().overlays}},{thumbnailHoverOverlayViewModel:Xq})},"La");
BZn.idomCompat=!0;var UK8={};var sn8=_.d(function(p){var J=p.data;var S=p.image;var H=p.state;var M=p.iconType;var X=p.overlays;var Z=p.isOverlay;var n=_.mo("div");p=_.K(_.eQ(!0,void 0,"AA4e7b"));var b=p.next().value,F=p.next().value,f=function(){return!!J().onTap},O=_.rw(M,"LIVE");
_.lf(function(){var P=J();requestAnimationFrame(function(){if(n.value===null)var W=!0;else{var y=n.value;W=P.badgeText;var t=x2i(P.size);W in UK8?y=UK8[W]:(y=y.clientWidth,UK8[W]=y);(W=y>t)?n.value.style.display="none":n.value.style.visibility="visible"}F(W)})},"vNdN8b");
var A=function(){var P={};return P["yt-spec-avatar-shape__image"]=!0,P["yt-spec-avatar-shape__image--ads-app"]=J().type===1,P["yt-spec-avatar-shape__image--inscribed-square"]=J().type===2,P};
return _.m("yt-avatar-shape",null,_.m("div",{el:_.Y2(Iei(f,{keydown:function(P){if(P.key==="Enter"){var W;(W=P.currentTarget)==null||W.click()}},
click:function(P){var W,y;return void((y=(W=J()).onTap)==null?void 0:y.call(W,P))}})),
class:function(){var P={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},W=J();P=(P[W.clusterLayoutConfig?JEW(W.clusterLayoutConfig):S5s(W.size)]=!0,P["yt-spec-avatar-shape__button--tappable"]=f(),P);(W=J().avatarButtonCustomClassName)&&(P[W]=!0);return _.Qh(P)},
"aria-label":function(){return f()?J().accessibilityText:""},
role:function(){return f()?"button":void 0},
tabindex:function(){return f()?0:void 0}},_.m("div",{class:function(){var P,W=J(),y=H==null?void 0:H(),t=Z==null?void 0:Z(),D=!((P=W.decorations)==null||!P.includes(2)||W.size!=="medium"&&W.size!=="large"),k=W.size==="tiny"||W.size==="extra-small",E,a,q,w,I={};
P=(I["yt-spec-avatar-shape--live-ring"]=!!(((E=W.decorations)==null?0:E.includes(0))&&MFw(W.size)),I["yt-spec-avatar-shape--stories-watched"]=D&&!(y==null||!y.storiesWatched),I["yt-spec-avatar-shape--stories-unwatched"]=D&&!(y==null?0:y.storiesWatched),I["yt-spec-avatar-shape--background-border"]=XoW(W.decorations)&&!k,I["yt-spec-avatar-shape--background-border-thin"]=XoW(W.decorations)&&k,I["yt-spec-avatar-shape__on-select-border"]=!((a=W.decorations)==null||!a.includes(4)),I["yt-spec-avatar-shape__white-border"]=
!((q=W.decorations)==null||!q.includes(5)),I["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((w=W.decorations)==null?0:w.includes(5))&&k),I["yt-spec-avatar-shape--is-overlay"]=!!t,I);return _.Qh(P)},
style:function(){a:{var P=J().clusterLayoutConfig;if(P){b:{var W=P.numAvatarsInCluster;var y=P.avatarIndex;if(y!==W-1){switch(P.clusterSize){case "small":P="32";break;case "medium":P="36";break;case "40":P="40";break;default:W=void 0;break b}W="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+P+"x"+P+"_avatars_"+W+"_index_"+y+".svg"}else W=void 0}if(W){W=_.G7({"-webkit-mask-image":"url("+W+")","mask-image":"url("+W+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}W=void 0}return W}},_.m("div",{class:function(){var P={};
var W=J();P=(P[W.clusterLayoutConfig?Lqv(W.clusterLayoutConfig):poW(W.size)]=!0,P["yt-spec-avatar-shape--no-margin"]=XoW(J().decorations),P["yt-spec-avatar-shape--square"]=J().type===2,P);return _.Qh(P)}},_.m(_.a4,{data:S,
alt:function(){return!f()&&J().accessibilityText?J().accessibilityText:""},
targetWidth:function(){return Hgg(J().size)},
targetHeight:function(){return Hgg(J().size)},
className:function(){return _.Qh(A())}}),_.m(_.v,{cond:function(){var P;
return((P=J().decorations)==null?void 0:P.includes(0))&&MFw(J().size)},
then:function(){return _.m("div",{class:function(){var P={};P=(P["yt-spec-avatar-shape__live-badge"]=!0,P["yt-spec-avatar-shape__live-badge--badge-small"]=J().size==="small",P["yt-spec-avatar-shape__live-badge--badge-medium"]=J().size==="medium"||J().size==="48",P["yt-spec-avatar-shape__live-badge--badge-large"]=J().size==="large",P["yt-spec-avatar-shape__live-badge--badge-extra-large"]=J().size==="extra-large"||J().size==="extra-extra-large"||J().size==="giant",P);return _.Qh(P)}},_.m(_.v,{cond:function(){return J().badgeText},
then:function(P){return _.m("div",{class:"yt-spec-avatar-shape__badge-text",el:n},P)}}),_.m(_.v,{cond:b,
then:function(){return _.m("div",{class:"yt-spec-avatar-shape__badge-icon"},_.m(_.bn,{icon:O,size:function(){a:switch(J().size){case "extra-large":var P=16;break a;default:P=13}return P}}))}}))}}),_.m(_.v,{cond:function(){var P,W;
return((P=J().decorations)==null?void 0:P.includes(1))||((W=J().decorations)==null?void 0:W.includes(0))&&!MFw(J().size)},
then:function(){return _.m("div",{class:function(){var P=J(),W,y,t={};var D=(t["yt-spec-avatar-shape__live-dot"]=!((W=P.decorations)==null||!W.includes(0)||MFw(P.size)),t["yt-spec-avatar-shape__new-content"]=!((y=P.decorations)==null||!y.includes(1)),t);return _.Qh(D)}})}}),_.m(_.v,{cond:function(){return!!X},
then:function(){return _.m("div",{class:function(){var P={};P=Object.assign((P["yt-spec-avatar-shape__image-overlays"]=!0,P),A());return _.Qh(P)}},X==null?void 0:X())}})))))},"Oa");
sn8.idomCompat={callbacks:{overlays:!0}};_.iF=_.d(function(p){function J(){S().endpoint&&_.Dm(S().endpoint)}
var S=p.data;var H=p.decorations;var M=p.avatarButtonCustomClassName;var X=p.isOverlay;var Z=p.clusterLayoutConfig;return _.m("avatar-view-model",null,_.m(_.v,{cond:function(){return S().image},
then:function(n){return _.m(sn8,{data:function(){return RAi({data:S(),onTap:S().endpoint?J:void 0,decorations:H==null?void 0:H(),badgeText:void 0,accessibilityText:S().accessibilityText,avatarButtonCustomClassName:M==null?void 0:M(),clusterLayoutConfig:Z==null?void 0:Z()})},
image:n,iconType:"RADAR_LIVE",overlays:function(){return _.m(BZn,{data:S})},
isOverlay:X})}}))},"Pa");
_.iF.idomCompat=!0;_.RH=_.d(function(p){var J=p.data;p=p.className;var S=_.mo("yt-decorated-avatar-view-model"),H=function(){return _.e(J().avatar,_.tH)},M=_.BW(function(){var X,Z=J(),n=H(),b=_.B$(J().rendererContext),F=(X=S.value)!=null?X:void 0,f;
if(n){F={data:Z,avatar:n,onTap:b,element:F};X=F.data;Z=F.avatar;n=F.onTap;b=F.element;F=F.commandController;n=n?GDW(n,b,F):void 0;b=[];X.liveData&&b.push(0);var O;F=(O=X.liveData)==null?void 0:O.liveBadgeText;O=(f=_.e(X.rendererContext,_.PY))==null?void 0:f.label;f=RAi({data:Z,onTap:n,decorations:b,badgeText:F,accessibilityText:O?O:X.a11yLabel})}else f={size:"medium"};return f},void 0,"c00kWd");
return _.m("yt-decorated-avatar-view-model",{class:_.XB("ytDecoratedAvatarViewModelHost",p),el:S},_.m(_.v,{cond:function(){var X;return(X=H())==null?void 0:X.image},
then:function(X){return _.m(sn8,{data:M,image:X,iconType:"RADAR_LIVE",overlays:function(){return _.m(BZn,{data:H})}})}}))},"Qa");
_.RH.idomCompat=!0;_.KF=_.d(function(p){var J=function(){var n;return Object.assign({},p.data(),(n=p.overrides)==null?void 0:n.call(p))},S=function(){return _.Ul(J().rendererContext)},H=function(){var n=J().avatars,b,F;
return(F=(b=(n==null?0:n[0])?_.e(n[0],_.tH):void 0)==null?void 0:b.avatarImageSize)!=null?F:"AVATAR_SIZE_UNKNOWN"},M=function(){return nn3(J())},X=function(){if(J().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var n=void 0;
else if((n=p.decorations)==null?0:n.call(p))n=p.decorations();else{n=J();var b=0;n.avatars&&(b+=n.avatars.length);n.decoratedText&&(b+=1);n=b>1?[3]:[]}return n},Z={};
return _.m("yt-avatar-stack-view-model",{el:_.Y2(_.sl(function(){return J().rendererContext})),
class:_.XB("yt-avatar-stack-view-model",p.className,(Z["yt-avatar-stack-view-model--tappable"]=S,Z["yt-avatar-stack-view-model--is-overlay"]=p.isOverlay,Z["yt-avatar-stack-view-model--medium-text"]=p.useMediumText,Z)),tabindex:function(){return S()?0:void 0},
role:function(){return S()?"link":void 0},
"aria-label":function(){var n,b;return(b=(n=_.e(J().rendererContext,_.PY))==null?void 0:n.label)!=null?b:""}},_.m(_.v,{cond:function(){var n;
return J().avatars&&!((n=p.hideAvatar)==null?0:n.call(p))},
then:function(){return _.m("div",{class:"yt-avatar-stack-view-model__avatars"},_.m(_.v,{cond:function(){return J().decoratedText},
then:function(n){var b={};return _.m("div",{class:_.XB("yt-avatar-stack-view-model__text-container",(b["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return H()==="AVATAR_SIZE_XXS"||H()==="AVATAR_SIZE_XS"},b["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var F;
return((F=p.isOverlay)==null?void 0:F.call(p))&&(H()==="AVATAR_SIZE_XXS"||H()==="AVATAR_SIZE_XS")},b)),
style:_.G7({width:function(){return M().avatarSizeInPx+"px"},
height:function(){return M().avatarSizeInPx+"px"}})},_.m(_.v3,{text:n,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.m("div",{style:function(){return _.G7(M().avatarStackStyle)()},
class:function(){return M().avatarStackClass}},_.m(_.AH,{data:function(){return M().avatars.reverse()}},{avatarViewModel:function(n,b){return _.m("div",{style:function(){var F,f;
return _.G7((f=(F=M()).avatarStyle)==null?void 0:f.call(F,b()))()},
class:function(){return M().avatarClass}},_.m(_.iF,{data:n.data,
decorations:X,avatarButtonCustomClassName:function(){return M().avatarButtonCustomClassName},
isOverlay:p.isOverlay,clusterLayoutConfig:function(){var F,f;return(f=(F=M()).clusterLayoutConfig)==null?void 0:f.call(F,b())}}))},
decoratedAvatarViewModel:function(n,b){return _.m("div",{style:function(){var F,f;return _.G7((f=(F=M()).avatarStyle)==null?void 0:f.call(F,b()))()},
class:function(){return M().avatarClass}},_.m(_.RH,{data:n.data}))}})))}}),_.m(_.v,{cond:function(){return J().text},
then:function(n){return _.m(_.v3,{text:n,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.KF.idomCompat=!0;_.ci(_.d(function(p){var J=p.data;var S=p.thumbnailSize;return _.m("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.m("div",{class:_.XB("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return bgW(S==null?void 0:S())})},_.m(_.AH,{data:function(){return J().avatarStack}},{avatarStackViewModel:function(H){return _.m(_.KF,{data:H.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.fD,
thumbnailSize:_.fD}});var gqE=_.d(function(p){p=_.jh(p,{hidden:!1});var J=p.data;p=p.hidden;return _.m("yt-thumbnail-overlay-title-view-model",{class:_.XB("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(J().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var S="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:S="ytThumbnailOverlayTitleViewModelPositionTop"}return S}),
hidden:p},_.m(_.v,{cond:function(){return J().leadingContent},
then:function(S){return _.m("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.m(_.AH,{data:S},{decoratedAvatarViewModel:_.RH}))}}),_.m("div",null,_.m(_.v3,{text:function(){return J().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.m(_.v,{cond:function(){return J().subtitle},
then:function(){return _.m(_.v3,{text:function(){return J().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
gqE.idomCompat=!0;_.ci(gqE,"yt-thumbnail-overlay-title-view-model",{props:{data:_.fD,hidden:_.fD}});_.tMn=_.d(function(p){p=_.jh(p,{isClip:!1});var J=p.data,S=p.thumbnailSize,H={};return _.m("yt-thumbnail-overlay-badge-view-model",{class:_.XB("yt-thumbnail-overlay-badge-view-model",function(){a:switch(J().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var M="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:M="yt-thumbnail-overlay-badge-view-model--bottom-end"}return M},function(){return mNk(S==null?void 0:S())},(H["yt-thumbnail-overlay-badge-view-model--clip"]=p.isClip,
H))},_.m(_.AH,{data:function(){return J().thumbnailBadges}},{thumbnailBadgeViewModel:function(M){return _.m(_.CQ8,{data:M.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.tMn.idomCompat=!0;_.ci(_.tMn,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.fD,thumbnailSize:_.fD,isClip:_.fD}});var hRv=_.d(function(p){var J=p.data;p=p.hidden;var S=_.BW(function(){return J().indicatorCount||0},void 0,"AbKnMc"),H={};
return _.m("yt-page-indicator-view-model",{class:_.XB("ytPageIndicatorViewModelHost",(H.ytPageIndicatorViewModelIndicatorHidden=function(){return!J().indicatorCount},H)),
hidden:p},_.m(_.dY,{each:function(){return Array(S())}},function(M,X){var Z={};
return _.m("div",{class:_.XB("ytPageIndicatorViewModelIndicator",(Z.ytPageIndicatorViewModelIndicatorSelected=function(){return J().selectedIndex===X()},Z))})}))},"Va");
hRv.idomCompat=!0;_.ci(hRv,"yt-page-indicator-view-model",{props:{data:_.fD,hidden:_.fD}});var Z2=function(){var p=_.T.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};
_.Q(Z2,_.T);_.R=Z2.prototype;
_.R.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:_.z("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"}}};
_.R.onImageLoaded=function(){this.loaded=!0};
_.R.onImageUnloaded=function(){this.loaded=!1};
_.R.computeRichThumbnail=function(p,J,S,H){if(p&&J&&!H&&!_.z("disable_moving_thumbs_handling")&&!S)return J};
_.R.computeImageWidth=function(p,J){return J||9999};
_.R.computeIsOriginalAspectRatio=function(p){return p};
_.R.computeIsLive=function(p){if(p==null?0:p.badges)for(var J=0;J<p.badges.length;J++){var S=p.badges[J];if(S.metadataBadgeRenderer&&S.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(p==null?0:p.thumbnailOverlays)for(J=0;J<p.thumbnailOverlays.length;J++)if(S=p.thumbnailOverlays[J],S.thumbnailOverlayTimeStatusRenderer&&S.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.R.computeObjectFit=function(p,J){return J||(p?"CONTAIN":"")};
_.R.computeNavigationEndpoint=function(p,J,S){return p?J:S};
_.R.computeHasClip=function(p){p=_.K(p||[]);for(var J=p.next();!J.done;J=p.next())if(J.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.R.computeOverlayColor=function(p){var J;return(p==null?0:(J=p.darkColorPalette)==null?0:J.section2Color)?p.darkColorPalette.section2Color:p==null?void 0:p.sampledThumbnailColor};
_.vh.Object.defineProperties(Z2.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.TRL(this.width)}}});
Z2.prototype.onImageUnloaded=Z2.prototype.onImageUnloaded;Z2.prototype.onImageLoaded=Z2.prototype.onImageLoaded;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Z2.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(Gld),_.Y("design:type",Object)],Z2.prototype,"ytdThumbnailBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Z2.prototype,"componentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Z2.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Z2.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Z2.prototype,"circular",void 0);
_.V([_.N({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.Y("design:type",Object)],Z2.prototype,"richThumbnail",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.Y("design:type",Boolean)],Z2.prototype,"hasClip",void 0);_.V([_.N(),_.Y("design:type",Object)],Z2.prototype,"eventSink",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Z2.prototype,"queued",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Z2.prototype,"richGridThumbnail",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Z2.prototype,"useExpandableTooltip",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Z2.prototype,"useUntranslatedNavigationEndpoint",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Z2.prototype,"disableInteraction",void 0);
_.V([_.N({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.Y("design:type",Object)],Z2.prototype,"computedNavigationEndpoint",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Z2.prototype,"nowPlayingEqualizerOnly",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Z2.prototype,"hidePlaybackStatus",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],Z2.prototype,"objectFit",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Z2.prototype,"noRoundedCorners",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Z2.prototype,"watchFeedThumbnail",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Z2.prototype,"isPreviewLoading",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.Y("design:type",Object)],Z2.prototype,"isOriginalAspectRatio",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.Y("design:type",Object)],Z2.prototype,"computedObjectFit",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.Y("design:type",Boolean)],Z2.prototype,"isLiveVideo",void 0);
_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Z2.prototype,"loaded",void 0);_.V([_.N({computed:"computeOverlayColor(data.thumbnail)"}),_.Y("design:type",Object)],Z2.prototype,"overlayColor",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Z2.prototype,"minimizePipBreakages",void 0);_.V([_.N({selector:_.tpW}),_.Y("design:type",Boolean)],Z2.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.N(),_.Y("design:type",Number)],Z2.prototype,"width",void 0);
_.V([_.U("inlinePreviewIsEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Z2.prototype,"isPreviewDisabled",null);_.V([_.U("width"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Z2.prototype,"thumbnailSize",null);_.V([_.GI("image-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Z2.prototype,"onImageLoaded",null);
_.V([_.GI("image-unloaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Z2.prototype,"onImageUnloaded",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-thumbnail"})],Z2);
var DKv=_.pI()(Z2,"ytd-thumbnail",function(){if(W3E===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);W3E=p}p=W3E;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 minimizePipBreakages".split(" "),mode:2});var fBt=function(p){var J=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15190_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15190_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(S){k18(J,S)};
this.onLockupMouseLeaveFn=function(S){S=S.relatedTarget;var H,M;((H=document.getElementsByTagName("ytd-video-preview"))==null?0:(M=H.item(0))==null?0:M.contains(S))||(J.terminateVideoPreview(),nF(J))};
this.onThumbnailMouseDownFn=function(){J.terminateVideoPreview();nF(J)};
this.onTouchStart=function(){J.JSC$15190_touched=!0};
this.mediaRenderer=p.mediaRenderer;this.thumbnailElement=p.thumbnailElement;this.lockupElement=p.lockupElement;this.videoPreviewOptsInput=p.videoPreviewOpts;NZ8(this);GK(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)):
_.xQ(Error("Fh")):_.xQ(Error("Gh")):TZv(this)},r_=function(p){TZv(p);
var J;(J=p.lockupElement)==null||J.removeEventListener("mouseenter",p.onMouseMoveFn);var S;(S=p.lockupElement)==null||S.removeEventListener("mouseleave",p.onLockupMouseLeaveFn);var H;(H=p.lockupElement)==null||H.removeEventListener("touchstart",p.onTouchStart);var M;(M=p.thumbnailElement)==null||M.removeEventListener("mousedown",p.onThumbnailMouseDownFn);nF(p)},NZ8=function(p){p.inlinePreviewIsEnabledForUser=_.rl().getState().ui.inlinePreviewIsEnabled;
p.unsubscribeFromInlinePreviewIsEnabled=_.j7(_.rl(),_.tpW,function(J){(p.inlinePreviewIsEnabledForUser=J)||nF(p)});
p.JSC$15190_unsubscribeFromInlinePreviewIsActive=_.j7(_.rl(),_.gNk,function(J){(p.inlinePreviewIsActive=J)||nF(p)})},TZv=function(p){p.unsubscribeFromInlinePreviewIsEnabled();
p.unsubscribeFromInlinePreviewIsEnabled=function(){};
p.JSC$15190_unsubscribeFromInlinePreviewIsActive();p.JSC$15190_unsubscribeFromInlinePreviewIsActive=function(){}},k18=function(p,J){J.buttons>0||(J=_.PO("kevlar_lockup_hover_delay",-1),p.JSC$15190_touched&&J>=0?(_.wg.cancelJob(p.videoPreviewJobId),p.videoPreviewJobId=_.SK(_.wg,function(){dKo(p)},J),p.JSC$15190_touched=!1):dKo(p))},ZxX=function(p){p.videoPreviewJobId=_.SK(_.wg,function(){return _.G(function(J){return J.yield(uLU(p,{isAutoplay:!0}),0)})})},dKo=function(p){!p.previewTriggered&&GK(p)&&
(p.inlinePreviewIsActive&&p.terminateVideoPreview(),p.previewTriggered=!0,p.mediaRenderer.isInlinePreviewTriggered=!0,_.wg.cancelJob(p.videoPreviewJobId),p.videoPreviewJobId=_.SK(_.wg,function(){return _.G(function(J){return J.yield(uLU(p),0)})}))},uLU=function(p,J){J=J===void 0?{}:J;
var S=J.isAutoplay===void 0?!1:J.isAutoplay;var H,M,X,Z;return _.G(function(n){if(n.nextAddress==1){if(!GK(p))return n.return();H=p.getVideoPreviewOpts();if(!H)return n.return();S&&(H.isAutoplay=!0);return(X=(M=_.L1(p.mediaRenderer.hostElement,"yt-open-video-preview-action",[H]))&&M[0])?n.yield(M[0],3):n.jumpTo(2)}n.nextAddress!=2&&(X=n.yieldResult===1);if(X){var b=(Z=p.mediaRenderer)==null?void 0:Z.data;b&&(vn4(b)?delete b.inlinePlayerData:"inlinePlaybackEndpoint"in b&&delete b.inlinePlaybackEndpoint)}_.UK(n)})};
fBt.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var p,J;if((J=(p=this.videoPreviewOptsInput)==null?void 0:p.videoPreviewData)!=null)p=J;else if(p=this.mediaRenderer.data)if(vn4(p))p={inlinePlaybackEndpoint:_.sa(p.inlinePlayerData.onVisible),navigationEndpoint:_.sa(p.onTap),thumbnail:"image"in p?p.image:p.thumbnail,thumbnailOverlays:void 0,accessibilityText:FpX(p)};else if("multipleInlinePlaybackEndpoint"in p){var S=_.e(_.e(p.multipleInlinePlaybackEndpoint,l$L),Vo8);if(S!=
null&&S.playerDescriptors){J=[];S=_.K(S.playerDescriptors);for(var H=S.next();!H.done;H=S.next())H=H.value,J.push({inlinePlaybackEndpoint:H.inlinePlaybackEndpoint,navigationEndpoint:H.navigationEndpoint,thumbnail:H.thumbnail,thumbnailOverlays:H.thumbnailOverlays,accessibilityText:FpX(p)});p=J}else p=void 0}else p={inlinePlaybackEndpoint:p.inlinePlaybackEndpoint,navigationEndpoint:p.navigationEndpoint,thumbnail:p.thumbnail,thumbnailOverlays:p.thumbnailOverlays,accessibilityText:FpX(p)};else p=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:p,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var GK=function(p){var J;if(J=p.inlinePreviewIsEnabledForUser)J=(p=p.mediaRenderer.data)?"inlinePlaybackEndpoint"in p&&p.inlinePlaybackEndpoint||vn4(p)&&p.inlinePlayerData||"multipleInlinePlaybackEndpoint"in p&&p.multipleInlinePlaybackEndpoint?!0:!1:!1;return J};
fBt.prototype.terminateVideoPreview=function(){_.IV(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var nF=function(p){_.wg.cancelJob(p.videoPreviewJobId);p.inlinePreviewIsActive=!1;p.previewTriggered=!1;p.mediaRenderer.isInlinePreviewTriggered=!1};var lCL=_.YI(["#"]),bF=function(){var p=_.T.apply(this,arguments)||this;p.isDisabled=!1;return p};
_.Q(bF,_.T);_.R=bF.prototype;
_.R.configureRendererStamper=function(){return{"data.menu":YB,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.getMetadata=function(p){var J=[];if(p.metadataText&&Object.keys(p.metadataText).length>0){var S=this.ytRendererBehavior.getSimpleString(p.metadataText);p.upcomingEventData&&p.upcomingEventData.upcomingEventText&&(S=_.eH(S,Number(p.upcomingEventData.startTime)));J.push(S)}else p.shortViewCountText&&J.push(this.ytRendererBehavior.getSimpleString(p.shortViewCountText)),p.publishedTimeText&&J.push(this.ytRendererBehavior.getSimpleString(p.publishedTimeText)),p.upcomingEventData&&p.upcomingEventData.upcomingEventText&&
(S=this.ytRendererBehavior.getSimpleString(p.upcomingEventData.upcomingEventText),J.push(_.eH(S,Number(p.upcomingEventData.startTime))));return J};
_.R.calculateBylineText=function(p){return p.shortBylineText?p.shortBylineText:p.bylineText?p.bylineText:null};
_.R.calculateIsDisabled=function(p){return!!p.isDisabled};
_.R.computeHrefWithDefault=function(p){return this.ytComponentBehavior.computeHref_(p)||_.KC3(lCL)};
_.R.onDetailsTap=function(p){var J=this.data&&this.data.navigationEndpoint;J&&!_.jK(_.Er(p)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.z("kevlar_grid_video_renderer_killswitch")?_.cf(this.hostElement,"yt-navigate",{endpoint:J}):this.ytComponentBehavior.resolveCommand(J))};
_.R.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15197_inlinePreviewHoverListener=hH({mediaRenderer:this,lockupElement:_.Jn(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Jn(this.hostElement).querySelector("ytd-thumbnail")})};
_.R.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15197_inlinePreviewHoverListener)==null||r_(p)};
_.R.computeThumbnailWidth=function(p,J){return J&&J>0?J:p?360:210};
_.R.computeNumBadgesInRow=function(p){var J;return((J=p.badges)==null?void 0:J.length)||0};
_.R.computeShowChannelThumbnail=function(p,J){var S;return J&&!!(p==null?0:(S=p.channelThumbnailSupportedRenderers)==null?0:S.channelThumbnailWithLinkRenderer)};
_.vh.Object.defineProperties(bF.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$15197_inlinePreviewHoverListener)==null?0:GK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
bF.prototype.dataChanged=bF.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],bF.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],bF.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.fa),_.Y("design:type",Object)],bF.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],bF.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],bF.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],bF.prototype,"noEndpoints",void 0);_.V([_.N({computed:"calculateBylineText(data)"}),_.Y("design:type",Object)],bF.prototype,"bylineText",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],bF.prototype,"isSearch",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],bF.prototype,"isDownloading",void 0);_.V([_.N({reflectToAttribute:!0,value:0}),_.Y("design:type",Number)],bF.prototype,"width",void 0);_.V([_.N({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.Y("design:type",Object)],bF.prototype,"isDisabled",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bF.prototype,"dataChanged",null);_.V([_.U("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bF.prototype,"isHovered",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bF.prototype,"hasAttributedBylineText",null);
_.V([_.U("bylineText","hasAttributedBylineText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bF.prototype,"showBylineText",null);_.V([_.gw({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],bF);
_.l(bF,"ytd-grid-video-renderer",function(){if(bsd!==void 0)return bsd;var p=document.createElement("template");_.C(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" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" 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]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" 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(_.r().content.cloneNode(!0),
p.content.firstChild);return bsd=p},{mode:_.Jz("kevlar_poly_si_batch_j047")?1:2});var VM8;var mx=function(){var p=_.T.apply(this,arguments)||this;p.roundedContainer=!0;p.skipRoundingTop=!1;p.disableTopPadding=!1;p.amsterdamEnabled=_.z("enable_desktop_amsterdam_info_panels");p.extractOverlay=!1;return p};
_.Q(mx,_.T);mx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
mx.prototype.onClick=function(p){var J,S=(J=this.data)==null?void 0:J.sourceEndpoint;!_.jK(_.Er(p),this.hostElement,["A".toString()])&&S&&_.cf(this.hostElement,"yt-navigate",{endpoint:S})};
_.vh.Object.defineProperties(mx.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,J;return(J=(p=this.data)==null?void 0:p.paragraphMaxLines)!=null?J:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],mx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],mx.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mx.prototype,"showVerticalDividers",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mx.prototype,"roundedContainer",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mx.prototype,"skipRoundingTop",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mx.prototype,"disableTopPadding",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mx.prototype,"amsterdamEnabled",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mx.prototype,"extractOverlay",void 0);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mx.prototype,"showMetadataAtTop",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mx.prototype,"showMetadataBelowTitle",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mx.prototype,"hasMenu",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data.truncateParagraphs"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mx.prototype,"truncateParagraphs",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.paragraphMaxLines"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],mx.prototype,"paragraphMaxLines",null);
_.V([_.N({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.background"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mx.prototype,"background",null);_.V([_.gw({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],mx);
_.l(mx,"ytd-info-panel-content-renderer",function(){if(VM8!==void 0)return VM8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return VM8=p},{mode:_.Jz("kevlar_poly_si_batch_j076")?1:2});var qAd;var aCv;var Eqn;var YAq;var Fq=function(){return _.T.apply(this,arguments)||this};
_.Q(Fq,_.T);Fq.prototype.computeStyle=function(p){return p};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Fq.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],Fq.prototype,"style_",void 0);_.V([_.sD({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Fq);
_.l(Fq,"yt-channel-thumbnail-with-link-renderer",function(){if(YAq===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Eqn===void 0&&(Eqn=document.createElement("template"));var H=Eqn;S.call(J,H.content.cloneNode(!0),p.content.firstChild);YAq=p}p=YAq;return p},{mode:2});var v2=function(){return _.T.apply(this,arguments)||this};
_.Q(v2,_.T);v2.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"}}}};
v2.prototype.computeTitleStyle=function(p){return p||null};
v2.prototype.computeAvatarStyle=function(p){return p||null};
v2.prototype.computeShowNavigationButton=function(p,J){return!(p==null||!p.navigationButton||J)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],v2.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.Y("design:type",String)],v2.prototype,"titleStyle",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.Y("design:type",String)],v2.prototype,"avatarStyle",void 0);_.V([_.N(),_.Y("design:type",Boolean)],v2.prototype,"hideNavigationButton",void 0);_.V([_.gw({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],v2);
_.l(v2,"ytd-rich-list-header-renderer",function(){if(aCv!==void 0)return aCv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return aCv=p},{mode:_.Jz("kevlar_poly_si_batch_j058")?1:2});var fF=function(){return _.T.apply(this,arguments)||this};
_.Q(fF,_.T);fF.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]]"}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],fF.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],fF.prototype,"isSearch",void 0);_.V([_.gw({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],fF);
_.l(fF,"ytd-preview-card-renderer",function(){if(qAd!==void 0)return qAd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return qAd=p},{mode:1});var rtL;var Oz=function(){return _.T.apply(this,arguments)||this};
_.Q(Oz,_.T);Oz.prototype.configureRendererStamper=function(){return{"data.menu":YB}};
Oz.prototype.dataChanged=function(){var p=this.get("colorExtractionPalette.section1Color",this.data);p=_.yi(p);_.K3(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":p})};
Oz.prototype.computeCardStyle=function(p){return this.get("style.value",p)||null};
Oz.prototype.dataChanged=Oz.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],Oz.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Oz.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.Y("design:type",String)],Oz.prototype,"cardStyle",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oz.prototype,"dataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Oz);
_.l(Oz,"ytd-compact-channel-recommendation-card-renderer",function(){if(rtL!==void 0)return rtL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return rtL=p},{mode:1});var jnm;var w18;var AO=function(){var p=_.T.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};
_.Q(AO,_.T);_.R=AO.prototype;_.R.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.R.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.R.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var p=_.Jn(this.hostElement),J=p.childNodes,S=document.createDocumentFragment(),H=p.childNodes.length-1;H>=0;H--)_.Jn(S).appendChild(J[H]);_.z("enable_shadydom_free_scoped_node_methods")?_.Sh(this.hostElement).appendChild(S):p.appendChild(S)}};
_.R.ready=function(){var p=this;_.dw(function(){p.initChildrenObserver()},1)};
_.R.attached=function(){var p;(p=this.resizeObserver)==null||p.observe(this.content)};
_.R.detached=function(){this.detachObserver()};
_.R.toggle=function(p,J){this.canToggle&&(this.isToggled=J,_.cf(this.hostElement,"yt-refit"),p&&p.stopPropagation())};
_.R.reset=function(){this.childrenChanged()};
_.R.onIronResize=function(){this.recomputeOnResize&&!_.z("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.R.computeIsMoreVisible=function(p,J){return p&&!J};
_.R.computeShouldUseNumberOfLines=function(p){try{return!!p&&window.CSS.supports("-webkit-line-clamp","1")}catch(J){}return!1};
_.R.computeIsLessVisible=function(p,J){return p&&J};
_.R.observeCollapsedHeightAndMaxLines=function(){var p=this.collapsedHeight,J=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.K3(this.hostElement,{"--ytd-expander-max-lines":""+J,"--ytd-expander-collapsed-height":""}):_.K3(this.hostElement,{"--ytd-expander-collapsed-height":p+"px","--ytd-expander-max-lines":""})};
_.R.handleMoreTap=function(p){this.disableToggle||(_.cf(this.hostElement,"yt-expander-more-tapped"),this.toggle(p,!0))};
_.R.handleLessTap=function(p){_.cf(this.hostElement,"yt-expander-less-tapped");this.toggle(p,!1)};
_.R.initChildrenObserver=function(){var p=this;this.observer=new MutationObserver(function(){p.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.z("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.nb(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var J;(J=p.resizeThrottle)==null||J.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.R.childrenChanged=function(){var p=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Jm(function(){p.canToggleJobId=0;p.calculateCanCollapse()})}))};
_.R.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};
_.R.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.R.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("collapsed-changed",this.collapsed))};
_.R.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("is-toggled-changed",this.isToggled))};
_.R.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("can-toggle-changed",this.canToggle))};
_.vh.Object.defineProperties(AO.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
AO.prototype.canToggleChangedForBinding=AO.prototype.canToggleChangedForBinding;AO.prototype.isToggledChangedForBinding=AO.prototype.isToggledChangedForBinding;AO.prototype.collapsedChangedForBinding=AO.prototype.collapsedChangedForBinding;AO.prototype.observeCollapsedHeightAndMaxLines=AO.prototype.observeCollapsedHeightAndMaxLines;AO.prototype.onIronResize=AO.prototype.onIronResize;AO.prototype.reversedChanged=AO.prototype.reversedChanged;AO.prototype.toggledChanged=AO.prototype.toggledChanged;
AO.prototype.alwaysToggleableChanged=AO.prototype.alwaysToggleableChanged;_.V([_.B(_.wL),_.Y("design:type",Object)],AO.prototype,"ironResizableBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],AO.prototype,"alignAuto",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],AO.prototype,"collapsed",void 0);_.V([_.N(),_.Y("design:type",Object)],AO.prototype,"isToggled",void 0);_.V([_.N(),_.Y("design:type",Object)],AO.prototype,"alwaysCollapsed",void 0);
_.V([_.N(),_.Y("design:type",Object)],AO.prototype,"canToggle",void 0);_.V([_.N(),_.Y("design:type",Object)],AO.prototype,"collapsedHeight",void 0);_.V([_.N(),_.Y("design:type",Object)],AO.prototype,"disableToggle",void 0);_.V([_.N(),_.Y("design:type",Object)],AO.prototype,"alwaysToggleable",void 0);_.V([_.N(),_.Y("design:type",Object)],AO.prototype,"reversed",void 0);_.V([_.N(),_.Y("design:type",Number)],AO.prototype,"maxNumberOfLines",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.Y("design:type",Object)],AO.prototype,"shouldUseNumberOfLines",void 0);_.V([_.N(),_.Y("design:type",Object)],AO.prototype,"recomputeOnResize",void 0);_.V([_.FM("#content"),_.Y("design:type",HTMLDivElement)],AO.prototype,"content",void 0);_.V([_.An("alwaysToggleable"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AO.prototype,"alwaysToggleableChanged",null);
_.V([_.An("isToggled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AO.prototype,"toggledChanged",null);_.V([_.U("canToggleJobId"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AO.prototype,"isResetting",null);_.V([_.bO("reversed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AO.prototype,"reversedChanged",null);
_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AO.prototype,"onIronResize",null);_.V([_.bO("maxNumberOfLines","collapsedHeight"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AO.prototype,"observeCollapsedHeightAndMaxLines",null);_.V([_.bO("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AO.prototype,"collapsedChangedForBinding",null);
_.V([_.bO("isToggled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AO.prototype,"isToggledChangedForBinding",null);_.V([_.bO("canToggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AO.prototype,"canToggleChangedForBinding",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-expander"})],AO);
_.l(AO,"ytd-expander",function(){if(w18!==void 0)return w18;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return w18=p},{mode:1});var P2=function(){return _.T.apply(this,arguments)||this};
_.Q(P2,_.T);P2.prototype.computeIsCarousel=function(p){return!!p.isCarousel};
P2.prototype.observeLightsourcePalette=function(){var p,J=(p=this.data)==null?void 0:p.vibrantsourceColorPaletteData;J&&_.eK(this.hostElement,J)};
P2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
P2.prototype.observeLightsourcePalette=P2.prototype.observeLightsourcePalette;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],P2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],P2.prototype,"data",void 0);_.V([_.N({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],P2.prototype,"isCarousel",void 0);
_.V([_.bO("data.vibrantsourceColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P2.prototype,"observeLightsourcePalette",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],P2);
_.l(P2,"ytd-media-upsell-renderer",function(){if(jnm!==void 0)return jnm;var p=document.createElement("template");_.C(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="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return jnm=p},{mode:2});var xKq;var zK=function(){var p=_.T.apply(this,arguments)||this;p.JSC$15224_playerEvents=new Map;p.listeningToPlayer=!1;p.startX=0;p.active=!1;p.shouldShowButtons=_.z("web_buttons_hidden_killswitch");p.isHighlighted=!1;p.useHighlightStyling=_.z("web_enable_deeper_metadata_highlight_styling");p.enableProblemWalkthrough=_.z("problem_walkthrough_sd");return p};
_.Q(zK,_.T);_.R=zK.prototype;
_.R.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}}}}}};
_.R.created=function(){this.JSC$15224_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.R.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.n3(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.n3(this,this.onActiveUpdate))};
_.R.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.n3(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.n3(this,this.onActiveUpdate))};
_.R.onDataChanged=function(){this.removePlayerListeners()};
_.R.onColorPaletteChange=function(){var p={},J;if(_.kt()==="USER_INTERFACE_THEME_DARK"&&((J=this.data)==null?0:J.darkColorPalette)){var S=this.data.darkColorPalette;p["--ytd-macro-markers-list-item-background-color"]=_.Bt(this.get("section2Color",S))}else{var H;_.kt()==="USER_INTERFACE_THEME_LIGHT"&&((H=this.data)==null?0:H.lightColorPalette)&&(S=this.data.lightColorPalette,p["--ytd-macro-markers-list-item-background-color"]=_.Bt(this.get("section3Color",S)))}S?(p["--ytd-macro-markers-list-item-title-color"]=
_.Bt(this.get("primaryTitleColor",S)),p["--ytd-macro-markers-list-item-secondary-color"]=_.Bt(this.get("secondaryTitleColor",S)),p["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Bt(this.get("section1Color",S)),this.customButtonProperties={customColors:{color:_.Bt(this.get("primaryTitleColor",S))}},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);_.K3(this.hostElement,p)};
_.R.onEndpointMouseDown=function(p){this.startX=p.clientX};
_.R.onEndpointClick=function(p){var J=this,S,H,M;return _.G(function(X){if(X.nextAddress==1){if(J.startX!==p.clientX)return p.preventDefault(),X.return();J.data&&J.ytRendererBehavior.logExplicitClick(J.data);if(!J.seekWithAnimationOnClick)return X.jumpTo(0);if(p.button!==0||p.shiftKey||p.altKey||p.metaKey||p.ctrlKey||_.jK(_.Er(p),J.hostElement,["BUTTON".toString()]))return X.return();p.stopPropagation();p.preventDefault();return J.data?X.yield(_.Lb().getPlayerPromise(),3):X.return()}S=X.yieldResult;
M=(H=_.e(J.data.onTap,_.lj))==null?void 0:H.startTimeSeconds;M!==void 0&&S.seekToTimeWithAnimation(M*1E3,_.E4(J.data.title));_.UK(X)})};
_.R.computeLayout=function(p){return p};
_.R.computeIsHighlighted=function(p){return!!p};
_.R.computeCarouselType=function(p){return p};
_.R.hideCarousel=function(p){return this.hideThumbnail(p)};
_.R.hideThumbnail=function(p){return this.enableProblemWalkthrough&&p!==null&&p==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.R.onRepeatButtonToggle=function(p){var J=this;p.detail.toggled&&_.Lb().getPlayerPromise().then(function(S){J.ytPlayerListenerBehavior.listenToPlayerEvents(S,J.JSC$15224_playerEvents);J.listeningToPlayer=!0})};
_.R.onLoopRangeChange=function(p){var J=_.Jn(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(J){var S=J.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",J.polymerController.data);if(S){var H=Number(S.endTimeMs);if(Number(S.startTimeMs)!==(p==null?void 0:p.startTimeMs)||H!==(p==null?void 0:p.endTimeMs))J.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.R.removePlayerListeners=function(){var p=this;this.listeningToPlayer&&_.Lb().getPlayerPromise().then(function(J){p.ytPlayerListenerBehavior.unlistenFromPlayerEvents(J,p.JSC$15224_playerEvents);p.listeningToPlayer=!1})};
_.R.onActiveUpdate=function(p){this.active=p.detail.active};
zK.prototype.onColorPaletteChange=zK.prototype.onColorPaletteChange;zK.prototype.onDataChanged=zK.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],zK.prototype,"ytPlayerListenerBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],zK.prototype,"data",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],zK.prototype,"useCustomColors",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],zK.prototype,"active",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],zK.prototype,"shouldShowButtons",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.Y("design:type",String)],zK.prototype,"layout",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.Y("design:type",Object)],zK.prototype,"isHighlighted",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],zK.prototype,"useHighlightStyling",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],zK.prototype,"enableProblemWalkthrough",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.Y("design:type",String)],zK.prototype,"carouselType",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],zK.prototype,"useColorSampling",void 0);_.V([_.N(),_.Y("design:type",Boolean)],zK.prototype,"seekWithAnimationOnClick",void 0);_.V([_.N(),_.Y("design:type",Object)],zK.prototype,"customButtonProperties",void 0);
_.V([_.FM("#repeat-button"),_.Y("design:type",HTMLElement)],zK.prototype,"repeatButton",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zK.prototype,"onDataChanged",null);_.V([_.bO("data.lightColorPalette","data.darkColorPalette"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zK.prototype,"onColorPaletteChange",null);
_.V([_.gw({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],zK);
_.l(zK,"ytd-macro-markers-list-item-renderer",function(){if(xKq!==void 0)return xKq;var p=document.createElement("template");_.C(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="[[hideCarousel(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="[[!hideCarousel(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(_.r().content.cloneNode(!0),
p.content.firstChild);return xKq=p},{mode:1});var ctE;var ICn;var eZ=function(){return _.T.apply(this,arguments)||this};
_.Q(eZ,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],eZ.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],eZ);
_.l(eZ,"ytd-title-and-button-list-header-renderer",function(){if(ICn!==void 0)return ICn;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ICn=p},{mode:1});var L38;var pXm=new _.ni("BUTTON_RENDERER_TOKEN");_.W2=_.d(function(p){var J=_.vO().resolve(pXm);return _.m(J,Object.assign({},p,{overrides:p.buttonOverrides}))},"Wa");var JCn=_.d(function(p){var J=p.data,S=_.rw(p.useSquareAspectRatio,!1);return _.m("dismissed-mini-game-card-view-model",null,_.m(_.v,{cond:function(){var H,M;return(H=J().responseText)==null?void 0:(M=H.runs)==null?void 0:M.length},
then:function(){var H={};return _.m("div",{class:_.XB("yt-mini-game-card-view-model__dismissed-card",(H["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!S()},H["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.z("web_game_card_force_2_by_3")},H["yt-mini-game-card-view-model--dismissed-square-card"]=S,H))},_.m("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.m(_.v,{cond:function(){return J().responseText.runs[0].text},
then:function(M){return _.m("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:M},M)}}),_.m(_.AH,{data:function(){return J().buttons}},{buttonRenderer:_.W2,
buttonViewModel:_.D0})))}}))},"Xa");var S_E=_.d(function(p){var J=p.data;return _.m("br-nz-badge-shape",{class:_.XB(function(){return Ogs(J().brNzRatingBadgeType)}),
role:function(){return J().accessibilityText?"img":void 0},
"aria-label":function(){return J().accessibilityText}},function(){var S;
return(S=J())==null?void 0:S.text})},"Ya");_.Qy=_.d(function(p){var J=function(){var S=p.data(),H,M,X,Z;if(S){var n=!((H=p.workaroundShortsIsThumbnailBadge)==null||!H.call(p));H=(M=p.modern)==null?void 0:M.call(p);M=(X=p.numBadgesInRow)==null?void 0:X.call(p);X=(Z=p.clipTextOverflow)==null?void 0:Z.call(p);var b;a:switch(S.badgeStyle){case "BADGE_OVERLAY":Z=!0;break a;default:Z=!1}S={type:n?17:AEW(S.badgeStyle),brNzRatingBadgeType:PJ4(S.badgeStyle),text:S.badgeText,icon:S.iconName,isOverlay:Z,modern:H||_.z("web_modern_badge_view_model"),accessibilityText:S.accessibilityLabel||
((b=_.e(S.rendererContext,_.PY))==null?void 0:b.label),numBadgesInRow:M,clipTextOverflow:X}}else S=void 0;return S};
return _.m("yt-badge-view-model",{class:_.XB("ytBadgeViewModelHost",p.class)},_.m(_.ue,null,_.m(_.Nz,{when:function(){var S;return!((S=J())==null||!S.brNzRatingBadgeType)}},function(){return _.m(S_E,{data:function(){return J()}})}),_.m(_.Nz,{when:function(){return!!J()&&!J().brNzRatingBadgeType}},function(){return _.m(_.bG,{data:function(){return J()}})})))},"Za");
_.Qy.idomCompat=!0;var nK4=_.d(function(p){p=_.jh(p,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var J=p.data,S=p.useFullWidth,H=p.isDesktopWeb,M=p.addSearchResultTopMargin,X=function(){return J().layout},Z=function(){return J().title},n=function(){return J().metadataText?J().metadataText:J().genre},b=function(){return J().channelName},F=function(){return J().image},f=function(){return J().colorPalette},O=function(){return J().actionButton},A=function(){return J().overflowButton},
P=function(){return J().avatar},W=function(){return J().ageRating},y=function(){var E={};
E=_.XB("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(E["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return H()},E));
return _.m("div",{class:E},_.m(H4d,{imageData:F,colorPalette:f}),_.m(MG8,{onTap:function(){return J().onTap},
imageData:F,accessibilityText:function(){return J().accessibilityText},
overlayBadgeText:function(){return J().overlayBadgeText},
iconName:function(){return J().iconName},
unplayableInlinePlaybackIconName:function(){return J().unplayableInlinePlaybackIconName},
isDesktopWeb:H}),_.m(_.v,{cond:function(){return!H()},
then:function(){return _.m(_.fV,null,_.m(XXn,{layout:X,colorPalette:f,isDesktopWeb:H,overflowButton:A,avatar:P,onTap:function(){return J().onTap},
genre:n,title:Z,channelName:b}),_.m(i4L,{actionButton:O}))}}))},t=function(){var E={};
E=_.XB((E["yt-mini-game-card-view-model--search-result-desktop"]=function(){return H()},E["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!H()},E["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return M()},E));
return _.m("div",{class:E},y(),_.m(R7L,{description:function(){return J().description},
isDesktopWeb:H,title:Z,genre:n,onTap:function(){return J().onTap},
actionButton:O,overflowButton:A,avatar:P,channelName:b}))},D=function(){var E={};
E=_.XB("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(E["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return H()},E["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return H()&&J().width===135},E["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return H()},E["yt-mini-game-card-view-model--big-metadata-font"]=function(){return J().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},E["yt-mini-game-card-view-model--use-full-width"]=
function(){return S()},E["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.z("web_game_card_force_2_by_3")},E));
return _.m("div",{class:E},_.m(KPp,{colorPalette:f,isDesktopWeb:H,onTap:function(){return J().onTap},
accessibilityText:function(){return J().accessibilityText},
overlayBadgeText:function(){return J().overlayBadgeText},
iconName:function(){return J().iconName},
unplayableInlinePlaybackIconName:function(){return J().unplayableInlinePlaybackIconName},
actionButton:O,imageData:F}),_.m(XXn,{layout:X,colorPalette:f,isDesktopWeb:H,overflowButton:A,avatar:P,onTap:function(){return J().onTap},
genre:n,title:Z,channelName:b}),_.m(_.v,{cond:W,then:function(a){return _.m(Z48,{ageRating:a})}}))},k=function(){var E={};
E=_.XB("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(E["yt-mini-game-card-view-model--square-card-desktop"]=function(){return H()},E["yt-mini-game-card-view-model--use-full-width"]=function(){return S()},E));
return _.m("div",{class:E},_.m(MG8,{onTap:function(){return J().onTap},
imageData:F,accessibilityText:function(){return J().accessibilityText},
overlayBadgeText:function(){return J().overlayBadgeText},
iconName:function(){return J().iconName},
unplayableInlinePlaybackIconName:function(){return J().unplayableInlinePlaybackIconName},
isDesktopWeb:H}),_.m(XXn,{layout:X,colorPalette:f,isDesktopWeb:H,overflowButton:A,avatar:P,onTap:function(){return J().onTap},
genre:n,title:Z,channelName:b}),_.m(_.v,{cond:W,then:function(a){return _.m(Z48,{ageRating:a})}}))};
return _.m("mini-game-card-view-model",{class:p.className},_.m(_.ue,null,_.m(_.Nz,{when:function(){return X()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return D()}),_.m(_.Nz,{when:function(){return X()==="MINI_APP_LAYOUT_SQUARE"}},function(){return k()}),_.m(_.Nz,{when:function(){return X()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return t()})))},"$a");
nK4.idomCompat=!0;var i4L=_.d(function(p){var J=_.rw(p.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.m(_.AH,{data:p.actionButton},{buttonViewModel:function(S){return _.m("div",{class:J},_.m(_.D0,{data:S.data}))}})},"ab"),MG8=_.d(function(p){var J=p.onTap;
var S=p.imageData;var H=p.accessibilityText;var M=p.overlayBadgeText;var X=p.iconName;var Z=p.unplayableInlinePlaybackIconName;p=p.isDesktopWeb;return _.m(_.yD,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:J},_.m(_.a4,{data:S,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(H==null?void 0:H())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.m(G8n,{overlayBadgeText:M,iconName:X,unplayableInlinePlaybackIconName:Z,isDesktopWeb:p}))},"bb"),G8n=_.d(function(p){var J=p.overlayBadgeText;
var S=p.iconName;var H=p.unplayableInlinePlaybackIconName;var M=p.isDesktopWeb;return _.m("div",{class:"yt-mini-game-card-view-model__badge-container"},_.m(_.v,{cond:S,then:function(X){return _.m("div",{class:"yt-mini-game-card-view-model__badge"},_.m("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.m(_.bn,{icon:X,className:"yt-mini-game-card-view-model__icon",size:12}),_.m("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},J)))}}),_.m(_.v,{cond:function(){return!S()&&
J()},
then:function(){return _.m("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},J)}}),_.m(_.v,{cond:function(){return H()&&M()},
then:function(){return _.m("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.m(_.bn,{icon:H,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),H4d=_.d(function(p){var J=p.colorPalette;
var S=p.imageData;var H=function(){return J().vibrantColorPalette?J().vibrantColorPalette.section2Color:J().sectionTwoColor};
return _.m(_.fV,null,_.m("div",{class:"yt-mini-game-card-view-model__background-base",style:_.G7({"background-color":function(){return Ur(H(),"1")}})}),_.m("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.G7({"background-image":function(){return"url("+S().sources[0].url+")"}})}),_.m("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.G7({background:function(){return"linear-gradient(180deg,\n    "+Ur(H(),".8")+" 0%,\n    "+Ur(H(),".4")+" 25%,\n    "+Ur(J().vibrantColorPalette?J().vibrantColorPalette.section4Color:J().sectionFourColor,".8")+" 100%)"}})}))},"db"),XXn=_.d(function(p){var J=p.layout;
var S=p.colorPalette;var H=p.overflowButton;var M=p.avatar;var X=p.onTap;var Z=p.title;var n=p.channelName;var b=p.genre;var F=function(){var f;return J()!=="MINI_APP_LAYOUT_SQUARE"&&((f=S())==null?0:f.textPrimaryColor)?"color: "+Ur(S().textPrimaryColor,".7"):""};
return _.m("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.m(_.v,{cond:M,then:function(){return _.m("div",{class:"yt-mini-game-card-view-model__avatar"},_.m(_.AH,{data:M},{avatarViewModel:_.iF}))}}),_.m(_.yD,{command:X,
className:"yt-mini-game-card-view-model__metadata-details"},_.m("h3",{class:"yt-mini-game-card-view-model__title",title:Z},Z),_.m(_.v,{cond:M,then:function(){return _.m("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.m("span",{class:"yt-mini-game-card-view-model__genre",title:n,style:F},n),_.m("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:F},b))},
else:function(){return _.m("span",{class:"yt-mini-game-card-view-model__genre",title:b},b)}})),_.m("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.m(_.AH,{data:H},{buttonViewModel:function(f){var O=f.data;
return _.m(_.D0,{data:function(){return Object.assign({},O(),{customFontColor:J()==="MINI_APP_LAYOUT_SINGLETON"?O().customFontColor:void 0})}})}})))},"eb"),KPp=_.d(function(p){var J=p.colorPalette;
var S=p.isDesktopWeb;var H=p.onTap;var M=p.accessibilityText;var X=p.overlayBadgeText;var Z=p.iconName;var n=p.unplayableInlinePlaybackIconName;var b=p.actionButton;p=p.imageData;return _.m("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.m(H4d,{imageData:p,colorPalette:J}),_.m(MG8,{onTap:H,imageData:p,accessibilityText:M,overlayBadgeText:X,iconName:Z,unplayableInlinePlaybackIconName:n,isDesktopWeb:S}),_.m(_.v,{cond:function(){return b==null?void 0:b()},
then:function(){return _.m(i4L,{actionButton:b})}}))},"fb"),R7L=_.d(function(p){var J=p.description;
var S=p.isDesktopWeb;var H=p.title;var M=p.genre;var X=p.onTap;var Z=p.actionButton;var n=p.overflowButton;var b=p.avatar;p=p.channelName;var F={};F=_.XB("yt-mini-game-card-view-model--search-result-metadata-wrapper",(F["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=S,F["yt-mini-game-card-view-model--show-unplayable-on-hover"]=S,F["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!S()},F));
var f={};f=_.XB("yt-mini-game-card-view-model__search-result-info-row",(f["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!S()},f));
return _.m("div",{class:F},_.m("div",{class:f},_.m(_.yD,{command:X,className:"yt-mini-game-card-view-model__metadata-details"},_.m("h3",{class:"yt-mini-game-card-view-model__title",title:H},H),_.m("span",{class:"yt-mini-game-card-view-model__genre",title:M},M)),_.m(i4L,{actionButton:Z,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.m("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.m(_.AH,{data:n},{buttonViewModel:_.D0}))),_.m("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.m("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.m("div",{class:"yt-mini-game-card-view-model__avatar"},_.m(_.AH,{data:b},{avatarViewModel:function(O){var A=O.data;return _.m(_.iF,{data:function(){return Object.assign({},A(),{avatarImageSize:S()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.m(_.yD,{command:X,
className:"yt-mini-game-card-view-model__description"},_.m("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},p)),_.m(_.yD,{command:X,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.m("div",null)))),_.m(_.v,{cond:S,then:function(){return _.m(_.yD,{command:X,className:"yt-mini-game-card-view-model__description"},J)}}))},"gb"),Z48=_.d(function(p){var J=p.ageRating;
return _.m("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.m(_.a4,{data:function(){return{sources:[{url:J().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.m(_.Qy,{data:function(){return{badgeText:J().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"hb");_.ci(nK4,"mini-game-card-view-model",{props:{data:_.fD,className:_.fD,useFullWidth:_.fD,isDesktopWeb:_.fD,addSearchResultTopMargin:_.fD}});_.ci(JCn,"dismissed-mini-game-card-view-model",{props:{data:_.fD,useSquareAspectRatio:_.fD}});var CF=function(){var p=_.T.apply(this,arguments)||this;p.isSearch=!1;p.isRichGrid=!1;return p};
_.Q(CF,_.T);_.R=CF.prototype;_.R.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.R.dismissibleItemOnYtServiceRequestSent=function(p,J){J.actions&&this.dismissibleItemProcessActions(p,J.actions)};
_.R.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.R.dataChanged=function(){this.dismissibleItemReset()};
_.R.dismissibleItemProcessActions=function(p,J){for(var S=0;S<J.length;S++){var H=J[S];_.e(H,_.Vs)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.e(H,_.Vs)),p.stopPropagation())}};
_.R.dismissibleItemHandleReplaceEnclosingAction=function(p){this.dismissedRenderer=p.item;this.isDismissed=!0};
_.vh.Object.defineProperties(CF.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var p;return!!this.data&&!((p=this.dismissedRenderer)==null?0:p.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.dismissedRenderer)==null||!p.notificationMultiActionRenderer)}}});
CF.prototype.dataChanged=CF.prototype.dataChanged;CF.prototype.dismissibleItemOnRequestSent=CF.prototype.dismissibleItemOnRequestSent;CF.prototype.dismissibleItemOnYtServiceRequestSent=CF.prototype.dismissibleItemOnYtServiceRequestSent;_.V([_.N(),_.Y("design:type",Object)],CF.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],CF.prototype,"isSearch",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],CF.prototype,"isDismissed",void 0);
_.V([_.N(),_.Y("design:type",Object)],CF.prototype,"dismissedRenderer",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],CF.prototype,"isRichGrid",void 0);_.V([_.U("data.layout"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],CF.prototype,"useSquareAspectRatio",null);_.V([_.U("data","dismissedRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],CF.prototype,"showCard",null);
_.V([_.U("data","dismissedRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],CF.prototype,"showDismissed",null);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],CF.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.V([_.GI("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],CF.prototype,"dismissibleItemOnRequestSent",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CF.prototype,"dataChanged",null);_.V([_.sD({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],CF);
_.l(CF,"ytd-mini-game-card-view-model",function(){if(L38!==void 0)return L38;var p=document.createElement("template");_.C(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<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return L38=p},{mode:_.Jz("kevlar_poly_si_batch_j081")?1:2});var b4d;var mmL;var yy=function(){return _.fz.apply(this,arguments)||this};
_.Q(yy,_.fz);yy.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
yy.prototype.getContinuationUrl=function(p){var J={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(J.itct=this.data.clickTrackingParams);return _.KQ(p,J)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yy.prototype,"data",void 0);_.V([_.sD({is:"yt-reload-continuation",noInjection:!0})],yy);var FPE;var vKo;var B2=function(){var p=_.T.apply(this,arguments)||this;p.notificationData={};return p};
_.Q(B2,_.T);_.R=B2.prototype;_.R.isMenuExpanded=function(p){return p&&p.length<=1?"undefined":"false"};
_.R.dataChanged_=function(){this.selected=void 0;var p=this.computeSelectedIndex_(this.data);p>=0&&(this.selected=p);p=this.data&&this.data.length>1;_.XM(this.hostElement,"has-items",p);_.Jn(this.hostElement).querySelector("#label").tabIndex=p?0:-1};
_.R.onDropdownOpen=function(){var p=_.C1();if(this.parentTrackingParams&&this.data){var J=_.Az(this.parentTrackingParams);this.data.forEach(function(S){p&&J&&S.trackingParams&&(S=_.Az(S.trackingParams),_.kO(p,J,S),_.dI(p,[S]))})}else this.parentTrackingParams||_.xQ(new _.TG("No parent tracking params passed in for yt-dropdown-menu."))};
_.R.hasNotification=function(p){var J;if(p.targetId&&((J=this.notificationData)==null?0:J.targetId)){var S;return p.targetId===((S=this.notificationData)==null?void 0:S.targetId)}};
_.R.computeSelectedIndex_=function(p){if(p)for(var J=0,S=p.length;J<S;J++)if(p[J].selected)return J;return-1};
_.R.computeLabel_=function(p){return this.data&&p!=void 0?this.data[p].title:""};
_.R.computeShowIcon_=function(p,J){return!J&&!!p};
_.R.computeVerticalOffset_=function(p){return p?36:0};
_.R.computeEndpoint_=function(p){return p.endpoint||p.navigationEndpoint};
_.R.onLabelClick_=function(p){this.data&&this.data.length<=1?p.stopPropagation():this.menuExpanded="true"};
_.R.onIronActivate_=function(p){p=p.detail.item;var J=_.Jn(this.hostElement).querySelector("#repeat").itemForElement(p);if(J&&J.trackingParams){var S=_.C1(),H=_.Az(J.trackingParams);S&&_.l7(S,H)}if(J&&J.serviceEndpoint)_.z("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(J.serviceEndpoint):_.pl(this.hostElement,[J.serviceEndpoint]),_.cf(this.hostElement,"yt-playlist-reloading");else a:{if((J=p.querySelector("yt-supported-renderers"))&&
(J=J.rendererElement)&&J.is=="yt-reload-continuation"){J.trigger();break a}(p=p.querySelector("yt-reload-continuation"))&&p.trigger()}};
_.R.onTap_=function(p){p.preventDefault()};
_.R.onItemTap_=function(p){this.ytEndpointBehavior.onEndpointTap_(p)};
_.R.onLinkFocus_=function(p){try{var J=p.target}catch(H){}if(J){var S=J.querySelector("tp-yt-paper-item");S&&_.uO(this,"focus",function(){S.focus()})}};
_.R.onMenuClose_=function(){this.menuExpanded="false"};
_.R.isLabelIconActive_=function(p){return p==="true"};
_.R.computeHasSubtitle_=function(p){return!!p};
_.R.computeHrefForItem_=function(p){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(p))};
_.R.updateSelectedFromBinding=function(p){this.selected=p.detail.value};
_.vh.Object.defineProperties(B2.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
B2.prototype.onMenuClose_=B2.prototype.onMenuClose_;B2.prototype.onTap_=B2.prototype.onTap_;B2.prototype.onIronActivate_=B2.prototype.onIronActivate_;B2.prototype.onDropdownOpen=B2.prototype.onDropdownOpen;B2.prototype.dataChanged_=B2.prototype.dataChanged_;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],B2.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.dF.YtEndpointBehavior),_.Y("design:type",Object)],B2.prototype,"ytEndpointBehavior",void 0);
_.V([_.N(),_.Y("design:type",Array)],B2.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],B2.prototype,"parentTrackingParams",void 0);_.V([_.N(),_.Y("design:type",Object)],B2.prototype,"selected",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],B2.prototype,"useLabel",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],B2.prototype,"useComputedAriaLabel",void 0);_.V([_.N(),_.Y("design:type",String)],B2.prototype,"icon",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],B2.prototype,"iconLabel",void 0);_.V([_.N(),_.Y("design:type",String)],B2.prototype,"ariaLabel",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],B2.prototype,"disabled",void 0);_.V([_.N({computed:"isMenuExpanded(data)"}),_.Y("design:type",String)],B2.prototype,"menuExpanded",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],B2.prototype,"closeOnActivate",void 0);
_.V([_.N({reflectToAttribute:!0,value:_.z("web_modern_buttons")}),_.Y("design:type",Boolean)],B2.prototype,"modernButtons",void 0);_.V([_.N(),_.Y("design:type",Object)],B2.prototype,"notificationData",void 0);_.V([_.U("ariaLabel, selected"),_.N(),_.Y("design:type",String),_.Y("design:paramtypes",[])],B2.prototype,"computedAriaLabel",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B2.prototype,"dataChanged_",null);
_.V([_.GI("paper-dropdown-open"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],B2.prototype,"onDropdownOpen",null);_.V([_.GI("iron-activate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],B2.prototype,"onIronActivate_",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],B2.prototype,"onTap_",null);
_.V([_.GI("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],B2.prototype,"onMenuClose_",null);_.V([_.sD({is:"yt-dropdown-menu",disableElementRegistration:!0})],B2);
_.l(B2,"yt-dropdown-menu",function(){if(vKo===void 0){var p=document.createElement("template");_.C(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$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;FPE===void 0&&(FPE=document.createElement("template"));var H=FPE;S.call(J,H.content.cloneNode(!0),p.content.firstChild);vKo=p}p=vKo;return p},{mode:2});var Uz=function(){var p=_.T.apply(this,arguments)||this;p.hasNotification=!1;return p};
_.Q(Uz,_.T);Uz.prototype.computeId=function(p){return p};
Uz.prototype.computeHorizontalAlign=function(p){return p?"right":"left"};
Uz.prototype.computeAccessibilityLabel=function(p){var J,S;return((J=p.accessibility)==null?void 0:(S=J.accessibilityData)==null?void 0:S.label)||null};
Uz.prototype.notificationDataChanged=function(){var p;this.hasNotification=!!this.notificationData&&!((p=this.data)==null?0:p.icon)};
Uz.prototype.notificationDataChanged=Uz.prototype.notificationDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RO.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],Uz.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Uz.prototype,"data",void 0);_.V([_.N({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",String)],Uz.prototype,"id",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Uz.prototype,"isRightAligned",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Uz.prototype,"disabled",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Uz.prototype,"closeOnActivate",void 0);_.V([_.N(),_.Y("design:type",Object)],Uz.prototype,"notificationData",void 0);_.V([_.N(),_.Y("design:type",Object)],Uz.prototype,"hasNotification",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Uz.prototype,"useComputedAriaLabel",void 0);_.V([_.bO("notificationData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uz.prototype,"notificationDataChanged",null);_.V([_.sD({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Uz);
_.l(Uz,"yt-sort-filter-sub-menu-renderer",function(){if(mmL===void 0){var p=document.createElement("template");_.C(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-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;b4d===void 0&&(b4d=document.createElement("template"));var H=b4d;S.call(J,H.content.cloneNode(!0),p.content.firstChild);mmL=p}p=mmL;return p},{mode:2});var fAd=_.d(function(p){var J=p.data;var S=_.Kb(function(){var X=J().onTap;(X=_.e(X,_.Ua))&&_.vO().resolve(_.Ov).resolveCommand(X);return!1}),H=function(){return{sources:[{url:J().thumbnailUrl,
width:120,height:90}]}},M=function(){return J().rating&&J().ratingA11yLabel&&J().reviewsCount&&J().reviewsCountA11yLabel};
return _.m("place-data-view-model",null,_.m(_.v,{cond:function(){return J().placeName&&J().placeCategory},
then:function(){return _.m("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":S},_.m(_.a4,{data:H,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.m(_.yD,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return J().onTap}},_.m("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return J().placeName}},function(){return J().placeName})),_.m("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.m(_.v,{cond:M,
then:function(){return _.m("div",{class:_.XB("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.m("span",{class:"score",title:function(){return J().ratingA11yLabel}},function(){return J().rating}),_.m("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.m(_.bn,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.m("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return J().reviewsCountA11yLabel}},function(){return J().reviewsCount}))},
else:function(){return _.m("div",{class:_.XB("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.m("div",{class:_.XB("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.m("span",{class:"category",
title:function(){return J().placeCategory}},function(){return J().placeCategory}))))}}))},"ib");
fAd.idomCompat=!0;_.ci(fAd,"place-data-view-model",{props:{data:_.fD}});var O48=new _.ni("INLINE_PLAYBACK_HOOK_TOKEN");var ACL=yI({sharedUi:wD4});_.uT=Bv(ACL)(ACL.sharedUi,{animatedThumbnailEnabledSelector:function(p){return p.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(p){return p.inlinePreviewEnabled},
currentPageTypeSelector:function(p){return p.currentPageType},
currentPageSubTypeSelector:function(p){return p.currentPageSubType},
persistentPanelVisibleSelector:function(p){return p.persistentPanelVisible}});var PYL=function(p){this.setActiveSlideIndex=p;this.jobIds=[];this.isSlideshowPlaying=!1},oK4=function(p,J){p.isSlideshowPlaying||(p.isSlideshowPlaying=!0,z7L(p),$mq(p,J,0))},z7L=function(p){_.SK(_.wg,function(){p.setActiveSlideIndex(0)},1)},$mq=function(p,J,S){p.jobIds.push(_.SK(_.wg,function(){var H=S<J-1?S+1:0;
p.setActiveSlideIndex(H);$mq(p,J,H)},1800))};var e7o,QiU;e7o=new _.ni("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.WP8=new _.ni("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");QiU=new _.ni("COMMON_MARK_VIEW_MODEL_TOKEN");var CY8=new _.ni("IMAGE_ON_LOAD_HANDLER_TOKEN");var yCn=_.d(function(p){return _.m("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.m(_.v,{cond:function(){var J;return(J=p.data())==null?void 0:J.thumbnail},
then:function(J){return _.m(_.a4,{data:J,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.B58=_.d(function(p){var J=p.data;var S=p.lockupExperiments;p={};return _.m("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.m("div",{class:_.XB("ytThumbnailOverlayButtonViewModelButton",(p.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var H;return S&&((H=S())==null?void 0:H.useLegacySizedIconButton)},p))},_.m(_.AH,{data:function(){return J().overlayButton}},{buttonViewModel:function(H){return _.m(_.D0,{data:H.data,
buttonOverrides:function(){var M;return S&&((M=S())==null?0:M.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.B58.idomCompat=!0;var Um8=_.d(function(p){return _.m("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Kb(function(J){J.preventDefault();return!1})},_.m(_.AH,{data:function(){return p.data().buttons}},{toggleButtonViewModel:function(J){return _.m("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.m(_.LD,{data:J.data}))}}))},"lb");
Um8.idomCompat=!0;var sim=_.d(function(p){var J=function(){var S;return((S=_.e(p.data().rendererContext,_.PY))==null?void 0:S.label)||""};
return _.m("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.m(_.v,{cond:function(){return p.data().image},
then:function(){return _.m("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.m(_.a4,{data:function(){return p.data().image},
alt:J}))}}),_.m(_.v,{cond:function(){return p.data().text},
then:function(){return _.m("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return p.data().text})}}))},"mb");var gKd;gKd=_.uT.animatedThumbnailEnabledSelector;_.sz=_.d(function(p){var J=[],S=function(){var A,P;return _.TRL((A=p.width)==null?void 0:A.call(p),(P=p.height)==null?void 0:P.call(p))},H=_.vO().resolve(_.F9(CY8)),M=_.nE("yt-thumbnail-view-model",function(){J.push("elRef.value set");
var A;(A=p.playbackRef)==null||A.call(p,{thumbnailElRef:M,thumbnail:p.data().image,thumbnailOverlays:p.data().overlays,thumbnailSize:S()})});
_.ad(function(){J.push("onInit");_.VY(function(){J.push("onCleanup")})});
var X=_.fb(gKd),Z=function(){var A,P;return(P=(A=p.aspectRatio)==null?void 0:A.call(p))!=null?P:0},n=function(){return(p.data().image?_.JKX(p.data().image):Z())<=1&&Z()===0},b=function(){return n()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},F=function(){M.value||_.xQ(new _.TG("Thumbnail elRef.value is null",J.join("\n")));
H&&M.value&&H(M.value)},f=function(){var A,P;
return((A=p.hovered)==null?void 0:A.call(p))&&S()!=="large"&&((P=p.data().overlays)==null?void 0:P.some(function(W){return _.e(W,CAo)}))},O={};
return _.m("yt-thumbnail-view-model",{class:_.XB("ytThumbnailViewModelHost",p.className,function(){return $NX(Z())},function(){var A,P;
a:{var W=S(),y=(A=p.disableRounding)==null?void 0:A.call(p);A=(P=p.isClip)==null?void 0:P.call(p);if(!y&&!A)switch(W){case "large":P="ytThumbnailViewModelLarge";break a;case "small":P="ytThumbnailViewModelSmall";break a;default:P="ytThumbnailViewModelMedium";break a}P=void 0}return P},(O.ytThumbnailViewModelCinematic=n,O)),
style:_.G7({"background-color":function(){var A,P=n()?(A=p.data().backgroundColor)==null?void 0:A.lightTheme:void 0;return P?Ur(P,"1"):void 0}}),
el:M},_.m(_.v,{cond:n,then:function(){return _.m("div",{class:"ytThumbnailViewModelBlurredImage"},_.m(_.a4,{data:function(){return p.data().image},
alt:"",contentMode:b,targetWidth:p.width,onload:F}))}}),_.m("div",{class:"ytThumbnailViewModelImage"},_.m(_.a4,{data:function(){return p.data().image},
alt:"",contentMode:b,targetWidth:p.width,onload:F}),null),_.m(_.AH,{data:function(){return f()?void 0:p.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:gqE,thumbnailOverlayBadgeViewModel:function(A){return _.m(_.tMn,{data:A.data,thumbnailSize:S,isClip:p.isClip})},
thumbnailBottomOverlayViewModel:function(A){return _.m(ytn,{data:A.data,thumbnailSize:S,isClip:p.isClip})},
thumbnailOverlayFullViewModel:sim,thumbnailOverlayButtonViewModel:function(A){return _.m(_.B58,{data:A.data,lockupExperiments:p.lockupExperiments})},
channelDisclosureViewModel:function(A){A=A.data;var P;return _.m("div",null,(P=_.vO().resolve(_.F9(e7o)))==null?void 0:P({data:A}))}}),_.m(_.AH,{data:function(){var A;
return((A=p.hovered)==null?0:A.call(p))?p.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(A){return _.m(Xq,{data:A.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Um8}),_.m(_.AH,{data:function(){var A;return((A=p.hovered)==null?0:A.call(p))&&X()?p.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:yCn}),_.m(_.v,{cond:p.isClip,then:function(){return _.m("div",{class:"ytPinkingNsHost"},_.m("svg",{class:"ytPinkingNsPinkingLeft"},_.m("defs",null,_.m("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.m("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.m("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.m("svg",{class:"ytPinkingNsPinkingRight"},_.m("defs",null,_.m("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.m("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.m("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.sz.idomCompat={callbacks:{playbackRef:!0}};var tGd=_.d(function(p){var J=_.K(_.eQ(-1,void 0,"RW2Ole")),S=J.next().value,H=J.next().value;_.ad(function(){var M=new PYL(H);oK4(M,p.data().thumbnails.length);_.VY(function(){if(M.isSlideshowPlaying){M.isSlideshowPlaying=!1;for(var X=M.jobIds,Z=0,n=X.length;Z<n;Z++)_.wg.cancelJob(X[Z]);M.jobIds.length=0}})});
return _.m("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.m(_.AH,{data:function(){return p.data().thumbnails}},{thumbnailViewModel:function(M,X){return _.m("div",{class:function(){var Z=!p.data().primaryThumbnail,n=X(),b=S(),F=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
Z&&n===0&&F.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");n<=b&&F.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return F.join(" ")}},_.m(_.sz,{data:M.data,
disableRounding:p.disableRounding}))}}))},"ob");
tGd.idomCompat=!0;var onk=new _.ni("DWELL_DETECTOR_REGISTRY_TOKEN");var Dm8=_.d(function(p){var J=eAg(p.triggeringElement),S=function(){return!!p.data().primaryThumbnail},H=function(){var X,Z=(X=p.data())==null?void 0:X.maxHeight,n;
X=(n=p.maxHeight)==null?void 0:n.call(p);return Z!=null&&X!=null?Math.min(Z,X):X!=null?X:Z},M=function(){var X=H();
if(X){var Z;if(S()&&(Z=p.includeStackHeight)!=null&&Z.call(p)){var n;Z=((n=p.doubleStack)==null?0:n.call(p))?8:4}else Z=0;X=X-Z-1;if(!(X<0)){n=Math;Z=n.ceil;var b,F;var f=NR3((F=(b=p.aspectRatio)==null?void 0:b.call(p))!=null?F:0);return Z.call(n,X*f)}}};
return _.m("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.G7({height:function(){return H()?H()+"px":void 0},
width:function(){return M()?M()+"px":void 0}})},_.m(h7U,{stackEnabled:S,
thumbnailSize:function(){var X,Z;return _.TRL((X=p.width)==null?void 0:X.call(p),(Z=p.height)==null?void 0:Z.call(p))},
doubleStack:p.doubleStack,stackColor:function(){return p.data().stackColor},
includeStackHeight:p.includeStackHeight},_.m(_.AH,{data:function(){return p.data().primaryThumbnail}},{thumbnailViewModel:function(X){var Z={};
return _.m(_.sz,{data:X.data,width:p.width,height:p.height,aspectRatio:p.aspectRatio,disableRounding:p.disableRounding,className:_.XB((Z.ytCollectionThumbnailViewModelHostHasStacks=S,Z)),hovered:p.hovered,playbackRef:p.playbackRef})}}),_.m(_.v,{cond:function(){var X;
return J()&&((X=p.data().thumbnails)==null?void 0:X.length)},
then:function(){return _.m("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.m(tGd,{data:p.data,disableRounding:function(){return!S()}}))}})))},"pb");
Dm8.idomCompat={callbacks:{playbackRef:!0}};
var h7U=_.d(function(p){var J=p.children;var S=p.stackEnabled;var H=p.thumbnailSize;var M=p.doubleStack;var X=p.stackColor;var Z=p.includeStackHeight;var n,b=(n=_.vO().resolve(_.F9(_.uC)))==null?void 0:n();return _.m(_.v,{cond:S,then:function(){return _.m(Hsn,{data:function(){var F,f;return{experimentEnabled:!0,thumbnailSize:H(),doubleStack:M==null?void 0:M(),color:b?X==null?void 0:(F=X())==null?void 0:F.darkTheme:X==null?void 0:(f=X())==null?void 0:f.lightTheme,enableResponsiveMode:!1,includeStackHeight:Z==
null?void 0:Z()}}},J)},
else:function(){return J}})},"qb");var k84=new _.ni("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var tO;_.gX={calledOnce:!0,state:"visible"};tO={calledOnce:!0,state:"hidden"};_.hO=_.d(function(p){var J=p.data;var S=p.customCommandResolver;var H=p.className;var M=p.delayedClassName;var X=p.animationEntityKey;var Z=p.isCompactWidth;var n=p.isContentWidth;p=_.K(_.eQ(!1,void 0,"pC3tUb"));var b=p.next().value,F=p.next().value,f=_.rw(X,""),O=_.v$(AUs,f),A=function(){var Pg,ov;return(ov=(Pg=O())==null?void 0:Pg.value)!=null?ov:!1},P=function(){_.Y3(_.P$("booleanEntity",f(),{key:f(),
value:!0}));q=void 0};
X=_.K(_.re(A));var W=X.next().value,y=X.next().value;X=_.K(_.re(A));var t=X.next().value,D=X.next().value;X=_.K(_.re(function(){var Pg;return A()?(Pg=J().styleTransitionConfig)==null?void 0:Pg.destinationStyle:void 0}));
var k=X.next().value,E=X.next().value,a=function(){var Pg=Object.assign({},J(),k()&&{style:k()});var ov,NW,TW=Pg.label,Ys=(ov=Pg.interaction)==null?void 0:(NW=ov.accessibility)==null?void 0:NW.label;ov=Pg.iconImage?Pg.label&&Pg.label.content?Pg.iconLeading?"leading":"trailing":"icon-only":void 0;Pg={formattedButtonText:TW,accessibilityLabel:Ys,style:yEs(Pg.style),type:BQi(Pg.style),state:"active",size:CJ9(Pg.size),iconPosition:ov,disabled:!1,aTagConfig:QSw(Pg,S)};_.z("enable_desktop_vdcbg_components")&&
(Pg.focused=b());return Pg},q;
X=_.Aw({visibilityCallback:function(Pg){var ov,NW=(ov=J().interaction)==null?void 0:ov.onFirstVisible;Pg&&NW&&_.Dm(NW)},
showOption:_.gX});var w=function(){return Yki(a(),!!J().iconImage)};
p={};var I={};H=_.XB(function(){return"ytwAdButtonViewModelHost"},function(){return J().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Pg=!!J().delayedAppearanceConfig,ov=W();
return Pg?ov?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Pg=!!J().delayedAppearanceConfig,ov=t();
return Pg?ov?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!J().delayedAppearanceConfig||W()?M==null?void 0:M():""},(p.ytwAdButtonViewModelHostCompactWidth=function(){return Z==null?void 0:Z()},p),(I.ytwAdButtonViewModelHostContentWidth=function(){return n==null?void 0:n()},I),H!=null?H:"");
var Z3=function(){var Pg,ov=(Pg=J().delayedAppearanceConfig)==null?void 0:Pg.delayedInvisibleSeconds;ov&&(q=_.oA(_.wg,function(){y(!0);vg()},ov*1E3))},vg=function(){var Pg,ov=(Pg=J().delayedAppearanceConfig)==null?void 0:Pg.delayedVisibleSeconds;
ov&&(q=_.oA(_.wg,function(){D(!0);yX()},ov*1E3))},yX=function(){var Pg,ov=(Pg=J().styleTransitionConfig)==null?void 0:Pg.styleTransitionSeconds,NW,TW=(NW=J().styleTransitionConfig)==null?void 0:NW.destinationStyle;
ov&&TW?q=_.oA(_.wg,function(){E(TW);P()},ov*1E3):P()};
_.ad(function(){Z3()});
_.VY(function(){q&&_.wg.cancelJob(q)});
return _.m("ad-button-view-model",{"on:focusin":_.Kb(_.z("enable_desktop_vdcbg_components")?function(){var Pg=_.vO().resolve(_.F9(_.CD));Pg&&F(Pg.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Kb(_.z("enable_desktop_vdcbg_components")?function(){F(!1);return!1}:void 0),
class:H,el:_.Y2(X),style:_.G7({"transition-duration":"0.3s"})},_.m(_.v,{cond:a,then:function(){return _.m(_.gF,{data:a,icon:function(){return _.m(_.v,{cond:function(){return J().iconImage},
then:function(Pg){return _.m(_.a4,{data:Pg,alt:"",targetWidth:w,targetHeight:w,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var N58=_.d(function(p){var J=p.data;p=function(){return J().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var S=_.Aw({visibilityCallback:function(X){var Z,n=(Z=J().interaction)==null?void 0:Z.onFirstVisible;X&&n&&_.Dm(n)},
showOption:_.gX}),H={},M={};return _.m("ad-button-group-view-model",{class:_.XB("ytwAdButtonGroupViewModelHost",(H.ytwAdButtonGroupViewModelHostCompactWidth=p,H)),el:_.Y2(S)},_.m("div",{class:_.XB("ytwAdButtonGroupViewModelHostSecondaryButton",(M.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=p,M))},_.m(_.AH,{data:function(){return J().secondaryAdButton}},{adButtonViewModel:function(X){return _.m(_.hO,{data:X.data})}})),_.m("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.m(_.AH,
{data:function(){return J().primaryAdButton}},{adButtonViewModel:function(X){return _.m(_.hO,{data:X.data})}})))},"tb");var T5v=_.d(function(p){var J=function(){var S;return((S=p.data())==null?void 0:S.answers)||[]};
return _.m("yt-survey-icons",{class:"ytSurveyIconsHost"},_.m("div",{class:"ytSurveyIconsHeader"},_.m("div",{class:"ytSurveyIconsTitle"},function(){var S;return(S=p.data())==null?void 0:S.text}),_.m("div",null,_.m(_.gF,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var S;(S=p.onDismiss)==null||S.call(p)}}},
iconName:"DISMISSAL"}))),_.m("div",null,_.m("div",{class:"ytSurveyIconsAnswers"},_.m(_.dY,{each:function(){return J()},
keyBy:"INDEX"},function(S,H){return _.m("div",null,_.m(_.gF,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var M;(M=p.onSelect)==null||M.call(p,S(),H)}}},
icon:function(){return _.m(_.bn,{icon:function(){var M,X;return(M=S())==null?void 0:(X=M.icon)==null?void 0:X.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.m("div",{class:"ytSurveyIconsAnswersText"},_.m("div",null,function(){return J().length?J()[0].text:""}),_.m("div",null,function(){return J().length?J()[J().length-1].text:""}))))},"ub");var dmn=_.d(function(p){var J=_.Y2(_.sl(function(){var b;return(b=p.data())==null?void 0:b.rendererContext},void 0,void 0,void 0,!0)),S=_.K(_.eQ(!1,void 0,"GW0yjf")),H=S.next().value,M=S.next().value,X=_.v$(Aik,function(){var b;
return(b=p.data().keys)==null?void 0:b.surveyEntityKey}),Z=_.v$(P2L,function(){var b;
return(b=p.data().keys)==null?void 0:b.surveyStateEntityKey});
_.Zy("ytd-slimline-survey-show-action",function(){M(!1)});
var n=function(){var b,F;var f=(b=Z())==null?void 0:(F=b.questionStack)==null?void 0:F[0];if(f!==void 0){var O,A;return(O=X())==null?void 0:(A=O.questions)==null?void 0:A[f]}};
S={};return _.m("yt-slimline-survey-view-model",{el:J,class:_.XB("ytSlimlineSurveyViewModelHost",(S.ytSlimlineSurveyViewModelCollapsed=function(){return H()},S))},_.m("div",{class:"ytSlimlineSurveyViewModelContainer"},_.m(_.v,{cond:function(){var b;
return((b=n())==null?void 0:b.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.m(T5v,{data:function(){return n()},
onSelect:function(b,F){var f,O;return _.G(function(A){M(!0);if(O=(f=p.data())==null?void 0:f.onSelectRating)_.Dm(O),_.Y3(K1L(F));_.UK(A)})},
onDismiss:function(){M(!0);var b;var F=(b=X())==null?void 0:b.dismissalFeedbackToken;b=F?{feedbackEndpoint:{feedbackToken:F}}:void 0;b&&_.ge(b,{form:{element:J.value}})}})}})))},"vb");var u2E=_.d(function(p){return _.m("yt-table-view-model",{class:_.XB("ytTableViewModelHost",p.className)},_.m(_.dY,{each:function(){return p.data().rows||[]}},function(J){var S={};
return _.m("div",{class:_.XB("ytTableViewModelRow",(S.ytTableViewModelRowBottomBorder=function(){return p.data().showSeparators},S))},_.m(_.dY,{each:function(){return(J==null?void 0:J.cells)||[]}},function(H,M){var X,Z={};
return _.m("span",{class:_.XB((Z.ytTableViewModelRowLabel=function(){return M()===0&&p.data().showHorizontalHeaders},Z.ytTableViewModelCell=function(){return!p.data().showHorizontalHeaders||M()>0},Z))},(X=H.text)==null?void 0:X.content)}))}))},"wb");var lAd=_.d(function(p){return _.m("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.m(_.AH,{data:function(){var J;return(J=p.data())==null?void 0:J.attachments}},{flexibleActionsViewModel:function(J){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(_.KB,{data:J.data,
layout:function(){var S;return((S=p.lockupStyle())==null?void 0:S.arrangement)===1?0:1},
justifyContentOverride:function(){var S;return((S=p.lockupStyle())==null?void 0:S.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(J){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(dmn,{data:J.data}))},
expandableMetadataViewModel:function(J){J=J.data;var S;return _.m("div",{class:_.XB("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(S=_.vO().resolve(_.F9(k84)))==null?void 0:S({data:J}))},
adButtonGroupViewModel:function(J){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(N58,{data:J.data}))},
adButtonViewModel:function(J){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(_.hO,{data:J.data,isCompactWidth:!0}))},
tableViewModel:function(J){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(u2E,{data:J.data}))},
aiCompanionAttachmentViewModel:function(J){J=J.data;var S;return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},(S=_.vO().resolve(_.F9(_.WP8)))==null?void 0:S({data:J}))}}))},"xb");var DN3=_.PO("rich_grid_min_item_width",310),tFw=_.PO("rich_grid_max_item_width",500);var aBi,q53;aBi=16/9;q53=2/3;_.D2=_.d(function(p){var J=p.data;var S=p.className;var H=p.imageSizeConfig;var M=p.notifyOnLoaded;var X=function(){return J().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Z=function(){var A;
return _.Ul((A=J())==null?void 0:A.rendererContext)};
p={};p=(p.ytContentPreviewImageViewModelHost=!0,p.ytContentPreviewImageViewModelCircleImage=function(){return X()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},p.ytContentPreviewImageViewModelTappable=function(){return Z()},p);
var n=function(){var A,P;return(P=(A=_.e(J().rendererContext,_.PY))==null?void 0:A.label)!=null?P:""},b=function(){return Y5g(J())},F=function(){var A=Ens(X(),J().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",H==null?void 0:H(),rEi(b()),J().layoutWidth,J().layoutHeight),P=Object.assign({},A);
A.width&&(P.width=Math.round(A.width));A.height&&(P.height=Math.round(A.height));A.maxWidth&&(P.maxWidth=Math.round(A.maxWidth));A.maxHeight&&(P.maxHeight=Math.round(A.maxHeight));return P},f=_.BW(function(){return F().height},void 0,"CxFlJb"),O=_.BW(function(){return F().width},void 0,"lb8Jhd");
return _.m("yt-content-preview-image-view-model",{el:_.Y2(_.sl(function(){var A;return(A=J())==null?void 0:A.rendererContext})),
role:function(){return Z()?"link":void 0},
tabindex:function(){return Z()?0:void 0},
class:_.XB(S,p,function(){var A=X();var P=H==null?void 0:H();A=A==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||A==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||A==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||A==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(P==null?void 0:P.size)!=null&&P.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(P==null?void 0:P.size)!=null&&P.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return A}),
style:function(){var A=F(),P=[];A.width&&P.push("width: "+A.width+"px");A.height&&P.push("height: "+A.height+"px");A.maxWidth&&P.push("max-width: "+A.maxWidth+"px");A.maxHeight&&P.push("max-height: "+A.maxHeight+"px");A.fullWidth&&P.push("width: 100%");return P.join(";")}},_.m(_.v,{cond:b,
then:function(A){return _.m(_.a4,{data:A,alt:n,"data-disabled$":function(){return!n()},
notifyOnLoaded:M,targetWidth:O,targetHeight:f,preserveWidth:function(){return!!O()},
preserveHeight:function(){return!!f()}})}}),_.m(_.AH,{data:function(){var A;
return(A=J())==null?void 0:A.overlays}},{thumbnailHoverOverlayViewModel:Xq,
thumbnailOverlayButtonViewModel:_.B58}))},"yb");
_.D2.idomCompat=!0;var kA=_.d(function(p){var J=p.data;var S=p.className;var H=p.useSmallLayout;var M=p.useMediumText;p=p.useHeavyText;var X={};return _.m("yt-attribution-view-model",{el:_.Y2(_.sl(function(){var Z;return(Z=J())==null?void 0:Z.rendererContext})),
class:_.XB(S,(X.ytAttributionViewModelHost=!0,X.ytAttributionViewModelMediumText=M,X.ytAttributionViewModelHeavyText=p,X))},_.m(_.v,{cond:function(){return _.Ul(J().rendererContext)},
then:function(){return _.m("button",{class:"ytAttributionViewModelTappable"},_.m(VGn,{data:J,useSmallLayout:H}))},
else:function(){return _.m(VGn,{data:J,useSmallLayout:H})}}))},"zb"),VGn=_.d(function(p){var J=p.data;
var S=p.useSmallLayout;var H=function(){return{size:(S==null?0:S())?16:24}};
return _.m(_.fV,null,_.m(_.AH,{data:function(){return J().contentPreviewImage}},{contentPreviewImageViewModel:function(M){return _.m(_.D2,{data:M.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:H})}}),_.m(_.AH,{data:function(){return J().badge}},{badgeViewModel:function(M){return _.m(_.Qy,{data:M.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.m(_.v,{cond:function(){return J().text},
then:function(){return _.m(_.v3,{text:function(){return J().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.m(_.v,{cond:function(){return J().suffix},
then:function(){return _.m(_.v3,{text:function(){return J().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
kA.idomCompat=!0;var q_U,aAp,EK8,Y_m,rC8;q_U=_.d(function(p){var J=p.delimiter;var S=p.max;var H=p.index;var M=p.isStandalone;return _.m(_.v,{cond:function(){return S()-1>H()},
then:function(){var X={};return _.m("span",{class:_.XB("yt-content-metadata-view-model__delimiter",(X["yt-content-metadata-view-model__delimiter--standalone"]=M,X)),"aria-hidden":!0},J)}})},"Bb");
aAp=_.d(function(p){var J=p.metadataPart;var S=p.maxLines;return _.m(_.v3,{text:function(){return J().text},
linkInheritColor:!0,className:function(){return jSg(S())},
userInput:!0})},"Cb");
EK8=_.d(function(p){var J=p.metadataPart;var S=p.maxLines;return _.m(_.v,{cond:function(){return J().tooltip},
then:function(H){return _.m("span",{title:H,role:"tooltip"},_.m(aAp,{metadataPart:J,maxLines:S}))},
else:function(){return _.m(aAp,{metadataPart:J,maxLines:S})}})},"Db");
Y_m=_.d(function(p){var J=p.metadataPart;var S=p.isOverlay;var H=p.useMediumText;var M=p.hideAvatar;var X=function(){return J().maxLines!==void 0?J().maxLines:1};
return _.m(_.fV,null,_.m(_.AH,{data:function(){return J().avatarStack}},{avatarStackViewModel:function(Z){return _.m(_.KF,{data:Z.data,
isOverlay:S,useMediumText:H,hideAvatar:M})},
badgeViewModel:_.Qy}),_.m(_.v,{cond:function(){return J().leadingIcon},
then:function(Z){return _.m(_.bn,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return Z().name},
size:function(){return Z().width}})}}),_.m(_.v,{cond:function(){return J().text},
then:function(){return _.m(EK8,{metadataPart:J,maxLines:X})}}),_.m(_.v,{cond:function(){return J().icon},
then:function(Z){return _.m(_.bn,{className:"yt-content-metadata-view-model__icon",icon:function(){return Z().name},
size:function(){return Z().width}})}}))},"Eb");
rC8=_.d(function(p){var J=p.metadataRow;var S=p.isInline;var H=p.delimiter;var M=p.isOverlay;var X=p.useMediumText;var Z=p.extensions;var n=function(){var F,f=Z==null?void 0:(F=Z())==null?void 0:F.lockupMetadata;F=J();var O,A;return!!((f==null?0:(O=f.byline)==null?0:O.hideAvatar)&&((A=_.e(F,AM8))==null?void 0:A.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},b=function(){return J().metadataParts||[]};
p={};return _.m("div",{class:_.XB("yt-content-metadata-view-model__metadata-row",(p["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=S,p["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var F,f=Z==null?void 0:(F=Z())==null?void 0:F.lockupMetadata;F=J();var O,A;return!!((f==null?0:(O=f.byline)==null?0:O.addPadding)&&((A=_.e(F,AM8))==null?void 0:A.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},p["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var F;
return!!(Z==null?0:(F=Z())==null?0:F.lockupMetadata)&&J().badges&&!J().metadataParts},p))},_.m(_.AH,{data:function(){return J().badges}},{badgeViewModel:function(F){return _.m("div",{class:"yt-content-metadata-view-model__badge"},_.m(_.Qy,{data:F.data,
numBadgesInRow:function(){var f,O;return((f=J())==null?void 0:(O=f.badges)==null?void 0:O.length)||0}}))}}),_.m(_.dY,{each:b},function(F,f){return _.m(_.fV,null,_.m(Y_m,{metadataPart:F,
isOverlay:M,useMediumText:X,hideAvatar:n}),_.m(q_U,{delimiter:H,max:function(){return b().length},
index:f,isStandalone:!1}))}),_.m(_.v,{cond:function(){return J().isSpacerRow&&!S()},
then:function(){return _.m("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.Nf=_.d(function(p){p=_.jh(p,{layout:0,isOverlay:!1});var J=p.data,S=p.layout,H=p.isOverlay,M=p.useMediumText,X=p.extensions,Z=function(){return S()===0},n=function(){var F;
return((F=J().metadataRows)==null?void 0:F.filter(function(f){var O,A=X==null?void 0:(O=X())==null?void 0:O.lockupMetadata,P,W;O=!!((A==null?0:(P=A.description)==null?0:P.hideDescription)&&((W=_.e(f,AM8))==null?void 0:W.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var y,t;return!((A==null?0:(y=A.spacer)==null?0:y.hideSpacer)&&((t=_.e(f,AM8))==null?void 0:t.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||O)}))||[]},b={};
return _.m("yt-content-metadata-view-model",{class:_.XB(p.className,"yt-content-metadata-view-model",(b["yt-content-metadata-view-model--inline"]=Z,b["yt-content-metadata-view-model--tappable"]=function(){return _.Ul(J().rendererContext)},b["yt-content-metadata-view-model--medium-text"]=M,b)),
el:_.Y2(_.sl(function(){return J().rendererContext}))},_.m(_.dY,{each:n},function(F,f){return _.m(_.fV,null,_.m(rC8,{metadataRow:F,
isInline:Z,delimiter:function(){return J().delimiter},
isOverlay:H,useMediumText:M,extensions:X}),_.m(_.v,{cond:function(){return Z()&&!F.isSpacerRow},
then:function(){return _.m(q_U,{delimiter:function(){return J().delimiter},
max:function(){return n().length},
index:f,isStandalone:!0})}}))}))},"Gb");
_.Nf.idomCompat=!0;var jiL=_.d(function(p){var J=_.vO().resolve(_.F9(_.uC)),S={};return _.m("yt-lockup-metadata-view-model",{class:_.XB("yt-lockup-metadata-view-model",function(){a:{var H=p.lockupStyle();if(H==null?0:H.isOverlay)H="yt-lockup-metadata-view-model--overlay";else switch(H==null?void 0:H.arrangement){case 1:H="yt-lockup-metadata-view-model--horizontal";break a;default:H="yt-lockup-metadata-view-model--vertical"}}return H},function(){a:{var H=p.lockupStyle();
switch(H==null?void 0:H.titleMaxLines){case 1:H="yt-lockup-metadata-view-model--title-max-lines-1";break a}H=void 0}return H},function(){a:{var H=p.lockupStyle();
if(H==null?0:H.isTiny)H="yt-lockup-metadata-view-model--tiny";else switch(H==null?void 0:H.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":H="yt-lockup-metadata-view-model--compact";break a;default:H="yt-lockup-metadata-view-model--standard"}}return H},(S["yt-lockup-metadata-view-model--overlay"]=function(){var H;
return(H=p.lockupStyle())==null?void 0:H.isOverlay},S["yt-lockup-metadata-view-model--card"]=function(){var H;
return(H=p.lockupStyle())==null?void 0:H.isCard},S["yt-lockup-metadata-view-model--centered"]=function(){var H;
return(H=p.lockupStyle())==null?void 0:H.isCentered},S["yt-lockup-metadata-view-model--typography-bump"]=function(){var H;
return(H=p.lockupStyle())==null?void 0:H.typographyBump},S["yt-lockup-metadata-view-model--legacy-typography"]=function(){var H;
return(H=p.lockupStyle())==null?void 0:H.useLegacyTypography},S["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var H;
return(H=p.lockupStyle())==null?void 0:H.useRichGridLegacyTypography},S))},_.m(_.AH,{data:function(){return p.data().image}},{avatarStackViewModel:function(H){return _.m("div",{class:"yt-lockup-metadata-view-model__avatar"},_.m(_.KF,{data:H.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(H){return _.m("div",{class:"yt-lockup-metadata-view-model__avatar"},_.m(_.iF,{data:H.data}))},
decoratedAvatarViewModel:function(H){return _.m("div",{class:"yt-lockup-metadata-view-model__avatar"},_.m(_.RH,{data:H.data}))}}),_.m("div",{class:"yt-lockup-metadata-view-model__text-container"},_.m("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var H;return(H=p.data().title)==null?void 0:H.content}},_.m(_.v,{cond:function(){return p.data().title},
then:function(H){return _.m(_.yD,{command:p.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.G7({color:function(){var M;a:{var X=p.lockupStyle();var Z=(M=p.hovered)==null?void 0:M.call(p);M=!(J==null||!J());var n;if((X==null?0:(n=X.onFocusEffect)==null?0:n.textPrimaryColor)&&Z&&(X=M?X.onFocusEffect.textPrimaryColor.darkTheme:X.onFocusEffect.textPrimaryColor.lightTheme)){X=sr(X);break a}X=void 0}return X}}),
ariaLabel:p.lockupAccessibilityLabel},_.m(_.v3,{text:H,userInput:!0}))}})),_.m("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.G7({color:function(){var H;a:{var M=p.lockupStyle();var X=(H=p.hovered)==null?void 0:H.call(p);H=!(J==null||!J());var Z;if((M==null?0:(Z=M.onFocusEffect)==null?0:Z.textSecondaryColor)&&X&&(M=H?M.onFocusEffect.textSecondaryColor.darkTheme:M.onFocusEffect.textSecondaryColor.lightTheme)){M=sr(M);break a}M=void 0}return M}})},_.m(_.AH,{data:function(){return p.data().metadata}},{contentMetadataViewModel:function(H){return _.m(_.Nf,{data:H.data,
layout:function(){var M,X;return(X=(M=p.layout)==null?void 0:M.call(p))!=null?X:1},
useMediumText:function(){var M,X;return((M=p.lockupStyle())==null?void 0:M.typographyBump)||((X=p.lockupStyle())==null?void 0:X.useRichGridLegacyTypography)},
extensions:function(){var M,X,Z,n;return{lockupMetadata:{byline:{hideAvatar:((M=p.lockupStyle())==null?void 0:M.arrangement)===0,addPadding:((X=p.lockupStyle())==null?void 0:X.arrangement)===1},description:{hideDescription:!((Z=p.lockupStyle())==null||!Z.compactMetadata)},spacer:{hideSpacer:!((n=p.lockupStyle())==null||!n.compactMetadata)}}}}})}})),_.m(_.AH,{data:function(){return p.data().attribution}},{attributionViewModel:function(H){return _.m("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.m(kA,{data:H.data,
useSmallLayout:!0}))}})),_.m("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.m(_.AH,{data:function(){return p.data().menuButton}},{buttonViewModel:function(H){return _.m(_.D0,{data:H.data,
buttonOverrides:function(){var M;return((M=p.lockupStyle())==null?0:M.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
jiL.idomCompat=!0;var wXM=_.d(function(p){var J=_.nE("notification-multi-action-renderer");_.qz(function(){requestAnimationFrame(function(){_.Gg(J.value)})});
var S={},H={},M={};return _.m("notification-multi-action-renderer",{class:_.XB("ytNotificationMultiActionRendererHost",(S.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var X;return(X=p.useLegacyShelfStyle)==null?void 0:X.call(p)},S)),
el:J},_.m("span",{"aria-live":"polite",class:_.XB("ytNotificationMultiActionRendererTextContainer",(H.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var X;return(X=p.useLegacyShelfStyle)==null?void 0:X.call(p)},H))},_.m(_.v3,{text:function(){return p.data().responseText}})),_.m("div",{class:_.XB("ytNotificationMultiActionRendererButtonContainer",(M.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var X;
return(X=p.useLegacyShelfStyle)==null?void 0:X.call(p)},M))},_.m(_.AH,{data:function(){var X;
return(X=p.data().buttons)==null?void 0:X.map(function(Z){if(Z=Z.buttonRenderer){var n,b=Object,F=b.assign,f=(n=Z.icon)==null?void 0:n.iconType;n=(n=Z.command||Z.serviceEndpoint||Z.navigationEndpoint)?{innertubeCommand:n}:void 0;Z={buttonViewModel:F.call(b,{},{iconName:f,onTap:n,trackingParams:Z.trackingParams,titleFormatted:Z.text?_.CI(Z.text):void 0},xNL(Z))}}else Z=void 0;return Z}).filter(function(Z){return!!Z})}},{buttonViewModel:function(X,Z){return _.m("div",null,_.m(_.D0,{data:X.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var n;return((n=p.useModernStyles)==null?0:n.call(p))?{type:Z()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var xmU=_.d(function(p){var J=_.nE("notification-text-renderer");_.qz(function(){requestAnimationFrame(function(){_.Gg(J.value)})});
return _.m("notification-text-renderer",{el:J,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.m(_.v3,{text:function(){return p.data().successResponseText}}))},"Lb");_.TK=_.d(function(p){var J=_.v$(RLL,function(){var H;return cEk((H=p.contentId)==null?void 0:H.call(p))}),S=function(){var H;
return _.e((H=J())==null?void 0:H.command,_.Vs)};
return _.m(_.v,{cond:function(){var H;if(!(H=S())){var M;H=_.e((M=J())==null?void 0:M.command,t2n)}return H},
then:function(){return _.m(_.v,{cond:S,then:function(){var H={};return _.m("div",{class:_.XB("ytDismissibleItemReplacedContent",function(){var M;return IBW((M=p.aspectRatio)==null?void 0:M.call(p))})},_.m("div",{class:_.XB((H.ytDismissibleItemAspectRatioContainer=function(){var M;
return((M=p.aspectRatio)==null?void 0:M.call(p))!==void 0},H))},_.m(_.AH,{data:function(){var M;
return(M=S())==null?void 0:M.item}},{notificationMultiActionRenderer:function(M){return _.m(wXM,{data:M.data,
useModernStyles:p.useModernStyle,useLegacyShelfStyle:p.useLegacyShelfStyle})},
notificationTextRenderer:xmU})))}})},
else:p.children})},"Mb");_.cC8=_.d(function(p){var J=p.data;var S=p.customCommandResolver;p=_.Y2(_.Aw({visibilityCallback:function(X){var Z,n=(Z=J().interaction)==null?void 0:Z.onFirstVisible;X&&n&&_.Dm(n)},
showOption:_.gX}));var H=function(){var X;return((X=J().interaction)==null?0:X.onTap)?function(Z){var n;Wpw(Z,(n=J().interaction)==null?void 0:n.onTap,S)}:void 0},M=function(){var X,Z=J(),n=H(),b=(X=_.e(J().rendererContext,_.PY))==null?void 0:X.label;
a:switch(Z.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":X=1;break a;default:X=0}return{size:JtX(Z.size),type:X,onTap:n,accessibilityText:b}};
return _.m("ad-avatar-view-model",{class:function(){var X;return((X=J().interaction)==null?0:X.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:p},_.m(_.v,{cond:function(){return J().image},
then:function(X){return _.m(sn8,{data:M,image:X})}}))},"Nb");_.dX=_.d(function(p){var J=_.jh(p,{hasDot:!1,usedInMasthead:!1}),S=Object.assign({},J),H=J.data,M=J.hasDot;p=J.customCommandResolver;var X=J.usedInMasthead,Z=(delete S.data,delete S.hasDot,delete S.customCommandResolver,delete S.usedInMasthead,S);J=function(){return H().style};
J!==void 0&&J!==null||_.SB(Error("Hh"));p=_.km(function(){return H().interaction},p);
return _.m("ad-badge-view-model",{class:_.XB(function(){var n;return((n=H().interaction)==null?0:n.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var n=Z.adRenderingContextType(),b=X();
H();return n!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||b?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.Y2(p)},_.m(_.bG,{data:function(){var n;H();return{type:2,text:(n=H().label)==null?void 0:n.content,adsIncludeDot:M(),isOverlay:H().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var IAn;_.uF=_.d(function(p){var J=p.data;var S=p.customCommandResolver;var H=p.adRenderingContextType;return _.m("ad-details-line-view-model",{class:function(){var M;return((M=J().interaction)==null?0:M.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.Y2(_.Aw({visibilityCallback:function(M){var X,Z=(X=J().interaction)==null?void 0:X.onFirstVisible;M&&Z&&_.Dm(Z)},
showOption:_.gX}),_.km(function(){return J().interaction},S))},_.m(_.v,{cond:function(){return J().style},
then:function(M){return _.m(_.dY,{each:function(){var X;return((X=J())==null?void 0:X.attributes)||[]},
keyBy:"INDEX"},function(X){return _.m(IAn,{attribute:X,style:M,adRenderingContextType:function(){return H()}})})}}))},"Pb");
IAn=_.d(function(p){var J=p.attribute;var S=p.style;var H=p.adRenderingContextType;return _.m(_.v,{cond:function(){return J().text},
then:function(M){return _.m(_.v3,{text:M,className:function(){var X=H();S();return X==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var LPE=_.d(function(p){var J=p.data;var S=p.typographyBump;var H=function(){return J().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},M=function(){return{size:"M"}};
p={};return _.m(_.fV,null,_.m("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.m(_.v3,{text:function(){return J().headline},
className:_.XB("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(p.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return H==null?void 0:H()},p.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(S==null?void 0:S())&&!(H==null?0:H())},p)),
linkInheritColor:!0}),_.m(_.v,{cond:function(){return J().description},
then:function(X){var Z={};return _.m(_.v3,{text:X,className:_.XB("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(Z.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return H==null?void 0:H()},Z.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(S==null?void 0:S())&&!(H==null?0:H())},Z)),
linkInheritColor:!0})}}),_.m(_.v,{cond:function(){return J().secondaryDescription},
then:function(X){var Z={};return _.m(_.v3,{text:X,className:_.XB("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(Z.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return S==null?void 0:S()},Z)),
linkInheritColor:!0})}}),_.m("div",{class:function(){return H()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.m(_.v,{cond:function(){return J().adAvatar},
then:function(){return _.m("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.m(_.AH,{data:function(){return J().adAvatar}},{adAvatarViewModel:_.cC8}))}}),_.m(_.AH,{data:function(){return J().adBadge}},{adBadgeViewModel:function(X){return _.m(_.dX,{data:X.data,
hasDot:function(){return!!J().adDetailsLine},
adRenderingContextType:function(){return J().adRenderingContextType}})}}),_.m(_.AH,{data:function(){return J().adDetailsLine}},{adDetailsLineViewModel:function(X){return _.m(_.uF,{data:X.data,
adRenderingContextType:function(){return J().adRenderingContextType}})}}))),_.m("div",{class:function(){return _.z("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":H()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.m(_.AH,{data:function(){return J().menu}},{buttonViewModel:function(X){return _.m(_.D0,{data:X.data,
buttonOverrides:_.z("enable_desktop_vdc_components")?M:function(){a:switch(J().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var Z="S";break a;default:Z="M"}return{size:Z}}})}})))},"Rb"),p48=_.d(function(p){var J=p.data;
var S=p.noBottomMargin;var H=p.useVideoLockupTopPadding;var M=p.typographyBump;p={};p=_.XB("ytwFeedAdMetadataViewModelHostMetadata",(p.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return S==null?void 0:S()},p.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return H==null?void 0:H()},p));
var X=function(){return J().adBadge};
X!==void 0&&X!==null||_.SB(Error("Ih"));X={};var Z={};return _.m(_.fV,null,_.m(_.v,{cond:function(){return J().adAvatar},
then:function(){return _.m("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.m(_.AH,{data:function(){return J().adAvatar}},{adAvatarViewModel:function(n){return _.m(_.cC8,{data:n.data})}}))}}),_.m("div",{class:p},_.m("div",{class:_.XB("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(X.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return M==null?void 0:M()},X.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(M==
null?void 0:M())&&_.z("web_enable_typography_bump_v2")},X))},_.m(_.v3,{text:function(){return J().headline},
linkInheritColor:!0})),_.m(_.v,{cond:function(){return J().description},
then:function(n){return _.m(_.v3,{text:n,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.m("div",{class:function(){return J().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.z("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.m(_.AH,{data:function(){return J().adBadge}},
{adBadgeViewModel:function(n){return _.m(_.dX,{data:n.data,
hasDot:function(){return!!J().adDetailsLine},
adRenderingContextType:function(){return J().adRenderingContextType}})}}),_.m(_.AH,{data:function(){return J().adDetailsLine}},{adDetailsLineViewModel:function(n){return _.m(_.uF,{data:n.data,
adRenderingContextType:function(){return J().adRenderingContextType}})}})),_.m(_.v,{cond:function(){return J().secondaryDescription},
then:function(n){return _.m(_.v3,{text:n,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.m("div",{class:_.XB("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(Z.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return H==null?void 0:H()},Z))},_.m(_.AH,{data:function(){return J().menu}},{buttonViewModel:_.D0})))},"Sb"),lF=_.d(function(p){var J=p.data;
var S=p.noBottomMargin;var H=p.listenToTapEvent;var M=p.setTouchEndHandler;var X=p.useVideoLockupTopPadding;var Z=p.typographyBump;p=_.Aw({visibilityCallback:function(O){var A,P=(A=J().interaction)==null?void 0:A.onFirstVisible;O&&P&&_.Dm(P)},
showOption:_.gX});var n=_.km(function(){return J().interaction},void 0,function(){return H==null?void 0:H()}),b=_.K(_.eQ(!1,void 0,"N3Oquc")),F=b.next().value,f=b.next().value;
b=_.Kb(function(O){(M==null?0:M())&&!F()&&(O.currentTarget.click(),f(!0),setTimeout(function(){f(!1)},100));
return!1});
return _.m("feed-ad-metadata-view-model",{class:function(){var O;return((O=J().interaction)==null?0:O.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.Y2(p,n),"on:touchend":b},_.m(_.ue,null,_.m(_.Nz,{when:function(){return J().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.m(LPE,{data:J,
typographyBump:Z})}),_.m(_.Nz,{when:function(){return J().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.m(p48,{data:J,
noBottomMargin:S,useVideoLockupTopPadding:X,typographyBump:Z})})))},"Tb");var J5o,Seq;J5o=_.uT.inlinePreviewEnabledSelector;_.Vy=_.d(function(p){return _.m("yt-lockup-view-model",{class:_.XB(p.className,"yt-lockup-view-model--wrapper")},_.m(_.TK,{contentId:function(){return p.data().contentId},
useModernStyle:!0,aspectRatio:function(){var J,S;return((J=p.containerType)==null?void 0:J.call(p))!==3?lBk(p.data().contentType,(S=p.force16By9ThumbnailAspectRatio)==null?void 0:S.call(p)):void 0}},function(){return _.m(Seq,Object.assign({},p))}))},"Ub");
Seq=_.d(function(p){p=_.jh(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,useOverlayStyling:void 0});var J=p.data,S=p.containerLayoutConfig,H=p.containerType,M=p.sizing,X=p.protectBackground,Z=p.typographyBump,n=p.force16By9ThumbnailAspectRatio,b=p.thumbnailFixedWidth,F=p.thumbnailTargetWidth,f=p.lockupExperiments,
O=p.elementsPerRow,A=p.useOverlayStyling,P=_.vO().resolve(_.F9(_.uC));p=_.Y2(_.sl(function(){var Ys;return(Ys=J())==null?void 0:Ys.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var W=_.fb(J5o),y=_.vO().resolve(_.F9(O48)),t=y?{}:void 0,D=function(){var Ys,Go,$U;return($U=(Go=_.e((Ys=J())==null?void 0:Ys.rendererContext,_.PY))==null?void 0:Go.label)!=null?$U:void 0},k=function(){var Ys;
return(Ys=_.e(J().metadata,_.PAM))==null?void 0:Ys.endorsement},E=function(){var Ys=S==null?void 0:S(),Go;
if(Ys==null?0:Ys.containerType){var $U=(Go=J())==null?void 0:Go.contentType;Go=f();var LL=Z(),fd=F(),Qv=X();Ys=Object.assign({},VFi(NQ9(Ys),Ty(Ys.responsiveSize),LL,$U,Ys.force16By9ThumbnailAspectRatio,fd,Qv,void 0,Go),{thumbnailFixedWidth:Ys.contentPreviewWidth})}else Ys=VFi(H(),M(),Z(),($U=J())==null?void 0:$U.contentType,n(),F(),X(),A(),f());return Ys};
y&&t&&y({enabled:function(){return W()},
itemPlaybackModel:function(){return J().itemPlayback},
thumbnailElRef:function(){return t.thumbnailElRef},
containerElRef:p,options:function(){var Ys=t.thumbnailOverlays||[],Go=k(),$U;!Go||(($U=f())==null?0:$U.onFocusEffect)||Ys.push(Go);var LL,fd;return{thumbnail:t.thumbnail,thumbnailOverlays:Ys,accessibilityText:D(),thumbnailSize:t.thumbnailSize,enableRounding:E().isCollection,containPlayerWithinThumbnail:E().isCollection,mouseleaveCallback:function(){w(!1)},
trackingParams:(LL=_.e(J().rendererContext,_.Fj))==null?void 0:(fd=LL.loggingDirectives)==null?void 0:fd.trackingParams}}});
var a=0;y=_.K(_.eQ(!1,void 0,"v0iGab"));var q=y.next().value,w=y.next().value;y=_.K(_.eQ(!1,void 0,"PVKcBd"));var I=y.next().value,Z3=y.next().value;y=_.Kb(function(){I()?(_.wg.cancelJob(a),a=_.wg.addJob(function(){w(!0)},8,32)):w(!0);
return!0});
var vg=_.Kb(function(Ys){Ys=Ys.relatedTarget;var Go=document.querySelector("ytd-video-preview");Ys&&Go&&Go.contains(Ys)||(a&&(_.wg.cancelJob(a),a=0),w(!1))});
_.VY(function(){a&&(_.wg.cancelJob(a),a=0)});
var yX=p1W(function(){Z3(!0)}),Pg=yX.touchFeedbackEvents,ov=yX.touchFeedbackOnPointerUp,NW=yX.touchFeedbackOnPointerDown;
yX=yX.touchFeedbackOnPointerLeave;var TW={};return _.m(_.fV,null,_.m("div",{el:p,class:_.XB("yt-lockup-view-model",function(){a:{var Ys=E();if(Ys.metadataOnThumbnail)Ys="yt-lockup-view-model--metadata-on-thumbnail";else switch(Ys.arrangement){case 1:Ys="yt-lockup-view-model--horizontal";break a;default:Ys="yt-lockup-view-model--vertical"}}return Ys},function(){a:{var Ys=E();
if(Ys.metadataOnThumbnail)Ys="yt-lockup-view-model--metadata-on-thumbnail";else{switch(Ys.collectionStackNumber){case 1:Ys="yt-lockup-view-model--collection-stack-1";break a;case 2:Ys="yt-lockup-view-model--collection-stack-2";break a}Ys=void 0}}return Ys},function(){var Ys;
return _.wok((Ys=J())==null?void 0:Ys.contentId)},(TW["yt-lockup-view-model--card"]=function(){return E().isCard},TW["yt-lockup-view-model--compact"]=function(){return E().isTiny||E().sizing!=="STANDARD"},TW["yt-lockup-view-model--protect-background"]=X,TW["yt-lockup-view-model--add-margins"]=function(){return E().addMarginForFullbleed},TW["yt-lockup-view-model--centered"]=function(){return E().isCentered},TW["yt-lockup-view-model--fullbleed"]=function(){return E().fullbleed},TW["yt-lockup-view-model--single-column-grid"]=
function(){return O()===1&&H()===2},TW["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var Ys;
return(Ys=f())==null?void 0:Ys.useRichGridLegacyMargin},TW["yt-lockup-view-model--flex-none"]=function(){return!_.z("lockup_flex_none_killswitch")},TW)),
"on:mousedown":NW,"on:mouseleave":vg,"on:mouseup":ov,"on:mouseover":y,"on:touchstart":NW,"on:touchend":ov,"on:pointerleave":yX},_.m(_.B3,{model:function(){var Ys,Go,$U=Object,LL=$U.assign,fd=(t==null?void 0:t.thumbnailSize)||"small";a:{var Qv=E();var t8=!!(k()&&((Ys=f())==null?0:Ys.onFocusEffect));switch((t==null?void 0:t.thumbnailSize)||"small"){case "small":Ys=4;break;case "large":Ys=12;break;default:Ys=8}if(t8)Qv=Ys+12;else{switch(Qv.collectionStackNumber){case 1:Qv=Ys+8;break a;case 2:Qv=Ys+12;
break a}Qv=void 0}}fd={thumbnailSize:fd,triggerEvents:!0,customTopExtend:Qv};var Wp;Qv=(Go=f())==null?void 0:Go.onFocusEffect;t8=!(P==null||!P());if(Qv){var ON,KL;Go=t8?(ON=Qv.onFocusColor)==null?void 0:ON.darkTheme:(KL=Qv.onFocusColor)==null?void 0:KL.lightTheme;var HE,o8;ON=t8?(HE=Qv.keyLightColor)==null?void 0:HE.darkTheme:(o8=Qv.keyLightColor)==null?void 0:o8.lightTheme;var xU;HE=t8?(Wp=Qv.touchResponseColor)==null?void 0:Wp.darkTheme:(xU=Qv.touchResponseColor)==null?void 0:xU.lightTheme;Wp={background:Go!==
void 0?sr(Go):void 0,keyLight:ON!==void 0?sr(ON):void 0};xU=[];o8=_.K(Qv.lightingTechniques||[]);for(ON=o8.next();!ON.done;ON=o8.next())switch(ON.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":xU.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":xU.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":xU.push(3)}Wp={hoverEffect:{palette:Wp,lightingTechniques:xU},touchEffect:{palette:{background:HE!==void 0?sr(HE):void 0}}}}else Wp={};return LL.call($U,{},fd,Wp)},
hovered:function(){return q()},
pointerDownEvent:Pg.pointerDownEvent,pointerUpEvent:Pg.pointerUpEvent,pointerLeaveEvent:Pg.pointerLeaveEvent}),_.m(_.v,{cond:function(){var Ys;return k()&&q()&&((Ys=f())==null?void 0:Ys.onFocusEffect)},
then:function(){return _.m("div",{class:"yt-lockup-view-model__endorsement"},_.m(_.AH,{data:function(){return k()}},{attributionViewModel:function(Ys){return _.m(kA,{data:Ys.data,
useHeavyText:!0})}}))}}),_.m(_.yD,{command:function(){var Ys;
return _.B$((Ys=J())==null?void 0:Ys.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(b()||E().thumbnailFixedWidth)&&E().arrangement===1?"width: "+(b()||E().thumbnailFixedWidth):""}},_.m(_.AH,{data:function(){var Ys;
return(Ys=J())==null?void 0:Ys.contentImage}},{thumbnailViewModel:function(Ys){return _.m(_.sz,{data:Ys.data,
aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:F,hovered:function(){return q()&&!(W()&&J().itemPlayback)},
isClip:function(){var Go;return((Go=J())==null?void 0:Go.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:zAs(t),lockupExperiments:function(){return f()}})},
collectionThumbnailViewModel:function(Ys){return _.m(Dm8,{data:Ys.data,aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:F,doubleStack:function(){return E().collectionStackNumber===2},
hovered:function(){return q()&&!(W()&&J().itemPlayback)},
playbackRef:zAs(t)})},
decoratedAvatarViewModel:_.RH})),_.m("div",{class:"yt-lockup-view-model__metadata"},_.m(_.AH,{data:function(){var Ys;return(Ys=J())==null?void 0:Ys.metadata}},{lockupMetadataViewModel:function(Ys){return _.m(jiL,{data:Ys.data,
hovered:q,lockupStyle:E,lockupCommand:function(){var Go;return _.B$((Go=J())==null?void 0:Go.rendererContext)},
lockupAccessibilityLabel:function(){return D()},
layout:function(){var Go;return((Go=f())==null?0:Go.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(Ys){return _.m(lF,{data:Ys.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:Z})}}),_.m(_.AH,{data:function(){var Ys;
return(Ys=J())==null?void 0:Ys.attachmentSlot}},{lockupAttachmentsViewModel:function(Ys){return _.m(lAd,{data:Ys.data,
lockupStyle:E})}}))),_.m(_.AH,{data:function(){var Ys;
return(Ys=J())==null?void 0:Ys.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Ys){return _.m(lAd,{data:Ys.data,
lockupStyle:E})}}))},"Vb");
_.Vy.idomCompat=!0;_.ci(_.Vy,"yt-lockup-view-model",{props:{data:_.fD,containerLayoutConfig:_.fD,containerType:_.fD,sizing:_.fD,protectBackground:_.fD,typographyBump:_.fD,thumbnailFixedWidth:_.fD,thumbnailTargetWidth:_.fD,force16By9ThumbnailAspectRatio:_.fD,className:_.fD,lockupExperiments:_.fD,elementsPerRow:_.fD,useOverlayStyling:_.fD}});var X1W,Hm8=_.d(function(p){var J=_.jh(p,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),S=J.text,H=J.alwaysShowTruncationText;p=J.truncationText;var M=J.onTextClick,X=J.maxLines,Z=J.disableTextMask,n=J.textStyle,b=J.accessibilityLabel,F=J.textSize,f=J.alwaysTruncateAtMaxLines,O=J.expandOnClick;J=_.K(_.eQ(!1,void 0,"EzA1q"));var A=J.next().value,P=J.next().value;J=_.Kb(function(){O()&&P(!A());M==null||M()});
var W=function(){a:switch(F()){case "medium":var I=2;break a;case "large":I=2.2;break a;default:I=1.8}return I},y=K3t(S,function(){return A()?Infinity:X()},W,Z,f,A),t=y.isTruncated;
S=y.displayText;f=y.contentRef;var D=y.hiddenRef,k=y.placeholderTruncationTextRef,E=y.hiddenTruncationTextRef;y=y.truncationTextRef;var a={},q={},w={};return _.m("truncated-text",{class:_.XB((a["yt-truncated-text"]=!0,a["yt-truncated-text--overlay"]=function(){return n()==="overlay"},a["yt-truncated-text--medium-text"]=function(){return F()==="medium"},a["yt-truncated-text--large-text"]=function(){return F()==="large"},a["yt-truncated-text--primary-text"]=function(){return n()==="primary-text"},a)),
"on:click":J,style:function(){return"line-height: "+W()+"rem;"}},_.m("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:f,style:function(){return A()?"":"max-height: "+X()*W()+"rem;"}},_.m(_.v3,{text:S}),_.m("button",{"aria-disabled":!0,
disabled:!0,class:_.XB((q["yt-truncated-text__inline-button"]=!0,q["yt-truncated-text--hidden"]=function(){return!(!A()&&(H!=null&&H()||t()))},q)),
el:k,style:function(){return"line-height: "+W()+"rem;"}},_.m(_.v3,{text:p}))),_.m("truncated-text-content",{class:_.XB("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:D,style:function(){return A()?"":"max-height: "+X()*W()+"rem;"},
"aria-hidden":"true"},_.m(_.v3,{text:S}),_.m("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:E,style:function(){return"line-height: "+W()+"rem;"}},_.m(_.v3,{text:p}))),_.m("button",{"aria-label":b,
class:_.XB((w["yt-truncated-text__absolute-button"]=function(){return!Z()},w["yt-truncated-text__bottom-button"]=function(){return Z()},w["yt-truncated-text--hidden"]=function(){return!(!A()&&(H!=null&&H()||t()))},w)),
el:y,style:function(){return"line-height: "+W()+"rem;"}},_.m(_.v3,{text:p})))},"Xb");
Hm8.idomCompat={callbacks:{onTextClick:!0}};var imm=_.d(function(p){var J=p.data;p=p.className;var S=_.BW(function(){return nq4(J())},void 0,"uDhDke"),H=_.m(_.fV,null,_.m(_.v,{cond:function(){return J().heroText||J().image},
then:function(){return _.m(Mi4,{data:J})}}),_.m(X4E,{data:J,
sizeSmall:function(){return J().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.m("yt-video-attribute-view-model",{class:p},_.m("div",{class:function(){var M=J();a:switch(M.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var X="yt-video-attribute-view-model--vertical";break a;default:X="yt-video-attribute-view-model--horizontal"}a:switch(M.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var Z="yt-video-attribute-view-model--image-small";break a;default:Z="yt-video-attribute-view-model--image-large"}a:switch(M.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var n=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":n="yt-video-attribute-view-model--image-avatar";break a;default:n=""}a:switch(M.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var b="yt-video-attribute-view-model--metadata-header";break a;default:b=""}a:switch(M.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var F="yt-video-attribute-view-model--container-card";break a;default:F=""}return["yt-video-attribute-view-model",X,Z,
n,b,F,nq4(M)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.G7({"background-color":function(){var M=J();if(M.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var X="";else{X=M.lightColorPalette;M=M.darkColorPalette;var Z,n=((Z=_.vO().resolve(_.F9(_.uC)))==null?0:Z())&&M?M:X;X=(X=n==null?void 0:n.section2Color)?_.Bt(X):""}return X}})},_.m(_.v,{cond:S,
then:function(){return _.m(_.yD,{className:"yt-video-attribute-view-model__content-container",command:S,role:"group",ariaLabel:function(){return J().title}},H)},
else:function(){return _.m("div",{class:"yt-video-attribute-view-model__content-container"},H)}})))},"Yb");
imm.idomCompat=!0;var Mi4=_.d(function(p){var J=p.data;var S,H=(S=_.vO().resolve(_.F9(_.uC)))==null?void 0:S(),M=function(){return H&&J().darkThemeImage?J().darkThemeImage:J().image},X=_.BW(function(){return G1i(J())},void 0,"UDqj0b");
return _.m("div",{class:"yt-video-attribute-view-model__hero-section"},_.m(_.ue,null,_.m(_.Nz,{when:M},function(){return _.m(_.a4,{data:function(){return M()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.m(_.Nz,{when:function(){return J().heroText}},function(){return _.m("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.m("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return J().heroText}))})),_.m(_.v,{cond:function(){return J().overflowMenuOnTap},
then:function(){return _.m("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.m(_.gF,{data:X,iconName:"MORE_VERT"}))}}))},"Zb");
Mi4.idomCompat=!0;var X4E=_.d(function(p){var J=p.data;p=p.sizeSmall;var S=function(){return J().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},H=_.BW(function(){return hz(_.tz({innertubeCommand:nq4(J())}))?"link":nq4(J())?"button":"group"},void 0,"e2MmYe"),M={};
return _.m("div",{class:_.XB("yt-video-attribute-view-model__metadata",(M["yt-video-attribute-view-model--small-font"]=p,M)),role:H},_.m("h1",{class:"yt-video-attribute-view-model__title"},function(){return J().title}),_.m(_.v,{cond:function(){return J().subtitle},
then:function(){return _.m("h4",{class:"yt-video-attribute-view-model__subtitle"},_.m(_.v,{cond:S,then:function(){return _.m(Hm8,{text:function(){return Zsk(J().subtitle)},
truncationText:function(){return Zsk(J().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.m("span",null,function(){return J().subtitle})}}))}}),_.m(_.v,{cond:function(){return J().secondarySubtitle},
then:function(X){return _.m("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.m(_.v3,{text:function(){var Z=X();if(Z!=null&&Z.attachmentRuns){for(var n=[],b=_.K(Z.attachmentRuns),F=b.next();!F.done;F=b.next())F=F.value,F.element&&n.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}}}})}));Z=Object.assign({},Z,{attachmentRuns:n})}return Z}}))}}),_.m(_.AH,
{data:function(){return J().buttonViewModel}},{buttonViewModel:function(X){return _.m(_.D0,{data:X.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
X4E.idomCompat=!0;_.ci(imm,"yt-video-attribute-view-model",{props:{data:_.fD,className:_.fD}});var qf=function(){var p=_.T.apply(this,arguments)||this;p.useHighlightStyling=_.z("web_enable_deeper_metadata_highlight_styling");p.isSearch=!1;p.JSC$15440_lastScrollContainerWidth=NaN;p.pageLoadingFromNavigation=!1;p.currentIndex=0;p.supportComponentResize=!1;return p};
_.Q(qf,_.T);_.R=qf.prototype;
_.R.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}}}}}};
_.R.attached=function(){document.addEventListener("yt-page-type-changed",_.n3(this,this.onPageChange))};
_.R.detached=function(){document.removeEventListener("yt-page-type-changed",_.n3(this,this.onPageChange))};
_.R.getItemsPath=function(){return"data.cards"};
_.R.onIronResize=function(){this.updateListStyles()};
_.R.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=_.z("problem_walkthrough_sd")&&!!this.centerItems};
_.R.computeCardListStyle=function(p){return p||null};
_.R.computeEmpty=function(p){return!this.get("cards.length",p)};
_.R.computeThumbnailStyle=function(p){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",p)||null};
_.R.computeHasSubtitle=function(p){return!!this.get("header.richListHeaderRenderer.subtitle",p)};
_.R.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};
_.R.computeUseFloorScrolling=function(p){return p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.R.computeHasGameCard=function(p){return(p=this.get("cards",p))?p.some(function(J){return J.gameCardRenderer}):!1};
_.R.computeCenterHeaderTitle=function(p){return!(p==null||!p.centerHeaderTitle)};
_.R.computeHasPortraitMiniApp=function(p){return(p=p==null?void 0:p.cards)?p.some(function(J){return J.miniGameCardViewModel&&J.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.R.computeHasSquareMiniApp=function(p){return(p=p==null?void 0:p.cards)?p.some(function(J){return J.miniGameCardViewModel&&J.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.R.computeHasSkinnyWidthPortraitMiniApp=function(p){return(p=p==null?void 0:p.cards)?p.some(function(J){return J.miniGameCardViewModel&&J.miniGameCardViewModel.width===135}):!1};
_.R.computeCenterItems=function(p){return!!p};
_.R.computeHasInfoPanel=function(p){var J;return p==null?void 0:(J=p.cards)==null?void 0:J.some(function(S){return S.infoPanelContentRenderer})};
_.R.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.R.getItemByIndex=function(p){var J=this.items.children;return J&&J.length>p?J[p]:void 0};
_.R.onPageChange=function(){var p=this;this.pageLoadingFromNavigation=!0;_.wg.addJob(function(){p.pageLoadingFromNavigation=!1;_.L1(p.hostElement,"yt-terminate-video-preview-action")},8)};
_.R.updateListStyles=function(){if(_.z("problem_walkthrough_sd")&&this.JSC$15440_scrollContainer!==void 0){var p=this.JSC$15440_scrollContainer.clientWidth;p!==this.JSC$15440_lastScrollContainerWidth&&(this.JSC$15440_lastScrollContainerWidth=p,_.K3(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(p*.8,415)+"px"}),_.cf(this.hostElement,"iron-resize"))}};
_.vh.Object.defineProperties(qf.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.z("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return!!((p=this.data)==null?0:(J=p.cards)==null?0:(S=J[0])==null?0:S.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return!!((p=this.data)==null?0:(J=p.cards)==null?0:(S=J[0])==null?0:S.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return _.z("enable_desktop_amsterdam_info_panels")&&!!((p=this.data)==null?0:(J=p.cards)==null?0:(S=J[0])==null?0:S.infoPanelContentRenderer)}}});
qf.prototype.dataChanged=qf.prototype.dataChanged;qf.prototype.onIronResize=qf.prototype.onIronResize;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.BH.YtdHorizontalListBehavior),_.Y("design:type",Object)],qf.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.B(_.ZU),_.Y("design:type",Object)],qf.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qf.prototype,"data",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],qf.prototype,"useCustomColors",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],qf.prototype,"useHighlightStyling",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.Y("design:type",Object)],qf.prototype,"cardListStyle",void 0);_.V([_.N({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.Y("design:type",Boolean)],qf.prototype,"empty",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.Y("design:type",Boolean)],qf.prototype,"hasSubtitle",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.Y("design:type",Boolean)],qf.prototype,"thumbnailStyle",void 0);_.V([_.N({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.Y("design:type",Boolean)],qf.prototype,"hasGameCard",void 0);_.V([_.N({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.Y("design:type",Boolean)],qf.prototype,"centerHeaderTitle",void 0);
_.V([_.N({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.Y("design:type",Boolean)],qf.prototype,"hasPortraitMiniApp",void 0);_.V([_.N({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.Y("design:type",Boolean)],qf.prototype,"hasSquareMiniApp",void 0);_.V([_.N({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.Y("design:type",Boolean)],qf.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.V([_.N({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.Y("design:type",Boolean)],qf.prototype,"hasInfoPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],qf.prototype,"isSearch",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qf.prototype,"inlineStructuredDescription",void 0);_.V([_.FM("#scroll-container"),_.Y("design:type",HTMLDivElement)],qf.prototype,"JSC$15440_scrollContainer",void 0);
_.V([_.N({computed:"computeInitialCountNumber(data.style.type)"}),_.Y("design:type",Number)],qf.prototype,"initialCount",void 0);_.V([_.N({computed:"computeUseFloorScrolling(data.style.type)"}),_.Y("design:type",Boolean)],qf.prototype,"useFloorScrolling",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.Y("design:type",Boolean)],qf.prototype,"centerItems",void 0);_.V([_.N(),_.Y("design:type",Object)],qf.prototype,"pageLoadingFromNavigation",void 0);
_.V([_.N(),_.Y("design:type",Object)],qf.prototype,"currentIndex",void 0);_.V([_.N(),_.Y("design:type",Number)],qf.prototype,"scrollCount",void 0);_.V([_.N(),_.Y("design:type",Object)],qf.prototype,"supportComponentResize",void 0);_.V([_.FM("#items"),_.Y("design:type",HTMLDivElement)],qf.prototype,"items",void 0);_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qf.prototype,"onIronResize",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qf.prototype,"dataChanged",null);_.V([_.N({reflectToAttribute:!0}),_.U("inlineStructuredDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qf.prototype,"hideNavigationButton",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qf.prototype,"modernChapters",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qf.prototype,"hasVideoAttributeViewModels",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qf.prototype,"modernInfoPanels",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],qf);
_.l(qf,"ytd-horizontal-card-list-renderer",function(){if(ctE!==void 0)return ctE;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return ctE=p},{mode:_.Jz("kevlar_poly_si_batch_j072")?1:2});var R88=_.d(function(p){var J=p.data;var S={};return _.m("video-summary-content-view-model",{class:_.XB("videoSummaryContentViewModelHost",p.className,(S.videoSummaryContentViewModelHostIsSearch=p.isSearch,S))},_.m(_.dY,{each:function(){var H=[],M=J().paragraphs;if(M==null||!M.length)return[];for(var X=0;X<M.length;X++){var Z=_.e(M[X],$ZM),n=void 0;X>0&&(n=_.e(M[X-1],$ZM));n&&!!n.marker===!!Z.marker?H[H.length-1].paragraphs.push(Z):H.push({isList:!!Z.marker,paragraphs:[Z]})}return H},
keyBy:"INDEX"},function(H){return _.m(_.v,{cond:function(){return H().isList},
then:function(){return _.m("ul",{class:"videoSummaryContentViewModelList"},_.m(_.dY,{each:function(){return H().paragraphs},
keyBy:"INDEX"},function(M){return _.m("li",{class:"videoSummaryContentViewModelListItem"},_.m(_.v3,{text:function(){return M().text}}))}))},
else:function(){return _.m("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.m(_.dY,{each:function(){return H().paragraphs},
keyBy:"INDEX"},function(M){return _.m("p",{class:"videoSummaryContentViewModelParagraph"},_.m(_.v3,{text:function(){return M().text}}))}))}})}),_.m(_.v,{cond:function(){return!!_.e(J().likeButtonViewModel,_.kI)&&!!_.e(J().dislikeButtonViewModel,_.Nk)},
then:function(){return _.m("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.m("div",{class:"videoSummaryContentViewModelLikeButton"},_.m(_.nB,{data:function(){return _.e(J().likeButtonViewModel,_.kI)},
disableIconAnimation:!0})),_.m(_.Zh,{data:function(){return _.e(J().dislikeButtonViewModel,_.Nk)}}))}}))},"ac");
R88.idomCompat=!0;_.ci(R88,"video-summary-content-view-model",{props:{data:_.fD,isSearch:_.fD,className:_.fD}});var aH=function(){var p=_.T.apply(this,arguments)||this;var J,S;p.isExpanded=(S=(J=p.data)==null?void 0:J.isExpanded)!=null?S:!1;p.disableExpand=!1;p.showProminentLabel=!1;p.showRightSideLabel=!0;p.toggleExpandableContent=function(H){p.disableExpand||(H.stopPropagation(),_.wn(_.Er(H),p.hostElement,["info","expanded-subtitle"])||(p.isExpanded=!p.isExpanded,p.ytRendererBehavior.logExplicitClick(p.data),p.JSC$15451_cardList&&!_.z("expandable_metadata_a11y_fix_ks")&&_.mN(p,function(){_.nH(p.hostElement)})))};
p.useSquareThumbnail=!1;p.startX=0;return p};
_.Q(aH,_.T);_.R=aH.prototype;_.R.computeUseSquareThumbnail=function(){var p;return(p=this.data)==null?void 0:p.useSquareThumbnail};
_.R.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"}}}}};
_.R.dataChanged=function(){if(this.data){var p,J;this.isExpanded=(J=(p=this.data)==null?void 0:p.isExpanded)!=null?J:!1;var S,H,M,X;if(p=this.isDarkTheme()?(S=this.data)==null?void 0:(H=S.colorData)==null?void 0:H.darkColorPalette:(M=this.data)==null?void 0:(X=M.colorData)==null?void 0:X.lightColorPalette){var Z,n;if((Z=this.data)==null?0:(n=Z.colorData)==null?0:n.vibrantColorPalette)p.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.eK(this.hostElement,p)}}};
_.R.isExpandedChanged=function(){this.isExpanded&&this.JSC$15451_cardList&&_.cf(this.JSC$15451_cardList,"iron-resize")};
_.R.computeIsExpanded=function(p){return!!p.isExpanded};
_.R.computeShowProminentLabel=function(p,J){var S;return!!(p==null?0:(S=p.header)==null?0:S.showLeadingCollapsedLabel)&&!J};
_.R.computeShowRightSideLabel=function(p,J){var S;return!(p==null?0:(S=p.header)==null?0:S.showLeadingCollapsedLabel)&&!J};
_.R.captureContentClick=function(p){if(!this.disableExpand)if(_.z("expandable_metadata_fix_killswitch")){var J=p.target;_.d0o(J,"ytd-macro-markers-list-item-renderer")||p.stopPropagation();(J==null?void 0:J.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.wn(_.Er(p),this.hostElement,["items"])||_.jK(_.Er(p),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.R.timestampClick=function(p){p.stopPropagation();var J,S;(p=(J=this.data)==null?void 0:(S=J.header)==null?void 0:S.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(p)};
_.R.onDown=function(p){p.stopPropagation();this.startX=p.detail?p.detail.x:0};
_.R.onUp=function(p){this.skipKeyInteraction(p)&&p.stopPropagation()};
_.R.skipKeyInteraction=function(p){var J=p.target;if((J==null?void 0:J.id)==="scroll-container"||(J==null?void 0:J.id)==="items"||p.detail&&p.detail.x!==this.startX)return!0;p=_.Er(p);p=_.K(p);for(J=p.next();!J.done;J=p.next()){J=J.value;if(J===this.hostElement)break;if(J.hasAttribute&&J.hasAttribute("skip-key-interaction"))return!0}return!1};
_.R.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.vh.Object.defineProperties(aH.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.e((p=this.data)==null?void 0:p.expandedContent,zDE)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.e((p=this.data)==null?void 0:p.expandedContent,_.z$8)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var p,J;return!((p=this.data)==null||!p.useCustomColors)&&!((J=this.data)==null||!J.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,J;return!!((p=this.data)==null?0:(J=p.header)==null?0:J.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var p,J;return!!((p=this.data)==null?0:(J=p.header)==null?0:J.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var p,J;return!!((p=this.data)==null?0:(J=p.header)==null?0:J.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"}}});
aH.prototype.onUp=aH.prototype.onUp;aH.prototype.onDown=aH.prototype.onDown;aH.prototype.isExpandedChanged=aH.prototype.isExpandedChanged;aH.prototype.dataChanged=aH.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],aH.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],aH.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],aH.prototype,"isExpanded",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],aH.prototype,"disableExpand",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],aH.prototype,"isSearch",void 0);
_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],aH.prototype,"isWatch",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.Y("design:type",Object)],aH.prototype,"showProminentLabel",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.Y("design:type",Object)],aH.prototype,"showRightSideLabel",void 0);
_.V([_.N({value:!1,reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aH.prototype,"hasVideoSummary",null);_.V([_.N({value:!1,reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aH.prototype,"hasLockupViewModel",null);_.V([_.N({reflectToAttribute:!0}),_.U("data","isWatch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aH.prototype,"useCustomColors",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aH.prototype,"showInfoButton",null);_.V([_.U("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aH.prototype,"showTimestamp",null);_.V([_.U("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aH.prototype,"showExpandedSubtitle",null);
_.V([_.U("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aH.prototype,"showThumbnail",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aH.prototype,"useVppShoppingDestinationStyle",null);_.V([_.N(),_.Y("design:type",Object)],aH.prototype,"toggleExpandableContent",void 0);_.V([_.FM("ytd-horizontal-card-list-renderer"),_.Y("design:type",Object)],aH.prototype,"JSC$15451_cardList",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.Y("design:type",Object)],aH.prototype,"useSquareThumbnail",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aH.prototype,"dataChanged",null);_.V([_.bO("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aH.prototype,"isExpandedChanged",null);
_.V([_.GI("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],aH.prototype,"onDown",null);_.V([_.GI("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],aH.prototype,"onUp",null);_.V([_.gw({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],aH);
_.l(aH,"ytd-expandable-metadata-renderer",function(){if(X14!==void 0)return X14;var p=document.createElement("template");_.C(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" hidden="[[!isExpanded]]" 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(_.r().content.cloneNode(!0),
p.content.firstChild);return X14=p},{mode:1});var Kcn,Zmn=function(){if(Kcn!==void 0)return Kcn;var p=document.createElement("template");_.C(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="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" 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(_.r().content.cloneNode(!0),p.content.firstChild);return Kcn=p};_.ci(_.KF,"yt-avatar-stack-view-model",{props:{className:_.fD,data:_.fD,overrides:_.fD,isOverlay:_.fD,useMediumText:_.fD,decorations:_.fD,hideAvatar:_.fD}});_.QI("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Ez=function(){var p=_.T.apply(this,arguments)||this;p.disableExpand=!1;p.shouldShowChannelInfo=!1;p.hasAttributedBylineText=!1;p.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return p};
_.Q(Ez,_.T);_.R=Ez.prototype;_.R.computeUseSearchUi=function(){var p,J;return this.isSearch||((p=this.data)==null?void 0:(J=p.style)==null?void 0:J.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.R.computeUseThreeLineTitle=function(){var p;return((p=this.data)==null?void 0:p.maxTitleLines)===3};
_.R.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.z("polymer_video_renderer_defer_menu")&&!qY8?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.R.attached=function(){_.XM(this.hostElement,"blue-links",_.z("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.iO(_.Jn(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var p=this.get("data.buttons.buttonRenderer.serviceEndpoint"),J;p&&((J=_.e(p.commandMetadata,_.rB))==null?0:J.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(p);this.updateInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15456_inlinePreviewHoverListener=hH({mediaRenderer:this,lockupElement:this.JSC$15456_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.R.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15456_inlinePreviewHoverListener)==null||r_(p)};
_.R.onTextWrapperClick=function(p){var J,S,H=this.hideTranslation?(J=this.data)==null?void 0:J.untranslatedNavigationEndpoint:(S=this.data)==null?void 0:S.navigationEndpoint;J=_.wn(_.Er(p),this.hostElement,["expandable-metadata"]);!H||J&&!_.z("expandable_metadata_fix_killswitch")||_.jK(_.Er(p),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.cf(this.hostElement,"yt-navigate",{endpoint:H})};
_.R.computeThumbnailWidth=function(p,J,S,H,M){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:H?M==="MASSIVE"?600:M==="BIG"?500:M==="MEDIUM"?450:420:S?360:J?128:p?210:246};
_.R.computeUseBiggerThumbs=function(p){return p&&_.z("enable_desktop_search_bigger_thumbs")};
_.R.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.R.computeHasAttributedBylineText=function(){var p;return!((p=this.data)==null||!p.attributedBylineText)};
_.R.computeVideoStyle=function(){if(_.z("enable_video_style")){var p,J;return(p=this.data)==null?void 0:(J=p.style)==null?void 0:J.value}};
_.R.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.R.handleHideItemSectionVideosByIdCommand=function(p){var J;p=(J=_.e(p,quv))==null?void 0:J.videoId;this.data&&this.data.videoId===p&&(this.isHidden=!0)};
_.R.getMetadataSnippetContainerClass=function(p){return p?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.R.computeTitleText=function(p,J,S){return p?S:J};
_.R.computeDescriptionSnippet=function(p,J,S){return p?S:J};
_.R.computeSnippetText=function(p,J,S){return p?S:J};
_.R.computeNavigationEndpoint=function(p,J){return p?J==null?void 0:J.untranslatedNavigationEndpoint:J==null?void 0:J.navigationEndpoint};
_.R.hideInlineTitleIcon=function(p,J){return p||!J};
_.vh.Object.defineProperties(Ez.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[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return!!(this==null?0:(p=this.data)==null?0:(J=p.channelThumbnailSupportedRenderers)==null?0:(S=J.channelThumbnailWithLinkRenderer)==null?0:S.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.e((p=this.data)==null?void 0:p.avatar,$g8)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$15456_inlinePreviewHoverListener)==null?0:GK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.vh.Object.defineProperties(Ez,{template:{configurable:!0,enumerable:!0,get:function(){return Zmn()}}});
Ez.prototype.dataChanged=Ez.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Ez.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ez.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],Ez.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.fa),_.Y("design:type",Object)],Ez.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Ez.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Ez.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ez.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ez.prototype,"isBackstageVideo",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ez.prototype,"isPostCompactVideo",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ez.prototype,"isHistory",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ez.prototype,"isRichGridVideoPost",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ez.prototype,"isHidden",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ez.prototype,"isSearch",void 0);_.V([_.N({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.Y("design:type",Boolean)],Ez.prototype,"useSearchUi",void 0);_.V([_.N({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.Y("design:type",Boolean)],Ez.prototype,"useThreeLineTitle",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.Y("design:type",Boolean)],Ez.prototype,"useBiggerThumbs",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.Y("design:type",Object)],Ez.prototype,"videoStyle",void 0);_.V([_.N({computed:"computeDisableExpand(videoStyle)"}),_.Y("design:type",Object)],Ez.prototype,"disableExpand",void 0);
_.V([_.N({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.Y("design:type",Object)],Ez.prototype,"shouldShowChannelInfo",void 0);_.V([_.N({computed:"computeHasAttributedBylineText(data)"}),_.Y("design:type",Object)],Ez.prototype,"hasAttributedBylineText",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.zG("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Ez.prototype,"biggerThumbsStyle",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.Y("design:type",String)],Ez.prototype,"inlineTitleIcon",void 0);_.V([_.N({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.Y("design:type",Object)],Ez.prototype,"computedNavigationEndpoint",void 0);_.V([_.N({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(p,J){return _.RR(p.entities,"searchVideoResultEntity",J)}}),
_.Y("design:type",Object)],Ez.prototype,"searchVideoResultEntity",void 0);_.V([_.FM("ytd-thumbnail"),_.Y("design:type",HTMLElement)],Ez.prototype,"thumbnail",void 0);_.V([_.FM("#dismissible"),_.Y("design:type",HTMLElement)],Ez.prototype,"JSC$15456_dismissibleMedia",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ez.prototype,"dataChanged",null);
_.V([_.U("searchVideoResultEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ez.prototype,"hideTranslation",null);_.V([_.U("searchVideoResultEntity"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Ez.prototype,"hiddenBadgeGroups",null);_.V([_.U("data","useAvatar"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ez.prototype,"shouldShowChannelThumbnail",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ez.prototype,"useAvatar",null);
_.V([_.U("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ez.prototype,"isHovered",null);_.V([_.gw({is:"ytd-video-renderer",disableElementRegistration:!0})],Ez);_.l(Ez,"ytd-video-renderer",function(){return Zmn()},{mode:_.Jz("kevlar_poly_si_batch_j047")?1:2});var YA=function(){var p=_.T.apply(this,arguments)||this;p.editDialog=null;p.roundedContainer=!0;p.isLoading=!1;p.isRichGrid=!1;p.isRichGridRepost=!1;p.reduceSidePaddings=_.z("reduce_side_paddings_in_shelf");p.JSC$15463_spinnerEl=null;return p};
_.Q(YA,_.T);_.R=YA.prototype;
_.R.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"}}}};
_.R.contentTextChanged=function(){this.expander.reset()};
_.R.dataChanged=function(){var p=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var J=0,S=this.data.actions&&this.data.actions.length;J<S;J++)this.openEditDialog(_.e(this.data.actions[J],QL8));if((J=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(J=this.get("buttonRenderer.hint.hintRenderer.hintId",J))&&J.startsWith("share-post-hint")){var H=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(H){_.NZ.getInstance();var M=Tk(_.aR(_.Kl("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.wg.addLowPriorityJob(function(){_.JP(p.hostElement,M,H)})}}}};
_.R.updatePoll=function(p){p>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.R.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15463_spinnerEl||(this.JSC$15463_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Jn(this.hostElement).appendChild(this.JSC$15463_spinnerEl));this.JSC$15463_spinnerEl&&(this.JSC$15463_spinnerEl.active=this.isLoading)};
_.R.onYtNavigate=function(p){var J=this.get("updateCommentDialogEndpoint",p.detail.endpoint);J&&(this.openEditDialog(J),p.stopPropagation())};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null};
_.R.onYtCommentPollRevert=function(p,J){J&&this.updatePoll(J.selectedChoiceIndex)};
_.R.onYtServiceRequestSent=function(p,J){var S;J.endpoint&&(_.e(J.endpoint,k3m)||_.e(J.endpoint,DF8)&&((S=_.e(J.endpoint,DF8))==null||!S.clientActions))&&(this.isLoading=!0);if(J.actions)for(p=0;p<J.actions.length;p++)S=J.actions[p],_.e(S,Ed)&&(S=this.get("updateBackstagePollAction.selectedChoiceIndex",S),S==void 0&&(S=-1),this.updatePoll(S))};
_.R.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.R.openEditDialog=function(p){p&&p.dialog&&(this.editDialog=p.dialog,p=this.editDialogEl.firstElementChild)&&(p.focus(),p.openDialog&&p.openDialog())};
_.R.computeIsPostHidden=function(p,J){return!!p||J};
_.R.computeSurfaceType=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.R.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"};
_.R.computeShowWithoutToolbar=function(p){return!p.actionButtons&&!p.actionMenu};
_.R.computePostAttachment=function(p){if(p.backstageAttachment){if(_.e(p.backstageAttachment,FBL))return"poll";if(_.e(p.backstageAttachment,I0L))return"quiz";if(_.e(p.backstageAttachment,_.GZ))return"video";if(_.e(p.backstageAttachment,LUm))return"uploaded-videos";if(_.e(p.backstageAttachment,cGM))return p.contentText?"image":"image-only";if(_.e(p.backstageAttachment,jO8))return"playlist"}return"none"};
_.R.computePostTabIndex=function(p){return p?0:-1};
_.R.computeButtonTooltipPosition=function(p){return this.computeUsesCompactLockup(p)?"top":"bottom"};
_.R.computeHasText=function(p){return!(p==null||!p.contentText)};
_.R.onTap=function(p){var J,S;if(((J=this.data)==null?0:J.navigationEndpoint)&&((S=this.data)==null?void 0:S.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var H;((H=this.data)==null?0:H.navigationEndpoint)&&!_.jK(_.Er(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.vh.Object.defineProperties(YA.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.voteCount)||_.aR("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||!_.e(this.data.backstageAttachment,FBL))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,LUm))}}});
YA.prototype.onYtServiceRequestCompleted=YA.prototype.onYtServiceRequestCompleted;YA.prototype.onYtServiceRequestSent=YA.prototype.onYtServiceRequestSent;YA.prototype.onYtCommentPollRevert=YA.prototype.onYtCommentPollRevert;YA.prototype.onYtCommentboxDismiss=YA.prototype.onYtCommentboxDismiss;YA.prototype.onYtNavigate=YA.prototype.onYtNavigate;YA.prototype.isLoadingChanged=YA.prototype.isLoadingChanged;YA.prototype.dataChanged=YA.prototype.dataChanged;YA.prototype.contentTextChanged=YA.prototype.contentTextChanged;
_.V([_.B(_.ZU),_.Y("design:type",Object)],YA.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],YA.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],YA.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],YA.prototype,"editDialog",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YA.prototype,"roundedContainer",void 0);_.V([_.N(),_.Y("design:type",Object)],YA.prototype,"isLoading",void 0);_.V([_.N({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.Y("design:type",String)],YA.prototype,"surface",void 0);
_.V([_.N({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],YA.prototype,"usesCompactLockup",void 0);_.V([_.N({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],YA.prototype,"showWithoutToolbar",void 0);_.V([_.N({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.Y("design:type",String)],YA.prototype,"attachment",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YA.prototype,"isRichGrid",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YA.prototype,"isRichGridRepost",void 0);_.V([_.N({reflectToAttribute:!0,value:_.z("use_better_post_dismissals")}),_.Y("design:type",Boolean)],YA.prototype,"useBetterPostDismissals",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YA.prototype,"reduceSidePaddings",void 0);
_.V([_.N({computed:"computeHasText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],YA.prototype,"hasText",void 0);_.V([_.FM("#expander"),_.Y("design:type",Object)],YA.prototype,"expander",void 0);_.V([_.FM("#action-buttons"),_.Y("design:type",Object)],YA.prototype,"actionButtons",void 0);_.V([_.FM("#edit-dialog"),_.Y("design:type",HTMLElement)],YA.prototype,"editDialogEl",void 0);
_.V([_.bO("data.contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YA.prototype,"contentTextChanged",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YA.prototype,"dataChanged",null);_.V([_.bO("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YA.prototype,"isLoadingChanged",null);
_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],YA.prototype,"onYtNavigate",null);_.V([_.GI("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YA.prototype,"onYtCommentboxDismiss",null);_.V([_.GI("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],YA.prototype,"onYtCommentPollRevert",null);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],YA.prototype,"onYtServiceRequestSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],YA.prototype,"onYtServiceRequestCompleted",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YA.prototype,"voteCount",null);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YA.prototype,"commentCount",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YA.prototype,"hasPoll",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YA.prototype,"hasUploadedVideo",null);_.V([_.gw({is:"ytd-post-renderer",disableElementRegistration:!0})],YA);
_.l(YA,"ytd-post-renderer",function(){if(CJ8!==void 0)return CJ8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return CJ8=p},{mode:1});var nG8;var GPM;var rX=function(){return _.T.apply(this,arguments)||this};
_.Q(rX,_.T);rX.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.BH.YtdHorizontalListBehavior),_.Y("design:type",Object)],rX.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],rX.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],rX.prototype,"data",void 0);
_.V([_.N({value:"$.items.children"}),_.Y("design:type",String)],rX.prototype,"itemsPath",void 0);_.V([_.N({value:1}),_.Y("design:type",Number)],rX.prototype,"initialCount",void 0);_.V([_.N({reflectToAttribute:!0,value:_.z("enable_community_page_on_desktop")}),_.Y("design:type",Boolean)],rX.prototype,"useSmallerPostImageAttachments",void 0);_.V([_.N(),_.Y("design:type",String)],rX.prototype,"surface",void 0);_.V([_.gw({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],rX);
_.l(rX,"ytd-post-multi-image-renderer",function(){if(GPM!==void 0)return GPM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return GPM=p},{mode:_.Jz("kevlar_poly_si_batch_j079")?1:2});var bmn={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"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"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
jZ=function(){var p=_.T.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$15478_spinnerEl=null;p.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return p};
_.Q(jZ,_.T);_.R=jZ.prototype;_.R.configureRendererStamper=function(){return bmn};
_.R.computeIsPollHeaderEnabled=function(p){return(p==null?void 0:p.pollMetadataIcon)!=null};
_.R.getPublishTimeStampString=function(p,J){J=new Date((Number(J)-60*((new Date).getTimezoneOffset()-(new Date(Number(J)*1E3)).getTimezoneOffset()))*1E3);J=(new qw(10)).format(J);if(p&&p.runs&&p.runs.length)for(var S=0;S<p.runs.length;S++)p.runs[S].text&&(p.runs[S].text=p.runs[S].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",J));return p};
_.R.created=function(){this.JSC$15478_spinnerEl=null};
_.R.contentTextChanged=function(){this.expander.reset()};
_.R.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var p;if((p=this.data)==null?0:p.actions){p=_.K(this.data.actions);for(var J=p.next();!J.done;J=p.next())this.openEditDialog(_.e(J.value,QL8))}};
_.R.handleSignalActionOpenPostCommentDialogAction=function(){_.Jn(this.hostElement).querySelector("#action-buttons").reply()};
_.R.updatePoll=function(p,J){J&&this.set("data.pollMetadataVoteCountText",J);this.hasInlineCommentSection&&(p=p>=0,J=_.Jn(this.hostElement).querySelector("#action-buttons"),p?J.reply():J.hideReplyDialog())};
_.R.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15478_spinnerEl||(this.JSC$15478_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Jn(this.hostElement).appendChild(this.JSC$15478_spinnerEl));this.JSC$15478_spinnerEl&&(this.JSC$15478_spinnerEl.active=this.isLoading)};
_.R.onYtNavigate=function(p){var J=this.get("updateCommentDialogEndpoint",p.detail.endpoint);J&&(this.openEditDialog(J),p.stopPropagation())};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null};
_.R.onYtCommentPollRevert=function(p,J){J&&this.updatePoll(J.selectedChoiceIndex,J.totalVotes)};
_.R.onYtServiceRequestSent=function(p,J){p.stopPropagation();p=_.e(J.endpoint,DF8);if(_.e(J.endpoint,k3m)||p&&!p.clientActions)this.isLoading=!0;if(J.actions)for(p=0;p<J.actions.length;p++){var S=J.actions[p],H=_.e(S,Ed);H&&(S=this.get("updateBackstagePollAction.selectedChoiceIndex",S),S===void 0&&(S=-1),this.updatePoll(S,H.totalVotes))}};
_.R.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.R.openEditDialog=function(p){p&&p.dialog&&(this.editDialog=p.dialog,p=this.editDialogElement.firstElementChild)&&(p.focus(),p.openDialog&&p.openDialog())};
_.R.computeIsBodyHidden=function(p,J){return!!p||J};
_.vh.Object.defineProperties(jZ.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var p=this.data,J=p.showPostAuthorBackgroundHighlight,S=p.postAuthorBadgeType,H=p.authorEndpoint;if(!J&&S!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&S!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var M,X,Z;p=_.aR(((M=p.authorText)==null?void 0:(X=M.runs)==null?void 0:(Z=X[0])==null?void 0:Z.text)||"");M=void 0;switch(S){case "POST_AUTHOR_BADGE_TYPE_ARTIST":M={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":M={iconType:J?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:p,authorEndpoint:H,authorCreator:J,icon:M}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var p,J;if((p=this.data)==null?0:(J=p.pollMetadataIcon)==null?0:J.iconType)return _.Xj(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.voteCount)||_.aR("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||!_.e(this.data.backstageAttachment,FBL))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,I0L))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,LUm))}}});
jZ.prototype.onYtServiceRequestCompleted=jZ.prototype.onYtServiceRequestCompleted;jZ.prototype.onYtServiceRequestSent=jZ.prototype.onYtServiceRequestSent;jZ.prototype.onYtCommentPollRevert=jZ.prototype.onYtCommentPollRevert;jZ.prototype.onYtCommentboxDismiss=jZ.prototype.onYtCommentboxDismiss;jZ.prototype.onYtNavigate=jZ.prototype.onYtNavigate;jZ.prototype.isLoadingChanged=jZ.prototype.isLoadingChanged;jZ.prototype.dataChanged=jZ.prototype.dataChanged;jZ.prototype.contentTextChanged=jZ.prototype.contentTextChanged;
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],jZ.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],jZ.prototype,"rendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],jZ.prototype,"rendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],jZ.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.FM("#contentTextExpander"),_.Y("design:type",Object)],jZ.prototype,"expander",void 0);_.V([_.FM("#edit-dialog"),_.Y("design:type",Element)],jZ.prototype,"editDialogElement",void 0);_.V([_.N(),_.Y("design:type",Object)],jZ.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],jZ.prototype,"hasInlineCommentSection",void 0);_.V([_.N(),_.Y("design:type",Object)],jZ.prototype,"editDialog",void 0);_.V([_.N(),_.Y("design:type",Object)],jZ.prototype,"isLoading",void 0);
_.V([_.N({computed:"computeIsPollHeaderEnabled(data)"}),_.Y("design:type",Boolean)],jZ.prototype,"isPollHeaderEnabled",void 0);_.V([_.N(),_.Y("design:type",Object)],jZ.prototype,"shouldHideAuthor",void 0);_.V([_.N(),_.Y("design:type",Object)],jZ.prototype,"shouldShowVideoTime",void 0);_.V([_.N(),_.Y("design:type",Object)],jZ.prototype,"isInEngagementPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jZ.prototype,"hideBorder",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jZ.prototype,"usesFullLockup",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jZ.prototype,"shouldShowMenuInCompactView",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jZ.prototype,"authorCommentBadge",null);_.V([_.U("isInEngagementPanel"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],jZ.prototype,"postTextMaxLines",null);
_.V([_.U("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jZ.prototype,"pollIcon",null);_.V([_.bO("data.contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jZ.prototype,"contentTextChanged",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jZ.prototype,"dataChanged",null);
_.V([_.bO("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jZ.prototype,"isLoadingChanged",null);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jZ.prototype,"onYtNavigate",null);_.V([_.GI("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jZ.prototype,"onYtCommentboxDismiss",null);
_.V([_.GI("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],jZ.prototype,"onYtCommentPollRevert",null);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],jZ.prototype,"onYtServiceRequestSent",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jZ.prototype,"onYtServiceRequestCompleted",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jZ.prototype,"voteCount",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jZ.prototype,"commentCount",null);
_.V([_.U("data.backstageAttachment"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jZ.prototype,"hasPoll",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jZ.prototype,"hasQuiz",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jZ.prototype,"hasUploadedVideo",null);_.V([_.gw({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],jZ);
_.l(jZ,"ytd-backstage-post-renderer",function(){if(nG8!==void 0)return nG8;var p=document.createElement("template");_.C(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="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!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="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" 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(_.r().content.cloneNode(!0),p.content.firstChild);return nG8=p},{mode:1});var meL;var wX=function(){var p=_.T.apply(this,arguments)||this;p.editDialog=null;p.showExpandButton=!1;p.isRichGrid=!1;p.usesFullLockup=!1;return p};
_.Q(wX,_.T);_.R=wX.prototype;_.R.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"}}}};
_.R.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.R.computeShowExpandButton=function(p){return this.usesCompactLockup||p&&p.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.R.computeUsesCompactLockup=function(p){return!!p.condensedContent};
_.R.computeShowFullContentText=function(p){return!p};
_.R.onYtNavigate=function(p){p=this.get("updateCommentDialogEndpoint",p.detail.endpoint);this.openEditDialog(p)};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null};
_.R.openEditDialog=function(p){p&&p.dialog&&(this.editDialog=p.dialog,p=this.repostEditDialogEl.firstElementChild)&&(p.focus(),p.openDialog&&p.openDialog())};
_.R.onTap=function(p){if(this.data){var J=null;this.usesCompactLockup&&!_.jK(_.Er(p)||[],this.hostElement,["YT-IMG-SHADOW"])?J=this.get("navigationEndpoint",this.data):p.target===this.moreButtonEl&&(J=this.get("navigationEndpoint",p.target.data));J&&_.cf(this.hostElement,"yt-navigate",{endpoint:J})}};
wX.prototype.onYtCommentboxDismiss=wX.prototype.onYtCommentboxDismiss;wX.prototype.onYtNavigate=wX.prototype.onYtNavigate;wX.prototype.dataChanged=wX.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],wX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wX.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],wX.prototype,"editDialog",void 0);_.V([_.N({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],wX.prototype,"usesCompactLockup",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],wX.prototype,"showExpandButton",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],wX.prototype,"isRichGrid",void 0);
_.V([_.N({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],wX.prototype,"showFullContentText",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],wX.prototype,"usesFullLockup",void 0);_.V([_.FM("#more"),_.Y("design:type",Object)],wX.prototype,"moreButtonEl",void 0);_.V([_.FM("#repost-content-text"),_.Y("design:type",HTMLElement)],wX.prototype,"repostContentTextEl",void 0);
_.V([_.FM("#repost-edit-dialog"),_.Y("design:type",HTMLElement)],wX.prototype,"repostEditDialogEl",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wX.prototype,"dataChanged",null);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],wX.prototype,"onYtNavigate",null);
_.V([_.GI("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wX.prototype,"onYtCommentboxDismiss",null);_.V([_.gw({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],wX);
_.l(wX,"ytd-shared-post-renderer",function(){if(meL!==void 0)return meL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return meL=p},{mode:1});var Fco;var vGL;var xA=function(){return _.T.apply(this,arguments)||this};
_.Q(xA,_.T);xA.prototype.attached=function(){var p=this;this.networkStatusManager||(this.networkStatusManager=new _.RJ,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){p.onlineHandler()}))};
xA.prototype.detached=function(){var p=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){p.onlineHandler()}),delete this.networkStatusManager)};
xA.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],xA.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xA.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],xA);
_.l(xA,"ytd-reload-page-button-renderer",function(){if(vGL!==void 0)return vGL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
return vGL=p},{mode:1});var f_8={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"},c2=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.Q(c2,_.T);_.R=c2.prototype;_.R.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.R.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.R.computeHasBodyText=function(p){return!!p.bodyText};
_.R.computeButtons=function(p){var J=[];p.ctaButton&&J.push(p.ctaButton);p.secondaryButton&&J.push(p.secondaryButton);return J};
_.R.computeRendererStyle=function(p){return p.style?p.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():p.icon?"":"no-icon"};
_.R.getIconName=function(p,J){J=J===void 0?!1:J;if(p===void 0)return"";p=this.get("icon.iconType",p);var S;_.z("enable_hlp_client_icon_pick")?S=this.getThemedIcon(p,J):S=p;(J=f_8[S])||(J="yt-icons");return[J,S].join(":")};
_.R.getThemedIcon=function(p,J){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(p)?J?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(p)?J?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":p};
_.R.isThumbnail=function(p){return!!p.thumbnail};
_.R.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.R.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],c2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],c2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],c2.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],c2.prototype,"data",void 0);
_.V([_.N({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],c2.prototype,"rendererStyle",void 0);_.V([_.N({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.Y("design:type",String)],c2.prototype,"iconName",void 0);_.V([_.N({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],c2.prototype,"thumbnail",void 0);_.V([_.N({computed:"computeButtons(data)"}),_.Y("design:type",Array)],c2.prototype,"buttons",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],c2.prototype,"isDarkTheme",void 0);_.V([_.N({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],c2.prototype,"hasBodyText",void 0);_.V([_.gw({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],c2);
_.pI()(c2,"ytd-background-promo-renderer",function(){if(Fco===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);Fco=p}p=Fco;return p},{allowedProps:["data"],
mode:1});var OmU;var IH=function(){return _.T.apply(this,arguments)||this};
_.Q(IH,_.T);_.vh.Object.defineProperties(IH.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H,M,X;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(p=this.data)==null?void 0:(J=p.thumbnail)==null?void 0:J.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(H=S.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(M=this.data)==null?void 0:(X=M.thumbnail)==null?void 0:X.darkColorPalette,experimentEnabled:!0}}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],IH.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IH.prototype,"collectionStack",null);_.V([_.gw({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],IH);
_.l(IH,"ytd-compact-station-renderer",function(){if(OmU!==void 0)return OmU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return OmU=p},{mode:1});var A58;var LF=function(){var p=_.T.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.Q(LF,_.T);LF.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]]"}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],LF.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],LF.prototype,"isRichGrid",void 0);_.V([_.gw({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],LF);
_.l(LF,"ytd-grid-channel-renderer",function(){if(A58!==void 0)return A58;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return A58=p},{mode:1});var PMv;var pM=function(){return _.T.apply(this,arguments)||this};
_.Q(pM,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],pM.prototype,"data",void 0);_.V([_.gw({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],pM);
_.l(pM,"ytd-grid-movie-playlist-renderer",function(){if(PMv!==void 0)return PMv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return PMv=p},{mode:1});var z8U;var Jo=function(){var p=_.T.apply(this,arguments)||this;p.downloadProgress=0;p.transferState="TRANSFER_STATE_UNKNOWN";p.modernButtons=_.z("web_modern_buttons");return p};
_.Q(Jo,_.T);Jo.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Jo.prototype.configureRendererStamper=function(){return{"data.menu":YB}};
Jo.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Jo.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.z("woffle_playlist_renderer_killswitch")){var p,J=UFX(this.entityInfo,this.transferState,this.downloadProgress,(p=this.data)==null?void 0:p.playlistId,this.isOnline);p=J.viewPlaylistText;var S=J.badges;J=J.thumbnailOverlays;this.isDownloads=!!p||!!S;this.set("data.viewPlaylistText",p);S&&S.length>0&&this.set("data.badges",S);J&&J.length>0&&this.set("data.thumbnailOverlays",
J)}};
_.vh.Object.defineProperties(Jo.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)}}});
Jo.prototype.transferStateChanged=Jo.prototype.transferStateChanged;Jo.prototype.dataChanged=Jo.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],Jo.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Jo.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N({selector:_.l0X,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],Jo.prototype,"downloadProgress",void 0);_.V([_.N({selector:_.tk,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],Jo.prototype,"transferState",void 0);_.V([_.N({selector:uNW,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],Jo.prototype,"entityInfo",void 0);_.V([_.N({selector:_.s4}),_.Y("design:type",Boolean)],Jo.prototype,"isOnline",void 0);
_.V([_.N(),_.Y("design:type",Object)],Jo.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Jo.prototype,"downloadRenderData",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Jo.prototype,"modernButtons",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Jo.prototype,"isDownloads",void 0);_.V([_.U("transferState"),_.N({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],Jo.prototype,"downloadState",null);
_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Jo.prototype,"menuHidden",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jo.prototype,"dataChanged",null);_.V([_.An("transferState","downloadProgress","isOnline"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jo.prototype,"transferStateChanged",null);
_.V([_.gw({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Jo);
_.l(Jo,"ytd-grid-playlist-renderer",function(){if(z8U!==void 0)return z8U;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return z8U=p},{mode:1});var $eL;var SA=function(){return _.T.apply(this,arguments)||this};
_.Q(SA,_.T);SA.prototype.configureRendererStamper=function(){return{"data.menu":YB,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.vh.Object.defineProperties(SA.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H,M,X;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(p=this.data)==null?void 0:(J=p.thumbnail)==null?void 0:J.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(H=S.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(M=this.data)==null?void 0:(X=M.thumbnail)==null?void 0:X.darkColorPalette,experimentEnabled:!0}}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],SA.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],SA.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],SA.prototype,"data",void 0);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SA.prototype,"collectionStack",null);_.V([_.gw({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],SA);
_.l(SA,"ytd-grid-radio-renderer",function(){if($eL!==void 0)return $eL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return $eL=p},{mode:1});var oGp;var HC=function(){return _.T.apply(this,arguments)||this};
_.Q(HC,_.T);HC.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
HC.prototype.computeNavigationEndpoint=function(p){return h9s(p==null?void 0:p.navigationEndpoint)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],HC.prototype,"ytdLockupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],HC.prototype,"data",void 0);_.V([_.N({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],HC.prototype,"computedNavigationEndpoint",void 0);
_.V([_.gw({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],HC);
_.l(HC,"ytd-grid-show-renderer",function(){if(oGp!==void 0)return oGp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return oGp=p},{mode:1});var e8p;_.MH=function(p){this.playerClient=p};
_.Wcm=function(p,J,S){S=S===void 0?{}:S;return p.playerClient.setOption("ad",J,S)};
_.MH.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.MH.prototype.executeCommand=function(p,J){this.getOptions().includes("executeCommand")?_.Wcm(this,"executeCommand",{command:p,layoutId:J}):_.lT("Calling executeCommand when adModule is not loaded")};var XH=function(){return _.T.apply(this,arguments)||this};
_.Q(XH,_.T);XH.prototype.getLayoutId=function(){var p=_.Id("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
XH.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var p=_.IY(),J=this.getLayoutId(),S=this.data.clickthroughEndpoint;p&&J&&_.z("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?p.getPlayerPromise().then(function(H){(new _.MH(H)).executeCommand(S,J)}):_.cf(this.hostElement,"yt-navigate",{endpoint:S})}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],XH.prototype,"data",void 0);_.V([_.gw({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],XH);
_.l(XH,"ytd-shopping-companion-item-renderer",function(){if(e8p!==void 0)return e8p;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return e8p=p},{mode:1});var QmM;var iH=function(){var p=_.T.apply(this,arguments)||this;p.isExpandableContent=!1;return p};
_.Q(iH,_.T);_.vh.Object.defineProperties(iH.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,J,S;return((p=this.data)==null?void 0:p.price)||((J=this.data)==null?void 0:(S=J.dealsData)==null?void 0:S.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var p,J;if((p=this.data)!=null&&p.dealsData&&((J=this.data)==null||!J.priceReplacementText)){p=this.data.dealsData;var S,H,M;return((S=p.salesData)==null?void 0:S.originalPrice)||((H=p.priceDropData)==null?void 0:H.referencePrice)||((M=p.promotionData)==null?void 0:M.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,J;return(p=this.data)==null?void 0:(J=p.dealsData)==null?void 0:J.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"}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],iH.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],iH.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],iH.prototype,"isExpandableContent",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"showCta",null);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"ctaText",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"hasPriceTopPosition",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"hasPriceBottomPosition",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"useNewStyle",null);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"showPriceReplacementText",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"priceValue",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"showDeal",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"showAffiliateDisclaimer",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"useSaleStyle",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"useFromBrandCtaStyle",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"useFromVendorCtaStyle",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iH.prototype,"useShoppingCollectionCtaStyle",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],iH);
_.l(iH,"ytd-vertical-product-card-renderer",function(){if(QmM!==void 0)return QmM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return QmM=p},{mode:1});var CM8;var RM=function(){return _.T.apply(this,arguments)||this};
_.Q(RM,_.T);RM.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],RM.prototype,"ytdLockupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],RM.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],RM);
_.l(RM,"ytd-grid-movie-renderer",function(){if(CM8!==void 0)return CM8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return CM8=p},{mode:1});var y5d;var KM=function(){var p=_.T.apply(this,arguments)||this;p.roundedFix=_.z("web_enable_merch_item_rounding_fix");p.itemStyle="small-item";return p};
_.Q(KM,_.T);KM.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var p,J,S,H,M=(J=_.e((p=this.data)==null?void 0:p.buttonCommand,_.gD8))==null?void 0:(S=J.item)==null?void 0:(H=S.notificationTextRenderer)==null?void 0:H.successResponseText;M&&_.bsL(this.hostElement,M)}};
_.vh.Object.defineProperties(KM.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,J;return((p=this.data)==null?void 0:p.isProductPlaceholder)!==void 0&&((J=this.data)==null?void 0:J.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}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],KM.prototype,"roundedFix",void 0);_.V([_.N(),_.Y("design:type",Object)],KM.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],KM.prototype,"itemStyle",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KM.prototype,"hasPrice",null);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KM.prototype,"hasPriceReplacementText",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KM.prototype,"hasAdditionalFeesText",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KM.prototype,"hasAffiliateDisclaimer",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KM.prototype,"isProductPlaceholder",null);
_.V([_.N(),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KM.prototype,"hideOpenInNewIcon",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KM.prototype,"ariaLabel",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],KM);
_.l(KM,"ytd-merch-shelf-item-renderer",function(){if(y5d!==void 0)return y5d;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return y5d=p},{mode:1});_.ci(_.d(function(p){return _.m("button-card-view-model",{el:_.Y2(_.sl(function(){return p.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return p.data().title},
role:"button"},_.m(_.B3,{model:{}}),_.m("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.m("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.m(_.v,{cond:function(){return p.data().image},
then:function(J){return _.m(_.a4,{data:J,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.m("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return p.data().title})))},"bc"),"button-card-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){p=_.jh(p,{className:void 0});var J=p.data;p=p.className;var S=_.BW(function(){return J().onTapCommand},void 0,"SXkP9e");
return _.m("ytd-shopping-item-card",{class:_.XB("ytdShoppingItemCardHost",p)},_.m(_.yD,{command:S,className:"ytdShoppingItemCardHostLink"},_.m("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.m(_.AH,{data:function(){return J().thumbnailViewModel}},{thumbnailViewModel:function(H){return _.m(_.sz,{data:H.data,
aspectRatio:3})}})),_.m("div",null,_.m("p",{class:"ytdShoppingItemCardHostItemTitle"},_.m(_.v3,{text:function(){return J().itemTitle}})),_.m("p",{class:"ytdShoppingItemCardHostPrice"},_.m(_.v3,{text:function(){return J().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.fD,
className:_.fD}});var BK8={isAdsVideo:!0},Uev={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},sm8={showPlayerControls:!1,videoPreviewDurationMs:15E3},gGm={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},ti8={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var q6=null,mK4={};var fCi="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(" "),Z5={},Os9=(Z5.FEwhat_to_watch="home",Z5.FEhashtag="hashtag",Z5.FEtrending="trending",Z5.FEhistory="history",Z5.SPunlimited="premium",Z5.FEmemberships_and_purchases="paid_memberships",Z5.SPredeem_code="redeem",Z5.SPverify_location="locate",Z5.SPminor_moment="minor_moment",
Z5.FEmini_app_container="mini_app",Z5.FEnews_destination="news",Z5.SPopen_in_app="open_in_app",Z5.FEexplore="explore",Z5.FEsubscriptions="subscriptions",Z5.FEsfv_audio_pivot="sfv_audio_pivot",Z5.FEplaylist_aggregation="playlist_aggregation",Z5);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");_.SU("init");var h8M=function(){},TKp=_.d(function(p){var J=p.data;
var S=p.inlineMetadata;var H=p.aspectRatio;var M=p.scrimStyle;var X=p.className;var Z=p.useDefaultStyle;var n=p.titleStyle;var b=new h8M,F=_.z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",f=_.BW(function(){return(Z==null?0:Z())?F==="SHORTS_LOCKUP_STYLE_SLIM":J().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),O=_.BW(function(){return _.a2(S)||f()||!1},void 0,"SEL6Qd"),A=function(){return(M==null?void 0:M())!==void 0?M==null?void 0:M():1},
P=_.BW(function(){return J().belowThumbnailMetadata||!O()},void 0,"KAqk1b");
p=_.Aw({visibilityCallback:function(Z3){var vg=J().onFirstVisible;Z3&&vg&&_.Dm(vg)},
showOption:{calledOnce:!0,state:"visible"}});var W=_.Y2(),y={},t=_.XB(function(){return f(),"shortsLockupViewModelHostThumbnailContainer"},(y.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.a2(H)===1},y.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.a2(H)===2},y.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.z("web_shorts_2_by_3_lockups_study")&&!_.z("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
y)),D=_.BW(function(){if(_.a2(H)===1)return 1;
_.a2(H);return 2},void 0,"Bg5Es"),k,E=function(){if(b){var Z3;
(Z3=k)==null||r_(Z3);var vg;if(b.hostElement&&((vg=b.data)==null?0:vg.inlinePlayerData)){var yX,Pg;Z3=((yX=b.data)==null?0:(Pg=yX.inlinePlayerData)==null?0:Pg.enableAudioControl)?Object.assign({},ti8):Object.assign({},gGm);var ov,NW;((ov=b.data)==null?void 0:(NW=ov.inlinePlayerData)==null?void 0:NW.maxPlaybackLengthSec)!==void 0&&(Z3.videoPreviewDurationMs=b.data.inlinePlayerData.maxPlaybackLengthSec*1E3);k=hH({mediaRenderer:b,lockupElement:b.hostElement,thumbnailElement:W.value,videoPreviewOpts:Z3})}}};
_.lf(function(){b&&(b.data=J(),E())},"wo9C7e");
var a=_.BW(function(){return J().thumbnail},void 0,"haijYd");
y=_.BW(function(){return J().badge},void 0,"RpDeSe");
var q=_.BW(function(){return J().onTap},void 0,"hOfuOb"),w={},I={};
return _.m("ytm-shorts-lockup-view-model",{el:_.Y2(function(Z3){b&&(b.hostElement=Z3)},E,p),
class:_.XB("shortsLockupViewModelHost",X)},_.m(_.fV,null,_.m(_.yD,{command:q,className:_.XB("shortsLockupViewModelHostEndpoint",(w.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!P()},w),"reel-item-endpoint",""),
ariaHidden:function(){return!O()},
tabIndex:function(){return O()?0:-1}},_.m("div",{el:W,
class:_.XB("shortsLockupViewModelHostThumbnailParentContainer",(I.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!f()},I))},_.m(_.v,{cond:a,
then:function(){return _.m("div",{class:t},_.m(_.a4,{data:function(){var Z3;return(Z3=a==null?void 0:a())!=null?Z3:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.m(_.AH,{data:function(){return J().thumbnailViewModel}},{thumbnailViewModel:function(Z3){return _.m(_.sz,{data:Z3.data,
aspectRatio:function(){return D()},
disableRounding:function(){return f()}})}}),null),_.m(_.v,{cond:O,
then:function(){return _.m(Deo,{data:J,scrimStyle:A,useDefaultStyle:Z,titleStyle:n})}}),_.m(_.AH,{data:y},{badgeViewModel:function(Z3){return _.m(_.Qy,{data:Z3.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.m(_.v,{cond:function(){return O()&&J().menuOnTap},
then:function(){return _.m(kPm,{data:J,inlineMetadata:!0})}}),_.m(_.v,{cond:P,
then:function(){return _.m(NK8,{data:J,useDefaultStyle:Z,inlineMetadata:O})}})))},"ec"),Deo=_.d(function(p){var J=p.data;
var S=p.scrimStyle;var H=p.useDefaultStyle;var M=p.titleStyle;var X=_.z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Z=H&&_.z("web_hide_primary_text_for_pivot_panel"),n=_.BW(function(){return(H==null?0:H())?X==="SHORTS_LOCKUP_STYLE_SLIM":J().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
p={};p=_.XB("shortsLockupViewModelHostInlineMetadata",(p.shortsLockupViewModelHostMetadataRounded=function(){return!n()},p.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(S==null?void 0:S())===3&&!_.z("enable_shorts_lockup_new_scrim")},p.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(S==null?void 0:S())===3&&_.z("enable_shorts_lockup_new_scrim")},p.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(S==null?void 0:S())===2||(S==null?void 0:
S())===4},p.shortsLockupViewModelHostShowOverPlayer=function(){return!0},p),"image-overlay-text");
var b={};return _.m("div",{class:p},_.m("h3",{class:_.XB("shortsLockupViewModelHostMetadataTitle",(b.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(S==null?void 0:S())===4},b.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return J().belowThumbnailMetadata},b.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(M==null?void 0:M())===1},b.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(M==null?void 0:M())===2},b)),
"aria-label":function(){return J().accessibilityText}},_.m(_.v,{cond:function(){var F;
return!((F=J().overlayMetadata)==null||!F.primaryText)&&!Z},
then:function(){return _.m(_.v3,{text:function(){var F;return(F=J().overlayMetadata)==null?void 0:F.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.m(_.v,{cond:function(){var F;
return(F=J().overlayMetadata)==null?void 0:F.secondaryText},
then:function(){return _.m(de8,{data:J,scrimStyle:S,className:void 0})}}))},"fc"),NK8=_.d(function(p){var J=p.data;
var S=p.useDefaultStyle;var H=p.inlineMetadata;var M=_.z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",X=_.BW(function(){return(S==null?0:S())?M==="SHORTS_LOCKUP_STYLE_SLIM":J().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),Z=_.Y2(),n;
p=_.Kb(function(P){if(_.yh(_.CG(P),Z.value,["AVATAR-VIEW-MODEL"]))return!1;var W;(W=n)==null||W.click();return!1});
var b=_.BW(function(){return J().belowThumbnailMetadata||J().overlayMetadata},void 0,"GwezKf"),F=function(){return J().menuOnTap&&!H()},f=function(){var P;
return(P=b())==null?void 0:P.avatar},O={},A={};
return _.m("div",{class:_.XB(function(){return X()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(O.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!f()},O.shortsLockupViewModelHostOutsideMetadataHasMenu=F,O)),
"on:click":p,el:Z,role:"presentation"},_.m(_.AH,{data:f},{avatarViewModel:function(P){return _.m(_.iF,{data:P.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.m("div",null,_.m("h3",{class:_.XB("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(A.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var P,W;
return!((P=b())==null?0:(W=P.primaryText)==null?0:W.content)},A.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=H,A)),
role:"presentation"},_.m(_.yD,{ref:function(P){return void(n=P)},
command:function(){return J().onTap},
className:_.XB("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var P,W;return(P=b())==null?void 0:(W=P.primaryText)==null?void 0:W.content},
"aria-label":function(){return J().accessibilityText}},_.m(_.v,{cond:function(){var P;
return(P=b())==null?void 0:P.primaryText},
then:function(P){return _.m(_.v3,{text:P,noEndpoints:!0,noStyleRuns:!0})}}))),_.m(_.v,{cond:function(){var P;
return(P=b())==null?void 0:P.secondaryText},
then:function(P){return _.m("div",{class:_.XB("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.m(_.v3,{text:P,noStyleRuns:!0}))}})),_.m(_.v,{cond:F,
then:function(){return _.m(kPm,{data:J,inlineMetadata:!1})}}))},"gc"),de8=_.d(function(p){var J=p.data;
var S=p.scrimStyle;p=p.className;var H={};return _.m("div",{class:_.XB((H.shortsLockupViewModelHostMetadataSubhead=function(){return(S==null?void 0:S())!==4},H.shortsLockupViewModelHostMetadataSubheadNew=_.z("enable_shorts_lockup_new_scrim"),H.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(S==null?void 0:S())===4},H),p),
"aria-hidden":"true"},_.m(_.v3,{text:function(){var M;return(M=J().overlayMetadata)==null?void 0:M.secondaryText},
noStyleRuns:!0}))},"hc"),kPm=_.d(function(p){var J=p.data;
var S=p.inlineMetadata;p={};p=_.XB((p.shortsLockupViewModelHostInlineMetadataMenu=function(){return S()},p.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!S()},p.shortsLockupViewModelHostShowOverPlayer=function(){return!0},p),"image-overlay-text");
return _.m("div",{class:p},_.m(_.gF,{data:function(){return{style:S()?"overlay":"mono",accessibilityLabel:J().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(H){H.preventDefault();H.stopPropagation();var M=_.tz({elementsCommand:J().menuOnTap,forceNewState:!0});if(M==null?0:M.onclick)M.onclick(H)}}},
iconName:"MORE_VERT"}))},"ic");var uGo=_.d(function(p){var J=p.data;var S=p.inlineMetadata;var H=p.aspectRatio;var M=p.scrimStyle;var X=p.className;var Z=p.useDefaultStyle;p=_.BW(function(){var n=J().entityId;return n?n.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.m("ytm-shorts-lockup-view-model-v2",{class:_.XB("shortsLockupViewModelHost",X)},_.m(_.TK,{contentId:p,aspectRatio:function(){return(H==null?void 0:H())===1?1:(H==null?void 0:H())===2?2:4}},function(){return _.m(TKp,{data:J,
inlineMetadata:S,aspectRatio:H,scrimStyle:M,className:X,useDefaultStyle:Z})}))},"jc");_.ci(uGo,"ytm-shorts-lockup-view-model-v2",{props:{data:_.jr,inlineMetadata:_.jr,aspectRatio:_.jr,scrimStyle:_.jr,className:_.jr,useDefaultStyle:_.jr,titleStyle:_.jr}});var l_E=16/9*210,nM=function(){var p=_.T.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};
_.Q(nM,_.T);_.R=nM.prototype;
_.R.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.R.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.z("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.R.computeInitialCountNumber=function(p){if(!p)return 6;var J=p.items.some(function(X){return!!X.topicRecommendationsChipRenderer}),S=p.items.some(function(X){return!!X.displayAdRenderer}),H=this.computeShouldListItemsHaveEqualHeight(p),M=p.items.some(function(X){return!!X.gridPlaylistRenderer});
p=p.items.some(function(X){return!!X.shoppingItemCardViewModel});
return J?9:S?8:M||H?10:p?7:6};
_.R.computeContainsPost=function(p){return!!p&&!!p.items&&p.items.some(function(J){return!!J.postRenderer})};
_.R.computeContainsLockup=function(){if(_.z("web_horizontal_list_lockup_arrow_killswitch"))return!1;var p,J;return(p=this.data)==null?void 0:(J=p.items)==null?void 0:J.some(function(S){return!!S.lockupViewModel})};
_.R.maybeUpdateLockupAspectRatio=function(){var p,J;if(this.computeContainsLockup()&&((p=this.data)==null?0:(J=p.items)==null?0:J.length)){var S;p=lBk((S=this.data.items[0].lockupViewModel)==null?void 0:S.contentType,this.data.force16By9ThumbnailAspectRatio);S=d$i(p);S=this.computeLockupWidth()/S;_.K3(this.hostElement,{"--yt-horizontal-list-content-height":S+"px"})}};
_.R.computeOverrideArrowPositionForProductCard=function(p){if(this.isExpandableContent)return!1;var J;return!!(p==null?0:(J=p.items)==null?0:J.some(function(S){return!!S.verticalProductCardRenderer}))};
_.R.computeOverrideArrowPositionForShoppingItemCard=function(p){var J;return!!(p==null?0:(J=p.items)==null?0:J.some(function(S){return!!S.shoppingItemCardViewModel}))};
_.R.computeOverrideArrowPositionForReelItemRenderer=function(p){return this.containsReelItemRenderer(p)};
_.R.computeHasBigThumbsReelItems=function(p,J){return p&&this.containsReelItemRenderer(J)};
_.R.computeShouldListItemsHaveEqualHeight=function(p){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(p==null?void 0:p.itemSizeConstraint)};
_.R.computeShouldListItemsHaveShortsHeight=function(p){return this.computeShouldListItemsHaveEqualHeight(p)&&!this.containsGridVideoRenderer(p)};
_.R.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.R.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.R.containsReelItemRenderer=function(p){var J;return!!(p==null?0:(J=p.items)==null?0:J.some(function(S){return!(!S.reelItemRenderer&&!S.shortsLockupViewModel)}))};
_.R.containsGridVideoRenderer=function(p){var J;return!!(p==null?0:(J=p.items)==null?0:J.some(function(S){return!!S.gridVideoRenderer||!!S.lockupViewModel}))};
_.R.computeContainsGridMovieRenderer=function(p){var J;return!!(p==null?0:(J=p.items)==null?0:J.some(function(S){return!!S.gridMovieRenderer}))};
_.R.computeOverrideArrowPositionToCenter=function(p){return this.computeIsSearchPostShelf(p)};
_.R.computeIsSearchPostShelf=function(p){var J;return!!(p==null?0:(J=p.items)==null?0:J.some(function(S){var H,M;return((M=(H=S.postRenderer)==null?void 0:H.surface)!=null?M:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.R.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(p){var J;return!!(p==null?0:(J=p.items)==null?0:J.some(function(S){var H,M,X;return((X=(H=S.backgroundPromoRenderer)==null?void 0:(M=H.style)==null?void 0:M.value)!=null?X:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.R.computeIsSearchVodShelf=function(p,J){return p&&this.containsGridVideoRenderer(J)};
_.R.computeDisableWheelScroll=function(p,J){return this.computeIsSearchVodShelf(p,J)};
_.R.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.R.computeShortsLockupAspectRatio=function(){return 1};
_.R.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.K3(this.hostElement,{"--ytd-reel-item-thumbnail-height":l_E+"px"})};
nM.prototype.dataChanged=nM.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.BH.YtdHorizontalListBehavior),_.Y("design:type",Object)],nM.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],nM.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],nM.prototype,"isExpandableContent",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"hideShelfHeader",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"engagementPanel",void 0);_.V([_.N(),_.Y("design:type",Array)],nM.prototype,"buttonClasses",void 0);_.V([_.N(),_.Y("design:type",Object)],nM.prototype,"isSearch",void 0);
_.V([_.N(),_.Y("design:type",Object)],nM.prototype,"disableScrollEventListener",void 0);_.V([_.N({computed:"computeInitialCountNumber(data)"}),_.Y("design:type",Number)],nM.prototype,"initialCount",void 0);_.V([_.N({computed:"computeContainsPost(data)"}),_.Y("design:type",Boolean)],nM.prototype,"supportComponentResize",void 0);_.V([_.N({computed:"computeContainsPost(data)"}),_.Y("design:type",Boolean)],nM.prototype,"containsPost",void 0);
_.V([_.N({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"containsLockup",void 0);_.V([_.N({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],nM.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.V([_.N({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"overrideArrowPositionForProductCard",void 0);_.V([_.N({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.V([_.N({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"overrideArrowPositionForReelItems",void 0);_.V([_.N({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"overrideArrowPositionForGridMovie",void 0);
_.V([_.N({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"overrideArrowPositionToCenter",void 0);_.V([_.N({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"isSearchPostShelf",void 0);_.V([_.N({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.V([_.N({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.V([_.N({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"hasBigThumbsReelItems",void 0);
_.V([_.N({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"shouldUseMixedListHeight",void 0);_.V([_.N({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"shouldUseShortsListHeight",void 0);_.V([_.N({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"gridVideoWidth",void 0);
_.V([_.N({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"isSearchVodShelf",void 0);_.V([_.N({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],nM.prototype,"disableWheelScroll",void 0);_.V([_.N({computed:"computeSizing(isSearch)"}),_.Y("design:type",Object)],nM.prototype,"sizing",void 0);
_.V([_.N({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.Y("design:type",Object)],nM.prototype,"shortsLockupAspectRatio",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nM.prototype,"dataChanged",null);
_.l(nM,"yt-horizontal-list-renderer",function(){if(uOU===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);uOU=p}p=uOU;return p},{mode:1});var Vio=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
Vio.prototype.subscribe=function(p,J){var S=this.subscriptions.get(p);if(!S)return function(){};
S.add(J);return function(){S.delete(J)}};
Vio.prototype.unsubscribe=function(p,J){(p=this.subscriptions.get(p))&&p.delete(J)};
Vio.prototype.publish=function(p,J){J=J===void 0?{}:J;(p=this.subscriptions.get(p))&&p.forEach(function(S){S(J)})};var qe4;var a_v=[10,12,14,16,18,20,24,28,32,36],EG8=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],GY=function(){var p=_.T.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};
_.Q(GY,_.T);_.R=GY.prototype;
_.R.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();_.mN(this,function(){p.resize()});
if(!_.i9){var J,S,H;(J=document)==null||(S=J.fonts)==null||(H=S.ready)==null||H.then(function(){p.resize()})}};
_.R.dataChanged=function(){this.resize()};
_.R.guideIsExpandedChanged=function(){this.resize()};
_.R.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(),J=this.getMinFont(),S=this.getMaxFont(),H=this.useRoboto?a_v:EG8;for(H=H.filter(function(X){return X<=S&&X>=J});H.length>1;){var M=Math.floor(H.length/2);
this.updateFontSize(H[M]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=p)H=H.slice(M,H.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>p)H=H.slice(0,M);else break}this.updateFontSize(H[H.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(p)}};
_.R.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()))};
_.R.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)};
_.R.getMaxFont=function(){var p=this.useRoboto?a_v:EG8;p=p[p.length-1];return this.maxFontSize&&this.maxFontSize<=p?this.maxFontSize:p};
_.R.getMinFont=function(){var p=(this.useRoboto?a_v:EG8)[0];return this.minFontSize&&this.minFontSize>=p?this.minFontSize:p};
_.R.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.R.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.R.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.E4(this.text).split("\n").length-1:Infinity};
_.R.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("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
GY.prototype.guideIsExpandedChanged=GY.prototype.guideIsExpandedChanged;GY.prototype.dataChanged=GY.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],GY.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],GY.prototype,"actionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],GY.prototype,"text",void 0);
_.V([_.N(),_.Y("design:type",String)],GY.prototype,"fontFamily",void 0);_.V([_.N(),_.Y("design:type",Number)],GY.prototype,"maxWidth",void 0);_.V([_.N(),_.Y("design:type",Number)],GY.prototype,"maxHeight",void 0);_.V([_.N(),_.Y("design:type",Number)],GY.prototype,"maxFontSize",void 0);_.V([_.N(),_.Y("design:type",Number)],GY.prototype,"minFontSize",void 0);_.V([_.N(),_.Y("design:type",Number)],GY.prototype,"maxLines",void 0);_.V([_.N(),_.Y("design:type",Object)],GY.prototype,"hideOverflow",void 0);
_.V([_.N({selector:_.yL3}),_.Y("design:type",Boolean)],GY.prototype,"guideIsExpanded",void 0);_.V([_.FM("#container"),_.Y("design:type",HTMLElement)],GY.prototype,"containerNode",void 0);_.V([_.FM("#text"),_.Y("design:type",HTMLElement)],GY.prototype,"textNode",void 0);_.V([_.An("text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GY.prototype,"dataChanged",null);
_.V([_.An("guideIsExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GY.prototype,"guideIsExpandedChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],GY);
_.l(GY,"yt-dynamic-sizing-formatted-string",function(){if(qe4!==void 0)return qe4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return qe4=p},{mode:1});var Ye8;_.r58=function(p){_.pL.call(this,p)};
_.Q(_.r58,_.pL);var jmn=function(p){_.pL.call(this,p)};
_.Q(jmn,_.r58);var bH=function(){return _.T.apply(this,arguments)||this};
_.Q(bH,_.T);bH.prototype.onTapSuspendedChannel=function(){var p;if((p=this.data)!=null&&p.serviceEndpoint){var J,S;(p=(S=_.e((J=this.data)==null?void 0:J.serviceEndpoint,_.My))==null?void 0:S.url)?_.hc(p,void 0,void 0,window.top):(J=new jmn("Did not handle suspended account tap. No appealUrl."),_.jD(J))}else J=new jmn("Did not handle suspended account tap. No serviceEndpoint."),_.jD(J)};
bH.prototype.onTap=function(){var p=this,J=_.bC(),S,H=(S=_.G$(J,{veType:7116}))!=null?S:void 0;_.dn(J,{visualElement:H});_.go();this.saveRoleText();var M;if((M=this.data)==null?0:M.youtubeSuspended)this.onTapSuspendedChannel();else{var X=!1,Z,n;(J=(n=_.e((Z=this.data)==null?void 0:Z.serviceEndpoint,_.V$v))==null?void 0:n.supportedTokens)&&J.forEach(function(b){if(b.accountSigninToken)if(X=!0,p.onAccountItemTap)p.onAccountItemTap(b.accountSigninToken.signinUrl);else _.hc(b.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!X){if(Z=this.get("serviceEndpoint",this.data))X=!0,this.ytComponentBehavior.resolveCommand(Z);X||_.wf(new jmn("Did not handle account switch tap. No token."))}}};
bH.prototype.saveRoleText=function(){if(this.data){var p=this.data,J=p.channelDelegationRole;if(J){var S,H=(S=_.e(p==null?void 0:p.serviceEndpoint,_.V$v))==null?void 0:S.supportedTokens;if(!H){var M,X,Z,n;H=(M=_.e(p==null?void 0:p.serviceEndpoint,_.Yi))==null?void 0:(X=M.popup)==null?void 0:(Z=X.confirmDialogRenderer)==null?void 0:(n=Z.confirmButton)==null?void 0:n.buttonRenderer;var b;H=(b=_.e(H==null?void 0:H.command,_.H9))==null?void 0:b.commands;if(!H)return;var F;H=(F=_.e(H[1],_.V$v))==null?
void 0:F.supportedTokens}if(H){b=void 0;F=_.K(H);for(H=F.next();!H.done;H=F.next())if(H=H.value,H.datasyncIdToken){b=H.datasyncIdToken.datasyncIdToken;break}if(b){var f;a:{if(_.l2X()&&(F=_.qV(b+"::pom"))){F=new Yw(F);break a}F=void 0}(f=F)==null||f.set("role_text",J);if((pCW?pCW:window.location).href.indexOf("studio")!==-1&&(f=VZ9())){F=f.src?(new URL(f.src)).origin:"*";var O;(O=f.contentWindow)==null||O.postMessage({action:"save_pom_role",datasyncId:b,roleText:J},F)}}}}}};
_.vh.Object.defineProperties(bH.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,J,S=(p=this.data)==null?void 0:(J=p.accountPhoto)==null?void 0:J.thumbnails;return S&&S.length>0&&(S[0].height===36||S[0].height===48)?S[0].height:40}}});
bH.prototype.onTap=bH.prototype.onTap;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],bH.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],bH.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!1}),_.Y("design:type",Function)],bH.prototype,"onAccountItemTap",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bH.prototype,"enableRingForActiveAccount",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],bH.prototype,"thumbnailSize",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bH.prototype,"onTap",null);_.V([_.gw({is:"ytd-account-item-renderer",disableElementRegistration:!0})],bH);
_.l(bH,"ytd-account-item-renderer",function(){if(Ye8!==void 0)return Ye8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Ye8=p},{mode:1});var w4m;var mQ=function(){return _.T.apply(this,arguments)||this};
_.Q(mQ,_.T);mQ.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.vO().resolve(_.Ov).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],mQ.prototype,"data",void 0);_.V([_.gw({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],mQ);
_.l(mQ,"ytd-identity-chip-renderer",function(){if(w4m!==void 0)return w4m;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return w4m=p},{mode:1});var xem;var c5E;var I_p;var Lcd;var FH=function(){var p=_.T.apply(this,arguments)||this;p.richItemMinWidth=_.PO("wn_grid_min_item_width",310);p.isShorts=!1;p.isWatchNext=!1;p.isExploreHub=!1;return p};
_.Q(FH,_.T);_.vh.Object.defineProperties(FH.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var p=[],J=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.K3(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var S;if(((S=this.data)==null?0:S.rows)&&J)for(J*=this.data.rows,S=0;S<J;S++)p.push({});return p}}});
_.V([_.B(_.RB),_.Y("design:type",Object)],FH.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],FH.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.yc,value:3}),_.Y("design:type",Number)],FH.prototype,"itemsPerRow",void 0);_.V([_.N({selector:_.C1g,value:6}),_.Y("design:type",Number)],FH.prototype,"slimItemsPerRow",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Number)],FH.prototype,"richItemMinWidth",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],FH.prototype,"miniMode",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FH.prototype,"isShorts",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FH.prototype,"isWatchNext",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FH.prototype,"isExploreHub",void 0);
_.V([_.U("isExploreHub"),_.N({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FH.prototype,"shimmerAnimation",null);_.V([_.U("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],FH.prototype,"cardItems",null);_.V([_.gw({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],FH);
_.paM=_.pI()(FH,"ytd-ghost-grid-renderer",function(){if(Lcd===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);Lcd=p}p=Lcd;return p},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.ci(_.d(function(p){var J=_.jh(p,{numberOfComments:3}).numberOfComments,S=_.jh(p,{isInitialLoad:!1}).isInitialLoad,H=_.jh(p,{engagementPanel:!1}).engagementPanel,M=function(){return Math.min(Number(J==null?void 0:J())||20,20)};
return _.m("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.m(_.v,{cond:function(){return!(H==null?0:H())&&(S==null?void 0:S())},
then:function(){return _.m("div",{class:"ytGhostCommentsComments"},_.m("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.m("div",{class:_.XB("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.m("div",{class:_.XB("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.m("div",{class:"ytGhostCommentsGhostCard"},_.m("div",{class:"ytGhostCommentsAvatar"},_.m("div",{class:"ytGhostCommentsCircle"})),_.m("div",{class:"ytGhostCommentsComments"},_.m("div",{class:"ytGhostCommentsMeta"},
_.m("div",{class:_.XB("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.m("div",{class:_.XB("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.m("div",{class:"ytGhostCommentsComments"},_.m(_.dY,{each:function(){return Array((M==null?void 0:M())||3)}},function(){return _.m("div",{class:"ytGhostCommentsGhostCard"},_.m("div",{class:"ytGhostCommentsAvatar"},_.m("div",{class:"ytGhostCommentsCircle"})),_.m("div",{class:"ytGhostCommentsHost"},_.m("div",{class:"ytGhostCommentsMeta"},
_.m("div",{class:_.XB("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.m("div",{class:_.XB("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.m("div",{class:_.XB("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.m("div",{class:"ytGhostCommentsGhostLikeDislike"},_.m("div",{class:_.XB("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.m("div",{class:_.XB("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.fD,
isInitialLoad:_.fD,engagementPanel:_.fD},unsafeExternallySettableAttributes:new Set(["hidden"])});_.QI("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var vC=function(){var p=_.T.apply(this,arguments)||this;p.isOverridable=!1;p.spinnerActive=!1;p.showButton=!1;p.isCommentsSection=!1;p.engagementPanel=!0;p.isShortsGrid=!1;p.isShortsPage=!1;p.isWatchPage=!1;p.originalShowButton=!1;p.endOfList=!1;return p};
_.Q(vC,_.T);_.R=vC.prototype;_.R.resetIntersectionObserver=function(){var p;(p=this.observer)==null||p.disconnect();this.observer=void 0};
_.R.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var p,J;((p=this.data)==null?void 0:p.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((J=this.data)==null?0:J.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.R.initializeIntersectionObserver=function(){var p=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(J){J=_.K(J);for(var S=J.next();!S.done;S=J.next())S.value.isIntersecting&&(p.triggerContinuation(),p.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.R.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.R.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var p;((p=this.data)==null?0:p.continuationEndpoint)&&(p=_.e(this.data.continuationEndpoint,_.hm))&&this.ytdReduxBehavior.dispatch(_.Jk({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:p}}))};
_.R.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.R.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.R.onServiceRequestCompleted=function(p,J){if(!_.z("kevlar_hide_spinner_on_empty_continuation_killswitch")){var S;(S=J.actions)!=null&&S.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.R.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.R.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.R.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.R.numberOfGhostCommentsChanged=function(){var p=3;if(this.engagementPanel){var J,S,H;p=Math.floor(((((J=this.hostElement)==null?void 0:(S=J.parentElement)==null?void 0:(H=S.parentElement)==null?void 0:H.scrollHeight)||108)-108)/108);p=this.isInitialLoad?Math.max(p,3):3}J=[].concat(_.dW(this.hostElement.querySelectorAll("yt-ghost-comments")));J=_.K(J);for(S=J.next();!S.done;S=J.next())S=S.value,S.numberOfComments=p,S.isInitialLoad=this.isInitialLoad,S.engagementPanel=this.engagementPanel};
_.R.detached=function(){this.resetIntersectionObserver()};
_.vh.Object.defineProperties(vC.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
vC.prototype.numberOfGhostCommentsChanged=vC.prototype.numberOfGhostCommentsChanged;vC.prototype.continuationTriggerOffsetChanged=vC.prototype.continuationTriggerOffsetChanged;vC.prototype.showButtonChanged=vC.prototype.showButtonChanged;vC.prototype.onYtServiceRequestCompletedForButtonRenderer=vC.prototype.onYtServiceRequestCompletedForButtonRenderer;vC.prototype.onServiceRequestCompleted=vC.prototype.onServiceRequestCompleted;vC.prototype.onYtServiceRequestSentForButtonRenderer=vC.prototype.onYtServiceRequestSentForButtonRenderer;
vC.prototype.observeData=vC.prototype.observeData;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.G_.YtVisibilityBehavior),_.Y("design:type",Object)],vC.prototype,"ytVisibilityBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],vC.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],vC.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],vC.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],vC.prototype,"isOverridable",void 0);_.V([_.N(),_.Y("design:type",Object)],vC.prototype,"spinnerActive",void 0);_.V([_.N(),_.Y("design:type",Object)],vC.prototype,"showButton",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],vC.prototype,"isCommentsSection",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],vC.prototype,"engagementPanel",void 0);_.V([_.N(),_.Y("design:type",Object)],vC.prototype,"isShortsGrid",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.sO4}),_.Y("design:type",Object)],vC.prototype,"isShortsPage",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.UaX}),_.Y("design:type",Object)],vC.prototype,"isWatchPage",void 0);_.V([_.N(),_.Y("design:type",Number)],vC.prototype,"continuationTriggerOffset",void 0);
_.V([_.N(),_.Y("design:type",Object)],vC.prototype,"endOfList",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vC.prototype,"isInitialLoad",void 0);_.V([_.FM("ytd-button-renderer"),_.Y("design:type",_.yJ)],vC.prototype,"buttonRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],vC.prototype,"buttonOverrides",void 0);
_.V([_.N(),_.U("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vC.prototype,"showGhostCardComments",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vC.prototype,"observeData",null);
_.V([_.GI("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vC.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],vC.prototype,"onServiceRequestCompleted",null);
_.V([_.GI("yt-service-request-completed-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vC.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.V([_.An("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vC.prototype,"showButtonChanged",null);
_.V([_.An("continuationTriggerOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vC.prototype,"continuationTriggerOffsetChanged",null);_.V([_.bO("isInitialLoad","engagementPanel"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vC.prototype,"numberOfGhostCommentsChanged",null);_.V([_.gw({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],vC);
_.l(vC,"ytd-continuation-item-renderer",function(){if(I_p!==void 0)return I_p;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return I_p=p},{mode:1});var JDL;var fM=function(){var p=_.T.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};
_.Q(fM,_.T);fM.prototype.dataChanged=function(){var p;this.videoData=_.e((p=this.data)==null?void 0:p.renderer,PPq);this.transferStateChanged()};
fM.prototype.downloadProgressChanged=function(){if(this.entityInfo){var p=Object.assign({},this.videoData),J=sxk(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),S=J.publishedTimeText,H=J.badges;p.shortViewCountText=J.shortViewCountText;p.publishedTimeText=S;p.badges=H;this.set("videoData",p)}};
fM.prototype.transferStateChanged=function(){if(this.entityInfo){var p=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",J=_.f$(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!vq(this.entityInfo.policyEntity),S=Object.assign({},this.videoData),H=sxk(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),M=H.publishedTimeText,X=H.badges;S.shortViewCountText=
H.shortViewCountText;S.publishedTimeText=M;S.badges=X;S.isDisabled=J;S.isWatched=this.downloadedVideoPlaybackPosition>0;S.navigationEndpoint=J?void 0:gEi(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var Z;p&&((Z=this.videoData)==null?0:Z.videoId)&&!_.z("dl_resume_click_killswitch")&&(S.isDisabled=!1,S.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});S.thumbnailOverlays=BVt(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",S)}};
fM.prototype.transferStateChanged=fM.prototype.transferStateChanged;fM.prototype.downloadProgressChanged=fM.prototype.downloadProgressChanged;fM.prototype.dataChanged=fM.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],fM.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],fM.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],fM.prototype,"videoData",void 0);_.V([_.N({selector:DY,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],fM.prototype,"downloadProgress",void 0);_.V([_.N(),_.Y("design:type",Number)],fM.prototype,"relativeDateReference",void 0);_.V([_.N({selector:_.gl,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],fM.prototype,"transferState",void 0);
_.V([_.N({selector:cLW,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],fM.prototype,"downloadState",void 0);_.V([_.N({selector:k_9,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],fM.prototype,"offlinePolicyAction",void 0);_.V([_.N({selector:NFt,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],fM.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.V([_.N({selector:kZ,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],fM.prototype,"downloadedVideoPlaybackPosition",void 0);_.V([_.N({selector:daL,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],fM.prototype,"entityInfo",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],fM.prototype,"isDownloading",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fM.prototype,"dataChanged",null);
_.V([_.An("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fM.prototype,"downloadProgressChanged",null);_.V([_.An("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fM.prototype,"transferStateChanged",null);
_.V([_.gw({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],fM);
_.l(fM,"ytd-downloaded-video-grid-video-renderer",function(){if(JDL!==void 0)return JDL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return JDL=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var SH4;var Oh=function(){};
Oh.prototype.resolve=function(p,J){var S=this;return _.G(function(H){return H.yield(S.resolveCommand(p,J),0)})};var HK8,Ao;HK8=Oj9(function(p){return p.targetId},{shouldPersist:!1});
Ao=HK8.updateData;_.MjE=HK8.useUpdatableData;var Xa8,iKL;Xa8=Oj9(function(p){return p.targetId});
iKL=Xa8.updateData;_.Rzp=Xa8.useUpdatableData;var Ke8=zRs.bind(null,Ao),ZKE=zRs.bind(null,iKL);(function(p,J,S){var H=_.e(S==null?void 0:S.updatedRenderer,_.w34);return H?p({targetId:J},function(){return H}):!1}).bind(null,Ao);var PC=function(){};
_.Q(PC,Oh);PC.prototype.resolveCommand=function(p){var J;return _.G(function(S){J=_.e(p,_.BPi);if(!J)return S.return();Ke8(J.targetId,J);_.UK(S)})};var zY=function(){var p=_.f3.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};
_.Q(zY,_.f3);_.R=zY.prototype;_.R.configureContinuationPathMap=function(){return{}};
_.R.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.R.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.R.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.R.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.R.handleAppendContinuationItemsAction=function(p){var J=_.e(p,_.lR8);if(this.data&&this.data.targetId&&J&&this.continuationPathMap&&J.targetId===this.data.targetId){var S=iGX(p),H=S&&this.continuationPathMap[S];if(H&&S)if(p=this.get(H,this.data)){a:{for(S=0;S<p.length;S++){var M=p[S],X=void 0,Z=!!_.e((X=_.e(M,yQq))==null?void 0:X.content,_.vYv);if(_.e(M,_.js)||Z)break a}S=p.length}H="data."+H;J.continuationItems?S===p.length-1?(this.pop(H),this.push.apply(this,[H].concat(_.dW(J.continuationItems)))):
S===p.length?this.push.apply(this,[H].concat(_.dW(J.continuationItems))):this.splice.apply(this,[H,S,1].concat(_.dW(J.continuationItems))):this.splice(H,S,1);(_.z("web_enable_voting_animation")||_.z("enable_music_web_cairo_voting_animation"))&&_.cf(this.hostElement,"yt-append-continuation-items-action-finished");_.cf(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.xQ(new _.TG("append continuation items does not exist",S));else _.xQ(new _.TG("append continuation path does not exist",
S))}};
_.R.handleReloadContinuationItemsCommand=function(p){var J=_.e(p,_.BPi);if(this.data&&J){if(_.z("web_client_explore_hub")||_.z("web_explore_hub_on_hover")||_.z("web_client_explore_hub_on_hover")||!_.z("web_reload_continuation_items_command_resolver_killswitch"))try{_.vO().resolve(PC).resolveCommand(p)}catch(X){}if(this.data.targetId&&this.continuationPathMap&&J.targetId===this.data.targetId&&(!_.z("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||J.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var S,
H=(S=J.slot)==null?void 0:S.replace("RELOAD_CONTINUATION_SLOT_","");S=(p=iGX(p)+"-"+(H==null?void 0:H.toLowerCase()))&&this.continuationPathMap[p];if(!S||!p||!H)_.xQ(new _.TG("reload continuation path does not exist",p));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(J)){if(J.replaceWithFirstItem){var M;this.set("data."+S,((M=J.continuationItems)==null?0:M.length)?J.continuationItems[0]:{})}else this.set("data."+S,J.continuationItems?J.continuationItems:
[]);this.continuationIsReloading=!1;_.cf(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.R.handleShowReloadUiCommand=function(p){p=_.e(p,SM8);var J;((J=this.data)==null?0:J.targetId)&&(p==null?0:p.targetId)&&p.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
zY.prototype.observeData=zY.prototype.observeData;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],zY.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],zY.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],zY.prototype,"data",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],zY.prototype,"continuationIsReloading",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zY.prototype,"observeData",null);_.V([_.OD()],zY);_.$W=[_.KD.YtComponentBehavior,_.u1.YtActionHandlerBehavior,zY.prototype];_.oM={};_.oM.YtNextContinuationBehavior=[_.$N.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",_.n3(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.n3(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(p,J){p.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,J,{}):(p={locationRetrieved:function(S){this.makeNextContinuationRequest_(S,J,{})}.bind(this)},_.cf(this.hostElement,"yt-retrieve-location",p))},
makeNextContinuationRequest_:function(p,J,S){_.Cl("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();p=J(p);var H;this.canUseContextualNetworkManager_()&&(H=this.getNetworkManager());H||(H=_.vO().resolve(_.Or));J=_.un.instance;if(_.jn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&J){H=_.jx([p.startsWith("/")?p.substr(1):p]);var M,X;S=_.mX(J,{},H,S==null?void 0:(M=S.context)==null?void 0:(X=M.clickTracking)==null?void 0:X.clickTrackingParams).then(function(Z){return{response:Z}})}else S=
this.nextContinuation.usePost?H.postData(p,S):H.fetchData(p);
S.then(this.updateNextContinuationData_.bind(this,p));this.pendingContinuationRequest_=S;this.startListeningForNavigate_()},
updateNextContinuationData_:function(p,J){var S=this;_.Cl("ncl");this.pendingContinuationRequest_=void 0;if(J){var H={};this.nextContinuation&&(H=this.nextContinuation);if(J.response&&J.response.continuationContents&&J.response.continuationContents[H.continuationType]){p=J.response.continuationContents[H.continuationType];var M=H.header||"data.header",X=p[H.responseHeaderKey||"header"];X&&this.set(M,X);M=H.contentsArray||"data.contents";X=this.getContents_(p,H.responseContentsKey||"contents")||[];
this.pathExists_(M)?(X.unshift(M),this.push.apply(this,X)):this.set(M,X);X&&($Ks(_.bC(),J.response,this.hostElement,function(Z){_.IV(S.hostElement,"yt-store-grafted-ve-action",[Z])}),_.cf(this.hostElement,"yt-next-continuation-data-updated",{continuationData:J,
page:this,contentsArray:M}));this.set(H.continuationsArray||"data.continuations",p[H.responseContinuationsKey||"continuations"]||[])}else J.reload?_.xQ(new _.TG("Reloading from continuation is unsupported")):J.responseContext&&J.responseContext.errors||(delete J.xsrf_token,delete J.timing,delete J.endpoint,delete J.csn,J.responseContext&&delete J.responseContext.serviceTrackingParams,M={request:_.Ry(p,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(J).sort()},J.response&&(M.responseContentKeys=
Object.keys(J.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(M.continuationType=this.nextContinuation.continuationType.substr(0,256)),J=new _.TG("Malformed continuation",M),p.indexOf("/comment_service_ajax")==0?_.xQ(J):_.jD(J)),this.set(H.continuationsArray||"data.continuations",[])}else _.wf(new _.TG("Missing continuation response",p))},
getContents_:function(p,J){J=J.split(".");return _.T6.getValueByKeys(p,J)},
pathExists_:function(p){var J=this;p=p.toString().split(".");for(var S=0;S<p.length;S++)if(J=J[p[S]],J===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var nRd;var GCU;var eA=function(){var p=_.T.apply(this,arguments)||this;p.triggered_=!1;return p};
_.Q(eA,_.T);_.R=eA.prototype;_.R.attached=function(){this.maybeTriggerAutoload()};
_.R.detached=function(){this.hasBeenTriggered_=!1};
_.R.onPrescanVisible=function(){this.onShow()};
_.R.onShow=function(){this.showButton||this.trigger()};
_.R.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.cf(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.R.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.R.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.R.computeLabel_=function(p,J){return p===void 0?null:p.label||!J?p.label:this.showMoreText_};
_.R.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.R.getContinuationUrl=function(p){var J={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(J.itct=this.data.clickTrackingParams);return _.KQ(p,J)};
_.R.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
eA.prototype.showButtonChanged_=eA.prototype.showButtonChanged_;eA.prototype.observeData_=eA.prototype.observeData_;_.V([_.B(_.G_.YtVisibilityBehavior),_.Y("design:type",Object)],eA.prototype,"ytVisibilityBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],eA.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],eA.prototype,"showButton",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],eA.prototype,"showIcon",void 0);_.V([_.N({computed:"computeLabel_(data, showButton)"}),_.Y("design:type",Object)],eA.prototype,"label",void 0);_.V([_.N({value:_.aR(_.Kl("SHOW_MORE",void 0,"Show More"))}),_.Y("design:type",Object)],eA.prototype,"showMoreText_",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],eA.prototype,"spinnerActive_",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],eA.prototype,"hasBeenTriggered_",void 0);
_.V([_.N({value:void 0}),_.Y("design:type",String)],eA.prototype,"observeVisibleOption",void 0);_.V([_.N({value:void 0}),_.Y("design:type",String)],eA.prototype,"observeHiddenOption",void 0);_.V([_.N({value:"observe_once"}),_.Y("design:type",Object)],eA.prototype,"observePrescanOption",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eA.prototype,"observeData_",null);
_.V([_.bO("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eA.prototype,"showButtonChanged_",null);_.V([_.sD({is:"yt-next-continuation",disableElementRegistration:!0})],eA);
_.l(eA,"yt-next-continuation",function(){if(GCU===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;nRd===void 0&&(nRd=document.createElement("template"));var H=nRd;S.call(J,H.content.cloneNode(!0),p.content.firstChild);GCU=p}p=GCU;return p},{mode:2});var bKE;var mT8;var WC=function(){return _.T.apply(this,arguments)||this};
_.Q(WC,_.T);WC.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],WC.prototype,"data",void 0);_.V([_.sD({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],WC);
_.l(WC,"yt-music-pass-small-feature-info-renderer",function(){if(mT8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;bKE===void 0&&(bKE=document.createElement("template"));var H=bKE;S.call(J,H.content.cloneNode(!0),p.content.firstChild);mT8=p}p=mT8;return p},{mode:2});_.QI("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Q9=function(){var p=_.T.apply(this,arguments)||this;p.isCollapsible=!1;p.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return p};
_.Q(Q9,_.T);_.R=Q9.prototype;_.R.computeIsCollapsible=function(p){return!!(((p==null?0:p.showMoreText)||(p==null?0:p.visibleRowCount))&&(p==null?0:p.isCollapsible))};
_.R.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"}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.R.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.R.onIronResize=function(){var p=this;_.uO(this,"updateGridInitItems",function(){p.maybeUpdateInitialItemsDisplayed()})};
_.R.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)))}};
_.R.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.R.computeExpandVisible=function(p,J,S,H){return p&&J&&S&&!!H&&!!H.showMoreText};
_.R.computeShowMoreButton=function(p){return{text:p,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.R.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.R.initCollapsed=function(){var p=this;this.ytLazyListBehavior.canShowMore=!1;var J;(this.collapsed=!((J=this.data)==null||!J.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.mN(this,function(){_.L1(p.hostElement,"yt-refit-popups-action")})};
_.R.fillRestIfNotCollapsible=function(){var p=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!p||this.ytLazyListBehavior.fillRemainingListItems()};
_.R.computeViewAllHidden=function(p,J){return p||!J.viewAllEndpoint};
Q9.prototype.fillRestIfNotCollapsible=Q9.prototype.fillRestIfNotCollapsible;Q9.prototype.initCollapsed=Q9.prototype.initCollapsed;Q9.prototype.onIronResize=Q9.prototype.onIronResize;Q9.prototype.persistentGuideChanged=Q9.prototype.persistentGuideChanged;_.V([_.B(_.wL),_.Y("design:type",Object)],Q9.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.y$.YtLazyListBehavior),_.Y("design:type",Object)],Q9.prototype,"ytLazyListBehavior",void 0);_.V([_.B(_.oM.YtNextContinuationBehavior),_.Y("design:type",Object)],Q9.prototype,"ytNextContinuationBehavior",void 0);_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Q9.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.B(_.$W),_.Y("design:type",Object)],Q9.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Q9.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Q9.prototype,"collapsed",void 0);_.V([_.N(),_.Y("design:type",Number)],Q9.prototype,"initialCount",void 0);_.V([_.N({computed:"computeShowMoreButton(data.showMoreText)"}),_.Y("design:type",Object)],Q9.prototype,"showMoreButton",void 0);
_.V([_.N({computed:"computeIsCollapsible(data)"}),_.Y("design:type",Object)],Q9.prototype,"isCollapsible",void 0);_.V([_.FM("#items"),_.Y("design:type",HTMLElement)],Q9.prototype,"items",void 0);_.V([_.An("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Q9.prototype,"persistentGuideChanged",null);_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Q9.prototype,"onIronResize",null);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Q9.prototype,"initCollapsed",null);_.V([_.An("canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Q9.prototype,"fillRestIfNotCollapsible",null);_.V([_.gw({is:"ytd-grid-renderer",disableElementRegistration:!0})],Q9);
_.l(Q9,"ytd-grid-renderer",function(){if(SH4!==void 0)return SH4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return SH4=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var CM=function(){return _.T.apply(this,arguments)||this};
_.Q(CM,_.T);
CM.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"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],CM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],CM.prototype,"data",void 0);_.V([_.gw({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],CM);
_.l(CM,"ytd-carousel-ad-renderer",function(){if(c5E!==void 0)return c5E;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return c5E=p},{mode:1});var Fe8;var y9=function(){return _.T.apply(this,arguments)||this};
_.Q(y9,_.T);_.R=y9.prototype;_.R.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"}}}};
_.R.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,y9.JSC$15661_CLICK_LOCATION_ID_MAP))};
_.R.onSitelinkTap=function(p){p.stopPropagation();var J,S,H=p==null?void 0:(J=p.model)==null?void 0:(S=J.item)==null?void 0:S.onTap;H&&this.ytSparklesClickLocationBehavior.handleClick(H,p,!1)};
_.R.onTap=function(p){var J=this.data&&this.data.content&&this.data.content.navigationEndpoint;J&&this.ytSparklesClickLocationBehavior.handleClick(J,p,!1)};
_.R.sendImpression=function(){if(this.data&&this.data.content)for(var p=_.K(this.data.content.impressionEndpoints||[]),J=p.next();!J.done;J=p.next()){J=_.K(J.value.loggingUrls||[]);for(var S=J.next();!S.done;S=J.next())S=S.value,S.baseUrl&&iS(S.baseUrl,S.attributionSrcMode)}};
y9.prototype.onTap=y9.prototype.onTap;y9.prototype.dataChanged=y9.prototype.dataChanged;y9.JSC$15661_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"]]);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Ca.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],y9.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],y9.prototype,"data",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],y9.prototype,"dataChanged",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],y9.prototype,"onTap",null);_.V([_.gw({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],y9);
_.l(y9,"ytd-promoted-sparkles-text-search-renderer",function(){if(Fe8!==void 0)return Fe8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Fe8=p},{mode:1});var vRp;var BC=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-mute-ad-action":"handleMuteAd"};return p};
_.Q(BC,_.T);_.R=BC.prototype;_.R.created=function(){this.activeView=new tM(this.hostElement)};
_.R.configureRendererStamper=function(){return{"data.menu":{id:_.z("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]]"}}}}}};
_.R.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.R.computeHasAdBadge=function(p){return!(p==null||!p.adBadge)};
_.R.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",BC.JSC$15670_DEFAULT_AD_BADGE_RENDERER),_.XM(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&hM(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,BC.JSC$15670_CLICK_LOCATION_ID_MAP))};
_.R.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var p;(((p=this.data)==null?void 0:p.impressionCommands)||[]).forEach(function(J){J=_.K(J.loggingUrls||[]);for(var S=J.next();!S.done;S=J.next())S=S.value,S.baseUrl&&iS(S.baseUrl,S.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.R.onTap=function(p){var J,S=(J=this.data)==null?void 0:J.navigationEndpoint,H;(J=(H=this.data)==null?void 0:H.thumbnailNavigationEndpoint)&&_.wn(_.Er(p),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(J,p,!1):S&&this.ytSparklesClickLocationBehavior.handleClick(S,p,!1)};
_.R.handleMuteAd=function(){this.collapsed=!0};
_.R.attached=function(){var p=this;_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&DU(p.activeView)})};
_.R.detached=function(){_.z("stop_av_measurement_on_detach")&&DU(this.activeView)};
_.vh.Object.defineProperties(BC.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}}});
BC.prototype.dataChanged=BC.prototype.dataChanged;
BC.JSC$15670_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"]]);
BC.JSC$15670_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Kl("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],BC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],BC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],BC.prototype,"actionHandlerBehavior",void 0);
_.V([_.B(_.Ca.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],BC.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],BC.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],BC.prototype,"collapsed",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],BC.prototype,"useBiggerThumbs",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.zG("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],BC.prototype,"biggerThumbsStyle",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.Y("design:type",Boolean)],BC.prototype,"fixAlignmentSmallScreens",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs_square")}}),
_.Y("design:type",Boolean)],BC.prototype,"useBiggerThumbsSquare",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.mediaHoverOverlay"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BC.prototype,"hideHoverOverlay",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BC.prototype,"webSearchLayout",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BC.prototype,"webSearchLayoutLandscape",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BC.prototype,"webSearchLayoutSquare",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BC.prototype,"sparklesCtaNoBackground",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.actionButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BC.prototype,"hideActionButton",null);_.V([_.N({computed:"computeButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],BC.prototype,"buttonOverride",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.Y("design:type",Boolean)],BC.prototype,"hasNewAdBadge",void 0);_.V([_.U("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BC.prototype,"useRoundedBadge",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BC.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],BC);
_.l(BC,"ytd-promoted-sparkles-web-renderer",function(){if(vRp!==void 0)return vRp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return vRp=p},{mode:1});var fWM;var Uh=function(){var p=_.T.apply(this,arguments)||this;p.isInlinePreviewTriggered=!1;p.enableMonoStyle=_.z("enable_default_mono_cta_migration_web_client");return p};
_.Q(Uh,_.T);_.R=Uh.prototype;_.R.created=function(){this.activeView=new tM(this.hostElement)};
_.R.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]]"}}}}}};
_.R.computeShowCta=function(p){return!(p==null||!p.ctaRenderer)};
_.R.onCtaClick=function(){var p,J,S,H=(p=this.data)==null?void 0:(J=p.ctaRenderer)==null?void 0:(S=J.buttonRenderer)==null?void 0:S.command;H&&this.ytComponentBehavior.resolveCommand(H)};
_.R.onWatchButtonClick=function(){var p,J,S,H=(p=this.data)==null?void 0:(J=p.watchButtonRenderer)==null?void 0:(S=J.buttonRenderer)==null?void 0:S.command;H&&this.ytComponentBehavior.resolveCommand(H)};
_.R.onTap=function(){};
_.R.dataChanged=function(){if(this.data){var p;_.z("enable_inline_muted_playback_on_web_search")&&((p=this.data)==null?0:p.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",Uh.JSC$15674_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&hM(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Uh.JSC$15674_DEFAULT_CLICK_LOCATION_BEHAVIOR,Uh.JSC$15674_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(p=this.thumbnail.getElementsByTagName("a"),p.length>0&&(p=p.namedItem("thumbnail"))&&p.removeAttribute("href"));var J;if(((J=this.data)==null?0:J.forceImpAutoplay)&&_.z("enable_force_imp_autoplay_on_desktop_search")){var S;(S=this.JSC$15675_inlinePreviewHoverListener)==null||ZxX(S)}}};
_.R.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var p=_.K(this.data.impressionUrls),J=p.next();!J.done;J=p.next())J=J.value,E3L(J,rni(J));this.data.impressionsFired=!0}};
_.R.maybeComputeHref=function(){return null};
_.R.computeIsShortDR=function(p){return!(p==null||!p.watchButtonRenderer)&&!(p==null||!p.ctaRenderer)&&!!this.enableShortDR};
_.R.computeIsNewUiOrShortDr=function(p){return!!this.enableUiUpdate||this.computeIsShortDR(p)};
_.R.computeIsNewUiAndNotShortDr=function(p){return!!this.enableUiUpdate&&!this.computeIsShortDR(p)};
_.R.computeHideAvatar=function(p){return!((p==null?0:p.channelThumbnail)&&this.computeIsNewUiOrShortDr(p))};
_.R.onClick=function(p){var J,S=(J=this.data)==null?void 0:J.navigationEndpoint;if(this.enableShortDR&&S&&(_.e(S,_.lj)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(S,p,!!_.e(S,_.lj)),p.stopPropagation();else if(S&&_.e(S,_.lj))this.ytSparklesClickLocationBehavior.handleClick(S,p,!0),p.stopPropagation();else if(S){var H,M;((H=this.data)==null?0:H.navigationEndpoint)&&((M=this.data)==null?0:M.adPlaybackContextParams)&&(J=this.data.navigationEndpoint,p=this.data.adPlaybackContextParams,
J.commandMetadata&&_.e(J.commandMetadata,_.i7)&&_.e(J.commandMetadata,_.i7).url&&(J=_.ih(_.e(J.commandMetadata,_.i7).url).adurl)&&_.jV3(J)&&_.EB(_.kV(J),{encoded_ad_playback_context:p}));this.ytComponentBehavior.resolveCommand(S)}};
_.R.computeButtonOverride=function(p){if(this.computeIsNewUiOrShortDr(p))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.R.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.R.onThumbnailContainerClick=function(p){this.onClick(p)};
_.R.computeThumbnailWidth=function(p,J){return p?J==="MASSIVE"?600:J==="BIG"?500:J==="MEDIUM"?450:420:360};
_.R.attached=function(){var p=this,J;_.z("enable_inline_muted_playback_on_web_search")&&((J=this.data)==null?0:J.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&DU(p.activeView)})};
_.R.detached=function(){var p;_.z("enable_inline_muted_playback_on_web_search")&&((p=this.data)==null?0:p.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.z("stop_av_measurement_on_detach")&&DU(this.activeView)};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15675_inlinePreviewHoverListener=hH({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:BK8})};
_.R.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15675_inlinePreviewHoverListener)==null||r_(p)};
Uh.prototype.dataChanged=Uh.prototype.dataChanged;Uh.prototype.onTap=Uh.prototype.onTap;Uh.JSC$15674_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Kl("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Uh.JSC$15674_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Uh.JSC$15674_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"}];_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Uh.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Uh.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Ca.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],Uh.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.FM("#main-container"),_.Y("design:type",HTMLElement)],Uh.prototype,"mainContainer",void 0);
_.V([_.N(),_.Y("design:type",Object)],Uh.prototype,"isInlinePreviewTriggered",void 0);_.V([_.N(),_.Y("design:type",Object)],Uh.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Uh.prototype,"useBiggerThumbs",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("enable_video_display_compact_button_group_for_desktop_search")}}),
_.Y("design:type",Boolean)],Uh.prototype,"enableShortDR",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("enable_vac_ui_update_for_desktop_search")}}),
_.Y("design:type",Boolean)],Uh.prototype,"enableUiUpdate",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.zG("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Uh.prototype,"biggerThumbsStyle",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.Y("design:type",Boolean)],Uh.prototype,"showCta",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.Y("design:type",Boolean)],Uh.prototype,"isShortDr",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.Y("design:type",Boolean)],Uh.prototype,"isShortDrOrNewUi",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.Y("design:type",Boolean)],Uh.prototype,"isNewUiAndNotShortDr",void 0);_.V([_.N({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],Uh.prototype,"buttonOverride",void 0);_.V([_.N({computed:"computeSecondaryButtonOverride(data)"}),_.Y("design:type",Object)],Uh.prototype,"secondaryButtonOverride",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Uh.prototype,"enableMonoStyle",void 0);
_.V([_.FM("ytd-thumbnail"),_.Y("design:type",HTMLElement)],Uh.prototype,"thumbnail",void 0);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uh.prototype,"onTap",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uh.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Uh);
_.l(Uh,"ytd-promoted-video-renderer",function(){if(fWM!==void 0)return fWM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return fWM=p},{mode:1});var OKd;var sh=function(){var p=_.T.apply(this,arguments)||this;p.useRoundedBadge=!0;p.sitelinkIds=[];return p};
_.Q(sh,_.T);_.R=sh.prototype;
_.R.configureRendererStamper=function(){return{"data.menu":{id:_.z("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]]"}}}}}};
_.R.dataChanged=function(){var p;(p=this.data)!=null&&p.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,sh.JSC$15680_CLICK_LOCATION_ID_MAP)};
_.R.onTap=function(p){var J,S=(J=this.data)==null?void 0:J.navigationCommand;S&&!_.wn(_.Er(p),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(S,p,!1)};
_.R.onSitelinkTap=function(p){var J,S,H=p==null?void 0:(J=p.model)==null?void 0:(S=J.item)==null?void 0:S.onTap;H&&this.ytSparklesClickLocationBehavior.handleClick(H,p,!1)};
_.R.configureSitelinkClickTargets=function(){var p=this,J,S,H=(J=this.data)==null?void 0:(S=J.clickLocationTargets)==null?void 0:S.find(function(M){return M.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
H&&_.Jn(this.hostElement).querySelectorAll(".sitelink").forEach(function(M){_.XM(M,"yt-simple-endpoint",!0);p.sitelinkIds.push(M.id);var X,Z;(X=p.ytSparklesClickLocationBehavior)==null||(Z=X.clickTargetMap)==null||Z.set(M.id,H)})};
_.R.sendImpression=function(){var p,J,S=((p=this.data)==null?void 0:(J=p.impressionCommand)==null?void 0:J.loggingUrls)||[];p=_.K(S);for(J=p.next();!J.done;J=p.next())J=J.value,J.baseUrl&&iS(J.baseUrl,J.attributionSrcMode)};
_.R.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.vh.Object.defineProperties(sh.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
sh.prototype.onTap=sh.prototype.onTap;sh.prototype.dataChanged=sh.prototype.dataChanged;sh.JSC$15680_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"]]);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Ca.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],sh.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],sh.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sh.prototype,"showFavicon",null);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],sh.prototype,"useBiggerThumbs",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.zG("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],sh.prototype,"biggerThumbsStyle",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.Y("design:type",Boolean)],sh.prototype,"enableThumbnailScalingFix",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sh.prototype,"dataChanged",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],sh.prototype,"onTap",null);_.V([_.gw({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],sh);
_.l(sh,"ytd-text-image-no-button-layout-renderer",function(){if(OKd!==void 0)return OKd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return OKd=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var AD8;var gO=function(){var p=_.T.apply(this,arguments)||this;p.isInlinePlaybackState=!1;p.uiUpdate=_.z("web_modern_buttons");p.hideCta=_.z("hide_cta_for_home_web_video_ads");p.noBottomMargin=!1;p.animateInTimeStamp=_.PO("hide_cta_for_home_web_video_ads_animate_in_time");p.animateInCta=!1;p.isHovered=!1;p.enableMonoStyle=_.z("enable_default_mono_cta_migration_web_client");p.player=null;p.JSC$15687_playerEvents=new Map;p.JSC$15687_preventProgressSaveTimer=null;p.delayedCtaJobId=null;return p};
_.Q(gO,_.T);_.R=gO.prototype;_.R.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]]"}}}}}};
_.R.attached=function(){this.JSC$15687_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15687_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.z("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.R.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15687_playerEvents)};
_.R.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",gO.JSC$15686_DEFAULT_CLICK_LOCATION_BEHAVIOR,gO.JSC$15686_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.R.hoverChanged=function(){var p=this;this.delayedCtaJobId&&(_.wg.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.z("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.oA(_.wg,function(){p.buttonContainer.classList.add("show-delayed-buttons")},_.PO("delayed_cta_on_web_delay_milliseconds")))};
_.R.setPlayer=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return(J=_.L1(p.hostElement,"yt-get-inline-preview-player-action"))&&J[0]?S.yield(J[0].getPlayerPromise(),3):S.jumpTo(0);p.player=S.yieldResult;p.ytPlayerListenerBehavior.listenToPlayerEvents(p.player,p.JSC$15687_playerEvents);_.UK(S)})};
_.R.onPlaybackStart=function(){var p=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15687_preventProgressSaveTimer=_.SK(_.wg,function(){p.JSC$15687_preventProgressSaveTimer=null},1E4))};
_.R.onVideoProgress=function(p){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&p>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.R.resetPreventProgressSaveTimer=function(){_.wg.cancelJob(this.JSC$15687_preventProgressSaveTimer);this.JSC$15687_preventProgressSaveTimer=null};
_.R.getSimpleString=function(p){return _.E4(p)};
_.R.onClick=function(p){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var J,S=(J=this.data)==null?void 0:J.navigationEndpoint,H;J=(H=this.data)==null?void 0:H.channelEndpoint;var M,X;((X=_.e((M=this.data)==null?void 0:M.adCtaButton,_.Za))==null?0:X.command)&&_.wn(_.Er(p),this.hostElement,["call-to-action"])||(J&&_.wn(_.Er(p),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(J,p,!1):!_.wn(_.Er(p),this.hostElement,
["secondary-button"])&&S&&(_.z("enable_short_dr_for_desktop_launchable")?(H=!!_.e(S,_.lj),this.isInlinePlaybackState&&H&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(S,p,H)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(S,p,!0))))}};
_.R.updateWatchEndpointStartTime=function(){var p,J;this.player&&((p=this.data)==null?0:p.inlinePlaybackEndpoint)&&((J=this.data)==null?0:J.navigationEndpoint)&&!this.JSC$15687_preventProgressSaveTimer&&(p=Math.floor(this.player.getCurrentTime()),_.e(this.data.navigationEndpoint,_.lj).startTimeSeconds=p,_.e(this.data.inlinePlaybackEndpoint,_.lj).startTimeSeconds=p)};
_.R.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.R.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.vh.Object.defineProperties(gO.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.z("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var p,J;return!((p=this.data)==null||!p.watchButton)&&!((J=this.data)==null||!J.adCtaButton)}}});
gO.prototype.hoverChanged=gO.prototype.hoverChanged;gO.prototype.dataChanged=gO.prototype.dataChanged;
gO.JSC$15686_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"]]);
gO.JSC$15686_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"}];
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],gO.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Ca.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],gO.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],gO.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],gO.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],gO.prototype,"isInlinePlaybackState",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],gO.prototype,"miniMode",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],gO.prototype,"uiUpdate",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],gO.prototype,"hideCta",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],gO.prototype,"noBottomMargin",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],gO.prototype,"animateInCta",void 0);_.V([_.N({computed:"computeButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],gO.prototype,"buttonOverride",void 0);
_.V([_.N({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],gO.prototype,"secondaryButtonOverride",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],gO.prototype,"isHovered",void 0);_.V([_.FM("#button-container"),_.Y("design:type",HTMLElement)],gO.prototype,"buttonContainer",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],gO.prototype,"typographyBump",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("typographyBump"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gO.prototype,"typographyBumpV2",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],gO.prototype,"enableMonoStyle",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gO.prototype,"dataChanged",null);
_.V([_.bO("isHovered"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gO.prototype,"hoverChanged",null);_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gO.prototype,"isButtonGroup",null);_.V([_.gw({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],gO);
_.l(gO,"ytd-ad-inline-playback-meta-block",function(){if(AD8!==void 0)return AD8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return AD8=p},{mode:_.Jz("kevlar_poly_si_batch_j065")?1:2});var PLm;var to=function(){var p=_.T.apply(this,arguments)||this;p.noBottomMargin=!1;p.isInlinePreviewTriggered=!1;p.JSC$15692_activeViewMeasurementDataResolver=_.qr();return p};
_.Q(to,_.T);_.R=to.prototype;_.R.created=function(){this.activeView=new tM(this.hostElement)};
_.R.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.attached=function(){var p=this;this.updateInlinePreviewHoverListeners();this.JSC$15692_activeViewMeasurementDataResolver.promise.then(function(J){hM(p.activeView,J)});
_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&DU(p.activeView)})};
_.R.detached=function(){this.clearInlinePreviewHoverListeners();_.z("stop_av_measurement_on_detach")&&DU(this.activeView)};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15692_inlinePreviewHoverListener=hH({mediaRenderer:this,lockupElement:this.JSC$15692_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:BK8})};
_.R.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15692_inlinePreviewHoverListener)==null||r_(p)};
_.R.onDataChanged=function(){var p;((p=this.data)==null?0:p.activeView)&&this.JSC$15692_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",to.JSC$15691_DEFAULT_CLICK_LOCATION_BEHAVIOR,to.JSC$15691_CLICK_LOCATION_ID_MAP);this.thumbnail&&(p=this.thumbnail.getElementsByTagName("a"),p.length>0&&(p=p.namedItem("thumbnail"))&&p.removeAttribute("href"));var J;if((J=this.data)==
null?0:J.forceImpAutoplay){var S;(S=this.JSC$15692_inlinePreviewHoverListener)==null||ZxX(S)}};
_.R.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.R.onThumbnailContainerClick=function(p){if(this.data&&this.data.navigationEndpoint){var J,S=(J=this.data)==null?void 0:J.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(S,p,!!_.e(S,_.lj));p.stopPropagation()}};
_.R.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.R.impressionLog=function(){var p=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var J,S,H=(S=_.e((J=this.data)==null?void 0:J.onImpression,_.H9))==null?void 0:S.commands;H&&(H.forEach(function(M){M.clickTrackingParams&&delete M.clickTrackingParams;p.ytComponentBehavior.resolveCommand(M)}),this.data.impressionsFired=!0)}};
_.vh.Object.defineProperties(to.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$15692_inlinePreviewHoverListener)==null?0:GK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
to.prototype.onTypographyBumpChanged=to.prototype.onTypographyBumpChanged;to.prototype.onDataChanged=to.prototype.onDataChanged;to.JSC$15691_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);to.JSC$15691_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"}];
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],to.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],to.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],to.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],to.prototype,"ytdLockupBehavior",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],to.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Ca.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],to.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],to.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],to.prototype,"noBottomMargin",void 0);_.V([_.N(),_.Y("design:type",Object)],to.prototype,"isInlinePreviewTriggered",void 0);
_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],to.prototype,"miniMode",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],to.prototype,"typographyBump",void 0);_.V([_.FM("ytd-thumbnail"),_.Y("design:type",HTMLElement)],to.prototype,"thumbnail",void 0);_.V([_.FM("#dismissible"),_.Y("design:type",HTMLElement)],to.prototype,"JSC$15692_dismissibleMedia",void 0);
_.V([_.FM("ytd-ad-inline-playback-meta-block"),_.Y("design:type",HTMLElement)],to.prototype,"adInlinePlaybackMetaBlock",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],to.prototype,"onDataChanged",null);_.V([_.An("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],to.prototype,"onTypographyBumpChanged",null);
_.V([_.U("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],to.prototype,"isHovered",null);_.V([_.gw({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],to);
_.l(to,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(PLm!==void 0)return PLm;var p=document.createElement("template");_.C(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]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return PLm=p},{mode:1});var zz8;var ho=function(){var p=_.T.apply(this,arguments)||this;p.isInlinePreviewTriggered=!1;p.JSC$15695_activeViewMeasurementDataResolver=_.qr();return p};
_.Q(ho,_.T);_.R=ho.prototype;_.R.created=function(){this.activeView=new tM(this.hostElement)};
_.R.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.attached=function(){var p=this;this.updateInlinePreviewHoverListeners();this.JSC$15695_activeViewMeasurementDataResolver.promise.then(function(J){hM(p.activeView,J)})};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15695_inlinePreviewHoverListener=hH({mediaRenderer:this,lockupElement:this.JSC$15695_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:BK8})};
_.R.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15695_inlinePreviewHoverListener)==null||r_(p)};
_.R.onDataChanged=function(){var p;((p=this.data)==null?0:p.activeView)&&this.JSC$15695_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",ho.JSC$15694_DEFAULT_CLICK_LOCATION_BEHAVIOR,ho.JSC$15694_CLICK_LOCATION_ID_MAP);this.thumbnail&&(p=this.thumbnail.getElementsByTagName("a"),p.length>0&&(p=p.namedItem("thumbnail"))&&p.removeAttribute("href"))};
_.R.onThumbnailContainerClick=function(p){if(this.data&&this.data.navigationEndpoint){var J,S=(J=this.data)==null?void 0:J.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(S,p,!0);p.stopPropagation()}};
_.R.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.R.impressionLog=function(){var p=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var J,S,H=(S=_.e((J=this.data)==null?void 0:J.onImpression,_.H9))==null?void 0:S.commands;H&&(H.forEach(function(M){M.clickTrackingParams&&delete M.clickTrackingParams;_.vO().resolve(_.Ov).resolveCommand(M,{form:{element:p.hostElement}})}),this.data.impressionsFired=!0)}};
_.vh.Object.defineProperties(ho.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$15695_inlinePreviewHoverListener)==null?0:GK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ho.prototype.onDataChanged=ho.prototype.onDataChanged;ho.JSC$15694_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);ho.JSC$15694_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"}];_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],ho.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],ho.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],ho.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Ca.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],ho.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],ho.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],ho.prototype,"isInlinePreviewTriggered",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],ho.prototype,"miniMode",void 0);_.V([_.FM("ytd-thumbnail"),_.Y("design:type",HTMLElement)],ho.prototype,"thumbnail",void 0);_.V([_.FM("#dismissible"),_.Y("design:type",HTMLElement)],ho.prototype,"JSC$15695_dismissibleMedia",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ho.prototype,"onDataChanged",null);_.V([_.U("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ho.prototype,"isHovered",null);_.V([_.gw({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],ho);
_.l(ho,"ytd-video-display-full-buttoned-renderer",function(){if(zz8!==void 0)return zz8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return zz8=p},{mode:1});var c$=function(p,J,S,H){H=H===void 0?!1:H;_.pL.call(this,p);this.adsClientErrorMessage=S;this.aggressivelySample=H;this.args=[];J&&this.args.push(J)};
_.Q(c$,_.pL);var wT=function(p,J,S,H){H=H===void 0?!1:H;_.pL.call(this,p);this.adsClientErrorMessage=S;this.aggressivelySample=H;this.args=[];J&&this.args.push(J)};
_.Q(wT,_.pL);var $To=function(p){_.gp.call(this);var J=this;this.initializationFunction=p;this.instance=null;this.addOnDisposeCallback(function(){_.iW(J.instance);J.instance=null})};
_.Q($To,_.gp);$To.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.lT("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var UKw=function(){var p=new Map;[].forEach(function(J){p.set(J.JSC$31178_getType(),J)});
this.getters=p};new Promise(function(){});var W3g=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"]]),oq3=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"}]]),oRd=function(p){this.experimentApiProvider=p;p=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=p<.1};var D5=function(p,J,S,H){_.gp.call(this);this.adsControlFlowEventListeners=J;this.adEventLogger=S;this.experimentApiProvider=H;this.adsControlFlowManagerHelper=p(this,this,this,this,this);_.$c(this,this.adsControlFlowManagerHelper);p=_.K(J);for(J=p.next();!J.done;J=p.next())_.$c(this,J.value)};
_.Q(D5,_.gp);var ezp=function(p,J,S,H){kW(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",J,S,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H);p=_.K(p.adsControlFlowEventListeners);for(H=p.next();!H.done;H=p.next())ezp(H.value,J,S)};
_.R=D5.prototype;_.R.onOpportunityProcessedExternallyManaged=function(p,J,S,H){kW(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",p,S,J,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H)};
_.R.onSlotReceivedExternallyManaged=function(p,J){NH(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",p,J)};
_.R.onSlotEntered=function(p){if(TY(this.adsControlFlowManagerHelper,p)!=null){NH(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",p);this.adsControlFlowManagerHelper.onSlotEntered(p);for(var J=_.K(this.adsControlFlowEventListeners),S=J.next();!S.done;S=J.next())S.value.onSlotEntered(p);if(TY(this.adsControlFlowManagerHelper,p)!=null&&TY(this.adsControlFlowManagerHelper,p).isOccupyingSlotType()&&dO(this.adsControlFlowManagerHelper,p)&&!Weq(this.adsControlFlowManagerHelper,p)){var H;uH(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",p,(H=dO(this.adsControlFlowManagerHelper,p))!=null?H:void 0);p=TY(this.adsControlFlowManagerHelper,p);p.slotLifecycleStage!=="entered"&&lH(p.slot,p.slotLifecycleStage,"enterLayoutForSlot");p.slotLifecycleStage="rendering";p.registeredLayoutRenderingAdapter.startRendering(p.layout)}}};
_.R.onSlotExited=function(p){if(TY(this.adsControlFlowManagerHelper,p)!=null){NH(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",p);this.adsControlFlowManagerHelper.onSlotExited(p);for(var J=_.K(this.adsControlFlowEventListeners),S=J.next();!S.done;S=J.next())S.value.onSlotExited(p);TY(this.adsControlFlowManagerHelper,p)!=null&&TY(this.adsControlFlowManagerHelper,p).markedForUnscheduleAfterOutboundAdapterRequests&&Q9o(this,p)}};
_.R.onLayoutReceivedExternallyManaged=function(p,J,S){p.managerLayer!=="core"&&uH(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",p,J,S)};
var CL4=function(p,J,S){if(TY(p.adsControlFlowManagerHelper,J)!=null){uH(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",J,S);p=_.K(p.adsControlFlowEventListeners);for(var H=p.next();!H.done;H=p.next())CL4(H.value,J,S)}};
D5.prototype.onLayoutExited=function(p,J,S){if(TY(this.adsControlFlowManagerHelper,p)!=null){uH(this.adEventLogger,eRg(S),p,J);this.adsControlFlowManagerHelper.onLayoutExited(p,J);for(var H=_.K(this.adsControlFlowEventListeners),M=H.next();!M.done;M=H.next())M.value.onLayoutExited(p,J,S);(S=dO(this.adsControlFlowManagerHelper,p))&&J.layoutId===S.layoutId&&yDd(this,p)}};
D5.prototype.disposeInternal=function(){var p=BNo(this.adsControlFlowManagerHelper);p=_.K(p);for(var J=p.next();!J.done;J=p.next())Q9o(this,J.value);_.gp.prototype.disposeInternal.call(this)};
var Q9o=function(p,J){if(TY(p.adsControlFlowManagerHelper,J)!=null)if(TY(p.adsControlFlowManagerHelper,J).JSC$31208_isSlotExitRequested()||TY(p.adsControlFlowManagerHelper,J).JSC$31208_isLayoutExitRequested())TY(p.adsControlFlowManagerHelper,J).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(TY(p.adsControlFlowManagerHelper,J).isOccupyingSlotType())TY(p.adsControlFlowManagerHelper,J).markedForUnscheduleAfterOutboundAdapterRequests=!0,yDd(p,J);else if(TY(p.adsControlFlowManagerHelper,J).JSC$31208_isSlotFillRequested())TY(p.adsControlFlowManagerHelper,
J).markedForUnscheduleAfterOutboundAdapterRequests=!0,TY(p.adsControlFlowManagerHelper,J)!=null&&(NH(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",J),J=TY(p.adsControlFlowManagerHelper,J),J.fulfillmentLifecycleStage="fill_cancel_requested",J.registeredFulfillmentAdapter.cancelSlotFilling());else{var S=dO(p.adsControlFlowManagerHelper,J),H;p.experimentApiProvider.get();(H=_.z("h5_enable_layout_unscheduling_events"))&&(S?UTp(p,J,S):_.lT(Error("Lh"),J,S,void 0,!1));NH(p.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",J);var M=TY(p.adsControlFlowManagerHelper,J),X=J.slotEntryTrigger,Z=M.registeredSlotEntryTriggerAdapters.get(X.triggerId);Z&&(Z.unregisterTrigger(X),M.registeredSlotEntryTriggerAdapters.delete(X.triggerId));X=_.K(J.slotFulfillmentTriggers);for(Z=X.next();!Z.done;Z=X.next()){Z=Z.value;var n=M.registeredFulfillmentTriggerAdapters.get(Z.triggerId);n&&(n.unregisterTrigger(Z),M.registeredFulfillmentTriggerAdapters.delete(Z.triggerId))}X=_.K(J.slotExpirationTriggers);
for(Z=X.next();!Z.done;Z=X.next())if(Z=Z.value,n=M.registeredExpirationTriggerAdapters.get(Z.triggerId))n.unregisterTrigger(Z),M.registeredExpirationTriggerAdapters.delete(Z.triggerId);M.hasLayout()&&(X=M.layout,V9(M,X.layoutExitNormalTriggers),V9(M,X.layoutExitSkipTriggers),V9(M,X.layoutExitMuteTriggers),V9(M,X.layoutExitUserInputSubmittedTriggers),V9(M,X.layoutExitUserCancelledTriggers));M.registeredFulfillmentAdapter=void 0;M.registeredSlotAdapter!=null&&(M.registeredSlotAdapter.release(),M.registeredSlotAdapter=
void 0);M.registeredLayoutRenderingAdapter!=null&&(M.registeredLayoutRenderingAdapter.release(),M.registeredLayoutRenderingAdapter=void 0);M=p.adsControlFlowManagerHelper;TY(M,J)&&(M=s98(M,J.slotType+"_"+J.slotPhysicalPosition))&&M.delete(J.slotId);NH(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",J);p=_.K(p.adsControlFlowEventListeners);for(M=p.next();!M.done;M=p.next())M=M.value,M.onSlotUnscheduled(J),S&&!H&&UTp(M,J,S)}},UTp=function(p,J,S){uH(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
J,S);
uH(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",J,S);p=_.K(p.adsControlFlowEventListeners);for(var H=p.next();!H.done;H=p.next())H=H.value,S&&UTp(H,J,S)},yDd=function(p,J){if(TY(p.adsControlFlowManagerHelper,J)!=null&&TY(p.adsControlFlowManagerHelper,J).isOccupyingSlotType()){var S=dO(p.adsControlFlowManagerHelper,J);
if(S&&Weq(p.adsControlFlowManagerHelper,J)){if(TY(p.adsControlFlowManagerHelper,J)!=null){var H=p.adEventLogger,M;var X=((M=oq3.get("abandoned"))==null?void 0:M.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";uH(H,X,J,S);p=TY(p.adsControlFlowManagerHelper,J);p.slotLifecycleStage!=="rendering"&&lH(p.slot,p.slotLifecycleStage,"exitLayout");p.slotLifecycleStage="rendering_stop_requested";p.registeredLayoutRenderingAdapter.stopRendering(S,"abandoned")}}else{NH(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
J);try{H=TY(p.adsControlFlowManagerHelper,J);if(!H)throw new wT("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");H.slotLifecycleStage!=="enter_requested"&&H.slotLifecycleStage!=="entered"&&H.slotLifecycleStage!=="rendering"&&lH(H.slot,H.slotLifecycleStage,"exitSlot");H.slotLifecycleStage="exit_requested";if(H.registeredSlotAdapter===void 0)throw H.slotLifecycleStage="scheduled",new wT("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
H.registeredSlotAdapter.exit()}catch(Z){Z instanceof wT&&Z.adsClientErrorMessage?(gRo(p.adEventLogger,Z.adsClientErrorMessage,J),_.lT(Z,J,void 0,void 0,Z.aggressivelySample)):(gRo(p.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",J),_.lT(Z,J))}}}};var qH=function(p,J,S,H,M,X){_.gp.call(this);this.registry=p;this.experimentApiProvider=X;this.slotMap=new Map};
_.Q(qH,_.gp);var s98=function(p,J){return(p=p.slotMap.get(J))?p:new Map},TY=function(p,J){return s98(p,J.slotType+"_"+J.slotPhysicalPosition).get(J.slotId)},BNo=function(p){var J=[];
p.slotMap.forEach(function(S){S=_.K(S.values());for(var H=S.next();!H.done;H=S.next())J.push(H.value.slot)});
return J};
qH.prototype.onSlotEntered=function(p){p=TY(this,p);p.slotLifecycleStage!=="enter_requested"&&lH(p.slot,p.slotLifecycleStage,"onSlotEntered");p.slotLifecycleStage="entered"};
var Weq=function(p,J){p=TY(p,J);return p.hasLayout()&&p.isRendering()},dO=function(p,J){(p=TY(p,J))?p.hasLayout()&&!p.layout&&_.lT("Unexpected empty layout",J):_.lT("Unexpected undefined slotState",J);
return(p==null?void 0:p.layout)||null};
qH.prototype.onSlotExited=function(p){p=TY(this,p);p.slotLifecycleStage!=="exit_requested"&&lH(p.slot,p.slotLifecycleStage,"onSlotExited");p.slotLifecycleStage="scheduled"};
qH.prototype.onLayoutExited=function(p,J){p=TY(this,p);p.isPrimaryLayout(J)&&(p.slotLifecycleStage!=="rendering_stop_requested"&&lH(p.slot,p.slotLifecycleStage,"onLayoutExited"),p.slotLifecycleStage="entered")};
var V9=function(p,J){J=_.K(J);for(var S=J.next();!S.done;S=J.next()){S=S.value;var H=p.registeredLayoutExitTriggerAdapters.get(S.triggerId);H&&(H.unregisterTrigger(S),p.registeredLayoutExitTriggerAdapters.delete(S.triggerId))}},lH=function(p,J,S){_.lT("Slot stage was "+J+" when calling method "+S,p)};var hzv=function(p){_.gp.call(this);this.deps=p;this.JSC$15748_adsControlFlowManager=tjL(this)};
_.Q(hzv,_.gp);var tjL=function(p){var J=new D5(function(S,H,M,X){return new qH(p.deps.registry,S,H,M,X,p.deps.experimentApiProvider)},new Set(BZX(p.deps.registry).concat(p.deps.listeners)),p.deps.adEventLogger,p.deps.experimentApiProvider);
_.$c(p,J);return J};var LzW=function(){};var DTU=function(p,J){_.gp.call(this);this.experimentApiProvider=p;this.eventLoggingSettingsProvider=J;this.eventCount=0;this.premiumAdSeenEventLogger=p9w()()};
_.Q(DTU,_.gp);DTU.prototype.logEvent=function(p){kW(this,p)};
var NH=function(p,J,S,H){kW(p,J,void 0,void 0,void 0,S,void 0,void 0,void 0,S.adSlotLoggingData,void 0,void 0,H)},uH=function(p,J,S,H,M){kW(p,J,void 0,void 0,void 0,S,H?H:void 0,void 0,void 0,S.adSlotLoggingData,H?H.adLayoutLoggingData:void 0,void 0,M);
S=_.vO().resolve(_.F9(lS))==null?void 0:VH();J=S==null?void 0:S.adsSeenHotConfig;S=S==null?void 0:S.adsHotConfig;(J==null?0:J.logOnAdsSeen)&&(S==null?0:S.webEnablePremiumAdsSeenLogging)&&kC8(p,H?H:void 0,M)},gRo=function(p,J,S){kW(p,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,S,void 0,void 0,void 0,S.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:J})},kW=function(p,J,S,H,M,X,Z,n,b,F,f,O,A){A=A===void 0?0:A;
NNp(p.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+J,"slot:",X,"layout:",Z,"ping:",n,"Opportunity:",{opportunityType:S,associatedSlotId:H,slotsFromOpportunity:M,triggerBundle:b,adSlotLoggingData:F,adLayoutLoggingData:f});try{var P=function(){p.experimentApiProvider.get();if(J!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){J||_.lT("Empty PACF event type",X,Z);var W=p.eventLoggingSettingsProvider.get();var y;(y=W.alwaysIncludeDebugData)||(W.experimentApiProvider.get(),y=
!1);W=y;y={eventType:J,eventOrder:++p.eventCount};var t={};X&&(t.slotData=CQv(W,X));if(Z){var D={type:Z.layoutType,controlFlowManagerLayer:W3g.get(Z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W&&(D.debugData={layoutId:Z.layoutId});t.layoutData=D}n&&(t.pingData={pingDispatchStatus:n.dispatchStatus,serializedAdPingMetadata:n.ping.serializedAdPingMetadata,pingIndex:n.index});b&&(t.triggerData=QnX(b.trigger,b.category));S&&(t.opportunityData=ytX(W,S,H,M));y.adClientData=t;F&&(y.serializedSlotAdServingData=
F.serializedSlotAdServingDataEntry);f&&(y.serializedAdServingData=f.serializedAdServingDataEntry);O&&(y.errorInfo=O);_.YQ("adsClientStateChange",{adsClientEvent:y})}};
A&&A>0?_.uS(_.Qb(),function(){return P()},A):P()}catch(W){NNp(p.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.uS(_.Qb(),function(){_.lT(W instanceof Error?W:String(W),X,Z,{pacf_message:"exception during pacf logging"})})}},kC8=function(p,J,S){if(J){var H=J.adLayoutLoggingData;
_.uS(_.Qb(),function(){p.premiumAdSeenEventLogger!=null&&H&&_.YQ("adsSeenClientLogging",{serializedAdServingDataEntry:H.serializedAdServingDataEntry})},S!=null?S:0)}};var TN8=function(p,J){DTU.call(this,p,J)};
_.Q(TN8,DTU);var dT8=function(){},NNp=function(p,J){return _.z(J)};var lWd=function(){var p=new uy4;this.JSC$15773_adsControlFlowManager=(new hzv(p)).JSC$15748_adsControlFlowManager},uy4=function(){_.gp.call(this);
var p=this;this.experimentApiProvider=new $To(function(){return new dT8});
var J=new $To(function(){return new oRd(p.experimentApiProvider)});
this.adEventLogger=new TN8(this.experimentApiProvider,J);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.Q(uy4,_.gp);var Vjd=function(){},qHq,aM=function(){qHq||(qHq=new Vjd);
return qHq},Eh=function(p){if(!p.JSC$15784_externallyManagedSlotAdapterCallback){var J=(new lWd).JSC$15773_adsControlFlowManager;
p.JSC$15784_externallyManagedSlotAdapterCallback=J}return p.JSC$15784_externallyManagedSlotAdapterCallback},aWm=function(p,J,S){var H=J.opportunityType,M=Error("Mh");
if(H!==void 0){var X=Eh(p);ezp(X,H,void 0,S)}else _.lT(M,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});X=[];if(J.adSlotAndLayoutMetadata!==void 0){J=_.K(J.adSlotAndLayoutMetadata);for(var Z=J.next();!Z.done;Z=J.next()){var n=Z.value;if(Z=n.adSlotMetadata)if(X.push(Z),p.onSlotReceivedExternallyManaged(Z,S),n.adLayoutMetadata){n=_.K(n.adLayoutMetadata);for(var b=n.next();!b.done;b=n.next())p.onLayoutReceivedExternallyManaged(Z,b.value,S)}else S>0&&_.lT("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else S>0&&_.lT("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else S>0&&_.lT("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(H!==void 0)p.onOpportunityProcessedExternallyManaged(H,X,void 0,S);else _.lT(M,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Vjd.prototype.onSlotReceivedExternallyManaged=function(p,J){p=xm(p);if(p instanceof wT)_.lT(p,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Eh(this).onSlotReceivedExternallyManaged(p,J)};
Vjd.prototype.onLayoutReceivedExternallyManaged=function(p,J,S){p=xm(p);J=snv(J);if(p instanceof wT)_.lT(p,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(J instanceof c$)_.lT(J,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Eh(this).onLayoutReceivedExternallyManaged(p,J,S)};
Vjd.prototype.onOpportunityProcessedExternallyManaged=function(p,J,S,H){var M=[];J=_.K(J);for(var X=J.next();!X.done;X=J.next())X=xm(X.value),X instanceof wT?_.lT(X,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):M.push(X);Eh(this).onOpportunityProcessedExternallyManaged(p,M,S,H)};
var ER8=function(p,J){J=xm(J);if(J instanceof wT)_.lT(J,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var S=Eh(p);NH(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",J);S=_.K(S.adsControlFlowEventListeners);for(var H=S.next();!H.done;H=S.next())H=TY(H.value,J),H.slotLifecycleStage!=="not_scheduled"&&lH(H.slot,H.slotLifecycleStage,"onSlotScheduled"),H.slotLifecycleStage="scheduled";p=Eh(p);NH(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",J);p=_.K(p.adsControlFlowEventListeners);
for(S=p.next();!S.done;S=p.next())S.value.onSlotEntered(J)}},YH4=function(p,J){J=xm(J);
if(J instanceof wT)_.lT(J,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var S=Eh(p);NH(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",J);S=_.K(S.adsControlFlowEventListeners);for(var H=S.next();!H.done;H=S.next())H.value.onSlotExited(J);p=Eh(p);NH(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",J);p=_.K(p.adsControlFlowEventListeners);for(S=p.next();!S.done;S=p.next())S.value.onSlotUnscheduled(J)}},rDE=function(p,J,S){J=xm(J);
S=snv(S);if(J instanceof wT)_.lT(J,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(S instanceof c$)_.lT(S,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var H=Eh(p);uH(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",J,S);H=_.K(H.adsControlFlowEventListeners);for(var M=H.next();!M.done;M=H.next())M.value.onLayoutScheduled(J,S);p=Eh(p);uH(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",J,S);p=_.K(p.adsControlFlowEventListeners);
for(H=p.next();!H.done;H=p.next())CL4(H.value,J,S)}},YW=function(p,J,S){J=xm(J);
S=snv(S);if(J instanceof wT)_.lT(J,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(S instanceof c$)_.lT(S,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var H=Eh(p);uH(H.adEventLogger,eRg("normal"),J,S);H=_.K(H.adsControlFlowEventListeners);for(var M=H.next();!M.done;M=H.next())M.value.onLayoutExited(J,S,"normal");p=Eh(p);p=_.K(p.adsControlFlowEventListeners);for(H=p.next();!H.done;H=p.next())UTp(H.value,J,S)}};_.rO=_.d(function(p){var J=_.jh(p,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});p=Object.assign({},J);var S=J.data;J=J.customCommandResolver;var H=(delete p.data,delete p.customCommandResolver,p);p=_.Aw({visibilityCallback:function(n,b){var F,f=(F=S().interaction)==null?void 0:F.onFirstVisible;n&&(f&&_.Dm(f),H.setOnErrorHandler()&&gqg(b))},
showOption:_.gX});J=_.km(function(){return S().interaction},J,function(){var n;
return(n=H.listenToTapEvent)==null?void 0:n.call(H)});
var M=_.K(_.eQ(!1,void 0,"wAC0Lc")),X=M.next().value,Z=M.next().value;M=_.Kb(function(n){var b;((b=H.setTouchEndHandler)==null?0:b.call(H))&&!X()&&(n.currentTarget.click(),Z(!0),setTimeout(function(){Z(!1)},100));
return!1});
return _.m("ad-image-view-model",{class:function(){var n,b=[((n=S().interaction)==null?0:n.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],F;((F=H.isGridViewEnabled)==null?0:F.call(H))&&b.push("ytwAdImageViewModelHostInGridView");return b.join(" ")},
el:_.Y2(p,J),"on:touchend":M},_.m("div",{class:"ytwAdImageViewModelHostImageContainer"},_.m(_.a4,{data:function(){var n;return{sources:S().imageSources,contentMode:(n=S().imageProperties)==null?void 0:n.contentMode}},
alt:function(){var n,b;return((n=S().interaction)==null?void 0:(b=n.accessibility)==null?void 0:b.label)||""},
targetHeight:H.targetHeight,targetWidth:H.targetWidth,preserveHeight:H.preserveHeight,preserveWidth:H.preserveWidth,useWidth:H.useWidth,style:function(){var n,b;return"vertical-align: bottom;"+(((n=S().background)==null?0:n.color)?"background-color:"+_.yi((b=S().background)==null?void 0:b.color)+";":"")},
className:function(){return H.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var n,b;return(b=(n=H.setDraggable)==null?void 0:n.call(H))!=null?b:void 0}})))},"lc");var j98=_.d(function(p){var J=p.data,S=p.listenToTapEvent,H=function(){};
return _.m("ad-button-hover-overlay-view-model",{"on:click":_.Kb(function(M){if(_.z("enable_web_home_top_landscape_image_layout_legacy_click_command")){var X,Z=(X=J().interaction)==null?void 0:X.onTap;Z&&_.cf(M.currentTarget,"yt-navigate",{endpoint:_.sa(Z)})}}),
class:function(){var M;return((M=J().interaction)==null?0:M.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.Y2(_.Aw({visibilityCallback:function(M){var X,Z=(X=J().interaction)==null?void 0:X.onFirstVisible;M&&Z&&_.Dm(Z)},
showOption:_.gX}),_.km(function(){return J().interaction},void 0,function(){return!_.z("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(S==null?void 0:S())}))},function(){return _.z("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.m(_.AH,{data:function(){return J().button}},{adButtonViewModel:function(M){return _.m(_.hO,{data:M.data,
customCommandResolver:H})}}):_.m(_.AH,{data:function(){return J().button}},{adButtonViewModel:_.hO})}())},"mc");var IA;_.ci(_.d(function(p){var J=p.data;p=_.Aw({visibilityCallback:function(n,b){if(n){var F;(n=(F=J().interaction)==null?void 0:F.onFirstVisible)&&_.Dm(n);var f;if(F=(f=J().adLayoutData)==null?void 0:f.activeViewData)LG(b,F),_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&pY(b)})}else _.z("stop_av_measurement_on_detach")&&pY(b)},
showOption:_.gX,hideOption:tO});var S=_.km(function(){return J().interaction},void 0,function(){return!0}),H=_.K(_.eQ(!1,void 0,"VNDDT")),M=H.next().value,X=H.next().value;
H=_.Kb(function(){X(!0)});
var Z=_.Kb(function(){X(!1)});
return _.m("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.Y2(p,dKW,S),"on:mouseenter":H,"on:mouseleave":Z},_.m("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.G7({"max-width":function(){return _.z("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.m("div",{class:function(){var n;
a:{var b;switch((n=_.e(J().thumbnailImage,EDv))==null?void 0:(b=n.imageProperties)==null?void 0:b.renderingAspect){case "RENDERING_ASPECT_SQUARE":n="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":n="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}n=void 0}return n}},_.m(_.AH,{data:function(){return J().thumbnailImage}},{adImageViewModel:function(n){return _.m(_.rO,
{data:n.data,
listenToTapEvent:!0,setTouchEndHandler:_.z("enable_top_landscape_image_experiment_dom_id_web")})}})),_.m("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.m(_.v,{cond:function(){var n,b,F;
return(n=_.e(J().thumbnailImage,EDv))==null?void 0:(b=n.imageProperties)==null?void 0:(F=b.overlayIcon)==null?void 0:F.iconImage},
then:function(n){return _.m(_.a4,{data:n,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.m("div",{class:function(){return M()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.m(_.AH,{data:function(){return J().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(n){return _.m(j98,
{data:n.data,
listenToTapEvent:!0})}}))),_.m("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.m(_.AH,{data:function(){return J().feedAdMetadata}},{feedAdMetadataViewModel:function(n){return _.m(lF,{data:n.data,
listenToTapEvent:!0,setTouchEndHandler:_.z("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;p=_.Aw({visibilityCallback:function(n,b){if(n){var F;(n=(F=J().interaction)==null?void 0:F.onFirstVisible)&&_.Dm(n);var f;if(F=(f=J().adLayoutData)==null?void 0:f.activeViewData)LG(b,F),_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&pY(b)})}else _.z("stop_av_measurement_on_detach")&&pY(b)},
showOption:_.gX,hideOption:tO});var S=_.fb(_.gn),H=_.km(function(){return J().interaction}),M={},X={},Z={};
return _.m("square-image-layout-view-model",{class:_.XB("ytwSquareImageLayoutViewModelHost",(M.ytwSquareImageLayoutViewModelHostColumn=S,M)),el:_.Y2(p,uLs,H)},_.m("div",{class:_.XB("ytwSquareImageLayoutViewModelHostImage",(X.ytwSquareImageLayoutViewModelHostColumnImage=S,X))},function(){return _.m(_.AH,{data:function(){return J().adImage}},{adImageViewModel:function(n){return _.m(_.rO,{data:n.data,
isGridViewEnabled:S,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.m("div",{class:_.XB("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(Z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=S,Z))},_.m(_.AH,{data:function(){return J().feedAdMetadata}},{feedAdMetadataViewModel:lF}),function(){return _.m(_.AH,{data:function(){return J().adButton}},{adButtonViewModel:function(n){var b={};
return _.m(_.hO,{data:n.data,className:_.XB((b.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,b.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=S,b))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;var S=p.noBottomMargin;var H=p.typographyBump;p=_.Aw({visibilityCallback:function(O,A){if(O){var P;(O=(P=J().interaction)==null?void 0:P.onFirstVisible)&&_.Dm(O);var W;if(P=(W=J().adLayoutData)==null?void 0:W.activeViewData)LG(A,P),_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&pY(A)})}else _.z("stop_av_measurement_on_detach")&&pY(A)},
showOption:_.gX,hideOption:tO});var M=_.km(function(){return J().interaction},void 0,function(){return _.z("enable_web_home_top_landscape_image_layout_level_click")}),X=function(){return J().interaction};
X!==void 0&&X!==null||_.SB(Error("Nh"));var Z=function(){var O,A,P;return(O=_.e(J().thumbnailImage,EDv))==null?void 0:(A=O.background)==null?void 0:(P=A.backgroundImageSource)==null?void 0:P.imageSources};
X=_.K(_.eQ(!1,void 0,"NFjwje"));var n=X.next().value,b=X.next().value;X=_.Kb(function(){b(!0)});
var F=_.Kb(function(){b(!1)}),f=function(){return n()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.m("top-landscape-image-layout-view-model",{class:function(){var O;return((O=J().interaction)==null?0:O.onTap)&&_.z("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.Y2(p,lCt,M),"on:mouseenter":X,"on:mouseleave":F},_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.m(_.v,{cond:function(){return Z()&&Z().length>0},
then:function(){return _.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.G7({top:"0","background-image":function(){return"url("+String(Z()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.m(_.v,{cond:function(){return!!J().adButtonHoverOverlay},
then:function(){return _.m("div",{class:f},_.m(_.AH,{data:function(){return J().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:j98}))}}),_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.m(_.AH,{data:function(){return J().thumbnailImage}},{adImageViewModel:function(O){return _.m(_.rO,{data:O.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.z("enable_web_home_top_landscape_image_layout_level_click")})}})),_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.m(_.a4,{data:{sources:[{clientResource:{imageName:_.z("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.m(_.AH,{data:function(){return J().feedAdMetadata}},{feedAdMetadataViewModel:function(O){return _.m(lF,{data:O.data,
noBottomMargin:function(){return S==null?void 0:S()},
listenToTapEvent:function(){return _.z("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return H==null?void 0:H()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.fD,
noBottomMargin:_.fD,typographyBump:_.fD}});var wa8=_.d(function(p){var J=p.data,S=_.Aw({visibilityCallback:function(M){var X,Z=(X=J().interaction)==null?void 0:X.onFirstVisible;M&&Z&&_.Dm(Z)},
showOption:_.gX});p=_.km(function(){return J().interaction},p.customCommandResolver);
var H={};return _.m("ad-text-image-view-model",{class:_.XB("ytwAdTextImageViewModelHost",(H.ytwAdTextImageViewModelHostDarkBackground=function(){return J().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},H)),
el:_.Y2(S,p),"aria-label":function(){var M,X;return(M=J().interaction)==null?void 0:(X=M.accessibility)==null?void 0:X.label}},_.m("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.m(_.v3,{text:function(){return J().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.m(_.v,{cond:function(){return J().overlayIcon},
then:function(M){return _.m("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.m(_.a4,{data:M,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var xTm=_.d(function(p){var J=p.data;return _.m("feed-ad-sitelink-view-model",{class:function(){var S;return((S=J().interaction)==null?0:S.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.Y2(_.km(function(){return J().interaction},p.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var S,H;return(S=J().interaction)==null?void 0:(H=S.accessibility)==null?void 0:H.label},
role:"link",tabindex:0},_.m(_.v3,{text:function(){return J().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var cDp=_.d(function(p){var J=p.data;p={};return _.m("feed-ad-sitelinks-carousel-view-model",{el:_.Y2(_.Aw({visibilityCallback:function(S){var H,M=(H=J().interaction)==null?void 0:H.onFirstVisible;S&&M&&_.Dm(M)},
showOption:_.gX})),class:_.XB("ytwFeedAdSitelinksCarouselViewModelHost",(p.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return J().style==="FEED_AD_SITELINKS_STYLE_NONE"},p))},_.m(_.AH,{data:function(){return J().sitelinks}},{feedAdSitelinkViewModel:xTm}))},"sc");_.ci(_.d(function(p){var J=p.data;p=_.Aw({visibilityCallback:function(Z,n){if(Z){var b;(Z=(b=J().interaction)==null?void 0:b.onFirstVisible)&&_.Dm(Z);var F;(b=(F=J().adLayoutData)==null?void 0:F.activeViewData)&&LG(n,b)}},
showOption:_.gX});var S=_.K(_.eQ(!1,void 0,"BzPhl")),H=S.next().value,M=S.next().value;S=_.Kb(function(){M(!0)});
var X=_.Kb(function(){M(!1)});
return _.m("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.Y2(p),"on:mouseenter":S,"on:mouseleave":X},_.m("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.m("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.m(_.AH,{data:function(){return J().textImage}},{adTextImageViewModel:wa8})),_.m("div",{class:function(){return H()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.m(_.AH,{data:function(){return J().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(Z){return _.m(j98,{data:Z.data,
listenToTapEvent:!0})}}))),_.m("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.m(_.AH,{data:function(){return J().feedAdMetadata}},{feedAdMetadataViewModel:function(Z){return _.m(lF,{data:Z.data,
listenToTapEvent:!0})}}),_.m(_.AH,{data:function(){return J().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:cDp})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;var S=p.typographyBump;return _.m("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.Y2(_.Aw({visibilityCallback:function(H,M){if(H){var X;(H=(X=J().interaction)==null?void 0:X.onFirstVisible)&&_.Dm(H);var Z;(X=(Z=J().adLayoutData)==null?void 0:Z.activeViewData)&&LG(M,X)}},
showOption:_.gX,hideOption:tO}))},_.m("div",null,_.m(_.AH,{data:function(){return J().videoLockup}},{lockupViewModel:function(H){return _.m(_.Vy,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:S})}})))},"uc"),"video-display-button-group-layout-view-model",{props:{data:_.fD,
noBottomMargin:_.fD,typographyBump:_.fD}});_.ci(_.d(function(p){var J=p.data;var S=p.className;var H=p.typographyBump;return _.m("video-display-compact-button-group-layout-view-model",{el:_.Y2(_.Aw({visibilityCallback:function(M,X){if(M){var Z;(M=(Z=J().interaction)==null?void 0:Z.onFirstVisible)&&_.Dm(M);var n;(Z=(n=J().adLayoutData)==null?void 0:n.activeViewData)&&LG(X,Z)}},
showOption:_.gX})),class:_.XB("videoDisplayCompactButtonGroupLayoutViewModelHost",S)},_.m(_.AH,{data:function(){return J().videoLockup}},{lockupViewModel:function(M){return _.m(_.Vy,{data:M.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:H})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.fD,
className:_.fD,typographyBump:_.fD}});_.ci(_.d(function(p){var J=p.data;var S=p.className;var H=p.typographyBump;return _.m("video-display-compact-buttoned-layout-view-model",{el:_.Y2(_.Aw({visibilityCallback:function(M,X){if(M){var Z;(M=(Z=J().interaction)==null?void 0:Z.onFirstVisible)&&_.Dm(M);var n;(Z=(n=J().adLayoutData)==null?void 0:n.activeViewData)&&LG(X,Z)}},
showOption:_.gX})),class:_.XB("videoDisplayCompactButtonedLayoutViewModelHost",S)},_.m(_.AH,{data:function(){return J().videoLockup}},{lockupViewModel:function(M){return _.m(_.Vy,{data:M.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:H})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.fD,
className:_.fD,typographyBump:_.fD}});_.ci(_.d(function(p){var J=p.data;var S=p.className;var H=p.typographyBump;var M=function(){return J().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},X=_.fb(_.gn);
p=_.Aw({visibilityCallback:function(F,f){if(F){var O=J();F=O.adLayoutData;var A;(O=(A=O.interaction)==null?void 0:A.onFirstVisible)&&_.Dm(O);(A=F==null?void 0:F.activeViewData)&&LG(f,A)}},
showOption:_.gX});var Z=_.BW(function(){return{containerType:M()&&X()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:M()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),n=_.BW(function(){return M()&&X()?"":M()?"168px":"50%"},void 0,"Om6kNe"),b=_.BW(function(){return M()&&X()?9999:void 0},void 0,"S71lKd");
return _.m("video-display-compact-layout-view-model",{el:_.Y2(p),class:_.XB("videoDisplayCompactLayoutViewModelHost",S)},_.m(_.AH,{data:function(){return J().videoLockup}},{lockupViewModel:function(F){return _.m(_.Vy,{data:F.data,
containerLayoutConfig:Z,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:n,thumbnailTargetWidth:b,typographyBump:H})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.fD,
className:_.fD,typographyBump:_.fD}});_.ci(_.d(function(p){var J=p.data;var S=p.typographyBump;return _.m("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.Y2(_.Aw({visibilityCallback:function(H,M){if(H){var X;(H=(X=J().interaction)==null?void 0:X.onFirstVisible)&&_.Dm(H);var Z;(X=(Z=J().adLayoutData)==null?void 0:Z.activeViewData)&&LG(M,X)}},
showOption:_.gX,hideOption:tO}))},_.m("div",null,_.m(_.AH,{data:function(){return J().videoLockup}},{lockupViewModel:function(H){return _.m(_.Vy,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:S})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.fD,
noBottomMargin:_.fD,typographyBump:_.fD}});_.IWq=_.d(function(p){var J=p.data;p=_.nE("ad-card-badge-view-model");return _.m("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:p},_.m(_.v,{cond:function(){return J().imageBadge},
then:function(S){return _.m(_.a4,{data:S,alt:""})}}))},"zc");var LeL=_.d(function(p){var J=p.data;var S=p.customCommandResolver;return _.m("carousel-ad-card-image-view-model",{class:function(){var H;return((H=J().interaction)==null?0:H.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.Y2(_.Aw({visibilityCallback:function(H){var M,X=(M=J().interaction)==null?void 0:M.onFirstVisible;H&&X&&_.Dm(X)},
showOption:_.gX}),_.km(function(){return J().interaction},S)),
"aria-label":function(){var H,M;return(H=J().interaction)==null?void 0:(M=H.accessibility)==null?void 0:M.label}},_.m(_.AH,{data:function(){return J().adImage}},{adImageViewModel:function(H){return _.m(_.rO,{data:H.data,
customCommandResolver:S})}}),_.m("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.m(_.AH,{data:function(){return J().badge}},{adCardBadgeViewModel:_.IWq})),_.m(_.B3,{model:{color:4}}))},"Ac");var peL=_.d(function(p){var J=_.K(_.eQ(0,void 0,"JJ0QQc")),S=J.next().value;J.next();var H=J.next().value,M=_.K(_.eQ(!1,void 0,"f6YICe"));J=M.next().value;var X=M.next().value,Z;_.VY(function(){clearTimeout(Z)});
M=_.Kb(function(){var F;((F=p.animate)==null?0:F.call(p))?(X(!0),Z=setTimeout(function(){X(!1);n()},200)):n();
return!1});
var n=function(){H(function(F){return(F+p.numShownItems())%p.data().length})},b={};
return _.m("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.m("div",{class:_.XB("ytwHorizontalCarouselCarouselWrapper")},_.m("div",{class:_.XB("ytwHorizontalCarouselCarouselInnerWrapper",(b.ytwHorizontalCarouselAnimating=J,b))},_.m(_.dY,{each:p.data,keyBy:"INDEX"},function(F,f){return _.m("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.G7({"flex-basis":function(){return"calc((100% - (8px * "+(p.numShownItems()-1)+")) / "+p.numShownItems()+")"},
order:function(){var O=f-S();O<0&&(O+=p.data().length);return O}})},p.children(F,f))}))),_.m("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":M},p.nextButton()))},"Bc");var JIo=_.d(function(p){var J=p.data;var S=p.customCommandResolver;var H=p.expansive;return _.m("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.Y2(_.Aw({visibilityCallback:function(M){var X,Z=(X=J().interaction)==null?void 0:X.onFirstVisible;M&&Z&&_.Dm(Z)},
showOption:_.gX}))},_.m(peL,{data:function(){var M;return((M=J())==null?void 0:M.carouselAdCards)||[]},
nextButton:function(){return _.m(_.AH,{data:function(){return J().nextButton}},{buttonViewModel:function(M){var X=M.data;
return _.m(_.D0,{data:function(){return(H==null?0:H())?Object.assign({},X(),{style:"mono"}):X()},
className:_.z("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(M){return _.m(_.AH,{data:M},{carouselAdCardImageViewModel:function(X){return _.m(LeL,{data:X.data,customCommandResolver:S})}})}))},"Cc");var Scd=_.d(function(p){var J=p.data;var S=p.customCommandResolver;var H=p.className;var M=p.buttonClassName;var X=p.animationEntityKey;var Z=p.expansive;return _.m("carousel-button-view-model",{class:_.XB("ytwCarouselButtonViewModelHost",H)},_.m(_.AH,{data:function(){return J().carousel}},{carouselAdCardCollectionViewModel:function(n){return _.m(JIo,{data:n.data,
customCommandResolver:S,expansive:Z})}}),_.m(_.AH,{data:function(){return J().button}},{adButtonViewModel:function(n){var b=n.data;
return _.m(_.hO,{data:function(){return(Z==null?0:Z())?Object.assign({},b(),{style:"AD_BUTTON_STYLE_TONAL"}):b()},
className:M,customCommandResolver:S,animationEntityKey:X})}}))},"Dc");_.Hvq=_.d(function(p){var J=p.data;p=p.className;var S=_.nE("pivot-button-view-model");_.ad(function(){var H;((H=J())==null?0:H.backgroundColor)&&S.value.setAttribute("data-background-color",String(J().backgroundColor))});
return _.m("pivot-button-view-model",{el:S,class:_.XB("ytwPivotButtonViewModelHost",p)},_.m(_.yD,{command:function(){var H=J();H=H.onClickCommand?_.sa(H.onClickCommand):H.contentDescription?_.xZ(H.contentDescription):void 0;return H},
ariaLabel:function(){return J().contentDescription}},_.m(_.v,{cond:function(){return J().thumbnail},
then:function(H){return _.m(_.a4,{data:H,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.m(_.v,{cond:function(){return J().icon},
then:function(H){return _.m(_.bn,{icon:function(){return H().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.MPp=_.d(function(p){var J=p.data;var S=p.buttonShapeOverrideables;return _.m("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.m(_.AH,{data:function(){return J().buttonViewModels}},{buttonViewModel:function(H){return _.m(_.D0,{data:H.data,
buttonOverrides:S})},
likeButtonViewModel:function(H){return _.m(_.nB,{data:H.data,buttonShapeOverrideables:S})},
dislikeButtonViewModel:function(H){return _.m(_.Zh,{data:H.data,buttonShapeOverrideables:S})},
toggleButtonViewModel:function(H){return _.m(_.LD,{data:H.data,buttonShapeOverrides:S})}}))},"Fc");var Xev=_.d(function(p){var J=p.avatar;var S=p.headline;var H=p.badge;var M=p.description;var X=p.expansive;p={};return _.m("yt-ad-metadata-shape",{class:_.XB("ytAdMetadataShapeHost",(p.ytAdMetadataShapeHostLarge=X,p))},_.m("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.m(_.v,{cond:J,then:function(Z){return _.m(_.cC8,{data:function(){return(X==null?0:X())?Object.assign({},Z(),{size:"AD_AVATAR_SIZE_M"}):Z()}})}}),_.m("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.m(_.v3,{text:S,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.m(_.v,{cond:H,then:function(Z){return _.m(_.dX,{data:function(){return(X==null?0:X())?Object.assign({},Z(),{style:"AD_BADGE_STYLE_STARK"}):Z()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.m("h2",{class:"ytAdMetadataShapeHostDescription"},_.m(_.v3,{text:M,
linkInheritColor:!0,isHeadline:function(){return X==null?void 0:X()}})))},"Gc");var ivq=_.d(function(p){var J=p.data;var S=p.onShow;var H=p.expansive;p=_.km(function(){return J().interaction});
_.ad(function(){var X,Z=(X=J().animatedRenderingConfig)==null?void 0:X.delayedSecondsToVisible;if(Z){var n=setTimeout(S,Z*1E3);_.VY(function(){clearTimeout(n)})}});
var M={};return _.m("reels-ad-card-buttoned-view-model",{class:_.XB(function(){var X;return((X=J().interaction)==null?0:X.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(M.ytwReelsAdCardButtonedViewModelHostExpansive=H,M)),
el:_.Y2(p)},_.m(Xev,{avatar:function(){return _.e(J().avatar,V28)},
headline:function(){return J().headline},
badge:function(){return _.e(J().adBadge,qE8)},
description:function(){return J().description},
expansive:H}),_.m(_.AH,{data:function(){return J().ctaButton}},{adButtonViewModel:function(X){var Z=X.data;
return _.m(_.hO,{data:function(){return(H==null?0:H())?Object.assign({},Z(),{style:"AD_BUTTON_STYLE_FILLED"}):Z()}})}}))},"Hc");var RvE=_.d(function(p){var J=p.data;p=p.expansive;var S=_.z("web_ad_metadata_clickable")?_.km(function(){return J().interaction},void 0,function(){return _.z("web_ad_metadata_clickable")}):void 0,H={};
H=_.Qh("ytwReelsAdMetadataViewModelHost",(H.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.z("web_ad_metadata_clickable"),H));return _.m("reels-ad-metadata-view-model",{class:H,el:_.Y2(S)},_.m(Xev,{avatar:function(){return _.e(J().avatar,V28)},
headline:function(){return J().headline},
badge:function(){return _.e(J().adBadge,qE8)},
description:function(){return J().description},
expansive:p}))},"Ic");var KSq={iconPosition:"icon-with-label",size:"L"},Zvn=_.d(function(p){var J=p.data;var S=p.overlayDensity;var H=p.extractOverlay;var M=p.extractActionBar;p=_.nE("reels-player-overlay-layout-view-model");var X=_.rw(S,0),Z=function(){var P;return(P=J().reelsAdCardButtonedEntityKey)!=null?P:""},n=function(){return Z()+"/ad_button"},b=_.v$(AUs,Z),F=function(){var P,W;
return(W=(P=b())==null?void 0:P.value)!=null?W:!1},f=_.fb(VMw),O=function(){var P;
return Object.assign({},KSq,(f()||!((P=M==null?void 0:M())!=null&&P))&&{style:"overlay-dark"})};
S={};var A={};return _.m("reels-player-overlay-layout-view-model",{class:_.XB("ytwReelsPlayerOverlayLayoutViewModelHost",(S.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!J().extension},S.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},S.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return X()===1&&!(H==null?0:H())},S.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var P;
return(P=H==null?void 0:H())!=null?P:!1},S.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var P;
return(P=M==null?void 0:M())!=null?P:!1},S)),
"overlay-density":function(){return String(X())},
el:p},_.m("div",{class:_.XB("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(A.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},A))},_.m("div",{"aria-hidden":function(){return F()},
class:_.XB("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return F()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.G7({"transition-duration":function(){return YA3(J())}})},_.m(_.AH,{data:function(){return J().adMetadata}},{reelsAdMetadataViewModel:function(P){return _.m(RvE,{data:P.data,
expansive:function(){return X()===1}})}}),_.m(_.v,{cond:function(){return J().extension},
then:function(P){return _.m("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.m(_.AH,{data:P},{adButtonViewModel:function(W){return _.m(_.hO,{data:W.data,animationEntityKey:n,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(W){return _.m(Scd,{data:W.data,animationEntityKey:n,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return X()===1}})}}))}})),_.m("div",{"aria-hidden":function(){return!F()},
class:_.XB("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return F()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.G7({"transition-duration":function(){return YA3(J())}})},_.m(_.AH,{data:function(){return J().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(P){return _.m(ivq,{data:P.data,
onShow:function(){_.Y3(_.P$("booleanEntity",Z(),{key:Z(),value:!0}))},
expansive:function(){return X()===1}})}}))),_.m("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.m(_.AH,{data:function(){return J().actions}},{reelActionBarViewModel:function(P){return _.m(_.MPp,{data:P.data,
buttonShapeOverrideables:O})}}),_.m(_.AH,{data:function(){return J().menu}},{buttonViewModel:function(P){return _.m(_.D0,{data:P.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},O(),{type:"tonal"})}})}}),_.m(_.AH,{data:function(){return J().pivotButton}},{pivotButtonViewModel:function(P){return _.m(_.Hvq,{data:P.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.ci(Zvn,"reels-player-overlay-layout-view-model",{props:{data:_.fD,overlayDensity:_.fD,extractOverlay:_.fD,extractActionBar:_.fD}});var IM=function(){var p=_.T.apply(this,arguments)||this;p.noBottomMargin=!1;p.overlayDensity=0;p.extractOverlay=!1;p.extractActionBar=!1;return p};
_.Q(IM,_.T);_.R=IM.prototype;
_.R.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.z("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.R.ready=function(){var p=this;SCt(function(){p.isAttached&&rT(p.JSC$15830_storedAdSlotMetadata,p.JSC$15830_storedAdLayoutMetadata,p.adSlotMetadata,p.adLayoutMetadata)&&YW(aM(),p.JSC$15830_storedAdSlotMetadata,p.JSC$15830_storedAdLayoutMetadata)})};
_.R.attached=function(){rT(this.JSC$15830_storedAdSlotMetadata,this.JSC$15830_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&rDE(aM(),this.JSC$15830_storedAdSlotMetadata,this.JSC$15830_storedAdLayoutMetadata)};
_.R.detached=function(){rT(this.JSC$15830_storedAdSlotMetadata,this.JSC$15830_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&YW(aM(),this.JSC$15830_storedAdSlotMetadata,this.JSC$15830_storedAdLayoutMetadata)};
_.R.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.R.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15830_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15830_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15830_storedAdLayoutMetadata!==void 0&&this.JSC$15830_storedAdSlotMetadata!==void 0&&YW(aM(),this.JSC$15830_storedAdSlotMetadata,this.JSC$15830_storedAdLayoutMetadata),rDE(aM(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15830_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15830_storedAdSlotMetadata=this.adSlotMetadata)};
_.vh.Object.defineProperties(IM.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.adLayoutMetadata}}});
IM.prototype.onAdMetadataChanged=IM.prototype.onAdMetadataChanged;IM.prototype.onTypographyBumpChanged=IM.prototype.onTypographyBumpChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],IM.prototype,"rendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],IM.prototype,"ytComponentBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],IM.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],IM.prototype,"noBottomMargin",void 0);_.V([_.N(),_.Y("design:type",Object)],IM.prototype,"overlayDensity",void 0);_.V([_.N(),_.Y("design:type",Object)],IM.prototype,"extractOverlay",void 0);_.V([_.N(),_.Y("design:type",Object)],IM.prototype,"extractActionBar",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],IM.prototype,"typographyBump",void 0);
_.V([_.U("data.adLayoutMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IM.prototype,"adLayoutMetadata",null);_.V([_.N(),_.Y("design:type",Object)],IM.prototype,"adSlotMetadata",void 0);_.V([_.FM("ytd-video-display-full-buttoned-and-button-group-renderer"),_.Y("design:type",HTMLElement)],IM.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.V([_.bO("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IM.prototype,"onTypographyBumpChanged",null);_.V([_.bO("adLayoutMetadata","adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IM.prototype,"onAdMetadataChanged",null);_.V([_.gw({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],IM);
_.l(IM,"ytd-in-feed-ad-layout-renderer",function(){if(xem!==void 0)return xem;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return xem=p},
{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var n5v;var GaL;_.ci(_.dX,"ad-badge-view-model",{props:{data:_.fD,hasDot:_.fD,customCommandResolver:_.jr,adRenderingContextType:_.jr,usedInMasthead:_.jr}});_.ci(_.hO,"ad-button-view-model",{props:{data:_.fD,customCommandResolver:_.jr,className:_.jr,delayedClassName:_.jr,animationEntityKey:_.jr,isCompactWidth:_.jr,isContentWidth:_.jr}});var LM=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return p};
_.Q(LM,_.T);_.R=LM.prototype;_.R.computeHasLiveDescription=function(p){return!(p==null||!p.liveDescription)};
_.R.computeHasByline=function(p){return!(p==null||!p.byline)};
_.R.computeUsesAdButtonViewModel=function(p){return!!_.e(p==null?void 0:p.cta,az8)};
_.R.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.R.onYtToggleButton=function(p){var J,S=(J=this.data)==null?void 0:J.videoReminderEntityKey;S&&this.ytdReduxBehavior.dispatch(_.P$("upcomingEventReminderStateEntity",S,{key:S,state:p.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.R.attached=function(){this.updateChannelBanner()};
_.R.dataChanged=function(){this.updateChannelBanner()};
_.R.videoReminderStateChanged=function(){var p;this.videoReminderState&&_.e((p=this.data)==null?void 0:p.cta,_.n5)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.R.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var p=_.I4(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);p&&(p.startsWith("//")&&(p="https:"+p),this.hostElement.classList.add("channel-banner"),_.K3(this.hostElement,{"--ytvmh-channel-banner":"url("+p+")"}))}else _.z("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.R.onPlayerReady=function(){this.onIronResize()};
_.R.maybeFlushDebouncer=function(){_.z("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(p){var J;p=(J=p.getElementsByTagName("yt-attributed-string"))==null?void 0:J[0];PEL(p==null?void 0:p.polymerController)})};
_.R.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var p=_.Jn(this.hostElement).querySelector("#live-description"),J;p&&((J=this.data)==null?0:J.shortLiveDescription)&&p.clientWidth<p.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
LM.prototype.onIronResize=LM.prototype.onIronResize;LM.prototype.videoReminderStateChanged=LM.prototype.videoReminderStateChanged;LM.prototype.dataChanged=LM.prototype.dataChanged;LM.prototype.onYtToggleButton=LM.prototype.onYtToggleButton;_.V([_.B(_.wL),_.Y("design:type",Object)],LM.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],LM.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],LM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],LM.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],LM.prototype,"data",void 0);_.V([_.N({selectorArgs:["data.videoReminderEntityKey"],selector:SOs}),_.Y("design:type",Object)],LM.prototype,"videoReminderState",void 0);
_.V([_.N({reflectToAttribute:!0,value:_.z("web_modern_buttons")}),_.Y("design:type",Boolean)],LM.prototype,"rounded",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.Y("design:type",Boolean)],LM.prototype,"hasLiveDescription",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.Y("design:type",Boolean)],LM.prototype,"hasByline",void 0);
_.V([_.N({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.Y("design:type",String)],LM.prototype,"adRenderingContextType",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],LM.prototype,"isMasthead",void 0);_.V([_.N({computed:"computeUsesAdButtonViewModel(data)"}),_.Y("design:type",Boolean)],LM.prototype,"usesAdButtonViewModel",void 0);
_.V([_.N({reflectToAttribute:!0,value:_.z("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.Y("design:type",Boolean)],LM.prototype,"resizableAdBannerSafariFix",void 0);_.V([_.v6("yt-formatted-string"),_.Y("design:type",Array)],LM.prototype,"formattedStrings",void 0);_.V([_.FM("#cta-button"),_.Y("design:type",HTMLElement)],LM.prototype,"ctaButton",void 0);
_.V([_.GI("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],LM.prototype,"onYtToggleButton",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LM.prototype,"dataChanged",null);_.V([_.bO("videoReminderState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LM.prototype,"videoReminderStateChanged",null);
_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LM.prototype,"onIronResize",null);_.V([_.gw({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],LM);
_.l(LM,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(GaL!==void 0)return GaL;var p=document.createElement("template");_.C(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      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return GaL=p},{mode:1});var bvv;var pf=function(){var p=_.T.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};
_.Q(pf,_.T);_.R=pf.prototype;_.R.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.R.onExpandedChanged=function(){this.expanded&&_.L1(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.R.onMouseOver=function(){this.maybeExpand()};
_.R.onTap=function(){this.maybeExpand()};
_.R.onExpandableTileExpanding=function(p){p!==this&&(this.expanded=!1)};
_.R.onExpandableTileLockAndCollapse=function(p){this.isLocked=!0;p!==this&&(this.expanded=!1)};
_.R.onExpandableTileUnlock=function(){this.isLocked=!1};
pf.prototype.onTap=pf.prototype.onTap;pf.prototype.onMouseOver=pf.prototype.onMouseOver;pf.prototype.onExpandedChanged=pf.prototype.onExpandedChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],pf.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],pf.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],pf.prototype,"expanded",void 0);_.V([_.An("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pf.prototype,"onExpandedChanged",null);_.V([_.GI("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pf.prototype,"onMouseOver",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pf.prototype,"onTap",null);
_.V([_.gw({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],pf);
_.l(pf,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(bvv!==void 0)return bvv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return bvv=p},{mode:1});var mJo;var JA=function(){var p=_.T.apply(this,arguments)||this;p.buttonOverrides={style:"overlay"};p.useYtdPlayer=_.z("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$15844_playerManager=null;p.JSC$15844_mastheadCounter=new K$v;return p};
_.Q(JA,_.T);_.R=JA.prototype;_.R.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"}}}};
_.R.created=function(){this.JSC$15844_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15844_playerManager=new rb)};
_.R.ready=function(){var p=this;this.JSC$15844_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var J=_.Jn(this.hostElement).querySelector("#player");this.useYtdPlayer?J.style.display="none":(this.ytdPlayer.style.display="none",SU8(this.JSC$15844_playerManager,J,function(){p.onPlaybackEnded()}),_.Jn(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var S;
((S=p.data)==null?0:S.navigationEndpoint)&&_.cf(p.hostElement,"yt-navigate",{endpoint:p.data.navigationEndpoint})}))};
_.R.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15844_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.R.attached=function(){var p=this;_.dw(function(){p.maybePlayVideo()})};
_.R.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$15844_playerManager.playVideo(),this.getPlayerPromise().then(function(){p.JSC$15844_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.R.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15844_playerManager.stopVideo()};
_.R.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var p,J={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(J);this.setupYtdPlayer()}else MRd(this.JSC$15844_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(HRm(this.JSC$15844_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.R.getPlayerPromise=function(){return this.JSC$15844_playerManager.getPlayerPromise()};
_.R.onYtToggleButton=function(p){this.useYtdPlayer?this.toggleMute(p.detail.toggled):p.detail.toggled?this.JSC$15844_playerManager.mute():this.JSC$15844_playerManager.unMute()};
_.R.onYtNavigate=function(p){var J=Sht(p.detail.endpoint),S=HML(this.data.clickthroughReportingData);J&&S&&(p.detail.endpoint.watchEndpoint?p.detail.tempData=S:_.EB(J,S,30))};
_.R.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.R.onExpandedChanged=function(){this.expanded?(_.L1(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.R.onMouseOver=function(){this.maybeExpand()};
_.R.onTap=function(){this.maybeExpand()};
_.R.onExpandableTileExpanding=function(p){p!==this&&(this.stopVideo(),this.expanded=!1)};
_.R.onExpandableTileLockAndCollapse=function(p){p!==this&&(this.isLocked=!0,this.expanded=!1)};
_.R.onExpandableTileUnlock=function(){this.isLocked=!1};
_.R.lockAndCollapseExpandableTiles=function(){_.IV(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.R.unlockExpandableTiles=function(){_.IV(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.R.setupYtdPlayer=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return S.yield(p.ytdPlayer.getPlayerPromise(),2);J=S.yieldResult;J.addEventListener("onStateChange",function(H){p.onPlayerStateChange(H)});
J.addEventListener("onCueRangeExit",function(H){p.onCueRangeExit(H)});
_.UK(S)})};
_.R.onPlayerStateChange=function(p){if(p===1&&(p=this.ytdPlayer.getPlayer())){var J=p.getCurrentTime(),S,H,M=J+((H=(S=this.data)==null?void 0:S.playbackDurationMs)!=null?H:0)/1E3;p.addCueRange("playback",J,M);this.JSC$15844_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.R.onCueRangeExit=function(p){p==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.R.toggleMute=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(J.ytdPlayer.getPlayerPromise(),2);S=H.yieldResult;p?S.mute():S.unMute();_.UK(H)})};
JA.prototype.onTap=JA.prototype.onTap;JA.prototype.onMouseOver=JA.prototype.onMouseOver;JA.prototype.onExpandedChanged=JA.prototype.onExpandedChanged;JA.prototype.onYtNavigate=JA.prototype.onYtNavigate;JA.prototype.onYtToggleButton=JA.prototype.onYtToggleButton;JA.prototype.dataChanged=JA.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],JA.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],JA.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],JA.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JA.prototype,"expanded",void 0);_.V([_.N(),_.Y("design:type",Object)],JA.prototype,"buttonOverrides",void 0);
_.V([_.N(),_.Y("design:type",Object)],JA.prototype,"useYtdPlayer",void 0);_.V([_.FM("#ytd-player"),_.Y("design:type",Object)],JA.prototype,"ytdPlayer",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JA.prototype,"dataChanged",null);_.V([_.GI("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],JA.prototype,"onYtToggleButton",null);
_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],JA.prototype,"onYtNavigate",null);_.V([_.An("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JA.prototype,"onExpandedChanged",null);_.V([_.GI("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JA.prototype,"onMouseOver",null);
_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JA.prototype,"onTap",null);_.V([_.gw({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],JA);
_.l(JA,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(mJo!==void 0)return mJo;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return mJo=p},{mode:1});var FSU;var Sf=function(){return _.T.apply(this,arguments)||this};
_.Q(Sf,_.T);Sf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Sf.prototype.onShow=function(){var p=_.Jn(this.hostElement).querySelector("#live-description"),J;p&&((J=this.data)==null?0:J.shortLiveDescription)&&p.clientWidth<p.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Sf.prototype.onYtToggleButton=function(p){var J,S=(J=this.data)==null?void 0:J.videoReminderEntityKey;S&&this.ytdReduxBehavior.dispatch(_.P$("upcomingEventReminderStateEntity",S,{key:S,state:p.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Sf.prototype.videoReminderStateChanged=function(){var p;this.videoReminderState&&_.e((p=this.data)==null?void 0:p.cta,_.n5)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Sf.prototype.videoReminderStateChanged=Sf.prototype.videoReminderStateChanged;Sf.prototype.onYtToggleButton=Sf.prototype.onYtToggleButton;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Sf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Sf.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Sf.prototype,"data",void 0);
_.V([_.N({selectorArgs:["data.videoReminderEntityKey"],selector:SOs}),_.Y("design:type",Object)],Sf.prototype,"videoReminderState",void 0);_.V([_.GI("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Sf.prototype,"onYtToggleButton",null);_.V([_.bO("videoReminderState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sf.prototype,"videoReminderStateChanged",null);
_.V([_.gw({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Sf);
_.l(Sf,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(FSU!==void 0)return FSU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return FSU=p},{mode:_.Jz("kevlar_poly_si_batch_j065")?1:2});var v54;var HF=function(){var p=_.T.apply(this,arguments)||this;p.useYtdPlayer=_.z("use_ytd_player_for_desktop_masthead");p.buttonOverrides={style:"overlay"};p.JSC$15852_playerManager=null;p.JSC$15852_mastheadCounter=new K$v;p.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return p};
_.Q(HF,_.T);_.R=HF.prototype;_.R.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"}}}};
_.R.created=function(){this.JSC$15852_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15852_playerManager=new rb)};
_.R.ready=function(){var p=this;this.JSC$15852_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var J;(J=this.embeddedPlayer)==null||J.remove()}else{var S;(S=this.ytdPlayer)==null||S.remove();SU8(this.JSC$15852_playerManager,this.embeddedPlayer,function(){p.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){p.data&&p.data.navigationEndpoint&&_.cf(p.hostElement,"yt-navigate",{endpoint:p.data.navigationEndpoint})})}};
_.R.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15852_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.R.dataChanged=function(){var p=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var J=!this.data.disableAutoPlayback,S,H={autoplay:J,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((S=this.data.playbackStartMs)!=null?S:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(J?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(H);this.setupYtdPlayer()}else MRd(this.JSC$15852_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(HRm(this.JSC$15852_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15852_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.IV(p.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");p.JSC$15852_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.R.getPlayerPromise=function(){return this.JSC$15852_playerManager.getPlayerPromise()};
_.R.onYtToggleButton=function(p){this.useYtdPlayer?this.toggleMute(p.detail.toggled):p.detail.toggled?this.JSC$15852_playerManager.mute():this.JSC$15852_playerManager.unMute()};
_.R.onYtNavigate=function(p){var J=Sht(p.detail.endpoint),S=HML(this.data.clickthroughReportingData);J&&S&&(p.detail.endpoint.watchEndpoint?p.detail.tempData=S:_.EB(J,S,30))};
_.R.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15852_playerManager.stopVideo()};
_.R.setupYtdPlayer=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return S.yield(p.ytdPlayer.getPlayerPromise(),2);J=S.yieldResult;J.addEventListener("onStateChange",function(H){p.onPlayerStateChange(H)});
J.addEventListener("onCueRangeExit",function(H){p.onCueRangeExit(H)});
_.UK(S)})};
_.R.onPlayerStateChange=function(p){if(p===1&&(p=this.ytdPlayer.getPlayer())){var J=p.getCurrentTime(),S,H,M=J+((H=(S=this.data)==null?void 0:S.playbackDurationMs)!=null?H:0)/1E3;p.addCueRange("playback",J,M);_.IV(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15852_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.R.onCueRangeExit=function(p){p==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.R.toggleMute=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(J.ytdPlayer.getPlayerPromise(),2);S=H.yieldResult;p?S.mute():S.unMute();_.UK(H)})};
_.vh.Object.defineProperties(HF.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var p,J;if(!((p=this.data)==null?0:(J=p.accessibilityData)==null?0:J.label))return"Ad primary link";var S,H;return _.Kl("AD_TITLE",{title:(S=this.data)==null?void 0:(H=S.accessibilityData)==null?void 0:H.label})}}});
HF.prototype.onYtMastheadHidden=HF.prototype.onYtMastheadHidden;HF.prototype.onYtNavigate=HF.prototype.onYtNavigate;HF.prototype.onYtToggleButton=HF.prototype.onYtToggleButton;HF.prototype.dataChanged=HF.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],HF.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],HF.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],HF.prototype,"useYtdPlayer",void 0);_.V([_.FM("ytd-toggle-button-renderer"),_.Y("design:type",Object)],HF.prototype,"muteButton",void 0);_.V([_.N(),_.Y("design:type",Object)],HF.prototype,"buttonOverrides",void 0);
_.V([_.U("data.accessibilityData.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],HF.prototype,"titleAriaLabel",null);_.V([_.FM("#replay-button"),_.Y("design:type",Object)],HF.prototype,"replayButton",void 0);_.V([_.FM("#player-container"),_.Y("design:type",Object)],HF.prototype,"playerContainer",void 0);_.V([_.FM("#player"),_.Y("design:type",Object)],HF.prototype,"embeddedPlayer",void 0);_.V([_.FM("#ytd-player"),_.Y("design:type",Object)],HF.prototype,"ytdPlayer",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HF.prototype,"dataChanged",null);_.V([_.GI("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],HF.prototype,"onYtToggleButton",null);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],HF.prototype,"onYtNavigate",null);
_.V([_.GI("yt-masthead-hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HF.prototype,"onYtMastheadHidden",null);_.V([_.gw({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],HF);
_.l(HF,"ytd-video-masthead-ad-primary-video-renderer",function(){if(v54!==void 0)return v54;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return v54=p},{mode:2});var f98;var Mo=function(){var p=_.T.apply(this,arguments)||this;p.collapsed=!1;p.impressionResolver=_.qr();p.JSC$15856_activeViewMeasurementDataResolver=_.qr();p.actionMap={"yt-mute-ad-action":"handleMuteAd"};return p};
_.Q(Mo,_.T);_.R=Mo.prototype;_.R.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"}}}};
_.R.created=function(){this.activeView=new tM(this.hostElement)};
_.R.ready=function(){var p=this;_.Jn(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){p.expandAd()});
this.hostElement.addEventListener("yt-action",function(J){if(J.detail.actionName==="yt-service-request"){var S=J.detail.args[1];S.videoMastheadAdMuteCommand&&(p.collapseAd(S.videoMastheadAdMuteCommand.encryptedMastheadId),J.stopPropagation())}})};
_.R.attached=function(){var p=this;_.dw(function(){p.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(J){if(!p.collapsed){J=_.K(J);for(var S=J.next();!S.done;S=J.next())S=S.value,iS(S.baseUrl,S.attributionSrcMode);p.data.impressionCommand=void 0}});
this.JSC$15856_activeViewMeasurementDataResolver.promise.then(function(J){hM(p.activeView,J)});
_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&DU(p.activeView)})};
_.R.dataChanged=function(){var p;((p=this.data.impressionCommand)==null?0:p.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var J;((J=this.data)==null?0:J.activeView)&&this.JSC$15856_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))};
_.R.computeWidescreen=function(p){var J;return!!(p&&((J=_.e(p,N98))==null?0:J.isWidescreen))};
_.R.computeExpandable=function(p){return!!(p&&p.length>0)};
_.R.onIronResize=function(){if(this.expandable){var p=_.Jn(this.hostElement).querySelector("#expandable-tile-container :first-child");p&&!p.expanded&&(p.expanded=!0)}};
_.R.handleMuteAd=function(){this.collapseAd(null)};
_.R.restoreCollapsedState=function(p){this.collapsed=_.Gv().get("HIDDEN_MASTHEAD_ID")===p};
_.R.collapseAd=function(p){if(p){var J=_.Gv();J.set("HIDDEN_MASTHEAD_ID",p);J.save()}(p=_.Jn(this.hostElement).querySelector("#video"))&&_.cf(p,"yt-masthead-hidden");this.collapsed=!0};
_.R.expandAd=function(){var p=_.Gv();p.set("HIDDEN_MASTHEAD_ID",!1);p.save();location.reload()};
_.R.detached=function(){_.z("stop_av_measurement_on_detach")&&DU(this.activeView)};
Mo.prototype.onIronResize=Mo.prototype.onIronResize;Mo.prototype.dataChanged=Mo.prototype.dataChanged;_.V([_.B(_.wL),_.Y("design:type",Object)],Mo.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.G0),_.Y("design:type",Object)],Mo.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Mo.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Mo.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Mo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Mo.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.Y("design:type",Boolean)],Mo.prototype,"widescreen",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.Y("design:type",Boolean)],Mo.prototype,"expandable",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Mo.prototype,"collapsed",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mo.prototype,"dataChanged",null);_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mo.prototype,"onIronResize",null);_.V([_.gw({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Mo);
_.l(Mo,"ytd-video-masthead-ad-v3-renderer",function(){if(f98!==void 0)return f98;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return f98=p},{mode:2});var X0=function(){return _.T.apply(this,arguments)||this};
_.Q(X0,_.T);_.R=X0.prototype;_.R.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.R.ready=function(){var p=this;SCt(function(){p.isAttached&&rT(p.JSC$15861_storedAdSlotMetadata,p.JSC$15861_storedAdLayoutMetadata,p.adSlotMetadata,p.adLayoutMetadata)&&YW(aM(),p.JSC$15861_storedAdSlotMetadata,p.JSC$15861_storedAdLayoutMetadata)})};
_.R.attached=function(){rT(this.JSC$15861_storedAdSlotMetadata,this.JSC$15861_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&rDE(aM(),this.JSC$15861_storedAdSlotMetadata,this.JSC$15861_storedAdLayoutMetadata)};
_.R.detached=function(){rT(this.JSC$15861_storedAdSlotMetadata,this.JSC$15861_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&YW(aM(),this.JSC$15861_storedAdSlotMetadata,this.JSC$15861_storedAdLayoutMetadata)};
_.R.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15861_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15861_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15861_storedAdLayoutMetadata!==void 0&&this.JSC$15861_storedAdSlotMetadata!==void 0&&YW(aM(),this.JSC$15861_storedAdSlotMetadata,this.JSC$15861_storedAdLayoutMetadata),rDE(aM(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15861_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15861_storedAdSlotMetadata=this.adSlotMetadata)};
_.vh.Object.defineProperties(X0.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.adLayoutMetadata}}});
X0.prototype.onAdMetadataChanged=X0.prototype.onAdMetadataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],X0.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],X0.prototype,"data",void 0);_.V([_.U("data.adLayoutMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],X0.prototype,"adLayoutMetadata",null);
_.V([_.N(),_.Y("design:type",Object)],X0.prototype,"adSlotMetadata",void 0);_.V([_.bO("adLayoutMetadata","adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X0.prototype,"onAdMetadataChanged",null);_.V([_.gw({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],X0);
_.l(X0,"ytd-page-top-ad-layout-renderer",function(){if(n5v!==void 0)return n5v;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return n5v=
p},{mode:_.Jz("kevlar_poly_si_batch_j070")?1:2});var Ovv;var iz=function(){var p=_.T.apply(this,arguments)||this;p.noBottomMargin=!1;p.overlayDensity=0;p.typographyBump=!1;p.extractOverlay=!1;p.extractActionBar=!1;return p};
_.Q(iz,_.T);_.R=iz.prototype;
_.R.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.R.ready=function(){var p=this;SCt(function(){p.isAttached&&p.adSlotMetadata&&YH4(aM(),p.adSlotMetadata)})};
_.R.attached=function(){if(this.adSlotMetadata){var p;if(this.adSlotMetadata===((p=this.data)==null?void 0:p.adSlotMetadata))ER8(aM(),this.adSlotMetadata);else{var J;_.xQ(Error("Oh`"+this.adSlotMetadata+"`"+((J=this.data)==null?void 0:J.adSlotMetadata)))}}};
_.R.detached=function(){this.adSlotMetadata&&YH4(aM(),this.adSlotMetadata)};
_.R.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.R.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&YH4(aM(),this.adSlotMetadata),ER8(aM(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.vh.Object.defineProperties(iz.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var p,J,S=_.e((p=this.data)==null?void 0:(J=p.fulfillmentContent)==null?void 0:J.fulfilledLayout,_.dP8),H;return(p=(H=_.e(S==null?void 0:S.renderingContent,T9p))==null?void 0:H.layout)?p.toLowerCase().replace(/_/g,"-"):""}}});
iz.prototype.onAdSlotMetadataChanged=iz.prototype.onAdSlotMetadataChanged;iz.prototype.onTypographyBumpChanged=iz.prototype.onTypographyBumpChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],iz.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],iz.prototype,"rendererBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],iz.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],iz.prototype,"noBottomMargin",void 0);_.V([_.N(),_.Y("design:type",Object)],iz.prototype,"overlayDensity",void 0);_.V([_.N(),_.Y("design:type",Object)],iz.prototype,"typographyBump",void 0);_.V([_.N(),_.Y("design:type",Object)],iz.prototype,"extractOverlay",void 0);_.V([_.N(),_.Y("design:type",Object)],iz.prototype,"extractActionBar",void 0);
_.V([_.FM("ytd-in-feed-ad-layout-renderer"),_.Y("design:type",HTMLElement)],iz.prototype,"inFeedAdLayoutRenderer",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],iz.prototype,"layout",null);_.V([_.bO("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iz.prototype,"onTypographyBumpChanged",null);
_.V([_.bO("data.adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iz.prototype,"onAdSlotMetadataChanged",null);_.V([_.gw({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],iz);
_.l(iz,"ytd-ad-slot-renderer",function(){if(Ovv!==void 0)return Ovv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Ovv=p},{mode:_.Jz("kevlar_poly_si_batch_j077")?
1:2});var AIM;var R3=function(){return _.T.apply(this,arguments)||this};
_.Q(R3,_.T);_.R=R3.prototype;_.R.created=function(){this.activeView=new tM(this.hostElement)};
_.R.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"}}}};
_.R.maybeComputeHref=function(){return null};
_.R.onTap=function(){};
_.R.onThumbnailContainerClick=function(p){this.onClick(p)};
_.R.onClick=function(p){var J,S=(J=this.data)==null?void 0:J.navigationEndpoint;S&&_.e(S,_.lj)&&(this.ytSparklesClickLocationBehavior.handleClick(S,p,!1),p.stopPropagation())};
_.R.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var p=_.K(this.data.impressionUrls),J=p.next();!J.done;J=p.next())J=J.value,E3L(J,rni(J));this.data.activeView&&hM(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",R3.JSC$15869_DEFAULT_CLICK_LOCATION_BEHAVIOR,R3.JSC$15869_CLICK_LOCATION_ID_MAP);this.thumbnail&&(p=this.thumbnail.getElementsByTagName("a"),p.length>0&&(p=p.namedItem("thumbnail"))&&p.removeAttribute("href"))}};
_.R.attached=function(){var p=this;_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&DU(p.activeView)})};
_.R.detached=function(){_.z("stop_av_measurement_on_detach")&&DU(this.activeView)};
_.vh.Object.defineProperties(R3.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
R3.prototype.dataChanged=R3.prototype.dataChanged;R3.prototype.onTap=R3.prototype.onTap;R3.JSC$15869_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
R3.JSC$15869_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"}];_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],R3.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],R3.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],R3.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Ca.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],R3.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.N({selector:_.gn}),_.Y("design:type",Object)],R3.prototype,"isGridViewEnabled",void 0);_.V([_.U("isGridViewEnabled"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],R3.prototype,"watchFeedBigThumbs",null);_.V([_.U("isGridViewEnabled"),_.N({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],R3.prototype,"thumbnailWidth",null);_.V([_.N(),_.Y("design:type",Object)],R3.prototype,"data",void 0);
_.V([_.FM("ytd-thumbnail"),_.Y("design:type",HTMLElement)],R3.prototype,"thumbnail",void 0);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R3.prototype,"onTap",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R3.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],R3);
_.l(R3,"ytd-compact-promoted-video-renderer",function(){if(AIM!==void 0)return AIM;var p=document.createElement("template");_.C(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<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return AIM=p},{mode:1});var P58;_.QI("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Kf=function(){return _.T.apply(this,arguments)||this};
_.Q(Kf,_.T);Kf.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Kf.prototype,"data",void 0);_.V([_.gw({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Kf);
_.l(Kf,"ytd-search-pyv-renderer",function(){if(P58!==void 0)return P58;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return P58=p},{mode:1});var zvU;_.QI("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var ZS=function(){var p=_.T.apply(this,arguments)||this;p.roundedContainer=!0;p.JSC$15877_handleOpenPostCommentDialogActionAfterStamp=!1;p.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return p};
_.Q(ZS,_.T);_.R=ZS.prototype;
_.R.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.R.onStampFinished=function(){this.JSC$15877_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.R.handleSignalActionOpenPostCommentDialogAction=function(){var p=_.Jn(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");p?p.openDialog():this.JSC$15877_handleOpenPostCommentDialogActionAfterStamp=!0};
_.R.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.R.computeHideBorder=function(){return this.isInEngagementPanel};
_.R.computeIsCompact=function(){return this.isInEngagementPanel};
_.R.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"};
_.R.computeUsesFullLockup=function(){var p,J=(p=this.data)==null?void 0:p.post,S;p=(S=_.e(J,Izo))==null?void 0:S.surface;var H;S=(H=_.e(J,J38))==null?void 0:H.originalPost;var M;if(H=p||((M=_.e(S,Izo))==null?void 0:M.surface))return!this.computeUsesCompactLockup(H)&&this.useUpdatedRepostUi;var X;return((X=_.e(J,J38))==null?void 0:X.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.vh.Object.defineProperties(ZS.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var p,J;return((J=_.e((p=this.data)==null?void 0:p.post,Izo))==null?void 0:J.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.useUpdatedRepostUi}}});
ZS.prototype.onYtCommentModerationPanelEmpty=ZS.prototype.onYtCommentModerationPanelEmpty;ZS.prototype.onStampFinished=ZS.prototype.onStampFinished;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],ZS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],ZS.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ZS.prototype,"roundedContainer",void 0);_.V([_.N({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZS.prototype,"hideBorder",void 0);_.V([_.N({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZS.prototype,"isCompact",void 0);
_.V([_.N({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZS.prototype,"usesFullLockup",void 0);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZS.prototype,"onStampFinished",null);
_.V([_.GI("ytd-comment-moderation-panel-empty"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ZS.prototype,"onYtCommentModerationPanelEmpty",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ZS.prototype,"isInEngagementPanel",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ZS.prototype,"useUpdatedRepostUi",null);
_.V([_.gw({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],ZS);
_.l(ZS,"ytd-backstage-post-thread-renderer",function(){if(zvU!==void 0)return zvU;var p=document.createElement("template");_.C(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>');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return zvU=p},{mode:1});var $J8;var nf=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.Q(nf,_.T);nf.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
nf.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var p=this.data.thumbnail.thumbnails;this.isDarkTheme&&(p=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(p=_.I4(p,24,void 0,"height"))?p:void 0}};
nf.prototype.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
nf.prototype.computeHasText=function(){var p;return!((p=this.data)==null||!p.text)};
_.vh.Object.defineProperties(nf.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Vd(this.bannerImageUrl))+'");'}}});
nf.prototype.computeHasText=nf.prototype.computeHasText;nf.prototype.computeBannerImageUrl=nf.prototype.computeBannerImageUrl;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],nf.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],nf.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],nf.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],nf.prototype,"isDarkTheme",void 0);_.V([_.N(),_.Y("design:type",String)],nf.prototype,"bannerImageUrl",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.Y("design:type",Boolean)],nf.prototype,"hasText",void 0);_.V([_.bO("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nf.prototype,"computeBannerImageUrl",null);
_.V([_.bO("data.text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nf.prototype,"computeHasText",null);_.V([_.U("bannerImageUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nf.prototype,"bannerStyle",null);_.V([_.gw({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],nf);
_.l(nf,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if($J8!==void 0)return $J8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return $J8=p},{mode:1});var o5p;var GL=function(){return _.T.apply(this,arguments)||this};
_.Q(GL,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],GL.prototype,"data",void 0);_.V([_.gw({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],GL);
_.l(GL,"ytd-backstage-zero-state-renderer",function(){if(o5p!==void 0)return o5p;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return o5p=p},{mode:1});var evd;var bz=function(){return _.T.apply(this,arguments)||this};
_.Q(bz,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],bz.prototype,"data",void 0);_.V([_.N({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],bz.prototype,"icon",void 0);_.V([_.gw({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],bz);
_.l(bz,"ytd-post-filter-zero-state-renderer",function(){if(evd!==void 0)return evd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return evd=p},{mode:1});var WS8;var Qco={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},m_=function(){return _.T.apply(this,arguments)||this};
_.Q(m_,_.T);m_.prototype.configureRendererStamper=function(){return Qco};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],m_.prototype,"rendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],m_.prototype,"data",void 0);_.V([_.N({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],m_.prototype,"icon",void 0);_.V([_.gw({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],m_);
_.l(m_,"ytd-post-scheduling-zero-state-renderer",function(){if(WS8!==void 0)return WS8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return WS8=p},{mode:1});var C5m;var F0=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return p};
_.Q(F0,_.T);F0.prototype.onTabsActivate=function(p){this.data&&this.data.tabs&&_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[p.detail.selected].navigationEndpoint})};
F0.prototype.shouldShowTotalCount=function(p){return p&&p.totalCount!==void 0};
F0.prototype.handleUpdatePostsTotalCountAction=function(p){var J=this.get(["data.tabs",1,"totalCount"]),S=this.get("updatePostsTotalCountAction.updateType",p);p=this.get("updatePostsTotalCountAction.number",p);J!==void 0&&S!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&p&&(S==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(J)+p):S==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(J)-p))};
_.vh.Object.defineProperties(F0.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var p=0,J=this.data.tabs.length;p<J;p++)if(this.data.tabs[p].selected)return p;return 0}}});
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],F0.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],F0.prototype,"rendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],F0.prototype,"data",void 0);_.V([_.U("data.tabs"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],F0.prototype,"selected",null);_.V([_.gw({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],F0);
_.l(F0,"ytd-post-stream-filter-renderer",function(){if(C5m!==void 0)return C5m;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return C5m=p},{mode:1});var yIm;var vF=function(){return _.T.apply(this,arguments)||this};
_.Q(vF,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],vF.prototype,"kevlarBehaviors",void 0);_.V([_.N(),_.Y("design:type",Object)],vF.prototype,"data",void 0);_.V([_.gw({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],vF);
_.l(vF,"ytd-channel-age-gate-renderer",function(){if(yIm!==void 0)return yIm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return yIm=p},{mode:1});var BDv;_.QI("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var ff=function(){var p=_.T.apply(this,arguments)||this;p.data=null;return p};
_.Q(ff,_.T);ff.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vh.Object.defineProperties(ff.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return((p=this.data)==null?0:(J=p.title)==null?0:(S=J.runs)==null?0:S.length)?147:160}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ff.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ff.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],ff.prototype,"imageSizePx",null);_.V([_.gw({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],ff);
_.l(ff,"ytd-channel-owner-empty-state-renderer",function(){if(BDv!==void 0)return BDv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return BDv=p},{mode:1});var UJ4;var scv;var Oo=function(){var p=_.T.apply(this,arguments)||this;p.boundSubmitSearch=function(){p.submitSearch()};
p.boundClearSearch=function(){p.clearSearch()};
return p};
_.Q(Oo,_.T);_.R=Oo.prototype;_.R.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]]"}}}}}};
_.R.toggleClearButton=function(){this.hideClearButton=EsE||!this.input.value};
_.R.submitOnEnterKeyUp=function(p){p.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.R.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.R.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.R.submit=function(){_.cf(this.hostElement,"search-query-changed",this.input.value)};
Oo.prototype.toggleClearButton=Oo.prototype.toggleClearButton;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Oo.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Oo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Oo.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Oo.prototype,"hideClearButton",void 0);_.V([_.N(),_.Y("design:type",Object)],Oo.prototype,"boundSubmitSearch",void 0);_.V([_.N(),_.Y("design:type",Object)],Oo.prototype,"boundClearSearch",void 0);_.V([_.FM("#input"),_.Y("design:type",Object)],Oo.prototype,"input",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oo.prototype,"toggleClearButton",null);
_.V([_.gw({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Oo);
_.l(Oo,"ytd-channel-switcher-search-box-renderer",function(){if(scv!==void 0)return scv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return scv=p},{mode:1});var g5n;var AA=function(){var p=_.T.apply(this,arguments)||this;p.boundSubmit=function(){p.submit()};
return p};
_.Q(AA,_.T);_.R=AA.prototype;_.R.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"}}}}};
_.R.ready=function(){var p=this;this.form.addEventListener("submit",function(J){return p.onSubmit(J)})};
_.R.onSubmit=function(p){p.preventDefault();return!1};
_.R.toggleClearButton=function(){this.hideClearButton=EsE||!this.input.value};
_.R.submitOnEnterKeyUp=function(p){p.keyCode===13&&this.submit()};
_.R.submit=function(){var p=this.data.endpoint,J=(0,_.T6.unsafeClone)(p);_.e(J,_.Ge)?_.e(J,_.Ge).query=this.input.value:_.e(J,_.by)&&(_.e(J,_.by).query=this.input.value);var S=_.e(J.commandMetadata,_.i7);(S==null?0:S.url)?(S.url=_.pE(S.url,"query",this.input.value),_.cf(this.hostElement,"yt-navigate",{endpoint:J})):_.e(J,su8)?(_.e(J,su8).channelSwitcherQuery=this.input.value,_.vO().resolve(_.Ov).resolveCommand(J,{form:{element:this.hostElement}})):(p=Error("Ph`"+JSON.stringify(p)),_.jD(p))};
_.R.getUrl=function(p){return this.get("commandMetadata.webCommandMetadata.url",p)};
AA.prototype.toggleClearButton=AA.prototype.toggleClearButton;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],AA.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],AA.prototype,"hideClearButton",void 0);
_.V([_.N(),_.Y("design:type",Object)],AA.prototype,"boundSubmit",void 0);_.V([_.FM("#form"),_.Y("design:type",HTMLFormElement)],AA.prototype,"form",void 0);_.V([_.FM("#input"),_.Y("design:type",Object)],AA.prototype,"input",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AA.prototype,"toggleClearButton",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],AA);
_.l(AA,"ytd-search-box-renderer",function(){if(g5n!==void 0)return g5n;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return g5n=p},{mode:2});var PF=function(){var p=_.T.apply(this,arguments)||this;p.showSearchBox=!0;return p};
_.Q(PF,_.T);PF.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],PF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],PF.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PF.prototype,"showSearchBox",void 0);_.V([_.gw({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],PF);
_.l(PF,"ytd-channel-switcher-header-renderer",function(){if(UJ4!==void 0)return UJ4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return UJ4=p},{mode:1});var tPL;var hvm;var zL=function(){var p=_.T.apply(this,arguments)||this;p.isDisplayed=!0;return p};
_.Q(zL,_.T);_.R=zL.prototype;_.R.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.dataChanged=function(){this.isDisplayed=!0};
_.R.computeType=function(p){return p||"UNKNOWN"};
_.R.onYtServiceRequestCompleted=function(p){p.stopPropagation();this.isDisplayed=!1};
_.R.onClose=function(){this.isDisplayed=!1};
zL.prototype.onYtServiceRequestCompleted=zL.prototype.onYtServiceRequestCompleted;zL.prototype.dataChanged=zL.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],zL.prototype,"data",void 0);
_.V([_.N({computed:"computeType(data.type)",reflectToAttribute:!0}),_.Y("design:type",String)],zL.prototype,"type",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],zL.prototype,"isDisplayed",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zL.prototype,"dataChanged",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],zL.prototype,"onYtServiceRequestCompleted",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],zL);
_.l(zL,"ytd-alert-with-button-renderer",function(){if(hvm!==void 0)return hvm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return hvm=p},{mode:1});var $l=function(){var p=_.T.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};
_.Q($l,_.T);_.R=$l.prototype;_.R.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.R.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.R.updateChannelSwitcherAction=function(p){var J;p=(J=_.e(p,CaL))==null?void 0:J.page;_.e(p,QK8)!==void 0&&(this.data=_.e(p,QK8))};
_.R.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]]"}}}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.R.searchQueryChanged=function(p,J){if(this.data&&this.data.contents&&this.data.contents.length){p=[];var S=[];this.hideCreateChannelButton=this.noResult=!1;for(var H=document.querySelectorAll("ytd-account-item-renderer"),M=_.K(H),X=M.next();!X.done;X=M.next())X=X.value,S.push(X),X.style.display="block";this.resetRightBorder(S);if(J){this.hideCreateChannelButton=!0;for(S=1;S<this.data.contents.length;S++)if(X=this.data.contents[S],_.e(X,yG8)){var Z=void 0,n=void 0;M=(Z=_.e(X,yG8))==null?void 0:(n=
Z.accountName)==null?void 0:n.simpleText;n=Z=void 0;X=(Z=_.e(X,yG8))==null?void 0:(n=Z.channelHandle)==null?void 0:n.simpleText;(Z=H[S-1])&&M&&_.bw(M,J)?p.push(Z):_.z("enable_handle_search_on_channel_switcher")&&Z&&X&&_.bw(X.toString(),J.toString())?p.push(Z):Z.style.display="none"}p.length===0&&(this.noResult=!0);this.resetRightBorder(p)}}};
_.R.resetRightBorder=function(p){for(var J=0;J<p.length;J++)p[J].style.borderRight=!this.hideCreateChannelButton&&(J+2)%3===0||this.hideCreateChannelButton&&(J+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.R.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.R.setShowSearchBox=function(p){if(p&&p.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var J=0;J<p.contents.length;J++)_.e(p.contents[J],_.js)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.R.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.vh.Object.defineProperties($l.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null?0:p.contents)}}});
$l.prototype.onContinuationItemsUpdated=$l.prototype.onContinuationItemsUpdated;$l.prototype.searchQueryChanged=$l.prototype.searchQueryChanged;$l.prototype.onDataChanged=$l.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],$l.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],$l.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.$W),_.Y("design:type",Object)],$l.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],$l.prototype,"data",void 0);_.V([_.FM("ytd-channel-switcher-header-renderer"),_.Y("design:type",Object)],$l.prototype,"channelSwitcherHeaderRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],$l.prototype,"noResult",void 0);
_.V([_.N(),_.Y("design:type",Object)],$l.prototype,"enableAlertBanner",void 0);_.V([_.N(),_.Y("design:type",Object)],$l.prototype,"dismissedAlertBanner",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],$l.prototype,"hideCreateChannelButton",void 0);_.V([_.U("data.contents"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$l.prototype,"isLoading",null);_.V([_.N(),_.Y("design:type",Object)],$l.prototype,"boundDismissAlertBanner",void 0);
_.V([_.N({computed:"computeButtonOverride()"}),_.Y("design:type",Object)],$l.prototype,"buttonOverride",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$l.prototype,"onDataChanged",null);_.V([_.GI("search-query-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],$l.prototype,"searchQueryChanged",null);
_.V([_.GI("yt-next-continuation-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$l.prototype,"onContinuationItemsUpdated",null);_.V([_.gw({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],$l);
_.l($l,"ytd-channel-switcher-page-renderer",function(){if(tPL!==void 0)return tPL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return tPL=p},{mode:1});var DJp;var ka8;var o3=function(){var p=_.T.apply(this,arguments)||this;p.images=[];p.selectedImageIndex=0;return p};
_.Q(o3,_.T);_.R=o3.prototype;
_.R.ready=function(){_.z$(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.z$(this.JSC$15922_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.z$(this.JSC$15922_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.z$(this.JSC$15922_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.R.onThumbnailClick=function(p){if(p=p.event_.detail)this.selectedImageIndex=this.images.indexOf(p)};
_.R.updateImageThumbnails=function(p){p=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:p.event_.detail});this.images.splice(this.selectedImageIndex,1,p);this.images=[].concat(_.dW(this.images))};
_.R.cancelImageRepositions=function(){this.selectedImageIndex=0;_.cf(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.R.saveImageRepositions=function(){this.selectedImageIndex=0;_.cf(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.vh.Object.defineProperties(o3.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var p=this;return(this.images||[]).map(function(J,S){return{image:J,selected:S===p.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],o3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.FM("ytd-backstage-image-preview-renderer"),_.Y("design:type",Object)],o3.prototype,"JSC$15922_imagePreviewContainer",void 0);_.V([_.FM(".thumbnail-images-container"),_.Y("design:type",HTMLElement)],o3.prototype,"thumbnailImagesContainer",void 0);_.V([_.N(),_.Y("design:type",Array)],o3.prototype,"images",void 0);
_.V([_.N(),_.Y("design:type",Object)],o3.prototype,"repositionInstructions",void 0);_.V([_.N(),_.Y("design:type",Object)],o3.prototype,"selectedImageIndex",void 0);_.V([_.U("images","selectedImageIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],o3.prototype,"thumbnailRendererDatas",null);_.V([_.U("images","selectedImageIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],o3.prototype,"selectedImageData",null);
_.V([_.gw({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],o3);
_.l(o3,"ytd-backstage-multi-image-reposition-renderer",function(){if(ka8!==void 0)return ka8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ka8=p},{mode:1});var ef=function(p,J){_.te.call(this);this.uploadUrl=p;this.channelId=J;this.imagesUploadData=[]};
_.Q(ef,_.te);ef.prototype.getAllUploadStatuses=function(){var p=this,J,S,H;return _.G(function(M){if(M.nextAddress==1)return M.yield(ND8(p),2);J=M.yieldResult;S=J.get("succeed");H=J.get("failed");return M.return(S.concat(H))})};
var dJL=function(p){var J,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(ND8(p),2);J=H.yieldResult;S=J.get("failed");S.length>0&&TDq(p,S);return H.return(p.getAllUploadStatuses())})},ND8=function(p){var J,S,H,M,X,Z,n;
return _.G(function(b){if(b.nextAddress==1)return J=new Map,b.yield(Promise.allSettled(p.imagesUploadData.map(function(F){return F.uploadPromise})),2);
S=b.yieldResult;H=[];M=_.K(S);for(X=M.next();!X.done;X=M.next())Z=X.value,Z.status==="fulfilled"&&H.push(Z.value);n=p.imagesUploadData.map(function(F){return F.image}).filter(function(F){return H.every(function(f){return f.id!==F.id})});
J.set("succeed",H);J.set("failed",n);return b.return(J)})},TDq=function(p,J){J=_.K(J);
for(var S=J.next();!S.done;S=J.next()){var H=p;S=S.value;upU(H,S.id)>=0&&H.cancel(S.id);var M=new l94(S),X=_.fz8(H.uploadUrl,{"X-YouTube-ChannelId":H.channelId},S.imageBlob);M.transfer=X;M.uploadPromise=VPL(X,S);H.imagesUploadData.push(M);X.run()}};
ef.prototype.cancel=function(p){var J=upU(this,p);J!==-1&&((J=this.imagesUploadData[J].transfer)&&J.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(S){return S.image.id!==p}))};
var upU=function(p,J){return p.imagesUploadData.findIndex(function(S){return S.image.id===J})},VPL=function(p,J){return new Promise(function(S,H){p.listen("l",function(){var M=p.getResponseText();
M?(M=JSON.parse(M).encryptedBlobId,J.encryptedBlobId=M,S(J)):H("upload failed")});
p.listen("n",function(){H("upload failed")})})},l94=function(p){this.image=p};var rtt=function(p,J,S,H,M){this.id=p;this.imageBlob=J;this.localImageSrc=S;this.naturalWidth=H;this.naturalHeight=M;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 qcL=[".jpeg",".jpg",".png"],WF=function(){var p=_.T.apply(this,arguments)||this;p.showImagesPreview=!1;p.pollOptions=[];p.errorMessage="";p.optionPlaceholderText="";p.optionDefaultText="";p.JSC$15933_imageId=0;p.maxFileSizeMb=0;p.maxAspectRatio=0;p.invalidFileSizeError="";p.invalidAspectRatioError="";p.invalidFileTypeError="";p.imageSelector=new ta(null,"single_file",qcL);return p};
_.Q(WF,_.T);_.R=WF.prototype;_.R.ready=function(){_.z$(this.imageSelector,"j",this.onImageSelect,!1,this);_.z$(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.z$(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.R.dataChanged=function(){var p,J,S=_.e((p=this.data)==null?void 0:(J=p.cellTemplate)==null?void 0:J.onEmptyCellTap,RgL);if(S&&S.uploadUrl&&S.channelId){var H;this.maxFileSizeMb=((H=S.imageValidationInfo)==null?void 0:H.maxFileSizeMb)||0;var M;this.maxAspectRatio=((M=S.imageValidationInfo)==null?void 0:M.allowedMaxAspectRatio)||0;var X;this.invalidFileSizeError=this.getSimpleString((X=this.data)==null?void 0:X.invalidFileSizeError);var Z;this.invalidAspectRatioError=this.getSimpleString((Z=this.data)==
null?void 0:Z.invalidAspectRatioError);var n;this.invalidFileTypeError=this.getSimpleString((n=this.data)==null?void 0:n.invalidFileTypeError);this.uploadManager=new ef(S.uploadUrl,S.channelId)}};
_.R.onEditorInfoChange=function(){this.optionPlaceholderText=_.E4(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.E4(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.R.observeAddImageError=function(){this.errorMessage!==""&&_.cf(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.R.onPollOptionsChange=function(){for(var p=!1,J=[],S=0;S<this.pollOptions.length;S++){var H=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(S+1);this.pollOptions[S].placeholderText!==H?(p=!0,J.push(Object.assign({},this.pollOptions[S],{placeholderText:H}))):J.push(this.pollOptions[S])}p&&(this.pollOptions=J);this.isValid()?_.cf(this.hostElement,"yt-commentbox-post-enable"):_.cf(this.hostElement,"yt-commentbox-post-disable")};
_.R.createPollOptions=function(p){var J=[],S;p=(S=p==null?void 0:p.minPollOptions)!=null?S:0;for(S=0;S<p;S++)J.push(this.createPollOption());return J};
_.R.onImageSelect=function(p){var J=this,S,H,M,X,Z,n;return _.G(function(b){if(b.nextAddress==1){if(J.selectedImageIndex===void 0)return b.jumpTo(0);S=p.files[0];J.errorMessage="";H=J.validateImage(S);if(H!=="")return J.errorMessage=H,b.return();M=new ol(J.maxAspectRatio,!1,!0);return b.yield(M.transform(S),3)}if(b.nextAddress!=4)return X=b.yieldResult,X.transformedData?X.invalidAspectRatio?(J.errorMessage=J.invalidAspectRatioError,b.return()):b.yield(jnk(J.JSC$15933_imageId,p.files[0],X.transformedData),
4):(J.errorMessage=J.invalidFileTypeError,b.return());Z=b.yieldResult;J.JSC$15933_imageId++;TDq(J.uploadManager,[Z]);n=Object.assign({},J.pollOptions[J.selectedImageIndex],{image:Z});J.pollOptions.splice(J.selectedImageIndex,1,n);J.refreshPollOptions();_.cf(J.hostElement,"yt-backstage-poll-image-select");_.UK(b)})};
_.R.validateImage=function(p){return p.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.R.refreshPollOptions=function(){this.pollOptions=[].concat(_.dW(this.pollOptions))};
_.R.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.dW(this.pollOptions),[this.createPollOption()]))};
_.R.onRemovePollOption=function(p){var J=this.pollOptions[p.model.index];J&&J.image&&this.uploadManager.cancel(J.image.id);this.pollOptions.splice(p.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.cf(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.R.onTextInput=function(){this.refreshPollOptions()};
_.R.onImageButtonClick=function(p){this.selectedImageIndex=p.model.index;this.imageSelector.click()};
_.R.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.R.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.R.saveImageRepositions=function(p){p=p.event_.detail;for(var J=0,S=[],H=_.K(this.pollOptions),M=H.next();!M.done;M=H.next())M=M.value,M.image!==void 0?(M=Object.assign({},M,{image:p[J]}),S.push(M),J++):S.push(M);this.showImagesPreview=!1;this.pollOptions=[].concat(_.dW(S))};
_.R.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,J=_.K(this.pollOptions),S=J.next();!S.done;S=J.next())if(S=S.value,S.optionText.trim()!==""||S.image!==void 0){if(!S.image||this.hasCustomOptionText&&S.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;p++}return p>=Number(this.editorInfo.minPollOptions)};
_.R.getAllUploadStatuses=function(){var p=this,J,S,H,M;return _.G(function(X){if(X.nextAddress==1)return X.yield(p.uploadManager.getAllUploadStatuses(),2);J=X.yieldResult;S=_.K(J);for(H=S.next();!H.done;H=S.next())if(M=H.value,M.encryptedBlobId===void 0)return X.return(dJL(p.uploadManager));return X.return(J)})};
_.R.getPostCreateOptions=function(){for(var p=[],J=_.K(this.pollOptions),S=J.next();!S.done;S=J.next())S=S.value,S.image!==void 0&&p.push({text:this.hasCustomOptionText?S.optionText:S.placeholderText,image:S.image});return p};
_.R.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.R.createButtonRenderer=function(p,J){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:p,accessibilityData:{accessibilityData:{label:this.getSimpleString(p)}},isDisabled:J}};
_.R.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.R.computeThumbnailRendererData=function(p){return p?{image:p,selected:!1}:void 0};
_.R.getSimpleString=function(p){return _.E4(p)};
_.R.updateOptionTextFromBinding=function(p){if(p.target){var J=Array.from(_.Jn(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(p.target);if(J>=0){var S;this.pollOptions[J].optionText=(S=p.detail.value)!=null?S:""}}};
_.vh.Object.defineProperties(WF.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var p,J;return this.pollOptions.length<((J=(p=this.editorInfo)==null?void 0:p.maxPollOptions)!=null?J: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,J=(p=this.data)==null?void 0:p.addOptionButtonText;return J?this.createButtonRenderer(J,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var p,J=(p=this.data)==null?void 0:p.repositionImagesButtonLabel;return J?this.createButtonRenderer(J,!this.hasImages):void 0}}});
WF.prototype.onPollOptionsChange=WF.prototype.onPollOptionsChange;WF.prototype.observeAddImageError=WF.prototype.observeAddImageError;WF.prototype.onEditorInfoChange=WF.prototype.onEditorInfoChange;WF.prototype.dataChanged=WF.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.FM("ytd-backstage-multi-image-reposition-renderer"),_.Y("design:type",Object)],WF.prototype,"imageRepositionContainer",void 0);
_.V([_.N(),_.Y("design:type",Object)],WF.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],WF.prototype,"editorInfo",void 0);_.V([_.N(),_.Y("design:type",ef)],WF.prototype,"uploadManager",void 0);_.V([_.N(),_.Y("design:type",Object)],WF.prototype,"showImagesPreview",void 0);_.V([_.N(),_.Y("design:type",Array)],WF.prototype,"pollOptions",void 0);_.V([_.N(),_.Y("design:type",Object)],WF.prototype,"errorMessage",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WF.prototype,"dataChanged",null);_.V([_.An("editorInfo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WF.prototype,"onEditorInfoChange",null);_.V([_.bO("errorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WF.prototype,"observeAddImageError",null);
_.V([_.An("pollOptions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WF.prototype,"onPollOptionsChange",null);_.V([_.U("pollOptions","editorInfo"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WF.prototype,"isAllowedToAddOption",null);_.V([_.U("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WF.prototype,"hasImages",null);
_.V([_.U("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WF.prototype,"imagesToReposition",null);_.V([_.U("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WF.prototype,"hasCustomOptionText",null);_.V([_.U("data","isAllowedToAddOption"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WF.prototype,"addOptionButton",null);_.V([_.U("data","hasImages"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WF.prototype,"repositionImagesButton",null);
_.V([_.gw({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],WF);
_.l(WF,"ytd-backstage-image-poll-editor-renderer",function(){if(DJp!==void 0)return DJp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return DJp=p},{mode:2});var a9m={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 E5L;var Qj=function(){var p=_.T.apply(this,arguments)||this;p.a11yConfig=a9m;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};
_.Q(Qj,_.T);_.R=Qj.prototype;_.R.created=function(){_.ip.requestAvailability()};
_.R.ready=function(){};
_.R.onArrowKeysDown=function(p){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){p.detail.keyboardEvent.preventDefault();var J=0,S=0,H="";switch(p.detail.keyboardEvent.key){case "ArrowUp":w1i(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?H=this.a11yConfig.reachBottomOfImage:J=this.imageHeight*.05*-1;break;case "ArrowDown":w1i(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?H=this.a11yConfig.reachTopOfImage:
J=this.imageHeight*.05;break;case "ArrowLeft":w1i(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?H=this.a11yConfig.reachRightOfImage:S=this.imageWidth*.05*-1;break;case "ArrowRight":w1i(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?H=this.a11yConfig.reachLeftOfImage:S=this.imageWidth*.05}H&&_.Kl(H)&&_.cf(this.hostElement,"iron-announce",{text:_.Kl(H)});if(S||J)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+J)),p=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),p=_.Kl(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+S)),p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),p=_.Kl(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})),p&&_.cf(this.hostElement,"iron-announce",{text:p})}};
_.R.getPreviewPosition=function(p,J,S,H){return Math.round(100*(p+J*.5-S)/H)};
_.R.calculateDisplayPosition=function(){var p=this.imageData.naturalWidth,J=this.imageData.naturalHeight;this.displayScale=Math.max(200/p,200/J);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var S=p*this.displayScale*this.imageData.previewCoordinates.left,H=J*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=J>p?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-S;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=p>J?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-H;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=p*this.displayScale;this.imageHeight=J*this.displayScale};
_.R.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.R.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.R.getSignedPosition=function(p,J,S){return J==="X"&&_.jn("HTML_DIR")==="rtl"?S==="-"?p+"px":p*-1+"px":S==="-"?p*-1+"px":p+"px"};
_.R.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 J=this.pickerOffsetX-p.clientX,S=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-
S)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-J))}};
_.R.pickerMoveStart=function(p){this.startPicker=!0;this.pickerOffsetX=p.clientX;this.pickerOffsetY=p.clientY};
_.R.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var p=this.generateCropPreview();p&&_.cf(this.hostElement,"ytd-backstage-image-preview-coordinates-update",p)};
_.R.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.cf(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.R.deleteImage=function(){_.cf(this.hostElement,"ytd-backstage-image-preview-delete")};
_.R.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.R.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var p=this.generateCropPreview();p&&_.cf(this.hostElement,"ytd-backstage-image-preview-coordinates-save",p)};
_.R.getPreviewOffset=function(p,J,S){return J&&p?(S==="X"&&_.jn("HTML_DIR")==="rtl"?300/J*p:300/J*p*-1)+"px":"0px"};
_.R.getSimpleText=function(p){return p?_.E4(p):""};
_.R.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}};
_.vh.Object.defineProperties(Qj.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 _.Kl(this.a11yConfig.imageVerticalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.Kl(this.a11yConfig.verticalRepositionInstruction)}p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Kl(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.Kl(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,J,S=(p=this.instruction)==null?void 0:(J=p.previewInstruction)==null?void 0:J.editButtonLabel;return S?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H,M=this.editOnlyMode?(p=this.instruction)==null?void 0:(J=p.editInstruction)==null?void 0:J.saveImagesButtonLabel:(S=this.instruction)==null?void 0:(H=S.editInstruction)==null?void 0:H.saveButtonLabel;return M?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:M,accessibilityData:{accessibilityData:{label:this.getSimpleText(M)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var p,J,S=(p=this.instruction)==null?void 0:(J=p.previewInstruction)==null?void 0:J.deleteButtonLabel;return S?{size:"SIZE_SMALL",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var p,J,S=(p=this.instruction)==null?void 0:(J=p.editInstruction)==null?void 0:J.cancelButtonLabel;p=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return S?{style:p,size:"SIZE_SMALL",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}: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"}}});
Qj.prototype.onEditOnlyModeUpdate=Qj.prototype.onEditOnlyModeUpdate;Qj.prototype.onImageChange=Qj.prototype.onImageChange;_.V([_.N(),_.Y("design:type",rtt)],Qj.prototype,"imageData",void 0);_.V([_.N(),_.Y("design:type",Object)],Qj.prototype,"instruction",void 0);_.V([_.N(),_.Y("design:type",Object)],Qj.prototype,"a11yConfig",void 0);_.V([_.N(),_.Y("design:type",Number)],Qj.prototype,"imageWidth",void 0);_.V([_.N(),_.Y("design:type",Number)],Qj.prototype,"imageHeight",void 0);
_.V([_.N(),_.Y("design:type",Number)],Qj.prototype,"displayScale",void 0);_.V([_.N(),_.Y("design:type",Object)],Qj.prototype,"imageDisplayOffsetTop",void 0);_.V([_.N(),_.Y("design:type",Object)],Qj.prototype,"imageDisplayOffsetLeft",void 0);_.V([_.N(),_.Y("design:type",Object)],Qj.prototype,"pickerDisplayOffsetTop",void 0);_.V([_.N(),_.Y("design:type",Object)],Qj.prototype,"pickerDisplayOffsetLeft",void 0);_.V([_.N(),_.Y("design:type",Object)],Qj.prototype,"showPreviewContainer",void 0);
_.V([_.N(),_.Y("design:type",Object)],Qj.prototype,"startPicker",void 0);_.V([_.N(),_.Y("design:type",Number)],Qj.prototype,"pickerOffsetX",void 0);_.V([_.N(),_.Y("design:type",Number)],Qj.prototype,"pickerOffsetY",void 0);_.V([_.N(),_.Y("design:type",Object)],Qj.prototype,"repositionOptional",void 0);_.V([_.N(),_.Y("design:type",Object)],Qj.prototype,"editOnlyMode",void 0);_.V([_.FM("#picker-container"),_.Y("design:type",HTMLElement)],Qj.prototype,"JSC$15946_pickerContainer",void 0);
_.V([_.FM("#picker"),_.Y("design:type",HTMLElement)],Qj.prototype,"picker",void 0);_.V([_.FM("#preview-clipper"),_.Y("design:type",HTMLElement)],Qj.prototype,"previewClipper",void 0);_.V([_.FM("#image-in-picker-background"),_.Y("design:type",HTMLImageElement)],Qj.prototype,"JSC$15946_imageInBackground",void 0);_.V([_.FM("#image-in-picker"),_.Y("design:type",HTMLImageElement)],Qj.prototype,"JSC$15946_imageInPicker",void 0);
_.V([_.FM("#image-in-preview-clipper"),_.Y("design:type",HTMLImageElement)],Qj.prototype,"JSC$15946_imageInPreviewClipper",void 0);_.V([_.U("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Qj.prototype,"altLabelForImage",null);_.V([_.U("imageHeight","imageWidth"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Qj.prototype,"pickerSize",null);
_.V([_.U("imageHeight","imageWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qj.prototype,"imageOrientationStyle",null);_.V([_.U("instruction"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qj.prototype,"editButton",null);_.V([_.U("instruction","editOnlyMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qj.prototype,"saveButton",null);_.V([_.U("instruction"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qj.prototype,"deleteButton",null);
_.V([_.U("instruction","editOnlyMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qj.prototype,"cancelButton",null);_.V([_.U("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Qj.prototype,"cropOffsetTop",null);_.V([_.U("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Qj.prototype,"cropOffsetLeft",null);
_.V([_.U("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Qj.prototype,"pickerBackgroundStyle",null);_.V([_.U("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Qj.prototype,"pickerDisplayStyle",null);_.V([_.U("cropOffsetLeft","cropOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Qj.prototype,"imageInPickerStyle",null);
_.V([_.U("cropOffsetLeft","cropOffsetTop","pickerSize"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Qj.prototype,"previewClipperStyle",null);_.V([_.An("imageData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qj.prototype,"onImageChange",null);_.V([_.An("editOnlyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qj.prototype,"onEditOnlyModeUpdate",null);
_.V([_.U("showPreviewContainer"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Qj.prototype,"pickerModeStyle",null);_.V([_.gw({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Qj);
_.l(Qj,"ytd-backstage-image-preview-renderer",function(){if(E5L!==void 0)return E5L;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return E5L=p},{mode:1});var Ycq;var rIq={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 jc8;var weL;var Cf=function(){var p=_.T.apply(this,arguments)||this;p.a11yConfig=rIq;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};
_.Q(Cf,_.T);_.R=Cf.prototype;_.R.created=function(){_.ip.requestAvailability()};
_.R.ready=function(){};
_.R.onArrowKeysDown=function(p){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){p.detail.keyboardEvent.preventDefault();var J=0,S=0,H="";switch(p.detail.keyboardEvent.key){case "ArrowUp":xK3(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?H=this.a11yConfig.reachBottomOfImage:J=this.imageHeight*.05*-1;break;case "ArrowDown":xK3(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?H=this.a11yConfig.reachTopOfImage:
J=this.imageHeight*.05;break;case "ArrowLeft":xK3(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?H=this.a11yConfig.reachRightOfImage:S=this.imageWidth*.05*-1;break;case "ArrowRight":xK3(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?H=this.a11yConfig.reachLeftOfImage:S=this.imageWidth*.05}H&&_.Kl(H)&&_.cf(this.hostElement,"iron-announce",{text:_.Kl(H)});if(S||J)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+J)),p=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),p=_.Kl(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+S)),p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),p=_.Kl(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})),p&&_.cf(this.hostElement,"iron-announce",{text:p})}};
_.R.getPreviewPosition=function(p,J,S,H){return Math.round(100*(p+J*.5-S)/H)};
_.R.displayImage=function(){var p=this.JSC$15957_pickerContainer.getBoundingClientRect().width,J=this.JSC$15957_pickerContainer.getBoundingClientRect().height,S=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),H=this.JSC$15957_imageInBackground.naturalWidth,M=this.JSC$15957_imageInBackground.naturalHeight;this.displayScale=Math.max(S/H,S/M);this.imageWidth=H*this.displayScale;this.imageHeight=M*this.displayScale;this.pickerDisplayOffsetLeft=(p-S)/2;this.pickerDisplayOffsetTop=
(J-S)/2;this.imageDisplayOffsetLeft=M>H?this.pickerDisplayOffsetLeft:(p-this.imageWidth)/2;this.imageDisplayOffsetTop=H>M?this.pickerDisplayOffsetTop:(J-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.R.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15957_imageInBackground.src=this.imageData.toString(),this.JSC$15957_imageInPicker.src=this.imageData.toString(),this.JSC$15957_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.R.getSignedPosition=function(p,J,S){return J==="X"&&_.jn("HTML_DIR")==="rtl"?S==="-"?p+"px":p*-1+"px":S==="-"?p*-1+"px":p+"px"};
_.R.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 J=this.pickerOffsetX-p.clientX,S=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-
S)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-J))}};
_.R.pickerMoveStart=function(p){this.startPicker=!0;this.pickerOffsetX=p.clientX;this.pickerOffsetY=p.clientY};
_.R.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.R.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.cf(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.R.getPreviewOffset=function(p,J,S,H){return J&&p&&S?(H==="X"&&_.jn("HTML_DIR")==="rtl"?S/J*p:S/J*p*-1)+"px":"0px"};
_.R.getSimpleText=function(p){return p?_.E4(p):""};
_.R.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var p=this.cropOffsetTop/this.imageHeight,J=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,S=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,H=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Jn(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.cf(this.hostElement,"yt-img-crop-coordinates-update",{top:p,right:J,bottom:S,left:H})}};
_.vh.Object.defineProperties(Cf.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 _.Kl(this.a11yConfig.imageVerticalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.Kl(this.a11yConfig.verticalRepositionInstruction)}p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Kl(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.Kl(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,J=(p=this.learnMore.runs[0])==null?void 0:p.navigationEndpoint,S;return((S=_.e(J,_.My))==null?void 0:S.url)||void 0}}}});
Cf.prototype.onImageDataChange=Cf.prototype.onImageDataChange;_.V([_.N(),_.Y("design:type",Object)],Cf.prototype,"imageData",void 0);_.V([_.N(),_.Y("design:type",Object)],Cf.prototype,"instruction",void 0);_.V([_.N(),_.Y("design:type",Object)],Cf.prototype,"a11yConfig",void 0);_.V([_.N(),_.Y("design:type",Number)],Cf.prototype,"imageWidth",void 0);_.V([_.N(),_.Y("design:type",Number)],Cf.prototype,"imageHeight",void 0);_.V([_.N(),_.Y("design:type",Number)],Cf.prototype,"displayScale",void 0);
_.V([_.N(),_.Y("design:type",Object)],Cf.prototype,"imageDisplayOffsetTop",void 0);_.V([_.N(),_.Y("design:type",Object)],Cf.prototype,"imageDisplayOffsetLeft",void 0);_.V([_.N(),_.Y("design:type",Object)],Cf.prototype,"pickerDisplayOffsetTop",void 0);_.V([_.N(),_.Y("design:type",Object)],Cf.prototype,"pickerDisplayOffsetLeft",void 0);_.V([_.N(),_.Y("design:type",Object)],Cf.prototype,"cropCoordinatesSaved",void 0);_.V([_.N(),_.Y("design:type",Object)],Cf.prototype,"previewSize",void 0);
_.V([_.N(),_.Y("design:type",Object)],Cf.prototype,"startPicker",void 0);_.V([_.N(),_.Y("design:type",Number)],Cf.prototype,"pickerOffsetX",void 0);_.V([_.N(),_.Y("design:type",Number)],Cf.prototype,"pickerOffsetY",void 0);_.V([_.N(),_.Y("design:type",Object)],Cf.prototype,"repositionOptional",void 0);_.V([_.FM("#picker-container"),_.Y("design:type",HTMLElement)],Cf.prototype,"JSC$15957_pickerContainer",void 0);_.V([_.FM("#picker"),_.Y("design:type",HTMLElement)],Cf.prototype,"picker",void 0);
_.V([_.FM("#image-in-picker-background"),_.Y("design:type",HTMLImageElement)],Cf.prototype,"JSC$15957_imageInBackground",void 0);_.V([_.FM("#image-in-picker"),_.Y("design:type",HTMLImageElement)],Cf.prototype,"JSC$15957_imageInPicker",void 0);_.V([_.FM("#image-in-preview-clipper"),_.Y("design:type",HTMLImageElement)],Cf.prototype,"JSC$15957_imageInPreviewClipper",void 0);_.V([_.FM("#full-image-as-preview"),_.Y("design:type",HTMLImageElement)],Cf.prototype,"imageAsPreview",void 0);
_.V([_.U("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Cf.prototype,"altLabelForImage",null);_.V([_.U("imageHeight","imageWidth"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Cf.prototype,"pickerSize",null);_.V([_.U("imageHeight","imageWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cf.prototype,"imageOrientationStyle",null);
_.V([_.U("instruction.previewInstruction.editButtonLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cf.prototype,"editButton",null);_.V([_.U("instruction.editInstruction.saveButtonLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cf.prototype,"saveButton",null);_.V([_.U("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Cf.prototype,"cropOffsetTop",null);
_.V([_.U("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Cf.prototype,"cropOffsetLeft",null);_.V([_.U("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Cf.prototype,"pickerBackgroundStyle",null);_.V([_.U("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Cf.prototype,"pickerDisplayStyle",null);
_.V([_.U("cropOffsetLeft","cropOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Cf.prototype,"imageInPickerStyle",null);_.V([_.U("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Cf.prototype,"previewClipperStyle",null);_.V([_.bO("imageData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cf.prototype,"onImageDataChange",null);
_.V([_.U("cropCoordinatesSaved"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Cf.prototype,"pickerModeStyle",null);_.V([_.U("instruction.editInstruction.learnMore"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cf.prototype,"learnMore",null);_.V([_.U("learnMore"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cf.prototype,"learnMoreUrl",null);_.V([_.sD({is:"yt-img-crop-picker",disableElementRegistration:!0})],Cf);
_.l(Cf,"yt-img-crop-picker",function(){if(weL===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;jc8===void 0&&(jc8=document.createElement("template"));var H=jc8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);weL=p}p=weL;return p},{mode:2});var yj=function(){var p=_.T.apply(this,arguments)||this;p.errorMessage="";p.hasPreview=!1;p.isBackstagePost=!1;p.dismissButtonOverrides={size:"XS"};return p};
_.Q(yj,_.T);_.R=yj.prototype;_.R.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"}}}};
_.R.detached=function(){this.removeOverlay()};
_.R.setPreview=function(p){_.Jn(this.hostElement).querySelector("#preview-picker").imageData=p;this.hasPreview=!0;_.cf(this.hostElement,"yt-backstage-image-select-preview")};
_.R.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var p=_.Jn(this.hostElement).querySelector("#dropzone");p.classList.remove("dragover");p.classList.remove("error");_.cf(this.hostElement,"yt-backstage-image-select-cancel")};
_.R.setupOverlay=function(){var p=this.imageUploadEndpoint;this.removeOverlay();if(p&&p.imageValidationInfo){var J=_.Jn(this.hostElement).querySelector("#dropzone"),S=_.Jn(this.hostElement).querySelector("#select");this.overlay=new Wm(p.uploadUrl,p.channelId,p.imageValidationInfo.maxFileSizeMb,p.imageValidationInfo.allowedMaxAspectRatio,J,S,!0);_.z$(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.z$(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.z$(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.z$(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.z$(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.R.removeOverlay=function(){this.overlay&&(_.gx(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.gx(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.gx(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.gx(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.gx(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.R.onDragOver=function(p){var J=_.Jn(this.hostElement).querySelector("#dropzone");_.XM(J,"dragover",p.value)};
_.R.onPreview=function(p){this.setPreview(p.value)};
_.R.onImageError=function(p){if(p.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var J;p=(J=this.data)==null?void 0:J.fileSizeError}else if(p.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var S;p=(S=this.data)==null?void 0:S.invalidError}else if(p.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var H;p=(H=this.data)==null?void 0:H.invalidAspectRatioError}else return;this.errorMessage=_.E4(p);_.Jn(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.R.onImageAlert=function(p){this.onImageError(p)};
_.R.uploadPromise=function(){var p=this,J=this.overlay&&this.overlay.uploadPromise();if(J)return J.catch(function(){throw Error(p.data?_.E4(p.data.uploadFailureError):"");})};
_.vh.Object.defineProperties(yj.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,J;if((p=this.data)==null?0:(J=p.icon)==null?0:J.iconType)return _.Xj(this.data.icon.iconType)}}});
yj.prototype.setupOverlay=yj.prototype.setupOverlay;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],yj.prototype,"rendererStamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yj.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],yj.prototype,"imageUploadEndpoint",void 0);_.V([_.N(),_.Y("design:type",Object)],yj.prototype,"errorMessage",void 0);
_.V([_.N(),_.Y("design:type",Wm)],yj.prototype,"overlay",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yj.prototype,"hasPreview",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yj.prototype,"isBackstagePost",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yj.prototype,"selectionCancel",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yj.prototype,"previewCancel",null);
_.V([_.U("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yj.prototype,"icon",null);_.V([_.N(),_.Y("design:type",Object)],yj.prototype,"dismissButtonOverrides",void 0);_.V([_.bO("imageUploadEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yj.prototype,"setupOverlay",null);_.V([_.gw({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],yj);
_.l(yj,"ytd-backstage-image-select-renderer",function(){if(Ycq!==void 0)return Ycq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Ycq=p},{mode:1});var xJo;var cIv;var BF=function(){var p=_.T.apply(this,arguments)||this;p.selected=!1;return p};
_.Q(BF,_.T);_.R=BF.prototype;_.R.computeSelected=function(p){return p==null?void 0:p.selected};
_.R.computeTransform=function(p,J,S){var H,M,X=(M=(H=this.imageContainer)==null?void 0:H.getBoundingClientRect())!=null?M:{width:0,height:0};H=Math.max(X.width/J,X.height/S);S=S*H*p.top;return"translateX("+this.getSignedPosition(J*H*p.left,"X","-")+") translateY("+this.getSignedPosition(S,"Y","-")+")"};
_.R.getSignedPosition=function(p,J,S){return J==="X"&&_.jn("HTML_DIR")==="rtl"?S==="-"?p+"px":p*-1+"px":S==="-"?p*-1+"px":p+"px"};
_.R.onClick=function(){var p;_.cf(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(p=this.data)==null?void 0:p.image)};
_.R.onKeyPress=function(p){if(p.keyCode===13)this.onClick()};
_.vh.Object.defineProperties(BF.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?void 0:(J=p.image)==null?void 0:J.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)!=null&&p.image){var J;p=(J=this.data)==null?void 0:J.image;return p.previewCoordinates.top!==0||p.previewCoordinates.left!==0?(J=this.computeTransform(p.previewCoordinates,p.naturalWidth,p.naturalHeight),p.naturalHeight>=p.naturalWidth?"width:inherit;transform:"+J+";":"height:inherit;transform:"+J+";"):p.naturalHeight>=p.naturalWidth?"width:inherit;":"height:inherit;"}}}});
BF.prototype.onKeyPress=BF.prototype.onKeyPress;_.V([_.FM(".image-container"),_.Y("design:type",HTMLElement)],BF.prototype,"imageContainer",void 0);_.V([_.N(),_.Y("design:type",Object)],BF.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.Y("design:type",Object)],BF.prototype,"selected",void 0);_.V([_.U("data.image"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BF.prototype,"thumbnailUrl",null);
_.V([_.U("data.image","data.image.previewCoordinates"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BF.prototype,"thumbnailStyle",null);_.V([_.GI("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],BF.prototype,"onKeyPress",null);_.V([_.gw({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],BF);
_.l(BF,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(cIv!==void 0)return cIv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return cIv=p},{mode:2});var Uo=function(p,J,S){S=S===void 0?!1:S;_.te.call(this);var H=this;this.dropZoneOverlay=new gB(p);this.selectOverlay=S?new ta(J,"multiple_file",["image/*"]):new ta(J,"single_file",["image/*"]);this.handler=new _.oC(this);_.$c(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(J,"click",function(){H.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.Q(Uo,_.te);Uo.prototype.onChange=function(p){var J;(J=p.files)!=null&&J.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:p.files}))};var so=function(){var p=_.T.apply(this,arguments)||this;p.addImageErrorMessage="";p.errorMessage="";p.images=[];p.selectedImageIndex=0;p.modern=_.z("web_modern_buttons");p.maxNumImagesPerPost=_.PO("max_num_images_per_post_web_ui");p.JSC$15972_imageId=0;return p};
_.Q(so,_.T);_.R=so.prototype;_.R.created=function(){var p=this;this.JSC$15972_ytReorderableController=new _.m24(100,function(J){p.handleDrop(J)})};
_.R.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.cf(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.R.observeDragToReorder=function(){var p=this;if(this.showImagesPreview){var J,S=$p8(_.NZ.getInstance(),(J=this.data)==null?void 0:J.dragToReorderTooltip);_.wg.addLowPriorityJob(function(){_.JP(p.hostElement,S,p.thumbnailDragDropArea)})}};
_.R.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}}};
_.R.computeThumbnail=function(p){return(p==null?void 0:p.localImageSrc)||void 0};
_.R.onRendererstamperFinished=function(){_.FqM(this.JSC$15972_ytReorderableController,_.Jn(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Jn(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.R.handleDrop=function(p){var J=p.currDragItem;if(J!=null&&J.data){p=this.images[this.selectedImageIndex];var S=J.data.image,H=this.images.indexOf(S)||0;J=_.ks(J.parentNode.children,J);this.images.splice(H,1);this.images.splice(J,0,S);this.images=[].concat(_.dW(this.images));this.selectedImageIndex=this.images.indexOf(p)}};
_.R.setUpImagePicker=function(){var p=this.imageUploadEndpoint;p&&p.imageValidationInfo&&(this.uploadManager=new ef(p.uploadUrl,p.channelId),this.initialPicker||(this.initialPicker=new Uo(this.dropzone,this.selectLink,!0),_.z$(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Uo(this.addImageButtonContainer,this.addImageSelectButton),_.z$(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.z$(this.JSC$15972_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.z$(this.JSC$15972_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.z$(_.Jn(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.R.detached=function(){this.initialPicker&&(_.gx(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.gx(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.Et(this.JSC$15972_ytReorderableController)};
_.R.onInitialSelectImages=function(p){var J=this;return _.G(function(S){return S.yield(J.onSelectImages(p,!1),0)})};
_.R.onAddImage=function(p){var J=this;return _.G(function(S){return S.yield(J.onSelectImages(p,!0),0)})};
_.R.onSelectImages=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w;return _.G(function(I){switch(I.nextAddress){case 1:J?S.addImageErrorMessage="":(S.images=[],S.errorMessage="");H=p.detail;M=S.validateImages([].concat(_.dW(H)));if(M!=="")return J?S.addImageErrorMessage=M:S.errorMessage=M,I.return();X=[].concat(_.dW(H)).map(function(Z3){return(new ol(S.maxAspectRatio,!1,!0)).transform(Z3)});
return I.yield(Promise.allSettled(X),2);case 2:Z=I.yieldResult,n=_.K(Z.entries()),b=n.next();case 3:if(b.done){I.jumpTo(5);break}F=b.value;f=_.K(F);O=f.next().value;A=f.next().value;P=O;W=A;if(W.status!=="fulfilled"){D=t=y=void 0;J?S.addImageErrorMessage=_.E4((y=S.data)==null?void 0:y.invalidError):S.errorMessage=S.errorMessage===""?_.E4((t=S.data)==null?void 0:t.invalidError):_.E4((D=S.data)==null?void 0:D.multiFileError);I.jumpTo(4);break}k=W.value;k.cropped&&_.cf(S.hostElement,"yt-backstage-multi-image-cropped");
if(k.invalidAspectRatio){q=a=E=void 0;J?S.addImageErrorMessage=_.E4((E=S.data)==null?void 0:E.invalidAspectRatioError):S.errorMessage=S.errorMessage===""?_.E4((a=S.data)==null?void 0:a.invalidAspectRatioError):_.E4((q=S.data)==null?void 0:q.multiFileError);I.jumpTo(4);break}return I.yield(jnk(S.JSC$15972_imageId,p.detail[P],k.transformedData),8);case 8:w=I.yieldResult,S.images.push(w),S.JSC$15972_imageId++;case 4:b=n.next();I.jumpTo(3);break;case 5:if(S.errorMessage!==""||S.addImageErrorMessage!==
"")return I.return();J?TDq(S.uploadManager,[S.images[S.images.length-1]]):TDq(S.uploadManager,S.images);S.images=[].concat(_.dW(S.images));S.selectedImageIndex=J?Math.max(S.images.length-1,0):0;_.cf(S.hostElement,"yt-backstage-multi-image-select");_.UK(I)}})};
_.R.onThumbnailClick=function(p){if(p=p.event_.detail)this.selectedImageIndex=this.images.indexOf(p)};
_.R.validateImages=function(p){if(p.length>this.maxNumImagesPerPost){var J;return _.E4((J=this.data)==null?void 0:J.multiImageExceedMaxImageCountError)}var S=1048576*this.maxFileSizeMb;p=p.filter(function(X){return X.size>S}).length;
if(p===0)return"";var H,M;p=p>1?(H=this.data)==null?void 0:H.multiFileError:(M=this.data)==null?void 0:M.fileSizeError;return _.E4(p)};
_.R.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.dW(this.images));this.selectedImageIndex=0};
_.R.repositionImage=function(p){this.images[this.selectedImageIndex].previewCoordinates=p.event_.detail;this.images=[].concat(_.dW(this.images))};
_.R.getAllUploadStatuses=function(){var p=this,J,S,H,M;return _.G(function(X){if(X.nextAddress==1)return X.yield(p.uploadManager.getAllUploadStatuses(),2);J=X.yieldResult;S=_.K(J);for(H=S.next();!H.done;H=S.next())if(M=H.value,M.encryptedBlobId===void 0)return X.return(dJL(p.uploadManager));return X.return(J)})};
_.R.hasImages=function(){return this.images.length>0};
_.R.cancel=function(){for(var p=this.uploadManager,J=_.K(p.imagesUploadData),S=J.next();!S.done;S=J.next())p.cancel(S.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.cf(this.hostElement,"yt-backstage-multi-image-cancel")};
_.vh.Object.defineProperties(so.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.imageUploadEndpoint)==null?void 0:(J=p.imageValidationInfo)==null?void 0:J.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.imageUploadEndpoint)==null?void 0:(J=p.imageValidationInfo)==null?void 0:J.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var p,J;if((p=this.data)==null?0:(J=p.icon)==null?0:J.iconType)return _.Xj(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>=this.maxNumImagesPerPost}},
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(J,S){return{renderer:{image:J,selected:S===p.selectedImageIndex}}})}}});
so.prototype.setUpImagePicker=so.prototype.setUpImagePicker;so.prototype.onRendererstamperFinished=so.prototype.onRendererstamperFinished;so.prototype.observeDragToReorder=so.prototype.observeDragToReorder;so.prototype.observeAddImageError=so.prototype.observeAddImageError;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],so.prototype,"rendererStamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);
_.V([_.FM("#dropzone"),_.Y("design:type",HTMLElement)],so.prototype,"dropzone",void 0);_.V([_.FM("#select-link"),_.Y("design:type",HTMLElement)],so.prototype,"selectLink",void 0);_.V([_.FM("#thumbnail-drag-drop-area"),_.Y("design:type",HTMLElement)],so.prototype,"thumbnailDragDropArea",void 0);_.V([_.FM("#add-image-button-container"),_.Y("design:type",HTMLElement)],so.prototype,"addImageButtonContainer",void 0);
_.V([_.FM("#add-image-button"),_.Y("design:type",HTMLElement)],so.prototype,"addImageSelectButton",void 0);_.V([_.FM("#image-preview-container"),_.Y("design:type",Object)],so.prototype,"JSC$15972_imagePreviewContainer",void 0);_.V([_.N(),_.Y("design:type",Object)],so.prototype,"addImageErrorMessage",void 0);_.V([_.N(),_.Y("design:type",Object)],so.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],so.prototype,"errorMessage",void 0);
_.V([_.N(),_.Y("design:type",Object)],so.prototype,"imageUploadEndpoint",void 0);_.V([_.N(),_.Y("design:type",Array)],so.prototype,"images",void 0);_.V([_.N(),_.Y("design:type",Uo)],so.prototype,"initialPicker",void 0);_.V([_.N(),_.Y("design:type",Uo)],so.prototype,"addImagePicker",void 0);_.V([_.N(),_.Y("design:type",ef)],so.prototype,"uploadManager",void 0);_.V([_.N(),_.Y("design:type",Object)],so.prototype,"selectedImageIndex",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],so.prototype,"modern",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],so.prototype,"maxNumImagesPerPost",void 0);_.V([_.U("imageUploadEndpoint"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],so.prototype,"maxAspectRatio",null);_.V([_.U("imageUploadEndpoint"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],so.prototype,"maxFileSizeMb",null);
_.V([_.U("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],so.prototype,"dropIcon",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],so.prototype,"selectionCancel",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],so.prototype,"previewCancel",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],so.prototype,"dataForAddImageButton",null);
_.V([_.U("errorMessage"),_.Y("design:type",String),_.Y("design:paramtypes",[])],so.prototype,"dropzoneClass",null);_.V([_.U("images"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],so.prototype,"showImagesPreview",null);_.V([_.U("images"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],so.prototype,"containMaxImages",null);_.V([_.bO("addImageErrorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],so.prototype,"observeAddImageError",null);
_.V([_.bO("showImagesPreview"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],so.prototype,"observeDragToReorder",null);_.V([_.U("images","selectedImageIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],so.prototype,"selectedImageData",null);_.V([_.U("images","selectedImageIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],so.prototype,"thumbnailRenderers",null);
_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],so.prototype,"onRendererstamperFinished",null);_.V([_.bO("imageUploadEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],so.prototype,"setUpImagePicker",null);_.V([_.gw({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],so);
_.l(so,"ytd-backstage-multi-image-select-renderer",function(){if(xJo!==void 0)return xJo;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return xJo=p},{mode:1});var I9U;var LSq;var pTn;var gi=function(){var p=_.T.apply(this,arguments)||this;p.boundCaptureFocus=function(J){p.onCaptureFocus(J)};
return p};
_.Q(gi,_.T);_.R=gi.prototype;_.R.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.R.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.R.onCaptureFocus=function(p){_.Er(p).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.R.getIconType=function(p){return p?"yt-icons:"+p.toLowerCase():null};
_.R.onSelect=function(){var p;if((p=this.data)==null?0:p.onSelectCommand)if(_.z("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var J;((J=_.e(this.data.onSelectCommand.commandMetadata,_.i7))==null?0:J.url)?_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.vO().resolve(_.Ov).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.vh.Object.defineProperties(gi.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.E4(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}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],gi.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],gi.prototype,"data",void 0);_.V([_.FM("#item"),_.Y("design:type",HTMLElement)],gi.prototype,"item",void 0);_.V([_.U("data.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],gi.prototype,"label",null);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gi.prototype,"value",null);_.V([_.gw({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],gi);
_.l(gi,"ytd-privacy-dropdown-item-renderer",function(){if(pTn!==void 0)return pTn;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return pTn=p},{mode:1});var tA=function(){var p=_.T.apply(this,arguments)||this;p.value="";p.label="";p.disabled=!1;return p};
_.Q(tA,_.T);_.R=tA.prototype;_.R.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"}}}};
_.R.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.R.dataChanged=function(){this.reset()};
_.R.valueChanged=function(){var p;if(this.value&&(p=this.data)!=null&&p.entries){p=_.K(this.data.entries);for(var J=p.next();!J.done;J=p.next())if((J=this.getRendererForEntry(J.value))&&this.getItemRendererValue(J)===this.value){this.label=this.ytComponentBehavior.getSimpleString(J.label);break}}};
_.R.setInitialLabel=function(){if(this.data&&this.data.entries)for(var p=_.K(this.data.entries),J=p.next();!J.done;J=p.next())if(J=this.getRendererForEntry(J.value)){if(J.isSelected){this.label=this.ytComponentBehavior.getSimpleString(J.label);break}this.data.label&&(this.label=this.data.label)}};
_.R.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var p=_.K(this.data.entries),J=p.next();!J.done;J=p.next()){J=this.getRendererForEntry(J.value);var S=void 0;if((S=J)==null?0:S.isSelected)return this.getItemRendererValue(J)||-1}return-1};
_.R.getItemRendererValue=function(p){return"stringValue"in p||"int32Value"in p?p.stringValue||p.int32Value||null:null};
_.R.getRendererForEntry=function(p){return p.dropdownItemRenderer||p.privacyDropdownItemRenderer||p.navigationDropdownItemRenderer||null};
_.R.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("value-changed",this.value))};
_.R.updateValueFromBinding=function(p){this.value=p.detail.value};
tA.prototype.valueChangedForBinding=tA.prototype.valueChangedForBinding;tA.prototype.valueChanged=tA.prototype.valueChanged;tA.prototype.dataChanged=tA.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],tA.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],tA.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],tA.prototype,"value",void 0);_.V([_.N(),_.Y("design:type",Object)],tA.prototype,"label",void 0);_.V([_.FM("#entries"),_.Y("design:type",Object)],tA.prototype,"entries",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"disabled",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"dataChanged",null);
_.V([_.An("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"valueChanged",null);_.V([_.bO("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"valueChangedForBinding",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],tA);
_.l(tA,"ytd-flat-dropdown-renderer",function(){if(LSq!==void 0)return LSq;var p=document.createElement("template");_.C(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="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return LSq=p},{mode:1});var Jgp;var hA=function(){var p=_.T.apply(this,arguments)||this;p.quizOptions=[];p.explanationPlaceholderText="";p.optionPlaceholderText="";p.correctAnswerIndex=-1;p.isMarkAnswerTooltipShown=!1;p.timer=0;return p};
_.Q(hA,_.T);_.R=hA.prototype;_.R.dataChanged=function(){this.optionPlaceholderText=_.E4(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.E4(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.R.onMarkCorrectAnswer=function(p){var J,S=((J=this.quizOptions[this.correctAnswerIndex])==null?void 0:J.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:S,isCorrect:!0});this.correctAnswerIndex=p.model.index;this.quizOptions=[].concat(_.dW(this.quizOptions))};
_.R.updatePlaceholderTexts=function(){for(var p=!1,J=[],S=0;S<this.quizOptions.length;S++){var H=this.optionPlaceholderText+" "+(S+1),M=void 0;((M=this.quizOptions[S])==null?void 0:M.placeholderText)!==H?(p=!0,J.push(Object.assign({},this.quizOptions[S],{placeholderText:H}))):J.push(this.quizOptions[S])}p&&(this.quizOptions=J);this.isValid()?_.cf(this.hostElement,"yt-commentbox-post-enable"):_.cf(this.hostElement,"yt-commentbox-post-disable")};
_.R.getSimpleString=function(p){return _.E4(p)};
_.R.createQuizOptions=function(p){var J=[],S;p=(S=p==null?void 0:p.minQuizOptions)!=null?S:0;for(S=0;S<p;S++)J.push(this.createQuizOption());return J};
_.R.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.dW(this.quizOptions),[this.createQuizOption()]))};
_.R.onInput=function(){this.quizOptions=[].concat(_.dW(this.quizOptions))};
_.R.onExplanationInput=function(){_.cf(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.R.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(_.dW(this.quizOptions));this.quizOptions.length===0&&_.cf(this.hostElement,"yt-quiz-attachment-dismiss")};
_.R.updateHintRenderer=function(){var p=this;clearTimeout(this.timer);this.timer=setTimeout(function(){p.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.R.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,J=0,S=_.K(this.quizOptions),H=S.next();!H.done;H=S.next()){H=H.value;var M=void 0;if(((M=H.optionText)==null?void 0:M.trim())!==""||H.isCorrect){H.isCorrect&&J++;M=void 0;if(this.hasCustomOptionText&&((M=H.optionText)==null?void 0:M.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;p++}}return p>=
Number(this.editorInfo.minQuizOptions)&&J===1};
_.R.getPostCreateOptions=function(){for(var p=[],J=_.K(this.quizOptions),S=J.next();!S.done;S=J.next()){S=S.value;var H=void 0;((H=S.optionText)==null?void 0:H.trim())!==""&&p.push({pollOption:{text:S.optionText,explanation:S.explanationText},isCorrect:S.isCorrect})}return p};
_.R.getExplanationText=function(){var p;return((p=this.quizOptions[this.correctAnswerIndex])==null?void 0:p.explanationText)||""};
_.R.maybeDisplayMarkAnswerEduToolTip=function(){var p,J,S,H,M,X,Z;this.shouldShowMarkAnswerTooltip()&&((p=this.editorInfo)==null?0:(J=p.markAnswerButton)==null?0:(S=J.buttonRenderer)==null?0:(H=S.hint)==null?0:(M=H.hintRenderer)==null?0:(X=M.content)==null?0:(Z=X.bubbleHintRenderer)==null?0:Z.text)&&(_.NZ.getInstance(),p=Tk(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&&_.KI(p[0],this.optionSelectors[0]))};
_.R.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var p=0,J=_.K(this.quizOptions),S=J.next();!S.done;S=J.next()){S=S.value;var H=void 0;((H=S.optionText)==null?void 0:H.trim())!==""&&p++;if(S.isCorrect)return!1}return p<2?!1:!0};
_.R.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.R.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.R.updateOptionTextFromBinding=function(p){if(p.target){var J=Array.from(_.Jn(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(p.target);if(J>=0){var S;this.quizOptions[J].optionText=(S=p.detail.value)!=null?S:""}}};
_.vh.Object.defineProperties(hA.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var p,J,S=(p=this.editorInfo)==null?void 0:(J=p.addOptionButton)==null?void 0:J.buttonRenderer;S&&(S.style="STYLE_SUGGESTIVE",S.size="SIZE_SMALL",S.isDisabled=!this.isAllowedToAddOption);return(S==null?0:S.text)?S:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var p,J;return this.quizOptions.length<((J=(p=this.editorInfo)==null?void 0:p.maxQuizOptions)!=null?J:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(p){var J;return(J=p.optionText)==null?void 0:J.trim()})}}});
hA.prototype.updatePlaceholderTexts=hA.prototype.updatePlaceholderTexts;hA.prototype.dataChanged=hA.prototype.dataChanged;_.V([_.N(),_.Y("design:type",Object)],hA.prototype,"editorInfo",void 0);_.V([_.N(),_.Y("design:type",Array)],hA.prototype,"quizOptions",void 0);_.V([_.N(),_.Y("design:type",Object)],hA.prototype,"explanationPlaceholderText",void 0);_.V([_.v6(".option-selector-button"),_.Y("design:type",Array)],hA.prototype,"optionSelectors",void 0);
_.V([_.An("editorInfo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hA.prototype,"dataChanged",null);_.V([_.U("editorInfo","isAllowedToAddOption","quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hA.prototype,"addAnswerButton",null);_.V([_.U("editorInfo","quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hA.prototype,"isAllowedToAddOption",null);
_.V([_.An("quizOptions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hA.prototype,"updatePlaceholderTexts",null);_.V([_.U("quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hA.prototype,"hasCustomOptionText",null);_.V([_.gw({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],hA);
_.l(hA,"ytd-backstage-quiz-editor-renderer",function(){if(Jgp!==void 0)return Jgp;var p=document.createElement("template");_.C(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-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return Jgp=p},{mode:2});var SmM;var Hxm=(Gs.FIRSTDAYOFWEEK+1)%7;var M48;var XTU=[],ixm=0,Ren=0;ixm=0;Ren=24;if(.25*(Ren-ixm)<0)M48=[];else{for(var KDq=ixm;KDq<Ren;KDq+=.25)XTU.push(KDq);M48=XTU}var Zxv=M48.map(function(p){p=p*60*60;return{secondsSinceMidnight:p,text:(new qw(7)).format(new Date(0,0,0,0,0,p))}});var nMp;var DS=function(){var p=_.T.apply(this,arguments)||this;p.skipNextOpenDialog=!1;p.errorMessage="";p.previousMonthLabel=_.Kl("PREVIOUS_MONTH_LABEL");p.nextMonthLabel=_.Kl("NEXT_MONTH_LABEL");return p};
_.Q(DS,_.T);_.R=DS.prototype;_.R.attached=function(){var p=this,J=new MutationObserver(function(){p.JSC$16014_calendarMain.scrollHeight>0&&(J.disconnect(),p.calendarConfig&&p.calendarConfig.selectedDate&&p.scrollToDate())});
J.observe(this.JSC$16014_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){J.disconnect()},1E3)};
_.R.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.R.onDateTextChange=function(){if(this.calendarConfig){var p=this.validateDateText();p.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(p.details)):this.textbox.setAttribute("invalid","")}};
_.R.handleDayClick=function(p){p.model.day.date&&(this.commitDate(p.model.day.date),this.dialog.close())};
_.R.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var p=XXX(this.calendarConfig.selectedDate,this.renderData);p!==void 0&&this.JSC$16014_calendarMain.scrollToIndex(p)}};
_.R.scrollToNextMonth=function(){this.JSC$16014_calendarMain.scrollToIndex(this.JSC$16014_calendarMain.firstVisibleIndex+1)};
_.R.scrollToPrevMonth=function(){this.JSC$16014_calendarMain.firstVisibleIndex===0&&this.JSC$16014_calendarMain.scrollTo(0,0);this.JSC$16014_calendarMain.scrollToIndex(this.JSC$16014_calendarMain.firstVisibleIndex-1)};
_.R.onFormSubmit=function(p){p.preventDefault();this.calendarConfig&&(p=this.validateDateText(),p.isValid&&(this.commitDate(p.details),this.dialog.close()))};
_.R.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 J=0;J<this.dropdownButton.children.length;J++)this.dropdownButton.children[J]===p&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}p=this.textbox.value!==this.dateText;J=this.validateDateText();p&&J.isValid&&this.commitDate(J.details);this.dialog.close();this.textbox.value=
this.dateText};
_.R.commitDate=function(p){this.calendarConfig&&(this.set("calendarConfig.selectedDate",p),_.cf(this.hostElement,"ytd-calendar-date-selected",p))};
_.R.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var p=this.textbox.value;var J=new Date;p=(new WPv(2)).parse(p,J,{validate:!0})===p.length?H4L(J):void 0;if(!p)return this.errorMessage=_.Kl("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};J=this.calendarConfig.start;var S=this.calendarConfig.end;if(ICX(p,J))return this.errorMessage=_.Kl("ENTER_DATE_OR_LATER",{allowed_date:S_g(J)}),{isValid:!1,details:void 0};if(ICX(S,p))return this.errorMessage=
_.Kl("ENTER_DATE_OR_EARLIER",{allowed_date:S_g(S)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:p}};
_.vh.Object.defineProperties(DS.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?S_g(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var p=this.calendarConfig,J=[],S=0;S<7;S++)J.push(Gs.NARROWWEEKDAYS[(S+Hxm)%7]);S=[];for(var H=new Date(p.start.year,p.start.month);H.getFullYear()<p.end.year||H.getFullYear()===p.end.year&&H.getMonth()<=p.end.month;){var M=S,X=M.push,Z=H.getFullYear(),n=H.getMonth(),b=p,F=void 0,f=[],O=Object.freeze({extraCssClass:"invisible",debugClass:""}),A=new Date(Z,n),P=H4L(A);A=A.getDay();for(var W=H4L(new Date);P.month===
n;){A!==Hxm&&F||(F=Array.from({length:7}).fill(O),f.push(F));var y={date:{year:Z,month:n,day:P.day},extraCssClass:"",debugClass:""};b.selectedDate&&y.date&&ctg(y.date,b.selectedDate)&&(y.extraCssClass+=" selected");if(ICX(P,b.start)||ICX(b.end,P))y.extraCssClass+=" disabled";ctg(P,W)&&(y.extraCssClass+=" today");y.extraCssClass=y.extraCssClass.trim();F[(A-Hxm+7)%7]=y;P=pXk(P);A=(A+1)%7}X.call(M,{weeks:f,monthLabel:Gs.SHORTMONTHS[n]+" "+Z,year:Z,month:n,monthLabelExtraCssClass:f[0][2]===O?"shift-down-label":
""});H.setMonth(H.getMonth()+1)}return{months:S,daysOfWeekLabel:J}}}}});
DS.prototype.onEscOrClickingOutside=DS.prototype.onEscOrClickingOutside;DS.prototype.scrollToDate=DS.prototype.scrollToDate;_.V([_.N(),_.Y("design:type",Object)],DS.prototype,"calendarConfig",void 0);_.V([_.N(),_.Y("design:type",Object)],DS.prototype,"skipNextOpenDialog",void 0);_.V([_.N(),_.Y("design:type",Object)],DS.prototype,"errorMessage",void 0);_.V([_.N(),_.Y("design:type",Object)],DS.prototype,"previousMonthLabel",void 0);
_.V([_.N(),_.Y("design:type",Object)],DS.prototype,"nextMonthLabel",void 0);_.V([_.FM("#textbox"),_.Y("design:type",HTMLInputElement)],DS.prototype,"textbox",void 0);_.V([_.FM("#calendar-dialog"),_.Y("design:type",Object)],DS.prototype,"dialog",void 0);_.V([_.FM("#calendar-main"),_.Y("design:type",Object)],DS.prototype,"JSC$16014_calendarMain",void 0);_.V([_.FM("#date-picker"),_.Y("design:type",HTMLElement)],DS.prototype,"dropdownButton",void 0);
_.V([_.U("calendarConfig.selectedDate"),_.Y("design:type",String),_.Y("design:paramtypes",[])],DS.prototype,"dateText",null);_.V([_.U("calendarConfig","calendarConfig.selectedDate"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DS.prototype,"renderData",null);_.V([_.bO("renderData","calendarConfig.selectedDate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DS.prototype,"scrollToDate",null);
_.V([_.GI("iron-overlay-canceled"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],DS.prototype,"onEscOrClickingOutside",null);_.V([_.sD({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],DS);
_.l(DS,"ytd-calendar-date-picker",function(){if(nMp!==void 0)return nMp;var p=document.createElement("template");_.C(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="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return nMp=p},{mode:2});var G48=_.Kl("UTC_OFFSET_FORMAT",{utc_offset:(new qw("Z")).format(new Date)}),bx8=(new Date).getTimezoneOffset()*-60,mhp=new Date,FDo,vM8=Vc(mhp.getTimezoneOffset());FDo=cmo(LMp(vM8,mhp));var fwv=_.Kl("LOCAL_TIME_GMT_LABEL",{gmt_text:FDo.replace("+0","+").replace("-0","-").replace(":00","")}),kl=function(){var p=_.T.apply(this,arguments)||this;p.selectedTimeIndex=0;p.selectedTimezoneIndex=0;p.timeOfDayOptions=Zxv;return p};
_.Q(kl,_.T);_.R=kl.prototype;_.R.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var p=JCX();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=p,this.selectedTimeIndex=0;else{var J=MGi(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},p,{selectedDate:J.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(S){return S.secondsSinceMidnight===J.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.R.onDatePicked=function(p){this.selectedDate=p.detail};
_.R.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.cf(this.hostElement,"ytd-date-time-selection-cancelled")};
_.R.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var p=this.selectedDate;p=new Date(p.year,p.month,p.day);_.cf(this.hostElement,"ytd-date-time-selection-update",Math.floor(p.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+p.getTimezoneOffset()*60))}};
_.R.getTimezoneFormat=function(p){return p.localizedDisplayText?p.localizedDisplayText:_.Kl("TIMEZONE_FORMAT",{utc_offset_text:""+p.localizedUtcOffset,city_name:""+p.localizedName})};
_.R.updateSelectedTimeIndexFromBinding=function(p){this.selectedTimeIndex=p.detail.value};
_.R.updateSelectedTimezoneIndexFromBinding=function(p){this.selectedTimezoneIndex=p.detail.value};
_.vh.Object.defineProperties(kl.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=this.data.timezoneOptions;var J={name:"Etc/Unknown",localizedName:_.Kl("LOCAL_TIME_LABEL"),localizedUtcOffset:G48,utcOffsetSec:""+bx8,localizedDisplayText:fwv};p?p.length&&p[0].name!==J.name&&(p[0].localizedDisplayText||(J.localizedDisplayText=""),p.unshift(J)):p=[J];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]}}});
kl.prototype.onDateTimeTimezoneChange=kl.prototype.onDateTimeTimezoneChange;kl.prototype.onDatePicked=kl.prototype.onDatePicked;kl.prototype.updateDefaultSelectedValue=kl.prototype.updateDefaultSelectedValue;_.V([_.N(),_.Y("design:type",Object)],kl.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],kl.prototype,"calendarConfig",void 0);_.V([_.N(),_.Y("design:type",Object)],kl.prototype,"selectedDate",void 0);_.V([_.N(),_.Y("design:type",Object)],kl.prototype,"selectedTimeIndex",void 0);
_.V([_.N(),_.Y("design:type",Object)],kl.prototype,"selectedTimezoneIndex",void 0);_.V([_.FM("#time-listbox"),_.Y("design:type",Object)],kl.prototype,"timeListBox",void 0);_.V([_.FM("#timezone-listbox"),_.Y("design:type",Object)],kl.prototype,"timezoneListBox",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],kl.prototype,"rendererStamperBehavior",void 0);_.V([_.U("data.timezoneOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kl.prototype,"timeZones",null);
_.V([_.An("data","timeZones"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kl.prototype,"updateDefaultSelectedValue",null);_.V([_.U("selectedTimezoneIndex","timeZones"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kl.prototype,"selectedTimezone",null);_.V([_.U("selectedTimeIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kl.prototype,"selectedTime",null);
_.V([_.GI("ytd-calendar-date-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],kl.prototype,"onDatePicked",null);_.V([_.bO("selectedTimezone","selectedTime","selectedDate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kl.prototype,"onDateTimeTimezoneChange",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],kl);
_.l(kl,"ytd-date-time-picker-renderer",function(){if(SmM!==void 0)return SmM;var p=document.createElement("template");_.C(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="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return SmM=p},{mode:1});var Oxo;var No=function(){var p=_.T.apply(this,arguments)||this;p.boundOnTapDismissButton=function(){p.dismissTapHandler()};
p.dismissButtonOverrides={size:"XS"};return p};
_.Q(No,_.T);No.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}}}}}};
No.prototype.dismissTapHandler=function(){_.cf(this.hostElement,"yt-backstage-attachment-dismissed")};
No.prototype.computeAttachmentType=function(p){return p?p.backstageImageRenderer?"image":p.videoRenderer?"video":"none":"none"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],No.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],No.prototype,"attachmentPreview",void 0);_.V([_.N(),_.Y("design:type",Object)],No.prototype,"dismissButton",void 0);_.V([_.N(),_.Y("design:type",Object)],No.prototype,"boundOnTapDismissButton",void 0);
_.V([_.N(),_.Y("design:type",Object)],No.prototype,"dismissButtonOverrides",void 0);_.V([_.N({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.Y("design:type",String)],No.prototype,"attachmentType",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],No);
_.l(No,"ytd-backstage-dismissable-attachment",function(){if(Oxo!==void 0)return Oxo;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Oxo=p},{mode:1});var Ag8;var TL=function(){var p=_.T.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};
_.Q(TL,_.T);_.R=TL.prototype;_.R.onServiceRequestCompleted=function(p){p.stopPropagation()};
_.R.handleAddVideoPreviewAction=function(p){p=this.get("addVideoPreviewAction",p);this.onGetVideoPreviewSuccess(p)};
_.R.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}}}}}};
_.R.onLaunchVideoPicker=function(p){var J=this,S=_.E4(this.get("addVideoLinkAction.title",p)),H=this.get("addVideoLinkAction.onePickHostId",p);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",p);H&&(this.picker||(S=_.lyU(_.iFt(H).setTitle(S).addView(Nd8()).addView(kU8()),function(M){J.onPickVideo(M)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",p)||S.addView("youtube"),this.picker=S.build()),this.picker.setVisible(!0))};
_.R.onPickVideo=function(p){if(p)if(p.action==="cancel")_.cf(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()}};
_.R.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.")};
_.R.onGetVideoPreviewSuccess=function(p){if(p&&p.videoPreview&&p.cancelButton)this.videoPreview=p.videoPreview,this.cancelButton=p.cancelButton,_.cf(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.R.onGetVideoPreviewError=function(){this.cancel()};
_.R.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.cf(this.hostElement,"yt-video-link-cancel")};
_.R.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
TL.prototype.onServiceRequestCompleted=TL.prototype.onServiceRequestCompleted;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],TL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],TL.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],TL.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],TL.prototype,"videoPreview",void 0);_.V([_.N(),_.Y("design:type",Object)],TL.prototype,"cancelButton",void 0);_.V([_.N(),_.Y("design:type",Object)],TL.prototype,"getVideoPreviewCommand",void 0);_.V([_.N(),_.Y("design:type",Object)],TL.prototype,"dismissButtonOverrides",void 0);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],TL.prototype,"onServiceRequestCompleted",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],TL);
_.l(TL,"ytd-backstage-video-link-attachment",function(){if(Ag8!==void 0)return Ag8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Ag8=p},{mode:1});var PKU;var ze8;var $hn;var di=function(){return _.T.apply(this,arguments)||this};
_.Q(di,_.T);di.prototype.dataChanged=function(){this.active=!1};
di.prototype.onTap=function(){_.cf(this.hostElement,"yt-select-emoji-suggestion",this.data)};
di.prototype.identity=function(p){return p};
_.vh.Object.defineProperties(di.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H;if((p=this.data)==null?0:(J=p.image)==null?0:(S=J.thumbnails)==null?0:(H=S[0])==null?0:H.url)return p=this.data.image.thumbnails[0].url,p.startsWith("data:image/svg+xml")?D4(p):_.Vd(p)}}});
di.prototype.dataChanged=di.prototype.dataChanged;_.V([_.N(),_.Y("design:type",Object)],di.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],di.prototype,"active",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],di.prototype,"dataChanged",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],di.prototype,"imageSrc",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],di);
_.l(di,"ytd-emoji-suggestion",function(){if($hn!==void 0)return $hn;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return $hn=p},{mode:1});var oMn=/.*([:@#].*?)$/,uz=function(){var p=_.T.apply(this,arguments)||this;p.suggestions=[];p.suggestionIndex=-1;p.JSC$16042_lastSuggestionRange=null;return p};
_.Q(uz,_.T);_.R=uz.prototype;_.R.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.R.getSuggestions=function(p){var J=[],S=YRp(this.emojiManager,p.substr(0,3));if(S)for(var H in S)if(H.toLocaleLowerCase().indexOf(p)===0){var M=S[H];if(M&&M.emojiId){M=Fc(this.emojiManager,M.emojiId);var X=void 0,Z=void 0,n=void 0,b=void 0,F=((X=M)==null?0:X.isCustomEmoji)?(Z=M)==null?void 0:(n=Z.shortcuts)==null?void 0:n[0]:(b=M)==null?void 0:b.emojiId;X=void 0;J.push({suggestion:{image:(X=M)==null?void 0:X.image,alt:F,text:H}});if(J.length>=64)break}}return J?J.sort(function(f,O){return O.suggestion.text<
f.suggestion.text?-1:O.suggestion.text===f.suggestion.text?0:1}):null};
_.R.insertSuggestion=function(p){_.cf(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16042_lastSuggestionRange,text:p.alt});this.dropdown.opened=!1};
_.R.updateSuggestionsAtCaret=function(p){this.updateSuggestions(p,this.retrieveTextBeforeRange(p))};
_.R.offsetStartOfRangeBy=function(p,J){p.startOffset>=J&&p.setStart(p.startContainer,p.startOffset-J)};
_.R.updateSuggestions=function(p,J){var S=this;this.JSC$16042_lastSuggestionRange&&(this.JSC$16042_lastSuggestionRange.detach(),this.JSC$16042_lastSuggestionRange=null);if((J=oMn.exec(J))&&J.length&&(J=J[J.length-1].toLocaleLowerCase(),J.length>2||J===":_")&&(this.offsetStartOfRangeBy(p,J.length),this.JSC$16042_lastSuggestionRange=p,(p=this.getSuggestions(J))&&p.length)){this.suggestions=p;_.mN(this,function(){S.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};
_.R.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()}};
_.R.onKeyUp=function(p,J){switch(p.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(J);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(J)}};
_.R.onKeyPress=function(p){p.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),p.preventDefault())};
_.R.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)};
_.R.retrieveTextBeforeRange=function(p){var J=p.startContainer;return J&&J.nodeType===Node.TEXT_NODE?J.textContent.substr(0,p.startOffset):""};
uz.prototype.onKeyPress=uz.prototype.onKeyPress;uz.prototype.onKeyUp=uz.prototype.onKeyUp;uz.prototype.onKeyDown=uz.prototype.onKeyDown;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Array)],uz.prototype,"suggestions",void 0);_.V([_.N(),_.Y("design:type",_.bP)],uz.prototype,"emojiManager",void 0);_.V([_.N(),_.Y("design:type",Number)],uz.prototype,"verticalSuggestionsOffset",void 0);
_.V([_.FM("#dropdown"),_.Y("design:type",Object)],uz.prototype,"dropdown",void 0);_.V([_.FM("#dropdown-content"),_.Y("design:type",HTMLDivElement)],uz.prototype,"dropdownContent",void 0);_.V([_.GI("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],uz.prototype,"onKeyDown",null);_.V([_.GI("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent,Range]),_.Y("design:returntype")],uz.prototype,"onKeyUp",null);
_.V([_.GI("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],uz.prototype,"onKeyPress",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-emoji-input"})],uz);
_.l(uz,"ytd-emoji-input",function(){if(ze8!==void 0)return ze8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ze8=p},{mode:2});var ee8;var lz=function(){var p=_.T.apply(this,arguments)||this;p.hasMaxOptions=!1;return p};
_.Q(lz,_.T);_.R=lz.prototype;_.R.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.R.setPrefilledChoices=function(p){var J=this;this.set("pollOptions",[]);var S;for(S=0;S<Math.min(p.length,this.data.maxPollOptions);S++)this.push("pollOptions",p[S].substring(0,this.data.maxPollOptionChars));for(;S<this.data.minPollOptions;S++)this.push("pollOptions","");this.hasMaxOptions=S>=this.data.maxPollOptions;_.mN(this,function(){for(var H=J.pollOptions,M=_.Jn(J.hostElement).querySelectorAll(".poll-option-input"),X=0;X<M.length;X++)M[X].value=H[X]})};
_.R.focusChanged=function(){_.K3(this.hostElement)};
_.R.onInput=function(){var p=this;_.uO(this,"onInput",function(){p.isValid()?_.cf(p.hostElement,"yt-commentbox-post-enable"):_.cf(p.hostElement,"yt-commentbox-post-disable")},300)};
_.R.setPollOptions=function(){var p=[],J,S=((J=this.data)==null?0:J.minPollOptions)?this.data.minPollOptions:0;for(J=0;J<S;J++)p.push("");return p};
_.R.addPollOption=function(){var p=this;_.cf(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.wg.addLowPriorityJob(function(){var J;(J=_.Jn(p.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||J.focus()})};
_.R.onRemovePollOption=function(p){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.cf(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(),_.cf(this.hostElement,"yt-commentbox-post-enable"))))};
_.R.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.R.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var p=0,J=this.pollOptions.length;p<J;p++)if(this.pollOptions[p].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.R.getPollOptions=function(){return this.pollOptions};
_.R.setPollOptionsFromInputs=function(){for(var p=_.Jn(this.hostElement).querySelectorAll(".poll-option-input"),J=0;J<p.length;J++)this.pollOptions[J]=p[J].value.trim()};
_.R.clearPollOptions=function(){var p=_.Jn(this.hostElement).querySelectorAll(".poll-option-input");p=_.K(p);for(var J=p.next();!J.done;J=p.next())J.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.R.getSimpleString=function(p){return _.E4(p)};
_.R.updateValueFromBinding=function(p){if(p.target&&this.pollOptions){var J=Array.from(_.Jn(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(p.target);if(J>=0){var S;this.pollOptions[J]=(S=p.detail.value)!=null?S:"";this.notifyPath("pollOptions."+J)}}};
lz.prototype.dataChanged=lz.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],lz.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Array)],lz.prototype,"pollOptions",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],lz.prototype,"hasMaxOptions",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],lz.prototype,"enableCreationBox",void 0);
_.V([_.FM("#repeat"),_.Y("design:type",C3)],lz.prototype,"repeat",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lz.prototype,"dataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-poll-attachment"})],lz);
_.l(lz,"ytd-poll-attachment",function(){if(ee8!==void 0)return ee8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ee8=p},{mode:2});var WD8;var QpL;var CKL;var ygp;var Vj=function(){return _.T.apply(this,arguments)||this};
_.Q(Vj,_.T);_.vh.Object.defineProperties(Vj.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Vj.prototype,"rendererBehaviors",void 0);_.V([_.N(),_.Y("design:type",Object)],Vj.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vj.prototype,"focused",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("focused"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Vj.prototype,"ariaSelected",null);_.V([_.sD({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Vj);
_.l(Vj,"yt-user-mention-suggestion-renderer",function(){if(ygp===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;CKL===void 0&&(CKL=document.createElement("template"));var H=CKL;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ygp=p}p=ygp;return p},{mode:2});var B84;var Uhv;var qo=function(){var p=_.T.apply(this,arguments)||this;p.focusedSuggestionIndex=-1;return p};
_.Q(qo,_.T);_.R=qo.prototype;_.R.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.R.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.R.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))};
_.R.advanceSuggestion=function(p){this.focusedSuggestionIndex===-1||p!==-1&&p!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+p),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.R.ensureSuggestionVisible=function(p){p=this.getSuggestionId(p);p=_.Jn(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))};
_.R.getSuggestionId=function(p){return"user-mention-suggestion-"+p};
_.R.onSuggestionTap=function(p){var J=_.e(p.model.item,pHm);this.ytRendererBehavior.logExplicitClick(J);_.cf(this.hostElement,"yt-user-mention-suggestion-selected",{data:J,index:p.model.index})};
_.R.onSuggestionMouseMove=function(p){p.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(p.model.index)};
_.R.isSuggestionFocused=function(p,J){return p===J};
_.R.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.R.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("focused-suggestion-id-changed",this.focusedSuggestionId))};
qo.prototype.focusedSuggestionIdChangedForBinding=qo.prototype.focusedSuggestionIdChangedForBinding;qo.prototype.onDomChange=qo.prototype.onDomChange;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qo.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],qo.prototype,"focusedSuggestionIndex",void 0);_.V([_.N({readOnly:!0}),_.Y("design:type",String)],qo.prototype,"focusedSuggestionId",void 0);
_.V([_.GI("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],qo.prototype,"onDomChange",null);_.V([_.bO("focusedSuggestionId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qo.prototype,"focusedSuggestionIdChangedForBinding",null);_.V([_.sD({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],qo);
_.l(qo,"yt-user-mention-suggestions-dropdown",function(){if(Uhv===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;B84===void 0&&(B84=document.createElement("template"));var H=B84;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Uhv=p}p=Uhv;return p},{mode:2});var a3=function(){var p=_.T.apply(this,arguments)||this;p.suggestionsResponse=null;p.activeMention=null;p.selectionChangeListener=p.onSelectionChange.bind(p);p.handlesEnabled=_.z("enable_handles_in_mention_suggest_posts");p.handlesInMentionSuggestionsEnabled=_.z("handles_in_mention_suggest_posts");p.zeroPrefixMentionSuggestionEnabled=_.z("enable_zero_prefix_mention_suggestion_web");p.pendingQuery=null;p.flowNonce=null;return p};
_.Q(a3,_.T);_.R=a3.prototype;_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.R.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.R.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.R.hasSuggestions=function(p){return!!(p&&p.suggestions&&p.suggestions.length>0)};
_.R.onInput=function(){var p=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var J=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),S=this.activeMention.JSC$11499_getText().slice(-1)===" ",H=this.activeMention.JSC$11499_getText().slice(-2,-1)===" ",M="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11499_getText().slice(-2,
-1))>=0;M=this.zeroPrefixMentionSuggestionEnabled&&M;if(this.activeMention.isCollapsed()||(J||H||M)&&S)this.cancelActiveMention();else{var X=this.activeMention.JSC$11499_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.uO(this,"requestSuggestions",function(){p.requestSuggestions(X)},100)}}}};
_.R.onServiceRequestSent=function(p){p.stopPropagation()};
_.R.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))};
_.R.onServiceRequestError=function(p){p.stopPropagation()};
_.R.onUserMentionSuggestionSelected=function(p){this.selectSuggestion(p.detail.data,p.detail.index)};
_.R.onSelectionChange=function(){if(this.activeMention){var p=_.i6(),J=this.activeMention.JSC$11499_containsRange(p);p=p&&this.containsHelper(this.dropdown,p.getContainer());J||p||this.cancelActiveMention()}};
_.R.containsHelper=function(p,J){var S;if(((S=window.ShadyDOM)==null?void 0:S.noPatch)===!0)return p.contains(J);for(;J;){if(J===p)return!0;J=J instanceof ShadowRoot?J.host:J.parentNode}return!1};
_.R.maybeStartSuggest=function(){var p=_.i6();if(p&&p.isCollapsed()){var J=p.JSC$11499_getStartNode(),S=p.JSC$11499_getStartOffset();if(J instanceof Text&&!(S<1)){var H=J.textContent;!(H=H&&H.charAt(S-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(H)<0||(this.activeMention=_.Lk(J,S-1,p.JSC$11499_getEndNode(),p.JSC$11499_getEndOffset()),this.flowNonce=oV(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.R.updateActiveMention=function(){if(this.activeMention){var p=_.i6();p&&p.isCollapsed()&&(this.activeMention=_.Lk(this.activeMention.JSC$11499_getStartNode(),this.activeMention.JSC$11499_getStartOffset(),p.JSC$11499_getEndNode(),p.JSC$11499_getEndOffset()))}};
_.R.requestSuggestions=function(p){if(this.activeMention){var J={suggestions_query:p};this.pendingQuery=p;_.pl(this.hostElement,[this.suggestionsEndpoint,J])}};
_.R.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()};
_.R.focusPreviousSuggestion=function(p){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),p.preventDefault())};
_.R.focusNextSuggestion=function(p){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),p.preventDefault())};
_.R.selectFocusedSuggestion=function(p){if(this.hasSuggestions(this.suggestionsResponse)){var J=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.e(J,pHm)&&(this.selectSuggestion(_.e(J,pHm),this.dropdown.focusedSuggestionIndex),p.preventDefault())}};
_.R.selectSuggestion=function(p,J){if(p){var S=this.activeMention;if(S){var H=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&p.handle?_.qR(H,"\u00a0\u2068@"+p.handle+"\u2069\u00a0"):this.handlesEnabled?_.qR(H,"\u00a0"+p.displayName+"\u00a0"):_.qR(H,"\u00a0@"+p.displayName+"\u00a0");ja(H,"/channel/"+p.channelId);H.classList.add("yt-formatted-string","yt-simple-endpoint");H.setAttribute("spellcheck","false");S.isCollapsed()||S.JSC$11499_removeContents();S.insertNode(H,!0);p=document.createTextNode(" ");
H.parentNode.insertBefore(p,H.nextSibling);window.getSelection().collapse(p,1);J={suggestionSelected:{suggestionIndex:J}};if(this.zeroPrefixMentionSuggestionEnabled){var M;J.suggestionSelected.isZeroPrefix=((M=this.suggestionsResponse)==null?void 0:M.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",J);this.cancelActiveMention();_.cf(this.hostElement,"yt-mention-inserted")}}};
_.R.getPositionTarget=function(p){return p&&p.getBrowserRangeObject()};
_.R.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.R.onFocusedSuggestionIdChanged=function(p){var J=_.Pzi(this.hostElement)[0];J&&(p.detail.value?J.setAttribute("aria-activedescendant",p.detail.value):J.removeAttribute("aria-activedescendant"))};
_.R.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.R.logGELEvent=function(p,J){p={eventType:p,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};J&&(p=Object.assign(p,J));_.YQ("userMentionAutoCompleteBoxEvent",p)};
a3.prototype.onDomChange=a3.prototype.onDomChange;a3.prototype.onUserMentionSuggestionSelected=a3.prototype.onUserMentionSuggestionSelected;a3.prototype.onServiceRequestError=a3.prototype.onServiceRequestError;a3.prototype.onServiceRequestCompleted=a3.prototype.onServiceRequestCompleted;a3.prototype.onServiceRequestSent=a3.prototype.onServiceRequestSent;a3.prototype.onInput=a3.prototype.onInput;_.V([_.B(_.ua),_.Y("design:type",Object)],a3.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],a3.prototype,"suggestionsEndpoint",void 0);_.V([_.N(),_.Y("design:type",Object)],a3.prototype,"suggestionsResponse",void 0);_.V([_.N(),_.Y("design:type",Object)],a3.prototype,"activeMention",void 0);_.V([_.FM("#dropdown"),_.Y("design:type",Object)],a3.prototype,"dropdown",void 0);_.V([_.FM("#iron-dropdown"),_.Y("design:type",Object)],a3.prototype,"ironDropdown",void 0);
_.V([_.GI("input"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],a3.prototype,"onInput",null);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],a3.prototype,"onServiceRequestSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],a3.prototype,"onServiceRequestCompleted",null);
_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],a3.prototype,"onServiceRequestError",null);_.V([_.GI("yt-user-mention-suggestion-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],a3.prototype,"onUserMentionSuggestionSelected",null);
_.V([_.GI("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],a3.prototype,"onDomChange",null);_.V([_.sD({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],a3);
_.l(a3,"yt-user-mention-autosuggest-input",function(){if(QpL===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;WD8===void 0&&(WD8=document.createElement("template"));var H=WD8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);QpL=p}p=QpL;return p},{mode:2});var Eo=null;
_.QG({is:"ytd-commentbox",_template:function(){if(PKU!==void 0)return PKU;var p=document.createElement("template");_.C(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="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return PKU=p},
behaviors:[_.cAt.YtHostElementBehavior,_.ua,_.u1.YtActionHandlerBehavior,_.KD.YtComponentBehavior,_.QD.YtRendererstamperBehavior,_.njq.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,J){return _.RR(p.entities,"aadcGuidelinesStateEntityPayload",J)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(p,J){return _.RR(p.entities,"commentboxStateEntity",J)},
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 _.v7}},
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:_.z("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.z("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",_.n3(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,J,S){this.isValidPrefilledImage_(p,J,S)&&(this.prefilledAttachment_="image",this.prefilledImageData_=J,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(p,J){this.isValidPrefilledVideo_(p,J)&&(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;_.Qw();this.focus()},
detached:function(){document.removeEventListener("tap",_.n3(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 J=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(J,p);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var p=_.i6();if(p){p=p.getBrowserRangeObject();for(var J=p.commonAncestorContainer;J;){if(J===this.getEditableTextArea_())return p;J=J.parentNode}}p=this.getEditableTextArea_();p=_.IL(p,p.childNodes.length);p.select();return p.getBrowserRangeObject()},
insertTextWithEmojis_:function(p,J,S){(J=this.emojiManager.createDocumentFragment(J,!0,!1,S===void 0?!0:S))&&J.childNodes.length!==0&&(p.collapsed||p.deleteContents(),S=J.lastChild,p.insertNode(J),_.Amd(S).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var p=_.i6();if(p){var J=p.JSC$11499_getStartNode(),S=p.JSC$11499_getEndNode();if(i4t(J)&&i4t(S)){var H=p.JSC$11499_getStartOffset(),M;if(_.nu&&J.nodeType===Node.ELEMENT_NODE&&(M=_.vov(J)))_.IL(M,0).select();else{M=HY(J)?J:_.ar(J,HY);var X=HY(S)?S:_.ar(S,HY);if(M||X)if(p.isCollapsed()){if(J.nodeType===Node.TEXT_NODE){p=!0;H===J.length&&(p=!1);if(Eo==="end"||Eo==="right")p=!1;J=J.parentNode;p=[].concat(_.dW(J.parentNode.childNodes)).indexOf(J)+(p?0:1);_.IL(J.parentNode,
p).select()}}else M?M.previousSibling&&M.previousSibling.length>0?_.Lk(S,p.JSC$11499_getEndOffset(),M.previousSibling,M.previousSibling.length-1).select():(J=document.createTextNode("\u200b"),M.parentNode.insertBefore(J,M),_.Lk(S,p.JSC$11499_getEndOffset(),J,0).select()):X&&(X.nextSibling&&X.nextSibling.length>0?_.Lk(J,p.JSC$11499_getStartOffset(),X.nextSibling,1).select():(S=document.createTextNode("\u200b"),X.parentNode.insertBefore(S,X.nextSibling),_.Lk(J,p.JSC$11499_getStartOffset(),S,S.length).select()));
Eo=null}}else Eo=null}else Eo=null},
leftKeyPressed_:function(){Eo="left"},
rightKeyPressed_:function(){Eo="right"},
endKeyPressed_:function(){Eo="end"},
maybeDeleteChip_:function(){var p=b4L(!0);if(p){var J=_.i6(),S=J.JSC$11499_getStartNode();J=J.JSC$11499_getStartOffset();_.rS(S,J,p,p.childNodes.length).select()}},
maybeBackspaceChip_:function(){var p=b4L(!1);if(p){var J=_.i6(),S=J.JSC$11499_getStartNode();J=J.JSC$11499_getStartOffset();_.rS(S,J,p,0).select()}},
maybeBackspaceChipWordMode_:function(p){var J=_.i6();if(J.isCollapsed()){var S=J.JSC$11499_getStartNode();J=J.JSC$11499_getStartOffset();var H=mmt(S,J,!0);H&&(_.rS(S,J,H,0).select(),document.execCommand("delete"),p.preventDefault(),p.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(p){var J=_.i6();if(J.isCollapsed()){var S=J.JSC$11499_getStartNode();J=J.JSC$11499_getStartOffset();var H=mmt(S,J,!1);H&&(_.rS(S,J,H,H.childNodes.length).select(),document.execCommand("delete"),p.preventDefault(),p.stopImmediatePropagation())}},
onTap_:function(p){if(!p.defaultPrevented&&(p.currentTarget.tagName==="YTD-COMMENTBOX"&&HY(p.target)&&p.preventDefault(),this.isEmojiPickerDisplayed)){var J=this.$$("#emojis"),S=this.$$("#emoji-button"),H=this.getEditableTextArea_();if((p=p.path?p.path:p.composedPath&&p.composedPath())&&!p.includes(J)&&!p.includes(H)&&!p.includes(S))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(p,J,S){return p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&J!==void 0&&J.encryptedBlobId!==null&&J.sourceExternalVideoId!==null&&S!==void 0&&S.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(p,J){return p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!J&&!!J.videoRenderer&&!!J.videoRenderer.videoId},
isValidPrefilledAttachment_:function(p,J,S){return this.isValidPrefilledImage_(p,J,S)||this.isValidPrefilledVideo_(p,S)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.z("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 _.Jn(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Jn(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,J){p=KPi(p,this.emojiManager,J).cloneNode(!0);for(J=p.firstChild;J;)if(J.nodeType!==1)J=J.nextSibling;else switch(J.tagName){case "BR":var S=_.NR();_.em8(S,J);J=S.nextSibling;break;case "DIV":(S=J.lastChild)&&J.nextSibling&&_.l_(_.NR(),S);J.previousSibling&&(J.previousSibling.nodeType===1||J.previousSibling.nodeType===3&&!J.previousSibling.textContent.endsWith("\n"))&&_.u_(_.NR(),J);S&&S.nodeName==="BR"&&_.CC(S);S=J;J.hasChildNodes()?(J=J.firstChild,
_.W9E(S)):(J=J.nextSibling,_.CC(S));break;default:J=J.nextSibling}return FPg(p)},
onAddImageError_:function(p){p.stopPropagation();this.errorMessage_=_.aR(p.detail)},
setTextAreaValue_:function(p){p||(p="");var J=this.getEditableFormattedString_();J.text="";this.getEditableTextArea_().innerText="";typeof p==="string"&&(p={runs:[{text:p}]});J.text=p},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Eo=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var p=this.getEditableTextArea_();p&&(_.IL(p,p.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.jn("HTML_DIR")==="rtl"){var p=this.getEditableTextArea_(),J=this.getTextAreaValue()!==""?"auto":"rtl";p.setAttribute("dir",J)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var p;return pyL((p=this.$["quiz-attachment"])==null?void 0:p.getExplanationText())||pyL(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var p=null;if(this.isEmojiButtonDisplayed){var J=this.getInputRange_();J&&(p=this.emojiInput.retrieveTextBeforeRange(J))}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,J,S){J=J===void 0?!1:J;S=S===void 0?!0:S;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&p){var H=this.getInputRange_().cloneRange();this.emojiManager&&H&&(J&&this.emojiInput.offsetStartOfRangeBy(H,p.length),this.insertTextWithEmojis_(H,p,S),R7t(this.getEditableTextArea_().lastChild)||(H=this.getInputRange_().cloneRange()),H&&(this.emojiInput.updateSuggestions(H,p),this.updateSuggestionOffset_(H)))}},
setSubmitButton_:function(){if(this.data){var p=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",J=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(p||J){var S=this.getTextAreaValue().trim();J=S===this.previousText_;S=!S||this.aboveCharLimit_;p&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(S=this.aboveCharLimit_);this.submitButtonDisabled=
J||S||!this.getTextLength();p&&_.z("enable_post_scheduling")&&(this.submitButtonDisabled=J&&!this.scheduledPublishTimeSec_||S)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.E4,computeCreationBoxClass_:function(p){return p?"focused":"not-focused"},
computeFooterMessageClass_:function(p,J){return J?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(p,J){return J?J:p},
computeFooterMessageHidden_:function(p,J){return!J&&!p},
computePlaceholderText_:function(p,J,S){return(S==="video"||S==="image")&&(p==null?0:p.prefilledPlaceholderText)?p==null?void 0:p.prefilledPlaceholderText:J==="poll"||J==="image-poll"?p==null?void 0:p.pollPostPlaceholderText:J==="quiz"?p==null?void 0:p.quizPostPlaceholderText:J==="image"?p==null?void 0:p.imagePostPlaceholderText:p==null?void 0:p.placeholderText},
computeHideAttachmentButtons_:function(p,J,S,H){return p===void 0?!1:H&&this.getSimpleString(H)===this.getSimpleString(p.rateLimitErrorMessage)?!0:J!=="none"||S!=="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,J){return p&&!J?24:40},
computeImageUploadEndpoint_:function(p){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",p)},
computeRateLimitErrorCommands_:function(p){var J,S;return p==null?void 0:(J=p.advancedTierFeatures)==null?void 0:(S=J.rateLimit)==null?void 0:S.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(_.z("web_modern_buttons")){var p,J;return{segmentedPosition:this.dropdownSchedulePanel_||!((p=this.data)==null?0:(J=p.postOptionsMenu)==null?0:J.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.z("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(p,J){p=this.get("submitButton.buttonRenderer",p)||this.get("replyButton.buttonRenderer",p)||this.get("postButton.buttonRenderer",p);J&&(p=J);p&&(p=Object.assign({},p),p.serviceEndpoint=void 0,p.isDisabled=this.submitButtonDisabled);return p},
computeHasExternalLinksAccess_:function(p){if(_.z("enable_rfa_external_links")){var J,S,H;return(H=p==null?void 0:(J=p.advancedTierFeatures)==null?void 0:(S=J.externalLinks)==null?void 0:S.allowExternalLinks)!=null?H:!0}return!0},
computeIsEmojiButtonDisplayed_:function(p){return p.emojiButton&&p.emojiPicker&&p.emojiPicker.emojiPickerRenderer&&p.emojiPicker.emojiPickerRenderer.categories?p.emojiPicker.emojiPickerRenderer.categories.find(function(J){return J.emojiPickerCategoryRenderer?J.emojiPickerCategoryRenderer.emojiIds&&J.emojiPickerCategoryRenderer.emojiIds.length>0:J.emojiPickerUpsellCategoryRenderer?J.emojiPickerUpsellCategoryRenderer.emojis&&J.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(p){return p.charLimit?p.charLimit:null},
computeDropdownSchedulingPanel_:function(p,J){if(p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&J)return J},
computeInlineSchedulingPanel_:function(p,J){if(p==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&J)return J},
computeHideAuthorThumbnail_:function(p,J){return p||this.computeUseIdentityChip_(J)},
computeHideIdentityChipRenderer_:function(p,J){return p||!this.computeUseIdentityChip_(J)},
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 J,S,H,M;(p==null?0:(J=p.detail)==null?0:(S=J.endpoint)==null?0:S.ypcGetOffersEndpoint)||(p==null?0:(H=p.detail)==null?0:(M=H.endpoint)==null?0:M.ypcOffersEndpoint)?(p.stopPropagation(),_.pl(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 J=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(){J.focus()})},
onYtServiceRequestSent_:function(p,J){if(J.actions)for(p=_.K(J.actions),J=p.next();!J.done;J=p.next())J.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(p){this.isLoading=!1;var J=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",p),S,H,M,X=p==null?void 0:(S=p.detail)==null?void 0:(H=S.data)==null?void 0:(M=H.actionResult)==null?void 0:M.commentboxStateEntityKey;if(J)this.errorMessage_=J;else if(X){var Z;this.dismissData_=p==null?void 0:(Z=p.detail)==null?void 0:Z.data;this.commentboxStateKey_=X}else{this.clear();var n;this.fire("yt-commentbox-dismiss",p==null?void 0:(n=p.detail)==
null?void 0:n.data)}},
onYtServiceRequestError_:function(p){p.stopPropagation();this.isLoading=!1;var J,S;if(((J=this.data)==null?void 0:J.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((S=this.data)==null?void 0:S.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(J=this.get("detail.error.args",p)||[],J.length>1&&J[1].message){this.handlePostsServiceRequestError_(J[1].message);return}(p=this.get("detail.error.message",p))?this.errorMessage_=this.data.errorMessage||_.aR(p):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(p){if(_.z("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var J=_.K(this.rateLimitErrorCommands),S=J.next();!S.done;S=J.next())if(S=S.value,S.errorLabel===p){_.KI(S.command,this.hostElement);return}this.errorMessage_=_.aR(p)},
submitIfNotBackstagePost_:function(p){if(!this.isBackstagePost)this.onSubmit_(p)},
onSubmit_:function(p){var J=this,S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t;return _.G(function(D){switch(D.nextAddress){case 1:p.stopPropagation();if(!J.serviceEndpoint||!J.isValidInput_())return D.return();if(J.shouldShowPostAadcNotice_())return J.showPostAadcNotice_(),D.return();if(J.shouldShowCommentAadcNotice_())return J.showCommentAadcNotice_(),D.return();if(!(J.$$("ytd-backstage-multi-image-select-renderer")&&J.hasImage_&&_.z("enable_multi_image_post_creation"))){D.jumpTo(2);break}S=J.$$("ytd-backstage-multi-image-select-renderer");
return D.yield(S.getAllUploadStatuses(),3);case 3:H=D.yieldResult;if(!H)return D.return();M=_.K(H);for(X=M.next();!X.done;X=M.next())if(Z=X.value,Z.encryptedBlobId===void 0)return J.isLoading=!1,b=n=void 0,J.errorMessage_=(b=(n=J.imageUploadEndpoint_)==null?void 0:n.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?b:null,D.return();return D.return(J.submitForm_(void 0,void 0,void 0,void 0,S.images,J.taggedVideoId_));case 2:if(!J.hasImagePoll_||!J.$["image-poll-attachment"]){D.jumpTo(4);
break}return D.yield(J.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:F=D.yieldResult;if(!F)return D.return();f=_.K(F);for(O=f.next();!O.done;O=f.next())if(A=O.value,!A.encryptedBlobId)return J.isLoading=!1,P=void 0,J.errorMessage_=(P=J.data.errorMessage)!=null?P:null,D.return();case 4:y=(W=J.$$("ytd-backstage-image-select-renderer"))&&W.uploadPromise(),t=J.getSharedPostId_(),y?y.then(function(){J.submitForm_.apply(J,_.dW(_.Yp.apply(0,arguments)))}).catch(function(k){J.isLoading=!1;
J.errorMessage_=_.aR(k.message)}):J.selectedVideoId_?J.submitForm_(void 0,J.selectedVideoId_):J.prefilledAttachment_==="image"?J.submitForm_(J.prefilledImageData_.encryptedBlobId,void 0,void 0,J.prefilledImageData_.sourceExternalVideoId,void 0,J.taggedVideoId_):J.prefilledAttachment_==="video"?J.submitForm_(void 0,J.data.backstageAttachment.videoRenderer.videoId):t?J.submitForm_(void 0,void 0,t):J.taggedVideoId_!==void 0?J.submitForm_(void 0,void 0,void 0,void 0,void 0,J.taggedVideoId_):J.submitForm_(),
_.UK(D)}})},
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 J=this.$["video-link-attachment"];J&&J.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"&&_.z("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.z("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 J;if(this.addedAttachment==="quiz"&&((J=this.$["quiz-attachment"])==null||!J.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,J,S,H,M,X){var Z=this.getTextAreaValue().trim(),n={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Z===this.previousText_&&(Z=void 0);Z!==void 0&&(n.comment_text=Z);this.isLoading=!0;X!=void 0&&(n.tagged_video_id=X);p?(n.image_blob_id=p,this.imagePreviewCoordinates_&&(n.image_preview_coordinates=this.imagePreviewCoordinates_)):J?n.attached_video_id=J:S?n.shared_post_id=S:M&&M.length>0&&(n.images_data=M.map(function(b){return{encryptedBlobId:b.encryptedBlobId,
previewCoordinates:b.previewCoordinates}}));
H&&(n.source_video_id=H);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(n.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(n.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(n.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(n.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.z("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(n.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.pl(this,[this.serviceEndpoint,n])},
onIsInputFocusChanged_:function(p,J){p?this.fire("yt-autonav-pause-focus"):J!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(p){var J=this.getEditableTextArea_();[].concat(_.dW(p.dataTransfer.items)).forEach(function(S){S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(H){J.appendChild(document.createTextNode(H))})});
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,J){return!J||p?"":"with-options"},
updateSuggestionOffset_:function(p){if(this.emojiInput&&_.Jn(this.emojiInput).querySelector("#dropdown")){var J=this.getEditableTextArea_().getBoundingClientRect().bottom,S=p.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(J-S)+5;J=this.getEditableTextArea_().getBoundingClientRect().left;p=p.getBoundingClientRect().left-J;_.Jn(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(_.z("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 J=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(J)||J!==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","quiz-button"];_.z("auto_convert_posts_video_tag")||p.push("video-link-button");return p},
getButtonRenderer:function(p,J){if(p)switch(J){case "video-link-button":var S;return((S=p.videoLinkButton)==null?void 0:S.buttonRenderer)||void 0;case "image-button":var H;return((H=p.imageButton)==null?void 0:H.buttonRenderer)||void 0;case "poll-button":var M;return((M=p.pollButton)==null?void 0:M.buttonRenderer)||void 0;case "image-poll-button":var X;return((X=p.imagePollButton)==null?void 0:X.buttonRenderer)||void 0;case "quiz-button":var Z;return((Z=p.quizButton)==null?void 0:Z.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,J;return!((p=this.data)==null||!p.openAadcDialog)&&!((J=this.aadcGuidelinesState_)==null||!J.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.jn("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 _.pH("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(p){p.clickTrackingParams&&_.bC().clickCommand(p);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.IV(this,"yt-close-popup-action")},
onHideIdentityChip:function(p){var J;this.set("data.placeholderText",(J=p.hideIdentityChipAction)==null?void 0:J.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Yl=function(){var p=_.T.apply(this,arguments)||this;p.isOpen=!1;p.modern=_.z("web_modern_buttons");p.roundedContainer=!0;p.dropdownButtonOverride=_.z("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;p.inPopupContainer=!1;p.isCommentboxLoading=!1;var J=["image-button","image-poll-button","poll-button"];_.z("enable_quiz_creation")&&J.push("quiz-button");_.z("auto_convert_posts_video_tag")||J.push("video-link-button");p.attachmentButtonIds=J;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};
_.Q(Yl,_.T);_.R=Yl.prototype;_.R.computeButtonOverride=function(){var p;return((p=this.data)==null?0:p.postOptionsMenu)&&_.z("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.R.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:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.z("auto_convert_posts_video_tag")||(p["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return p};
_.R.ready=function(){var p=this,J=_.Jn(this.hostElement).querySelector("#placeholder-area"),S=function(H){p.onOpen(H)};
J.addEventListener("tap",S);J.addEventListener("keypress",S)};
_.R.showButtonEduTooltip=function(){var p,J,S,H,M,X,Z;if(_.z("enable_quiz_creation")&&((p=this.data)==null?0:(J=p.quizButton)==null?0:(S=J.buttonRenderer)==null?0:(H=S.hint)==null?0:(M=H.hintRenderer)==null?0:(X=M.content)==null?0:(Z=X.bubbleHintRenderer)==null?0:Z.text)&&(_.NZ.getInstance(),p=Tk(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 n;if((n=this.data)==null?0:n.imagePollButtonTooltip)if(_.NZ.getInstance(),n=Tk(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(n==null?void 0:n.length)>0){this.ytComponentBehavior.resolveCommand(n[0],{form:{element:this.imagePollButton}});return}var b;_.z("enable_multi_image_post_creation")&&
((b=this.data)==null?0:b.multiImageButtonTooltip)&&(_.NZ.getInstance(),b=Tk(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(b==null?void 0:b.length)>0&&this.ytComponentBehavior.resolveCommand(b[0],{form:{element:this.imageButton}}))};
_.R.onCreatePollAction=function(p){_.e(p,eh4)&&(this.JSC$16097_commentbox.addedAttachment="poll",this.openDialog())};
_.R.onAddVideoLinkAction=function(p){if(_.e(p,PB8))this.JSC$16097_commentbox.onAddVideoLink(p)};
_.R.onShowSchedulingPanelCommand=function(p){(p=_.e(p,wlM))&&this.openSchedulingPanel(p)};
_.R.onCreateImagePollCommand=function(p){_.e(p,xa8)&&(this.JSC$16097_commentbox.openImagePollComponent(),this.openDialog())};
_.R.onCreateQuizCommand=function(p){_.e(p,cL4)&&(this.JSC$16097_commentbox.openQuizComponent(),this.openDialog())};
_.R.openSchedulingPanel=function(p){_.z("enable_post_scheduling")&&(this.openDialog(),this.JSC$16097_commentbox.openSchedulingPanel(p))};
_.R.onCreateCommentAction=function(p){this.get("createCommentAction.contents",p)&&(this.JSC$16097_commentbox.clear(),this.closeDialog())};
_.R.onOpen=function(p){p instanceof KeyboardEvent&&p.type==="keypress"&&p.keyCode!==13&&p.keyCode!==32||(this.data.prepareAccountEndpoint?_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.R.onYtCommentboxDismiss=function(){this.closeDialog()};
_.R.onYtCommentboxLoadingStart=function(p){p.stopPropagation();this.isCommentboxLoading=!0};
_.R.onYtCommentboxLoadingEnd=function(p){p.stopPropagation();this.isCommentboxLoading=!1};
_.R.onYtVideoLinkButtonCancel=function(p){p.stopPropagation();this.onOpen(p)};
_.R.onYtVideoLinkSelected=function(p){p.stopPropagation();this.onOpen(p)};
_.R.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)};
_.R.onYtNavigate=function(p){this.get("detail.endpoint.backstageImageUploadEndpoint",p)&&(this.JSC$16097_commentbox.addedAttachment="image",this.JSC$16097_commentbox.submitButtonDisabled=!0,this.onOpen(p))};
_.R.onRequestSent=function(p){for(var J=_.K(p.detail),S=J.next();!S.done;S=J.next())_.e(S.value,RgL)&&(this.JSC$16097_commentbox.addedAttachment="image",this.JSC$16097_commentbox.submitButtonDisabled=!0,this.onOpen(p))};
_.R.openDialog=function(){var p;(p=this.data)!=null&&p.isIneligibleForCommunityPagePostCreation||(this.JSC$16097_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16097_commentbox.focus())};
_.R.onPopupClosed=function(){_.NZ.getInstance()};
_.R.computeCreationDisabled=function(p){return!!p};
_.R.computeIsCreationDialog=function(p){return!!p&&p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.R.computeDisabledPostButton=function(p){if(!p)return null;p.isDisabled=!0;return p};
_.R.computeIsCreationDialogWithHeader=function(p){return!this.inPopupContainer&&!!p&&!!p.authorText&&p.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.R.computeIsHeaderHidden=function(p,J){return!p||J};
_.R.computeDropdownRendererClasses=function(p){return p?["text-secondary-style"]:[]};
_.R.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var p=_.Jn(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;p&&p.reset()};
Yl.prototype.onPopupClosed=Yl.prototype.onPopupClosed;Yl.prototype.onRequestSent=Yl.prototype.onRequestSent;Yl.prototype.onYtNavigate=Yl.prototype.onYtNavigate;Yl.prototype.onIronSelect=Yl.prototype.onIronSelect;Yl.prototype.onYtVideoLinkSelected=Yl.prototype.onYtVideoLinkSelected;Yl.prototype.onYtVideoLinkButtonCancel=Yl.prototype.onYtVideoLinkButtonCancel;Yl.prototype.onYtCommentboxLoadingEnd=Yl.prototype.onYtCommentboxLoadingEnd;Yl.prototype.onYtCommentboxLoadingStart=Yl.prototype.onYtCommentboxLoadingStart;
Yl.prototype.onYtCommentboxDismiss=Yl.prototype.onYtCommentboxDismiss;Yl.prototype.showButtonEduTooltip=Yl.prototype.showButtonEduTooltip;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Yl.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Yl.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Yl.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Yl.prototype,"isOpen",void 0);_.V([_.N({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],Yl.prototype,"buttonOverride",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Yl.prototype,"modern",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Yl.prototype,"roundedContainer",void 0);_.V([_.N(),_.Y("design:type",Object)],Yl.prototype,"dropdownButtonOverride",void 0);_.V([_.N({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.Y("design:type",Boolean)],Yl.prototype,"creationDisabled",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Yl.prototype,"enableCreationBox",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.Y("design:type",Boolean)],Yl.prototype,"isCreationDialog",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Yl.prototype,"inPopupContainer",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.Y("design:type",Boolean)],Yl.prototype,"isCreationDialogWithHeader",void 0);_.V([_.N(),_.Y("design:type",Object)],Yl.prototype,"accessRestriction",void 0);
_.V([_.N({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.Y("design:type",Array)],Yl.prototype,"dropdownRendererClasses",void 0);_.V([_.N(),_.Y("design:type",Object)],Yl.prototype,"isCommentboxLoading",void 0);_.V([_.N(),_.Y("design:type",Array)],Yl.prototype,"attachmentButtonIds",void 0);_.V([_.FM("#image-button"),_.Y("design:type",HTMLElement)],Yl.prototype,"imageButton",void 0);
_.V([_.FM("#image-poll-button"),_.Y("design:type",HTMLElement)],Yl.prototype,"imagePollButton",void 0);_.V([_.FM("#quiz-button"),_.Y("design:type",HTMLElement)],Yl.prototype,"quizButton",void 0);_.V([_.FM("#commentbox"),_.Y("design:type",Object)],Yl.prototype,"JSC$16097_commentbox",void 0);_.V([_.bO("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yl.prototype,"showButtonEduTooltip",null);
_.V([_.GI("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Yl.prototype,"onYtCommentboxDismiss",null);_.V([_.GI("yt-commentbox-loading-start"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Yl.prototype,"onYtCommentboxLoadingStart",null);
_.V([_.GI("yt-commentbox-loading-end"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Yl.prototype,"onYtCommentboxLoadingEnd",null);_.V([_.GI("yt-video-link-button-cancel"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Yl.prototype,"onYtVideoLinkButtonCancel",null);
_.V([_.GI("yt-video-link-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Yl.prototype,"onYtVideoLinkSelected",null);_.V([_.GI("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Yl.prototype,"onIronSelect",null);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Yl.prototype,"onYtNavigate",null);
_.V([_.GI("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Yl.prototype,"onRequestSent",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yl.prototype,"onPopupClosed",null);_.V([_.gw({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Yl);
_.l(Yl,"ytd-backstage-post-dialog-renderer",function(){if(I9U!==void 0)return I9U;var p=document.createElement("template");_.C(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"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\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>\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]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" 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 class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\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(_.r().content.cloneNode(!0),p.content.firstChild);return I9U=p},{mode:1});var spL;var gM8;var ri=function(){return _.T.apply(this,arguments)||this};
_.Q(ri,_.T);_.R=ri.prototype;_.R.computeHeartButtonStyle=function(p){return(p==null?0:p.styleType)?p.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.R.onYtButtonTap=function(){if(this.data.isEnabled){var p=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(p=this.getEndpoint(p))&&_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}})}else(p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(p)};
_.R.toggle=function(p){this.set("data.isHearted",p!==void 0?p:!this.data.isHearted)};
_.R.getEndpoint=function(p){var J,S=(J=this.data)==null?void 0:J.heartEndpoint,H;J=(H=this.data)==null?void 0:H.unheartEndpoint;if(S&&J)return p?J:S};
_.R.computeButtonAccessibility=function(p,J){var S,H,M=p==null?void 0:(S=p.heartedAccessibility)==null?void 0:(H=S.accessibilityData)==null?void 0:H.label,X,Z;p=p==null?void 0:(X=p.unheartedAccessibility)==null?void 0:(Z=X.accessibilityData)==null?void 0:Z.label;return J?M:p};
_.vh.Object.defineProperties(ri.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 _.z("kevlar_system_icons")&&!((p=this.data)==null||!p.isHearted)}}});
ri.prototype.onYtButtonTap=ri.prototype.onYtButtonTap;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],ri.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ri.prototype,"data",void 0);_.V([_.U("data.isHearted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ri.prototype,"heartTooltip",null);
_.V([_.U("data.isHearted"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ri.prototype,"iconFilled",null);_.V([_.N({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.Y("design:type",String)],ri.prototype,"buttonAccessibility",void 0);_.V([_.N({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],ri.prototype,"heartButtonStyle",void 0);
_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"onYtButtonTap",null);_.V([_.gw({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],ri);
_.l(ri,"ytd-creator-heart-renderer",function(){if(gM8!==void 0)return gM8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return gM8=p},{mode:1});var jf=function(){var p=_.T.apply(this,arguments)||this;p.hasCreatorReply=!1;p.buttonOverrides={size:"S",iconPosition:"icon-only"};p.replyButtonOverrides={size:"S",type:"text"};p.forceIconButton=!_.z("web_modern_buttons");p.modern=_.z("web_modern_buttons");p.buttonTooltipPosition="bottom";p.systemIcons=_.z("kevlar_system_icons");p.replyDialog=null;return p};
_.Q(jf,_.T);_.R=jf.prototype;
_.R.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]]"}}}}}};
_.R.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.R.dataChange=function(){this.replyDialog&&_.Jn(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var p,J,S;this.isLiked=this.systemIcons&&!!((p=this.data)==null?0:(J=p.likeButton)==null?0:(S=J.toggleButtonRenderer)==null?0:S.isToggled)};
_.R.computeShowVoteCountBeginning=function(p,J){return p===void 0||J===void 0?!0:p.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!J&&this.ytRendererBehavior.getSimpleString(J)!=="0"};
_.R.computeShowVoteCountEnd=function(p,J){return p===void 0||J===void 0?!0:p.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!J&&this.ytRendererBehavior.getSimpleString(J)!=="0"};
_.R.computeShowCommentCount=function(p,J){return p===void 0||J===void 0?!0:p.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!J&&this.ytRendererBehavior.getSimpleString(J)!=="0"};
_.R.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.R.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.R.showReplyDialog=function(p){p&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Jn(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=p,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.R.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.R.onRequestSent=function(p){p=_.K(p.detail);for(var J=p.next();!J.done;J=p.next())(J=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",J.value))&&this.showReplyDialog(J)};
_.R.onYtNavigate=function(p){var J,S;(p=(J=_.e(p.detail.endpoint,_.ZDM))==null?void 0:(S=J.dialog)==null?void 0:S.commentReplyDialogRenderer)&&this.showReplyDialog(p)};
_.R.onYtServiceRequestSent=function(p,J){p.stopPropagation();if(J.actions)for(p=0;p<J.actions.length;p++){var S=_.e(J.actions[p],UEp);S&&this.handleUpdateCommentVoteAction(S)}};
_.R.handleUpdateCommentVoteAction=function(p){this.voteCount=p.voteCount||_.aR("0");p.voteStatus==="LIKE"?this.JSC$16109_ytdDislikeToggleButtonRenderer.toggle(!1):p.voteStatus==="DISLIKE"?this.JSC$16109_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16109_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16109_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.R.computeReplyButtonHidden=function(p){return p};
_.R.computeReplyButtonBeginning=function(p){return(p==null?0:p.replyButton)&&p.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?p.replyButton:void 0};
_.R.computeReplyButtonEnd=function(p){return(p==null?0:p.replyButton)&&p.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?p.replyButton:void 0};
_.R.computeActionButtonStyle=function(p){return(p==null?0:p.style)?p.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.R.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.R.onYtToggleButton=function(p){var J,S;this.isLiked=this.systemIcons&&!!((J=p.detail)==null?0:(S=J.actions)==null?0:S.like)};
jf.prototype.onYtToggleButton=jf.prototype.onYtToggleButton;jf.prototype.onButtonTooltipPositionChanged=jf.prototype.onButtonTooltipPositionChanged;jf.prototype.onYtServiceRequestSent=jf.prototype.onYtServiceRequestSent;jf.prototype.onYtNavigate=jf.prototype.onYtNavigate;jf.prototype.onRequestSent=jf.prototype.onRequestSent;jf.prototype.onYtCommentboxDismiss=jf.prototype.onYtCommentboxDismiss;jf.prototype.dataChange=jf.prototype.dataChange;
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],jf.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],jf.prototype,"voteCount",void 0);_.V([_.N(),_.Y("design:type",Object)],jf.prototype,"commentCount",void 0);_.V([_.N(),_.Y("design:type",Object)],jf.prototype,"replyThumbnail",void 0);
_.V([_.N(),_.Y("design:type",Object)],jf.prototype,"hasCreatorReply",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jf.prototype,"enableCreationBox",void 0);_.V([_.N({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],jf.prototype,"actionButtonsStyle",void 0);_.V([_.N({computed:"computeReplyButtonBeginning(data)"}),_.Y("design:type",Object)],jf.prototype,"replyButtonBeginning",void 0);
_.V([_.N({computed:"computeReplyButtonEnd(data)"}),_.Y("design:type",Object)],jf.prototype,"replyButtonEnd",void 0);_.V([_.N(),_.Y("design:type",Object)],jf.prototype,"buttonOverrides",void 0);_.V([_.N(),_.Y("design:type",Object)],jf.prototype,"replyButtonOverrides",void 0);_.V([_.N(),_.Y("design:type",Object)],jf.prototype,"forceIconButton",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jf.prototype,"useCommentIcon",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jf.prototype,"modern",void 0);_.V([_.N(),_.Y("design:type",Object)],jf.prototype,"buttonTooltipPosition",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jf.prototype,"systemIcons",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jf.prototype,"isLiked",void 0);_.V([_.FM("ytd-button-renderer"),_.Y("design:type",Object)],jf.prototype,"ytdReplyButtonRenderer",void 0);
_.V([_.FM("#like-button"),_.Y("design:type",Object)],jf.prototype,"JSC$16109_ytdLikeToggleButtonRenderer",void 0);_.V([_.FM("#dislike-button"),_.Y("design:type",Object)],jf.prototype,"JSC$16109_ytdDislikeToggleButtonRenderer",void 0);_.V([_.FM("#reply-dialog"),_.Y("design:type",HTMLElement)],jf.prototype,"replyDialogElement",void 0);_.V([_.FM("#reply-button"),_.Y("design:type",HTMLElement)],jf.prototype,"replyButtonElement",void 0);
_.V([_.FM("#reply-button-end"),_.Y("design:type",HTMLElement)],jf.prototype,"replyButtonEndElement",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jf.prototype,"dataChange",null);_.V([_.GI("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jf.prototype,"onYtCommentboxDismiss",null);
_.V([_.GI("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jf.prototype,"onRequestSent",null);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jf.prototype,"onYtNavigate",null);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],jf.prototype,"onYtServiceRequestSent",null);_.V([_.bO("buttonTooltipPosition"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jf.prototype,"onButtonTooltipPositionChanged",null);
_.V([_.GI("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jf.prototype,"onYtToggleButton",null);_.V([_.gw({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],jf);
_.l(jf,"ytd-comment-action-buttons-renderer",function(){if(spL!==void 0)return spL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return spL=p},{mode:1});var t4M;var wi=function(){return _.T.apply(this,arguments)||this};
_.Q(wi,_.T);wi.prototype.focus=function(){_.Jn(this.hostElement).querySelector("#commentbox").focus()};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wi.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],wi.prototype,"zeroStepChannelCreationRenderer",void 0);_.V([_.gw({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],wi);
_.l(wi,"ytd-comment-dialog-renderer",function(){if(t4M!==void 0)return t4M;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return t4M=p},{mode:1});var he8;var xl=function(){var p=_.T.apply(this,arguments)||this;p.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.z("enable_web_delhi_icons")};p.replyButtonOverrides={size:"S",type:"text"};return p};
_.Q(xl,_.T);_.R=xl.prototype;_.R.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.R.detached=function(){this.replyBox&&this.replyBox.remove()};
_.R.showReplyDialog=function(p){if(p){var J=this.replyBox;J||(J=document.createElement("ytd-comment-reply-dialog-renderer"),J.id="replybox",_.Jn(this.replyDialogDiv).appendChild(J));J.data=p;this.replyDialogDiv.hidden=!1;J.openDialog()}};
_.R.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.R.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var p,J=_.e((p=this.toolbarSurface)==null?void 0:p.subscribersOnlyDisclaimerSnackbarCommand,_.Ua);J&&_.cf(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:J})}};
_.R.onYtServiceRequestSent=function(p,J){p.stopPropagation();if(J.actions)for(var S=0;S<J.actions.length;S++){var H=_.e(J.actions[S],UEp);H?this.handleUpdateCommentVoteAction(H):p.target===this.heartButton&&this.toggleHeartState()}};
_.R.handleUpdateCommentVoteAction=function(p){var J;(J=this.toolbarState)!=null&&J.key&&this.ytdReduxBehavior.dispatch(_.BY("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:p.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":p.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.R.toggleHeartState=function(){var p;(p=this.toolbarState)!=null&&p.key&&this.ytdReduxBehavior.dispatch(_.BY("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.vh.Object.defineProperties(xl.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return(((p=this.toolbarState)==null?void 0:p.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(J=this.toolbarData)==null?void 0:J.likeCountLiked:(S=this.toolbarData)==null?void 0:S.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}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.toolbarSurface)==null?void 0:p.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.toolbarSurface)==null?void 0:p.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.toolbarSurface)==null?void 0:p.prepareAccountCommand)!==void 0&&!_.z("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p,J=_.e((p=this.toolbarSurface)==null?void 0:p.prepareAccountCommand,_.Ua),S,H,M,X,Z,n,b,F,f;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((S=this.toolbarSharedData)==null||!S.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((H=this.toolbarState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:J!=null?J:_.e((M=this.toolbarSurface)==null?void 0:M.likeCommand,_.Ua),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:J!=null?J:_.e((X=this.toolbarSurface)==null?void 0:X.unlikeCommand,_.Ua),defaultCommand:this.isVisiblyDisabled?_.e((Z=this.toolbarSurface)==null?void 0:Z.commentDisabledActionCommand,_.Ua):void 0,defaultTooltip:(n=this.toolbarData)==null?void 0:n.likeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:b.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(F=this.toolbarData)==null?void 0:F.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(f=this.toolbarSharedData)==null?void 0:f.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p,J=_.e((p=this.toolbarSurface)==null?void 0:p.prepareAccountCommand,_.Ua),S,H,M,X,Z,n,b,F,f,O;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((S=this.toolbarSharedData)==null||!S.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((H=this.toolbarState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:J!=null?J:_.e((M=this.toolbarSurface)==null?void 0:M.dislikeCommand,_.Ua),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:J!=null?J:_.e((X=this.toolbarSurface)==null?void 0:X.undislikeCommand,_.Ua),defaultCommand:this.isVisiblyDisabled?_.e((Z=this.toolbarSurface)==null?void 0:Z.commentDisabledActionCommand,_.Ua):void 0,defaultTooltip:(n=this.toolbarData)==null?void 0:n.dislikeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:
b.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(F=this.toolbarSharedData)==null?void 0:F.dislikeReplyButtonA11y:(f=this.toolbarSharedData)==null?void 0:f.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(O=this.toolbarSharedData)==null?void 0:O.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var p,J,S;if(((p=this.toolbarState)==null?void 0:p.heartState)!==void 0&&((J=this.toolbarState)==null?void 0:J.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((S=this.toolbarState)==null?void 0:S.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var H,M,X,Z,n,b,F,f,O,A,P,W,y,t;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(H=this.toolbarData)==null?void 0:H.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((X=this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((Z=this.toolbarState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((n=this.toolbarState)==null?void 0:n.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.e((b=this.toolbarSurface)==null?void 0:b.heartCommand,
_.Ua),unheartEndpoint:this.isVisiblyDisabled?void 0:_.e((F=this.toolbarSurface)==null?void 0:F.unheartCommand,_.Ua),disabledEndpoint:this.isVisiblyDisabled?_.e((f=this.toolbarSurface)==null?void 0:f.commentDisabledActionCommand,_.Ua):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(O=this.toolbarData)==null?void 0:O.heartActiveTooltip,unheartedTooltip:(A=this.toolbarData)==null?void 0:A.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((P=
this.toolbarState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(W=this.toolbarSharedData)==null?void 0:W.unheartButtonA11y:(y=this.toolbarSharedData)==null?void 0:y.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(t=this.toolbarSharedData)==null?void 0:t.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;if((p=this.commentStrings)!=null&&p.replyButtonText){var J,S,H,M;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(J=this.commentStrings)==null?void 0:J.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.e((S=this.toolbarSurface)==null?void 0:S.replyCommand,_.Ua),command:this.isVisiblyDisabled?
_.e((H=this.toolbarSurface)==null?void 0:H.commentDisabledActionCommand,_.Ua):this.isSubsOnlyCommentsIneligibleUser?_.e((M=this.toolbarSurface)==null?void 0:M.subscribersOnlySnackbarCommand,_.Ua):void 0}}}}});
xl.prototype.onYtServiceRequestSent=xl.prototype.onYtServiceRequestSent;xl.prototype.hideReplyDialogDiv=xl.prototype.hideReplyDialogDiv;_.V([_.N(),_.Y("design:type",Object)],xl.prototype,"commentStrings",void 0);_.V([_.N(),_.Y("design:type",Boolean)],xl.prototype,"isReply",void 0);_.V([_.N(),_.Y("design:type",Object)],xl.prototype,"toolbarData",void 0);_.V([_.N(),_.Y("design:type",Object)],xl.prototype,"toolbarSharedData",void 0);
_.V([_.N(),_.Y("design:type",String)],xl.prototype,"toolbarStateKey",void 0);_.V([_.N(),_.Y("design:type",String)],xl.prototype,"toolbarSurfaceKey",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],xl.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],xl.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.QJ),_.Y("design:type",Object)],xl.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.FM("#reply-dialog"),_.Y("design:type",HTMLElement)],xl.prototype,"replyDialogDiv",void 0);_.V([_.FM("#replybox"),_.Y("design:type",Object)],xl.prototype,"replyBox",void 0);_.V([_.FM("ytd-creator-heart-renderer"),_.Y("design:type",Object)],xl.prototype,"heartButton",void 0);_.V([_.N({selector:function(p,J){return _.RR(p.entities,"engagementToolbarStateEntityPayload",J)},
selectorArgs:["toolbarStateKey"]}),_.Y("design:type",Object)],xl.prototype,"toolbarState",void 0);_.V([_.N({selector:MXi,selectorArgs:["toolbarSurfaceKey"]}),_.Y("design:type",Object)],xl.prototype,"toolbarSurface",void 0);_.V([_.N(),_.Y("design:type",Object)],xl.prototype,"buttonOverrides",void 0);_.V([_.GI("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xl.prototype,"hideReplyDialogDiv",null);
_.V([_.U("toolbarData","toolbarState"),_.Y("design:type",String),_.Y("design:paramtypes",[])],xl.prototype,"likeCount",null);_.V([_.U("likeCount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xl.prototype,"showLikeCount",null);_.V([_.U("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xl.prototype,"isVisiblyDisabled",null);_.V([_.U("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xl.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.V([_.U("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xl.prototype,"isSubsOnlyCommentsEligibleUser",null);_.V([_.U("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xl.prototype,"hasPrepareAccountCommand",null);_.V([_.U("toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xl.prototype,"likeToggleButtonRenderer",null);
_.V([_.U("isReply","toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xl.prototype,"dislikeToggleButtonRenderer",null);_.V([_.U("toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xl.prototype,"creatorHeartSupportedRenderer",null);_.V([_.U("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xl.prototype,"hasReplyCommand",null);
_.V([_.U("toolbarSurface","commentStrings","isVisiblyDisabled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xl.prototype,"replyButtonRenderer",null);_.V([_.N(),_.Y("design:type",Object)],xl.prototype,"replyButtonOverrides",void 0);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],xl.prototype,"onYtServiceRequestSent",null);_.V([_.gw({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],xl);
_.l(xl,"ytd-comment-engagement-bar",function(){if(he8!==void 0)return he8;var p=document.createElement("template");_.C(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]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return he8=p},{mode:1});var Dh8;var cF=function(){return _.T.apply(this,arguments)||this};
_.Q(cF,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],cF.prototype,"data",void 0);_.V([_.gw({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],cF);
_.l(cF,"ytd-comment-inline-thumbnail-renderer",function(){if(Dh8!==void 0)return Dh8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Dh8=p},{mode:1});var k4U;var I3=function(){return _.T.apply(this,arguments)||this};
_.Q(I3,_.T);I3.prototype.onMessageTap=function(){if(this.onTapCommand){var p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);p&&this.ytdOpenPopupBehavior.openPopup(p)}};
_.vh.Object.defineProperties(I3.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return(p=this.data)==null?void 0:(J=p.button)==null?void 0:(S=J.buttonRenderer)==null?void 0:S.command}}});
_.V([_.B(_.QJ),_.Y("design:type",Object)],I3.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],I3.prototype,"data",void 0);_.V([_.U("data.button.buttonRenderer.command"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I3.prototype,"onTapCommand",null);_.V([_.gw({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],I3);
_.l(I3,"ytd-comment-pause-composer-renderer",function(){if(k4U!==void 0)return k4U;var p=document.createElement("template");_.C(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" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return k4U=p},{mode:1});var N8E;var T8n;var Lf=function(){var p=_.T.apply(this,arguments)||this;p.isOpen=!1;return p};
_.Q(Lf,_.T);_.R=Lf.prototype;_.R.dataChanged=function(){this.isOpen=!1};
_.R.onTap=function(){this.data&&(this.data.navigationEndpoint?_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.R.focus=function(){this.JSC$16138_commentbox.focus()};
_.R.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.R.openDialog=function(){this.isOpen=!0;this.JSC$16138_commentbox.focus();this.JSC$16138_commentbox.maybeHeightChanged()};
Lf.prototype.onYtCommentboxDismiss=Lf.prototype.onYtCommentboxDismiss;Lf.prototype.dataChanged=Lf.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Lf.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Lf.prototype,"isOpen",void 0);_.V([_.FM("#commentbox"),_.Y("design:type",Object)],Lf.prototype,"JSC$16138_commentbox",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lf.prototype,"dataChanged",null);_.V([_.GI("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Lf.prototype,"onYtCommentboxDismiss",null);_.V([_.gw({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],Lf);
_.l(Lf,"ytd-comment-reply-dialog-renderer",function(){if(T8n!==void 0)return T8n;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return T8n=p},{mode:1});var dhE;var p0=function(){return _.T.apply(this,arguments)||this};
_.Q(p0,_.T);_.vh.Object.defineProperties(p0.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var p,J,S=(p=this.data)==null?void 0:(J=p.icon)==null?void 0:J.iconType;return S?"yt-icons:"+S.toLowerCase():null}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],p0.prototype,"data",void 0);_.V([_.N(),_.U("data.icon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],p0.prototype,"icon",null);_.V([_.gw({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],p0);
_.l(p0,"ytd-pinned-comment-badge-renderer",function(){if(dhE!==void 0)return dhE;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return dhE=p},{mode:1});var uRm;var lwE={},V44={input:!0,meta:!0,br:!0,link:!0,img:!0},Jv=null;lwE.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(){Jv==null&&(Jv=document.createElement("tp-yt-paper-tooltip"),Jv.offset=8,Jv.fitToVisibleBounds=!0)},
onMouseOver_:function(p){if(p=_.ar(p.target,function(M){return M==this||M.getAttribute&&M.getAttribute("shared-tooltip-text")}.bind(this),!0)){var J=p.getAttribute("shared-tooltip-text");
if(J){var S=this,H=null;p!=this&&(p.tagName.toLowerCase()in V44?S=p.parentElement:S=p,p.id&&(H=p.id));this.polymerController.createTooltipIfRequired_();if(Jv.parentElement!=S||Jv.for!=H)(0,_.Rf)(Jv).textContent=J,_.Jn(S).appendChild(Jv),Jv.for=H,Jv.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Jv.position=this.polymerController.sharedTooltipPosition}}}};var Sw=function(){return _.T.apply(this,arguments)||this};
_.Q(Sw,_.T);Sw.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]]"}}}}}};
Sw.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var p;((p=this.data)==null?0:p.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var J;((J=this.data)==null?0:J.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Sw.prototype.colorChanged=function(){var p,J,S,H=(p=this.data)==null?void 0:(J=p.color)==null?void 0:(S=J.basicColorPaletteData)==null?void 0:S.foregroundBodyColor;H&&(this.rgbBadgeColor=_.yi(H));_.Jn(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Sw.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")};
Sw.prototype.tooltipChanged=Sw.prototype.tooltipChanged;Sw.prototype.colorChanged=Sw.prototype.colorChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Sw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(lwE.YtSharedTooltipBehavior),_.Y("design:type",Object)],Sw.prototype,"ytSharedTooltipBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Sw.prototype,"data",void 0);
_.V([_.N({value:"#4285F4"}),_.Y("design:type",String)],Sw.prototype,"rgbBadgeColor",void 0);_.V([_.bO("data.color"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sw.prototype,"colorChanged",null);_.V([_.bO("data.tooltip"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sw.prototype,"tooltipChanged",null);_.V([_.gw({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Sw);
_.l(Sw,"ytd-sponsor-comment-badge-renderer",function(){if(uRm!==void 0)return uRm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return uRm=p},{mode:1});var qmv;var aw8;var HD=function(){return _.T.apply(this,arguments)||this};
_.Q(HD,_.T);HD.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"}};
HD.prototype.updateStateIdentifier=function(p){if(this.viewModel.triStateKey){var J=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.BY("triStateButtonStateEntityPayload",J,{key:J,stateIdentifier:p}))}};
HD.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")}};
_.vh.Object.defineProperties(HD.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)||""}}});
_.V([_.N(),_.Y("design:type",Object)],HD.prototype,"viewModel",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],HD.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],HD.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.V([_.N({selector:XSX,selectorArgs:["viewModel.triStateKey"]}),_.Y("design:type",Object)],HD.prototype,"triStateButtonStateEntity",void 0);
_.V([_.N({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.Y("design:type",String)],HD.prototype,"state",void 0);_.V([_.U("viewModel","state"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],HD.prototype,"data",null);_.V([_.U("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],HD.prototype,"buttonText",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],HD);
_.l(HD,"ytd-tri-state-button-view-model",function(){if(aw8!==void 0)return aw8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return aw8=p},{mode:1});var EMM;var Ym8;var MC=function(){var p=_.T.apply(this,arguments)||this;p.defaultIconToFilled=!_.z("kevlar_fill_comment_chip_icon_killswitch");return p};
_.Q(MC,_.T);MC.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
MC.prototype.dataChanged=function(){if(this.data){var p,J;((p=this.data.chipColorPalette)==null?0:p.backgroundColor)&&((J=this.data.chipColorPalette)==null?0:J.foregroundTitleColor)&&_.K3(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Bt(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Bt(this.data.chipColorPalette.foregroundTitleColor)});var S;((S=this.data)==null?0:S.command)?(_.K3(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.K3(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}};
MC.prototype.onTap=function(){var p;if(this.data&&(p=this.data)!=null&&p.command){var J;this.ytComponentBehavior.resolveCommand((J=this.data)==null?void 0:J.command)}};
MC.prototype.getIconSize=function(){return _.z("kevlar_fill_comment_chip_icon_killswitch")?24:12};
MC.prototype.onTap=MC.prototype.onTap;MC.prototype.dataChanged=MC.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],MC.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.ua),_.Y("design:type",Object)],MC.prototype,"ironA11yKeysBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],MC.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],MC.prototype,"basePriceText",void 0);_.V([_.N(),_.Y("design:type",Object)],MC.prototype,"chipIcon",void 0);_.V([_.N(),_.Y("design:type",Object)],MC.prototype,"defaultIconToFilled",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MC.prototype,"dataChanged",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MC.prototype,"onTap",null);
_.V([_.sD({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],MC);
_.l(MC,"yt-pdg-comment-chip-renderer",function(){if(Ym8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;EMM===void 0&&(EMM=document.createElement("template"));var H=EMM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Ym8=p}p=Ym8;return p},{mode:2});var Xr=function(){var p=_.T.apply(this,arguments)||this;p.useSmallAvatars=_.z("small_avatars_for_comments");p.commentThreadingEnabled=_.z("web_delhi_comment_threads");p.webWatchCompactComments=_.z("web_watch_compact_comments");p.editDialog=null;return p};
_.Q(Xr,_.T);_.R=Xr.prototype;_.R.onShow=function(){_.Cl("cmv",void 0,"wn_comments")};
_.R.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"}}}};
_.R.detached=function(){this.editDialog=null;this.expander.reset()};
_.R.updateBackgroundColor=function(){if(this.backgroundColor){var p={"--ytd-comment-paid-background-color":_.Bt(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.K3(this.hostElement,p)}else _.K3(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.R.resetExpander=function(){var p;(p=this.expander)==null||p.reset()};
_.R.openEditDialog=function(p){p.dialog&&(this.editDialog=p.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.R.onYtNavigate=function(p){var J=p.detail.endpoint;if(J=_.e(J,_.nNU)||_.e(J,_.G_m))p.stopPropagation(),this.openEditDialog(J)};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null;_.K3(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.R.onAuthorThumbnailClicked=function(){_.z("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.R.onYtCommentboxResize=function(p){var J;(p==null?0:(J=p.detail)==null?0:J.height)&&_.K3(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":p.detail.height+"px"})};
_.vh.Object.defineProperties(Xr.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,J=(p=this.commentEntity)==null?void 0:p.author;return J&&(J.isCreator||J.isVerified||J.isArtist)?{renderer:{authorEndpoint:J.channelPageEndpoint?_.e(J.channelPageEndpoint,_.Ua):_.e(J.channelCommand,_.Ua),authorText:{runs:[{text:J.displayName}]},color:J.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:J.isArtist?{iconType:"AUDIO_BADGE"}:
J.isVerified?{iconType:J.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:J.isArtist||J.isVerified?J.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var p,J=(p=this.commentEntity)==null?void 0:p.author;return J!=null&&J.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:J.sponsorBadgeUrl}]},tooltip:J.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var p;return _.e((p=this.commentSurfaceEntity)==null?void 0:p.pdgCommentChip,_.uNo)||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 _.e((p=this.commentSurfaceEntity)==null?void 0:p.voiceReplyContainerViewModel,dEU)||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,J;return(J=(p=this.commentSurfaceEntity)==null?void 0:p.commentBackgroundColor)!=null?J:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.z("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var p,J;return(((p=this.commentEntity)==null?void 0:(J=p.properties)==null?void 0:J.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var p,J;if(_.z("enable_profile_cards_on_comments")&&((p=this.commentEntity)==null?0:(J=p.author)==null?0:J.profileCardEndpoint)&&this.viewModel.allowProfileCard){var S,H;return _.e((S=this.commentEntity)==null?void 0:(H=S.author)==null?void 0:H.profileCardEndpoint,_.Ua)}var M,X;return _.e((M=this.commentEntity)==null?void 0:(X=M.avatar)==null?void 0:X.endpoint,_.Ua)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var p,J;if(_.z("enable_profile_cards_on_comments")&&((p=this.commentEntity)==null?0:(J=p.author)==null?0:J.channelPageEndpoint)){var S,H;return _.e((S=this.commentEntity)==null?void 0:(H=S.author)==null?void 0:H.channelPageEndpoint,_.Ua)}var M,X;return _.e((M=this.commentEntity)==null?void 0:(X=M.avatar)==null?void 0:X.endpoint,_.Ua)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H,M=(p=this.commentEntity)==null?void 0:(J=p.avatar)==null?void 0:(S=J.image)==null?void 0:(H=S.sources)==null?void 0:H[0];return M?{thumbnails:[{url:M.url,width:M.width,height:M.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.commentEntity)==null?0:(J=p.author)==null?0:J.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.commentEntity)==null?void 0:(J=p.author)==null?void 0:J.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.commentEntity)==null?void 0:(J=p.properties)==null?void 0:J.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var p;return _.e((p=this.commentSurfaceEntity)==null?void 0:p.publishedTimeCommand,_.Ua)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var p,J;if(((p=this.commentEntity)==null?0:p.translatedContent)&&((J=this.translateButtonState)==null?void 0:J.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var S;if((S=this.voiceReplyContainerViewModel)==null?0:S.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var H,M;return((H=this.commentEntity)==null?void 0:(M=H.properties)==null?void 0:M.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.commentSharedEntity)==null?void 0:(J=p.strings)==null?void 0:J.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.commentSharedEntity)==null?void 0:(J=p.strings)==null?void 0:J.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,J,S=(J=_.e((p=this.viewModel)==null?void 0:p.translateButton,TSp))!=null?J:{},H,M,X,Z,n,b,F,f,O,A,P;return Object.assign({},S,{untoggledStateData:Object.assign({},S.untoggledStateData,{buttonText:(H=this.commentEntity)==null?void 0:(M=H.translateData)==null?void 0:M.text}),togglingStateData:Object.assign({},S.togglingStateData,{buttonText:(X=this.commentSharedEntity)==null?
void 0:(Z=X.strings)==null?void 0:Z.translatingText}),toggledStateData:Object.assign({},S.toggledStateData,{buttonText:(n=this.commentSharedEntity)==null?void 0:(b=n.strings)==null?void 0:b.seeOriginalText}),transitionCommand:((F=this.commentEntity)==null?0:F.translatedContent)?void 0:_.e((f=this.commentEntity)==null?void 0:(O=f.translateData)==null?void 0:O.translateComment,_.Ua),triStateKey:(A=this.commentEntity)==null?void 0:(P=A.properties)==null?void 0:P.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return((J=_.e(_.e((p=this.toolbarSurface)==null?void 0:p.menuCommand,_.Ua),bD8))==null?void 0:(S=J.menu)==null?void 0:S.menuRenderer)||null}}});
Xr.prototype.onYtCommentboxResize=Xr.prototype.onYtCommentboxResize;Xr.prototype.onYtCommentboxDismiss=Xr.prototype.onYtCommentboxDismiss;Xr.prototype.onYtNavigate=Xr.prototype.onYtNavigate;Xr.prototype.resetExpander=Xr.prototype.resetExpander;Xr.prototype.updateBackgroundColor=Xr.prototype.updateBackgroundColor;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Xr.prototype,"ytdReduxBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Xr.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.FM("#author-thumbnail > button"),_.Y("design:type",HTMLElement)],Xr.prototype,"authorThumbnailAnchor",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xr.prototype,"linked",null);
_.V([_.U("viewModel","linked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"linkedCommentBadge",null);_.V([_.N({reflectToAttribute:!0}),_.U("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xr.prototype,"pinned",null);_.V([_.U("viewModel","pinned"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"pinnedCommentBadge",null);
_.V([_.U("commentEntity","commentSharedEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"authorCommentBadge",null);_.V([_.N({reflectToAttribute:!0}),_.U("authorCommentBadge"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"hasAuthorBadge",null);_.V([_.U("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"sponsorCommentBadge",null);
_.V([_.N({reflectToAttribute:!0}),_.U("sponsorCommentBadge"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"hasSponsorBadge",null);_.V([_.U("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"pdgCommentChipRenderer",null);_.V([_.N({reflectToAttribute:!0}),_.U("voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"hasVoiceReply",null);
_.V([_.U("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"voiceReplyContainerViewModel",null);_.V([_.U("voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"voiceReplyUnavailableText",null);_.V([_.N(),_.Y("design:type",Object)],Xr.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"viewModel",null);
_.V([_.N({selector:function(p,J){return _.RR(p.entities,"commentSharedEntityPayload",J)},
selectorArgs:["viewModel.sharedKey"]}),_.Y("design:type",Object)],Xr.prototype,"commentSharedEntity",void 0);_.V([_.N({selector:Hp9,selectorArgs:["viewModel.commentKey"]}),_.Y("design:type",Object)],Xr.prototype,"commentEntity",void 0);_.V([_.N({selector:function(p,J){return _.RR(p.entities,"commentSurfaceEntityPayload",J)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.Y("design:type",Object)],Xr.prototype,"commentSurfaceEntity",void 0);_.V([_.N({selector:MXi,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.Y("design:type",Object)],Xr.prototype,"toolbarSurface",void 0);_.V([_.N({selector:XSX,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.Y("design:type",Object)],Xr.prototype,"translateButtonState",void 0);
_.V([_.U("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"backgroundColor",null);_.V([_.N({reflectToAttribute:!0}),_.U("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xr.prototype,"optimalReadingWidthComments",null);_.V([_.FM("ytd-expander"),_.Y("design:type",Object)],Xr.prototype,"expander",void 0);
_.V([_.bO("backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xr.prototype,"updateBackgroundColor",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Xr.prototype,"useSmallAvatars",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Xr.prototype,"engagementPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Xr.prototype,"commentThreadingEnabled",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Xr.prototype,"webWatchCompactComments",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"isReply",null);_.V([_.U("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"authorThumbnailEndpoint",null);_.V([_.U("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"authorNameEndpoint",null);
_.V([_.U("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"authorThumbnail",null);_.V([_.U("commentEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Xr.prototype,"authorTextClass",null);_.V([_.U("commentEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Xr.prototype,"authorChannelName",null);_.V([_.U("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"publishedTime",null);
_.V([_.U("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"publishedTimeCommand",null);_.V([_.U("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"contentText",null);_.V([_.bO("contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xr.prototype,"resetExpander",null);
_.V([_.U("commentEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xr.prototype,"shouldShowReadMoreInitially",null);_.V([_.U("commentSharedEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Xr.prototype,"expandText",null);_.V([_.U("commentSharedEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Xr.prototype,"collapseText",null);_.V([_.U("commentEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xr.prototype,"shouldShowTranslateButton",null);
_.V([_.U("commentEntity","commentSharedEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"translateButton",null);_.V([_.U("toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"overflowMenuRenderer",null);_.V([_.N(),_.Y("design:type",Object)],Xr.prototype,"editDialog",void 0);_.V([_.FM("ytd-comment-dialog-renderer"),_.Y("design:type",Object)],Xr.prototype,"editCommentDialogContainer",void 0);
_.V([_.FM("ytd-comment-reply-dialog-renderer"),_.Y("design:type",Object)],Xr.prototype,"editReplyDialogContainer",void 0);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xr.prototype,"onYtNavigate",null);_.V([_.GI("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xr.prototype,"onYtCommentboxDismiss",null);
_.V([_.GI("yt-commentbox-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xr.prototype,"onYtCommentboxResize",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Xr);
_.l(Xr,"ytd-comment-view-model",function(){if(qmv!==void 0)return qmv;var p=document.createElement("template");_.C(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"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return qmv=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});_.ci(_.d(function(p){var J={};return _.m("yt-sub-thread",{class:_.XB("ytSubThreadHost",(J.ytSubThreadHasButton=p.isButton,J.ytSubThreadHovered=p.hovered,J.ytSubThreadTopLevelThread=function(){var S,H;return((S=p.topLevelThread)==null?void 0:S.call(p))&&!(_.z("small_avatars_for_comments")&&((H=p.engagementPanel)==null?0:H.call(p)))},J))},_.m("div",{class:"ytSubThreadThreadline"},_.m(_.v,{cond:function(){var S;
return!((S=p.isTeaser)==null?0:S.call(p))},
then:function(){return _.m("div",{class:"ytSubThreadConnection"})}}),_.m("div",{class:"ytSubThreadContinuation"}),_.m("div",{class:"ytSubThreadShadow"})),_.m("div",{class:"ytSubThreadSubThreadContent"},p.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.fD,
isTeaser:_.fD,hovered:_.fD,topLevelThread:_.fD,engagementPanel:_.fD}});var iN=function(){var p=_.T.apply(this,arguments)||this;p.modern=_.z("web_modern_buttons");p.commentThreadingEnabled=_.z("web_delhi_comment_threads");p.isWatchGrid=_.z("kevlar_watch_grid");p.buttonOverrides=p.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};p.JSC$16184_spinnerEl=null;return p};
_.Q(iN,_.T);_.R=iN.prototype;_.R.configureContinuationPathMap=function(){return _.z("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.R.shouldShowLegacyTeasers=function(p,J){return p&&!J};
_.R.shouldShowExpandedThreads=function(p,J){return this.commentThreadingEnabled&&J&&(p==null?void 0:p.length)>0};
_.R.shouldShowCollapsedThreads=function(p,J){return this.commentThreadingEnabled&&!J&&p};
_.R.computeCommentViewModel=function(p){return _.e(p,NSM)};
_.R.computeThreadRenderer=function(p){return _.e(p,sLo)};
_.R.computeIsContinuationItem=function(p){return!!this.computeContinuationItemRenderer(p)};
_.R.computeButtonRenderer=function(p){return _.e(p,_.Za)};
_.R.computeContinuationItemRenderer=function(p){return _.e(p,_.js)};
_.R.computeShowButton=function(p){var J;return!((J=this.computeContinuationItemRenderer(p))==null||!J.button)};
_.R.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.R.attached=function(){this.isShowRepliesVisible=!0};
_.R.dataChanged=function(){var p=this.expanderContents;p&&(p.hidden=!0);this.isLoading=!1};
_.R.endsInContinuation=function(p){return!!p&&p.length>0&&!!this.computeContinuationItemRenderer(p[p.length-1])};
_.R.computeShouldShowHideRepliesButton=function(p,J){return!p&&J};
_.R.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.R.isLoadingChanged=function(){this.isLoading&&!this.JSC$16184_spinnerEl&&(this.JSC$16184_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Jn(this.expanderContents).appendChild(this.JSC$16184_spinnerEl));this.JSC$16184_spinnerEl&&(this.JSC$16184_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var p;(p=this.contents)==null||p.classList.remove("reloading")}};
_.R.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var p=_.e(this.data.viewReplies,_.Za);p&&this.ytRendererBehavior.logExplicitClick(p);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.R.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var p=_.e(this.data.hideReplies,_.Za);p&&this.ytRendererBehavior.logExplicitClick(p);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.R.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var p=_.Jn(this.hostElement).querySelector("#expander-contents");p&&(p.hidden=this.isShowRepliesVisible)}};
_.R.computeAlign=function(){if(this.modern){var p;return!((p=this.data)==null?0:p.viewRepliesCreatorThumbnail)}};
_.vh.Object.defineProperties(iN.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var p,J;return this.endsInContinuation((p=this.data)==null?void 0:p.contents)||this.commentThreadingEnabled&&this.endsInContinuation((J=this.data)==null?void 0:J.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var p;return(p=this.data)==null?void 0:p.teaserContents}}});
iN.prototype.isShowMoreChanged=iN.prototype.isShowMoreChanged;iN.prototype.isLoadingChanged=iN.prototype.isLoadingChanged;iN.prototype.triggerFirstContinuation=iN.prototype.triggerFirstContinuation;iN.prototype.dataChanged=iN.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],iN.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.$W),_.Y("design:type",Object)],iN.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],iN.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],iN.prototype,"modern",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],iN.prototype,"commentThreadingEnabled",void 0);_.V([_.N(),_.Y("design:type",Boolean)],iN.prototype,"expanded",void 0);
_.V([_.N(),_.Y("design:type",Function)],iN.prototype,"toggleExpanded",void 0);_.V([_.N(),_.Y("design:type",Array)],iN.prototype,"addedReplies",void 0);_.V([_.N(),_.Y("design:type",Boolean)],iN.prototype,"hovered",void 0);_.V([_.N(),_.Y("design:type",Boolean)],iN.prototype,"topLevelThread",void 0);_.V([_.N(),_.Y("design:type",Boolean)],iN.prototype,"isLoading",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],iN.prototype,"isShowRepliesVisible",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],iN.prototype,"useNewFormatting",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],iN.prototype,"engagementPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],iN.prototype,"isWatchGrid",void 0);_.V([_.N(),_.Y("design:type",Object)],iN.prototype,"buttonOverrides",void 0);_.V([_.FM("#expander-contents"),_.Y("design:type",HTMLElement)],iN.prototype,"expanderContents",void 0);
_.V([_.FM("ytd-continuation-item-renderer"),_.Y("design:type",Object)],iN.prototype,"continuationItemRenderer",void 0);_.V([_.FM("#contents"),_.Y("design:type",HTMLElement)],iN.prototype,"contents",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iN.prototype,"dataChanged",null);_.V([_.U("data.contents","data.subThreads.*"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],iN.prototype,"hasContinuation",null);
_.V([_.U("data.teaserContents"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iN.prototype,"subThreadTeasers",null);_.V([_.GI("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iN.prototype,"triggerFirstContinuation",null);_.V([_.bO("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iN.prototype,"isLoadingChanged",null);
_.V([_.bO("isShowRepliesVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iN.prototype,"isShowMoreChanged",null);_.V([_.gw({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],iN);
_.l(iN,"ytd-comment-replies-renderer",function(){if(N8E!==void 0)return N8E;var p=document.createElement("template");_.C(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="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return N8E=p},{mode:1});var rgL;var Re=function(){var p=_.T.apply(this,arguments)||this;p.isOpen=!1;p.commentDialog=null;p.useSmallAvatars=_.z("small_avatars_for_comments");p.useSmallAvatarsEngagementPanelOnly=_.z("small_avatars_for_comments_ep");p.placeholderFocusListener=null;p.hasOpenedDialog=!1;p.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return p};
_.Q(Re,_.T);_.R=Re.prototype;_.R.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]]"}}}}}};
_.R.ready=function(){var p=this,J=_.Jn(this.hostElement).querySelector("#placeholder-area"),S=_.Jn(this.hostElement).querySelector("#simplebox-placeholder"),H=function(M){M.stopPropagation();M instanceof KeyboardEvent&&M.type==="keypress"&&M.keyCode!==13&&M.keyCode!==32||p.openDialog()};
this.placeholderFocusListener=H;S.addEventListener("focus",this.placeholderFocusListener);J.addEventListener("tap",H);J.addEventListener("keypress",H)};
_.R.maybeRemoveFocusEventListener=function(){var p;(p=this.data)!=null&&p.prepareAccountEndpoint&&!_.z("web_comments_simplebox_modal_focus_on_tap_ks")&&(p=_.Jn(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(p.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.R.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.R.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.z("web_comment_simplebox_resolve_polymer_command_ks")?_.R4.instance.resolveCommand(this.data.prepareAccountEndpoint):_.KI(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);p&&this.ytdOpenPopupBehavior.openPopup(p);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Jn(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.R.onYtCommentboxDismiss=function(p){p.stopPropagation();this.isOpen=!1};
_.R.onCreateCommentAction=function(p){this.get("createCommentAction.contents",p)&&(this.isOpen=!1)};
_.R.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}};
_.R.onHideIdentityChip=function(p){_.e(p,WZM)&&this.set("data.placeholderText",_.e(p,WZM).placeholderText)};
Re.prototype.onYtCommentboxDismiss=Re.prototype.onYtCommentboxDismiss;Re.prototype.dataChanged=Re.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Re.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],Re.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Re.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Re.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Re.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Re.prototype,"isOpen",void 0);_.V([_.N(),_.Y("design:type",Object)],Re.prototype,"commentDialog",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Re.prototype,"engagementPanel",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Re.prototype,"useSmallAvatars",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Re.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Re.prototype,"enableCreationBox",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Re.prototype,"showCreateDialog",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Re.prototype,"dataChanged",null);_.V([_.GI("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Re.prototype,"onYtCommentboxDismiss",null);_.V([_.gw({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Re);
_.l(Re,"ytd-comment-simplebox-renderer",function(){if(rgL!==void 0)return rgL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return rgL=p},{mode:1});var jp8;_.QI("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var K0=function(){var p=_.T.apply(this,arguments)||this;p.addHoverEffect=_.z("swatcheroo_comments_hover_effect");p.useSmallAvatars=_.z("small_avatars_for_comments");p.scrollingEnabled=_.z("web_comment_threading_scroll_on_collapse");p.isSubThread=!1;p.threadHovered=!1;p.expanded=!1;p.removed=!1;p.addedReplies=[];p.actionMap=p.configureActionMap();p.toggleExpanded=function(){p.expanded=!p.expanded;!p.expanded&&p.scrollingEnabled&&_.IV(p.hostElement,"yt-scroll-to-comment-element",[p.commentElement])};
return p};
_.Q(K0,_.T);_.R=K0.prototype;_.R.configureActionMap=function(){return _.z("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.R.createCommentReplyAction=function(p){p=_.e(p,oed);if(p!=null&&p.contents){var J=p.replyToCommentId,S=p.parentCommentId,H,M=(H=this.commentViewModel)==null?void 0:H.commentId;(M===J||M===S&&!J)&&this.maybeAttachReply(p.contents)}};
_.R.maybeAttachReply=function(p){var J,S;(((J=this.commentEntity)==null?void 0:(S=J.properties)==null?void 0:S.replyLevel)||0)>=3?_.cf(this.hostElement,"yt-pushed-create-comment-reply",p):this.attachReply(p)};
_.R.onPushedCreateCommentReply=function(p){var J,S;(((J=this.commentEntity)==null?void 0:(S=J.properties)==null?void 0:S.replyLevel)||0)>=3||(this.attachReply(p.detail),p.stopPropagation())};
_.R.attachReply=function(p){var J;((J=this.data)==null?0:J.replies)?(J=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+J+".continuationItemRenderer")?J===0?this.push("addedReplies",p):this.splice("data.replies.commentRepliesRenderer.subThreads",J,0,p):this.push("data.replies.commentRepliesRenderer.subThreads",p)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[p],viewReplies:{buttonRenderer:{text:_.I5(_.Kl("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.R.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.dW(this.addedReplies))),this.set("addedReplies",[]))};
_.R.removeCommentAction=function(p){p=_.e(p,y3m);var J=p==null?void 0:p.commentId,S;J&&((S=this.commentViewModel)==null?void 0:S.commentId)===J&&this.maybeRemoveComment(p.actionResult)};
_.R.banAuthorAction=function(p){p=_.e(p,zh8);var J=p==null?void 0:p.commentId,S;J&&((S=this.commentViewModel)==null?void 0:S.commentId)===J&&this.maybeRemoveComment(p.actionResult)};
_.R.hideReportedCommentAction=function(p){p=_.e(p,q28);var J=p==null?void 0:p.commentId,S;J&&((S=this.commentViewModel)==null?void 0:S.commentId)===J&&this.maybeRemoveComment(p.actionResult)};
_.R.maybeRemoveComment=function(p){p&&p.status==="STATUS_SUCCEEDED"&&(this.feedbackText=p.feedbackText||_.I5("Reply removed"),this.removed=!0)};
_.R.onTap=function(p){if(this.addHoverEffect&&!this.engagementPanel&&!_.jK(_.Er(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var J;((J=window.getSelection())==null?0:J.toString().length)||_.KI({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.R.attached=function(){var p=this;this.isSubThread&&(this.expanded=!0);var J;(J=this.commentThreadHitbox)==null||J.addEventListener("mouseover",function(){p.threadHovered=!0});
var S;(S=this.commentThreadHitbox)==null||S.addEventListener("mouseout",function(){p.threadHovered=!1});
var H;(H=this.commentThreadHitbox)==null||H.addEventListener("click",function(){p.maybeToggleExpanded()})};
_.R.onDataChanged=function(){var p=_.z("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(p)&&this.set(p,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.R.maybeToggleExpanded=function(){var p,J,S,H=(p=this.data)==null?void 0:(J=p.replies)==null?void 0:(S=J.commentRepliesRenderer)==null?void 0:S.subThreads,M;(H==null?void 0:H.length)===1&&((M=_.e(H[0],_.js))==null?0:M.button)&&this.expanded||this.toggleExpanded()};
_.vh.Object.defineProperties(K0.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var p;return _.e((p=this.data)==null?void 0:p.commentViewModel,NSM)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return _.z("web_delhi_comment_threads")&&!!((p=this.data)==null?0:(J=p.replies)==null?0:(S=J.commentRepliesRenderer)==null?0:S.subThreads)}}});
K0.prototype.onDataChanged=K0.prototype.onDataChanged;K0.prototype.onTap=K0.prototype.onTap;K0.prototype.onAppendContinuationItemsActionFinished=K0.prototype.onAppendContinuationItemsActionFinished;K0.prototype.onPushedCreateCommentReply=K0.prototype.onPushedCreateCommentReply;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],K0.prototype,"ytdReduxBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],K0.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"addHoverEffect",void 0);_.V([_.N(),_.Y("design:type",Object)],K0.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"useSmallAvatars",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"scrollingEnabled",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"isSubThread",void 0);_.V([_.FM(".thread-hitbox"),_.Y("design:type",HTMLElement)],K0.prototype,"commentThreadHitbox",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"threadHovered",void 0);_.V([_.FM("#comment"),_.Y("design:type",HTMLElement)],K0.prototype,"commentElement",void 0);
_.V([_.N(),_.Y("design:type",Object)],K0.prototype,"expanded",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"removed",void 0);_.V([_.N(),_.Y("design:type",Object)],K0.prototype,"feedbackText",void 0);_.V([_.N(),_.Y("design:type",Array)],K0.prototype,"addedReplies",void 0);_.V([_.N({selector:Hp9,selectorArgs:["commentViewModel.commentKey"]}),_.Y("design:type",Object)],K0.prototype,"commentEntity",void 0);
_.V([_.GI("yt-pushed-create-comment-reply"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],K0.prototype,"onPushedCreateCommentReply",null);_.V([_.GI("yt-append-continuation-items-action-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K0.prototype,"onAppendContinuationItemsActionFinished",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K0.prototype,"commentViewModel",null);
_.V([_.U("data.replies.commentRepliesRenderer.subThreads"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],K0.prototype,"hasSubThreading",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],K0.prototype,"engagementPanel",void 0);_.V([_.GI("tap"),_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],K0.prototype,"onTap",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K0.prototype,"onDataChanged",null);_.V([_.gw({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],K0);
_.l(K0,"ytd-comment-thread-renderer",function(){if(jp8!==void 0)return jp8;var p=document.createElement("template");_.C(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<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return jp8=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var wT8;var ZK=function(){var p=_.T.apply(this,arguments)||this;p.compactHeader=_.z("web_watch_compact_comments_header");p.hidePanelButton=!1;p.isPostSchedulingEnabled=_.z("enable_post_scheduling");p.hasFinishedStamping=!1;p.JSC$16207_handleOpenPostCommentDialogActionAfterStamp=!1;p.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return p};
_.Q(ZK,_.T);_.R=ZK.prototype;
_.R.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"}}}};
_.R.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.R.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16207_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.R.onYtServiceRequestSent=function(p,J){if(!_.z("kevlar_command_handler")&&J.actions)for(p=0;p<J.actions.length;p++){var S=J.actions[p];_.e(S,wlM)&&_.Jn(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.e(S,wlM))}};
_.R.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var p;if(this.getPrefilledBackstagePostDialog((p=this.data)==null?void 0:p.actions)){_.Jn(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var J=_.Jn(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;J&&_.mN(this,function(){J.focus();J.openDialog&&J.openDialog()})}}else this.hasActionsChange=!0};
_.R.computeIsBackstage=function(p){return p};
_.R.onYtCommentboxDismiss=function(){_.Jn(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.R.removePrefilledDialog=function(p){if(p==null?0:p.actions){for(var J=p.actions.length-1;J>=0;J--){var S=void 0;((S=_.e(p.actions[J],KU8))==null?0:S.dialog)&&delete p.actions[J]}this.set("data",void 0);this.set("data",p)}};
_.R.getPrefilledBackstagePostDialog=function(p){if(p)for(var J=0;J<p.length;J++){var S=p[J],H=void 0;if((H=_.e(S,KU8))==null?0:H.dialog)return _.e(S,KU8).dialog}return null};
_.R.computeBackstagePostDialog=function(p){return p&&(this.getPrefilledBackstagePostDialog(p.actions)||p.createRenderer)};
_.R.dataChanged=function(){if(this.data){var p=this.data.customEmojis,J=this.data.unicodeEmojisUrl;_.v7.clear();J&&_.lQn(_.v7,J);p&&_.v7.load(p)}};
_.R.handleSignalActionOpenPostCommentDialogAction=function(){var p=_.Jn(this.hostElement).querySelector("ytd-comment-simplebox-renderer");p?p.openDialog():this.JSC$16207_handleOpenPostCommentDialogActionAfterStamp=!0};
_.R.onPostHeaderTap=function(){var p;((p=this.data)==null?0:p.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.vh.Object.defineProperties(ZK.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.z("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H,M,X,Z;return!this.hidePanelButton&&_.z("kevlar_watch_comments_panel_button")&&((Z=_.e((p=this.data)==null?void 0:(J=p.sortMenu)==null?void 0:(S=J.sortFilterSubMenuRenderer)==null?void 0:(H=S.subMenuItems)==null?void 0:(M=H[0])==null?void 0:(X=M.serviceEndpoint)==null?void 0:X.commandMetadata,_.i7))==null?void 0:Z.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Kl("MINIPLAYER_EXPAND_LABEL"),text:_.aR(_.Kl("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
ZK.prototype.dataChanged=ZK.prototype.dataChanged;ZK.prototype.onYtCommentboxDismiss=ZK.prototype.onYtCommentboxDismiss;ZK.prototype.observePrefilledBackstagePostDialog=ZK.prototype.observePrefilledBackstagePostDialog;ZK.prototype.onYtServiceRequestSent=ZK.prototype.onYtServiceRequestSent;ZK.prototype.onStampFinished=ZK.prototype.onStampFinished;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],ZK.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],ZK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ZK.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ZK.prototype,"compactHeader",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZK.prototype,"engagementPanel",void 0);_.V([_.N(),_.Y("design:type",Object)],ZK.prototype,"hidePanelButton",void 0);_.V([_.N({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZK.prototype,"isBackstage",void 0);_.V([_.N({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.Y("design:type",Object)],ZK.prototype,"backstagePostDialog",void 0);
_.V([_.N(),_.Y("design:type",Object)],ZK.prototype,"isPostSchedulingEnabled",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data","showCommentsPanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ZK.prototype,"useSpaceBetween",null);_.V([_.N({reflectToAttribute:!0}),_.U("data","hidePanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ZK.prototype,"showCommentsPanelButton",null);
_.V([_.U("data","showCommentsPanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ZK.prototype,"commentsPanelButtonData",null);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZK.prototype,"onStampFinished",null);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],ZK.prototype,"onYtServiceRequestSent",null);
_.V([_.bO("data.actions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZK.prototype,"observePrefilledBackstagePostDialog",null);_.V([_.GI("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ZK.prototype,"onYtCommentboxDismiss",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZK.prototype,"dataChanged",null);
_.V([_.gw({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],ZK);
_.l(ZK,"ytd-comments-header-renderer",function(){if(wT8!==void 0)return wT8;var p=document.createElement("template");_.C(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" on-click="onPostHeaderTap" 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(_.r().content.cloneNode(!0),
p.content.firstChild);return wT8=p},{mode:1});var xho;var n0=function(){return _.T.apply(this,arguments)||this};
_.Q(n0,_.T);_.V([_.N(),_.Y("design:type",Object)],n0.prototype,"data",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.V([_.gw({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],n0);
_.l(n0,"ytd-destination-button-renderer",function(){if(xho!==void 0)return xho;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return xho=p},{mode:1});var cgn;var Gt=function(){var p=_.T.apply(this,arguments)||this;p.isRichGrid=!1;p.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return p};
_.Q(Gt,_.T);_.R=Gt.prototype;_.R.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.R.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.R.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.R.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var p;if((p=this.data)==null||!p.isExpanded){p=this.hostElement.clientWidth;var J;if(p&&(J=this.data)!=null&&J.destinationButtons){J=Math.floor((p+4)/214);p=this.data.destinationButtons.length;var S=Math.ceil(p/J);this.fullyVisibleRows=p%J===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}}}};
_.R.updateRichGridDestinationButtonsVisibility=function(){var p,J;if(this.isRichGrid&&((p=this.data)==null||!p.isExpanded)&&(J=this.data)!=null&&J.destinationButtons){p=this.richGridItemsPerRow+1;J=this.data.destinationButtons.length;var S=Math.ceil(J/p);this.fullyVisibleRows=J%p===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}};
_.R.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Gt.prototype.updateRichGridDestinationButtonsVisibility=Gt.prototype.updateRichGridDestinationButtonsVisibility;_.V([_.N(),_.Y("design:type",Object)],Gt.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Number)],Gt.prototype,"fullyVisibleRows",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Gt.prototype,"isShowMoreVisible",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Gt.prototype,"isRichGrid",void 0);
_.V([_.N({selector:_.yc,value:0}),_.Y("design:type",Number)],Gt.prototype,"richGridItemsPerRow",void 0);_.V([_.N(),_.Y("design:type",Object)],Gt.prototype,"gridStateActionMap",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Gt.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Gt.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Gt.prototype,"ytdReduxBehavior",void 0);_.V([_.bO("data","richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gt.prototype,"updateRichGridDestinationButtonsVisibility",null);_.V([_.gw({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Gt);
_.l(Gt,"ytd-destination-shelf-renderer",function(){if(cgn!==void 0)return cgn;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return cgn=p},{mode:1});var Iw8;var bN=function(){return _.T.apply(this,arguments)||this};
_.Q(bN,_.T);bN.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],bN.prototype,"data",void 0);_.V([_.gw({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],bN);
_.l(bN,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Iw8!==void 0)return Iw8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Iw8=p},{mode:1});var LDE;var mv=function(){var p=_.T.apply(this,arguments)||this;p.disableAnimation=!1;p.isSlimlineSurvey=!1;p.isSlimlineSurveyFollowUp=!1;p.isShortsStyle=!1;return p};
_.Q(mv,_.T);mv.prototype.onTap=function(p){p.preventDefault();this.data&&_.cf(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.vh.Object.defineProperties(mv.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,J,S,H,M;return((p=this.data)==null?0:p.checked)?(J=this.data)==null?void 0:(S=J.onStateIcon)==null?void 0:S.iconType:(H=this.data)==null?void 0:(M=H.defaultStateIcon)==null?void 0:M.iconType}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],mv.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],mv.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],mv.prototype,"disableAnimation",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mv.prototype,"isSlimlineSurvey",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mv.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mv.prototype,"isShortsStyle",void 0);_.V([_.U("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],mv.prototype,"isAnimatedIcon",null);
_.V([_.U("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],mv.prototype,"iconSize",null);_.V([_.U("isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],mv.prototype,"isDarkTheme",null);_.V([_.U("data.checked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mv.prototype,"icon",null);_.V([_.gw({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],mv);
_.l(mv,"ytd-rating-survey-option-renderer",function(){if(LDE!==void 0)return LDE;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return LDE=p},{mode:2});var pAd;var Fr=function(){var p=_.T.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};
_.Q(Fr,_.T);_.R=Fr.prototype;_.R.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.R.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.R.onOptionChange=function(p,J){var S=this;p=J.onStateIcon&&J.defaultStateIcon&&J.onStateIcon.iconType===J.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(Z,n){Z.responseText===J.responseText?S.isSlimlineSurvey?(S.selectedRatingIndex=n,S.ytdReduxBehavior.dispatch(K1L(n))):(S.setSurveyOptionValue(n,!0,"checked"),S.setSurveyOptionValue(n,!0,"selected")):(S.setSurveyOptionValue(n,!1,"checked"),S.setSurveyOptionValue(n,
!1,"selected"))});
else if(p)this.selectedNonStarOption=J,this.hideOptions=!0;else{var H=this.ytRendererBehavior.getSimpleString(J.responseText),M=!0;this.getOptionRenderers().forEach(function(Z,n){S.setSurveyOptionValue(n,M,"checked");S.setSurveyOptionValue(n,!1,"selected");S.ytRendererBehavior.getSimpleString(Z.responseText)===H&&(M=!1,S.setSurveyOptionValue(n,!0,"selected"))})}p=J.responseEndpoint;
var X;J.followUpCommand&&(X=_.e(J.followUpCommand,pNd));this.isSlimlineSurvey?(this.resetComponent(),_.IV(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.IV(this.hostElement,"ytd-inline-survey-rating-select-action",[p,X])};
_.R.showSelectedOption=function(){var p=this;_.wg.addJob(function(){var J=p.getOptionRenderers()[p.slimlineSurveyRatingSelectedIndex];p.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),J)},8,100)};
_.R.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(p){var J;return(J=_.e(p,Sdm))!=null?J:{}}):[]};
_.R.onUndoClick=function(){this.resetComponent();_.IV(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.R.setSurveyOptionValue=function(p,J,S){this.notifyPath("data.ratings."+p+".ratingSurveyOptionRenderer."+S);this.set("data.ratings."+p+".ratingSurveyOptionRenderer."+S,J)};
_.R.resetComponent=function(){var p=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var J=this.getOptionRenderers(),S,H;this.firstResponseText=(H=(S=J[0])==null?void 0:S.responseText)!=null?H:null;var M,X;this.lastResponseText=(X=(M=J[J.length-1])==null?void 0:M.responseText)!=null?X:null;J.forEach(function(Z,n){p.setSurveyOptionValue(n,!1,"checked");p.setSurveyOptionValue(n,!1,"selected")})};
_.vh.Object.defineProperties(Fr.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Fr.prototype.onOptionChange=Fr.prototype.onOptionChange;Fr.prototype.dataChanged=Fr.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Fr.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Fr.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],Fr.prototype,"firstResponseText",void 0);_.V([_.N(),_.Y("design:type",Object)],Fr.prototype,"lastResponseText",void 0);_.V([_.N(),_.Y("design:type",Object)],Fr.prototype,"selectedNonStarOption",void 0);_.V([_.N(),_.Y("design:type",Object)],Fr.prototype,"hideOptions",void 0);_.V([_.N(),_.Y("design:type",Object)],Fr.prototype,"hideUndoButton",void 0);_.V([_.N(),_.Y("design:type",Object)],Fr.prototype,"disableAnimation",void 0);
_.V([_.N(),_.Y("design:type",Object)],Fr.prototype,"showResponseRangeText",void 0);_.V([_.N(),_.Y("design:type",Object)],Fr.prototype,"selectedRatingIndex",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Fr.prototype,"isSlimlineSurvey",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Fr.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Fr.prototype,"isShortsStyle",void 0);_.V([_.N({selector:function(p){return p.ui.slimlineSurveyRatingSelectedIndex}}),
_.Y("design:type",Object)],Fr.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.V([_.U("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Fr.prototype,"isSingleSelect",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fr.prototype,"dataChanged",null);
_.V([_.GI("ytd-rating-survey-option-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Fr.prototype,"onOptionChange",null);_.V([_.gw({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Fr);
_.l(Fr,"ytd-rating-survey-renderer",function(){if(pAd!==void 0)return pAd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return pAd=p},{mode:1});var Jfo;var Sbq;var Hhp;var $m3=(Gs.FIRSTDAYOFWEEK+1)%7,Mz8=function(p,J,S,H){var M="";if(H.selection&&O4v(H.selection))KY(p,H.selection)&&(M+=" selected");else if(H.selection&&ACt(H.selection)){var X=H.selection.selectionState||"START_DATE";KY(p,H.selection.start)&&(M+=" period-start ",X==="START_DATE"&&(M+="selected"));KY(p,H.selection.end)&&(M+=" period-end ",X==="END_DATE"&&(M+="selected"));ZP(p,H.selection.start)||ZP(H.selection.end,p)||(M+=" highlighted")}if(ZP(J,H.start)||ZP(H.end,J))M+=" disabled";H.circleToday&&
KY(J,S)&&(M+=" today");return M};var vD=function(){return _.T.apply(this,arguments)||this};
_.Q(vD,_.T);_.R=vD.prototype;_.R.attached=function(){var p=this;_.mN(this,function(){p.JSC$16241_calendarMain.scrollHeight>0&&(p.calendarConfig.selection?p.scrollToDate(PYt(p.calendarConfig.selection)):p.scrollToDate(p.calendarConfig.end))})};
_.R.updateSelection=function(p){p=oKW(Object.assign({},this.calendarConfig,{selection:p}),Mz8);this.splice.apply(this,["renderData.months",0,p.length].concat(_.dW(p)))};
_.R.scrollToDate=function(p){this.renderData&&(p=e7W(p,this.renderData),p!==void 0&&this.JSC$16241_calendarMain.scrollToIndex(p))};
_.R.scrollToNextMonth=function(){this.JSC$16241_calendarMain.scrollToIndex(this.JSC$16241_calendarMain.firstVisibleIndex+1)};
_.R.scrollToPrevMonth=function(){this.JSC$16241_calendarMain.firstVisibleIndex===0&&this.JSC$16241_calendarMain.scrollTo(0,0);this.JSC$16241_calendarMain.scrollToIndex(this.JSC$16241_calendarMain.firstVisibleIndex-1)};
_.R.handleDayClick=function(p){_.IV(this.hostElement,"ytd-calendar-date-clicked",[p.model.day.date])};
_.R.handleDayMouseDown=function(p){p.preventDefault();_.IV(this.hostElement,"ytd-calendar-date-mousedown",[p.model.day.date])};
_.R.handleDayMouseUp=function(p){_.IV(this.hostElement,"ytd-calendar-date-mouseup",[p.model.day.date])};
_.R.handleDayMouseEnter=function(p){p.preventDefault();_.IV(this.hostElement,"ytd-calendar-date-mouseenter",[p.model.day.date])};
_.R.handleDayMouseLeave=function(p){_.IV(this.hostElement,"ytd-calendar-date-mouseleave",[p.model.day.date])};
_.vh.Object.defineProperties(vD.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var p=this.calendarConfig,J=Mz8;J=J===void 0?Mz8:J;for(var S=[],H=0;H<7;H++)S.push(Gs.NARROWWEEKDAYS[(H+$m3)%7]);return{months:oKW(p,J),daysOfWeekLabel:S}}}});
_.V([_.N(),_.Y("design:type",Object)],vD.prototype,"calendarConfig",void 0);_.V([_.FM("#calendar-main"),_.Y("design:type",Object)],vD.prototype,"JSC$16241_calendarMain",void 0);_.V([_.U("calendarConfig"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vD.prototype,"renderData",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],vD);
_.l(vD,"ytd-scrollable-calendar",function(){if(Hhp!==void 0)return Hhp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Hhp=p},{mode:2});var XAM;var ih8;var f0=function(){var p=_.T.apply(this,arguments)||this;p.hideCharCounter=!1;p.hideLabel=!1;p.noLabelFloat=!1;p.autoValidate=!0;p.invalid=!1;p.disabled=!1;p.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return p};
_.Q(f0,_.T);_.R=f0.prototype;_.R.reset=function(p){this.value=p&&this.data?this.data.value=p:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.R.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.R.focusTextInput=function(){this.input.focus()};
_.R.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()};
_.R.valueChanged=function(){var p,J;if(((p=this.data)==null?0:p.value)||((J=this.data)==null?void 0:J.value)==="")this.value=this.data.value;else{var S;((S=this.data)==null?void 0:S.value)!==void 0||this.value||(this.value="")}};
_.R.computeLabel=function(p,J){return J?"":_.E4(p)};
_.R.computeAriaLabel=function(p,J){return J?_.E4(p):""};
_.R.computeErrorMessage=function(p,J,S,H){!p&&J?p=S||this.strings.REQUIRED_LABEL:(p=_.E4(H),p=_.nL(p,"&")?"document"in _.Hg?Z_8(p):nF8(p):p);return p};
_.R.computeType=function(p){return p==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.R.onTextValueChanged=function(p){this.value=p.detail.value;var J;(J=this.onValueChanged)==null||J.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.R.handleUpdateTextInputFormFieldRendererCommand=function(p){(p=_.e(p,$38))&&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))};
_.R.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("value-changed",this.value))};
_.R.updateInvalidFromBinding=function(p){this.invalid=p.detail.value};
_.vh.Object.defineProperties(f0.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)}}});
f0.prototype.valueChangedForBinding=f0.prototype.valueChangedForBinding;f0.prototype.valueChanged=f0.prototype.valueChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],f0.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],f0.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],f0.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],f0.prototype,"value",void 0);_.V([_.N(),_.Y("design:type",String)],f0.prototype,"pattern",void 0);_.V([_.N(),_.Y("design:type",String)],f0.prototype,"errorMessage",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],f0.prototype,"componentStyle",void 0);_.V([_.N(),_.Y("design:type",Object)],f0.prototype,"hideCharCounter",void 0);
_.V([_.N(),_.Y("design:type",Object)],f0.prototype,"hideLabel",void 0);_.V([_.N(),_.Y("design:type",Object)],f0.prototype,"noLabelFloat",void 0);_.V([_.N(),_.Y("design:type",Function)],f0.prototype,"onValueChanged",void 0);_.V([_.N(),_.Y("design:type",Boolean)],f0.prototype,"isMultilineOverride",void 0);_.V([_.N(),_.Y("design:type",Object)],f0.prototype,"autoValidate",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],f0.prototype,"invalid",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],f0.prototype,"disabled",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f0.prototype,"enableOverlayTheme",void 0);_.V([_.N({value:{REQUIRED_LABEL:_.Kl("REQUIRED_LABEL",void 0,"Required")}}),_.Y("design:type",Object)],f0.prototype,"strings",void 0);_.V([_.FM("#input"),_.Y("design:type",Object)],f0.prototype,"input",void 0);
_.V([_.U("data","isMultilineOverride"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],f0.prototype,"isMultiline",null);_.V([_.An("data.value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f0.prototype,"valueChanged",null);_.V([_.bO("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f0.prototype,"valueChangedForBinding",null);_.V([_.sD({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],f0);
_.l(f0,"yt-text-input-form-field-renderer",function(){if(ih8===void 0){var p=document.createElement("template");_.C(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="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;XAM===void 0&&(XAM=document.createElement("template"));var H=XAM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ih8=p}p=ih8;return p},{mode:2});var O6=function(){var p=_.T.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};
_.Q(O6,_.T);_.R=O6.prototype;_.R.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"}}}}};
_.R.focus=function(){this.startDateInput.focus()};
_.R.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:nY(this.data.selection.start),end:nY(this.data.selection.end)})};
_.R.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.R.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.rm(this.selectionState)}};
_.R.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.R.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.R.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.R.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var p=this.calendar.calendarConfig,J=p.end;p=Qis({start:p.start,end:this.endDate||J},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()}};
_.R.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var p=this.calendar.calendarConfig,J=p.start;p=Qis({start:this.startDate||J,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()}};
_.R.handleCalendarDateClicked=function(p){var J=this.selection&&PYt(this.selection),S=this.selection&&z7t(this.selection);J&&!ZP(p,J)&&this.selectionState==="END_DATE"?(this.selection={start:J,end:p},this.selectionState="START_DATE"):(S&&!ZP(S,p)?this.selection={start:p,end:S}:this.selection=p,this.selectionState="END_DATE")};
_.R.handleCalendarDateMouseDown=function(p){this.selection&&!O4v(this.selection)&&(this.dragPivot=KY(p,this.selection.start)?this.selection.end:KY(p,this.selection.end)?this.selection.start:p)};
_.R.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.R.handleCalendarDateMouseEnter=function(p){this.dragPivot&&(this.selection={start:function(J,S){return ZP(J,S)?J:S}(this.dragPivot,p),
end:function(J,S){return ZP(J,S)?S:J}(this.dragPivot,p)},this.dragPivot||(this.selectionState="START_DATE"))};
_.R.handleCalendarDateMouseLeave=function(){};
_.R.handleCalendarSubmitDateRange=function(){this.selection&&!O4v(this.selection)&&_.IV(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.R.updateInvalidState=function(){var p=function(J,S){S?J.setAttribute("invalid",""):J.removeAttribute("invalid")};
p(this.startDateInput,this.isStartDateInvalid);p(this.endDateInput,this.isEndDateInvalid)};
_.R.updateDateStrings=function(){this.selection&&(O4v(this.selection)?fAL(this.selection):(fAL(this.selection.start),fAL(this.selection.end)))};
_.R.updateCalendarSelection=function(p){this.calendar.updateSelection(Object.assign({},p,{selectionState:this.selectionState}))};
_.R.updateIsStartDateInvalidFromBinding=function(p){this.isStartDateInvalid=p.detail.value};
_.R.updateIsEndDateInvalidFromBinding=function(p){this.isEndDateInvalid=p.detail.value};
_.R.updateStartDateStringFromBinding=function(){};
_.R.updateEndDateStringFromBinding=function(){};
_.vh.Object.defineProperties(O6.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:nY(this.data.dateRangeStart),end:nY(this.data.dateRangeEnd),selection:{start:nY(this.data.selection.start),end:nY(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&&PYt(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&z7t(this.selection)}}});
O6.prototype.resetTextboxes=O6.prototype.resetTextboxes;O6.prototype.observeSelection=O6.prototype.observeSelection;O6.prototype.dataChanged=O6.prototype.dataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],O6.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],O6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.FM("#calendar"),_.Y("design:type",Object)],O6.prototype,"calendar",void 0);
_.V([_.FM("#start-date"),_.Y("design:type",Object)],O6.prototype,"startDateInput",void 0);_.V([_.FM("#end-date"),_.Y("design:type",Object)],O6.prototype,"endDateInput",void 0);_.V([_.N(),_.Y("design:type",Object)],O6.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],O6.prototype,"selection",void 0);_.V([_.N(),_.Y("design:type",String)],O6.prototype,"selectionState",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],O6.prototype,"calendarConfig",null);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],O6.prototype,"errorMessage",null);_.V([_.U("selection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],O6.prototype,"startDate",null);_.V([_.U("selection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],O6.prototype,"endDate",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],O6.prototype,"dataChanged",null);
_.V([_.bO("selection","selectionState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],O6.prototype,"observeSelection",null);_.V([_.bO("selectionState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],O6.prototype,"resetTextboxes",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],O6);
_.l(O6,"ytd-date-period-picker-renderer",function(){if(Sbq!==void 0)return Sbq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Sbq=p},{mode:1});var Av=function(){var p=_.T.apply(this,arguments)||this;var J={};p.actionMap=(J["ytd-date-period-picker-apply"]="handleDateRangeUpdated",J);return p};
_.Q(Av,_.T);Av.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Av.prototype.handleDateRangeUpdated=function(){};
_.V([_.N(),_.Y("design:type",Object)],Av.prototype,"data",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Av.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Av.prototype,"rendererstamperBehavior",void 0);_.V([_.gw({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Av);
_.l(Av,"ytd-report-history-section-header-renderer",function(){if(Jfo!==void 0)return Jfo;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Jfo=p},{mode:1});var Ro8;var K0m;var Zhd;var PD=function(){return _.T.apply(this,arguments)||this};
_.Q(PD,_.T);_.vh.Object.defineProperties(PD.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?0:(J=p.icon)==null?0:J.iconType)?_.Xj(this.data.icon.iconType):""}}});
_.V([_.N(),_.Y("design:type",Object)],PD.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],PD.prototype,"icon",null);_.V([_.gw({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],PD);
_.l(PD,"ytd-report-history-table-text-cell-renderer",function(){if(Zhd!==void 0)return Zhd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Zhd=p},{mode:1});var zt=function(){return _.T.apply(this,arguments)||this};
_.Q(zt,_.T);zt.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],zt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],zt.prototype,"data",void 0);_.V([_.gw({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],zt);
_.l(zt,"ytd-report-history-table-reason-cell-renderer",function(){if(K0m!==void 0)return K0m;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return K0m=p},{mode:1});var $S=function(){return _.T.apply(this,arguments)||this};
_.Q($S,_.T);$S.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"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],$S.prototype,"rendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],$S.prototype,"data",void 0);_.V([_.gw({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],$S);
_.l($S,"ytd-report-history-table-cell-renderer",function(){if(Ro8!==void 0)return Ro8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
return Ro8=p},{mode:1});var nx4;var oe=function(){var p=_.T.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};
_.Q(oe,_.T);oe.prototype.onDataChanged=function(){var p;if((p=this.data)==null?0:p.style)this.componentStyle=this.getStyleName(this.data.style)};
oe.prototype.getCellForColumn=function(p){return this.cells.find(function(J){var S;return((S=_.e(J==null?void 0:J.cell,XN8)||_.e(J==null?void 0:J.cell,M38))==null?void 0:S.columnId)===p.type})};
oe.prototype.getClassForColumn=function(p){switch(p){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
oe.prototype.getStyleName=function(p){switch(p){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.vh.Object.defineProperties(oe.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.cells)||[]).map(function(J){return _.e(J,H7v)})}}});
oe.prototype.onDataChanged=oe.prototype.onDataChanged;_.V([_.N(),_.Y("design:type",Object)],oe.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Array)],oe.prototype,"columnRenderData",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],oe.prototype,"componentStyle",void 0);_.V([_.U("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],oe.prototype,"cells",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oe.prototype,"onDataChanged",null);_.V([_.gw({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],oe);
_.l(oe,"ytd-report-history-table-row-renderer",function(){if(nx4!==void 0)return nx4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return nx4=p},{mode:1});var Gc8;var bhq;var CY9={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},yCX={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var ew=function(){return _.T.apply(this,arguments)||this};
_.Q(ew,_.T);ew.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"}}}}}};
ew.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.vh.Object.defineProperties(ew.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.columns)?tGL(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return sik(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var p=this.tableSpec,J=CY9;J=J===void 0?yCX:J;J=gKL(p.columnDimensions,p.columnsToShow||[],J);p=0;J=_.K(J);for(var S=J.next();!S.done;S=J.next())S=S.value,p+=S.minWidth+S.paddingLeft+S.paddingRight;return p}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.V([_.B(_.$W),_.Y("design:type",Object)],ew.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ew.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ew.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ew.prototype,"tableSpec",null);_.V([_.U("tableSpec"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],ew.prototype,"columnRenderData",null);
_.V([_.U("tableSpec"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],ew.prototype,"totalMinWidth",null);_.V([_.U("totalMinWidth"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ew.prototype,"tableWidthStyle",null);_.V([_.gw({is:"ytd-table-renderer",disableElementRegistration:!0})],ew);
_.l(ew,"ytd-table-renderer",function(){if(bhq!==void 0)return bhq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return bhq=p},{mode:1});var WD=function(){return _.T.apply(this,arguments)||this};
_.Q(WD,_.T);WD.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}}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],WD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],WD.prototype,"data",void 0);_.V([_.gw({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],WD);
_.l(WD,"ytd-report-reason-history-modal-renderer",function(){if(Gc8!==void 0)return Gc8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Gc8=p},{mode:1});var mdp;var F0M;var vx8;var QQ=function(){return _.T.apply(this,arguments)||this};
_.Q(QQ,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],QQ.prototype,"data",void 0);_.V([_.gw({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],QQ);
_.l(QQ,"ytd-profile-column-stats-entry-renderer",function(){if(vx8!==void 0)return vx8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return vx8=p},{mode:1});var ffL;var C0=function(){return _.T.apply(this,arguments)||this};
_.Q(C0,_.T);C0.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],C0.prototype,"data",void 0);_.V([_.gw({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],C0);
_.l(C0,"ytd-profile-column-stats-renderer",function(){if(ffL!==void 0)return ffL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return ffL=p},{mode:1});var Ohm;var yQ=function(){return _.T.apply(this,arguments)||this};
_.Q(yQ,_.T);_.vh.Object.defineProperties(yQ.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.useThumbnailSize)return 80;var J,S;p=(J=this.data)==null?void 0:(S=J.thumbnail)==null?void 0:S.thumbnails;var H;return p&&((H=p[0])==null?void 0:H.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.useThumbnailSize)return 80;var J,S;p=(J=this.data)==null?void 0:(S=J.thumbnail)==null?void 0:S.thumbnails;var H;return p&&((H=p[0])==null?void 0:H.height)||80}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yQ.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],yQ.prototype,"componentStyle",void 0);_.V([_.U("data.useThumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yQ.prototype,"thumbnailWidth",null);
_.V([_.U("data.useThumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yQ.prototype,"thumbnailHeight",null);_.V([_.gw({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],yQ);
_.l(yQ,"ytd-profile-column-user-info-renderer",function(){if(Ohm!==void 0)return Ohm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Ohm=p},{mode:1});var BD=function(){return _.T.apply(this,arguments)||this};
_.Q(BD,_.T);BD.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]]"}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],BD.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],BD.prototype,"componentStyle",void 0);_.V([_.gw({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],BD);
_.l(BD,"ytd-profile-column-renderer",function(){if(F0M!==void 0)return F0M;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return F0M=p},{mode:1});var U6=function(){var p=_.T.apply(this,arguments)||this;p.componentStyle="NON_CENTERED_PROFILE";return p};
_.Q(U6,_.T);U6.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
U6.prototype.getIcon=function(p){return p?"settings:"+p.toLowerCase():null};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],U6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],U6.prototype,"data",void 0);_.V([_.gw({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],U6);
_.l(U6,"ytd-page-introduction-renderer",function(){if(mdp!==void 0)return mdp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return mdp=p},{mode:1});var Af8;var s6=function(){return _.T.apply(this,arguments)||this};
_.Q(s6,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],s6.prototype,"data",void 0);_.V([_.gw({is:"ytd-report-description-renderer",disableElementRegistration:!0})],s6);
_.l(s6,"ytd-report-description-renderer",function(){if(Af8!==void 0)return Af8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Af8=p},{mode:1});var Piq;var zoL;var gH=function(){return _.T.apply(this,arguments)||this};
_.Q(gH,_.T);gH.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],gH.prototype,"data",void 0);_.V([_.gw({is:"ytd-video-report-renderer",disableElementRegistration:!0})],gH);
_.l(gH,"ytd-video-report-renderer",function(){if(zoL!==void 0)return zoL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return zoL=p},{mode:1});var $dU;_.QI("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.QI("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var tv=function(){return _.T.apply(this,arguments)||this};
_.Q(tv,_.T);tv.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
tv.prototype.computeMessageStyle=function(p){return p};
tv.prototype.computeButtonOverride=function(p){var J;if((p==null?0:(J=p.style)==null?0:J.value)&&p.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],tv.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tv.prototype,"shelf",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tv.prototype,"panel",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.Y("design:type",Boolean)],tv.prototype,"componentStyle",void 0);_.V([_.N({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],tv.prototype,"buttonOverride",void 0);_.V([_.gw({is:"ytd-message-renderer",disableElementRegistration:!0})],tv);
_.l(tv,"ytd-message-renderer",function(){if($dU!==void 0)return $dU;var p=document.createElement("template");_.C(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<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return $dU=p},{mode:1});var hv=function(){return _.T.apply(this,arguments)||this};
_.Q(hv,_.T);hv.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"}}}};
hv.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
hv.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.vh.Object.defineProperties(hv.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var p,J;return!!(((p=this.data)==null?0:p.header)&&((J=this.data)==null?0:J.table))}}});
hv.prototype.onRequestError=hv.prototype.onRequestError;_.V([_.B(_.$W),_.Y("design:type",Object)],hv.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],hv.prototype,"data",void 0);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hv.prototype,"isUnifiedReportHistory",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hv.prototype,"onRequestError",null);_.V([_.gw({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],hv);
_.l(hv,"ytd-report-history-section-renderer",function(){if(Piq!==void 0)return Piq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Piq=p},{mode:1});var oxn;var DK=function(){var p=_.T.apply(this,arguments)||this;p.answerExpanded=!1;return p};
_.Q(DK,_.T);DK.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],DK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],DK.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],DK.prototype,"answerExpanded",void 0);_.V([_.gw({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],DK);
_.l(DK,"ytd-handles-claiming-faq-renderer",function(){if(oxn!==void 0)return oxn;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return oxn=p},{mode:1});var eoq;var W0q=function(){return _.T.apply(this,arguments)||this};
_.Q(W0q,_.T);_.V([_.N(),_.Y("design:type",Object)],W0q.prototype,"data",void 0);_.V([_.gw({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],W0q);
_.l(W0q,"ytd-handles-claiming-faq-section-renderer",function(){if(eoq!==void 0)return eoq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return eoq=p},{mode:1});var QP8;var kS=function(){var p=_.T.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};
_.Q(kS,_.T);_.R=kS.prototype;_.R.updateLeftSquigglyStyle=function(){_.K3(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.R.updateRightSquigglyStyle=function(){_.K3(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.R.ready=function(){var p=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(p)};
_.R.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))};
_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
kS.prototype.updateRightSquigglyStyle=kS.prototype.updateRightSquigglyStyle;kS.prototype.updateLeftSquigglyStyle=kS.prototype.updateLeftSquigglyStyle;_.V([_.N(),_.Y("design:type",Object)],kS.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],kS.prototype,"isDarkTheme",void 0);_.V([_.N(),_.Y("design:type",String)],kS.prototype,"leftSquiggly",void 0);_.V([_.N(),_.Y("design:type",String)],kS.prototype,"rightSquiggly",void 0);
_.V([_.bO("leftSquiggly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kS.prototype,"updateLeftSquigglyStyle",null);_.V([_.bO("rightSquiggly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kS.prototype,"updateRightSquigglyStyle",null);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],kS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],kS.prototype,"actionButtonOverride",void 0);_.V([_.gw({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],kS);
_.l(kS,"ytd-handles-claiming-header-renderer",function(){if(QP8!==void 0)return QP8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return QP8=p},{mode:1});var Cio;var NC=function(){var p=_.T.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};
_.Q(NC,_.T);_.R=NC.prototype;_.R.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.R.onDataChanged=function(){this.updateTitleAndImages()};
_.R.onThemeChanged=function(){this.updateTitleAndImages()};
_.R.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p)};
_.R.updateImage0SquigglyBackground=function(){_.K3(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.R.updateImage1SquigglyBackground=function(){_.K3(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.R.updateImage3SquigglyBackground=function(){_.K3(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.R.updateTitleAndImages=function(){var p,J;((p=this.data)==null?void 0:(J=p.titleImages)==null?void 0:J.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))};
NC.prototype.updateImage3SquigglyBackground=NC.prototype.updateImage3SquigglyBackground;NC.prototype.updateImage1SquigglyBackground=NC.prototype.updateImage1SquigglyBackground;NC.prototype.updateImage0SquigglyBackground=NC.prototype.updateImage0SquigglyBackground;NC.prototype.onThemeChanged=NC.prototype.onThemeChanged;NC.prototype.onDataChanged=NC.prototype.onDataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],NC.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],NC.prototype,"isDarkTheme",void 0);_.V([_.N(),_.Y("design:type",Object)],NC.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],NC.prototype,"title0",void 0);_.V([_.N(),_.Y("design:type",Object)],NC.prototype,"title1",void 0);_.V([_.N(),_.Y("design:type",Object)],NC.prototype,"title2",void 0);_.V([_.N(),_.Y("design:type",Object)],NC.prototype,"title3",void 0);
_.V([_.N(),_.Y("design:type",Object)],NC.prototype,"title4",void 0);_.V([_.N(),_.Y("design:type",Object)],NC.prototype,"image0",void 0);_.V([_.N(),_.Y("design:type",Object)],NC.prototype,"image1",void 0);_.V([_.N(),_.Y("design:type",Object)],NC.prototype,"image2",void 0);_.V([_.N(),_.Y("design:type",Object)],NC.prototype,"image3",void 0);_.V([_.N(),_.Y("design:type",Object)],NC.prototype,"image4",void 0);_.V([_.N(),_.Y("design:type",String)],NC.prototype,"image0SquigglyBackground",void 0);
_.V([_.N(),_.Y("design:type",String)],NC.prototype,"image1SquigglyBackground",void 0);_.V([_.N(),_.Y("design:type",String)],NC.prototype,"image3SquigglyBackground",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NC.prototype,"onDataChanged",null);_.V([_.bO("isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NC.prototype,"onThemeChanged",null);
_.V([_.bO("image0SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NC.prototype,"updateImage0SquigglyBackground",null);_.V([_.bO("image1SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NC.prototype,"updateImage1SquigglyBackground",null);
_.V([_.bO("image3SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NC.prototype,"updateImage3SquigglyBackground",null);_.V([_.gw({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],NC);
_.l(NC,"ytd-handles-claiming-title-images-section-renderer",function(){if(Cio!==void 0)return Cio;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Cio=p},{mode:1});var yfd;var Tt=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.Q(Tt,_.T);Tt.prototype.ready=function(){var p=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(p)};
Tt.prototype.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&this.set("isDarkTheme",p)};
Tt.prototype.onCopyButtonClick=function(){var p=this,J,S,H;return _.G(function(M){return(J=p.data)!=null&&J.primaryChannelUrl?M.yield(navigator.clipboard.writeText(((S=p.data)==null?0:S.encodedChannelUrl)?p.data.encodedChannelUrl:"https://"+_.E4((H=p.data)==null?void 0:H.primaryChannelUrl)),0):M.jumpTo(0)})};
_.V([_.N(),_.Y("design:type",Object)],Tt.prototype,"data",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Tt.prototype,"ytComponentBehavior",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Tt.prototype,"isDarkTheme",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Tt.prototype,"ytActionHandlerBehavior",void 0);_.V([_.gw({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Tt);
_.l(Tt,"ytd-handles-claiming-update-social-renderer",function(){if(yfd!==void 0)return yfd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return yfd=p},{mode:1});var Bqm;var dH=function(){var p=_.T.apply(this,arguments)||this;p.JSC$16335_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";p.JSC$16335_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$16335_squigglyBackgroundLight;return p};
_.Q(dH,_.T);dH.prototype.updateSquigglyBackgroundStyle=function(){_.K3(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
dH.prototype.ready=function(){var p=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",p);this.squigglyBackground=p?this.JSC$16335_squigglyBackgroundDark:this.JSC$16335_squigglyBackgroundLight};
dH.prototype.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.set("isDarkTheme",p),this.squigglyBackground=p?this.JSC$16335_squigglyBackgroundDark:this.JSC$16335_squigglyBackgroundLight)};
dH.prototype.updateSquigglyBackgroundStyle=dH.prototype.updateSquigglyBackgroundStyle;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],dH.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],dH.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],dH.prototype,"isDarkTheme",void 0);_.V([_.N(),_.Y("design:type",String)],dH.prototype,"squigglyBackground",void 0);_.V([_.bO("squigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dH.prototype,"updateSquigglyBackgroundStyle",null);_.V([_.gw({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],dH);
_.l(dH,"ytd-handles-claiming-vanity-info-renderer",function(){if(Bqm!==void 0)return Bqm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Bqm=p},{mode:1});var Ud8;var uN=function(){var p=_.T.apply(this,arguments)||this;p.JSC$16338_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";p.JSC$16338_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";p.squigglyBackground=p.JSC$16338_squigglyBackgroundLight;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.Q(uN,_.T);_.R=uN.prototype;_.R.ready=function(){var p=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(p)};
_.R.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.set("isDarkTheme",p),this.squigglyBackground=p?this.JSC$16338_squigglyBackgroundDark:this.JSC$16338_squigglyBackgroundLight)};
_.R.updateSquigglyBackgroundStyle=function(){_.K3(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.R.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.R.detached=function(){this.stop()};
_.R.stop=function(){this.playerElement.stop()};
_.R.setupVideoPlayer=function(){var p=this,J,S;return _.G(function(H){J=p.data.videoId;S="http://i1.ytimg.com/vi/"+J+"/maxresdefault.jpg";p.playerElement.loadVideoWithPlayerVars({video_id:J,iurlhq:S});_.UK(H)})};
uN.prototype.onDataChanged=uN.prototype.onDataChanged;uN.prototype.updateSquigglyBackgroundStyle=uN.prototype.updateSquigglyBackgroundStyle;_.V([_.N({value:!1}),_.Y("design:type",Boolean)],uN.prototype,"isDarkTheme",void 0);_.V([_.N(),_.Y("design:type",String)],uN.prototype,"squigglyBackground",void 0);_.V([_.FM("#player"),_.Y("design:type",Object)],uN.prototype,"playerElement",void 0);_.V([_.N(),_.Y("design:type",Object)],uN.prototype,"data",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],uN.prototype,"ytActionHandlerBehavior",void 0);_.V([_.bO("squigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uN.prototype,"updateSquigglyBackgroundStyle",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uN.prototype,"onDataChanged",null);
_.V([_.gw({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],uN);
_.l(uN,"ytd-handles-claiming-video-item-renderer",function(){if(Ud8!==void 0)return Ud8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Ud8=p},{mode:1});var sPU;var VQ=function(){var p=_.f3.apply(this,arguments)||this;p.dragging=!1;p.dragMouseStart=0;p.dragOffsetStart=0;p.containerWidthDiff=0;p.boundPrevClick=function(){p.set("offset",lN(p,p.offset-(p.scrollDistance||320)))};
p.boundNextClick=function(){p.set("offset",lN(p,p.offset+(p.scrollDistance||320)))};
p.boundScrollContainerMouseDown=function(J){p.dragMouseStart=J.clientX;p.dragOffsetStart=p.offset;p.dragging=!0};
p.boundScrollContainerDrag=function(J){p.dragging&&p.set("offset",lN(p,p.dragOffsetStart-(J.clientX-p.dragMouseStart)))};
p.boundMouseUp=function(){p.onMouseUp()};
p.boundWheelScroll=function(J){var S=0;Math.abs(J.deltaX)>=Math.abs(J.deltaY)?S=J.deltaX:J.shiftKey&&(S=J.deltaY);S!==0&&(p.offset+=S,J.stopPropagation(),J.preventDefault())};
p.boundChipCloudChipScrollIntoView=function(J){(J=J.detail)&&p.scrollChipIntoView(J)};
return p};
_.Q(VQ,_.f3);VQ.prototype.attached=function(){var p=_.Jn(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)};
VQ.prototype.detached=function(){var p=_.Jn(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)};
VQ.prototype.reset=function(){this.set("offset",0);_.mN(this,this.setContainerWidthDiff);_.mN(this,this.setButtonsState)};
var lN=function(p,J){return Math.min(Math.max(J,0),p.containerWidthDiff)};
_.R=VQ.prototype;_.R.onMouseUp=function(){this.dragging=!1};
_.R.transformContainer=function(){this.offset=lN(this,this.offset);var p=_.jn("HTML_DIR")==="rtl"?"":"-";_.Jn(this.hostElement).querySelector("#chips").style.transform="translateX("+p+this.offset+"px)";_.mN(this,this.setButtonsState)};
_.R.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=lN(this,this.offset));this.atStart=this.offset<=0};
_.R.setContainerWidthDiff=function(){var p=_.Jn(this.hostElement).querySelector("#scroll-container"),J=_.Jn(this.hostElement).querySelector("#chips");p&&J&&(this.containerWidthDiff=J.clientWidth-p.clientWidth)};
_.R.scrollChipIntoView=function(p){var J=_.Jn(this.hostElement).querySelector("#scroll-container");if(J){var S=this.atStart?0:106,H=this.atEnd?0:106;p.offsetLeft<this.offset+S?this.offset=lN(this,p.offsetLeft-S):p.offsetLeft+p.clientWidth>this.offset+J.clientWidth-H&&(this.offset=lN(this,p.offsetLeft+p.clientWidth+H-J.clientWidth))}};
VQ.prototype.transformContainer=VQ.prototype.transformContainer;_.V([_.N({value:0}),_.Y("design:type",Number)],VQ.prototype,"offset",void 0);_.V([_.N({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],VQ.prototype,"atStart",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],VQ.prototype,"atEnd",void 0);_.V([_.N(),_.Y("design:type",Number)],VQ.prototype,"scrollDistance",void 0);
_.V([_.bO("offset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VQ.prototype,"transformContainer",null);_.V([_.OD()],VQ);var gxd;var tzd;_.qC=_.d(function(p){var J=p.data;p=_.K(_.eQ(!1,void 0,"bob3J"));var S=p.next().value,H=p.next().value;p=function(X){if((J==null?void 0:J().state)!==1){var Z,n;(n=(Z=J()).onTap)==null||n.call(Z,X)}};
var M={};return _.m("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Kb(function(){var X=_.vO().resolve(_.F9(_.CD));if(X){H(X.isKeyBoardInUse());var Z,n;(n=(Z=J()).onFocusIn)==null||n.call(Z)}return!1}),
"on:focusout":_.Kb(function(){H(!1);return!1})},_.m(hoo,{shouldWrapInButton:function(){return J().type!==2},
selected:function(){return J().state===0},
onClick:p,isDropdown:function(){return J().type===1},
accessibilityLabel:function(){return J().type===1?void 0:J().accessibilityLabel}},_.m("div",{class:_.XB("ytChipShapeChip",function(){a:switch(J==null?void 0:J().state){case 0:var X="ytChipShapeActive";
break a;case 1:X="ytChipShapeDisabled";break a;default:X="ytChipShapeInactive"}return X},function(){var X=J().type===1||J().type===2,Z=J();
return X||Z!=null&&Z.startIcon?Z==null||!Z.startIcon||Z!=null&&Z.text?X?"ytChipShapeEndIconPadding":(Z==null?0:Z.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var X=J();
if((X==null?void 0:X.style)===0&&(X==null?void 0:X.state)===0){var Z;X=((Z=_.vO().resolve(_.F9(_.uC)))==null?0:Z())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else X="";return X},(M.ytChipShapeFocused=function(){var X;
return S()&&((X=J())==null?void 0:X.state)!==1},M))},_.m(_.v,{cond:function(){return J().startIcon},
then:function(){return _.m(_.bn,{icon:function(){var X;return(X=J())==null?void 0:X.startIcon},
className:_.XB(function(){return J().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var X=J(),Z,n=(Z=_.vO().resolve(_.F9(_.uC)))==null?void 0:Z();
return(X==null?void 0:X.style)===0&&(X==null?void 0:X.state)===0&&n?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return J().text},_.m(Dd8,{shape:J,
onClick:p}),_.m(_.B3,{model:{borderRadius:"8px"}}))))},"Lc");
_.qC.idomCompat=!0;var hoo=_.d(function(p){var J=_.Kb(function(S){p.onClick(S);return!1});
return _.m(_.v,{cond:p.shouldWrapInButton,then:function(){return _.m("button",{class:"ytChipShapeButtonReset","on:click":J,role:function(){return p.isDropdown()?"combobox":"tab"},
"aria-label":p.accessibilityLabel,"aria-selected":p.selected},p.children)},
else:function(){return p.children}})},"Mc"),Dd8=_.d(function(p){var J=p.shape;
var S=p.onClick;var H=_.Kb(function(M){S(M);return!1});
return _.m(_.ue,null,_.m(_.Nz,{when:function(){return J().type===1}},function(){return _.m(_.bn,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.m(_.Nz,{when:function(){return J().type===2}},function(){return _.m("button",{class:"ytChipShapeButtonReset",
"on:click":H},_.m(_.bn,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.m(_.Nz,{when:function(){return J().type===0}},function(){return _.m(_.fV,null)}))},"Nc");_.ci(_.qC,"chip-shape",{props:{data:_.fD}});var ae=function(){var p=_.T.apply(this,arguments)||this;p.disableDeselectEvent=!1;p.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return p};
_.Q(ae,_.T);_.R=ae.prototype;_.R.onSelectChipCommand=function(p){if(!this.selected&&this.data&&(p=_.e(p,GQo),p.targetId&&p.targetId===this.data.targetId))this.onTap()};
_.R.onFilterChipTransformCommand=function(p){if(!this.selected&&this.data){var J;(p=(J=_.e(p,XP8))==null?void 0:J.chipUniqueId)&&p===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.R.dataChanged=function(){var p=this;_.mN(this,function(){p.data&&p.data.isSelected&&!p.selected&&(p.scrollChipIntoView(),p.onTap())})};
_.R.computeChipStyle=function(p){return p!=null?p:"STYLE_DEFAULT"};
_.R.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.IV(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.IV(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.R.onFocus=function(){var p=_.vO().resolve(_.F9(_.CD));p&&p.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.R.scrollChipIntoView=function(){_.cf(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.vh.Object.defineProperties(ae.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 u2g({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
ae.prototype.onFocus=ae.prototype.onFocus;ae.prototype.onTap=ae.prototype.onTap;ae.prototype.dataChanged=ae.prototype.dataChanged;_.V([_.B(_.q3),_.Y("design:type",Object)],ae.prototype,"ironButtonState",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],ae.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],ae.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.ua),_.Y("design:type",Object)],ae.prototype,"ironA11yKeysBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ae.prototype,"disableDeselectEvent",void 0);_.V([_.N(),_.Y("design:type",Object)],ae.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.icon"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ae.prototype,"hasIcon",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data.uniqueId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ae.prototype,"isGnomeChip",null);_.V([_.N({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.Y("design:type",String)],ae.prototype,"chipStyle",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],ae.prototype,"selected",void 0);
_.V([_.U("data","selected"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ae.prototype,"chipShapeData",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ae.prototype,"dataChanged",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ae.prototype,"onTap",null);
_.V([_.GI("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ae.prototype,"onFocus",null);_.V([_.sD({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],ae);
_.l(ae,"yt-chip-cloud-chip-renderer",function(){if(tzd===void 0){var p=document.createElement("template");_.C(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');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;gxd===void 0&&(gxd=document.createElement("template"));var H=gxd;S.call(J,H.content.cloneNode(!0),p.content.firstChild);tzd=p}p=tzd;return p},{mode:2});var q_s=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.kcn=_.d(function(p){function J(){if(q_s.has(p.data().displayType)){var F=!H(),f;if((f=p.disableDeselection)==null||!f.call(p)||F){p.data().selected=F;f=Object.assign({},Z(),{selected:F});n(f);var O;(O=p.callback)==null||O.call(p,f,F)}}}
var S=_.nE("chip-view-model",function(F){var f=p.data().tooltipTargetId,O=_.aQ();f&&_.qZ(O,f,F);return function(){V5(O,F)}}),H=function(){var F,f;
return!!(((F=p.selected)==null?void 0:F.call(p))!==void 0?(f=p.selected)==null?0:f.call(p):Z().selected)},M=_.K(_.re(p.data)),X=M.next().value;
M=M.next().value;var Z=X,n=M,b=_.v$(VGX,function(){return p.data().chipEntityKey||""});
return _.m("chip-view-model",{class:"ytChipViewModelHost",el:S},_.m(_.qC,{data:function(){var F,f=Object.assign({},Z(),{selected:H()}),O=b(),A=(F=p.disableDeselection)==null?void 0:F.call(p);a:switch(f.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":F=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":F=3;break a;default:F=0}return{text:(O==null?void 0:O.text)||f.text,state:f.disabled?1:f.selected?0:2,type:F,onTap:aAi(f,S,J,
A),accessibilityLabel:f.accessibilityLabel||f.text}}}))},"Oc");
_.kcn.idomCompat={callbacks:{callback:!0}};_.E6=_.d(function(p){var J=p.data;var S=p.callback;var H=p.selectionBehavior;var M=p.disableChipsScrollAnimation;var X=_.mo("div");p=_.K(_.eQ(!0,void 0,"xkhdbf"));var Z=p.next().value,n=p.next().value;p=_.K(_.eQ(!1,void 0,"gY0n0c"));var b=p.next().value,F=p.next().value,f=!1,O=0;_.qz(function(){n(W());F(y())});
p=_.K(_.re(function(){var I={};return J().autoselectedChipIndex!=null?(I[J().autoselectedChipIndex]=!0,I):{}}));
var A=p.next().value,P=p.next().value,W=function(){var I=X.value;return I==null||I.scrollLeft-1<=0},y=function(){var I=X.value;
return I==null?!1:I.scrollLeft+1>=(I==null?NaN:I.scrollWidth)-(I==null?NaN:I.clientWidth)},t=function(){return J().isHorizontallyScrollable},D=function(I){X.value!=null&&(_.jn("HTML_DIR")==="rtl"&&(I=-I),X.value.scrollBy({left:I,
behavior:(M==null?0:M())?"instant":"smooth"}))},k=function(){D(-320)},E=function(){D(320)},a=_.Kb(function(I){f=!0;
O=I.clientX}),q=_.Kb(function(I){if(f){I=I.clientX;
var Z3=I-O;O=I;var vg;(vg=X.value)==null||vg.scrollBy({left:-Z3})}}),w=_.Kb(function(){var I=W(),Z3=y();
I!==Z()&&n(I);Z3!==b()&&F(Z3)});
_.fE("pointerup",function(){f&&(f=!1)});
return _.m("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.m(_.TK,{contentId:function(){return J().contentId},
useModernStyle:!0},function(){var I={},Z3={};return _.m("div",null,_.m(_.v,{cond:function(){return J().title},
then:function(){return _.m("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.m("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return J().title}),_.m(_.AH,{data:function(){return J().overflowButton}},{buttonViewModel:_.D0}))}}),_.m("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.m(_.v,{cond:function(){return J().previousButton},
then:function(){var vg={};return _.m("div",{class:_.XB("ytChipsShelfViewModelLeftArrowContainer",(vg.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return Z()},vg))},_.m(_.AH,{data:function(){return J().previousButton}},{buttonViewModel:function(yX){return _.m(_.D0,{data:yX.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:k})}}))}}),_.m("div",{el:X,
"on:pointerdown":a,"on:pointermove":q,"on:scroll":w,class:_.XB("ytChipsShelfViewModelChipsScrollContainer",(I.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=t,I))},_.m("div",{class:_.XB("ytChipsShelfViewModelChipsContainer",(Z3.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=t,Z3.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Z3)),role:"tablist"},_.m(_.AH,{data:function(){return J().contents}},{chipViewModel:function(vg,yX){return _.m("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.m(_.kcn,{data:vg.data,
callback:function(Pg,ov){var NW=yX(),TW,Ys=(TW=H==null?void 0:H())!=null?TW:0;Ys===1||Ys===2?(TW={},P((TW[NW]=ov,TW))):Ys===0&&(TW={},P(Object.assign({},A(),(TW[NW]=ov,TW))));S==null||S(Pg,ov,NW)},
disableDeselection:function(){return(H==null?void 0:H())===1},
selected:function(){return!!A()[yX()]}}))}}))),_.m(_.v,{cond:function(){return J().nextButton},
then:function(){var vg={};return _.m("div",{class:_.XB("ytChipsShelfViewModelRightArrowContainer",(vg.ytChipsShelfViewModelRightArrowContainerIsHidden=b,vg))},_.m(_.AH,{data:function(){return J().nextButton}},{buttonViewModel:function(yX){return _.m(_.D0,{data:yX.data,
className:"ytChipsShelfViewModelRightArrow",onClick:E})}}))}})))}))},"Qc");
_.E6.idomCompat={callbacks:{callback:!0}};var Nq8=_.d(function(p){var J=p.data;var S=p.showChips;var H=p.isUpdateInProgress;var M=function(){return S()&&!H()};
p={};return _.m("ytd-ai-response-box-view-model",{class:_.XB("ytdAiResponseBoxViewModelHost")},_.m("div",{class:_.XB("ytdAiResponseBoxViewModelResponseMessageContainer",(p.ytdAiResponseBoxViewModelResponseMessageContainerHidden=M,p))},_.m(_.v,{cond:H,then:function(){return _.m("div",null,_.m(_.v3,{text:function(){return J().responsePendingMessage}}))},
else:function(){return _.m(_.fV,null,_.m(_.v,{cond:function(){var X;return(X=J().responseMessageIcon)==null?void 0:X.iconType},
then:function(X){return _.m("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.m(_.bn,{icon:X}))}}),_.m("div",null,_.m(_.v3,{text:function(){return J().responseMessage}})))}})),_.m(_.AH,{data:function(){return J().chipsShelf}},{chipsShelfViewModel:function(X){X=X.data;
var Z={};return _.m("div",{class:_.XB("ytdAiResponseBoxViewModelChipsShelfContainer",(Z.ytdAiResponseBoxViewModelChipsShelfContainerShown=M,Z))},_.m(_.E6,{data:X,selectionBehavior:3}))}}))},"Rc");var TqE;TqE=Object.assign({},{continuation:cvn,download:aKL,canvas:k3k,reportChannelAbuse:HS8,ui:TVX,share:Mc8,talkToRecs:RQL,watch:Kq,ypc:mbM,radioButtonGroup:hrs,collabInviteLink:gYg},xC8,{voiceSearch:lXk,shorts:RQ});_.YS=yI(TqE);_.dd8=Bv(_.YS);_.utU=(0,_.dd8)(_.YS.talkToRecs,{talkToRecsStateSelector:function(p){return p}});_.ci(_.d(function(p){var J=_.K((0,_.MjE)(p.data)).next().value,S=_.K(lAL()),H=S.next().value;S=S.next().value;var M=_.fb(_.utU.talkToRecsStateSelector),X=_.K(_.eQ("",void 0,"dEkOPc")),Z=X.next().value,n=X.next().value;X=_.K(_.eQ(!1,void 0,"CdznQb"));var b=X.next().value,F=X.next().value;X=_.K(_.eQ(!1,void 0,"IAmtbb"));var f=X.next().value,O=X.next().value;X=_.K(_.eQ(!1,void 0,"sBnHoc"));var A=X.next().value,P=X.next().value;_.ad(function(){var w=J().onVisible;w&&_.Dm(w,{});var I,Z3,vg;n((vg=(Z3=Y_k(J(),
M()))!=null?Z3:(I=J().textInputValue)==null?void 0:I.content)!=null?vg:"")});
var W=_.Kb(function(){O(!0);F(!0)}),y=_.Kb(function(){F(!1)});
_.lf(function(){J()&&(O(!1),P(!1))},"ltfxjf");
var t=function(w){var I=J().onUpdateText;I&&_.Dm(I,{form:{userQuery:w}})},D=_.Uj(function(w){t(w)},150),k=_.Kb(function(w){w=w.target.value.trim();
n(w);D(w);return!1});
_.lf(function(){var w=Y_k(J(),M());w&&w!==Z()&&n(w)},"ImOqbb");
var E=function(){P(!0)},a=_.Kb(function(w){if(w.key==="Enter"){t(w.target.value.trim());
var I=_.e(J().submitButton,_.mO);w=void 0;var Z3;if(I==null?0:(Z3=I.loggingDirectives)==null?0:Z3.trackingParams)w=_.Az(I.loggingDirectives.trackingParams);if(Z3=I==null?void 0:I.onTap)_.Dm(Z3,{clickedVisualElement:w}),E()}return!1}),q=_.Kb(function(){H("yt-feed-customization-scroll-up")});
return _.m("ytd-feed-customization-form-view-model",{class:"ytdFeedCustomizationFormViewModelHost",el:_.Y2(S)},_.m(_.v,{cond:function(){var w,I;return!((I=(w=p.isCollapsed)==null?void 0:w.call(p))!=null&&I)},
then:function(){var w={};return _.m("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer"},_.m(_.v,{cond:function(){return!!J().welcomeBannerTitle},
then:function(){return _.m("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.m("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.m(_.v3,{text:function(){return J().welcomeBannerTitle}})),_.m("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.m(_.v3,{text:function(){return J().welcomeBannerSubtitle}})))}}),_.m("div",{class:_.XB("ytdFeedCustomizationFormViewModelInputContainer",(w.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
b,w))},_.m("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var I;return(I=J().textInputPlaceholder)==null?void 0:I.content},
"prop:value":Z,"on:focus":W,"on:blur":y,"on:input":k,"on:keyup":a,maxlength:250}),_.m(_.v,{cond:function(){return!!Z()},
then:function(){return _.m(_.AH,{data:function(){return J().clearButton}},{buttonViewModel:function(I){return _.m("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.m(_.D0,{data:I.data}))}})}}),_.m(_.v,{cond:function(){return A()},
then:function(){return _.m(_.AH,{data:function(){return J().inProgressButton}},{buttonViewModel:function(I){return _.m("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.m(_.D0,{data:I.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.m(_.AH,{data:function(){return J().submitButton}},{buttonViewModel:function(I){return _.m("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.m(_.D0,{data:I.data,
onClick:E}))}})}}),_.m(_.AH,{data:function(){return J().menuButton}},{buttonViewModel:function(I){return _.m("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.m(_.D0,{data:I.data}))}})),_.m(_.AH,{data:function(){return J().contents}},{aiResponseBoxViewModel:function(I){return _.m("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.m(Nq8,{data:I.data,
showChips:f,isUpdateInProgress:A}))}}))},
else:function(){return _.m("div",{class:"ytdFeedCustomizationFormViewModelCollapsedBodyContainer","on:click":q},_.m("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var w;return Z()||((w=J().textInputPlaceholder)==null?void 0:w.content)}))}}))},"Uc"),"ytd-feed-customization-form-view-model",{props:{data:_.fD,
isCollapsed:_.fD}});var lfU=_.uT.persistentPanelVisibleSelector,rH=function(){var p=_.T.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.hasSelectedChipContent=!1;p.collapseFeedCustomizationForm=!1;p.isPlaylist=!1;p.playlistVotingAnimationEnabled=_.z("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};
_.Q(rH,_.T);_.R=rH.prototype;
_.R.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}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model",properties:{isCollapsed:"[[collapseFeedCustomizationForm]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.R.attached=function(){var p=this;document.addEventListener("scroll",_.n3(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var J;this.toolbarHeight=((J=document.querySelector("ytd-masthead"))==null?void 0:J.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(S){p.handleIntersect(S)},{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))};
_.R.detached=function(){var p;(p=this.intersectionObserver)==null||p.disconnect();var J;(J=this.resizeObserver)==null||J.disconnect();document.removeEventListener("scroll",_.n3(this,this.updateChipBarWidthAndTop))};
_.R.dataChanged=function(){var p=this,J,S,H;((H=_.e((J=this.data)==null?void 0:(S=J.contents)==null?void 0:S[0],Oe4))==null?void 0:H.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var M=this.findSelectedChipIndex();this.selectedIndex!==M&&(this.selectedIndex=-1);_.mN(this,function(){p.selectedIndex=M;p.updateSelectedChipContent(p.selectedIndex);p.updating=!1;p.ytScrollableChipCloudBehavior.reset()})};
_.R.findSelectedChipIndex=function(){var p;if((p=this.data)==null||!p.contents)return 0;p=this.data.contents;for(var J=0;J<p.length;J++){var S=void 0;if((S=_.e(p[J],Oe4))==null?0:S.isSelected)return J}return 0};
_.R.computeStyle=function(p){return p};
_.R.handleChipCloudChipSelectAction=function(p){p=this.JSC$16379_chipsSelector.indexOf(p);p>-1&&(this.JSC$16379_chipsSelector.selectIndex(p),this.updateSelectedChipContent(p))};
_.R.updateSelectedChipContent=function(p){var J;if((J=this.data)==null||!J.contents||p<0||p>=this.data.contents.length)this.selectedChipContent=void 0;else{var S;this.selectedChipContent=(S=_.e(this.data.contents[p],Oe4))==null?void 0:S.content}};
_.R.handleChipCloudChipDeselectAction=function(){if(_.z("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var p,J,S,H=(S=_.e((p=this.data)==null?void 0:(J=p.contents)==null?void 0:J[0],Oe4))==null?void 0:S.navigationEndpoint;H&&_.IV(this.hostElement,"yt-browse-section-list-reload-endpoint",[H]);this.JSC$16379_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.R.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.R.updateDynamicHeight=function(){var p=this;this.hasSelectedChipContent&&!this.notSticky?_.mN(this,function(){var J=_.Jn(p.hostElement).querySelector("#chips-wrapper");J&&_.K3(p.hostElement,{"--ytd-chips-bar-dynamic-height":J.clientHeight+"px"})}):_.K3(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.R.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.R.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.R.onResize=function(){this.updateLayout()};
_.R.updateLayout=function(){var p=this.ytScrollableChipCloudBehavior;_.mN(p,p.setContainerWidthDiff);p=this.ytScrollableChipCloudBehavior;_.mN(p,p.setButtonsState)};
_.R.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.R.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.R.handleIntersect=function(p){this.notSticky=this.isChannelPageGrid||this.disableSticky||p[0].intersectionRatio===1};
_.R.updateDimensions=function(){var p=this.ytRendererBehavior.parentComponent;if(p){var J,S=(J=p.headerElement)!=null?J:p;_.K3(this.hostElement,{"--ytd-rich-grid-chips-bar-width":S.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.R.updateSelectedIndexFromBinding=function(p){this.selectedIndex=p.detail.value};
_.R.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var p;(p=this.sortFilterHeaderRendererElement)==null||p.setAttribute("is-playlist-page-with-filters","")}};
_.R.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(GMd(!this.notSticky))};
_.vh.Object.defineProperties(rH.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,J,S=(p=this.data)==null?void 0:(J=p.contents)==null?void 0:J.find(function(H){return _.e(H,oYM)});
return{sortFilterHeaderRenderer:_.e(S,oYM)}}}});
rH.prototype.dispatchChipBarIsSticky=rH.prototype.dispatchChipBarIsSticky;rH.prototype.isPlaylistPageChanged=rH.prototype.isPlaylistPageChanged;rH.prototype.updateChipBarWidthAndTop=rH.prototype.updateChipBarWidthAndTop;rH.prototype.onResize=rH.prototype.onResize;rH.prototype.onPersistentPanelVisibleChanged=rH.prototype.onPersistentPanelVisibleChanged;rH.prototype.onGuideIsExpandedChanged=rH.prototype.onGuideIsExpandedChanged;rH.prototype.updateDynamicHeight=rH.prototype.updateDynamicHeight;
rH.prototype.onSelectedChipContentChanged=rH.prototype.onSelectedChipContentChanged;rH.prototype.dataChanged=rH.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],rH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],rH.prototype,"actionHandlerBehavior",void 0);
_.V([_.B(_.wL),_.Y("design:type",Object)],rH.prototype,"ironResizableBehavior",void 0);_.V([_.B(),_.Y("design:type",VQ)],rH.prototype,"ytScrollableChipCloudBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],rH.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],rH.prototype,"data",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],rH.prototype,"selectedIndex",void 0);_.V([_.N({value:320}),_.Y("design:type",Number)],rH.prototype,"scrollDistance",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rH.prototype,"isDarkTheme",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rH.prototype,"notSticky",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rH.prototype,"transparentBackground",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.Y("design:type",String)],rH.prototype,"componentStyle",void 0);
_.V([_.N({selector:_.yL3}),_.Y("design:type",Boolean)],rH.prototype,"guideIsExpanded",void 0);_.V([_.N({selector:lfU}),_.Y("design:type",Boolean)],rH.prototype,"persistentPanelVisible",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rH.prototype,"shouldHide",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rH.prototype,"disableSticky",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rH.prototype,"fluidWidth",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rH.prototype,"isClipList",void 0);_.V([_.N(),_.Y("design:type",Object)],rH.prototype,"defaultChipIndex",void 0);_.V([_.N(),_.Y("design:type",Object)],rH.prototype,"selectedChipContent",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rH.prototype,"hasSelectedChipContent",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rH.prototype,"collapseFeedCustomizationForm",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rH.prototype,"isPlaylist",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rH.prototype,"playlistVotingAnimationEnabled",void 0);_.V([_.FM("#chips"),_.Y("design:type",Object)],rH.prototype,"JSC$16379_chipsSelector",void 0);_.V([_.FM("ytd-sort-filter-header-renderer"),_.Y("design:type",HTMLElement)],rH.prototype,"sortFilterHeaderRendererElement",void 0);
_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],rH.prototype,"updating",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rH.prototype,"dataChanged",null);_.V([_.bO("selectedChipContent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rH.prototype,"onSelectedChipContentChanged",null);
_.V([_.bO("hasSelectedChipContent","notSticky"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rH.prototype,"updateDynamicHeight",null);_.V([_.bO("guideIsExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rH.prototype,"onGuideIsExpandedChanged",null);_.V([_.bO("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rH.prototype,"onPersistentPanelVisibleChanged",null);
_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rH.prototype,"onResize",null);_.V([_.An("isChannelPageGrid","disableSticky","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rH.prototype,"updateChipBarWidthAndTop",null);_.V([_.U("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rH.prototype,"isChannelPageGrid",null);
_.V([_.U("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rH.prototype,"isHashtagLandingPage",null);_.V([_.bO("isPlaylistPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rH.prototype,"isPlaylistPageChanged",null);_.V([_.U("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rH.prototype,"isPlaylistPage",null);
_.V([_.U("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rH.prototype,"isDisableDeselectEvent",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rH.prototype,"sortFilterHeaderRendererData",null);_.V([_.N({reflectToAttribute:!0,selector:_.Dak}),_.Y("design:type",String)],rH.prototype,"frostedGlassMode",void 0);
_.V([_.bO("notSticky"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rH.prototype,"dispatchChipBarIsSticky",null);_.V([_.gw({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],rH);
_.l(rH,"ytd-feed-filter-chip-bar-renderer",function(){if(sPU!==void 0)return sPU;var p=document.createElement("template");_.C(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 id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return sPU=p},{mode:1});var Vz8;var qb8=_.d(function(p){var J=p.data;var S=p.buttonIndex;var H=p.selectedIndex;var M=p.onSelect;var X=function(){return S()===H()},Z=function(){var n,b;
return(b=(n=J().text)==null?void 0:n.content)!=null?b:""};
p=_.d2X();return _.m("yt-toggleable-image-button-view-model",{class:function(){var n={};n=(n.toggleableImageButtonViewModelHost=!0,n[""]=!0,n.toggleableImageButtonViewModelSemiTransparent=H()!==-1&&!X(),n);return _.Qh(n)},
tabindex:0,"aria-label":Z,"aria-pressed":X,role:"button","on:keydown":p,"on:click":_.Kb(function(){M(J().onSubmitCommand);return!1})},_.m(_.v,{cond:function(){return J().logo},
then:function(n){return _.m(_.a4,{data:n,className:function(){var b={};b=(b.toggleableImageButtonViewModelImage=!0,b.toggleableImageButtonViewModelCircularRadius=!(!J().backgroundColor||!J().backgroundColorDarkMode),b.toggleableImageButtonViewModelGradientRing=!!(X()&&J().backgroundColor&&J().backgroundColorDarkMode),b);return _.Qh(b)},
alt:Z,useWidth:!1,style:function(){if(X()&&J().backgroundColor&&J().backgroundColorDarkMode){var b=Ur(Number(J().backgroundColorDarkMode),"1");var F=Ur(Number(J().backgroundColor),"1");b="background: linear-gradient(180deg,"+b+","+F+") border-box;"}else b="";return b}})}}),_.m(_.B3,{model:{borderRadius:"16px"}}),_.m("p",{class:function(){var n={};
n=(n.toggleableImageButtonViewModelLabel=!0,n.toggleableImageButtonViewModelBoldText=X(),n);return _.Qh(n)}},_.m(_.v3,{text:function(){return J().text}})))},"Vc");
qb8.idomCompat=!0;var Ex8=_.d(function(p){var J=p.data;p=_.K(_.eQ({index:-1,command:{}},void 0,"GM3umb"));var S=p.next().value,H=p.next().value;return _.m("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.m("div",{class:"nudgeFormViewModelFormOptions"},_.m(_.AH,{data:function(){return J().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(M,X){return _.m(qb8,{data:M.data,buttonIndex:X,selectedIndex:function(){return S().index},
onSelect:function(Z){H({index:X(),command:Z})}})}})),_.m(_.v3,{text:function(){return J().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.m("div",{class:"nudgeFormViewModelSubmit"},_.m(_.AH,{data:function(){return J().submitButton}},{buttonViewModel:function(M){return _.m(afd,{data:M.data,
isDisabled:function(){return S().index===-1},
onClick:function(){_.Dm(S().command)}})}})))},"Wc");
Ex8.idomCompat=!0;var afd=_.d(function(p){var J=_.BW(function(){return Object.assign({},p.data(),{state:p.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.m(_.D0,{data:J,onClick:p.onClick})},"Xc");_.ci(Ex8,"yt-nudge-form-view-model",{props:{data:_.fD}});var jw=function(){var p=_.T.apply(this,arguments)||this;p.roundedContainer=!0;p.buttonUpdate=_.z("web_modern_buttons");p.isDarkMode=!1;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return p};
_.Q(jw,_.T);_.R=jw.prototype;_.R.computeNudgeStyle=function(p){return p?"modernized-nudge":""};
_.R.handleDarkModeToggledAction=function(p){this.isDarkMode=p};
_.R.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.R.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"}}}};
_.R.computeIsHorizontalButtons=function(p){return p?!!p.applyModernizedStyle&&!!p.enableHorizontalButtons&&!!p.secondaryButton:!1};
_.vh.Object.defineProperties(jw.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,J;return(J=(p=this.data)==null?void 0:p.backgroundStyle)!=null?J:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var p,J;return(J=(p=this.data)==null?void 0:p.contentsLocation)!=null?J:"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)}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],jw.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],jw.prototype,"actionHandlerBehavior",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("isHideEnclosingAction"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jw.prototype,"isHidden",null);_.V([_.N(),_.Y("design:type",Object)],jw.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jw.prototype,"roundedContainer",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jw.prototype,"buttonUpdate",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.Y("design:type",String)],jw.prototype,"nudgeStyle",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.trimStyle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],jw.prototype,"trimStyle",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.backgroundStyle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],jw.prototype,"backgroundStyle",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data.contentsLocation"),_.Y("design:type",String),_.Y("design:paramtypes",[])],jw.prototype,"contentsLocation",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.disableDropShadow"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jw.prototype,"noShadow",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.lightIconImage"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jw.prototype,"noIcon",null);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.Y("design:type",Boolean)],jw.prototype,"isHorizontalButtons",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],jw.prototype,"isDarkMode",void 0);_.V([_.gw({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],jw);
_.l(jw,"ytd-feed-nudge-renderer",function(){if(Vz8!==void 0)return Vz8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Vz8=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var YbU;var rf8;var wH=function(){var p=_.T.apply(this,arguments)||this;p.collapsed=!1;p.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return p};
_.Q(wH,_.T);wH.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"}}}};
wH.prototype.handleRatingSelect=function(){var p;((p=this.data)==null?0:p.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
wH.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],wH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],wH.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],wH.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.ZU),_.Y("design:type",Object)],wH.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wH.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],wH.prototype,"collapsed",void 0);_.V([_.gw({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],wH);
_.l(wH,"ytd-slimline-survey-renderer",function(){if(rf8!==void 0)return rf8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return rf8=p},{mode:1});var jP8;var xS=function(){return _.T.apply(this,arguments)||this};
_.Q(xS,_.T);xS.prototype.maybeGetBackgroundColor=function(p){return this.isDarkMode?p.section2Color:p.section3Color};
xS.prototype.colorPaletteChanged=function(){var p=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;p&&(p==null?0:p.secondaryTitleColor)&&this.maybeGetBackgroundColor(p)?(this.hostElement.style.backgroundColor=_.yi(this.maybeGetBackgroundColor(p)),this.hostElement.style.color=_.yi(p.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
xS.prototype.colorPaletteChanged=xS.prototype.colorPaletteChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],xS.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xS.prototype,"data",void 0);_.V([_.N({selector:function(p){return p.ui.darkModeIsEnabled}}),
_.Y("design:type",Boolean)],xS.prototype,"isDarkMode",void 0);_.V([_.N(),_.Y("design:type",Object)],xS.prototype,"lightColorPalette",void 0);_.V([_.N(),_.Y("design:type",Object)],xS.prototype,"darkColorPalette",void 0);_.V([_.bO("darkColorPalette","lightColorPalette","data","isDarkMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xS.prototype,"colorPaletteChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],xS);
_.l(xS,"ytd-endorsement-header-renderer",function(){if(jP8!==void 0)return jP8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return jP8=p},{mode:1});_.ci(_.RH,"yt-decorated-avatar-view-model",{props:{data:_.fD,className:_.fD}});_.cD=new _.ni("VIEW_TRANSITION_MANAGER_TOKEN");var Ie=function(){var p=_.T.apply(this,arguments)||this;p.fullHeight=_.z("web_rich_grid_media_full_height");p.showChannelAvatar=!0;p.hasPlaylistThumbnail=!1;p.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};p.registerThumbnailForPageTransition=function(){_.z("web_thumbnail_to_watch_transition")&&_.wA4(_.vO().resolve(_.cD),p.thumbnail)};
return p};
_.Q(Ie,_.T);_.R=Ie.prototype;
_.R.configureRendererStamper=function(){return{lazyLoadMenu:YB,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.shouldLazyLoadMenu=function(){var p=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.z("kevlar_modern_downloads_page")||!p};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16403_inlinePreviewHoverListener=hH({mediaRenderer:this,lockupElement:this.JSC$16403_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.R.getVideoPreviewOpts=function(){var p={},J;if((J=this.data)==null?0:J.multipleInlinePlaybackEndpoint)p=sm8;this.isRadio&&(p=Uev);return p};
_.R.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$16403_inlinePreviewHoverListener)==null||r_(p)};
_.R.getOwner=function(){var p,J,S;return((p=this.data)==null?void 0:(J=p.channelThumbnailSupportedRenderers)==null?void 0:J.channelThumbnailWithLinkRenderer)||_.e((S=this.data)==null?void 0:S.showProviderChannelThumbnail,ve4)};
_.R.updateLockupSize=function(){var p;((p=this.getOwner())==null?0:p.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.R.getFeedbackEndpoint=function(p){if(_.e(p,_.U0))return p;var J,S;p=(S=(J=_.e(p,_.H9))==null?void 0:J.commands)!=null?S:[];J=_.K(p);for(S=J.next();!S.done;S=J.next())if(S=this.getFeedbackEndpoint(S.value))return S;return null};
_.R.computeNavigationEndpoint=function(p){return h9s(p==null?void 0:p.navigationEndpoint)};
_.R.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var p=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(p)!==JSON.stringify(this.data)&&this.set("data",p)}};
_.R.onDataChanged=function(){var p=this,J=this.getOwner();if(J){this.set("data.owner",J);var S,H,M,X,Z,n=((S=this.data)==null?void 0:(H=S.shortBylineText)==null?void 0:(M=H.runs)==null?void 0:(X=M[0])==null?void 0:X.text)||((Z=J.name)==null?void 0:Z.simpleText);this.set("data.owner.title",n)}var b,F,f,O,A,P;J=((b=this.data)==null?void 0:(F=b.thumbnailRenderer)==null?void 0:F.playlistVideoThumbnailRenderer)||((f=this.data)==null?void 0:(O=f.thumbnailRenderer)==null?void 0:O.playlistCustomThumbnailRenderer)||
((A=this.data)==null?void 0:(P=A.thumbnailRenderer)==null?void 0:P.showCustomThumbnailRenderer);var W;((W=this.data)==null?0:W.thumbnail)||!J||this.set("data.thumbnail",J.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){p.updateLockupSize()});
var y;if(b=((y=this.data)==null?void 0:y.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b);var t;((t=this.dismissActionToReplayEntity)==null?0:t.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.R.onHiddenChanged=function(){this.updateLockupSize()};
_.R.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.IV(this.hostElement,"yt-terminate-video-preview-action");else{var p;(p=this.videoTitleLink)==null||p.focus()}};
_.R.metadataColorChanged=function(){var p;if(this.metadataColor&&((p=this.videoTitle)==null?0:p.style))this.videoTitle.style.color=_.yi(this.metadataColor);else{var J,S;!this.metadataColor&&((J=this.videoTitle)==null?0:(S=J.style)==null?0:S.color)&&(this.videoTitle.style.color="")}};
_.R.onDetailsClick=function(p){var J=this.computedNavigationEndpoint;J&&(_.jK(_.Er(p),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.cf(this.hostElement,"yt-navigate",{endpoint:J}))};
_.R.onRendererTap=function(){this.registerThumbnailForPageTransition();var p,J,S=((p=this.data)==null?void 0:p.serviceEndpoint)||this.getFeedbackEndpoint((J=this.data)==null?void 0:J.navigationEndpoint);S&&_.e(S,_.U0)&&this.ytComponentBehavior.resolveCommand(S)};
_.R.onMouseDown=function(p){var J=p.target,S=this.computedNavigationEndpoint,H;p=J.href||((H=_.e(S==null?void 0:S.commandMetadata,_.i7))==null?void 0:H.url);H=J.data||S;p&&H&&CgL(p,H)};
_.R.computeVideoTitleText=function(){var p;if((p=this.data)==null?0:p.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.R.computeHasPlaylistThumbnail=function(p){var J,S,H,M,X;if((((J=p.thumbnailRenderer)==null?0:J.playlistVideoThumbnailRenderer)||((S=p.thumbnailRenderer)==null?0:S.playlistCustomThumbnailRenderer)||((H=p.thumbnailRenderer)==null?0:H.showCustomThumbnailRenderer)||((M=p.thumbnailRenderer)==null?0:M.playlistVideoThumbnailRenderer)||((X=p.thumbnailRenderer)==null?0:X.playlistCustomThumbnailRenderer))&&p.thumbnailOverlays)for(J=0;J<p.thumbnailOverlays.length;J++)if(S=void 0,(S=p.thumbnailOverlays[J])==
null?0:S.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.vh.Object.defineProperties(Ie.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.z("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$16403_inlinePreviewHoverListener)==null?0:GK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.p2X(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,J;return((p=this.data)==null?void 0:p.videoId)||((J=this.data)==null?void 0:J.playlistId)||""}}});
Ie.prototype.onMouseDown=Ie.prototype.onMouseDown;Ie.prototype.metadataColorChanged=Ie.prototype.metadataColorChanged;Ie.prototype.onIsDismissedChanged=Ie.prototype.onIsDismissedChanged;Ie.prototype.onHiddenChanged=Ie.prototype.onHiddenChanged;Ie.prototype.onDataChanged=Ie.prototype.onDataChanged;Ie.prototype.handleReloadDownloadsInfo=Ie.prototype.handleReloadDownloadsInfo;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ie.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ie.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Ie.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],Ie.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],Ie.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Ie.prototype,"ytdReduxBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],Ie.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],Ie.prototype,"entitySelectorType",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Ie.prototype,"noEndpoints",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Ie.prototype,"isRadio",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],Ie.prototype,"miniMode",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Ie.prototype,"fullHeight",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],Ie.prototype,"showDarkVideoMetadata",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Ie.prototype,"showLightVideoMetadata",void 0);_.V([_.N(),_.Y("design:type",Number)],Ie.prototype,"metadataColor",void 0);_.V([_.N(),_.Y("design:type",Object)],Ie.prototype,"showChannelAvatar",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Ie.prototype,"hidden",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],Ie.prototype,"showYtInteraction",void 0);
_.V([_.N(),_.Y("design:type",String)],Ie.prototype,"dismissedContentId",void 0);_.V([_.N({selectorArgs:["dismissedContentId"],selector:RLL}),_.Y("design:type",Object)],Ie.prototype,"dismissActionToReplayEntity",void 0);
_.V([_.N({selectorArgs:["entitySelectorType","mediaId"],selector:function(p,J,S){if(_.z("kevlar_modern_downloads_page")&&S&&J&&J!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(J){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var H=daL(p,S);if(H){J=_.gl(p,S);var M=DY(p,S),X=cLW(p,S);p=kZ(p,S);var Z=sxk(H,J,M,X);M=Z.shortViewCountText;var n=Z.publishedTimeText;Z=Z.badges;var b=p>0;X=BVt(H,J,X,p);H=_.f$(J)||J==="TRANSFER_STATE_FAILED"||J==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!vq(H.policyEntity)?
void 0:gEi(S,p,H.videoEntity.lengthSeconds);J==="TRANSFER_STATE_PAUSED_BY_USER"&&S&&!_.z("dl_resume_click_killswitch")&&(H={offlineVideoEndpoint:{videoId:S,action:"ACTION_RESUME"}});S={shortViewCountText:M,publishedTimeText:n,badges:Z,isWatched:b,navigationEndpoint:H,thumbnailOverlays:X}}else S=void 0;return S;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(J=uNW(p,S))if(H=_.tk(p,S),X=_.l0X(p,S),H!=="TRANSFER_STATE_UNKNOWN"){S=UFX(J,H,X,S,_.s4(p));break a}S=void 0}return S;default:_.xQ(new _.TG("Error: entitySelectorType defined but not matched in selector.",
p,J))}}}),
_.Y("design:type",Object)],Ie.prototype,"entityDrivenState",void 0);_.V([_.N({computed:"computeVideoTitleText(data)"}),_.Y("design:type",Object)],Ie.prototype,"videoTitleText",void 0);_.V([_.N({computed:"computeHasPlaylistThumbnail(data)"}),_.Y("design:type",Object)],Ie.prototype,"hasPlaylistThumbnail",void 0);_.V([_.N({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],Ie.prototype,"computedNavigationEndpoint",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ie.prototype,"typographyBump",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("typographyBump"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ie.prototype,"typographyBumpV2",null);_.V([_.FM("#video-title"),_.Y("design:type",HTMLElement)],Ie.prototype,"videoTitle",void 0);_.V([_.FM("#video-title-link"),_.Y("design:type",HTMLElement)],Ie.prototype,"videoTitleLink",void 0);
_.V([_.FM("#thumbnail"),_.Y("design:type",HTMLElement)],Ie.prototype,"thumbnail",void 0);_.V([_.FM("#dismissible"),_.Y("design:type",HTMLElement)],Ie.prototype,"JSC$16403_dismissibleMedia",void 0);_.V([_.U("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ie.prototype,"lazyLoadMenu",null);_.V([_.U("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ie.prototype,"immediateLoadMenu",null);
_.V([_.An("entityDrivenState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ie.prototype,"handleReloadDownloadsInfo",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ie.prototype,"onDataChanged",null);_.V([_.An("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ie.prototype,"onHiddenChanged",null);
_.V([_.bO("isDismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ie.prototype,"onIsDismissedChanged",null);_.V([_.bO("metadataColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ie.prototype,"metadataColorChanged",null);_.V([_.GI("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ie.prototype,"onMouseDown",null);
_.V([_.U("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ie.prototype,"isHovered",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ie.prototype,"useAvatar",null);_.V([_.U("data","entitySelectorType"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Ie.prototype,"mediaId",null);_.V([_.gw({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Ie);
var xdn=_.pI()(Ie,"ytd-rich-grid-media",function(){if(YbU!==void 0)return YbU;var p=document.createElement("template");_.C(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-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return YbU=p},{mode:_.Jz("kevlar_poly_si_batch_j072")?1:2});var cf8;var L0=function(){var p=_.T.apply(this,arguments)||this;p.removeMaxWidth=!0;p.insetMetadata=!1;return p};
_.Q(L0,_.T);_.R=L0.prototype;_.R.configureRendererStamper=function(){return{innerMenu:YB,outerMenu:Object.assign({},YB,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.onDataChanged=function(){var p,J=((p=this.data)==null?void 0:p.trackingParams)||"";J&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(J));var S;((S=this.dismissActionToReplayEntity)==null?0:S.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16408_inlinePreviewHoverListener=hH({mediaRenderer:this,lockupElement:this.JSC$16408_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:gGm})};
_.R.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$16408_inlinePreviewHoverListener)==null||r_(p)};
_.R.onRendererTap=function(){var p,J,S=(p=this.data)==null?void 0:(J=p.serviceEndpoints)==null?void 0:J[0];_.e(S,_.U0)&&this.componentBehavior.resolveCommand(S)};
_.R.onDetailsClick=function(p){var J,S=(J=this.data)==null?void 0:J.navigationEndpoint;S&&(_.jK(_.Er(p),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(S))};
_.R.onShow=function(){var p=this.data;p.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(p.onFirstVisibleCommand),delete p.onFirstVisibleCommand)};
_.vh.Object.defineProperties(L0.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=_.e(p.badge,nY8))){var J,S,H;return[{metadataBadgeRenderer:{label:((J=p.label)==null?void 0:(S=J.runs)==null?void 0:S[0].text)||((H=p.label)==null?void 0:H.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,J,S;return this.isSlimShort?(p=this.computedTitle)==null?void 0:(J=p.accessibility)==null?void 0:(S=J.accessibilityData)==null?void 0:S.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.z("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$16408_inlinePreviewHoverListener)==null?0:GK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
L0.prototype.onDataChanged=L0.prototype.onDataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],L0.prototype,"componentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],L0.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],L0.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.ZU),_.Y("design:type",Object)],L0.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],L0.prototype,"ytdReduxBehavior",void 0);_.V([_.FM("ytd-thumbnail"),_.Y("design:type",HTMLElement)],L0.prototype,"thumbnail",void 0);_.V([_.FM("#dismissible"),_.Y("design:type",HTMLElement)],L0.prototype,"JSC$16408_dismissibleMedia",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"removeMaxWidth",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"insetMetadata",void 0);_.V([_.N(),_.Y("design:type",String)],L0.prototype,"dismissedContentId",void 0);_.V([_.N({selectorArgs:["dismissedContentId"],selector:RLL}),_.Y("design:type",Object)],L0.prototype,"dismissActionToReplayEntity",void 0);_.V([_.U("insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"thumbnailObjectFit",null);
_.V([_.U("data","insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"innerMenu",null);_.V([_.U("data","insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"outerMenu",null);_.V([_.N(),_.Y("design:type",Object)],L0.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],L0.prototype,"miniMode",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"onDataChanged",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"shortsBadges",null);_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L0.prototype,"isShort",null);
_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L0.prototype,"isSlimShort",null);_.V([_.U("data","isShort"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"computedTitle",null);_.V([_.U("isSlimShort","computedTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"computedAccessibilityLabel",null);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L0.prototype,"shouldForce2By3",null);_.V([_.U("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L0.prototype,"isHovered",null);_.V([_.gw({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],L0);
_.l(L0,"ytd-rich-grid-slim-media",function(){if(cf8!==void 0)return cf8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return cf8=p},{mode:_.Jz("kevlar_poly_si_batch_j063")?1:2});var IfL;var L08;var pS=function(){return _.T.apply(this,arguments)||this};
_.Q(pS,_.T);pS.prototype.computeIcon=function(p){return p&&p.iconType?"yt-sys-icons:"+p.iconType.toLowerCase():""};
pS.prototype.onMouseEnter=function(){this.isHovered=!0};
pS.prototype.onMouseLeave=function(){this.isHovered=!1};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],pS.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],pS.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],pS.prototype,"isHovered",void 0);
_.V([_.gw({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],pS);
_.l(pS,"ytd-expand-on-hover-card-renderer",function(){if(L08!==void 0)return L08;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return L08=p},{mode:1});var pM8,JRq=function(){if(pM8!==void 0)return pM8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return pM8=p};_.QI("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var J2=function(){var p=_.T.apply(this,arguments)||this;p.compactStyle=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.Q(J2,_.T);_.R=J2.prototype;_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.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"}}}};
_.R.computeHideDot=function(p){return!(p&&p.subscriberCountText&&p.videoCountText)||this.compactStyle};
_.R.hasDualButtons=function(p){return p&&p.purchaseButton&&p.subscribeButton};
_.R.backgroundColorChanged=function(){if(this.data!==void 0){var p=this.data.backgroundColor;this.isDarkTheme&&(p=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=p!=null?_.yi(p):"transparent"}};
_.R.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.R.onTap=function(p){var J,S,H=((J=this.data)==null?void 0:J.navigationEndpoint)||((S=this.data)==null?void 0:S.serviceEndpoint);_.e(H,_.El)&&(H&&_.vO().resolve(_.Ov).resolveCommand(H,{form:{element:this.hostElement}}),p.preventDefault())};
_.R.computeChannelEndpoint=function(p){return _.e(p,_.El)?null:p};
_.R.computeHrefEndpoint=function(p){return _.e(p,_.El)?null:this.componentBehavior.computeHref_(p)};
_.R.computeChannelRendererStyle=function(p){return p};
_.R.computeIconSize=function(p){return p?108:136};
_.vh.Object.defineProperties(J2,{template:{configurable:!0,enumerable:!0,get:function(){return JRq()}}});
J2.prototype.backgroundColorChanged=J2.prototype.backgroundColorChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],J2.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],J2.prototype,"componentBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],J2.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],J2.prototype,"isDarkTheme",void 0);_.V([_.N({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.Y("design:type",String)],J2.prototype,"channelRendererStyle",void 0);_.V([_.N({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],J2.prototype,"dualButtons",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],J2.prototype,"useBiggerThumbs",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.zG("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],J2.prototype,"biggerThumbStyle",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],J2.prototype,"compactStyle",void 0);_.V([_.bO("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],J2.prototype,"backgroundColorChanged",null);_.V([_.gw({is:"ytd-channel-renderer",disableElementRegistration:!0})],J2);_.l(J2,"ytd-channel-renderer",function(){return JRq()},{mode:1});var S$n;var H8m;_.QI("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Sc=function(){var p=_.T.apply(this,arguments)||this;p.displayItemCount=2;p.hasPlaylistThumbnail=!1;p.stackThumbnailSize="large";return p};
_.Q(Sc,_.T);_.R=Sc.prototype;_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.R.computeFirstVideos=function(p,J){return p&&J?p.slice(0,J):[]};
_.R.computeThumbnailWidth=function(p,J){return p?J==="BIG"?500:J==="MASSIVE"?600:J==="MEDIUM"?450:420:360};
_.R.computeThumbnailHeight=function(p,J){return p?J==="BIG"?280:J==="MASSIVE"?337:234:202};
_.R.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$16421_inlinePreviewHoverListener)==null||r_(p)};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16421_inlinePreviewHoverListener=hH({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:sm8,thumbnailElement:this.thumbnail})};
_.R.computeHasPlaylistThumbnail=function(p){var J,S;if((((J=p.thumbnailRenderer)==null?0:J.playlistVideoThumbnailRenderer)||((S=p.thumbnailRenderer)==null?0:S.playlistCustomThumbnailRenderer))&&p.thumbnailOverlays)for(J=0;J<p.thumbnailOverlays.length;J++)if(S=void 0,(S=p.thumbnailOverlays[J])==null?0:S.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.vh.Object.defineProperties(Sc.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$16421_inlinePreviewHoverListener)==null?0:GK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Sc.prototype.dataChanged=Sc.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],Sc.prototype,"ytdLockupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Sc.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Sc.prototype,"displayItemCount",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Sc.prototype,"useBiggerThumbs",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.zG("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Sc.prototype,"biggerThumbsStyle",void 0);_.V([_.N({computed:"computeHasPlaylistThumbnail(data)"}),_.Y("design:type",Object)],Sc.prototype,"hasPlaylistThumbnail",void 0);_.V([_.N(),_.Y("design:type",String)],Sc.prototype,"stackThumbnailSize",void 0);_.V([_.FM("ytd-thumbnail"),_.Y("design:type",HTMLElement)],Sc.prototype,"thumbnail",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sc.prototype,"dataChanged",null);
_.V([_.U("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Sc.prototype,"isHovered",null);_.V([_.gw({is:"ytd-radio-renderer",disableElementRegistration:!0})],Sc);
_.l(Sc,"ytd-radio-renderer",function(){if(H8m!==void 0)return H8m;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return H8m=p},{mode:_.Jz("kevlar_poly_si_batch_j058")?1:2});var MO4;_.QI("itemSectionRenderer","showRenderer","ytd-show-renderer");var HI=function(){return _.T.apply(this,arguments)||this};
_.Q(HI,_.T);HI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
HI.prototype.computeThumbnailWidth=function(p){return p?360:246};
HI.prototype.computeUseProminentThumbs=function(p){return p};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],HI.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],HI.prototype,"isSearch",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.Y("design:type",Boolean)],HI.prototype,"useProminentThumbs",void 0);_.V([_.gw({is:"ytd-show-renderer",disableElementRegistration:!0})],HI);
_.l(HI,"ytd-show-renderer",function(){if(MO4!==void 0)return MO4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return MO4=p},{mode:1});_.QI("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Mb=function(){var p=_.T.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.Q(Mb,_.T);Mb.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"}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Mb.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Mb.prototype,"isRichGrid",void 0);_.V([_.gw({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Mb);
_.l(Mb,"ytd-feed-entry-renderer",function(){if(S$n!==void 0)return S$n;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return S$n=p},{mode:1});var XM8;var XT=function(){return _.T.apply(this,arguments)||this};
_.Q(XT,_.T);XT.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.V([_.B(_.RB),_.Y("design:type",Object)],XT.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],XT.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],XT.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.yc,value:3}),_.Y("design:type",Number)],XT.prototype,"itemsPerRow",void 0);
_.V([_.gw({is:"ytd-link-card-renderer",disableElementRegistration:!0})],XT);
_.l(XT,"ytd-link-card-renderer",function(){if(XM8!==void 0)return XM8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return XM8=p},{mode:1});var i8L;var iE=function(){return _.T.apply(this,arguments)||this};
_.Q(iE,_.T);_.R=iE.prototype;_.R.configureRendererStamper=function(){return{"data.menu":YB,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.onRendererTap=function(p){if(!this.ytdDismissibleItemBehavior.isDismissed){var J,S=(J=this.data)==null?void 0:J.navigationEndpoint;S&&!_.jK(_.Er(p),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(S)?_.jK(_.Er(p),this.hostElement,["A"])||_.cf(this.hostElement,"yt-navigate",{endpoint:S}):this.ytComponentBehavior.resolveCommand(S,{}))}};
_.R.maybeComputeHref=function(p){return this.ytComponentBehavior.computeHref_(p,!0)};
_.R.getNavigationCommand=function(p){return this.isNavigationCommand(p)?p:null};
_.R.isNavigationCommand=function(p){return p?_.e(p,_.Ge)||_.e(p,_.lj)||_.e(p,_.My)?!0:!1:!1};
iE.prototype.onRendererTap=iE.prototype.onRendererTap;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],iE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],iE.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],iE.prototype,"ytComponentBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],iE.prototype,"data",void 0);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],iE.prototype,"onRendererTap",null);_.V([_.gw({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],iE);
_.l(iE,"ytd-lumiere-promo-item-image-renderer",function(){if(i8L!==void 0)return i8L;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return i8L=p},{mode:1});var Rn8;var Ra=function(){return _.T.apply(this,arguments)||this};
_.Q(Ra,_.T);Ra.prototype.computeLandscapeThumbnail=function(){var p;return((p=this.data)==null?void 0:p.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Ra.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ra.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],Ra.prototype,"miniMode",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.yc}),_.Y("design:type",Number)],Ra.prototype,"itemsPerRow",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.Y("design:type",Boolean)],Ra.prototype,"landscapeThumbnail",void 0);_.V([_.gw({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Ra);
_.l(Ra,"ytd-lumiere-shelf-details-renderer",function(){if(Rn8!==void 0)return Rn8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Rn8=p},{mode:_.Jz("kevlar_poly_si_batch_j076")?1:2});var Kmq;var KS=function(){return _.T.apply(this,arguments)||this};
_.Q(KS,_.T);KS.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],KS.prototype,"data",void 0);_.V([_.gw({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],KS);
_.l(KS,"ytd-primetime-promo-details-renderer",function(){if(Kmq!==void 0)return Kmq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Kmq=p},{mode:1});var Z8q;var Z1=function(){return _.T.apply(this,arguments)||this};
_.Q(Z1,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Z1.prototype,"data",void 0);_.V([_.gw({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Z1);
_.l(Z1,"ytd-panel-show-style-metadata-renderer",function(){if(Z8q!==void 0)return Z8q;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Z8q=p},{mode:1});var nuq;var nS=function(){return _.T.apply(this,arguments)||this};
_.Q(nS,_.T);_.R=nS.prototype;_.R.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.R.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.R.computeThumbnail=function(p){if(p)return p.smallFormFactorBackgroundThumbnail||p.largeFormFactorBackgroundThumbnail};
_.R.maybeComputeHref=function(p){return this.ytComponentBehavior.computeHref_(p,!0)};
_.R.isNavigationCommand=function(p){return p?_.e(p,_.Ge)||_.e(p,_.lj)||_.e(p,_.My)?!0:!1:!1};
_.R.getNavigationCommand=function(p){return this.isNavigationCommand(p)?p:null};
nS.prototype.onPanelTap=nS.prototype.onPanelTap;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],nS.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],nS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],nS.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],nS.prototype,"roundedContainer",void 0);_.V([_.N({reflectToAttribute:!0,value:_.z("web_modern_buttons")}),_.Y("design:type",Boolean)],nS.prototype,"modernButtons",void 0);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nS.prototype,"onPanelTap",null);_.V([_.gw({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],nS);
_.l(nS,"ytd-primetime-promo-panel-renderer",function(){if(nuq!==void 0)return nuq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return nuq=p},{mode:1});_.ci(_.d(function(p){p=_.jh(p,{data:{},useFullWidth:!1});var J=p.data,S=p.useFullWidth;p={};return _.m("teaser-card-view-model",{class:_.XB("ytTeaserCardViewModelHost",(p.ytTeaserCardViewModelUseFullWidth=function(){return S()},p))},_.m(_.v,{cond:function(){return J().onTap},
then:function(H){return _.m(_.yD,{className:"ytTeaserCardViewModelLink",command:H},_.m("div",{class:"ytTeaserCardViewModelImageContainer"},_.m(_.v,{cond:function(){return J().image},
then:function(M){return _.m(_.a4,{data:M,className:"ytTeaserCardViewModelImage",alt:""})}})),_.m("p",{class:"ytTeaserCardViewModelCaption"},function(){return J().caption}))}}))},"Yc"),"teaser-card-view-model",{props:{data:_.fD,
useFullWidth:_.fD}});_.ci(_.d(function(p){var J=p.data;var S=function(){var H;return _.dT((H=J())==null?void 0:H.iconThemedImage)};
return _.m("yt-edu-card-view-model",null,_.m(_.TK,{contentId:function(){return J().nudgeId}},function(){return _.m("div",{class:_.XB("ytEduCardViewModelHost",function(){return J().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.m("div",{class:"ytEduCardViewModelTopCornerButton"},_.m(_.AH,{data:function(){return J().dismissButton}},{buttonViewModel:_.D0})),_.m("div",{class:"ytEduCardViewModelContentWrapper"},_.m("div",{class:"ytEduCardViewModelHeaderImage"},_.m(_.v,
{cond:S,
then:function(H){return _.m(_.a4,{data:H,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.m("div",{class:"ytEduCardViewModelTextContainer"},_.m("div",{class:"ytEduCardViewModelTitle"},_.m(_.v3,{text:function(){return J().title}})),_.m("div",{class:"ytEduCardViewModelSubtitle"},_.m(_.v3,{text:function(){return J().subtitle}}))),_.m("div",{class:"ytEduCardViewModelContent"},_.m(_.AH,{data:function(){return J().form}},{nudgeFormViewModel:Ex8}))),_.m("div",{class:_.XB("ytEduCardViewModelButtonWrapper",
function(){return J().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.m(_.AH,{data:function(){return J().primaryButton}},{buttonViewModel:function(H){return _.m("div",{class:"ytEduCardViewModelPrimaryButton"},_.m(_.D0,{data:H.data}))}}),_.m(_.AH,{data:function(){return J().secondaryButton}},{buttonViewModel:function(H){return _.m("div",{class:"ytEduCardViewModelSecondaryButton"},_.m(_.D0,{data:H.data}))}})))}))},"Zc"),"yt-edu-card-view-model",{props:{data:_.fD}});var Gjq=new _.ni("RICH_GRID_VIDEO_RENDERER_TOKEN");_.ci(_.d(function(p){var J=p.data;var S=p.showYtInteractionInContent;var H=function(){return!!J().selectableFeedback};
p=_.K(_.eQ(!1,void 0,"qxtgaf"));var M=p.next().value,X=p.next().value;_.ad(function(){var A=_.e(J().primaryButton,_.f5);(A==null?0:A.isToggled)&&X(A.isToggled)});
p=_.Kb(function(A){if(!H())return!1;if(M()){var P;var W=(P=J().selectableFeedback)==null?void 0:P.onDeselect}else{var y;W=(y=J().selectableFeedback)==null?void 0:y.onSelect}W&&_.Dm(W,{form:{element:A.target}});X(!M());if(A=_.e(J().primaryButton,_.f5))A.isToggled=M();return!1});
var Z=function(){if(!H()){var A,P=(A=J().loggingDirectives)==null?void 0:A.trackingParams;P&&_.VK(_.vO().resolve(_.c3),P)}},n=_.uOs(),b=function(){var A;
return H()?(A=J().selectableFeedback)==null?void 0:A.a11yLabel:void 0},F=function(){return H()?{toggled:M()}:{}},f=_.vO().resolve(_.F9(Gjq)),O={};
return _.m("yt-feedback-item-renderer",{class:_.XB("ytFeedbackItemRendererHost",(O.ytFeedbackItemRendererSelectableFeedback=H,O)),"on:click":p,"on:keydown":n,title:b,"aria-label":b,"aria-pressed":function(){return H()?M():void 0},
tabindex:function(){return H()?0:void 0},
role:function(){return H()?"button":void 0}},_.m("div",{class:"ytFeedbackItemRendererContentContainer"},_.m(_.AH,{data:function(){return J().content}},{videoRenderer:function(A){return _.m(f,{data:A.data,
showYtInteraction:S})},
lockupViewModel:function(A){return _.m(_.Vy,{data:A.data,containerType:2})}})),_.m("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.m(_.AH,{data:function(){return J().primaryButton}},{toggleButtonViewModel:function(A){return _.m(_.LD,{data:A.data,
buttonShapeOverrides:F,disableExplicitClickLogging:!0,onToggle:Z})}})))},"$c"),"yt-feedback-item-renderer",{props:{data:_.fD,
showYtInteractionInContent:_.fD}});var GM=function(){var p=_.T.apply(this,arguments)||this;p.isShortsGrid=!1;p.isCompactGrid=!1;p.isShortsPanelGrid=!1;p.renderedFromRichGrid=!1;p.isInFirstColumn=!1;p.noGutterMargins=!1;p.noBottomMargin=!1;p.halfBottomMargin=!1;p.isInlineGroupItem=!1;p.insetMetadata=!1;p.noBottomMarginInAds=!0;p.force16By9ThumbnailAspectRatio=!1;p.useCompactList=!1;p.containerType=2;p.thumbnailTargetWidth=9999;p.isResponsiveGrid=!1;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$16457_unsubscribeFromInlinePreviewIsActive=function(){};
return p};
_.Q(GM,_.T);_.R=GM.prototype;_.R.computeContainerType=function(){return this.useCompactList?3:2};
_.R.itemWidthChanged=function(){var p;this.thumbnailTargetWidth=(p=this.itemWidth)!=null?p:9999};
_.R.updateIsInFirstColumn=function(){var p;this.isInFirstColumn=((p=this.data)==null?void 0:p.colIndex)===0};
_.R.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&&_.z("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.z("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.R.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",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]]"}}}}}};
_.R.leave=function(p){p=p.relatedTarget;var J=document.querySelector("ytd-video-preview");p&&J&&_.Sh(J).contains(p)||this.removeAndCleanupHighlight()};
_.R.hover=function(){var p;!this.highlighted&&(p=this.data)!=null&&p.onFocusEffect&&(this.data.onFocusEffect.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})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.R.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};
_.R.registerHoverHighlightListeners=function(){var p=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16457_unsubscribeFromInlinePreviewIsActive=_.j7(_.rl(),_.gNk,function(J){p.highlighted&&!J&&p.removeAndCleanupHighlight()})};
_.R.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16457_unsubscribeFromInlinePreviewIsActive()};
_.R.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.R.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.R.getBackgroundColor=function(){var p,J,S=(p=this.data)==null?void 0:(J=p.onFocusEffect)==null?void 0:J.onFocusColor;if(S){if(document.documentElement.hasAttribute("dark")&&(S==null?0:S.darkTheme))return sr(S==null?void 0:S.darkTheme);if(S==null?0:S.lightTheme)return sr(S==null?void 0:S.lightTheme)}};
_.R.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var p=_.C1(),J,S,H;p&&((J=this.data)==null?0:J.trackingParams)&&((S=this.data)==null?void 0:S.colIndex)!=null&&((H=this.data)==null?void 0:H.rowIndex)!=null&&_.qq(p,_.Az(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.R.isSlimMediaRenderer=function(p){return!!_.e(p==null?void 0:p.content,_.Tb4)||!!_.e(p==null?void 0:p.content,Nbo)||!!_.e(p==null?void 0:p.content,_.Rl)||!!_.e(p==null?void 0:p.content,Rr8)};
_.R.isPostRenderer=function(){var p,J;return!!_.e((p=this.data)==null?void 0:p.content,pPv)||!!_.e((J=this.data)==null?void 0:J.content,J38)};
_.R.computeIsGameCardShelf=function(){var p;return!!_.e((p=this.data)==null?void 0:p.content,vim)};
_.R.computeIsMiniGameCardShelf=function(){var p,J;return!!_.e((p=this.data)==null?void 0:p.content,UIE)||!!_.e((J=this.data)==null?void 0:J.content,sWo)};
_.R.computeIsTeaserCard=function(){var p;return!!_.e((p=this.data)==null?void 0:p.content,sWo)};
_.R.computeIsSelectableFeedbackItem=function(){var p,J;return!((J=_.e((p=this.data)==null?void 0:p.content,t38))==null||!J.selectableFeedback)};
_.R.computeContainsLumierePosters=function(){var p,J;return((J=_.e((p=this.data)==null?void 0:p.content,ne8))==null?void 0:J.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.R.computeIsExpandOnHoverCardShelf=function(){var p;return!!_.e((p=this.data)==null?void 0:p.content,Zko)};
_.R.computeIsLinkCardShelf=function(){var p;return!!_.e((p=this.data)==null?void 0:p.content,$f8)};
_.R.computeIsReelItemStyleAvatarCircle=function(p){var J;return((J=_.e(p==null?void 0:p.content,_.Rl))==null?void 0:J.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.R.computeIsLinkCardFullWidth=function(p,J){var S;return((S=_.e(p==null?void 0:p.content,$f8))==null?void 0:S.useFullWidth)||J<=2};
_.vh.Object.defineProperties(GM.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var p;return _.z("web_hover_effect_refactor")&&_.e((p=this.data)==null?void 0:p.content,_.z$8)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.z("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var p;if(_.z("web_hover_effect_refactor")&&_.e((p=this.data)==null?void 0:p.content,_.z$8))return!1;var J;return!((J=this.data)==null||!J.onFocusEffect)||_.z("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var p;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.z("web_hover_effect_refactor")?(p=this.data)==null?void 0:p.onFocusEffect:void 0}}}});
GM.prototype.richGridHoverHighlightChanged=GM.prototype.richGridHoverHighlightChanged;GM.prototype.observerContainerType=GM.prototype.observerContainerType;GM.prototype.updateIsInFirstColumn=GM.prototype.updateIsInFirstColumn;GM.prototype.itemWidthChanged=GM.prototype.itemWidthChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],GM.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],GM.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],GM.prototype,"ytdLockupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],GM.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.Y("design:type",Boolean)],GM.prototype,"isPost",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.Y("design:type",Boolean)],GM.prototype,"containsLumierePosters",void 0);_.V([_.N({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.Y("design:type",Boolean)],GM.prototype,"isSlimMedia",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.Y("design:type",Boolean)],GM.prototype,"isGameCardShelf",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.Y("design:type",Boolean)],GM.prototype,"isMiniGameCardShelf",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.Y("design:type",Boolean)],GM.prototype,"isTeaserCard",void 0);_.V([_.N({computed:"computeIsSelectableFeedbackItem(data)"}),_.Y("design:type",Boolean)],GM.prototype,"isSelectableFeedbackItem",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],GM.prototype,"isShortsGrid",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],GM.prototype,"isSlimGrid",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],GM.prototype,"isCompactGrid",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],GM.prototype,"isShortsPanelGrid",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.Y("design:type",Boolean)],GM.prototype,"isExpandOnHoverCardShelf",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.Y("design:type",Boolean)],GM.prototype,"isLinkCardShelf",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.yc,value:3}),_.Y("design:type",Number)],GM.prototype,"itemsPerRow",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],GM.prototype,"renderedFromRichGrid",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],GM.prototype,"isInFirstColumn",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],GM.prototype,"noGutterMargins",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],GM.prototype,"noBottomMargin",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],GM.prototype,"halfBottomMargin",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],GM.prototype,"isInlineGroupItem",void 0);_.V([_.N(),_.Y("design:type",Object)],GM.prototype,"insetMetadata",void 0);_.V([_.N(),_.Y("design:type",Object)],GM.prototype,"noBottomMarginInAds",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],GM.prototype,"isShelfItem",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.Y("design:type",Boolean)],GM.prototype,"isReelItemStyleAvatarCircle",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.Y("design:type",Boolean)],GM.prototype,"isLinkCardFullWidth",void 0);_.V([_.N(),_.Y("design:type",Object)],GM.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],GM.prototype,"useCompactList",void 0);_.V([_.N(),_.Y("design:type",String)],GM.prototype,"sizing",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],GM.prototype,"typographyBump",void 0);_.V([_.N(),_.Y("design:type",Number)],GM.prototype,"itemWidth",void 0);_.V([_.N(),_.Y("design:type",Boolean)],GM.prototype,"isHomeShelf",void 0);_.V([_.N(),_.Y("design:type",Boolean)],GM.prototype,"isHomeGrid",void 0);
_.V([_.FM("yt-lockup-view-model"),_.Y("design:type",HTMLElement)],GM.prototype,"lockup",void 0);_.V([_.FM("ytd-rich-grid-media"),_.Y("design:type",HTMLElement)],GM.prototype,"richGridMedia",void 0);_.V([_.FM("ytd-ad-slot-renderer"),_.Y("design:type",HTMLElement)],GM.prototype,"adSlotRenderer",void 0);_.V([_.N({computed:"computeContainerType(useCompactList)"}),_.Y("design:type",Object)],GM.prototype,"containerType",void 0);_.V([_.N(),_.Y("design:type",Object)],GM.prototype,"thumbnailTargetWidth",void 0);
_.V([_.U("showYtInteractionOnRichItem"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GM.prototype,"showYtInteractionOnRichGridMedia",null);_.V([_.U("isSelectableFeedbackItem","richGridHoverHighlight"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GM.prototype,"showYtInteractionOnRichItem",null);_.V([_.U("typographyBump","isHomeGrid"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GM.prototype,"richTypographyBump",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data","isShortsGrid","isCompactGrid"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GM.prototype,"richGridHoverHighlight",null);_.V([_.U("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],GM.prototype,"shortsLockupViewModelAspectRatio",null);_.V([_.U("isInlineGroupItem"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],GM.prototype,"shortsLockupViewModelScrimStyle",null);
_.V([_.bO("itemWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GM.prototype,"itemWidthChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GM.prototype,"updateIsInFirstColumn",null);_.V([_.bO("containerType","sizing","typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GM.prototype,"observerContainerType",null);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],GM.prototype,"isResponsiveGrid",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GM.prototype,"lockupExperiments",null);_.V([_.bO("richGridHoverHighlight"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GM.prototype,"richGridHoverHighlightChanged",null);_.V([_.gw({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],GM);
_.b8o=_.pI()(GM,"ytd-rich-item-renderer",function(){if(IfL===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);IfL=p}p=IfL;return p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var p49={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var met=_.aR(_.Kl("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Se3={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},MiW={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},X4g={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var mYp;var bE=function(){var p=_.T.apply(this,arguments)||this;p.useResponsiveGrid=!1;p.hidden=!1;p.isShowMoreHidden=!1;p.isShowLessHidden=!0;p.hasExpansionButton=!1;p.isInnerShelf=!1;p.allVideosCount=0;p.allPlaylistCount=0;p.haveSmartDownloadsCompleted=!1;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 J;(J=p.data)!=null&&J.contents&&(p.firstShownIndex+=p.currentElementsPerRow,p.updateHorizontalOffset(),p.updateHorizontalItemVisibility())};
p.previousClick=function(){var J;(J=p.data)!=null&&J.contents&&(p.firstShownIndex-=p.currentElementsPerRow,p.updateHorizontalOffset(),p.updateHorizontalItemVisibility())};
return p};
_.Q(bE,_.T);_.R=bE.prototype;
_.R.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.jn("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.R.attached=function(){this.requestElementsPerRow()};
_.R.refreshGridLayoutNew=function(){var p;if((p=this.data)!=null&&p.contents&&this.containerWidth){var J;((J=this.data.responsiveContainerConfiguration)==null?0:J.responsiveSize)?(p=_.f_w(this.data.responsiveContainerConfiguration,this.containerWidth,2),p=_.N6(Object.assign({},p,{standardUnitMinWidth:this.standardUnitMinWidth}))):p=_.N6({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,_.K3(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":p.gutter+"px"})}};
_.R.computeSizing=function(){if(!this.isLumiere){var p=_.kDW(this.data);return p?p:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.R.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.R.computeButton=function(p){var J=_.e(p,_.Za);p=Object.assign({},_.e(p,_.Za));return J?(p.text||(p.text={simpleText:p.tooltip}),p.style="STYLE_MONO_OUTLINE",p.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",p):J};
_.R.onRowIndexChange=function(){var p=_.C1(),J,S;((J=this.data)==null?0:J.trackingParams)&&((S=this.data)==null?void 0:S.rowIndex)!=null&&p&&_.qq(p,_.Az(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.R.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var p,J=((p=this.getRichItemRenderers()[0])==null?void 0:p.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*J;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.R.requestElementsPerRow=function(){_.cf(this.hostElement,"yt-request-elements-per-row")};
_.R.onUpdateElementsPerRowAction=function(p,J,S,H,M,X){if(this.containerWidth!==X&&(this.containerWidth=X,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&p&&J&&S&&H&&M&&(this.elementsPerRow!==p||this.postsPerRow!==J||this.slimItemsPerRow!==S||this.gameCardsPerRow!==H||this.miniGameCardsPerRow!==M)&&(this.elementsPerRow=p,this.postsPerRow=J,this.slimItemsPerRow=S,this.gameCardsPerRow=H,this.miniGameCardsPerRow=M,this.updateItemVisibility())};
_.R.isExpandedChanged=function(){var p=this.getRichItemRenderers(),J=this.isExpanded;p.forEach(function(S){S.halfBottomMargin=J})};
_.R.isCollapsedChanged=function(){var p=this.getRichItemRenderers(),J=this.isCollapsed;p.forEach(function(S){S.noBottomMargin=J})};
_.R.getRichItemRenderers=function(){return _.Jn(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.R.updateItemVisibility=function(){var p=this;if(this.data&&this.data.contents){var J=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(H,M){var X;((X=p.data)==null?0:X.isExpanded)?(H.hidden=M>J-1,H.ytRendererBehavior.markDirty()):H.hidden=M>p.currentElementsPerRow-1||M>J-1});
var S=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||S||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||S||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.R.setHeightToSingleRow=function(){var p=this.getRichItemRenderers(),J=Number.parseInt(getComputedStyle(p[0]).marginBottom,10)||0;p=p.slice(0,this.currentElementsPerRow).reduce(function(S,H){return Math.max(S,H.getBoundingClientRect().height+J)},0);
this.contents.style.height=p+"px"};
_.R.focusNextExpandedItem=function(){var p;((p=this.data)==null?0:p.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.R.focusItem=function(p,J){var S=this.getRichItemRenderers();if(S[p]&&(p=S[p].querySelector(".focus-on-expand"))){if(J){var H;(H=S[this.currentElementsPerRow])==null||H.scrollIntoView({behavior:"smooth",block:"center"})}p.focus({preventScroll:!0})}};
_.R.onDataChange=function(){var p=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var J;if((J=this.data)==null?0:J.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.mN(this,function(){p.updateItemVisibility()});
var S;if((S=this.data)==null?0:S.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.K3(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),J=0;J<this.data.contents.length;J++)S=_.e(this.data.contents[J],_.j3)||{},S.colIndex=J,S.rowIndex=this.data.rowIndex};
_.R.handleRerenderDownloadsData=function(){_.z("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())};
_.R.blockInlinePreview=function(p){var J=this,S;return _.G(function(H){(S=J.inlinePreviewIsEnabled)&&J.ytdReduxBehavior.dispatch(_.nPL(!1));return H.return(new Promise(function(M){p(function(){S&&J.ytdReduxBehavior.dispatch(_.nPL(!0));M()})}))})};
_.R.expandShelf=function(){var p=this;if(this.data){var J,S=(J=_.e(this.data.showMoreButton,_.Za))==null?void 0:J.trackingParams;S&&_.VK(_.bC(),S);this.set("data.isExpanded",!0);this.blockInlinePreview(function(H){p.setHeightToSingleRow();p.updateItemVisibility();p.contents.style.height=p.contents.scrollHeight+"px";_.wg.addJob(function(){p.contents.style.height="auto";p.focusNextExpandedItem();H()},2,200)})}};
_.R.collapseShelf=function(){var p=this;return _.G(function(J){if(J.nextAddress==1){if(!p.data)return J.return();p.set("data.isExpanded",!1);return J.yield(p.blockInlinePreview(function(S){p.contents.style.height=p.contents.scrollHeight+"px";p.setHeightToSingleRow();_.wg.addJob(function(){p.updateItemVisibility();p.contents.style.height="auto";S()},2,200)}),2)}_.cf(p.hostElement,"yt-rich-shelf-renderer-collapse",p.data.trackingParams);
p.focusItem(0,!1);_.UK(J)})};
_.R.updateArrowButtonStatus=function(){this.getRichItemRenderers();var p,J;var S=((p=this.data)==null?void 0:(J=p.contents)==null?void 0:J.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=S};
_.R.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())))};
_.R.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.jn("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.R.updateHorizontalOffset=function(){var p=this.getRichItemRenderers(),J,S;var H=((J=this.data)==null?void 0:(S=J.contents)==null?void 0:S.length)||0;var M;p=((M=p[0])==null?void 0:M.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>H?this.firstShownIndex=H-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*p};
_.R.isSlimMediaShelfRenderer=function(){var p,J,S,H=(S=_.e((p=this.data)==null?void 0:(J=p.contents)==null?void 0:J[0],_.j3))==null?void 0:S.content;return!!(_.e(H,_.Tb4)||_.e(H,Nbo)||_.e(H,_.Rl)||_.e(H,Rr8))};
_.R.isGameCardShelf=function(){var p,J,S,H=(S=_.e((p=this.data)==null?void 0:(J=p.contents)==null?void 0:J[0],_.j3))==null?void 0:S.content;return!!_.e(H,vim)};
_.R.isMiniGameCardShelf=function(){var p,J,S,H=(S=_.e((p=this.data)==null?void 0:(J=p.contents)==null?void 0:J[0],_.j3))==null?void 0:S.content;return!!_.e(H,UIE)||!!_.e(H,sWo)};
_.R.hasGameBoxArtAvatarStyle=function(){var p;return((p=this.data)==null?void 0:p.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.R.hasRoundedGameBoxArtAvatarStyle=function(){var p;return((p=this.data)==null?void 0:p.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.R.isShortsShelf=function(){var p,J,S,H=(S=_.e((p=this.data)==null?void 0:(J=p.contents)==null?void 0:J[0],_.j3))==null?void 0:S.content;return!!_.e(H,_.Rl)||!!_.e(H,Rr8)};
_.R.isPostShelfRenderer=function(){var p,J,S,H=(S=_.e((p=this.data)==null?void 0:(J=p.contents)==null?void 0:J[0],_.j3))==null?void 0:S.content;return!(!_.e(H,pPv)&&!_.e(H,J38))};
_.R.isLumiereShelf=function(){var p,J,S=_.e((p=this.data)==null?void 0:(J=p.contents)==null?void 0:J[0],_.j3);return!!_.e(S==null?void 0:S.content,ne8)};
_.R.isLumiereShelfWithPosters=function(){var p,J,S=_.e((p=this.data)==null?void 0:(J=p.contents)==null?void 0:J[0],_.j3),H;return((H=_.e(S==null?void 0:S.content,ne8))==null?void 0:H.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.R.isExpandOnHoverCardShelf=function(){var p,J,S,H=(S=_.e((p=this.data)==null?void 0:(J=p.contents)==null?void 0:J[0],_.j3))==null?void 0:S.content;return!!_.e(H,Zko)};
_.R.computeHasFeaturedBadge=function(){var p,J,S=_.e((p=this.data)==null?void 0:(J=p.badges)==null?void 0:J[0],_.U3d);return S?S.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.R.computeHasPaygatedFeaturedBadge=function(){var p,J,S=_.e((p=this.data)==null?void 0:(J=p.badges)==null?void 0:J[0],_.U3d);return S?(S==null?void 0:S.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.R.computeHeaderHidden=function(){var p,J,S,H,M,X;return!((p=this.data)==null?0:p.icon)&&!((J=this.data)==null?0:J.title)&&!((S=this.data)==null?0:S.subtitle)&&!((H=this.data)==null?0:H.thumbnail)&&!((M=this.data)==null?0:M.badges)&&!((X=this.data)==null?0:X.menu)};
_.R.showCtaButton=function(){var p;return!((p=this.data)==null||!p.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.R.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.R.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.R.computeForce16By9ThumbnailAspectRatio=function(){var p,J;return((p=this.data)==null?void 0:(J=p.responsiveContainerConfiguration)==null?void 0:J.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.R.onSectionReactiveDismissal=function(p,J,S){var H,M;var X=(H=this.data)==null?void 0:(M=H.targetingContext)==null?void 0:M.targetGroupId;this&&X&&J.targetGroupId&&X.includes(J.targetGroupId)?(H=this.rowIndex,p=H===void 0?!1:!(J.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&H<=p)):p=!1;p&&(this.hidden=S)};
_.vh.Object.defineProperties(bE.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null?0:p.isExpanded)}},
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()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null?0:p.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var p,J;return!((p=this.data)==null||!p.previousButton)&&!((J=this.data)==null||!J.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=_.vO().resolve(_.xz).getCurrentPage())==null?void 0:p.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H;return!((p=this.data)==null?0:(J=p.thumbnail)==null?0:(S=J.accessibility)==null?0:(H=S.accessibilityData)==null?0:H.label)}},
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}}});
bE.prototype.onChildElementFocus=bE.prototype.onChildElementFocus;bE.prototype.handleRerenderDownloadsData=bE.prototype.handleRerenderDownloadsData;bE.prototype.onDataChange=bE.prototype.onDataChange;bE.prototype.isCollapsedChanged=bE.prototype.isCollapsedChanged;bE.prototype.isExpandedChanged=bE.prototype.isExpandedChanged;bE.prototype.onRowIndexChange=bE.prototype.onRowIndexChange;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],bE.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],bE.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],bE.prototype,"ytdReduxBehavior",void 0);
_.V([_.N({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.Y("design:type",Object)],bE.prototype,"useResponsiveGrid",void 0);_.V([_.N(),_.Y("design:type",Object)],bE.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Number)],bE.prototype,"standardUnitMinWidth",void 0);_.V([_.N({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],bE.prototype,"elementsPerRow",void 0);_.V([_.N({value:3}),_.Y("design:type",Number)],bE.prototype,"postsPerRow",void 0);
_.V([_.N({value:6}),_.Y("design:type",Number)],bE.prototype,"slimItemsPerRow",void 0);_.V([_.N({value:6}),_.Y("design:type",Number)],bE.prototype,"gameCardsPerRow",void 0);_.V([_.N({value:6}),_.Y("design:type",Number)],bE.prototype,"miniGameCardsPerRow",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],bE.prototype,"hidden",void 0);_.V([_.N(),_.Y("design:type",Object)],bE.prototype,"isShowMoreHidden",void 0);
_.V([_.N(),_.Y("design:type",Object)],bE.prototype,"isShowLessHidden",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],bE.prototype,"hasExpansionButton",void 0);_.V([_.U("data.isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bE.prototype,"isExpanded",null);_.V([_.U("data.isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bE.prototype,"isCollapsed",null);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],bE.prototype,"isInnerShelf",void 0);_.V([_.N({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.Y("design:type",Boolean)],bE.prototype,"isShorts",void 0);_.V([_.N({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.Y("design:type",Boolean)],bE.prototype,"isLumiere",void 0);_.V([_.N({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.Y("design:type",Boolean)],bE.prototype,"hasBoxArtThumbnailStyle",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.Y("design:type",Boolean)],bE.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.Y("design:type",Boolean)],bE.prototype,"hasFeaturedBadge",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.Y("design:type",Boolean)],bE.prototype,"hasPaygatedFeaturedBadge",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.Y("design:type",Boolean)],bE.prototype,"isHeaderHidden",void 0);_.V([_.N({selector:_.TFk}),_.Y("design:type",Object)],bE.prototype,"allVideosCount",void 0);_.V([_.N({selector:vGt}),_.Y("design:type",Object)],bE.prototype,"allPlaylistCount",void 0);_.V([_.N({selector:jO9}),_.Y("design:type",Object)],bE.prototype,"haveSmartDownloadsCompleted",void 0);
_.V([_.N({selectorArgs:["entitySelectorType"],selector:function(p,J){if(_.z("kevlar_modern_downloads_page")&&J&&J!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var S=p.entities;switch(J){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":J=_.ex(S);p=mK(J);var H=_.O4(J);S=_.Qc(S);S=_.I5(R8v(H,S,J.length));return{contents:p,subtitle:S};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return S=_.ex(S),{contents:mK(S)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return S=
_.Wq(S),{contents:mK(S)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return S=_.FUX(S),{contents:mK(S)};default:_.xQ(new _.TG("Error: entitySelectorType defined but not matched in selector.",p,J))}}}}),
_.Y("design:type",Object)],bE.prototype,"entityDrivenRichShelfData",void 0);_.V([_.N({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Y("design:type",Boolean)],bE.prototype,"hasTopCtaButton",void 0);_.V([_.N({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Y("design:type",Boolean)],bE.prototype,"hasBottomCtaButton",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.Y("design:type",Boolean)],bE.prototype,"force16By9ThumbnailAspectRatio",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],bE.prototype,"restrictContentsOverflow",void 0);_.V([_.N({selector:_.tpW}),_.Y("design:type",Boolean)],bE.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.N({computed:"computeSizing(data)"}),_.Y("design:type",String)],bE.prototype,"sizing",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],bE.prototype,"typographyBump",void 0);_.V([_.N(),_.Y("design:type",Number)],bE.prototype,"itemWidth",void 0);_.V([_.N(),_.Y("design:type",Object)],bE.prototype,"firstShownIndex",void 0);_.V([_.N(),_.Y("design:type",Object)],bE.prototype,"horizontalOffset",void 0);_.V([_.N(),_.Y("design:type",Object)],bE.prototype,"atEnd",void 0);_.V([_.FM("#contents"),_.Y("design:type",HTMLElement)],bE.prototype,"contents",void 0);
_.V([_.bO("data.rowIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bE.prototype,"onRowIndexChange",null);_.V([_.bO("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bE.prototype,"isExpandedChanged",null);_.V([_.bO("isCollapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bE.prototype,"isCollapsedChanged",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bE.prototype,"onDataChange",null);_.V([_.bO("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bE.prototype,"handleRerenderDownloadsData",null);_.V([_.GI("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],bE.prototype,"onChildElementFocus",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data","isHomePage"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bE.prototype,"isTruncated",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bE.prototype,"showBottomDivider",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bE.prototype,"hasChevronButtons",null);
_.V([_.U("firstShownIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bE.prototype,"previousButtonOverride",null);_.V([_.U("atEnd"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bE.prototype,"nextButtonOverride",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bE.prototype,"isHomePage",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bE.prototype,"thumbnailAriaHidden",null);
_.V([_.U("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],bE.prototype,"entitySelectorType",null);_.V([_.gw({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],bE);
_.Fm8=_.pI()(bE,"ytd-rich-shelf-renderer",function(){if(mYp===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);mYp=p}p=mYp;return p},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var vuM;_.ci(_.Qy,"yt-badge-view-model",{props:{data:_.fD,class:_.fD,workaroundShortsIsThumbnailBadge:_.fD,modern:_.fD,numBadgesInRow:_.fD,clipTextOverflow:_.fD}});_.ci(dmn,"yt-slimline-survey-view-model",{props:{data:_.fD}});var m1=function(){var p=_.T.apply(this,arguments)||this;p.tileLottieAnimationRef={};p.backgroundLottieAnimationRef={};p.isOnHoverBehaviorForLottieEnabled=!0;p.useBiggerShowcaseImage=_.z("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};
_.Q(m1,_.T);_.R=m1.prototype;_.R.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.R.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.R.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);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.R.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.R.currentColorChanged=function(){this.updateButtonPalette()};
_.R.computeBackgroundStyle=function(p){if(p&&this.data){var J=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var S=_.LI((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);S&&J.push('background-image: url("'+S+'");')}var H;((H=p.basicColorData)==null?void 0:H.backgroundColor)!==void 0&&J.push("background-color: "+_.Bt(p.basicColorData.backgroundColor)+";");return J.join("")}};
_.R.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&this.set("isDarkTheme",p)};
_.R.getCurrentLogo=function(p,J){if(p)return J?p.darkLogoImage:p.lightLogoImage};
_.R.getCurrentStaticTileImage=function(p,J){if(this.hasStaticTile(p))return p.darkTileImage?J?p.darkTileImage:p.tileImage:p.tileImage};
_.R.computeTitleStyle=function(p){if(this.data&&this.data.title&&p&&p.basicColorData&&p.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.yi(p.basicColorData.foregroundTitleColor)+";"};
_.R.computeSubtitleStyle=function(p){if(this.data&&this.data.subtitle&&p&&p.basicColorData&&p.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.yi(p.basicColorData.foregroundBodyColor)+";"};
_.R.computeSupplementalStyle=function(p){if(this.data&&this.data.supplementalText&&p&&p.supplementalTextColor!==void 0)return p=_.yi(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;"};
_.R.computeDismissIconStyle=function(p){var J,S;if((p==null?0:(J=p.dismissButtonColorData)==null?0:J.foregroundTitleColor)&&(p==null?0:(S=p.dismissButtonColorData)==null?0:S.backgroundColor))return"--yt-button-color:"+_.Bt(p.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Bt(p.dismissButtonColorData.backgroundColor)+";"};
_.R.computeOverflowIconStyle=function(p){var J,S;if((p==null?0:(J=p.dismissButtonColorData)==null?0:J.foregroundTitleColor)&&(p==null?0:(S=p.dismissButtonColorData)==null?0:S.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Bt(p.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Bt(p.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Bt(p.dismissButtonColorData.foregroundTitleColor)+";"};
_.R.computeBannerStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.R.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"}};
_.R.shouldShowTileSection=function(p,J,S){return!this.shouldExpandLogo(p,J,S)&&J};
_.R.shouldShowExpandedLogoSection=function(p,J,S){return this.shouldExpandLogo(p,J,S)&&p!==void 0&&this.hasLogo(p)};
_.R.shouldExpandLogo=function(p,J,S){return p&&J?!1:S>=2};
_.R.hasStaticTile=function(p){return!(p==null||!p.tileImage)};
_.R.hasTileLottie=function(p){var J;return!!(p==null?0:(J=p.tileLottie)==null?0:J.url)};
_.R.hasLogo=function(p){return this.getCurrentLogo(p,this.isDarkTheme)!==void 0};
_.R.getLogoHeight=function(p){return this.logoWithPadding(p)?"26":"20"};
_.R.getExpandedLogoHeight=function(p){return this.logoWithPadding(p)?"31":"24"};
_.R.getLogoImageId=function(p){return this.logoWithPadding(p)?"logo-image-with-padding":"logo-image"};
_.R.getMaxTitleFontSize=function(p){return p.overrideTitleMaxFontSize?String(p.overrideTitleMaxFontSize):"36"};
_.R.hasBackgroundLottie=function(p){var J;return!!(p==null?0:(J=p.backgroundLottie)==null?0:J.url)};
_.R.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var p,J;(p=this.tileLottieAnimationRef)==null||(J=p.lottieEl)==null||J.play();var S,H;(S=this.backgroundLottieAnimationRef)==null||(H=S.lottieEl)==null||H.play()}};
_.R.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var p,J;(p=this.tileLottieAnimationRef)==null||(J=p.lottieEl)==null||J.pause();var S,H;(S=this.backgroundLottieAnimationRef)==null||(H=S.lottieEl)==null||H.pause()}};
_.R.pauseLottie=function(){var p,J;(p=this.tileLottieAnimationRef)==null||(J=p.lottieEl)==null||J.pause();var S,H;(S=this.backgroundLottieAnimationRef)==null||(H=S.lottieEl)==null||H.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.R.performPrimaryButtonAction=function(){var p,J,S;((p=this.data)==null?0:(J=p.primaryButton)==null?0:(S=J.buttonRenderer)==null?0:S.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.R.requestElementsPerRow=function(){_.cf(this.hostElement,"yt-request-elements-per-row")};
_.R.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 J;if((J=this.data.primaryButton)==null?0:J.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 S;if((S=this.data.secondaryButton)==
null?0:S.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 H;((H=this.data.primaryButton)==null?0:H.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var M;((M=this.data.primaryButton)==null?0:M.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var X;((X=this.data.secondaryButton)==null?0:X.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var Z;((Z=this.data.primaryButton)==null?0:Z.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.R.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var p=this.getTileLottieDataBasedOnTheme(),J,S;if(p.url!==((J=this.tileLottiePlayerProps)==null?void 0:(S=J.animationConfig)==null?void 0:S.path)){var H,M;(H=this.tileLottieAnimationRef)==null||(M=H.lottieEl)==null||M.destroy();var X;this.isOnHoverBehaviorForLottieEnabled=!((X=p.settings)==null?0:X.autoplay);var Z,n;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(n=(Z=p.settings)==null?void 0:Z.autoplay)!=null?n:!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}}};
_.R.getOverflowButton=function(p){return _.e(p.overflowButton,bem)};
_.R.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var p=this.getBackgroundLottieDataBasedOnTheme(),J,S;if(p.url!==((J=this.backgroundLottiePlayerProps)==null?void 0:(S=J.animationConfig)==null?void 0:S.path)){var H,M;(H=this.backgroundLottieAnimationRef)==null||(M=H.lottieEl)==null||M.destroy();var X;this.isOnHoverBehaviorForLottieEnabled=!((X=p.settings)==null?0:X.autoplay);var Z,n;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(n=(Z=p.settings)==null?void 0:Z.autoplay)!=null?n:!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}}};
_.R.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var p;((p=this.tileLottieAnimationRef)==null?void 0:p.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var J;((J=this.backgroundLottieAnimationRef)==null?void 0:J.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.R.getTileLottieDataBasedOnTheme=function(){var p;if(this.isDarkTheme&&((p=this.data)==null?0:p.darkThemeTileLottie))return this.data.darkThemeTileLottie;var J;return((J=this.data)==null?0:J.tileLottie)?this.data.tileLottie:{}};
_.R.getBackgroundLottieDataBasedOnTheme=function(){var p;if(this.isDarkTheme&&((p=this.data)==null?0:p.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var J;return((J=this.data)==null?0:J.backgroundLottie)?this.data.backgroundLottie:{}};
_.R.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p)};
_.R.getLottieLoopValue=function(p){return p?p.loop!==void 0?p.loop:p.loopCount?p.loopCount-1:!0:!0};
_.R.logoWithPadding=function(p){var J,S,H;return(p=(J=this.getCurrentLogo(p,this.isDarkTheme))==null?void 0:(S=J.thumbnails)==null?void 0:(H=S[0])==null?void 0:H.height)&&p%31===0?!0:!1};
m1.prototype.currentColorChanged=m1.prototype.currentColorChanged;m1.prototype.themeChanged=m1.prototype.themeChanged;m1.prototype.dataChanged=m1.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],m1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],m1.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],m1.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],m1.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],m1.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],m1.prototype,"primaryButton",void 0);_.V([_.N(),_.Y("design:type",Object)],m1.prototype,"secondaryButton",void 0);
_.V([_.N({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],m1.prototype,"elementsPerRow",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],m1.prototype,"isDarkTheme",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],m1.prototype,"hasTile",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],m1.prototype,"hasMetadata",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],m1.prototype,"showLogoImage",void 0);_.V([_.N(),_.Y("design:type",Object)],m1.prototype,"currentColorData",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.Y("design:type",String)],m1.prototype,"bannerStyle",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.Y("design:type",String)],m1.prototype,"location",void 0);
_.V([_.N(),_.Y("design:type",Object)],m1.prototype,"tileLottiePlayerProps",void 0);_.V([_.N(),_.Y("design:type",Object)],m1.prototype,"tileLottieAnimationRef",void 0);_.V([_.N(),_.Y("design:type",Object)],m1.prototype,"backgroundLottiePlayerProps",void 0);_.V([_.N(),_.Y("design:type",Object)],m1.prototype,"backgroundLottieAnimationRef",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],m1.prototype,"useBiggerShowcaseImage",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],m1.prototype,"isHideEnclosingAction",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m1.prototype,"dataChanged",null);_.V([_.An("isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m1.prototype,"themeChanged",null);
_.V([_.An("currentColorData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m1.prototype,"currentColorChanged",null);_.V([_.gw({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],m1);
_.l(m1,"ytd-statement-banner-renderer",function(){if(vuM!==void 0)return vuM;var p=document.createElement("template");_.C(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="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return vuM=p},{mode:1});var f6n;var FT=function(){var p=_.T.apply(this,arguments)||this;p.isSearch=!1;p.hideShelfHeader=!1;p.engagementPanel=!1;p.disableMouseScroll=!0;p.useFloorScrolling=!0;return p};
_.Q(FT,_.T);FT.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Kl("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Kl("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
FT.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
FT.prototype.onDataChanged=FT.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],FT.prototype,"isSearch",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FT.prototype,"hideShelfHeader",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FT.prototype,"engagementPanel",void 0);_.V([_.N(),_.Y("design:type",Object)],FT.prototype,"disableMouseScroll",void 0);_.V([_.N(),_.Y("design:type",Object)],FT.prototype,"useFloorScrolling",void 0);_.V([_.N(),_.Y("design:type",Object)],FT.prototype,"data",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FT.prototype,"onDataChanged",null);
_.V([_.gw({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],FT);
_.l(FT,"ytd-reel-shelf-renderer",function(){if(f6n!==void 0)return f6n;var p=document.createElement("template");_.C(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="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-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-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\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(_.r().content.cloneNode(!0),
p.content.firstChild);return f6n=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var O8M;var ARM;ARM=_.YI(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.PmL=_.fA(ARM);var znd=_.d(function(p){var J=p.data;p=p.useSmallFont;var S={},H={};return _.m("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.m(_.v,{cond:function(){return J().favicon},
then:function(M){return _.m(_.a4,{data:M,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.m("div",{class:"ytChannelExternalLinkViewModelContainer"},_.m(_.v3,{text:function(){return J().title},
className:_.XB("ytChannelExternalLinkViewModelTitle",(S.ytChannelExternalLinkViewModelTitleSmallFont=p,S)),ellipsisTruncate:!0,userInput:!0}),_.m(_.v3,{text:function(){return J().link},
className:_.XB("ytChannelExternalLinkViewModelLink",(H.ytChannelExternalLinkViewModelLinkSmallFont=p,H)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ad");
znd.idomCompat=!0;_.ci(znd,"yt-channel-external-link-view-model",{props:{data:_.fD,useSmallFont:_.fD}});_.QI("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var vI=function(){var p=_.T.apply(this,arguments)||this;p.revealButtonClass="button";p.businessEmailDisplayState="HIDE_SECTION";return p};
_.Q(vI,_.T);_.R=vI.prototype;_.R.refit=function(){var p=this;_.dw(function(){_.L1(p.hostElement,"yt-refit-popups-action")});
_.mN(this,function(){_.L1(p.hostElement,"yt-refit-popups-action")})};
_.R.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.h1(_.PmL),this.businessEmailDisplayState="CAPTCHA")};
_.R.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"};
_.R.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.R.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"}}}};
_.R.computeEmailHref=function(p){return"mailto:"+p};
_.R.computeSafeUrl=function(p){if(p)return _.Vd(p)};
_.R.linkEndpoint=function(p){return _.e(p.onTap,_.Ua)};
_.R.linkEndpointToHref=function(p){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(p))};
_.R.onYtServiceRequestCompleted=function(p){var J;if((J=p.detail.data)==null?0:J.businessEmail)this.businessEmail=p.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var S;if((S=p.detail.data)==null?0:S.errorMessage)this.businessEmailErrorMessage=p.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.R.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var p=this.JSC$16571_captchaTextarea.value;if(p){p={recaptcha_response_token:p,channel_id:this.metadata.channelId};var J=_.e(this.metadata.onBusinessEmailRevealClickCommand,_.Ua);J&&this.ytComponentBehavior.resolveCommand(J,{form:p})}}};
_.R.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.vh.Object.defineProperties(vI.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var p;return _.e((p=this.data)==null?void 0:p.metadata,FZq)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.e(this.metadata.businessEmailRevealButton,_.mO)}},
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 _.e(this.metadata.learnMoreOnTap,_.Ua)}}});
vI.prototype.onYtServiceRequestCompleted=vI.prototype.onYtServiceRequestCompleted;vI.prototype.businessEmailMetadataChanged=vI.prototype.businessEmailMetadataChanged;vI.prototype.refit=vI.prototype.refit;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],vI.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.FM("#g-recaptcha-response"),_.Y("design:type",HTMLTextAreaElement)],vI.prototype,"JSC$16571_captchaTextarea",void 0);_.V([_.N(),_.Y("design:type",Object)],vI.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],vI.prototype,"revealButtonClass",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vI.prototype,"metadata",null);
_.V([_.U("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vI.prototype,"revealButton",null);_.V([_.U("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vI.prototype,"channelDisplayUrl",null);_.V([_.An("metadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vI.prototype,"refit",null);_.V([_.U("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vI.prototype,"formattedDescription",null);
_.V([_.U("metadata","learnMoreCommand"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],vI.prototype,"shouldRendereVerifiedPhoneStatus",null);_.V([_.U("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vI.prototype,"learnMoreCommand",null);_.V([_.N(),_.Y("design:type",String)],vI.prototype,"businessEmailDisplayState",void 0);_.V([_.N(),_.Y("design:type",String)],vI.prototype,"businessEmail",void 0);
_.V([_.N(),_.Y("design:type",String)],vI.prototype,"businessEmailErrorMessage",void 0);_.V([_.An("metadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vI.prototype,"businessEmailMetadataChanged",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],vI.prototype,"onYtServiceRequestCompleted",null);
_.V([_.gw({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],vI);
_.l(vI,"ytd-about-channel-renderer",function(){if(O8M!==void 0)return O8M;var p=document.createElement("template");_.C(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" aria-label$="[[metadata.learnMoreA11yLabel]]">\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(_.r().content.cloneNode(!0),
p.content.firstChild);return O8M=p},{mode:1});var $Yv;var fS=function(){return _.T.apply(this,arguments)||this};
_.Q(fS,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],fS.prototype,"data",void 0);_.V([_.gw({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],fS);
_.l(fS,"ytd-channel-list-sub-menu-avatar-renderer",function(){if($Yv!==void 0)return $Yv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return $Yv=p},{mode:1});var ouU;var OP=function(){return _.T.apply(this,arguments)||this};
_.Q(OP,_.T);OP.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],OP.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],OP.prototype,"aligment",void 0);_.V([_.gw({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],OP);
_.l(OP,"ytd-channel-list-sub-menu-renderer",function(){if(ouU!==void 0)return ouU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return ouU=
p},{mode:1});var en8;var A2=function(){return _.T.apply(this,arguments)||this};
_.Q(A2,_.T);A2.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}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],A2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],A2.prototype,"data",void 0);_.V([_.gw({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],A2);
_.l(A2,"ytd-channel-sub-menu-renderer",function(){if(en8!==void 0)return en8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return en8=p},{mode:1});var Wm8;var Q_q;var PI=function(){var p=_.T.apply(this,arguments)||this;p.isCompact=!1;return p};
_.Q(PI,_.T);_.vh.Object.defineProperties(PI.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var p,J;return((J=_.e((p=this.data)==null?void 0:p.endpoint,_.My))==null?void 0:J.target)==="TARGET_NEW_WINDOW"}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],PI.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],PI.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PI.prototype,"isCompact",void 0);_.V([_.U("isCompact"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],PI.prototype,"thumbnailWidth",null);
_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],PI.prototype,"openNewWindow",null);_.V([_.gw({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],PI);
_.l(PI,"ytd-media-lockup-renderer",function(){if(Q_q!==void 0)return Q_q;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Q_q=p},{mode:1});var Cm4;var zM=function(){return _.T.apply(this,arguments)||this};
_.Q(zM,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],zM.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],zM.prototype,"data",void 0);_.V([_.gw({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],zM);
_.l(zM,"ytd-structured-description-channel-lockup-renderer",function(){if(Cm4!==void 0)return Cm4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Cm4=p},{mode:1});var yRq;var $P=function(){var p=_.T.apply(this,arguments)||this;p.isCompact=!1;p.collectionsStackColor=_.z("modernize_structured_description_playlist_lockups_v2");return p};
_.Q($P,_.T);$P.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:_.z("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.vh.Object.defineProperties($P.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,J,S,H,M,X;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(p=this.data)==null?void 0:(J=p.thumbnail)==null?void 0:J.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(S=this.data)==null?void 0:(H=S.thumbnail)==null?void 0:H.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(M=this.data)==null?void 0:(X=M.thumbnail)==null?
void 0:X.vibrantColorPalette:void 0}}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],$P.prototype,"componentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],$P.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$P.prototype,"showSidePanelThumbnailOverlay",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],$P.prototype,"isCompact",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],$P.prototype,"collectionsStackColor",void 0);_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$P.prototype,"twoLineTitle",null);_.V([_.U("data","collectionsStackColor"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$P.prototype,"collectionStack",null);
_.V([_.gw({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],$P);
_.l($P,"ytd-structured-description-playlist-lockup-renderer",function(){if(yRq!==void 0)return yRq;var p=document.createElement("template");_.C(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)]]" aria-label$="[[getSimpleString(data.title)]]">\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(_.r().content.cloneNode(!0),
p.content.firstChild);return yRq=p},{mode:1});var Bt4;var oa=function(){return _.T.apply(this,arguments)||this};
_.Q(oa,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],oa.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],oa.prototype,"data",void 0);_.V([_.gw({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],oa);
_.l(oa,"ytd-structured-description-video-lockup-renderer",function(){if(Bt4!==void 0)return Bt4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Bt4=p},{mode:2});var ec=function(){return _.T.apply(this,arguments)||this};
_.Q(ec,_.T);
ec.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}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ec.prototype,"data",void 0);_.V([_.gw({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],ec);
_.l(ec,"ytd-compact-infocard-renderer",function(){if(Wm8!==void 0)return Wm8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Wm8=p},{mode:1});var UYn;var WI=function(){return _.T.apply(this,arguments)||this};
_.Q(WI,_.T);WI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.vh.Object.defineProperties(WI.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],WI.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],WI.prototype,"ytdReduxBehavior",void 0);_.V([_.N({selector:_.gn}),_.Y("design:type",Object)],WI.prototype,"isGridViewEnabled",void 0);
_.V([_.U("isGridViewEnabled"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],WI.prototype,"watchFeedBigThumbs",null);_.V([_.U("isGridViewEnabled","data"),_.N({reflectToAttribute:!0,value:"168"}),_.Y("design:type",String),_.Y("design:paramtypes",[])],WI.prototype,"thumbnailWidth",null);_.V([_.U("isGridViewEnabled","data"),_.N({reflectToAttribute:!0,value:"94"}),_.Y("design:type",String),_.Y("design:paramtypes",[])],WI.prototype,"customThumbnailSize",null);
_.V([_.N(),_.Y("design:type",Object)],WI.prototype,"data",void 0);_.V([_.gw({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],WI);
_.l(WI,"ytd-compact-playlist-renderer",function(){if(UYn!==void 0)return UYn;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return UYn=p},{mode:1});var s_U;var Qk=function(){var p=_.T.apply(this,arguments)||this;p.roundedContainer=!0;p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return p};
_.Q(Qk,_.T);_.R=Qk.prototype;_.R.attached=function(){this.requestElementsPerRow()};
_.R.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"}}}};
_.R.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.R.computeViewStyle=function(p){return p.style?p.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.R.onUpdateElementsPerRowAction=function(p){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&p===1};
_.R.requestElementsPerRow=function(){_.cf(this.hostElement,"yt-request-elements-per-row")};
Qk.prototype.dataChanged=Qk.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],Qk.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Qk.prototype,"actionHandlerBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],Qk.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Qk.prototype,"hideThumbnail",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.Y("design:type",String)],Qk.prototype,"viewStyle",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Qk.prototype,"roundedContainer",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qk.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Qk);
_.l(Qk,"ytd-compact-promoted-item-renderer",function(){if(s_U!==void 0)return s_U;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return s_U=p},{mode:1});var gu8;var CS=function(){return _.T.apply(this,arguments)||this};
_.Q(CS,_.T);CS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
CS.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
CS.prototype.onYtNavigate=function(p,J){var S=this;if(J.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",J)){var H=this.get("watchEndpoint.videoId",J.endpoint),M=_.L1(this.hostElement,"yt-get-current-video-id-action")[0];_.z("kevlar_mix_handle_first_endpoint_different")&&H&&M&&H!==M||(p.stopPropagation(),_.Lb().getPlayerPromise().then(function(X){if(X.getPlayerState()===0&&S.data.secondaryNavigationEndpoint)var Z=S.data.secondaryNavigationEndpoint;else{Z=
Object.assign({},J.endpoint);var n=_.e(Z.commandMetadata,_.i7);n&&(X=Math.floor(X.getCurrentTime()),n.url=_.KQ(n.url,{t:X}),!_.z("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(n=_.e(Z,_.lj)))&&(n.startTimeSeconds=X)}_.cf(S.hostElement,"yt-navigate",{endpoint:Z})}))}};
_.vh.Object.defineProperties(CS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H,M,X;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(p=this.data)==null?void 0:(J=p.thumbnail)==null?void 0:J.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(H=S.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(M=this.data)==null?void 0:(X=M.thumbnail)==null?void 0:X.darkColorPalette,experimentEnabled:!0}}}});
CS.prototype.onYtNavigate=CS.prototype.onYtNavigate;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.dF.YtEndpointBehavior),_.Y("design:type",Object)],CS.prototype,"ytEndpointBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],CS.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.fa),_.Y("design:type",Object)],CS.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],CS.prototype,"ytdReduxBehavior",void 0);_.V([_.N({selector:_.gn}),_.Y("design:type",Object)],CS.prototype,"isGridViewEnabled",void 0);_.V([_.U("isGridViewEnabled"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],CS.prototype,"watchFeedBigThumbs",null);
_.V([_.U("isGridViewEnabled"),_.N({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],CS.prototype,"thumbnailWidth",null);_.V([_.N(),_.Y("design:type",Object)],CS.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],CS.prototype,"collectionStack",null);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],CS.prototype,"onYtNavigate",null);
_.V([_.gw({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],CS);
_.l(CS,"ytd-compact-radio-renderer",function(){if(gu8!==void 0)return gu8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return gu8=p},{mode:1});var tOE;var yk=function(){return _.T.apply(this,arguments)||this};
_.Q(yk,_.T);yk.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
yk.prototype.computeRendererStyle=function(p){return p.style?p.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.V([_.N(),_.Y("design:type",Object)],yk.prototype,"data",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yk.prototype,"rendererBehavior",void 0);_.V([_.N({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],yk.prototype,"rendererStyle",void 0);_.V([_.gw({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],yk);
_.l(yk,"ytd-compact-text-promo-renderer",function(){if(tOE!==void 0)return tOE;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return tOE=p},{mode:1});var hnL;var BI=function(){var p=_.T.apply(this,arguments)||this;p.isShortsStyle=!1;return p};
_.Q(BI,_.T);_.R=BI.prototype;_.R.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"}}}};
_.R.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.cf(this.hostElement,"yt-disable-lockup-interaction"):_.cf(this.hostElement,"yt-enable-lockup-interaction"))};
_.R.isMetaBlockEmpty=function(p){return!p||!p.longBylineText&&!p.shortBylineText&&!p.shortViewCountText&&!p.viewCountText};
_.R.computeHasOneLineTitle=function(p){return this.forceOneLineTitle||!(p==null||!p.buttons)};
_.R.computeDisableInteraction=function(){var p;return!((p=this.data)==null?0:p.navigationEndpoint)};
_.R.hasSingularTopStandaloneBadge=function(){var p;return!((p=this.data)==null||!p.topStandaloneBadge)};
_.vh.Object.defineProperties(BI.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("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":""}}});
BI.prototype.disableInteractionChanged=BI.prototype.disableInteractionChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],BI.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],BI.prototype,"ytdLockupBehavior",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],BI.prototype,"ytdReduxBehavior",void 0);_.V([_.N({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.Y("design:type",Boolean)],BI.prototype,"metaBlockEmpty",void 0);_.V([_.N({selector:_.gn}),_.Y("design:type",Object)],BI.prototype,"isGridViewEnabled",void 0);_.V([_.U("isGridViewEnabled"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BI.prototype,"watchFeedBigThumbs",null);
_.V([_.U("isGridViewEnabled"),_.N({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],BI.prototype,"thumbnailWidth",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BI.prototype,"isShortsStyle",void 0);_.V([_.N(),_.Y("design:type",Object)],BI.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.Y("design:type",Boolean)],BI.prototype,"hasOneLineTitle",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],BI.prototype,"hideThumbnail",void 0);_.V([_.N(),_.Y("design:type",Boolean)],BI.prototype,"forceOneLineTitle",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.Y("design:type",Boolean)],BI.prototype,"disableInteraction",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],BI.prototype,"musicMetadataVideoLockup",void 0);
_.V([_.bO("disableInteraction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BI.prototype,"disableInteractionChanged",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BI.prototype,"shouldShowTopBadges",null);_.V([_.U("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],BI.prototype,"topBadges",null);
_.V([_.U("shouldShowTopBadges","data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],BI.prototype,"inlineMetadataBadges",null);_.V([_.U("shouldShowTopBadges"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BI.prototype,"shouldShowBadgesBelowMetadata",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BI.prototype,"compactTitleClass",null);_.V([_.gw({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],BI);
_.l(BI,"ytd-compact-video-renderer",function(){if(hnL!==void 0)return hnL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return hnL=p},{mode:_.Jz("kevlar_poly_si_batch_j067")?1:2});var DYm;_.QI("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var UP=function(){return _.T.apply(this,arguments)||this};
_.Q(UP,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],UP.prototype,"data",void 0);_.V([_.gw({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],UP);
_.l(UP,"ytd-counterfactual-renderer",function(){if(DYm!==void 0)return DYm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return DYm=p},{mode:1});var kjM;var sP=function(){var p=_.T.apply(this,arguments)||this;p.hidden=!1;return p};
_.Q(sP,_.T);sP.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.vO().resolve(_.Ov).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
sP.prototype.computeHidden=function(p){return!!p};
_.vh.Object.defineProperties(sP.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}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],sP.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.Y("design:type",Object)],sP.prototype,"hidden",void 0);_.V([_.U("data.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],sP.prototype,"label",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sP.prototype,"value",null);
_.V([_.gw({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],sP);
_.l(sP,"ytd-dropdown-item-renderer",function(){if(kjM!==void 0)return kjM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return kjM=p},{mode:1});var NtM;var Tt8;var g6=function(){return _.T.apply(this,arguments)||this};
_.Q(g6,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],g6.prototype,"data",void 0);_.V([_.N({computed:"getSimpleString(data.label)"}),_.Y("design:type",String)],g6.prototype,"label",void 0);_.V([_.gw({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],g6);
_.l(g6,"ytd-navigation-dropdown-item-renderer",function(){if(Tt8!==void 0)return Tt8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Tt8=p},{mode:1});var t2=function(){var p=_.T.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};
_.Q(t2,_.T);_.R=t2.prototype;_.R.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"}}}};
_.R.open=function(){this.inputEl.open()};
_.R.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.R.dataChanged=function(){this.reset()};
_.R.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("value-changed",this.value))};
_.R.stopPropagation=function(p){p.stopPropagation()};
_.R.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")}};
_.R.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var p=0,J=this.data.entries.length;p<J;p++){var S=this.data.entries[p],H;for(H in S)if(S.hasOwnProperty(H)){var M=S[H];if("isSelected"in M&&M.isSelected)return"stringValue"in M?M.stringValue||"":"int32Value"in M?M.int32Value||0:0}}return null};
_.R.updateValueFromBinding=function(p){this.value=p.detail.value};
_.vh.Object.defineProperties(t2.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,J=this.data.entries.length;p<J;p++){var S=this.data.entries[p],H;for(H in S)if(S.hasOwnProperty(H)){var M=S[H];if("isSelected"in M&&M.isSelected&&"label"in M)return this.ytRendererBehavior.getSimpleString(M.label)}}return null}}});
t2.prototype.autoSizeLabel=t2.prototype.autoSizeLabel;t2.prototype.stopPropagation=t2.prototype.stopPropagation;t2.prototype.valueChangedForBinding=t2.prototype.valueChangedForBinding;t2.prototype.dataChanged=t2.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],t2.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],t2.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"disabled",void 0);_.V([_.N(),_.Y("design:type",Object)],t2.prototype,"value",void 0);_.V([_.N(),_.Y("design:type",Object)],t2.prototype,"noLabelFloat",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"noUnderline",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],t2.prototype,"theme",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"usePrimaryColor",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"hasBackground",void 0);_.V([_.N(),_.Y("design:type",Object)],t2.prototype,"verticalAlign",void 0);_.V([_.N(),_.Y("design:type",Object)],t2.prototype,"autosize",void 0);_.V([_.N(),_.Y("design:type",Object)],t2.prototype,"minAutosizeWidth",void 0);_.V([_.N(),_.Y("design:type",Object)],t2.prototype,"autosizeFont",void 0);
_.V([_.FM("#entries"),_.Y("design:type",Object)],t2.prototype,"entries",void 0);_.V([_.FM("#input"),_.Y("design:type",Object)],t2.prototype,"inputEl",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t2.prototype,"dataChanged",null);_.V([_.An("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t2.prototype,"valueChangedForBinding",null);
_.V([_.GI("iron-overlay-opened"),_.GI("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],t2.prototype,"stopPropagation",null);_.V([_.GI("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t2.prototype,"autoSizeLabel",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],t2.prototype,"label",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],t2);
_.l(t2,"ytd-dropdown-renderer",function(){if(NtM!==void 0)return NtM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return NtM=p},{mode:1});var dYM;var h2=function(){var p=_.T.apply(this,arguments)||this;p.isConstrainedList=!1;return p};
_.Q(h2,_.T);h2.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"}}}};
h2.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
h2.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
h2.prototype.computeViewAllHidden=function(p,J){return p||!J.viewAllEndpoint};
h2.prototype.fillRestIfNoShowMore=h2.prototype.fillRestIfNoShowMore;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.y$.YtLazyListBehavior),_.Y("design:type",Object)],h2.prototype,"ytLazyListBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],h2.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],h2.prototype,"isConstrainedList",void 0);_.V([_.An("data","canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h2.prototype,"fillRestIfNoShowMore",null);_.V([_.gw({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],h2);
_.l(h2,"ytd-expanded-shelf-contents-renderer",function(){if(dYM!==void 0)return dYM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return dYM=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var ux8;var D1=function(){return _.T.apply(this,arguments)||this};
_.Q(D1,_.T);D1.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}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],D1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],D1.prototype,"data",void 0);_.V([_.gw({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],D1);
_.l(D1,"ytd-feed-channel-filter-header-renderer",function(){if(ux8!==void 0)return ux8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return ux8=p},{mode:1});var l68;var VOm;var q$U;var kP=function(){return _.T.apply(this,arguments)||this};
_.Q(kP,_.T);_.R=kP.prototype;_.R.onClick=function(p){var J,S=(J=this.data)==null?void 0:J.sectionEndpoint;!_.jK(_.Er(p),this.hostElement,["A".toString()])&&S&&_.cf(this.hostElement,"yt-navigate",{endpoint:S})};
_.R.computeHasSectionEndpoint=function(p){return(p==null?void 0:p.sectionEndpoint)!==void 0};
_.R.computeShowHeaderAsLink=function(p){return(p==null?void 0:p.header)!==void 0&&(p==null?void 0:p.sectionEndpoint)!==void 0};
_.R.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};
_.R.getHeaderAsLinkClass=function(p){var J=[],S;(p==null?0:(S=p.headerIcon)==null?0:S.iconType)&&J.push("header-link-active");return J.join(" ")};
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],kP.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],kP.prototype,"data",void 0);
_.V([_.N({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],kP.prototype,"hasSectionEndpoint",void 0);_.V([_.N({computed:"computeShowHeaderAsLink(data)"}),_.Y("design:type",Boolean)],kP.prototype,"showHeaderAsLink",void 0);_.V([_.N({computed:"computeShowSubheaderAsLink(data)"}),_.Y("design:type",Boolean)],kP.prototype,"showSubheaderAsLink",void 0);_.V([_.gw({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],kP);
_.l(kP,"ytd-medical-panel-section-renderer",function(){if(q$U!==void 0)return q$U;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return q$U=p},{mode:1});var Nb=function(){var p=_.T.apply(this,arguments)||this;p.isExpanded=!1;p.roundedContainer=!0;p.skipRoundingTop=!1;p.toggleExpandableSection=function(){p.isExpanded=!p.isExpanded};
return p};
_.Q(Nb,_.T);
Nb.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]]"}}}}}};
Nb.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Nb.prototype.dataChanged=Nb.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Nb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Nb.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Nb.prototype,"isExpanded",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Nb.prototype,"roundedContainer",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Nb.prototype,"skipRoundingTop",void 0);_.V([_.N(),_.Y("design:type",Object)],Nb.prototype,"toggleExpandableSection",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Nb.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Nb);
_.l(Nb,"ytd-medical-panel-content-renderer",function(){if(VOm!==void 0)return VOm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return VOm=p},{mode:1});_.QI("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var TM=function(){var p=_.T.apply(this,arguments)||this;p.roundedContainer=!0;p.extractOverlay=!1;p.amsterdamEnabled=_.z("enable_desktop_amsterdam_info_panels");p.hasTitle=!1;p.linkIcon="OPEN_IN_NEW";p.isDismissed=!1;return p};
_.Q(TM,_.T);TM.prototype.onOverlayConditionsChange=function(){var p=_.Jn(this.hostElement).querySelector("ytd-info-panel-content-renderer");p&&(p.set("extractOverlay",this.extractOverlay),p.set("roundedContainer",this.roundedContainer))};
TM.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]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
TM.prototype.computeHasTitle=function(p){return!(p==null||!p.title)};
TM.prototype.onClick=function(p){var J,S=(J=this.data)==null?void 0:J.headerEndpoint;!_.jK(_.Er(p),this.hostElement,["BUTTON".toString()])&&S&&this.ytComponentBehavior.resolveCommand(S)};
_.vh.Object.defineProperties(TM.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,J;return((p=this.data)==null?void 0:p.disableBottomDivider)||!((J=this.data)==null?0:J.title)}}});
TM.prototype.onOverlayConditionsChange=TM.prototype.onOverlayConditionsChange;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],TM.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],TM.prototype,"ytdReduxBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],TM.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],TM.prototype,"roundedContainer",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],TM.prototype,"extractOverlay",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],TM.prototype,"amsterdamEnabled",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Y("design:type",Object)],TM.prototype,"hasTitle",void 0);
_.V([_.N({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.background"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TM.prototype,"background",null);_.V([_.N({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.titleStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TM.prototype,"titleStyle",null);
_.V([_.N({type:_.z("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.U("data.titleStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TM.prototype,"showLinkIcon",null);_.V([_.N(),_.Y("design:type",String)],TM.prototype,"linkIcon",void 0);_.V([_.N({type:_.z("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TM.prototype,"hideDivider",null);
_.V([_.N({selectorArgs:["data.dismissStateEntityKey"],selector:function(p,J){p=_.RR(p.entities,"dismissState",J);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"}}),
_.Y("design:type",Object)],TM.prototype,"isDismissed",void 0);_.V([_.bO("roundedContainer","extractOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TM.prototype,"onOverlayConditionsChange",null);_.V([_.gw({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],TM);
_.l(TM,"ytd-info-panel-container-renderer",function(){if(l68!==void 0)return l68;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return l68=p},{mode:1});var a6p;_.QI("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var d6=function(){return _.T.apply(this,arguments)||this};
_.Q(d6,_.T);d6.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
d6.prototype.computeStyle=function(p){return p?p:""};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],d6.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.Y("design:type",String)],d6.prototype,"titleStyle",void 0);
_.V([_.gw({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],d6);
_.pI()(d6,"ytd-item-section-header-renderer",function(){if(a6p===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);a6p=p}p=a6p;return p},{allowedProps:["data"],
mode:1});var Eud;var Y$8,rR8=function(){return Y$8!==void 0?Y$8:Y$8=document.createElement("template")};
document.head.appendChild(rR8().content);var j_L;_.uE=new _.ni("VOTING_ANIMATION_CONTROLLER_TOKEN");var xYo=_.d(function(p){var J=p.data;var S=_.nE("div"),H=_.nE("div");p=_.K(_.eQ("VOTE_STATUS_NONE",void 0,"YPH5mf"));var M=p.next().value,X=p.next().value,Z=_.v$(Oms,function(){var A;return(A=J())==null?void 0:A.entityKey}),n=_.z("web_enable_voting_animation")||_.z("enable_music_web_cairo_voting_animation");
_.ad(function(){var A;((A=J().initialState)==null?0:A.status)&&X(J().initialState.status)});
var b=function(){var A,P,W=(P=(A=J().initialState)==null?void 0:A.votes)!=null?P:0,y;A=(y=J().initialState)==null?void 0:y.status;return A==="VOTE_STATUS_UPVOTED"?W-1:A==="VOTE_STATUS_DOWNVOTED"?W+1:W},F=function(){return M()==="VOTE_STATUS_UPVOTED"?b()+1:M()==="VOTE_STATUS_DOWNVOTED"?b()-1:b()},f=function(A){var P=A?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
X(P);var W=F(),y=_.vO().resolve(_.F9(_.uE)),t=Z();t&&(A&&(t==null?0:t.upvoteDefaultButtonOnTap)?_.Dm(t.upvoteDefaultButtonOnTap,{form:{element:S.value},disableClickTracking:!0}):(t==null?0:t.upvoteToggledButtonOnTap)&&_.Dm(t.upvoteToggledButtonOnTap,{form:{element:S.value},disableClickTracking:!0}));var D;A=(D=t==null?void 0:t.enableOptimisticReordering)!=null?D:J().enableOptimisticReordering;n&&y&&J().itemId&&A&&wM8(y,J().itemId,W,P)},O=function(A){var P=A?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
X(P);var W=F(),y=_.vO().resolve(_.F9(_.uE)),t=Z();t&&(A&&(t==null?0:t.downvoteDefaultButtonOnTap)?_.Dm(t.downvoteDefaultButtonOnTap,{form:{element:H.value},disableClickTracking:!0}):(t==null?0:t.downvoteToggledButtonOnTap)&&_.Dm(t.downvoteToggledButtonOnTap,{form:{element:H.value},disableClickTracking:!0}));var D;A=(D=t==null?void 0:t.enableOptimisticReordering)!=null?D:J().enableOptimisticReordering;n&&y&&J().itemId&&A&&wM8(y,J().itemId,W,P)};
p={};p=_.XB("ytVotingViewModelVoteCount",(p.ytVotingViewModelVoteCountDisabled=function(){return J().isDisabled},p));
return _.m("voting-view-model",{class:"ytVotingViewModelHost"},_.m("div",{el:S},_.m(_.AH,{data:function(){var A=_.e(J().upvoteButton,_.f5);return{toggleButtonViewModel:Object.assign({},A,{isToggled:M()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(A){return _.m(_.LD,{data:A.data,
onToggle:f})}})),_.m("div",{class:p},function(){var A,P,W;
return M()==="VOTE_STATUS_UPVOTED"?(A=J().initialState)==null?void 0:A.compactVotesUpvoted:M()==="VOTE_STATUS_DOWNVOTED"?(P=J().initialState)==null?void 0:P.compactVotesDownvoted:(W=J().initialState)==null?void 0:W.compactVotes}),_.m("div",{el:H},_.m(_.AH,{data:function(){var A=_.e(J().downvoteButton,_.f5);
return{toggleButtonViewModel:Object.assign({},A,{isToggled:M()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(A){return _.m(_.LD,{data:A.data,
onToggle:O})}})))},"bd");_.ci(_.d(function(p){var J=p.data;return _.m("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.m("div",{class:_.XB("ytEngagementBarViewModelEngagementBarWrapper",p.className)},_.m(_.AH,{data:function(){return J().actions}},{votingViewModel:xYo})))},"cd"),"engagement-bar-view-model",{props:{data:_.fD,
className:_.fD}});var lE=function(){var p=_.T.apply(this,arguments)||this;p.playlistVotingAnimationEnabled=_.z("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};
_.Q(lE,_.T);_.R=lE.prototype;_.R.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"}}}};
_.R.canReorderChanged=function(){this.persistentDragHandle=_.z("kevlar_playlist_drag_handles")&&this.canReorder};
_.R.onDrag=function(){if(this.thumbnail){var p=_.Jn(this.thumbnail).querySelector("yt-image");p&&(p.shouldRenderLazy=!1)}};
_.R.onMenuOverlayChanged=function(p,J){this.menuOpened=J};
_.R.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.R.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.R.onContentsTap=function(p){var J,S=(J=this.data)==null?void 0:J.serviceEndpoints;if(S&&S.length===1&&_.e(S[0],At4)&&!_.jK(_.Er(p),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(S[0]);else{var H;(J=(H=this.data)==null?void 0:H.navigationEndpoint)&&_.z("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?cRo(_.vO().resolve(_.DF),J):(_.YE().playlistSuggestionsShelfActivation=
!0,_.I6E(_.vO().resolve(_.DF),J)):J&&!_.jK(_.Er(p),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.z("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.cf(this.hostElement,"yt-navigate",{endpoint:J}):this.ytComponentBehavior.resolveCommand(J))}};
_.R.computeStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.R.computeThumbnailWidth=function(p){return p==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.R.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=sxk(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))}};
_.R.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.R.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.R.dataChanged=function(){if(this.data){var p,J,S,H=((p=this.downloadRenderData)==null?void 0:p.badges)&&((J=this.downloadRenderData)==null?void 0:J.badges)!==((S=this.data)==null?void 0:S.badges),M,X,Z;p=((M=this.downloadRenderData)==null?void 0:M.thumbnailOverlays)&&((X=this.downloadRenderData)==null?void 0:X.thumbnailOverlays)!==((Z=this.data)==null?void 0:Z.thumbnailOverlays);(!this.downloadRenderData||H||p)&&this.downloadStateChanged()}};
_.R.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var p,J,S=(p=this.data.menu)==null?void 0:(J=p.menuRenderer)==null?void 0:J.items;if(S)for(p=_.K(S),J=p.next();!J.done;J=p.next())if(J=J.value,S=void 0,_.e((S=J.menuServiceItemRenderer)==null?void 0:S.serviceEndpoint,_.XY)){var H=S=void 0,M=void 0;J=(S=J)==null?void 0:(H=S.menuServiceItemRenderer)==null?void 0:(M=H.serviceEndpoint)==null?void 0:M.playlistEditEndpoint;M=H=void 0;if(S=(H=J)==null?void 0:(M=H.actions)==null?void 0:
M[0])H=void 0,S.setVideoId=(H=this.data)==null?void 0:H.setVideoId;M=H=S=void 0;if(J=(S=J)==null?void 0:(H=S.clientActions)==null?void 0:(M=H[0])==null?void 0:M.playlistRemoveVideosAction)S=void 0,J.setVideoIds=[(S=this.data)==null?void 0:S.setVideoId]}}};
_.vh.Object.defineProperties(lE.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
lE.prototype.setVideoIdChanged=lE.prototype.setVideoIdChanged;lE.prototype.dataChanged=lE.prototype.dataChanged;lE.prototype.downloadStateChanged=lE.prototype.downloadStateChanged;lE.prototype.onMenuOverlayChanged=lE.prototype.onMenuOverlayChanged;lE.prototype.canReorderChanged=lE.prototype.canReorderChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],lE.prototype,"ytdReduxBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],lE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],lE.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],lE.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],lE.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],lE.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],lE.prototype,"canReorder",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],lE.prototype,"menuOpened",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],lE.prototype,"handleIsHovered",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],lE.prototype,"persistentDragHandle",void 0);_.V([_.N(),_.Y("design:type",Object)],lE.prototype,"downloadRenderData",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],lE.prototype,"styleType",void 0);_.V([_.N({computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],lE.prototype,"thumbnailWidth",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],lE.prototype,"isDownloads",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],lE.prototype,"playlistVotingAnimationEnabled",void 0);
_.V([_.N({selector:DY,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],lE.prototype,"downloadProgress",void 0);_.V([_.N(),_.Y("design:type",Number)],lE.prototype,"relativeDateReference",void 0);_.V([_.N({selector:_.gl,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],lE.prototype,"transferState",void 0);_.V([_.N({selector:cLW,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],lE.prototype,"downloadState",void 0);
_.V([_.N({selector:k_9,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],lE.prototype,"offlinePolicyAction",void 0);_.V([_.N({selector:NFt,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],lE.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.V([_.N({selector:daL,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],lE.prototype,"entityInfo",void 0);_.V([_.N({selector:_.Bq}),_.Y("design:type",Boolean)],lE.prototype,"miniplayerIsActive",void 0);
_.V([_.U("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],lE.prototype,"playlistVideoId",null);_.V([_.FM("#thumbnail"),_.Y("design:type",Object)],lE.prototype,"thumbnail",void 0);_.V([_.An("canReorder"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lE.prototype,"canReorderChanged",null);
_.V([_.GI("yt-menu-overlay-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Boolean]),_.Y("design:returntype")],lE.prototype,"onMenuOverlayChanged",null);_.V([_.An("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lE.prototype,"downloadStateChanged",null);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lE.prototype,"dataChanged",null);_.V([_.An("data.setVideoId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lE.prototype,"setVideoIdChanged",null);_.V([_.gw({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],lE);
_.l(lE,"ytd-playlist-video-renderer",function(){if(j_L!==void 0)return j_L;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);p.content.insertBefore(rR8().content.cloneNode(!0),p.content.firstChild);return j_L=p},{mode:1});var LmM;var Vk=function(){return _.T.apply(this,arguments)||this};
_.Q(Vk,_.T);_.V([_.N(),_.Y("design:type",Object)],Vk.prototype,"data",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Vk.prototype,"rendererBehavior",void 0);_.V([_.gw({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Vk);
_.l(Vk,"ytd-premium-browse-footer-renderer",function(){if(LmM!==void 0)return LmM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return LmM=p},{mode:1});var prL;var qb=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return p};
_.Q(qb,_.T);_.R=qb.prototype;_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.handleDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.R.computeHeaderLogoThumbnail=function(p,J){if(p)return J?p.darkLogo:p.lightLogo};
_.R.computeHeaderLogoHeight=function(p,J){var S,H,M;return(p=(S=this.computeHeaderLogoThumbnail(p,J))==null?void 0:(H=S.thumbnails)==null?void 0:(M=H[0])==null?void 0:M.height)&&p%31===0?"31":"24"};
_.R.computeHeaderLogoMarginBottom=function(p,J){return this.computeHeaderLogoHeight(p,J)==="24"?"0":"-7"};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],qb.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qb.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],qb.prototype,"isDarkTheme",void 0);_.V([_.N({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.Y("design:type",Object)],qb.prototype,"themeLogo",void 0);
_.V([_.N({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.Y("design:type",String)],qb.prototype,"logoHeight",void 0);_.V([_.N({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.Y("design:type",String)],qb.prototype,"logoMarginBottom",void 0);_.V([_.gw({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],qb);
_.l(qb,"ytd-primetime-promo-header-renderer",function(){if(prL!==void 0)return prL;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return prL=p},{mode:1});var Jhm;_.aa=_.d(function(p){var J=p.className;var S=p.data;var H=p.isOverlay;var M=p.maxLinesOverride;var X=p.useMediumText;var Z=function(){return S().alwaysShowTruncationText},n=function(){return S().truncationText},b=function(){return X!==void 0&&X()?"medium":"small"},F=function(){return H!==void 0&&H()?"overlay":"default"},f=function(){var W,y;
return(y=(W=_.e(S().rendererContext,_.PY))==null?void 0:W.label)!=null?y:""};
p=_.K(_.eQ(!1,void 0,"llBUm"));var O=p.next().value,A=p.next().value;p=_.Kb(function(){S().expandOnTap&&A(!O());return!1});
var P={};return _.m("yt-description-preview-view-model",{el:_.Y2(_.sl(function(){return S().rendererContext})),
class:_.XB("ytDescriptionPreviewViewModelHost",J,(P.ytDescriptionPreviewViewModelClickable=function(){var W;return!((W=_.e(S().rendererContext,_.gT))==null||!W.onTap)},P.ytDescriptionPreviewViewModelIsOverlay=H,P)),
"on:click":p},_.m(_.v,{cond:function(){return S().description},
then:function(W){return _.m(_.v,{cond:O,then:function(){var y={};return _.m("div",{class:_.XB("ytDescriptionPreviewViewModelDescription",(y.ytDescriptionPreviewViewModelDescriptionMediumText=X,y))},_.m(_.v3,{text:W}))},
else:function(){return _.m(Hm8,{text:W,alwaysShowTruncationText:Z,truncationText:n,maxLines:function(){var y;return(y=M==null?void 0:M())!=null?y:S().maxLines},
textStyle:F,accessibilityLabel:f,textSize:b})}})}}))},"dd");
_.aa.idomCompat=!0;var Hwo=_.d(function(p){var J=_.Kb(function(M){var X;(X=p.onClick)==null||X.call(p,M)}),S={},H={};
return _.m("yt-shelf-header-layout",{class:_.XB("yt-shelf-header-layout",(S["yt-shelf-header-layout--disable-horizontal-padding"]=p.disableHorizontalPadding,S["yt-shelf-header-layout--disable-vertical-padding"]=p.disableVerticalPadding,S["yt-shelf-header-layout--responsive"]=p.useResponsiveLayout,S["yt-shelf-header-layout--narrow"]=function(){var M,X;return((M=p.useResponsiveLayout)==null?void 0:M.call(p))&&((X=p.forceSmallLayout)==null?void 0:X.call(p))},S["yt-shelf-header-layout--is-overlay"]=p.isOverlay,
S["yt-shelf-header-layout--tappable"]=p.isInteractive,S["yt-shelf-header-layout--optional-medium-layout-padding"]=p.useUpdatedPadding,S)),
"on:click":J,tabindex:function(){var M;return((M=p.isInteractive)==null?0:M.call(p))?0:void 0}},_.m("div",{class:"yt-shelf-header-layout__header-row"},_.m(_.v,{cond:p.leadingIcon,
then:function(M){return _.m("div",{class:"yt-shelf-header-layout__leading-icon"},_.m(_.bn,{icon:M}))},
else:function(){return _.m(_.v,{cond:p.hasLeadingImage,then:function(){var M,X={};return _.m("div",{class:_.XB("yt-shelf-header-layout__leading-image",(X["yt-shelf-header-layout__leading-image--circular-image"]=p.circularImage,X))},(M=p.leadingImage)==null?void 0:M.call(p))}})}}),_.m("div",{class:"yt-shelf-header-layout__label-container"},_.m(_.v,{cond:p.hasSuperlabel,
then:function(){var M;return _.m("div",{class:"yt-shelf-header-layout__superlabel"},(M=p.superlabel)==null?void 0:M.call(p))}}),_.m("div",{class:"yt-shelf-header-layout__title-row"},_.m(S1M,{text:p.title,
className:_.XB("yt-shelf-header-layout__title",(H["yt-shelf-header-layout__title--small-title"]=p.forceSmallLayout,H)),tagLevel:p.tagLevel}),_.m(_.v,{cond:p.hasDetail,then:function(){var M;return _.m("div",{class:"yt-shelf-header-layout__detail"},(M=p.detail)==null?void 0:M.call(p))}})),_.m(_.v,{cond:p.hasSublabel,
then:function(){var M;return _.m("div",{class:"yt-shelf-header-layout__sublabel"},(M=p.sublabel)==null?void 0:M.call(p))}})),_.m(_.v,{cond:p.hasTrailingActions,
then:function(){var M;return _.m("div",{class:"yt-shelf-header-layout__trailing-actions"},(M=p.trailingActions)==null?void 0:M.call(p))}})),_.m(_.v,{cond:p.hasBottomAccessory,
then:function(){var M;return _.m("div",{class:"yt-shelf-header-layout__bottom-accessory"},(M=p.bottomAccessory)==null?void 0:M.call(p))}}))},"ed");
Hwo.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var S1M=_.d(function(p){var J=p.text;var S=p.className;var H=p.tagLevel;return _.m(_.ue,null,_.m(_.Nz,{when:function(){return(H==null?void 0:H())===0}},function(){return _.m("h2",{class:S},J())}),_.m(_.Nz,{when:function(){return(H==null?void 0:H())===1}},function(){return _.m("h3",{class:S},J())}),_.m(_.Nz,{when:function(){return(H==null?void 0:H())===2}},function(){return _.m("h4",{class:S},J())}),_.m(_.TV,null,function(){return _.m("h2",{class:S},J())}))},"fd");var iw8,Mln,Xr8;_.EP=_.d(function(p){var J=p.className;var S=p.data;var H=p.disableHorizontalPadding;var M=p.disableVerticalPadding;var X=p.forceSmallLayout;var Z=p.useResponsiveLayout;var n=p.isOverlay;p=p.useUpdatedPadding;return _.m("yt-section-header-view-model",{class:_.XB("ytSectionHeaderViewModelHost",J),style:_.G7({"background-color":function(){return Fm(S().backgroundColor)?_.Bt(Fm(S().backgroundColor)):void 0}})},_.m(Hwo,{hasDetail:!1,
title:function(){return _.m(_.v3,{text:function(){return S().headline}})},
hasTitle:!0,sublabel:function(){return _.m(Mln,{data:S})},
hasSublabel:function(){return!!S().sublabel||!!S().bottomBadge},
superlabel:function(){return _.m(Xr8,{data:S})},
hasSuperlabel:function(){return!!S().superlabel||!!S().topBadge},
leadingImage:function(){return _.m(iw8,{leadingAccessory:function(){return S().leadingAccessory}})},
hasLeadingImage:function(){return!!S().leadingAccessory},
trailingActions:function(){return _.m(_.AH,{data:function(){return S().trailingActions}},{flexibleActionsViewModel:_.KB})},
hasTrailingActions:function(){return!!S().trailingActions},
disableHorizontalPadding:function(){return(H==null?void 0:H())||S().disableHorizontalPadding},
disableVerticalPadding:M,forceSmallLayout:X,useResponsiveLayout:Z,isOverlay:n,isInteractive:function(){return!!_.B$(S().rendererContext)},
onClick:function(b){if(_.Ul(S().rendererContext)){var F=_.B$(S().rendererContext);F&&_.ge(F,{form:{element:b.target,event:b}})}},
bottomAccessory:function(){return _.m(_.AH,{data:function(){return S().bottomAccessory}},{descriptionPreviewViewModel:function(b){return _.m(_.aa,{data:b.data,
useMediumText:!0})},
commonMarkViewModel:function(b){b=b.data;var F;return _.m(_.fV,null,(F=_.vO().resolve(_.F9(QiU)))==null?void 0:F({data:b}))}})},
hasBottomAccessory:function(){return!!S().bottomAccessory},
useUpdatedPadding:p}))},"gd");
iw8=_.d(function(p){var J=p.leadingAccessory;return _.m(_.fV,null,_.m(_.v,{cond:function(){var S;return(S=J().image)!=null?S:_.dT(J().themedImage)},
then:function(S){return _.m(_.a4,{data:S,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.m(_.v,{cond:function(){return _.e(J().avatar,_.tH)},
then:function(S){return _.m(_.iF,{data:S})}}))},"hd");
Mln=_.d(function(p){var J=p.data;return _.m(_.fV,null,_.m(_.v,{cond:function(){return _.e(J().bottomBadge,FG8)},
then:function(S){var H={};return _.m(_.Qy,{data:S,class:_.XB((H.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!S()&&!!J().sublabel},H))})}}),_.m(_.v,{cond:function(){return J().sublabel},
then:function(S){return _.m(_.v3,{text:S})}}))},"id");
Xr8=_.d(function(p){var J=p.data;return _.m(_.fV,null,_.m(_.v,{cond:function(){return _.e(J().topBadge,FG8)},
then:function(S){var H={};return _.m(_.Qy,{data:S,class:_.XB((H.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!S()&&!!J().superlabel},H))})}}),_.m(_.v,{cond:function(){return J().superlabel},
then:function(S){return _.m(_.v3,{text:S})}}))},"jd");_.ci(_.EP,"yt-section-header-view-model",{props:{data:_.fD,className:_.fD,disableHorizontalPadding:_.fD,disableVerticalPadding:_.fD,forceSmallLayout:_.fD,useResponsiveLayout:_.fD,isOverlay:_.fD,useUpdatedPadding:_.fD}});_.QI("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var YP=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return p};
_.Q(YP,_.T);_.R=YP.prototype;_.R.attached=function(){this.requestElementsPerRow()};
_.R.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"}}}};
_.R.onDataChange=function(){var p=this;_.mN(this,function(){p.updateItemVisibility()})};
_.R.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p,this.updateItemVisibility())};
_.R.updateItemVisibility=function(){var p=this;this.data&&this.data.panels&&_.Jn(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(J,S){J.hidden=S>p.elementsPerRow-1})};
_.R.requestElementsPerRow=function(){_.cf(this.hostElement,"yt-request-elements-per-row")};
YP.prototype.onDataChange=YP.prototype.onDataChange;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],YP.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],YP.prototype,"actionHandlerBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],YP.prototype,"data",void 0);_.V([_.N({value:3}),_.Y("design:type",Number)],YP.prototype,"elementsPerRow",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YP.prototype,"onDataChange",null);_.V([_.gw({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],YP);
_.l(YP,"ytd-primetime-promo-renderer",function(){if(Jhm!==void 0)return Jhm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Jhm=p},{mode:1});var Rf8;var r6=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return p};
_.Q(r6,_.T);r6.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
r6.prototype.handleButtonRefreshAction=function(p){if(p=_.e(p,hE8))this.set("data.button",p.membershipButton),this.notifyPath("data.button")};
_.vh.Object.defineProperties(r6.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?void 0:(J=p.avatars)==null?void 0:J.slice(0,8))||[]}}});
_.V([_.N(),_.Y("design:type",Object)],r6.prototype,"data",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],r6.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],r6.prototype,"rendererBehavior",void 0);_.V([_.U("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],r6.prototype,"avatars",null);
_.V([_.gw({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],r6);
_.l(r6,"ytd-recognition-shelf-renderer",function(){if(Rf8!==void 0)return Rf8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Rf8=p},{mode:1});var KJ8;var Zwo;var jc=function(){var p=_.T.apply(this,arguments)||this;p.modernButtons=_.z("web_modern_buttons");return p};
_.Q(jc,_.T);_.R=jc.prototype;
_.R.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.R.dataChanged=function(){this.collapsed=!0};
_.R.computeVisibleItems=function(p,J){return p!==void 0&&p.items?J?p.items.slice(0,this.data.collapsedItemCount):p.items:[]};
_.R.computeHideShowMore=function(p,J,S){return p>=J||!S};
_.R.computeHideShowAll=function(p,J,S){return!(p&&J)||S};
_.R.onMoreClick=function(){this.collapsed=!1};
_.vh.Object.defineProperties(jc.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.z("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.zG("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.z("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
jc.prototype.dataChanged=jc.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],jc.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],jc.prototype,"isSearch",void 0);
_.V([_.N({computed:"computeVisibleItems(data,collapsed)"}),_.Y("design:type",Array)],jc.prototype,"visibleItems",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],jc.prototype,"collapsed",void 0);_.V([_.N({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.Y("design:type",Boolean)],jc.prototype,"hideShowMore",void 0);
_.V([_.N({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.Y("design:type",Boolean)],jc.prototype,"hideShowAll",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jc.prototype,"modernButtons",void 0);_.V([_.U("isSearch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jc.prototype,"typographyBump",null);
_.V([_.U("isSearch"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jc.prototype,"lockupExperiments",null);_.V([_.U("isSearch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],jc.prototype,"thumbnailWidth",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jc.prototype,"dataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],jc);
_.l(jc,"ytd-vertical-list-renderer",function(){if(Zwo!==void 0)return Zwo;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Zwo=p},{mode:1});var n78=_.YI(["#"]);_.QI("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var w6=function(){var p=_.T.apply(this,arguments)||this;p.isConstrainedList=!1;return p};
_.Q(w6,_.T);_.R=w6.prototype;
_.R.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"}}}};
_.R.computeThumbnailStyle=function(p){return p||""};
_.R.computePlaceAnnotationUnderTitle=function(){var p;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((p=this.data)==null?void 0:p.thumbnailStyle)||"")};
_.R.computeHrefWithDefault=function(p){return this.ytComponentBehavior.computeHref_(p)||_.KC3(n78)};
_.R.computeIsPromoShelf=function(p){var J;return(p=p==null?void 0:(J=p[0])==null?void 0:J.metadataBadgeRenderer)?p.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.R.computePlaceBadgeBesideTitle=function(p){var J;return(p==null?0:(J=p[0])==null?0:J.metadataBadgeRenderer)?!this.computeIsPromoShelf(p):!1};
_.R.computeMenuIcon=function(p){return this.computeIsPromoShelf(p)?"yt-icons:more_vert":"yt-icons:more"};
_.R.onDataChange=function(){var p,J;((p=this.data)==null?0:(J=p.content)==null?0:J.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.R.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 J=this.data.content.gridRenderer.items,S=new Set,H=_.K(p.detail.videoIds),M=H.next();!M.done;M=H.next())S.add(M.value);p.detail.returnValue=J.filter(function(X){return X.gridVideoRenderer&&X.gridVideoRenderer.videoId&&S.has(X.gridVideoRenderer.videoId)}).map(function(X){return X.gridVideoRenderer})}};
_.R.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
w6.prototype.onLockupRequested=w6.prototype.onLockupRequested;w6.prototype.onDataChange=w6.prototype.onDataChange;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],w6.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],w6.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.wL),_.Y("design:type",Object)],w6.prototype,"ironResizableBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],w6.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],w6.prototype,"isSearch",void 0);_.V([_.N(),_.Y("design:type",Object)],w6.prototype,"isConstrainedList",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("kevlar_fluid_dismiss")}}),
_.Y("design:type",Boolean)],w6.prototype,"enableFluidDismiss",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.Y("design:type",String)],w6.prototype,"thumbnailStyle",void 0);_.V([_.N({computed:"computeMenuIcon(data.badges)"}),_.Y("design:type",String)],w6.prototype,"menuIcon",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.Y("design:type",Boolean)],w6.prototype,"featuredPromo",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],w6.prototype,"onDataChange",null);_.V([_.GI("yt-lockup-requested"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],w6.prototype,"onLockupRequested",null);_.V([_.gw({is:"ytd-shelf-renderer",disableElementRegistration:!0})],w6);
_.l(w6,"ytd-shelf-renderer",function(){if(KJ8!==void 0)return KJ8;var p=document.createElement("template");_.C(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          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\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          </div>\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(_.r().content.cloneNode(!0),
p.content.firstChild);return KJ8=p},{mode:1});var GEU;var xP=function(){return _.T.apply(this,arguments)||this};
_.Q(xP,_.T);xP.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.vh.Object.defineProperties(xP.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}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xP.prototype,"data",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],xP.prototype,"isPlaylist",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],xP.prototype,"isClipList",void 0);
_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],xP.prototype,"isPlaylistPageWithFilters",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xP.prototype,"hasTitle",null);_.V([_.N(),_.U("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xP.prototype,"isRightAligned",null);
_.V([_.gw({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],xP);
_.l(xP,"ytd-sort-filter-header-renderer",function(){if(GEU!==void 0)return GEU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return GEU=p},{mode:1});var bw8;var cI=function(){var p=_.T.apply(this,arguments)||this;p.enableRightArrowHidden=_.z("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return p};
_.Q(cI,_.T);cI.prototype.attached=function(){var p=this;this.enableRightArrowHidden&&(this.JSC$16700_throttledOnResize=new _.nb(function(){var J;(J=p.ytdHorizontalListBehavior)==null||J.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var J;
(J=p.JSC$16700_throttledOnResize)==null||J.fire()}),this.resizeObserver.observe(this.hostElement))};
cI.prototype.detached=function(){if(this.enableRightArrowHidden){var p;(p=this.resizeObserver)==null||p.disconnect();var J;(J=this.JSC$16700_throttledOnResize)==null||J.dispose()}};
cI.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]]"}}}}}};
cI.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.vh.Object.defineProperties(cI.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.z("enable_creator_details_shelf_m2")){var p=[],J;((J=this.data)==null?0:J.creatorVideosButton)&&p.push(this.data.creatorVideosButton);var S;((S=this.data)==null?0:S.creatorAboutButton)&&p.push(this.data.creatorAboutButton);J=_.K(this.data.creatorCustomUrlButtons||[]);for(S=J.next();!S.done;S=J.next())p.push(S.value);return p}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.z("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.BH.YtdHorizontalListBehavior),_.Y("design:type",Object)],cI.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],cI.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],cI.prototype,"engagementPanel",void 0);
_.V([_.N(),_.Y("design:type",Object)],cI.prototype,"enableRightArrowHidden",void 0);_.V([_.U("enableRightArrowHidden","atEnd"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],cI.prototype,"hideRightArrow",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cI.prototype,"creatorCustomUrlButtons",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data","creatorCustomUrlButtons"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],cI.prototype,"showCreatorCustomUrlButtons",null);_.V([_.U("showCreatorCustomUrlButtons"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],cI.prototype,"channelAvatarSize",null);_.V([_.gw({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],cI);
_.l(cI,"ytd-video-description-infocards-section-renderer",function(){if(bw8!==void 0)return bw8;var p=document.createElement("template");_.C(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_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return bw8=p},{mode:_.Jz("kevlar_poly_si_batch_j067")?1:2});var mS4;var Ia=function(){return _.T.apply(this,arguments)||this};
_.Q(Ia,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ia.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ia.prototype,"data",void 0);_.V([_.N({computed:"computeIcon_(data.infoIcon)"}),_.Y("design:type",Object)],Ia.prototype,"infoIcon",void 0);_.V([_.gw({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Ia);
_.l(Ia,"ytd-eom-settings-disclaimer-renderer",function(){if(mS4!==void 0)return mS4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return mS4=p},{mode:1});var FJp;var LS=function(){return _.T.apply(this,arguments)||this};
_.Q(LS,_.T);_.vh.Object.defineProperties(LS.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.suppressPaddingDisclaimer)}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],LS.prototype,"componentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],LS.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],LS.prototype,"suppressPaddingDisclaimer",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],LS);
_.l(LS,"ytd-product-list-header-renderer",function(){if(FJp!==void 0)return FJp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return FJp=p},{mode:1});var v7L;var pW=function(){return _.T.apply(this,arguments)||this};
_.Q(pW,_.T);pW.prototype.computeThumbnailStyle=function(p){if(p&&(p=_.yi(p)))return"background-color:"+p+";"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],pW.prototype,"rendererBehaviors",void 0);_.V([_.N(),_.Y("design:type",Object)],pW.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],pW);
_.l(pW,"ytd-hashtag-tile-renderer",function(){if(v7L!==void 0)return v7L;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return v7L=p},{mode:1});var fHo;var J$=function(){return _.T.apply(this,arguments)||this};
_.Q(J$,_.T);J$.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}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],J$.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],J$);
_.l(J$,"ytd-sponsorships-alert-renderer",function(){if(fHo!==void 0)return fHo;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return fHo=p},{mode:1});var Owm;var Sy=function(){return _.T.apply(this,arguments)||this};
_.Q(Sy,_.T);Sy.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.vh.Object.defineProperties(Sy.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.V([_.B(_.ZU),_.Y("design:type",Object)],Sy.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],Sy.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.V([_.N({selector:_.gn}),_.Y("design:type",Object)],Sy.prototype,"isGridViewEnabled",void 0);
_.V([_.U("isGridViewEnabled"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Sy.prototype,"watchFeedBigThumbs",null);_.V([_.U("isGridViewEnabled"),_.N({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],Sy.prototype,"thumbnailWidth",null);_.V([_.N(),_.Y("design:type",Object)],Sy.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Sy);
_.l(Sy,"ytd-compact-movie-renderer",function(){if(Owm!==void 0)return Owm;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Owm=p},{mode:1});var Ahv;var Pt8;var zf8=_.jn("HTML_DIR")==="rtl",H8=function(){var p=_.T.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$16717_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};
_.Q(H8,_.T);_.R=H8.prototype;_.R.onClick=function(p){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.jK(_.Er(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var J;if((J=window.getSelection())==null||!J.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.R.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.R.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.R.updateTextOnSnippetTypeChange=function(){_.z("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.R.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.R.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.xQ(new _.TG("AttributedSnippet is empty when the description is not empty",this.text))};
_.R.mutationCallback=function(){if(this.observer!=null){var p=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var J=Math.floor(p*this.maxLines/8);this.setSnippetText(this.text,J);J!==0||this.attributedTextIsEmpty()||_.xQ(new _.TG("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 S;this.right=Math.min(p*2,(S=(J=this.simpleText)==null?void 0:J.length)!=null?S: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)}}};
_.R.mutationObserve=function(p){var J=this;this.observer||(this.observer=new MutationObserver(function(){J.mutationCallback()}));
this.observer.observe(p,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.R.attached=function(){var p=this;_.mN(this,function(){p.resize()})};
_.R.isExpandedChanged=function(){_.cf(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.R.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)};
_.R.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 "+((zf8?"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(zf8?"right":"left",this.expandButtonOffset+"px")};
_.R.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.R.setSnippetText=function(p,J){p||(p={});if(_.lC(p)){var S=de(p,J);S.attachmentRuns||S.commandRuns||S.decorationRuns||S.styleRuns||S.alignment||S.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:de(p,J),headerRuns:sUi(J,this.headerRuns)},this.currentSnippetType=0):_.xQ(new _.TG("Tried to set snippet text when HTML element was null",p)):(this.plainSnippetText.textContent=Nn(p.content||"",J),this.currentSnippetType=2)}else{a:{S=A5w(p,J);if(S.runs){S=_.K(S.runs);for(var H=
S.next();!H.done;H=S.next())if(H=H.value,H.bold||H.deemphasize||H.italics||H.strikethrough||H.textColor||H.navigationEndpoint||_.e(H,yM)){S=!0;break a}}S=!1}S?this.formattedSnippetText?(this.formattedSnippetText.text=A5w(p,J),this.currentSnippetType=1):_.xQ(new _.TG("Tried to set snippet text when HTML element was null",p)):(this.plainSnippetText.textContent=Nn(_.E4(p),J),this.currentSnippetType=2)}};
_.R.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.R.attributedTextIsEmpty=function(){var p=this.text;if(!_.lC(p))return!0;var J;return((J=p.content)==null?void 0:J.length)===0?!0:!1};
_.R.resize=function(p){if(this.snippetText){if(p===void 0?0:p)this.JSC$16717_lastWidth=NaN;var J=this.hostElement.offsetWidth;if(J!==this.JSC$16717_lastWidth&&!this.isExpanded)if(this.JSC$16717_lastWidth=J,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 S,H;J=Math.min(J*this.maxLines/8*2,(H=(S=this.simpleText)==null?void 0:S.length)!=null?H:0)-1;for(S=0;p<=J;)H=Math.floor(p+(J-p)/2),this.setSnippetText(this.text,H),this.isOverflowing()?J=H-1:(p=H+1,S=H);this.setSnippetText(this.text,S);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.R.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.R.onExpandClick=function(){var p=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.z("inline_expander_reset_focus_killswitch")||_.mN(this,function(){var J;((J=_.vO().resolve(_.F9(_.CD)))==null?0:J.isKeyBoardInUse())&&_.nH(p.hostElement)});
_.cf(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.R.onCollapseClick=function(){this.collapse();_.cf(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.R.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.R.computeExpandButtonOffset=function(){var p=this.expandSizer;return p?zf8?p.offsetParent?p.offsetParent.offsetWidth-p.offsetWidth-p.offsetLeft:0:p.offsetLeft:0};
_.vh.Object.defineProperties(H8.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.lC(this.text)?this.text.content||"":_.E4(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 _.lC(this.text)?!0:this.text&&_.z("web_replace_formatted_with_attributed_string")&&SF3(this.text)?(this.text=_.CI(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}}});
H8.prototype.onTextChanged=H8.prototype.onTextChanged;H8.prototype.updateMaskAndExpandButtonOffset=H8.prototype.updateMaskAndExpandButtonOffset;H8.prototype.updateSnippetContainerMaxHeight=H8.prototype.updateSnippetContainerMaxHeight;H8.prototype.isExpandedChanged=H8.prototype.isExpandedChanged;H8.prototype.updateTextOnSnippetTypeChange=H8.prototype.updateTextOnSnippetTypeChange;H8.prototype.updateIsFormattedExpanded=H8.prototype.updateIsFormattedExpanded;H8.prototype.updateIsAttributedExpanded=H8.prototype.updateIsAttributedExpanded;
H8.prototype.onClick=H8.prototype.onClick;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],H8.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],H8.prototype,"text",void 0);_.V([_.N(),_.Y("design:type",Array)],H8.prototype,"headerRuns",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],H8.prototype,"engagementPanel",void 0);_.V([_.N(),_.Y("design:type",Object)],H8.prototype,"maxLines",void 0);
_.V([_.N(),_.Y("design:type",String)],H8.prototype,"expandLabel",void 0);_.V([_.N(),_.Y("design:type",String)],H8.prototype,"collapseLabel",void 0);_.V([_.N(),_.Y("design:type",Object)],H8.prototype,"expandCommand",void 0);_.V([_.N(),_.Y("design:type",Object)],H8.prototype,"expandButtonOffset",void 0);_.V([_.U("text"),_.Y("design:type",String),_.Y("design:paramtypes",[])],H8.prototype,"simpleText",null);
_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],H8.prototype,"onClick",null);_.V([_.U("text","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H8.prototype,"expandedText",null);_.V([_.U("headerRuns","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H8.prototype,"expandedHeaderRuns",null);
_.V([_.U("text"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],H8.prototype,"hasAttributedStringText",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],H8.prototype,"showExpandButton",void 0);_.V([_.U("collapseLabel","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H8.prototype,"showCollapseButton",null);_.V([_.N(),_.Y("design:type",Object)],H8.prototype,"isTruncated",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],H8.prototype,"isExpanded",void 0);_.V([_.N(),_.Y("design:type",Boolean)],H8.prototype,"isAttributedExpanded",void 0);_.V([_.bO("isExpanded","hasAttributedStringText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H8.prototype,"updateIsAttributedExpanded",null);_.V([_.N(),_.Y("design:type",Boolean)],H8.prototype,"isFormattedExpanded",void 0);
_.V([_.bO("isExpanded","hasAttributedStringText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H8.prototype,"updateIsFormattedExpanded",null);_.V([_.N(),_.Y("design:type",Number)],H8.prototype,"currentSnippetType",void 0);_.V([_.U("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H8.prototype,"useAttributedSnippet",null);
_.V([_.U("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H8.prototype,"useFormattedSnippet",null);_.V([_.U("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H8.prototype,"usePlainSnippet",null);_.V([_.N(),_.Y("design:type",Object)],H8.prototype,"alwaysShowExpandButton",void 0);_.V([_.bO("currentSnippetType"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H8.prototype,"updateTextOnSnippetTypeChange",null);
_.V([_.N(),_.Y("design:type",Object)],H8.prototype,"attributedSnippetText",void 0);_.V([_.FM("#snippet"),_.Y("design:type",HTMLElement)],H8.prototype,"snippetContainer",void 0);_.V([_.FM("#snippet-text"),_.Y("design:type",HTMLElement)],H8.prototype,"snippetText",void 0);_.V([_.FM("#plain-snippet-text"),_.Y("design:type",HTMLElement)],H8.prototype,"plainSnippetText",void 0);_.V([_.FM("#formatted-snippet-text"),_.Y("design:type",Object)],H8.prototype,"formattedSnippetText",void 0);
_.V([_.FM("#attributed-snippet-text"),_.Y("design:type",Object)],H8.prototype,"attributedSnippetTextEl",void 0);_.V([_.FM("#expand"),_.Y("design:type",HTMLElement)],H8.prototype,"expandButton",void 0);_.V([_.FM("#expand-sizer"),_.Y("design:type",HTMLElement)],H8.prototype,"expandSizer",void 0);_.V([_.An("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H8.prototype,"isExpandedChanged",null);
_.V([_.bO("isExpanded","maxLines"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H8.prototype,"updateSnippetContainerMaxHeight",null);_.V([_.bO("isTruncated","showExpandButton","expandButtonOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H8.prototype,"updateMaskAndExpandButtonOffset",null);
_.V([_.An("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H8.prototype,"onTextChanged",null);_.V([_.gw({is:"ytd-text-inline-expander",disableElementRegistration:!0})],H8);
_.l(H8,"ytd-text-inline-expander",function(){if(Pt8===void 0){var p=document.createElement("template");_.C(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<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);Pt8=p}p=Pt8;return p},{mode:2});var Mp=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return p};
_.Q(Mp,_.T);Mp.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Mp.prototype.handleUpdateDescriptionAction=function(p){if(p=_.e(p,_.Vkp))if(p.attributedDescription)this.set("data.attributedDescriptionBodyText",p.attributedDescription);else if(p.description){var J;((J=this.data)==null?0:J.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.CI(p.description)):this.set("data.descriptionBodyText",p.description)}};
_.vh.Object.defineProperties(Mp.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var p,J;return!((p=this.data)==null||!p.attributedDescriptionBodyText)||!((J=this.data)==null||!J.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.collapsedLineCount){var J;return(J=this.data)==null?void 0:J.collapsedLineCount}p=_.PO("web_watch_description_collapsed_default_lines",12);if(_.z("ww_desc_line_page_size_ks"))return p;J=Math.round(_.FV().height*_.PO("web_watch_description_screen_height_percentage",.5)/20);return Math.max(J,p)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return(S=(p=this.data)==null?void 0:p.descriptionBodyText)!=null?S:(J=this.data)==null?void 0:J.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}}});
Mp.prototype.panelContentVisibleChanged=Mp.prototype.panelContentVisibleChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Mp.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Mp.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Mp.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],Mp.prototype,"panelContentVisible",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Mp.prototype,"engagementPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Mp.prototype,"shortsPanel",void 0);_.V([_.FM("#inline-expander"),_.Y("design:type",Object)],Mp.prototype,"inlineExpander",void 0);
_.V([_.bO("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mp.prototype,"panelContentVisibleChanged",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Mp.prototype,"hasDescriptionText",null);_.V([_.U("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Mp.prototype,"collapsedLines",null);
_.V([_.U("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Mp.prototype,"descriptionText",null);_.V([_.U("data","data.headerRuns"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Mp.prototype,"headerRuns",null);_.V([_.U("data","data.sourceAttributions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Mp.prototype,"sourceAttributions",null);
_.V([_.gw({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Mp);
_.l(Mp,"ytd-expandable-video-description-body-renderer",function(){if(Ahv!==void 0)return Ahv;var p=document.createElement("template");_.C(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]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return Ahv=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var $S8;var o7n=_.d(function(p){var J=p.data;return _.m("factoid-renderer",{class:"ytwFactoidRendererHost"},_.m("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return J().accessibilityText}},_.m("span",{class:"ytwFactoidRendererValue"},_.m(_.v3,{text:function(){return J().value}})),_.m("span",{class:"ytwFactoidRendererLabel"},_.m(_.v3,{text:function(){return J().label}}))))},"kd");_.ci(o7n,"factoid-renderer",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;return _.m("upload-time-factoid-renderer",null,_.m(_.AH,{data:function(){return J().factoid}},{factoidRenderer:o7n}))},"ld"),"upload-time-factoid-renderer",{props:{data:_.jr}});_.ci(_.d(function(p){var J=p.data;return _.m("view-count-factoid-renderer",null,_.m(_.AH,{data:function(){return J().factoid}},{factoidRenderer:o7n}))},"md"),"view-count-factoid-renderer",{props:{data:_.jr}});var X1=function(){var p=_.T.apply(this,arguments)||this;p.shortsPanel=!1;p.engagementPanel=!1;p.watchWhileSdp=_.z("shorts_desktop_watch_while_sdp");return p};
_.Q(X1,_.T);X1.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"}}}}};
_.vh.Object.defineProperties(X1.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}}});
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],X1.prototype,"componentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],X1.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],X1.prototype,"shortsPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],X1.prototype,"engagementPanel",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],X1.prototype,"watchWhileSdp",void 0);_.V([_.U("shortsPanel","engagementPanel","data.channel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],X1.prototype,"showChannelInfo",null);_.V([_.gw({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],X1);
_.l(X1,"ytd-video-description-header-renderer",function(){if($S8!==void 0)return $S8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return $S8=p},{mode:1});var ef8;var id=function(){return _.T.apply(this,arguments)||this};
_.Q(id,_.T);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],id.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],id.prototype,"noPadding",void 0);_.V([_.N(),_.Y("design:type",Object)],id.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],id);
_.l(id,"ytd-list-item-view-model",function(){if(ef8!==void 0)return ef8;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return ef8=p},{mode:1});var WJ8;var QTn;var Ctv;var yh8;var RX=function(){var p=_.T.apply(this,arguments)||this;p.adaptiveFullWidth=!1;p.modernButtons=_.z("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};
_.Q(RX,_.T);RX.prototype.handleSetTimestamp_=function(p){this.data&&this.data.shortUrl&&(_.Jn(this.hostElement).querySelector("#share-url").value=p.isSet?_.cj(this.data.shortUrl,"t",p.timestamp):this.data.shortUrl)};
RX.prototype.handleSignalActionCopyShareUrl_=function(p,J){(_.z("killswitch_copy_link_target_check")||_.Jn(this.hostElement).querySelector("#copy-button")===J)&&this.copyUrlToClipboard()};
RX.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Jn(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
RX.prototype.computeStyle_=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],RX.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],RX.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.Y("design:type",String)],RX.prototype,"rendererStyle",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],RX.prototype,"adaptiveFullWidth",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],RX.prototype,"modernButtons",void 0);_.V([_.N(),_.Y("design:type",Object)],RX.prototype,"buttonOverrides",void 0);_.V([_.sD({is:"yt-copy-link-renderer",disableElementRegistration:!0})],RX);
_.l(RX,"yt-copy-link-renderer",function(){if(yh8===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Ctv===void 0&&(Ctv=document.createElement("template"));var H=Ctv;S.call(J,H.content.cloneNode(!0),p.content.firstChild);yh8=p}p=yh8;return p},{mode:2});_.QI("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var KW=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return p};
_.Q(KW,_.T);_.R=KW.prototype;_.R.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.R.attached=function(){this.keyboardFocused=!1};
_.R.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var p=_.vO().resolve(_.F9(_.CD));p&&(this.keyboardFocused=p.isKeyBoardInUse())}};
_.R.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.R.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}};
_.R.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)}};
_.R.handleUpdateToggleAction_=function(p){(p=_.e(p,ioM))&&this.data&&p.targetId==this.data.targetId&&this.set("data.toggled",p.toggled)};
_.R.toBoolean_=function(p){return!!p};
_.R.reset=function(){};
_.R.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("data-changed",this.data))};
_.R.updateDataToggledFromBinding=function(p){this.set("data.toggled",p.detail.value)};
KW.prototype.dataChangedForBinding=KW.prototype.dataChangedForBinding;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],KW.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],KW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],KW.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],KW.prototype,"data",void 0);_.V([_.N({computed:"computeDescription_(data.*)"}),_.Y("design:type",Object)],KW.prototype,"description_",void 0);_.V([_.N({value:function(){return!!_.vO().resolve(_.F9(_.CD))&&_.z("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Y("design:type",Boolean)],KW.prototype,"useKeyboardFocused",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],KW.prototype,"keyboardFocused",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KW.prototype,"dataChangedForBinding",null);_.V([_.sD({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],KW);
_.l(KW,"yt-toggle-form-field-renderer",function(){if(QTn===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;WJ8===void 0&&(WJ8=document.createElement("template"));var H=WJ8;S.call(J,H.content.cloneNode(!0),p.content.firstChild);QTn=p}p=QTn;return p},{mode:2});var BEo;var USn;var Z8=function(){var p=_.T.apply(this,arguments)||this;p.isDarkTheme=!1;p.isSearch=!1;p.noTopMargin=_.z("kevlar_watch_no_top_margin");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};
_.Q(Z8,_.T);_.R=Z8.prototype;_.R.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}}}}}};
_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.R.dataChanged=function(){var p=this.getSelectedIndex();if(p>0)this.selected=p;else{this.selected=0;var J,S;(J=this.ytScrollableChipCloudBehavior)==null||(S=J.reset)==null||S.call(J)}};
_.R.getSelectedIndex=function(){var p;if((p=this.data)==null||!p.chips)return-1;p=-1;for(var J,S=0;S<((J=this.data)==null?void 0:J.chips.length);S++){var H=void 0,M=void 0;if((H=this.data)==null?0:(M=H.chips[S].chipCloudChipRenderer)==null?0:M.isSelected){p=S;break}}return p};
_.R.onResize=function(){var p=this.ytScrollableChipCloudBehavior;_.mN(p,p.setContainerWidthDiff);p=this.ytScrollableChipCloudBehavior;_.mN(p,p.setButtonsState)};
_.R.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.R.handleRelatedChipCommand=function(p,J){p=this.JSC$16744_chipsSelector.indexOf(J);p!==-1&&this.JSC$16744_chipsSelector.selectIndex(p)};
_.R.handleChipCloudChipSelectAction=function(p){p=this.JSC$16744_chipsSelector.indexOf(p);p>-1&&this.JSC$16744_chipsSelector.selectIndex(p)};
_.R.handleChipCloudChipDeselectAction=function(){var p=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16744_chipsSelector&&((p==null?0:p.continuationCommand)?_.pl(this.hostElement,[p]):(p==null?0:p.searchEndpoint)?this.ytComponentBehavior.resolveCommand(p):p&&_.JP(this.hostElement,[p],this.hostElement),this.JSC$16744_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.R.updateSelectedFromBinding=function(p){this.selected=p.detail.value};
Z8.prototype.onResize=Z8.prototype.onResize;Z8.prototype.dataChanged=Z8.prototype.dataChanged;Z8.prototype.isSearchChanged=Z8.prototype.isSearchChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Z8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Z8.prototype,"actionHandlerBehavior",void 0);
_.V([_.B(_.wL),_.Y("design:type",Object)],Z8.prototype,"ironResizableBehavior",void 0);_.V([_.B(),_.Y("design:type",VQ)],Z8.prototype,"ytScrollableChipCloudBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Z8.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Z8.prototype,"data",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],Z8.prototype,"selected",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Z8.prototype,"isDarkTheme",void 0);_.V([_.N({value:160}),_.Y("design:type",Number)],Z8.prototype,"scrollDistance",void 0);_.V([_.N(),_.Y("design:type",Object)],Z8.prototype,"isSearch",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Z8.prototype,"noTopMargin",void 0);_.V([_.FM("#chips"),_.Y("design:type",Object)],Z8.prototype,"JSC$16744_chipsSelector",void 0);
_.V([_.bO("isSearch"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Z8.prototype,"isSearchChanged",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Z8.prototype,"dataChanged",null);_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Z8.prototype,"onResize",null);_.V([_.sD({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Z8);
_.l(Z8,"yt-chip-cloud-renderer",function(){if(USn===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;BEo===void 0&&(BEo=document.createElement("template"));var H=BEo;S.call(J,H.content.cloneNode(!0),p.content.firstChild);USn=p}p=USn;return p},{mode:2});var sTo,g78=function(){return sTo!==void 0?sTo:sTo=document.createElement("template")};
document.head.appendChild(g78().content);var tlq;var hf8=document.head,DS4=hf8.appendChild,kE8;if(tlq===void 0){var NEm=document.createElement("template");_.C(NEm,"");NEm.content.insertBefore(g78().content.cloneNode(!0),NEm.content.firstChild);tlq=NEm}kE8=tlq;DS4.call(hf8,kE8.content);var TEU=_.d(function(p){var J=p.data;return _.m("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.m("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.m("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.m(_.v,{cond:function(){return _.dT(J().image)},
then:function(S){return _.m("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.m(_.a4,{data:S,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.m("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.m(_.v3,{text:function(){return J().title}})),_.m("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.m(_.v3,{text:function(){return J().subtitle}})))),_.m(_.v,{cond:function(){var S;
return(S=J())==null?void 0:S.hasBottomDivider},
then:function(){return _.m("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"nd");var dSd=_.d(function(p){var J=p.data;return _.m("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.m("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.m(_.AH,{data:function(){var S;return(S=J().offerPlanDetailsItem)!=null?S:[]}},{offerPlanDetailsItemViewModel:function(S){return _.m("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.m(TEU,{data:S.data}))}})),_.m("div",null,_.m(_.v,{cond:function(){return J().hasBottomDivider},
then:function(){return _.m("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.m("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.m("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.m("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.m("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"od");var uuo=_.d(function(p){var J=p.data;p=_.K(_.eQ(!1,void 0,"MrXxy"));var S=p.next().value,H=p.next().value,M=_.Kb(function(){H(!S());return!1}),X=function(){var Z;
return(Z=J().offerPlanDetailsContainer)!=null?Z:[]};
return _.m("lp-complex-offer-card-details-view-model",null,_.m("div",null,_.m(_.v,{cond:function(){return S()},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.m("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":M,"aria-expanded":S},_.m(_.v3,{text:function(){return J().expandedTitle}})),_.m("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.m(_.AH,{data:X},{offerPlanDetailsContainerViewModel:function(Z){return _.m("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.m(dSd,{data:Z.data}))}})),_.m("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.m(_.v3,{text:function(){return J().legalText}})))},
else:function(){return _.m("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":M,"aria-expanded":S},_.m(_.v3,{text:function(){return J().collapsedTitle}}),_.m("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.m(_.bn,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"pd");var lHn=_.d(function(p){var J=p.data;return _.m("lp-complex-offer-card-option-view-model",null,_.m("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.m(_.v,{cond:function(){return J().topDividerText},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.m("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.m("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.m("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.m(_.v3,{text:function(){return J().topDividerText}}))))}}),_.m(_.v,{cond:function(){return J().description},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.m(_.v3,{text:function(){return J().description}}))}}),_.m(_.v,{cond:function(){return J().planPricingPrimary},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.m(_.v3,{text:function(){return J().planPricingPrimary}}))}}),_.m(_.v,{cond:function(){return J().planPricingSecondary},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.m(_.v3,{text:function(){return J().planPricingSecondary}}))}}),_.m(_.v,{cond:function(){return J().primaryButton},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.m(_.AH,{data:function(){return J().primaryButton}},{buttonViewModel:function(S){return _.m(_.D0,{data:S.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"qd");var VlL=_.d(function(p){var J=p.data;var S=function(){var X;return((X=J())==null?void 0:X.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
p={};var H={},M={};return _.m("ytm-lp-complex-offer-card-view-model",null,_.m("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.m("div",{class:_.XB((p.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=S,p),"ytmLpComplexOfferCardViewModelCardContainer")},_.m(_.v,{cond:function(){var X;return(X=J())==null?void 0:X.bannerText},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.m("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.m(_.v3,{text:function(){return J().bannerText}})))}}),_.m(_.v,{cond:function(){return _.dT(J().logo)},
then:function(X){var Z={};return _.m("div",{class:_.XB((Z.ytmLpComplexOfferCardViewModelLogoAlignLeft=S,Z),"ytmLpComplexOfferCardViewModelLogo")},_.m(_.a4,{data:X,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.m("div",{class:_.XB((H.ytmLpComplexOfferCardViewModelTitleAlignLeft=S,H),"ytmLpComplexOfferCardViewModelTitle")},_.m(_.v3,{text:function(){return J().title}})),_.m(_.v,{cond:function(){var X;
return(X=J())==null?void 0:X.subtitle},
then:function(){var X={};return _.m("div",{class:_.XB((X.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=S,X),"ytmLpComplexOfferCardViewModelSubtitle")},_.m(_.v3,{text:function(){return J().subtitle}}))}}),_.m(_.v,{cond:function(){return J().planPricingPrimary},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.m(_.v3,{text:function(){return J().planPricingPrimary}}))}}),_.m(_.v,{cond:function(){return J().planPricingSecondary},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.m(_.v3,{text:function(){return J().planPricingSecondary}}))}}),_.m(_.v,{cond:function(){return J().purchaseButton},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.m(_.AH,{data:function(){return J().purchaseButton}},{buttonViewModel:function(X){return _.m(_.D0,{data:X.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.m(_.v,{cond:function(){var X;
return(X=J())==null?void 0:X.offerOptions},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.m(_.AH,{data:function(){return J().offerOptions}},{lpComplexOfferCardOptionViewModel:lHn}))}}),_.m("div",{class:_.XB((M.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=S,M),"ytmLpComplexOfferCardViewModelLegalText")},_.m(_.v3,{text:function(){return J().legalText}})),_.m(_.v,{cond:function(){var X;
return(X=J())==null?void 0:X.offerCardDetails},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.m(_.AH,{data:function(){return J().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:uuo}))}}))))},"rd");var q1L=_.d(function(p){var J=p.data;var S=function(){var Z;return((Z=J())==null?void 0:Z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
p={};var H={},M={},X={};return _.m("ytm-lp-complex-offer-card-section-view-model",null,_.m("div",{class:_.XB("ytmLpComplexOfferCardSectionViewModelHost")},_.m("div",{class:_.XB((p.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=S,p),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.m("div",{class:_.XB((H.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=S,H),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.m("h2",{class:_.XB((M.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
S,M),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.m(_.v3,{text:function(){return J().title}}))),_.m(_.v,{cond:function(){var Z;
return(Z=J())==null?void 0:Z.subtitle},
then:function(){var Z={},n={};return _.m("div",{class:_.XB((Z.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=S,Z),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.m("div",{class:_.XB((n.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=S,n),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.m(_.v3,{text:function(){return J().subtitle}})))}}),_.m("div",{class:_.XB((X.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=S,X),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.m(_.AH,{data:function(){var Z;
return(Z=J().offerPlans)!=null?Z:[]}},{lpComplexOfferCardViewModel:function(Z){return _.m("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.m(VlL,{data:Z.data}))}})))))},"sd");var aHL=_.d(function(p){return _.m("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.m("div",{class:"ytLpCouponBannerViewModelIcon"},_.m(_.bn,{icon:function(){return"price_tag"}})),_.m("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.m("div",{class:"ytLpCouponBannerViewModelContent"},_.m("div",{class:"ytLpCouponBannerViewModelHeading"},_.m(_.v3,{text:function(){var J;
return(J=p.data())==null?void 0:J.title}})),_.m("div",{class:"ytLpCouponBannerViewModelBody"},_.m(_.v3,{text:function(){var J;
return(J=p.data())==null?void 0:J.subtitle}})))))},"td");
aHL.idomCompat=!0;_.nW=UXE.getInstance();var E78;E78=_.d(function(p){return _.m("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":p.shouldAriaHideContent},_.m("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:p.questionId},_.m(_.v3,{text:p.question})))},"ud");
_.Y1L=_.d(function(p){var J=p.data;var S=p.themeOverride;p=_.K(_.eQ(!1,void 0,"pNli2b"));var H=p.next().value,M=p.next().value;p=_.Kb(function(){M(!H());return!1});
var X=function(){return H()?"EXPAND_LESS":"EXPAND_MORE"},Z=("faq-container"+_.q7(_.nW)).toString(),n="faq-question-and-answers-section-question"+_.q7(_.nW),b={},F={};
return _.m("faq-entry-view-model",null,_.m("div",{class:_.XB("ytLpFaqEntryViewModelHost",(b.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return S==null?void 0:S().useDarkTheme},b))},_.m("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":p,role:"button","aria-expanded":H,"aria-labelledby":n.toString(),"tab-index":"0"},_.m(E78,{question:function(){return J().question},
questionId:n,shouldAriaHideContent:!0}),_.m(_.v,{cond:function(){return H()!==void 0},
then:function(){return _.m("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.m(_.bn,{icon:X,ariaHidden:!0}),_.m("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.m("div",{class:_.XB("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(F.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!H()},F))},_.m("div",{id:Z},_.m(_.dY,{each:function(){return J().answers||[]}},function(f){return _.m("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.m(_.v3,
{text:f}))})))))},"vd");
_.Y1L.idomCompat=!0;var rhM=_.d(function(p){var J=p.data;var S=p.themeOverride;p={};return _.m("lp-faq-section-view-model",null,_.m("div",{class:_.XB("yt-lp-faq-section-view-model",(p["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return J().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},p["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(S==null||!S().useDarkTheme)},p))},_.m("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.m(_.v,{cond:function(){return J().header},
then:function(H){return _.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.m(_.v3,{text:H}))}}),_.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.m(_.AH,{data:function(){return J().faqs}},{faqEntryViewModel:function(H){return _.m(_.Y1L,{data:H.data,
themeOverride:S})}})),_.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.m(_.dY,{each:function(){return J().footers||[]}},function(H){return _.m(_.v3,{text:H})})),_.m(_.v,{cond:function(){return J().legal},
then:function(H){return _.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.m(_.v3,{text:H}))}}))))},"wd");
rhM.idomCompat=!0;var jT8=_.d(function(p){var J=p.data;var S=p.themeOverride;_.ad(function(){var Z=J().gtmId;Z&&_.xw(Z,_.jn("GL",""))});
var H={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Z,n,b;return(b=(Z=J().logo)==null?void 0:(n=Z.accessibilityData)==null?void 0:n.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},M=_.vO().resolve(_.F9(_.uC)),X=function(){return M&&M()||(S==null?void 0:S().useDarkTheme)};
return _.m("lp-header-section-view-model",null,_.m("div",{class:function(){var Z=J().layoutType,n=J().marginType==="LP_SECTION_MARGIN_TYPE_TOP",b=S==null?void 0:S().useDarkTheme,F=["lp-header-section-view-model"];switch(Z){case "LP_MODULE_LAYOUT_TYPE_PTC":F.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":F.push("lp-header-section-view-model--narrow-header-layout-type")}n&&F.push("lp-header-section-view-model__lp-header-section-margin");b&&F.push("lp-header-section-view-model--premium-force-dark-mode");
return F.join(" ")}},_.m(_.v,{cond:function(){return J().logo},
then:function(){return _.m("div",null,_.m(_.v,{cond:X,then:function(){return _.m(_.v,{cond:function(){var Z;return(Z=J().logo)==null?void 0:Z.imageDark},
then:function(Z){return _.m(_.a4,Object.assign({},{data:Z},H))}})},
else:function(){return _.m(_.v,{cond:function(){var Z;return(Z=J().logo)==null?void 0:Z.imageLight},
then:function(Z){return _.m(_.a4,Object.assign({},{data:Z},H))}})}}))}}),_.m(_.v,{cond:function(){return J().title},
then:function(Z){return _.m("div",{class:"lp-header-section-view-model__lp-header-title"},_.m(_.v3,{text:Z}))}}),_.m("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.m(_.v,{cond:function(){return J().subtitles},
then:function(Z){return _.m(_.dY,{each:Z},function(n){return _.m("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.m(_.v3,{text:n}))})}})),_.m(_.v,{cond:function(){return J().additionalInfo},
then:function(Z){return _.m("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.m(_.v3,{text:Z}))}}),_.m("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.m(_.v,{cond:function(){return J().primaryButton},
then:function(Z){return _.m("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.m(_.AH,{data:Z},{buttonViewModel:_.D0}))}}),_.m(_.v,{cond:function(){return J().secondaryButton},
then:function(Z){return _.m("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.m(_.AH,{data:Z},{buttonViewModel:_.D0}))}})),_.m(_.v,{cond:function(){return J().otherOffersInfo},
then:function(Z){return _.m("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.m(_.v3,{text:Z}))}}),_.m("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.m(_.v,{cond:function(){return J().billingInfo},
then:function(Z){return _.m(_.dY,{each:Z},function(n){return _.m("div",null,_.m(_.v3,{text:n}))})}}))))},"xd");
jT8.idomCompat=!0;var wr8=_.d(function(p){return _.m("lp-header-upsell-banner-view-model",{class:_.XB("lpHeaderUpsellBannerViewModelHost",p.className,{})},_.m("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.m(_.bn,{icon:function(){return"CAMPAIGN"}})),_.m("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.m("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.m("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.m("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.m(_.v3,{text:function(){var J;
return(J=p.data())==null?void 0:J.description}})))),_.m(_.AH,{data:function(){var J;
return(J=p.data())==null?void 0:J.purchaseButton}},{buttonViewModel:function(J){return _.m(_.D0,{data:J.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"yd");var xSL=_.d(function(p){var J=p.data;var S=_.rw(p.themeOverride,{useDarkTheme:!1});p={};p=_.XB("ytmLpHeadlineSectionViewModelHost",(p.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return S().useDarkTheme},p));
return _.m("lp-headline-section-view-model",null,_.m("div",{class:p},_.m(_.v,{cond:function(){return J().title},
then:function(H){return _.m("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.m(_.v3,{text:H}))}}),_.m(_.v,{cond:function(){return J().subtitle},
then:function(H){return _.m("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.m(_.v3,{text:H}))}})))},"zd");var ch8=_.d(function(p){var J=p.data;var S=p.themeOverride;var H=_.vO().resolve(_.F9(_.uC)),M=function(){return H&&H()||(S==null?void 0:S().useDarkTheme)},X=function(){var F,f;
var O=M()?(F=J().textBackgroundImage)==null?void 0:F.imageDark:(f=J().textBackgroundImage)==null?void 0:f.imageLight;return pUX((O==null?void 0:O.sources)||[])},Z=function(){var F,f;
return M()?(F=J().featureImage)==null?void 0:F.imageDark:(f=J().featureImage)==null?void 0:f.imageLight},n=function(){return J().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},b=function(){var F,f;
return M()?(F=J().logo)==null?void 0:F.imageDark:(f=J().logo)==null?void 0:f.imageLight};
return _.m("ytm-lp-large-feature-section-view-model",null,_.m("div",{class:function(){var F=J().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",f=J().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",O=(J().index||0)%2===1,A=S==null?void 0:S().useDarkTheme,P=["yt-lp-large-feature-section-view-model"];F?P.push("yt-lp-large-feature-section-view-model--music-feature-type"):f?P.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):O||P.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
A&&P.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return P.join(" ")}},_.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.m(_.v,{cond:Z,
then:function(){return _.m(_.a4,{data:function(){return Z()},
alt:function(){var F,f,O;return(O=(F=J().featureImage)==null?void 0:(f=F.accessibilityData)==null?void 0:f.label)!=null?O:""},
contentMode:n})}})),_.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var F;return((F=X())==null?0:F.url)?"background-image: url("+_.Vd(X().url)+");":""}},_.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.m(_.v,{cond:b,
then:function(){return _.m(_.a4,{data:function(){return b()},
alt:function(){var F,f,O;return(O=(F=J().logo)==null?void 0:(f=F.accessibilityData)==null?void 0:f.label)!=null?O:""},
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"})}}),_.m(_.v,{cond:function(){return J().eyebrowText},
then:function(){return _.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.m(_.v3,{text:function(){return J().eyebrowText}}))}}),_.m(_.v,{cond:function(){return J().title},
then:function(){return _.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.m(_.v3,{text:function(){return J().title}}))}}),_.m(_.v,{cond:function(){return J().subtitles},
then:function(){return _.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.m(_.dY,{each:function(){return J().subtitles||[]}},function(F){return _.m(_.v3,{text:F})}))}})))))},"Ad");
ch8.idomCompat=!0;var IH8=_.d(function(p){return _.m("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.m("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.m(_.bn,{icon:function(){var J;return(J=p.data())==null?void 0:J.iconType},
className:function(){var J;switch((J=p.data())==null?void 0:J.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var J;return((J=p.data())==null?void 0:J.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.m("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.m(_.v3,{text:function(){var J;
return(J=p.data())==null?void 0:J.text},
className:function(){var J;return((J=p.data())==null?void 0:J.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Bd");var LJM=_.d(function(p){p=_.jh(p,{config:void 0,themeOverride:void 0});var J=p.data,S=p.config,H=p.themeOverride;p={};p=_.XB("ytmLpOfferCardOptionViewModelHost",(p.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var n;return(n=H())==null?void 0:n.useDarkTheme},p));
var M=_.Kb(function(){var n,b;(n=S())==null||(b=n.handleRadioButtonClick)==null||b.call(n,J());return!1}),X=function(){var n;
return(n=S())==null?void 0:n.shouldDisplayRadioButton},Z=function(){var n;
return(n=J().featureListItems)!=null?n:[]};
return _.m("ytm-lp-offer-card-option-view-model",null,_.m("div",{class:p,"on:click":_.Kb(function(){if(X()){var n,b;(n=S())==null||(b=n.handleRadioButtonClick)==null||b.call(n,J())}return!1})},_.m(_.v,{cond:X,
then:function(){return _.m("div",null,_.m("input",{type:"radio","on:click":M,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var n;return!((n=S())==null||!n.isOptionSelected)}}))}}),_.m("div",null,_.m("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.m(_.v3,{text:function(){return J().eyebrowText}})),_.m("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.m(_.v3,{text:function(){return J().title}})),_.m("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.m(_.v3,
{text:function(){return J().subtitle}})),_.m(_.v,{cond:function(){return Z().length>0},
then:function(){return _.m("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.m(_.AH,{data:Z},{lpFeatureListItemViewModel:IH8}))}}),_.m("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.m(_.v3,{text:function(){return J().description}})))))},"Cd");
LJM.idomCompat=!0;var pVM=_.d(function(p){var J=p.data;var S=p.themeOverride;p=_.K(_.re(function(){var X,Z=(X=J().offerOptions)==null?void 0:X[0];return _.e(Z,J08)||{}}));
var H=p.next().value,M=p.next().value;p={};return _.m("ytm-lp-offer-card-view-model",null,_.m("div",{class:_.XB("ytmLpOfferCardViewModelHost",(p.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(S==null||!S().useDarkTheme)},p))},_.m("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.m(_.v,{cond:function(){return J().titleIconType},
then:function(){return _.m("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.m(_.bn,{icon:function(){var X;return((X=J().titleIconType)==null?void 0:X.toString())||""}}))}}),_.m("div",{class:"ytmLpOfferCardViewModelTitleText"},_.m(_.v3,{text:function(){return J().title}})),_.m(_.AH,{data:function(){return J().titleBadge}},{badgeViewModel:function(X){return _.m("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.m(_.Qy,{data:X.data}))}})),_.m("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.m(_.AH,{data:function(){return J().offerOptions}},{lpOfferCardOptionViewModel:function(X){var Z=X.data;
return _.m(_.fV,null,_.m("div",{class:"ytmLpOfferCardViewModelDivider"}),_.m(LJM,{data:Z,config:function(){var n;return{shouldDisplayRadioButton:(J().offerOptions||[]).length>1,isOptionSelected:Z().id===((n=H())==null?void 0:n.id),handleRadioButtonClick:function(b){return void M(b)}}},
themeOverride:S}))}})),_.m("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.m(_.AH,{data:function(){var X;
return(X=H())==null?void 0:X.purchaseButtonOverride}},{buttonViewModel:_.D0}))))},"Dd");
pVM.idomCompat=!0;var JN8=_.d(function(p){var J=p.data;var S=p.themeOverride;p={};p=_.XB("ytmLpOfferCardSectionViewModelHost",(p.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var H;return S==null?void 0:(H=S())==null?void 0:H.useDarkTheme},p));
return _.m("ytm-lp-offer-card-section-view-model",null,_.m("div",{class:p},_.m(_.v,{cond:function(){return J().title!==void 0},
then:function(){return _.m("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.m("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.m(_.v3,{text:function(){return J().title}})),_.m(_.v,{cond:function(){return J().subtitle},
then:function(){return _.m("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.m(_.v3,{text:function(){return J().subtitle}}))}}))}}),_.m("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.m(_.AH,{data:function(){return J().offerCards}},{lpOfferCardViewModel:function(H){return _.m("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.m(pVM,{data:H.data,
themeOverride:S}))}})),_.m(_.v,{cond:function(){return J().footer},
then:function(){return _.m("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.m(_.v3,{text:function(){return J().footer}}))}})))},"Ed");var SQM=_.d(function(p){var J=p.data;return _.m("lp-offer-table-cell-content-view-model",null,_.m("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.m(_.ue,null,_.m(_.Nz,{when:function(){return J().title}},function(){return _.m(_.v3,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return J().title}})}),_.m(_.Nz,{when:function(){return J().subTitle}},function(){return _.m(_.v3,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return J().subTitle}})}),_.m(_.Nz,{when:function(){return J().featureDescription}},function(){return _.m(_.v3,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return J().featureDescription}})}),_.m(_.Nz,{when:function(){return J().description}},function(){return _.m(_.v3,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return J().description}})}),_.m(_.Nz,{when:function(){return J().iconType}},function(){return _.m("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.m(_.bn,{icon:function(){return J().iconType.toString()}}))}),_.m(_.Nz,{when:function(){return J().purchaseButton}},function(){return _.m(_.AH,{data:function(){return J().purchaseButton}},{buttonViewModel:function(S){return _.m("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.m(_.D0,
{data:S.data}))}})}),_.m(_.Nz,{when:function(){return J().note}},function(){return _.m(_.v3,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return J().note}})}),_.m(_.Nz,{when:function(){return J().featureDetail}},function(){return _.m(_.v3,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return J().featureDetail}})}),_.m(_.Nz,{when:function(){return J().badge}},function(){return _.m(_.AH,{data:function(){return J().badge}},{badgeViewModel:_.Qy})}))))},"Fd");
SQM.idomCompat=!0;var H6d=_.d(function(p){var J=p.data;return _.m("lp-offer-table-cell-view-model",null,_.m("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(J().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;"}}},_.m(_.AH,{data:function(){return J().contents}},{lpOfferTableCellContentViewModel:SQM})))},
"Gd");
H6d.idomCompat=!0;var Mu8=_.d(function(p){var J=p.data;var S=p.lpTableIsFirstRow;var H=p.lpTableIsLastRow;var M=function(){return(S==null?0:S())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},X=function(){return(S==null?0:S())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(H==null?0:H())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.m("ytm-lp-offer-table-row-view-model",null,_.m("div",{class:"ytLpOfferTableRowViewModelHost"},_.m(_.AH,{data:function(){return J().rowHeaderCell}},{lpOfferTableCellViewModel:function(Z){return _.m("div",{class:M},_.m(H6d,{data:Z.data}))}}),_.m(_.AH,{data:function(){return J().contentCells}},{lpOfferTableCellViewModel:function(Z){return _.m("div",{class:X},_.m(H6d,{data:Z.data}))}})))},"Hd");
Mu8.idomCompat=!0;var XVq=_.d(function(p){var J=p.data;var S=p.themeOverride;var H=_.vO().resolve(_.F9(_.uC)),M=function(){return _.e(J().logo,eJn)||{}};
p={};return _.m("ytm-lp-offer-table-section-view-model",null,_.m("div",{class:"ytLpOfferTableViewModelHost"},_.m(_.v,{cond:function(){var X,Z;return H&&H()||(S==null?0:S().useDarkTheme)?(X=M())==null?void 0:X.imageDark:(Z=M())==null?void 0:Z.imageLight},
then:function(X){return _.m(_.a4,{data:X,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Z,n,b;return(b=(Z=M())==null?void 0:(n=Z.accessibilityData)==null?void 0:n.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.m(_.v3,{text:function(){return J().title}})),_.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.m(_.v3,{text:function(){return J().subtitle}})),_.m(_.v,{cond:function(){return J().disclaimers},
then:function(X){return _.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.m(_.dY,{each:X},function(Z){return _.m("div",null,_.m(_.v3,{text:Z}))}))}}),_.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.m(_.AH,{data:function(){return J().rows}},{lpOfferTableRowViewModel:function(X,Z){return _.m(Mu8,{data:X.data,
lpTableIsFirstRow:function(){return Z()===0},
lpTableIsLastRow:function(){return Z()===J().rows.length-1}})}})),_.m("div",{class:_.XB((p.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return J().hasFooterBackground},p))},_.m(_.v,{cond:function(){return J().footer},
then:function(){return _.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.m(_.v3,{text:function(){return J().footer}}))}}),_.m(_.v,{cond:function(){return J().footerTitle},
then:function(){return _.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.m(_.v3,{text:function(){return J().footerTitle}}))}}),_.m(_.v,{cond:function(){return J().footerDescription},
then:function(){return _.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.m(_.v3,{text:function(){return J().footerDescription}}))}}),_.m(_.v,{cond:function(){return J().footerDescriptions},
then:function(X){return _.m("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.m(_.dY,{each:X},function(Z){return _.m("div",null,_.m(_.v3,{text:Z}))}))}}))))},"Id");
XVq.idomCompat=!0;var i6n=_.d(function(p){var J=p.data;var S=p.themeOverride;var H=_.vO().resolve(_.F9(_.uC)),M=function(){var n;return S==null?void 0:(n=S())==null?void 0:n.useDarkTheme},X=function(){var n,b;
return H&&H()||M()?(n=J().image)==null?void 0:n.imageDark:(b=J().image)==null?void 0:b.imageLight};
p={};p=_.XB("ytmLpSmallFeatureSectionViewModelHost",(p.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=M,p));var Z=function(){var n,b,F;return(F=(n=J().image)==null?void 0:(b=n.accessibilityData)==null?void 0:b.label)!=null?F:""};
return _.m("ytm-lp-small-feature-section-view-model",{class:p},_.m(_.v,{cond:function(){return X()&&!MMk},
then:function(){return _.m("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.m(_.a4,{data:function(){return X()},
alt:Z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.m("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.m("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.m(_.v,{cond:function(){return J().title},
then:function(n){return _.m(_.v3,{text:n})}})),_.m("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.m(_.v3,{text:function(){return J().description}}))))},"Jd");
i6n.idomCompat=!0;var RNo=_.d(function(p){var J=p.data;var S=p.themeOverride;p={};return _.m("ytm-lp-small-feature-section-group-view-model",null,_.m("div",{class:_.XB("ytmLpSmallFeatureSectionGroupViewModelHost",(p.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(S==null||!S().useDarkTheme)},p))},_.m("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.m(_.AH,{data:function(){return J().smallFeatures}},{lpSmallFeatureSectionViewModel:function(H){return _.m("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.m(i6n,{data:H.data,
themeOverride:S}))}}))))},"Kd");
RNo.idomCompat=!0;_.ci(_.d(function(p){var J=p.data;var S=function(){return J().forcedTheme==="USER_INTERFACE_THEME_DARK"},H=function(){return J().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},M=function(){var Z="",n,b;
var F=_.vO().resolve(_.F9(_.uC));F=S()||(F==null?0:F())?(n=J().themedImageViewModel)==null?void 0:n.imageDark:(b=J().themedImageViewModel)==null?void 0:b.imageLight;(n=pUX((F==null?void 0:F.sources)||[]))&&n.url&&(Z=H()?"background-image: linear-gradient(to bottom, transparent, "+(J().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.Vd(n.url)+");":"background-image: url("+_.Vd(n.url)+");");return Z},X=function(){return{useDarkTheme:S()}};
p={};return _.m("yt-section-group-view-model",null,_.m("div",{class:_.XB("yt-lp-section-group-view-model",(p["yt-lp-section-group-view-model--premium-force-dark-mode"]=S,p["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return J().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},p))},_.m(_.v,{cond:function(){return M().length},
then:function(){var Z={};return _.m("div",{class:_.XB("yt-lp-section-group-view-model__bg-image",(Z["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=H,Z)),style:M})}}),_.m("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.m(_.AH,{data:function(){return J().sections}},{lpHeaderUpsellBannerViewModel:function(Z){return _.m(wr8,{data:Z.data})},
lpFaqSectionViewModel:function(Z){return _.m(rhM,{data:Z.data,themeOverride:X})},
lpHeaderSectionViewModel:function(Z){return _.m(jT8,{data:Z.data,themeOverride:X})},
lpHeadlineSectionViewModel:function(Z){return _.m(xSL,{data:Z.data,themeOverride:X})},
lpLargeFeatureSectionViewModel:function(Z){return _.m(ch8,{data:Z.data,themeOverride:X})},
lpOfferCardSectionViewModel:function(Z){return _.m(JN8,{data:Z.data,themeOverride:X})},
lpComplexOfferCardSectionViewModel:function(Z){return _.m(q1L,{data:Z.data})},
lpOfferTableSectionViewModel:function(Z){return _.m(XVq,{data:Z.data,themeOverride:X})},
lpSmallFeatureSectionGroupViewModel:function(Z){return _.m(RNo,{data:Z.data,themeOverride:X})},
lpCouponBannerViewModel:function(Z){return _.m(aHL,{data:Z.data})}}))))},"Ld"),"yt-section-group-view-model",{props:{data:_.fD}});_.KaU=_.d(function(p){var J=_.v$(PMX,function(){var Z;return(Z=p.data())==null?void 0:Z.chipBarStateEntityKey}),S=function(){return p.data().disableDeselection},H=_.K(_.re(function(){var Z;
if(((Z=J())==null?void 0:Z.selectedIndex)!=void 0)return J().selectedIndex;var n,b;Z=_.K(((n=p.data())==null?void 0:(b=n.chips)==null?void 0:b.entries())||[]);for(n=Z.next();!n.done;n=Z.next()){n=_.K(n.value);b=n.next().value;n=n.next().value;var F=void 0;if((F=_.e(n,_.FY))==null?0:F.selected)return b}return-1})),M=H.next().value,X=H.next().value;
return _.m("chip-bar-view-model",{class:_.XB("ytChipBarViewModelHost",p.className),role:"tablist"},_.m(_.AH,{data:function(){return p.data().chips}},{chipViewModel:function(Z,n){return _.m("div",{class:"ytChipBarViewModelChipWrapper"},_.m(_.kcn,{data:Z.data,
selected:function(){return n()===M()},
callback:function(b,F){b=!!F;F=n();X(b?F:-1);var f,O=(f=p.data())==null?void 0:f.chipBarStateEntityKey;O&&b&&_.Y3(_.P$("chipBarStateEntity",O,{key:O,selectedIndex:F}))},
disableDeselection:p.disableDeselection||S}))}}))},"Md");_.ci(_.KaU,"chip-bar-view-model",{props:{data:_.jr,className:_.jr,disableDeselection:_.jr}});_.Z6v=_.d(function(p){var J=p.data;p={};return _.m("divider-view-model",{class:_.XB("dividerViewModelHost",(p.dividerViewModelInsetThinPadding=function(){return J().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},p))},_.m("div",{class:_.XB("dividerViewModelBaseDivider",function(){return z8s(J().dividerStyle)})}))},"Nd");
_.Z6v.idomCompat=!0;_.ci(_.Z6v,"divider-view-model",{props:{data:_.fD}});var vY=new Map,fY=new Map,e8i=0,OX;var UeX=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],tii={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var n1E,GwL;n1E=function(p){return function(J){return function(){return(J==null?void 0:J())!==void 0?String(J())+p:void 0}}};
_.GR=n1E("px");GwL=n1E("s");var b6E=Oj9(function(p){return p.targetGroupId}).useUpdatableData;_.bd=_.d(function(p){function J(Z3){return function(){var vg=t().numItemsPerGridRow,yX=Z3()*vg;vg=yX+vg;var Pg,ov;return(ov=(Pg=H().contents)==null?void 0:Pg.slice(yX,vg))!=null?ov:[]}}
var S=_.jh(p,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),H=S.data,M=S.layoutContainerWidth,X=S.shouldUseOwnContainerSize,Z=S.marginSettings,n=S.useUpdatedMargin,b=J6k(),F=_.K(b6E(function(){var Z3,vg;return{targetGroupId:(Z3=H().targetingContext)==null?void 0:(vg=Z3.targetGroupId)==null?void 0:vg[0]}})).next().value;
S=_.K(_.eQ(!0,void 0,"lKny6d"));var f=S.next().value,O=S.next().value,A=function(){var Z3,vg=(Z3=_.e(H().showMoreButton,_.mO))==null?void 0:Z3.trackingParams;vg&&_.VK(_.bC(),vg);O(!1)},P=function(){var Z3,vg=(Z3=_.e(H().showLessButton,_.mO))==null?void 0:Z3.trackingParams;
vg&&_.VK(_.bC(),vg);O(!0)};
S=_.K(_.AX({canHaveZeroSize:!1}));var W=S.next().value;S=S.next().value;var y=function(){var Z3;return(Z3=H().contentAspectRatio)!=null?Z3:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},t=_.BW(function(){var Z3=X()&&W.width()>0?W.width()||M():M(),vg,yX=(vg=p.data())==null?void 0:vg.responsiveContainerConfiguration;
Z3=_.N6({containerWidth:Z3,sizing:yX?Ty(yX==null?void 0:yX.responsiveSize):"EXTRA_COMPACT",marginSettings:Z(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:Z3.maxContainerWidth,numItemsPerGridRow:Z3.numItems,contentPadding:X()?Z3.margin:Z3.contentMargin,itemWidth:Z3.itemWidth,itemMargin:Z3.gutter/2}},void 0,"XYkF9e"),D=function(){if(H().enableVerticalExpansion){if(f())return k();
var Z3,vg,yX=(vg=(Z3=H().contents)==null?void 0:Z3.length)!=null?vg:0;return Math.ceil(yX/t().numItemsPerGridRow)}return t().numItemsPerGridRow<=2?2:1},k=function(){var Z3;
return Math.ceil(((Z3=H().minCollapsedItemCount)!=null?Z3:1)/t().numItemsPerGridRow)},E=function(){return H().enableVerticalExpansion&&H().showLessButton&&!f()&&D()>k()},a=function(){var Z3,vg;
return H().enableVerticalExpansion&&H().showMoreButton&&f()&&((vg=(Z3=H().contents)==null?void 0:Z3.length)!=null?vg:0)>t().numItemsPerGridRow*k()},q=function(){return!E()},w=function(){return!a()},I={};
return _.m("grid-shelf-view-model",{class:_.XB("ytGridShelfViewModelHost",p.className,(I.ytGridShelfViewModelHostHasBottomButton=function(){return E()||a()},I.ytGridShelfViewModelHostIsDismissed=function(){var Z3,vg=(Z3=F())!=null?Z3:{};
Z3=vg.behavior;var yX=vg.isDismissed,Pg=vg.stamperContextTargetId;vg=vg.stamperIndex;if(!(_.z("mweb_see_fewer_shorts_group_dismissal")&&yX&&Z3&&Pg))return!1;var ov;yX=b;for(var NW,TW,Ys=((NW=yX)==null?0:NW.targetId)?_.a2((TW=yX)==null?void 0:TW.targetId):void 0;((ov=yX)==null?0:ov.parent)&&Ys!==Pg;)yX=yX.parent,TW=NW=void 0,Ys=((NW=yX)==null?0:NW.targetId)?_.a2((TW=yX)==null?void 0:TW.targetId):void 0;ov=Ys===Pg?yX:void 0;if(!ov)return!1;var Go;Pg=ov==null?void 0:(Go=ov.stamperIndex)==null?void 0:
Go.call(ov);return Z3==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||Z3==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Pg!=null&&vg!=null&&Pg>vg},I.ytGridShelfViewModelHostOptionalMediumLayoutMargin=n,I)),
el:_.Y2(S),style:_.G7({"margin-left":(0,_.GR)(function(){return t().contentPadding}),
"margin-right":(0,_.GR)(function(){return t().contentPadding})})},_.m(_.v,{cond:function(){return _.e(H().header,BUm)},
then:function(Z3){return _.m(_.EP,{data:Z3,useUpdatedPadding:n,disableHorizontalPadding:!0})}}),_.m("div",null,_.m(_.dY,{each:function(){return Array(D())}},function(Z3,vg){return _.m(m5v,{className:p.className,
items:J(vg),responsiveGridShelfLayout:t,contentAspectRatio:y})})),_.m("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.m(_.AH,{data:function(){return H().showMoreButton}},{buttonViewModel:function(Z3){return _.m("div",{hidden:w},_.m(_.D0,{data:Z3.data,
onClick:A}))}}),_.m(_.AH,{data:function(){return H().showLessButton}},{buttonViewModel:function(Z3){return _.m("div",{hidden:q},_.m(_.D0,{data:Z3.data,
onClick:P}))}})))},"Pd");
_.bd.idomCompat=!0;var m5v=_.d(function(p){var J=p.items;var S=p.responsiveGridShelfLayout;var H=p.contentAspectRatio;p=p.className;var M=_.nE("div");oGi(M,function(){a:{var Z=M.value;for(var n=J(),b=[],F=0;F<n.length;F++){var f=_.e(n[F],Rr8);if(!f||f==null||!f.inlinePlayerData){Z=null;break a}var O=Z.children.item(F);if(!O){Z=null;break a}b.push({thumbnailElement:O,videoData:f})}Z={gridVideoPreviewData:{gridItems:b}}}return Z});
var X=(0,_.GR)(function(){return-S().itemMargin});
return _.m("div",{el:M,class:_.XB("ytGridShelfViewModelGridShelfRow",p),style:_.G7({"margin-left":X,"margin-right":X})},_.m(_.AH,{data:J,replacementWrapper:function(Z){return _.m(FaM,{responsiveGridShelfLayout:S},Z)}},{shortsLockupViewModel:function(Z){return _.m(FaM,{responsiveGridShelfLayout:S},_.m(uGo,{data:Z.data,
aspectRatio:function(){return H()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.z("mweb_enable_one_line_title_on_shorts")?1:_.z("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(Z){return _.m(FaM,{responsiveGridShelfLayout:S},_.m(_.Vy,{data:Z.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Qd"),FaM=_.d(function(p){return _.m("div",{style:_.G7({width:(0,_.GR)(function(){return p.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+p.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},p.children)},"Rd");
_.bd.idomCompat=!0;_.ci(_.bd,"grid-shelf-view-model",{props:{data:_.fD,layoutContainerWidth:_.fD,shouldUseOwnContainerSize:_.fD,marginSettings:_.fD,useUpdatedMargin:_.fD,className:_.fD}});_.v18=_.d(function(p){var J=_.K(_.eQ(!1,void 0,"FVl30c")),S=J.next().value,H=J.next().value;J={};return _.m("yt-alert-banner-view-model",{class:_.XB("ytAlertBannerViewModelHost",p.className,function(){var M;a:switch((M=p.data())==null?void 0:M.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":M="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":M="ytAlertBannerViewModelWarning";break a;default:M="ytAlertBannerViewModelInformational"}return M},(J.ytAlertBannerViewModelDismissed=
S,J.ytAlertBannerViewModelFullbleed=p.fullbleed,J.ytAlertBannerViewModelNarrow=p.narrow,J.ytAlertBannerViewModelIsInRichGrid=p.isInRichGrid,J))},_.m(_.v,{cond:function(){var M;
return!((M=p.data())==null?0:M.hideIcon)},
then:function(){return _.m("div",{class:"ytAlertBannerViewModelIcon"},_.m(_.bn,{icon:function(){return"info_circle"}}))}}),_.m("div",{class:"ytAlertBannerViewModelOuterContainer"},_.m("div",{class:"ytAlertBannerViewModelContainer"},_.m("div",{class:"ytAlertBannerViewModelContent"},_.m("div",{class:"ytAlertBannerViewModelHeading"},_.m(_.v3,{text:function(){var M;
return(M=p.data())==null?void 0:M.heading}})),_.m("div",{class:"ytAlertBannerViewModelBody"},_.m(_.v3,{text:function(){var M;
return(M=p.data())==null?void 0:M.body}})))),_.m(_.AH,{data:function(){var M;
return(M=p.data())==null?void 0:M.actionButton}},{buttonViewModel:function(M){return _.m(_.D0,{data:M.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.m(_.AH,{data:function(){var M;
return(M=p.data())==null?void 0:M.dismissButton}},{buttonViewModel:function(M){return _.m(_.D0,{data:M.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var X;((X=p.data())==null?0:X.disableLocalDismissBehavior)||H(!0)}})}}))},"Sd");_.ci(_.v18,"yt-alert-banner-view-model",{props:{data:_.fD,fullbleed:_.fD,narrow:_.fD,isInRichGrid:_.fD,className:_.fD}});var fbp;_.ml=_.d(function(p){return _.m("basic-content-view-model",{class:_.XB("ytBasicContentViewModelHost",_.rw(p.className))},_.m(_.v,{cond:function(){return p.data().headline},
then:function(J){return _.m("div",{class:"ytBasicContentViewModelHeadline"},_.m(_.v3,{text:J}))}}),_.m(_.dY,{each:function(){return p.data().paragraphs||[]},
keyBy:"INDEX"},function(J){return _.m("div",{class:"ytBasicContentViewModelParagraph"},_.m(_.v,{cond:function(){var S=J();return!!(S.header||S.customHeader||S.headline)},
then:function(){return _.m(fbp,{paragraph:J})}}),_.m(_.v,{cond:function(){return J().asset||J().text},
then:function(){return _.m("div",{class:"ytBasicContentViewModelParagraphContent"},_.m(_.v,{cond:function(){return J().asset},
then:function(S){return _.m("div",{class:"ytBasicContentViewModelParagraphAsset"},_.m(_.AH,{data:S},{contentPreviewImageViewModel:_.D2}))}}),_.m(_.v,{cond:function(){return J().text},
then:function(S){return _.m("div",{class:"ytBasicContentViewModelParagraphText"},_.m(_.v3,{text:S}))}}))}}))}))},"Td");
fbp=_.d(function(p){var J=p.paragraph;return _.m(_.fV,null,_.m(_.v,{cond:function(){return J().headline},
then:function(S){return _.m(_.v3,{text:S,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.m(_.AH,{data:function(){return J().header||J().customHeader}},{sectionHeaderViewModel:function(S){return _.m(_.EP,{data:S.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ud");_.O68=_.d(function(p){function J(){var P,W;b((W=(P=M)==null?void 0:P.isKeyBoardInUse())!=null?W:!1)}
function S(){b(!1)}
function H(){var P;return n()?(P=p.focusedClassName)==null?void 0:P.call(p):""}
var M=_.vO().resolve(_.F9(_.CD)),X=_.K(_.eQ(!1,void 0,"SgkTXc")),Z=X.next().value;X=X.next().value;var n=Z,b=X,F=function(){var P,W;return((P=p.toggleable)==null?0:P.call(p))?(W=p.toggled)==null?void 0:W.call(p):void 0},f=_.Kb(function(P){var W,y=(W=p.command)==null?void 0:W.call(p);
y&&_.vO().resolve(_.Ov).resolveCommand(y);var t;(t=p.onClick)==null||t.call(p,P)}),O=_.Kb(J),A=_.Kb(S);
return _.m(_.v,{cond:function(){var P;if(P=p.command){P=p.command();P=ngX(P);var W=P.href;P=!(!P.navigatingCommand||!W)}return P},
then:function(){return _.m(_.yD,Object.assign({},{command:p.command,style:p.style,ariaDescribedby:p.ariaDescribedby,ariaHidden:p.ariaHidden,ariaLabel:p.ariaLabel,ariaLabelledby:p.ariaLabelledby,ariaSelected:p.ariaSelected,disabled:p.disabled,dir:p.dir,tabIndex:p.tabIndex,target:p.target,title:p.title,onClick:p.onClick},{className:_.XB("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",p.className,function(){return H()}),
onFocusin:J,onFocusout:S,ariaCurrent:function(){var P,W;return(W=(P=p.ariaCurrent)==null?void 0:P.call(p))!=null?W:F()}}),p.children)},
else:function(){return _.m("button",{"on:click":f,"on:focusin":O,"on:focusout":A,class:_.XB("ytButtonOrAnchorHost","ytButtonOrAnchorButton",p.className,function(){return H()}),
style:p.style,"aria-describedby":p.ariaDescribedby,"aria-hidden":p.ariaHidden,"aria-label":p.ariaLabel,"aria-labelledby":p.ariaLabelledby,"aria-pressed":F,dir:p.dir,disabled:p.disabled,tabindex:p.tabIndex,title:p.title},p.children)}})},"Vd");var AN8=_.d(function(p){p=_.jh(p,{disabled:!1});var J=p.active,S=p.disabled;p={};p=_.XB("ytSwitchShapeTrack",(p.ytSwitchShapeTrackActive=function(){return J()},p.ytSwitchShapeTrackDisabled=function(){return S()},p));
var H={};H=_.XB("ytSwitchShapeKnob",(H.ytSwitchShapeKnobActive=function(){return J()},H));
return _.m("switch-shape",{class:"ytSwitchShapeHost"},_.m("div",{class:p}),_.m("div",{class:H}))},"Wd");var Pk8=_.d(function(p){var J=_.jh(p,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),S=J.data;p=J.className;var H=J.handleOnTapEventInParent,M=J.parentActive,X=J.onTap;J=_.K(_.re(function(){var A;return(A=M())!=null?A:S().switchedOnByDefault||!1}));
var Z=J.next().value,n=J.next().value,b=function(){return S().isDisabled},F=_.nE("button");
J=_.Kb(function(A){return A.key==="Enter"?(A.preventDefault(),F.value.click(),!1):!0});
var f=_.Kb(function(A){if(S().handleOnTapEventInParent||H())return!0;if(b())return!1;if(X)return X(A),!0;kPk(S(),Z(),A);n(!Z());return!1}),O={};
O=_.XB("ytSwitchButtonViewModelButton",(O.ytSwitchButtonViewModelTappable=function(){return!b()},O));
return _.m("switch-button-view-model",{class:_.XB("ytSwitchButtonViewModelHost",p)},_.m("button",{el:F,class:O,"on:click":f,"on:keydown":J,"aria-label":function(){return Z()?S().a11yLabelSwitchedOn:S().a11yLabelSwitchedOff},
"aria-checked":Z,"aria-disabled":b,role:"switch"},_.m(AN8,{active:Z,disabled:b})))},"Xd");var zNo=_.d(function(p){var J=p.data;var S=p.isLeading;var H=p.hideSelectionTextChevron;var M=p.isToggled;var X=p.shouldNotFillIcon;var Z=function(){if(S())var O=J().leadingImage;else{var A;O=(A=J().trailingImage)!=null?A:_.dT(J().themedTrailingImage)}return O},n=function(){a:switch(J().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var O="expand_more";
break a;default:O="chevron_right"}return O};
p={};var b=_.XB("yt-list-item-view-model__image-container",(p["yt-list-item-view-model__leading"]=S,p["yt-list-item-view-model__trailing"]=function(){return!S()},p)),F=_.XB("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
p={};var f=_.XB("yt-list-item-view-model__accessory",(p["yt-list-item-view-model__leading"]=S,p["yt-list-item-view-model__trailing"]=function(){return!S()},p));
return _.m(_.v,{cond:function(){var O=J(),A=S();return!!(A&&(O.leadingImage||O.leadingAccessory)||!A&&(O.trailingImage||O.trailingButton||O.trailingButtons||O.selectionText||O.themedTrailingImage||O.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.m(_.fV,null,_.m(_.v,{cond:Z,then:function(O){return _.m("div",{class:b,"aria-hidden":"true"},_.m(_.a4,{data:O,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var A=(S()?J().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":J().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?S()?dew(J().leadingIconAccessorySize):dew(J().trailingIconAccessorySize):void 0;return A},
className:F,isToggled:function(){return!(X==null?0:X())&&(M==null?void 0:M())}}))}}),_.m(_.v,{cond:function(){return S()&&J().leadingAccessory},
then:function(){return _.m("div",{class:b},_.m(_.AH,{data:function(){return J().leadingAccessory}},{avatarViewModel:function(O){return _.m(_.iF,{data:O.data,
avatarButtonCustomClassName:F})},
collectionThumbnailViewModel:function(O){return _.m(Dm8,{data:O.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.m(_.v,{cond:function(){return!S()&&J().trailingButton},
then:function(){return _.m("div",{class:"yt-list-item-view-model__button-container"},_.m(_.AH,{data:function(){return J().trailingButton}},{buttonViewModel:function(O){return _.m(_.D0,{data:O.data,
className:f})}}))}}),_.m(_.v,{cond:function(){var O;
return!S()&&((O=J().trailingButtons)==null?void 0:O.buttons)},
then:function(){return _.m("div",{class:"yt-list-item-view-model__button-container"},_.m(_.AH,{data:function(){var O;return(O=J().trailingButtons)==null?void 0:O.buttons}},{buttonViewModel:function(O){return _.m(_.D0,{data:O.data,
className:f})},
accountLinkButtonViewModel:function(O){return _.m(zAU,{data:O.data,className:f})},
switchButtonViewModel:function(O){return _.m(Pk8,{data:O.data,className:f})},
subscribeButtonViewModel:function(O){return _.m(_.iG,{data:O.data,isOverlay:!1,animateWidth:!1,className:f})},
toggleButtonViewModel:function(O){return _.m(_.LD,{data:O.data,className:f})}}))}}),_.m(_.v,{cond:function(){return!S()&&!!J().selectionText},
then:function(){return _.m(_.fV,null,_.m(_.v3,{text:function(){return J().selectionText},
className:_.XB("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.m(_.v,{cond:function(){return!(H==null?0:H())},
then:function(){return _.m(_.bn,{icon:n,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.m(_.v,{cond:function(){return!S()&&J().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.m("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"Yd");var $5m=_.d(function(p){var J=p.data;return _.m(_.v,{cond:function(){return J().title||J().subtitle},
then:function(){return _.m("div",{class:"yt-list-item-view-model__text-wrapper"},_.m(_.v,{cond:function(){return J().title},
then:function(S){return _.m("div",{class:"yt-list-item-view-model__title-wrapper"},_.m(_.v3,{text:S,className:"yt-list-item-view-model__title"}))}}),_.m(_.v,{cond:function(){return J().subtitle},
then:function(S){return _.m(_.v3,{text:S,className:"yt-list-item-view-model__subtitle"})}}))}})},"Zd");var o1v=_.d(function(p){var J=p.data;var S=p.hideSelectionTextChevron;var H=p.TrailingAccessory;var M=p.isToggled;var X=p.disabled;var Z=p.isSelectItem;var n=p.isCompact;var b=p.inPopup;var F=p.disableHorizontalPadding;var f=p.isTappableWithoutSelect;var O=p.useButtonOrAnchor;var A=p.onTap;var P=p.shouldNotFillIcon;var W=function(){return _.m($5m,{data:J,onTap:A,useButtonOrAnchor:O,isTappableWithoutSelect:f,isToggled:M})};
p={};return _.m("div",{class:_.XB("yt-list-item-view-model__label",(p["yt-list-item-view-model__container"]=function(){return!(Z==null?0:Z())},p["yt-list-item-view-model__container--disabled"]=function(){return!!J().isDisabled||!(X==null||!X())},p["yt-list-item-view-model__container--has-subtitle"]=function(){return!!J().subtitle},p["yt-list-item-view-model__container--compact"]=n,p["yt-list-item-view-model__container--tappable"]=f,p["yt-list-item-view-model__container--in-popup"]=b,p["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(F==null?void 0:F())&&!(Z==null?0:Z())},p))},_.m(zNo,{data:J,
isLeading:!0,hideSelectionTextChevron:S,isToggled:M,shouldNotFillIcon:P}),_.m(_.v,{cond:function(){return(O==null?void 0:O())&&(f==null?void 0:f())},
then:function(){return _.m(_.O68,{command:function(){return _.B$(J().rendererContext)},
onClick:A,className:"yt-list-item-view-model__button-or-anchor",toggleable:M!==void 0,toggled:M},_.m(W,null))},
else:function(){return _.m(W,null)}}),_.m(_.v,{cond:function(){return!!H},
then:function(){return _.m("div",{class:"yt-list-item-view-model__trailing"},H&&_.m(H,null))},
else:function(){return _.m(zNo,{data:J,isLeading:!1,hideSelectionTextChevron:S,isToggled:M,shouldNotFillIcon:P})}}))},"$d");var Wap=_.d(function(p){var J=_.jh(p,{checked:!1});p=J.name;var S=J.onChange,H=J.onClick,M=J.checked,X=J.labelRenderable,Z=J.hasLeadingLabel,n=J.labelClass,b=J.isCompact,F=J.selectElementClass;J=J.disableHorizontalPadding;var f="checkbox"+_.q7(_.nW),O=_.Kb(function(W){H==null||H(W);return!1}),A=_.Kb(function(W){S==null||S(W);
return!1}),P={};
return _.m("checkbox-shape",null,_.m("label",{class:_.XB("ytCheckboxShapeHost",n,(P.ytCheckboxShapeHostCompact=b,P.ytCheckboxShapeDisableHorizontalPadding=J,P))},_.m("input",{class:"ytCheckboxShapeInput",id:f,checked:M,name:p,type:"checkbox","prop:checked":M,"on:change":A,"on:click":O}),_.m(_.v,{cond:function(){return!(Z==null?0:Z())},
then:function(){return _.m(eNd,{isLeading:!0,selectElementClass:F})}}),_.m(_.v,{cond:function(){return!!X},
then:function(){return _.m("div",{class:"ytCheckboxShapeLabel"},X==null?void 0:X())}}),_.m(_.v,{cond:Z,
then:function(){return _.m(eNd,{isLeading:!1,selectElementClass:F})}})))},"ae");
Wap.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var eNd=_.d(function(p){var J=p.selectElementClass;p={};return _.m("div",{class:_.XB("ytCheckboxShapeCheckbox",J,(p.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(J==null?0:J())},p)),
"aria-hidden":"true"},_.m(_.bn,{icon:_.z("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.m(_.bn,{icon:_.z("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"be");_.F1=_.d(function(p){var J=p.name;var S=p.onChange;var H=p.onClick;var M=p.checked;var X=p.labelRenderable;var Z=p.useCheckIcon;var n=p.hasLeadingLabel;var b=p.labelClass;var F=p.isCompact;var f=p.selectElementClass;var O=p.ariaLabel;p=p.className;var A="radio"+_.q7(_.nW),P=_.nE("input"),W=_.z("enable_ios_webview_radio_button_responsiveness"),y=_.Kb(function(w){P.value.checked=!(M==null||!M());S==null||S(w);return!1}),t=_.Kb(function(w){H==null||H(w);
return!1}),D=_.K(_.eQ(!1,void 0,"ub5cmf")),k=D.next().value,E=D.next().value;
D=_.Kb(function(){var w;((w=_.vO().resolve(_.F9(_.CD)))==null?0:w.isKeyBoardInUse())&&E(!0)});
var a=_.Kb(function(){E(!1)}),q={};
return _.m("radio-shape",{class:_.XB("yt-radio-shape",p)},_.m("input",{el:P,class:"yt-radio-shape__input",id:A,"prop:checked":M,name:J,type:"radio","on:change":y,"on:click":t,"aria-label":O,"on:focusin":D,"on:focusout":a}),_.m("label",{class:_.XB("yt-radio-shape__label-container",b,(q["yt-radio-shape--compact"]=F,q["yt-radio-shape__label-container--keyboard-focused"]=k,q)),for:A},_.m(_.v,{cond:function(){return!(n==null?0:n())},
then:function(){return _.m(Qbp,{checked:M,useCheckIcon:Z,isLeading:!0,selectElementClass:f,usePassthrough:W})}}),_.m(_.v,{cond:function(){return!!X},
then:function(){var w={};return _.m("div",{class:_.XB("yt-radio-shape__label",(w["yt-radio-shape--event-passthrough"]=W,w)),"aria-hidden":function(){return(O==null?0:O())?"true":"false"}},X==null?void 0:X())}}),_.m(_.v,{cond:n,
then:function(){return _.m(Qbp,{checked:M,useCheckIcon:Z,isLeading:!1,selectElementClass:f,usePassthrough:W})}})))},"ce");
_.F1.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Qbp=_.d(function(p){var J=p.useCheckIcon;var S=p.selectElementClass;p=p.usePassthrough;var H=function(){return(J==null?0:J())?"CHECK":_.z("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"},M={};
return _.m("div",{class:_.XB("yt-radio-shape__radio",S,(M["yt-radio-shape__radio--check-icon"]=J,M["yt-radio-shape__radio--radio-default-style"]=function(){return!(S==null?0:S())},M["yt-radio-shape--event-passthrough"]=p,M)),
"aria-hidden":"true"},_.m(_.bn,{icon:H}),_.m(_.bn,{icon:H,active:function(){return!(J==null?0:J())}}))},"de");_.fW=_.d(function(p){var J=p.data;var S=p.isMenuItem;var H=p.isCompact;var M=p.onTap;var X=p.trailingAccessory;var Z=p.hideSelectionTextChevron;var n=p.disabled;var b=p.inPopup;var F=p.disableHorizontalPadding;var f=p.isOverlay;var O=p.isToggled;var A=p.ariaLabel;var P=p.ariaPressed;var W=p.shouldNotFillIcon;var y=!_.z("web_enable_killswitch_for_selectable_list_item_on_tap_fix");p=!_.z("web_enable_killswitch_for_skip_child_tags");var t=_.fb(function(Go){return uGW(J(),Go)}),D=function(){return(F==
null?void 0:F())||J().disableHorizontalPadding},k=function(){return _.z("enable_web_shorts_captions_language_command")||_.z("web_shorts_audio_track_picker")||J().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},E=function(){return k()?Object.assign({},J(),t().data):J()},a=_.ViW(function(){return E().rendererContext}),q=function(){return!(E().isSelected===void 0||!E().selectionStyle||E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},w=function(){return(_.Ul(E().rendererContext)||
M)&&!q()},I={},Z3=_.XB("yt-list-item-view-model__container",(I["yt-list-item-view-model__container--tappable"]=function(){return _.Ul(E().rendererContext)||q()},I["yt-list-item-view-model__container--compact"]=H,I["yt-list-item-view-model__container--in-popup"]=b,I["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(D==null?void 0:D())&&q()},I)),vg=function(){return E().leadingImage||E().leadingAccessory},yX=_.XB("yt-list-item-view-model__image-container",function(){return vg()?
"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
I=_.d2X();var Pg=_.K(_.eQ(!1,void 0,"w9yOLe")),ov=Pg.next().value,NW=Pg.next().value,TW=function(){return _.m(o1v,{data:E,hideSelectionTextChevron:Z,TrailingAccessory:X,isToggled:O,disabled:n,isSelectItem:q,isCompact:H,inPopup:b,disableHorizontalPadding:D,isTappableWithoutSelect:w,useButtonOrAnchor:Ys,onTap:M,shouldNotFillIcon:W})},Ys=_.z("web_button_or_anchor_list_item");
Pg={};return _.m("yt-list-item-view-model",{el:_.Y2(_.sl(function(){return E().rendererContext},void 0,void 0,Ys?["A".toString(),
"BUTTON".toString()]:[]),l_g(function(Go){var $U;if($U=y)$U=E().selectionStyle,$U=$U==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||$U==="LIST_ITEM_SELECTION_STYLE_RADIO"||$U==="LIST_ITEM_SELECTION_STYLE_DEFAULT";$U||M==null||M(Go)},p?["A".toString(),
"BUTTON".toString()]:[]),Iei(function(){return w==null?void 0:w()},{focusin:function(){var Go;
((Go=_.vO().resolve(_.F9(_.CD)))==null?0:Go.isKeyBoardInUse())&&NW(!0)},
focusout:function(){NW(!1)}})),
class:_.XB("yt-list-item-view-model",(Pg["yt-list-item-view-model--is-overlay"]=f,Pg["yt-list-item-view-model--keyboard-focused"]=ov,Pg["yt-list-item-view-model--hidden"]=function(){return k()?t().isHidden:!1},Pg)),
role:function(){return(S==null?0:S())?"menuitem":"listitem"},
tabindex:function(){var Go=w();Go=Ys?void 0:M||Go?0:void 0;return Go},
"on:keydown":I,"aria-label":function(){var Go;return(A==null?void 0:A())||((Go=a())==null?void 0:Go.label)},
"aria-pressed":P},_.m(_.v,{cond:q,then:function(){return _.m(_.ue,null,_.m(_.Nz,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.m(Wap,{labelRenderable:TW,
isCompact:H,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!vg()},
labelClass:Z3,selectElementClass:yX,disableHorizontalPadding:D,onClick:y?M:void 0})}),_.m(_.Nz,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.m(_.F1,{labelRenderable:TW,
isCompact:H,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!vg()},
labelClass:Z3,selectElementClass:yX,onClick:y?M:void 0})}),_.m(_.Nz,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.m(_.F1,{labelRenderable:TW,
isCompact:H,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!vg()},
labelClass:Z3,selectElementClass:yX,useCheckIcon:!0,onClick:y?M:void 0})}),_.m(_.TV,null,TW))},
else:TW}))},"ee");
_.fW.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.OY=_.d(function(p){var J=_.K(_.AX({canHaveZeroSize:!1})),S=J.next().value;J=J.next().value;var H=function(){return pa4(S.width(),p.data().responsiveContainerConfiguration)||w4k(S.width(),p.data().linearLayoutContainerConfiguration)};
return _.m("yt-linear-layout-view-model",{el:_.Y2(J),class:"ytLinearLayoutViewModelHost"},_.m("div",{class:_.XB("ytLinearLayoutViewModelContainer",function(){a:switch(p.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var M="ytLinearLayoutViewModelHorizontal";break a;default:M="ytLinearLayoutViewModelVertical"}return M},function(){var M=p.data().linearLayoutContainerConfiguration;
return M?[Ye9(M.flexDirection),r5w(M.justifyContent),jmX(M.alignItems)].join(" "):""}),
style:function(){var M;var X=((M=H())==null?void 0:M.containerStyles)||{};return _.G7(X)()}},_.m(_.AH,{data:function(){return p.data().items},
wrapper:function(M,X,Z){return _.m("div",{style:function(){var n=Z(),b;if((b=H())==null)n=void 0;else{var F=b.itemStyles,f=n===0,O,A;var P=(A=(O=p.data().items)==null?void 0:O.length)!=null?A:0;n=F.call(b,f,n===P-1)}return _.G7(n||{})()}},M())}},{lockupViewModel:function(M){return _.m(_.Vy,{data:M.data,
containerLayoutConfig:function(){var X;return(X=H())==null?void 0:X.containerLayoutConfig}})},
basicContentViewModel:_.ml,linearLayoutViewModel:_.OY,thumbnailViewModel:_.sz,descriptionPreviewViewModel:_.aa,listItemViewModel:_.fW,sectionHeaderViewModel:_.EP})))},"fe");_.ci(_.OY,"yt-linear-layout-view-model",{props:{data:_.fD}});_.ci(_.E6,"chips-shelf-view-model",{props:{data:_.fD,callback:_.jr,selectionBehavior:_.fD,disableChipsScrollAnimation:_.fD}});_.ci(_.d(function(p){return _.m("yt-comment-filter-context-view-model",{class:_.XB("ytCommentFilterContextHost",p.className)},_.m(_.v3,{text:function(){return p.data().text}}))},"ge"),"yt-comment-filter-context-view-model",{props:{data:_.fD,
className:_.jr}});_.Ck8=_.d(function(p){var J=p.data;var S=p.onTap;var H=p.onSwitch;var M=p.overrideDisabled;p=p.disableHorizontalPadding;var X=_.K(_.re(function(){var A;return((A=TKi(f()))==null?void 0:A.switchedOnByDefault)||!1})),Z=X.next().value,n=X.next().value;
X=_.K(_.eQ(!1,void 0,"V0hCrd"));var b=X.next().value,F=X.next().value,f=function(){var A;if(!(A=J().switchButton)){var P=J();A=M==null?void 0:M();P={switchOnCommand:P.switchOnCommand,switchOffCommand:P.switchOffCommand,switchedOnByDefault:P.switchedOnByDefault,isDisabled:P.isDisabled,a11yLabelSwitchedOn:P.a11yLabelSwitchedOn,a11yLabelSwitchedOff:P.a11yLabelSwitchedOff};A!==void 0&&(P.isDisabled=A);A={switchButtonViewModel:P}}return A},O=function(A){var P=TKi(f());
!P||P.isDisabled||J().ignoreTapUntilCommandCompletes&&b()||(S==null||S(A),kPk(P,Z(),A,J().ignoreTapUntilCommandCompletes,F),n(!Z()),H==null||H(Z()))};
return _.m("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.m(_.fW,{data:function(){return{title:J().title,subtitle:J().attributedSubtitle,leadingImage:J().leadingImage,leadingAccessory:J().leadingAccessory,isDisabled:J().isDisabled}},
onTap:O,isToggled:Z,shouldNotFillIcon:!0,trailingAccessory:function(){return _.m(_.AH,{data:f},{switchButtonViewModel:function(A){return _.m(Pk8,{data:A.data,parentActive:Z,onTap:O})}})},
disableHorizontalPadding:p}))},"he");var yNL=_.d(function(p){var J=_.K(_.re(function(){var M,X;return!!((M=p.data())==null?0:(X=M.initialState)==null?0:X.isToggled)})),S=J.next().value,H=J.next().value;
return _.m("toggleable-list-item-view-model",{el:_.Y2(_.sl(function(){return p.data().rendererContext},{onTap:function(M,X){X();
H(!S())}})),
class:_.XB("toggleableListItemViewModelHost",p.className)},_.m(_.v,{cond:function(){if(S()){var M=p.data().toggledListItem;M=_.e(M,_.$m)}else M=p.data().defaultListItem,M=_.e(M,_.$m);return M},
then:function(M){return _.m(_.fW,{data:M,isToggled:S,ariaLabel:function(){var X=S()?p.data().toggledListItem:p.data().defaultListItem,Z;X=(Z=_.e(X,_.$m))==null?void 0:Z.rendererContext;var n;return(n=_.e(X,_.PY))==null?void 0:n.label},
ariaPressed:function(){return S()}})}}))},"ie");var Bhn=_.Kl("DOWNLOAD",{},"Download"),U5E=_.Kl("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),sbm=_.Kl("RETRY",{},"Retry"),g1q=_.Kl("PAUSE_DOWNLOADING",{},"Pause downloading"),tuq=_.Kl("RESUME_DOWNLOAD",{},"Resume download"),JDt={text:Bhn,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},zs={text:U5E,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},Mjg={text:sbm,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
SHW={text:g1q,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},HK9={text:tuq,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var hNd=_.d(function(p){var J=function(){var n=p.data();n=_.B$(n.rendererContext);var b;return(b=_.e(n,_.mV))==null?void 0:b.videoId},S=_.fb(function(n){var b=J(),F=Rzi(p.data());
return b?_.gl(n,b):F?_.tk(n,F):"TRANSFER_STATE_UNKNOWN"}),H=_.v$(_.xa9,J),M=_.fb(function(n){return _.qZL(n,J(),Rzi(p.data()))}),X=function(){return iKt(S(),H(),_.B$(p.data().rendererContext),!!Rzi(p.data()))},Z=function(){return M()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.m("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:Z},_.m(_.v,{cond:function(){return!Z()},
then:function(){return _.m(_.v,{cond:X,then:function(n){return _.m(_.dY,{each:n},function(b){return _.m(_.fW,{data:b,isCompact:p.isCompact,isMenuItem:p.isMenuItem,inPopup:p.inPopup,disableHorizontalPadding:p.disableHorizontalPadding})})}})}}))},"je");
hNd.idomCompat=!0;_.D5L=_.d(function(p){var J=p.data;var S=p.isCompact;var H=p.hideSelectionTextChevron;var M=p.inPopup;var X=p.isOverlay;var Z=p.disableHorizontalPadding;var n=function(){return Kev(J())&&(M==null?void 0:M())},b=_.z("web_list_view_model_listbox_killswitch")?"menu":"listbox";
p=_.Kb(function(f){if(M!=null&&M()&&_.z("web_enable_arrow_key_navigation_in_dropdown")){var O=_.R4W(f.currentTarget),A=O.length;if(A!==0){var P=Array.prototype.indexOf.call(O,document.activeElement);switch(f.key){case "ArrowDown":f.preventDefault();var W;(W=O[(P+1)%A])==null||W.focus();break;case "ArrowUp":f.preventDefault();var y;(y=O[P===-1?A-1:(P-1+A)%A])==null||y.focus()}}}});
var F={};return _.m("yt-list-view-model",{class:_.XB("ytListViewModelHost",(F.ytListViewModelHostKaiosSpatNav=MMk&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",F)),role:function(){return n()?b:"list"},
style:_.G7({"max-height":function(){var f,O=(f=J())==null?void 0:f.visibleElementCount;if(O)return(O+.5)*40+"px"}}),
"on:keydown":p},_.m(_.AH,{data:function(){return J().listItems}},{listItemViewModel:function(f){return _.m(_.fW,{data:f.data,
isMenuItem:n,isCompact:S,hideSelectionTextChevron:H,inPopup:M,isOverlay:X,disableHorizontalPadding:Z})},
toggleableListItemViewModel:function(f){return _.m(yNL,{data:f.data})},
downloadListItemViewModel:function(f){return _.m(hNd,{data:f.data,isMenuItem:n,isCompact:S,inPopup:M,disableHorizontalPadding:Z})},
switchListItemViewModel:function(f){return _.m(_.Ck8,{data:f.data,disableHorizontalPadding:Z})}}))},"ke");
_.D5L.idomCompat=!0;var kwp=_.d(function(p){var J=p.data;var S=p.isOverlay;p={};return _.m("yt-course-perks-view-model",{class:_.XB("ytwCoursePerksViewModelHost",(p.ytwCoursePerksViewModelHostOverlay=S,p))},_.m("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.m(_.v3,{text:function(){return J().title}})),_.m("div",null,_.m(_.v,{cond:function(){return J().perks},
then:function(H){return _.m(_.D5L,{data:function(){return{listItems:H()}},
isCompact:!0,isOverlay:S})}})))},"le");_.ci(kwp,"yt-course-perks-view-model",{props:{data:_.jr,isOverlay:_.jr}});_.ci(_.d(function(p){var J=p.data;return _.m("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.m("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.m(_.v3,{text:function(){return J().title}})),_.m("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.m(_.v3,{text:function(){return J().progressSummary}})),_.m("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.m("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.G7({width:function(){return J().progressPercentage*100+"%"}})})))},"me"),"yt-course-progress-view-model",{props:{data:_.fD}});var Nhq=_.d(function(p){var J={};return _.m("yt-progress-view-model",{class:_.XB("ytwProgressViewModelHost",(J.ytwProgressViewModelHostOverlay=_.rw(p.isOverlay,!1),J))},_.m(_.v,{cond:function(){return p.data().progressSummary},
then:function(S){return _.m("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.m(_.v3,{text:S}))}}),_.m("div",{class:"ytwProgressViewModelHostProgressContainer"},_.m(_.v,{cond:function(){return p.data().leadingLabel},
then:function(S){return _.m("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.m(_.v3,{text:S}))}}),_.m("div",{class:"ytwProgressViewModelHostProgressBar"},_.m("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(p.data().progressPercentage||0)*100+"%"}}))))},"ne");var A$=_.d(function(p){var J=p.starNumber;var S=p.data;var H=function(){var M;return((M=S())==null?void 0:M.rating)||0};
return _.m(_.v,{cond:function(){return J()},
then:function(M){return _.m(_.ue,null,_.m(_.Nz,{when:function(){return H()>=M()-.25}},function(){return _.m("div",{class:"ytStarRatingViewModelHostStar"},_.m(_.bn,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.m(_.Nz,{when:function(){return H()>=M()-.75}},function(){return _.m("div",{class:"ytStarRatingViewModelHostStar"},_.m(_.bn,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.m(_.TV,null,function(){return _.m("div",{class:"ytStarRatingViewModelHostStar"},_.m(_.bn,{icon:"STAR",
size:function(){return 24}}))}))}})},"oe"),Th8=_.d(function(p){p=p.data;
return _.m("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.m(A$,{starNumber:1,data:p}),_.m(A$,{starNumber:2,data:p}),_.m(A$,{starNumber:3,data:p}),_.m(A$,{starNumber:4,data:p}),_.m(A$,{starNumber:5,data:p}))},"pe");_.ci(_.d(function(p){var J=_.jh(p,{}).data;return _.m("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.m("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.m(_.v3,{text:function(){var S;return(S=J())==null?void 0:S.title}})),_.m("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.m(_.v,{cond:function(){return J().starProgressViewModels},
then:function(S){return _.m("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.m(_.AH,{data:S},{progressViewModel:Nhq}))}}),_.m("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.m("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.m(_.v3,{text:function(){var S;
return(S=J())==null?void 0:S.averageRatingLabel}})),_.m(_.v,{cond:function(){return J().zeroStateText},
then:function(S){return _.m("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.m(_.v3,{text:S}))}}),_.m(_.v,{cond:function(){return J().starRatingViewModel},
then:function(S){return _.m("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.m(_.AH,{data:S},{starRatingViewModel:Th8}))}}),_.m("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.m(_.v3,{text:function(){var S;
return(S=J())==null?void 0:S.totalRatingsCountLabel}})))))},"qe"),"yt-course-ratings-view-model",{props:{data:_.jr}});var d5p;d5p={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.uwM=_.d(function(p){var J=_.nE("yt-learning-journey-loader-view-model"),S=_.Gy();_.qz(function(){requestAnimationFrame(function(){var M;(M=S.lottieEl)==null||M.addEventListener("DOMLoaded",function(){var X;(X=p.onLottieLoaded)==null||X.call(p)})});
var H=p.data().browseEndpoint;H&&_.Dm(H)});
return _.m("yt-learning-journey-loader-view-model",{class:_.XB("learningJourneyLoaderViewModelHost",p.className),"data-target-id":function(){return p.data().targetId||""},
el:J},_.m(_.l1,{className:_.XB("learningJourneyLoaderViewModelLoader",p.className),animationName:function(){return d5p.animationConfig.name},
data:d5p,animationRef:S}))},"se");_.ci(_.uwM,"yt-learning-journey-loader-view-model",{props:{data:_.fD,className:_.jr,onLottieLoaded:_.jr}});var nRL=new Set,ZKg=null;var lb8=_.d(function(p){var J=void 0,S=function(){return p.data()},H=function(){return!!_.es(_.$8(S())).optionColor},M=_.K(_.eQ(-1,void 0,"eTdwcb")),X=M.next().value,Z=M.next().value,n=function(A){return X()===A},b=function(A){return S().correctAnswerIndex===A},F=function(){return X()!==-1};
M=_.K(_.eQ("",void 0,"QwJs6"));var f=M.next().value,O=M.next().value;return _.m("learning-journey-quiz-view-model",{class:_.XB("learningQuizComponentHost","learningJourneyQuizYoututorHost",p.className),style:_.G7({background:function(){return _.es(_.$8(S())).backgroundColor}})},_.m("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},f),_.m("div",{class:"learningQuizComponentQuizContainer"},_.m("div",{class:"learningQuizComponentQuiz"},_.m("div",{class:"learningQuizComponentQuizContent"},_.m(_.v,{cond:function(){return!!S().aiGeneratedQuizLabel},
then:function(){return _.m("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.m(_.v3,{text:function(){return S().aiGeneratedQuizLabel}}))}}),_.m("div",{class:"learningQuizComponentQuizHeader",
style:_.G7({"align-items":function(){return S().overflowMenu?"start":"center"}})},_.m("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.G7({"min-height":function(){return S().overflowMenu?"48px":"26px"}})},_.m("div",{class:"learningJourneyQuizYoututorText",
style:_.G7({color:function(){return _.es(_.$8(S())).primaryTextColor}})},_.m(_.v3,{text:function(){return S().questionHeaderText}})))),_.m("div",{class:"learningQuizComponentQuizSubheader",
style:_.G7({color:function(){return _.es(_.$8(S())).secondaryTextColor}})},_.m(_.v3,{text:function(){var A=S();
return F()?A.explanationText:A.questionSubheaderText}}))),_.m("div",{role:"group",
class:_.XB("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.m(_.dY,{each:function(){return S().optionsData||[]}},function(A,P){var W={};
return _.m("button",{class:_.XB("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(W.learningQuizComponentQuizHover=function(){return!F()},W.learningQuizComponentQuizOptionWithCustomColor=H,W.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return F()&&b(P())},W.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return X()!==S().correctAnswerIndex&&n(P())},W.learningQuizComponentQuizIncorrectShake=
function(){return X()!==S().correctAnswerIndex&&n(P())},W)),
"on:click":_.Kb(function(){if(F())return!1;Z(P());var y,t;O(b(P())?((y=S().successTitle)==null?void 0:y.content)||"":((t=S().failureTitle)==null?void 0:t.content)||"");return!1}),
style:_.G7({background:"transparent"}),"aria-description":function(){var y,t;return F()?b(P())?(y=S().successTitle)==null?void 0:y.content:(t=S().failureTitle)==null?void 0:t.content:""},
"aria-disabled":F,el:_.Y2(function(y){_.WY(271905,y,J,function(t){J=t})}),
"client-ve-type":271905},_.m("div",{class:"learningQuizComponentQuizOptionContainer"},_.m(_.v3,{text:A.optionText}),_.m(_.v,{cond:function(){var y=P();return F()&&(n(y)||b(y))},
then:function(){var y={};return _.m(_.bn,{className:_.XB("learningJourneyQuizYoututorOptionIcon",(y.learningQuizComponentQuizPulse=function(){return X()===S().correctAnswerIndex&&b(P())},y)),
size:24,icon:function(){return b(P())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.m(_.v,{cond:F,
then:function(){return _.m("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.m("div",{class:"learningJourneyQuizYoututorExplanationText"},_.m(_.v3,{text:function(){return S().explanationHeaderText}})),_.m(_.v3,{text:function(){return S().optionsData[X()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"te");
lb8.idomCompat=!0;var Vuo;_.qQv=_.d(function(p){var J=null,S=null,H=null,M=function(){return p.data()},X=function(){return _.es(_.$8(M()))},Z=function(){return!!X().optionColor},n=_.K(_.eQ(-1,void 0,"gXauJb")),b=n.next().value,F=n.next().value,f=function(a){return b()===a},O=function(a){return M().correctAnswerIndex===a},A=function(){return b()!==-1},P=function(){return b()===M().correctAnswerIndex},W=function(){var a=M(),q=A(),w=P();
return q?w?a.successTitle:a.failureTitle:a.questionHeaderText},y=function(){var a=A(),q=P();
return a?q?264685:264684:264683},t=function(){var a=M();
return A()?a.explanationText:a.questionSubheaderText},D=function(){return!!M().video},k=function(a){return P()&&O(a)},E=_.Kb(function(){F(-1);
return!1});
return _.m(_.v,{cond:function(){return M().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.m(lb8,{data:function(){return M()}})},
else:function(){return _.m("learning-journey-quiz-view-model",{class:_.XB("learningQuizComponentHost",p.className),style:_.G7({background:function(){return X().backgroundColor}})},_.m(_.v,{cond:D,
then:function(){return _.m("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.G7({background:function(){return X().videoBackgroundColor}})},_.m(_.AH,{data:function(){return M().video}},{lockupViewModel:function(a){return _.m(_.Vy,{data:a.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.m("div",{class:"learningQuizComponentQuizContainer"},_.m("div",{class:"learningQuizComponentQuiz"},_.m("div",{class:"learningQuizComponentQuizContent"},_.m(_.v,{cond:function(){return!!M().aiGeneratedQuizLabel},
then:function(){return _.m("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.m(_.v3,{text:function(){return M().aiGeneratedQuizLabel}}))}}),_.m("div",{class:"learningQuizComponentQuizHeader",
style:_.G7({"align-items":function(){return M().overflowMenu?"start":"center"}})},_.m("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.G7({"min-height":function(){return M().overflowMenu?"48px":"26px"}})},_.m("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.Y2(function(a){_.WY(y(),a,J,function(q){J=q})}),
style:_.G7({color:function(){return X().primaryTextColor}}),
"client-ve-type":y},_.m(_.v3,{text:W}))),_.m("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.m(_.v,{cond:A,then:function(){return _.m("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.Y2(function(a){_.WY(264687,a,S,function(q){S=q})}),
"on:click":E,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.m("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.G7({fill:function(){return X().primaryTextColor}})},_.m("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"})))}}),
_.m(_.AH,{data:function(){return M().overflowMenu}},{buttonViewModel:function(a){return _.m(_.D0,{data:a.data})}}))),_.m("div",{class:"learningQuizComponentQuizSubheader",
el:_.Y2(function(a){_.WY(264688,a,H,function(q){H=q})}),
style:_.G7({color:function(){return X().secondaryTextColor}}),
"client-ve-type":264688},_.m(_.v3,{text:t}))),_.m("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.m(_.dY,{each:function(){return M().optionsData||[]}},function(a,q){var w={};
return _.m("button",{class:_.XB("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(w.learningQuizComponentQuizHover=function(){return!A()},w.learningQuizComponentQuizOptionWithCustomColor=Z,w.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return k(q())},w.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!P()&&f(q())},w.learningQuizComponentQuizIncorrectShake=function(){return!P()&&
f(q())},w.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return A()&&!f(q())},w)),
"on:click":_.Kb(function(){if(A())return!1;F(q());return!1}),
style:_.G7({background:function(){var I=q();return A()&&f(I)?"":Z()?X().optionColor:"transparent"}}),
"aria-disabled":A,"client-ve-type":264686},_.m("div",{class:"learningQuizComponentQuizOptionContainer"},_.m(_.v,{cond:A,then:function(){return _.m(Vuo,{isOptionCorrect:O,optionIndex:q,isOptionSelectedAndCorrect:k,colors:X})}}),_.m(_.v3,{text:a.optionText})))})))))}})},"ue");
Vuo=_.d(function(p){var J={};return _.m("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var S=p.optionIndex();return p.isOptionCorrect(S)?"0 0 24 24":"0 -960 960 960"},
class:_.XB("learningJourneyQuizViewModelQuizOptionIconLeading",(J.learningQuizComponentQuizPulse=function(){return p.isOptionSelectedAndCorrect(p.optionIndex())},J)),
style:_.G7({fill:function(){return p.colors().primaryTextColor}})},_.m("path",{d:function(){var S=p.optionIndex();
return p.isOptionCorrect(S)?"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"}}))},"ve");
_.qQv.idomCompat=!0;_.ci(_.qQv,"learning-journey-quiz-view-model",{props:{data:_.fD,className:_.fD}});var ab8=_.d(function(p){var J=_.K((0,_.MjE)(function(){var Z;return{targetId:(Z=p.data().config)==null?void 0:Z.suspenseKey,contents:[p.data()]}})).next().value,S=_.vO().resolve(_.Ov),H=function(){var Z=J().contents.length>0?J().contents[0]:void 0;
return Z==null?void 0:Z.config},M=function(){var Z;
return(Z=H())==null?void 0:Z.entityTriggerConfig},X=_.v$(iZw,function(){var Z,n;
return(n=(Z=M())==null?void 0:Z.entityKey)!=null?n:""});
_.lf(function(){var Z,n,b,F=(b=Number((Z=M())==null?void 0:(n=Z.invalidationTimestamp)==null?void 0:n.seconds))!=null?b:0,f,O,A;if(((A=Number((f=X())==null?void 0:(O=f.lastUpdated)==null?void 0:O.seconds))!=null?A:0)>F){var P;(Z=(P=H())==null?void 0:P.continuationCommand)&&S.resolveCommand(Z)}},"tC8nKe");
return _.m("yt-suspense-view-model",{class:_.XB("ytSuspenseViewModelHost")},_.m(_.AH,{data:function(){var Z;return(Z=H())==null?void 0:Z.contents}},{lockupViewModel:_.Vy}))},"xe");var E1v=_.d(function(p){var J=_.jh(p,{palette:void 0,isLastItem:!1}),S=J.palette,H=J.isLastItem,M=function(){return p.data().isHighlighted},X=function(){var b;
return bKg((b=S())==null?void 0:b.iconDisabledColor)},Z=function(){var b;
return bKg((b=S())==null?void 0:b.primaryTitleColor)},n=function(){var b;
return bKg((b=S())==null?void 0:b.secondaryTitleColor)};
J={};return _.m("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.Y2(_.sl(function(){return p.data().rendererContext}))},_.m(_.AH,{data:function(){return p.data().thumbnail}},{thumbnailViewModel:_.sz}),_.m("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.m("div",{class:_.XB("ytMacroMarkerListItemViewModelTimeDescription",(J.ytMacroMarkerListItemViewModelHighlighted=M,J)),
style:_.G7({"background-color":function(){return M()?Z():X()},
color:function(){return M()?"":n()}})},_.m(_.v3,{text:function(){return p.data().timestamp}})),_.m("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.G7({"background-color":function(){return H()?"transparent":X()}})}),_.m("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(M()?Z():n())}},_.m(_.v3,{text:function(){return p.data().title}}))))},"ye");_.P8=_.d(function(p){function J(KL){k("transform:translateX("+(_.jn("HTML_DIR")==="rtl"?"":"-")+KL+"px)")}
function S(KL){return Math.min(Math.max(KL,0),D()-I())}
function H(){var KL=q()+Pg();return M()?(Math.round(I()/KL)||1)*KL:0}
var M=function(){return p.data().items||[]},X=function(){return p.data().previousButton},Z=function(){return p.data().nextButton},n=function(){var KL,HE;
return(HE=(KL=p.disableArrows)==null?void 0:KL.call(p))!=null?HE:!1},b=function(){var KL;
return!((KL=p.forceNarrowLayout)==null||!KL.call(p))},F=_.BW(function(){var KL;
return!((KL=p.centerAlignItems)==null||!KL.call(p))&&D()<=I()},void 0,"Uto0kc"),f=_.nE("horizontal-shelf-view-model"),O=_.nE("div"),A=_.K(_.eQ(0,void 0,"G0xZB")),P=A.next().value,W=A.next().value;
A=_.K(_.eQ(0,void 0,"kqCYFf"));var y=A.next().value,t=A.next().value,D=y;y=_.K(_.eQ("",void 0,"Hh6Uye"));A=y.next().value;var k=y.next().value;y=_.K(_.eQ(0,void 0,"yMGBKb"));var E=y.next().value,a=y.next().value,q=E;y=_.K(_.eQ(0,void 0,"VChthd"));E=y.next().value;var w=y.next().value,I=E;y=_.K(_.eQ(!1,void 0,"qJlhhe"));var Z3=y.next().value,vg=y.next().value;y=_.K(_.eQ(0,void 0,"x7H94"));E=y.next().value;var yX=y.next().value,Pg=E;y=_.K(_.eQ(0,void 0,"ksuUee"));var ov=y.next().value,NW=y.next().value;
y=_.K(_.eQ("50%",void 0,"uxCxde"));var TW=y.next().value,Ys=y.next().value,Go=function(){var KL,HE=(KL=p.data())==null?void 0:KL.responsiveContainerConfiguration,o8,xU;return HE?Ty(HE==null?void 0:HE.responsiveSize):(xU=(o8=p.sizing)==null?void 0:o8.call(p))!=null?xU:"STANDARD"};
y=_.BW(function(){return!n()&&P()>0},void 0,"XK60w");
E=_.BW(function(){return!n()&&P()<D()-I()},void 0,"D22LVd");
var $U=function(){W(S(P()-H()));J(P())},LL=function(){W(S(P()+H()));
J(P())},fd=function(){f.value!==null&&t8()},Qv;
_.ad(function(){t8();window.ResizeObserver?(Qv=new ResizeObserver(_.Uj(fd,0)),Qv.observe(f.value)):window.addEventListener("resize",fd)});
_.VY(function(){if(window.ResizeObserver){var KL;(KL=Qv)==null||KL.disconnect()}else window.removeEventListener("resize",fd)});
var t8=function(){var KL=f.value.clientWidth,HE=p.includeMargin!==void 0?p.includeMargin():!1,o8;var xU=p.hasPeek!==void 0?p.hasPeek():!((o8=p.data())==null||!o8.hasPeek);KL=_.N6({containerWidth:KL,hasPeek:xU,sizing:Go(),marginSettings:HE?b()?4:1:0});yX(KL.gutter);NW(KL.margin);a(KL.itemWidth);vg(KL.maxContainerWidth<528||b());w(KL.maxContainerWidth);M()&&t((KL.itemWidth+KL.gutter)*M().length-KL.gutter);if(M()){var eL;if(((eL=p.thumbnailAspectRatio)==null?void 0:eL.call(p))!==void 0){var Ld;Ys(q()/
NR3((Ld=p.thumbnailAspectRatio)==null?void 0:Ld.call(p))/2+"px")}else Ys("50%")}},Wp={},ON={};
return _.m("horizontal-shelf-view-model",{class:_.XB("ytwHorizontalShelfViewModelHost",p.className),el:f},_.m(_.v,{cond:function(){var KL;return p.data().header&&!((KL=p.horizontalShelfExperiments)==null?0:KL.call(p).hideHeader)},
then:function(){return _.m("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.G7({width:function(){return I()+"px"},
padding:function(){return"0 "+ov()+"px"}})},_.m(_.AH,{data:function(){return p.data().header}},{sectionHeaderViewModel:function(KL){return _.m(_.EP,{data:KL.data,
disableHorizontalPadding:!0,forceSmallLayout:Z3,useResponsiveLayout:!0})}}))}}),_.m("div",{class:_.XB("ytwHorizontalShelfViewModelOuterContainer",(Wp.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return F()},Wp)),
style:_.G7({"margin-top":function(){var KL,HE=p.data().header&&!((KL=p.horizontalShelfExperiments)==null?0:KL.call(p).hideHeader),o8;return(((o8=p.ensureMarginTop)==null?0:o8.call(p))&&!HE?12:0)+"px"}})},_.m("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.G7({width:function(){return I()+"px"},
padding:function(){return"0 "+ov()+"px"},
overflow:function(){return n()?"auto":"hidden"}})},_.m("div",{class:_.XB("ytwHorizontalShelfViewModelItems",(ON.ytwHorizontalShelfViewModelCenterAlignItems=function(){return F()},ON)),
el:O,style:A},_.m(_.AH,{data:M},{macroMarkerListItemViewModel:function(KL,HE){return _.m("div",{style:_.G7({width:function(){return q()+"px"},
"margin-right":function(){return(HE()===M().length-1?0:Pg())+"px"}})},_.m(E1v,{data:KL.data,
palette:_.rw(p.palette),isLastItem:function(){return HE()===M().length-1}}))},
lockupViewModel:function(KL,HE){var o8=KL.data;return _.m("div",{style:_.G7({width:function(){return q()+"px"},
"margin-right":function(){return(HE()===M().length-1?0:Pg())+"px"}})},_.m(_.Vy,{data:o8,
containerType:4,sizing:Go,protectBackground:p.protectBackground,thumbnailFixedWidth:function(){return mTv(o8())+"px"},
thumbnailTargetWidth:function(){return mTv(o8())}}))},
suspenseViewModel:function(KL,HE){return _.m("div",{style:_.G7({width:function(){return q()+"px"},
"margin-right":function(){return(HE()===M().length-1?0:Pg())+"px"}})},_.m(ab8,{data:KL.data}))}}))),_.m(_.v,{cond:y,
then:function(){return _.m("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.G7({top:function(){return TW()}})},_.m(_.AH,{data:X},{buttonViewModel:function(KL){return _.m(_.D0,{data:KL.data,
onClick:$U})}}))}}),_.m(_.v,{cond:E,
then:function(){return _.m("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.G7({top:function(){return TW()}})},_.m(_.AH,{data:Z},{buttonViewModel:function(KL){return _.m(_.D0,{data:KL.data,
onClick:LL})}}))}})))},"ze");
_.P8.idomCompat=!0;var YQv=_.d(function(p){var J=function(){return p.data().targetId||""},S=function(){var y;
return((y=p.data())==null?void 0:y.expansionEntityKey)||""},H=_.v$(_.Xc4,S),M=!0,X=function(){var y;
return((y=H())==null?void 0:y.value)===J()},Z=function(y){_.Y3(_.P$("stringEntity",S(),{key:S(),
value:y?J():""}))};
_.qz(function(){M=!1;p.data().isExpanded&&Z(!0)});
var n=function(){if(X()){var y=!0;p.onCollapse!==void 0&&(y=p.onCollapse());y&&Z(!1)}else Z(!0)},b=_.Kb(n),F=function(){var y;
return(((y=p.accordionStyle)==null?void 0:y.call(p))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},f=_.nE("div"),O=function(){var y,t;
return(t=(y=_.e(p.data().rendererContext,_.PY))==null?void 0:y.label)!=null?t:""},A=function(){var y,t;
return{disabled:(y=p.hideIfNotExpanded)==null?void 0:y.call(p),ariaHidden:(t=p.hideIfNotExpanded)==null?void 0:t.call(p)}},P={},W={};
return _.m("yt-accordion-item-view-model",{class:_.XB("ytAccordionItemViewModelHost",p.className,(P.ytAccordionItemViewModelExpanded=function(){return X()},P.ytAccordionItemViewModelHidden=function(){var y;
return(y=p.hideIfNotExpanded)==null?void 0:y.call(p)},P.ytAccordionItemViewModelMini=F,P)),
"data-target-id":J},_.m("div",{class:"ytAccordionItemViewModelContainer"},_.m("div",{class:"ytAccordionItemViewModelLeftSection","on:click":b,title:O,"aria-hidden":function(){var y;return(y=p.hideIfNotExpanded)==null?void 0:y.call(p)}},_.m(_.v3,{text:function(){return p.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:O})),_.m("div",{class:"ytAccordionItemViewModelRightSection"},_.m(_.AH,{data:function(){return X()?p.data().expandButton:p.data().collapseButton}},{buttonViewModel:function(y){return _.m(_.D0,{data:y.data,
className:"ytAccordionItemViewModelToggleButton",onClick:n,buttonOverrides:A})}}))),_.m("div",{class:"ytAccordionItemViewModelContainer"},_.m("div",{class:_.XB("ytAccordionItemViewModelContent",(W.ytAccordionItemViewModelExpandedSubtitle=function(){return X()},W)),
el:f,style:_.G7({"max-height":function(){return M?"auto":X()?f.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!X()}},_.m(_.v,{cond:function(){return!F()},
then:function(){return _.m(_.v3,{text:function(){return p.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.m(_.AH,{data:function(){return p.data().content}},{horizontalShelfViewModel:function(y){return _.m(_.P8,{data:y.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Be");_.rN8=_.d(function(p){var J=_.K((0,_.MjE)(p.data)).next().value,S=function(){return p.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},H=function(){return S()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},M=_.K(_.eQ(!0,void 0,"VFpYAb")),X=M.next().value,Z=M.next().value,n=function(){return H()&&X()},b=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){Z(!X())}}},F=_.Kb(function(){J().onTitleTap&&_.Dm(J().onTitleTap||{})});
M={};return _.m("yt-accordion-view-model",{class:_.XB("ytAccordionViewModelHost",(M.ytAccordionViewModelMinimized=function(){return n()},M)),
"data-target-id":function(){return p.data().targetId||""}},_.m(_.v,{cond:function(){return H()||!!J().title},
then:function(){return _.m("div",{class:"ytAccordionViewModelHeader"},_.m("div",{class:"ytAccordionViewModelTitleSection"},_.m("div",{class:"ytAccordionViewModelTitleWrapper"},_.m(_.v,{cond:function(){return!!p.data().headerIcon},
then:function(){return _.m(_.bn,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var f;return(f=p.data().headerIcon)==null?void 0:f.iconType}})}}),_.m("div",{class:"ytAccordionViewModelTitle",
"on:click":F},_.m(_.v3,{className:"ytAccordionViewModelTitleText",text:function(){return J().title}})))),_.m("div",{class:"ytAccordionViewModelButtonSection"},_.m(_.v,{cond:H,
then:function(){return _.m(_.gF,{data:b,iconName:function(){return n()?"chevron_down":"chevron_collapse"}})}})))}}),_.m("div",{class:"ytAccordionViewModelContent"},_.m(_.AH,{data:function(){return J().contents}},{accordionItemViewModel:function(f){return _.m(YQv,{data:f.data,
className:"ytAccordionViewModelRow",accordionStyle:S,hideIfNotExpanded:n,onCollapse:function(){return H()?(Z(!0),!1):!0}})}})),_.m("div",null,_.m(_.v,{cond:function(){return!H()&&(!!J().disclaimerFooter||!!J().footer)},
then:function(){return _.m("div",{class:"ytAccordionViewModelFooter"},_.m(_.v3,{text:function(){return J().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.m(_.AH,{data:function(){return p.data().footer}},{flexibleActionsViewModel:function(f){return _.m(_.KB,{data:f.data,
layout:0})}}))}})))},"Ce");_.ci(_.rN8,"yt-accordion-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=null,S=null,H,M=(H=_.vO().resolve(_.F9(_.uC)))==null?void 0:H(),X=_.K(_.eQ(!1,void 0,"CmEVtc"));H=X.next().value;var Z=X.next().value;X=_.K(_.eQ(!0,void 0,"yo9dR"));var n=X.next().value,b=X.next().value,F=_.nE("textarea",function(t){_.WY(264503,t,J,function(D){J=D})}),f=function(t){Z(!0);
t={learningJourneyFormData:{query:t}};_.Dm(p.data().searchEndpoint||{},{form:{formData:t}});return!1},O=_.Kb(function(t){t.target.closest("button-view-model")&&Z(!0)});
X=_.Kb(function(){b(F.value.value.length===0)});
var A=_.Kb(function(t){if(t.key==="Enter"&&!t.shiftKey&&!n()){var D=t.target;t.preventDefault();f(D.value)}}),P={},W={},y={};
return _.m("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.m("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.m(_.a4,{data:function(){return p.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.m("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.m("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.m("div",{class:_.XB("ytLearningJourneyZeroStateSearchBar",(P.ytLearningJourneyZeroStateSearchBarDark=M,P))},_.m("textarea",{class:_.XB("ytLearningJourneyZeroStateTextInput",(W.ytLearningJourneyZeroStateTextInputDark=M,W)),el:F,"on:keyup":X,"on:keydown":A,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.m("div",{class:_.XB("ytLearningJourneyZeroStateSearchButtonContainer",(y.ytLearningJourneyZeroStateSearchButtonContainerDark=M,y))},_.m(_.D0,{data:function(){return _.e(p.data().searchButton,_.mO)},
className:"search-button",onClick:function(){return f(F.value.value)},
buttonOverrides:function(){return{disabled:n(),style:M?"mono-inverse":"mono",size:"XL"}}}))),_.m(_.v,{cond:function(){return!!p.data().errorBanner},
then:function(){return _.m("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Y2(function(t){_.WY(264617,t,S,function(D){S=D})})},_.m(_.AH,{data:function(){return p.data().errorBanner}},{alertBannerViewModel:function(t){return _.m(_.v18,{data:t.data,
"client-ve-type":264617})}}))}})),_.m(_.v,{cond:H,
then:function(){return _.m("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.m(_.AH,{data:function(){return p.data().loader}},{learningJourneyLoaderViewModel:function(t){return _.m(_.uwM,{data:t.data})}}))},
else:function(){return _.m("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.m(_.v,{cond:function(){return!!p.data().learningJourneyShelf},
then:function(){return _.m("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.m("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return p.data().learningJourneySectionTitle}),_.m(_.AH,{data:function(){return p.data().learningJourneyShelf}},{horizontalShelfViewModel:function(t){return _.m(_.P8,{data:t.data,
centerAlignItems:!0})}}))}}),_.m("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.m("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return p.data().suggestedJourneySectionTitle}),_.m("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":O},_.m(_.AH,{data:function(){return p.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(t){return _.m(_.KB,{data:t.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"De"),"yt-learning-journey-zero-state",{props:{data:_.fD}});var jbU=_.d(function(p){var J=p.data;return _.m("ytvl-live-leaderboard-item-action-content-view-model",{class:_.XB("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.m(_.v3,{text:function(){var S;return(S=J())==null?void 0:S.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.m(_.AH,{data:function(){return J().actionButton}},{buttonViewModel:function(S){return _.m(_.D0,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:S.data})}}))},"Ee");var wVE=_.d(function(p){var J=p.data;return _.m("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.XB("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.m(_.v3,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var S;return(S=J())==null?void 0:S.displayName},
ellipsisTruncate:!0}),_.m(_.AH,{data:function(){return J().badge}},{buttonViewModel:function(S){return _.m(_.D0,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:S.data})}}))},"Fe");_.ci(_.d(function(p){var J=p.data;return _.m("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.m("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.m(_.v3,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var S;return(S=J())==null?void 0:S.rank}})),_.m("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.m(_.AH,{data:function(){return J().avatar}},{avatarViewModel:_.iF})),_.m("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.m(_.AH,{data:function(){return J().content}},{liveLeaderboardItemChannelContentViewModel:wVE,
liveLeaderboardItemActionContentViewModel:jbU})),_.m(_.v3,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var S;return(S=J())==null?void 0:S.points}}))},"Ge"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;return _.m("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.m(_.v3,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var S,H;return(S=J())==null?void 0:(H=S.ranking)==null?void 0:H.rank}}),_.m("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.m(_.AH,{data:function(){return J().avatar}},{avatarViewModel:_.iF})),_.m(_.v3,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var S,H;return(S=J())==null?void 0:(H=S.channelContent)==null?void 0:H.channelName}}),_.m(_.v3,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var S;return(S=J())==null?void 0:S.points}}))},"He"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.fD}});var x5m=_.d(function(p){p=_.jh(p,{wrapper:!1}).wrapper;return _.m(_.v,{cond:p,then:function(){return _.m("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.m("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.m("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ie");
x5m.idomCompat=!0;var cNo=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],Ibd=_.d(function(p){var J=p.data;var S=_.Y2(),H=_.BW(function(){return J().command},void 0,"fyYsT");
_.lf(function(){H()&&_.ge(H(),{form:{element:S.value}})},"B0nxdb");
return _.m("div",{el:S,class:"YtQrCodeRendererHostContainer"},_.m(_.v,{cond:function(){return J().qrCodeImage},
then:function(M){return _.m(_.a4,{data:M,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.m(_.v,{cond:function(){return J().spinner},
then:function(){return _.m(x5m,null)}})}}),_.m(_.v,{cond:function(){return J().label},
then:function(M){return _.m(_.v3,{text:M,className:"YtQrCodeRendererHostLabel"})}}),_.m(_.v,{cond:function(){return J().labels},
then:function(M){return _.m("div",{class:"YtQrCodeRendererHostLabels"},_.m(_.dY,{each:M},function(X){return _.m(_.v3,{text:X})}))}}))},"Le");_.ci(_.d(function(p){var J=p.data;var S=_.BW(function(){return J().qrEntityKey},void 0,"LmZ2xf"),H=_.BW(function(){return J().deleteEntityOnDismiss},void 0,"my0Tzb"),M=_.BW(function(){return J().command},void 0,"hzECIb"),X=_.v$(PDW,S);
p=_.BW(function(){return J().qrCodeImage},void 0,"AnD9rc");
var Z=_.BW(function(){return J().style&&cNo.includes(J().style)},void 0,"f5fZv"),n=_.Aw({visibilityCallback:function(b){b&&M()&&_.ge(M())},
showOption:{calledOnce:!0,state:"visible"}});_.ad(function(){_.VY(function(){H()&&S()&&_.ED().dispatch(_.P$("qrCodeEntity",S()))})});
return _.m("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.Y2(n)},_.m(_.v,{cond:Z,then:function(){return _.m(_.v,{cond:X,then:function(b){return _.m(Ibd,{data:b})}})}}),_.m(_.v,{cond:p,
then:function(b){return _.m(_.a4,{data:b,alt:""})}}))},"Je"),"yt-qr-code-renderer",{props:{data:_.fD}});var pgw=_.d(function(p){var J=function(){return _.Bt(1728053247&(p.barColor!==void 0?Fm(p.barColor()):4278190080))};
return _.m("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.m("div",{class:"ytVideoOverviewGhostCardDetails"},_.m(La8,{animationDelay:0,percentWidth:100,barColor:function(){return J()}}),_.m(La8,{animationDelay:600,
percentWidth:60,barColor:function(){return J()}})))},"Me"),La8=_.d(function(p){return _.m("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+p.percentWidth()+"%"}},_.m("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var J=p.animationDelay(),S=p.barColor();return"animation-delay:"+J+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+S+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ne");var J9f;_.SiP=_.d(function(p){function J(D){Z(D)}
var S=p.data;var H=_.nE("yt-video-overview-view-model"),M=_.mo("div");p=_.K(_.eQ(-1,void 0,"dW11He"));var X=p.next().value,Z=p.next().value;p=_.K(_.eQ(0,void 0,"LqrsK"));var n=p.next().value,b=p.next().value,F={},f=_.v$(Few,function(){return S().asyncDataEntityKey}),O=function(){var D;
if((D=f())==null?0:D.videoOverviewViewModel){var k;return _.e((k=f())==null?void 0:k.videoOverviewViewModel,y0n)}return S()};
_.ad(function(){b(Math.min((H.value.clientWidth-24)/4-8,72))});
var A=function(D){Z(D);(M==null?0:M.value)&&M.value.children[D]&&M.value.children[D].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
oGi(H,function(){var D;if((D=O())==null||!D.inlinePlaybackEndpoint)return null;var k;D=F==null?void 0:(k=F.thumbnailElRef)==null?void 0:k.value;if(!D)return null;var E;k=(E=O())==null?void 0:E.inlinePlaybackEndpoint;E=_.e(k,Vo8);return{multipleVideoPreviewData:{data:(E==null?0:E.playerDescriptors)&&(E==null?0:E.playerDescriptors.length)?E.playerDescriptors:[],thumbnailElement:D,trackingParams:"test",callbacks:{onPlaybackStarted:A},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var P=function(){var D;return((D=O())==null?void 0:D.headerSubtext)!==void 0?!0:!1},W=function(){var D,k=Fm((D=O())==null?void 0:D.titleColor);
return k?"color: "+_.Bt(k)+";":void 0},y=function(){var D,k=Fm((D=O())==null?void 0:D.subtextColor);
return k?"color: "+_.Bt(k)+";":void 0},t=function(){return _.m("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.m("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return W()}},_.m(_.v3,{text:function(){var D;
return(D=O())==null?void 0:D.headerText}})),_.m(_.v,{cond:P,
then:function(){return _.m("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.m("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return y()}},_.m(_.bn,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.m("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return y()}},_.m(_.v3,{text:function(){var D;
return(D=O())==null?void 0:D.headerSubtext}})))}}))};
p={};return _.m("yt-video-overview-view-model",{class:_.XB("ytGenAiVideoOverviewViewModelHost",(p.ytGenAiVideoOverviewViewModelMweb=!1,p.ytGenAiVideoOverviewViewModelDesktop=!0,p)),el:H,style:function(){var D,k=Fm((D=O())==null?void 0:D.backgroundColor);return k?"background-color: "+_.Bt(k)+";":void 0}},_.m(_.v,{cond:function(){var D;
return(D=O())==null?void 0:D.isLoading},
then:function(){return _.m(pgw,{barColor:function(){var D;return(D=O())==null?void 0:D.titleColor}})},
else:function(){return _.m(_.fV,null,null,_.m("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.m(_.AH,{data:function(){var D;return(D=O())==null?void 0:D.thumbnail}},{thumbnailViewModel:function(D){return _.m(_.sz,{data:D.data,
aspectRatio:0,playbackRef:zAs(F)})}})),_.m("div",{class:"ytGenAiVideoOverviewViewModelDetails"},t(),_.m(_.v,{cond:function(){var D,k,E,a;
return((D=O())==null?void 0:(k=D.listItems)==null?void 0:k.length)!==void 0&&((E=O())==null?void 0:(a=E.listItems)==null?void 0:a.length)>0?!0:!1},
then:function(){return _.m("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:M},_.m(_.dY,{each:function(){var D;return(D=O())==null?void 0:D.listItems}},function(D,k){return _.m(J9f,{image:D.image,
index:k,isSelected:function(){return k()===X()},
onClick:J,itemWidth:n})}))}}),_.m("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.m("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return W()}},_.m(_.v3,{text:function(){var D,k,E,a,q,w,I;
return(I=(D=O())==null?void 0:(k=D.listItems)==null?void 0:(E=k[X()])==null?void 0:E.headline)!=null?I:(a=O())==null?void 0:(q=a.listItems)==null?void 0:(w=q[0])==null?void 0:w.headline}})),_.m("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return y()}},_.m(_.v3,{text:function(){var D,k,E,a,q,w,I;
return(I=(D=O())==null?void 0:(k=D.listItems)==null?void 0:(E=k[X()])==null?void 0:E.subtext)!=null?I:(a=O())==null?void 0:(q=a.listItems)==null?void 0:(w=q[0])==null?void 0:w.subtext}})))))}}))},"Oe");
J9f=_.d(function(p){var J=p.image;var S=p.itemWidth;var H=p.index;var M=p.isSelected;var X=p.onClick;p=_.Kb(function(){H!==void 0&&X!==void 0&&X(H());return!1});
var Z={};return _.m("div",{class:_.XB("ytGenAiVideoOverviewViewModelCarouselItem",(Z.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return M==null?void 0:M()},Z)),
style:function(){return"width: "+S()+"px;"},
"on:click":p},_.m(_.a4,{data:J,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.m(_.v,{cond:function(){return M==null?void 0:M()},
then:function(){return _.m("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.m("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Pe");
_.SiP.idomCompat=!0;_.ci(_.SiP,"yt-video-overview-view-model",{props:{data:_.fD}});_.HLN=_.d(function(p){var J=p.data;var S=p.topbarOffset;var H,M=((H=_.vO().resolve(_.F9(_.uC)))==null?void 0:H())||!1;return _.m("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var X=J();var Z,n,b=M?(Z=X.config)==null?void 0:Z.darkThemeBackgroundColor:(n=X.config)==null?void 0:n.lightThemeBackgroundColor;X=b?_.yi(b):void 0;X="background-color: "+X+";";S!==void 0&&(X+="top: -"+S()+"px;");return X},
"aria-hidden":!0},_.m(_.v,{cond:function(){var X,Z,n;return!!((X=J().backgroundImageConfig)==null?0:(Z=X.image)==null?0:(n=Z.sources)==null?0:n.length)},
then:function(){return _.m(_.a4,{data:function(){var X;return(X=J().backgroundImageConfig)==null?void 0:X.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.m("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+vRi(M,J().gradientColorConfig)+";"}}))},"Qe");
_.HLN.idomCompat=!0;var Mtl=_.d(function(p){var J=p.data;var S=p.isOverlay;return _.m("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.m("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.m(_.AH,{data:function(){return J().header}},{sectionHeaderViewModel:function(H){return _.m(_.EP,{data:H.data,
isOverlay:S})}})),_.m("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.m(_.AH,{data:function(){return J().channelInfoButtons}},{flexibleActionsViewModel:_.KB})),_.m("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.m(_.AH,{data:function(){return J().description}},{descriptionPreviewViewModel:function(H){return _.m(_.aa,{data:H.data,
isOverlay:S})}})))},"Re");
Mtl.idomCompat=!0;var XgP=_.d(function(p){var J=p.data;var S={};return _.m("factoid-view-model",{class:_.XB("ytwFactoidViewModelHost",(S.ytwFactoidViewModelHostOverlay=p.isOverlay,S))},_.m(_.v3,{text:function(){return J().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.m(_.v3,{text:function(){return J().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Se");
XgP.idomCompat=!0;var iL$=_.d(function(p){var J=p.data;var S=p.isOverlay;return _.m("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.m(_.AH,{data:function(){return J().factoids}},{factoidViewModel:function(H){return _.m(XgP,{data:H.data,
isOverlay:S})}}))},"Te");
iL$.idomCompat=!0;_.R4j=_.d(function(p){var J=p.data;var S=p.isOverlay;return _.m("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.m(_.AH,{data:function(){return J().items}},{channelInfoViewModel:function(H){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(Mtl,{data:H.data,
isOverlay:S}))},
coursePerksViewModel:function(H){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(kwp,{data:H.data,isOverlay:S}))},
descriptionPreviewViewModel:function(H){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(_.aa,{data:H.data,isOverlay:S}))},
factoidsRowViewModel:function(H){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(iL$,{data:H.data,isOverlay:S}))},
progressViewModel:function(H){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(Nhq,{data:H.data,isOverlay:S}))}}))},"Ue");var Kie=_.d(function(p){return _.m("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.m(_.AH,{data:function(){return p.data().content}},{courseMetadataViewModel:function(J){return _.m(_.R4j,{data:J.data,
isOverlay:p.isOverlay})},
progressViewModel:function(J){return _.m(Nhq,{data:J.data})}}))},"Ve");var ZLM=_.d(function(p){var J=p.data;p=p.className;var S=function(){var M;return _.Ul((M=J())==null?void 0:M.rendererContext)},H={};
H=(H.dynamicTextViewModelHost=!0,H.dynamicTextViewModelHostTappable=function(){return S()},H);
return _.m("yt-dynamic-text-view-model",{el:_.Y2(_.sl(function(){var M;return(M=J())==null?void 0:M.rendererContext})),
role:function(){return S()?"link":void 0},
tabindex:function(){return S()?0:void 0},
class:_.XB(p,H)},_.m("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var M,X,Z;return(Z=(X=_.e((M=J())==null?void 0:M.rendererContext,_.PY))==null?void 0:X.label)!=null?Z:""}},_.m(_.v3,{text:function(){return J().text},
userInput:!0})))},"We");
ZLM.idomCompat=!0;_.zR=_.d(function(p){var J=p.data;var S=p.isPositionRelative;var H=_.OKL("(max-width: 527.9px)"),M=function(){var X,Z;return(Z=(X=J())==null?void 0:X.style)!=null?Z:"IMAGE_BANNER_STYLE_FULL_BLEED"};
p={};return _.m("yt-image-banner-view-model",{el:_.Y2(_.sl(function(){var X;return(X=J())==null?void 0:X.rendererContext})),
class:_.XB((p.ytImageBannerViewModelHost=!0,p.ytImageBannerViewModelInset=function(){return ADv(M())},p.ytImageBannerViewModelPositionAbsolute=function(){return _.a2(!0)&&!(S==null?0:S())},p.ytImageBannerViewModelSmallInset=function(){return ADv(M())&&H()},p.ytImageBannerViewModelTappable=function(){var X;
return _.Ul((X=J())==null?void 0:X.rendererContext)},p))},_.m(_.v,{cond:function(){var X;
return(X=J())==null?void 0:X.image},
then:function(){return _.m(_.a4,{data:function(){return J().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.m(_.AH,{data:function(){var X;
return(X=J())==null?void 0:X.overlays}},{thumbnailHoverOverlayViewModel:Xq}))},"Xe");
_.zR.idomCompat=!0;var nsf;nsf=_.d(function(p){var J=p.condition;var S=p.content;return _.m(_.v,{cond:J,then:function(){return _.m("div",{class:"yt-page-header-view-model__scroll-container"},S())},
else:function(){return S()}})},"Ye");
_.GWf=_.d(function(p){var J=p.data;var S=p.noPadding;var H=p.enableBanner;var M=p.cinematicContainerTopbarOffset;var X=p.allowCinematicContainerOverflow;var Z=p.displayAsSidebar;var n=p.displayAsPanel;var b=p.alwaysUseMediumTextDescription;var F=PLk(),f=function(){return!!J().image||!!J().animatedImage},O=function(){return!!J().background},A=function(){return(Z==null?0:Z())||(n==null?0:n())?1:F()},P=function(){return A()===1},W=function(){return P()||A()===2},y=function(){return A()===4},t=function(){var ov=
J();
var NW=!!J().heroImage;var TW=A(),Ys=zz9(J()),Go=Z==null?void 0:Z(),$U=!ov.metadata,LL;if(LL=NW?_.e(ov.heroImage,v48):_.e(ov.animatedImage||ov.image,v48)){ov=LL.style;var fd=LL.layoutMode;if(fd!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(LL=rEi(Y5g(LL)),NW)NW=fW4(TW,ov,fd,LL,Go);else b:if($U)NW=TW===1?{size:48}:{size:72};else switch(TW){case 1:NW={size:72};break b;case 2:NW={size:120};break b;default:NW=Ys<4?{size:120}:{size:160}}else NW=void 0}else NW={size:0};return NW};
p={};p=_.XB((p["yt-page-header-view-model"]=!0,p["yt-page-header-view-model--no-padding"]=function(){return!(S==null||!S())},p["yt-page-header-view-model--small-top-padding"]=function(){return P()&&!J().actions&&!(n==null?0:n())||A()===2&&!(f()||J().heroImage)},p["yt-page-header-view-model--small-bottom-padding"]=function(){return W()&&!J().actions&&!(n==null?0:n())},p["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(X==null?0:X())},p["yt-page-header-view-model--display-as-sidebar"]=
Z,p));
var D={},k=_.XB((D["yt-page-header-view-model__page-header-headline"]=!0,D["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var ov;return(ov=t())==null?void 0:ov.allowFullWidth},D)),E=function(){var ov;
return W()&&!((ov=t())==null?0:ov.allowFullWidth)},a=function(){return P()&&(!!J().heroImage||f())&&zz9(J())>0},q=function(){return a()&&(n==null?void 0:n())};
D={};var w=_.XB((D["yt-page-header-view-model__page-header-title"]=!0,D["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!a()},D["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return a()&&!q()},D["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=q,D["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=O,D));
D={};var I=_.XB((D["yt-page-header-view-model__page-header-headline-image"]=!0,D["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!J().heroImage&&W()},D));
D={};var Z3=_.XB((D["yt-page-header-view-model__page-header-banner-container"]=H,D["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var ov;return(H==null?void 0:H())&&((ov=_.e(J().banner,_.Oad))==null?void 0:ov.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},D));
D={};var vg=_.XB((D["yt-page-header-view-model__page-header-content-metadata"]=!0,D["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=O,D));D={};var yX=_.XB((D["yt-page-header-view-model__page-header-flexible-actions"]=!0,D["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!J().metadata||W()},D["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!W()},D));
D={};var Pg=_.XB((D["yt-page-header-view-model__page-header-attribution"]=!0,D["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=O,D));return _.m("yt-page-header-view-model",{class:p},_.m(_.v,{cond:O,then:function(){return _.m("div",{class:"yt-page-header-view-model__page-header-background"},_.m(_.AH,{data:function(){return J().background}},{cinematicContainerViewModel:function(ov){return _.m(_.HLN,{data:ov.data,
topbarOffset:M})}}))}}),_.m(nsf,{condition:function(){return!(Z==null||!Z())},
content:function(){return _.m("div",{class:"yt-page-header-view-model__page-header-content"},_.m(_.v,{cond:function(){return(H==null?void 0:H())&&J().banner},
then:function(){return _.m("div",{class:Z3},_.m(_.AH,{data:function(){return J().banner}},{imageBannerViewModel:_.zR}))}}),_.m("div",{class:k},_.m(_.v,{cond:f,
then:function(){return _.m(_.AH,{data:function(){var ov;if(!(ov=J().animatedImage)){ov=J();if(f()){var NW=ov=Object.assign({},ov),TW=A(),Ys=zz9(J()),Go=NW.image,$U=_.e(Go,fUo),LL=$U==null?void 0:$U.avatar,fd=_.e(LL,_.tH);if(Go&&LL&&fd){switch(TW){case 1:fd.avatarImageSize="AVATAR_SIZE_XL";break;case 2:fd.avatarImageSize="AVATAR_SIZE_XXL";break;default:Ys<4?fd.avatarImageSize="AVATAR_SIZE_XXL":fd.avatarImageSize="AVATAR_SIZE_XXXL"}_.QM(LL,_.tH,Object.assign({},fd));$U.avatar=Object.assign({},LL);_.QM(Go,
fUo,Object.assign({},$U));NW.image=Object.assign({},Go)}}ov=ov.image}return ov}},{contentPreviewImageViewModel:function(ov){return _.m(_.D2,{data:ov.data,
className:I,imageSizeConfig:t})},
decoratedAvatarViewModel:function(ov){return _.m(_.RH,{data:ov.data,className:I})}})}}),_.m(_.v,{cond:function(){return!!J().heroImage&&!E()},
then:function(){return _.m(_.AH,{data:function(){return J().heroImage}},{contentPreviewImageViewModel:function(ov){return _.m(_.D2,{data:ov.data,
className:I,imageSizeConfig:t})}})}}),_.m("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.m(_.v,{cond:function(){return!!J().heroImage&&E()},
then:function(){return _.m("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.m(_.AH,{data:function(){return J().heroImage}},{contentPreviewImageViewModel:function(ov){return _.m(_.D2,{data:ov.data,
className:I,imageSizeConfig:t})}}))}}),_.m(_.AH,{data:function(){return J().title}},{dynamicTextViewModel:function(ov){return _.m(ZLM,{data:ov.data,
className:w})}}),_.m(_.AH,{data:function(){return J().metadata}},{contentMetadataViewModel:function(ov){return _.m(_.Nf,{data:ov.data,
layout:function(){return P()?1:0},
className:vg,isOverlay:O,useMediumText:y})}}),_.m(_.v,{cond:function(){return J().description&&!P()},
then:function(){return _.m(_.AH,{data:function(){return J().description}},{descriptionPreviewViewModel:function(ov){return _.m(_.aa,{data:ov.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:O,maxLinesOverride:function(){return P()?void 0:1},
useMediumText:function(){return(b==null?void 0:b())||y()}})}})}}),_.m(_.v,{cond:function(){return J().attribution&&!W()},
then:function(){return _.m(_.AH,{data:function(){return J().attribution}},{attributionViewModel:function(ov){return _.m(kA,{data:ov.data,
className:Pg,useMediumText:y})}})}}),_.m(_.v,{cond:function(){return J().actions&&!W()},
then:function(){return _.m(_.AH,{data:function(){return J().actions}},{flexibleActionsViewModel:function(ov){return _.m(_.KB,{data:ov.data,
layout:function(){return $TW(A())},
className:yX})}})}}))),_.m("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.m(_.v,{cond:function(){return J().description&&P()},
then:function(){return _.m(_.AH,{data:function(){return J().description}},{descriptionPreviewViewModel:function(ov){return _.m(_.aa,{data:ov.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:O,maxLinesOverride:function(){return P()?void 0:1},
useMediumText:function(){return(b==null?void 0:b())||y()}})}})}}),_.m(_.v,{cond:function(){return J().attribution&&W()},
then:function(){return _.m(_.AH,{data:function(){return J().attribution}},{attributionViewModel:function(ov){return _.m(kA,{data:ov.data,
className:Pg,useMediumText:y})}})}}),_.m(_.v,{cond:function(){return J().actions&&W()},
then:function(){return _.m(_.AH,{data:function(){return J().actions}},{flexibleActionsViewModel:function(ov){return _.m(_.KB,{data:ov.data,
layout:function(){return $TW(A())},
className:yX})}})}})),_.m("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.m(_.AH,{data:function(){return J().bottomMetadataFlexibleContainer}},{flexibleContainer:function(ov){return _.m(Kie,{data:ov.data,
isOverlay:O})}})))}}))},"Ze");
_.GWf.idomCompat=!0;_.ci(_.d(function(p){var J=_.K(_.eQ(!1,void 0,"qvRy4d")),S=J.next().value,H=J.next().value;return _.m("yt-official-card-view-model",{class:_.XB("ytOfficialCardViewModelHost",p.className),style:_.G7({"background-color":function(){var M,X=Fm((M=p.data())==null?void 0:M.backgroundColor);return X?_.Bt(X):void 0}})},_.m(_.AH,{data:function(){return p.data().header}},{pageHeaderViewModel:function(M){return _.m(_.GWf,{data:M.data,
noPadding:!0})}}),_.m(_.AH,{data:function(){return p.data().contents}},{horizontalShelfViewModel:function(M){return _.m(_.P8,{data:M.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.m(_.v,{cond:S,
then:function(){return _.m("div",{class:"ytOfficialCardViewModelExpandedContent"},_.m(_.AH,{data:function(){return p.data().expandedContents}},{horizontalShelfViewModel:function(M){return _.m(_.P8,{data:M.data,
sizing:"MINI"})}}),_.m("div",{class:"ytOfficialCardViewModelCollapseButton"},_.m(_.AH,{data:function(){return p.data().collapseButton}},{buttonViewModel:function(M){return _.m(_.D0,{data:M.data,
onClick:function(){H(!S())}})}})))},
else:function(){return _.m("div",{class:"ytOfficialCardViewModelExpandButton"},_.m(_.AH,{data:function(){return p.data().expandButton}},{buttonViewModel:function(M){return _.m(_.D0,{data:M.data,
onClick:function(){H(!S())}})}}))}}))},"$e"),"yt-official-card-view-model",{props:{data:_.fD,
className:_.fD}});var bLI=_.d(function(p){var J,S=(J=_.vO().resolve(_.F9(_.uC)))==null?void 0:J();return _.m("ytw-search-friction-view-model",{class:_.XB("ytwSearchFrictionViewModelHost",p.className)},_.m("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.m("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.m(_.v,{cond:function(){return S&&p.data().darkThemeImage?p.data().darkThemeImage:p.data().image},
then:function(H){return _.m(_.a4,{data:H,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.m(_.AH,{data:function(){return p.data().overflowMenuButton}},{buttonViewModel:function(H){return _.m(_.D0,{data:H.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.m(_.v3,{text:function(){return p.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.m(_.dY,{each:function(){return p.data().bodyText||[]}},function(H){return _.m(_.v3,{text:H,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.m(_.AH,{data:function(){return p.data().actions}},{buttonViewModel:function(H){return _.m(_.D0,{data:H.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.m(_.v3,{text:function(){return p.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.m(_.v3,{text:function(){return p.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"af");
bLI.idomCompat=!0;_.ci(bLI,"ytw-search-friction-view-model",{props:{data:_.fD,className:_.fD}});_.$h=_.d(function(p){var J=_.nE("markdown-div"),S,H=(S=_.vO().resolve(_.F9(_.uC)))==null?void 0:S();_.lf(function(){var M=J.value;var X=new iAp,Z=new Map(X.JSC$9453_sanitizerTable.globalAttributePolicies);Z.set("style",{policyAction:4});X.JSC$9453_sanitizerTable=new sj(X.JSC$9453_sanitizerTable.allowedElements,X.JSC$9453_sanitizerTable.elementPolicies,X.JSC$9453_sanitizerTable.allowedGlobalAttributes,Z,X.JSC$9453_sanitizerTable.globallyAllowedAttributePrefixes);var n=["data-time"];if(n===void 0)Z=
new Set(X.JSC$9453_sanitizerTable.globallyAllowedAttributePrefixes),Z.add("data-"),X.JSC$9453_sanitizerTable=new sj(X.JSC$9453_sanitizerTable.allowedElements,X.JSC$9453_sanitizerTable.elementPolicies,X.JSC$9453_sanitizerTable.allowedGlobalAttributes,X.JSC$9453_sanitizerTable.globalAttributePolicies,Z);else{Z=new Set(X.JSC$9453_sanitizerTable.allowedGlobalAttributes);n=_.K(n);for(var b=n.next();!b.done;b=n.next()){b=b.value;if(b.indexOf("data-")!==0)throw Error("ka`"+b);Z.add(b)}X.JSC$9453_sanitizerTable=
new sj(X.JSC$9453_sanitizerTable.allowedElements,X.JSC$9453_sanitizerTable.elementPolicies,Z,X.JSC$9453_sanitizerTable.globalAttributePolicies,X.JSC$9453_sanitizerTable.globallyAllowedAttributePrefixes)}Z=new Set(X.JSC$9453_sanitizerTable.allowedGlobalAttributes);Z.add("class");X.JSC$9453_sanitizerTable=new sj(X.JSC$9453_sanitizerTable.allowedElements,X.JSC$9453_sanitizerTable.elementPolicies,Z,X.JSC$9453_sanitizerTable.globalAttributePolicies,X.JSC$9453_sanitizerTable.globallyAllowedAttributePrefixes);
_.K_(M,_.Jy4(X.build(),ezi(p.text())));We3(J.value)},"OZ439c");
S={};return _.m("div",null,_.m("markdown-div",{class:_.XB("ytwMarkdownDivHost",(S.ytwMarkdownDivDark=H,S.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var M;return((M=p.isSmallText)==null?void 0:M.call(p))||!1},S.ytwMarkdownDivHostWrapCodeBlocks=function(){var M;
return((M=p.wrapCodeBlocks)==null?void 0:M.call(p))||!1},S.ytwMarkdownDivHostEnableDefaultStyling=function(){var M;
return!((M=p.disableDefaultStyling)==null?0:M.call(p))},S)),
el:J}))},"cf");
_.$h.idomCompat=!0;var mWe=_.d(function(p){var J=p.imageData;var S=_.rw(p.isInList,!1),H=function(){return S()?{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 _.m("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.m(_.v,{cond:function(){return J().image},
then:function(M){return _.m(_.a4,{data:M,alt:function(){return H().alt},
contentMode:function(){return H().contentMode},
targetWidth:function(){return H().targetWidth},
targetHeight:function(){return H().targetHeight},
className:function(){return H().className}})}}),_.m("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.m("div",{class:_.XB("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.m(_.v3,{text:function(){return J().title}})),_.m(_.dY,{each:function(){var M;
return(M=J().description)!=null?M:[]}},function(M){return _.m("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.m(oX,{content:M}))})))},"df"),Fie=_.d(function(p){var J=p.list;
var S=function(){var H;return(H=J().items)!=null?H:[]};
return _.m("div",{class:"ytwGenAiRichTextViewModelListContent"},_.m(_.v,{cond:function(){return J().title},
then:function(H){return _.m("div",{class:_.XB("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.m(_.v3,{text:H}))}}),_.m(_.v,{cond:function(){return J().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.m("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.m(_.dY,{each:S},function(H){return _.m("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.m(oX,{content:H,isInList:!0}))}))}}),_.m(_.v,{cond:function(){return J().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.m("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.m(_.dY,{each:S},function(H){return _.m("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.m(oX,{content:H,isInList:!0}))}))}}),_.m(_.v,{cond:function(){return J().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.m("div",{class:"ytwGenAiRichTextViewModelImageList"},_.m(_.dY,{each:S},function(H){return _.m("div",{class:"ytwGenAiRichTextViewModelListItem"},_.m(oX,{content:H,isInList:!0}))}))}}))},"ef"),vse=_.d(function(p){var J=p.table;
return _.m("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.m("thead",null,_.m("tr",null,_.m(_.dY,{each:function(){var S,H;return(H=(S=J().header)==null?void 0:S.cells)!=null?H:[]}},function(S){return _.m("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.m(_.dY,{each:function(){return S.contents}},function(H){return _.m(oX,{content:H})}))}))),_.m("tbody",null,_.m(_.dY,{each:function(){var S;
return(S=J().rows)!=null?S:[]}},function(S){return _.m("tr",null,_.m(_.dY,{each:function(){return S.cells}},function(H){return _.m("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.m(_.dY,{each:function(){return H.contents}},function(M){return _.m(oX,{content:M})}))}))})))},"ff"),oX=_.d(function(p){var J=p.content;
var S=_.rw(p.isInList,!1),H=function(){var M,X;return(X=(M=J().contentBlock)==null?void 0:M.contents)!=null?X:[]};
return _.m("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.m(_.v,{cond:function(){return J().text},
then:function(M){return _.m(_.v3,{className:"ytwGenAiRichTextViewModelText",text:M})}}),_.m(_.v,{cond:function(){return J().image},
then:function(M){return _.m(mWe,{imageData:M,isInList:S})}}),_.m(_.v,{cond:function(){return J().list},
then:function(M){return _.m(Fie,{list:M})}}),_.m(_.v,{cond:function(){return J().contentBlock},
then:function(){return _.m("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.m(_.dY,{each:H},function(M){return _.m(oX,{content:M,isInList:!1})}))}}),_.m(_.v,{cond:function(){return J().table},
then:function(M){return _.m(vse,{table:M})}}))},"gf"),f3N=_.d(function(p){var J={};
J=_.Qh("ytwGenAiRichTextViewModelHost",(J.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.zG("search_overview_link_style")),J));return _.m("gen-ai-rich-text-view-model",{class:J},_.m(oX,{content:function(){return p.data().content}}))},"hf");_.OLP=_.d(function(p){var J=p.data;var S=function(){var y;return((y=J().loadingUi)!=null?y:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},H=function(){return J().isLoading&&(S()==="UNSPECIFIED"||S()==="GHOST_CARD")},M=function(){return!J().isLoading},X=function(){return!!J().content&&!J().contents},Z=function(){return!!J().contents},n=function(){return!!J().nextQueryButtons},b=function(){return J().isLoading&&S()==="INVISIBLE"},F=function(){var y,t;
return(t=(y=J().headerIcon)==null?void 0:y.iconType)!=null?t:""},f=function(){var y;
return(y=J().content)!=null?y:""},O=function(){return!!J().sourcesSection},A,P=!((A=_.vO().resolve(_.F9(_.uC)))==null||!A()),W=_.BW(function(){var y=[],t=J().contents;
if(t)for(var D=0;D<t.length;D++){var k=_.e(t&&t[D],CPp);k&&y.push(k)}return y},void 0,"gcCsZb");
_.ad(function(){J().isLoading||_.Qf("so_re",void 0,"search_overview_answer")});
return _.m("ytd-overview-answer-view-model",{class:function(){var y={};y=(y.ytdOverviewAnswerViewModelHost=!0,y.ytdOverviewAnswerViewModelDarkBackground=P&&!b(),y.ytdOverviewAnswerViewModelLightBackground=!P&&!b(),y);return _.Qh(y)}},_.m(_.v,{cond:function(){return!b()},
then:function(){return _.m(_.fV,null,_.m("h2",null,_.m("div",{class:"ytdOverviewAnswerViewModelHeader"},_.m(_.v,{cond:F,then:function(y){return _.m("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.m(_.bn,{icon:y}))}}),_.m("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.m("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return J().headerText}),_.m("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.m(_.v3,{text:function(){return J().headerSubtext}}))))),_.m(_.v,{cond:H,
then:function(){return _.m(Q9W,null)}}),_.m(_.v,{cond:M,
then:function(){return _.m(_.fV,null,_.m(_.v,{cond:X,then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelText"},_.m(_.$h,{text:f,isSmallText:!0}))}}),_.m(_.v,{cond:Z,
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelRichText"},_.m(_.dY,{each:W},function(y){return _.m(f3N,{data:y})}))}}),_.m(_.v,{cond:n,
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.m(_.AH,{data:function(){return J().nextQueryButtons}},{buttonViewModel:function(y){return _.m(_.D0,{data:y.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.P8}))}}),_.m("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.m("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.m(_.v,{cond:function(){return!!_.e(J().likeButtonViewModel,_.kI)&&!!_.e(J().dislikeButtonViewModel,_.Nk)},
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.m(_.nB,{data:function(){return _.e(J().likeButtonViewModel,_.kI)},
disableIconAnimation:!0}),_.m(_.Zh,{data:function(){return _.e(J().dislikeButtonViewModel,_.Nk)}}))}})),_.m(_.v,{cond:function(){var y;
return(y=J().sourcesSection)==null?void 0:y.headerText},
then:function(y){return _.m("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.m(_.v3,{text:y}))}})),_.m(_.v,{cond:O,
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelSources"},_.m(_.AH,{data:function(){var y;return(y=J().sourcesSection)==null?void 0:y.sourcesShelf}},{buttonViewModel:_.D0,
horizontalShelfViewModel:function(y){return _.m(_.P8,{data:y.data,includeMargin:!0,hasPeek:!0})}}))}}),_.m(_.v,{cond:function(){return J().disclaimerText},
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.m(_.v3,{text:function(){return J().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"jf");var A9I=_.d(function(p){var J=_.jh(p,{}).data;return _.m("yt-shopping-content-line-item-view-model",{class:_.XB("ytShoppingContentLineItemViewModelHost")},_.m(_.v3,{text:function(){var S;return(S=J().text)==null?void 0:S.attributedString}}))},"kf");_.ey=_.d(function(p){p=_.jh(p,{});var J=p.data,S={};return _.m("yt-shopping-content-line-view-model",{class:_.XB("ytShoppingContentLineViewModelHost",p.className,(S.ytShoppingContentLineViewModelTruncateText=function(){return!J().wrapContent},S)),
style:_.G7({"--shopping-content-line-gap":function(){return J().itemGap?J().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return J().lineHeight?J().lineHeight+"px":void 0}})},_.m(_.dY,{each:function(){return(J().items||[]).map(function(H){return _.e(H,kkp)}).filter(function(H){return!!H})}},function(H){return _.m(A9I,{data:H})}))},"lf");var Pw$=_.d(function(p){var J=p.data;var S=function(){var X;return((X=J().image)==null?void 0:X.height)||48},H=function(){var X;
return((X=J().image)==null?void 0:X.width)||48},M=function(){return"width: "+H()+"px; height: "+S()+"px;"};
return _.m("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var X,Z,n,b=((X=_.vO().resolve(_.F9(_.uC)))==null?0:X())?(Z=J())==null?void 0:Z.darkThemeBackgroundColor:(n=J())==null?void 0:n.lightThemeBackgroundColor;return"background-color: "+(b?_.Bt(b):"")+";"},
el:_.Y2(_.sl(function(){var X;return(X=J())==null?void 0:X.rendererContext}))},_.m(_.v,{cond:function(){var X,Z;
return(Z=(X=J().image)==null?void 0:X.image)!=null?Z:J().thumbnail},
then:function(X){return _.m("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var Z;return"background-color: "+(((Z=J().image)==null?0:Z.backgroundColor)?_.Bt(J().image.backgroundColor):"")+";"+M()}},_.m(_.a4,{data:X,
height:S,width:H,style:M,alt:""}))}}),_.m("div",{class:"ytShoppingDescriptionItemViewModelText"},_.m(_.AH,{data:function(){return J().line1}},{shoppingContentLineViewModel:function(X){return _.m(_.ey,{data:X.data})}}),_.m(_.AH,{data:function(){return J().line2}},{shoppingContentLineViewModel:function(X){return _.m(_.ey,{data:X.data})}}),_.m(_.AH,{data:function(){return J().line3}},{shoppingContentLineViewModel:function(X){return _.m(_.ey,{data:X.data})}})))},"mf");var z4N=_.d(function(p){var J=p.data;var S=p.active;var H=_.nE("transcript-segment-view-model");_.lf(function(){var M,X,Z,n=((M=_.vO().resolve(_.F9(_.uC)))==null?0:M())?(X=J())==null?void 0:X.darkThemeColorPalette:(Z=J())==null?void 0:Z.lightThemeColorPalette;n&&(n.additiveBackground&&H.value.style.setProperty("--timestamp-active-background-color",_.Bt(n.additiveBackground)),n.textSecondary&&H.value.style.setProperty("--timestamp-active-color",_.yi(n.textSecondary)))},"TnVCnb");
p={};return _.m("transcript-segment-view-model",{class:_.XB("ytwTranscriptSegmentViewModelHost",(p.ytwTranscriptSegmentViewModelHostActive=S,p.ytwTranscriptSegmentViewModelHostModern=_.z("enable_timeline_view_modern_transcript")||_.z("enable_timeline_view_modern_transcript_fe"),p)),el:H},_.m(_.v,{cond:function(){var M;return(M=J())==null?void 0:M.timestamp},
then:function(M){var X={};return _.m(_.fV,null,_.m("div",{class:_.XB("ytwTranscriptSegmentViewModelTimestamp",(X.ytwTranscriptSegmentViewModelTimestampActive=S,X)),"aria-hidden":!0},M),_.m("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var Z=M().split(":").map(Number),n=_.K(Z.reverse());Z=n.next().value;var b=n.next().value;n=n.next().value;return _.Het({hours:n,minutes:b,seconds:Z})}))}}),_.m(_.v3,{text:function(){var M,X,Z;
return(Z=(M=J())==null?void 0:M.attributedText)!=null?Z:{content:(X=J())==null?void 0:X.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"of");var $Wl=_.d(function(p){var J=p.data;return _.m("div",{class:"videoAttributesSectionViewModelHeader"},_.m("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.m("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return J().headerTitle}),_.m(_.v,{cond:function(){return J().headerInfoButton},
then:function(){return _.m(_.AH,{data:function(){return J().headerInfoButton}},{buttonViewModel:function(S){return _.m(_.D0,{data:S.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.m(_.v,{cond:function(){return J().headerSubtitle},
then:function(){return _.m("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return J().headerSubtitle})}}))},"pf"),osr=_.d(function(p){function J(y){return Math.max(Math.min(y,0),F()-n())}
var S=p.data;var H;p=_.nE("div",function(y){var t=function(){f(y.clientWidth)};
t();window.ResizeObserver&&(H=new ResizeObserver(t),H.observe(y))});
var M=_.nE("div",function(y){b(y.scrollWidth)}),X=_.K(_.eQ(0,void 0,"C3XQAe")),Z=X.next().value;
X=X.next().value;var n=Z,b=X;X=_.K(_.eQ(0,void 0,"db7y3"));Z=X.next().value;X=X.next().value;var F=Z,f=X;Z=_.K(_.eQ(0,void 0,"RchC7"));var O=Z.next().value,A=Z.next().value;_.VY(function(){var y;(y=H)==null||y.disconnect()});
var P=function(){A(J(O()+F()))},W=function(){A(J(O()-F()))};
return _.m("yt-video-attributes-section-view-model",null,_.m("div",{class:"videoAttributesSectionViewModelHost"},_.m(_.v,{cond:function(){return S().headerTitle},
then:function(){return _.m($Wl,{data:S})}}),_.m("div",{class:_.XB("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:p},_.m("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.G7({transform:function(){var y=O();_.jn("HTML_DIR")==="rtl"&&(y*=-1);return"translateX("+y+"px)"}}),
el:M},_.m(_.AH,{data:function(){return S().videoAttributeViewModels}},{videoAttributeViewModel:imm}))),_.m(_.AH,{data:function(){return S().footerButton}},{buttonViewModel:function(y){return _.m(_.D0,{data:y.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.m(_.v,{cond:function(){return O()<0&&S().previousButton},
then:function(){return _.m("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.m(_.AH,{data:function(){return S().previousButton}},{buttonViewModel:function(y){return _.m(_.D0,{data:y.data,
onClick:P})}}))}}),_.m(_.v,{cond:function(){return O()>F()-n()&&S().nextButton},
then:function(){return _.m("div",{class:"videoAttributesSectionViewModelRightArrow"},_.m(_.AH,{data:function(){return S().nextButton}},{buttonViewModel:function(y){return _.m(_.D0,{data:y.data,
onClick:W})}}))}})))},"qf");
osr.idomCompat=!0;var e4N=_.d(function(p){var J=p.data;var S=p.active;var H={},M={};return _.m("timeline-item-view-model",{class:_.XB("ytwTimelineItemViewModelHost",(H.ytwTimelineItemViewModelHostChapterChild=p.chapterChild,H.ytwTimelineItemViewModelModern=_.z("enable_timeline_view_modern_transcript")||_.z("enable_timeline_view_modern_transcript_fe"),H))},_.m("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.m("div",{class:_.XB("ytwTimelineItemViewModelTimestamp",(M.ytwTimelineItemViewModelTimestampActive=
S,M))},function(){return J().timestamp})),_.m("div",{class:"ytwTimelineItemViewModelContentItems"},_.m(_.AH,{data:function(){return J().contentItems}},{transcriptSegmentViewModel:function(X){return _.m(z4N,{data:X.data,
active:S})},
videoAttributesSectionViewModel:osr})))},"rf");var Wip=_.d(function(p){var J=p.data;p={};return _.m("timeline-chapter-view-model",{class:_.XB("ytwTimelineChapterViewModelHost")},_.m("div",{class:_.XB("ytwTimelineChapterViewModelTitle",(p.ytwTimelineChapterViewModelModern=_.z("enable_timeline_view_modern_transcript")||_.z("enable_timeline_view_modern_transcript_fe"),p))},function(){return J().title}),_.m(_.AH,{data:function(){return J().contents}},{timelineItemViewModel:function(S){return _.m(e4N,{data:S.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(S){return _.m(osr,{data:S.data})}}))},"sf");var Qvr=_.d(function(p){var J=p.data;var S=_.nE("macro-markers-panel-item-view-model"),H=_.v$(_.Ffv,function(){var X;return(X=J().markersEngagementPanelSyncEntityKey)!=null?X:""}),M=function(){var X;
return((X=H())==null?void 0:X.activeItemIndex)===J().index};
p=_.Kb(function(X){var Z,n,b,F,f;return _.G(function(O){if(O.nextAddress==1)return X.stopPropagation(),_.yh(_.CG(X),S.value,["A".toString(),"BUTTON".toString()])?O.return():(Z=_.sa(J().onTap))?O.yield(_.Zp(),2):O.return();n=O.yieldResult;F=(b=_.e(Z,_.lj))==null?void 0:b.startTimeSeconds;F===void 0||(f=n)!=null&&f.seekTo(F,!0);_.UK(O)})});
return _.m("macro-markers-panel-item-view-model",{class:_.XB("ytwMacroMarkersPanelItemViewModelHost",{"is-active":M}),el:S,"on:click":p,tabindex:0,role:"button"},_.m(_.AH,{data:function(){var X;return(X=J())==null?void 0:X.item}},{timelineChapterViewModel:function(X){return _.m(Wip,{data:X.data,
active:M})},
timelineItemViewModel:function(X){return _.m(e4N,{data:X.data,active:M})},
videoAttributeViewModel:imm,shoppingDescriptionItemViewModel:Pw$}))},"tf");
Qvr.idomCompat=!0;_.ci(Qvr,"macro-markers-panel-item-view-model",{props:{data:_.fD}});_.ci(osr,"yt-video-attributes-section-view-model",{props:{data:_.fD}});var CwI=_.d(function(p){var J=function(){var S,H,M;return(M=(S=p.data().leadingLogoAccessibility)==null?void 0:(H=S.accessibilityData)==null?void 0:H.label)!=null?M:""};
return _.m("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.m(_.v,{cond:function(){return p.data().leadingLogo},
then:function(S){return _.m(_.a4,{className:"ytwFantasySectionHeaderViewModelLogo",data:S,alt:J})}}),_.m("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.m(_.v3,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return p.data().title}}),_.m(_.v3,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return p.data().subtitle}})),_.m(_.AH,{data:function(){return p.data().trailingButton}},{buttonViewModel:function(S){return _.m(_.D0,{data:S.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"uf");var y9P=_.d(function(p){var J={};J=_.XB("ytwFantasyTeamViewModelHost",(J.ytwFantasyTeamViewModelCompact=function(){var M;return!((M=p.compact)==null||!M.call(p))},J.ytwFantasyTeamViewModelUser=function(){return p.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},J.ytwFantasyTeamViewModelOpponent=function(){return p.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},J));
var S=function(){var M,X,Z;return(Z=(M=p.data().teamLogoAccessibility)==null?void 0:(X=M.accessibilityData)==null?void 0:X.label)!=null?Z:""},H=_.v$(f7w,function(){return p.data().teamEntityKey});
return _.m("ytw-fantasy-team-view-model",{class:J},_.m(_.v,{cond:function(){return p.data().teamLogo},
then:function(M){return _.m(_.a4,{className:"ytwFantasyTeamViewModelLogo",data:M,alt:S})}}),_.m("div",{class:"ytwFantasyTeamViewModelMetadata"},_.m("div",{class:"ytwFantasyTeamViewModelHeader"},_.m(_.v3,{className:"ytwFantasyTeamViewModelScore",
text:function(){var M;return(M=H())==null?void 0:M.score}}),_.m(_.bn,{icon:function(){var M;
return(M=H())==null?void 0:M.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.m(_.v3,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var M;return(M=H())==null?void 0:M.projectedScore}})),_.m(_.v3,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return p.data().primaryText}}),_.m(_.v3,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return p.data().secondaryText}}),_.m(_.v3,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return p.data().tertiaryText}})),_.m(_.v3,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var M;return(M=H())==null?void 0:M.score}}))},"vf");_.ci(_.d(function(p){return _.m("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.m("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.m(_.AH,{data:function(){return p.data().summaryHeader}},{fantasySectionHeaderViewModel:CwI})),_.m(_.AH,{data:function(){return p.data().userTeam}},{fantasyTeamViewModel:y9P}),_.m(_.AH,{data:function(){return p.data().opponentTeam}},{fantasyTeamViewModel:y9P}))},"wf"),"fantasy-league-summary-view-model",{props:{data:_.fD}});var BkN=_.d(function(p){var J=_.jh(p,{shape:{},useCustomTabRenderable:!1}),S=J.shape;J=J.useCustomTabRenderable;var H=p.customTabRenderable,M=function(){return S().disabled},X=function(){return S().selected},Z=function(){return S().title},n=function(){return S().icon},b=_.nE("yt-tab-shape");
p=_.Kb(function(O){var A;if(!M()&&((A=S().aTagConfig)==null?0:A.onclick))S().aTagConfig.onclick(O);return!1});
var F=_.Kb(function(O){if(O.key==="Enter"||O.key==="ArrowUp"||O.key==="ArrowDown")O.preventDefault(),b.value.click();return!1}),f={};
return _.m("yt-tab-shape",{class:_.XB("yt-tab-shape",function(){return S().className},(f["yt-tab-shape__tab--last-tab"]=function(){return S().isLastTab},f["yt-tab-shape--host-disabled"]=M,f["yt-tab-shape--host-clickable"]=!H,f)),
role:H?void 0:"tab","aria-selected":X!=null?X:!1,"aria-disabled":M,tabindex:H?void 0:0,"on:click":p,"on:keydown":F,el:b,"tab-identifier":function(){return S().identifier},
"tab-title":Z},_.m(_.v,{cond:J,then:function(){return H()},
else:function(){var O={},A={};return _.m(_.fV,null,_.m("div",{class:_.XB("yt-tab-shape__tab",(O["yt-tab-shape__tab--tab-selected"]=X,O))},_.m(_.v,{cond:n,then:function(P){return _.m(_.bn,{className:"yt-tab-shape__tab-icon",icon:function(){return P().iconType}})}}),Z),_.m("div",{class:_.XB("yt-tab-shape__tab-bar",(A["yt-tab-shape__tab-bar--tab-bar-selected"]=X,A))}))}}))},"xf");
BkN.idomCompat={callbacks:{customTabRenderable:!0}};_.svy=_.d(function(p){var J=p.shape;p=_.K(_.eQ(48,void 0,"nDAx4"));var S=p.next().value,H=p.next().value;p=_.K(_.eQ(0,void 0,"GCgjqb"));var M=p.next().value,X=p.next().value,Z=function(){return J().tabs},n=_.nE("yt-tab-group-shape"),b=function(){var A,P;
return(P=(A=Z())==null?void 0:A.findIndex(function(W){return W.selected}))!=null?P:-1};
p=_.K(_.eQ(!1,void 0,"SU01tf"));var F=p.next().value,f=p.next().value,O=function(){F()||_.wg.addJob(function(){f(!0)},0)};
_.lf(function(){var A=b(),P=_.wg.addJob(function(){var W,y=((W=n.value)==null?void 0:W.querySelectorAll("yt-tab-shape"))||[],t;H(((t=A>-1?y[A]:void 0)==null?void 0:t.getBoundingClientRect().width)||0);for(t=W=0;t<A;t++)W+=y[t].offsetWidth+24;_.jn("HTML_DIR")==="rtl"&&(W=-W);X(W);O()},8,0);
_.VY(function(){_.wg.cancelJob(P)})},"PMwgb");
p={};return _.m("yt-tab-group-shape",{class:_.XB("tabGroupShapeHost",(p.tabGroupShapeOverflowHidden=function(){return J().isOverflowHidden},p)),
el:n},_.m(_.v,{cond:Z,then:function(A){return _.m(_.fV,null,_.m("div",{class:"tabGroupShapeTabs",role:"tablist"},_.m(_.dY,{each:A},function(P,W){return _.m(BkN,{shape:function(){return Object.assign({},P,{isLastTab:W()===A().length-1})},
customTabRenderable:P.customTabRenderable,useCustomTabRenderable:!!P.customTabRenderable})})),_.m(UWP,{width:S,
sliderOffset:M,enableTransition:F}))}}))},"zf");
_.svy.idomCompat=!0;var UWP=_.d(function(p){var J=_.rw(p.sliderOffset,0),S=p.width,H=p.enableTransition;p={};return _.m("div",{class:_.XB("tabGroupShapeSlider",(p.tabGroupShapeSliderTransition=function(){return H()},p)),
style:_.G7({width:function(){return S()+"px"},
transform:function(){return"translateX("+J()+"px)"}})})},"Af");var gsI=_.d(function(p){var J=function(){var X,Z,n;return(n=(X=p.data().playerLogoAccessibility)==null?void 0:(Z=X.accessibilityData)==null?void 0:Z.label)!=null?n:""},S=_.v$(OJs,function(){return p.data().playerEntityKey}),H={};
H=_.XB("ytwFantasyPlayerViewModelHost",(H.ytwFantasyPlayerViewModelPlaying=function(){var X;return!((X=S())==null||!X.isPlayerPlaying)},H.ytwFantasyPlayerViewModelOnField=function(){var X;
return((X=S())==null?void 0:X.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},H.ytwFantasyPlayerViewModelRedZone=function(){var X;
return((X=S())==null?void 0:X.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},H));
var M=function(){var X,Z,n,b=((X=_.vO().resolve(_.F9(_.uC)))==null?0:X())?(Z=p.data().playerLogoBackgroundColor)==null?void 0:Z.darkTheme:(n=p.data().playerLogoBackgroundColor)==null?void 0:n.lightTheme;return b===void 0?"":_.Bt(b)};
return _.m("ytw-fantasy-player-view-model",{class:H},_.m(_.v,{cond:function(){return p.data().playerLogo},
then:function(X){return _.m("div",{class:"ytwFantasyPlayerViewModelLogo"},_.m("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.m(_.a4,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.G7({"background-color":M}),data:X,alt:J})),_.m("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.m(_.bn,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.m("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.m("div",{class:"ytwFantasyPlayerViewModelHeader"},_.m(_.v3,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var X;return(X=p.data())==null?void 0:X.playerNameText}}),_.m(_.v3,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var X;return(X=p.data())==null?void 0:X.playerDescriptionText}})),_.m("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.m(_.v3,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var X;return(X=S())==null?void 0:X.gamePeriodText}}),_.m(_.v3,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var X;return(X=p.data())==null?void 0:X.opponentTeamText}}),_.m(_.v3,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var X;return(X=S())==null?void 0:X.gameStatusText}}),_.m(_.v3,{className:_.XB("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var X;return(X=S())==null?void 0:X.playerStatusText}})),_.m("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.m(_.v3,{text:function(){var X;
return(X=S())==null?void 0:X.playerStatsText}}))),_.m(_.v3,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var X;return(X=S())==null?void 0:X.fantasyScore}}))},"Bf");var ttN=_.d(function(p){return _.m("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.m(_.v,{cond:function(){return p.data().players},
then:function(J){return _.m(_.AH,{data:J},{fantasyPlayerViewModel:gsI})}}))},"Cf");var h4e=_.d(function(p){var J=_.K(_.re(function(){var M;return(M=p.data().selectedTabIdentifierKey)!=null?M:""})),S=J.next().value,H=J.next().value;
_.qz(function(){var M;(M=p.setSelectedTabSignal)==null||M.call(p,S)});
return _.m("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.m("div",{class:"ytTabbedViewModelTabGroup"},_.m(_.svy,{shape:function(){var M=p.data(),X=[],Z={tabs:X};if(!M.tabs)return Z;M=_.K(M.tabs);for(var n=M.next(),b={};!n.done;b={tabViewModel:void 0},n=M.next())if(b.tabViewModel=_.e(n.value,dgp),b.tabViewModel){var F=n=void 0;X.push({aTagConfig:{onclick:function(f){return function(){var O;H((O=f.tabViewModel.tabIdentifier)!=null?O:"")}}(b)},
identifier:b.tabViewModel.tabIdentifier,selected:S()===b.tabViewModel.tabIdentifier,title:(F=(n=b.tabViewModel.title)==null?void 0:n.content)!=null?F:""})}return Z}})),_.m(_.AH,{data:function(){var M,X=_.K((M=p.data().tabs)!=null?M:[]);
for(M=X.next();!M.done;M=X.next())if((M=_.e(M.value,dgp))&&M.tabIdentifier===S())return M.content}},{fantasyRosterViewModel:ttN}))},"Ef");_.ci(_.d(function(p){var J=_.K(CLW()),S=J.next().value,H=J.next().value;return _.m("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.m(_.v3,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return p.data().title}}),_.m(_.v,{cond:function(){return p.data().tabbedViewModel},
then:function(M){return _.m(_.AH,{data:M},{tabbedViewModel:function(X){return _.m(h4e,{data:X.data,setSelectedTabSignal:H})}})}}),_.m(_.v,{cond:function(){var M,X=(M=_.e(p.data().tabbedViewModel,ue8))==null?void 0:M.tabs;
M=_.e(X==null?void 0:X[0],dgp);X=_.e(X==null?void 0:X[1],dgp);var Z=M==null?void 0:M.tabIdentifier;if(S()===Z){var n,b;if(!((n=_.e(M==null?void 0:M.content,Ltp))==null?0:(b=n.players)==null?0:b.length))return p.data().noUserTeamPlayersText}else{var F,f;if(!((F=_.e(X==null?void 0:X.content,Ltp))==null?0:(f=F.players)==null?0:f.length))return p.data().noOpponentTeamPlayersText}},
then:function(M){return _.m(_.v3,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:M})}}))},"Ff"),"ytw-fantasy-matchup-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){return _.m("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.m(_.v3,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return p.data().title}}),_.m(_.v,{cond:function(){return p.data().matchupTeamPairs},
then:function(J){return _.m(_.dY,{each:J,keyBy:"INDEX"},function(S){return _.m("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.m(_.AH,{data:function(){return[S().firstTeam,S().secondTeam]}},{fantasyTeamViewModel:function(H){return _.m(y9P,{data:H.data,
compact:!0})}}))})}}))},"Gf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=function(){var M,X,Z;return(Z=(M=p.data().userLogoAccessibility)==null?void 0:(X=M.accessibilityData)==null?void 0:X.label)!=null?Z:""},S=function(){var M,X,Z;
return(Z=(M=p.data().opponentLogoAccessibility)==null?void 0:(X=M.accessibilityData)==null?void 0:X.label)!=null?Z:""},H=_.v$(vHW,function(){return p.data().entityKey});
return _.m("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.m("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.m(_.v,{cond:function(){return p.data().userLogo},
then:function(M){return _.m(_.a4,{className:"ytwFantasyWinProbabilityViewModelLogo",data:M,alt:J})}}),_.m("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.m(_.v3,{text:function(){return p.data().title}})),_.m(_.v,{cond:function(){return p.data().opponentLogo},
then:function(M){return _.m(_.a4,{className:"ytwFantasyWinProbabilityViewModelLogo",data:M,alt:S})}})),_.m("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.m("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.m(_.v3,{text:function(){var M;
return(M=H())==null?void 0:M.userWinNumberLabel}})),_.m("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.m("div",{class:_.XB("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.G7({flex:function(){var M,X;return(X=(M=H())==null?void 0:M.userWinNumber)!=null?X:50}})}),_.m("div",{class:_.XB("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.G7({flex:function(){var M,X;return(X=(M=H())==null?void 0:M.opponentWinNumber)!=null?X:50}})})),_.m("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.m(_.v3,{text:function(){var M;
return(M=H())==null?void 0:M.opponentWinNumberLabel}}))))},"Hf"),"fantasy-win-probability-view-model",{props:{data:_.fD}});var DWf={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},kWl=_.d(function(p){return _.m(_.AH,{data:p.button},{buttonViewModel:function(J){return _.m(_.D0,{data:J.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"If"),NkI=_.d(function(p){return _.m("ytd-backstage-locked-post-view-model",{class:_.XB("ytdBackstageLockedPostViewModelHost",p.className)},_.m("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.m("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.m(_.AH,
{data:function(){return p.data().authorAvatar}},{decoratedAvatarViewModel:_.RH})),_.m("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.m("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.m(_.v3,{text:function(){return p.data().authorText}})),_.m("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.m(_.v3,{text:function(){return p.data().publishedTimeText}}),_.m(_.AH,{data:function(){return p.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(J){return _.m(TQM,
{data:J.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.m("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.m(_.v3,{text:function(){return p.data().contentText}})),_.m(_.ue,null,_.m(_.Nz,{when:function(){return p.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.m("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.m(_.a4,{data:DWf,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.m(_.v3,{text:function(){return p.data().lockedText}}))}),_.m(_.Nz,{when:function(){return p.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.m("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.m("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.m(_.a4,{data:DWf,
alt:""})),_.m(_.v3,{text:function(){return p.data().lockedText}}))})),_.m("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.m(kWl,{button:function(){return p.data().likeButton}}),_.m("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return p.data().voteCountA11y}},_.m(_.v3,{text:function(){return p.data().voteCount}})),_.m(kWl,{button:function(){return p.data().dislikeButton}}),_.m(kWl,{button:function(){return p.data().commentButton}}),_.m("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return p.data().commentCountA11y}},_.m(_.v3,{text:function(){return p.data().commentCount}}))))},"Jf");
NkI.idomCompat=!0;_.ci(NkI,"ytd-backstage-locked-post-view-model",{props:{data:_.fD,className:_.fD}});_.QI("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var W8=function(){var p=_.T.apply(this,arguments)||this;p.darkerPanels=_.z("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.useBigThumbs=!1;p.notSticky=!1;p.epRestyle=!1;p.isCarouselInFeed=!0;p.topSpacingZero=!1;p.continuationIsInitialLoad=!0;p.enableSqueezebackPanels=_.z("web_shorts_enable_squeezeback_panels");p.enableAnchoredPanel=_.z("desktop_shorts_v2_anchored_panel");
p.mastheadHeight=0;p.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};p.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return p};
_.Q(W8,_.T);_.R=W8.prototype;_.R.updateLockupContainerTypes=function(p){if(this.eligibleToSwitchToGrid){var J;(J=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||J.forEach(function(S){S.containerType=p})}};
_.R.getItemsPath=function(){return"data.contents"};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.R.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},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",
eduCardViewModel:"yt-edu-card-view-model",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",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.z("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.z("kevlar_low_priority_continuation")}}};
_.R.created=function(){};
_.R.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.R.handleIntersect=function(p){this.notSticky=p[0].intersectionRatio===1};
_.R.attached=function(){var p=this;if(_.z("web_fix_sticky_playlist_header_v2")){var J=_.z("web_item_section_sticky_header_use_scroll_as_fallback");J||document.addEventListener("scroll",_.n3(this,this.updateHeaderState));var S;this.mastheadHeight=((S=document.querySelector("ytd-masthead"))==null?void 0:S.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(H){p.handleIntersect(H)},{rootMargin:"-"+
(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):J&&document.addEventListener("scroll",_.n3(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){p.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))}};
_.R.detached=function(){if(_.z("web_fix_sticky_playlist_header_v2")){document.removeEventListener("scroll",_.n3(this,this.updateHeaderState));var p;(p=this.intersectionObserver)==null||p.disconnect();var J;(J=this.resizeObserver)==null||J.disconnect()}};
_.R.updated=function(p){p.has("data")&&_.z("web_fix_sticky_playlist_header_v2")&&this.updateHeaderState()};
_.R.dispatchChipBarIsSticky=function(){_.z("web_fix_sticky_playlist_header_v2")&&this.ytdReduxBehavior.dispatch(GMd(!this.notSticky))};
_.R.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var p=_.Jn(this.hostElement).querySelector("ytd-comments-header-renderer");p&&(p.hidePanelButton=this.commentsHidePanelButton)}};
_.R.onRetrieveLocation=function(p,J){this.containsComments()&&(this.firstCommentsLoaded=J.hasComments=!0)};
_.R.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.R.onLoadReloadContinuation=function(p,J){var S=this;p.stopPropagation();this.isReloading=!0;_.cf(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(H){var M=_.vO().resolve(_.Or);H=J(H);M.postData(H).then(function(X){S.onReloadContinuationData(X)})}})};
_.R.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};
_.R.computeContentsClass=function(p){return p?"reloading":""};
_.R.computeSectionIdentifier=function(p){return p==null?void 0:p.sectionIdentifier};
_.R.computeFitContainer=function(p){return(p==null?void 0:p.sectionIdentifier)==="youchat-item-section"};
_.R.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.z("kevlar_disable_comments_auto_load")};
_.R.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.R.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.R.computeHasDestinationShelfRenderer=function(p){var J,S;return!!(p==null?0:(J=p.contents)==null?0:(S=J[0])==null?0:S.destinationShelfRenderer)};
_.R.computeHasSectionGroupViewModel=function(p){var J,S;return!!(p==null?0:(J=p.contents)==null?0:(S=J[0])==null?0:S.sectionGroupViewModel)};
_.R.computeHasQrCodeRenderer=function(p){var J,S;return!!(p==null?0:(J=p.contents)==null?0:(S=J[0])==null?0:S.qrCodeRenderer)};
_.R.computeStaticCommentsHeader=function(p){return p&&this.containsComments()};
_.R.computeEpRestyle=function(p){return _.z("web_ep_restyling")&&p&&this.containsComments()};
_.R.computeIsContinuationCommentSection=function(p){return(p==null?void 0:p.targetId)==="shorts-engagement-panel-comments-section"||(p==null?void 0:p.targetId)==="comments-section"||(p==null?void 0:p.targetId)==="engagement-panel-comments-section"};
_.R.computeSuppressPaddingDisclaimer=function(){var p,J,S,H;return!!((p=this.data)==null?0:(J=p.contents)==null?0:(S=J[0])==null?0:(H=S.productListHeaderRenderer)==null?0:H.suppressPaddingDisclaimer)};
_.R.computeHeaderStyle=function(p){switch(p==null?void 0:p.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.R.dataChanged=function(){this.firstCommentsLoaded=!1};
_.R.observeDataContentsLength=function(){var p,J;((p=this.data)==null?0:(J=p.contents)==null?0:J.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.R.onYtDismissibleItemDismissedChange=function(p){this._setItemDismissed(p.type==="yt-dismissible-item-dismissed")};
_.R.triggerContinuations=function(){for(var p=_.Jn(this.hostElement).querySelector("#continuations").children,J=0;J<p.length;J++)p[J].trigger()};
_.R.triggerInitialContinuations=function(){for(var p=_.Jn(this.hostElement).querySelector("#continuations").children,J=0;J<p.length;J++)p[J].triggerIfNotPreviouslyTriggered()};
_.R.handleYtItemSectionContinuation=function(p,J){var S;J&&((S=this.data)==null?void 0:S.sectionIdentifier)!==J||(this.set("data.continuations",[p]),this.triggerContinuations())};
_.R.handleYtItemSectionReplace=function(p,J){var S;J&&((S=this.data)==null?void 0:S.sectionIdentifier)!==J||(this.set("data.contents",p),this.set("data.continuations",[]))};
_.R.computeUseHeightHack=function(p){return p&&!_.z("kevlar_disable_height_hack")};
_.R.computeTopSpacingZero=function(p){return p};
_.R.continuationShowButtonChanged=function(){var p=_.Jn(this.hostElement).querySelector("ytd-continuation-item-renderer");p&&(p.showButton=this.continuationShowButton)};
_.R.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("data-changed",this.data))};
_.vh.Object.defineProperties(W8.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.z("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.z("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.z("web_fix_sticky_playlist_header_v2")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return!!((p=this.data)==null?0:(J=p.contents)==null?0:(S=J[0])==null?0:S.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H,M,X,Z;return!!((p=this.data)==null?0:(J=p.contents)==null?0:(S=J[0])==null?0:(H=S.shelfRenderer)==null?0:(M=H.content)==null?0:(X=M.gridRenderer)==null?0:(Z=X.targetId)==null?0:Z.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return!!((p=this.data)==null?0:(J=p.contents)==null?0:(S=J[0])==null?0:S.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return!!((p=this.data)==null?0:(J=p.contents)==null?0:(S=J[0])==null?0:S.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.zG("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.z("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.z("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
W8.prototype.dataChangedForBinding=W8.prototype.dataChangedForBinding;W8.prototype.continuationShowButtonChanged=W8.prototype.continuationShowButtonChanged;W8.prototype.onYtDismissibleItemDismissedChange=W8.prototype.onYtDismissibleItemDismissedChange;W8.prototype.observeDataContentsLength=W8.prototype.observeDataContentsLength;W8.prototype.dataChanged=W8.prototype.dataChanged;W8.prototype.onServiceRequestCompleted=W8.prototype.onServiceRequestCompleted;W8.prototype.onLoadReloadContinuation=W8.prototype.onLoadReloadContinuation;
W8.prototype.onRetrieveLocation=W8.prototype.onRetrieveLocation;W8.prototype.commentsHidePanelButtonChanged=W8.prototype.commentsHidePanelButtonChanged;W8.prototype.dispatchChipBarIsSticky=W8.prototype.dispatchChipBarIsSticky;W8.prototype.updateLockupContainerTypes=W8.prototype.updateLockupContainerTypes;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],W8.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.y$.YtLazyListBehavior),_.Y("design:type",Object)],W8.prototype,"ytLazyListBehavior",void 0);_.V([_.B(_.oM.YtNextContinuationBehavior),_.Y("design:type",Object)],W8.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.B(_.$W),_.Y("design:type",Object)],W8.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],W8.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],W8.prototype,"ytdReduxBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],W8.prototype,"darkerPanels",void 0);_.V([_.N(),_.Y("design:type",Object)],W8.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],W8.prototype,"engagementPanel",void 0);_.V([_.N(),_.Y("design:type",Object)],W8.prototype,"commentsHidePanelButton",void 0);_.V([_.N(),_.Y("design:type",Object)],W8.prototype,"isWatchGrid",void 0);_.V([_.N(),_.Y("design:type",Object)],W8.prototype,"continuationShowButton",void 0);_.V([_.N({computed:"computeIsContinuationCommentSection(data)"}),_.Y("design:type",Boolean)],W8.prototype,"continuationIsCommentsSection",void 0);
_.V([_.N({value:!0}),_.Y("design:type",Boolean)],W8.prototype,"autoFill",void 0);_.V([_.N(),_.Y("design:type",Boolean)],W8.prototype,"continuationDisablePrescanVisibility",void 0);_.V([_.N(),_.Y("design:type",Boolean)],W8.prototype,"isReloading",void 0);_.V([_.N(),_.Y("design:type",Object)],W8.prototype,"isSearch",void 0);_.V([_.N(),_.Y("design:type",Object)],W8.prototype,"isConstrainedList",void 0);_.V([_.N(),_.Y("design:type",Object)],W8.prototype,"isWatch",void 0);
_.V([_.N(),_.Y("design:type",Object)],W8.prototype,"eligibleToSwitchToGrid",void 0);_.V([_.N(),_.Y("design:type",Object)],W8.prototype,"useBigThumbs",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],W8.prototype,"notSticky",void 0);_.V([_.N({selector:_.gn,reflectToAttribute:!0}),_.Y("design:type",Object)],W8.prototype,"isGridViewEnabled",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.Y("design:type",Object)],W8.prototype,"epRestyle",void 0);_.V([_.U("isWatch"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],W8.prototype,"hideShortsShelfHeader",null);_.V([_.U("isSearch","isWatch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],W8.prototype,"thumbnailWidth",null);
_.V([_.U("isSearch","containerWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],W8.prototype,"thumbnailTargetWidth",null);_.V([_.U("isSearch","isWatch","useBigThumbs"),_.Y("design:type",String),_.Y("design:paramtypes",[])],W8.prototype,"sizing",null);_.V([_.U("isWatch","isGridViewEnabled","useBigThumbs","data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],W8.prototype,"lockupContainerType",null);
_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],W8.prototype,"hasHeader",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],W8.prototype,"expFixPlaylistHeader",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],W8.prototype,"expFixPlaylistHeaderV2",null);
_.V([_.bO("lockupContainerType","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[Number]),_.Y("design:returntype")],W8.prototype,"updateLockupContainerTypes",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],W8.prototype,"pageSubtype",void 0);_.V([_.N(),_.Y("design:type",Number)],W8.prototype,"containerWidth",void 0);_.V([_.N(),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],W8.prototype,"isPlaylist",null);
_.V([_.N(),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],W8.prototype,"isClipList",null);_.V([_.N(),_.Y("design:type",Object)],W8.prototype,"isCarouselInFeed",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],W8.prototype,"isPlaylistVideoContainer",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],W8.prototype,"isSearchFrictionPage",null);
_.V([_.N({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.Y("design:type",Boolean)],W8.prototype,"useHeightHack",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.Y("design:type",Object)],W8.prototype,"topSpacingZero",void 0);_.V([_.N({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.Y("design:type",Boolean)],W8.prototype,"showButton",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],W8.prototype,"firstCommentsLoaded",void 0);_.V([_.N(),_.Y("design:type",Object)],W8.prototype,"continuationIsInitialLoad",void 0);_.V([_.N({reflectToAttribute:!0,readOnly:!0}),_.Y("design:type",Boolean)],W8.prototype,"itemDismissed",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.Y("design:type",String)],W8.prototype,"sectionIdentifier",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.Y("design:type",String)],W8.prototype,"fitContainer",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.Y("design:type",Boolean)],W8.prototype,"hasDestinationShelfRenderer",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.Y("design:type",Boolean)],W8.prototype,"staticCommentsHeader",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],W8.prototype,"enableSqueezebackPanels",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],W8.prototype,"enableAnchoredPanel",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.Y("design:type",Boolean)],W8.prototype,"hasSectionGroupViewModel",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.Y("design:type",Boolean)],W8.prototype,"hasQrCodeRenderer",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.Y("design:type",Boolean)],W8.prototype,"suppressDisclaimerSeparator",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.Y("design:type",String)],W8.prototype,"headerStyle",void 0);
_.V([_.U("isSearch","isWatch","useBigThumbs"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],W8.prototype,"lockupExperiments",null);_.V([_.U("isSearch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],W8.prototype,"typographyBump",null);_.V([_.FM("#header"),_.Y("design:type",HTMLElement)],W8.prototype,"header",void 0);_.V([_.bO("notSticky"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W8.prototype,"dispatchChipBarIsSticky",null);
_.V([_.bO("commentsHidePanelButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W8.prototype,"commentsHidePanelButtonChanged",null);_.V([_.GI("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],W8.prototype,"onRetrieveLocation",null);
_.V([_.GI("yt-load-reload-continuation"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Function]),_.Y("design:returntype")],W8.prototype,"onLoadReloadContinuation",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W8.prototype,"onServiceRequestCompleted",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W8.prototype,"dataChanged",null);
_.V([_.An("data.contents.length"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W8.prototype,"observeDataContentsLength",null);_.V([_.GI("yt-dismissible-item-dismissed"),_.GI("yt-dismissible-item-undismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],W8.prototype,"onYtDismissibleItemDismissedChange",null);
_.V([_.bO("continuationShowButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W8.prototype,"continuationShowButtonChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W8.prototype,"dataChangedForBinding",null);_.V([_.gw({is:"ytd-item-section-renderer",disableElementRegistration:!0})],W8);
_.l(W8,"ytd-item-section-renderer",function(){if(Eud!==void 0)return Eud;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Eud=p},{mode:1});var TkN;var UTi=_.aR(_.Kl("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var dWU={},BNW=(dWU[0]={title:_.I5(_.Kl("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.I5(_.Kl("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.xO("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},dWU[1]={title:_.I5(_.Kl("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.xO("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},dWU);_.QI("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Qm=function(){var p=_.T.apply(this,arguments)||this;p.allVideosCount=0;p.allPlaylistCount=0;p.isOnline=!1;p.shouldRenderDownloadsBanner=!1;p.shouldRenderDownloadsBannerUpsell=!1;p.hasOptedIntoSmartDownloads=!1;p.areAllSmartDownloadsDeleted=!1;p.smartDownloadsCompleted=!1;return p};
_.Q(Qm,_.T);Qm.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Qm.prototype.attached=function(){this.downloadsToRenderChanged()};
Qm.prototype.detached=function(){this.set("renderableData",{})};
Qm.prototype.downloadsToRenderChanged=function(){var p=_.rl().getState().entities,J=_.ex(p),S=_.z("kevlar_playlist_dl_page_killswitch")?WUg(p):_.Wq(p),H=_.ODw(p),M=_.$ak(p),X=_.O4(J);p=_.Qc(p);this.set("renderableData",gRW(S,J,H,M,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,X,p))};
Qm.prototype.downloadsToRenderChanged=Qm.prototype.downloadsToRenderChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],Qm.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Qm.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],Qm.prototype,"renderableData",void 0);_.V([_.N({selector:_.TFk}),_.Y("design:type",Object)],Qm.prototype,"allVideosCount",void 0);_.V([_.N({selector:vGt}),_.Y("design:type",Object)],Qm.prototype,"allPlaylistCount",void 0);_.V([_.N({selector:_.s4}),_.Y("design:type",Object)],Qm.prototype,"isOnline",void 0);_.V([_.N({selector:_.ENw}),_.Y("design:type",Object)],Qm.prototype,"shouldRenderDownloadsBanner",void 0);
_.V([_.N({selector:_.w3W}),_.Y("design:type",Object)],Qm.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.V([_.N({selector:_.YZ3}),_.Y("design:type",Object)],Qm.prototype,"hasOptedIntoSmartDownloads",void 0);_.V([_.N({selector:_.rLi}),_.Y("design:type",Object)],Qm.prototype,"areAllSmartDownloadsDeleted",void 0);_.V([_.N({selector:jO9}),_.Y("design:type",Object)],Qm.prototype,"smartDownloadsCompleted",void 0);
_.V([_.An("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qm.prototype,"downloadsToRenderChanged",null);_.V([_.gw({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Qm);
_.l(Qm,"ytd-offline-item-section-renderer",function(){if(TkN!==void 0)return TkN;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return TkN=p},
{mode:1});var uXf;var l3y;var CW=function(){return _.T.apply(this,arguments)||this};
_.Q(CW,_.T);
CW.prototype.onDataChanged=function(){if(this.JSC$17008_lastData){var p=this.getFilterClass(this.JSC$17008_lastData.status);p&&this.hostElement.classList.remove(p)}var J;(p=this.getFilterClass((J=this.data)==null?void 0:J.status))&&this.hostElement.classList.add(p);p==="selected"?_.Jn(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Jn(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");p==="disabled"?_.Jn(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Jn(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17008_lastData=this.data};
CW.prototype.getFilterClass=function(p){switch(p){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
CW.prototype.onDataChanged=CW.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],CW.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CW.prototype,"onDataChanged",null);_.V([_.gw({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],CW);
_.l(CW,"ytd-search-filter-renderer",function(){if(l3y!==void 0)return l3y;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return l3y=p},{mode:_.Jz("kevlar_poly_si_batch_j075")?1:2});var ym=function(){return _.T.apply(this,arguments)||this};
_.Q(ym,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ym.prototype,"data",void 0);_.V([_.gw({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],ym);
_.l(ym,"ytd-search-filter-group-renderer",function(){if(uXf!==void 0)return uXf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return uXf=p},{mode:_.Jz("kevlar_poly_si_batch_j075")?1:2});var Vtj;var B8=function(){return _.T.apply(this,arguments)||this};
_.Q(B8,_.T);B8.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Qw());this.isCollapsed=!this.isCollapsed};
B8.prototype.navigateToAboutTheseResultsPage=function(){var p=_.uv("https://www.youtube.com/howyoutubeworks/product-features/search/");p?_.Ju(window,p,"_blank"):_.xv(Error("Uh"))};
B8.prototype.dataChanged=function(){this.isCollapsed=!0};
B8.prototype.computeShowBottomBorder=function(){var p,J,S;return!!((p=this.data)==null?0:(J=p.button)==null?0:J.toggleButtonRenderer)||!((S=this.data)==null||!S.aboutTheseResultsButton)};
B8.prototype.dataChanged=B8.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],B8.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.Y("design:type",Boolean)],B8.prototype,"showBottomBorder",void 0);_.V([_.N(),_.Y("design:type",Boolean)],B8.prototype,"renderCollapsibleMenu",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],B8.prototype,"isCollapsed",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B8.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],B8);
_.l(B8,"ytd-search-sub-menu-renderer",function(){if(Vtj!==void 0)return Vtj;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Vtj=p},{mode:1});var qi$;var a3N=new _.ni("SECTION_LIST_RENDERER_TOKEN");var Esp;var UY=function(){return _.T.apply(this,arguments)||this};
_.Q(UY,_.T);UY.prototype.computeStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],UY.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],UY.prototype,"headerStyle",void 0);_.V([_.gw({is:"ytd-text-header-renderer",disableElementRegistration:!0})],UY);
_.l(UY,"ytd-text-header-renderer",function(){if(Esp!==void 0)return Esp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Esp=p},{mode:1});var Yie;var sY=function(){return _.T.apply(this,arguments)||this};
_.Q(sY,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],sY.prototype,"data",void 0);_.V([_.gw({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],sY);
_.l(sY,"ytd-minor-moment-header-renderer",function(){if(Yie!==void 0)return Yie;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Yie=p},{mode:1});var r9I;var t$=function(){return _.T.apply(this,arguments)||this};
_.Q(t$,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],t$.prototype,"data",void 0);_.V([_.gw({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],t$);
_.l(t$,"ytd-minor-moment-setting-alert-renderer",function(){if(r9I!==void 0)return r9I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return r9I=p},{mode:1});var jvU;var wgU;var h$=function(){var p=_.T.apply(this,arguments)||this;p.booleanSettingById=!1;p.smartDownloadsEnabledVE=_.KG(128287);p.smartDownloadsDisabledVE=_.KG(128286);p.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return p};
_.Q(h$,_.T);_.R=h$.prototype;_.R.attachSmartDownloadsSettingVes=function(){var p;this.activeVeForLogging||((p=this.data)==null?void 0:p.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.dC(_.bC(),this.smartDownloadsEnabledVE),_.dC(_.bC(),this.smartDownloadsDisabledVE))};
_.R.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.cf(this.hostElement,"yt-settings-switch-ready")};
_.R.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.R.onSwitchChange=function(p){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(p=_.Yt(p).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.z("kevlar_settings_switch_resolve_command_killswitch")?_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(p)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.R.handleUpdateSettingsSwitch=function(p){(p=_.e(p,AQ8))&&this.data&&this.data.id===p.id&&this.set("data.enabled",!!p.enabled)};
_.R.onToggleSettingsSwitch=function(p,J){this.data&&this.data.id===p&&this.set("data.enabled",J!=null?J:!this.data.enabled)};
_.R.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.yK.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.R.maybeLogSmartDownloadsSettingVisibility=function(){var p=_.C1(),J;p&&((J=this.data)==null?void 0:J.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.dI(p,[this.smartDownloadsEnabledVE]),_.u7(p,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.dI(p,[this.smartDownloadsDisabledVE]),_.u7(p,[this.smartDownloadsEnabledVE])))};
_.R.maybeLogSmartDownloadsSettingClick=function(){var p;((p=this.data)==null?void 0:p.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.lq(_.bC(),this.activeVeForLogging)};
_.R.updateDataEnabledFromBinding=function(p){this.set("data.enabled",p.detail.value)};
_.vh.Object.defineProperties(h$.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}}});
h$.prototype.dataChanged=h$.prototype.dataChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],h$.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],h$.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],h$.prototype,"ytComponentBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],h$.prototype,"data",void 0);_.V([_.N({selector:function(p,J){if(Object.keys(p==null?void 0:p.entities).length)switch(J){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return QOw(p.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.Y("design:type",Object)],h$.prototype,"booleanSettingById",void 0);_.V([_.N(),_.Y("design:type",eq)],h$.prototype,"activeVeForLogging",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],h$.prototype,"toggleAriaLabel",null);_.V([_.An("data"),_.An("booleanSettingById"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h$.prototype,"dataChanged",null);
_.V([_.gw({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],h$);
_.l(h$,"ytd-settings-switch-renderer",function(){if(wgU!==void 0)return wgU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return wgU=p},{mode:1});var D8=function(){return _.T.apply(this,arguments)||this};
_.Q(D8,_.T);D8.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}}}}};
_.vh.Object.defineProperties(D8.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}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],D8.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],D8.prototype,"contentsClassName",null);_.V([_.gw({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],D8);
_.l(D8,"ytd-minor-moment-setting-section-renderer",function(){if(jvU!==void 0)return jvU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return jvU=p},{mode:1});var xWj;var kh=function(){return _.T.apply(this,arguments)||this};
_.Q(kh,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],kh.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],kh.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],kh);
_.l(kh,"ytd-empty-product-details-renderer",function(){if(xWj!==void 0)return xWj;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return xWj=p},{mode:1});var c9U;var I3M;var Np=function(){var p=_.T.apply(this,arguments)||this;p.expanded=!0;return p};
_.Q(Np,_.T);Np.prototype.getBadgeRowClass=function(p,J,S){for(var H=_.K(this.hostElement.querySelectorAll("yt-img-shadow")),M=H.next();!M.done;M=H.next())M.value.onShow();p=p.selected;return S?p!==-1?p===J?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(p!==void 0?p:0)===J?"badge-line":"badge-hidden"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Np.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Np.prototype,"expanded",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Np);
_.l(Np,"ytd-sponsorships-loyalty-badges-renderer",function(){if(I3M!==void 0)return I3M;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return I3M=p},{mode:1});var LiI;var TR=function(){var p=_.T.apply(this,arguments)||this;p.expanded=!0;return p};
_.Q(TR,_.T);TR.prototype.getContainerClasses=function(p,J){p=p?"expanded":"collapsed";J&&(p+=" item");return p};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],TR.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],TR.prototype,"expanded",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],TR);
_.l(TR,"ytd-sponsorships-perk-renderer",function(){if(LiI!==void 0)return LiI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return LiI=p},{mode:1});var pEw;var da=function(){var p=_.T.apply(this,arguments)||this;p.expanded=!0;return p};
_.Q(da,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],da.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],da.prototype,"expanded",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],da);
_.l(da,"ytd-sponsorships-perks-renderer",function(){if(pEw!==void 0)return pEw;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return pEw=p},{mode:1});var ud=function(){var p=_.T.apply(this,arguments)||this;p.isCollapsed=!1;return p};
_.Q(ud,_.T);ud.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
ud.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
ud.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var p;this.expandCollapseButton=_.e((p=this.data)==null?void 0:p.expandButton,_.Za)}else{var J;this.expandCollapseButton=_.e((J=this.data)==null?void 0:J.collapseButton,_.Za)}};
ud.prototype.updateExpandCollapseButton=ud.prototype.updateExpandCollapseButton;ud.prototype.onDataChanged=ud.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ud.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ud.prototype,"isCollapsed",void 0);_.V([_.N(),_.Y("design:type",Object)],ud.prototype,"expandCollapseButton",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ud.prototype,"onDataChanged",null);_.V([_.An("data","isCollapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ud.prototype,"updateExpandCollapseButton",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],ud);
_.l(ud,"ytd-sponsorships-expandable-perks-renderer",function(){if(c9U!==void 0)return c9U;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return c9U=p},{mode:1});var J8e;var ld=function(){return _.T.apply(this,arguments)||this};
_.Q(ld,_.T);ld.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],ld.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ld.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],ld);
_.l(ld,"ytd-sponsorships-actionable-message-renderer",function(){if(J8e!==void 0)return J8e;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return J8e=p},{mode:1});var Spe;var Vm=function(){return _.T.apply(this,arguments)||this};
_.Q(Vm,_.T);_.R=Vm.prototype;_.R.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.R.getExpansionIcon=function(p){return p?"COLLAPSE":"EXPAND"};
_.R.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.R.computeMessageContainerStyle=function(p){var J=p.expandableItems?" style-clickable":"";return p.messageContainerStyle?p.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+J:"style-unspecified"+J};
_.R.isSinglePerk=function(p){return!!p.messageContainerStyle&&(p.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||p.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.R.onExpandedChanged=function(){var p=this;if(this.expanded)for(var J=_.K(this.hostElement.querySelectorAll("yt-img-shadow")),S=J.next();!S.done;S=J.next())S.value.onShow();_.mN(this,function(){_.cf(p.hostElement,"yt-refit")})};
_.R.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Vm.prototype.onDataChanged=Vm.prototype.onDataChanged;Vm.prototype.onExpandedChanged=Vm.prototype.onExpandedChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Vm.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Vm.prototype,"expanded",void 0);
_.V([_.bO("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vm.prototype,"onExpandedChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vm.prototype,"onDataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Vm);
_.l(Vm,"ytd-sponsorships-expandable-message-renderer",function(){if(Spe!==void 0)return Spe;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Spe=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var Hd$;var qp=function(){return _.T.apply(this,arguments)||this};
_.Q(qp,_.T);qp.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"}}}}};
qp.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.e(this.data.endButton,_.Za).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
qp.prototype.onDataChanged=qp.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qp.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qp.prototype,"onDataChanged",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],qp);
_.l(qp,"ytd-sponsorships-heading-renderer",function(){if(Hd$!==void 0)return Hd$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Hd$=p},{mode:1});var MLf;var aX=function(){return _.T.apply(this,arguments)||this};
_.Q(aX,_.T);_.V([_.N(),_.Y("design:type",Object)],aX.prototype,"data",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],aX);
_.l(aX,"ytd-sponsorships-links-renderer",function(){if(MLf!==void 0)return MLf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return MLf=p},{mode:1});var XEf;var EY=function(){return _.T.apply(this,arguments)||this};
_.Q(EY,_.T);_.R=EY.prototype;_.R.onDataChanged=function(){if(this.data&&this.data.expandableItems){var p;(p=_.Jn(this.hostElement).querySelector("tp-yt-paper-button"))==null||p.setAttribute("role","button")}else{var J;(J=_.Jn(this.hostElement).querySelector("tp-yt-paper-button"))==null||J.removeAttribute("role")}};
_.R.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.R.getExpansionIcon=function(p){return p?"COLLAPSE":"EXPAND"};
_.R.getTileClasses=function(p){return p?"tile expandable-tile":"tile"};
_.R.getButtonDisabled=function(p){return p?void 0:""};
EY.prototype.onDataChanged=EY.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],EY.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],EY.prototype,"expanded",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EY.prototype,"onDataChanged",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],EY);
_.l(EY,"ytd-sponsorships-list-tile-renderer",function(){if(XEf!==void 0)return XEf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return XEf=p},{mode:1});var idP;var RMf;var Yh=function(){return _.T.apply(this,arguments)||this};
_.Q(Yh,_.T);Yh.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Yh.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Yh);
_.l(Yh,"ytd-sponsorships-promotion-renderer",function(){if(RMf!==void 0)return RMf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return RMf=p},{mode:1});var K8N;var ra=function(){return _.T.apply(this,arguments)||this};
_.Q(ra,_.T);ra.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ra.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ra.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],ra);
_.l(ra,"ytd-sponsorships-purchase-option-renderer",function(){if(K8N!==void 0)return K8N;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return K8N=p},{mode:1});var ZdM;var nUN;var GoU=function(){return _.T.apply(this,arguments)||this};
_.Q(GoU,_.T);_.V([_.N(),_.Y("design:type",Object)],GoU.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],GoU);
_.l(GoU,"ytd-ypc-offer-promo-renderer",function(){if(nUN!==void 0)return nUN;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return nUN=p},{mode:1});var jy=function(){return _.T.apply(this,arguments)||this};
_.Q(jy,_.T);_.R=jy.prototype;
_.R.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"}}}}};
_.R.expansionCTA=function(p,J){return p&&(J?p.collapseCallToAction:p.expansionCallToAction)};
_.R.getExpansionIcon=function(p){return p?"COLLAPSE":"EXPAND"};
_.R.expansionCallToActionTap=function(){var p=this;this.expanded=!this.expanded;_.mN(this,function(){_.cf(p.hostElement,"yt-refit")})};
_.R.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var p,J=(p=this.data)==null?void 0:p.onVisible;J&&this.ytComponentBehavior.resolveCommand(J)};
_.R.computeDisplayTitle=function(p){return!(!p||this.titledisplaystatus!=="show")};
_.R.computeDisplaySeparator=function(){return!1};
_.R.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
jy.prototype.onDataChanged=jy.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],jy.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],jy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],jy.prototype,"data",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],jy.prototype,"expanded",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],jy.prototype,"purchaseButtonClicked",void 0);_.V([_.N({reflectToAttribute:!0,value:"show"}),_.Y("design:type",String)],jy.prototype,"titledisplaystatus",void 0);_.V([_.N({computed:"computeDisplayTitle(data.title)"}),_.Y("design:type",Boolean)],jy.prototype,"displayTitle",void 0);
_.V([_.N({computed:"computeDisplaySeparator(data)"}),_.Y("design:type",Boolean)],jy.prototype,"displaySeparator",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jy.prototype,"onDataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],jy);
_.l(jy,"ytd-sponsorships-tier-renderer",function(){if(ZdM!==void 0)return ZdM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ZdM=p},{mode:2});var wa=function(){return _.T.apply(this,arguments)||this};
_.Q(wa,_.T);
wa.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"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],wa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wa.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],wa);
_.l(wa,"ytd-sponsorships-management-renderer",function(){if(idP!==void 0)return idP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return idP=p},{mode:1});var bde;var xh=function(){return _.T.apply(this,arguments)||this};
_.Q(xh,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xh.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],xh);
_.l(xh,"ytd-open-in-native-app-view-model",function(){if(bde!==void 0)return bde;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return bde=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var m4p;var F8I;var vUl=_.YI(["top-"]),fqN=_.YI(["bottom-"]),Odl=_.YI(["left-"]),A8I=_.YI(["right-"]),P8N={},zMy=function(p,J,S){p.removeAttribute("top-"+S);p.removeAttribute("bottom-"+S);p.removeAttribute("left-"+S);p.removeAttribute("right-"+S);J&&(J.top&&_.Zr([_.m9(vUl)],p,"top-"+S,J.top),J.bottom&&_.Zr([_.m9(fqN)],p,"bottom-"+S,J.bottom),J.left&&_.Zr([_.m9(Odl)],p,"left-"+S,J.left),J.right&&_.Zr([_.m9(A8I)],p,"right-"+S,J.right))};
P8N.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(p){var J,S=_.Jn((J=this.hostElement)!=null?J:this),H;J=this.cardItemBoxBehaviorMarginTargetId&&S?S.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(H=this.hostElement)!=null?H:this;zMy(J,p,"margin")},
cardItemContainerPaddingChanged_:function(p){var J,S=_.Jn((J=this.hostElement)!=null?J:this),H;J=this.cardItemBoxBehaviorPaddingTargetId&&S?S.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(H=this.hostElement)!=null?H:this;zMy(J,p,"padding")}}];var c8={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 $4j;var oUe;var IX=function(){return _.T.apply(this,arguments)||this};
_.Q(IX,_.T);IX.prototype.textColorChanged_=function(){this.hostElement.style.color=c8[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
IX.prototype.textColorChanged_=IX.prototype.textColorChanged_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.V([_.B(P8N.YtCardItemBoxBehavior),_.Y("design:type",Object)],IX.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],IX.prototype,"data",void 0);_.V([_.bO("data.textColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IX.prototype,"textColorChanged_",null);
_.V([_.sD({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],IX);
_.l(IX,"yt-card-item-text-renderer",function(){if(oUe===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;$4j===void 0&&($4j=document.createElement("template"));var H=$4j;S.call(J,H.content.cloneNode(!0),p.content.firstChild);oUe=p}p=oUe;return p},{mode:2});var eMM;var W8M;var LW=function(){return _.T.apply(this,arguments)||this};
_.Q(LW,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],LW.prototype,"data",void 0);_.V([_.sD({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],LW);
_.l(LW,"yt-card-item-badge-renderer",function(){if(W8M===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;eMM===void 0&&(eMM=document.createElement("template"));var H=eMM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);W8M=p}p=W8M;return p},{mode:2});var Q8$;var C8f;var pR=function(){return _.T.apply(this,arguments)||this};
_.Q(pR,_.T);pR.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],pR.prototype,"data",void 0);_.V([_.sD({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],pR);
_.l(pR,"yt-card-item-text-collection-renderer",function(){if(C8f===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Q8$===void 0&&(Q8$=document.createElement("template"));var H=Q8$;S.call(J,H.content.cloneNode(!0),p.content.firstChild);C8f=p}p=C8f;return p},{mode:2});var y8N;var Bme;var Jx=function(){return _.T.apply(this,arguments)||this};
_.Q(Jx,_.T);Jx.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]]"}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Jx.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Number)],Jx.prototype,"iconSize",void 0);_.V([_.sD({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Jx);
_.l(Jx,"yt-card-item-text-with-button-renderer",function(){if(Bme===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;y8N===void 0&&(y8N=document.createElement("template"));var H=y8N;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Bme=p}p=Bme;return p},{mode:2});var SR=function(){return _.T.apply(this,arguments)||this};
_.Q(SR,_.T);SR.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],SR.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],SR.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],SR);
_.l(SR,"ytd-commerce-cart-summary-line-item-renderer",function(){if(F8I!==void 0)return F8I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return F8I=p},{mode:1});_.QI("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var HK=function(){var p=_.T.apply(this,arguments)||this;p.hidden=!1;return p};
_.Q(HK,_.T);_.R=HK.prototype;_.R.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"}}}}};
_.R.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.R.updateSummary=function(){var p=this.commerceCartCheckoutButtonEntity,J;if(((J=this.data)==null?0:J.cartButton)&&p.checkoutSummaryText){var S,H=CY((S=this.data)==null?void 0:S.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+H+".cardItemTextRenderer.text",y8(p.checkoutSummaryText));if(p.checkoutDetailText){var M;S=CY((M=this.data)==null?void 0:M.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+S+".cardItemTextRenderer.text",y8(p.checkoutDetailText))}if(p.checkoutAdditionalMetadataText){var X;
M=CY((X=this.data)==null?void 0:X.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+M+".cardItemTextRenderer.text",y8(p.checkoutAdditionalMetadataText))}}else p.estimatedTotalPrice&&(X=CY((H=this.data)==null?void 0:H.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+X+".cardItemTextRenderer.text",y8(p.estimatedTotalPrice)))};
_.R.updateIsHidden=function(){var p,J=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.isHidden;J!==void 0&&(this.hidden=J)};
_.R.updateCheckoutButton=function(){var p,J=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.isDisabled;J!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",J);var S;p=(S=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:S.innertubeCommand;p!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",p);var H;S=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.checkoutButtonText;S!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:S})};
HK.prototype.entityChanged=HK.prototype.entityChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],HK.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],HK.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],HK.prototype,"fullWidth",void 0);_.V([_.N(),_.Y("design:type",Object)],HK.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],HK.prototype,"compact",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],HK.prototype,"hidden",void 0);
_.V([_.N({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ipk}),_.Y("design:type",Object)],HK.prototype,"commerceCartCheckoutButtonEntity",void 0);_.V([_.bO("commerceCartCheckoutButtonEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HK.prototype,"entityChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],HK);
_.l(HK,"ytd-commerce-cart-checkout-button-renderer",function(){if(m4p!==void 0)return m4p;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return m4p=p},{mode:2});var U4$;_.s8M={};
_.s8M.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",_.n3(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.n3(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?(_.pl(this.hostElement,[p]),this.tappableItemBehaviorTapEnabled=!1):p.ypcOffersEndpoint?_.pl(this.hostElement,[p]):_.JP(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 gUM;var tL$;var MO=function(){return _.T.apply(this,arguments)||this};
_.Q(MO,_.T);MO.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Cb("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Cb("sharingToggleButtonAndDefaultButton")}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],MO.prototype,"data",void 0);_.V([_.sD({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],MO);
_.l(MO,"yt-card-item-actions-renderer",function(){if(tL$===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;gUM===void 0&&(gUM=document.createElement("template"));var H=gUM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);tL$=p}p=tL$;return p},{mode:2});var hMj;var D4r;var koM;var NmP;var TmM;var d4P;var Xk=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return p};
_.Q(Xk,_.T);Xk.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Xk.prototype.handleDarkModeToggledAction_=function(p){this.isDarkTheme_=p};
Xk.prototype.computeThemeImage_=function(p,J){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=_.Bt(p.borderColor));return J&&p.imageDark?p.imageDark:p.imageLight};
Xk.prototype.computeThemeIcon_=function(p){var J,S;if(!(p==null?0:(J=p.themedIcon)==null?0:(S=J.icon)==null?0:S.iconType))return!1;this.icon.style.color=c8[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 _.Xj(p.themedIcon.icon.iconType)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(P8N.YtCardItemBoxBehavior),_.Y("design:type",Object)],Xk.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Xk.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Xk.prototype,"data",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Xk.prototype,"fit",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Xk.prototype,"isDarkTheme_",void 0);_.V([_.N({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.Y("design:type",Object)],Xk.prototype,"themeImage_",void 0);_.V([_.N({computed:"computeThemeIcon_(data)"}),_.Y("design:type",Object)],Xk.prototype,"themeIcon_",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],Xk.prototype,"isCircular_",void 0);
_.V([_.FM("#image"),_.Y("design:type",Object)],Xk.prototype,"image",void 0);_.V([_.FM("#icon"),_.Y("design:type",Object)],Xk.prototype,"icon",void 0);_.V([_.sD({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Xk);
_.l(Xk,"yt-themed-image-renderer",function(){if(d4P===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;TmM===void 0&&(TmM=document.createElement("template"));var H=TmM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);d4P=p}p=d4P;return p},{mode:2});var is=function(){return _.T.apply(this,arguments)||this};
_.Q(is,_.T);is.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"}}}}};
is.prototype.computeImagePlacement_=function(p){return p||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],is.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],is.prototype,"data",void 0);_.V([_.N({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.Y("design:type",String)],is.prototype,"imagePlacement",void 0);
_.V([_.sD({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],is);
_.l(is,"yt-card-item-text-with-image-renderer",function(){if(NmP===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;koM===void 0&&(koM=document.createElement("template"));var H=koM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);NmP=p}p=NmP;return p},{mode:2});var Ro=function(){return _.T.apply(this,arguments)||this};
_.Q(Ro,_.T);Ro.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"}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ro.prototype,"data",void 0);_.V([_.sD({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Ro);
_.l(Ro,"yt-card-item-error-renderer",function(){if(D4r===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;hMj===void 0&&(hMj=document.createElement("template"));var H=hMj;S.call(J,H.content.cloneNode(!0),p.content.firstChild);D4r=p}p=D4r;return p},{mode:2});var unI;var lqP;_.QI("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var KR=function(){return _.T.apply(this,arguments)||this};
_.Q(KR,_.T);_.R=KR.prototype;
_.R.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"}}}}};
_.R.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.R.backgroundColorChanged_=function(){var p,J=(p=this.data)==null?void 0:p.backgroundColor;p=c8[J||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Jn(this.hostElement).querySelector("#main-content").style.backgroundColor=p};
_.R.headerPromoBackgroundColorChanged_=function(){var p,J=(p=this.data)==null?void 0:p.headerPromoBackgroundColor;p=c8[J||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Jn(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=p};
_.R.errorRendererVisibilityChanged_=function(){var p=this.isExpanded_,J;this.isErrorRendererVisible_=!((J=this.data)==null||!J.errorRenderer)&&!p};
_.R.onYtToggleButton_=function(p,J){this.isExpanded_=J.toggled};
KR.prototype.onYtToggleButton_=KR.prototype.onYtToggleButton_;KR.prototype.errorRendererVisibilityChanged_=KR.prototype.errorRendererVisibilityChanged_;KR.prototype.headerPromoBackgroundColorChanged_=KR.prototype.headerPromoBackgroundColorChanged_;KR.prototype.backgroundColorChanged_=KR.prototype.backgroundColorChanged_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(P8N.YtCardItemBoxBehavior),_.Y("design:type",Object)],KR.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.B(_.s8M.YtTappableItemBehavior),_.Y("design:type",Object)],KR.prototype,"ytTappableItemBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],KR.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],KR.prototype,"isExpanded_",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],KR.prototype,"isErrorRendererVisible_",void 0);_.V([_.bO("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KR.prototype,"backgroundColorChanged_",null);_.V([_.bO("data.headerPromoBackgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KR.prototype,"headerPromoBackgroundColorChanged_",null);
_.V([_.bO("data.errorRenderer","isExpanded_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KR.prototype,"errorRendererVisibilityChanged_",null);_.V([_.GI("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],KR.prototype,"onYtToggleButton_",null);_.V([_.sD({is:"yt-card-item-renderer",disableElementRegistration:!0})],KR);
_.l(KR,"yt-card-item-renderer",function(){if(lqP===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;unI===void 0&&(unI=document.createElement("template"));var H=unI;S.call(J,H.content.cloneNode(!0),p.content.firstChild);lqP=p}p=lqP;return p},{mode:2});_.QI("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var ZG=function(){var p=_.T.apply(this,arguments)||this;p.hidden=!1;return p};
_.Q(ZG,_.T);_.R=ZG.prototype;_.R.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.R.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.R.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var p,J=(p=this.commerceCartHeaderEntity)==null?void 0:p.isHidden;J!==void 0&&(this.hidden=J)}};
_.R.updateTitle=function(){var p=this.commerceCartHeaderEntity.isDisabled,J,S,H=(S=_.e((J=this.data)==null?void 0:J.item,AOM))==null?void 0:S.headingRenderer;H&&(J=CY(H,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+J+".0.cardItemTextRenderer.textColor",p?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.R.updateSummaryText=function(){var p=this.commerceCartHeaderEntity;if(this.compact){var J,S,H=(S=_.e((J=this.data)==null?void 0:J.item,AOM))==null?void 0:S.headingRenderer;H&&(J=CY(H,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+J+".1.cardItemTextRenderer.text",p.shortHeaderSummaryText?y8(p.shortHeaderSummaryText):p.headerSummaryText?y8(p.headerSummaryText):""))}else{var M;if(J=(M=_.e((H=this.data)==null?void 0:H.item,AOM))==null?void 0:M.additionalInfoRenderer)J=CY(J,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+J+".text",p.headerSummaryText?y8(p.headerSummaryText):"")}};
_.R.updateCheckoutButton=function(){var p=this.commerceCartHeaderEntity,J,S,H=(S=_.e((J=this.data)==null?void 0:J.item,AOM))==null?void 0:S.additionalInfoRenderer;J=CY(H,"buttonRenderer");var M;S=(M=this.commerceCartHeaderEntity)==null?void 0:M.isButtonDisabled;var X;M=(X=this.commerceCartHeaderEntity)==null?void 0:X.isButtonHidden;S!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+J+".buttonRenderer.isDisabled",S);M!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
M);var Z;p=(Z=p.checkoutButtonCommand)==null?void 0:Z.innertubeCommand;p!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+J+".buttonRenderer.command",p)};
ZG.prototype.entityChanged=ZG.prototype.entityChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],ZG.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ZG.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZG.prototype,"compact",void 0);_.V([_.N({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(p,J){return _.RR(p.entities,"commerceCartHeaderEntity",J)}}),
_.Y("design:type",Object)],ZG.prototype,"commerceCartHeaderEntity",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ZG.prototype,"hidden",void 0);_.V([_.bO("commerceCartHeaderEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZG.prototype,"entityChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],ZG);
_.l(ZG,"ytd-commerce-cart-header-renderer",function(){if(U4$!==void 0)return U4$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return U4$=p},{mode:1});var VLU;var qpw=_.Uj(function(p,J){var S;return(S=p.onChangeCallback)==null?void 0:S.call(p,J)},1E3),aqy=_.d(function(p){var J=p.data;
var S=p.iconMinus;p=p.iconPlus;var H=function(){return!!J().disabled},M=_.K(_.eQ(0,void 0,"mKh0af")),X=M.next().value,Z=M.next().value;
M=_.Kb(function(){if(X()===1){var O,A;(A=(O=J()).onRemoveCommand)==null||A.call(O)}O=X()>J().maxValue?J().maxValue:X()-1;Z(O);qpw(J(),O);return!1});
var n=_.Kb(function(){if(X()===J().maxValue)return!1;var O=X()+1;Z(O);qpw(J(),O);return!1});
_.qz(function(){Z(J().value)});
var b={},F={},f={};return _.m("quantity-incrementer-shape",null,_.m("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.m("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return X()===(J().onRemoveCommand?0:1)||H()},
"aria-label":function(){return X()!==1?J().minusLabel:J().minimumReachedLabel},
"on:click":M},_.m(_.B3,{model:{circular:!0}}),_.m("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.m("div",{class:_.XB("ytSpecQuantityIncrementerShapeIcon",(b.ytSpecQuantityIncrementerShapeIconDisabled=function(){return H()||X()===(J().onRemoveCommand?0:1)},b))},S()))),_.m("div",{class:_.XB("ytSpecQuantityIncrementerShapeText",(F.ytSpecQuantityIncrementerShapeTextInvalid=function(){return X()>J().maxValue},F.ytSpecQuantityIncrementerShapeTextDisabled=H,F))},X),_.m("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return X()>=J().maxValue||H()},
"aria-label":function(){return X()!==J().maxValue?J().plusLabel:J().maximumReachedLabel},
"on:click":n},_.m(_.B3,{model:{circular:!0}}),_.m("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.m("div",{class:_.XB("ytSpecQuantityIncrementerShapeIcon",(f.ytSpecQuantityIncrementerShapeIconDisabled=function(){return X()>=J().maxValue||H()},f))},p())))))},"Lf");_.ci(_.d(function(p){function J(){S().onRemoveCommand&&_.Dm(S().onRemoveCommand)}
var S=p.data;var H=_.v$(zLg,function(){return S().quantityIncrementerEntityKey});
return _.m("yt-quantity-incrementer-view-model",null,_.m(aqy,{data:function(){var M=S(),X;var Z=H()?!((X=H())==null||!X.disabled):!1;var n;X=H()?(n=H())==null?void 0:n.quantity:S().quantity;return DTs(M,Z,J,X)},
iconMinus:function(){return _.m(_.bn,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.m(_.bn,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Mf"),"yt-quantity-incrementer-view-model",{props:{data:_.fD}});var nR=function(){var p=_.T.apply(this,arguments)||this;p.compact=!1;p.hasQuantityIncrementer=!1;return p};
_.Q(nR,_.T);nR.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"}}}};
nR.prototype.computeHasQuantityIncrementer=function(){var p;return!!_.e((p=this.data)==null?void 0:p.picker,oAd)};
nR.prototype.onLabelClick=function(){var p;(p=this.dropdownEl)==null||p.open()};
_.V([_.FM("ytd-dropdown-renderer"),_.Y("design:type",Object)],nR.prototype,"dropdownEl",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],nR.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],nR.prototype,"quantityColor",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],nR.prototype,"compact",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.Y("design:type",Object)],nR.prototype,"hasQuantityIncrementer",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],nR);
_.l(nR,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(VLU!==void 0)return VLU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return VLU=p},{mode:1});var EUI;var YpN;var G9=function(){return _.T.apply(this,arguments)||this};
_.Q(G9,_.T);G9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
G9.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
G9.prototype.updateTitle=function(){var p=this.disabledCartItemEntity;p.disableActionName&&this.set("data.title",y8(p.disableActionName))};
G9.prototype.updateButton=function(){var p,J=(p=this.disabledCartItemEntity.undoCommand)==null?void 0:p.innertubeCommand;J!==void 0&&(this.set("data.actionButton.buttonRenderer.command",J),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
G9.prototype.entityChanged=G9.prototype.entityChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],G9.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(p,J){return _.RR(p.entities,"disabledCartItemEntity",J)}}),
_.Y("design:type",Object)],G9.prototype,"disabledCartItemEntity",void 0);_.V([_.N(),_.Y("design:type",Object)],G9.prototype,"data",void 0);_.V([_.bO("disabledCartItemEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G9.prototype,"entityChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],G9);
_.l(G9,"ytd-disabled-cart-item-renderer",function(){if(YpN!==void 0)return YpN;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return YpN=p},{mode:1});_.QI("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var bs=function(){var p=_.T.apply(this,arguments)||this;p.compact=!1;p.hidden=!1;p.errorHidden=!1;p.noOnTap=!1;return p};
_.Q(bs,_.T);_.R=bs.prototype;
_.R.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"}}}};
_.R.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.R.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var p=this.firstButtonElement;p.alignByText=!0;p.iconAlignByText=!0}};
_.R.computeNoOnTap=function(p){return!p};
_.R.updateQuantityColor=function(){if(this.pickerElement){var p,J=(p=this.commerceCartItemEntity)==null?void 0:p.quantityColor;this.pickerElement.quantityColor=J}};
_.R.updateTotalPriceColor=function(){var p,J=(p=this.commerceCartItemEntity)==null?void 0:p.totalPriceColor;if(J){var S;p=_.e((S=this.data)==null?void 0:S.quantityPicker,zJo);if(S=_.e(p==null?void 0:p.price,PFn))S.textColor=J}};
_.R.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var p,J=(p=this.commerceCartItemEntity)==null?void 0:p.isHidden;J!==void 0&&(this.hidden=J)}};
_.R.updateHideErrorMessage=function(){var p,J=(p=this.commerceCartItemEntity)==null?void 0:p.hideErrorMessage;J!==void 0&&(this.errorHidden=J)};
_.R.updateQuantity=function(){var p=this,J,S=(J=this.commerceCartItemEntity)==null?void 0:J.quantity,H;J=(H=this.commerceCartItemEntity)==null?void 0:H.totalPrice;if(S){this.updateTotalPriceColor();this.updateQuantityColor();var M;H=_.e((M=this.data)==null?void 0:M.quantityPicker,zJo);if(M=_.e(H==null?void 0:H.price,PFn))M.text=J?{simpleText:J.content}:void 0;if(J=_.e(H==null?void 0:H.picker,oAd))J.quantity=S;var X;if(M=(X=_.e(H==null?void 0:H.picker,A0v))==null?void 0:X.entries){X=!1;J=void 0;M=
_.K(M);for(H=M.next();!H.done;H=M.next())H=H.value,H.dropdownItemRenderer&&(J||(J=H.dropdownItemRenderer),H.dropdownItemRenderer.isSelected=!1,S===H.dropdownItemRenderer.int32Value&&(X=!0,H.dropdownItemRenderer.isSelected=!0));!X&&J&&(J.isSelected=!0)}_.mN(this,function(){var Z;p.set("data.quantityPicker",_.T6.unsafeClone((Z=p.data)==null?void 0:Z.quantityPicker))})}};
bs.prototype.onYtRendererstamperFinished=bs.prototype.onYtRendererstamperFinished;bs.prototype.entityChanged=bs.prototype.entityChanged;_.V([_.N(),_.Y("design:type",Object)],bs.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],bs.prototype,"compact",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],bs.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],bs.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bs.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(p,J){return _.RR(p.entities,"commerceCartItemEntity",J)}}),
_.Y("design:type",Object)],bs.prototype,"commerceCartItemEntity",void 0);_.V([_.N(),_.Y("design:type",Object)],bs.prototype,"quantityPicker",void 0);_.V([_.N(),_.Y("design:type",Object)],bs.prototype,"compactQuantityPicker",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],bs.prototype,"hidden",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],bs.prototype,"errorHidden",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.Y("design:type",Object)],bs.prototype,"noOnTap",void 0);_.V([_.FM("ytd-commerce-cart-item-quantity-picker-renderer"),_.Y("design:type",Object)],bs.prototype,"pickerElement",void 0);_.V([_.FM("yt-button-renderer"),_.Y("design:type",Element)],bs.prototype,"firstButtonElement",void 0);
_.V([_.bO("commerceCartItemEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bs.prototype,"entityChanged",null);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bs.prototype,"onYtRendererstamperFinished",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],bs);
_.l(bs,"ytd-commerce-cart-item-renderer",function(){if(EUI!==void 0)return EUI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return EUI=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var r8P;var j8y;var mF=function(){return _.T.apply(this,arguments)||this};
_.Q(mF,_.T);mF.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}}}}}};
mF.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
mF.prototype.updateCheckoutLineItems=function(){var p,J=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.checkoutLineItems;J&&(p=J.map(function(S){a:{var H=S.price,M=S.description;switch(S.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":S={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:y8(M),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:y8(H),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:S={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:y8(M),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:y8(H),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return S}),this.set("data.summaryLineItems",p))};
mF.prototype.updateIsHidden=function(){var p,J=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.isHidden;J!==void 0&&(this.hostElement.hidden=J)};
mF.prototype.entityChanged=mF.prototype.entityChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],mF.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],mF.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],mF.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],mF.prototype,"data",void 0);_.V([_.N({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ipk}),_.Y("design:type",Object)],mF.prototype,"commerceCartCheckoutButtonEntity",void 0);_.V([_.bO("commerceCartCheckoutButtonEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mF.prototype,"entityChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],mF);
_.l(mF,"ytd-commerce-cart-summary-renderer",function(){if(j8y!==void 0)return j8y;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return j8y=p},{mode:1});var wEU={};wEU.InjectBehavior=[j3k.InjectBehavior];var x4e;var c8I;var Fk=function(){return _.T.apply(this,arguments)||this};
_.Q(Fk,_.T);
Fk.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:_.Cb("menuRenderer")}}};
Fk.prototype.onMenuTap=function(p){p.stopPropagation()};
_.vh.Object.defineProperties(Fk.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,J;return!(((p=this.data)==null||!p.sectionHeading)&&((J=this.data)==null?void 0:J.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var p,J;return!(((p=this.data)==null||!p.image)&&((J=this.data)==null?void 0:J.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var p,J;return!(((p=this.data)==null||!p.menu)&&((J=this.data)==null?void 0:J.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Fk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.s8M.YtTappableItemBehavior),_.Y("design:type",Object)],Fk.prototype,"ytTappableItemBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Fk.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("data.accessibilityData"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Fk.prototype,"ariaLabel",null);_.V([_.U("data.sectionHeading","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Fk.prototype,"sectionHeadingVisible",null);_.V([_.U("data.image","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Fk.prototype,"imageVisible",null);
_.V([_.U("data.menu","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Fk.prototype,"menuVisible",null);_.V([_.sD({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Fk);
_.l(Fk,"yt-activity-item-renderer",function(){if(c8I===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;x4e===void 0&&(x4e=document.createElement("template"));var H=x4e;S.call(J,H.content.cloneNode(!0),p.content.firstChild);c8I=p}p=c8I;return p},{mode:2});var Iqe;var L8y;var ppI;var JrN;var vK=function(){return _.T.apply(this,arguments)||this};
_.Q(vK,_.T);
vK.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"}}}}};
vK.prototype.backgroundColorChanged_=function(){var p,J=(p=this.data)==null?void 0:p.backgroundColor;this.hostElement.style.backgroundColor=c8[J||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
vK.prototype.backgroundColorChanged_=vK.prototype.backgroundColorChanged_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],vK.prototype,"data",void 0);
_.V([_.bO("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vK.prototype,"backgroundColorChanged_",null);_.V([_.sD({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],vK);
_.l(vK,"yt-offer-item-upsell-renderer",function(){if(JrN===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;ppI===void 0&&(ppI=document.createElement("template"));var H=ppI;S.call(J,H.content.cloneNode(!0),p.content.firstChild);JrN=p}p=JrN;return p},{mode:2});_.QI("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var fR=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};p.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return p};
_.Q(fR,_.T);_.R=fR.prototype;
_.R.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:_.Cb("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.R.computeContainerStyle_=function(p){return p};
_.R.computeContainerIsHidden_=function(p){return p&&!!p.isHidden};
_.R.computeShowSpinner_=function(p,J){return p&&J==="in-progress"};
_.R.computeShowMoreContentsButton_=function(p,J,S,H,M){return!(!(H&&H.length||M&&M.length&&S)||!p||J)};
_.R.onToggleButton_=function(p){var J=this;p.stopPropagation();this.isExpanded_=p.detail&&p.detail.toggled;var S,H;this.isExpanded_&&!this.data.continuationSection.length&&((S=this.data)==null?0:(H=S.continuation)==null?0:H.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.cf(this.hostElement,"yt-load-next-continuation",function(M){return J.getContinuationUrl_(J.data.continuation.onClickContinuationData,M)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.pl(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.R.onShowMoreContentsButtonClicked_=function(p){var J=this;p.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.cf(this.hostElement,"yt-load-next-continuation",function(S){return J.getContinuationUrl_(J.data.continuations[0].nextContinuationData,S)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.pl(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.R.getContinuationUrl_=function(p,J){var S=p.continuation;p=p.clickTrackingParams;var H=_.C1();p&&H&&_.l7(H,_.Az(p));return _.KQ(J,{continuation:S})};
_.R.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var p=_.Jn(this.hostElement).querySelector("#continuation-section");p&&(p=p.querySelectorAll("ytmusic-item-section-renderer"))&&p.forEach(function(J){return J.classList.add("memberships-and-purchases")})};
_.R.dataChanged_=function(){var p;this.isExpanded_=!((p=this.data)==null||!p.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.R.updateCardOnClickCommand_=function(p){p=_.e(p,nA8);var J,S;this.data&&((J=this.data)==null?0:J.targetId)&&p&&p.targetId===((S=this.data)==null?void 0:S.targetId)&&p.onClickCommand&&(this.data.onClickCommand=p.onClickCommand,this.isOnClickCommand_=!0)};
_.R.backgroundColorChanged_=function(){var p,J=(p=this.data)==null?void 0:p.backgroundColor;this.hostElement.style.backgroundColor=c8[J||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
fR.prototype.backgroundColorChanged_=fR.prototype.backgroundColorChanged_;fR.prototype.dataChanged_=fR.prototype.dataChanged_;fR.prototype.nextContinuationDataUpdated_=fR.prototype.nextContinuationDataUpdated_;fR.prototype.onToggleButton_=fR.prototype.onToggleButton_;_.V([_.B(_.$W),_.Y("design:type",Object)],fR.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],fR.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.oM.YtNextContinuationBehavior),_.Y("design:type",Object)],fR.prototype,"ytNextContinuationBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.V([_.B(wEU.InjectBehavior),_.Y("design:type",Object)],fR.prototype,"injectBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],fR.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],fR.prototype,"compact",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],fR.prototype,"isExpanded_",void 0);_.V([_.N({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.Y("design:type",String)],fR.prototype,"containerStyle_",void 0);_.V([_.N({value:"not-started"}),_.Y("design:type",String)],fR.prototype,"continuationStatus_",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.Y("design:type",Boolean)],fR.prototype,"showSpinner_",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],fR.prototype,"isOnClickCommand_",void 0);_.V([_.N({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.Y("design:type",Boolean)],fR.prototype,"showMoreContentsButton_",void 0);
_.V([_.N({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(p,J){return!J||p.entities?null:_.RR(p.entities,"cardItemContainerEntity",J)}}),
_.Y("design:type",Object)],fR.prototype,"cardItemContainerEntity_",void 0);_.V([_.GI("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],fR.prototype,"onToggleButton_",null);_.V([_.GI("yt-next-continuation-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fR.prototype,"nextContinuationDataUpdated_",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fR.prototype,"dataChanged_",null);_.V([_.bO("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fR.prototype,"backgroundColorChanged_",null);_.V([_.sD({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],fR);
_.l(fR,"yt-card-item-container-renderer",function(){if(L8y===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Iqe===void 0&&(Iqe=document.createElement("template"));var H=Iqe;S.call(J,H.content.cloneNode(!0),p.content.firstChild);L8y=p}p=L8y;return p},{mode:2});var OU=function(){return _.T.apply(this,arguments)||this};
_.Q(OU,_.T);OU.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"}}}};
OU.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
OU.prototype.computeLoadingHidden=function(){var p;return!((p=this.commerceCartPageStateEntity)==null?0:p.cartActionInProgress)};
OU.prototype.updateNotification=function(){var p,J=(p=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:p.summaryText;J&&this.set("data.cartNotification",y8(J))};
OU.prototype.notificationEntityChanged=OU.prototype.notificationEntityChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],OU.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],OU.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],OU.prototype,"data",void 0);_.V([_.N({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(p,J){return _.RR(p.entities,"commerceCartExpandableNotificationEntity",J)}}),
_.Y("design:type",Object)],OU.prototype,"commerceCartExpandableNotificationEntity",void 0);_.V([_.N({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(p,J){return _.RR(p.entities,"commerceCartPageStateEntity",J)}}),
_.Y("design:type",Object)],OU.prototype,"commerceCartPageStateEntity",void 0);_.V([_.FM("#spinner"),_.Y("design:type",HTMLElement)],OU.prototype,"spinner",void 0);_.V([_.bO("commerceCartExpandableNotificationEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OU.prototype,"notificationEntityChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],OU);
_.l(OU,"ytd-commerce-cart-renderer",function(){if(r8P!==void 0)return r8P;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return r8P=p},{mode:1});var SN$;var Ax=function(){var p=_.T.apply(this,arguments)||this;p.bigImage=!1;return p};
_.Q(Ax,_.T);_.vh.Object.defineProperties(Ax.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.placeholderImageUrl}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ax.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Ax.prototype,"bigImage",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ax.prototype,"placeholderImageUrl",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Ax);
_.l(Ax,"ytd-empty-product-shelf-renderer",function(){if(SN$!==void 0)return SN$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return SN$=p},{mode:1});var HPf;var PK=function(){var p=_.T.apply(this,arguments)||this;p.itemStyle="link-item";p.watchMetadataRefresh=!1;p.skinnyMode=!1;p.metaPanel=!1;p.inStructuredDescription=!1;p.detailedDescriptionOverride=!1;p.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};p.updateOnResizeDebouncer=null;return p};
_.Q(PK,_.T);_.R=PK.prototype;_.R.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.R.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"}}}}};
_.R.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.R.attachVEs=function(p){p.trackingParams&&_.bC().graftServerVe(p.trackingParams)};
_.R.handleUpdateMerchShelfAction=function(p){var J=this,S=_.e(p.updateMerchandiseShelfAction.merchandiseShelf,_.DZ8);S&&(S.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){J.attachVEs(S);J.data=S},Number(S.renderDelayMs))):(this.attachVEs(S),this.data=S))};
_.R.updateOnResize=function(){if(this.JSC$17176_scrollContainer!==void 0&&this.JSC$17176_scrollContainer.clientWidth!==0&&this.items!==void 0){var p=this.JSC$17176_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-p));this.ytdHorizontalListBehavior.reposition_();var J;switch((J=this.data)==null?void 0:J.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var S,
H;((S=this.data)==null?void 0:(H=S.items)==null?void 0:H.length)===1?this.itemStyle="cta-item":this.itemStyle=p>=740?"large-item":"small-item"}}};
_.R.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.zm(this.updateOnResizeDebouncer,_.Kk.after(100),this.updateOnResize)};
PK.prototype.debouncedUpdateOnResize=PK.prototype.debouncedUpdateOnResize;PK.prototype.dataChanged=PK.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.BH.YtdHorizontalListBehavior),_.Y("design:type",Object)],PK.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],PK.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],PK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],PK.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PK.prototype,"itemStyle",void 0);_.V([_.N({value:6}),_.Y("design:type",Number)],PK.prototype,"initialCount",void 0);
_.V([_.N({value:"data.items"}),_.Y("design:type",String)],PK.prototype,"itemsPath",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PK.prototype,"watchMetadataRefresh",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PK.prototype,"skinnyMode",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PK.prototype,"metaPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PK.prototype,"inStructuredDescription",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PK.prototype,"detailedDescriptionOverride",void 0);_.V([_.FM("#items"),_.Y("design:type",HTMLDivElement)],PK.prototype,"items",void 0);_.V([_.FM("#scroll-container"),_.Y("design:type",HTMLDivElement)],PK.prototype,"JSC$17176_scrollContainer",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PK.prototype,"dataChanged",null);
_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PK.prototype,"debouncedUpdateOnResize",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],PK);
_.l(PK,"ytd-merch-shelf-renderer",function(){if(HPf!==void 0)return HPf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return HPf=p},{mode:2});var MI$;var z9=function(){var p=_.T.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};
_.Q(z9,_.T);_.R=z9.prototype;
_.R.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}]))};
_.R.addBackstageCommentAction=function(p){var J=this.get("addBackstageCommentAction.parentId",p);p=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",p);if(J&&p){J=this.postIdToIndices(J);for(var S=0;S<J.length;S++){var H=J[S];if(H<0)break;H="data.contents."+H+".backstagePostThreadRenderer.comments";this.get(H)&&(this.get(H+".backstageCommentsRenderer.contents")&&this.push(H+".backstageCommentsRenderer.contents",{commentThreadRenderer:p}),this.get(H+".backstageCommentsRenderer.teaserContents")?
this.push(H+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:p}):this.set(H+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:p}]))}}};
_.R.addBackstageReplyAction=function(p){var J=this.get("addBackstageReplyAction.parentId",p);p=this.get("addBackstageReplyAction.renderer.commentRenderer",p);J&&p&&this.setCreatorReply(J,p)};
_.R.banAuthorAction=function(p){var J=this.get("banAuthorAction.commentId",p);J&&(p=this.get("banAuthorAction.parentCommentId",p)||this.getParentPostId(J),this.removeFromStream(J,p))};
_.R.hideReportedCommentAction=function(p){var J=this.get("hideReportedCommentAction.commentId",p);J&&((p=this.get("hideReportedCommentAction.parentCommentId",p))||(p=this.getParentPostId(J)),this.removeFromStream(J,p))};
_.R.replaceBackstageCommentAction=function(p){var J=this.get("replaceBackstageCommentAction.commentId",p),S=this.get("replaceBackstageCommentAction.parentId",p);p=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",p);if(J&&S&&p){S=this.postIdToIndices(S);for(var H=0;H<S.length;H++){var M=S[H];if(M<0)break;var X=this.commentIdToIndex(J,M,!1);if(X>=0){var Z=this.get("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+X+".commentThreadRenderer.replies.commentRepliesRenderer");
Z&&(p.replies={commentRepliesRenderer:Z});this.splice("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",X,1,{commentThreadRenderer:p})}X=this.commentIdToIndex(J,M,!0);if(X>=0){if(Z=this.get("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(X+".commentThreadRenderer.replies.commentRepliesRenderer")))p.replies={commentRepliesRenderer:Z};this.splice("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
X,1,{commentThreadRenderer:p})}}}};
_.R.replaceBackstagePostAction=function(p){var J=this.get("replaceBackstagePostAction.itemId",p);if(J){J=this.postIdToIndices(J);for(var S=0;S<J.length;S++){var H=J[S];if(H<0)break;var M=this.getPostRendererType(H),X=this.get("replaceBackstagePostAction.renderer."+M,p);if(!X&&M!=="sharedPostRenderer")break;var Z=!1;X||(Z=!0,X=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",p));if(!X)break;var n={};Z?(_.QM(n,Izo,X),this.set("data.contents."+H+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
n)):(_.QM(n,new _.Zz(M),X),this.set("data.contents."+H+".backstagePostThreadRenderer.post",n))}}};
_.R.replaceBackstageReplyAction=function(p){var J=this.get("replaceBackstageReplyAction.replyId",p),S=this.get("replaceBackstageReplyAction.parentId",p);p=this.get("replaceBackstageReplyAction.renderer.commentRenderer",p);J&&p&&S&&this.setCreatorReply(S,p)};
_.R.removeCommentAction=function(p){var J=this.get("removeCommentAction.commentId",p);if(J){var S=this.get("removeCommentAction.parentCommentId",p);S&&this.get("removeCommentAction.isCreatorReply",p)?this.setCreatorReply(S,void 0):(S||(S=this.getParentPostId(J)),this.removeFromStream(J,S))}};
_.R.setCreatorReply=function(p,J){var S=this.getParentPostId(p);if(S){S=this.postIdToIndices(S);for(var H=0;H<S.length;H++){var M=S[H];if(M<0)break;var X=this.commentIdToIndex(p,M,!1);if(X>=0){var Z="data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+X;X=Z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";Z+=".commentThreadRenderer.replies";J==void 0?(this.set(Z,{}),this.set(X,!1)):(this.set(Z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:J}]}}),
this.set(Z+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(X,!0))}X=this.commentIdToIndex(p,M,!0);X>=0&&(X="data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+X,M=X+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",X+=".commentThreadRenderer.replies",J==void 0?(this.set(X,{}),this.set(M,!1)):(this.set(X,{commentRepliesRenderer:{teaserContents:[{commentRenderer:J}]}}),this.set(M,!0)))}}};
_.R.removeFromStream=function(p,J){if(J){J=this.postIdToIndices(J);for(var S=0;S<J.length;S++){var H=J[S];if(H<0)break;var M=this.commentIdToIndex(p,H,!1);M>=0&&this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",M,1);M=this.commentIdToIndex(p,H,!0);M>=0&&this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",M,1);H="data.contents."+H+".backstagePostThreadRenderer.post.backstagePostRenderer";
M=H+".backstageAttachment.pollRenderer.votedCommentId";this.get(M)===p&&(this.set(M,null),this.set(H+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(J=this.postIdToIndices(p).reverse(),S=0;S<J.length;S++){H=J[S];if(H<0)break;M=this.getPostRendererType(H);var X=this.get("backstagePostThreadRenderer.post."+M,this.data.contents[H]);X.postId===p?this.splice("data.contents",H,1):M==="sharedPostRenderer"&&this.set("data.contents."+H+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);X.scheduledPublishTimeSec&&_.IV(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.R.postIdToIndices=function(p){for(var J=[],S=0;S<this.data.contents.length;S++){var H=this.getPostRendererType(S);this.get("backstagePostThreadRenderer.post."+H+".postId",this.data.contents[S])===p&&J.push(S);if(H==="sharedPostRenderer"){var M=this.get("backstagePostThreadRenderer.post."+H+".originalPost.backstagePostRenderer.postId",this.data.contents[S]);H=this.get("backstagePostThreadRenderer.post."+H+".originalPost.postRenderer.postId",this.data.contents[S]);M!==p&&H!==p||J.push(S)}}return J};
_.R.commentIdToIndex=function(p,J,S){if(J<0)return-1;var H,M,X,Z,n=_.e((H=this.data)==null?void 0:(M=H.contents)==null?void 0:(X=M[J])==null?void 0:(Z=X.backstagePostThreadRenderer)==null?void 0:Z.comments,xPU);return(J=S?n==null?void 0:n.teaserContents:n==null?void 0:n.contents)&&J.length?J.findIndex(function(b){return _.e(b,sLo).comment.commentRenderer.commentId===p}):-1};
_.R.getParentPostId=function(p){p=p.split(".");if(p[1])return p[0]};
_.R.getPostRendererType=function(p){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[p])?"sharedPostRenderer":"backstagePostRenderer"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],z9.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],z9.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:_.z("enable_community_page_on_desktop")}),_.Y("design:type",Boolean)],z9.prototype,"useSmallerPostContainer",void 0);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-backstage-items"})],z9);
_.l(z9,"ytd-backstage-items",function(){if(MI$!==void 0)return MI$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return MI$=
p},{mode:1});var XpP;var iPI={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},$6=function(){var p=_.T.apply(this,arguments)||this;p.disablePrescanVisibility=!0;p.canScheduleJobs=!0;p.engagementPanel=!1;p.hidePanelButton=!1;p.isWatchGrid=
!1;p.hasShownSubscribersOnlyDisclaimer=!1;p.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};p.TEST_ONLY=void 0;return p};
_.Q($6,_.T);_.R=$6.prototype;_.R.created=function(){this.initCommentsCsi_();_.z("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.z("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.R.contentsChanged_=function(){var p;(p=this.data)!=null&&p.contents&&this.tickForCommentsTimer_("cml")};
_.R.headerChanged_=function(){var p;(p=this.data)!=null&&p.header&&this.tickForCommentsTimer_("cmhl")};
_.R.initCommentsCsi_=function(){_.W9("wn_comments");var p=_.C1();p&&_.o5({clientScreenNonce:p},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.R.createCommentAction_=function(p){p=_.T6.unsafeClone(p);var J,S;if(p=(J=_.e(p,$Ed))==null?void 0:(S=J.contents)==null?void 0:S.commentThreadRenderer){var H,M,X,Z,n,b;!this.isBackstage&&((H=this.data)==null?0:(M=H.header)==null?0:(X=M.commentsHeaderRenderer)==null?0:(Z=X.createRenderer)==null?0:(n=Z.commentSimpleboxRenderer)==null?0:(b=n.zeroStep)==null?0:b.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var F,
f,O;this.isBackstage&&_.e((F=this.data)==null?void 0:(f=F.header)==null?void 0:(O=f.commentsHeaderRenderer)==null?void 0:O.zeroStateMessage,L6M)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(p)}};
_.R.doReplyInsert_=function(p,J,S,H){H?this.splice(p,H,0,J):this.push(p,J)};
_.R.getRepliesPath_=function(p){return"data.contents."+p+".commentThreadRenderer.replies"};
_.R.getRepliesContentsPath_=function(p,J){p=this.getRepliesPath_(p);return J?p+".commentRepliesRenderer.teaserContents":p+".commentRepliesRenderer.contents"};
_.R.showSubscribersOnlyDisclaimer_=function(p){(p=p.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(p))&&(_.IV(this.hostElement,"yt-open-popup-action",[p,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.R.createCommentReplyAction_=function(p){p=_.T6.unsafeClone(p);var J=_.e(p,oed);if(p=J==null?void 0:J.contents){var S=this.commentIdToIndex_(J==null?void 0:J.parentCommentId);if(!(S<0)){var H=this.getRepliesPath_(S);if(this.get(H)){J=J.replyToCommentId;H=this.getRepliesContentsPath_(S,!1);if(this.get(H)){var M=this.get(H).length,X=H+"."+(M-1)+".continuationItemRenderer";this.get(X+".button")?(X=this.replyIdToIndex_(J,S,!1),this.doReplyInsert_(H,p,X,M-1)):this.get(X)||(M=this.replyIdToIndex_(J,S,
!1),this.doReplyInsert_(H,p,M,null))}H=this.getRepliesContentsPath_(S,!0);this.get(H)?(S=this.replyIdToIndex_(J,S,!0),(!J||S>=0)&&this.doReplyInsert_(H,p,S,null)):this.set(H,[p])}else this.set(H,{commentRepliesRenderer:{teaserContents:[p]}})}}};
_.R.hideReportedCommentAction_=function(p){var J=_.e(p,q28);if(p=J==null?void 0:J.commentId)(J=this.get("parentCommentId",J))||(J=this.getParentCommentId_(p)),this.remove_(p,J)};
_.R.getParentCommentId_=function(p){p=p.split(".");if(p[1])return p[0]};
_.R.removeCommentAction_=function(p){var J=_.e(p,y3m);if(p=J==null?void 0:J.commentId)J=(J==null?void 0:J.parentCommentId)||this.getParentCommentId_(p),this.remove_(p,J)};
_.R.pinCommentAction_=function(p){p=_.T6.unsafeClone(p);var J=_.e(p,CB8);J!=null&&J.commentId&&(p=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",p))&&(this.remove_(J.commentId),this.insert_(p,!0))};
_.R.unpinCommentAction_=function(p){p=_.T6.unsafeClone(p);p=_.e(p,BSq);if(p!=null&&p.commentId){var J,S,H=(J=p.actionResult)==null?void 0:(S=J.update)==null?void 0:S.commentThreadRenderer;H&&(this.remove_(p.commentId),this.insert_(H))}};
_.R.banAuthorAction_=function(p){var J=_.e(p,zh8);J!=null&&J.commentId&&(p=J.commentId,J=J.parentCommentId||this.getParentCommentId_(p),this.remove_(p,J))};
_.R.handleScrollToCommentElement_=function(p){this.hostElement.contains(p)&&(this.nearestScrollParent||(this.nearestScrollParent=kCw(p)),this.isCommentVisibleInScrollParent(p)||p.scrollIntoView({behavior:"smooth",block:"start"}))};
_.R.isCommentVisibleInScrollParent=function(p){if(!this.nearestScrollParent)return!1;p=p.getBoundingClientRect();var J=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return p.top>=J.top&&p.bottom<=J.bottom};
_.R.commentIdToIndex_=function(p){var J;return p&&(J=this.data)!=null&&J.contents?this.data.contents.findIndex(function(S){S=S.commentThreadRenderer;var H;return p===((S==null?void 0:S.commentViewModel)&&((H=_.e(S.commentViewModel,NSM))==null?void 0:H.commentId))}):-1};
_.R.insert_=function(p,J){J=J===void 0?!1:J;var S,H;if((S=this.data)==null?0:(H=S.contents)==null?0:H.some(function(X){return!!X.commentThreadRenderer}))for(S=0,H=this.data.contents.length;S<H;S++){var M=this.data.contents[S].commentThreadRenderer;
if(iPI[p.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=iPI[M.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){J&&iPI[p.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===iPI[M.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",S,1,{commentThreadRenderer:p}):this.splice("data.contents",S,0,{commentThreadRenderer:p});break}}else this.set("data.contents",[{commentThreadRenderer:p}])};
_.R.doReplyRemove_=function(p,J,S){p=this.replyIdToIndex_(p,J,S);p<0||(J=this.getRepliesContentsPath_(J,S),this.splice(J,p,1))};
_.R.remove_=function(p,J){J=this.commentIdToIndex_(J);J<0?(J=this.commentIdToIndex_(p),J<0||this.splice("data.contents",J,1)):_.z("web_delhi_comment_threads")||(this.doReplyRemove_(p,J,!1),this.doReplyRemove_(p,J,!0))};
_.R.replyIdToIndex_=function(p,J,S){if(J<0)return-1;J=this.getRepliesContentsPath_(J,S);J=this.get(J);if(!J||!J.length)return-1;S=0;for(var H=J.length;S<H;S++){var M=void 0,X=void 0;if(((M=J[S])==null?void 0:(X=M.commentViewModel)==null?void 0:X.commentId)===p)return S}return-1};
_.R.tickForCommentsTimer_=function(p){_.Cl(p,void 0,"wn_comments")};
_.R.reloadComments_=function(p){p=_.e(p,DE8);_.e(p==null?void 0:p.command,_.hm)&&_.pl(this.hostElement,[p==null?void 0:p.command])};
_.vh.Object.defineProperties($6.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return!!((p=this.data)==null?0:(J=p.header)==null?0:(S=J.commentsHeaderRenderer)==null?0:S.isBackstageContent)}}});
_.vh.Object.defineProperties($6,{template:{configurable:!0,enumerable:!0,get:function(){if(XpP===void 0){var p=document.createElement("template");_.C(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<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(_.r().content.cloneNode(!0),p.content.firstChild);XpP=p}p=XpP;return p}}});
$6.prototype.showSubscribersOnlyDisclaimer_=$6.prototype.showSubscribersOnlyDisclaimer_;$6.prototype.headerChanged_=$6.prototype.headerChanged_;$6.prototype.contentsChanged_=$6.prototype.contentsChanged_;_.V([_.B(_.QJ),_.Y("design:type",Object)],$6.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",Function)],$6.prototype,"ytPlayerListenerBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],$6.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],$6.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.header.commentsHeaderRenderer.isBackstageContent"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$6.prototype,"isBackstage",null);
_.V([_.N(),_.Y("design:type",Object)],$6.prototype,"disablePrescanVisibility",void 0);_.V([_.N(),_.Y("design:type",Object)],$6.prototype,"canScheduleJobs",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],$6.prototype,"engagementPanel",void 0);_.V([_.N(),_.Y("design:type",Object)],$6.prototype,"hidePanelButton",void 0);_.V([_.N(),_.Y("design:type",Object)],$6.prototype,"isWatchGrid",void 0);_.V([_.N(),_.Y("design:type",Object)],$6.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.V([_.bO("data.contents"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$6.prototype,"contentsChanged_",null);_.V([_.bO("data.header"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$6.prototype,"headerChanged_",null);_.V([_.GI("yt-show-subscribers-only-disclaimer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$6.prototype,"showSubscribersOnlyDisclaimer_",null);
_.V([_.gw({is:"ytd-comments"})],$6);var oo=function(){return _.f3.apply(this,arguments)||this};
_.Q(oo,_.f3);_.R=oo.prototype;_.R.bindIf=function(p,J,S){return p?J:S};
_.R.bindIfDefined=function(p,J){return p!==void 0?p:J};
_.R.booleanString=function(p){return(!!p).toString()};
_.R.equals=function(){for(var p=_.Yp.apply(0,arguments),J=p[0],S=1;S<p.length;S++)if(J!=p[S])return!1;return!0};
_.R.isGreaterThan=function(p,J){return p>J};
_.R.isLessThan=function(p,J){return p<J};
_.R.logicalAND=function(){for(var p=_.Yp.apply(0,arguments),J=!!p[0],S=1;S<p.length;S++)J=J&&!!p[S];return J};
_.R.logicalOR=function(){for(var p=_.Yp.apply(0,arguments),J=!!p[0],S=1;S<p.length;S++)J=J||!!p[S];return J};
_.R.toBool=function(p){return!!p};
oo.prototype.toBool=oo.prototype.toBool;oo.prototype.logicalOR=oo.prototype.logicalOR;oo.prototype.logicalAND=oo.prototype.logicalAND;oo.prototype.isLessThan=oo.prototype.isLessThan;oo.prototype.isGreaterThan=oo.prototype.isGreaterThan;oo.prototype.equals=oo.prototype.equals;oo.prototype.booleanString=oo.prototype.booleanString;oo.prototype.bindIfDefined=oo.prototype.bindIfDefined;oo.prototype.bindIf=oo.prototype.bindIf;_.V([_.OD()],oo);_.RUr=[oo.prototype];var KIl;var ZPe;var eR=function(){return _.T.apply(this,arguments)||this};
_.Q(eR,_.T);eR.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
eR.prototype.onBackIconTap_=function(){window.history.back()};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],eR.prototype,"data",void 0);_.V([_.sD({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],eR);
_.l(eR,"yt-header-with-back-renderer",function(){if(ZPe===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;KIl===void 0&&(KIl=document.createElement("template"));var H=KIl;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ZPe=p}p=ZPe;return p},{mode:2});var nyN;var GfI;var WK=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.Q(WK,_.T);_.R=WK.prototype;_.R.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.R.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p,this.setUrl())};
_.R.dataChanged=function(){var p=this;if(this.data){var J=this.setUrl();J&&_.Zv({destination:window,iframe:this.iframe,origin:_.ZCp(J.toString()),channelName:"yt-iframe",onMessage:function(S){(S=p.getCommunicationCommand(S.data))&&p.ytComponentBehavior.resolveCommand(S)},
onEstablished:function(){}})}};
_.R.setUrl=function(){if(this.data&&this.data.iframeUrl){var p=_.x_(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(p)return _.Lt(this.iframe,p),p}};
_.R.getCommunicationCommand=function(p){var J;if((J=this.data)!=null&&J.onCommunicationCommandsMap){J=this.data.onCommunicationCommandsMap.find(function(M){return M.key===p});
if(J==null?0:J.value)return J==null?void 0:J.value;try{var S=JOp(_.cg(p)),H=this.data.onCommunicationCommandsMap.find(function(M){return M.key===(S==null?void 0:S.getMethodName())});
if(H==null?0:H.value)return H==null?void 0:H.value}catch(M){}}};
WK.prototype.dataChanged=WK.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],WK.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],WK.prototype,"actionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],WK.prototype,"data",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],WK.prototype,"isDarkTheme",void 0);_.V([_.FM("#iframe"),_.Y("design:type",HTMLIFrameElement)],WK.prototype,"iframe",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WK.prototype,"dataChanged",null);_.V([_.sD({is:"yt-iframe-renderer",disableElementRegistration:!0})],WK);
_.l(WK,"yt-iframe-renderer",function(){if(GfI===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;nyN===void 0&&(nyN=document.createElement("template"));var H=nyN;S.call(J,H.content.cloneNode(!0),p.content.firstChild);GfI=p}p=GfI;return p},{mode:2});_.QZ=function(p){_.gp.call(this);this.callback=p;this.bezier=new KKd(0,0,.4,0,.2,1,1,1);this.delay=new _.AS(this.next,window,this);this.JSC$17217_animating=!1;_.$c(this,this.delay)};
_.Q(_.QZ,_.gp);_.QZ.prototype.isAnimating=function(){return this.JSC$17217_animating};
_.QZ.prototype.start=function(p,J,S){this.config={from:p,to:J,duration:S,startTime:(0,_.fO)()};this.JSC$17217_animating=!0;this.next()};
_.QZ.prototype.stop=function(){this.delay.stop();this.JSC$17217_animating=!1;this.config=void 0};
_.QZ.prototype.next=function(){if(this.config){var p=this.config,J=p.from,S=p.to,H=p.duration;p=p.startTime;var M=(0,_.fO)()-p;p=this.bezier;H=n8U(p,M/H);if(H==0)p=p.y0;else if(H==1)p=p.y3;else{M=g7(p.y0,p.y1,H);var X=g7(p.y1,p.y2,H);p=g7(p.y2,p.y3,H);M=g7(M,X,H);X=g7(X,p,H);p=g7(M,X,H)}p=_.s0(p,0,1);this.callback(J+(S-J)*p);p<1?this.delay.start():this.JSC$17217_animating=!1}};_.CR=new _.ni("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var bPI={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},FIl=function(p,J,S,H){_.gp.call(this);this.JSC$17228_miniAppId=p;this.localReleaseId=J;this.derivedDeviceInterface=S;this.isForeground=H;this.JSC$17228_playNonceResolver=new _.iy;this.playPingTimerId=NaN;this.playPingIntervalMs=_.PO("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.PO("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.z("enable_displaying_ppn");this.JSC$17228_miniAppClientDataProvider=_.vO().resolve(_.CR);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;mjP(this);var M=setTimeout(function(){_.xQ(new _.TG("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17228_playNonceResolver.promise.then(function(){clearTimeout(M)})};
_.Q(FIl,_.gp);var fle=function(p,J){p.JSC$17228_playNonceResolver.resolve(J!=null?J:oV(8));p.enableDisplayingPpn&&vyU(p).then(function(S){p.JSC$17228_miniAppClientDataProvider.clientData.set("post_play_nonce",S)})},vyU=function(p){return _.G(function(J){return J.nextAddress==1?J.yield(p.JSC$17228_playNonceResolver.promise,2):J.return(J.yieldResult)})},mjP=function(p){var J,S;
_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$17228_playNonceResolver.promise,2);J=H.yieldResult;S={miniAppInfo:{externalPostId:p.JSC$17228_miniAppId,localReleaseId:p.localReleaseId,postPlayNonce:J,derivedDeviceInterface:p.derivedDeviceInterface}};_.o5(S);_.UK(H)})},Arf=function(p){p.state!==0?_.xQ(new _.TG("[MiniAppPlayLogger] recordPlayStart failed with state "+bPI[p.state])):(p.state=1,yZ(p,"ma_cl"),BK(p,"PLAY_EVENT_TYPE_PLAY_START"),OPy(p))},P$w=function(p){p.isForeground=!1;
BK(p,"PLAY_EVENT_TYPE_PLAY_PAUSE")},zUP=function(p){p.state!==1&&p.state!==2?_.xQ(new _.TG("[MiniAppPlayLogger] recordPlayEnd failed with state "+bPI[p.state])):(p.state=3,window.clearInterval(p.playPingTimerId),p.playPingTimerId=NaN,Ydi(),BK(p,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},$jp=function(p,J){p.state===2&&p.gameReady&&(p.firstClickRecorded?Date.now()-p.clickRecordedMs<p.playClickIntervalMs||(p.clickRecordedMs=Date.now(),BK(p,"PLAY_EVENT_TYPE_PLAY_CLICK")):J&&(yZ(p,"ma_fua"),BK(p,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),p.firstClickRecorded=!0,p.clickRecordedMs=Date.now()))};
FIl.prototype.logError=function(p){var J=this,S;_.G(function(H){if(H.nextAddress==1)return p.metadata.externalPostId=J.JSC$17228_miniAppId,S=p.metadata,H.yield(Promise.race([J.JSC$17228_playNonceResolver.promise,new Promise(function(M){setTimeout(function(){M("")},3E4)})]),2);
S.postPlayNonce=H.yieldResult;p.metadata.localReleaseId=J.localReleaseId;p.loggingError.level="WARNING";_.jD(p.loggingError,p.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:p.metadata});_.UK(H)})};
var oyP=function(p,J,S,H){var M,X,Z,n,b,F;_.G(function(f){if(f.nextAddress==1)return f.yield(p.JSC$17228_playNonceResolver.promise,2);M=f.yieldResult;X={externalPostId:p.JSC$17228_miniAppId,localReleaseId:p.localReleaseId,postPlayNonce:M,sdkVersion:S,api:J};H!==void 0&&(X.networkRequestsMeasurement={networkRequests:_.bW(H,1),cachedRequests:_.bW(H,2),transferredBytes:_.bW(H,3)},(Z=H)==null?0:_.Ow(Z,Od,6))&&(X.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((n=_.PB(H,
Od,6))==null?void 0:sw(n,1))||"0",cacheHits:((b=_.PB(H,Od,6))==null?void 0:sw(b,2))||"0",cachedBytes:((F=_.PB(H,Od,6))==null?void 0:sw(F,3))||"0"});_.YQ("miniAppSdkUsage",X);_.UK(f)})},WIU=function(p,J,S){var H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k;
_.G(function(E){if(E.nextAddress==1)return E.yield(p.JSC$17228_playNonceResolver.promise,2);H=E.yieldResult;M={externalPostId:p.JSC$17228_miniAppId,localReleaseId:p.localReleaseId,postPlayNonce:H,sdkVersion:S,measurementWindow:{startTimestampMs:String(Cu(J,1)),endTimestampMs:String(Cu(J,2))},frameRate:{averageFrameTimeDeltaMs:y3(J,3),averageFrameIdleTimeMs:y3(J,4)}};_.Ow(J,Aa,5)&&(M.networkRequests={networkRequests:(X=Qs(J))==null?void 0:_.bW(X,1),cachedRequests:(Z=Qs(J))==null?void 0:_.bW(Z,2),transferredBytes:(n=
Qs(J))==null?void 0:_.bW(n,3),sameOriginStatusCodeToCounts:eUI((b=Qs(J))==null?void 0:_.Djs(b,4,void 0,qpv,qpv)),crossOriginStatusCodeToCounts:eUI((F=Qs(J))==null?void 0:_.Djs(F,5,void 0,qpv,qpv))},(f=Qs(J))==null?0:_.Ow(f,Od,6))&&(M.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((O=Qs(J))==null?void 0:(A=_.PB(O,Od,6))==null?void 0:sw(A,1))||"0",cacheHits:((P=Qs(J))==null?void 0:(W=_.PB(P,Od,6))==null?void 0:sw(W,2))||"0",cachedBytes:((y=Qs(J))==null?void 0:(t=_.PB(y,Od,6))==
null?void 0:sw(t,3))||"0"});_.Ow(J,aIE,7)&&(M.gameCapture={averageFrameTimeDeltaMs:(D=_.PB(J,aIE,7))==null?void 0:y3(D,1),averageFrameIdleTimeMs:(k=_.PB(J,aIE,7))==null?void 0:y3(k,2)});_.YQ("miniAppPerformanceMetrics",M);_.UK(E)})},Qwj=function(p,J){var S,H;
return _.G(function(M){if(M.nextAddress==1)return M.yield(p.JSC$17228_playNonceResolver.promise,2);S=M.yieldResult;H={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:p.JSC$17228_miniAppId,postPlayNonce:S,miniAppReleaseId:p.localReleaseId},derivedDeviceInterface:p.derivedDeviceInterface,adTriggerType:J,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.YQ("miniAppAdEvent",H);_.UK(M)})};
FIl.prototype.disposeInternal=function(){_.gp.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var BK=function(p,J,S,H){S=S===void 0?{}:S;H=H===void 0?!1:H;var M,X,Z,n;_.G(function(b){if(b.nextAddress==1)return M=p.isForeground,X=p.beforeReady,b.yield(p.JSC$17228_playNonceResolver.promise,2);Z=b.yieldResult;n={externalPostId:p.JSC$17228_miniAppId,localReleaseId:p.localReleaseId,derivedDeviceInterface:p.derivedDeviceInterface,postPlayNonce:Z,type:J};S.sequenceGroup=Z;n.playState=X?"PLAY_STATE_NOT_READY":M?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.YQ("miniAppPlayEvent",n,
S);H&&_.rf();_.UK(b)})},yZ=function(p,J){var S;
_.G(function(H){if(H.nextAddress==1)return S=(0,_.fO)(),H.yield(p.JSC$17228_playNonceResolver.promise,2);_.Qf(J,S);_.UK(H)})},OPy=function(p){isNaN(p.playPingTimerId)&&(p.playPingTimerId=_.Qn(function(){p.state!==1&&p.state!==2?_.xQ(new _.TG("[MiniAppPlayLogger] reportPlayPing failed with state "+bPI[p.state])):BK(p,"PLAY_EVENT_TYPE_PLAY_PING")},p.playPingIntervalMs))},eUI=function(p){return Array.from(p.entries()).map(function(J){var S=_.K(J);
J=S.next().value;S=S.next().value;return{key:J,value:S}})};var C$N=function(){},yrP=function(p,J){p.showMiniAppAdCommand=J.showMiniAppAdCommand;
p.isEmbeddedInWebview=J.isEmbeddedInWebview;p.playLogger=J.playLogger},UjN=function(p,J){var S;
return _.G(function(H){if(H.nextAddress==1){if(!p.showMiniAppAdCommand||!p.isEmbeddedInWebview)return H.return(BMp(p,J));p.adResolver=new _.iy;var M=new cN;S=_.zx(M,3,J);g_(p.showMiniAppAdCommand,yav(S));return H.yield(p.adResolver.promise,2)}return H.return(H.yieldResult)})};
C$N.prototype.onAdFinished=function(p){p=$74(p);var J;(J=this.adResolver)==null||J.resolve(p)};
var BMp=function(p,J){var S;return _.G(function(H){if(H.nextAddress==1)H=H.yield((S=p.playLogger)==null?void 0:Qwj(S,aWk(J)),2);else{var M=H.return;var X=new zSU;X=_.zx(X,1,2);H=M.call(H,X)}return H})};var swj=new _.ni("INNERTUBE_MANAGER_TOKEN");var gyl=function(){this.callbacks={}};
gyl.prototype.initialize=function(p){var J=this;this.callbacks=p;window.youtubewebview?window.youtubewebview.onmessage=function(S){tIP(J,S)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(S){tIP(J,S)})};
var tIP=function(p,J){if(J.data)try{var S=JOp(J.data);if(_.$y(_.fu(S,1))!=null){var H=$IM(_.B_(S,2));switch(S.getMethodName()){case "yt-mini-app-load-audio-state":var M,X;(X=(M=p.callbacks).onAudioStateLoaded)==null||X.call(M,_.Q3(H,kQ(H,xi,1)));break;case "yt-mute-mini-app":var Z,n;(n=(Z=p.callbacks).onMuteMiniApp)==null||n.call(Z);break;case "yt-unmute-mini-app":var b,F;(F=(b=p.callbacks).onUnmuteMiniApp)==null||F.call(b);break;case "yt-playable-exit":var f,O;(O=(f=p.callbacks).onExit)==null||O.call(f);
break;case "yt-post-play-nonce":var A,P;(P=(A=p.callbacks).onPostPlayNonceReceived)==null||P.call(A,g4(H,2,xi));break;case "yt-confirm-exit-mini-app":var W,y;(y=(W=p.callbacks).confirmExitMiniApp)==null||y.call(W);break;case "yt-confirm-exit-mini-app-edu":var t,D;(D=(t=p.callbacks).confirmExitMiniAppEdu)==null||D.call(t);break;case "yt-benchmarking-response":var k,E;(E=(k=p.callbacks).onNativeBenchmarkingMessageReceived)==null||E.call(k,g4(H,2,xi));break;case "yt-mini-app-load-3p-consent-state":var a,
q;(q=(a=p.callbacks).multiplayer3pAckStateLoaded)==null||q.call(a,_.Q3(H,kQ(H,xi,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var w,I;(I=(w=p.callbacks).exitMiniAppSeenStateLoaded)==null||I.call(w,_.Q3(H,kQ(H,xi,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Z3,vg;(vg=(Z3=p.callbacks).onNavigateToNewMiniApp)==null||vg.call(Z3);break;case "yt-game-data-available":var yX,Pg;(Pg=(yX=p.callbacks).onGameDataAvailable)==null||Pg.call(yX,g4(H,2,xi));break;case "yt-pause-mini-app":var ov,
NW;(NW=(ov=p.callbacks).onPauseMiniApp)==null||NW.call(ov);break;case "yt-resume-mini-app":var TW,Ys;(Ys=(TW=p.callbacks).onResumeMiniApp)==null||Ys.call(TW);break;case "yt-playable-ad-finished":var Go,$U;($U=(Go=p.callbacks).onAdFinished)==null||$U.call(Go,g4(H,2,xi))}}else _.xQ(Error("Vh"))}catch(LL){_.jD(Error("Wh"))}else _.xQ(Error("Xh"))};var YHW=function(p){this.rpcErrorCode=p};var UU=function(p,J,S){this.intervalMs=p;this.apiFunc=J;this.type=S;this.schedulerReady=!0};
UU.prototype.call=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1){if(J.type!==1&&p===J.cachedValue)return H.return();J.pendingApiRequestResolver||(J.pendingApiRequestResolver=new _.iy);S=J.pendingApiRequestResolver.promise;J.cachedValue=p;return H.yield(hUj(J),2)}return H.return(S)})};
UU.prototype.flush=function(p){p=p===void 0?!1:p;var J=this;return _.G(function(S){return J.cachedValue===void 0?S.return():S.yield(J.apiFunc(J.cachedValue,p),0)})};
var hUj=function(p){var J,S,H;return _.G(function(M){switch(M.nextAddress){case 1:if(!p.schedulerReady||!p.pendingApiRequestResolver)return M.return();p.schedulerReady=!1;J=p.pendingApiRequestResolver;p.pendingApiRequestResolver=void 0;_.oI(M,2);if(p.cachedValue===void 0){M.jumpTo(4);break}return M.yield(p.apiFunc(p.cachedValue),5);case 5:S=M.yieldResult,J.resolve(S);case 4:_.X$(M,3);break;case 2:H=_.BZ(M),J.reject(H);case 3:setTimeout(function(){return _.G(function(X){p.schedulerReady=!0;return X.yield(hUj(p),
0)})},p.intervalMs),_.UK(M)}})};var wai=window.location.origin+"/miniapp_cloudsaves",rDg=[400,401],Djy=_.PO("cloud_save_game_data_rate_limit_ms",3E3),TMw=function(p){var J=this;this.JSC$17272_miniAppId=p;this.loadAttempts=0;this.cloudSaveIntervalMs=Djy;this.initialDownloadDataSucceeded=!1;this.JSC$17272_playNonceResolver=new _.iy;this.scottyUploadRateLimiter=new UU(this.cloudSaveIntervalMs,function(S,H){return kfN(J,S,H)},2);
this.downloadDataPromise=NMI(this);this.downloadDataPromise.then(function(){J.initialDownloadDataSucceeded=!0}).catch(function(){})},djM=function(p,J){J.then(function(S){return p.JSC$17272_playNonceResolver.resolve(S)})},uPM=function(p){return _.G(function(J){return p.cachedData===void 0?J.return(p.downloadDataPromise):J.return(p.cachedData)})},llM=function(p,J){return _.G(function(S){p.cachedData=J;
if(!p.initialDownloadDataSucceeded)throw Error("Yh");return S.yield(p.scottyUploadRateLimiter.call(J),0)})},VIe=function(){return new Promise(function(p){setTimeout(p,1E3,"")})},qNp=function(p,J){var S,H;
return _.G(function(M){if(M.nextAddress==1)return S=p.JSC$17272_miniAppId,M.yield(Promise.race([p.JSC$17272_playNonceResolver.promise,VIe()]),2);H={"X-YouTube-MiniAppId":S,"X-YouTube-PostPlayNonce":M.yieldResult};"DELEGATED_SESSION_ID"in _.Yv&&blg(J,H);return M.return(H)})},kfN=function(p,J,S){S=S===void 0?!1:S;
return _.G(function(H){return ERi()?_.z("enable_cloud_save_error_popup_after_retry")?H.return(new Promise(function(M,X){var Z,n,b,F,f;return _.G(function(O){switch(O.nextAddress){case 1:Z=0,n=!0,F=b=null;case 2:if(!(n&&Z++<2)){O.jumpTo(4);break}_.oI(O,5);return O.yield(al$(p,J,S),7);case 7:b=O.yieldResult;n=b.ok?!1:!rDg.includes(b.status);_.X$(O,2);break;case 5:F=f=_.BZ(O);n=j9v(F);O.jumpTo(2);break;case 4:b?b.ok?(sU(p,Djy),M()):(sU(p,p.cloudSaveIntervalMs*2),X(Error("Zh`"+String(b.status),{cause:{rpcErrorCode:b.status}}))):
(sU(p,p.cloudSaveIntervalMs*2),X(F||Error("$h"))),_.UK(O)}})})):H.return(new Promise(function(M,X){var Z,n;
return _.G(function(b){if(b.nextAddress==1){if(p.JSC$17272_miniAppId==="")return X(Error("ai")),b.return();_.oI(b,2);return b.yield(al$(p,J,S),4)}if(b.nextAddress!=2)return Z=b.yieldResult,Z.ok?(sU(p,Djy),M()):(sU(p,p.cloudSaveIntervalMs*2),X(Error("Zh`"+String(Z.status),{cause:{rpcErrorCode:Z.status}}))),_.X$(b,0);n=_.BZ(b);sU(p,p.cloudSaveIntervalMs*2);X(n);_.UK(b)})})):H.return()})},al$=function(p,J,S){S=S===void 0?!1:S;
var H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return H=_.gM((new TextEncoder).encode(J)),M=xTk(),Z.yield(qNp(p,M),2);X=Z.yieldResult;return Z.return(fetch(M,{method:"POST",body:new Blob([H]),headers:X,keepalive:S}))})},NMI=function(p){var J,S;
return _.G(function(H){if(H.nextAddress==1){if(!ERi())return H.return("");if(p.JSC$17272_miniAppId==="")throw Error("ai");if(p.loadAttempts>2)return H.return(p.downloadDataPromise);_.oI(H,2);return H.yield(Eyy(p),4)}if(H.nextAddress!=2)return J=H.yieldResult,H.return(J);S=_.BZ(H);if(j9v(S)&&++p.loadAttempts<2)return H.return(NMI(p));throw S;})},Eyy=function(p){var J,S,H,M,X;
return _.G(function(Z){switch(Z.nextAddress){case 1:return _.oI(Z,2),J=xTk(),Z.yield(qNp(p,J),4);case 4:return S=Z.yieldResult,Z.yield(fetch(J,{method:"GET",headers:S}),5);case 5:return H=Z.yieldResult,H.ok?Z.yield(H.text(),6):Z.return(Promise.reject(Error("bi`"+String(H.status),{cause:new YHW(H.status)})));case 6:return M=Z.yieldResult,Z.return((new TextDecoder).decode(_.cg(M)));case 2:return X=_.BZ(Z),Z.return(Promise.reject(X))}})},sU=function(p,J){p.cloudSaveIntervalMs=J;
p.scottyUploadRateLimiter.intervalMs=p.cloudSaveIntervalMs};
TMw.prototype.flush=function(){var p=this;return _.G(function(J){return p.initialDownloadDataSucceeded?J.yield(p.scottyUploadRateLimiter.flush(!0),0):J.return()})};var YNp=e3(oW(1),zb(1)),rrp=e3(oW(1),zb(3)),g3=function(p){this.callbacks=p};
_.R=g3.prototype;_.R.onAudioToggled=function(p,J){(J===void 0||J)&&_.ze("yt-mini-app-is-audio-enabled",p,2592E3)};
_.R.onPause=function(){this.onAudioToggled(!1,!1)};
_.R.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.R.returnNativeBenchmarkingMessage=function(){};
_.R.sendGameData=function(){};
_.R.sendStartGameFrameCapture=function(){};
var cDi=function(p,J,S){this.callbacks=p;var H=this;this.sdkVersion=new _.iy;this.channel=new vpv(_.Zv({destination:window,iframe:J,origin:(new URL(S.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var M=tx;var X=oW(5);var Z=new sEE;Z=_.hF(Z,1,1E4);X=_.Ct(X,4,d78,Z);M(H,X);H.onAudioToggled(H.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){H.sdkVersion.resolve("")},1E4)};
_.Q(cDi,g3);_.R=cDi.prototype;_.R.onAudioToggled=function(p,J){g3.prototype.onAudioToggled.call(this,p,J===void 0?!0:J);J=tx;var S=oW(2),H=new B$8;p=_.fC(H,1,p);p=_.Ct(S,3,d78,p);J(this,p)};
_.R.onPause=function(){g3.prototype.onPause.call(this);tx(this,oW(3))};
_.R.onResume=function(){g3.prototype.onResume.call(this);tx(this,oW(4))};
_.R.returnNativeBenchmarkingMessage=function(p){var J=tx,S=oW(6);var H=zb(_.Ow(p,Je,1)?1:2);p=_.Ow(p,Je,1)?p:null;H=_.Ct(H,5,$i,p);J(this,e3(S,H))};
_.R.sendGameData=function(p){var J=tx,S=oW(7);p=_.Ct(S,5,d78,p);J(this,p)};
_.R.sendStartGameFrameCapture=function(){tx(this,oW(9))};
var hx=function(p,J,S){var H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return H=p.callbacks,M=H.onSdkCalled,X=J,Z.yield(p.sdkVersion.promise,2);M.call(H,X,Z.yieldResult,S);_.UK(Z)})};
cDi.prototype.onMessage=function(){var p=this;return AsL(C7,function(J){var S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w,I,Z3,vg,yX,Pg,ov,NW,TW,Ys,Go,$U,LL,fd,Qv,t8,Wp,ON,KL,HE,o8,xU,eL,Ld,QV,YU;return _.G(function(Fn){switch(Fn.nextAddress){case 1:if(!jEd(J.data))return _.xQ(Error("ci")),Fn.return();S=_.Uw(J.data,1);_.z("enable_iframe_message_get_type_via_fields")&&(H=J.data,S=M=_.Uw(H,1));switch(S){case 8:if(J.data.hasMetadata()){var vE=p.sdkVersion,XP=vE.resolve;var wk=J.data.getMetadata();wk=_.B_(wk,
1);XP.call(vE,wk);clearTimeout(p.sdkVersionTimeoutId)}break;case 6:return Fn.jumpTo(2);case 16:if(!_.AF(J.data,Vbn,14,ys))return Fn.return();X=_.tF(J.data,Vbn,14,ys);(n=(Z=p.callbacks).onGameFrameReceived)==null||n.call(Z,X);return Fn.return();case 17:if(!_.AF(J.data,lIo,15,ys))return Fn.return();(F=(b=p.callbacks).onGameAudioReceived)==null||F.call(b,_.tF(J.data,lIo,15,ys));return Fn.return();case 1:if(vE=_.tF(J.data,hSq,2,ys))switch(_.Uw(vE,1)){case 1:p.callbacks.onFirstFrameReady();if(_.z("enable_network_request_logging_on_game_events")&&
_.Ow(vE,Aa,4)){hx(p,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.PB(vE,Aa,4));break}hx(p,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(wk=(XP=p.callbacks).onGameReady)==null||wk.call(XP);if(_.z("enable_network_request_logging_on_game_events")&&_.Ow(vE,Aa,4)){hx(p,"MINI_APP_SDK_API_GAME_READY",_.PB(vE,Aa,4));break}hx(p,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.AF(vE,PN,3,D74))p.callbacks.onResourceLoaded(_.tF(vE,PN,3,D74))}return Fn.return();case 3:return Fn.jumpTo(3);case 4:return Fn.jumpTo(4);
case 2:return Fn.jumpTo(5);case 9:return Fn.jumpTo(6);case 10:return p.callbacks.onClick(),Fn.return();case 5:return Fn.jumpTo(7);case 11:if(!_.AF(J.data,vN,9,ys))return Fn.return();f=_.tF(J.data,vN,9,ys);(A=(O=p.callbacks).onBenchmarkingMessageReceived)==null||A.call(O,f);vE=J.reply;XP=oW(1);wk=zb(1);var SI=new vN;var vG=new Uint8Array(tL8(f,kQ(f,eSv,6))|0);SI=sI(SI,5,eSv,_.gm(vG,!1));wk=_.Ct(wk,5,$i,SI);vE.call(J,e3(XP,wk));return Fn.return();case 12:return Fn.jumpTo(8);case 13:return Fn.jumpTo(9);
case 15:if(!_.z("enable_open_yt_content"))return J.reply(rrp),Fn.return();if(!_.AF(J.data,ufM,12,ys))return J.reply(e3(oW(1),zb(2))),Fn.return();vE=_.tF(J.data,ufM,12,ys);P=_.B_(vE,1);p.callbacks.onOpenYTContent(P);J.reply(YNp);return Fn.return();case 14:return Fn.jumpTo(10);default:return Fn.return()}Fn.jumpTo(0);break;case 2:if(!_.AF(J.data,WN,5,ys))return Fn.return();XP=J.data;vE=kQ(XP,ys,5);XP=XP.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=djk(XP,XP[_.Xn]|0,WN,vE)||WN[unt]||(WN[unt]=
lqL(WN));vE=_.Zd(W,f7,1,_.GN());y=_.K(vE);t=y.next();case 12:if(t.done){Fn.jumpTo(14);break}D=t.value;k=new _.TG;k.level=_.Uw(D,2)===1?"WARNING":"ERROR";E=Let(D.getSource());return Fn.yield(p.sdkVersion.promise,15);case 15:a={source:E,sdkVersion:Fn.yieldResult};_.i$(_.fu(D,6))!=null?(k.message=D.getMessage(),k.stack=_.B_(D,5),a.sdkErrorType=pet(_.Uw(D,6)),_.i$(_.fu(D,7))!=null&&(a.sdkApi=JIW(_.Uw(D,7)))):k.stack=void 0;w=q=void 0;(w=(q=p.callbacks).onError)==null||w.call(q,{loggingError:k,metadata:a});
t=y.next();Fn.jumpTo(12);break;case 14:return Fn.return();case 3:return _.oI(Fn,16),vE=Fn.yield,XP=p.callbacks,wk=XP.onSave,SI=_.tF(J.data,U78,4,ys),SI=_.B_(SI,1),vE.call(Fn,wk.call(XP,SI),18);case 18:J.reply(YNp);_.X$(Fn,17);break;case 16:return I=_.BZ(Fn),Z3=tX,vg=I,yX=p.callbacks,Pg="MINI_APP_SDK_API_SAVE_DATA",Fn.yield(p.sdkVersion.promise,19);case 19:Z3(vg,yX,Pg,Fn.yieldResult),J.reply(rrp);case 17:return Fn.yield(hx(p,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Fn.return();case 4:return _.oI(Fn,
21),Fn.yield(p.callbacks.onLoad(),23);case 23:ov=Fn.yieldResult;vE=J.reply;XP=oW(1);wk=zb(1);SI=new U78;SI=_.g2(SI,1,ov);wk=_.Ct(wk,3,$i,SI);vE.call(J,e3(XP,wk));_.X$(Fn,22);break;case 21:return NW=_.BZ(Fn),TW=tX,Ys=NW,Go=p.callbacks,$U="MINI_APP_SDK_API_LOAD_DATA",Fn.yield(p.sdkVersion.promise,24);case 24:TW(Ys,Go,$U,Fn.yieldResult),J.reply(rrp);case 22:return Fn.yield(hx(p,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Fn.return();case 5:_.oI(Fn,26);p.callbacks.onSendHighScore(qL(_.tF(J.data,
YsM,3,ys).getValue()));J.reply(e3(oW(1),zb(1)));_.X$(Fn,27);break;case 26:return LL=_.BZ(Fn),fd=tX,Qv=LL,t8=p.callbacks,Wp="MINI_APP_SDK_API_SEND_SCORE",Fn.yield(p.sdkVersion.promise,28);case 28:fd(Qv,t8,Wp,Fn.yieldResult),J.reply(rrp);case 27:return Fn.yield(hx(p,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Fn.return();case 6:if(!_.AF(J.data,rJo,8,ys)){Fn.jumpTo(30);break}vE=Fn.yield;XP=_.tF(J.data,rJo,8,ys);XP=_.Uw(XP,1);return vE.call(Fn,hx(p,JIW(XP)),30);case 30:return Fn.return();case 7:return vE=
J.reply,XP=oW(1),wk=zb(1),SI=p.callbacks.getLanguage(),wk=sI(wk,4,$i,Pp(SI)),vE.call(J,e3(XP,wk)),Fn.yield(hx(p,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Fn.return();case 8:if(!_.AF(J.data,E0n,10,ys))return Fn.return();ON=_.tF(J.data,E0n,10,ys);KL=p.callbacks;HE=KL.onSdkPerformanceUpdate;return Fn.yield(p.sdkVersion.promise,33);case 33:return HE.call(KL,ON,Fn.yieldResult),Fn.return();case 9:vE=J.data;XP=kQ(vE,ys,11);if(_.$y(_.fu(vE,XP))==null)return J.reply(e3(oW(1),zb(2))),Fn.return();
o8=g4(J.data,11,ys);p.callbacks.onShareInviteCode(o8);J.reply(YNp);return Fn.yield(hx(p,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Fn.return();case 10:if(_.AF(J.data,yJ8,13,ys)){Fn.jumpTo(35);break}return Fn.yield(p.callbacks.onShowMiniAppAd(2),36);case 36:return xU=Fn.yieldResult,J.reply(e3(oW(1),N$p(xU))),Fn.yield(hx(p,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Fn.return();case 35:vE=_.tF(J.data,yJ8,13,ys);a:switch(_.Uw(vE,1)){case 1:vE={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:vE={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:vE={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}eL=vE;Ld=eL.adType;QV=eL.sdkApi;vE=Fn.yield;XP=p.callbacks;wk=XP.onShowMiniAppAd;SI=_.tF(J.data,yJ8,13,ys);SI=_.B_(SI,2);return vE.call(Fn,wk.call(XP,Ld,SI||void 0),38);case 38:return YU=Fn.yieldResult,J.reply(e3(oW(1),N$p(YU))),Fn.yield(hx(p,QV),39);case 39:return Fn.return()}})})};
var tx=function(p,J){_.G(function(S){p.channel.send(J);_.UK(S)})},hX=function(p,J,S){this.callbacks=p;
var H=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;p=L79(J,(new URL(S.toString())).origin);this.gameSnacks=new gpp(p);this.gameSnacks.page.onReady(function(){H.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){H.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var M,X;(X=(M=H.callbacks).onGameReady)==null||X.call(M)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(M,X){try{H.callbacks.onSendHighScore(X)}catch(Z){tX(Z,H.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(M,X){var Z;return _.G(function(n){if(n.nextAddress==1)return _.oI(n,2),n.yield(H.callbacks.onSave(H.decoder.decode(X)),4);if(n.nextAddress!=2)return _.X$(n,0);Z=_.BZ(n);tX(Z,H.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return n.return()})});
this.gameSnacks.storage.onLoad(function(){var M,X;return _.G(function(Z){if(Z.nextAddress==1)return _.oI(Z,2),Z.yield(H.callbacks.onLoad(),4);if(Z.nextAddress!=2)return M=Z.yieldResult,Z.return(H.encoder.encode(M));X=_.BZ(Z);tX(X,H.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return Z.return(H.encoder.encode(""))})});
this.gameSnacks.init()};
_.Q(hX,g3);hX.prototype.onAudioToggled=function(p,J){g3.prototype.onAudioToggled.call(this,p,J===void 0?!0:J);var S;(S=this.gameSnacks)==null||S.audio.update(p)};
hX.prototype.onPause=function(){g3.prototype.onPause.call(this);var p;(p=this.gameSnacks)==null||p.game.pause()};
hX.prototype.onResume=function(){g3.prototype.onResume.call(this);var p;(p=this.gameSnacks)==null||p.game.resume()};var jwe=ScL,wpl=_.d(function(p){var J=p.data;var S=p.loadingProgress;var H=p.forPaused;p=_.K(_.eQ("",void 0,"LYYTdd"));var M=p.next().value,X=p.next().value;p=_.K(_.eQ(!1,void 0,"K0waae"));var Z=p.next().value,n=p.next().value,b=[],F=function(){return"transform: scaleX("+(_.a2(S)||0)+")"},f=null,O=function(){return J()&&f!==null&&f!==void 0?f:f=J().showAnniversaryAnimation?6:jwe()};
_.lf(function(){var y;if(J().timeOutMessages&&((y=J().timeOutMessages)==null?0:y.length)){f=null;y=_.K(b);for(var t=y.next();!t.done;t=y.next())clearTimeout(t.value);b.length=0;Hv3(J().timeOutMessages,b,X,n)}},"BNu9j");
var A=function(){return!!J().persistentErrorMessageTitle},P=function(){return S!==void 0},W=function(){return J().title};
return _.m("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.m("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.m("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.m("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var y,t=(y=J().backgroundImage)==null?void 0:y.sources,D;return(t==null?0:t.length)?"background-image: url("+((D=t[0])==null?void 0:D.url)+")":""}}),_.m("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.m(_.v,{cond:function(){return!A()&&!(H==null?0:H())},
then:function(){var y={};return _.m("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.m("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.m(_.l1,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+O()},
data:function(){var t="loading_animation_"+O();return{animationConfig:{name:t,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+t+".json",loop:!0,autoplay:!0}}}})),_.m("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.m(_.v,{cond:W,
then:function(){return _.m("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},W)}}),_.m("p",{class:_.XB("miniAppSplashScreenViewModelTimeoutMessage",(y.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return Z()},y)),
"aria-live":"polite"},M),_.m(_.v,{cond:P,then:function(){return _.m("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.m("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:F}))}})))}}),_.m(_.v,{cond:A,
then:function(){return _.m("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.m("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return J().persistentErrorMessageTitle}),_.m(_.v,{cond:function(){return!!J().persistentErrorMessageDescription},
then:function(){return _.m("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return J().persistentErrorMessageDescription})}}))}}),_.m(_.v,{cond:H,
then:function(){return _.m("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.m("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.m("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},W))}})))},"Of");var xje=new _.ni("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var crP=nV;nV=function(p){function J(S){if(S){var H,M;(H=S.__spec)==null||(M=H.didUnmount)==null||M.call(H);for(H=0;H<S.childNodes.length;H++)J(S.childNodes[H])}}
crP==null||crP(p);er(function(){for(var S=0;S<p.length;S++)J(p[S])})};var Ile=_.d(function(p){var J=p.data;var S=p.score;var H=p.formattedScore;var M=p.onScoreChanged;var X=p.isEmbeddedInWebview;var Z=_.mo("yt-mini-app-score-button-view-model"),n=function(){var P;return _.e(J==null?void 0:(P=J())==null?void 0:P.buttonViewModel,_.mO)},b=function(){var P;
return(S==null?void 0:S())||Number(J==null?void 0:(P=J())==null?void 0:P.lastScore)||0},F=function(){var P;
return(H==null?void 0:H())||((P=n())==null?void 0:P.title)||""},f,O=1;
if(p=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))p=Number(p),O=isNaN(p)?1:p/100;_.lf(function(){M==null||M(b());var P;var W=_.sa((P=n())==null?void 0:P.onTap);if(W){P=_.e(W,n4d);var y,t,D;P=_.e(P==null?void 0:(y=P.panelLoadingStrategy)==null?void 0:(t=y.inlineContent)==null?void 0:(D=t.dialogViewModel)==null?void 0:D.customContent,BBd)}else P=void 0;if(y=P)y.score=F()},"Aekez");
p=_.Kb(function(){var P,W,y=J==null?void 0:(P=J())==null?void 0:(W=P.loggingDirectives)==null?void 0:W.trackingParams;y&&_.VK(_.vO().resolve(_.c3),y);return!1});
_.ad(function(){if(Z.value){var P=Z.value.querySelector("button"),W=n();P&&W&&MPi(P,W);_.fE("yt-share-playable-with-high-score",function(){var y=b().toString(),t=J==null?void 0:J().onShareHighScoreCommand,D=J==null?void 0:J().highScoreShareClientParamIdentifier,k=X==null?void 0:X();t&&(k?(D=new c0o,y=_.g2(D,2,y),g_(t,y.JSC$12681_serializeBinary())):D&&(_.vO().resolve(xje).clientParams.set(D,{miniAppClientParams:{highScore:y}}),dTw(t,!1)))})}});
var A=function(){var P=n();P&&(S==null?0:S())&&P.accessibilityText&&(P.accessibilityText=P.accessibilityText.replace(f,F()));f=F();return{numberValue:b(),numberText:F(),heightPx:36,fontSizeMultiplier:O,shouldAnimate:!(S==null||!S())&&!0}};
return _.m("yt-mini-app-score-button-view-model",{class:function(){var P={};return _.Qh("miniAppScoreButtonViewModelHost",(P.miniAppScoreButtonViewModelIsVisible=b()!==0,P))},
el:Z,"on:click":p},v_3(!1,function(){return _.m("span",{style:"display:none;"},b)}),_.m(_.AH,{data:function(){var P;
return J==null?void 0:(P=J())==null?void 0:P.buttonViewModel}},{buttonViewModel:function(P){return _.m(_.D0,{data:P.data,
animatedTextProps:A})}}))},"Qf");var HtI=_.d(function(p){var J,S=(J=_.$t("yt-mini-app-is-theater-mode-enabled"))!=null?J:!1,H=_.z("enable_playable_container_save_button"),M=_.z("enable_play_next_destination_page_in_toolbar");J={};return _.m("ytm-mini-app-top-bar-view-model",null,_.m("div",{class:_.XB("yt-mini-app-top-bar-view-model",(J["yt-mini-app-top-bar-view-model--mobile"]=!1,J["yt-mini-app-top-bar-view-model--desktop"]=!0,J))},_.m("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.m(_.v,{cond:function(){var X;return!!p.data().backButtonEdu&&
!((X=p.isExitMiniAppSeen)==null?0:X.call(p))},
then:function(){return _.m(_.AH,{data:function(){return p.data().backButtonEdu}},{buttonViewModel:_.D0})},
else:function(){return _.m(_.AH,{data:function(){return p.data().backButton}},{buttonViewModel:_.D0})}}),_.m(_.v,{cond:function(){return p.data().viewAllButton&&!0},
then:function(){return _.m(_.AH,{data:function(){return p.data().viewAllButton}},{buttonViewModel:_.D0})}}),_.m(_.v,{cond:function(){return p.data().title&&!0},
then:function(){return _.m("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return p.data().title})}})),_.m("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.m(_.v,{cond:function(){var X;
return(X=p.isDesktopPlayPage)==null?void 0:X.call(p)},
then:function(){return _.m(_.fV,null,_.m(LIw,{highScoreButton:function(){return p.data().highScoreButton},
score:p.score,formattedScore:p.formattedScore,onScoreChanged:p.onScoreChanged,isEmbeddedInWebview:p.isEmbeddedInWebview}),_.m(pGl,{enableSaveButton:function(){return _.a2(H)},
saveButton:function(){return p.data().saveButton},
isSaved:p.isSaved,onSaveToggled:function(){return p.onSaveToggled}}),_.m(Jse,{menuButton:function(){return p.data().menuButton}}))},
else:function(){return _.m(_.v,{cond:function(){return!1},
then:function(){return _.m(_.AH,{data:function(){return p.data().playPageButton}},{buttonViewModel:function(X){return _.m(_.D0,{data:X.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.m(LIw,{highScoreButton:function(){return p.data().highScoreButton},
score:p.score,formattedScore:p.formattedScore,onScoreChanged:p.onScoreChanged,isEmbeddedInWebview:p.isEmbeddedInWebview})}})}})),_.m("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.m(_.AH,{data:function(){return p.data().muteButton}},{toggleButtonViewModel:function(X){var Z=X.data;
return _.m(_.LD,{data:function(){var n,b;return Object.assign({},Z(),{isToggled:(b=(n=p.isAudioEnabled)==null?void 0:n.call(p))!=null?b:!0})},
onToggle:p.onAudioToggled,useOutlinedIcon:!0})}}),_.m(_.AH,{data:function(){return p.data().theatreModeButton}},{toggleButtonViewModel:function(X){var Z=X.data;
return _.m("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.m(_.LD,{data:function(){return Object.assign({},Z(),{isToggled:S})},
useOutlinedIcon:!0}))}}),_.m(SqU,{fullscreenButton:function(){return p.data().fullscreenButton}}),_.m(_.v,{cond:function(){return _.a2(M)&&p.data().viewAllButton&&!1},
then:function(){return _.m(_.AH,{data:function(){return p.data().viewAllButton}},{buttonViewModel:_.D0})}}),_.m(_.v,{cond:function(){var X;
return!((X=p.isDesktopPlayPage)==null?0:X.call(p))},
then:function(){return _.m(_.fV,null,_.m(pGl,{enableSaveButton:function(){return _.a2(H)},
saveButton:function(){return p.data().saveButton},
isSaved:p.isSaved,onSaveToggled:function(){return p.onSaveToggled}}),_.m(Jse,{menuButton:function(){return p.data().menuButton}}))}}))))},"Rf");
HtI.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Jse=_.d(function(p){return _.m(_.AH,{data:p.menuButton},{buttonViewModel:_.D0})},"Sf"),pGl=_.d(function(p){var J=p.enableSaveButton;
var S=p.saveButton;var H=p.isSaved;var M=p.onSaveToggled;return _.m(_.v,{cond:function(){return J()&&!(S==null||!S())},
then:function(){return _.m(_.AH,{data:function(){var X=_.e(S==null?void 0:S(),_.f5),Z;return{toggleButtonViewModel:Object.assign({},X,{isToggled:(Z=H==null?void 0:H())!=null?Z:!(X==null||!X.isToggled)})}}},{toggleButtonViewModel:function(X){return _.m(_.LD,{data:X.data,
onToggle:M})}})}})},"Tf"),LIw=_.d(function(p){var J=p.highScoreButton;
var S=p.score;var H=p.formattedScore;var M=p.onScoreChanged;var X=p.isEmbeddedInWebview;return _.m(_.AH,{data:J},{miniAppScoreButtonViewModel:function(Z){return _.m(Ile,{data:Z.data,score:S,formattedScore:H,onScoreChanged:M,isEmbeddedInWebview:X})}})},"Uf"),SqU=_.d(function(p){p=p.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.m(_.fV,null):_.m(_.AH,{data:p},{buttonViewModel:_.D0})},"Vf");_.MaN=_.d(function(p){var J=p.data;var S=p.extractOverlay;p={};return _.m("player-disclosure-view-model",{class:_.XB("ytwPlayerDisclosureViewModelHost",(p.ytwPlayerDisclosureViewModelExtractOverlay=function(){return S==null?void 0:S()},p))},_.m(_.yD,{command:function(){return J().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.m(_.v,{cond:function(){return J().iconName},
then:function(H){return _.m(_.bn,{icon:H})}}),_.m(_.v,{cond:function(){return J().iconName?void 0:J().image},
then:function(H){return _.m(_.a4,{data:H,alt:function(){return J().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.m(_.v,{cond:function(){return J().title||J().secondaryText},
then:function(){return _.m("div",null,_.m("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return J().title}),_.m("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return J().text}),_.m(_.v,{cond:function(){return J().secondaryText},
then:function(H){return _.m(_.fV,null,_.m("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.m("div",{class:"ytwPlayerDisclosureViewModelText"},H))}}))},
else:function(){return _.m("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return J().text})}}),_.m(_.v,{cond:function(){return J().showEndChevron},
then:function(){return _.m(_.bn,{icon:"CHEVRON_RIGHT"})}})))},"Wf");_.XGI=new _.ni("DESKTOP_CURRENT_PAGE");var Gup=_.d(function(p){var J=p.data;var S=_.z("force_active_time_logging_webview"),H=!1,M=new gyl,X=void 0,Z=void 0,n=_.vO().resolve(swj),b=new C$N,F=void 0,f=void 0,O=[],A=void 0,P=void 0,W=!1,y=!1,t=!1,D=!1,k=new _.iy,E=_.vO().resolve(xje),a=_.vO().resolve(_.CR),q=_.vO().resolve(_.F9(rU)),w,I=(w=_.vO().resolve(_.F9(_.XGI)))==null?void 0:w.getCurrentPage(),Z3=!1,vg=0,yX=function(M4){M4.preventDefault();return M4.returnValue=""},Pg,ov=_.K(_.eQ(!((Pg=_.$t("yt-mini-app-is-audio-enabled"))!=null&&!Pg),
void 0,"wBOrKf")),NW=ov.next().value,TW=ov.next().value,Ys,Go=_.K(_.eQ(!((Ys=_.$t("exit-mini-app-seen-state"))==null||!Ys),void 0,"a2xYg")),$U=Go.next().value,LL=Go.next().value,fd=_.K(_.eQ(!1,void 0,"i8BH4")),Qv=fd.next().value,t8=fd.next().value,Wp=_.K(_.eQ(void 0,void 0,"UGqFqe")),ON=Wp.next().value,KL=Wp.next().value,HE=_.K(_.eQ(void 0,void 0,"jrV5Ob")),o8=HE.next().value,xU=HE.next().value,eL=_.K(_.eQ(!0,void 0,"u5JS3d")),Ld=eL.next().value,QV=eL.next().value,YU=_.K(_.eQ(!1,void 0,"MjPdB")),
Fn=YU.next().value,vE=YU.next().value,XP=_.K(_.eQ(!1,void 0,"nT6Yxf")),wk=XP.next().value,SI=XP.next().value,vG=_.K(_.eQ(void 0,void 0,"nkG6")),Sa=vG.next().value,Ar=vG.next().value,EN=_.K(_.eQ(0,void 0,"KH4u0b")),nC=EN.next().value,Ps=EN.next().value,Vv=_.nE("mini-app-container-view-model"),CP=_.K(_.eQ(!1,void 0,"NsE4qb")),Mj=CP.next().value,r2=CP.next().value,hT=function(){return J().isEmbeddedInWebview},EV=function(){return J().hasPlayNextShelf};
_.qz(function(){var M4,zf=(M4=_.e(J().contentDisclosure,EN8))==null?void 0:M4.animationParams;if((zf==null?0:zf.shouldHide)&&(zf==null?0:zf.hideDelaySecs)){var Tf=setTimeout(function(){r2(!0)},zf.hideDelaySecs*1E3);
_.VY(function(){clearTimeout(Tf)})}});
_.fE("yt-page-type-changed",function(M4){if(_.z("enable_is_mini_app_page_active_bugfix"))M4.detail.newPageSubtype==="mini_app"&&M4.detail.newPageType==="ytd-browse"||!Ld()||$_();else if(M4=_.Ym()==="mini_app",M4!==Ld())if(QV(M4),M4){var zf;M4=(zf=J().playableId)==null?void 0:zf.toString();M4!==void 0&&window.location.href.includes(M4)&&!y&&(D=!0,vW(),E3.value&&Wz(E3.value))}else M4||$_()});
_.fE("yt-action",function(M4){M4.detail.actionName==="yt-engagement-panel-visible-changed"&&M4.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&M4.detail.args[2]==="PAmini_app_panel"&&$_();_.z("enable_is_mini_app_page_active_bugfix")?M4.detail.actionName==="yt-history-load"&&!Ld()&&(I==null?0:I.active)?(QV(!0),vW(),E3.value&&Wz(E3.value)):M4.detail.actionName==="yt-history-load"&&Ld()&&!J().isEmbeddedInWebview&&PE():Ld()&&M4.detail.actionName==="yt-history-load"&&(D?D=!1:J().isEmbeddedInWebview||
PE())});
_.VY(function(){pA()});
_.lf(function(){vW()},"bzUf2c");
var vW=function(){var M4=J().playableId,zf=J().localReleaseId,Tf=J().derivedDeviceInterface;if(y)_.xQ(new _.TG("[MiniAppContainerViewModel] onEnter was called more than once"));else{y=!0;X=new FIl(M4,zf,Tf,document.visibilityState==="visible");Arf(X);Z=new TMw(M4);it$(n,M4);yrP(b,{showMiniAppAdCommand:J().showMiniAppAdCommand,isEmbeddedInWebview:J().isEmbeddedInWebview,playLogger:X});cPW()&&(P=document.body.style.backgroundColor,_.Ej(document.body,"background-color","black"));ke();UT();k=new _.iy;
if(J().isEmbeddedInWebview){if(M4=(new URLSearchParams(window.location.search)).get("postPlayNonce"))fle(X,M4),Z3=!0;M.initialize({onAudioStateLoaded:function(RD){rk(RD)},
onMuteMiniApp:function(){rk(!1)},
onUnmuteMiniApp:function(){rk(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(RD){Z3||(fle(X,RD),Z3=!0)},
confirmExitMiniApp:function(){var RD,u0,NL;return _.G(function(LV){if(LV.nextAddress==1)return J().confirmExitMiniAppCommand?LV.yield(Promise.race([k.promise,Promise.resolve(!1)]),2):LV.return();(RD=LV.yieldResult)?!J().confirmExitMiniAppCommandEdu||(NL=(u0=$U)==null?void 0:u0())!=null&&NL?Cz(J().confirmExitMiniAppCommand):(Cz(J().confirmExitMiniAppCommandEdu),_.ze("exit-mini-app-seen-state","true",2592E6)):Cz(J().closeMiniAppCommand);_.UK(LV)})},
onNativeBenchmarkingMessageReceived:function(RD){RD=QEp(_.DJi(RD));if(_.AF(RD,_.UX,3,o08)){var u0=_.tF(RD,_.UX,3,o08),NL=uyW();var LV=qL(NL.getSeconds())-qL(u0.getSeconds());u0=_.bW(NL,2)-_.bW(u0,2);LV<0&&u0>0?(LV+=1,u0-=1E9):LV>0&&u0<0&&(--LV,u0+=1E9);LV=(new Je).setSeconds(LV);LV=_.LP(LV,2,_.Rw(u0),0);_.Qd(RD,1,LV)}var ah;(ah=f)==null||ah.returnNativeBenchmarkingMessage(RD)},
multiplayer3pAckStateLoaded:function(RD){PE(RD)},
exitMiniAppSeenStateLoaded:function(RD){J().confirmExitMiniAppCommandEdu&&LL(RD)},
onNavigateToNewMiniApp:function(){Cz(J().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(RD){RD=new URLSearchParams(RD);var u0=void 0;RD.has("invite_code")&&(u0=new tbE,RD=RD.get("invite_code"),u0=_.g2(u0,1,RD));if(RD=u0){var NL;(NL=f)==null||NL.sendGameData(RD)}},
onPauseMiniApp:function(){H=!0;Bg()},
onResumeMiniApp:function(){H=!0;lw()},
onAdFinished:function(RD){b.onAdFinished(RD)}});
J().showMultiplayer3pConsentDialogCommand||k.resolve(!0);Cz(J().onContainerReadyCommand)}else fle(X),k.resolve(!0);djM(Z,vyU(X));vyU(X).then(function(RD){RD={miniAppPlayData:{postPlayNonce:RD}};var u0,NL=(u0=J().loggingDirectives)==null?void 0:u0.trackingParams;NL&&_.bC().stateChanged(NL,RD)});
M4=J().showSignInDialogCommand;!ERi()&&M4&&(_.ze("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Cz(M4));J().confirmExitMiniAppCommand&&q&&(M4=NNi(J().confirmExitMiniAppCommand))&&(q.customConfirmationCommand=M4)}},pA=function(){P&&_.Ej(document.body,"background-color",P);
W=!1;A&&A.release();Z.flush().catch(function(M4){_.xQ(M4)});
n.flush().catch(function(M4){_.xQ(M4)});
zUP(X);oH();f=void 0;RTP(E)},$_=function(){QV(!1);
pA();t8(!1);Ar(void 0);KL(void 0);xU(void 0);vg=0;Ps(0);y=!1},Bg=function(){var M4;
(M4=f)==null||M4.onPause();A&&A.release();Z.flush().catch(function(zf){_.xQ(zf)});
n.flush().catch(function(zf){_.xQ(zf)});
P$w(X);vE(!0)},lw=function(){var M4;
(M4=f)==null||M4.onResume();UT();M4=X;M4.isForeground=!0;BK(M4,"PLAY_EVENT_TYPE_PLAY_RESUME");vE(!1)},rk=function(M4){var zf;
(zf=f)==null||zf.onAudioToggled(M4);TW(M4)},PE=function(M4){J().showMultiplayer3pConsentDialogCommand&&(J().isEmbeddedInWebview&&M4!==void 0&&k.resolve(M4),!M4&&_.Ym()==="mini_app"&&Cz(J().showMultiplayer3pConsentDialogCommand))},ow=function(){var M4,zf,Tf,RD;
return _.G(function(u0){if(u0.nextAddress==1){!J().isLivestream||J().disableVideoCapture||(M4=f)!=null&&M4.sendStartGameFrameCapture();zf=(new URL(window.location.href)).searchParams;if(zf.has("invite_code")){var NL=new tbE,LV=zf.get("invite_code");Tf=_.g2(NL,1,LV);(RD=f)==null||RD.sendGameData(Tf)}Qv()||(t8(!0),NL=X,NL.state!==1?_.xQ(new _.TG("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+bPI[NL.state])):(_.oy("mini_app_ids_without_game_ready").includes(NL.JSC$17228_miniAppId)&&(NL.gameReady=
!0),NL.state=2,NL.beforeReady=!1,yZ(NL,"ma_ffr"),BK(NL,"PLAY_EVENT_TYPE_PLAY_READY")));return u0.yield(k.promise,2)}Cz(J().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();J().isEmbeddedInWebview||PE();_.UK(u0)})},kp=function(){var M4=X;
M4.gameReady=!0;yZ(M4,"ma_gr")},sN=function(M4){var zf;
return _.G(function(Tf){if(Tf.nextAddress==1)return _.oI(Tf,2),Tf.yield(llM(Z,M4),4);if(Tf.nextAddress!=2)return _.X$(Tf,0);zf=_.BZ(Tf);Cz(J().showSavingErrorPopupCommand);throw zf;})},Up=function(){var M4,zf;
return _.G(function(Tf){if(Tf.nextAddress==1)return _.oI(Tf,2),Tf.yield(uPM(Z),4);if(Tf.nextAddress!=2)return M4=Tf.yieldResult,Tf.return(M4);zf=_.BZ(Tf);Cz(J().showLoadingErrorDialogCommand);throw zf;})},Cd=function(M4){X.logError(M4)},Ve=function(M4,zf,Tf){oyP(X,M4,zf,Tf)},aD=function(M4,zf){WIU(X,M4,zf)},zo=function(){!S&&J().isEmbeddedInWebview||_.OI();
$jp(X,!0);W||(window.addEventListener("beforeunload",yX,{capture:!0}),W=!0)},j6=function(M4){var zf,Tf,RD,u0,NL,LV,ah;
return _.G(function(UM){if(UM.nextAddress==1)return n&&(!F||F<M4)&&M4>0?UM.yield(K7j(n,M4),3):UM.jumpTo(0);zf=UM.yieldResult;Tf=_.K(zf);RD=Tf.next().value;u0=Tf.next().value;NL=RD;LV=u0;((ah=NL)==null?0:ah.displayString)&&LV&&(KL(LV),xU(NL.displayString));_.UK(UM)})},wr=function(M4){var zf=J().onBenchmarkingMessageReceivedCommand;
if(zf){var Tf=uyW();_.Ct(M4,3,o08,Tf);g_(zf,Clq(M4))}},Eq=function(M4){var zf=J().onGameFrameReceivedCommand;
if(zf){var Tf=new cN;var RD=new e3m;var u0=Cu(M4,1);RD=_.Tg(RD,1,u0);M4=_.B_(M4,2);M4=_.g2(RD,2,M4);Tf=_.Qd(Tf,2,M4);g_(zf,yav(Tf))}},xT=function(M4){var zf=J().onGameAudioDataReceivedCommand;
if(zf){var Tf=new cN;var RD=new QWM;M4=_.B_(M4,1);RD=_.g2(RD,1,M4);Tf=_.Qd(Tf,4,RD);g_(zf,yav(Tf))}},iZ=function(){var M4=new URLSearchParams(window.location.search);
if(J().isEmbeddedInWebview&&M4&&M4.get("override_hl")==="true"&&M4.get("hl"))return M4.get("hl");M4=document.documentElement.lang;return M4!==""?M4:Nw},h3=function(M4){var zf=J().onShareInviteCodeCommand;
if(zf)if(J().isEmbeddedInWebview){var Tf=new c0o;M4=_.g2(Tf,1,M4);g_(zf,LBL(M4))}else Tf=J().inviteCodeShareClientParamIdentifier,E.clientParams.set(Tf,{miniAppClientParams:{inviteCode:M4}}),Cz(zf)},$v=function(M4){var zf,Tf,RD;
return _.G(function(u0){if(u0.nextAddress==1)return zf=J().onMiniAppOpenYtContentRequested,n&&_.z("enable_open_yt_content")&&zf?u0.yield(Ztp(n,M4),3):u0.jumpTo(0);Tf=u0.yieldResult;if(Tf==="OK")if(J().isEmbeddedInWebview){var NL=new Ppq;RD=sI(NL,2,xi,Pp(M4));g_(zf,oi8(RD))}else a.clientData.set("video_id",M4),Cz(zf);_.UK(u0)})},m5=function(M4){vg+=_.bW(M4,3);
M4=Math.min(Math.log(1+vg/15E6*9)/Math.log(10),.99);Ps(M4);FG(M4)},FG=_.Uj(function(M4){var zf=J().updateLoadingProgressCommand;
if(zf){var Tf=new Ppq;M4=sI(Tf,3,xi,_.jL(M4));g_(zf,oi8(M4))}},100),o6=function(M4){return UjN(b,M4)},UT=function(){var M4,zf;
((M4=_.Pi3())==null?void 0:(zf=M4.wakeLock)==null?void 0:zf.request)!=null&&_.Pi3().wakeLock.request("screen").then(function(Tf){A=Tf}).catch(function(){})},E3=_.mo("iframe");
_.lf(function(){J().isSupportedCountry&&(ERi()||_.z("enable_sign_in_promo")||!J().showSignInDialogCommand?E3.value&&Wz(E3.value):Cz(J().onMiniAppReadyCommand))},"VjCqQ");
var CA=function(){return _.m("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Qv()?0:-1},
el:E3})},Wz=function(M4,zf){zf=zf===void 0?!1:zf;
var Tf=$A();if(Tf&&(zf||Tf.toString()!==M4.getAttribute("src"))){f=IW3(J().source,{isAudioEnabled:NW,onFirstFrameReady:ow,onGameReady:kp,onSave:sN,onLoad:Up,onError:Cd,onSdkCalled:Ve,onSdkPerformanceUpdate:aD,onClick:zo,onSendHighScore:j6,onBenchmarkingMessageReceived:wr,getLanguage:iZ,onShareInviteCode:h3,onResourceLoaded:m5,onOpenYTContent:$v,onShowMiniAppAd:o6,onGameFrameReceived:Eq,onGameAudioReceived:xT},M4,Tf);fI(M4,"load",function(){yZ(X,"ma_il");fI(M4,"load",function(){Wz(M4,!0)})});
var RD=_.PO("mini_app_container_iframe_src_update_delay_ms");J().isEmbeddedInWebview&&!zf&&RD>0?qH3(M4,Tf,RD):_.Lt(M4,Tf)}},$A=function(){var M4=J().url;
if(M4&&(M4=_.x_(M4),M4!==null)){if(J().source&&J().source==="MINI_APP_SOURCE_GAMESNACKS")M4=_.O9(M4,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.z("enable_origin_query_parameter_bugfix")){var zf=_.Wu(_.b29(M4.toString()));zf=new URLSearchParams(zf||"");zf.set("origin",window.location.origin);zf=zf.toString();M4=_.gy(M4).toString();M4=_.sq(Rmv.exec(M4)[0]+(zf.trim()?"#"+zf:""))}return M4}},DR=function(){var M4={};
M4=_.XB("yt-mini-app-container-view-model__loading-screen",(M4["yt-mini-app-container-view-model__loading-screen--fade-out"]=Qv,M4));var zf=function(){return Qv()?1:nC()};
return _.m("div",{class:M4},_.m(_.AH,{data:function(){return J().splashScreen}},{miniAppSplashScreenViewModel:function(Tf){return _.m(wpl,{data:Tf.data,
loadingProgress:zf})}}))},QO=function(){var M4={};
return _.m("div",{class:_.XB("yt-mini-app-container-view-model__pause-interstitial",(M4["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!Fn()},M4["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=Fn,M4))},_.m(_.AH,{data:function(){return J().splashScreen}},{miniAppSplashScreenViewModel:function(zf){return _.m(wpl,{data:zf.data,
forPaused:!0})}}))},ke=function(){O=[];
O.push(_.z$(window,"visibilitychange",function(){t||H&&hT()||(document.visibilityState==="visible"?lw():Bg())}));
O.push(_.z$(window,"pagehide",function(){pA()}));
O.push(_.z$(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Vv.value.dispatchEvent(new Event("tap"))},0)}));
O.push(_.z$(Vv.value,"pointerdown",function(){$jp(X,!1)},!0));
O.push(_.z$(Vv.value,"pause",function(){t=!0;Bg()}));
O.push(_.z$(Vv.value,"play",function(){t=!1;lw()}));
O.push(_.z$(Vv.value,"exit",function(){pA()}));
var M4=navigator.keyboard,zf=M4&&M4.lock;O.push(_.z$(window,$rM,function(){SI(eG8());eG8()?(J().hasPlayNextShelf&&sT("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Cc("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),zf&&M4.lock(["Escape"])):(J().hasPlayNextShelf&&Cc("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),sT("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),zf&&M4.unlock())}));
J().showMultiplayer3pConsentDialogCommand&&O.push(_.z$(window,"yt-playables-ack-3p-data-usage",function(){npy(n)}));
J().confirmExitMiniAppCommandEdu&&O.push(_.z$(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.ze("exit-mini-app-seen-state","true",2592E6)}));
J().onGameAudioDataReceivedCommand&&O.push(_.z$(window,"message",function(Tf){Tf=Tf.event_;var RD,u0=(RD=E3.value)==null?void 0:RD.src;if(u0&&Tf.origin===(new URL(u0)).origin&&Tf.data&&Tf.data.type==="GAME_AUDIO"&&Tf.data.audio&&Tf.data.audio.length>0)if(_.z("enable_sending_unwrapped_game_audio_as_serialized_metadata"))VjL(J().onGameAudioDataReceivedCommand,Tf.data.audio);else{var NL=new FileReader;NL.onload=function(){var LV=new cN;var ah=new QWM;ah=_.g2(ah,1,NL.result);LV=_.Qd(LV,4,ah);g_(J().onGameAudioDataReceivedCommand,
yav(LV))};
NL.readAsDataURL(new Blob([Tf.data.audio]))}}))},oH=function(){O.forEach(function(M4){Oa(M4)});
window.removeEventListener("beforeunload",yX,{capture:!0})},Cz=function(M4){M4&&dTw(M4,J().isEmbeddedInWebview||!1)},Cc=function(M4,zf){M4=_.K(Vv.value.getElementsByClassName(M4));
for(var Tf=M4.next();!Tf.done;Tf=M4.next())Tf.value.classList.add(zf)},sT=function(M4,zf){M4=_.K(Vv.value.getElementsByClassName(M4));
for(var Tf=M4.next();!Tf.done;Tf=M4.next())Tf.value.classList.remove(zf)};
return function(){var M4={};M4=_.XB("yt-mini-app-container-view-model",(M4["yt-mini-app-container-view-model--desktop"]=!0,M4["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return J().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},M4["yt-mini-app-container-view-model--ios-web-view"]=cPW(),M4["yt-mini-app-container-view-model--no-top-bar"]=function(){return!J().topBar},M4["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return J().hasPlayNextShelf},M4["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return J().hasPlayNextShelf},M4["yt-mini-app-container-view-model--show-peek-below"]=function(){return!wk()&&J().hasPlayNextShelf},M4));
var zf={};zf=_.XB("yt-mini-app-container-view-model__content",(zf["yt-mini-app-container-view-model__content--desktop-content"]=!0,zf["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return J().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},zf["yt-mini-app-container-view-model--desktop-play-page"]=function(){return J().hasPlayNextShelf},zf));
return _.m("mini-app-container-view-model",{el:Vv},_.m("div",{class:M4},_.m(_.v,{cond:function(){return J().topBar&&!wk()},
then:function(){return _.m(_.AH,{data:function(){return J().topBar}},{miniAppTopBarViewModel:function(Tf){return _.m(HtI,{data:Tf.data,
isAudioEnabled:NW,onAudioToggled:function(RD){rk(RD)},
score:ON,formattedScore:o8,onScoreChanged:function(RD){F=RD},
isEmbeddedInWebview:hT,isSaved:Sa,onSaveToggled:function(RD){Ar(RD)},
isExitMiniAppSeen:$U,isDesktopPlayPage:EV})}})}}),_.m("div",{class:zf},_.m(_.v,{cond:Ld,
then:function(){return CA()}}),_.m(_.v,{cond:function(){return J().isLivestream},
then:function(){return QO()}}),_.m(_.v,{cond:function(){return!J().isEmbeddedInWebview},
then:function(){return DR()}}),_.m(_.AH,{data:function(){return J().contentDisclosure}},{playerDisclosureViewModel:function(Tf){Tf=Tf.data;
var RD={};return _.m("div",{class:_.XB("yt-mini-app-container-view-model__content-disclosure-overlay",(RD["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=Mj,RD))},_.m(_.MaN,{data:Tf}))}}))))}()},"$f");
Gup.idomCompat=!0;_.ci(Gup,"mini-app-container-view-model",{props:{data:_.fD}});var btI=_.d(function(p){var J=p.data;return _.m("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.m("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Kb(function(){var S=J().onTap;S&&_.Dm(S)})},_.m(_.v,{cond:function(){return J().icon},
then:function(S){return _.m(_.bn,{icon:function(){return S().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.m("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return J().title})))},"ag");
btI.idomCompat=!0;var mGp=_.d(function(p){var J=_.nE("div"),S=_.K(_.eQ(void 0,void 0,"dg3xff")),H=S.next().value,M=S.next().value;S=_.K(_.eQ(void 0,void 0,"AgHNfc"));var X=S.next().value,Z=S.next().value;S=_.K(_.eQ(void 0,void 0,"fuTKCc"));var n=S.next().value,b=S.next().value,F=function(){var D=H();return D!==void 0?Math.abs(D):void 0},f=function(){var D=F();
return D===void 0||D<=3},O=function(){var D=F();
var k=X(),E=n();D=D!==void 0&&k!==void 0&&E!==void 0?k-E-D:void 0;return D===void 0||D<=3},A=function(D){J.value&&J.value.scrollBy({top:0,
left:(_.jn("HTML_DIR")==="rtl"?-1:1)*D*J.value.clientWidth,behavior:"smooth"})},P=function(){var D;
M((D=J.value)==null?void 0:D.scrollLeft);var k;Z((k=J.value)==null?void 0:k.scrollWidth);var E;b((E=J.value)==null?void 0:E.clientWidth)},W=function(){A(-.5)},y=function(){A(.5)};
S=_.Kb(function(){P()});
_.qz(function(){P();if(J.value&&window.ResizeObserver){var D=new ResizeObserver(P);D.observe(J.value);_.VY(function(){D.disconnect()})}});
var t={};return _.m("yt-sponsorships-scrollable-shelf",{class:_.XB("ytdSponsorshipsScrollableShelfHost",p.className)},_.m("div",{class:_.XB("ytdSponsorshipsScrollableShelfContent",(t.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return p.data().previousButton&&p.data().nextButton&&!f()&&!O()},t.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return p.data().previousButton&&!f()&&O()},t.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return p.data().nextButton&&
f()&&!O()},t)),
el:J,"on:scroll":S},p.children),_.m(_.v,{cond:function(){return!f()},
then:function(){return _.m(_.AH,{data:function(){return p.data().previousButton}},{buttonViewModel:function(D){return _.m(_.D0,{data:D.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:W})}})}}),_.m(_.v,{cond:function(){return!O()},
then:function(){return _.m(_.AH,{data:function(){return p.data().nextButton}},{buttonViewModel:function(D){return _.m(_.D0,{data:D.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:y})}})}}))},"cg");
mGp.idomCompat=!0;var vpe=_.d(function(p){var J=p.data;p={};return _.m("yt-sponsorships-hub",{class:_.XB("ytdSponsorshipsHubHost",(p.ytdSponsorshipsHubHostIndented=function(){return J().indented},p))},_.m("div",{class:"ytdSponsorshipsHubHeader"},_.m("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.m("div",{class:"ytdSponsorshipsHubAvatar"},_.m(_.AH,{data:function(){return J().avatar}},{avatarViewModel:_.iF})),_.m(_.v,{cond:function(){return J().badgeImage},
then:function(S){return _.m("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.m("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.m("div",{class:"ytdSponsorshipsHubBadge"},_.m(_.a4,{data:S,targetWidth:24,targetHeight:24,alt:""}))))}})),_.m("div",{class:"ytdSponsorshipsHubDetails"},_.m("div",{class:"ytdSponsorshipsHubTierName"},function(){return J().tierName}),_.m("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return J().membershipType}),_.m("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return J().membershipDurationOrExpiry})),_.m("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.m(_.AH,{data:function(){return J().manageButton}},{buttonViewModel:function(S){return _.m(_.D0,{data:S.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.m(_.AH,{data:function(){return J().actionMenuButton}},{buttonViewModel:function(S){return _.m(_.D0,{data:S.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.m("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return J().perksTitle}),_.m(mGp,{data:function(){return{previousButton:J().previousPerkButton,
nextButton:J().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.m("div",{class:"ytdSponsorshipsHubPerkCards"},_.m(_.AH,{data:function(){return J().perkCards}},{sponsorshipsHubPerkCardViewModel:btI}),_.m(_.v,{cond:function(){return J().viewAllPerksButton},
then:function(S){return _.m(F7j,{data:S})}}))))},"dg");
vpe.idomCompat=!0;var F7j=_.d(function(p){var J=p.data;return _.m("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.m(_.AH,{data:function(){return J().button}},{buttonViewModel:_.D0}),_.m("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.m("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return J().title}),_.m("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return J().subtitle})))},"eg");
F7j.idomCompat=!0;_.ci(vpe,"yt-sponsorships-hub",{props:{data:_.fD}});_.f4y=_.d(function(p){var J=p.data;return _.m("yt-dual-avatar-view-model",{class:_.XB("ytDualAvatarViewModelHost",p.className),style:_.G7({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var S;return((S=J().badgeCutoutRadius)!=null?S:14)+"px"}})},_.m("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.m(_.AH,{data:function(){return J().startAvatar}},{avatarViewModel:_.iF}),_.m(_.AH,{data:function(){return J().endAvatar}},{avatarViewModel:_.iF})),_.m(_.AH,{data:function(){return J().badge}},
{contentPreviewImageViewModel:function(S){return _.m("div",{class:"ytDualAvatarViewModelBadge"},_.m(_.D2,{data:S.data}))}}))},"fg");
_.f4y.idomCompat=!0;var AsI=_.d(function(p){var J=p.data;var S,H=!((S=_.vO().resolve(_.F9(_.uC)))==null||!S());p=_.BW(function(){var f,O,A=H?(f=J().header)==null?void 0:f.backgroundColorDarkMode:(O=J().header)==null?void 0:O.backgroundColorLightMode;if(A!==void 0)return _.Bt(A)},void 0,"TDdh7d");
S=_.BW(function(){var f,O;return H?(f=J().header)==null?void 0:f.backgroundImagePart1Dark:(O=J().header)==null?void 0:O.backgroundImagePart1Light},void 0,"X0peMe");
var M=_.BW(function(){var f,O;return H?(f=J().header)==null?void 0:f.backgroundImagePart2Dark:(O=J().header)==null?void 0:O.backgroundImagePart2Light},void 0,"an0Hzd"),X=_.BW(function(){return _.jn("HTML_DIR")==="rtl"},void 0,"BltEgb"),Z=_.nE("yt-sponsorships-perks-list"),n=!1,b=function(){var f=Z.value;
if(f&&!n){var O,A=(O=f.parentElement)==null?void 0:O.parentElement;if(A)for(f=f.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),O=0;O<f.length;++O){var P=f[O];if(P instanceof HTMLElement){A.scrollTo({top:P.offsetTop+P.clientHeight/2-A.clientHeight/2,behavior:"smooth"});n=!0;break}}}};
_.ad(function(){var f=Z.value;if(f&&window.ResizeObserver){var O=new ResizeObserver(b);O.observe(f);_.VY(function(){O.disconnect()})}});
var F={};return _.m("yt-sponsorships-perks-list",{el:Z,class:_.XB("ytdSponsorshipsPerksListHost",(F.ytdSponsorshipsPerksListHorizontalPadding=function(){return J().horizontalPaddingEnabled},F))},_.m("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.m("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.G7({"background-color":p})},_.m("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.m(_.v,{cond:S,then:function(f){var O={};return _.m("div",{class:_.XB((O.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=H,O.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!H,O.ytdSponsorshipsPerksListFlipped=X,O))},_.m(_.a4,{data:f,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.m("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.m(_.v,{cond:M,
then:function(f){var O={};return _.m("div",{class:_.XB((O.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=H,O.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!H,O.ytdSponsorshipsPerksListFlipped=X,O))},_.m(_.a4,{data:f,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.m("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.m(_.AH,{data:function(){var f;
return(f=J().header)==null?void 0:f.dualAvatar}},{dualAvatarViewModel:_.f4y})))),_.m("div",{class:"ytdSponsorshipsPerksListBody"},_.m("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return J().title}),_.m(_.v,{cond:function(){return J().perks},
then:function(f){return _.m(_.dY,{each:f},function(O,A){var P={};return _.m("div",{class:_.XB("ytdSponsorshipsPerksListPerkContainer",(P.ytdSponsorshipsPerksListSelectedPerk=function(){var W=A(),y=J().selectedPerkIndex;return W===y},P))},_.m(_.v,{cond:function(){return A()>0},
then:function(){return _.m("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.m("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.m(_.v,{cond:function(){return O.icon},
then:function(W){return _.m(_.bn,{icon:function(){return W().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.m("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.m("div",{class:"ytdSponsorshipsPerksListPerkTitle"},O.title),_.m("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.m(_.v3,{text:O.description})),_.m(_.v,{cond:function(){return O.instructions},
then:function(){var W,y;return _.m("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.m("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(W=O.instructions)==null?void 0:W.title),_.m("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.m(_.v3,{text:(y=O.instructions)==null?void 0:y.text})))}}))),_.m(_.v,{cond:function(){return O.emoji},
then:function(W){return _.m("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.m(_.dY,{each:function(){return W()}},function(y){return _.m(_.a4,{data:y,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.m(Otj,{data:O}))})}})))},"gg");
AsI.idomCompat=!0;var Otj=_.d(function(p){var J=p.data;var S=function(Z,n){return Z===n},H=function(){var Z=J();
Z=_.e(Z==null?void 0:Z.badgesShelf,Ha8);return Z!==void 0&&Z!==null?Z:{previousButton:{},nextButton:{}}},M=_.mo("div"),X=function(){var Z=M.value;
if(Z){var n=Z.parentElement;if(n){Z=Z.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var b=0;b<Z.length;++b){var F=Z[b];if(F instanceof HTMLElement){n.scrollTo({left:F.offsetLeft+F.clientWidth/2-n.clientWidth/2,behavior:"instant"});break}}}}};
_.ad(function(){var Z=M.value;if(Z){var n=new ResizeObserver(X);n.observe(Z);_.VY(function(){n.disconnect()})}});
return _.m("div",null,_.m(_.v,{cond:function(){return J().badges},
then:function(Z){return _.m(mGp,{data:H},_.m("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:M},_.m(_.dY,{each:function(){return Z()}},function(n,b){var F={},f={},O={};
return _.m("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.m(_.v,{cond:function(){return b()>0},
then:function(){return _.m("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.m("div",{class:_.XB("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(F.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return S(b(),J().currentBadgeIndex)},F.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!S(b(),J().currentBadgeIndex)},F))},_.m("div",{class:_.XB("ytdSponsorshipsPerksListLoyaltyBadge",(f.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return S(b(),
J().currentBadgeIndex)},f.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!S(b(),J().currentBadgeIndex)},f))},_.m(_.v,{cond:function(){return n.image},
then:function(A){var P={};return _.m("div",{class:_.XB((P.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return S(b(),J().currentBadgeIndex)},P.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!S(b(),J().currentBadgeIndex)},P))},_.m(_.a4,{data:A,
alt:""}))}})),_.m("div",{class:_.XB("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(O.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return S(b(),J().currentBadgeIndex)},O))},n.title)))})))}}))},"hg");
Otj.idomCompat=!0;_.ci(AsI,"yt-sponsorships-perks-list",{props:{data:_.fD}});_.ci(_.d(function(p){return _.m("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.m(_.v,{cond:function(){return p.data().image},
then:function(J){return _.m(_.a4,{className:"ytwFantasyEmptyStateViewModelImage",data:J,ariaHidden:!0,alt:""})}}),_.m(_.v3,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return p.data().title}}),_.m(_.v3,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return p.data().subtitle}}),_.m(_.AH,{data:function(){return p.data().primaryButton}},{buttonViewModel:function(J){return _.m(_.D0,{data:J.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ig"),"ytw-fantasy-empty-state-view-model",{props:{data:_.fD}});var PvU;var zTe=_.d(function(p){var J=p.data;var S=p.uniqueId;var H=p.overrides;p=_.BW(function(){var M,X=((M=J().timedAnimationData)==null?void 0:M.animationTiming)||[];return{uniqueId:S(),timings:X,experimentEnabled:X.length>0,enabled:X.length>0}},void 0,"hiuXI");
return _.m("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.m(JEo,{settings:p},_.m(_.AH,{data:function(){return J().buttonRenderer}},{buttonRenderer:function(M){return _.m(_.W2,{data:M.data,
buttonOverrides:H})}})))},"jg");
zTe.idomCompat=!0;_.ci(zTe,"timed-animation-button-renderer",{props:{data:_.fD,uniqueId:_.fD,overrides:_.fD}});var DG=function(){var p=_.T.apply(this,arguments)||this;p.hideJoinButtonBeforeSubscribed=_.z("hide_join_button_before_subscribed");p.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return p};
_.Q(DG,_.T);_.R=DG.prototype;_.R.hasShowDialogCommand=function(p){return!!_.e(p,n4d)};
_.R.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.updateJoinButtonOverrides=function(){var p,J;(p=_.Jn(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(J=p.polymerController)==null||J.set("overrides",this.joinButtonOverrides);if(p=_.Jn(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))p.overrides=this.joinButtonOverrides};
_.R.handleButtonRefreshAction=function(p){if(p=_.e(p,hE8))this.set("data.membershipButton",p.membershipButton),this.notifyPath("data.membershipButton")};
_.R.onYtServiceRequestError=function(p){_.Vh(this.hostElement,p.detail.error.message)};
_.R.onKeydown=function(p){if(p.key==="Enter"){var J;(J=this.data)!=null&&J.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.R.handleUnsubscribeAction=function(){var p,J,S;((p=this.data)==null?void 0:(J=p.membershipButton)==null?void 0:(S=J.buttonRenderer)==null?void 0:S.style)==="STYLE_PRIMARY"&&_.Jn(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.vh.Object.defineProperties(DG.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,J=(p=this.data)==null?void 0:p.membershipButton,S;p=(J==null?void 0:J.buttonRenderer)||_.e(J==null?void 0:(S=J.timedAnimationButtonRenderer)==null?void 0:S.buttonRenderer,_.Za);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"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var p;if(this.hasShowDialogCommand((p=this.data)==null?void 0:p.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var p;if(this.hasShowDialogCommand((p=this.data)==null?void 0:p.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.attributedTitle)}}});
DG.prototype.onYtServiceRequestError=DG.prototype.onYtServiceRequestError;DG.prototype.updateJoinButtonOverrides=DG.prototype.updateJoinButtonOverrides;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],DG.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],DG.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],DG.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.cy),_.Y("design:type",Object)],DG.prototype,"ironButtonState",void 0);_.V([_.N(),_.Y("design:type",Object)],DG.prototype,"data",void 0);_.V([_.U("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DG.prototype,"hideJoin",null);
_.V([_.N(),_.Y("design:type",String)],DG.prototype,"subscribeKey",void 0);_.V([_.N({selectorArgs:["subscribeKey"],selector:pSi}),_.Y("design:type",Object)],DG.prototype,"subscriptionStateEntity",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],DG.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.V([_.U("subscriptionStateEntity"),_.N({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DG.prototype,"subscribed",null);
_.V([_.U("subscribed","data.membershipButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DG.prototype,"joinButtonOverrides",null);_.V([_.U("data.navigationEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DG.prototype,"channelNameTabIndex",null);_.V([_.U("data.navigationEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DG.prototype,"channelNameRole",null);
_.V([_.U("data.attributedTitle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],DG.prototype,"hasAttributedTitle",null);_.V([_.bO("joinButtonOverrides"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DG.prototype,"updateJoinButtonOverrides",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],DG.prototype,"onYtServiceRequestError",null);
_.V([_.gw({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],DG);
var $Gl=_.pI()(DG,"ytd-video-owner-renderer",function(){if(PvU===void 0){var p=document.createElement("template");_.C(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"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);PvU=p}p=PvU;return p},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.ci(_.d(function(p){var J=p.data;var S;p=_.K(_.eQ(!((S=_.$t("yt-mini-app-is-theater-mode-enabled"))==null||!S),void 0,"i2pjVd"));var H=p.next().value,M=p.next().value;S=_.K(_.eQ(!1,void 0,"ga7V5c"));var X=S.next().value,Z=S.next().value;_.ad(function(){var F=_.z$(window,$rM,function(){Z(eG8())});
_.VY(function(){Oa(F)})});
var n;S=(n=_.vO().resolve(_.F9(a3N)))!=null?n:function(){return _.m("div",null)};
_.Zy("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){M(!0);_.ze("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Zy("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){M(!1);_.ze("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
n={};p={};var b={};return _.m("mini-app-play-page-renderer",{class:_.XB("miniAppPlayPageRendererHost",(n.miniAppPlayPageRendererHostDetailsView=function(){return!H()},n))},_.m("div",{class:_.XB("miniAppPlayPageRendererGameContainer",(p.miniAppPlayPageRendererGameContainerDetailsView=function(){return!H()},p))},_.m(_.AH,{data:function(){return J().containerViewModel}},{miniAppContainerViewModel:Gup}),_.m(_.v,{cond:function(){return J().channel&&J().subscribeButton},
then:function(){var F={};return _.m("div",{class:_.XB("miniAppPlayPageRendererChannelContainer",(F.miniAppPlayPageRendererHideVisibility=function(){return X()},F))},_.m(_.AH,{data:function(){return J().channel}},{videoOwnerRenderer:function(f){return _.m($Gl,{data:f.data})}}),_.m(_.AH,{data:function(){return J().subscribeButton}},{subscribeButtonViewModel:function(f){return _.m(_.iG,{data:f.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.m(_.v,{cond:function(){return!H()&&J().description},
then:function(){var F={};return _.m("div",{class:_.XB("miniAppPlayPageRendererMiniAppDescriptionWrapper",(F.miniAppPlayPageRendererHideVisibility=function(){return X()},F))},_.m("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return J().description}))}})),_.m("div",{class:_.XB("miniAppPlayPageRendererPlayNextContainer",(b.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!H()},b.miniAppPlayPageRendererHideVisibility=function(){return X()},b))},_.m(_.AH,{data:function(){return J().sectionList}},
{sectionListRenderer:S})))},"kg"),"mini-app-play-page-renderer",{props:{data:_.fD}});var k6=function(){var p=_.T.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};
_.Q(k6,_.T);_.R=k6.prototype;
_.R.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:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.z("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.z("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.R.created=function(){var p=this;this.JSC$17368_scrollAnimation=new _.QZ(function(J){p.hostElement.scrollTop=J})};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.R.getItemsPath=function(){return"data.contents"};
_.R.replacePrimaryContent=function(p){this.set("data.contents",p)};
_.R.computeHasSortFilter=function(p){return!!p&&!!p.sortFilterSubMenuRenderer};
_.R.computeShouldScrollInPanel=function(p){var J;return!!(p==null?0:(J=p.scrollPaneStyle)==null?0:J.scrollable)};
_.R.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.XM(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.R.scrollToTop=function(){this.hostElement.scrollTop=0};
_.R.scrollToItemSection=function(p){if(p=this.getItemByIdentifier(p))p=this.getScrollPositionForItem(p),this.hostElement.scrollTop!==p&&this.JSC$17368_scrollAnimation.start(this.hostElement.scrollTop,p,this.SCROLL_ANIMATION_DURATION_MS)};
_.R.getItemByIdentifier=function(p){var J=this.contents.querySelectorAll("ytd-item-section-renderer");if(J&&J.length!==0){var S=Array.from(J).findIndex(function(H){return H.sectionIdentifier===p});
return J[S===-1?0:S]}};
_.R.getScrollPositionForItem=function(p){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===p)return 0;p=_.q0(p).y+this.hostElement.scrollTop-_.q0(this.hostElement).y;return Math.min(p,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.vh.Object.defineProperties(k6.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.targetId)==="browse-feedFEclips"}}});
k6.prototype.onScroll=k6.prototype.onScroll;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.y$.YtLazyListBehavior),_.Y("design:type",Object)],k6.prototype,"ytLazyListBehavior",void 0);_.V([_.B(_.oM.YtNextContinuationBehavior),_.Y("design:type",Object)],k6.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.B(_.RUr),_.Y("design:type",Object)],k6.prototype,"ytBooleanLogicBehavior",void 0);_.V([_.B(_.$W),_.Y("design:type",Object)],k6.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],k6.prototype,"data",void 0);_.V([_.N({value:2}),_.Y("design:type",Number)],k6.prototype,"initialCount",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],k6.prototype,"autoFill",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.Y("design:type",Boolean)],k6.prototype,"hasSortFilter",void 0);_.V([_.N({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.Y("design:type",Boolean)],k6.prototype,"hideBottomSeparator",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.Y("design:type",Boolean)],k6.prototype,"shouldScrollInPanel",void 0);
_.V([_.N(),_.Y("design:type",Object)],k6.prototype,"isSearch",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],k6.prototype,"isConstrainedList",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],k6.prototype,"responsiveSizing",void 0);_.V([_.N(),_.Y("design:type",Object)],k6.prototype,"hasChipsBar",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],k6.prototype,"pageSubtype",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],k6.prototype,"engagementPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],k6.prototype,"liveChatEngagementPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],k6.prototype,"inReplyPanel",void 0);_.V([_.FM("#action-button"),_.Y("design:type",HTMLElement)],k6.prototype,"actionButton",void 0);_.V([_.N(),_.Y("design:type",Object)],k6.prototype,"scrollUpButtonData",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],k6.prototype,"engagementPanelDropdown",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],k6.prototype,"engagementPanelDialog",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],k6.prototype,"isClipList",null);_.V([_.FM("#contents"),_.Y("design:type",HTMLElement)],k6.prototype,"monitorScrollElement",void 0);_.V([_.FM("#contents"),_.Y("design:type",HTMLElement)],k6.prototype,"contents",void 0);
_.V([_.GI("scroll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k6.prototype,"onScroll",null);_.V([_.gw({is:"ytd-section-list-renderer",disableElementRegistration:!0})],k6);
var opI=_.pI()(k6,"ytd-section-list-renderer",function(){if(qi$===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);qi$=p}p=qi$;return p},{mode:1});var eTP;var W7I;var QDI;var Cv$;var NO=function(){return _.T.apply(this,arguments)||this};
_.Q(NO,_.T);NO.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
NO.prototype.onLikeButtonClick=function(p){p.stopPropagation();p.preventDefault()};
_.vh.Object.defineProperties(NO.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)})}}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],NO.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],NO.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],NO.prototype,"ytRendererStamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],NO.prototype,"data",void 0);
_.V([_.N({selectorArgs:["data.likeStatusEntityKey"],selector:_.tm}),_.Y("design:type",Object)],NO.prototype,"likeStatusEntity",void 0);_.V([_.U("data","likeStatusEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],NO.prototype,"likeButtonRenderer",null);_.V([_.gw({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],NO);
_.l(NO,"ytd-slim-metadata-toggle-button-renderer",function(){if(Cv$!==void 0)return Cv$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
return Cv$=p},{mode:1});var T9=function(){var p=_.T.apply(this,arguments)||this;p.showEqualizer=_.z("web_enable_playlist_video_lockup_equalizer");p.watchColorUpdate=_.z("kevlar_watch_color_update");p.actionMap={};return p};
_.Q(T9,_.T);_.R=T9.prototype;_.R.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.R.computeEditableClass=function(p){return p&&p.menu?"editable":""};
_.R.computeSelected=function(p){return!(p==null||!p.selected)};
_.R.computeUseColorPalette=function(p){return!!((p==null?0:p.lightColorPalette)&&(p==null?0:p.darkColorPalette))};
_.R.computeLargerPlaylistThumbs=function(p,J){return _.z("web_enable_playlist_bigger_thumbnails")&&!J};
_.R.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.R.onYtServiceRequestSent=function(p,J){J.endpoint&&this.isHideEnclosingAction(J.endpoint)&&!this.selected&&Vcq(_.PR(),this.data.videoId)};
_.R.isHideEnclosingAction=function(p){var J=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",p);p=this.get("likeEndpoint.status",p)==="INDIFFERENT";return J||p};
_.R.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.R.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.vh.Object.defineProperties(T9.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.z("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.z("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.z("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
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))}}});
T9.prototype.onYtServiceRequestSent=T9.prototype.onYtServiceRequestSent;T9.prototype.canReorderChanged=T9.prototype.canReorderChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],T9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],T9.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.fa),_.Y("design:type",Object)],T9.prototype,"ytdLockupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],T9.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],T9.prototype,"withinMiniplayer",void 0);_.V([_.N({computed:"computeSelected(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],T9.prototype,"selected",void 0);
_.V([_.N({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],T9.prototype,"useColorPalette",void 0);_.V([_.N({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],T9.prototype,"largerPlaylistThumbs",void 0);_.V([_.N(),_.Y("design:type",Object)],T9.prototype,"showEqualizer",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],T9.prototype,"canReorder",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],T9.prototype,"touchPersistentDragHandle",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],T9.prototype,"handleIsHovered",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],T9.prototype,"watchColorUpdate",void 0);_.V([_.N(),_.Y("design:type",String),_.Y("design:paramtypes",[])],T9.prototype,"reorderIcon",null);
_.V([_.N(),_.Y("design:type",String),_.Y("design:paramtypes",[])],T9.prototype,"playIcon",null);_.V([_.N({reflectToAttribute:!0}),_.U("withinMiniplayer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],T9.prototype,"minimizePipBreakages",null);_.V([_.U("largerPlaylistThumbs"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],T9.prototype,"thumbnailWidth",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],T9.prototype,"showActionButtons",null);_.V([_.An("canReorder"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T9.prototype,"canReorderChanged",null);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],T9.prototype,"onYtServiceRequestSent",null);
_.V([_.gw({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],T9);
_.l(T9,"ytd-playlist-panel-video-renderer",function(){if(QDI!==void 0)return QDI;var p=document.createElement("template");_.C(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="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\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="" minimize-pip-breakages="[[minimizePipBreakages]]" 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(_.r().content.cloneNode(!0),
p.content.firstChild);return QDI=p},{mode:2});var d3=function(){return _.T.apply(this,arguments)||this};
_.Q(d3,_.T);d3.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],d3.prototype,"data",void 0);_.V([_.gw({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],d3);
_.l(d3,"ytd-playlist-panel-supported-items",function(){if(W7I!==void 0)return W7I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return W7I=
p},{mode:1});QAL=!0;nr8("\\P{N}");var iv3;var ys$=_.Kl("END_OF_PLAYLIST",void 0,"End of playlist"),Byr=_.Kl("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),us=function(){var p=_.T.apply(this,arguments)||this;p.minimizePipBreakages=_.z("web_pip_minimize_breakages");p.hideHeaderText=!1;p.useColorPalette=!1;p.collapsed=!1;p.collapsedPreServerOverride="not_tracked";p.isHovered=!1;p.expandLabel=_.Kl("MINIPLAYER_EXPAND_LABEL");p.collapseLabel=_.Kl("MINIPLAYER_COLLAPSE_LABEL");p.isFloating=!1;p.metaPanel=
!1;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};p.currentIndex=void 0;return p};
_.Q(us,_.T);_.R=us.prototype;
_.R.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"}}}};
_.R.created=function(){var p=this;this.scrollThrottle=new _.nb(this.onThrottledScroll,1E3,this);this.JSC$17390_ytReorderableController=new _.m24(56,function(J){p.handleDrop(J)})};
_.R.onMouseEnter=function(){this.isHovered=!0};
_.R.onMouseLeave=function(){this.isHovered=!1};
_.R.computeOverflowMenuData=function(p){return p&&p.menu?p.menu:null};
_.R.computeCollapsible=function(p){return!p};
_.R.computeHasPlaylistButtons=function(p){return!(!p||!p.playlistButtons)};
_.R.computeHasSeparateSaveButton=function(p){return!(!p||!p.saveButton)};
_.R.computeHasToolbarButton=function(p,J){return!(!p||!(J||p.saveButton||p.menu))};
_.R.computePlaylistType=function(p){if(p&&p.playlistId)return p.playlistId.substring(0,4)};
_.R.computeCanReorder=function(p){return p?p.playlistId&&p.playlistId.startsWith("TLPQ")?!0:!!p.isEditable&&!p.isInfinite:!1};
_.R.attached=function(){var p=this;try{_.vO().resolve(_.FF).setPlaylistComponent(this.hostElement)}catch(J){if(_.z("kevlar_park_on_playlist_token_killswitch"))throw J;_.fq().parkOrScheduleJob(function(){_.vO().resolve(_.FF).setPlaylistComponent(p.hostElement)},2,"ci")}_.wG(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.R.detached=function(){_.xV(this.hostElement);_.Et(this.JSC$17390_ytReorderableController)};
_.R.computeTrailingIcon=function(p,J,S){return S?J?"yt-icons:collapse":"yt-icons:close":J?"yt-icons:expand":_.z("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.R.computeIndexMessage=function(p,J){return ZvX(p+1)+" / "+ZvX(J)};
_.R.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()};
_.R.collapseChanged=function(){var p=this;this.collapsed||(_.bb(this.ytTaskEmitterBehavior.getTaskManager(),function(){p.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.R.hiddenChanged=function(){var p=this;this.hidden||_.bb(this.ytTaskEmitterBehavior.getTaskManager(),function(){p.scrollToCurrentVideo()})};
_.R.setupReordering=function(){var p=_.Jn(this.hostElement).querySelector("#items");qY8?_.FqM(this.JSC$17390_ytReorderableController,p,p,"playlist-drag-handle"):_.FqM(this.JSC$17390_ytReorderableController,p,p)};
_.R.scrollToCurrentVideo=function(){var p=this;_.wg.addJob(function(){var J=_.Jn(p.hostElement).querySelector("#items");if(J){J.style.setProperty("padding-bottom","");var S=_.Jn(p.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(S){J=S.parentElement||_.Dv(document);var H=J||_.Dv(document);var M=_.q0(S),X=_.q0(H),Z=_.x08(H);if(H==_.Dv(document)){var n=M.x-H.scrollLeft;M=M.y-H.scrollTop}else n=M.x-X.x-Z.left,M=M.y-X.y-Z.top;S=Y98(S);X=H.clientHeight-
S.height;Z=H.scrollLeft;var b=H.scrollTop;Z+=n-(H.clientWidth-S.width)/2;H=new _.uI(Z,b+(M-X/2));J.scrollLeft=H.x;J.scrollTop=H.y}}},8)};
_.R.dataChanged=function(){var p=this;_.Et(this.JSC$17390_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.mN(this,function(){_.uS(p.ytTaskEmitterBehavior.getTaskManager(),function(){p.ytRendererBehavior.markDirty();p.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.R.onFullBleedPlayerChanged=function(){_.z("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.R.onFullscreenChanged=function(){_.z("web_watch_imax_theater_mode")||_.z("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.R.updateNowPlayingOverlay=function(){_.z("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.R.onPlaylistLockupNowPlaying=function(p,J){J&&(this.activeNowPlayingRenderer=J);this.updateNowPlayingOverlay()};
_.R.onScroll=function(){this.scrollThrottle.fire()};
_.R.onThrottledScroll=function(){var p=this;_.uS(this.ytTaskEmitterBehavior.getTaskManager(),function(){p.ytRendererBehavior.markDirty()})};
_.R.onToggleExpanded=function(p){!this.collapsible||p&&(_.Yt(p).tagName==="A"||_.jK(_.Er(p),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.R.setCollapsed=function(p){this.collapsible&&(this.collapsed=p,_.L1(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.R.handleCollapsedFromData=function(p){if(p){var J=p.playlistPanelCollapseState;J==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||J==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),J=J==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==J&&this.setCollapsed(J)):this.currentPlaylistId!==p.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(J=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==J&&this.setCollapsed(J),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=p.playlistId}};
_.R.handleDrop=function(p){var J=p.currDragItem;p=J.data.playlistSetVideoId;var S=_.ks(J.parentNode.childNodes,J),H=void 0;S>0&&(H=J.parentNode.childNodes[S-1].data.playlistSetVideoId);J=_.PR();if(J.responsePlaylistData&&J.responsePlaylistData.contents){var M=rM3(p,J.responsePlaylistData);J.responsePlaylistData=(0,_.T6.unsafeClone)(J.responsePlaylistData);dW4(J.responsePlaylistData.contents,M,S);J.queueProxy?OSp(J.queueProxy,M,S,p,H):J.playlistProxy&&OSp(J.playlistProxy,M,S,p,H);_.zk(J,_.$w(J,J.response?
J.response.autoplayRenderer:void 0))}};
_.R.handleDarkModeChange=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p)};
_.R.colorPaletteChanged=function(){var p,J=((p=this.data)==null?void 0:p.contents)||[],S;p=_.K(J);for(J=p.next();!J.done;J=p.next()){J=J.value;var H=void 0;if((H=J.playlistPanelVideoRenderer)==null?0:H.selected){p=J.playlistPanelVideoRenderer;H=J=void 0;(S=this.isDarkTheme?(J=p)==null?void 0:J.darkColorPalette:(H=p)==null?void 0:H.lightColorPalette)&&_.eK(this.hostElement,S);break}}this.useColorPalette=!!S};
_.vh.Object.defineProperties(us.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.moveThreeDotsMenuToMainHeader)&&_.z("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var p=_.vO().resolve(_.F9(_.FF)),J;if(((J=this.data)==null?0:J.contents)&&(p==null?0:p.hasAutoplayData())){var S;if(((S=this.playlistLoopStateEntity)==null?void 0:S.state)==="PLAYLIST_LOOP_STATE_ONE"){if(p=this.data.currentIndex,p!==void 0){var H,M;var X=(H=this.data.contents[p])==null?void 0:(M=H.playlistPanelVideoRenderer)==null?void 0:M.title}}else{var Z,n=(Z=_.e(p.getAutoplayEndpoint(),_.lj))==null?void 0:Z.videoId,b,F;X=(b=this.data.contents.find(function(f){var O;
return((O=f.playlistPanelVideoRenderer)==null?void 0:O.videoId)===n}))==null?void 0:(F=b.playlistPanelVideoRenderer)==null?void 0:F.title}return X}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)!=null&&p.nextVideoLabel?this.nextVideoTitle?_.E4(this.data.nextVideoLabel)+":":ys$:""}},
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"&&!_.z("web_mix_long_byline_from_data"))return _.aR(Byr);var J;return(J=this.data)==null?void 0:J.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H=(p=this.data)==null?void 0:(J=p.playlistButtons)==null?void 0:(S=J.menuRenderer)==null?void 0:S.topLevelButtons;if(H)for(p=_.K(H),J=p.next();!J.done;J=p.next())if(J=J.value,J.playlistLoopButtonRenderer)return J.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var p;return!!(this.collapsed&&((p=this.data)==null?0:p.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.z("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
us.prototype.colorPaletteChanged=us.prototype.colorPaletteChanged;us.prototype.onPlaylistLockupNowPlaying=us.prototype.onPlaylistLockupNowPlaying;us.prototype.updateNowPlayingOverlay=us.prototype.updateNowPlayingOverlay;us.prototype.onFullscreenChanged=us.prototype.onFullscreenChanged;us.prototype.onFullBleedPlayerChanged=us.prototype.onFullBleedPlayerChanged;us.prototype.dataChanged=us.prototype.dataChanged;us.prototype.hiddenChanged=us.prototype.hiddenChanged;us.prototype.collapseChanged=us.prototype.collapseChanged;
us.prototype.onRenderStamperFinished=us.prototype.onRenderStamperFinished;us.prototype.onMouseLeave=us.prototype.onMouseLeave;us.prototype.onMouseEnter=us.prototype.onMouseEnter;_.V([_.B(_.wL),_.Y("design:type",Object)],us.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],us.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(uZo.YtPlaylistPanelBehavior),_.Y("design:type",Object)],us.prototype,"ytPlaylistPanelBehavior",void 0);_.V([_.B(_.$N.YtTaskEmitterBehavior),_.Y("design:type",Object)],us.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],us.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],us.prototype,"ytdReduxBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],us.prototype,"actionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],us.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],us.prototype,"autoplayData",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],us.prototype,"withinMiniplayer",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],us.prototype,"minimizePipBreakages",void 0);
_.V([_.N({computed:"setMenuData_(data)"}),_.Y("design:type",Object)],us.prototype,"menuRendererData",void 0);_.V([_.N({computed:"computeOverflowMenuData(data)"}),_.Y("design:type",Object)],us.prototype,"overflowMenuDataTopRow",void 0);_.V([_.N({computed:"computeOverflowMenuData(data)"}),_.Y("design:type",Object)],us.prototype,"overflowMenuData",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],us.prototype,"hideHeaderText",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],us.prototype,"useColorPalette",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.Y("design:type",Boolean)],us.prototype,"collapsible",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],us.prototype,"collapsed",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],us.prototype,"hidden",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.Y("design:type",Boolean)],us.prototype,"hasPlaylistButtons",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.Y("design:type",Boolean)],us.prototype,"hasSeparateSaveButton",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.Y("design:type",Boolean)],us.prototype,"hasToolbar",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.Y("design:type",String)],us.prototype,"playlistType",void 0);_.V([_.N(),_.Y("design:type",Object)],us.prototype,"isHovered",void 0);_.V([_.N({selectorArgs:["playlistLoopStateEntityKey"],selector:_.IO.playlistLoopStateEntitySelector}),_.Y("design:type",Object)],us.prototype,"playlistLoopStateEntity",void 0);_.V([_.N({computed:"computeCanReorder(data)"}),_.Y("design:type",Boolean)],us.prototype,"canReorder",void 0);
_.V([_.N(),_.Y("design:type",Object)],us.prototype,"expandLabel",void 0);_.V([_.N(),_.Y("design:type",Object)],us.prototype,"collapseLabel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],us.prototype,"isFloating",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],us.prototype,"metaPanel",void 0);_.V([_.N({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.Y("design:type",String)],us.prototype,"trailingIcon",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],us.prototype,"isDarkTheme",void 0);_.V([_.N({selector:_.Bq}),_.Y("design:type",Boolean)],us.prototype,"miniplayerIsActive",void 0);_.V([_.N({selector:function(p){return p.watch.playerState}}),
_.Y("design:type",Number)],us.prototype,"playerState",void 0);_.V([_.N({selector:_.sS}),_.Y("design:type",Boolean)],us.prototype,"isFullscreen",void 0);_.V([_.N({selector:_.US}),_.Y("design:type",Boolean)],us.prototype,"isTheaterMode",void 0);_.V([_.N(),_.Y("design:type",Object)],us.prototype,"activeNowPlayingRenderer",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],us.prototype,"moveThreeDotMenuToTopRow",null);
_.V([_.U("data","autoplayData","playlistLoopStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],us.prototype,"nextVideoTitle",null);_.V([_.U("data","nextVideoTitle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],us.prototype,"nextVideoLabel",null);_.V([_.U("collapsed"),_.Y("design:type",String),_.Y("design:paramtypes",[])],us.prototype,"buttonAriaLabel",null);
_.V([_.U("data","playlistId","longBylineText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],us.prototype,"mixLongByLine",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],us.prototype,"playlistLoopStateEntityKey",null);_.V([_.GI("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],us.prototype,"onMouseEnter",null);
_.V([_.GI("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],us.prototype,"onMouseLeave",null);_.V([_.N({reflectToAttribute:!0}),_.U("data","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],us.prototype,"showNextVideoHeader",null);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],us.prototype,"onRenderStamperFinished",null);
_.V([_.bO("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],us.prototype,"collapseChanged",null);_.V([_.bO("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],us.prototype,"hiddenChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],us.prototype,"dataChanged",null);
_.V([_.U("isTheaterMode","isFullscreen"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],us.prototype,"isFullBleedPlayer",null);_.V([_.bO("isTheaterMode","isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],us.prototype,"onFullBleedPlayerChanged",null);_.V([_.bO("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],us.prototype,"onFullscreenChanged",null);
_.V([_.bO("playerState","miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],us.prototype,"updateNowPlayingOverlay",null);_.V([_.GI("yt-playlist-lockup-now-playing-active"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],us.prototype,"onPlaylistLockupNowPlaying",null);
_.V([_.bO("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],us.prototype,"colorPaletteChanged",null);_.V([_.gw({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],us);
_.UGw=_.pI()(us,"ytd-playlist-panel-renderer",function(){if(eTP===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);eTP=p}p=eTP;return p},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.sDr={};
_.sDr.YtConditionalRendererBehavior=[_.x.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(p,J){var S=this,H,M;return _.G(function(X){switch(X.nextAddress){case 1:if(!J)return S.hidden=!0,S.showSpinner=!1,X.return();if((H=p)==null?0:(M=H.visibilityCondition)==null?0:M.mode)switch(p.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return X.jumpTo(5);default:return X.jumpTo(6)}S.showSpinner=
!1;S.hidden=!0;return X.yield(S.shouldShow_(p),4);case 4:S.hidden=!X.yieldResult;X.jumpTo(0);break;case 5:return X.yield(S.shouldShow_(p),8);case 8:S.showSpinner=X.yieldResult;S.hidden=!1;X.jumpTo(0);break;case 6:return S.showSpinner=!1,X.yield(S.shouldShow_(p),9);case 9:S.hidden=!X.yieldResult,_.UK(X)}})},
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=_.IV(this.hostElement,"yt-get-mdx-status");return p.length==1&&p[0].connected},
isLocationPermissionGranted_:function(){var p;return _.G(function(J){return J.nextAddress==1?navigator.permissions?J.yield(navigator.permissions.query({name:"geolocation"}),3):J.jumpTo(2):J.nextAddress!=2?(p=J.yieldResult,J.return(Promise.resolve(p.state==="granted"))):J.return(Promise.resolve(!1))})}}];var gpN=dpX("yt-icon",{callbackProps:["onKeydown"]}),taw=_.z("kevlar_use_wil_icons")?_.d(function(p){var J=p.icon;var S=p.active;var H=p.className;var M=p.style;var X=p.title;var Z=p.size;var n=p.dataSelected;var b=p.dataDisabled;var F=p.role;var f=p.themeOverride;var O=p.animateIcon;var A=p.ariaHidden;var P=p.ariaExpanded;var W=p.ariaLabel;var y=p.tabindex;var t=p.id;var D=p.iconFilter;var k=p.gradientColor;var E=p.onKeydown;var a=function(){var I=J==null?void 0:J(),Z3=null,vg=void 0;I&&(I=vHo(I),
I=FFW(I),I.length&&(Z3=I[1],vg=I[0]));return{iconName:Z3,iconSetName:vg}},q=function(){return f78(a().iconName,S==null?void 0:S(),void 0,Z==null?void 0:Z(),a().iconSetName,_.vO().resolve(_.iC))},w=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:D==null?void 0:D(),iconColor:k==null?void 0:k()}};
return _.m(_.v,{cond:O,then:function(){return _.m(gpN,{icon:J,active:S,className:H,style:M,title:X,dataSelected:n,dataDisabled:b,role:F,themeOverride:f,ariaHidden:A,ariaExpanded:P,ariaLabel:W,tabindex:y,id:t,iconFilter:D,gradientColor:k,onKeydown:E})},
else:function(){return _.m(_.v,{cond:q,then:function(I){return _.m("span",{class:_.XB("ytIconWrapperHost",H),role:F,"aria-label":W,"aria-hidden":A,tabindex:function(){return isNaN(Number(y==null?void 0:y()))?void 0:Number(y==null?void 0:y())},
id:t,style:M,title:X,"on:keydown":_.Kb(function(Z3){return void(E==null?void 0:E(Z3))})},_.m(_.oY,{data:I,
options:w}))}})}})},"lg"):gpN;var hTI=function(p){var J=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];PCs();_.m$("ytglobal.ytUtilActivityCallback_",function(){_.L1(p,"yt-user-activity")});
new fH(function(){return J.JSC$17407_onMouseMove});
document.addEventListener("scroll",function(){return J.onScroll});
window.addEventListener("resize",function(){return J.onResize})},DGI=function(p,J,S){J in p.eventJobIds||(S=_.Qb().addLowPriorityJob(function(){_.OI();
delete p.eventJobIds[J]},S),p.eventJobIds[J]=S)};
hTI.prototype.onScroll=function(p){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):p.target===document&&DGI(this,"scroll",200)};
hTI.prototype.onResize=function(){DGI(this,"resize",200)};
hTI.prototype.JSC$17407_onMouseMove=function(){DGI(this,"mousemove",100)};
_.Q$=function(p){p.scrollEventsToIgnore+=1;p.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){p.scrollEventsToIgnore--},500))};var ku$=function(p){this.element=p;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
ku$.prototype.showFeedbackDialog=function(p,J,S,H){var M=Nyl();if(!M)return!1;var X=zvs();X.productId=M;J&&(X.flow="submit",X.report={description:J});S&&(Nyl()==="59"?X.callback=_.c5(function(){_.YQ("userFeedbackEvent",{});S()}):X.callback=_.c5(S));
X.bucket=H||_.jn("GOOGLE_FEEDBACK_BUCKET","Other");TyN(X);p=dGP(this,"GFEEDBACK",p);try{_.$Pm(X,p)}catch(Z){return _.xv(Z),!1}return!0};
ku$.prototype.showHelpDialog=function(p,J,S){var H=this,M=Nyl();if(!M)return!1;var X={helpCenterPath:"/youtube",productData:dGP(this,"GUIDED_HELP",S)};TyN(X);var Z=zvs();Z.context=p||X.productData.context||"default";Z.defaultHelpArticleId=J;Z.enableSendFeedback=!0;(_.Id("gapi.load")||function(n,b){return b()})("client",function(){try{var n=W$v(M,X);
if(_.z("web_always_load_chat_support")&&!H.chatSupportLoaded)try{n.JSC$10130_loadChatSupport(Z),H.chatSupportLoaded=!0}catch(b){}n.startHelp(Z)}catch(b){_.xv(b)}})};
var Nyl=function(){var p=_.jn("GOOGLE_FEEDBACK_PRODUCT_ID");p||_.xv(Error("gi"));return p},TyN=function(p){p&&(p.locale=_.z("kevlar_help_use_locale")?_.jn("INNERTUBE_CONTEXT_HL","en"):_.jn("HTML_LANG","en"))},dGP=function(p,J,S){var H=p.productData;
delete H.origin;H.device=_.fL();var M;a:{if(M=document.createElement("canvas")){var X=M.getContext("experimental-webgl",{stencil:!0});if(X){var Z=X.getExtension("WEBGL_debug_renderer_info");if(Z){M=X.getParameter(Z.UNMASKED_RENDERER_WEBGL);break a}}if(X=M.getContext("webgl")){M=X.getParameter(X.RENDERER);break a}}M=null}H.gpu=M;H.isSDC=!!_.jn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(M=_.jn("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.T6.extend(H,M);_.AI4(J,H);_.P5w(H);(p=_.L1(p.element,"yt-get-autonav-pause-debug-state"))&&
p.length&&(H.autonav_pause_state=p[0]);p=_.Bs();H.browser_resolution=p.width+"\u00d7"+p.height+"@"+(window.devicePixelRatio||1)+"x";S&&_.T6.extend(H,S);return H};
ku$.prototype.resetProductData=function(){this.productData={}};var usI=function(p){this.feedbackManager=new ku$(p)};
usI.prototype.showFeedbackDialog=function(p,J,S,H){return this.feedbackManager.showFeedbackDialog(p,J,S,H)};
usI.prototype.showHelpDialog=function(p,J,S){return this.feedbackManager.showHelpDialog(p,J,S)};var l4e=function(){this.baseUrl="";this.aTag=document.createElement("a")},jgn=function(p,J,S){S=S===void 0?{}:S;
S.pbj||(S.pbj=1);S=_.Sl4(J,S);p.baseUrl&&S&&!_.ZL(S)[1]&&!_.nQ(S)&&(J=p.baseUrl,iw(J,"/")&&(J=J.slice(0,-1)),_.XX(S,"/")&&(S=S.slice(1)),S=J+"/"+S);ja(p.aTag,_.uv(S||""));return p.aTag.href};
l4e.prototype.fetchData=function(p){return _.bvX(p)};
l4e.prototype.postData=function(p,J){var S={method:"POST"};if(J){for(var H=_.K(Object.keys(J)),M=H.next();!M.done;M=H.next()){M=M.value;var X=J[M];_.Ei(X)&&(J[M]=JSON.stringify(X))}S.postParams=J}return _.bvX(p,S)};
_.wxE=function(p,J,S,H,M){p=jgn(p,J,S);if(!p)throw H=Error("hi"),Object.assign(H,{params:J}),H;return _.bvX(p,M,H)};
l4e.prototype.requestDataForServiceEndpoint=function(p,J){if(_.e(p,_.oks))return this.fetchData("/getAccountSwitcherEndpoint");J=J||{};var S=_.e(p,gYE);S?J.se=S.base64EncodedServiceEndpoint:J.sej=JSON.stringify(p);(S=_.C1())&&_.z("enable_service_ajax_csn")&&(J.csn=S);J.theme=_.kt();_.e(p,zOi)&&_.jn("DELEGATION_CONTEXT")&&(J.delegation_context=JSON.stringify(_.jn("DELEGATION_CONTEXT")));S=null;for(var H in p)if(iw(H,"Endpoint")||iw(H,"Command")){S=H;break}if(!S){var M=Error("ii");Object.assign(M,{params:p});
_.LMi(M,"WARNING");return new _.UI(function(Z,n){n(M)})}H={name:S};
var X;(S=(X=_.e(p,_.X6))==null?void 0:X.signal)&&(H.signal=S);(X=_.ih(window.location.href))&&X.internalcountrycode&&(H.internalcountrycode=X.internalcountrycode);X="/service_ajax";_.z("debug_forward_web_query_parameters")&&(X=_.fOs(X,window.location.search));X=_.KQ(X,H);p.clickTrackingParams&&_.EB(X,{itct:p.clickTrackingParams});return this.postData(X,J)};_.Va$=new _.ni("GFEEDBACK_TOKEN");var qqp;var a4e;var EpU;var Yqe;var ls=function(){var p=_.T.apply(this,arguments)||this;p.compact=!1;p.dismissButtonDisabled=!1;p.shouldRenderReasonAsFormattedString=!_.z("web_player_error_message_reason_as_formatted_string_killswitch");return p};
_.Q(ls,_.T);ls.prototype.computeHasIcon_=function(p){return!!p};
ls.prototype.isSignInIcon_=function(p){return p=="yt-icons:prompted_sign_in"};
ls.prototype.onDismissButtonClick=function(){var p=this,J=this.data.disableOnClick,S,H=(S=this.data.dismissButton)==null?void 0:S.buttonRenderer;J&&!this.dismissButtonDisabled&&H&&setTimeout(function(){p.dismissButtonDisabled=!0},0)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ls.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.sDr.YtConditionalRendererBehavior),_.Y("design:type",Object)],ls.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ls.prototype,"data",void 0);_.V([_.N({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],ls.prototype,"icon_",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.Y("design:type",Boolean)],ls.prototype,"hasIcon_",void 0);_.V([_.N({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.Y("design:type",Boolean)],ls.prototype,"signInIcon_",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ls.prototype,"compact",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ls.prototype,"dismissButtonDisabled",void 0);
_.V([_.N({type:Boolean}),_.Y("design:type",Object)],ls.prototype,"shouldRenderReasonAsFormattedString",void 0);_.V([_.sD({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],ls);
_.l(ls,"yt-player-error-message-renderer",function(){if(Yqe===void 0){var p=document.createElement("template");_.C(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\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" 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    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;EpU===void 0&&(EpU=document.createElement("template"));var H=EpU;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Yqe=p}p=Yqe;return p},{mode:2});var rsN;var jDy;var VZ=function(){return _.T.apply(this,arguments)||this};
_.Q(VZ,_.T);VZ.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
VZ.prototype.computeIcon_=function(p){return p?"yt-icons:"+p.iconType.toLowerCase():"error_outline"};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],VZ.prototype,"data",void 0);_.V([_.N({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],VZ.prototype,"icon_",void 0);_.V([_.sD({is:"yt-player-kav-renderer",disableElementRegistration:!0})],VZ);
_.l(VZ,"yt-player-kav-renderer",function(){if(jDy===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;rsN===void 0&&(rsN=document.createElement("template"));var H=rsN;S.call(J,H.content.cloneNode(!0),p.content.firstChild);jDy=p}p=jDy;return p},{mode:2});var evL=_.YI(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.ci(_.d(function(p){var J=_.nE("div"),S=_.K(_.eQ(0,void 0,"jxh75d")),H=S.next().value,M=S.next().value;S=_.K(_.eQ(null,void 0,"F5Zm8"));var X=S.next().value,Z=S.next().value;_.ad(function(){WSv(J.value,M,Z);J.value.scrollIntoView()});
S=QcW.bind(null,p.data,H);_.fE("resize",function(){var n=X();if(H()===1&&n!==null){var b;(b=window.grecaptcha)==null||b.reset(n)}});
return _.m("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.m("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.m("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var n,b;return(n=p.data().accessibility)==null?void 0:(b=n.accessibilityData)==null?void 0:b.label}),_.m(_.v3,{text:S,
className:_.XB("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.m("div",{el:J,class:"ytwPlayerCaptchaViewModelGridItem"})))},"mg"),"yt-player-captcha-view-model",{props:{data:_.jr}});var C5k=!1;_.wGl=_.d(function(p){var J=p.data;return _.m("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.m(_.v,{cond:function(){return J().icon},
then:function(S){return _.m("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.m(_.a4,{data:S,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.m(_.v,{cond:function(){return J().title},
then:function(S){return _.m("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.m(_.v3,{text:S}))}}),_.m(_.v,{cond:function(){return J().description},
then:function(S){return _.m("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.m(_.v3,{text:S}))}}),_.m(_.AH,{data:function(){return J().primaryButton}},{buttonViewModel:function(S){return _.m(_.D0,{data:S.data,
className:"interstitialViewModelFlexItem"})}}),_.m(_.AH,{data:function(){return J().secondaryButton}},{buttonViewModel:function(S){return _.m(_.D0,{data:S.data,
className:"interstitialViewModelFlexItem"})}}))},"ng");
_.wGl.idomCompat=!0;var xGe=_.d(function(p){var J=p.data;_.Ts();return _.m("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.m("div",{class:"playerInterstitialRendererScrim"},_.m(_.AH,{data:function(){return J().content}},{interstitialViewModel:_.wGl})))},"og");
xGe.idomCompat=!0;_.ci(xGe,"yt-player-interstitial-renderer",{props:{data:_.fD}});var qO=function(){var p=_.T.apply(this,arguments)||this;p.noBackground=!1;p.compact=!1;p.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return p};
_.Q(qO,_.T);qO.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"}}}};
qO.prototype.onUpdatePlayerErrorMessageCommand_=function(p){if(_.e(p,a0p)){var J;if(p=(J=_.e(p,a0p))==null?void 0:J.newPlayerErrorMessageRenderer)this.data=p}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],qO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],qO.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qO.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],qO.prototype,"status",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],qO.prototype,"noBackground",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],qO.prototype,"compact",void 0);_.V([_.sD({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],qO);
var csM=_.pI()(qO,"yt-playability-error-supported-renderers",function(){if(a4e===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;qqp===void 0&&(qqp=document.createElement("template"));var H=qqp;S.call(J,H.content.cloneNode(!0),p.content.firstChild);a4e=p}p=a4e;return p},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var I4I=dpX("ytd-button-renderer");var yIk=void 0,UJW=void 0;var tPt=new ZOq;var Hu=new _.ni("ENTITY_STATE_TOKEN"),ao=new _.ni("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var L7r=function(p){this.store=p;this.tCK=new _.bO8},g13=function(p,J,S){var H,M;
if(!(M=((H=J.playabilityStatus)==null?void 0:H.status)!=="OK")){p=p.store;var X;M=J.offlineState&&((X=J.videoDetails)==null?0:X.videoId)?_.z("enable_pl_r_c_cd")?VgW(p.getState().entities,J.videoDetails.videoId):!!vNL(p.getState().entities,J.videoDetails.videoId):!1}if(M)return!0;M=TD3(J);if(M===1){if(_.z("ab_v_vid_sig")){var Z,n=(Z=J.videoDetails)==null?void 0:Z.videoId;if(!n||!S||n!==S){var b;J=new _.TG("282054944_vid",{iQj:S,yR5:(b=J.videoDetails)==null?void 0:b.videoId});_.jD(J)}}return!0}U_w=
0;var F,f;b=(n=J.auxiliaryUi)==null?void 0:(F=n.messageRenderers)==null?void 0:(f=F.bkaEnforcementMessageViewModel)==null?void 0:f.displayType;if(M!==3&&(b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;b={reason:_.I5(_.Kl("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.z("ks_something_wrong_learn_more")?xms("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.I5(_.Kl("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:_.I5("282054944")};pZN(J,{playerErrorMessageRenderer:b});return!1},tu3=function(p,J){if(rYk(J)){_.Zc(1,!0);
var S=(S=rYk(J))&&_.BDX()?S:void 0;S?(pZN(J,{enforcementMessageViewModel:S}),p.tCK.increment("IN_PLAYER"),_.Zc(5)):(p.tCK.increment("SKIP_DISPLAY"),_.Zc(2))}},pZN=function(p,J){p.playabilityStatus=Object.assign({},p.playabilityStatus,{status:"ERROR",
errorScreen:J});p.videoDetails=void 0};
L7r.prototype.handleResponse=function(p,J){if(p.playabilityStatus){var S,H,M,X=(J==null?void 0:(S=J.innerTubeRequest)==null?void 0:S.videoId)||(J==null?void 0:(H=J.innerTubeRequest)==null?void 0:(M=H.playerRequest)==null?void 0:M.videoId);g13(this,p,X)&&tu3(this,p)}};
L7r[fQ]=[Hu];var U5g=new _.ni("ADBLOCK_DETECTION_SERVICE_TOKEN");var qB=function(p){this.lkc=p};
qB.prototype.bindInnertubeChallengeFetcher=function(p){this.lkc.bicf(p)};
qB.prototype.registerChallengeFetchedCallback=function(p){this.lkc.bcr(p)};
qB.prototype.getLatestChallengeResponse=function(){return this.lkc.blc()};var Ju$;Ju$=_.YI(["https://static.doubleclick.net/instream/ad_status.js"]);_.SKw=_.fA(Ju$);var i_f;_.EU=function(p,J,S){var H=this;this.network=p;this.options=J;this.networkStatusManager=S;this.z0=null;if(J.useBotguardEverywhere){var M=new _.iy;this.z0=M.promise;_.Hg.ytAtRC&&_.oA(_.wg,function(){var X,Z;return _.G(function(n){if(n.nextAddress==1){if(!_.Hg.ytAtRC)return n.return();X=H_I(null);return n.yield(H.aP(X),2)}Z=n.yieldResult;_.Hg.ytAtRC&&_.Hg.ytAtRC(JSON.stringify(Z));_.UK(n)})});
qct().then(function(X){var Z,n,b,F;return _.G(function(f){if(f.nextAddress==1)return X.bindInnertubeChallengeFetcher(function(O){return H.aP(H_I(O))}),f.yield(aJi(),2);
Z=f.yieldResult;n=X.getLatestChallengeResponse();b=n.challenge;if(!b)throw Error("ji");F={challenge:b,zG:l6(b),vm:Z,bgChallenge:new d_};M.resolve(F);X.registerChallengeFetchedCallback(function(O){O=O.challenge;if(!O)throw Error("ki");O={challenge:O,zG:l6(O),vm:Z,bgChallenge:new d_};H.z0=Promise.resolve(O)});
_.UK(f)})})}else J.preload&&M0l(this,new Promise(function(X){_.uS(_.wg,function(){X(XZ$(H))},0)}))};
i_f=function(p){var J={preload:!0,useBotguardEverywhere:!0},S=!1;if(typeof J==="boolean")var H={preload:J};else typeof J==="undefined"?H={preload:!0}:(H=J,S=!!J.hPL);J=S?void 0:new _.RJ;_.EU.instance=new _.EU(p,H,J);return _.EU.instance};
_.EU.prototype.zJw=function(){var p=this;return _.G(function(J){return J.nextAddress==1?J.yield(Promise.race([p.z0,null]),2):J.return(!!J.yieldResult)})};
_.EU.prototype.yZ3=function(p,J,S){var H=this,M,X,Z;return _.G(function(n){H.z0===null&&M0l(H,XZ$(H));M=!1;X={};Z=function(){var b,F,f;return _.G(function(O){switch(O.nextAddress){case 1:return O.yield(H.z0,2);case 2:b=O.yieldResult;X.challenge=b.challenge;if(!b.vm){"c1a"in b.zG&&(X.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");O.jumpTo(3);break}F=Object.assign({},{c:b.challenge,e:p},J);_.oI(O,4);M=!0;return O.yield(b.vm.snapshot({jr:F}),6);case 6:(f=O.yieldResult)?X.webResponse=f:X.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.X$(O,3);break;case 4:_.BZ(O),X.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(p==="ENGAGEMENT_TYPE_PLAYBACK"){var A=b.zG,P={};if(A.c6a){var W=Number(_.jn("DCLKSTAT",0));P.reportingStatus=String(Number(A.c)^(isNaN(W)?0:W))}A.c6b&&(P.broadSpectrumDetectionResult=String(Number(A.c)^Number(_.jn("CATSTAT",0))));X.adblockReporting=P}return O.return(X)}})};
return n.return(Promise.race([Z(),RjI(S,function(){var b=Object.assign({},X);M&&(b.error="ATTESTATION_ERROR_VM_TIMEOUT");return b})]))})};
var H_I=function(p){var J={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};p&&(J.interpreterHash=p);return J},XZ$=function(p,J){J=J===void 0?0:J;
var S,H,M,X,Z,n,b,F,f,O,A,P;return _.G(function(W){switch(W.nextAddress){case 1:S=H_I(mV8().lWQ);if(_.z("att_fet_ks"))return _.oI(W,7),W.yield(p.aP(S),9);_.oI(W,4);return W.yield(KCl(p,S),6);case 6:Z=W.yieldResult;M=Z.amk;X=Z.jwL;H=Z;_.X$(W,3);break;case 4:return _.BZ(W),_.xQ(Error("li`"+J)),Z_w(p,864E5),W.return({challenge:"",zG:{},vm:void 0,bgChallenge:void 0});case 9:H=W.yieldResult;if(!H)throw Error("mi");if(!H.challenge)throw Error("ni");M=H.challenge;X=l6(M);if("c1a"in X&&(!H.bgChallenge||!H.bgChallenge.program))throw Error("oi");
_.X$(W,3);break;case 7:n=_.BZ(W);_.xQ(n);J++;if(J>=5)return _.xQ(Error("li`"+J)),Z_w(p,864E5),W.return({challenge:"",zG:{},vm:void 0,bgChallenge:void 0});b=1E3*Math.pow(2,J-1)+Math.random()*1E3;return W.return(new Promise(function(y){_.uS(_.wg,function(){y(XZ$(p,J))},b)}));
case 3:F=VPt(X);Z_w(p,F*1E3);f=void 0;if(!("c1a"in X&&H.bgChallenge)){W.jumpTo(10);break}O=l9W(H.bgChallenge);_.oI(W,11);return W.yield(vaU(mV8(),O),13);case 13:_.X$(W,12);break;case 11:return A=_.BZ(W),_.xQ(A),W.return({challenge:M,zG:X,vm:f,bgChallenge:O});case 12:return _.oI(W,14),f=new _.En({challenge:O,kwh:{yB:"aGIf"}}),W.yield(f.xMH,16);case 16:_.X$(W,10);break;case 14:P=_.BZ(W),_.xQ(P),f=void 0;case 10:return W.return({challenge:M,zG:X,vm:f,bgChallenge:O})}})},nFI=function(p,J){var S;
return _.G(function(H){if(H.nextAddress==1)return V8(2),_.oI(H,2),H.yield(p.network.aP(J),4);if(H.nextAddress!=2)return(S=H.yieldResult)?S.challenge&&!S.bgChallenge?V8(1):V8(4):V8(3),H.return(S);_.BZ(H);V8(3);return H.return(void 0)})};
_.EU.prototype.aP=function(p){var J=this,S;return _.G(function(H){S=J.networkStatusManager;if(!S||S.isNetworkAvailable())return H.return(nFI(J,p));_.yf("att_pna",void 0,"attestation_challenge_fetch");return H.return(new Promise(function(M){S.listenOnce("publicytnetworkstatus-online",function(){nFI(J,p).then(M)})}))})};
var GHP=function(p){if(!p)throw Error("mi");if(!p.challenge)throw Error("ni");var J=p.challenge,S=l6(J);if("c1a"in S&&(!p.bgChallenge||!p.bgChallenge.program))throw Error("oi");return Object.assign({},p,{amk:J,jwL:S})},KCl=function(p,J){var S,H,M,X,Z;
return _.G(function(n){switch(n.nextAddress){case 1:S=void 0,H=0,M={};case 2:if(!(H<5)){n.jumpTo(4);break}if(!(H>0)){n.jumpTo(5);break}M.nZK=1E3*Math.pow(2,H-1)+Math.random()*1E3;return n.yield(new Promise(function(b){return function(F){_.uS(_.wg,function(){F(void 0)},b.nZK)}}(M)),5);
case 5:return _.oI(n,7),n.yield(p.aP(J),9);case 9:return X=n.yieldResult,n.return(GHP(X));case 7:S=Z=_.BZ(n),Z instanceof Error&&_.xQ(Z);case 8:H++;M={nZK:void 0};n.jumpTo(2);break;case 4:throw S;}})},M0l=function(p,J){p.z0=J},b_w=function(p){var J,S,H;
return _.G(function(M){if(M.nextAddress==1)return M.yield(Promise.race([p.z0,null]),2);J=M.yieldResult;var X=XZ$(p);p.z0=X;(S=J)==null||(H=S.vm)==null||H.dispose();_.UK(M)})},Z_w=function(p,J){var S=Date.now()+J,H=function(){var M;
return _.G(function(X){M=S-Date.now();return M<1E3?X.yield(b_w(p),0):(_.uS(_.wg,H,Math.min(M,6E4)),X.jumpTo(0))})};
H()},RjI=function(p,J){return new Promise(function(S){_.uS(_.wg,function(){S(J())},p)})};var mDP=function(){};
mDP.prototype.processContext=function(p){var J=_.EU.instance;if(!J)return _.$E();var S=wet(p);return S?new zZ(J.yZ3(S,Yc3(p),500).then(function(H){var M;(p==null?0:(M=p.innerTubeRequest)==null?0:M.context)||(p.innerTubeRequest.context={});M=p.innerTubeRequest.context;M.request||(M.request={});M.request.attestationResponseData=H})):_.$E()};var FCj=function(p){this.innertubeTransportService=p};
FCj.prototype.aP=function(p){_.yf("att_fsr",void 0,"attestation_challenge_fetch");return _.mX(this.innertubeTransportService,p,_.jx(_.cOp)).then(function(J){_.yf("att_frr",void 0,"attestation_challenge_fetch");return J})};_.vFU=function(p){this.innertubeTransportService=p};var frw=new _.ni("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var O_M=function(){},P0P=function(p,J,S,H,M){var X=_.jn("YPC_MB_URL");
_.hev(X).then(function(){AuI(X,p,J,S,H,M)})},AuI=function(p,J,S,H,M,X){try{var Z=_.w_.payments.business.integration,n=_.w_.payments.business.integration.Style.create().withMaterialDesignStyle(),b=Z.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.z("enable_window_constrained_buy_flow_dialog")&&(b=b.usingPopupStyle("windowConstrained"));X&&(b=b.usingCloseCallback(X));var F=S?S:_.jn("YPC_GB_LANGUAGE"),f=_.jn("SESSION_INDEX");Z.bootstrap.fromPaymentsUrl(p);Z.bootstrap.asMashupMode(b).usingGaiaIndex(f).usingLocale(F).usingStyle(n).usingDefaultActivityStatusChangeHandler().inStandaloneContext(Z.standaloneContextAuthId.forGaia()).purchaseManager(J,function(O){H&&H(O)}).load(void 0,M)}catch(O){throw M&&M(O),_.jD(O),O;
}};var zjl=new _.ni("PURCHASE_MANAGER_TOKEN");var $Dl=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(J){p.videos=J},
getRecommendedVideos:function(){return p.recommendedVideos},
setRecommendedVideos:function(J){p.recommendedVideos=J}}};
$Dl.prototype.addVideos=function(p){p&&(this.videos=p.filter(function(J){return!!_.cIX(J)}).map(function(J){var S=_.cIX(J);
a:{var H;if(J.playlistVideoRenderer&&((H=J.playlistVideoRenderer)==null?0:H.voteSortTiebreaker))var M=J.playlistVideoRenderer.voteSortTiebreaker;else{if(_.e(J,EX)){var X;if(H=(M=_.e(J,EX))==null?void 0:(X=M.playlistItemData)==null?void 0:X.voteSortTiebreaker){M=H;break a}}M=""}}return{itemId:S,videoId:_.pTX(J),voteCount:_.Jgi(J),voteSortTiebreaker:M}}),this.continuationsPresent=!!_.e(p[p.length-1],_.js))};
var oFp=function(p,J){return p.videos.findIndex(function(S){return S.itemId===J})},ejN=function(p,J){return p.recommendedVideos.findIndex(function(S){return S.itemId===J})},WCl=function(p){p={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:p}}}}};_.vO().resolve(_.Ov).resolveCommand(p)};var QII=function(){$Dl.apply(this,arguments)};
_.Q(QII,$Dl);
var wM8=function(p,J,S,H){if(!p.parentElem)throw Error("ti");var M=oFp(p,J);M===-1&&(M=ejN(p,J),M=M!==-1?M+p.videos.length:-1);if(M===-1)throw Error("ui");var X=M>=p.videos.length?p.recommendedVideos[M-p.videos.length]:p.videos[M];X.voteCount=S;X.voteSortTiebreaker=Date.now().toString();M>=p.videos.length?p.recommendedVideos.splice(M-p.videos.length,1):p.videos.splice(M,1);var Z=p.videos;for(var n=0,b=Z.length-1;n<=b;){var F=Math.floor((n+b)/2);if(Z[F].voteCount<X.voteCount)b=F-1;else if(Z[F].voteCount>X.voteCount)n=
F+1;else{a:{var f=X.voteSortTiebreaker;var O=Z[F].voteSortTiebreaker;if(f.length!==O.length)f=f.length>O.length;else{for(var A=0;A<f.length;A++){var P=f.charCodeAt(A),W=O.charCodeAt(A);if(P>W){f=!0;break a}if(P<W)break}f=!1}}f?b=F-1:n=F+1}}Z=n;if(Z===-1)throw Error("vi");p.videos.splice(Z,0,X);M!==Z&&C0$(p,M,Z,J,S,H)},C0$=function(p,J,S,H,M,X){var Z,n=(Z=p.parentElem)==null?void 0:Z.children,b=Math.min(J,S),F=Math.max(J,S);
if(n)for(Z=b;Z<=F;Z++)n[Z].style.viewTransitionName="item-"+String(Z);document.startViewTransition(function(){if(p.parentElem){var f=p.parentElem.children;if(!(!f||J<0||J>=f.length||S<0||S>=f.length)){var O=f[J];if(O){O.remove();p.showRefreshPill=S>=p.videos.length-1&&p.continuationsPresent;if(!p.showRefreshPill){f=f[S]||null;var A;(A=p.parentElem)==null||A.insertBefore(O,f)}_.cf(p.parentElem,"yt-update-video-data-voting-animation",{toIdx:S,itemId:H,newVoteCount:M,voteStatus:X,hideItem:p.showRefreshPill})}}}}).finished.then(function(){if(n)for(var f=
b;f<=F;f++)n[f].style.viewTransitionName="";
if(p.showRefreshPill)WCl(_.Kl("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var O;if(O=f=(O=p.parentElem)==null?void 0:O.children[S])O=f.getBoundingClientRect(),f=O.bottom,O=!(O.top>=0&&f<=p.clientHeight);O&&(O=_.ZO(J>S?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(J-S)),WCl(O))}})};var UDy=function(p,J){var S=this;p?this.innertubeTransportServicePromise=Promise.resolve(p):J&&(this.innertubeTransportServicePromise=J(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new UU(3E3,function(H){return yur(S,H)},0);
this.validateMiniAppVideoIdRateLimiter=new UU(3E3,function(H){return BWe(S,H)},1)},it$=function(p,J){p.JSC$17521_miniAppId=J;
p.reportMiniAppValueRateLimiter=new UU(3E3,function(S){return yur(p,S)},0);
p.validateMiniAppVideoIdRateLimiter=new UU(3E3,function(S){return BWe(p,S)},1)},K7j=function(p,J){var S;
return _.G(function(H){if(H.nextAddress==1)return H.yield(p.reportMiniAppValueRateLimiter.call(J),2);S=H.yieldResult;return H.return([S,J])})},yur=function(p,J){var S,H,M,X,Z,n,b;
return _.G(function(F){switch(F.nextAddress){case 1:return F.yield(p.innertubeTransportServicePromise,2);case 2:return S=F.yieldResult,H=_.jx(Hf8),M=Date.now(),X={externalPostId:p.JSC$17521_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(M/1E3),nanos:Math.round(M%1E3*1E6)},intValue:""+J}},_.oI(F,3),F.yield(_.mX(S,X,H),5);case 5:Z=F.yieldResult;_.X$(F,4);break;case 3:throw n=_.BZ(F),n;case 4:if(Z){if("error"in Z&&Z.error)throw Z.error;if(Z.errorMetadata)throw Error("wi`"+
Z.errorMetadata.status);if(b=Z.userStatResult)return F.return(b);throw Error("xi");}throw Error("yi");}})},npy=function(p){var J,S,H,M,X;
_.G(function(Z){switch(Z.nextAddress){case 1:return Z.yield(p.innertubeTransportServicePromise,2);case 2:return J=Z.yieldResult,S=_.jx(Hf8),H={externalPostId:p.JSC$17521_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.oI(Z,3),Z.yield(_.mX(J,H,S),5);case 5:M=Z.yieldResult;_.X$(Z,4);break;case 3:throw X=_.BZ(Z),X;case 4:if(M==null)throw Error("yi");if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("wi`"+M.errorMetadata.status);_.UK(Z)}})};
UDy.prototype.flush=function(){var p=this;return _.G(function(J){return J.nextAddress==1?J.yield(p.reportMiniAppValueRateLimiter.flush(),2):J.yield(p.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var Ztp=function(p,J){return _.G(function(S){return S.nextAddress==1?S.yield(p.validateMiniAppVideoIdRateLimiter.call(J),2):S.return(S.yieldResult)})},BWe=function(p,J){var S,H,M,X,Z,n;
return _.G(function(b){switch(b.nextAddress){case 1:return b.yield(p.innertubeTransportServicePromise,2);case 2:return S=b.yieldResult,H=_.jx(wC8),M={videoId:J},_.oI(b,3),b.yield(_.mX(S,M,H),5);case 5:X=b.yieldResult;_.X$(b,4);break;case 3:throw Z=_.BZ(b),Z;case 4:if(X){if("error"in X&&X.error)throw X.error;if(X.errorMetadata)throw Error("wi`"+X.errorMetadata.status);if(n=X.playabilityStatus)return b.return(n.status);throw Error("zi");}throw Error("yi");}})};
UDy[fQ]=[_.F9(_.Ac),_.F9(tc8)];var sIU=function(){this.clientData=new Map};
sIU.prototype.getData=function(p){return this.clientData.get(p)};var gFl=function(p){this.store=p};
gFl.prototype.handleResponse=function(p){(p=_.e(p.frameworkUpdates,ES))&&_.bo(p,this.store)};
gFl[fQ]=[_.XN];var t0I=new _.ni("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var hjP,DDp,kHM;_.Y6=new _.ni("FLOW_STATE_MANAGER_TOKEN");hjP=function(){this.flowStates=new Map};
DDp=function(p,J){p=_.K(p.flowStates.values());for(var S=p.next();!S.done;S=p.next())if(S=S.value,S.flowRenderer.targetId===J)return S};
kHM=function(p,J){var S,H=((S=p.flowRenderer.steps)!=null?S:[]).filter(function(M){return!J.includes(_.e(M,_.wB).stepId)});
p.flowRenderer.steps=H};var NWP=function(p){this.JSC$17545_flowStateManager=p};
_.Q(NWP,Oh);NWP.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n;return _.G(function(b){S=_.e(p,R3o);M=(H=S)==null?void 0:H.stepIds;Z=(X=S)==null?void 0:X.targetId;if(!M||!Z)return b.return();n=DDp(J.JSC$17545_flowStateManager,Z);if(!n)return b.return();kHM(n,M);_.UK(b)})};
var r3=function(){NWP.apply(this,arguments)};
_.Q(r3,NWP);r3[fQ]=[_.Y6];var TWy=function(p,J){this.JSC$17551_reduxStore=p;this.JSC$17551_flowStateManager=J};
_.Q(TWy,Oh);
TWy.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b,F,f,O,A,P,W;return _.G(function(y){S=_.e(p,_.KA4);H=S.stepId;M=S.targetId;X=DDp(J.JSC$17551_flowStateManager,M);n=(Z=X)==null?void 0:Z.flowRenderer;b=n.flowStateEntityKey;F=_.Y8(J.JSC$17551_reduxStore.getState(),b);if(!F)return y.return();f=F.currentStepId;P=(A=(O=F)==null?void 0:O.stepIdStack)!=null?A:[];W=f===P[P.length-1]?H:f;J.JSC$17551_reduxStore.dispatch(_.BY("flowStateEntity",b,{currentStepId:H,stepIdStack:[W]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.UK(y)})};
var jR=function(){TWy.apply(this,arguments)};
_.Q(jR,TWy);jR[fQ]=[_.XN,_.Y6];var dDf=function(p,J,S){this.JSC$17558_reduxStore=p;this.JSC$17558_flowStateManager=J;this.JSC$17558_commandHandler=S};
_.Q(dDf,Oh);
dDf.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O,A,P,W,y;return _.G(function(t){H=_.e(p,_.Z7L);M=H.targetId;X=DDp(S.JSC$17558_flowStateManager,M);n=(Z=X)==null?void 0:Z.flowRenderer;b=n.flowStateEntityKey;F=_.Y8(S.JSC$17558_reduxStore.getState(),b);A=[].concat(_.dW((O=(f=F)==null?void 0:f.stepIdStack)!=null?O:[]));P=A.pop();((W=F)==null?void 0:W.currentStepId)===P&&(P=A[A.length-1]);if(!P)return(y=H.onFirstStepCommand)&&S.JSC$17558_commandHandler.resolveCommand(y,J),t.return();
S.JSC$17558_reduxStore.dispatch(_.BY("flowStateEntity",b,{currentStepId:P,stepIdStack:A}));_.UK(t)})};
var w3=function(){dDf.apply(this,arguments)};
_.Q(w3,dDf);w3[fQ]=[_.XN,_.Y6,_.Ov];var ulw=function(p,J){this.innertubeTransportService=p;this.JSC$17563_commandHandler=J};
_.Q(ulw,Oh);ulw.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n;return _.G(function(b){if(b.nextAddress==1){H=_.e(p,nid);if(!H)return b.return();_.oI(b,2);return b.yield(_.VI(S.innertubeTransportService,p),4)}if(b.nextAddress!=2){M=b.yieldResult;if(!M)return b.return();(X=M.updateFlowCommand)&&S.JSC$17563_commandHandler.resolveCommand(X,J);return _.X$(b,0)}_.BZ(b);(n=(Z=H)==null?void 0:Z.onFailureCommand)&&S.JSC$17563_commandHandler.resolveCommand(n,J);_.UK(b)})};
var x6=function(){ulw.apply(this,arguments)};
_.Q(x6,ulw);x6[fQ]=[_.Ac,_.Ov];var lry=function(p,J){this.JSC$17569_flowStateManager=p;this.JSC$17569_commandHandler=J};
_.Q(lry,Oh);
lry.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z;return _.G(function(n){H=_.e(p,_.b74);M=H.targetId;X=DDp(S.JSC$17569_flowStateManager,M);if(!X)return n.return(Promise.resolve());var b=X,F=(Z=H.steps)!=null?Z:[],f,O=(f=b.flowRenderer.steps)!=null?f:[];F=[].concat(_.dW(O),_.dW(F));b.flowRenderer.steps=F;H.flowContinuationCommand&&(X.flowRenderer.flowContinuationCommand=H.flowContinuationCommand);H.entityUpdateCommand&&S.JSC$17569_commandHandler.resolveCommand(H.entityUpdateCommand,J);
return n.return(Promise.resolve())})};
var cK=function(){lry.apply(this,arguments)};
_.Q(cK,lry);cK[fQ]=[_.Y6,_.Ov];var V0I={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]],google_messages:[[0,1,192]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var qKN=new _.ni("ICON_SET_TOKEN"),ar$=new _.ni("ICON_URL_PROVIDER_TOKEN"),EFf=new _.ni("PREFETCH_ICONS_TOKEN"),YKe=new _.ni("ICON_MAP_FN_TOKEN");var Io={},ruj=(Io.ACCESS_TIME="clock",Io.ACCOUNT_BOX=_.jn("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",Io.ACCOUNT_BOX_CAIRO="person_account_cairo",Io.ACCOUNT_CIRCLE="person_circle",Io.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Io.ACCOUNT_LINKED="account_link_success",Io.ACCOUNT_UNLINKED="account_link",Io.ADD_FRIEND="people",Io.ADD_MODERATOR="shield_add",Io.ADD_TO_LIBRARY="bookmark",Io.ADD_TO_PLAYLIST="add",Io.ADD_TO_QUEUE_TAIL="list_queue",Io.ADD_TO_REMOTE_QUEUE="list_music",
Io.ADD_TO_WATCH_LATER="clock",Io.ADD_VIDEO_LINK="film_strip_add",Io.ALERT_WARN_RED="alert_triangle",Io.ARROW_BACK="arrow_left",Io.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Io.ARROW_DROP_DOWN="chevron_down",Io.ARROW_DROP_UP="chevron_up",Io.ARROW_FORWARD="arrow_right",Io.ARTIST="person_music",Io.AUDIOTRACK="audio",Io.AUTO_AWESOME="sparkle",Io.AVATAR_ANONYMOUS="person_circle",Io.AVATAR_LOGGED_OUT="person_circle",Io.BACK="arrow_left",Io.BAR_CHART="bar_graph",Io.BLOCK="slash_circle_left",
Io.BLOCK_USER="slash_circle_left",Io.BOOKMARK_BORDER="bookmark",Io.BREAKING_NEWS_ALT_1="article_alert",Io.BROADCAST_CAIRO="podcast_cairo",Io.BUG_REPORT="bug",Io.CAMERA_ALT="camera",Io.CAMPAIGN="megaphone",Io.CANCEL="x_circle",Io.CAPTIONS="closed_caption",Io.CAST_OUTLINE="chromecast",Io.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Io.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Io.CHAT="message_bubble_left",Io.CHAT_BUBBLE="message_bubble_empty",Io.CHAT_SPARK="spark_message_bubble_left",Io.CHECK_BOX_OUTLINE_BLANK=
"box_empty",Io.CHECK_CIRCLE_OUTLINE="check_circle",Io.CHECK_CIRCLE_THICK="check_circle",Io.CLARIFY="article_clarify",Io.CLOSED_CAPTION_SELECTED="closed_caption",Io.CLOSE="x_mark",Io.CLOUD_UPLOAD="cloud_arrow_up",Io.COLLAPSE="chevron_up",Io.COLLAPSE_CAIRO="chevron_up_cairo",Io.COLLECTION="layers",Io.COLOR_LENS="palette",Io.COMMENT="message_bubble_right",Io.CONSENT_SHIELD="person_shield",Io.CONTENT_CUT="scissors",Io.CONTENT_CUT_CAIRO="scissors_cairo",Io.COURSE=_.z("web_enable_course_icon_update")?"creator_academy":
"lightbulb",Io.COURSE_CAIRO=_.z("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",Io.CREATION_LIVE="radar_live",Io.CREATION_POST="box_pencil",Io.CREATION_UPLOAD="my_videos",Io.CREATION_UPLOAD_RED="upload",Io.CREATOR_METADATA_MONETIZATION="dollar_sign",Io.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Io.CREATOR_STUDIO="youtube_studio",Io.DASHBOARD="grid_asymmetrical",Io.DELETE="trash_can",Io.DELETE_SWEEP="trash_can",Io.DESKTOP="laptop",Io.DISLIKE="thumb_down",Io.DISLIKE_SELECTED=
"thumb_down",Io.DISMISSAL="x_mark",Io.DISMISS_QUEUE="list_remove",Io.DONE_ALL="check_double",Io.DOWN_ARROW="arrow_down",Io.DO_NOT_DISTURB="slash_circle_left",Io.DRAFT="paper_corner_folded",Io.DRAG_HANDLE="bars_2",Io.EDIT="pencil",Io.EMOJI="face_very_happy",Io.EMOJI_FLAGS="flag",Io.EMOJI_OBJECTS="lightbulb",Io.EMOJI_PEOPLE="face_very_happy",Io.EMOJI_RECENT="clock",Io.EMPTY_HEART="heart",Io.EMPTY_LIKE="thumb_up",Io.ERROR_BLACK="alert_circle",Io.ERROR_OUTLINE="alert_circle",Io.EXIT_APP="arrow_in",Io.EXIT_TO_APP=
"arrow_in",Io.EXPAND="chevron_down",Io.EXPAND_ALL="chevron_expand",Io.EXPAND_CAIRO="chevron_down_cairo",Io.EXPAND_LESS="chevron_up",Io.EXPAND_MORE="chevron_down",Io.EXPLORE="compass",Io.EXPLORE_DESTINATION="compass",Io.EXTERNAL_LINK="open_new",Io.FAB_UPLOAD="upload",Io.FACE_HAPPY_OUTLINE="face_happy",Io.FACT_CHECK="article_check",Io.FASHION_LOGO="fashion",Io.FASHION_LOGO_CAIRO="fashion_cairo",Io.FAVORITE="heart",Io.FEEDBACK="message_bubble_alert",Io.FEEDBACK_CAIRO="message_bubble_alert_cairo",Io.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Io.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Io.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Io.FILTER="menu_filter",Io.FIRST_PAGE="chevron_first",Io.FLAG="flag",Io.FULL_HEART="heart",Io.GAME_CONSOLE_DPAD="game_console_dpad",Io.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Io.GAMING_LOGO="gaming",Io.GAMING_LOGO_CAIRO="gaming_cairo",Io.GO_TO_PAGE="arrow_right",Io.GROUPS="people_group",Io.HAPPY="face_happy",Io.HEALTH_AND_SAFETY="shield_plus",Io.HELP="question_circle",Io.HELP_CAIRO=
"question_circle_cairo",Io.HELP_OUTLINE="question_circle",Io.HIDE="slash_circle_left",Io.IMAGE="image",Io.INFINITY_ICON="infinity",Io.INFO="info_circle",Io.INFO_OUTLINE="info_circle",Io.INSERT_CHART="bar_graph_box_vertical",Io.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Io.INSERT_PHOTO="image",Io.KEEP="pin",Io.KEEP_OFF="pin_off",Io.KEYBOARD="keyboard",Io.KEYBOARD_ARROW_DOWN="chevron_down",Io.KEYBOARD_ARROW_UP="chevron_up",Io.KIDS_BLOCK="slash_circle_left",Io.LANGUAGE="globe",Io.LAST_PAGE="chevron_last",
Io.LAUNCH="open_new",Io.LEARNING="lightbulb",Io.LEARNING_CAIRO="lightbulb_cairo",Io.LIBRARY_ADD=XTs("library_add"),Io.LIBRARY_OUTLINE="library",Io.LIBRARY_REMOVE=XTs(),Io.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Io.LIKES_PLAYLIST="thumb_up",Io.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Io.LIKE="thumb_up",Io.LIKE_SELECTED="thumb_up",Io.LIVE="radar_live",Io.LIVE_CAIRO="radar_live_cairo",Io.LIVE_UNLISTED="link",Io.LOCATION_ON="location_point",Io.LOCATION_PIN="location_point",Io.LOOP="arrow_repeat",Io.LOOP_ACTIVE=
"arrow_repeat",Io.LOOP_ONE="arrow_repeat_1",Io.LOOP_ONE_ACTIVE="arrow_repeat_1",Io.MEH="face_meh",Io.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Io.MESSAGE="message_bubble_left",Io.MICROPHONE_ON="mic",Io.MIX="youtube_mix",Io.MONETIZATION_ON="dollar_sign_circle",Io.MONEY_FILL="dollar_sign_container",Io.MONEY_FILL_JPY="yen_sign_container",Io.MONEY_HEART="dollar_sign_heart",Io.MORE_HORIZ="overflow_horizontal",Io.MORE_VERT="overflow_vertical",Io.MUSIC="audio",Io.MUSIC_CAIRO="audio_cairo",Io.MUSIC_NOTE_SYMBOL=
"music",Io.MUSIC_SHUFFLE="arrow_shuffle",Io.MY_CHANNEL="person_circle",Io.MY_LOCATION="location_point",Io.NEWS_STORY="news",Io.NEXT="chevron_right",Io.NOTIFICATIONS="bell",Io.NOTIFICATIONS_ACTIVE="bell_on",Io.NOTIFICATIONS_CAIRO="bell_cairo",Io.NOTIFICATIONS_DONE_CHECKMARK="check",Io.NOTIFICATIONS_INBOX="bell",Io.NOTIFICATIONS_NONE="bell",Io.NOTIFICATIONS_OFF="bell_off",Io.NOT_INTERESTED="slash_circle_left",Io.OFFICIAL_ARTIST_BADGE="audio",Io.OFFLINE_CLOUD="cloud_off",Io.OFFLINE_DOWNLOAD="download",
Io.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Io.OFFLINE_PAUSE="pause",Io.OPEN_IN_NEW="open_new",Io.OUTLINE_ADJUST="adjust",Io.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Io.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Io.OUTLINE_BAG="bag",Io.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Io.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Io.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Io.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Io.PAID="dollar_sign",Io.PAUSE_OUTLINED="pause",Io.PAYMENT=
"credit_card",Io.PERSON_RADAR_FILLED="person_radar",Io.PHONE_DOWNLOAD="mobile_download",Io.PLAYABLES_LOGO="tic_tac_toe",Io.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Io.PLAYLISTS="list_play_arrow",Io.PLAYLISTS_CAIRO="list_play_arrow_cairo",Io.PLAYLIST_ADD=XTs("list_add"),Io.PLAYLIST_ADD_CHECK=XTs("list_check"),Io.PLAYLIST_PLAY="list_play_arrow",Io.PLAY_ALL="play_arrow",Io.PLAY_CIRCLE="play_arrow_circle",Io.PLAY_OUTLINED="play_arrow_circle",Io.PRIVACY_INFO="shield",Io.PRIVACY_PRIVATE="lock",Io.PRIVACY_PUBLIC=
"earth",Io.PRIVACY_UNLISTED="link",Io.PROMOTE="megaphone",Io.PURCHASES="price_tag",Io.PURCHASE_SUPER_CHAT="super_chat",Io.PURCHASE_SUPER_STICKER="super_sticker",Io.QUESTION_ANSWER="message_bubble_question",Io.QUEUE_PLAY_LAST="list_queue_last",Io.QUEUE_PLAY_NEXT="list_play_arrow",Io.REMIX_FILLED="youtube_shorts_remix",Io.REMOVE="bar_circle",Io.REMOVE_CIRCLE="bar_circle",Io.REMOVE_CIRCLE_OUTLINE="bar_circle",Io.REMOVE_DONE="check_double_off",Io.REMOVE_FROM_HISTORY="bar_circle",Io.REMOVE_FROM_PLAYLIST=
"bar_circle",Io.REMOVE_MODERATOR="shield_off",Io.REPLAY="arrow_circle",Io.REPLAY_10="skip_back_10",Io.REPORT_PROBLEM="alert_triangle",Io.SAD="face_sad",Io.SAVE_PLAYLIST="bookmark",Io.SCHEDULE="clock",Io.SCHOOL="creator_academy",Io.SCREEN_FULLSCREEN="screen_full",Io.SEARCH_HISTORY="arrow_time",Io.SELL="price_tag",Io.SETTINGS="gear",Io.SETTINGS_CAIRO="gear_cairo",Io.SETTINGS_LIGHT="gear",Io.SETTINGS_MATERIAL="gear",Io.SHARE_ARROW="share",Io.SHIELD_WITH_AVATAR="person_shield",Io.SHOPPING_BAG="bag",Io.SHOPPING_BAG_CAIRO=
"bag_cairo",Io.SHOPPING_CART="cart",Io.SHORTS_COMMENT="youtube_shorts_message_bubble_right",Io.SHORTS_DISLIKE="youtube_shorts_thumb_down",Io.SHORTS_LIKE="youtube_shorts_thumb_up",Io.SHORTS_SHARE="youtube_shorts_share",Io.SHUFFLE="arrow_shuffle",Io.SLOW_MODE_OFF="message_bubble_left",Io.SOCIAL="people",Io.SORT="menu_sort",Io.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Io.SPEED_1X="1x",Io.SPEED_1_POINT_2X="1_point_2x",Io.SPEED_1_POINT_5X="1_point_5x",Io.SPEED_1_POINT_8X="1_point_8x",Io.SPEED_2X="2x",
Io.SPEED_POINT_2X="point_2x",Io.SPEED_POINT_8X="point_8x",Io.SPONSORSHIP_STAR="star_circle",Io.STAFF_PICK="spotlight",Io.START_DVR="add",Io.STAR_BORDER="star",Io.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Io.STICKER_EMOTICON="face_happy",Io.STOP_DVR="stop",Io.SUBSCRIBE="youtube_logo_icon",Io.SUBSCRIBE_PLUS="add_cairo",Io.SUBSCRIPTION_MANAGER="gear",Io.SUPERVISOR_ACCOUNT="people",Io.SUPER_CHAT_FOR_GOOD="hands_heart",Io.SWAP_HORIZ="arrow_swap_horizontal",Io.SWITCH_ACCOUNTS="person_account",Io.TAB_ACCOUNT=
"person",Io.TAB_ACTIVITY="bell",Io.TAB_BOOKMARK="bookmark",Io.TAB_EXPLORE="compass",Io.TAB_HOME="home",Io.TAB_HOME_CAIRO="home_cairo",Io.TAB_INBOX="mail",Io.TAB_LIKED="thumb_up",Io.TAB_MUSIC_PREMIUM="youtube_music",Io.TAB_SHORTS="youtube_shorts",Io.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Io.TAB_SUBSCRIPTIONS="subscriptions",Io.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Io.TAB_TRENDING="fire",Io.TIMER="stopwatch",Io.TRAILER="youtube_originals",Io.TRENDING="fire",Io.TRENDING_CAIRO="fire_cairo",Io.TRENDING_DOWN=
"rating_down",Io.TRENDING_UP="rating_up",Io.TROPHY="trophy",Io.TROPHY_CELEBRATIONS="fireworks",Io.TUNE="adjust",Io.UNBLOCK_USER="bar_circle",Io.UNLIMITED="youtube_logo_icon",Io.UNPLUGGED_LIVE_GUIDE="radar_live",Io.UNPLUGGED_SPORTS="eye_off",Io.UPLOADS="library",Io.UP_ARROW="arrow_up",Io.VERTICAL_ALIGN_BOTTOM="download",Io.VERY_HAPPY="face_very_happy",Io.VERY_SAD="face_very_sad",Io.VIDEOGAME_ASSET="gaming",Io.VIDEOS="play_arrow_circle",Io.VIDEO_CALL="video_camera_add",Io.VIDEO_LIBRARY_WHITE="library",
Io.VIDEO_YOUTUBE="youtube_logo_icon",Io.VIEW_LIST="list_view",Io.VIEW_LIST_CAIRO="list_view_cairo",Io.VISIBILITY="eye",Io.VISIBILITY_OFF="eye_off",Io.VOLUME_MUTE="volume_off",Io.VOLUME_UP="volume_on",Io.WALLPAPER="image",Io.WARNING="alert_triangle",Io.WATCH_HISTORY="arrow_time",Io.WATCH_HISTORY_CAIRO="arrow_time_cairo",Io.WATCH_LATER="clock",Io.WATCH_LATER_CAIRO="clock_cairo",Io.WATCH_RELATED_MIX="youtube_mix",Io.WHAT_TO_WATCH="home",Io.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Io.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",Io.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",Io.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",Io.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Io.YT_OUTLINE_MUSIC_24="music",Io);var LR={},jIe=(LR.ACCESS_TIME="clock",LR.ACCOUNT_BOX="person_square",LR.ACCOUNT_BOX_CAIRO="person_square",LR.ACCOUNT_CIRCLE="person_circle",LR.ACCOUNT_CIRCLE_CAIRO="person_circle",LR.ACCOUNT_LINKED="account_link",LR.ACCOUNT_UNLINKED="account_link",LR.ADD_CIRCLE="add_circle",LR.ADD_CIRCLE_OUTLINE="add_circle",LR.ADD_FRIEND="person_child",LR.ADD_MODERATOR="shield_add",LR.ADD_TO_LIBRARY="bookmark",LR.ADD_TO_PLAYLIST="add",LR.ADD_TO_QUEUE_TAIL="queue",LR.ADD_TO_REMOTE_QUEUE="playlist_audio",LR.ADD_TO_WATCH_LATER=
"clock",LR.ADD_VIDEO_LINK="film_strip_add",LR.ADMIN_PANEL_SETTINGS="person_gear",LR.ALERT_WARN_RED="alert_triangle",LR.ALIGN_LEFT="text_align_left",LR.ARROWS_ALERT="arrow_split_alert",LR.ARROW_BACK="arrow_left",LR.ARROW_CIRCLE="arrow_counterclockwise",LR.ARROW_CIRCLE_PLAY="replay",LR.ARROW_CIRCLE_RIGHT="arrow_clockwise",LR.ARROW_DIAGONAL="arrow_up_left",LR.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",LR.ARROW_DROP_DOWN="triangle_down",LR.ARROW_DROP_UP="triangle_up",LR.ARROW_FORWARD="arrow_right",LR.ARROW_PAUSE=
"pause_history",LR.ARROW_UNDO="undo",LR.ARTICLE="text_page",LR.ARTICLE_ALERT="text_page_alert",LR.ARTICLE_CHECK="text_page_check",LR.ARTICLE_CLARIFY="text_page_info",LR.ARTIST="person_audio",LR.AUDIOTRACK="audio",LR.AUDIO_BADGE="audio_badge",LR.AUDIO_SURROUND="surround_sound",LR.AUTO_AWESOME="sparkles",LR.AVATAR_ANONYMOUS="person_circle",LR.AVATAR_LOGGED_OUT="person_circle",LR.BACK="arrow_left",LR.BAR_CHART="chart_bar",LR.BAR_CIRCLE="minus_circle",LR.BAR_HORIZONTAL="minus",LR.BLOCK="circle_slash",
LR.BLOCK_USER="circle_slash",LR.BOOKMARK_BORDER="bookmark",LR.BOX_OPEN_CHECK="quiz",LR.BOX_PENCIL="square_pencil",LR.BOX_STACK_3="square3_stack",LR.BREAKING_NEWS_ALT_1="text_page_alert",LR.BROADCAST="podcast",LR.BROADCAST_CAIRO="podcast",LR.BUG_REPORT="bug",LR.CAMERA_ALT="camera",LR.CAMPAIGN="megaphone",LR.CANCEL="x_circle",LR.CAPTIONS="closed_captions",LR.CAST_ICON="chromecast",LR.CAST_OUTLINE="chromecast",LR.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",LR.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
LR.CHAT="text_bubble",LR.CHAT_BUBBLE="bubble",LR.CHECK_BOX="check_square",LR.CHECK_BOX_OUTLINE_BLANK="square",LR.CHECK_CIRCLE_FILLED="check_circle",LR.CHECK_CIRCLE_OUTLINE="check_circle",LR.CHECK_CIRCLE_THICK="check_circle",LR.CHECK_DOUBLE="check_done",LR.CHECK_DOUBLE_OFF="check_done_slash",LR.CHEVRON_LEFT="chevron_left",LR.CHEVRON_RIGHT="chevron_right",LR.CHEVRON_RIGHT_CAIRO="chevron_right",LR.CIRCLES_OVERLAP="account_link",LR.CLAPPERBOARD_CAIRO="clapperboard",LR.CLARIFY="text_page_info",LR.CLOCK_ARROWS=
"clock_split",LR.CLOCK_ARROWS_ALERT="clock_split_alert",LR.CLOSED_CAPTION="closed_captions",LR.CLOSED_CAPTION_SELECTED="closed_captions",LR.CLOSE="x",LR.CLOUD_UPLOAD="cloud_arrow_up",LR.COLLAPSE="chevron_up",LR.COLLAPSE_CAIRO="chevron_up",LR.COLLECTION="square3d_stack",LR.COLOR_LENS="paint_palette",LR.COMMENT="text_bubble",LR.CONSENT_SHIELD="person_shield",LR.CONTENT_CUT="scissors",LR.CONTENT_CUT_CAIRO="scissors",LR.COURSE="graduation_cap",LR.COURSE_CAIRO="graduation_cap",LR.CREATION_LIVE="live",
LR.CREATION_POST="square_pencil",LR.CREATION_UPLOAD="video",LR.CREATION_UPLOAD_RED="upload",LR.CREATOR_ACADEMY="graduation_cap",LR.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",LR.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",LR.CREATOR_STUDIO="youtube_studio",LR.DARK_THEME="theme",LR.DELETE="trash_can",LR.DELETE_SWEEP="trash_can",LR.DESKTOP="laptop",LR.DISLIKE="thumb_down",LR.DISLIKE_SELECTED="thumb_down",LR.DISMISSAL="x",LR.DISMISS_QUEUE="playlist_x",LR.DOGFOOD="pawprint",LR.DOLLAR_SIGN=
"dollar_sign_circle",LR.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",LR.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",LR.DOWN_ARROW="arrow_down",LR.DO_NOT_DISTURB="circle_slash",LR.DRAFT="document",LR.DRAG_HANDLE="equal",LR.EARTH="globe",LR.EDIT="pencil",LR.EMOJI="face_very_happy",LR.EMOJI_FLAGS="flag",LR.EMOJI_OBJECTS="lightbulb",LR.EMOJI_PEOPLE="face_very_happy",LR.EMOJI_RECENT="clock",LR.EMPTY_HEART="heart",LR.EMPTY_LIKE="thumb_up",LR.ERROR_BLACK="alert_circle",LR.ERROR_OUTLINE="alert_circle",LR.ERROR_WHITE=
"alert_circle",LR.EXIT_APP="arrow_in",LR.EXIT_TO_APP="arrow_in",LR.EXPAND="chevron_down",LR.EXPAND_ALL="chevron_expand",LR.EXPAND_CAIRO="chevron_down",LR.EXPAND_LESS="chevron_up",LR.EXPAND_MORE="chevron_down",LR.EXPLORE="compass",LR.EXPLORE_DESTINATION="compass",LR.EXTERNAL_LINK="arrow_up_right",LR.EYE_OFF="eye_slash",LR.FAB_UPLOAD="upload",LR.FACE_HAPPY_OUTLINE="face_happy",LR.FACE_MEH="face_neutral",LR.FACT_CHECK="text_page_check",LR.FASHION_LOGO="fashion",LR.FASHION_LOGO_CAIRO="fashion",LR.FAVORITE=
"thumb_up",LR.FEEDBACK="alert_bubble",LR.FEEDBACK_CAIRO="alert_bubble",LR.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",LR.FILL_ARROW_SOLID_UP_16="arrow_solid_up",LR.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",LR.FIRST_PAGE="chevron_left_end",LR.FLAG_CAIRO="flag",LR.FLASH_OFF="flash_slash",LR.FLASH_ON="flash",LR.FULL_HEART="heart",LR.GAMING_LOGO="gaming",LR.GAMING_LOGO_CAIRO="gaming",LR.GO_TO_PAGE="arrow_right",LR.GRID_ASYMMETRICAL="dashboard",LR.GROUPS="person3",LR.HAND_SWIPE_LEFT="gesture_swipe_left",
LR.HAND_SWIPE_RIGHT="gesture_swipe_right",LR.HAPPY="face_happy",LR.HEALTH_AND_SAFETY="shield_health",LR.HEART_BOX="heart_cube",LR.HELP="help_circle",LR.HELP_CAIRO="help_circle",LR.HELP_OUTLINE="help_circle",LR.HIDE="circle_slash",LR.INCOGNITO_CAIRO="incognito",LR.INFINITY_ICON="infinity",LR.INFO="info_circle",LR.INFO_OUTLINE="info_circle",LR.INSERT_CHART="chart_bar_square",LR.INSERT_CHART_OUTLINED="chart_bar_square",LR.INSERT_PHOTO="image",LR.KEEP="pin",LR.KEEP_OFF="pin_slash",LR.KEYBOARD="keyboard",
LR.KEYBOARD_ARROW_DOWN="chevron_down",LR.KEYBOARD_ARROW_UP="chevron_up",LR.KIDS_BLOCK="circle_slash",LR.LANGUAGE="globe",LR.LAST_PAGE="chevron_right_end",LR.LAUNCH="arrow_up_right",LR.LEARNING="lightbulb",LR.LEARNING_CAIRO="lightbulb",LR.LIBRARY_ADD="bookmark",LR.LIBRARY_IMAGE="image_stack",LR.LIBRARY_MUSIC="audio_square_stack",LR.LIBRARY_OUTLINE="play_square_stack",LR.LIBRARY_REMOVE="bookmark",LR.LIBRARY_SAVED="check_square_stack",LR.LIKES_PLAYLIST="thumb_up",LR.LIKES_PLAYLIST_CAIRO="thumb_up",LR.LIKE=
"thumb_up",LR.LIKE_SELECTED="thumb_up",LR.LIST_QUEUE="queue",LR.LIVE_CAIRO="live",LR.LIVE_UNLISTED="link",LR.LOCATION_ON="location_pin",LR.LOCATION_PIN="location_pin",LR.LOCATION_POINT="location_pin",LR.LOOP="repeat",LR.LOOP_ACTIVE="repeat",LR.LOOP_ONE="repeat1",LR.LOOP_ONE_ACTIVE="repeat1",LR.MEET="google_meet",LR.MEH="face_neutral",LR.MEMBERSHIPS="memberships",LR.MEMBERS_ONLY_MODE_OFF="text_bubble",LR.MENU_FILTER="filter",LR.MESSAGE="text_bubble",LR.MESSAGE_BUBBLE_GEAR="bubble_gear",LR.MESSAGE_BUBBLE_LEFT=
"text_bubble",LR.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",LR.MESSAGE_BUBBLE_OVERLAP="bubble_stack",LR.MESSAGE_BUBBLE_QUESTION="help_bubble",LR.MICROPHONE_ON="mic",LR.MONETIZATION_ON="dollar_sign_circle",LR.MONEY_FILL="dollar_sign_rectangle",LR.MONEY_FILL_JPY="yen_sign_rectangle",LR.MONEY_HAND="dollar_sign_circle_hand",LR.MONEY_HEART="dollar_sign_heart",LR.MOON_Z="sleep_timer",LR.MORE_HORIZ="overflow_horizontal",LR.MORE_VERT="overflow_vertical",LR.MUSIC="audio",LR.MUSIC_CAIRO="audio",LR.MUSIC_EXPLICIT_BADGE=
"explicit",LR.MUSIC_NEW_RELEASE="audio_badge",LR.MUSIC_NOTE_SYMBOL="audio",LR.MUSIC_SCISSORS="audio_scissors",LR.MUSIC_SHUFFLE="shuffle",LR.MY_CHANNEL="person_circle",LR.MY_LOCATION="location_pin",LR.MY_VIDEOS="video",LR.MY_VIDEOS_CAIRO="video",LR.NEWS_CAIRO="news",LR.NEWS_STORY="news",LR.NEXT="chevron_right",LR.NOTE_ADD="bubble_pencil",LR.NOTIFICATIONS="bell",LR.NOTIFICATIONS_ACTIVE="bell_waves",LR.NOTIFICATIONS_CAIRO="bell",LR.NOTIFICATIONS_DONE_CHECKMARK="check",LR.NOTIFICATIONS_INBOX="bell",LR.NOTIFICATIONS_NONE=
"bell",LR.NOTIFICATIONS_OFF="bell_slash",LR.NOT_INTERESTED="circle_slash",LR.OFFICIAL_ARTIST_BADGE="audio",LR.OFFLINE_CLOUD="cloud_slash",LR.OFFLINE_DOWNLOAD="download",LR.OFFLINE_DOWNLOAD_CAIRO="download",LR.OFFLINE_PAUSE="pause",LR.OPEN_IN_NEW="arrow_up_right",LR.OUTLINE_ADJUST="adjust",LR.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",LR.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",LR.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",LR.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",LR.OUTLINE_BAG="bag",LR.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",LR.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",LR.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",LR.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",LR.PAID="dollar_sign_circle",LR.PAUSE_OUTLINED="pause",LR.PAYMENT="credit_card",LR.PEOPLE="person_child",LR.PEOPLE_2="person2_rectangle",LR.PEOPLE_GROUP="person3",LR.PEOPLE_NOTE="bubble_asterisk",LR.PERSON_2="person2",LR.PERSON_ACCOUNT="person_square_stack",LR.PERSON_MINUS="person_x",LR.PERSON_MUSIC="person_audio",LR.PERSON_RADAR="person_waves",
LR.PERSON_RADAR_FILLED="person_waves",LR.PERSON_SETTING="person_gear",LR.PHONE="phone",LR.PHONE_DOWNLOAD="mobile_arrow_down",LR.PICTURE_IN_PICTURE="picture_in_picture",LR.PLAYABLES_LOGO="playables",LR.PLAYABLES_LOGO_CAIRO="playables",LR.PLAYLISTS="playlist",LR.PLAYLISTS_CAIRO="playlist",LR.PLAYLIST_ADD_CHECK="bookmark",LR.PLAY_ALL="play",LR.PLAY_ARROW="play",LR.PLAY_ARROW_CIRCLE="play_circle",LR.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",LR.PLAY_CIRCLE="play_circle",LR.PLAY_OUTLINED="play_circle",
LR.PODCAST_ADD="podcast_add",LR.PODCAST_CHECK="podcast_check",LR.PRIVACY_INFO="shield_x",LR.PRIVACY_PRIVATE="lock",LR.PRIVACY_PUBLIC="globe",LR.PRIVACY_UNLISTED="link",LR.PROMOTE="megaphone",LR.PURCHASES="price_tag",LR.PURCHASE_SUPER_CHAT="super_chat",LR.PURCHASE_SUPER_STICKER="super_sticker",LR.QUESTION_ANSWER="help_bubble",LR.QUESTION_CIRCLE="help_circle",LR.QUEUE_PLAY_LAST="queue_last",LR.QUEUE_PLAY_NEXT="queue_next",LR.QUOTATION_MARK="quote",LR.RADAR_LIVE="live",LR.REMOVE="minus_circle",LR.REMOVE_CIRCLE=
"minus_circle",LR.REMOVE_CIRCLE_OUTLINE="minus_circle",LR.REMOVE_FROM_HISTORY="minus_circle",LR.REMOVE_FROM_PLAYLIST="minus_circle",LR.REMOVE_MODERATOR="shield_slash",LR.REPLAY="arrow_counterclockwise",LR.REPLAY_10="skip10_back",LR.REPLAY_ARROW="replay",LR.REPORT_PROBLEM="alert_triangle",LR.RSS_OFF="rss_slash",LR.SAD="face_sad",LR.SAVE_PLAYLIST="bookmark",LR.SCHEDULE="clock",LR.SCHOOL="graduation_cap",LR.SCREEN_DEFAULT="player_default",LR.SCREEN_FULLSCREEN="player_full_enter",LR.SCREEN_LIGHT="ambient_mode",
LR.SCREEN_ROTATION="rotate_portrait",LR.SCREEN_SWITCH="player_switch",LR.SCREEN_THEATRE="player_theater",LR.SEARCH_CAIRO="search",LR.SEARCH_HISTORY="history",LR.SELL="price_tag",LR.SETTINGS="gear",LR.SETTINGS_CAIRO="gear",LR.SETTINGS_LIGHT="gear",LR.SETTINGS_MATERIAL="gear",LR.SETTINGS_REMOTE="remote_waves",LR.SHARE="share",LR.SHARE_ARROW="share",LR.SHARE_CAIRO="share",LR.SHIELD="shield_x",LR.SHIELD_EMPTY="shield",LR.SHIELD_OFF="shield_slash",LR.SHIELD_WITH_AVATAR="person_shield",LR.SHOPPING_BAG=
"bag",LR.SHOPPING_BAG_CAIRO="bag",LR.SHOPPING_CART="cart",LR.SHORTS_COMMENT="text_bubble",LR.SHORTS_DISLIKE="thumb_down",LR.SHORTS_LIKE="thumb_up",LR.SHORTS_SHARE="share",LR.SKIP_FORWARD_30="skip30_forward",LR.SLASH_CIRCLE_LEFT="circle_slash",LR.SLASH_CIRCLE_RIGHT="circle_slash",LR.SLOW_MODE="bubble_slow",LR.SLOW_MODE_OFF="text_bubble",LR.SOCIAL="person_child",LR.SPARKLE="sparkles",LR.SPARK_IMAGE="image_spark",LR.SPARK_PENCIL="pencil_spark",LR.SPARK_RADAR="spark_waves",LR.SPARK_VIDEO="video_spark",
LR.SPEAKER_GROUP="speaker_stack",LR.SPEAKER_OFF="speaker_slash",LR.SPEED_1X="n1x",LR.SPEED_1_POINT_2X="n1point2x",LR.SPEED_1_POINT_5X="n1point5x",LR.SPEED_1_POINT_8X="n1point8x",LR.SPEED_2X="n2x",LR.SPONSORSHIP_STAR="star_circle",LR.SPORTS="basketball",LR.SPOTLIGHT="spotlight",LR.STAFF_PICK="spotlight",LR.START_DVR="add",LR.STAR_BORDER="star",LR.STAR_CIRCLE_RIBBON="memberships_gift",LR.STAR_HALF="star_full_half",LR.STAR_SHOOTING="hype",LR.STICKER="sticker",LR.STICKER_EMOTICON="face_happy",LR.STOP_DVR=
"stop",LR.SUBSCRIBE="youtube",LR.SUBSCRIBE_PLUS="add",LR.SUBSCRIPTION_MANAGER="gear",LR.SUPERSTAR="super_star",LR.SUPERVISOR_ACCOUNT="person_child",LR.SUPER_CHAT_FOR_GOOD="hands_heart",LR.SWAP_HORIZ="arrow_swap_horizontal",LR.SWITCH_ACCOUNTS="person_square_stack",LR.TAB_ACCOUNT="person",LR.TAB_ACTIVITY="bell",LR.TAB_BOOKMARK="bookmark",LR.TAB_EXPLORE="compass",LR.TAB_HOME="home",LR.TAB_HOME_CAIRO="home",LR.TAB_INBOX="mail",LR.TAB_LIKED="thumb_up",LR.TAB_MUSIC_PREMIUM="youtube_music",LR.TAB_SHORTS=
"shorts",LR.TAB_SHORTS_CAIRO="shorts",LR.TAB_SUBSCRIPTIONS="subscriptions",LR.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",LR.TAB_TRENDING="trending",LR.TARGET="target",LR.TARGET_ADD="target_add",LR.TEMPLATE_ADD="template_add",LR.TEXT="font",LR.TICKET_STAR="star_ticket",LR.TIMER="stopwatch",LR.TRENDING_CAIRO="trending",LR.TRENDING_DOWN="arrow_trend_down",LR.TRENDING_UP="arrow_trend_up",LR.TROPHY_CAIRO="trophy",LR.TROPHY_CELEBRATIONS="fireworks",LR.TROPHY_STAR="star_trophy",LR.TUNE="adjust",LR.TV_OFF="tv_slash",
LR.UNBLOCK_USER="minus_circle",LR.UNFAVORITE="thumb_down",LR.UNLIMITED="youtube",LR.UNPLUGGED_LIVE_GUIDE="live",LR.UNPLUGGED_SPORTS="eye_slash",LR.UPLOADS="play_square_stack",LR.UP_ARROW="arrow_up",LR.VERTICAL_ALIGN_BOTTOM="chevron_down_end",LR.VERTICAL_ALIGN_TOP="chevron_up_end",LR.VERY_HAPPY="face_very_happy",LR.VERY_SAD="face_very_sad",LR.VIDEOS="play_circle",LR.VIDEO_CALL="video_camera_add",LR.VIDEO_LIBRARY_WHITE="play_square_stack",LR.VIDEO_QUALITY_4K="n4k",LR.VIDEO_QUALITY_8K="n8k",LR.VIDEO_YOUTUBE=
"youtube",LR.VIEW_LIST_CAIRO="view_list",LR.VIEW_MODULE="view_column3_row2",LR.VISIBILITY="eye",LR.VISIBILITY_OFF="eye_slash",LR.VOLUME_DOWN="volume_min",LR.VOLUME_MUTE="volume_mute",LR.VOLUME_OFF="volume_mute",LR.VOLUME_STABLE="stable_volume",LR.VOLUME_UP="volume_max",LR.WALLPAPER="image",LR.WARNING="alert_triangle",LR.WATCH_HISTORY="history",LR.WATCH_HISTORY_CAIRO="history",LR.WATCH_LATER="clock",LR.WATCH_LATER_CAIRO="clock",LR.WATCH_RELATED_MIX="mix",LR.WHAT_TO_WATCH="home",LR.YOUTUBE_LINKED_TV=
"tv_mobile",LR.YOUTUBE_MUSIC_MONOCHROME="youtube_music",LR.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",LR.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",LR.YOUTUBE_SHORTS_ARROW_UP="arrow_up",LR.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",LR.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",LR.YOUTUBE_SHORTS_OUTLINE_24="shorts",LR.YT_OUTLINE_MUSIC_24="audio",LR);var wZw={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,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,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,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var xDp={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],
clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,
1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,
2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],
equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,
9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,
24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,
24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,
24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],
help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,
1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,
2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,
2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],
mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,
2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,
10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,
18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],
[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,
1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,
24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,
2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,
1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,5,24,!0],[1,5,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,
3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,
5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,24],[1,10,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],
spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,
24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,5,24],[0,5,36],[1,5,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,
1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,
18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],
triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,
2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,
1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var cu$={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},pc=function(p){this.iconUrlProvider=p};
pc.prototype.resolveIcon=function(p,J){var S=cu$[p.iconName.toUpperCase()];S&&(p.iconName=S);var H=p.iconName;H=H.replace(/-/g,"_");p=Object.assign({},p,{iconName:this.mapIconTypeToStandardName(H,!!S)||H.toLowerCase()});if(_.z("enable_web_delhi_icons")||S){var M;return Hxk(xDp,p,((M=this.iconUrlProvider)==null?void 0:M.getYtStandardUrl)||ReX,J)}var X;return Hxk(wZw,p,((X=this.iconUrlProvider)==null?void 0:X.getYtStandardUrl)||ixk,J)};
pc.prototype.mapIconTypeToStandardName=function(p,J){return _.z("enable_web_delhi_icons")||J?jIe[p.toUpperCase()]:ruj[p.toUpperCase()]};
pc[fQ]=[_.F9(ar$)];var Irf=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),LCN=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),psM=function(p){this.urlProvider=this.iconUrlProvider=p};
_.Q(psM,pc);
psM.prototype.resolveIcon=function(p,J){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 S=Object.assign({},p);p.iconName==="menu"&&(_.z("enable_web_delhi_icons")||(S.iconName="bars_3"),S.iconStyle="youtube_outline");p.iconSetName==="socialNetworksRound"&&(p.iconName==="mail"&&(S.iconName="email"),p.iconName==="embed"&&(S.iconSize=60));p.iconName==="more"&&(S.iconName="overflow_horizontal");
p.iconName==="fullscreen"&&(S.iconName="screen_full");p.iconName==="premium_standalone"&&(S.iconName="premium_standalone_cairo");_.z("enable_connect_icon_update_web")&&p.iconName==="account_linked"&&(S.iconName="circles_overlap_check",S.iconStyle="youtube_fill");_.z("enable_connect_icon_update_web")&&p.iconName==="account_unlinked"&&(S.iconName="circles_overlap",S.iconStyle="youtube_outline");Irf.has(p.iconName)&&(S.iconStyle="youtube_fill");if(_.z("enable_web_delhi_icons")){p.iconName==="playlist_add"&&
(S.iconName="bookmark");p.iconName==="offline_pin"&&(S.iconName="arrow_down_circle",S.iconStyle="youtube_fill");if(p.iconName==="circles_overlap_check"||S.iconName==="circles_overlap_check")S.iconName="account_link",S.iconStyle="youtube_fill";LCN.has(p.iconName)&&(S.iconName+="_updated")}p=Object.assign({},S,{iconName:(pc.prototype.mapIconTypeToStandardName.call(this,S.iconName)||S.iconName).toLowerCase()});var H;return(p=Hxk(V0I,p,((H=this.urlProvider)==null?void 0:H.getUrl)||KD3,J))?p:pc.prototype.resolveIcon.call(this,
S,J)};
psM[fQ]=[_.F9(ar$)];_.Jyj=1;var Jp=function(p,J){this.JSC$17590_commandHandler=p;this.innertubeTransportService=J};
_.Q(Jp,Oh);Jp.prototype.resolveCommand=function(p,J){var S=this,H,M,X;return _.G(function(Z){return(H=_.e(p,Quv))?Z.return(S9f(S,H,(M=J)==null?void 0:(X=M.form)==null?void 0:X.element)):Z.return()})};
var S9f=function(p,J,S){J={profileCardContext:J.profileCardContext,profileOwnerExternalChannelId:J.profileOwnerExternalChannelId};var H=_.jx(tA8);return _.mX(p.innertubeTransportService,J,H).then(function(M){if(!M)throw new _.TG("GetProfileCard failed");if(M=M.popupCommand){p.JSC$17590_commandHandler.resolveCommand(M,{form:{element:S}});_.TZ(_.bC(),66557);M=M==null?void 0:M.clickTrackingParams;var X=_.Wf();M&&X&&_.bC().graftServerVe(M,X)}})};
Jp[fQ]=[_.Ov,_.Ac];var Se=function(){};
_.Q(Se,Oh);Se.prototype.resolveCommand=function(p){var J,S;return _.G(function(H){J=_.e(p,DPq);if(!J)return H.return();S=Number(J.enableDelayedPacfLoggingTvMs);if(isNaN(S)){var M=aM();aWm(M,J,0)}else aWm(aM(),J,S);_.UK(H)})};_.HQ=function(){};
_.Q(_.HQ,Oh);
_.HQ.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F;return _.G(function(f){H=_.e(p,kTo);X=(M=J.form)==null?void 0:M.element;n=(Z=X)==null?void 0:Z.closest("ytd-enforcement-message-view-model");if(!H||!n)return f.return();S.allowAdsAction||(b=H.fundingChoiceInstructionPageUrl,S.allowAdsAction=new BfU(window,_.x_(b)));var O=S.allowAdsAction;O.wallElement=n;O.allowAdsPopup.style.setProperty("display","flex","important");var A=O.scrollManager;A.isScrollingEnabled&&(A.originalBodyOverflow=A.JSC$10155_domHelper.JSC$9481_document_.body.style.overflow,
A.JSC$10155_domHelper.JSC$9481_document_.body.style.overflow="hidden",A.isScrollingEnabled=!1);O.wallElement.style.setProperty("display","none","important");u$m(O.accessibilityManager,O.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((F=S.allowAdsAction.allowAdsPopup)&&F instanceof HTMLElement)for(O=_.K(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),A=O.next();!A.done;A=O.next()){var P=_.K(A.value);A=P.next().value;P=P.next().value;
F.style.setProperty(A,P)}_.UK(f)})};
_.HQ.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Mu=function(){};
_.Q(Mu,Oh);Mu.prototype.resolveCommand=function(p){var J;return _.G(function(S){J=_.e(p,lXm);if(!J)return S.return();Pxi(p);_.UK(S)})};_.Xo=new _.ni("AI_CHAT_CONTROLLER_TOKEN");var ix=function(p,J,S,H){this.JSC$17605_commandHandler=p;this.store=J;this.getPlayerCb=S;this.aiChatController=H};
_.Q(ix,Oh);ix.prototype.pageContext=function(){var p=_.uT.currentPageSubTypeSelector(this.store.getState()),J;return(J=this.aiChatController)==null?void 0:_.HAP(J,p)};
ix.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z;return _.G(function(n){S=_.e(p,rGU);M=(H=S)==null?void 0:H.command;if(!M)return n.return();switch((Z=S)==null?void 0:Z.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var b="youchat-"+Date.now(),F;var f=String(Math.floor(((F=J.getPlayerCb())==null?void 0:F.getCurrentTime())||0)*1E3);X={inputComposerFormData:{clientMessageId:b,playerOffsetMs:f,pageContext:J.pageContext()}}}if(!X)return n.return();J.JSC$17605_commandHandler.resolveCommand(M,
{form:{formData:X}});_.UK(n)})};
ix[fQ]=[_.Ov,_.XN,hik,_.F9(_.Xo)];var M6I=new _.ni("SESSION_STORAGE");var RU=function(p){this.sessionStorage=p("conversations")};
_.Q(RU,Oh);RU.prototype.resolveCommand=function(p){var J=this,S;return _.G(function(H){S=_.e(p,ju8);if(!S)return H.return();S.conversationId?J.sessionStorage.set("conversation_id",S.conversationId):J.sessionStorage.remove("conversation_id");_.UK(H)})};
RU[fQ]=[M6I];var Kc=function(p){this.JSC$17617_commandHandler=p};
_.Q(Kc,Oh);
Kc.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b,F;return _.G(function(f){if(f.nextAddress==1){S=_.e(p,FUv);if((H=S)==null||!H.text||!navigator.clipboard)return f.return();_.oI(f,2);return f.yield(navigator.clipboard.writeText(S.text),4)}if(f.nextAddress!=2){if(!S.successActions||S.successActions.length===0)return f.return();M=_.K(S.successActions);for(X=M.next();!X.done;X=M.next())Z=X.value,J.JSC$17617_commandHandler.resolveCommand(Z);return _.X$(f,0)}_.BZ(f);if(!S.failureActions||S.failureActions.length===
0)return f.return();n=_.K(S.failureActions);for(b=n.next();!b.done;b=n.next())F=b.value,J.JSC$17617_commandHandler.resolveCommand(F);_.UK(f)})};
Kc[fQ]=[_.Ov];var ZM=function(p){this.JSC$17621_commandHandler=p};
_.Q(ZM,Oh);
ZM.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O,A;return _.G(function(P){switch(P.nextAddress){case 1:H=_.e(p,jx8);if(!H)return P.return();_.oI(P,2);if(!H.imageBytes&&!H.imageUrl)throw Error("Ai");if(!H.imageUrl){if(H.imageBytes){X=H.imageBytes;Z=X.replace(/-/g,"+").replace(/_/g,"/");var W=G4i(Z);M=_.qG(W)}P.jumpTo(4);break}return P.yield(fetch(H.imageUrl),5);case 5:return n=P.yieldResult,P.yield(n.blob(),6);case 6:b=P.yieldResult,M=_.qG(b);case 4:O=(F=J)==null?void 0:(f=F.form)==
null?void 0:f.element;A=document.createElement("a");ja(A,M);O.appendChild(A);A.download="";A.click();O.removeChild(A);URL.revokeObjectURL(_.Tu(M));H.successCommand&&S.JSC$17621_commandHandler.resolveCommand(H.successCommand);_.X$(P,0);break;case 2:_.BZ(P),H.errorCommand&&S.JSC$17621_commandHandler.resolveCommand(H.errorCommand),_.UK(P)}})};
ZM[fQ]=[_.Ov];var nc=function(p){this.store=p};
_.Q(nc,Oh);nc.prototype.resolveCommand=function(p){var J=this,S,H,M;return _.G(function(X){H=(S=_.e(p,_.YM8))==null?void 0:S.entityBatchUpdate;if(!H)return X.jumpTo(0);M=Object.assign({},H,{mutations:[].concat(_.dW(H.mutations||[]))});return X.yield(_.bo(M,J.store),0)})};var Xsj=function(p){this.JSC$17628_commandHandler=p;this.feedbackDialogMap=new Map};
Xsj.prototype.openDialog=function(p,J){(p=this.feedbackDialogMap.get(p))&&this.JSC$17628_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:p}},J)};
Xsj[fQ]=[_.Ov];var GB=new _.ni("FEEDBACK_CONTROLLER_TOKEN");var bx=new _.ni("APP_STORE_TOKEN");var mw=function(p,J,S){this.store=p;this.controller=J;this.JSC$17631_commandHandler=S};
_.Q(mw,Oh);mw.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w;return _.G(function(I){if(I.nextAddress==1){H=_.e(p,_.U0);if(X=(M=H)==null?void 0:M.contentId)for(n=_.K(((Z=H)==null?void 0:Z.actions)||[]),b=n.next();!b.done;b=n.next())F=b.value,iAN(S,F,X);A=(f=J)==null?void 0:(O=f.form)==null?void 0:O.element;return I.yield(_.pl(A,[p,{impression:(P=J)==null?void 0:P.disableClickTracking}]).catch(function(){}),2)}W=I.yieldResult;
if((y=W)==null?0:(t=y.data)==null?0:(D=t.feedbackResponses)==null?0:D.length)(E=(k=W.data.feedbackResponses[0])==null?void 0:k.followUpDialog)&&X&&(a=S.controller)!=null&&a.feedbackDialogMap.set(X,E),(w=(q=W.data.feedbackResponses[0])==null?void 0:q.isThumbnailReporting)&&S.JSC$17631_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.UK(I)})};
var iAN=function(p,J,S){var H=_.e(J,_.H9);if(H){H=_.K(H.commands||[]);for(var M=H.next();!M.done;M=H.next())iAN(p,M.value,S)}_.e(J,_.Vs)&&p.store.dispatch(_.P$("commandEntity",cEk(S),{key:S,command:J}));_.e(J,t2n)&&p.store.dispatch(_.P$("commandEntity",cEk(S),{key:S,command:J}))};
mw[fQ]=[bx,GB,_.Ov];var Fo=function(p){this.controller=p};
_.Q(Fo,Oh);Fo.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z;return _.G(function(n){H=_.e(p,_.S5);X=(M=H)==null?void 0:M.targetId;if(((Z=H)==null?void 0:Z.signal)!=="TELL_US_WHY"||!X)return n.return();S.controller.openDialog(X,J);_.UK(n)})};
Fo[fQ]=[GB];var vQ=function(p){this.store=p};
_.Q(vQ,Oh);vQ.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F;return _.G(function(f){H=_.e(p,v7t);X=(M=H)==null?void 0:M.contentId;b=(Z=J)==null?void 0:(n=Z.form)==null?void 0:n.element;F=_.pl(b,[p]);X&&S.undo(X);return f.yield(F,0)})};
vQ.prototype.undo=function(p){this.store.dispatch(_.P$("commandEntity",cEk(p),{key:p,command:void 0}))};
vQ[fQ]=[bx];var fc=function(p){this.JSC$17643_commandHandler=p};
_.Q(fc,Oh);fc.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b,F;return _.G(function(f){S=_.e(p,Gb8);H=S.flowStateKey;M=S.validationFailureCommand;X=S.submitValidFormCommand;Z=c2t(_.Y8,[H||""]);n=_.e(Z,FAp);((b=n)==null?0:b.isValid)&&X&&J.JSC$17643_commandHandler.resolveCommand(X);((F=n)==null?0:F.isValid)||!M||J.JSC$17643_commandHandler.resolveCommand(M);_.UK(f)})};
fc[fQ]=[_.Ov];var OF=function(p){this.innertubeTransportService=p};
_.Q(OF,Oh);OF.prototype.resolveCommand=function(p,J){var S=this,H;return _.G(function(M){return M.yield(_.VI(S.innertubeTransportService,p,(H=J)==null?void 0:H.form).then(function(X){var Z,n;J==null||(Z=J.commandController)==null||(n=Z.onSuccess)==null||n.call(Z,p,X)},function(X){var Z,n;
J==null||(Z=J.commandController)==null||(n=Z.onServerError)==null||n.call(Z,p,X)}),0)})};
OF[fQ]=[_.Ac];var Ap=function(){};
_.Q(Ap,Oh);Ap.prototype.resolveCommand=function(p){var J,S,H,M;return _.G(function(X){if(J=_.e(p,_.ZFd)){if(S=J.gtmId)H=_.jn("GL",""),_.xw(S,H);(M=J.gtmData)&&_.cR(M)}_.UK(X)})};var PQ=function(p,J,S){this.innertubeTransportService=p;this.JSC$17654_actionRouter=J;this.JSC$17654_screenManager=S};
_.Q(PQ,Oh);PQ.prototype.resolveCommand=function(p){var J=this,S,H;return _.G(function(M){S=_.e(p,ikE);if(!S)return M.return();H=S.command;if(!H)return M.return();J.JSC$17654_actionRouter.triggerAction("yt-insert-rich-section-action",S);return M.yield(_.VI(J.innertubeTransportService,H,{disableCache:!0}).then(function(X){p.clickTrackingParams&&(X==null?0:X.trackingParams)&&J.JSC$17654_screenManager.graftServerVe(X.trackingParams,_.Az(p.clickTrackingParams))}),0)})};
PQ[fQ]=[_.Ac,C5,_.c3];mhi.bind(null,Ao);var Rme=mhi.bind(null,iKL);vMi.bind(null,Ao);var K9M=vMi.bind(null,iKL);OxW.bind(null,Ao);var ZAP=OxW.bind(null,iKL);var zB=function(){};
_.Q(zB,Oh);
zB.prototype.resolveCommand=function(p){var J,S,H,M,X,Z,n,b,F,f;return _.G(function(O){J=_.e(p,aR8);if(!J)return O.return();H=((S=J.operations)==null?void 0:S.operations)||[];M=_.K(H);for(X=M.next();!X.done;X=M.next())if(Z=X.value,Z.insertItemSectionContent){var A=Z.insertItemSectionContent,P=A.contents||[];A.insertByPositionInSection?Rme(A.insertByPositionInSection.sectionTargetId,P,A.insertByPositionInSection.position):A.insertByRelativePositionInSection&&A.insertByRelativePositionInSection.sectionTargetId&&A.insertByRelativePositionInSection.itemTargetId&&
K9M(A.insertByRelativePositionInSection.sectionTargetId,A.insertByRelativePositionInSection.itemTargetId,P,A.insertByRelativePositionInSection.relativePosition)}else Z.replaceSection?(A=Z.replaceSection,P={},A.replaceByTargetId?P=A.replaceByTargetId:A.replaceByGroupId&&(P={targetId:A.replaceByGroupId.groupId,newContent:A.replaceByGroupId.newContent,undoKey:""}),P.newContent&&ZKE(P.targetId,{continuationItems:[P.newContent]})):Z.removeItem?(A=Z.removeItem,A.removeByTargetId&&A.sectionTargetId&&ZAP(A.sectionTargetId,
A.removeByTargetId.targetIds||[])):Z.removeSection&&(Z.removeSection.removeByTargetId?(n=void 0,noM(((n=Z.removeSection)==null?void 0:n.removeByTargetId.targetIds)||[])):Z.removeSection.removeByGroupId&&(b=void 0,noM(((b=Z.removeSection)==null?void 0:b.removeByGroupId.groupIds)||[])));f=((F=J.operations)==null?void 0:F.scrollConfig)||{};G6y(f);_.UK(O)})};
var noM=function(p){p=_.K(p);for(var J=p.next();!J.done;J=p.next())ZKE(J.value,{continuationItems:[]})},G6y=function(p){if(p.scrollToItem){var J=p.scrollToItem.item||{},S=J.itemTargetId;
J=J.sectionTargetId;if(S&&J){var H=document.querySelector("[data-target-id="+J+"]"),M=H==null?void 0:H.querySelector("[data-target-id="+S+"]");H&&M&&setTimeout(function(){var X=M.offsetTop-H.offsetTop,Z;if(((Z=p.scrollToItem)==null?void 0:Z.scrollPosition)==="SCROLL_POSITION_CENTER")X-=H.offsetHeight/2,X+=M.offsetHeight/2;else{var n;((n=p.scrollToItem)==null?void 0:n.scrollPosition)==="SCROLL_POSITION_END"&&(X-=H.offsetHeight,X+=M.offsetHeight)}H.scroll({top:X,behavior:"smooth"})},100)}}};var $g=new _.ni("CLIENT_NAME_TOKEN");var bAw=new _.ni("DEFAULT_STORE_EXPIRATION_TOKEN");var sbk=new _.ni("CLIENT_LOCATION_SERVICE_TOKEN");var oU=function(p,J,S){this.clientName=p||_.jn("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=J||_.uy.getInstance();this.JSC$17682_commandHandler=S||_.R4.instance};
_.Q(oU,Oh);oU.prototype.resolveCommand=function(p){var J=this,S,H;return _.G(function(M){H=(S=_.e(p,Cqn))==null?void 0:S.onComplete;J.clientLocationService.clearLocationPlayabilityToken(J.clientName);H&&J.JSC$17682_commandHandler.resolveCommand(H);_.UK(M)})};
oU[fQ]=[$g,sbk,_.Ov];var ee=function(p){this.innertubeTransportService=p};
_.Q(ee,Oh);ee.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z;return _.G(function(n){X=(H=J)==null?void 0:(M=H.form)==null?void 0:M.element;return n.yield(_.VI(S.innertubeTransportService,p,(Z=J)==null?void 0:Z.form).then(function(b){Orw(X,new CustomEvent("yt-service-request-completed"),{data:b},_.jn("openPopupConfig"))}),0)})};
ee[fQ]=[_.Ac];var WQ=function(){};
_.Q(WQ,Oh);WQ.prototype.resolveCommand=function(p){var J,S;return _.G(function(H){J=_.e(p,AaU);S=document.querySelector("mini-app-container-view-model");if(!J||!S)return H.return();J.isPlaying?S.dispatchEvent(new Event("play")):S.dispatchEvent(new Event("pause"));_.UK(H)})};var yO=function(){};
_.Q(yO,Oh);yO.prototype.resolveCommand=function(p){var J,S,H,M,X,Z,n;return _.G(function(b){J=_.e(p,HFE);if((S=J)==null||!S.paramKeys)return b.return();H=J.paramKeys;M=_.I7(window.location.href);X=_.K(H);for(Z=X.next();!Z.done;Z=X.next())n=Z.value,M.JSC$10187_queryData_.remove(n);window.history.replaceState(window.history.state,document.title,M.toString());_.UK(b)})};var m0U=function(){this.dropdownMap=new Map};_.F9I=new _.ni("DROPDOWN_CONTROLLER_TOKEN");var BQ=function(p){this.controller=p};
_.Q(BQ,Oh);BQ.prototype.resolveCommand=function(p){var J=this,S,H,M,X;return _.G(function(Z){S=_.e(p,UgU);if(!S)return Z.return();H=S;M=H.dropdownId;X=H.selectedOptionIndex;if(M===void 0||X===void 0)return Z.return();var n=J.controller.dropdownMap.get(M);n&&n(X);_.UK(Z)})};
BQ[fQ]=[_.F9I];var UF=function(p){this.controller=p};
_.Q(UF,Oh);UF.prototype.resolveCommand=function(p){var J=this,S;return _.G(function(H){return(S=_.e(p,la8))?H.yield(J.controller.closeDialog(),0):H.return()})};
UF[fQ]=[_.Hw];var sF=function(p){this.controller=p};
_.Q(sF,Oh);sF.prototype.resolveCommand=function(p){var J=this,S,H;return _.G(function(M){S=_.e(p,eDo);if(!S)return M.return();var X,Z=S.panelIdentifier||((X=S.identifier)==null?void 0:X.tag);if(!Z)throw Error("Bi");return(H=Z)?M.yield(J.controller.hidePanel({identifier:H}),0):M.jumpTo(0)})};
sF[fQ]=[_.JY];var gJ=function(p){this.controller=p};
_.Q(gJ,Oh);gJ.prototype.resolveCommand=function(p){var J=this,S;return _.G(function(H){return(S=_.e(p,KGd))?H.yield(J.controller.closeSheet(),0):H.return()})};
gJ[fQ]=[_.Sd];var tp=function(p,J){this.innertubeTransportService=p;this.controller=J};
_.Q(tp,Oh);tp.prototype.resolveCommand=function(p){var J=this,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return S=_.e(p,WXn),(H=S)!=null&&H.panelId?Z.yield(J.controller.getReloadContinuation(S.panelId),2):Z.return();if(Z.nextAddress!=3)return(M=Z.yieldResult)?Z.yield(_.VI(J.innertubeTransportService,p,{continuation:M}),3):Z.return();X=Z.yieldResult;return Z.yield(J.controller.updatePanel({identifier:S.panelId,panelContents:X.content,shouldFocus:!1}),0)})};
tp[fQ]=[_.Ac,_.JY];var hp=function(p,J,S){this.innertubeTransportService=p;this.JSC$17724_screenManager=J;this.JSC$17724_commandHandler=S};
_.Q(hp,Oh);
hp.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n;return _.G(function(b){if(b.nextAddress==1){S=_.e(p,_.OD8);if(!S)return b.return();if(S.commands)for(H=_.K(S.commands),M=H.next();!M.done;M=H.next())X=M.value,J.JSC$17724_commandHandler.resolveCommand(X,{disableClickTracking:!0});Z=_.Az(p.clickTrackingParams);_.TZ(J.JSC$17724_screenManager,21760,Z,{layer:7,parentLayer:0});return b.yield(_.VI(J.innertubeTransportService,p),2)}n=b.yieldResult;if(!n)return b.return();J.JSC$17724_screenManager.graftServerVe(n.trackingParams,Z,
7);_.UK(b)})};
hp[fQ]=[_.Ac,_.c3,_.Ov];var DM=new _.ni("PANEL_LOADING_STRATEGY_TOKEN");var kg=function(p,J){this.controller=p;this.panelLoadingStrategy=J};
_.Q(kg,Oh);
kg.prototype.resolveCommand=function(p,J){var S=this,H,M,X;return _.G(function(Z){H=_.e(p,n4d);if((M=H)==null||!M.panelLoadingStrategy)return Z.return();X=function(n){var b,F,f,O,A,P,W,y,t,D;return _.G(function(k){F=_.e((b=n.dialogViewModel)==null?void 0:b.header,sB8);f={viewModel:n.dialogViewModel};O={};if(W=_.z("web_enable_dialog_header_label")?(A=F)==null?void 0:(P=A.headline)==null?void 0:P.content:void 0)O.ariaLabel=W;H.dismissOnBackgroundTap===!1&&(O.isModal=!0);return n.dialogViewModel?k.yield(S.controller.openDialog(f,
(D=(y=J)==null?void 0:(t=y.form)==null?void 0:t.element)!=null?D:document.body,O),0):k.return()})};
return Z.yield(S.panelLoadingStrategy.execute({command:p,data:H.panelLoadingStrategy,renderFn:X,createScreenConfig:{layer:4}}),0)})};
kg[fQ]=[_.Hw,DM];var Nu=function(p,J,S){this.innertubeTransportService=p;this.controller=J;this.JSC$17744_screenManager=S};
_.Q(Nu,Oh);
Nu.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D;return _.G(function(k){switch(k.nextAddress){case 1:H=_.e(p,_.Bu);if(!H)return k.return();var E,a=H.panelIdentifier||((E=H.identifier)==null?void 0:E.tag);if(!a)throw Error("Bi");M=a;return k.yield(S.controller.isVisible(M,!0),2);case 2:if((X=k.yieldResult)&&H.blockIfPanelOpen)return k.return();b=(n=(Z=S.controller).getPanelContent)==null?void 0:n.call(Z,M);if(!(E=b))if(H){var q;E=((q=H.globalConfiguration)==null?void 0:
q.initialState)||H.engagementPanel;if(q=!E)q=!!(H==null?0:(a=H.engagementPanelPresentationConfigs)==null?0:a.engagementPanelPopupPresentationConfig);q&&(E=_.Agv(H.panelIdentifier,H.identifier))}else E=void 0;F=E;f=H.engagementPanelPresentationConfigs;O=H.engagementPanelExtras;return k.yield(S.controller.showPanel({identifier:M,panelContents:F,config:f,extras:O,target:(A=J)==null?void 0:(P=A.form)==null?void 0:P.element}),3);case 3:if(!H.globalConfiguration){k.jumpTo(0);break}if(H.globalConfiguration.reuseModelAndState&&
_.z("enable_ai_companion")&&(t=(y=(W=S.controller).getPanelContent)==null?void 0:y.call(W,M)))return k.return();_.TZ(S.JSC$17744_screenManager,32633);return k.yield(_.VI(S.innertubeTransportService,p),5);case 5:return D=k.yieldResult,S.JSC$17744_screenManager.graftServerVe(D.trackingParams),k.yield(S.controller.updatePanel({identifier:M,panelContents:D.content,shouldFocus:!0,extras:O,updatePanelContinuationData:D.updatePanelContinuationData}),0)}})};
Nu[fQ]=[_.Ac,_.JY,_.c3];var TB=function(p,J){this.controller=p;this.panelLoadingStrategy=J};
_.Q(TB,Oh);
TB.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O,A,P,W;return _.G(function(y){H=_.e(p,_.zy);if((M=H)==null||!M.panelLoadingStrategy)return y.return();n=voe(S.controller,(X=J)==null?void 0:(Z=X.form)==null?void 0:Z.element);F=(b=H.contextualSheetPresentationConfig)==null?void 0:b.position;O=(f=H.contextualSheetPresentationConfig)==null?void 0:f.hoverConfig;P=(A=H.contextualSheetPresentationConfig)==null?void 0:A.expandToFullWidth;W=function(t){return _.G(function(D){if(!t.sheetViewModel)return D.return();if(O){var k=
S.controller;k.shouldPreventClosingWhileHovered=!!O.preventCloseWhileHovered;var E;k.hideDelayMs=(E=O.hideDelayMs)!=null?E:0}return D.yield(S.controller.openSheet({viewModel:t.sheetViewModel,sheetPosition:F,expandToFullWidth:P},n),0)})};
return y.yield(S.panelLoadingStrategy.execute({command:p,data:H.panelLoadingStrategy,renderFn:W,createScreenConfig:{layer:0}}),0)})};
TB[fQ]=[_.Sd,DM];var dJ=function(p,J){this.controller=p;this.JSC$17755_commandHandler=J};
_.Q(dJ,Oh);dJ.prototype.resolveCommand=function(p,J){var S=this,H,M,X;return _.G(function(Z){if(Z.nextAddress==1){H=_.e(p,Bbn);var n=_.e(H.showCommand,_.Bu),b,F,f=(F=n==null?void 0:n.panelIdentifier)!=null?F:n==null?void 0:(b=n.identifier)==null?void 0:b.tag;if(!f)throw Error("Ci");M=f;return Z.yield(S.controller.isVisible(M),2)}return(X=Z.yieldResult)?Z.yield(S.controller.hidePanel({identifier:M}),0):Z.yield(S.JSC$17755_commandHandler.resolveCommand(H.showCommand,J),0)})};
dJ[fQ]=[_.JY,_.Ov];var ux=function(p,J,S){this.innertubeTransportService=p;this.controller=J;this.JSC$17758_screenManager=S};
_.Q(ux,Oh);
ux.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w,I;return _.G(function(Z3){switch(Z3.nextAddress){case 1:return H=S=_.e(p,tpo),M=H.targetPanelIdentifier,X=H.contentSourcePanelIdentifier,Z=H.globalConfiguration,((n=M)==null?0:n.tag)&&((b=X)==null?0:b.tag)?Z?Z3.yield(J.controller.showPanel({identifier:M.tag,panelContents:_.Agv(M.tag,M)}),5):Z3.yield((A=(O=J.controller).getPanel)==null?void 0:A.call(O,X.tag),4):Z3.return();case 4:P=Z3.yieldResult;F=(W=P)==
null?void 0:(t=(y=W).getPanelContent)==null?void 0:t.call(y);Z3.jumpTo(3);break;case 5:return Z3.yield(_.VI(J.innertubeTransportService,p),6);case 6:D=Z3.yieldResult,((k=D)==null?0:k.trackingParams)&&J.JSC$17758_screenManager.graftServerVe(D.trackingParams),F=(E=D)==null?void 0:E.content,f=(a=D)==null?void 0:a.updatePanelContinuationData;case 3:if(w=(q=F)==null?void 0:q.engagementPanelSectionListRenderer)return Z3.yield(J.controller.showPanel({identifier:M.tag,panelUpdatableFields:{content:w.content,
secondaryHeaderContent:(I=w.header)!=null?I:{},targetId:w.targetId,loggingDirectives:w.loggingDirectives},updatePanelContinuationData:f}),0);Z3.jumpTo(0)}})};
ux[fQ]=[_.Ac,_.JY,_.c3];var lx=function(){};
_.Q(lx,Oh);lx.prototype.resolveCommand=function(p){var J,S,H;return _.G(function(M){if(M.nextAddress==1)return(J=_.e(p,NCd))?M.yield(_.Zp(),2):M.return();S=M.yieldResult;if(!S)return M.return();var X=S,Z=(H=J)==null?void 0:H.languageCode,n;(X==null?0:(n=X.isReady)==null?0:n.call(X))&&(Z=PKs(X,Z))&&X.setAudioTrack(Z);_.UK(M)})};var VO=function(){};
_.Q(VO,ZX);_.R=VO.prototype;_.R.getApiPaths=function(){return CzE};
_.R.getExtension=function(p){return _.e(p,_.lj)};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$14333_getStoreKey=function(p){if((p=this.getExtension(p))&&p.videoId){var J={videoId:p.videoId};p.playlistId&&(J.playlistId=p.playlistId);p.index&&(J.index=p.index);p.params&&(J.params=p.params);return _.uj("next",J)}};
_.R.JSC$14326_getClientScreen=function(p){var J;return((J=p.contentPlaybackContext)==null?void 0:J.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.R.JSC$14326_buildRequest=function(p,J,S){J.videoId&&(p.videoId=J.videoId);J.playlistId&&(p.playlistId=J.playlistId);J.params&&(p.params=J.params);J.index!==void 0&&(p.playlistIndex=J.index);p.racyCheckOk=!(!S.racyCheckOk&&!J.racyCheckOk);p.contentCheckOk=!!J.contentCheckOk;S.contentPlaybackContext&&(p.autonavState=S.contentPlaybackContext.autonavState,p.playbackContext={vis:S.contentPlaybackContext.vis,lactMilliseconds:S.contentPlaybackContext.lactMilliseconds});S.prefetchPlaybackContext&&(p.context.request||
(p.context.request={}),p.context.request.isPrefetch=!0);_.z("captions_hats_killswitch")||(J=_.Gv().getFlag(65),J=J!=null?!J:!1,S=!!_.$t("yt-player-sticky-caption"),p.captionsRequested=J&&S)};
_.R.getRequestConfig=function(p){p=this.JSC$14333_getStoreKey(p);var J;p&&(J={storeStrategy:{storeKey:p}});_.z("web_log_player_watch_next_ticks")&&(J=J||{},J.requestTick="wn_s",J.responseTick="wn_r");return J};
var qu=function(){};
_.Q(qu,ZX);qu.prototype.getApiPaths=function(){return CzE};
qu.prototype.getExtension=function(p){return _.e(p,_.hm)};
qu.prototype.JSC$14326_buildRequest=function(p,J){J.token&&(p.continuation=J.token)};var aU=function(){this.innerTubeTransport=_.vO().resolve(_.Ac);this.miniplayerService=_.vO().resolve(_.DF)};
_.Q(aU,Oh);var fZf=function(p){var J;return _.G(function(S){J=_.jn("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;p.JSC$17783_mainAppPlayer=new z0(J);document.addEventListener("yt-page-data-updated",p.JSC$17783_pauseOnNavigation.bind(p));_.UK(S)})},OAe=function(p,J){var S,H,M,X;
return _.G(function(Z){if(Z.nextAddress==1){S=new VO;H=S.JSC$14326_getRequest(J);if(!H)return Z.return(void 0);M=H.innerTubeRequest;return Z.yield(_.mX(p.innerTubeTransport,M,"/youtubei/v1/next"),2)}X=Z.yieldResult;var n;var b,F,f=(n=X.contents)==null?void 0:(b=n.twoColumnWatchNextResults)==null?void 0:(F=b.playlist)==null?void 0:F.playlist,O;n=(f==null?0:(O=f.contents)==null?0:O.length)?f:void 0;return Z.return(n)})},Ayp=function(p,J){var S,H,M,X,Z;
return _.G(function(n){if(n.nextAddress==1)return S=p.JSC$17783_mainAppPlayer,n.yield(S.api,2);if(n.nextAddress!=3)return H=n.yieldResult,J.watchCommand?n.yield(OAe(p,J.watchCommand),3):n.return();M=n.yieldResult;if((X=M)==null||!X.contents)return n.return();Z=M.contents.map(function(b){var F;return(F=b.playlistPanelVideoRenderer)==null?void 0:F.videoId}).filter(function(b){return!!b}).map(function(b){return{encrypted_id:b}});
H.updatePlaylist({video:Z});_.UK(n)})},PIw=function(p,J){var S,H,M;
return _.G(function(X){return X.nextAddress==1?(S=p.JSC$17783_mainAppPlayer,M=(H=J.playerParams)!=null?H:"",J.externalVideoId?X.yield(S.loadVideoWithPlayerVars({videoId:J.externalVideoId,audio_only:"1",player_params:M}),2):X.jumpTo(2)):J.watchCommand?X.yield(Ayp(p,J),0):X.jumpTo(0)})};
aU.prototype.JSC$17783_pauseOnNavigation=function(){var p=this,J,S;return _.G(function(H){if(H.nextAddress==1)return J=p.JSC$17783_mainAppPlayer,H.yield(J.api,2);S=H.yieldResult;S.pauseVideo();_.UK(H)})};
aU.prototype.pauseVideo=function(){var p=this,J,S;return _.G(function(H){if(H.nextAddress==1)return J=p.JSC$17783_mainAppPlayer,H.yield(J.api,2);S=H.yieldResult;S.pauseVideo();_.UK(H)})};
aU.prototype.playVideo=function(){var p=this,J,S;return _.G(function(H){if(H.nextAddress==1)return J=p.JSC$17783_mainAppPlayer,H.yield(J.api,2);S=H.yieldResult;S.playVideo();_.UK(H)})};
var zmM=function(p){var J,S;return _.G(function(H){if(H.nextAddress==1)return J=p.JSC$17783_mainAppPlayer,H.yield(J.api,2);S=H.yieldResult;S.mute();_.UK(H)})},$0f=function(p){var J,S;
return _.G(function(H){if(H.nextAddress==1)return J=p.JSC$17783_mainAppPlayer,H.yield(J.api,2);S=H.yieldResult;S.unMute();_.UK(H)})};
aU.prototype.stopVideo=function(){var p=this,J,S;return _.G(function(H){if(H.nextAddress==1)return J=p.JSC$17783_mainAppPlayer,H.yield(J.api,2);S=H.yieldResult;S.stopVideo();_.UK(H)})};
var oo$=function(p,J){return _.G(function(S){switch(S.nextAddress){case 1:switch(J){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return S.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return S.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return S.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return S.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return S.jumpTo(6)}S.jumpTo(0);break;case 2:return S.yield(p.playVideo(),8);case 8:S.jumpTo(0);break;case 3:return S.yield(p.pauseVideo(),
9);case 9:S.jumpTo(0);break;case 4:return S.yield(p.stopVideo(),10);case 10:S.jumpTo(0);break;case 5:return S.yield(zmM(p),11);case 11:S.jumpTo(0);break;case 6:return S.yield($0f(p),12);case 12:S.jumpTo(0)}})};
aU.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n;return _.G(function(b){return b.nextAddress==1?(S=_.e(p,Kt8),((H=S)==null?0:H.newPlaybackParams)||((M=S)==null?0:M.controlAction)?J.JSC$17783_mainAppPlayer?b.jumpTo(2):b.yield(fZf(J),2):b.return()):((X=S)==null?0:X.newPlaybackParams)?(J.miniplayerService.isMiniplayerActive()&&((Z=J.miniplayerService.getPlayerElement())==null||Z.pause()),n=S.newPlaybackParams,n.externalVideoId||n.externalPlaylistId?b.yield(PIw(J,n),0):b.return()):b.yield(oo$(J,
S.controlAction),0)})};var EF=function(p){this.JSC$17789_commandHandler=p};
_.Q(EF,Oh);
EF.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n;return _.G(function(b){if(b.nextAddress==1)return(S=_.e(p,TCm))?b.yield(_.Zp(),2):b.return();H=b.yieldResult;if(!H)return b.return();var F=H,f=(M=S)==null?void 0:M.languageCode,O=(X=S)==null?void 0:X.isAutoTranslated;F.getVideoData&&_.$hX(F).length&&((f=eev(F,f,O))?F.setOption("captions","track",f):(F.setOption("captions","stickyLoading",{}),F.setOption("captions","track",{})));Z=H.isSubtitlesOn()?_.Kl("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Kl("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");n=_.xZ(Z,5E3);J.JSC$17789_commandHandler.resolveCommand(n);_.UK(b)})};
EF[fQ]=[_.Ov];var Yg=function(p,J){this.shortsPlayerPromise=p;this.JSC$17793_commandHandler=J};
_.Q(Yg,Oh);
Yg.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b,F;return _.G(function(f){if(f.nextAddress==1)return(S=_.e(p,X38))?f.yield(J.shortsPlayerPromise,2):f.return();H=f.yieldResult;var O=WDv(H);O!=null&&O.length||(H.loadModule("captions"),O=WDv(H));M=O;if((X=M)==null||!X.length)return Z=_.Kl("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),n=_.xZ(Z),J.JSC$17793_commandHandler.resolveCommand(n),f.return();H.toggleSubtitles();b=H.isSubtitlesOn()?_.Kl("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Kl("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");F=_.xZ(b);J.JSC$17793_commandHandler.resolveCommand(F);_.UK(f)})};
Yg[fQ]=[_.SPM,_.Ov];var rJ=function(p){this.JSC$17796_actionRouter=p;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(J,S){J.triggerAction("yt-dismiss-shopping-timely-shelf-action",S);(J=_.vO().resolve(_.F9(_.bjm)))&&J.dismissFeaturedProductOverlay()}]])};
_.Q(rJ,Oh);rJ.prototype.resolveCommand=function(p){var J=this,S,H,M;return _.G(function(X){S=_.e(p,V78);if((H=S)==null||!H.overlayId)return X.return();M=J.dismissPlayerOverlayActions.get(S.overlayId);if(!M)throw Error("Di`"+S.overlayId);M(J.JSC$17796_actionRouter,S);_.UK(X)})};
rJ[fQ]=[C5];var je=function(p){this.JSC$17800_playerPromise=p};
_.Q(je,Oh);je.prototype.resolveCommand=function(p){var J=this,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return(S=_.e(p,Ccn))?Z.yield(J.JSC$17800_playerPromise,2):Z.return();H=Z.yieldResult;M=H.getVideoData().video_id;S.videoId===M&&(X=Number(S.offsetFromVideoStartMilliseconds),X>=0&&H.seekTo(X/1E3));_.UK(Z)})};
je[fQ]=[_.H$];var emI=_.io("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),wJ=function(p){this.store=p};
_.Q(wJ,Oh);
var W9p=function(p){var J,S,H,M;return _.G(function(X){if(X.nextAddress==1)return J=_.jn("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,S=_.jn("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,H=J||S,p.JSC$17804_mainAppPlayer=new z0(H),X.yield(p.JSC$17804_mainAppPlayer.api,2);M=X.yieldResult;M.addEventListener("onStateChange",p.JSC$17804_playerStateChangeListener.bind(p));document.addEventListener("yt-page-data-updated",p.JSC$17804_pauseOnNavigation.bind(p));window.addEventListener("state-navigatestart",
p.JSC$17804_pauseOnNavigation.bind(p));_.UK(X)})};
wJ.prototype.JSC$17804_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"}QrP(this)};
var QrP=function(p){p.store.dispatch(_.P$("sfvAudioItemCurrentlyPlayingEntity",emI,{key:emI,externalVideoId:p.externalVideoId,sfvAudioItemPlaybackState:p.playbackState,nowPlayingEntityValue:p.nowPlayingEntityValue}))};
wJ.prototype.JSC$17804_pauseOnNavigation=function(){var p=this,J,S,H,M;return _.G(function(X){if(X.nextAddress==1){if(!p.JSC$17804_mainAppPlayer){var Z=new _.TG("Error: mainAppPlayer is unavailable",p.JSC$17804_mainAppPlayer);_.jD(Z);return X.return()}return X.yield(p.JSC$17804_mainAppPlayer.api,2)}J=X.yieldResult;H=(S=J)==null?void 0:S.getPlayerState();H!==1||(M=J)!=null&&M.pauseVideo();_.UK(X)})};
wJ.prototype.playVideo=function(p,J,S){var H=this,M,X;return _.G(function(Z){if(Z.nextAddress==1)return Z.yield((M=H.JSC$17804_mainAppPlayer)==null?void 0:M.api,2);X=Z.yieldResult;if(!H.JSC$17804_mainAppPlayer||!X){var n=new _.TG("Error: mainAppPlayer is unavailable",H.JSC$17804_mainAppPlayer);_.jD(n);return Z.return()}return Z.yield(H.JSC$17804_mainAppPlayer.loadVideoWithPlayerVars({videoId:H.externalVideoId,audio_only:"1",start:p/1E3,end:p/1E3+J,player_params:S}),0)})};
wJ.prototype.pauseVideo=function(){var p=this,J,S;return _.G(function(H){if(H.nextAddress==1){if(!p.JSC$17804_mainAppPlayer){var M=new _.TG("Error: mainAppPlayer is unavailable",p.JSC$17804_mainAppPlayer);_.jD(M);return H.return()}return H.yield(p.JSC$17804_mainAppPlayer.api,2)}J=H.yieldResult;(S=J)==null||S.pauseVideo();_.UK(H)})};
wJ.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a;return _.G(function(q){if(q.nextAddress==1)return S=_.e(p,S7v),M=(H=S)==null?void 0:H.nowPlayingEntityValue,Z=(X=S)==null?void 0:X.externalVideoId,O=Number((f=(n=S)==null?void 0:(b=n.defaultStartPoints)==null?void 0:(F=b[0])==null?void 0:F.offsetMs)!=null?f:"0"),D=Number((t=(A=S)==null?void 0:(P=A.defaultStartPoints)==null?void 0:(W=P[0])==null?void 0:(y=W.duration)==null?void 0:y.seconds)!=null?t:"15"),a=(E=
(k=S)==null?void 0:k.playerParams)!=null?E:"",M&&Z?J.JSC$17804_mainAppPlayer?q.jumpTo(2):q.yield(W9p(J),2):q.return();if(q.nextAddress!=6){if(J.nowPlayingEntityValue&&M===J.nowPlayingEntityValue)return J.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?q.yield(J.pauseVideo(),0):q.yield(J.playVideo(O,D,a),0);J.externalVideoId=Z;J.nowPlayingEntityValue=M;J.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return q.yield(J.playVideo(O,D,a),6)}QrP(J);return q.jumpTo(0)})};
wJ[fQ]=[Hu];var xg=function(p){this.JSC$17822_commandHandler=p};
_.Q(xg,Oh);xg.prototype.resolveCommand=function(p,J){var S=this,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return(H=_.e(p,dlE))?Z.yield(_.Zp(),2):Z.return();M=Z.yieldResult;if(!M)return Z.return();(X=Qpt(M))&&S.JSC$17822_commandHandler.resolveCommand(X,J);_.UK(Z)})};
xg[fQ]=[_.Ov];var cQ=function(p){this.JSC$17828_commandHandler=p};
_.Q(cQ,Oh);cQ.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n;return _.G(function(b){if(b.nextAddress==1)return(H=_.e(p,uY8))?b.yield(_.Zp(),2):b.return();M=b.yieldResult;if(!M)return b.return();(X=spt(M))?S.JSC$17828_commandHandler.resolveCommand(X,J):(Z=_.Kl("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),n=_.xZ(Z),S.JSC$17828_commandHandler.resolveCommand(n));_.UK(b)})};
cQ[fQ]=[_.Ov];var IU=function(p){this.JSC$17831_playerPromise=p};
_.Q(IU,Oh);IU.prototype.resolveCommand=function(p){var J=this,S,H;return _.G(function(M){if(M.nextAddress==1)return(S=_.e(p,aUM))?M.yield(J.JSC$17831_playerPromise,2):M.return();H=M.yieldResult;H.isFullscreen()&&H.wakeUpControls();_.UK(M)})};
IU[fQ]=[_.H$];var Lc=function(p){this.JSC$17834_playerPromise=p};
_.Q(Lc,Oh);Lc.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z;return _.G(function(n){if(n.nextAddress==1){S=_.e(p,yWM);if(!S)return n.return();H=S.overlayRenderer;return H?(M=_.e(H,Ih8))?n.yield(J.JSC$17834_playerPromise,3):n.jumpTo(0):n.return()}X=n.yieldResult;X.renderChapterSeekingAnimation(1,_.E4(M.text),(Z=M.icon)==null?void 0:Z.iconType);_.UK(n)})};
Lc[fQ]=[_.H$];var p9=function(p){this.store=p};
_.Q(p9,Oh);
p9.prototype.resolveCommand=function(p){var J=this,S,H,M;return _.G(function(X){if(X.nextAddress==1){S=_.e(p,Zon);if(!S)return X.return();H="";(M=J.store.getState().collabInviteLink)&&S.id===M.playlistId?H=M.inviteLinkURL:S.shortUrl&&(H=S.shortUrl);return H?X.yield(navigator.clipboard.writeText(H),3):X.jumpTo(0)}var Z={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Kl("COPY_LINK_SUCCESS_TOAST")}}}}};_.vO().resolve(_.Ov).resolveCommand(Z);_.UK(X)})};
p9[fQ]=[bx];var JK=function(p,J){this.innertubeTransportService=p;this.JSC$17844_commandHandler=J};
_.Q(JK,Oh);JK.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O,A;return _.G(function(P){if(P.nextAddress==1)return(H=_.e(p,_.bq))?P.yield(_.VI(S.innertubeTransportService,p,(M=J)==null?void 0:M.form),2):P.return();(X=P.yieldResult)&&X.errorMetadata&&(Z=X,n=_.xZ(Z.error.message),S.JSC$17844_commandHandler.resolveCommand(n));b=X;if((F=b)==null?0:F.actions)for(f=_.K(b.actions),O=f.next();!O.done;O=f.next())A=O.value,S.JSC$17844_commandHandler.resolveCommand(A);_.UK(P)})};
JK[fQ]=[_.Ac,_.Ov];var SW=function(){};
_.Q(SW,Oh);SW.prototype.resolveCommand=function(p){var J;return _.G(function(S){J=_.e(p,LZo);if(!J)return S.return();(new Ba4(J)).show();_.UK(S)})};_.HU=new _.ni("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Mi=function(p,J,S,H){this.store=p;this.innertubeTransportService=J;this.controller=S;this.JSC$17852_commandHandler=H};
_.Q(Mi,Oh);
Mi.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w,I,Z3,vg,yX,Pg,ov;return _.G(function(NW){if(NW.nextAddress==1){H=_.e(p,_.XY);if(!H)return NW.return();if(H.clientActions){M=_.K(H.clientActions);for(X=M.next();!X.done;X=M.next())Z=X.value,S.JSC$17852_commandHandler.resolveCommand(Z,J);var TW,Ys=J==null?void 0:(TW=J.form)==null?void 0:TW.element;Ys&&_.cf(Ys,"yt-dismissible-item-action",H.clientActions)}return NW.yield(_.VI(S.innertubeTransportService,p,(n=
J)==null?void 0:n.form),2)}if(b=NW.yieldResult)b.errorMetadata?(F=b,f=_.xZ(F.error.message),S.JSC$17852_commandHandler.resolveCommand(f),"error"in b&&((O=J)==null?0:(A=O.commandController)==null?0:A.onServerError)&&((P=J)==null||(W=P.commandController)==null||W.onServerError(p,b))):(y=J)==null||(t=y.commandController)==null||(k=(D=t).onSuccess)==null||k.call(D,p,b);E=b;((a=E)==null?0:a.collaborationInviteLink)&&H.playlistId&&(_.z("web_enable_invite_collaborators_link")||_.z("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
S.store.dispatch(_.Jk({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:H.playlistId,inviteLinkUrl:E.collaborationInviteLink}}));((q=E)==null?0:q.redirectEndpoint)&&S.JSC$17852_commandHandler.resolveCommand(E.redirectEndpoint);((w=E)==null?0:(I=w.newHeader)==null?0:I.playlistHeaderRenderer)?CIp(S.controller,E.newHeader.playlistHeaderRenderer):((Z3=E)==null?0:(vg=Z3.newHeader)==null?0:vg.musicEditablePlaylistDetailHeaderRenderer)&&CIp(S.controller,E.newHeader.musicEditablePlaylistDetailHeaderRenderer);
S.controller.playlistVideoListElement&&((yX=E)==null?0:(Pg=yX.playlistEditResults)==null?0:(ov=Pg[0])==null?0:ov.playlistEditVideoAddedResultData)&&((Ys=S.controller.playlistVideoListElement)==null||Ys.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:E.playlistEditResults[0].playlistEditVideoAddedResultData})));_.UK(NW)})};
Mi[fQ]=[_.XN,_.Ac,_.HU,_.Ov];var XW=function(p,J){this.controller=p;this.JSC$17862_commandHandler=J};
_.Q(XW,Oh);XW.prototype.resolveCommand=function(p,J){var S=this,H,M,X;return _.G(function(Z){H=_.e(p,n9p);S.controller.showRefreshPill&&((M=H)==null?0:M.command)&&(S.JSC$17862_commandHandler.resolveCommand((X=H)==null?void 0:X.command,J),S.controller.showRefreshPill=!1);_.UK(Z)})};
XW[fQ]=[_.uE,_.Ov];var iU=function(p,J){this.store=p;this.JSC$17866_commandHandler=J||_.R4.instance};
_.Q(iU,Oh);iU.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O,A;return _.G(function(P){H=_.e(p,Wtm);M=S.store.getState().radioButtonGroup;if((X=H)==null?0:X.command)S.JSC$17866_commandHandler.resolveCommand((Z=H)==null?void 0:Z.command,J);else if(M&&((n=H)==null?void 0:n.formId)===M.currentFormId)for(b=Object.values(M.commandsMap),F=_.K(b),f=F.next();!f.done;f=F.next())O=f.value,(A=_.sa(O))&&S.JSC$17866_commandHandler.resolveCommand(A,J);_.UK(P)})};
iU[fQ]=[_.XN];var RN=new _.ni("USER_PREFS");var K9=function(p){this.JSC$17871_prefCookie=p};
_.Q(K9,Oh);K9.prototype.resolveCommand=function(p){var J=this,S;return _.G(function(H){(S=_.e(p,Ee8))&&typeof S.useListView==="boolean"&&(_.b7(0,155,S.useListView),J.JSC$17871_prefCookie.save());_.UK(H)})};
K9[fQ]=[RN];var Zs=function(p){this.JSC$17875_prefCookie=p};
_.Q(Zs,Oh);Zs.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z;return _.G(function(n){S=_.e(p,JQq);if((H=S)==null||!H.gl)return n.return();M=S.gl;X={persist_gl:"1",gl:M};J.JSC$17875_prefCookie.set("gl",M);J.JSC$17875_prefCookie.save();Z=fdo(X);_.hc(Z);_.UK(n)})};
Zs[fQ]=[RN];var n9=function(p){this.JSC$17879_prefCookie=p};
_.Q(n9,Oh);n9.prototype.resolveCommand=function(p){var J=this,S,H;return _.G(function(M){S=_.e(p,bon);if(!S)return M.return();H=!1;S.flagNum&&typeof S.value==="boolean"?(_.b7(0,S.flagNum,S.value),H=!0):S.key&&typeof S.stringValue==="string"&&(J.JSC$17879_prefCookie.set(S.key,S.stringValue),H=!0);H&&J.JSC$17879_prefCookie.save();_.UK(M)})};
n9[fQ]=[RN];var Gz=new _.ni("PREF_STORAGE_PROMISE_TOKEN");var bU=function(p){this.JSC$17883_prefStoragePromise=p};
_.Q(bU,Oh);bU.prototype.resolveCommand=function(p){var J=this,S,H;return _.G(function(M){if(M.nextAddress==1)return(S=_.e(p,Ftn))?M.yield(J.JSC$17883_prefStoragePromise,2):M.return();H=M.yieldResult;return H===void 0||S.key===void 0||S.value===void 0?M.return():M.yield(H.set(S.key,S.value),0)})};
bU[fQ]=[Gz];var mL=function(p){this.innertubeTransportService=p};
_.Q(mL,Oh);mL.prototype.resolveCommand=function(p,J){var S=this,H,M;return _.G(function(X){(H=_.e(p,_.QxM))&&H&&H.isFirstRequest&&(_.W9("search_overview_answer"),_.Qf("so_rq",void 0,"search_overview_answer"));return X.yield(_.VI(S.innertubeTransportService,p,(M=J)==null?void 0:M.form),0)})};
mL[fQ]=[_.Ac];var yy$=function(){};
_.Q(yy$,Oh);
yy$.prototype.resolveCommand=function(p){var J,S,H,M,X,Z,n,b,F;return _.G(function(f){J=_.e(p,QQ8);if((S=J)==null?0:S.sectionIdentifier){if(J.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(M=(H=document.getElementsByTagName(J.sectionIdentifier))==null?void 0:H.item(0))M.scrollIntoView({behavior:"smooth"}),(X=n2i(M))&&X.focus({preventScroll:!0});return f.return()}Z=document.querySelector("[section-identifier="+J.sectionIdentifier+"]");n=document.querySelector("[section-identifier="+J.referenceSectionIdentifier+
"]");if(!Z)return f.return();b=J.verticalScrollOffsetDp?J.verticalScrollOffsetDp:0;n&&(b-=n.offsetTop);window.scrollTo({top:Z.offsetTop+b,behavior:"smooth"});(F=n2i(Z))&&F.focus({preventScroll:!0})}_.UK(f)})};var FW=function(p){this.JSC$17895_commandHandler=p};
_.Q(FW,Oh);
FW.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b;return _.G(function(F){if(F.nextAddress==1){S=_.e(p,w7m);if(!S||!S.imageBytes||!navigator.clipboard)return F.return();if(S.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.jD(Error("Fi")),F.return();_.oI(F,2);M=(H=S)==null?void 0:H.imageBytes;X=M.replace(/-/g,"+").replace(/_/g,"/");Z=G4i(X);n={};b=[new ClipboardItem((n[Z.type]=Z,n))];return F.yield(navigator.clipboard.write(b),4)}if(F.nextAddress!=2)return S.successCommand&&
J.JSC$17895_commandHandler.resolveCommand(S.successCommand),_.X$(F,0);_.BZ(F);S.errorCommand&&J.JSC$17895_commandHandler.resolveCommand(S.errorCommand);_.UK(F)})};
FW[fQ]=[_.Ov];var vU=function(p,J){this.innertubeTransportService=p;this.JSC$17899_commandHandler=J};
_.Q(vU,Oh);vU.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n;return _.G(function(b){if(b.nextAddress==1)return(H=_.e(p,xF8))?b.yield(_.VI(S.innertubeTransportService,p,(M=J)==null?void 0:M.form),2):b.return();(X=b.yieldResult)&&X.errorMetadata&&H.onFailureCommand&&S.JSC$17899_commandHandler.resolveCommand(H.onFailureCommand);Z=X;((n=Z)==null?0:n.shareCommand)&&S.JSC$17899_commandHandler.resolveCommand(Z.shareCommand,J);_.UK(b)})};
vU[fQ]=[_.Ac,_.Ov];var f9=function(){};
_.Q(f9,Oh);f9.prototype.resolveCommand=function(p){var J,S;return _.G(function(H){J=_.e(p,Rc8);if(!J||!navigator.share)return H.return();S={url:J.url};try{return H.return(navigator.share(S))}catch(M){}_.UK(H)})};var Of=function(){};
_.Q(Of,Oh);Of.prototype.resolveCommand=function(){return _.G(function(p){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.UK(p)})};var AK=function(p){this.JSC$17909_navigationConfirmationService=p};
_.Q(AK,Oh);AK.prototype.resolveCommand=function(){var p=this;return _.G(function(J){p.JSC$17909_navigationConfirmationService.cancelPendingNavigation();_.UK(J)})};
AK[fQ]=[rU];var PU=function(p){this.JSC$17912_screenManager=p};
_.Q(PU,Oh);PU.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F;return _.G(function(f){M=(H=J.form)==null?void 0:H.event;Z=(X=J.form)==null?void 0:X.element;if(!M)throw new _.TG("Event not passed in when resolving command");n=_.K(M.composedPath());for(b=n.next();!b.done;b=n.next())if(F=b.value,F.tagName==="YT-COPY-LINK-RENDERER")return F.copyUrlToClipboard(),Z&&_.dn(S.JSC$17912_screenManager,Z),f.return();_.UK(f)})};
PU[fQ]=[_.c3];var zz=function(){this.JSC$17916_miniAppClientDataProvider=_.vO().resolve(_.CR)};
_.Q(zz,Oh);zz.prototype.resolveCommand=function(){var p=this,J,S;return _.G(function(H){if(p.JSC$17916_miniAppClientDataProvider.clientData.has("video_id")){var M=p.JSC$17916_miniAppClientDataProvider,X=M.clientData.get("video_id");X&&M.clientData.delete("video_id");J="https://youtube.com/watch?v="+X;S=_.uv(J);if(S===void 0)throw Error("Gi`"+J);_.Ju(window,S)}_.UK(H)})};var $$=function(){};
_.Q($$,Oh);$$.prototype.resolveCommand=function(){return _.G(function(p){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.UK(p)})};var oN=function(){};
_.Q(oN,Oh);oN.prototype.resolveCommand=function(){var p;return _.G(function(J){if(J.nextAddress==1)return J.yield(_.Lti(window.document.documentElement),2);(p=document.querySelector("mini-app-container-view-model iframe"))&&p.focus();_.UK(J)})};var eW=function(p){this.JSC$17923_navigationConfirmationService=p};
_.Q(eW,Oh);
eW.prototype.resolveCommand=function(){var p=this;return _.G(function(J){var S=p.JSC$17923_navigationConfirmationService,H=_.vO().resolve(_.lc),M;if(((M=S.navigateParams)==null?void 0:M.data)!==void 0){var X;_.Nu8(H,S.navigateParams.endpoint,S.navigateParams.data,(X=S.navigateParams.navigationType)!=null?X:1,S.navigateParams.tempData,S.navigateParams.isMiniplayer,void 0,!0);S.navigateParams=void 0;S.customConfirmationCommand=void 0}else S.navigateParams&&(H.navigate(S.navigateParams.endpoint,S.navigateParams.reload,
S.navigateParams.params,S.navigateParams.tempData,S.navigateParams.requestType,S.navigateParams.createScreenConfig,!0),S.navigateParams=void 0,S.customConfirmationCommand=void 0);_.UK(J)})};
eW[fQ]=[rU];var WU=function(){};
_.Q(WU,Oh);WU.prototype.resolveCommand=function(){return _.G(function(p){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.UK(p)})};var Q_=function(p){this.JSC$17928_prefStorage=p};
_.Q(Q_,Oh);Q_.prototype.resolveCommand=function(){var p=this,J,S;return _.G(function(H){switch(H.nextAddress){case 1:return H.yield(p.JSC$17928_prefStorage,2);case 2:return(J=H.yieldResult)?H.yield(J.set("sfvle",!1),3):H.return();case 3:return H.yield(J.set("sfvles",!0),4);case 4:S=_.Gv(),_.b7(0,203,!1),_.b7(0,204,!0),S.save(),_.UK(H)}})};
Q_[fQ]=[Gz];var C9=function(p){this.JSC$17931_prefStorage=p};
_.Q(C9,Oh);C9.prototype.resolveCommand=function(){var p=this,J,S;return _.G(function(H){switch(H.nextAddress){case 1:return H.yield(p.JSC$17931_prefStorage,2);case 2:return(J=H.yieldResult)?H.yield(J.set("sfvle",!0),3):H.return();case 3:return H.yield(J.set("sfvles",!0),4);case 4:S=_.Gv(),_.b7(0,203,!0),_.b7(0,204,!0),S.save(),_.UK(H)}})};
C9[fQ]=[Gz];_.B2e=new _.ni("SNACKBAR_CONTROLLER_TOKEN");_.U0p=new _.ni("SHOULD_SHOW_PIVOT_BAR_TOKEN");var y_=function(p){this.controller=p};
_.Q(y_,Oh);y_.prototype.resolveCommand=function(p){var J=this,S;return _.G(function(H){S=_.e(p,Zam);if(!S)return H.return();var M=J.controller;M.closeSnackbarFn&&M.closeSnackbarFn();_.UK(H)})};
y_[fQ]=[_.B2e];var BU=function(p,J){this.controller=p;this.JSC$17938_sheetController=J};
_.Q(BU,Oh);BU.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b;return _.G(function(F){H=_.e(p,G0v);if(!H)return F.return();Z=voe(S.JSC$17938_sheetController,(M=J)==null?void 0:(X=M.form)==null?void 0:X.element);n=_.e(H.content,QBm);if(!n)return F.return();var f=S.controller,O=n,A=(b=H.animationStyle)!=null?b:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(f.showSnackbarFn)f.showSnackbarFn({snackbarViewModel:O,animationStyle:A,durationMs:H.durationSeconds*1E3,target:Z});else throw Error("zj");_.UK(F)})};
BU[fQ]=[_.B2e,_.Sd];var Uf=function(){};
_.Q(Uf,Oh);Uf.prototype.resolveCommand=function(p){var J;return _.G(function(S){J=_.e(p,m3p);if(!J||typeof J.key!=="string"||typeof J.value!=="string")return S.return();window.localStorage.setItem(J.key,J.value);_.UK(S)})};var sf=function(p){this.store=p};
_.Q(sf,Oh);sf.prototype.resolveCommand=function(p){var J=this,S;return _.G(function(H){S=_.e(p,FJi);if(!S||!S.stepId||!S.token)return H.return();J.store.dispatch(XIE({stepId:S.stepId,token:S.token,isSelected:!1}));_.UK(H)})};
sf[fQ]=[bx];var gj=function(p,J,S){this.innertubeTransportService=p;this.store=J;this.JSC$17950_screenManager=S};
_.Q(gj,Oh);
gj.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w,I,Z3,vg;return _.G(function(yX){S=_.e(p,RhM);if(!S||(H=S.stepIds)==null||!H.length)return yX.return();M=J.store.getState().talkToRecs;X=[];Z=[];n=_.K(S.stepIds);for(b=n.next();!b.done;b=n.next())for(F=b.value,f=void 0,(O=(f=M.stepStates[F])==null?void 0:f.userQuery)&&Z.push({userQuery:S.submitEmptyUserQuery?"":O.userQuery,userQueryToken:O.token}),P=A=void 0,W=(P=(A=M.stepStates[F])==null?void 0:A.selectionStates)!=
null?P:{},y=_.K(Object.entries(W)),t=y.next();!t.done;t=y.next())D=t.value,k=_.K(D),E=k.next().value,a=k.next().value,q=E,w=a,w.isSelected&&X.push(q);I={selectedChipTokens:X,userQueries:Z,submittedStepIds:S.stepIds};Z3={browseTalk2recsFormData:I};S.browseEndpoint?(vg=p,_.QM(vg,_.Ge,S.browseEndpoint)):S.command&&(vg=S.command);return vg?yX.yield(_.VI(J.innertubeTransportService,vg,{formData:Z3,disableCache:!0}).then(function(Pg){(Pg==null?0:Pg.trackingParams)&&J.JSC$17950_screenManager.graftServerVe(Pg==
null?void 0:Pg.trackingParams)}),0):yX.return()})};
gj[fQ]=[_.Ac,bx,_.c3];var tK=function(p){this.store=p};
_.Q(tK,Oh);
tK.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b,F;return _.G(function(f){S=_.e(p,mSW);if(!S||!S.stepId)return f.return();if(S.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")Z=(X=(H=J.store.getState().talkToRecs.stepStates[S.stepId])==null?void 0:(M=H.userQuery)==null?void 0:M.userQuery)!=null?X:"",n=Z.length>0?". ":"",b=Z+n+S.selectedText,J.store.dispatch(iS8({stepId:S.stepId,userQueryToken:"",userQuery:b}));else if(S.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")J.store.dispatch(iS8({stepId:S.stepId,userQueryToken:"",
userQuery:(F=S.selectedText)!=null?F:""}));else{if(!S.token)return f.return();J.store.dispatch(XIE({stepId:S.stepId,token:S.token,isSelected:!0}))}_.UK(f)})};
tK[fQ]=[bx];var hK=function(p){this.store=p};
_.Q(hK,Oh);hK.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b;return _.G(function(F){H=_.e(p,EKv);if(!H||!H.stepId)return F.return();n=(Z=(M=J)==null?void 0:(X=M.form)==null?void 0:X.userQuery)!=null?Z:"";S.store.dispatch(iS8({stepId:H.stepId,userQuery:n,userQueryToken:(b=H.userQueryToken)!=null?b:""}));_.UK(F)})};
hK[fQ]=[bx];_.sry=new _.ni("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Ds=function(p){this.controller=p};
_.Q(Ds,Oh);Ds.prototype.resolveCommand=function(p){var J=this,S,H,M,X;return _.G(function(Z){S=_.e(p,owv);if(!S)return Z.return();H=S;M=H.id;X=H.isVisible;if(M===void 0||X===void 0)return Z.return();var n;(n=J.controller.timelyActionsMap.get(M))==null||n(M,X);_.UK(Z)})};
Ds[fQ]=[_.sry];var goP=function(){this.timelyActionsMap=new Map};var k$=function(p){this.JSC$17976_commandHandler=p};
_.Q(k$,Oh);k$.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z;return _.G(function(n){S=_.e(p,_.gD8);if(!S)return n.return();X=(H=S.item)==null?void 0:(M=H.notificationTextRenderer)==null?void 0:M.successResponseText;if(!X)return n.return();Z=_.wl(X);J.JSC$17976_commandHandler.resolveCommand(Z);_.UK(n)})};
k$[fQ]=[_.Ov];var Ni=function(p,J){this.innertubeTransportService=p;this.JSC$17981_playerApiPromise=J};
_.Q(Ni,Oh);
Ni.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b,F,f;return _.G(function(O){if(O.nextAddress==1)return O.yield(J.JSC$17981_playerApiPromise,2);S=O.yieldResult;H=S.getOption("captions","track");M=Object.assign({},_.e(p,_.kQp));(Z=(X=S.getVideoData())==null?void 0:X.video_id)?M.externalVideoId=Z:_.SB(Error("Hi"));if((n=H)==null?0:n.languageCode)M.languageCode=H.languageCode;if((b=H)==null?0:b.kind)M.kind=H.kind;if((F=H)==null?0:F.name)M.name=H.name;f=Object.assign({},p,{getTranscriptEndpoint:M});return O.yield(_.VI(J.innertubeTransportService,
f),0)})};
Ni[fQ]=[_.Ac,_.H$];var Tz=function(){};
_.Q(Tz,Oh);Tz.prototype.resolveCommand=function(p){var J,S,H,M,X,Z,n,b;return _.G(function(F){J=_.e(p,ecv);if((S=J)==null||!S.paramKeyValuePairs)return F.return();H=window.location.href;M=_.K(J.paramKeyValuePairs);for(X=M.next();!X.done;X=M.next())Z=X.value,Z.key&&Z.value&&(n={},H=_.Ry(H,(n[Z.key]=Z.value,n)));b=_.vO().resolve(_.qg);_.V$(b,H);_.UK(F)})};_.dj=new _.ni("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var uU=function(p,J,S,H){this.controller=p;this.JSC$17988_playerApiPromise=J;this.innertubeTransportService=S;this.JSC$17988_commandHandler=H};
_.Q(uU,Oh);
uU.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E;return _.G(function(a){if(a.nextAddress==1){S=_.e(p,E4o);if((H=S)==null||!H.watchEndpoint)return a.return();M=new VO;X=M.JSC$14326_getRequest(S.watchEndpoint);if(!X)return a.return();Z=S.watchEndpoint.clickTrackingParams;return a.yield(_.mX(J.innertubeTransportService,X.innerTubeRequest,X.input,Z,X.config),2)}if(a.nextAddress!=3)return n=a.yieldResult,a.yield(J.JSC$17988_playerApiPromise,3);b=a.yieldResult;b.updateVideoData({raw_watch_next_response:n});
if(W=(F=n)==null?void 0:(f=F.contents)==null?void 0:(O=f.twoColumnWatchNextResults)==null?void 0:(A=O.results)==null?void 0:(P=A.results)==null?void 0:P.contents)t=(y=W.find(function(q){return q.videoPrimaryInfoRenderer}))==null?void 0:y.videoPrimaryInfoRenderer,((D=t)==null?0:D.subtitle)&&t6w(J.controller,t.subtitle);
(E=(k=n)==null?void 0:k.onUiReady)&&J.JSC$17988_commandHandler.resolveCommand(E);_.UK(a)})};
uU[fQ]=[_.dj,_.H$,_.Ac,_.Ov];var hmI=function(){this.subtitleChangeCallbackMap=new Map},t6w=function(p,J){p=_.K(p.subtitleChangeCallbackMap.values());
for(var S=p.next();!S.done;S=p.next())S=S.value,S(J)};var lU=function(p,J){this.JSC$17998_commandHandler=p;this.innertubeTransportService=J};
_.Q(lU,Oh);
lU.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E;return _.G(function(a){switch(a.nextAddress){case 1:return(X=(H=J)==null?void 0:(M=H.form)==null?void 0:M.element)&&_.k8(X),Z=_.Gv().get("hl"),n="",_.oI(a,2),a.yield(Dhw(Z),4);case 4:n=a.yieldResult;_.X$(a,3);break;case 2:return _.BZ(a),X&&_.NB(X),_.jD(Error("Ji"),"ERROR"),a.return();case 3:b=_.e(p,iFL);if(!b)return X&&_.NB(X),a.return();(O=(F=b.commerceActionConfig)==null?void 0:(f=F.commandLifeCycleConfig)==null?
void 0:f.onStartCommand)&&S.JSC$17998_commandHandler.resolveCommand(O);return a.yield(_.VI(S.innertubeTransportService,p,{client_data:{paymentsClientToken:{token:n}}}),5);case 5:(A=a.yieldResult)?(X&&_.NB(X),((t=A)==null?0:t.command)&&S.JSC$17998_commandHandler.resolveCommand(A.command),(E=(D=b.commerceActionConfig)==null?void 0:(k=D.commandLifeCycleConfig)==null?void 0:k.onSuccessCommand)&&S.JSC$17998_commandHandler.resolveCommand(E)):(X&&_.NB(X),_.jD(Error("Ki")),(y=(P=b.commerceActionConfig)==
null?void 0:(W=P.commandLifeCycleConfig)==null?void 0:W.onFailureCommand)&&S.JSC$17998_commandHandler.resolveCommand(y)),_.UK(a)}})};
lU[fQ]=[_.Ov,_.Ac];var V_=function(p,J,S){this.store=p;this.JSC$18014_commandHandler=J;this.innertubeTransportService=S};
_.Q(V_,Oh);
V_.prototype.resolveCommand=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O;return _.G(function(A){H=_.e(p,RJ8);M=H.googlePaymentPayload;H.onStartCommand&&S.JSC$18014_commandHandler.resolveCommand(H.onStartCommand);X=M.encryptedPurchaseParams;Z=M.ypcLogWalletAnalyticDataEndpoint;n=H.serializedTransactionFlowLoggingParams;b=M.serializedPaymentsClientParams;F=H.ypcCujContext;O=T8X(S.innertubeTransportService,(f=J)==null?void 0:f.form,X,Z,n,b,F);return A.return(O.then(function(P){k4s(J==null?void 0:J.form,
!1);var W=S.store,y=S.JSC$18014_commandHandler,t=P.integratorData;t==null||t===""||P.error!=null?(String(P.error)==="-1"&&H.onDismissCommand?y.resolveCommand(H.onDismissCommand):String(P.error)!=="-1"&&H.onFailureCommand&&y.resolveCommand(H.onFailureCommand),String(P.error)!=="-1"&&String(P.error)!=="132"&&_.jD(Error("Li"),"ERROR")):(H.googlePaymentEntityKey&&W.dispatch(_.P$("commerceAcquisitionClientPayloadEntity",H.googlePaymentEntityKey,{key:H.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:t,
fundsGuaranteeCallbackClientData:P.integratorClientCallbackData}}})),H.onSuccessCommand&&y.resolveCommand(H.onSuccessCommand));_.SU()},function(P){k4s(J==null?void 0:J.form,!1);
_.jD(P,"ERROR");H.onFailureCommand&&S.JSC$18014_commandHandler.resolveCommand(H.onFailureCommand)}))})};
V_[fQ]=[Hu,_.Ov,_.Ac];var qi=function(p,J){this.JSC$18018_commandHandler=p;this.purchaseManager=J};
_.Q(qi,Oh);
qi.prototype.resolveCommand=function(p){var J=this,S,H,M,X,Z,n,b,F,f;return _.G(function(O){S=_.e(p,KxL);((H=S)==null?0:(M=H.commandLifeCycleConfig)==null?0:M.onStartCommand)&&J.JSC$18018_commandHandler.resolveCommand(S.commandLifeCycleConfig.onStartCommand);if(!((X=S)==null?0:(Z=X.googlePaymentPurchaseManagerPayload)==null?0:Z.securePayloadBytes))return _.jD(Error("Mi"),"ERROR"),O.return();n=j4E(_.cg(S.googlePaymentPurchaseManagerPayload.securePayloadBytes));b=_.Gv().get("hl");F=_.qr();P0P(n.serialize(),
b,function(A){F.resolve(A)},function(A){F.reject(A)},F.resolve);
f=F.promise;return O.return(f.then(function(A){if(A)if(A==null?0:A.errorCode){_.jD(Error("Ni`"+A.errorCode),"ERROR");var P,W;((P=S)==null?0:(W=P.commandLifeCycleConfig)==null?0:W.onFailureCommand)&&J.JSC$18018_commandHandler.resolveCommand(S.commandLifeCycleConfig.onFailureCommand)}else if(A==null?0:A.isCancelled){var y,t;((y=S)==null?0:(t=y.commandLifeCycleConfig)==null?0:t.onCancelCommand)&&J.JSC$18018_commandHandler.resolveCommand(S.commandLifeCycleConfig.onCancelCommand)}else{var D,k;((D=S)==
null?0:(k=D.commandLifeCycleConfig)==null?0:k.onSuccessCommand)&&J.JSC$18018_commandHandler.resolveCommand(S.commandLifeCycleConfig.onSuccessCommand)}},function(A){_.jD(A,"ERROR");
var P,W;((P=S)==null?0:(W=P.commandLifeCycleConfig)==null?0:W.onFailureCommand)&&J.JSC$18018_commandHandler.resolveCommand(S.commandLifeCycleConfig.onFailureCommand)}))})};
qi[fQ]=[_.Ov,zjl];var D0M=function(p,J){this.JSC$18026_commandHandler=p;this.commandAllowlistOverride=J;var S;this.commandAllowlist=(S=this.commandAllowlistOverride)!=null?S:aY};
D0M.prototype.handleResponse=function(p,J,S){var H,M=J==null?void 0:(H=J.config)==null?void 0:H.command;if(!M||this.commandAllowlist.some(function(X){return!!_.e(M,X)})){J=void 0;
S!==void 0&&(J={form:{element:S}});p.onResponseReceivedCommand&&this.JSC$18026_commandHandler.resolveCommand(p.onResponseReceivedCommand,J);p.onResponseReceivedAction&&this.JSC$18026_commandHandler.resolveCommand(p.onResponseReceivedAction,J);p.onResponseReceivedEndpoint&&this.JSC$18026_commandHandler.resolveCommand(p.onResponseReceivedEndpoint,J);p.command&&this.JSC$18026_commandHandler.resolveCommand(p.command,J);if(p.onResponseReceivedCommands)for(S=_.K(p.onResponseReceivedCommands),H=S.next();!H.done;H=
S.next())this.JSC$18026_commandHandler.resolveCommand(H.value,J);if(p.onResponseReceivedActions)for(S=_.K(p.onResponseReceivedActions),H=S.next();!H.done;H=S.next())this.JSC$18026_commandHandler.resolveCommand(H.value,J);if(p.onResponseReceivedEndpoints)for(S=_.K(p.onResponseReceivedEndpoints),H=S.next();!H.done;H=S.next())this.JSC$18026_commandHandler.resolveCommand(H.value,J);if(p.actions)for(p=_.K(p.actions),S=p.next();!S.done;S=p.next())this.JSC$18026_commandHandler.resolveCommand(S.value,J)}};
D0M[fQ]=[_.Ov,_.F9(CR9)];var k6N=new _.ni("INNERTUBE_TOKEN_SERVICE");var N2I=new _.ni("SCHEDULER_TOKEN");var T2M=function(p){this.scheduler=p;p={};this.tokenMap=(p.app={},p.user={},p)};
T2M.prototype.handleResponse=function(p,J){if(!J)throw Error("Oi");var S;if(p=(S=p.responseContext)==null?void 0:S.innertubeTokenJar){if(p.appTokens){var H,M,X;S=(H=J.innerTubeRequest.context)==null?void 0:(M=H.request)==null?void 0:(X=M.innertubeTokenJar)==null?void 0:X.appTokens;d0f(this,p.appTokens,this.tokenMap.app,S)}if(p.userTokens){var Z,n,b;J=(Z=J.innerTubeRequest.context)==null?void 0:(n=Z.request)==null?void 0:(b=n.innertubeTokenJar)==null?void 0:b.userTokens;d0f(this,p.userTokens,this.tokenMap.user,
J)}}};
T2M.prototype.processContext=function(p){p.request||(p.request={});var J=Object.keys(this.tokenMap.app).length,S=Object.keys(this.tokenMap.user).length;if(J||S)p.request.innertubeTokenJar={},J&&(p.request.innertubeTokenJar.appTokens=[].concat(_.dW(Object.values(this.tokenMap.app).flat()))),S&&(p.request.innertubeTokenJar.userTokens=[].concat(_.dW(Object.values(this.tokenMap.user).flat())))};
var d0f=function(p,J,S,H){J=_.K(J);for(var M=J.next(),X={};!M.done;X={token$jscomp$139:void 0},M=J.next()){X.token$jscomp$139=M.value;if(X.token$jscomp$139.type===void 0)throw new _.TG("InnerTube token has no type",X.token$jscomp$139);if(X.token$jscomp$139.clearTokens)S[X.token$jscomp$139.type]=[];else if(X.token$jscomp$139.value!==void 0){S[X.token$jscomp$139.type]||(S[X.token$jscomp$139.type]=[]);if(H!==void 0&&H.length){M=_.K(H);for(var Z=M.next(),n={};!Z.done;n={requestToken:void 0},Z=M.next())n.requestToken=
Z.value,Z=S[X.token$jscomp$139.type].findIndex(function(b){return function(F){return F===b.requestToken||(0,_.T6.equals)(F,b.requestToken)}}(n)),Z>-1&&S[X.token$jscomp$139.type].splice(Z,1)}S[X.token$jscomp$139.type].push(X.token$jscomp$139);
X.token$jscomp$139.maxAgeSeconds&&Number(X.token$jscomp$139.maxAgeSeconds)>0&&p.scheduler.addLowPriorityJob(function(b){return function(){var F=S[b.token$jscomp$139.type].indexOf(b.token$jscomp$139);F>-1&&S[b.token$jscomp$139.type].splice(F,1)}}(X),Number(X.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.TG("InnerTube token has no value",X.token$jscomp$139);
}};
T2M[fQ]=[N2I];var uCI=new _.ni("LOCAL_INNERTUBE_ROUTER_TOKEN"),lZr=new _.ni("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var aN=function(p){this.serviceMap=p};
aN.prototype.shouldPreferLocalResponse=function(p,J){return(p=V6M(this,p))?p.shouldPreferLocalResponse(J):!1};
aN.prototype.localInnertubeResponse=function(p,J){var S=this,H;return _.G(function(M){return(H=V6M(S,p))?M.return(H.localInnertubeResponse(J)):M.return(Promise.reject(Error("Pi")))})};
aN.prototype.canProvideFallbackResponse=function(p,J){return(p=V6M(this,p))?p.canProvideFallbackResponse(J):!1};
aN.prototype.localFallbackInnertubeResponse=function(p,J){var S=this,H;return _.G(function(M){return(H=V6M(S,p))?M.return(H.localFallbackInnertubeResponse(J)):M.return(Promise.reject(Error("Pi")))})};
var V6M=function(p,J){J=_.yn(J);return J?(p=p.serviceMap[J])?p:null:null};
aN[fQ]=[lZr];var zJ=function(){};
zJ.prototype.shouldPreferLocalResponse=function(){return!1};
zJ.prototype.localInnertubeResponse=function(){return _.G(function(p){return p.return(Promise.reject(Error("Qi")))})};
zJ.prototype.canProvideFallbackResponse=function(){return!0};
zJ.prototype.localFallbackInnertubeResponse=function(){var p,J,S;return _.G(function(H){p=b6("CLOSE_POPUP");J={openPopupAction:uRk()};S={actions:[p,J]};return H.return(S)})};var MlX=function(p,J){this.JSC$18075_upliftPromise=p;this.store=J};
_.R=MlX.prototype;_.R.shouldPreferLocalResponse=function(p){var J=p.videoId,S;if(S=J)S=VgW(this.store.getState().entities,p.videoId);return S&&qTi(this.store.getState().entities,J)?V4W(this.store.getState().entities,p.playlistId):!1};
_.R.localInnertubeResponse=function(p){var J=this,S;return _.G(function(H){return(S=J.getPlayerResponse(p))?H.return(Promise.resolve(S)):H.return(Promise.reject(Error("Ri")))})};
_.R.canProvideFallbackResponse=function(p){return!!p.videoId};
_.R.localFallbackInnertubeResponse=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(J.JSC$18075_upliftPromise,2);S=J.getPlayerResponse(p);var M;S?M=H.return(Promise.resolve(S)):M=Pq(J.store.getState().entities,p.videoId)?H.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.I5(_.Kl("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:cCi()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
H.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.I5(_.Kl("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:xms()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return M})};
_.R.getPlayerResponse=function(p){return vNL(this.store.getState().entities,p.videoId)};var Pu=function(p,J){this.localPlayerService=p;this.localWatchNextService=J};
Pu.prototype.shouldPreferLocalResponse=function(p){var J=p.playerRequest;p=p.watchNextRequest;return!!(J&&this.localPlayerService.shouldPreferLocalResponse(J)&&p&&this.localWatchNextService.shouldPreferLocalResponse(p))};
Pu.prototype.localInnertubeResponse=function(p){var J=this,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1){S=p.playerRequest;H=p.watchNextRequest;if(!S||!H)throw new _.TG("Missing streaming request",p);return Z.yield(J.localPlayerService.localInnertubeResponse(S),2)}if(Z.nextAddress!=3)return M=Z.yieldResult,Z.yield(J.localWatchNextService.localInnertubeResponse(H),3);X=Z.yieldResult;return Z.return({playerResponse:M,watchNextResponse:X})})};
Pu.prototype.canProvideFallbackResponse=function(p){var J=p.playerRequest;p=p.watchNextRequest;return!!(J&&this.localPlayerService.canProvideFallbackResponse(J)&&p&&this.localWatchNextService.canProvideFallbackResponse(p))};
Pu.prototype.localFallbackInnertubeResponse=function(p){var J=this,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return S=p.playerRequest,H=p.watchNextRequest,S&&H?Z.yield(J.localPlayerService.localFallbackInnertubeResponse(S),2):Z.return(Promise.reject(new _.TG("Missing streaming request",p)));if(Z.nextAddress!=3)return M=Z.yieldResult,Z.yield(J.localWatchNextService.localFallbackInnertubeResponse(H),3);X=Z.yieldResult;return Z.return({playerResponse:M,watchNextResponse:X})})};var fT=function(p){this.JSC$18085_persistentStorePromiseAccessor=p};
fT.prototype.shouldPreferLocalResponse=function(){return!1};
fT.prototype.localInnertubeResponse=function(){return _.G(function(p){return p.return(Promise.reject(Error("Si")))})};
fT.prototype.canProvideFallbackResponse=function(){return!0};
fT.prototype.localFallbackInnertubeResponse=function(){var p=this,J,S;return _.G(function(H){return H.nextAddress==1?H.yield(p.JSC$18085_persistentStorePromiseAccessor(),2):H.nextAddress!=3?(J=H.yieldResult)?H.yield(J.get("service:guide:fallback"),3):H.return(Promise.reject(Error("Ti"))):(S=H.yieldResult)&&_.It(S)?H.return(qmX(_.It(S))):H.return(Promise.reject(Error("Ui")))})};var $I=function(){};
$I.prototype.shouldPreferLocalResponse=function(){return!1};
$I.prototype.localInnertubeResponse=function(){return _.G(function(p){return p.return(Promise.reject(Error("Vi")))})};
$I.prototype.canProvideFallbackResponse=function(){return!0};
$I.prototype.localFallbackInnertubeResponse=function(){var p,J,S;return _.G(function(H){p=b6("CLOSE_POPUP");J={openPopupAction:uRk()};S={actions:[p,J]};return H.return(S)})};var vu=function(){this.urlMap=q9l;this.fallbackCommand=_.rC};
vu.prototype.shouldPreferLocalResponse=function(p){return(p=p.url)?!!aZ$(this,p):!1};
vu.prototype.localInnertubeResponse=function(p){var J=this,S;return _.G(function(H){return(S=p.url)?H.return(Eoj(p,aZ$(J,S))):H.return(Promise.reject(Error("Wi")))})};
vu.prototype.canProvideFallbackResponse=function(){return!0};
vu.prototype.localFallbackInnertubeResponse=function(p){var J=this,S,H,M,X,Z,n,b;return _.G(function(F){S=p.url;if(!S)return F.return(Eoj(p,J.fallbackCommand));if(H=aZ$(J,S))return F.return(Eoj(p,H));M=void 0;X=_.yn(S);X==="/watch"&&(Z=_.xc(S,"v"))&&(b=(n=_.xc(S,"list"))!=null?n:void 0,M=_.c9(Z,b));M||(M=J.fallbackCommand);return F.return(Eoj(p,M))})};
var aZ$=function(p,J){if(J)return p.urlMap[_.kV(J)]},Eoj=function(p,J){J&&p.parentTrackingParams&&(J.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:p.parentTrackingParams}},J.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:J})};var O0=function(p,J,S){this.JSC$18096_upliftPromise=p;this.store=J;this.JSC$18096_persistentStorePromiseAccessor=S};
O0.prototype.shouldPreferLocalResponse=function(){return!1};
O0.prototype.localInnertubeResponse=function(){return _.G(function(p){return p.return(Promise.reject(Error("Xi")))})};
O0.prototype.canProvideFallbackResponse=function(){return!0};
O0.prototype.localFallbackInnertubeResponse=function(){var p=this;return _.G(function(J){return J.return(Y9I(p))})};
var Y9I=function(p){var J,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(cY(p.JSC$18096_upliftPromise,p.store),2);J=H.yieldResult;S={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[lwg(J)]}}}};return H.return(ryw(p,S))})},ryw=function(p,J){var S,H;
return _.G(function(M){if(M.nextAddress==1)return M.yield(p.JSC$18096_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return S=M.yieldResult,M.yield(LY(S),3);H=M.yieldResult;return M.return({responseContext:{},contents:J,topbar:H})})};var m2=function(p,J,S){this.JSC$18103_upliftPromise=p;this.store=J;this.JSC$18103_persistentStorePromiseAccessor=S};
m2.prototype.shouldPreferLocalResponse=function(p){var J=p.videoId;return J&&VgW(this.store.getState().entities,J)&&qTi(this.store.getState().entities,J)?V4W(this.store.getState().entities,p.playlistId):!1};
m2.prototype.localInnertubeResponse=function(p){var J=this,S,H;return _.G(function(M){if(M.nextAddress==1)return(S=p.videoId)?M.yield(J.JSC$18103_upliftPromise,2):M.return(Promise.reject(Error("Yi")));if(M.nextAddress!=3)return M.yield(jry(J,p,S),3);H=M.yieldResult;return M.return(wsr(J,H,S))})};
m2.prototype.canProvideFallbackResponse=function(p){return p.videoId?!0:!1};
m2.prototype.localFallbackInnertubeResponse=function(p){var J=this,S,H,M,X;return _.G(function(Z){switch(Z.nextAddress){case 1:return(S=p.videoId)?Z.yield(J.JSC$18103_upliftPromise,2):Z.return(Promise.reject(Error("Yi")));case 2:return Z.yield(jry(J,p,S),3);case 3:H=Z.yieldResult;if(Pq(J.store.getState().entities,S)){Z.jumpTo(4);break}return Z.yield(cY(J.JSC$18103_upliftPromise,J.store),5);case 5:return M=Z.yieldResult,Z.return(x0w(H,M));case 4:return VgW(J.store.getState().entities,S)&&qTi(J.store.getState().entities,
S)?Z.return(wsr(J,H,S)):(X={title:_.I5(_.Kl("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:cCi()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},Z.return(x0w(H,X)))}})};
var jry=function(p,J,S){var H,M,X,Z,n;return _.G(function(b){if(b.nextAddress==1)return H=J.playlistId,M=_.c9(S,H),b.yield(p.JSC$18103_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return X=b.yieldResult,b.yield(LY(X),3);Z=b.yieldResult;n={responseContext:{},currentVideoEndpoint:M,topbar:Z};return b.return(n)})},wsr=function(p,J,S){if(p=Pq(p.store.getState().entities,S)){var H;
S=p.videoEntity;var M,X={title:Ll(S.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.p$((H=S.localizedStrings)==null?void 0:H.viewCount),viewCount:_.p$((M=S.localizedStrings)==null?void 0:M.viewCount)}}};S.publishedTimestampMillis&&(X.dateText=_.p$(Zei(new Date(Number(S.publishedTimestampMillis)))));H={videoPrimaryInfoRenderer:X};M=p.videoEntity;p=p.channelEntity;p={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Ll(_.Kl("SHOW_MORE",void 0,"Show more")),
showLessText:Ll(_.Kl("SHOW_LESS",void 0,"Show less")),description:M.formattedDescription,owner:{videoOwnerRenderer:{title:Ll(p.title),thumbnail:p.avatar}}}};J.contents={twoColumnWatchNextResults:{results:{results:{contents:[H,p]}}}}}return J},x0w=function(p,J){p.contents={singleColumnWatchNextResults:{results:{results:{contents:[lwg(J)]}}}};
return p};var A7=function(p,J,S){this.JSC$18108_upliftPromise=p;this.store=J;this.JSC$18108_persistentStorePromiseAccessor=S};
A7.prototype.shouldPreferLocalResponse=function(){return!1};
A7.prototype.localInnertubeResponse=function(){return _.G(function(p){return p.return(Promise.reject(Error("Zi")))})};
A7.prototype.canProvideFallbackResponse=function(){return!0};
A7.prototype.localFallbackInnertubeResponse=function(){var p=this,J,S,H,M;return _.G(function(X){switch(X.nextAddress){case 1:return X.yield(p.JSC$18108_persistentStorePromiseAccessor(),2);case 2:return J=X.yieldResult,X.yield(LY(J),3);case 3:return S=X.yieldResult,H={responseContext:{},topbar:S},X.yield(p.JSC$18108_upliftPromise,4);case 4:return X.yield(cY(p.JSC$18108_upliftPromise,p.store),5);case 5:return M=X.yieldResult,H.watchStatus={backgroundPromoRenderer:M},X.return(H)}})};var cyp,IZf;_.Ef=new _.ni("ENDPOINT_MAP");cyp=new _.ni("WATCH_ENDPOINT_MAP");IZf=new _.ni("REEL_ENDPOINT_MAP");var wTw=/^[a-zA-Z0-9_\-]{11}$/;var xhW=_.Bj(function(){var p,J;return(J=(p=window).matchMedia)==null?void 0:J.call(p,"(prefers-reduced-motion: reduce)").matches});var L9$=_.Bj(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=_.Id("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");p||(p=_.Q0("VIDEO"),_.m$("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 p0f=XMLHttpRequest.prototype.fetch,JT$=p0f&&p0f.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Gx?!0:!1;var Y$=function(p){this.JSC$18119_storeWithEntities=p};
_.Q(Y$,ZX);_.R=Y$.prototype;_.R.getApiPaths=function(){return wC8};
_.R.getExtension=function(p){return _.e(p,_.lj)||_.e(p,_.vt)||_.e(p,qZd)};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$14333_getStoreKey=function(p){if((_.z("kevlar_cache_on_ttl_player")||_.z("mweb_enable_shorts_innertube_player_prefetch")||_.z("mweb_use_new_history_manager")||_.z("web_shorts_prefetch_service_enabled"))&&(p=this.getExtension(p))&&p.videoId){var J={videoId:p.videoId};p.playlistId&&(J.playlistId=p.playlistId);p.playerParams&&(J.params=p.playerParams);return _.uj("player",J)}};
_.R.JSC$14326_getClientScreen=function(p){var J;return((J=p.contentPlaybackContext)==null?void 0:J.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.R.JSC$14326_buildRequest=function(p,J,S){if(_.z("enable_interstitial_entity_check")){var H=this.JSC$18119_storeWithEntities;if(J.videoId)for(var M=_.K(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),X=M.next();!X.done;X=M.next()){X=X.value;var Z;var n=void 0,b=void 0,F=J.videoId,f=X;(Z=H)?(F=_.io(F+f,"interstitialInteractionStateEntity"),Z=(n=(b=_.RR(Z.getState().entities,"interstitialInteractionStateEntity",F))==null?void 0:b.primaryButtonClicked)!=null?n:!1):Z=!1;if(Z)switch(X){case "CONTENT_CHECK_REQUIRED":J.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":J.racyCheckOk=!0}}}J.videoId&&(p.videoId=J.videoId);J.playlistId&&(p.playlistId=J.playlistId);J.index!==void 0&&(p.playlistIndex=J.index+1);J.playerParams&&(p.params=J.playerParams);"startTimeSeconds"in J&&J.startTimeSeconds&&(_.z("enable_player_request_builder_start_time_floor")?p.startTimeSecs=Math.floor(J.startTimeSeconds):p.startTimeSecs=J.startTimeSeconds);S.contentPlaybackContext&&(p.playbackContext={contentPlaybackContext:S.contentPlaybackContext});S.prefetchPlaybackContext&&
(p.playbackContext=Object.assign({},p.playbackContext,{prefetchPlaybackContext:S.prefetchPlaybackContext}),p.context.request||(p.context.request={}),p.context.request.isPrefetch=!0);p.playbackContext||(p.playbackContext={});H=L9$();p.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!H,supportXhr:JT$};S.overrideMutedAtStart&&(p.overrideMutedAtStart=S.overrideMutedAtStart);p.racyCheckOk=!!J.racyCheckOk;p.contentCheckOk=!!J.contentCheckOk;!_.z("captions_prefs_killswitch")&&(S=(S=_.$t("yt-player-caption-language-preferences"))?
S:[],S==null?0:S.length)&&(p.captionParams={viewerSelectedCaptionLangs:S})};
_.R.getRequestConfig=function(p){p=this.JSC$14333_getStoreKey(p);var J;p&&(J={storeStrategy:{storeKey:p}});_.z("web_log_player_watch_next_ticks")&&(J=J||{},J.requestTick="ps_s",J.responseTick="ps_r");return J};
Y$[fQ]=[Hu];var rj=function(p,J){this.playerRequestBuilder=p;this.watchNextRequestBuilder=J};
_.Q(rj,ZX);rj.prototype.getApiPaths=function(){return TOp};
rj.prototype.getExtension=function(p){return _.e(p,_.lj)};
rj.prototype.isNavigationCommand=function(){return!0};
rj.prototype.JSC$14326_buildRequest=function(p,J,S){p.playerRequest={};this.playerRequestBuilder.JSC$14326_buildRequest(p.playerRequest,J,S);_.z("web_streaming_watch")&&(p.watchNextRequest={},this.watchNextRequestBuilder.JSC$14326_buildRequest(p.watchNextRequest,J,S))};
rj[fQ]=[Y$,VO];var SVl;_.jW=new _.ni("SHORTS_CONTROLLER_TOKEN");SVl=new _.ni("SHORTS_STATE_STORE_TOKEN");var wj=function(p,J){var S=_.Yp.apply(2,arguments);p=p===void 0?0:p;_.TG.call(this,J,S);this.errorType=p;Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(wj,_.TG);var HCy,Mmw,X0P,iwi,ub,yNt,KHI,Rwj,mLy,GNP,nce;HCy=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(p){return p+"="}).join("|"));
Mmw=RegExp(".*\\?.*playnext=1.*");X0P=function(p,J,S,H,M,X){this.watchEndpointMap=p;this.reelWatchEndpointMap=J;this.innerTubeTransportService=S;this.fetchPbj=H;this.ephemeralStore=M;this.reloadOnPlayerFailure=X===void 0?!0:X};
_.iCM=function(p,J){var S=_.PO("web_pbj_log_warning_rate",0);S=S>0&&Math.random()<S;var H;if((H=_.e(J.commandMetadata,_.i7))==null||!H.rootVe)return S&&_.xQ(Error("dj")),!1;var M;H=(M=_.e(J.commandMetadata,_.i7))==null?void 0:M.url;if(!H)return S&&_.xQ(Error("ej")),!1;if(Mmw.test(H))return!0;if(HCy.test(H))return S&&_.xQ(Error("fj`"+H)),!1;if(_.e(J,_.lj)){if(!(p.watchEndpointMap.watchNext&&p.watchEndpointMap.player||_.z("kevlar_fetch_initial_data_op_watch_client")))return S&&_.xQ(Error("$i")),!1;
p=_.PO("web_pbj_log_warning_rate",0);p=p>0&&Math.random()<p;_.e(J,_.lj)?rgt(J)?J=!0:(p&&_.xQ(Error("aj")),J=!1):(p&&_.xQ(Error("$i")),J=!1);return J}if(_.e(J,_.vt))return jp9(J);if(_.e(J,_.iq))return!0;p=_.ln(p.innerTubeTransportService,J);!p&&S&&_.jD(Error("gj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(J)});return p};
iwi=function(p,J,S,H,M,X){J={url:J};if(S==null?0:S.itct)J.parentTrackingParams=S.itct;var Z=_.jx(Mf4);return _.mX(p.innerTubeTransportService,J,Z).then(function(n){(n=n.endpoint)||(n=_.rC);(S==null?0:S.itct)&&n&&!n.trackingParams&&(n.trackingParams=S.itct);var b=mu(n);return ub(p,n,S,H,b,M,X)})};
ub=function(p,J,S,H,M,X,Z,n){n=n===void 0?{}:n;if(p.fetchPbj&&!_.iCM(p,J)&&!_.z("force_one_platform")){var b=p.fetchPbj(J),F=_.SU(b.then(function(w){if(!w)throw Error("hj");Z(F)||X(J,w);return w}));
return F}var f,O,A={rootVe:(f=_.e(J.commandMetadata,_.i7))==null?void 0:f.rootVe,url:(O=_.e(J.commandMetadata,_.i7))==null?void 0:O.url,endpoint:J,page:M};if(_.e(J,_.lj)){var P,W={contentPlaybackContext:_.Mk(S,(P=_.e(J.commandMetadata,_.i7))==null?void 0:P.url,H)},y=_.qr(),t,D=(t=p.watchEndpointMap.player)==null?void 0:t().JSC$14333_getStoreKey(J);t=D!==void 0&&((b=p.ephemeralStore)==null?void 0:b.has(D));_.z("web_streaming_watch")&&window.TextDecoderStream&&!t?(b=tv8(p.innerTubeTransportService,
J,W,function(w){!A.response&&w.content&&(A.response=w.content);!A.playerResponse&&w.player&&(A.playerResponse=w.player);X(J,A)}),D=qM4(J),D.length&&(A.preconnect=D,X(J,A)),Rwj(b,y,A).catch(function(w){w instanceof wj&&w.errorType===2&&_.z("web_streaming_watch_fallback")&&KHI(p,J,W,A,X,Z,y)})):KHI(p,J,W,A,X,Z,y);
return y.promise}if(_.e(J,_.vt)){var k;if(((k=_.e(J,_.vt))==null?void 0:k.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var E=_.qr();_.ZCN(_.vO().resolve(_.jW),J).then(function(w){nce(p,S,H,M,X,E,w)});
return E.promise}b=_.SU();t={contentPlaybackContext:_.Mk(S,(D=_.e(J.commandMetadata,_.i7))==null?void 0:D.url,H)};(D=p.reelWatchEndpointMap.player)&&(D=D().JSC$14326_getRequest(J,t))&&(b=_.mX(p.innerTubeTransportService,D.innerTubeRequest,D.input,J.clickTrackingParams,D.config));D=_.SU();(n=p.reelWatchEndpointMap.reelItemWatch)&&(n=n().JSC$14326_getRequest(J))&&(D=_.mX(p.innerTubeTransportService,n.innerTubeRequest,n.input,J.clickTrackingParams,n.config));n=_.SU();(f=p.reelWatchEndpointMap.reelWatchSequence)&&
_.e(J,_.vt).sequenceParams&&(t=f().JSC$14326_getRequest(J,t))&&(_.z("web_enable_delay_shorts_sequence_call_forget")?_.mX(p.innerTubeTransportService,t.innerTubeRequest,t.input,J.clickTrackingParams,t.config):n=_.mX(p.innerTubeTransportService,t.innerTubeRequest,t.input,J.clickTrackingParams,t.config));t=_.SU(A);f=_.qr();GNP(J,t,b,D,n,X,Z,f);return f.promise}var a;if(_.e(J,Sz4)&&((a=_.e(J.commandMetadata,_.i7))==null?0:a.url))return b=KQs(_.I7(lI().location.href),_.I7(_.e(J.commandMetadata,_.i7).url)).toString(),
iwi(p,b,S,H,X,function(){return!1});
if(_.e(J,_.iq))return X(J,A),_.SU(A);if(_.ln(p.innerTubeTransportService,J)){b=Object.assign({},{tempData:S,disableCache:S.disableCache},n);var q=_.VI(p.innerTubeTransportService,J,b).then(function(w){A.response=w;Z(q)||X(J,A);return A});
return q}return _.SU(A)};
_.bCj=function(p,J,S,H){if(_.e(J,_.lj)||_.e(J,_.vt)&&(_.z("mweb_enable_shorts_innertube_player_prefetch")||_.z("kevlar_enable_shorts_prefetch_in_sequence"))||_.e(J,qZd)&&_.z("web_enable_prefetching_videos_on_home")){var M,X={contentPlaybackContext:_.Mk(S,(M=_.e(J.commandMetadata,_.i7))==null?void 0:M.url,H),prefetchPlaybackContext:Iww(S)},Z,n,b;if(((Z=_.e(J,_.lj))==null?void 0:(n=Z.watchEndpointSupportedPrefetchConfig)==null?void 0:(b=n.prefetchHintConfig)==null?void 0:b.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(S=
p.watchEndpointMap.watchNext)if(X=S().JSC$14326_getRequest(J,X))return Promise.resolve(_.mX(p.innerTubeTransportService,X.innerTubeRequest,X.input,void 0,X.config).then(function(O){return O}))}else if(S=p.watchEndpointMap.player)if(X=S().JSC$14326_getRequest(J,X))return Promise.resolve(_.mX(p.innerTubeTransportService,X.innerTubeRequest,X.input,void 0,X.config).then(function(O){return O}))}else if(_.ln(p.innerTubeTransportService,J)){var F={tempData:S},f=y6E(p.innerTubeTransportService,J);
return f?new Promise(function(O,A){var P,W;return _.G(function(y){if(y.nextAddress==1)return y.yield(f,2);if(y.nextAddress!=4)return P=y.yieldResult,P.JSC$14333_getStoreKey(J,F)?y.yield(_.VI(p.innerTubeTransportService,J,F),4):(A(new _.TG("Prefetching request builder with no store key.",J)),y.jumpTo(0));W=y.yieldResult;O(W);_.UK(y)})}):Promise.reject(new _.TG("Prefetching unregistered request builder.",J))}return Promise.reject(new _.TG("No request builder available to prefetch endpoint.",J))};
yNt=function(p,J){var S,H,M;if(_.e(J,_.lj)){var X=p.watchEndpointMap.watchNext;X&&(S=X());(p=p.watchEndpointMap.player)&&(H=p())}else if(_.e(J,_.vt))(X=p.reelWatchEndpointMap.reelItemWatch)&&(S=X()),(X=p.reelWatchEndpointMap.player)&&(H=X()),(p=p.reelWatchEndpointMap.reelWatchSequence)&&(M=p());else{a:{p=ZZk(J,p.innerTubeTransportService.endpointMap);if(p!==void 0)if(typeof p.then==="function")_.jD(new _.TG("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",J));else break a;
p=void 0}p&&(S=p)}var Z,n,b;return{content:(Z=S)==null?void 0:Z.JSC$14333_getStoreKey(J),player:(n=H)==null?void 0:n.JSC$14333_getStoreKey(J),reelSequence:(b=M)==null?void 0:b.JSC$14333_getStoreKey(J)}};
KHI=function(p,J,S,H,M,X,Z){var n=_.SU(),b=p.watchEndpointMap.player;_.z("web_streaming_player")&&(b=kz(rj));b&&(b=b().JSC$14326_getRequest(J,S))&&(n=_.mX(p.innerTubeTransportService,b.innerTubeRequest,b.input,J.clickTrackingParams,b.config));b=_.SU();var F=p.watchEndpointMap.watchNext;F&&(S=F().JSC$14326_getRequest(J,S))&&(b=_.mX(p.innerTubeTransportService,S.innerTubeRequest,S.input,J.clickTrackingParams,S.config));H=_.SU(H);mLy(p,J,H,n,b,M,X,Z)};
Rwj=function(p,J,S){var H;return _.G(function(M){if(M.nextAddress==1)return M.yield(p,2);_.z("web_streaming_watch_delay_200")||_.z("web_streaming_watch_delay_400")?(H=_.z("web_streaming_watch_delay_200")?200:400,setTimeout(function(){J.resolve(S)},H)):J.resolve(S);
_.UK(M)})};
mLy=function(p,J,S,H,M,X,Z,n){var b,F,f,O,A;_.G(function(P){switch(P.nextAddress){case 1:return P.yield(S,2);case 2:b=P.yieldResult;if(Z(n.promise))return n.resolve(b),P.return();X(J,b);F=qM4(J);if(!F.length){P.jumpTo(3);break}return P.yield(S,4);case 4:b.preconnect=F,X(J,b);case 3:return _.oI(P,5),P.yield(H,7);case 7:f=P.yieldResult;_.X$(P,6);break;case 5:return O=_.BZ(P),n.reject(O),P.return();case 6:if(f===void 0&&p.reloadOnPlayerFailure)return b.reload=!0,X(J,b),n.resolve(b),P.return();if(Z(n.promise))return n.resolve(b),
P.return();b.playerResponse=f;X(J,b);_.z("web_watch_stop_scheduler_on_player_response")&&gO8();_.oI(P,8);return P.yield(M,10);case 10:A=P.yieldResult;_.X$(P,9);break;case 8:_.BZ(P);case 9:if(A===void 0)return b.response={responseContext:{}},n.resolve(b),P.return();if(Z(n.promise))return n.resolve(b),P.return();b.response=A;X(J,b);n.resolve(b);_.UK(P)}})};
GNP=function(p,J,S,H,M,X,Z,n){var b,F,f,O,A,P;_.G(function(W){switch(W.nextAddress){case 1:return W.yield(J,2);case 2:b=W.yieldResult;if(Z(n.promise))return n.resolve(b),W.return();X(p,b);F=qM4(p);if(!F.length){W.jumpTo(3);break}return W.yield(J,4);case 4:b.preconnect=F,X(p,b);case 3:return _.oI(W,5),W.yield(S,7);case 7:f=W.yieldResult;_.X$(W,6);break;case 5:return O=_.BZ(W),n.reject(O),W.return();case 6:if(f===void 0)return b.reload=!0,X(p,b),n.resolve(b),W.return();if(Z(n.promise))return n.resolve(b),
W.return();b.playerResponse=f;X(p,b);_.z("web_shorts_stop_scheduler_on_player_response")&&gO8();_.oI(W,8);return W.yield(H,10);case 10:A=W.yieldResult;_.X$(W,9);break;case 8:_.BZ(W);case 9:if(A===void 0)return b.response={responseContext:{}},n.resolve(b),W.return();if(Z(n.promise))return n.resolve(b),W.return();b.response=A;X(p,b);_.oI(W,11);return W.yield(M,13);case 13:P=W.yieldResult;_.X$(W,12);break;case 11:_.BZ(W);case 12:if(Z(n.promise))return n.resolve(b),W.return();P&&(b.reelWatchSequenceResponse=
P);X(p,b);n.resolve(b);_.UK(W)}})};
nce=function(p,J,S,H,M,X,Z){var n,b,F,f,O,A;_.G(function(P){if((n=Z)==null||!n.replacementEndpoint)return X.reject(),P.return();b=Z.replacementEndpoint;(F=_.e(b,_.vt))?(Z.sequenceContinuation&&(F.sequenceParams=Z.sequenceContinuation),f=_.vO().resolve(_.jW),O=F.sequenceParams,FHN(f,b)&&delete F.sequenceParams,A=ub(p,b,J,S,H,M,function(){return!1}),A.then(function(W){return _.G(function(y){if(y.nextAddress==1)return vcI(f,{reelWatchEndpoint:{sequenceParams:O}},W),y.yield(0,2);
X.resolve(W);_.UK(y)})})):X.reject();
_.UK(P)})};
X0P[fQ]=[cyp,IZf,_.Ac,_.F9(QX8),_.F9(_.T0)];var fdf=function(){var p=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return p.sequenceMap}}},hFv=function(p,J,S){var H,M=(H=J.config)==null?void 0:H.sequenceStrategy;
if(!M)return S();p.sequenceMap.has(M.sequenceKey)||p.sequenceMap.set(M.sequenceKey,[]);p=p.sequenceMap.get(M.sequenceKey);switch(M.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return OCU(p,J,S);case "REQUEST_SEQUENCE_TYPE_REPLACE":return ATp(p,J,S);default:throw new _.TG("Request could not be sequenced",J);}},OCU=function(p,J,S){var H,M,X;
return _.G(function(Z){p.length>0?(M=p[p.length-1],H=M.responsePromise.then(function(){return S()})):H=S();
X={request:J,responsePromise:H};p.push(X);PWl(p,X);return Z.return(X.responsePromise)})},ATp=function(p,J,S){S=S();
if(p.length>0)for(var H=_.K(p),M=H.next();!M.done;M=H.next())M.value.responsePromise=S;var X={request:J,responsePromise:S};p.push(X);PWl(p,X);return Promise.resolve().then(function(){return p.indexOf(X)>0?X.responsePromise.then(function(Z){return Object.assign({},Z,{sequenceMetaData:{skipProcessing:!0}})}):X.responsePromise})},PWl=function(p,J){J.responsePromise.then(function(){var S=p.indexOf(J);
S>-1&&p.splice(S,1)})};var zwU=new _.ni("REQUEST_SEQUENCING");var x$=function(){};
_.Q(x$,ZX);x$.prototype.getApiPaths=function(){return[]};
x$.prototype.getExtension=function(p){return _.e(p,eE4)};
x$.prototype.JSC$14326_buildRequest=function(p,J){p.recaptchaToken=J.recaptchaToken};
x$.prototype.getApiUrl=function(){return"/das_captcha"};var cU=function(){};
_.Q(cU,ZX);cU.prototype.getApiPaths=function(){return MAM};
cU.prototype.getExtension=function(p){return _.e(p,S2o)};
cU.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.createBackstagePostParams&&(p.createBackstagePostParams=J.createBackstagePostParams);S.comment_text&&(p.commentText=S.comment_text);if(S.attached_video_id)p.videoAttachment={videoId:S.attached_video_id};else if(S.image_poll_options)p.pollAttachmentData={options:S.image_poll_options};else if(S.poll_options)p.pollAttachment={choices:S.poll_options};else if(S.quiz_options)p.quizAttachmentData={options:S.quiz_options};else if(S.image_blob_id)p.imageAttachment=
{encryptedBlobId:S.image_blob_id},S.source_video_id&&(p.imageAttachment.sourceExternalVideoId=S.source_video_id),S.image_preview_coordinates&&(p.imageAttachment.previewCoordinates=JSON.parse(S.image_preview_coordinates));else if(S.images_data)p.imagesAttachment={imagesData:S.images_data};else if(S.clip_external_video_id!==void 0||S.clip_offset_ms!==void 0||S.clip_duration_ms!==void 0){var H,M,X,Z,n;p.clipAttachment={externalVideoId:(X=S.clip_external_video_id)!=null?X:"",offsetMs:(Z=(H=S.clip_offset_ms)==
null?void 0:H.toString())!=null?Z:"",durationMs:(n=(M=S.clip_duration_ms)==null?void 0:M.toString())!=null?n:""}}else S.shared_post_id&&(p.sharedPostAttachment={postId:S.shared_post_id});S.tagged_video_id&&(p.postCreationData={taggedVideoId:S.tagged_video_id});S.access_restrictions&&(typeof S.access_restrictions==="number"&&(J=S.access_restrictions,p.accessRestrictions={restriction:J!==1&&J===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof S.access_restrictions==="string"&&
(p.accessRestrictionsParams=S.access_restrictions));S.scheduled_publish_time_sec&&(p.scheduledPublishTimeSec=S.scheduled_publish_time_sec.toString())};var IN=function(){};
_.Q(IN,ZX);IN.prototype.getApiPaths=function(){return GYq};
IN.prototype.getExtension=function(p){return _.e(p,p7U)};
IN.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.decorateMessageParams&&(p.params=J.decorateMessageParams);S.text&&(p.text=S.text)};var L9=function(){};
_.Q(L9,ZX);L9.prototype.getApiPaths=function(){return gWd};
L9.prototype.getExtension=function(p){return _.e(p,Hk8)};
L9.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;S.video_id&&(p.videoId=S.video_id)};var pJ=function(){};
_.Q(pJ,ZX);pJ.prototype.getApiPaths=function(){return NOU};
pJ.prototype.getExtension=function(p){return _.e(p,_.X6)};
pJ.prototype.JSC$14326_buildRequest=function(p,J,S){S.suggestions_query&&(p.input=S.suggestions_query)};var JU=function(){};
_.Q(JU,ZX);JU.prototype.getApiPaths=function(){return fSq};
JU.prototype.getExtension=function(p){return _.e(p,MYM)};
JU.prototype.JSC$14326_buildRequest=function(p,J,S){S.comment_text!==void 0&&(p.commentText=S.comment_text);S.scheduled_publish_time_sec&&(p.scheduledPublishTimeSec=S.scheduled_publish_time_sec.toString());p.updateBackstagePostParams=J.updateBackstagePostParams};var S8=function(){};
_.Q(S8,ZX);S8.prototype.getApiPaths=function(){return at};
S8.prototype.getExtension=function(p){return _.e(p,_.hm)};
S8.prototype.JSC$14326_buildRequest=function(p,J,S){S.formData&&(p.formData=S.formData);J.token?p.continuation=J.token:J.continuationTokenKey&&(S=_.rl().getState(),J=_.RR(S.entities,"continuationTokenEntity",J.continuationTokenKey))&&(p.continuation=String(J.continuationToken))};
var $Lw=function(){};
_.Q($Lw,ZX);_.R=$Lw.prototype;_.R.getApiPaths=function(){return at};
_.R.getExtension=function(p){return _.e(p,_.Ge)};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$14333_getStoreKey=function(p){if((p=this.getExtension(p))&&p.browseId){var J={browseId:p.browseId};p.browseEndpointContextSupportedConfigs&&(J.browseEndpointContextSupportedConfigs=JSON.stringify(p.browseEndpointContextSupportedConfigs));p.params&&(J.params=p.params);p.query&&(J.query=p.query);return _.uj("browse",J)}};
_.R.JSC$14326_buildRequest=function(p,J,S){J.browseId&&(p.browseId=J.browseId);J.params&&(p.params=J.params);J.query&&(p.query=J.query);S.formData?p.formData=S.formData:J.formData&&(p.formData=J.formData);J.browseId==="FEsubscriptions"&&_.Gv().getFlag(155)&&(p.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");J.browseId==="SPaccount_playback"&&(S=_.Gv(),p.formData||(p.formData={}),p.formData.accountSettingsFormData={flagCaptionsDefaultOff:S.getFlag(65),flagAutoCaptionsDefaultOn:S.getFlag(66),
flagDisableInlinePreview:S.getFlag(186),flagAudioDescriptionDefaultOn:S.getFlag(198)});if(J.browseId==="FEwhat_to_watch"){S=_.Gv();var H=S.getFlag(196);S.getFlag(197)&&(p.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:H}}})}J.browseId==="FEwhat_to_watch"&&(J=_.Gv().getFlag(186),p.inlineSettingStatus=J?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.R.getRequestConfig=function(p,J){J=J===void 0?{}:J;var S={};if(p=this.JSC$14333_getStoreKey(p,J))S.storeStrategy={storeKey:p,disableCache:J.disableCache};_.z("web_log_browse_ticks_ks")||(S.requestTick="br_s",S.responseTick="br_r");return S};var Hk=function(){};
_.Q(Hk,ZX);Hk.prototype.getApiPaths=function(){return I2E};
Hk.prototype.getExtension=function(p){return _.e(p,toE)};
Hk.prototype.JSC$14326_buildRequest=function(p,J,S){p.legacyYoutubeChannelUsername=S.legacyYouTubeChannelUsername||"";p.legacyYoutubeChannelPassword=S.legacyYouTubeChannelPassword||""};var M$=function(){};
_.Q(M$,ZX);M$.prototype.getApiPaths=function(){return XFd};
M$.prototype.getExtension=function(p){return _.e(p,Gmv)};
M$.prototype.JSC$14326_buildRequest=function(p,J,S){S.recaptcha_response_token&&(p.recaptchaResponseToken=S.recaptcha_response_token);S.channel_id&&(p.channelId=S.channel_id)};var X5=function(){};
_.Q(X5,ZX);X5.prototype.getApiPaths=function(){return Ofd};
X5.prototype.getExtension=function(p){return _.e(p,OkL)};
X5.prototype.JSC$14326_buildRequest=function(p,J,S){J.externalChannelId&&(p.externalChannelId=J.externalChannelId);S.handle&&(p.handleUpdate={handle:S.handle},J.handleEditSource&&(p.handleUpdate.handleEditSource=J.handleEditSource))};var iD=function(){};
_.Q(iD,ZX);iD.prototype.getApiPaths=function(){return $od};
iD.prototype.getExtension=function(p){return _.e(p,ugM)};
iD.prototype.JSC$14326_buildRequest=function(p,J,S){J.request&&(p.channelId=J.request.channelId);var H;if(S==null?0:(H=S.uploadDefaults)==null?0:H.emojiReactionSet)p.uploadDefaultsRequest||(p.uploadDefaultsRequest={}),p.uploadDefaultsRequest.emojiReactionSet=S.uploadDefaults.emojiReactionSet};var Rj=function(){};
_.Q(Rj,ZX);Rj.prototype.getApiPaths=function(){return W_8};
Rj.prototype.getExtension=function(p){return _.e(p,bk8)};
Rj.prototype.JSC$14326_buildRequest=function(p,J,S){J.externalChannelId&&(p.externalChannelId=J.externalChannelId);J.channelHandleEntityKey&&(p.channelHandleEntityKey=J.channelHandleEntityKey);J.handleEditSource&&(p.handleEditSource=J.handleEditSource);S.handle?p.handle=S.handle:S.name&&(p.name=S.name)};var KJ=function(){};
_.Q(KJ,ZX);KJ.prototype.getApiPaths=function(){return Joq};
KJ.prototype.getExtension=function(p){return _.e(p,DF8)};
KJ.prototype.JSC$14326_buildRequest=function(p,J){J.actions?p.actions=J.actions:J.action&&(p.actions=[J.action])};var Z7=function(){};
_.Q(Z7,ZX);Z7.prototype.getApiPaths=function(){return ShL};
Z7.prototype.getExtension=function(p){return _.e(p,_.hm)};
Z7.prototype.JSC$14326_buildRequest=function(p,J){J.token&&(p.continuation=J.token)};var nJ=function(){};
_.Q(nJ,ZX);nJ.prototype.getApiPaths=function(){return UHM};
nJ.prototype.getExtension=function(p){return _.e(p,_.hm)};
nJ.prototype.JSC$14326_buildRequest=function(p,J){p.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";J.token&&(p.fetchCommentsParams={continuation:J.token})};var Gh=function(){};
_.Q(Gh,ZX);Gh.prototype.getApiPaths=function(){return RV8};
Gh.prototype.getExtension=function(p){return _.e(p,hrU)};
Gh.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.createReplyParams&&(p.createReplyParams=J.createReplyParams);J.commentText&&(p.commentText=_.E4(J.commentText));S.comment_text&&(p.commentText=S.comment_text);S.image_blob_id&&(p.imageAttachment={encryptedBlobId:S.image_blob_id});S.botguard_response&&(p.botguardResponse=S.botguard_response)};
_.vh.Object.defineProperties(Gh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bD=function(){};
_.Q(bD,ZX);bD.prototype.getApiPaths=function(){return KQU};
bD.prototype.getExtension=function(p){return _.e(p,_.t$o)};
bD.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.createCommentParams&&(p.createCommentParams=J.createCommentParams);J.commentText&&(p.commentText=_.E4(J.commentText));J.videoPositionMention&&(p.videoPositionMention=J.videoPositionMention);J.sources&&(p.sources=J.sources);S.comment_text&&(p.commentText=S.comment_text);S.attached_video_id?p.videoAttachment={videoId:S.attached_video_id}:S.poll_options?p.pollAttachment={choices:S.poll_options}:S.image_blob_id?p.imageAttachment=
{encryptedBlobId:S.image_blob_id}:S.shared_post_id&&(p.sharedPostAttachment={postId:S.shared_post_id});S.access_restrictions&&typeof S.access_restrictions==="number"&&(J=S.access_restrictions,p.accessRestrictions={restriction:J!==1&&J===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});S.botguard_response&&(p.botguardResponse=S.botguard_response)};
_.vh.Object.defineProperties(bD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mf=function(){};
_.Q(mf,ZX);mf.prototype.getApiPaths=function(){return AA8};
mf.prototype.getExtension=function(p){return _.e(p,NVq)};
mf.prototype.JSC$14326_buildRequest=function(p,J,S){J.commentText&&(p.replyText=_.E4(J.commentText));S.comment_text&&(p.replyText=S.comment_text);p.updateReplyParams=J.updateReplyParams};
_.vh.Object.defineProperties(mf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var F5=function(){};
_.Q(F5,ZX);F5.prototype.getApiPaths=function(){return Pz8};
F5.prototype.getExtension=function(p){return _.e(p,k3m)};
F5.prototype.JSC$14326_buildRequest=function(p,J,S){J.commentText&&(p.commentText=_.E4(J.commentText));S.comment_text&&(p.commentText=S.comment_text);p.updateCommentParams=J.updateCommentParams};
_.vh.Object.defineProperties(F5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vk=function(){};
_.Q(vk,ZX);vk.prototype.getApiPaths=function(){return zbm};
vk.prototype.getExtension=function(p){return _.e(p,kmv)};
vk.prototype.JSC$14326_buildRequest=function(p,J){J.settings&&(p.settings=J.settings)};var fJ=function(){};
_.Q(fJ,ZX);fJ.prototype.getApiPaths=function(){return oWU};
fJ.prototype.getExtension=function(p){return _.e(p,mEp)};
fJ.prototype.JSC$14326_buildRequest=function(p,J){J.channelCreationToken&&(p.channelCreationToken=J.channelCreationToken);J.source&&(p.source=J.source)};var Ok=function(){};
_.Q(Ok,ZX);Ok.prototype.getApiPaths=function(){return iM8};
Ok.prototype.getExtension=function(p){return _.e(p,fRU)};
Ok.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;if(S.name&&(S.given_name||S.family_name))p=new _.TG("channel creation cannot set both GAIA and YouTube names",J),_.jD(p);else{if(J.zeroStepChannelCreationParams){if(!S.comment_text){p=new _.TG("zero_step_create_comment_params but no zero_step_texts",J);_.jD(p);return}p.zeroStepChannelCreationParams=J.zeroStepChannelCreationParams;p.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(p.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
S.comment_text,S.botguard_response&&(p.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=S.botguard_response))}p.channelCreationToken=J.channelCreationToken;S.given_name&&(p.givenName=S.given_name);S.family_name&&(p.familyName=S.family_name);J.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(p.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(S.name||S.handle||S.avatar_url||S.encryptedBlobId||S.isNameChanged!==void 0||S.isHandleChanged!==void 0||S.isDefaultProfilePhoto!==
void 0||S.obakeImageSource)p.overrideChannelCreationParams={},S.name&&(p.overrideChannelCreationParams.name=S.name),S.handle&&(p.overrideChannelCreationParams.handle=S.handle),S.avatar_url&&(p.overrideChannelCreationParams.avatarUrl=S.avatar_url),S.encryptedBlobId&&(p.overrideChannelCreationParams.blobEncryptionId=S.encryptedBlobId),S.enableIdentityForAllChannelCreationDialog&&(S.encryptedBlobId?p.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
S.isDefaultProfilePhoto!==void 0&&(p.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=S.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),S.isNameChanged!==void 0&&(p.overrideChannelCreationParams.identityForAllChannelCreationNameTag=S.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),S.isHandleChanged!==
void 0&&(p.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=S.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),S.obakeImageSource&&(p.overrideChannelCreationParams.obakeImageSourceType=S.obakeImageSource))}};var AU=function(){};
_.Q(AU,ZX);AU.prototype.getApiPaths=function(p){return(p=this.getExtension(p))&&p.status==="DISLIKE"?vWq:p&&p.status==="INDIFFERENT"?pF8:VA8};
AU.prototype.getExtension=function(p){return _.e(p,_.IW)};
AU.prototype.JSC$14326_buildRequest=function(p,J){J.target&&(p.target=J.target);if(J=this.getParams(J))p.params=J};
AU.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 Pk=function(){};
_.Q(Pk,ZX);Pk.prototype.getApiPaths=function(){return nlq};
Pk.prototype.getExtension=function(p){return _.e(p,q7o)};
Pk.prototype.JSC$14326_buildRequest=function(p,J){J.settingItemId&&(p.settingItemId=J.settingItemId);J.stringValue!=null&&J.stringValue!==void 0?p.newValue={stringValue:J.stringValue}:J.intValue?p.newValue={intValue:J.intValue}:J.boolValue!==null&&J.boolValue!==void 0?p.newValue={boolValue:J.boolValue}:(p=new _.TG("Unknown value type for SetSettingEndpoint.",J),_.jD(p))};var zh=function(){};
_.Q(zh,ZX);zh.prototype.getApiPaths=function(){return mo8};
zh.prototype.getExtension=function(p){return _.e(p,iam)||void 0};
zh.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.channelIds&&(p.channelIds=J.channelIds);J.siloName&&(p.siloName=J.siloName);J.params&&(p.params=J.params);S.botguardResponse&&(p.botguardResponse=S.botguardResponse);S.feature&&(p.clientFeature=S.feature)};
_.vh.Object.defineProperties(zh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $H=function(){};
_.Q($H,ZX);$H.prototype.getApiPaths=function(){return vlm};
$H.prototype.getExtension=function(p){return _.e(p,aX8)||void 0};
$H.prototype.JSC$14326_buildRequest=function(p,J){J.channelIds&&(p.channelIds=J.channelIds);J.siloName&&(p.siloName=J.siloName);J.params&&(p.params=J.params)};
_.vh.Object.defineProperties($H.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oj=function(p){this.shareClientParamsProvider=p};
_.Q(oj,ZX);oj.prototype.getApiPaths=function(){return rI3};
oj.prototype.getExtension=function(p){return _.e(p,f0M)||_.e(p,_.OD8)||_.e(p,vNd)};
oj.prototype.JSC$14326_buildRequest=function(p,J){J.serializedShareEntity&&(p.serializedSharedEntity=J.serializedShareEntity);if(J.clientParamIdentifier){var S;if((S=this.shareClientParamsProvider)==null?0:S.clientParams.has(J.clientParamIdentifier)){S=this.shareClientParamsProvider;J=J.clientParamIdentifier;var H=S.clientParams.get(J);H&&S.clientParams.delete(J);p.clientParams=H}}};
oj[fQ]=[xje];var e8=function(){};
_.Q(e8,ZX);e8.prototype.getApiPaths=function(){return w2U};
e8.prototype.getExtension=function(p){return _.e(p,qMM)};
e8.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var Wk=function(){};
_.Q(Wk,ZX);Wk.prototype.getApiPaths=function(){return f58};
Wk.prototype.getExtension=function(p){return _.e(p,uIn)};
Wk.prototype.JSC$14326_buildRequest=function(p,J){J.dismissal&&(p.items=[J.dismissal])};
_.vh.Object.defineProperties(Wk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hU=function(){};
_.Q(hU,ZX);hU.prototype.getApiPaths=function(){return uHM};
hU.prototype.getExtension=function(p){return _.e(p,_.U0)||void 0};
hU.prototype.JSC$14326_buildRequest=function(p,J,S){p.feedbackTokens=[];J.feedbackToken&&p.feedbackTokens.push(J.feedbackToken);if(J=J.cpn||S.cpn)p.feedbackContext={cpn:J};p.isFeedbackTokenUnencrypted=!!S.is_feedback_token_unencrypted;p.shouldMerge=!1;S.extra_feedback_tokens&&(p.shouldMerge=!0,p.feedbackTokens=p.feedbackTokens.concat(S.extra_feedback_tokens))};
_.vh.Object.defineProperties(hU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var D7=function(){};
_.Q(D7,ZX);D7.prototype.getApiPaths=function(){return uHM};
D7.prototype.getExtension=function(p){return _.e(p,_.X6)};
D7.prototype.JSC$14326_buildRequest=function(p,J,S){S.feedback_tokens&&(p.feedbackTokens=S.feedback_tokens,p.shouldMerge=!0)};
_.vh.Object.defineProperties(D7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kH=function(){};
_.Q(kH,ZX);kH.prototype.getApiPaths=function(){return uHM};
kH.prototype.getExtension=function(p){return _.e(p,v7t)};
kH.prototype.JSC$14326_buildRequest=function(p,J){J.undoToken&&(p.feedbackTokens=[J.undoToken]);J.isUndoTokenUnencrypted&&(p.isFeedbackTokenUnencrypted=J.isUndoTokenUnencrypted)};
_.vh.Object.defineProperties(kH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var N$=function(){};
_.Q(N$,ZX);N$.prototype.getApiPaths=function(){return Q3q};
N$.prototype.getExtension=function(p){return _.e(p,NLd)};
N$.prototype.JSC$14326_buildRequest=function(p,J){J.nextEndpoint&&_.e(J.nextEndpoint,_.My)?p.nextEndpoint={urlEndpoint:_.e(J.nextEndpoint,_.My)}:J.nextEndpoint&&_.e(J.nextEndpoint,_.lj)&&(p.nextEndpoint={watchEndpoint:_.e(J.nextEndpoint,_.lj)});J.setRacy&&(p.setRacy=J.setRacy);J.setControvercy&&(p.setControvercy=J.setControvercy)};var Th=function(p){this.JSC$18321_storeWithEntities=p};
_.Q(Th,ZX);Th.prototype.getApiPaths=function(){return Aod};
Th.prototype.getExtension=function(p){return _.e(p,nid)};
Th.prototype.JSC$14326_buildRequest=function(p,J){J.flowId&&(p.flowId=J.flowId);J.targetId&&(p.targetId=J.targetId);J.continuation&&(p.continuation=J.continuation);var S=J.flowStateEntityKey;if(J.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&S&&this.JSC$18321_storeWithEntities){var H;if(J=(H=this.JSC$18321_storeWithEntities.getState())==null?void 0:H.entities)if(H=_.Hq(S).entityType,H=_.RR(J,H,S))p.flowState=H,p.flowStateEntityKey=S}};
_.vh.Object.defineProperties(Th.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Th[fQ]=[Hu];var ocI=function(){};
_.Q(ocI,ZX);_.R=ocI.prototype;_.R.getApiPaths=function(){return dHv};
_.R.JSC$14333_getStoreKey=function(){return _.uj("guide")};
_.R.getRequestConfig=function(){var p=this.JSC$14333_getStoreKey(),J;p&&(J={storeStrategy:{storeKey:p}});return J};
_.R.isNavigationCommand=function(){return!0};
_.R.getExtension=function(p){return _.e(p,_.X6)};
_.R.JSC$14326_buildRequest=function(p){p.fetchLiveState=!0};var dR=function(){};
_.Q(dR,ZX);dR.prototype.getApiPaths=function(){return Lx4};
dR.prototype.getExtension=function(p){return _.e(p,UFn)};
dR.prototype.JSC$14326_buildRequest=function(){};var uD=function(){};
_.Q(uD,ZX);uD.prototype.getApiPaths=function(){return pCo};
uD.prototype.getExtension=function(p){return _.e(p,sxm)};
uD.prototype.JSC$14326_buildRequest=function(){};var lD=function(){};
_.Q(lD,ZX);lD.prototype.getApiPaths=function(){return jH8};
lD.prototype.getExtension=function(p){return _.e(p,_.hm)};
lD.prototype.JSC$14326_buildRequest=function(p,J){J.token&&(p.continuation=J.token);var S,H;p==null||(S=p.context)==null||(H=S.user)==null||delete H.onBehalfOfUser};
lD.prototype.getRequestConfig=function(p){var J={},S;if(((S=this.getExtension(p))==null?void 0:S.sessionIndex)!==void 0){var H;J={authStrategy:{sessionIndex:(H=this.getExtension(p))==null?void 0:H.sessionIndex}}}return J};var Vt=function(){};
_.Q(Vt,ZX);Vt.prototype.JSC$14326_getRequest=function(p){var J=this.getExtension(p),S=p="";if(J==null?0:J.popup)p="true";if(J==null?0:J.disableSignout)S="true";J={};return{input:"/getAccountSwitcherEndpoint",requestShell:dG("/getAccountSwitcherEndpoint","GET",(J["X-YouTube-Delegation-Context"]=_.jn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),J["X-YouTube-Account-Switcher-Popup"]=p,J["X-YouTube-Account-Switcher-Disable-Signout"]=S,J)),innerTubeRequest:{}}};
Vt.prototype.getApiPaths=function(){return[]};
Vt.prototype.getExtension=function(p){return _.e(p,_.oks)};
Vt.prototype.JSC$14326_buildRequest=function(){};var q$=function(){};
_.Q(q$,ZX);q$.prototype.JSC$14326_getRequest=function(p){var J="/cross_account_channel_transfer";(p=this.getExtension(p))&&(J=YBW(J,{target_session:p.targetSessionIndex,source_rapt:p.sourceRapt,rapt:p.targetRapt}));return{input:J,requestShell:dG(J,"GET"),innerTubeRequest:{}}};
q$.prototype.getApiPaths=function(){return[]};
q$.prototype.getExtension=function(p){return _.e(p,UPE)};
q$.prototype.JSC$14326_buildRequest=function(){};var aj=function(){};
_.Q(aj,ZX);aj.prototype.getApiPaths=function(){return PHv};
aj.prototype.isNavigationCommand=function(){return!0};
aj.prototype.getExtension=function(p){return _.e(p,_.X6)};
aj.prototype.JSC$14326_buildRequest=function(p){var J=_.Gv().get("gsml","");J&&(p.safetyModeLockerObfuscatedGaiaId=J);p.userInterfaceTheme=_.kt(!0);_.Nc()?p.deviceTheme="DEVICE_THEME_SELECTED":_.XCi()?p.deviceTheme="DEVICE_THEME_SUPPORTED":p.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var Ek=function(){};
_.Q(Ek,ZX);Ek.prototype.getApiPaths=function(){return jH8};
Ek.prototype.getExtension=function(p){return _.e(p,su8)};
Ek.prototype.JSC$14326_buildRequest=function(p,J){if(J&&J.requestType&&(p.requestType=J.requestType,J.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||J.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var S=J.nextUrl;S&&(_.jV3(S)||bh(S))&&(p.nextNavendpoint={urlEndpoint:{url:S}})}J&&J.channelSwitcherQuery&&(p.channelSwitcherQuery=J.channelSwitcherQuery);J&&J.triggerChannelCreation&&(p.triggerChannelCreation=J.triggerChannelCreation);var H;if(J==null?0:(H=J.contentOwnerConfig)==
null?0:H.externalContentOwnerId)p.contentOwnerConfig=J.contentOwnerConfig;p.callCircumstance=J&&J.requestType&&J.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var M,X;J=p==null?void 0:(M=p.context)==null?void 0:(X=M.user)==null?void 0:X.onBehalfOfUser;if(J!==void 0){p.obfuscatedSelectedGaiaId=J;var Z,n;p==null||(Z=p.context)==null||(n=Z.user)==null||delete n.onBehalfOfUser}var b,F;if(M=p==null?void 0:(b=p.context)==null?void 0:(F=b.user)==null?
void 0:F.serializedDelegationContext)p.selectedSerializedDelegationContext=M};var YH=function(){};
_.Q(YH,ZX);YH.prototype.getApiPaths=function(){return xf8};
YH.prototype.getExtension=function(p){return _.e(p,AL8)};
YH.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var rR=function(){};
_.Q(rR,ZX);rR.prototype.getApiPaths=function(){return XC8};
rR.prototype.getExtension=function(p){return _.e(p,_.UZ8)};
rR.prototype.JSC$14326_buildRequest=function(p,J){if(J=J.createBroadcastRequest)p.useMasks=J.useMasks,p.broadcastType=J.broadcastType,p.broadcastSource=J.broadcastSource,p.broadcastMetadata=J.broadcastMetadata,p.broadcastMetadataMask=J.broadcastMetadataMask,p.videoMetadata=J.videoMetadata,p.videoMetadataMask=J.videoMetadataMask,p.liveChatSettingsUpdate=J.liveChatSettingsUpdate,p.liveChatSettingsUpdateMask=J.liveChatSettingsUpdateMask,p.cloneVideoId=J.cloneVideoId,p.cloneWithOverrides=J.cloneWithOverrides,
p.targetEntity=J.targetEntity,p.scheduledRedirectMetadata=J.scheduledRedirectMetadata};var j8=function(){};
_.Q(j8,ZX);j8.prototype.getApiPaths=function(){return ZMv};
j8.prototype.getExtension=function(p){return _.e(p,$lv)};
j8.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.params&&(p.params=J.params);S.questionText&&(p.questionText=S.questionText);S.optionText&&S.optionText.length>0&&(p.optionText=S.optionText)};var wR=function(){};
_.Q(wR,ZX);wR.prototype.getApiPaths=function(){return bMm};
wR.prototype.getExtension=function(p){return _.e(p,Pqn)};
wR.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var xH=function(){};
_.Q(xH,ZX);xH.prototype.getApiPaths=function(){return WQq};
xH.prototype.getExtension=function(p){return _.e(p,vEn)};
xH.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var ck=function(){};
_.Q(ck,ZX);ck.prototype.getApiPaths=function(){return CHn};
ck.prototype.getExtension=function(p){return _.e(p,fa8)};
ck.prototype.JSC$14326_buildRequest=function(p,J,S){J.params&&(p.params=J.params);J.continuation&&(p.continuation=J.continuation);S.currentPlayerState&&S.currentPlayerState.playerOffsetMs&&(p.currentPlayerState={playerOffsetMs:S.currentPlayerState.playerOffsetMs.toString()})};var Ij=function(){};
_.Q(Ij,ZX);Ij.prototype.getApiPaths=function(){return yod};
Ij.prototype.getExtension=function(p){return _.e(p,FOd)};
Ij.prototype.JSC$14326_buildRequest=function(p,J,S){J.params&&(p.params=J.params);S.continuation&&(p.continuation=S.continuation);"hidden"in S&&(p.webClientInfo={isDocumentHidden:S.hidden});S.isInvalidationTimeoutRequest&&(p.isInvalidationTimeoutRequest=S.isInvalidationTimeoutRequest);S.invalidationPayload&&(J=ml4(_.cg(md(S.invalidationPayload))),p.invalidationPayloadLastPublishAtUsec=sw(J,2));S.reloadActionPanel&&(p.reloadActionPanel=S.reloadActionPanel);S.fullReload&&(p.fullReload=S.fullReload);
S.currentPlayerState&&(p.currentPlayerState=S.currentPlayerState)};var LJ=function(){};
_.Q(LJ,ZX);LJ.prototype.getApiPaths=function(){return qh8};
LJ.prototype.getExtension=function(p){return _.e(p,z9n)};
LJ.prototype.JSC$14326_buildRequest=function(p,J){p.params=J.params};var pr=function(){};
_.Q(pr,ZX);pr.prototype.getApiPaths=function(){return QML};
pr.prototype.getExtension=function(p){return _.e(p,Dam)};
pr.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var J6=function(){};
_.Q(J6,ZX);J6.prototype.getApiPaths=function(){return BOm};
J6.prototype.getExtension=function(p){return _.e(p,k_8)};
J6.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var Sv=function(){};
_.Q(Sv,ZX);Sv.prototype.getApiPaths=function(){return a5m};
Sv.prototype.getExtension=function(p){return _.e(p,oE8)};
Sv.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var Hx=function(){};
_.Q(Hx,ZX);Hx.prototype.getApiPaths=function(){return Yh4};
Hx.prototype.getExtension=function(p){return _.e(p,e9d)};
Hx.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var MM=function(){};
_.Q(MM,ZX);MM.prototype.getApiPaths=function(){return JAp};
MM.prototype.getExtension=function(p){return _.e(p,$am)};
MM.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var XA=function(){};
_.Q(XA,ZX);XA.prototype.getApiPaths=function(){return K_U};
XA.prototype.getExtension=function(p){return _.e(p,_.WOM)};
XA.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.params&&(p.params=J.params);S.client_message_id&&(p.clientMessageId=S.client_message_id);S.recaptcha_token&&(p.recaptchaToken=S.recaptcha_token);S.rich_message&&S.rich_message.text_segments?(J=S.rich_message.text_segments.map(function(H){var M={};H.text&&(M.text=H.text);H.emoji_id&&(M.emojiId=H.emoji_id);return M}),p.richMessage={textSegments:J}):S.message&&(p.message=S.message);
S.currentPlayerState&&(p.currentPlayerState=S.currentPlayerState)};var ig=function(){};
_.Q(ig,ZX);ig.prototype.getApiPaths=function(){return Zfp};
ig.prototype.getExtension=function(p){return _.e(p,Qlp)};
ig.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var Rg=function(){};
_.Q(Rg,ZX);Rg.prototype.getApiPaths=function(){return F_L};
Rg.prototype.getExtension=function(p){return _.e(p,y_m)};
Rg.prototype.JSC$14326_buildRequest=function(p,J,S){J.isUserInitiated&&(p.isUserInitiated=J.isUserInitiated);J.initiationSource&&(p.initiationSource=J.initiationSource);S.locationInfo&&(p.context.client.locationInfo=S.locationInfo)};var Kr=function(){};
_.Q(Kr,ZX);Kr.prototype.getApiPaths=function(){return EWE};
Kr.prototype.getExtension=function(p){return _.e(p,sQM)};
Kr.prototype.JSC$14326_buildRequest=function(p,J,S){J.metadataUpdateRequest&&(J=J.metadataUpdateRequest,p.encryptedVideoId=J.encryptedVideoId,J.liveChat&&(J=J.liveChat,p.liveChat||(p.liveChat={}),J.performAsExternalChannelId&&(p.liveChat.performAsExternalChannelId=J.performAsExternalChannelId),J.source&&(p.liveChat.source=J.source)));var H;if(S==null?0:(H=S.liveChat)==null?0:H.liveChatSettings)p.liveChat||(p.liveChat={}),S=S.liveChat.liveChatSettings,p.liveChat.newLiveChatSettings=S,p.liveChat.newLiveChatSettingsMask||
(p.liveChat.newLiveChatSettingsMask={}),S.emojiReactionSet&&(p.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var ZQ=function(){};
_.Q(ZQ,ZX);ZQ.prototype.getApiPaths=function(){return ebm};
ZQ.prototype.getExtension=function(p){return _.e(p,_.EYq)};
ZQ.prototype.JSC$14326_buildRequest=function(p,J,S){S.continuation?p.continuation=S.continuation:J.videoId&&(p.videoId=J.videoId);S.clientParams&&(p.clientParams=S.clientParams)};var nr=function(){};
_.Q(nr,ZX);nr.prototype.getApiPaths=function(){return UHM};
nr.prototype.getExtension=function(p){return _.e(p,_.Ml)};
nr.prototype.JSC$14326_buildRequest=function(p,J){p.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";p.fetchCommentsParams={};J.videoId&&(p.fetchCommentsParams.encryptedVideoId=J.videoId);J.postId&&(p.fetchCommentsParams.postId=J.postId);J.externalChannelId&&(p.fetchCommentsParams.externalChannelId=J.externalChannelId);J.linkedCommentId&&(p.fetchCommentsParams.linkedCommentId=J.linkedCommentId);(0,_.T6.isEmpty)(p.fetchCommentsParams)&&delete p.fetchCommentsParams};var GO=function(){};
_.Q(GO,ZX);GO.prototype.getApiPaths=function(){return at};
GO.prototype.JSC$14326_buildRequest=function(p){p.browseId="FEnotifications_inbox"};
GO.prototype.getExtension=function(p){return _.e(p,_.X6)};var bg=function(){};
_.Q(bg,ZX);bg.prototype.getApiPaths=function(){return UHM};
bg.prototype.JSC$14326_buildRequest=function(p,J){J.signal==="GET_NOTIFICATIONS_MENU"&&(p.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");J.ctoken&&(p.ctoken=J.ctoken)};
var ewP=function(){};
_.Q(ewP,bg);ewP.prototype.getExtension=function(p){return _.e(p,_.X6)};
var WHI=function(){};
_.Q(WHI,bg);WHI.prototype.getExtension=function(p){return _.e(p,hco)};var mj=function(){};
_.Q(mj,ZX);mj.prototype.getApiPaths=function(){return kYv};
mj.prototype.getExtension=function(p){return _.e(p,_.X6)};
mj.prototype.JSC$14326_buildRequest=function(){};var FA=function(){};
_.Q(FA,ZX);FA.prototype.getApiPaths=function(){return rom};
FA.prototype.getExtension=function(p){return _.e(p,uc8)||void 0};
FA.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params);J.secondaryParams&&(p.secondaryParams=J.secondaryParams)};var vx=function(){};
_.Q(vx,ZX);vx.prototype.getApiPaths=function(){return jMn};
vx.prototype.getExtension=function(p){return _.e(p,P18)};
vx.prototype.JSC$14326_buildRequest=function(p,J){J.undo&&(p.undo=J.undo);J.serializedOptOut&&(p.serializedOptOut=J.serializedOptOut);J.serializedRecordInteractionsRequest&&(p.serializedRecordInteractionsRequest=J.serializedRecordInteractionsRequest)};var fr=function(){};
_.Q(fr,ZX);fr.prototype.getApiPaths=function(){return coE};
fr.prototype.getExtension=function(p){return _.e(p,zgU)};
fr.prototype.JSC$14326_buildRequest=function(p,J){J.serializedInteractionsRequest&&(p.serializedRecordNotificationInteractionsRequest=J.serializedInteractionsRequest)};var OR=function(){};
_.Q(OR,ZX);OR.prototype.getApiPaths=function(){return jc9};
OR.prototype.getExtension=function(p){return _.e(p,_.rn)};
OR.prototype.JSC$14326_buildRequest=function(p,J,S){J=J===void 0?{}:J;S=S===void 0?{}:S;J.videoId?p.videoId=J.videoId:J.playlistId&&(p.playlistId=J.playlistId);var H;p.crossDeviceDownloadData={isCrossDeviceDownload:(H=J.isCrossDeviceDownload)!=null?H:!1};!S.downloadToMobileEduShown&&J.isCrossDeviceDownload&&(p.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var M;if(H=(M=J.offlineWebClientEligibility)!=null?M:S.offlineWebClientEligibility)p.offlineWebClientEligibility=H;var X;if(M=(X=J.preferredFormatType)!=
null?X:S.preferredFormatType)p.preferredFormatType=M;var Z;if(X=(Z=J.lastOfflineQualitySettingsSavedMs)!=null?Z:S.lastOfflineQualitySettingsSavedMs)p.lastOfflineQualitySettingsSavedMs=X;J.params&&(p.params=J.params)};var A6=function(){};
_.Q(A6,ZX);A6.prototype.getApiPaths=function(){return QK};
A6.prototype.getExtension=function(p){return _.e(p,_.hm)};
A6.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.token&&(p.continuation=J.token);S.formData&&(p.formData=S.formData)};var Px=function(){};
_.Q(Px,ZX);Px.prototype.getApiPaths=function(){return QK};
Px.prototype.getExtension=function(p){return _.e(p,WXn)};
Px.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;p.continuation=S.continuation};var zO=function(){};
_.Q(zO,ZX);zO.prototype.getApiPaths=function(){return QK};
zO.prototype.getExtension=function(p){return _.e(p,_.Bu)};
zO.prototype.JSC$14326_buildRequest=function(p,J){var S,H=J.panelIdentifier||((S=J.identifier)==null?void 0:S.tag);H&&(p.panelId=H);var M;if((M=J.globalConfiguration)==null?0:M.params){var X;p.params=(X=J.globalConfiguration)==null?void 0:X.params}if(_.z("enable_ai_companion")){var Z;J=J.engagementPanelExtras;if(J==null?0:(Z=J.aiCompanionPanelExtras)==null?0:Z.includeClientConversationId){var n,b;Z=(b=(n=_.vO().resolve(_.F9(M6I)))==null?void 0:n("conversations"))==null?void 0:b.get("conversation_id")}else Z=
void 0;if(n=Z)p.formData=Object.assign({},p.formData,{inputComposerFormData:{conversationId:n}})}};
_.vh.Object.defineProperties(zO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $L=function(){};
_.Q($L,ZX);$L.prototype.getApiPaths=function(){return QK};
$L.prototype.getExtension=function(p){return _.e(p,n4d)};
$L.prototype.JSC$14326_buildRequest=function(p,J){J.panelLoadingStrategy&&LDg(p,J.panelLoadingStrategy)};var og=function(){};
_.Q(og,ZX);og.prototype.getApiPaths=function(){return QK};
og.prototype.getExtension=function(p){return _.e(p,gNm)};
og.prototype.JSC$14326_buildRequest=function(p,J){J.loadingStrategy&&LDg(p,J.loadingStrategy)};var ev=function(){};
_.Q(ev,ZX);ev.prototype.getApiPaths=function(){return QK};
ev.prototype.getExtension=function(p){return _.e(p,_.zy)};
ev.prototype.JSC$14326_buildRequest=function(p,J){J.panelLoadingStrategy&&LDg(p,J.panelLoadingStrategy)};var Wx=function(){};
_.Q(Wx,ZX);Wx.prototype.getApiPaths=function(){return QK};
Wx.prototype.getExtension=function(p){return _.e(p,tpo)};
Wx.prototype.JSC$14326_buildRequest=function(p,J){var S,H=(S=J.contentSourcePanelIdentifier)==null?void 0:S.tag;H&&(p.panelId=H);var M;if((M=J.globalConfiguration)==null?0:M.params){var X;p.params=(X=J.globalConfiguration)==null?void 0:X.params}};var Qz=function(){};
_.Q(Qz,ZX);Qz.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Qz.prototype.getExtension=function(p){return _.e(p,hg8)};
Qz.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var Cr=function(){};
_.Q(Cr,ZX);Cr.prototype.getApiPaths=function(){return olp};
Cr.prototype.getExtension=function(p){return _.e(p,NFL)};
Cr.prototype.JSC$14326_buildRequest=function(p,J){J.externalChannelId&&(p.externalChannelId=J.externalChannelId);J.superChatAction&&(p.superChatAction=J.superChatAction);J.superStickersAction&&(p.superStickersAction=J.superStickersAction)};var yz=function(){};
_.Q(yz,ZX);yz.prototype.getApiPaths=function(){return zV4};
yz.prototype.getExtension=function(p){return _.e(p,BVL)||_.e(p,gk4)};
yz.prototype.JSC$14326_buildRequest=function(p,J){J.videoIds?p.videoIds=J.videoIds:J.videoId&&(p.videoIds=[J.videoId]);J.playlistId&&(p.playlistId=J.playlistId);J.params&&(p.params=J.params);p.excludeWatchLater=!1};var Bx=function(){};
_.Q(Bx,ZX);Bx.prototype.getApiPaths=function(){return nWU};
Bx.prototype.getExtension=function(p){return _.e(p,_.bq)};
Bx.prototype.JSC$14326_buildRequest=function(p,J,S){S.create_playlist_title?p.title=S.create_playlist_title:J.title&&(p.title=J.title);if(S.create_playlist_privacy_status&&typeof S.create_playlist_privacy_status==="number"){a:{var H=S.create_playlist_privacy_status;if(H!==0){if(H===1){H="PUBLIC";break a}if(H===2){H="UNLISTED";break a}}H="PRIVATE"}p.privacyStatus=H}else J.privacyStatus&&(p.privacyStatus=J.privacyStatus);S.create_playlist_description&&(p.description=S.create_playlist_description);J.videoIds&&
(p.videoIds=J.videoIds);J.params&&(p.params=J.params);J.sourcePlaylistId&&(p.sourcePlaylistId=J.sourcePlaylistId)};var UR=function(){};
_.Q(UR,ZX);UR.prototype.getApiPaths=function(){return mHq};
UR.prototype.getExtension=function(p){return _.e(p,TVn)};
UR.prototype.JSC$14326_buildRequest=function(p,J){p.playlistId=J.playlistId};var sR=function(){};
_.Q(sR,ZX);sR.prototype.getApiPaths=function(){return sMU};
sR.prototype.getExtension=function(p){return _.e(p,maL)};
sR.prototype.JSC$14326_buildRequest=function(p,J){J.playlistId&&(p.playlistId=J.playlistId);J.params&&(p.params=J.params)};var gA=function(){};
_.Q(gA,ZX);gA.prototype.getApiPaths=function(){return xHM};
gA.prototype.getExtension=function(p){return _.e(p,_.XY)||void 0};
gA.prototype.JSC$14326_buildRequest=function(p,J){J.actions&&(p.actions=J.actions);J.params&&(p.params=J.params);J.playlistId&&(p.playlistId=J.playlistId)};var t6=function(){};
_.Q(t6,ZX);_.R=t6.prototype;_.R.getApiPaths=function(){return I5U};
_.R.getExtension=function(p){return _.e(p,_.vt)};
_.R.JSC$14326_buildRequest=function(p,J){J.videoId&&(p.playerRequest={videoId:J.videoId},J.playerParams&&(p.playerRequest.params=J.playerParams),J.racyCheckOk&&(p.playerRequest.racyCheckOk=!!J.racyCheckOk),J.contentCheckOk&&(p.playerRequest.contentCheckOk=!!J.contentCheckOk));J.params&&(p.params=J.params);J.inputType&&(p.inputType=J.inputType);p.disablePlayerResponse=!0};
_.R.getRequestConfig=function(p){var J;(p=this.JSC$14333_getStoreKey(p))&&(J={storeStrategy:{storeKey:p}});_.z("web_log_reels_ticks")&&(J=J||{},J.requestTick="r_wrs",J.responseTick="r_wrr");return J};
_.R.JSC$14333_getStoreKey=function(p){p=this.getExtension(p);if(p!=null&&p.videoId){var J={videoId:p.videoId};p.params&&(J.params=p.params);return _.uj("reel_item_watch",J)}};var h6=function(){};
_.Q(h6,ZX);_.R=h6.prototype;_.R.getApiPaths=function(){return LQU};
_.R.getExtension=function(p){return _.e(p,_.vt)};
_.R.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;p.sequenceParams=J.sequenceParams;var H;((H=S)==null?0:H.contentPlaybackContext)&&_.z("web_shorts_prefetch_service_enabled")&&(p.playbackContext={contentPlaybackContext:S.contentPlaybackContext})};
_.R.JSC$14333_getStoreKey=function(p){if(_.z("shorts_controller_retrieve_seedless_sequence_v2")&&(p=this.getExtension(p),p==null?0:p.sequenceParams))return _.uj("reel_watch_sequence",{sequenceParams:p.sequenceParams})};
_.R.getRequestConfig=function(p){p=this.JSC$14333_getStoreKey(p);var J;p&&(J={storeStrategy:{storeKey:p}});J=J||{};J.requestTick="r_wsrs";J.responseTick="r_wsrr";J.processorTick="r_wsrp";return J};
var DQ=function(){};
_.Q(DQ,ZX);DQ.prototype.getApiPaths=function(){return LQU};
DQ.prototype.getExtension=function(p){return _.e(p,_.hm)};
DQ.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.token&&(p.continuation=J.token);var H;((H=S)==null?0:H.contentPlaybackContext)&&_.z("web_shorts_prefetch_service_enabled")&&(p.playbackContext={contentPlaybackContext:S.contentPlaybackContext})};
DQ.prototype.getRequestConfig=function(p){p=this.JSC$14333_getStoreKey(p);var J;p&&(J={storeStrategy:{storeKey:p}});J=J||{};J.requestTick="r_wsrs";J.responseTick="r_wsrr";J.processorTick="r_wsrp";return J};var kL=function(){};
_.Q(kL,ZX);kL.prototype.getApiPaths=function(){return OMv};
kL.prototype.getExtension=function(p){return _.e(p,_.i78)};
kL.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.flagAction&&(p.action=J.flagAction);J.flagRequestType&&(p.flagRequestType=J.flagRequestType);J.additionalDetailCheckboxChecked&&(p.additionalDetailCheckboxChecked=J.additionalDetailCheckboxChecked);J.legalCheckboxChecked&&(p.legalCheckboxChecked=J.legalCheckboxChecked);J={};S.flag_issue_type!==void 0&&(J.issue=S.flag_issue_type);S.flag_affiliation!==void 0&&(J.affiliation=S.flag_affiliation);S.flag_full_name&&(J.fullName=S.flag_full_name);
Object.keys(J).length&&(p.legalReportDetails=J);if(S.flag_description||S.text)p.userComments=S.flag_description||S.text;J={};S.minutes!==void 0&&S.seconds!==void 0&&(J.minutes=S.minutes,J.seconds=S.seconds);S.vss_id&&(J.vssId=S.vss_id);Object.keys(J).length&&(p.videoReportDetails=J);J={};S.video_ids&&(J.videoIds=S.video_ids);S.impersonated_channel_url&&(J.impersonatedChannelUrl=S.impersonated_channel_url);Object.keys(J).length&&(p.channelAbuseReportDetails=J)};
_.vh.Object.defineProperties(kL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var NM=function(){};
_.Q(NM,ZX);NM.prototype.getApiPaths=function(){return eVL};
NM.prototype.getExtension=function(p){return _.e(p,kbd)};
NM.prototype.JSC$14326_buildRequest=function(p,J){J.blockedForKidsContent&&(p.blockedForKidsContent=J.blockedForKidsContent)};var TO=function(){};
_.Q(TO,ZX);TO.prototype.getApiPaths=function(){return So8};
TO.prototype.getExtension=function(p){return _.e(p,sF4)};
TO.prototype.JSC$14326_buildRequest=function(p,J,S){p.params=J.params;S.impersonated_channel_url&&(p.impersonatedChannelUrl=S.impersonated_channel_url)};var dA=function(){};
_.Q(dA,ZX);dA.prototype.getApiPaths=function(){return l5L};
dA.prototype.getExtension=function(p){return _.e(p,_.NBn)};
dA.prototype.JSC$14326_buildRequest=function(p,J){J.items&&(p.items=J.items);J.kidGaiaId&&(p.kidGaiaId=J.kidGaiaId)};var ug=function(){};
_.Q(ug,ZX);ug.prototype.getApiPaths=function(){return $Hd};
ug.prototype.getExtension=function(p){return _.e(p,_.QxM)};
ug.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params);J.targetId&&(p.targetId=J.targetId)};var lg=function(){};
_.Q(lg,ZX);lg.prototype.getApiPaths=function(){return if8};
lg.prototype.getExtension=function(p){return _.e(p,D3q)};
lg.prototype.JSC$14326_buildRequest=function(p,J){J.externalVideoId&&(p.externalVideoId=J.externalVideoId);J.query&&(p.query=J.query);J.sourceTimelines&&(p.sourceTimelines=J.sourceTimelines)};var Vz=function(){};
_.Q(Vz,ZX);Vz.prototype.getApiPaths=function(){return Rb8};
Vz.prototype.getExtension=function(p){return _.e(p,_.hm)||void 0};
Vz.prototype.JSC$14326_buildRequest=function(p,J){J.token&&(p.continuation=J.token)};
_.Q7y=function(){};
_.Q(_.Q7y,ZX);_.R=_.Q7y.prototype;_.R.getApiPaths=function(){return Rb8};
_.R.getExtension=function(p){return _.e(p,_.by)||void 0};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$14333_getStoreKey=function(p,J){J=J===void 0?{}:J;if(!J.disableCache&&(p=this.getExtension(p))&&p.query)return J={query:p.query},p.params&&(J.params=p.params),_.uj("search",J)};
_.R.JSC$14326_buildRequest=function(p,J,S){J.query&&(p.query=J.query);J.params&&(p.params=J.params);if(!_.z("web_forward_suggest_stats_killswitch")){var H=_.e(J,iD8);H&&(p.suggestStats=H)}var M;!_.z("kevlar_searchbox_stats_killswitch")&&((M=S.tempData)==null?0:M.gs_l)&&!_.e(J,iD8)&&(p.webSearchboxStatsUrl="/search?oq="+(S.tempData.oq||"")+"&gs_l="+S.tempData.gs_l);var X;if((X=S.tempData)==null?0:X.entityMid)J=p.suggestionSearchParams||{},J.entityMid=S.tempData.entityMid,p.suggestionSearchParams=J;
if(_.z("enable_desktop_vdcbg_components")||_.z("enable_inline_muted_playback_on_web_search"))J=_.Gv().getFlag(186),p.inlineSettingStatus=J?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";S.isFromShorts&&(p.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.R.getRequestConfig=function(p,J){J=J===void 0?{}:J;p=this.JSC$14333_getStoreKey(p,J);var S;p&&(S={storeStrategy:{storeKey:p}});_.z("web_log_search_ticks_ks")||(S=S||{},S.requestTick="sr_s",S.responseTick="sr_r");return S};var qM=function(){};
_.Q(qM,ZX);qM.prototype.getApiPaths=function(){return hV8};
qM.prototype.getExtension=function(p){return _.e(p,xF8)};
qM.prototype.JSC$14326_buildRequest=function(p,J){J.serializedGetSharingProviderDataParams&&(p.serializedGetSharingProviderDataParams=J.serializedGetSharingProviderDataParams)};var ag=function(){};
_.Q(ag,ZX);ag.prototype.getApiPaths=function(){return DHd};
ag.prototype.getExtension=function(p){return _.e(p,Ja8)};
ag.prototype.JSC$14326_buildRequest=function(p,J){J.endpoint&&(p.endpoint=J.endpoint);J.action&&(p.action=J.action)};var ER=function(){};
_.Q(ER,ZX);ER.prototype.getApiPaths=function(){return FQo};
ER.prototype.getExtension=function(p){return _.e(p,dFv)};
ER.prototype.JSC$14326_buildRequest=function(p,J){p.videoId=J.videoId;J.scheduledRedirectMetadataSourceVideoId&&(p.scheduledRedirectMetadata={sourceVideoId:J.scheduledRedirectMetadataSourceVideoId})};var YL=function(){};
_.Q(YL,ZX);YL.prototype.getApiPaths=function(){return GLd};
YL.prototype.getExtension=function(p){return _.e(p,_.NUL)};
YL.prototype.JSC$14326_buildRequest=function(p,J){p.params=J.params;p.correctionText=J.correctionText};var rA=function(){};
_.Q(rA,ZX);rA.prototype.getApiPaths=function(){return E5t};
rA.prototype.getExtension=function(p){return _.e(p,_.kQp)};
rA.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params);p.searchQuery=J.searchQuery;p.languageCode=J.languageCode;p.kind=J.kind;p.name=J.name;p.externalVideoId=J.externalVideoId};var jv=function(){};
_.Q(jv,ZX);jv.prototype.getApiPaths=function(){return yAq};
jv.prototype.getExtension=function(p){return _.e(p,SzM)};
jv.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.params=J.params)};var wA=function(p){this.JSC$18597_storeWithEntities=p};
_.Q(wA,ZX);wA.prototype.getApiPaths=function(){return HMd};
wA.prototype.getExtension=function(p){return _.e(p,MZq)||_.e(p,iFL)};
wA.prototype.JSC$14326_buildRequest=function(p,J,S){S.client_data&&(p.clientData=S.client_data);if(J.commerceActionConfig){var H=J.commerceActionConfig;J=H.actionId;H=H.commerceActionParams;J&&(p.actionId=J);H&&(p.commerceActionParams=H)}else{var M=J.actionId,X=J.commerceActionParams;S=J.entityKeys;M&&(p.actionId=M);X&&(p.commerceActionParams=X);var Z;J=(H=this.JSC$18597_storeWithEntities)==null?void 0:(Z=H.getState())==null?void 0:Z.entities;if(S&&J){H=[];Z=_.K(S);for(S=Z.next();!S.done;S=Z.next())if(M=
S.value,S=_.Hq(M).entityType,M=_.RR(J,S,M))X={},H.push((X[S]=M,X));p.entityMutationPayloads=H}}};
wA.prototype.getRequestConfig=function(p){var J,S=(J=_.e(p,MZq))==null?void 0:J.requestSequenceType;if(S&&p.clickTrackingParams&&S!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:p.clickTrackingParams,sequenceType:S}}};
wA[fQ]=[Hu];var xL=function(){};
_.Q(xL,ZX);xL.prototype.getApiPaths=function(){return Bim};
xL.prototype.getExtension=function(p){return _.e(p,_.Wxn)};
xL.prototype.JSC$14326_buildRequest=function(p,J){J.feedbackData&&(p.feedbackData=J.feedbackData);J.params&&(p.itemParams=J.params)};
_.vh.Object.defineProperties(xL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cx=function(){};
_.Q(cx,ZX);cx.prototype.getApiPaths=function(){return Uo4};
cx.prototype.getExtension=function(p){return _.e(p,QHn)};
cx.prototype.JSC$14326_buildRequest=function(p,J,S){S.payments_payload&&(p.paymentsPayload=S.payments_payload);S.offer_params&&(p.offerParams=S.offer_params);J.transactionParams&&(p.transactionParams=J.transactionParams)};var Ig=function(){};
_.Q(Ig,ZX);Ig.prototype.getApiPaths=function(){return s3d};
Ig.prototype.getExtension=function(p){return _.e(p,_.CFE)};
Ig.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.buybucketParams&&(p.buybucketData={params:J.buybucketParams},J.stickerParams?p.buybucketData.stickerParams=J.stickerParams:(S.rich_chat_message?p.buybucketData.richChatMessage=S.rich_chat_message:S.chat_message_text&&(p.buybucketData.chatMessageText=S.chat_message_text),S.purchase_price_micros&&(p.buybucketData.purchasePriceMicros=S.purchase_price_micros.toString())));J.donationAmountMicros&&(p.tipAmountMicros=J.donationAmountMicros,
J.tipParams&&(p.tipParams=J.tipParams));J.offerParams&&(p.offerParams=J.offerParams);J.productData&&(p.productData=J.productData);J.transactionParams&&(p.transactionParams=J.transactionParams)};var Lr=function(){};
_.Q(Lr,ZX);Lr.prototype.getApiPaths=function(){return gln};
Lr.prototype.getExtension=function(p){return _.e(p,UfE)};
Lr.prototype.JSC$14326_buildRequest=function(p,J){J.updateFopParams&&(p.updateFopParams=J.updateFopParams)};var pZ=function(){};
_.Q(pZ,ZX);pZ.prototype.getApiPaths=function(){return tf4};
pZ.prototype.getExtension=function(p){return _.e(p,_.El)};
pZ.prototype.JSC$14326_buildRequest=function(p,J){J.couponCode&&(p.couponCode=J.couponCode);J.params&&(p.itemParams=J.params)};var Jj=function(){};
_.Q(Jj,ZX);Jj.prototype.getApiPaths=function(){return hbv};
Jj.prototype.getExtension=function(p){return _.e(p,_.X2m)};
Jj.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;J.params&&(p.params=J.params);S.ctk&&(p.clientToken=S.ctk)};var S1=function(p){this.JSC$18632_storeWithEntities=p};
_.Q(S1,ZX);S1.prototype.getApiPaths=function(){return DoU};
S1.prototype.getExtension=function(p){return _.e(p,_.Ou)};
S1.prototype.JSC$14326_buildRequest=function(p,J,S){S.purchase_price_micros&&(p.productData={pdgData:{purchasePriceMicros:S.purchase_price_micros.toString()}},S.rich_chat_message&&(p.productData.pdgData.richChatMessage=S.rich_chat_message),S.currency_code&&(p.productData.pdgData.currencyCode=S.currency_code));J.transactionParams&&(p.transactionParams=J.transactionParams);J.clientLocationContext&&(p.clientLocationContext=J.clientLocationContext);S.payments_payload&&(p.paymentsPayload=S.payments_payload);
S.funds_guarantee_callback_client_data&&(p.fundsGuaranteeCallbackClientData=S.funds_guarantee_callback_client_data);var H,M;S=(H=this.JSC$18632_storeWithEntities)==null?void 0:(M=H.getState())==null?void 0:M.entities;if(J.entityKeys&&S){H=[];J=_.K(J.entityKeys);for(M=J.next();!M.done;M=J.next()){var X=M.value;M=_.Hq(X).entityType;if(X=_.RR(S,M,X)){var Z={};H.push((Z[M]=X,Z))}}p.entityMutationPayloads=H}};
S1[fQ]=[Hu];var Hc=function(){};
_.Q(Hc,ZX);Hc.prototype.getApiPaths=function(){return kL8};
Hc.prototype.getExtension=function(p){return _.e(p,yOE)};
Hc.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;S.backend_analytics&&(p.serializedBackendAnalyticsEvent=S.backend_analytics);J.offerParams&&(p.offerParams=J.offerParams)};var Mt=function(){};
_.Q(Mt,ZX);Mt.prototype.getApiPaths=function(){return tf4};
Mt.prototype.getExtension=function(p){return _.e(p,At4)};
Mt.prototype.JSC$14326_buildRequest=function(p,J){J.params&&(p.itemParams=J.params)};var Xd=function(){};
_.Q(Xd,ZX);Xd.prototype.getApiPaths=function(){return Ni8};
Xd.prototype.getExtension=function(p){return _.e(p,_.GKd)};
Xd.prototype.JSC$14326_buildRequest=function(p,J,S){S.resume_time_ms&&(p.resumeTimeMs=S.resume_time_ms);J.pauseParams&&(p.pauseParams=J.pauseParams)};var iR=function(){};
_.Q(iR,ZX);iR.prototype.getApiPaths=function(){return TiU};
iR.prototype.getExtension=function(p){return _.e(p,_.BXd)};
iR.prototype.JSC$14326_buildRequest=function(p,J,S){S=S===void 0?{}:S;S.c&&(p.redeemCode=S.c);S.rd&&(p.riskData=S.rd);S.ctk&&(p.clientToken=S.ctk)};var RF=function(){};
_.Q(RF,ZX);RF.prototype.getApiPaths=function(){return doo};
RF.prototype.getExtension=function(p){return _.e(p,_.bFv)};
RF.prototype.JSC$14326_buildRequest=function(p,J){J.resumeParams&&(p.resumeParams=J.resumeParams)};var KZ=function(p,J){this.clientName=p;this.defaultExpirationDelayMs=J};
KZ.prototype.put=function(p,J){var S=this,H;return _.G(function(M){H=Object.assign({},J.data);H.key=p;H.clientName=S.clientName;H.expireTimestampMs===void 0&&(H.expireTimestampMs=(Math.round((0,_.fO)())+S.defaultExpirationDelayMs).toString());return M.return(S.putInternal(p,H))})};
KZ[fQ]=[$g,bAw];var CWr=function(){KZ.apply(this,arguments);this.JSC$18662_responseStore=new Map};
_.Q(CWr,KZ);_.R=CWr.prototype;_.R.get=function(p){var J=this;return _.G(function(S){return S.return(uA(J,p))})};
_.R.putInternal=function(p,J){var S=this,H,M,X;return _.G(function(Z){H=S.defaultExpirationDelayMs;J.expireTimestampMs&&(H=Number(J.expireTimestampMs)-Math.round((0,_.fO)()),M=_.PO("mweb_override_response_store_expiration_ms"),M>0&&M<H&&(H=M));X=setTimeout(function(){S.remove(p)},H);
S.JSC$18662_responseStore.set(p,{entryData:J,timer:X});_.UK(Z)})};
_.R.remove=function(p){var J=this;return _.G(function(S){yTy(J,p);_.UK(S)})};
_.R.removeAll=function(){var p=this;return _.G(function(J){p.JSC$18662_responseStore.forEach(function(S){clearTimeout(S.timer)});
p.JSC$18662_responseStore.clear();_.UK(J)})};
_.R.has=function(p){return!!this.JSC$18662_responseStore.get(p)};
_.R.getKeys=function(){return this.JSC$18662_responseStore.keys()};
var uA=function(p,J){if(p=p.JSC$18662_responseStore.get(J))return new _.dU(p.entryData)},yTy=function(p,J){var S=p.JSC$18662_responseStore.get(J);
S&&(clearTimeout(S.timer),p.JSC$18662_responseStore.delete(J))};var pAL;var Hhi=function(p,J,S){KZ.call(this,p,J);this.token=S};
_.Q(Hhi,KZ);_.R=Hhi.prototype;_.R.get=function(p){var J=this,S,H;return _.G(function(M){return M.nextAddress==1?M.yield(Sb3(J.token),2):M.nextAddress!=3?(S=M.yieldResult,M.yield(S.get("ResponseStore",[p,J.clientName]),3)):(H=M.yieldResult)?M.return(new _.dU(H)):M.return(void 0)})};
_.R.putInternal=function(p,J){var S=this,H;return _.G(function(M){if(M.nextAddress==1)return M.yield(Sb3(S.token),2);H=M.yieldResult;return M.yield(H.put("ResponseStore",J),0)})};
_.R.remove=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(Sb3(J.token),2);S=H.yieldResult;return H.return(S.delete("ResponseStore",[p,J.clientName]))})};
_.R.removeAll=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return S.yield(Sb3(p.token),2);J=S.yieldResult;return S.yield(YJo(J,IDBKeyRange.only(p.clientName)),0)})};
_.R.has=function(){throw Error("ij");};_.ZE=new _.ni("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var BpP=function(p){var J;this.stateTagsData=(J=p.responseContext)==null?void 0:J.stateTags},ULy=function(p){var J;
return((J=p.stateTagsData)==null?void 0:J.stateTagsModified)||[]};var s7M;s7M=function(p){this.JSC$18675_responseStore=p};
_.lb=function(p,J,S){if(!_.z("state_tags_killswitch")){var H=new BpP(J);if(ULy(H).length>0){var M=p.JSC$18675_responseStore.getKeys();M=_.K(M);for(var X=M.next();!X.done;X=M.next()){X=X.value;var Z=uA(p.JSC$18675_responseStore,X);if(Z){var n=_.It(Z);a:{var b=void 0;Z=ULy(H);n=((b=(new BpP(n)).stateTagsData)==null?void 0:b.relevantStateTags)||[];b=_.K(n);for(n=b.next();!n.done;n=b.next())if(n=n.value,n.stateTag!=null&&Z.includes(n.stateTag)&&n.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){Z=
!0;break a}Z=!1}Z&&yTy(p.JSC$18675_responseStore,X)}}}}var F;H=(F=J.responseContext)==null?void 0:F.maxAgeSeconds;S&&H&&Number(H)>0&&(J=XJ(J,H),p.JSC$18675_responseStore.put(S,new _.dU(J)))};
s7M.prototype.handleResponse=function(p,J){if(!J)throw Error("jj");var S,H;J=(S=J.config)==null?void 0:(H=S.storeStrategy)==null?void 0:H.storeKey;_.lb(this,p,J)};
s7M[fQ]=[_.T0];_.Ckw=new _.ni("STORE_RESPONSE_PROCESSOR_TOKEN");var gcP=function(p){this.JSC$18678_responseStore=p};
gcP.prototype.handleResponse=function(p,J){if(J.input.match(_.jx(LQU))){var S;if(p==null?0:(S=p.entries)==null?0:S.length)for(p=_.K(p.entries),J=p.next();!J.done;J=p.next()){S=J.value.command;var H=void 0;J=(H=_.e(S,_.vt))==null?void 0:H.unserializedPrefetchData;if(!S||!J)break;H=(new t6).JSC$14333_getStoreKey(S);var M=_.e(J,Zep),X=void 0,Z=void 0,n=void 0,b=void 0,F=void 0,f=void 0,O=((X=M)==null?0:(Z=X.responseContext)==null?0:Z.maxAgeSeconds)&&Number((n=M)==null?void 0:(b=n.responseContext)==null?
void 0:b.maxAgeSeconds)>0?Number((F=M)==null?void 0:(f=F.responseContext)==null?void 0:f.maxAgeSeconds):600;H&&O>0&&(M=XJ(M,O),this.JSC$18678_responseStore.put(H,new _.dU(M)));S=(new Y$).JSC$14333_getStoreKey(S);J=_.e(J,rLp);b=n=Z=X=M=H=void 0;F=((H=J)==null?0:(M=H.responseContext)==null?0:M.maxAgeSeconds)&&Number((X=J)==null?void 0:(Z=X.responseContext)==null?void 0:Z.maxAgeSeconds)>0?Number((n=J)==null?void 0:(b=n.responseContext)==null?void 0:b.maxAgeSeconds):600;S&&F>0&&(J=XJ(J,F),this.JSC$18678_responseStore.put(S,
new _.dU(J)))}}};
gcP[fQ]=[_.T0];var tmU=function(p,J){this.innertubeTransportService=p;this.JSC$18681_commandHandler=J};
tmU.prototype.submitForm=function(p,J,S,H,M){var X=this,Z,n,b,F,f,O;return _.G(function(A){if(A.nextAddress==1)return Z={submitId:p,formData:J,submitBehavior:S,params:H},n=_.jx(bf8),A.yield(_.mX(X.innertubeTransportService,Z,n,M),2);b=A.yieldResult;if(!b)return A.return(Promise.reject(new _.TG("Submit API returned an undefined response. Submit ID: "+p)));F=b;(O=(f=F)==null?void 0:f.onResponseReceived)&&X.JSC$18681_commandHandler.resolveCommand(O);return A.return(F)})};
tmU[fQ]=[_.Ac,_.Ov];var nZ=function(){this.scheduler=_.Qb()},hwN;
nZ.prototype.pause=function(){throw Error("kj");};
nZ.prototype.resume=function(){throw Error("kj");};
nZ.prototype.queue=function(p){var J=this,S=_.qr(),H=_.uS(this.scheduler,function(){try{var M;if(_.R4.instance)var X=_.R4.instance;else{var Z=new _.TG("Error: Unexpected uninitialized CommandHandler.");_.jD(Z);X=void 0}(M=X)==null||M.resolveCommand(p.command);S.resolve()}catch(n){S.reject(n)}});
S.promise.thenCatch(function(M){M instanceof _.DP&&J.scheduler.cancelJob(H)});
return S.promise};
nZ.prototype.queueAll=function(p){var J=new Map;p=_.K(p);for(var S=p.next();!S.done;S=p.next())S=S.value,J.set(S.id,this.queue(S));return J};var kNe=function(p,J){var S=this;this.taskModel=p;this.onTaskCancelledCallback=J;this.resolver=_.qr();p=p.proto.prefetchConfig;if(!p)throw Error("lj");if(!p.prefetchAction)throw Error("mj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(H){H instanceof _.DP&&(DLf(S,S.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),S.onTaskCancelledCallback(S.taskModel.id,S.jobId),S.tick("pcc"));
throw H;});
this.timerName=this.taskModel.id;_.W9(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
kNe.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var DLf=function(p,J){_.o5({prefetchInfo:{cancellationReason:J}},p.timerName)};
kNe.prototype.tick=function(p){_.Qf(p,void 0,this.timerName)};var bR=function(){var p=this;this.scheduler=_.Qb();this.maxInflightTasks=_.PO("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.PO("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new WKp;this.onTaskCancelled=function(J,S){S&&p.scheduler.cancelJob(S);Npe(p,J);GS(p,3)}},Tpf=function(){bR.instance||(bR.instance=new bR);
return bR.instance};
bR.prototype.pause=function(){this.prefetchCoordinatorState=0};
bR.prototype.resume=function(){GS(this,0)};
bR.prototype.queue=function(p){p=dLr(this,p);GS(this,1);return p};
bR.prototype.queueAll=function(p){var J=new Map;p=_.K(p);for(var S=p.next();!S.done;S=p.next())S=S.value,J.set(S.id,dLr(this,S));GS(this,1);return J};
var dLr=function(p,J){var S=p.allPrefetchTasks.get(J.id);if(S)return S.cancellablePromise;try{var H=new kNe(J,p.onTaskCancelled)}catch(X){return _.o4(X)}S=H;S.tick("pcq");var M={prefetchInfo:{taskId:S.taskModel.id,isPrefetch:!0,fetchAction:S.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:S.taskModel.command.clickTrackingParams}};S.taskModel.csn&&(M.clientScreenNonce=S.taskModel.csn);_.o5(M,S.timerName);p.allPrefetchTasks.set(J.id,H);p.drainingHeap.insert(-H.getPriority(),H);return H.cancellablePromise},
GS=function(p,J){p.prefetchCoordinatorState===J&&(p.prefetchCoordinatorState=2,uSP(p))},uSP=function(p){for(var J={};p.prefetchCoordinatorState!==0;J={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(p.inflightPrefetchTasks.size>=p.maxInflightTasks){p.prefetchCoordinatorState=3;break}J.prefetchTask$jscomp$1=p.drainingHeap.remove();if(!J.prefetchTask$jscomp$1){p.prefetchCoordinatorState=1;break}J.taskId$jscomp$3=J.prefetchTask$jscomp$1.taskModel.id;if(p.allPrefetchTasks.has(J.taskId$jscomp$3)){var S=-1;p.coordinatorTimeoutMs>0&&(S=_.uS(p.scheduler,function(H){return function(){mh(p,H.taskId$jscomp$3,Error("nj"))}}(J),p.coordinatorTimeoutMs));
p.inflightPrefetchTasks.set(J.taskId$jscomp$3,S);if(!p.JSC$18698_commandHandler){if(!_.R4.instance){mh(p,J.taskId$jscomp$3,Error("oj"));continue}p.JSC$18698_commandHandler=_.R4.instance}a:switch(J.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":S=1;break a;default:S=0}J.prefetchTask$jscomp$1.jobId=p.scheduler.addJob(function(H){return function(){H.prefetchTask$jscomp$1.tick("pcr");try{p.JSC$18698_commandHandler.resolveCommand(H.prefetchTask$jscomp$1.taskModel.command)||
mh(p,H.taskId$jscomp$3,Error("pj"))}catch(M){mh(p,H.taskId$jscomp$3,M)}}}(J),S,0)}}},ldf=function(p,J){(J=Npe(p,J))!=null&&(J.resolver.resolve(),J.tick("pce"));
GS(p,3)},mh=function(p,J,S){(J=Npe(p,J,S))!=null&&(J.resolver.reject(S),J.tick("pcc"),DLf(J,"CANCELLATION_REASON_ERROR"),Math.random()<=_.PO("prefetch_coordinator_error_logging_sampling_rate")&&(S=new _.TG("Prefetch Command failed.",J.taskModel.id,S.message),_.jD(S)));
GS(p,3)},Npe=function(p,J,S){var H=p.allPrefetchTasks.get(J);
H?((S=p.inflightPrefetchTasks.get(J))&&S!==-1&&p.scheduler.cancelJob(S),p.inflightPrefetchTasks.delete(J),p.allPrefetchTasks.delete(J)):_.xQ(new _.TG("Unexpected missing prefetch task when deleting task.",J,S==null?void 0:S.message));return H};var VmP=function(p,J,S,H,M){this.id=p;this.triggerOn=J;this.cancelOn=S;this.command=H;this.proto=M};
_.vh.Object.defineProperties(VmP.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var qVp=function(){this.JSC$18703_prefetchCoordinator=Tpf();hwN||(hwN=new nZ);this.defaultCoordinator=hwN},adl;
qVp.getInstance=function(){adl||(adl=new qVp);return adl};
qVp.prototype.get=function(p){switch(p){case 0:return this.JSC$18703_prefetchCoordinator;default:return this.defaultCoordinator}};var Fd=function(){this.coordinatorSupplier=qVp.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},rTe=function(p){var J=_.C1()||void 0,S=Object.keys(EcU)[0];
if(S){var H=p.taskIdByTriggerId.get(S);if(H!=null){p.taskIdByTriggerId.delete(S);S=[];H=_.K(H);for(var M=H.next();!M.done;M=H.next())if(M=p.tasks.get(M.value))J!=="UNDEFINED_CSN"&&(M.csn=J),S.push(M);S=ihv(S);J=[];S=_.K(S);for(H=S.next();!H.done;H=S.next()){M=_.K(H.value);H=M.next().value;M=M.next().value;H=p.coordinatorSupplier.get(H).queueAll(M);H=_.K(H);var X=H.next();for(M={};!X.done;M={taskId$jscomp$9:void 0},X=H.next()){var Z=_.K(X.value);X=Z.next().value;Z=Z.next().value;M.taskId$jscomp$9=
X;X=Z;J.push(M.taskId$jscomp$9);p.queuedPromisesByTask.set(M.taskId$jscomp$9,_.Nv(X,function(n){return function(){YVI(p,n.taskId$jscomp$9)}}(M)))}}}}else _.xQ(new _.TG("Unexpected malformed TriggerEvent."))};
Fd.prototype.trigger=function(p,J){var S=this,H=this.tasks.get(p);if(!H||this.queuedPromisesByTask.has(p))return!1;j7e(this,p,H.triggerOn);J!=="UNDEFINED_CSN"&&(H.csn=J);J=this.coordinatorSupplier.get(H.taskType).queue(H);this.queuedPromisesByTask.set(p,_.Nv(J,function(){YVI(S,p)}));
return!0};
Fd.prototype.cancel=function(p){var J=this.queuedPromisesByTask.get(p);if(J)J.cancel();else return YVI(this,p)};
var YVI=function(p,J){p.queuedPromisesByTask.delete(J);var S=p.tasks.get(J);if(!S)return!1;p.tasks.delete(J);j7e(p,J,S.triggerOn);(S=XA4(S.cancelOn))&&(p=p.taskIdByCancelId.get(S))&&p.delete(J);return!0},j7e=function(p,J,S){(S=Object.keys(S)[0])&&(p=p.taskIdByTriggerId.get(S))&&p.delete(J)};var EcU={taskRegistered:{}},vc=function(){Fd.instance||(Fd.instance=new Fd);this.JSC$18712_taskManager=Fd.instance};
_.Q(vc,Oh);
vc.prototype.resolveCommand=function(p){var J=this,S,H;return _.G(function(M){S=_.e(p,R$8);if((H=S)==null||!H.tasks){var X=new _.TG("RegisterTasksCommand is missing tasks.");_.jD(X);return M.return()}X=J.JSC$18712_taskManager;for(var Z=_.K(S.tasks),n=Z.next();!n.done;n=Z.next())if(n=n.value,n=n.id&&n.triggerOn&&n.cancelOn&&n.command?new VmP(n.id,n.triggerOn,n.cancelOn,n.command,n):void 0,n){var b=Object.keys(n.triggerOn)[0];if(b){var F=XA4(n.cancelOn);F?(X.tasks.set(n.id,n),X.taskIdByTriggerId.has(b)||X.taskIdByTriggerId.set(b,
new Set),X.taskIdByTriggerId.get(b).add(n.id),X.taskIdByCancelId.has(F)||X.taskIdByCancelId.set(F,new Set),X.taskIdByCancelId.get(F).add(n.id)):_.xQ(new _.TG("Unexpected malformed cancelOn field."))}else _.xQ(new _.TG("Unexpected malformed triggerOn field."))}else _.xQ(new _.TG("Unexpected malformed Task proto."));rTe(J.JSC$18712_taskManager);_.UK(M)})};var w0f={},xLP=(w0f.rendered={priority:_.z("web_adaptive_early_init")?8:0,callback:function(){var p={};p.numCpu=navigator.hardwareConcurrency;var J={};J.ramGb=_.Hg.navigator.deviceMemory;var S={staticContext:{}};J.ramGb&&vJv(J.ramGb)&&(S.staticContext.memoryTotalKbytes=(J.ramGb*1048576).toString());p.numCpu&&vJv(p.numCpu)&&(S.staticContext.cpuCores=p.numCpu);if(_.z("web_enable_adaptive_appl_signal")){p={};J=Pp3();J=J.length>0?J[0]:void 0;var H,M=(H=_.B9("rses_dpj"))!=null?H:J==null?void 0:J.tick.rses_dpj,
X;H=(X=_.B9("rsef_dpj"))!=null?X:J==null?void 0:J.tick.rsef_dpj;M&&Number(M)>0&&H&&Number(H)>0&&(X=Math.ceil(Number(H)-Number(M)),X>0&&(p.loadLatency=X));p.loadLatency&&vJv(p.loadLatency)&&(S.appL=p.loadLatency.toString())}_.YQ("applicationStarted",S);fiw=S;_.z("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",O2L)}},w0f);var cTy=new _.ni("WINDOW_ON_ERROR"),Idy=new _.ni("ERROR_WEIGHT_MAPS"),LHM=new _.ni("INIT_ERROR");var pWU={},JZM=(pWU.initialized={priority:10,callback:function(p){p.injector.resolve(LHM)()}},pWU);var SGl=function(){},HUr=function(){var p=_.Id("meta_logger_impl");
p||(p=new SGl,_.m$("meta_logger_impl",p));return p},MQN=function(){HUr().csiSubscriptionKey=lck("meta_logging_csi_event",function(p){var J=p.timerName;
if(p=p.timelineData){_.W9(J,{startTime:p.startTime},J);p.infos&&_.o5(p.infos,J);for(var S=_.K(Object.keys(p.ticks)),H=S.next();!H.done;H=S.next())H=H.value,_.Qf(H,p.ticks[H],J)}})};
SGl.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&acv(this.csiSubscriptionKey)};var XWe={},iUP=(XWe.initialized={priority:10,callback:function(){MQN()}},XWe);var RWM=function(p,J){this.innertubeClientName=p;this.JSC$18723_prefCookie=J};
RWM.prototype.record=function(){if(_.z("web_li_record_binary_eval_tick")){var p=_.B9("rsef_dpj");var J=_.B9("rses_dpj");p=p!==void 0&&J!==void 0?Math.round(p-J):void 0;if(p!==void 0&&p>0){J=_.$t(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var S=this.poolSize;if(!(J.valuesSeen>=1E9)){if(J.valuesSample.length<S)J.valuesSample.push(p);else{var H=Math.floor(Math.random()*(J.valuesSeen+1));H<S&&(J.valuesSample[H]=p)}J.valuesSeen+=1}_.ze(this.storagePrefix+"-"+this.innertubeClientName,
J,2592E3);p=J.valuesSample;J=Roi(p);p=p.length<this.poolSize?void 0:J<400?1:J<1700?2:3;p!==void 0&&(this.JSC$18723_prefCookie.set(this.cookiePrefix+this.innertubeClientName,p),this.JSC$18723_prefCookie.save())}}else _.eS(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18723_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18723_prefCookie.save()};
RWM[fQ]=[$g,RN];var Krf=function(){RWM.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.Q(Krf,RWM);var ZUM=new _.ni("PAGE_LOAD_TIME_TOKEN");var nTN=function(p){this.signal=p;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;p.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.uS(_.wg,this.disableLoggingAndSendPayload,1E4)};
nTN.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.wg.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),GAI(this))};
var GAI=function(p){var J=_.Wf();if(J){var S={webClientComponentsData:{components:Array.from(p.ids,function(H){return{id:H}})}};
p.ids.clear();_.bC().visualElementStateChanged(J,S)}};var bUI=yI({a11y:Y6U});_.msp=Bv(bUI)(bUI.a11y,{ephemeralActionSelector:function(p){return p.ephemeralAction||null}});var FrU=yI({continuation:cvn});var vTp=Bv(FrU)(FrU.continuation,{continuationCommandSelector:function(p){return p.continuationCommand}});var fDN=new _.ni("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var fZ=function(p,J){this.JSC$18752_storeWithEntities=p;this.JSC$18752_commandHandler=J;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
fZ.prototype.start=function(){this.JSC$18752_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
fZ.prototype.observeDownloadingEntities=function(){var p=_.NbW(this.JSC$18752_storeWithEntities.getState().entities).map(function(H){return TbW(H)});
if(p.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var J={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:IAX()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.I5(_.Kl("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18752_commandHandler.resolveCommand(J)}this.downloadingEntities=p}else if(this.downloadingEntities.length){var S=kki(this.JSC$18752_storeWithEntities.getState().entities).map(function(H){return TbW(H)});
this.downloadingEntities.filter(function(H){return S.includes(H)}).length&&(p={openPopupAction:dhg()},this.JSC$18752_commandHandler.resolveCommand(p));
this.downloadingEntities=[]}};
fZ[fQ]=[Hu,_.Ov];var OUP;_.Ox=function(p,J,S,H,M,X,Z,n){this.JSC$18755_playerApiPromise=p;this.JSC$18755_commandHandler=J;this.JSC$18755_screenManager=S;this.offlineWebClientEligibility=H;this.JSC$18755_prefStorage=M;this.JSC$18755_actionRouter=X;this.entityTypeMap=Z;this.JSC$18755_persistentStorePromiseAccessor=n;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
OUP=function(){var p=_.vO().resolve(_.Ox),J;_.G(function(S){if(S.nextAddress==1)return p.downloadFailureListenerBound?S.return():S.yield(p.JSC$18755_playerApiPromise,2);J=S.yieldResult;J.addEventListener("onOfflineOperationFailure",function(H){if(H.failureReason&&H.entityKey&&H.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(H.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var M=_.Hq(H.entityKey).entityId;M&&p.JSC$18755_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
M)}else if(_.z("kevlar_woffle")){M=p.JSC$18755_commandHandler;var X=M.resolveCommand;H=H.failureReason;var Z=_.Kl("TRANSFER_FAILED",void 0,"Download failed");H==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(Z=_.Kl("STORAGE_FULL",void 0,"Storage full"));X.call(M,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.I5(Z),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
p.downloadFailureListenerBound=!0;_.UK(S)})};
_.Ox.prototype.deleteVideo=function(p,J){var S=this,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return Z.yield(S.JSC$18755_playerApiPromise,2);H=Z.yieldResult;X={offlineLoggingData:{offlineDeleteReason:(M=J)!=null?M:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return Z.yield(H.queueOfflineAction(p,S.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",X),0)})};
_.Ox.prototype.pauseVideoDownload=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(J.JSC$18755_playerApiPromise,2);S=H.yieldResult;S.pauseVideoDownload(p);_.UK(H)})};
_.Ox.prototype.resumeVideoDownload=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(J.JSC$18755_playerApiPromise,2);S=H.yieldResult;return H.yield(S.resumeVideoDownload(p),0)})};
_.Ox[fQ]=[_.H$,_.Ov,_.c3,fDN,Gz,C5,q68,ao];var AZp=new _.ni("DOWNLOAD_STATE_STORE_TOKEN");var Pfy=function(p,J){this.JSC$18776_persistentStorePromiseAccessor=p;this.store=J;this.upliftCompletionResolver=new _.iy},oTe=function(){var p=_.vO().resolve(zWl),J;
_.G(function(S){switch(S.nextAddress){case 1:if(p.upliftImplPromise)return S.return(p.upliftImplPromise);_.oI(S,2);p.upliftImplPromise=$sw(p);return S.yield(p.upliftImplPromise,4);case 4:p.upliftCompletionResolver.resolve();_.X$(S,3);break;case 2:throw J=_.BZ(S),p.upliftCompletionResolver.reject(J),J;case 3:return S.return(p.upliftImplPromise)}})},$sw=function(p){var J,S,H;
return _.G(function(M){switch(M.nextAddress){case 1:return _.wY("LOGGED_IN")?M.yield(p.JSC$18776_persistentStorePromiseAccessor(),2):M.return();case 2:J=M.yieldResult;if(!J)return _.Qf("vdeur"),M.return();_.Qf("vdeus");_.oI(M,3);return M.yield(eWN(J),5);case 5:S=M.yieldResult;p.store.dispatch($Z4(S));J.observe(function(X){owX(p.store,X)});
_.X$(M,4);break;case 3:throw H=_.BZ(M),_.Qf("vdeur"),H;case 4:_.Qf("vdeuc"),_.UK(M)}})},eWN=function(p){var J;
return _.G(function(S){if(S.nextAddress==1)return S.yield(mdi(p),2);J=S.yieldResult;return S.return(J.reduce(function(H,M){if(!M.data||!M.key||!M.entityType)return H;H[M.entityType]||(H[M.entityType]={});H[M.entityType][M.key]=M.data;return H},{}))})};
Pfy[fQ]=[ao,_.XN];var zWl;zWl=new _.ni("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Aj=new _.ni("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Pc=function(p,J){this.JSC$18779_persistentStorePromiseAccessor=p;this.transportService=J};
Pc.prototype.refresh=function(){var p=this,J,S,H,M;return _.G(function(X){if(X.nextAddress==1)return _.wY("LOGGED_IN")?X.yield(p.JSC$18779_persistentStorePromiseAccessor(),2):X.return();if(X.nextAddress!=3)return(J=X.yieldResult)?X.yield(EM4(J),3):X.return();if((S=X.yieldResult)&&!(Number(S.data.refreshTimestampMs||0)<(0,_.fO)()))return X.return();H={browseId:"SPaccount_downloads"};M=_.jx(at);_.mX(p.transportService,H,M).then(function(Z){var n;if(J&&(Z==null?void 0:(n=Z.responseContext)==null?void 0:
n.maxAgeSeconds)!==0){var b;n=(Z==null?void 0:(b=Z.responseContext)==null?void 0:b.maxAgeSeconds)||604800;b=String(Math.floor((0,_.fO)())+n*1E3);J.put("service:downloads_settings:fallback",new _.dU({innertubeResponse:Z,refreshTimestampMs:b}))}});
_.UK(X)})};
Pc[fQ]=[_.ZE,_.Ac];var zS=function(p,J){this.JSC$18783_playerPromise=p;this.store=J;this.started=!1};
zS.prototype.start=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return p.started?S.return():S.yield(p.JSC$18783_playerPromise,2);J=S.yieldResult;J.addEventListener("onOrchestrationBecameLeader",p.updateIsLeader.bind(p,!0));J.addEventListener("onOrchestrationLostLeader",p.updateIsLeader.bind(p,!1));if(J.isOrchestrationLeader)p.updateIsLeader(J.isOrchestrationLeader());else{var H=new _.TG("Function isOrchestrationLeader is undefined",{"player.isReady":J.isReady(),"player.playVideo":J.playVideo?
"defined":"undefined"});_.jD(H);p.updateIsLeader(!1)}p.started=!0;_.UK(S)})};
zS.prototype.updateIsLeader=function(p){this.store.dispatch(_.Jk({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:p}}))};
zS[fQ]=[_.H$,_.XN];var WrP=function(p,J){this.networkStatusManager=p;this.JSC$18786_prefStoragePromise=J;this.redirectsToPreload=["https://youtube.com"]},Q2r=function(){var p=_.vO().resolve(WrP),J,S,H,M,X,Z;
_.G(function(n){switch(n.nextAddress){case 1:return n.yield(p.JSC$18786_prefStoragePromise,2);case 2:J=n.yieldResult;if(!(S=J)){n.jumpTo(3);break}return n.yield(J.get("yt-redirect-prefetch-id"),4);case 4:S=n.yieldResult;case 3:if(S||!p.networkStatusManager.isNetworkAvailable())return n.return();H={cache:"reload",redirect:"manual"};M=_.K(p.redirectsToPreload);X=M.next();case 5:if(X.done){if(!J){n.jumpTo(0);break}return n.yield(J.set("yt-redirect-prefetch-id",!0,86400),0)}Z=X.value;_.oI(n,8);return n.yield(_.Hg.fetch(Z,
H),10);case 10:_.X$(n,6);break;case 8:_.BZ(n);case 6:X=M.next(),n.jumpTo(5)}})};var Cfl=function(p){this.JSC$18792_pageManager=p},yZP=function(p){var J=[];
Ohk(["videoId","contentId"],p.JSC$18792_pageManager.data,new Set,J);return J},BrP=function(p){return yZP(p).filter(function(J){return J.contentType==="video"}).map(function(J){return J.contentId}).filter(function(J){return J!==void 0})};
Cfl[fQ]=[_.xz];var UsI=new _.ni("PAGE_CONTENT_EXTRACTOR_TOKEN");var $k=function(p){p?(this.container=p,this.containerWasInjected=!0):this.containerWasInjected=!1};
$k.prototype.openDialog=function(p,J,S){var H=this,M;return _.G(function(X){(M=H.container)==null||M.openDialog(p,J,S);_.UK(X)})};
$k.prototype.closeDialog=function(){var p=this,J;return _.G(function(S){(J=p.container)==null||J.closeDialog();_.UK(S)})};
$k.prototype.isDialogOpen=function(){var p=this,J,S;return _.G(function(H){return H.return((S=(J=p.container)==null?void 0:J.isDialogOpen())!=null?S:!1)})};
$k[fQ]=[_.F9(igd)];_.s2N=new _.ni("POPUP_CONTROLLER_TOKEN");var gTw=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
gTw.prototype.registerPanel=function(p,J){if(p){this.panelMap.set(p,J);var S=this.pendingPanelResolvers.get(p);S&&(S.resolve(J),this.pendingPanelResolvers.delete(p))}};
gTw.prototype.getPanel=function(p){var J=this,S;return _.G(function(H){return(S=J.panelMap.get(p))?H.return(S):H.return(tQr(J,p))})};
var tQr=function(p,J){var S,H;return _.G(function(M){if(S=p.pendingPanelResolvers.get(J))return M.return(S.promise);H=new _.iy;p.pendingPanelResolvers.set(J,H);return M.return(H.promise)})},hWf=function(p,J){gTw.call(this);
var S=this;this.popupController=p;this.persistentPanelController=J;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return S.panelMap.size}}};
_.Q(hWf,gTw);_.R=hWf.prototype;_.R.getReloadContinuation=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(J.getPanel(p),2);S=H.yieldResult;return H.return(S.getReloadContinuation())})};
_.R.showPanel=function(p){var J=this,S,H,M,X,Z,n,b,F,f,O,A,P;return _.G(function(W){if(W.nextAddress==1){S=p;H=S.identifier;M=S.panelContents;X=S.config;Z=S.extras;n=S.panelUpdatableFields;b=S.updatePanelContinuationData;F=p.target;b&&J.updatePanelContinuationDatas.set(H,b);if((f=X)==null?0:(O=f.engagementPanelPopupPresentationConfig)==null?0:O.popupType)if(A=X.engagementPanelPopupPresentationConfig.popupType,F===void 0&&(F=document.body),A==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!J.persistentPanelController)return _.xQ(new _.TG("Persistent panel controller is not available.")),
W.return();var y=J.persistentPanelController;y.persistentPanelIdentifiers.has(H)||(y.persistentPanelWrapper.appendChild(y.engagementPanelElement({panelIdentifier:H},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),y.persistentPanelIdentifiers.add(H));a:switch(_.uT.currentPageSubTypeSelector(y.store.getState())){case "watch":var t="WATCH";break a;default:t="APP"}_.Dse(y,t);y.store.dispatch(je8(!0))}else{if(A==="PANEL_POPUP_TYPE_DIALOG"||A==="PANEL_POPUP_TYPE_DROPDOWN"){y=W.return;t=J.popupController;
var D=t.openPopup;a:switch(A){case "PANEL_POPUP_TYPE_DIALOG":var k="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":k="DROPDOWN";break a;default:throw Error("rj`"+A);}return y.call(W,D.call(t,H,M,k,F))}_.xQ(new _.TG("Popup type "+A+" not supported in PanelController."))}return W.yield(J.getPanel(H),2)}P=W.yieldResult;(M||n)&&P.updatePanel(M,!1,Z,n);P.showPanel(Z);_.UK(W)})};
_.R.hidePanel=function(p){var J=this,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return S=p,H=S.identifier,Z.yield(J.getPanel(H),2);M=Z.yieldResult;M.hidePanel();J.popupController.closePopup(H);(X=J.persistentPanelController)!=null&&X.persistentPanelIdentifiers.has(H)&&X.store.dispatch(je8(!1));_.UK(Z)})};
_.R.isVisible=function(p,J){var S=this,H;return _.G(function(M){if(M.nextAddress==1)return J&&!S.panelMap.has(p)?M.return(!1):M.yield(S.getPanel(p),2);H=M.yieldResult;return M.return(H.isVisible())})};
_.R.updatePanel=function(p){var J=this,S,H,M,X,Z,n,b,F;return _.G(function(f){if(f.nextAddress==1){S=p;H=S.identifier;M=S.panelContents;X=S.shouldFocus===void 0?!1:S.shouldFocus;Z=S.extras;n=S.panelUpdatableFields;b=S.updatePanelContinuationData;if(!M&&!n)return f.return();b&&J.updatePanelContinuationDatas.set(H,b);_.z("enable_ai_companion")&&H==="PAai_companion"&&_.Ol.remove("youchat_messages_section");return f.yield(J.getPanel(H),2)}F=f.yieldResult;F.updatePanel(M,X,Z,n);M&&_.z("enable_ai_companion")&&
J.registerPanelContent(H,M);_.UK(f)})};
_.R.registerPanelContent=function(p,J){p&&this.panelContentMap.set(p,J)};
_.R.unregisterPanelContent=function(p){this.panelContentMap.delete(p)};
_.R.getPanelContent=function(p){return this.panelContentMap.get(p)};
_.R.getUpdatePanelContinuationData=function(p){return this.updatePanelContinuationDatas.get(p)};
hWf[fQ]=[_.s2N,_.F9(_.M_)];var oF=function(p,J){this.innertubeTransportService=p;this.JSC$18811_screenManager=J},kAM=function(p){var J;
return!((J=p.panelLoadingStrategy)==null||!J.requestTemplate)};
oF.prototype.makeRequest=function(p){var J=this,S,H;return _.G(function(M){switch(M.nextAddress){case 1:if(!kAM(J)){M.jumpTo(2);break}_.oI(M,3);return M.yield(_.VI(J.innertubeTransportService,p),5);case 5:return S=M.yieldResult,S?M.return(S.content):(_.jD(Error("sj")),M.return(void 0));case 3:H=_.BZ(M),_.jD(H);case 2:return M.return(void 0)}})};
oF.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
oF.prototype.execute=function(p){var J=this,S,H,M,X,Z,n,b,F,f,O;return _.G(function(A){if(A.nextAddress==1){S=p;H=S.data;M=S.fallbackVe;X=S.parentVe;Z=S.createScreenConfig;n=S.renderFn;b=S.command;J.panelLoadingStrategy=H;var P,W,y=((P=J.panelLoadingStrategy)==null?0:P.screenVe)?(W=J.panelLoadingStrategy)==null?void 0:W.screenVe:M;y&&_.TZ(J.JSC$18811_screenManager,y,X,Z);return(F=J.getContent())?A.yield(n(F),2):A.jumpTo(2)}return A.nextAddress!=4?kAM(J)?A.yield(J.makeRequest(b),4):A.return():(O=f=
A.yieldResult)?A.yield(n(O),0):A.return()})};
oF[fQ]=[_.Ac,_.c3];var NrP;NrP=function(p,J){this.engagementPanelElement=p;this.store=J;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.Dse=function(p,J){var S=p.persistentPanelContainerMap.get(J);S?S.contains(p.persistentPanelWrapper)||(p=p.persistentPanelWrapper,_.we=!0,_.x2.set(p,!0),S.insertBefore(p,null),_.x2.delete(p),_.we=!1):_.xQ(new _.TG("Persistent panel container not found for surface "+J+"."))};
NrP[fQ]=[RA8,_.XN];var e1=function(){var p=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.onHoverEntered=function(){p.isHovered=!0;var J;(J=p.hoverEnterCallback)==null||J.call(p)};
this.onHoverLeft=function(){p.isHovered=!1;var J;(J=p.hoverLeaveCallback)==null||J.call(p)}};
e1.prototype.getContainer=function(){return _.rG()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
e1.prototype.openSheet=function(p,J){var S=this,H,M,X,Z,n,b,F;return _.G(function(f){switch(f.nextAddress){case 1:return H={stack:[],error:void 0,hasError:!1},_.oI(f,2,3),M=X4,f.yield(S.isSheetOpen(),5);case 5:X=f.yieldResult;OLd(H,$1v(M));if(!X){f.jumpTo(6);break}if(!S.shouldPreventClosingWhileHovered){if(!_.z("delay_sheet_open_killswitch")){if(_.z("web_close_sheet_if_same_target_killswitch")&&J&&S.currentTarget===J)return(Z=S.getContainer())==null||Z.closeSheet(),f.return();S.pendingData={data:p,
target:voe(S,J)};return f.return()}f.jumpTo(6);break}if(S.currentTarget===J)return f.return();TrN(S);return f.yield((n=S.getContainer())==null?void 0:n.closeSheet(),6);case 6:if(p.viewModel&&(p={viewModel:p.viewModel,sheetPosition:p.sheetPosition,expandToFullWidth:p.expandToFullWidth}),(b=S.getContainer())==null||b.openSheet(p,J),S.currentTarget=J,S.shouldPreventClosingWhileHovered){var O;(O=S.currentTarget)==null||O.addEventListener("mouseenter",S.onHoverEntered);var A;(A=S.currentTarget)==null||
A.addEventListener("mouseleave",S.onHoverLeft);var P;O=(P=S.getContainer())==null?void 0:P.getSheetContainerElement();O==null||O.addEventListener("mouseenter",S.onHoverEntered);O==null||O.addEventListener("mouseleave",S.onHoverLeft);S.onHoverEntered()}case 3:_.WZ(f);A98(H);_.yV(f,0);break;case 2:F=_.BZ(f),H.error=F,H.hasError=!0,f.jumpTo(3)}})};
e1.prototype.closeSheet=function(){var p=this;return _.G(function(J){return p.hideDelayMs?(setTimeout(function(){return _.G(function(S){return S.yield(dse(p),0)})},p.hideDelayMs),J.return()):J.yield(dse(p),0)})};
var dse=function(p){var J;return _.G(function(S){if(S.nextAddress==1){if(p.shouldPreventClosingWhileHovered){if(p.isHovered)return S.return();TrN(p)}return S.yield((J=p.getContainer())==null?void 0:J.closeSheet(),2)}if(S.nextAddress!=4)return p.shouldPreventClosingWhileHovered=!1,p.currentTarget=void 0,!p.pendingData||_.z("delay_sheet_open_killswitch")?S.jumpTo(0):S.yield(p.openSheet(p.pendingData.data,p.pendingData.target),4);p.pendingData=void 0;_.UK(S)})};
e1.prototype.isSheetOpen=function(){var p=this,J,S;return _.G(function(H){return H.return((S=(J=p.getContainer())==null?void 0:J.isSheetOpen())!=null?S:!1)})};
var TrN=function(p){var J;(J=p.currentTarget)==null||J.removeEventListener("mouseenter",p.onHoverEntered);var S;(S=p.currentTarget)==null||S.removeEventListener("mouseleave",p.onHoverLeft);var H;J=(H=p.getContainer())==null?void 0:H.getSheetContainerElement();J==null||J.removeEventListener("mouseenter",p.onHoverEntered);J==null||J.removeEventListener("mouseleave",p.onHoverLeft)},voe=function(p,J){if(!_.z("web_parent_target_for_sheets"))return J;
var S,H;return(H=(S=p.getContainer())==null?void 0:S.getParentTarget(J))!=null?H:J};var Xi=window.documentPictureInPicture;var CiW=_.YI(["dark"]),yfL=_.YI(["system-icons"]),Bqk=_.YI(["typography"]),Udv=_.YI(["lang"]),sPs=_.YI(["style"]),oxX=_.YI(["dir"]),eo3=_.YI(["rounded-container"]),W03=_.YI(["style"]),tzL=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Wc=function(p){this.JSC$18829_clientRoot=p;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Wc.prototype.openWindow=function(p){var J=this,S,H;return _.G(function(M){switch(M.nextAddress){case 1:if(!window.documentPictureInPicture||!_.CL()||J.currentPipWindow)return M.return(!1);_.oI(M,2);return M.yield((H=Xi?Xi:null)==null?void 0:H.requestWindow(p),4);case 4:S=M.yieldResult;_.X$(M,3);break;case 2:return _.BZ(M),M.return(!1);case 3:if(!S)return M.return(!1);S.addEventListener("pagehide",function(){u4f(J)});
S.addEventListener("resize",J.handlePipWindowResize);gxL(S);Ddi(S);OIX(S);return M.yield($ds(S),5);case 5:if(!Afi())return M.return(!1);J.currentPipWindow=S;J.JSC$18829_eventForwarder=hoW(S,J.JSC$18829_clientRoot);J.pipWindowResizeDelay=new _.AS(function(){J.currentPipWindow&&_.IV(J.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.yF(J.currentPipWindow.innerWidth,J.currentPipWindow.innerHeight)])},S);
J.pipWindowResizeDelay.start();return M.return(!0)}})};
Wc.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var u4f=function(p){if(p.currentPipWindow){var J,S;(J=Xi?Xi:null)==null||(S=J.window)==null||S.close();p.currentPipWindow.removeEventListener("resize",p.handlePipWindowResize);var H;(H=p.pipWindowResizeDelay)==null||H.dispose();p.pipWindowResizeDelay=void 0;var M;(M=p.JSC$18829_eventForwarder)==null||M.stop();p.JSC$18829_eventForwarder=void 0;J=_.K(p.onCloseCallbacks);for(S=J.next();!S.done;S=J.next())S=S.value,S();p.onCloseCallbacks=[];p.currentPipWindow=null}};
Wc.prototype.getWindow=function(){return this.currentPipWindow};
var lD$=function(p,J){var S;(S=p.onCloseCallbacks)==null||S.push(J)};
Wc.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.CL()};
_.vh.Object.defineProperties(Wc.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Wc[fQ]=[eLn];var VQp=new _.ni("PICTURE_IN_PICTURE_CONTROLLER");var kcX=function(p,J){this.lengthY=this.lengthX=0;this.lengthX=J.x-p.x;this.lengthY=J.y-p.y};var qGI=function(){},CIp=function(p,J){var S;
(S=p.headerElement)==null||S.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:J}))};var aDI=function(){};
aDI.prototype.openPopup=function(p,J,S,H){var M=this,X;return _.G(function(Z){if(!M.container)return Z.return();X={openPopupAction:{popup:J,popupType:S,uniqueId:p}};return Z.return(M.container.handleOpenPopupAction(X,H))})};
aDI.prototype.closePopup=function(p){this.container&&this.container.closePopup(p)};var ETe=function(){this.openTunnels=new Map},$xX=function(p,J,S){if(Vzi(S)){var H=_.xc(S,"gclid");
S={handleEvent:function(n){J&&!J.closed&&typeof J.postMessage==="function"&&n&&n.origin&&n.source===J&&n.data&&n.data.action==="gcl_setup"&&J.postMessage(Object.assign({},{action:"gcl_transfer"},H&&{gclid:H},{gadSource:2}),n.origin)}};
for(var M=_.K(p.openTunnels),X=M.next();!X.done;X=M.next()){var Z=_.K(X.value);X=Z.next().value;Z=Z.next().value;if(X.closed)try{window.removeEventListener("message",Z),p.openTunnels.delete(X)}catch(n){_.jD(n)}}J&&p.openTunnels.size<15&&(p.openTunnels.set(J,S),window.addEventListener("message",S))}};var YGy=function(){this.clientParams=new Map},RTP=function(p){for(var J=_.K(p.clientParams.keys()),S=J.next();!S.done;S=J.next())S=S.value,S.startsWith("yt-mini-app-share")&&p.clientParams.delete(S)};var rZP=function(p,J){_.gp.call(this);var S=this;this.shortsController=p;this.storeWithShorts=J;p=_.j7(this.storeWithShorts,_.aCX,function(H){if(H){var M,X=(M=S.shortsController.getRoot())==null?void 0:M.getPlayer(),Z;(M=(Z=S.shortsController.alternativePlayerContainerElement)==null?void 0:Z.getPlayerContainer())&&(X==null||X.appendTo(M))}else{var n;Z=(n=S.shortsController.alternativePlayerContainerElement)==null?void 0:n.getPlayerContainer().querySelector("#player");M=S.shortsController.activeIndex;
(n=(X=S.shortsController.getRoot())==null?void 0:X.querySelector('ytd-reel-video-renderer[id="'+M+'"] #player-container'))&&(Z==null||Z.appendTo(n,void 0,!0))}});
this.addOnDisposeCallback(p)};
_.Q(rZP,_.gp);var Q2=function(p,J,S,H){var M=this;this.storeWithShorts=p;this.ephemeralResponseStore=J;this.innertubeTransportService=S;this.innertubeTransportLoader=H;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.fb(_.JX);this.isShortsPipActive=_.fb(_.Ss);this.nextReelVe=_.KG(56921);this.prevReelVe=_.KG(56922);this.backButtonVe=_.KG(22156);this.TEST_ONLY={getActiveModules:function(){return M.activeModules}}},j2p=function(p){p.unsubscribeFromStore=
_.j7(p.storeWithShorts,_.qAL,function(J){p.initOrDisposeActiveModules(J);
!J&&p.storeWithShorts.getState().shorts.isFullscreen&&(_.jq(document.documentElement),p.storeWithShorts.dispatch(_.IKU(!1)))});
p.initOrDisposeActiveModules(_.qAL(p.storeWithShorts.getState()))},FHN,vcI,wWe;
Q2.prototype.initOrDisposeActiveModules=function(p){p?this.activeModules.push(new rZP(this,this.storeWithShorts)):(_.R7(this.activeModules),this.activeModules.length=0)};
Q2.prototype.registerRootElement=function(p){this.rootElement=p;j2p(this)};
Q2.prototype.getRoot=function(){return this.rootElement};
Q2.prototype.setActiveIndex=function(p){this.activeIndex=p};
_.ZCN=function(p,J){var S,H,M,X,Z,n,b;return _.G(function(F){switch(F.nextAddress){case 1:return S=new t6,(H=S.JSC$14333_getStoreKey(J))&&p.ephemeralResponseStore.has(H)?F.yield(p.ephemeralResponseStore.get(H),7):F.yield(wWe(p,J),4);case 4:M=F.yieldResult;if(!H){F.jumpTo(3);break}X=XJ(M,3600);return F.yield(p.ephemeralResponseStore.put(H,new _.dU(X)),3);case 7:M=(Z=F.yieldResult)==null?void 0:_.It(Z);case 3:return((n=M)==null?0:n.replacementEndpoint)&&(b=_.e(M.replacementEndpoint,_.vt))&&M.sequenceContinuation&&
(b.sequenceParams=M.sequenceContinuation),F.return(M)}})};
FHN=function(p,J){J=(new h6).JSC$14333_getStoreKey(J);return!!J&&p.ephemeralResponseStore.has(J)};
vcI=function(p,J,S){var H,M,X,Z,n;_.G(function(b){if(b.nextAddress==1){H=new h6;M=H.JSC$14333_getStoreKey(J);if(!M)return b.return();if(S.reelWatchSequenceResponse)return X=XJ(S.reelWatchSequenceResponse,3600),p.ephemeralResponseStore.put(M,new _.dU(X)),b.jumpTo(0);if(!p.ephemeralResponseStore.has(M))return b.jumpTo(0);n=S;return b.yield(p.ephemeralResponseStore.get(M),4)}n.reelWatchSequenceResponse=(Z=b.yieldResult)==null?void 0:_.It(Z);_.UK(b)})};
wWe=function(p,J){var S=S===void 0?{}:S;var H,M,X;return _.G(function(Z){switch(Z.nextAddress){case 1:if(p.innertubeTransportService){H=p.innertubeTransportService;Z.jumpTo(2);break}if(!p.innertubeTransportLoader){_.xv(Error("uj"));Z.jumpTo(2);break}return Z.yield(p.innertubeTransportLoader(),4);case 4:H=Z.yieldResult;case 2:return Z.yield((M=H)==null?void 0:_.VI(M,J,S),5);case 5:return X=Z.yieldResult,Z.return(X)}})};
_.vh.Object.defineProperties(Q2.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Q2[fQ]=[SVl,_.T0,_.F9(_.Ac),_.F9(tc8)];_.xsP=new _.ni("STORAGE_MANAGER_TOKEN");var Gj3=["touchmove","scroll"];var cZI=!1;var jPv=!1;var nu3={onSpanEnd:function(p){p.parentId==null&&(cZI||(Ybs(),setInterval(Ybs,6E5),cZI=!0),xdX(p,"web_tracing_action"))}};var JR3=URL.createObjectURL;var Km3,IDP={traceAllComponents:_.z("web_tracing_all_components"),exportToCsi:_.z("web_tracing_export_to_csi"),enabledSpansArray:_.oy("web_tracing_enabled_spans"),exportToDevTools:_.z("web_tracing_export_to_devtools"),maxBreadcrumbs:_.PO("tel_max_breadcrumbs",0)};Km3=new pMw(IDP);var Z83=_.z("web_shorts_enable_tracing");var Lrl=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},p5N;
Lrl.prototype.enqueue=function(p,J){J===1?this.currentPersistentToast=p:this.queue.push(p);this.openToast()};
Lrl.prototype.openToast=function(){var p;(p=this.currentToast)!=null&&p.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.CZ=new _.ni("TOAST_MANAGER_TOKEN");var J4M=new _.ni("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var Sgy=new _.ni("VIEW_TRANSITION_COORDINATOR_TOKEN");var HV$=function(p){this.config=p;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;p=_.K(p.transitionConfigs);for(var J=p.next();!J.done;J=p.next())J=_.K(J.value).next().value,this.transitionTasksMap.set(J,[])};
HV$.prototype.registerElement=function(p,J,S){S=S===void 0?!1:S;for(var H=_.K(Object.keys(J)),M=H.next(),X={};!M.done;X={viewTransitionName:void 0},M=H.next()){M=M.value;X.viewTransitionName=J[M];var Z=this.elementTasksMap.get(p),n=void 0;if((n=Z)==null?0:n.has(M)){_.wf(new _.TG("Element already registered for transition",p.tagName,M));break}Z=Z||new Map;Z.set(M,{beforeTransition:function(b){return function(){p.style.viewTransitionName=b.viewTransitionName}}(X),
afterTransition:function(){p.style.viewTransitionName&&(p.style.viewTransitionName="")},
runOnce:S});this.elementTasksMap.set(p,Z)}};
_.Dp=function(p,J){var S=p.elementTasksMap.get(J);S&&(S.clear(),S.size===0&&p.elementTasksMap.delete(J))};
HV$[fQ]=[J4M];var X5P=_.d(function(p){var J=_.nE("yt-expandable-metadata-header-view-model"),S=_.Kb(function(H){if(!_.yh(_.CG(H),J.value,["A".toString(),"BUTTON".toString()])){var M;(M=p.expandedCallback)==null||M.call(p,!1)}});
return _.m("yt-expandable-metadata-header-view-model",{el:J,class:"ytExpandableMetadataHeaderViewModelHost"},_.m(_.v,{cond:function(){return p.expanded()},
then:function(){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":S},_.m("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.m(_.v,{cond:function(){return p.data().expandedTitleImage},
then:function(H){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.m(_.a4,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:H}))}}),_.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.m(_.v3,{text:function(){return p.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.m(_.v3,{text:function(){return p.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.m(_.v3,{text:function(){return p.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.m("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.m(_.AH,{data:function(){return p.data().infoButton}},{buttonViewModel:_.D0}),_.m(_.AH,{data:function(){return p.data().collapseButton}},{buttonViewModel:function(H){return _.m(_.D0,{data:H.data,
onClick:function(){var M;(M=p.expandedCallback)==null||M.call(p,!1)}})}})))},
else:function(){return _.m(MnP,Object.assign({},p))}}))},"qg"),iVy=_.d(function(p){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.m(_.v,{cond:function(){return p.data().collapsedLabelImage},
then:function(J){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.m(_.a4,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:J,alt:""}))}}),_.m(_.v3,{text:function(){return p.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"rg"),MnP=_.d(function(p){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Kb(function(){var J;return void((J=p.expandedCallback)==null?void 0:J.call(p,!0))})},_.m("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.m(_.v,{cond:function(){return p.data().collapsedImage},
then:function(J){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.m(_.a4,{height:20,preserveHeight:!0,preserveWidth:!0,data:J,alt:""}))}}),_.m(_.v,{cond:function(){return p.data().showLeadingCollapsedLabel},
then:function(){return _.m(iVy,Object.assign({},p))}}),_.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.m(_.v3,{text:function(){return p.data().collapsedTitle}}))),_.m("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.m(_.v,{cond:function(){return!p.data().showLeadingCollapsedLabel},
then:function(){return _.m(iVy,Object.assign({},p))}}),_.m(_.AH,{data:function(){return p.data().infoButton}},{buttonViewModel:_.D0}),_.m(_.AH,{data:function(){return p.data().expandButton}},{buttonViewModel:function(J){return _.m(_.D0,{data:J.data,
onClick:function(){var S;(S=p.expandedCallback)==null||S.call(p,!0)}})}})))},"sg");_.RYN=_.d(function(p){var J=_.K(_.re(function(){return p.data().initiallyExpanded})),S=J.next().value,H=J.next().value,M,X=(M=_.vO().resolve(_.F9(_.uC)))==null?void 0:M(),Z=function(){var n=p.data().colorData;
if(n)return X?n==null?void 0:n.darkColorPalette:n==null?void 0:n.lightColorPalette};
return _.m("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.G7({"background-color":function(){var n=Z();return(n==null?0:n.section2Color)?_.Bt(n.section2Color):""}})},_.m(_.AH,{data:function(){return p.data().header}},{expandableMetadataHeaderViewModel:function(n){return _.m(X5P,{data:n.data,
expanded:function(){return!!S()},
expandedCallback:function(b){H(b)}})}}),_.m(_.v,{cond:function(){return S()},
then:function(){return _.m("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.m(_.AH,{data:function(){return p.data().expandedContent}},{horizontalShelfViewModel:function(n){return _.m(_.P8,{data:n.data,
includeMargin:!0,forceNarrowLayout:!0,palette:Z})},
videoSummaryContentViewModel:function(n){return _.m(R88,{data:n.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(n){return _.m(_.Vy,{data:n.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(n){return _.m(_.ml,{data:n.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.m(_.AH,{data:function(){return p.data().expandedBottomButtons}},{buttonViewModel:function(n){return _.m("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.m(_.D0,{data:n.data}))}}))}}))},"tg");var KTj=_.d(function(p){var J=p.text;var S=p.marqueeSpacing;var H=p.scrollDelay;var M=p.scrollDuration;var X=p.enableMarqueeScroll;p=p.large;var Z=_.K(_.eQ(!1,void 0,"WyNYFf")),n=Z.next().value,b=Z.next().value,F=_.K(_.eQ(0,void 0,"OoTdhe"));Z=F.next().value;var f=F.next().value,O=_.nE("marquee-scroll");F=_.nE("div");var A=_.nE("span"),P=_.vO().resolve(_.VM);_.lf(function(){if(X()){var t=A.value.getBoundingClientRect().width,D=O.value.getBoundingClientRect().width;if(t>D){var k=(P==="ltr"?-1:1)*(t+
(S?S():16));Promise.resolve().then(function(){b(!0);f(k)})}}},"dv0Anf");
var W={},y={};return _.m("marquee-scroll",{class:_.XB("ytMarqueeScrollHost",(W.ytMarqueeScrollHostLarge=p,W)),el:O},_.m("div",{id:"marquee-scroll-inner-container",class:_.XB("ytMarqueeScrollInnerContainer",(y.ytMarqueeScrollAnimationEnabled=function(){return n()},y)),
el:F,style:_.G7({gap:S?(0,_.GR)(S):"16px","animation-duration":M?GwL(M):"16s","animation-delay":H?GwL(H):"3s","--marquee-translate":(0,_.GR)(Z)})},_.m("span",{el:A,dir:"auto"},_.m(_.v3,{text:J,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.m(_.v,{cond:n,then:function(){return _.m("span",{"aria-hidden":"true",dir:"auto"},_.m(_.v3,{text:J,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"vg");_.ZVr=_.d(function(p){var J=p.data;var S=p.overlayDensity;p=_.Kb(function(){J().onTapCommand&&_.Dm(J().onTapCommand);return!1});
var H=_.d2X(),M=function(){return(S==null?void 0:S())===1?22:16},X={};
return _.m("reel-sound-metadata-view-model",{class:_.XB("ytReelSoundMetadataViewModelHost",(X.ytReelSoundMetadataViewModelHostLarge=function(){return(S==null?void 0:S())===1},X)),
"on:click":p,tabindex:0,role:"button","on:keydown":H},_.m("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.m(_.v,{cond:function(){return J().musicIcon},
then:function(Z){return _.m(_.a4,{data:Z,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:M})}}),_.m("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.m(KTj,{text:function(){return J().soundMetadata},
enableMarqueeScroll:function(){return!!J().enableMarqueeScroll},
large:function(){return(S==null?void 0:S())===1}}))))},"wg");var nvy,GVj,y2,vvr,OV$,FTP,zYr,PeU;nvy=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];GVj=_.PO("wil_icon_max_concurrent_fetches",Infinity);
y2=function(p,J,S){var H=this;this.iconSet=p;this.appDirection=J;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Hg.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.z("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.z("wil_icon_network_first");this.renderWhenIdle=_.z("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.z("wil_icon_load_immediately");this.isPurging=!1;p=function(){H.cacheStorageAvailable&&(H.cacheStorageAsync=_.Hg.caches.open("yt-icons").then(function(X){return H.cacheStorageSync=X}).catch(function(){H.cacheStorageAvailable=!1}))};
S=(S==null?void 0:S())||{};S=_.K(Object.entries(S));for(J=S.next();!J.done;J=S.next()){var M=_.K(J.value);J=M.next().value;M=M.next().value;M=sg(M);bVj(M);this.iconCache[J]=M.cloneNode(!0)}this.isPurging=mzf(this);this.isPurging instanceof Promise?this.isPurging.then(p):p()};
_.TA3=function(p,J){var S=p.resolveIcon(J);return S?p.renderingMode===1?FTP(p,S,p.renderingMode):(J=p.iconCache[S.url])?(J=J.cloneNode(!0),vvr(p,J),FTP(p,S,p.renderingMode,J)):_.fJI(p,S).then(function(H){var M=H?0:1;vvr(p,H);return FTP(p,S,M,H)}):(_.wf(new _.TG("Icon not found",{iconShape:J})),function(){})};
vvr=function(p,J){if(J){p.counter+=1;p="_yt"+p.counter;J=[J].concat(_.dW(J.getElementsByTagName("*")));J=_.K(J);for(var S=J.next();!S.done;S=J.next())if(S=S.value,S.tagName==="style"&&S.textContent)S.textContent=OV$(S.textContent,p,!0);else for(var H=_.K(S.attributes),M=H.next();!M.done;M=H.next()){M=M.value;M.name==="id"&&(M.value+=p);["mask","fill","clip-path"].includes(M.name)&&(M.value=OV$(M.value,p));if(M.name==="style"){var X=S.style;try{X.cssText=OV$(X.cssText,p,!0)}catch(f){var Z=void 0,n=
void 0,b=void 0,F=void 0;Bc({error:((Z=f)==null?void 0:(b=(n=Z).toString)==null?void 0:b.call(n))||"",el:S.outerHTML,style:!!X,cssText:(F=X)==null?void 0:F.cssText})}}M.name==="xlink:href"&&(M.value=M.value.replace(/#(.*)/,"#$1"+p))}}};
OV$=function(p,J,S){var H=/url\(["']?#(.*?)["']?\)/;(S===void 0?0:S)&&(H=/url\(["']?#(.*?)["']?\)/g);return p.replace(H,"url(#$1"+J+")")};
FTP=function(p,J,S,H){return function(M,X){var Z;var n=Object.assign({},{iconWidth:J.size+"px",iconHeight:J.size+"px",iconDisplay:"block"},X,{iconColor:(Z=X==null?void 0:X.iconColor)!=null?Z:"currentcolor"});Z=_.Q0("DIV");X=n.iconColor;var b=n.iconFilter;n="width: "+n.iconWidth+"; height: "+n.iconHeight+"; display: "+n.iconDisplay+";";b&&(n+=" filter: "+b+";");S===0&&(n+=" fill: "+X+";");S===1&&(b=J.url,n+=" -webkit-mask: url("+b+") no-repeat center / cover; mask: url("+(b+") no-repeat center / cover; background-color: ")+
X);J.allowMirroring&&p.appDirection==="rtl"&&(n+=" transform: scale(-1, 1); transform-origin: center center;");Z.setAttribute("style",n);S===0&&H&&Z.appendChild(H);M.appendChild(Z)}};
_.fJI=function(p,J){var S,H,M;return _.G(function(X){S=function(Z){return xp(Z)};
H=J.url;if(!A4$(H))throw Error("xj");M=PeU(p,H);return X.return(M.then(function(Z){return Z.clone().text()}).then(function(Z){var n=S(Z);
Z=J.size;var b=_.Q0("DIV");_.K_(b,n);n=_.CC(b.firstElementChild!==void 0?b.firstElementChild:_.Qrn(b.firstChild,!0));Z=bVj(n,Z);p.iconCache[H]=Z.cloneNode(!0);delete p.responsePromises[H];return Z}).catch(function(){}))})};
zYr=function(p){var J,S=(J=p.requestAninmationFrameResolver)==null?void 0:J.promise;S||(p.requestAninmationFrameResolver=new _.iy,S=p.requestAninmationFrameResolver.promise,_.Hg.requestAnimationFrame(function(){var H;(H=p.requestAninmationFrameResolver)==null||H.resolve();p.requestAninmationFrameResolver=null}));
return S};
PeU=function(p,J){var S,H;return _.G(function(M){if(M.nextAddress==1)return p.waitForAnimationFrame?M.yield(zYr(p),2):M.jumpTo(2);S=p.responsePromises[J];S||(H=function(){var X,Z,n;return _.G(function(b){switch(b.nextAddress){case 1:if(!p.cacheStorageAvailable){X=void 0;b.jumpTo(2);break}if(Z=p.cacheStorageSync){b.jumpTo(3);break}return b.yield(p.cacheStorageAsync,4);case 4:Z=b.yieldResult;case 3:X=Z;case 2:return n=X,p.isNetworkFirstStrategy?b.return(p.fetchAndUpdateCache(J,n).catch(p.getCacheStorageResponse.bind(p,
J,n))):b.return(p.getCacheStorageResponse(J,n).catch(p.fetchAndUpdateCache.bind(p,J,n)))}})},S=p.renderWhenIdle?new Promise(function(X,Z){_.uS(_.wg,function(){H().then(X).catch(Z)},10)}):H(),p.responsePromises[J]=S);
return M.return(S.catch(function(X){delete p.responsePromises[J];Bc({error:(X==null?0:X.toString)?X.toString():"",url:J});throw X;}))})};
y2.prototype.fetchAndUpdateCache=function(p,J){var S=this;return _.G(function(H){return H.return($zy(S,p).then(function(M){ovP(S,p,M,J);return M}))})};
var $zy=function(p,J){var S;return _.G(function(H){if(p.numFetches<GVj)return p.numFetches+=1,H.return(eYj(p,J).finally(function(){--p.numFetches;if(Object.keys(p.queuedResponseResolvers).length){var M=Object.keys(p.queuedResponseResolvers)[0],X=p.queuedResponseResolvers[M];delete p.queuedResponseResolvers[M];X.resolve($zy(p,M))}}));
S=new _.iy;p.queuedResponseResolvers[J]=S;return H.return(S.promise)})},eYj=function(p,J,S){S=S===void 0?2:S;
var H;return _.G(function(M){H={credentials:"same-origin",priority:"low"};return M.return(_.Hg.fetch(J,H).then(function(X){return X.ok?X:Promise.reject(Error("yj`"+X.status+"`"+X.statusText))}).catch(function(X){if(S>0)return eYj(p,J,S-1);
throw X;}))})},ovP=function(p,J,S,H){_.G(function(M){return H?M.return(new Promise(function(X){_.uS(_.wg,function(){var Z,n;
return _.G(function(b){switch(b.nextAddress){case 1:if(!p.isNetworkFirstStrategy){Z=void 0;b.jumpTo(2);break}return b.yield(H.match(J).catch(function(){}),3);
case 3:Z=b.yieldResult;case 2:if(n=Z){b.jumpTo(4);break}return b.yield(H.put(J,S.clone()).catch(function(F){Bc({error:(F==null?0:F.toString)?F.toString():"",url:J})}),4);
case 4:X(),_.UK(b)}})},50)})):M.return()})};
y2.prototype.getCacheStorageResponse=function(p,J){return _.G(function(S){return J?S.return(J.match(p).then(function(H){return H&&H.ok?H:Promise.reject()})):S.return(Promise.reject())})};
var bVj=function(p,J){J===void 0||p.getAttribute("viewBox")||p.setAttribute("viewBox","0 0 "+J+" "+J);p.setAttribute("focusable","false");p.setAttribute("aria-hidden","true");J=_.z("killswitch_remove_icon_fill_color");p.getAttribute("fill")!=="currentcolor"&&p.getAttribute("fill")!=="currentColor"||J||p.removeAttribute("fill");try{p.style.pointerEvents="none",p.style.display="inherit",p.style.width="100%",p.style.height="100%"}catch(M){var S;Bc({error:((S=M)==null?0:S.toString)?M.toString():""});
try{p.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(X){var H;Bc({error:((H=X)==null?0:H.toString)?X.toString():""})}}return p},A4$=function(p){for(var J=_.K(nvy),S=J.next();!S.done;S=J.next())if(p.startsWith(S.value)&&p.endsWith(".svg"))return!0;
return!1};
y2.prototype.resolveIcon=function(p){return this.iconSet.resolveIcon(p)};
var Bc=function(p){_.xQ(new _.TG("Error in IconManager",p))},mzf=function(p){if(_.z("wil_icons_cache_purge_killswitch"))return!1;
try{var J=_.Hg.localStorage}catch(X){return!1}if(!J||!p.cacheStorageAvailable)return!1;var S=function(X){try{var Z;(Z=J)==null||Z.setItem("yt-icons-last-purged",X.toString())}catch(b){var n;Bc({error:((n=b)==null?0:n.toString)?b.toString():""})}},H=Number(J.getItem("yt-icons-last-purged"));
if(!H)return H=new Date,H=H.setDate(H.getDate()-Math.floor(Math.random()*90+1)),S(H),!1;if(function(X,Z){X=new Date(X);Z=new Date(Z);return Z.getMonth()-X.getMonth()+12*(Z.getFullYear()-X.getFullYear())}(H,Date.now())<3)return!1;
try{return _.Hg.caches.delete("yt-icons").then(function(X){X&&S(Date.now());return X}).catch(function(){return!1}).finally(function(){p.isPurging=!1})}catch(X){var M;
Bc({error:((M=X)==null?0:M.toString)?X.toString():""});return!1}};
y2[fQ]=[qKN,_.VM,_.F9(YKe)];_.Ux=function(p,J){this.iconManager=p;this.iconsToFetch=J};
_.Ux[fQ]=[_.iC,_.F9(EFf)];var WTP=function(){};var QdI=function(p,J,S){this.requestKey=p;this.vDH=J;this.nk5=S;this.m1N=function(){return new XMLHttpRequest};
this.oOc=void 0;this.sLa=[]};
QdI.prototype.getLatestChallengeResponse=function(){return this.nk5};
var B1U=function(p,J,S){var H,M,X,Z;return _.G(function(n){if(n.nextAddress==1){_.W9("attestation_challenge_fetch");_.Qf("att_fs",void 0,"attestation_challenge_fetch");if(!p.oOc)throw new _.dx(9,"Missing fetcher");return n.yield(p.oOc(J,S),2)}H=n.yieldResult;X=(M=H)==null?void 0:M.bgChallenge;if(!X)throw new _.dx(15,"Missing field");p.nk5=H;p.sLa.forEach(function(b){b(H)});
Z=l9W(X);_.Qf("att_fc",void 0,"attestation_challenge_fetch");eU("attestation_challenge_fetch");return n.return(Z)})},clv=function(p,J){var S,H,M,X,Z;
return _.G(function(n){switch(n.nextAddress){case 1:S=new OV(100,3E5,.25,2),H=void 0;case 2:if(!(S.currBackoffCount_<10)){n.jumpTo(4);break}_.oI(n,5);if(!(S.currBackoffCount_>0)){n.jumpTo(7);break}return n.yield(mYi(S.getValue()),7);case 7:return n.yield(CeI(p,J),9);case 9:return M=n.yieldResult,n.return(M);case 5:X=_.BZ(n);X instanceof _.dx?H=X:(Z=X instanceof Error?X.message:"Unknown",H=new _.dx(9,Z));dsv(S);n.jumpTo(2);break;case 4:if(H)throw H;throw new _.dx(9,"Unknown error");}})},CeI=function(p,
J){J=OQ8(AlE(new fLM,J),p.requestKey);
var S=new _.iy,H=p.m1N();H.open("POST",p.vDH);H.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");H.setRequestHeader("Content-Type","application/json+protobuf");H.onload=function(){if(_.KYw(H)){var M=C4p(H.responseText);S.resolve(M)}else S.reject(new _.dx(_.naX(_.eB(H)),H.statusText))};
H.onerror=function(){S.reject(new _.dx(_.naX(_.eB(H)),H.statusText))};
H.send(J.serialize());return S.promise};var BYj=function(p){this.networkStatusManager=p;this.isDownloaded=Ymv===void 0?function(){return!1}:Ymv;
this.isReady=!1;this.pwN=y4y(this)},y4y=function(p){var J;
return _.G(function(S){if(S.nextAddress==1)return S.yield(aJi(),2);if(S.nextAddress!=3)return J=S.yieldResult,S.yield(Vmd(J),3);p.xP=S.yieldResult;vu4(p.xP).then(function(){p.isReady=!0});
return S.return(p.xP)})},Uz$=function(p,J,S){p.xP?(p=p.xP.wFM({jr:S,
f9O:!0,boK:!0}),J.serviceIntegrityDimensions={poToken:p}):_.jD(Error("Aj"))};
BYj.prototype.processContext=function(p){var J=this;if(!p.input.match(_.jx(wC8)))return _.$E();var S=p.innerTubeRequest,H=S.videoId;return!H||this.isDownloaded(S)||this.networkStatusManager&&!this.xP&&!this.networkStatusManager.isNetworkAvailable()||_.z("webpo_exit_on_net_err")&&!this.xP&&(window.bgens===1||window.bgens===3)?_.$E():this.xP?this.isReady?(Uz$(this,S,H),_.$E()):new zZ(vu4(this.xP).then(function(){Uz$(J,S,H)})):new zZ(this.pwN.then(function(M){return _.G(function(X){if(X.nextAddress==
1)return X.yield(vu4(M),2);
Uz$(J,S,H);_.UK(X)})}))};var sdr=new _.ni("WEB_PO_CONTEXT_PROCESSOR");var gvN=function(p,J){var S=this;this.kH5=0;var H;this.rQH=(H=J==null?void 0:J.rQH)!=null?H:window;this.networkStatusManagerPromise=J==null?void 0:J.networkStatusManagerPromise;var M;this.requestKey=(M=J==null?void 0:J.requestKey)!=null?M:_.zG("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var X;this.wJC=(X=J==null?void 0:J.wJC)!=null?X:function(b){return new Yf(b)};
var Z;H=(Z=J==null?void 0:J.nen)!=null?Z:function(b,F,f){return new QdI(b,F,f)};
this.bgChallenge=l9W(p.bgChallenge);this.ttlSeconds=VPt(l6(p.challenge||""));this.sy=H(this.requestKey,_.z("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Hg.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);this.ggH=J==null?void 0:J.ggH;Fmi(this.sy);var n;this.oha=(n=J==null?void 0:J.oha)!=null?n:function(b){_.z$(S.rQH.document,"visibilitychange",
function(){S.rQH.document.visibilityState==="visible"&&b()})}},hYp=function(p){if(!p.vm){var J={maxAttempts:5,
lta:p.ttlSeconds*1E3};f6X(p.rQH);p.vm=p.wJC({sy:p.sy,kwh:{disable:_.z("html5_web_po_disable_remote_logging"),yB:"aGIf",lc7:Hlv("html5_web_po_experiment_ids"),p2L:_.z("wpo_dis_lfdms")?0:1E3,wGs:function(H){var M=L1o.get(H);M||(M=new I18(H),M=new o7(M),L1o.set(H,M));return M}},
uc5:J,kZU:p.bgChallenge,eKj:O84});p.kH5=Date.now();eXE(p.vm,function(){p.kH5=Date.now()});
jdw(p.vm,function(){return _.G(function(H){return H.return(tnM(p))})});
var S=p.mPI.bind(p);p.networkStatusManagerPromise&&p.ttlSeconds>0&&p.networkStatusManagerPromise.then(function(H){H.listen("publicytnetworkstatus-online",S)});
p.oha(S)}};
gvN.prototype.mPI=function(){if(Date.now()>this.kH5+this.ttlSeconds*1E3){var p;(p=this.vm)==null||oad(p)}};
var tnM=function(p){if(p.ilO)return p.ilO;if(!p.vm)throw Error("Bj");p.ilO=new xf({vm:p.vm,sy:p.sy,hRJ:!0,onError:O84,uc5:p.ggH});return p.ilO},Pmt=function(p,J){p=new gvN(p,J);
hYp(p);(J==null?0:J.c9j)||tnM(p)};var Dzl=_.msp.ephemeralActionSelector,sx=function(p,J){this.store=p;this.queue=[];J==null||J.addEventListener("yt-navigate-start",this.reset.bind(this))};
sx.prototype.enqueue=function(p){var J=p.command,S=p.durationMs,H=p.elementToFocus;var M=p.label;var X=p.elementToFocus;p.command?M=_.Kl("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:M,shortcut:_.Kl("SHIFT_PLUS_ENTER")}):X&&(p=M+". "+_.Kl("SHIFT_PLUS_ENTER")+" for more information.",M=_.Kl("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:M,shortcut:_.Kl("SHIFT_PLUS_ENTER")},p));S={announcement:M,durationMs:S!=null?S:8E3};J?S.command=J:H&&(H.classList.add("ephemeral-action-focusable-element"),S.selector=H.tagName+
".ephemeral-action-focusable-element");this.queue.push(S);kVP(this)};
sx.prototype.activate=function(p){var J=Dzl(this.store.getState());if(J){if(J==null?0:J.command)_.ge(J.command),this.store.dispatch(ESv(null));if(J==null?0:J.selector)J=document.querySelector(J.selector),_.YvL(J);p.preventDefault()}};
var kVP=function(p){if(!Dzl(p.store.getState())&&p.queue.length){var J=p.queue.shift();J&&(p.previousAnnouncement===J.announcement&&(J.announcement+="\u00a0"),p.store.dispatch(ESv(J)),p.previousAnnouncement=J.announcement,p.timeoutId=setTimeout(function(){if(J.selector){var S;(S=document.querySelector(J.selector))==null||S.classList.remove("ephemeral-action-focusable-element")}p.store.dispatch(ESv(null));kVP(p)},J.durationMs))}};
sx.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(ESv(null));this.queue.length=0;this.timeoutId=void 0};
sx[fQ]=[_.XN,_.F9(_.lc)];_.gP=new _.ni("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var NYy=new _.ni("AUTH_SERVICE_TOKEN");var ous=_.YI(["about:blank"]),$YX;var TYr=new _.ni("API_IFRAME_TOKEN"),dzr=new _.ni("FETCH_FN_TOKEN"),uaI=new _.ni("WINDOW_REQUEST_TOKEN"),lJy=new _.ni("TEXT_DECODER_TOKEN");var U14;U14=new _.ni("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Vnj=new _.ni("MISC_UI_SHARED_FLAGS_TOKEN");var qgN=function(){};
qgN.prototype.getFlag=function(p){if(p.configType!==2)throw Error("Cj");return aJN(p)};
var aJN=function(p){switch(p.flagType){case "bool":return _.z(p.flagName);case "int":return _.N4(_.PO(p.flagName));case "double":return _.PO(p.flagName);case "string":return _.zG(p.flagName);case "int32_list":return Hlv(p.flagName);case "int64_list":return Hlv(p.flagName).map(function(J){return _.N4(J)});
case "string_list":return _.oy(p.flagName);default:throw Error("Dj");}};var tj=function(p,J,S){J=J===void 0?{}:J;au.call(this,S===void 0?"uninitialized":S);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}];J.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=J.shouldWaitOnAsyncImmediate)};
_.Q(tj,au);tj.prototype.init=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return J.processPluginOptions.shouldWaitOnAsyncImmediate?H.yield(p(J.env),2):(p(J.env),H.jumpTo(2));if(H.nextAddress!=4)return J.jobSet?H.yield(J.jobSet.completedResolver.promise,4):H.jumpTo(4);S=_.fq();S.parkOrScheduleJob(function(){J.transition("rendering")},10,"ci");
_.UK(H)})};
tj.prototype.initialRender=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return J.processPluginOptions.shouldWaitOnAsyncImmediate?H.yield(p(J.env),2):(p(J.env),H.jumpTo(2));if(H.nextAddress!=4)return J.jobSet?H.yield(J.jobSet.completedResolver.promise,4):H.jumpTo(4);S=_.fq();S.parkOrScheduleJob(function(){J.transition("rendered")},10,"cr");
_.UK(H)})};
tj.prototype.afterRenderImmediate=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return J.processPluginOptions.shouldWaitOnAsyncImmediate?H.yield(p(J.env),2):(p(J.env),H.jumpTo(2));if(H.nextAddress!=4)return J.jobSet?H.yield(J.jobSet.completedResolver.promise,4):H.jumpTo(4);S=_.fq();S.parkOrScheduleJob(function(){J.transition("after-render-deferred")},10,"carml");
_.UK(H)})};
tj.prototype.afterRenderDeferred=function(p){var J=this;return _.G(function(S){p(J.env);_.UK(S)})};_.rY("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var Evw={},Yge=(Evw.rendered={priority:0,callback:function(p){b$8(p.injector.resolve(lS))}},Evw);var o1X=new _.ni("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),r4y=new _.ni("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var jd$=function(p){this.callbackFnMap=p;this.configMap={}};
jd$.prototype.handleResponse=function(p){var J;if(p=(J=p.responseContext)==null?void 0:J.serviceTrackingParams)for(J=_.K(p),p=J.next();!p.done;p=J.next()){p=p.value;var S=p.params,H=p.service;if(S&&H){this.configMap[H]||(this.configMap[H]=new Pg8);p=this.configMap[H];var M=void 0,X=(M=this.callbackFnMap)==null?void 0:M[H];S=_.K(S);for(H=S.next();!H.done;H=S.next())M=H.value,H=M.key,M=M.value,H&&M&&(p.set(H,M),X&&X(H,M))}}};
jd$.prototype.getConfig=function(p){return this.configMap[p]||void 0};
jd$[fQ]=[_.F9(r4y)];var w5I=!1,hnt=0,UYX=null,tOg=null;var xzM=new _.ni("NETWORK_SLI_TOKEN");var c4I=function(p){this.networkSli=p};
c4I.prototype.fetch=function(p,J,S){var H=this,M;return _.G(function(X){M=IJI(H,p,J);return X.return(fetch(M).then(function(Z){return H.handleResponse(Z,S)}).catch(function(Z){_.xQ(Z);
if((S==null?0:S.expectJsonStrict)&&Z instanceof wj&&Z.errorType===1)return Promise.reject(Z)}))})};
var gLE=function(p,J,S,H){var M,X,Z,n,b,F,f;return _.G(function(O){switch(O.nextAddress){case 1:return M=IJI(p,J,S),_.oI(O,2),O.yield(fetch(M),4);case 4:X=O.yieldResult;_.X$(O,3);break;case 2:throw _.BZ(O),new wj(2,"Failed to parse streaming response",M.url);case 3:if(!X.redirected&&!X.ok)throw(Z=p.networkSli)==null||Z.failure(),new _.TG("Streaming fetch request not ok",M.url);if(!X.body)throw new _.TG("No response body in streaming response",M.url);n={};if(_.z("web_streaming_fast"))return b=X.body.getReader(),
O.return(LTf(p,b,n,H));F=X.body.pipeThrough(new TextDecoderStream).getReader();f=new _.oK;return O.return(pOj(p,F,f,GSi,n,H))}})},IJI=function(p,J,S){if(p.networkSli){var H=_.yn(_.YV(J,"key"))||"/UNKNOWN_PATH";
p.networkSli.start(H)}p=S;_.z("wug_networking_gzip_request")&&(p=FyX(S));return new window.Request(J,p)},LTf=function(p,J,S,H){var M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w,I,Z3,vg,yX,Pg,ov,NW,TW,Ys,Go,$U,LL;
return _.G(function(fd){switch(fd.nextAddress){case 1:M=new TextDecoder("utf-8"),X=[],n=Z=0,_.oI(fd,2,3);case 5:return fd.yield(J.read(),8);case 8:b=fd.yieldResult;F=b.value;if(f=b.done){O=0;if(X.length>Z)for(O=X[Z].length-n,A=Z+1;A<X.length;A++)O+=X[A].length;O>0&&(P=DYk(X,O,Z,n),W=P.indexOf(123),y=P.lastIndexOf(125),W!==-1&&y!==-1&&y>W&&(t=P.subarray(W,y+1),D=JSON.parse(M.decode(t)),GSi(S,D),k=void 0,(k=H)==null||k(S,D)));E=void 0;(E=p.networkSli)==null||E.success();return fd.return(S)}X.push(F);
a=Z;for(q=n;a<X.length;)if(w=X[a],I=w.indexOf(10,q),I===-1){if(a===X.length-1)break;a++;q=0}else{Z3=a;vg=I+1;yX=0;if(Z===Z3)yX=vg-n;else{yX=X[Z].length-n;for(Pg=Z+1;Pg<Z3;Pg++)yX+=X[Pg].length;yX+=vg}ov=DYk(X,yX,Z,n,Z3,vg);NW=ov.indexOf(123);TW=ov.lastIndexOf(125);if(NW!==-1&&TW!==-1&&TW>NW){Ys=ov.subarray(NW,TW+1);try{Go=JSON.parse(M.decode(Ys)),GSi(S,Go),$U=void 0,($U=H)==null||$U(S,Go)}catch(Qv){throw new wj(1,"Failed to parse streaming response object",M.decode(Ys));}}Z=a;q=n=I+1;n===w.length&&
(Z++,n=0,a=Z,q=0)}fd.jumpTo(5);break;case 3:_.WZ(fd);J.releaseLock();_.yV(fd,0);break;case 2:LL=_.BZ(fd);if(LL instanceof wj)throw LL;throw new wj(1,"Failed to process streaming response");}})},pOj=function(p,J,S,H,M,X){var Z,n,b,F,f,O,A,P,W;
return _.G(function(y){if(y.nextAddress==1)return y.yield(J.read(),2);Z=y.yieldResult;n=Z.value;if(b=Z.done)return(F=p.networkSli)==null||F.success(),y.return(M);try{f=S.parse(n)}catch(t){throw new wj(1,"Failed to parse streaming response",n);}if(f!=null)for(O=_.K(f),A=O.next();!A.done;A=O.next())P=A.value,H(M,P),W=void 0,(W=X)==null||W(M,P);return y.return(pOj(p,J,S,H,M,X))})};
c4I.prototype.handleResponse=function(p,J){var S=p.text().then(function(H){if((J==null?0:J.jspbResponseCtor)&&p.ok)return wG3(J.jspbResponseCtor,H);H=H.replace(")]}'","");if((J==null?0:J.expectJsonStrict)&&H)try{var M=JSON.parse(H)}catch(Z){throw new wj(1,"JSON parsing failed after fetch");}var X;return(X=M)!=null?X:JSON.parse(H)});
p.redirected||p.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),S=S.then(function(H){_.xQ(new _.TG("Error: API fetch failed",p.status,p.url,H));return Object.assign({},H,{errorMetadata:{status:p.status}})}));
return S};
c4I[fQ]=[_.F9(xzM)];var Jlw=new _.ni("NETWORK_MANAGER_TOKEN");var Svp=[1,2,4,8,16,30],MBN=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=_.K(Svp);for(var J=p.next();!J.done;J=p.next())this.brokenFrameSummarizers.push(new HQN(J.value/60*1E3))},XOf=function(p){var J=p.frameCountInternal>=p.maxFrameCount;
return p.elapsedTimeMs>=p.maxTimeMs||J};
MBN.prototype.summarize=function(){for(var p=[],J=_.K(this.brokenFrameSummarizers),S=J.next();!S.done;S=J.next())S=S.value,S=S.brokenFrameCount!==0?{severityMs:Math.round(S.targetFrameTimeMs),eventCount:S.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(S.averageDurationBetweenEventsMs)}:void 0,S&&p.push(S);return{summaries:p,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.vh.Object.defineProperties(MBN.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 HQN=function(p){this.targetFrameTimeMs=p;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.vh.Object.defineProperties(HQN.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var iQy=function(){};
iQy.prototype.start=function(p,J){var S=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var H=new MBN({maxTimeMs:p});this.monitor=H;this.lastSummaryInternal=void 0;this.metadataToLog=J;return new Promise(function(M){var X=function(Z){if(Z===void 0)S.stop(),M(void 0);else if(S.monitor!==H)Z=Object.assign({},H.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),M(Z);else{var n=S.monitor;if(!XOf(n)){n.frameCountInternal++;if(n.prevTime===
void 0)n.startTime=Z;else for(var b=Z-n.prevTime,F=_.K(n.brokenFrameSummarizers),f=F.next();!f.done;f=F.next()){f=f.value;var O=f.currTimeMs;f.currTimeMs+=b;b>f.targetFrameTimeMs+2&&(f.brokenFrameCount++,f.timeOfFirstBrokenFrameMs===void 0&&(f.timeOfFirstBrokenFrameMs=O),f.timeOfLastBrokenFrameMs=O)}n.prevTime=Z}XOf(S.monitor)?M(S.stop()):_.wg.addJob(X,5,0)}};
_.wg.addJob(X,5,0)})};
iQy.prototype.stop=function(p){if(!this.monitor)return this.lastSummaryInternal;var J=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(J.monitoringDurationMs){p=p!=null?p:this.metadataToLog;var S={droppedFramesSummary:J,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};p&&(S[p.type]=p.data);_.YQ("manualSmoothnessMeasurement",S)}this.monitor=void 0;this.lastSummaryInternal=J;this.metadataToLog=void 0;return J};_.RXM=new _.ni("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Kdy;Kdy=function(p){this.JSC$18993_expiringStorage=new uh(p)};
_.ZQP=function(p){if(_.kj4()&&(p=_.EOX(_.ka()+"::"+p)))return new Kdy(p)};
Kdy.prototype.set=function(p,J,S){S=S!==void 0?Date.now()+S:void 0;this.JSC$18993_expiringStorage.set(p,J,S)};
Kdy.prototype.get=function(p){return this.JSC$18993_expiringStorage.get(p)};
Kdy.prototype.remove=function(p){this.JSC$18993_expiringStorage.remove(p)};_.hj=function(){};
_.hj.getInstance=function(){var p=_.Id("ytglobal.storage_");p||(p=new _.hj,_.m$("ytglobal.storage_",p));return p};
_.hj.prototype.estimate=function(){var p,J,S;return _.G(function(H){p=navigator;return((J=p.storage)==null?0:J.estimate)?H.return(p.storage.estimate()):((S=p.webkitTemporaryStorage)==null?0:S.queryUsageAndQuota)?H.return(Nt4()):H.return()})};
_.m$("ytglobal.storageClass_",_.hj);var a6i=0;var cRW=!1;var nae=_.YI(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),GG$=_.YI(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var q9l={"/":_.rC,"/?feature=ytca":_.rC,"/feed/downloads":_.jit};var bQj=vTp.continuationCommandSelector,Fi=function(p,J,S){this.JSC$19009_upliftPromise=p;this.store=J;this.JSC$19009_persistentStorePromiseAccessor=S};
Fi.prototype.shouldPreferLocalResponse=function(p){return p.browseId==="FEdownloads"||p.browseId==="FEsmart_downloads"&&_.z("kevlar_modern_downloads_page")?!0:!1};
Fi.prototype.localInnertubeResponse=function(p){var J=this;return _.G(function(S){return p.browseId==="FEdownloads"?_.z("kevlar_modern_downloads_page")?S.return(mVI(J)):S.return(Fdp(J)):p.browseId==="FEsmart_downloads"&&_.z("kevlar_modern_downloads_page")?S.return(vay(J)):S.return(Promise.reject(Error("Fj")))})};
Fi.prototype.canProvideFallbackResponse=function(){return!0};
Fi.prototype.localFallbackInnertubeResponse=function(p){var J=this,S,H,M;return _.G(function(X){switch(X.nextAddress){case 1:return X.yield(J.JSC$19009_persistentStorePromiseAccessor(),2);case 2:S=X.yieldResult;if(p.browseId!=="SPaccount_downloads"||!S){X.jumpTo(3);break}return X.yield(EM4(S),4);case 4:if(H=X.yieldResult)return X.return(_.It(H));case 3:return p.browseId==="FEwhat_to_watch"?X.return(fLU(J)):(M=_.z("web_offline_continuation_automatic_retry")||_.z("web_offline_continuation_retry_button"))&&
p.continuation?X.return(OQw(J)):X.return(Alp(J))}})};
var fLU=function(p){var J;return _.G(function(S){if(S.nextAddress==1)return S.yield(p.JSC$19009_upliftPromise,2);J=_.FUX(p.store.getState().entities);return J.length?S.return(Phe(p,J)):S.return(Alp(p))})},Fdp=function(p){var J,S;
return _.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$19009_upliftPromise,2);if(H.nextAddress!=3)return J=zXP([{offlineItemSectionRenderer:{}}]),H.yield($VU(p,J),3);S=H.yieldResult;S.onResponseReceivedActions=[b6("REFRESH_DOWNLOADS")];return H.return(S)})},mVI=function(p){var J,S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t;
return _.G(function(D){if(D.nextAddress==1)return D.yield(p.JSC$19009_upliftPromise,2);if(D.nextAddress!=3)return J=p.store.getState(),S=J.entities,H=_.ex(S),M=_.Wq(S),X=_.YZ3(J),Z=_.ENw(J),n=_.rLi(J),b=_.ODw(S),F=_.O4(H),f=_.Qc(S),O=_.$ak(S),A=_.w3W(J),P=_.s4(J),W={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.ZmX(H,M,b,O,X,Z,F,f,n,A,P),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},y="",_.z("kevlar_modern_downloads_skip_downloads_title")||
(y=_.Kl("DOWNLOADS",void 0,"Downloads")),D.yield(oaP(p,W,y),3);t=D.yieldResult;t.onResponseReceivedActions=[b6("REFRESH_DOWNLOADS")];return D.return(t)})},vay=function(p){var J,S,H,M,X,Z,n,b,F;
return _.G(function(f){if(f.nextAddress==1)return f.yield(p.JSC$19009_upliftPromise,2);if(f.nextAddress!=3)return J=p.store.getState(),S=J.entities,H=_.ex(S),M=_.O4(H),X=_.Qc(S),Z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.GP4(H),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},n=_.Kl("SMART_DOWNLOADS",void 0,"Smart downloads"),b=R8v(M,X),f.yield(oaP(p,Z,n,b),3);F=f.yieldResult;F.onResponseReceivedActions=
[b6("REFRESH_DOWNLOADS")];return f.return(F)})},Alp=function(p){var J,S;
return _.G(function(H){if(H.nextAddress==1)return H.yield(cY(p.JSC$19009_upliftPromise,p.store),2);J=H.yieldResult;S=zXP([lwg(J)]);return H.return($VU(p,S))})},OQw=function(p){var J,S,H,M;
return _.G(function(X){if(X.nextAddress==1)return J={},S=bQj(p.store.getState()),_.QM(J,_.hm,S),X.yield(cY(p.JSC$19009_upliftPromise,p.store,J,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);H=X.yieldResult;M={};_.QM(M,_.lR8,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:H}}}],targetId:"browse-feedFEwhat_to_watch"});return X.return({responseContext:{},onResponseReceivedActions:[M]})})},zXP=function(p){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:p}}}}]}}},Phe=function(p,J){var S,H;
return _.G(function(M){var X={contents:mK(J)};S=X&&X.contents?X:{};_.z("kevlar_modern_downloads_page")&&(S=Object.assign({},_.bmX(J),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));H={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:S}}}]}};return M.return($VU(p,H))})},$VU=function(p,J){var S,H;
return _.G(function(M){if(M.nextAddress==1)return M.yield(p.JSC$19009_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return S=M.yieldResult,M.yield(LY(S),3);H=M.yieldResult;return M.return({responseContext:{},contents:J,topbar:H})})},oaP=function(p,J,S,H){var M,X;
return _.G(function(Z){if(Z.nextAddress==1)return Z.yield(p.JSC$19009_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return M=Z.yieldResult,Z.yield(LY(M),3);X=Z.yieldResult;var n=Z.return;var b=S;var F=H;b=b===void 0?"":b;F=F===void 0?"":F;b={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:b}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Kl("SETTINGS",void 0,"Settings"),accessibilityText:_.Kl("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:_.xO("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:F}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:b};
return n.call(Z,{responseContext:{},contents:J,topbar:X,header:{pageHeaderRenderer:b}})})};var eXp=function(){this.moduleRegistry={};this.fetchCount=0};
eXp.prototype.isFetching=function(){return this.fetchCount>0};
var TJ=function(p,J){p.moduleRegistry[J.toString()]={asyncId:J,isFetching:!1};return p};
eXp.prototype.JSC$19020_loadModules=function(){for(var p=this,J=new Map,S=[],H=_.K(_.Yp.apply(0,arguments)),M=H.next();!M.done;M=H.next()){M=M.value;var X=this.moduleRegistry[M];X?X.resolver?J.set(M,X.resolver):(X.resolver=new _.iy,J.set(M,X.resolver),S.push(X.asyncId),X.isFetching=!0):(X=new _.iy,J.set(M,X),X.resolve(void 0))}S.length&&(this.fetchCount+=1,_.Nv(_.Ke.getMultipleAsync.apply(_.Ke,_.dW(S)).then(function(Z){for(var n=0;n<S.length;n++){var b=Z[n],F=p.moduleRegistry[S[n].toString()];F.isFetching=
!1;F.resolver.resolve(b)}}).catch(function(Z){for(var n=_.K(S),b=n.next();!b.done;b=n.next()){b=b.value;
var F=p.moduleRegistry[b.toString()];F.resolver=void 0;F.isFetching=!1;J.get(b.toString()).reject(Z)}}),function(){--p.fetchCount}));
return Promise.all([].concat(_.dW(J.values())).map(function(Z){return Z.promise}))};_.ds=new _.ni("MODULE_REGISTRY_TOKEN");var Wdr={},QyI=(Wdr.rendered={priority:0,callback:function(p){a:{var J=void 0;try{var S;b:{if(_.l2X()){var H=_.qV(_.ka()+"::pom");if(H){var M=new Yw(H);break b}}M=void 0}var X=(S=M)==null?void 0:S.get("role_text");if(!X)break a;J={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:X}]}}}}}}catch(b){}J&&p.injector.resolve(_.Ov).resolveCommand(J)}try{var Z=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(Z){var n=JSON.parse(Z);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
n&&p.injector.resolve(_.Ov).resolveCommand(n)}}catch(b){}}},Wdr);var Chl,ylr={},B1y=(ylr.initialized={priority:10,callback:function(){Chl=eN()}},ylr.rendering={callback:function(p){var J;
return _.G(function(S){if(S.nextAddress==1)return S.yield(Chl,2);J=S.yieldResult;if(!J.endpoint)throw Error("Hj`"+_.Hg.location.href);yb(p,J);_.UK(S)})}},ylr);var UVw={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.dW(_.z("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},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(p){var J=p.stack;if(J.includes("chrome://")||J.includes("chrome-extension://")||p.message.includes("chrome-extension://")||J.includes("moz-extension://")||
J.includes("local.adguard.org")||J.includes("auctioneer3.50million.club")||J.includes("youtubedownloader")||J.includes("youtube_home_page")||J.includes("is_youtube_video_no_longer_available")||J.includes("switchScreenSizeHack")||J.includes("yt_main_big_banner.js")||J.includes("YouTubeCenter.js")||J.includes("/mytube.js")||J.includes("JSON.parseWrapper")||J.includes("/inj_js/common.js")||J.includes("firebug-lite")||J.includes(".repl.co/")||J.includes("linkfix")||J.includes("playAfterAd")||p.message.includes("Access is denied for this document")&&
J.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'")&&J.includes("<anonymous>"))return!0;if(J.includes("https://www.youtube.com"))return!1;p=J.split("\n");if(!p.length)return!1;if(p.length<=3&&J.includes("s.onloadeddata"))return!0;J=0;for(var S=_.K(p),H=S.next();!H.done;H=S.next())H=H.value,(H.includes("https://")||H.includes("http://"))&&J++;return J/p.length>.95},
weight:0},{callback:function(p){return p.message==="Unknown Error"&&p.name.indexOf("NS_")===0},
weight:100},{callback:function(p){if(!_.i9)return!1;var J=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"),S=p.stack.includes("webcomponents")&&p.message==="Object doesn't support this action";p=p.message.includes("object that does not implement interface Element");return J||S||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 J=p.stack.trim().split("\n");J.length&&J[0].endsWith("Error: "+p.message)&&J.shift();J.length&&J[J.length-1].includes("at window.onerror (")&&J.pop();if(!J.length)return!0;if(p.message==="Script error.")return J[0].includes("www.youtube.com")||J.length>=2&&J[0].startsWith("at new")&&J[1].startsWith("at window.onerror");if(p.message==="Unexpected token")return!0;p=_.K(J);for(J=p.next();!J.done;J=p.next())if(J=J.value,!(J.includes("<anonymous>")||
J.startsWith("load@")||J.startsWith("global code@")||J.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},{callback:function(){if(_.z("use_error_suppression"))var p=_.jn("SUPPRESS_CLIENT_ERRORS",!1);else{if(p=_.GF)p=/Chrome\/(\d+)/.exec(_.fL()),p=(p?parseFloat(p[1]):NaN)>=66;p=!(p||_.nu&&_.Zj(65)||_.Iy&&_.Zj(12.1)||Gx&&_.Zj(79))}return p},
weight:500}]};var syM={},gay=(syM.initialized={priority:10,callback:function(p){p.injector.addProvider({provide:eLn,useValue:p.root});p.injector.addProvider({provide:cTy,useValue:uB9});p.injector.addProvider({provide:Idy,useValue:UVw});var J={};p.injector.addProvider((J.provide=LHM,J.useFactory=function(S,H){return function(){nxW(S,H)}},J[fQ]=[cTy,
Idy],J));p.injector.addProvider({provide:aB,useClass:aB})}},syM);var tBM={},hXN=(tBM.initialized={priority:3,callback:function(){var p;if(p=TIX()){p=p.replace("/",".");var J=_.Gv();J.set("tz",p);J.save();p=!0}else p=!1;p||(p=_.Gv(),p.set("utco",-Math.floor((new Date).getTimezoneOffset())),p.save())}},tBM);var DVj={},kGP=(DVj.initialized={priority:10,callback:function(p){p.injector.resolve(aB).start();p=_.ly();var J=_.wY("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.wY("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.wY("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.wY("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.ZF(_.QKw(),{mainAppWeb:Object.assign({},p,{pageType:J})});_.ZF(yQ3(),{mainAppWeb:Object.assign({},p,{pageType:J})});
_.ZF(BLg(),{mainAppWeb:p});_.ZF(U3L(),{mainAppWeb:p});eaL(function(){_.nT(BLg(),"FAILURE");_.nT(U3L(),"FAILURE")});
GEs();bwv();sHX()}},DVj);var N1f={},T1p=(N1f.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Qf("dl"),_.fq().processSignal("pcl");else{var p=function(){_.Qf("dl");_.fq().processSignal("pcl");window.removeEventListener("load",p)};
window.addEventListener("load",p)}}},N1f);var dVI={},u9I=(dVI.rendering={priority:0,callback:function(){var p=_.fq();p.parkOrScheduleJob(function(){p.processSignal("eocs")},10,"eor",5E3)}},dVI);var lLP=function(){};
_.Q(lLP,Oh);
lLP.prototype.resolveCommand=function(p,J){var S,H,M,X,Z,n,b,F;return _.G(function(f){M=(S=_.e(p,_.ZDM))==null?void 0:(H=S.dialog)==null?void 0:H.commentReplyDialogRenderer;if(!M)throw new _.TG("No dialog in createCommentReplyDialogEndpoint");Z=(X=J.form)==null?void 0:X.event;if(!Z)throw new _.TG("Event not passed in when resolving command");n=_.K(Z.composedPath());for(b=n.next();!b.done;b=n.next())if(F=b.value,F.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||F.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return F.showReplyDialog(M),f.return();
_.UK(f)})};var DE=function(){};
_.Q(DE,Oh);DE.prototype.resolveCommand=function(p){var J,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return J=_.e(p,zcM),(S=J)!=null&&S.externalChannelId?Z.yield((0,_.Msv)("NSzT5"),2):Z.return();H=_.VBe;X=(M=J.forceInstall)!=null?M:!1;return Z.yield(H(J.externalChannelId,X),0)})};var kk=function(p){this.JSC$19038_pageRequestService=p;this.JSC$19038_prefetchCoordinator=Tpf()};
_.Q(kk,Oh);kk.prototype.resolveCommand=function(p){var J=this,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1){S=_.e(p,qZd);if((H=S)==null||!H.taskId)throw Error("Ij");M=S.taskId;_.oI(Z,2);return Z.yield(_.bCj(J.JSC$19038_pageRequestService,p,{},"").then(function(n){if(!n)throw Error("Jj");},function(n){throw Error("Kj`"+n);
}),4)}if(Z.nextAddress!=2)return ldf(J.JSC$19038_prefetchCoordinator,M),_.X$(Z,0);
X=_.BZ(Z);mh(J.JSC$19038_prefetchCoordinator,M,X);_.UK(Z)})};
kk[fQ]=[_.o$];var Nt=function(p,J){this.innertubeTransportService=p;this.JSC$19042_commandHandler=J};
_.Q(Nt,Oh);Nt.prototype.resolveCommand=function(p){var J=this,S,H,M;return _.G(function(X){if(X.nextAddress==1){S=_.e(p,q7o);if(S.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||S.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")H=S.boolValue?2:1,_.yK.getInstance().setState(H,!0,!0);return X.yield(_.VI(J.innertubeTransportService,p),2)}M=X.yieldResult;qvw(J,M);_.UK(X)})};
var qvw=function(p,J){J.actions&&J.actions.forEach(function(S){p.JSC$19042_commandHandler.resolveCommand(S)})};
Nt[fQ]=[_.Ac,_.Ov];var TS={},dP=(TS.addToPlaylistEndpoint=wI(ee),TS.addToToastAction=wI(k$),TS.adsControlFlowOpportunityReceivedCommand=wI(Se),TS.audioTrackSelectActionCommand=wI(lx),TS.backgroundAudioPlaybackCommand=wI(aU),TS.captionLanguageSelectActionCommand=wI(EF),TS.captionPickerEndpoint=wI(Yg),TS.changeMiniAppPlayStateCommand=wI(WQ),TS.changeTimelyActionVisibilityCommand=wI(Ds),TS.channelCreationFormEndpoint=wI(OF),TS.clearLocationCommand=wI(oU),TS.clearUrlParamCommand=wI(yO),TS.copyLinkCommand=wI(p9),TS.copyTextEndpoint=
wI(Kc),TS.createCommentReplyDialogEndpoint=Ulv(lLP),TS.createPlaylistServiceEndpoint=wI(JK),TS.dismissDialogEndpoint=wI(UF),TS.dismissPlayerOverlayCommand=wI(rJ),TS.entityUpdateCommand=wI(nc),TS.feedbackEndpoint=wI(mw),TS.getAnswerCommand=wI(mL),TS.getPaymentsClientTokenCommand=wI(lU),TS.getTranscriptEndpoint=wI(Ni),TS.googlePaymentBillingCommand=wI(V_),TS.googlePaymentPurchaseManagerCommand=wI(qi),TS.hideEngagementPanelEndpoint=wI(sF),TS.hideSheetCommand=wI(gJ),TS.hideSnackbarCommand=wI(y_),TS.insertRichSectionCommand=
wI(PQ),TS.listMutationCommand=wI(zB),TS.logGtmCommand=wI(Ap),TS.notifyDropdownOptionSelectedCommand=wI(BQ),TS.openAdAllowlistInstructionCommand=wI(_.HQ),TS.openOnePickAddVideoModalCommand=wI(SW),TS.persistSubscriptionsDisplayPreferencesCommand=wI(K9),TS.pingingEndpoint=wI(Mu),TS.playlistEditEndpoint=wI(Mi),TS.playlistVotingRefreshPopupCommand=wI(XW),TS.profileCardCommand=wI(Jp),TS.refreshPanelEndpoint=wI(tp),TS.saveImageToDeviceEndpoint=wI(ZM),TS.scrollToSectionEndpoint=Ulv(yy$),TS.seekToVideoTimestampCommand=
wI(je),TS.selectCountryCommand=wI(Zs),TS.setCookieCommand=wI(n9),TS.setLocalStorageCommand=wI(Uf),TS.setPrefStorageEntryCommand=wI(bU),TS.setSettingEndpoint=wI(Nt),TS.sfvAudioItemPlaybackCommand=wI(wJ),TS.shareImageCommand=wI(FW),TS.sharingProviderDataCommand=wI(vU),TS.showAudioTrackPickerActionCommand=wI(xg),TS.showCaptionLanguageSelectActionCommand=wI(cQ),TS.showCreatorChatbotEngagementPanelCommand=wI(DE),TS.showDialogCommand=wI(kg),TS.showEngagementPanelEndpoint=wI(Nu),TS.showFullscreenPlayerControlsCommand=
wI(IU),TS.showSheetCommand=wI(TB),TS.showSnackbarCommand=wI(BU),TS.showTransientPlayerScrimOverlayCommand=wI(Lc),TS.submitFormWithValidationFlowCommand=wI(fc),TS.talkToRecsDeselectCommand=wI(sf),TS.talkToRecsNextCommand=wI(gj),TS.talkToRecsSelectCommand=wI(tK),TS.talkToRecsUpdateTextCommand=wI(hK),TS.toggleEngagementPanelCommand=wI(dJ),TS.undoFeedbackEndpoint=wI(vQ),TS.updateEngagementPanelContentCommand=wI(ux),TS.updateUrlParamCommand=wI(Tz),TS.updateVideoMetadataCommand=wI(uU),TS.verifyCommand=
wI(OF),TS.webNativeShareCommand=wI(f9),TS.webSubmitFormCommand=wI(iU),TS.ACK_PLAYABLES_3P_DATA_CONSENT=wI(Of),TS.CANCEL_NAVIGATION=wI(AK),TS.COPY_SHARE_URL=wI(PU),TS.MINI_APP_EXIT_DIALOG_SEEN=wI($$),TS.MINI_APP_OPEN_URL=wI(zz),TS.REQUEST_MINI_APP_FULLSCREEN=wI(oN),TS.RESUME_NAVIGATION=wI(eW),TS.SHARE_PLAYABLE_WITH_HIGH_SCORE=wI(WU),TS.TELL_US_WHY=wI(Fo),TS);_.z("web_enable_prefetching_videos_on_home")&&(dP.prefetchWatchCommand=wI(kk),dP.registerTasksCommand=wI(vc));
_.z("enable_share_panel_navigation_logging_fix_on_web")&&(dP.shareEntityServiceEndpoint=wI(hp));_.z("web_use_flow_state_manager")&&(dP.deleteFlowStepsCommand=wI(r3),dP.flowNextStepCommand=wI(jR),dP.flowPrevStepCommand=wI(w3),dP.getFlowCommand=wI(x6),dP.updateFlowCommand=wI(cK));_.z("enable_ai_companion")&&(dP.updateConversationIdCommand=wI(RU),dP.formDataDecoratorCommand=wI(ix));var JvE=Object.assign({},dP);var aLI={},EaP=(aLI.initialized={priority:10,callback:Owk},aLI);var YvP={},rly=(YvP.initialized={callback:function(p){var J={},S={};JBL().install((J.document_disposed={callback:function(){_.z("finalize_all_timelines")?Ydi():$O();s_s("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.ABW();var H=p.injector.resolve(aB);H.intervalId!==void 0&&(H.intervalId&&_.wg.cancelJob(H.intervalId),H.intervalId=void 0,--H.currentPartitionIndex,H=Zpd(H),H>0&&uqd({mainAppWeb:_.ly(),survivalSli:{partitionMinute:H,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));gA4(A_);Pm!=null&&
Pm.flush();Jc&&Jc.snapshotAndFlush();H=_.K(L1o.values());for(var M=H.next();!M.done;M=H.next())M.value.snapshotAndFlush()}},J),(S.flush_logs={callback:function(){_.rf()}},S))}},YvP);var jyf={},wOp=(jyf.rendered={priority:0,callback:function(){var p=new R2p;p.increment("STARTED");if(_.jn("LOGGED_IN")&&!_.jn("IS_DBSC",!1)&&_.jn("SERVER_VERSION")!=="test"&&_.jn("SERVER_VERSION")!=="dev"&&!EFo()&&!ar8()){p.increment("EXECUTING");var J=document.createElement("iframe");J.style.display="none";_.p_(J,2,_.Vd("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.jn("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(J);p.increment("DONE")}}},
jyf);var xVr={},cle=(xVr.rendered={callback:function(){Tpf().resume()}},xVr);var ILj={acknowledgeChannelTouStrikeCommand:Du(e8),addToPlaylistServiceEndpoint:Du(yz),addToPlaylistEndpoint:Du(yz),addUpcomingEventReminderEndpoint:Du(YH),browseEndpoint:Du($Lw),channelCreationFormEndpoint:Du(fJ),channelCreationServiceEndpoint:Du(Ok),claimLegacyYoutubeChannelEndpoint:Du(Hk),clearSearchHistoryEndpoint:Du(dR),clearWatchHistoryEndpoint:Du(uD),commerceActionCommand:kz(wA),createBackstagePostEndpoint:Du(cU),createBroadcastCommand:Du(rR),createCommentEndpoint:Du(bD),createCommentReplyEndpoint:Du(Gh),
createLiveChatPollEndpoint:Du(j8),createPlaylistServiceEndpoint:Du(Bx),crossAccountChannelTransferEndpoint:Du(q$),deleteLiveChatMessageCommand:Du(wR),deletePlaylistEndpoint:Du(UR),deleteVideoEndpoint:Du(ER),dismissalEndpoint:Du(Wk),feedbackEndpoint:Du(hU),flagEndpoint:Du(kL),getAccountSwitcherEndpoint:Du(Vt),verifyCommand:Du(x$),getAccountsListInnertubeEndpoint:Du(Ek),getCommentsFromInboxCommand:Du(nr),getDownloadActionCommand:Du(OR),getFlowCommand:kz(Th),getKidsBlocklistPickerCommand:Du(NM),getNotificationMenuEndpoint:Du(WHI),
getPaymentInstrumentsParamsCommand:Du(Jj),getPaymentsClientTokenCommand:kz(wA),getPdgBuyFlowCommand:Du(Qz),getReportFormEndpoint:Du(TO),getSearchInVideoCommand:Du(lg),getAnswerCommand:Du(ug),getSurveyCommand:Du(ag),getTranscriptEndpoint:Du(rA),getPostVideoPreviewEndpoint:Du(L9),decorateMessageEndpoint:Du(IN),likeEndpoint:Du(AU),liveChatActionEndpoint:Du(LJ),liveChatEndpoint:Du(Ij),liveChatItemContextMenuEndpoint:Du(xH),liveChatPurchaseMessageEndpoint:Du(pr),liveChatReplayEndpoint:Du(ck),manageLiveChatUserEndpoint:Du(Sv),
metadataUpdateCommand:Du(Kr),moderateLiveChatEndpoint:Du(Hx),modifyChannelNotificationPreferenceEndpoint:Du(FA),notificationOptOutEndpoint:Du(vx),openSuperStickerBuyFlowCommand:Du(J6),performCommentActionEndpoint:Du(KJ),playlistEditEndpoint:Du(gA),playlistEditorEndpoint:Du(sR),recordNotificationInteractionsEndpoint:Du(fr),reelWatchEndpoint:Du(t6),refreshPanelEndpoint:Du(Px),removeUpcomingEventReminderEndpoint:Du(MM),resolveLocationCommand:Du(Rg),revealBusinessEmailCommand:Du(M$),searchEndpoint:Du(_.Q7y),
sendLiveChatMessageEndpoint:Du(XA),sendLiveChatVoteEndpoint:Du(ig),setSettingEndpoint:Du(Pk),shareEntityServiceEndpoint:kz(oj),sharingProviderDataCommand:Du(qM),showEngagementPanelEndpoint:Du(zO),showMoreDrawerCommand:Du(og),showSheetCommand:Du(ev),showDialogCommand:Du($L),subscribeEndpoint:Du(zh),transcriptSubmitCaptionCorrectionCommand:Du(YL),undoFeedbackEndpoint:Du(kH),unsubscribeEndpoint:Du($H),updateBackstagePostEndpoint:Du(JU),updateCommentEndpoint:Du(F5),updateCommentReplyEndpoint:Du(mf),updateCommentsSettingsEndpoint:Du(vk),
updateCreatorChannelInnertubeCommand:Du(iD),updateKidsBlacklistEndpoint:Du(dA),updateEngagementPanelContentCommand:Du(Wx),updatePdgFeatureEnablementCommand:Du(Cr),updatedMetadataEndpoint:Du(ZQ),validateChannelHandleCommand:Du(Rj),updateChannelPageSettingsEndpoint:Du(X5),verifyAgeEndpoint:Du(N$),watchEndpoint:kz(Y$),whitelistEditEndpoint:Du(jv),ypcCancelRecurrenceEndpoint:Du(xL),ypcCompleteTransactionEndpoint:Du(cx),ypcFixInstrumentEndpoint:Du(Lr),ypcGetCartEndpoint:Du(Ig),ypcGetOffersEndpoint:Du(pZ),
ypcHandleTransactionEndpoint:kz(S1),ypcLogWalletAnalyticDataEndpoint:Du(Hc),ypcOffersEndpoint:Du(Mt),ypcPauseSubscriptionCommand:Du(Xd),ypcRedeemCodeEndpoint:Du(iR),ypcResumeSubscriptionCommand:Du(RF),ypcUpdateFopEndpoint:Du(Lr)},uR={},Ld$=(uR.GET_ACCOUNT_MENU=Du(aj),uR.GET_NOTIFICATIONS_MENU=Du(ewP),uR.GET_NOTIFICATIONS_INBOX=Du(GO),uR.GET_UNSEEN_NOTIFICATION_COUNT=Du(mj),uR.GET_USER_MENTION_SUGGESTIONS=Du(pJ),uR.LOAD_GUIDE=Du(ocI),uR.SUBMIT_FEEDBACK=Du(D7),uR),lR={},pB$=(lR.CONTINUATION_REQUEST_TYPE_BROWSE=
Du(S8),lR.CONTINUATION_REQUEST_TYPE_SEARCH=Du(Vz),lR.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Du(qu),lR.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Du(lD),lR.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Du(nJ),lR.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Du(Z7),lR.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Du(DQ),lR.CONTINUATION_REQUEST_TYPE_GET_PANEL=Du(A6),lR),Jqp={player:kz(Y$),watchNext:Du(VO)},S3l={player:kz(Y$),reelItemWatch:Du(t6),reelWatchSequence:Du(h6)},HOM={watchEndpoint:kz(rj)},M9f=
{commandEndpointMap:ILj,signalEndpointMap:Ld$,continuationEndpointMap:pB$,watchEndpointMap:Jqp,reelWatchEndpointMap:S3l,streamingEndpointMap:HOM};var XBN,iOl,R2N;_.K$e=((iOl=(XBN=window).matchMedia)==null?void 0:(R2N=iOl.call(XBN,"(prefers-reduced-motion: reduce)"))==null?void 0:R2N.matches)||!document.startViewTransition;var ZOl={},n_e={disableAllTransitions:_.K$e,ignoredErrors:(ZOl.DOCUMENT_HIDDEN=!0,ZOl.WINDOW_SIZE_CHANGED=!0,ZOl.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,ZOl),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var GxP=_.YI("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),m1I=function(p){var J=this;this.viewTransitionCoordinator=
p;this.disableTransitionsForUltraHigh=_.z("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=bOw();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.zG("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.z("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.z("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.z("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.zG("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.z("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.wg.addJob(function(){J.registerRootElement();if(J.isAnyTransitionEnabled){var S=
_.PO("web_page_transition_exit_ms"),H=_.PO("web_page_transition_wait_ms"),M=_.PO("web_page_transition_enter_fast_ms"),X=_.PO("web_page_transition_watch_exit_ms"),Z=_.PO("web_page_transition_watch_wait_ms"),n=_.PO("web_page_transition_watch_enter_ms"),b=_.PO("web_page_transition_watch_next_exit_ms"),F=_.PO("web_page_transition_watch_next_wait_ms"),f=_.PO("web_page_transition_watch_next_enter_fast_ms"),O=_.PO("web_page_transition_enter_ms"),A=_.PO("web_page_transition_watch_next_enter_ms");J.enableFasterTransitions&&
J.isUltraHighBucketDevice&&(O=M,A=f);isNaN(S)&&isNaN(H)&&isNaN(O)&&isNaN(X)&&isNaN(Z)&&isNaN(n)&&isNaN(b)&&isNaN(F)&&isNaN(A)||!(S=T2k(GxP,S,H,O,X,Z,n,b,F,A))||(H=document.createElement("style"),H.textContent=O_k(S),document.head.appendChild(H))}},8)},bOw=function(){var p=_.Hg.navigator.deviceMemory;
return p>=8||p===void 0?!0:!1};
m1I.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var p={};this.viewTransitionCoordinator.registerElement(document.documentElement,(p.slide="root-slide",p["lockup-to-watch"]="root-lockup-to-watch",p["learning-journey"]="root-learning-journey",p))}};
_.wA4=function(p,J){p.isLockupToWatchTransitionEnabled&&p.isLockupThumbnailRegistrationEnabled&&(p.registeredLockupThumbnail?p.lockupThumbnailRegisteredFromWatchEndpoint?_.xQ(new _.TG("Lockup thumbnail registration order is incorrect.")):_.xQ(new _.TG("Lockup thumbnail already registered.")):(p.registeredLockupThumbnail=J,_.F$$(p,J)))};
_.F$$=function(p,J){var S={};p.viewTransitionCoordinator.registerElement(J,(S["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",S),!0)};
m1I[fQ]=[Sgy];var AhX={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var zf9=["videoPrimaryInfoRenderer","title"],$Sv=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var v_l;v_l=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.fkN=_.d(function(p){p=_.jh(p,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var J=p.data,S=p.playlistData,H=p.expanded,M=p.onExpandClick,X=p.isReadyToResume,Z=function(){var f;return!((f=S())==null||!f.contents)},n=function(){var f=S();
return f&&f.totalVideos&&f.currentIndex!==void 0?f.currentIndex+1+" / "+f.totalVideos:""};
p=_.Kb(function(){_.V2(_.vO().resolve(_.DF));return!1});
var b=_.Kb(function(){Z()&&M&&M()}),F={};
return _.m("ytd-miniplayer-info-bar",{class:_.XB("ytdMiniplayerInfoBarHost",(F.ytdMiniplayerInfoBarHasPlaylistData=Z,F)),"on:click":b},_.m("div",{class:"ytdMiniplayerInfoBarContent"},_.m("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":p},_.m(_.v3,{text:function(){var f=J();var O=S();if(O==null?0:O.contents){var A;f=(A=_.xgg(O))==null?void 0:A.title}else f=f==null?void 0:f.miniplayerTitle;return ef9(f)},
noEndpoints:!0,ellipsisTruncate:!0})),_.m("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.m(_.v,{cond:X,then:function(){return _.m(QS8,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:v_l})}}),_.m("h1",null,_.m(_.v3,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var f=J();var O=S();f=X()?{simpleText:_.Kl("CONTINUE_WATCHING",void 0,"Continue watching")}:(O==null?0:O.contents)?O.titleText:f==null?void 0:f.miniplayerSubtitle;return ef9(f)},
noEndpoints:!0,ellipsisTruncate:!0})),_.m(_.v,{cond:function(){return!!n()&&!X()},
then:function(){return _.m("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.m("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.m("span",null,n))}}))),_.m(_.v,{cond:Z,
then:function(){return _.m("div",{class:"ytdMiniplayerInfoBarExpand"},_.m(_.gF,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(f){M&&(M(),f.stopPropagation())}}},
iconName:function(){return H()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"yg");var OOP;OOP=_.d(function(p){return _.m("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.m(_.gF,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:p.onTap}},
iconName:"yt-icons:close"}))},"zg");
_.Aql=_.d(function(p){p=_.jh(p,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var J=p.size,S=p.playabilityStatus,H=p.isDisabled,M=p.isPictureInPicture,X=_.nE("div");p=_.K(_.eQ(void 0,void 0,"w4RAU"));var Z=p.next().value,n=p.next().value;p=_.fb(_.Ss);var b=!1,F=function(){return J().height<=0};
_.lf(function(){var P=J(),W=F(),y=Z();y&&!W&&y.setInternalSize(P.width,P.height)},"BHFc2b");
_.qz(function(){var P,W,y;return _.G(function(t){if(t.nextAddress==1){P=_.vO().resolve(_.DF);W=P.getPlayerElement();if(!P.isMiniplayerActive()||!W||!X.value)return t.return();W.appendTo(X.value);return t.yield(W.getPlayerPromise(),2)}y=t.yieldResult;M()||y.setSizeStyle(!1,!0);n(y);_.UK(t)})});
_.VY(function(){f()});
_.lf(function(){var P=Z();if(P)if(H()){var W=P.getPlayerState();(b=W===-1||W===1||W===3)&&P.pauseVideo()}else f()},"Invykd");
var f=function(){if(b){b=!1;var P;(P=Z())==null||P.playVideo()}},O=_.Kb(function(){_.V2(_.vO().resolve(_.DF))}),A={};
return _.m("ytd-miniplayer-player-container",{class:_.XB("ytdMiniplayerPlayerContainerHost",(A.ytdMiniplayerPlayerContainerHidden=F,A.ytdMiniplayerPlayerContainerHostShortsPip=p,A)),style:_.G7({width:function(){return J().width+"px"},
height:function(){return J().height+"px"}})},_.m("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:X}),_.m(_.v,{cond:function(){return!!S()&&!_.ddi(S())},
then:function(){return _.m(csM,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var P;return((P=S())==null?void 0:P.errorScreen)||null},
status:function(){var P;return((P=S())==null?void 0:P.status)||null}})}}),_.m(_.v,{cond:H,
then:function(){return _.m("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":O},_.m(OOP,{onTap:function(){_.vO().resolve(_.DF).close()}}))}}))},"Dg");_.P4U=_.d(function(p){var J=p.toastData;var S=_.nE("ytd-miniplayer-toast");p=_.K(_.re(function(){return!!J()}));
var H=p.next().value,M=p.next().value;p=_.K(_.eQ(!1,void 0,"BvfNQe"));var X=p.next().value,Z=p.next().value,n=function(){var f;return _.E4((f=J())==null?void 0:f.data.title)};
_.ad(function(){_.ip.requestAvailability();J()&&M(!1)});
var b,F;_.lf(function(){H()&&(_.cf(S.value,"iron-announce",{text:J().label+" "+n()}),b&&_.wg.cancelJob(b),b=_.wg.addLowPriorityJob(function(){Z(!0)},2500))},"no1dZb");
_.lf(function(){X()&&(F&&_.wg.cancelJob(F),F=_.wg.addLowPriorityJob(function(){M(!1);Z(!1)},300))},"G3yPNe");
p={};return _.m("ytd-miniplayer-toast",{el:S,class:_.XB("ytdMiniplayerToastHost",(p.ytdMiniplayerToastOpening=function(){return H()},p.ytdMiniplayerToastClosing=function(){return X()},p))},_.m(_.v,{cond:function(){var f;
return(f=J())==null?void 0:f.data},
then:function(f){return _.m(DKv,{className:"ytdMiniplayerToastThumbnail",data:f,width:78})}}),_.m("div",{class:"ytdMiniplayerToastInfo"},_.m("div",{class:"ytdMiniplayerToastLabel"},function(){var f;
return(f=J())==null?void 0:f.label}),_.m("div",{class:"ytdMiniplayerToastTitle"},n)))},"Gg");var hfv;var NEk=null;var $1w=_.d(function(p){var J=p.progressState;var S=p.multiMarkersPlayerBarRenderer;var H=p.progressBarWidth;var M=function(){return lHX(S())},X=function(){return aHt(J())},Z=function(){return H()*(J().playedTime/J().videoDuration)};
return _.m("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.m(_.dY,{each:M},function(n,b){return _.m(z2U,{modifiedProps:X,chapters:M,index:b,playedProgressWidth:Z,backgroundGradientPosition:function(){var F=X(),f=M(),O=b(),A=Z();return(F.playedTime-t7(_.e(f[O],gs)))/F.playedTime*A}})}))},"Hg"),z2U=_.d(function(p){var J=p.modifiedProps;
var S=p.chapters;var H=p.index;var M=p.playedProgressWidth;var X=p.backgroundGradientPosition;p={};p=_.XB("ytChapteredProgressBarChapteredPlayerBarChapter",(p.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return Z().isScrubbing},p.ytChapteredProgressBarHoveredMacroMarker=function(){return Z().scrubberHovering},p.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return Z().videoPosition==="seen"},p));
var Z=function(){return E7v(J(),S(),H())},n=function(){var b=J();
var F=S(),f=H();if(E7v(b,F,f).videoPosition!=="active")b=0;else{var O=t7(_.e(F[f],gs));b=(b.playedTime-O)/((t7(_.e(F[f+1],gs))||b.videoDuration)-O)}return b};
return _.m("div",{class:p,style:_.G7({width:function(){var b=J(),F=S(),f=H(),O=_.e(F[f],gs);F=_.e(F[f+1],gs);return(F?t7(F)-t7(O):b.videoDuration-t7(O))/b.videoDuration*100+"%"},
"background-color":function(){a:{var b=Z();switch(b.videoPosition){case "pending":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:b=""}}return b},
"background-size":function(){return(Y1t(Z())?M():"")+"px"},
"background-position-x":function(){return(Y1t(Z())?X():"")+"px"}})},_.m("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var b=J(),F=S(),f=H();if(E7v(b,F,f).videoPosition==="seen")var O=0;else O=t7(_.e(F[f],gs)),F=t7(_.e(F[f+1],gs))||b.videoDuration,b=b.videoDuration*b.percentLoaded,O=F<=b?1:O>=b?0:(b-O)/(F-O);return"width: "+O*100+"%"}}),_.m("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.G7({width:function(){return n()*100+"%"},
"background-size":function(){return(Y1t(Z(),n())?M():"")+"px"},
"background-position-x":function(){return(Y1t(Z(),n())?X():"")+"px"}})}))},"Ig");var o_P=function(p,J){J=J===void 0?q0o:J;var S,H=[],M,X=!1;return function(){var Z=_.Yp.apply(0,arguments);if(X&&S===this&&J(Z,H))return M;M=p.apply(this,Z);X=!0;S=this;H=Z;return M}}(function(p){var J=p.heatMarkers,S=p.minHeightDp===void 0?0:p.minHeightDp,H=p.maxHeightDp===void 0?60:p.maxHeightDp;
var M=M===void 0?!1:M;var X=1E3/J.length;p=[];p.push({x:0,y:100});for(var Z=0;Z<J.length;Z++){var n=void 0,b=((n=_.e(J[Z],jB8))==null?void 0:n.heatMarkerIntensityScoreNormalized)||0;n=(Z+.5)*X;b=100-_.s0(b*100,S/321*100,H/321*100);Z!==0||M||p.push({x:0,y:b});p.push({x:n,y:b});Z===J.length-1&&p.push({x:1E3,y:b})}p.push({x:1E3,y:100});J="";for(S=0;S<p.length;S++)M=p[S],S===0?M="M "+M.x.toFixed(1)+","+M.y.toFixed(1):(H=Nqv(p[S-1],p[S-2],M),X=Nqv(M,p[S-1],p[S+1],!0),M=" C "+(H.x.toFixed(1)+","+H.y.toFixed(1)+
" "+X.x.toFixed(1)+","+X.y.toFixed(1)+" "+M.x.toFixed(1)+","+M.y.toFixed(1))),J+=M;return J});var e2$=_.d(function(p){var J=p.progressBarProps;var S=p.config;var H={};p=_.XB("ytHeatSeekerHost",(H.ytHeatSeekerHighContrast=p.highContrast,H));var M=function(){return BEW(S().chapterData)};
return _.m("yt-progress-bar-heatseeker",{class:p,style:function(){var X;return"height: 320px; display: "+(J().isDragging&&((X=M())==null?0:X.heatMarkers)?"block":"none")}},_.m(_.v,{cond:M,
then:function(X){return _.m(_.v,{cond:function(){return X().heatMarkers},
then:function(){return _.m("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.m("path",{d:function(){return o_P(X())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Jg");var W$e=_.d(function(p){var J=p.progressBarProps;var S=p.config;p={};p=_.XB("ytProgressBarLineProgressBarLine",(p.ytProgressBarLineProgressBarLineRounded=function(){return S().rounded},p.ytProgressBarLineProgressBarLineBottomInset=function(){return S().position===2},p));
return _.m("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.m("div",{class:p},_.m("div",{class:"ytProgressBarLineProgressBarBackground"}),_.m("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+J().percentLoaded*100+"%"}}),_.m("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var H=J();return"width: "+(H.videoDuration?_.s0(H.hoveredTime/H.videoDuration,0,1):0)*100+"%"}}),_.m("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+QTX(J())*100+"%"}})))},"Kg");
W$e.idomCompat=!0;var Q6I=_.d(function(p){var J=p.progressBarProps;var S=p.playheadData;var H=p.interpolateDotPosition;var M=p.hidePlayhead;p={};var X=_.XB("ytProgressBarPlayheadProgressBarPlayheadDot",(p.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return J().isDragging},p.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!J().isDragging&&M()},p));
return _.m("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.G7({"margin-left":function(){return CtX(J())*100+"%"},
transform:function(){return"translateX(-"+(H()?CtX(J())*12:6)+"px)"}})},_.m(_.v,{cond:function(){var Z;
return(Z=_.rw(S)())==null?void 0:Z.playheadImage},
then:function(Z){var n={};return _.m("div",{class:_.XB("ytProgressBarPlayheadProgressBarPlayheadCustom",(n.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return J().isDragging},n.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!J().isDragging&&M()},n)),
style:_.G7({"transform-origin":function(){return(H()?CtX(J())*20:10)+"px center"}})},_.m(_.a4,{data:Z,
alt:"","aria-hidden":"true"}))},
else:function(){return _.m("div",{class:X,style:_.G7({"transform-origin":function(){return(H()?CtX(J())*12:6)+"px center"}})})}}))},"Lg");
Q6I.idomCompat=!0;var qt=function(p,J,S,H,M,X){this.getProgressBarRect=p;this.updateProgressBarRect=J;this.getFilmstripYPosition=S;this.setFineScrubbingDraggedTime=H;this.updateFilmStripDraggedYDistance=M;this.resetFilmStripYOffset=X;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.nb(this.onThrottledSeek,100,this)},C4N=function(p,J,S){return function(H){p.handleClick(H,J(),S())}},U1j=function(p,J){return function(S){yql(p,
S,BgM(S),J())}},s6y=function(p,J){return function(S){yql(p,S,{x:S.clientX,
y:S.clientY},J())}},t9P=function(p,J,S){return function(H){var M=J(),X=S();
g_P(p,H,BgM(H),M,X,!0);if(X.onTouchMove)X.onTouchMove(M)}},D1P=function(p,J,S){return function(H){h2I(p,H,J(),S())}},kxP=function(p,J){return function(){p.handleMouseLeave(J())}},NgN=function(p,J,S){return function(){var H=J(),M=S();
aF(p,H,M);if(M.onTouchEnd)M.onTouchEnd(H)}},Tgr=function(p,J,S){return function(){var H=J(),M=S();
aF(p,H,M);if(M.onTouchEnd)M.onTouchEnd(H)}},d1y=function(p,J,S){return function(){aF(p,J(),S())}},u$M=function(p){return function(J){if(J.keyCode===39||J.keyCode===38){var S,H;
(S=p())==null||(H=S.playerApi)==null||H.seekBy(5,void 0,void 0,72)}else if(J.keyCode===37||J.keyCode===40){var M,X;(M=p())==null||(X=M.playerApi)==null||X.seekBy(-5,void 0,void 0,71)}}},lky=function(p,J,S){return function(H){!S().disableScrubbing&&p.startPosition&&h2I(p,H,J(),S())}},V9r=function(p,J,S){return function(){if(!S().disableScrubbing)if(p.startPosition){var H=J(),M=S();
aF(p,J(),S());if(M.onTouchEnd)M.onTouchEnd(H)}else J().setState({isDragging:!1})}},BgM=function(p){p=p.touches[0];
return{x:p.clientX,y:p.clientY}},h2I=function(p,J,S,H){if(J.buttons!==1){if(J.movementX||J.movementY)J.preventDefault(),J.stopPropagation(),p=q3p(p,S,J.clientX),S.setState({isHovering:!0,
hoveredTime:p*S.videoDuration})}else akM(S),g_P(p,J,{x:J.clientX,y:J.clientY},S,H,!1)};
qt.prototype.handleMouseLeave=function(p){akM(p)};
var akM=function(p){p.isHovering&&p.setState({isHovering:!1,hoveredTime:0})},yql=function(p,J,S,H){p.startPosition||(p.startPosition=S,p.updateProgressBarRect(),p.controlsWereVisibleBeforeDragging=H.controlsVisible,J.stopPropagation(),_.z("medium_progress_bar_modification")||J.preventDefault())},g_P=function(p,J,S,H,M,X){if(p.startPosition)if(X&&M.isInlinePlayback&&p.startPosition&&!p.hasDraggedTheMinimumDistance&&Math.abs(S.y-p.startPosition.y)>Math.abs(S.x-p.startPosition.x))aF(p,H,M);
else if(J.preventDefault(),J.stopPropagation(),H.videoDuration&&(p.startPosition&&!p.hasDraggedTheMinimumDistance&&(p.hasDraggedTheMinimumDistance=Math.abs(S.x-p.startPosition.x)>=1),M.enableFineScrubbing&&(p.startPosition&&(p.isDraggedForFineScrubbing=-(S.y-p.startPosition.y)>=60),!p.startPosition||S.y>=p.startPosition.y||(H.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:rh4(H.draggedTime,H,M.chapterData)}),p.setFineScrubbingDraggedTime(H.draggedTime),p.updateFilmStripDraggedYDistance(p.startPosition.y,
S.y,H))),p.hasDraggedTheMinimumDistance)){J=q3p(p,H,S.x);if(p.isDraggedForFineScrubbing){var Z;(Z=H.playerApi)==null||Z.pauseVideo();H.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:H.draggedTime,filmStripXDistance:rh4(J*H.videoDuration,H,M.chapterData)})}M.enableFineScrubbing&&(!M.enableFineScrubbing||p.getFilmstripYPosition(H)<68)||H.setState({draggedTime:J*H.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:p.controlsWereVisibleBeforeDragging});var n;(n=
M.cancelAutohideControlsFn)==null||n.call(M)}},aF=function(p,J,S){var H=S.enableFineScrubbing&&J.fineScrubbingActiveState!=="off";
if(J.isDragging||H){H={isDragging:!1,playedTime:J.draggedTime,controlsVisible:p.controlsWereVisibleBeforeDragging};S.enableFineScrubbing&&J.fineScrubbingActiveState!=="on"&&(p.resetFilmStripYOffset(),H.fineScrubbingActiveState="off");var M=M===void 0?NEk:M;var X=_.C1(0);if(X&&M){var Z=Math.round(J.playedTime*1E3),n=Math.round(J.draggedTime*1E3);Z>2147483647||n>2147483647||_.Vf(X,M,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(Z),endMediaTimeMs:String(n),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}J.setState(H);
p.seekThrottle.fire(J.draggedTime,J,7);_.z("mweb_new_progress_bar_play_on_seek")&&p.resumeVideo(J);S.unmuteOnSeek&&(S=J.playerApi,J.volumeMuted&&(S==null||S.unMute()))}else J.setState({controlsVisible:!J.controlsVisible}),(X=S.triggerAutohideControlsAfterDelayFn)==null||X.call(S);p.startPosition=null;p.hasDraggedTheMinimumDistance=!1;p.isDraggedForFineScrubbing=!1;p.controlsWereVisibleBeforeDragging=!1};
qt.prototype.handleClick=function(p,J,S){this.updateProgressBarRect();p.stopPropagation();p=q3p(this,J,p.clientX)*J.videoDuration;J.setState({playedTime:p});if(J.playerState!==2){var H;(H=S.triggerAutohideControlsAfterDelayFn)==null||H.call(S)}this.seekThrottle.fire(p,J,7)};
var q3p=function(p,J,S){p=p.getProgressBarRect(J);return _.s0(0,(S-p.left)/p.width,1)};
qt.prototype.resumeVideo=function(p){if(p.draggedTime<p.videoDuration){var J;(J=p.playerApi)==null||J.playVideo()}};
qt.prototype.onThrottledSeek=function(p,J,S){if(J=J.playerApi){var H;if((H=J.getVideoData())==null?0:H.isLive)H=this.getProgressState(J),p+=(H==null?void 0:H.seekableStart)||0;J.seekTo(p,void 0,void 0,void 0,S)}};
qt.prototype.getProgressState=function(p){var J=p==null?void 0:p.getPresentingPlayerType();return p==null?void 0:p.getProgressState(J)};var rqp,Y3w,j6$,x1I,E_I,cq$,Iky,L$y,pLe;rqp=_.d(function(p){var J=p.progressBarProps;var S=p.config;var H=p.progressBarWidthPx;var M=p.chapterData;var X=IH9(J,function(){return S().isShortsPage}),Z=function(){return!J().isHovering&&!S().isShortsPage};
p={};var n=_.XB("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(p.ytPlayerStoryboardHostMwebShorts=function(){return S().isShortsPage&&!1},p));
return _.m("yt-player-storyboard",null,_.m(_.v,{cond:function(){return J().isDragging||J().isHovering},
then:function(){return _.m(_.v,{cond:X,then:function(b){return _.m(_.v,{cond:Z,then:function(){return _.m("div",{class:n,"aria-hidden":"true"},_.m(E_I,{props:J,config:S,isBigboard:!0,chapterData:M}))},
else:function(){return _.m(Y3w,{props:J,frame:b,config:S,progressBarWidthPx:H,chapterData:M})}})}})}}))},"Mg");
_.wB$=_.d(function(p){var J=p.progressBarProps;var S=IH9(J,p.isShortsPage);return _.m("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.m(_.v,{cond:function(){return J().isDragging||J().isHovering},
then:function(){return _.m(_.v,{cond:S,then:function(H){return _.m(j6$,{frame:H,props:J,isBigboard:!0})}})}}))},"Ng");
Y3w=_.d(function(p){var J=p.props;var S=p.frame;var H=p.config;var M=p.progressBarWidthPx;p=p.chapterData;var X={};X=_.XB("ytPlayerStoryboardHost",(X.ytPlayerStoryboardHostMwebShorts=function(){return H().isShortsPage&&!1},X.ytPlayerStoryboardHostInlinePlayer=function(){return H().isInlinePlayer},X.ytPlayerStoryboardHostFadeIn=function(){return H().useFadeInAnimation},X));
return _.m("div",{class:X,"aria-hidden":"true",style:function(){var Z=J(),n=jTi(S()),b=M();Z=wri(Z)/Z.videoDuration;var F=b*Z,f=n/2+6;n=b-(n/2+6);return"left: "+(F<=f?f/b*100:F>=n?n/b*100:Z*100)+"%"}},_.m(_.v,{cond:function(){var Z=J();
return!(H().isShortsPage&&Z.videoDuration<15)},
then:function(){return _.m(j6$,{frame:S,props:J,isBigboard:!1})}}),_.m(E_I,{props:J,
config:H,isBigboard:!1,chapterData:p}))},"Og");
j6$=_.d(function(p){var J=p.frame;var S=p.props;var H=p.isBigboard;var M=function(){var n,b;return(b=(n=S().playerApi)==null?void 0:n.getVideoContentRect())!=null?b:{width:0,height:0}},X=function(){return jTi(J())},Z=function(){var n=J();
return n?n.height/n.rows:0};
p={};p=_.XB((p.ytPlayerStoryboardBigboardImageWrapper=H,p.ytPlayerStoryboardStoryboardImageWrapper=function(){return!H()},p));
return _.m("div",{class:p,style:function(){return"width: "+(H()?M().width:X())+"px; height: "+(H()?M().height:Z())+"px;"}},_.m(x1I,{frame:J,
storyboardWidth:X,storyboardHeight:Z,storyboardScale:function(){return(H()?M().width:X())/X()}}))},"Pg");
x1I=_.d(function(p){var J=p.frame;var S=p.storyboardWidth;var H=p.storyboardHeight;var M=p.storyboardScale;var X=function(){var Z=J().row,n=J().column,b=S(),F=H(),f=M();return{left:-n*b*f,top:-Z*F*f}};
return _.m("img",{src:function(){return J().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+X().left+"px; top: "+X().top+"px; width: "+J().width*M()+"px; height: "+J().height*M()+"px;"}})},"Qg");
E_I=_.d(function(p){var J=p.props;var S=p.config;var H=p.isBigboard;var M=p.chapterData;p={};p=_.XB("ytPlayerStoryboardMetadata",(p.ytPlayerStoryboardMetadataBigboard=H,p));return _.m("div",{class:p},_.m(_.v,{cond:H,then:function(){return _.m(_.fV,null,_.m(cq$,{props:J,config:S}),_.m(_.v,{cond:function(){a:{var X=J();var Z=S(),n=M(),b;if((Z==null?0:Z.activeChapter)&&((b=_.e(Z==null?void 0:Z.activeChapter,gs))==null?0:b.title))X=!0;else{Z=_.K(USX(n));for(Z=Z.next();!Z.done;Z=Z.next()){X=(Z=_.e(Z.value,
Ln4))&&xSt(X,Z);break a}X=!1}}return X},
then:function(){return _.m(Iky,{props:J,config:S,isBigboard:!0,chapterData:M})}}))},
else:function(){return _.m(_.fV,null,_.m(Iky,{props:J,config:S,isBigboard:!0,chapterData:M}),_.m(cq$,{props:J,config:S}))}}))},"Rg");
cq$=_.d(function(p){var J=p.props;var S=p.config;p={};p=_.XB("ytPlayerStoryboardTimestamp",(p.ytPlayerStoryboardTimestampShorts=function(){return S().isShortsPage},p.ytPlayerStoryboardTimestampIsHovering=function(){return J().isHovering||S().isShortsPage&&!0},p));
return _.m("div",{class:p},_.m(_.fV,null,function(){return _.ch9(wri(J()))}))},"Sg");
Iky=_.d(function(p){var J=p.props;var S=p.config;var H=p.isBigboard;var M=p.chapterData;p={};H=_.XB("ytPlayerStoryboardTitle",(p.ytPlayerStoryboardTitleBigboard=H,p));return _.m("div",{class:H},_.m(_.v,{cond:function(){return!S().isShortsPage},
then:function(){return _.m(L$y,{props:J,activeChapter:function(){return S().activeChapter},
chapterData:M})}}))},"Tg");
L$y=_.d(function(p){var J=p.props;var S=p.activeChapter;var H=p.chapterData;return _.m(_.fV,null,_.m(_.dY,{each:function(){return USX(H())},
keyBy:"INDEX"},function(M){return _.m(_.fV,null,_.m(_.v,{cond:function(){return _.e(M(),Ln4)&&xSt(J(),_.e(M(),Ln4))},
then:function(){return _.m(pLe,{timedMarker:function(){return _.e(M(),Ln4)}})}}))}),_.m(_.v,{cond:function(){var M;
return S()&&((M=_.e(S(),gs))==null?void 0:M.title)},
then:function(M){return _.m(_.v3,{text:M,noPreWrap:!0})}}))},"Ug");
pLe=_.d(function(p){var J=p.timedMarker;return _.m(_.fV,null,_.m("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.m(_.bn,{icon:function(){return J().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.m(_.v3,{text:function(){return J().label},
noPreWrap:!0}))},"Vg");_.JVN=_.d(function(p){var J=p.progressBarProps;var S=p.playheadData;var H=p.config;p=_.nE("yt-progress-bar");var M=_.nE("div"),X=_.nE("div"),Z=_.K(_.eQ({width:0,left:0},void 0,"XjZjde")),n=Z.next().value,b=Z.next().value,F=function(){X.value&&b(X.value.getBoundingClientRect())},f=function(){n().width<=0&&F();
return n()};
_.fE("resize",F);var O=new qt(f,function(){},function(){return 0},function(){},function(){},function(){}),A=function(){return J()};
Z=_.K(_.eQ(!1,void 0,"uZlOJc"));var P=Z.next().value,W=Z.next().value;Z=_.Kb(function(){W(!0);H().position===2?setTimeout(function(){F()},100):F()});
var y=_.Kb(function(){W(!1);kxP(O,A)()}),t=_.Kb(function(TW){(H().doSeekOnClick||_.z("mweb_progress_bar_seek_on_mouse_click")&&TW instanceof PointerEvent&&TW.pointerType==="mouse")&&C4N(O,A,H)(TW);
return!1}),D=_.Kb(function(TW){U1j(O,A)(TW);
return!1}),k=_.Kb(function(TW){s6y(O,A)(TW);
return!1}),E=_.Kb(function(TW){t9P(O,A,H)(TW);
return!1}),a=_.Kb(function(TW){D1P(O,A,H)(TW);
return!1}),q=_.Kb(function(){NgN(O,A,H)();
return!1}),w=_.Kb(function(){Tgr(O,A,H)();
return!1}),I=_.Kb(function(){d1y(O,A,H)();
return!1}),Z3=_.Kb(function(TW){u$M(A)(TW);
return!1});
_.fE("mousemove",lky(O,A,H));_.fE("mouseup",V9r(O,A,H));_.ad(function(){TEs(M.value);W(!1);F();V9r(O,A,H)()});
var vg={};vg=_.XB("ytPlayerProgressBarHost",function(){return H().className},(vg.ytPlayerProgressBarHostReadOnly=function(){return H().disableScrubbing},vg.ytPlayerProgressBarHostHidden=function(){return H().hideProgressBar&&!P()},vg.ytPlayerProgressBarHostLowerPlayer=function(){return H().position===0},vg.ytPlayerProgressBarHostBottomEdge=function(){return H().position===1},vg.ytPlayerProgressBarHostBottomInset=function(){return H().position===2},vg.ytPlayerProgressBarHostCustom=function(){return H().position===
3},vg));
var yX={},Pg=_.XB("ytPlayerProgressBarBackground",(yX.ytPlayerProgressBarBackgroundHide=function(){return H().position===2&&!P()&&!J().isDragging},yX));
yX={};yX=_.XB("ytPlayerProgressBarDragContainer",(yX.ytPlayerProgressBarDragContainerBottomEdge=function(){return H().position===1},yX));
var ov={};ov=_.XB("ytPlayerProgressBarProgressBar",(ov.ytPlayerProgressBarProgressBarInset=function(){return H().position===2},ov.ytPlayerProgressBarProgressBarInsetMinimized=function(){return H().position===2&&!P()&&!J().isDragging},ov));
var NW=function(){return Math.floor(QTX(J())*100)};
return _.m("yt-progress-bar",{el:p,class:vg},_.m(_.v,{cond:function(){return H().position===2},
then:function(){return _.m("div",{class:Pg})}}),_.m("div",{el:M,
"on:click":t,"on:touchstart":D,"on:touchmove":E,"on:mouseenter":Z,"on:mousedown":k,"on:mouseleave":y,"on:mousemove":a,"on:mouseup":w,"on:touchend":q,"on:touchcancel":I,"on:keydown":Z3,class:yX,role:"slider","aria-valuenow":NW,"aria-valuetext":function(){return NW()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return J().videoDuration},
draggable:_.z("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.Kl("SEEK_SLIDER")},_.m("div",{el:X,class:ov},_.m(e2$,{progressBarProps:J,config:H,highContrast:function(){return!!H().isInlinePlayback}}),_.m(_.v,{cond:function(){return H().chapterData&&sTW(H().chapterData)},
then:function(){return _.m($1w,{progressState:J,multiMarkersPlayerBarRenderer:function(){return H().chapterData},
progressBarWidth:function(){return n().width}})},
else:function(){return _.m(W$e,{progressBarProps:J,config:H})}}),_.m(Q6I,{progressBarProps:J,
playheadData:S,interpolateDotPosition:function(){return H().position!==2},
hidePlayhead:function(){return H().playheadDotBehavior===1&&!P()}}))),_.m(rqp,{progressBarProps:J,
config:function(){return{activeChapter:q1t(J(),H().chapterData),getProgressBarWidthPx:function(){return f().width},
isShortsPage:!!H().isShortsPage,isInlinePlayer:!!H().isInlinePlayback,useFadeInAnimation:!!H().isInlinePlayback}},
progressBarWidthPx:function(){return n().width},
chapterData:function(){return H().chapterData}}))},"Wg");
_.JVN.idomCompat=!0;Object.assign({},_.g7w(),{setState:function(){},
domMeasurements:{},appApi:_.WJi(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var SIp;
_.HHf=_.d(function(){var p,J=(p=_.h7(LJ4().playerApi))!=null?p:void 0;p=_.K(_.eQ(!1,void 0,"Z9NQ1b"));var S=p.next().value,H=p.next().value;p=_.K(_.eQ(!1,void 0,"HoVJXe"));var M=p.next().value,X=p.next().value;p=_.K(_.eQ(!1,void 0,"DWCY3"));var Z=p.next().value,n=p.next().value;p=_.K(_.eQ(!1,void 0,"g4C2Zd"));var b=p.next().value,F=p.next().value;p=_.K(_.eQ(0,void 0,"lmVfFb"));var f=p.next().value,O=p.next().value;p=_.K(_.eQ(0,void 0,"mFLbzb"));var A=p.next().value,P=p.next().value;p=_.K(_.eQ(!1,void 0,
"hQN4Wb"));var W=p.next().value,y=p.next().value;p=_.K(_.eQ(0,void 0,"WWU0fb"));var t=p.next().value,D=p.next().value;p=_.K(_.eQ(0,void 0,"MJ7LMd"));var k=p.next().value,E=p.next().value;p=_.K(_.eQ("",void 0,"hnomOe"));var a=p.next().value,q=p.next().value;p=_.K(_.eQ(-1,void 0,"ARe3pf"));var w=p.next().value,I=p.next().value,Z3=_.BW(function(){var vg={controlsVisible:S(),isOverlayHidden:M(),shouldWaitToHideControls:Z(),isDragging:b(),isHovering:W(),videoDuration:t(),playedTime:k(),videoId:a(),draggedTime:A(),
hoveredTime:f(),playerState:w()};return Object.assign({},_.g7w(),vg,{domMeasurements:{},setState:function(yX){yX.controlsVisible!==void 0&&H(yX.controlsVisible);yX.isOverlayHidden!==void 0&&X(yX.isOverlayHidden);yX.shouldWaitToHideControls!==void 0&&n(yX.shouldWaitToHideControls);yX.isDragging!==void 0&&F(yX.isDragging);yX.isHovering!==void 0&&y(yX.isHovering);yX.draggedTime!==void 0&&P(yX.draggedTime);yX.hoveredTime!==void 0&&O(yX.hoveredTime);yX.videoDuration!==void 0&&D(yX.videoDuration);yX.playedTime!==
void 0&&E(yX.playedTime);yX.videoId!==void 0&&q(yX.videoId);yX.playerState!==void 0&&I(yX.playerState)},
appApi:_.WJi(),playerApi:J})},void 0,"Au4PIf");
_.qz(function(){J==null||J.addEventListener("onVideoProgress",kE9(Z3));J==null||J.addEventListener("onVideoDataChange",DSW(Z3));J==null||J.addEventListener("onStateChange",tl3(Z3))});
_.VY(function(){if(J==null?0:J.isReady())J==null||J.removeEventListener("onVideoProgress",kE9(Z3)),J==null||J.removeEventListener("onVideoDataChange",DSW(Z3)),J==null||J.removeEventListener("onStateChange",tl3(Z3))});
return _.m("desktop-shorts-player-controls",null,_.m(SIp,{playerControlsProps:Z3}))},"Yg");
SIp=_.d(function(p){var J=p.playerControlsProps;return _.m("div",{class:"desktopShortsPlayerControlsHost"},_.m(_.JVN,{progressBarProps:J,config:function(){return{isShortsPage:!0,hideProgressBar:J().videoDuration<30&&J().playerState!==2&&!J().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Zg");_.MDe=_.d(function(p){function J(vg){vg!==0||O()?vg>50&&(O()||!P())?(A(!1),W(!0)):vg<=50&&(O()||P())&&(A(!1),W(!1)):A(!0)}
function S(vg,yX){var Pg;return _.G(function(ov){if(ov.nextAddress==1)return ov.yield(_.Zp(),2);Pg=ov.yieldResult;yX&&Pg?(Pg.unMute(!0),vg&&(JNw(vg,Pg.getVolume()),t(Pg.getVolume()))):Pg&&(Pg.mute(!0),vg&&JNw(vg,0));_.UK(ov)})}
function H(vg){var yX,Pg;return _.G(function(ov){if(ov.nextAddress==1)return ov.yield(_.Zp(),2);yX=ov.yieldResult;Pg=50;yX&&(Pg=yX.getVolume(),yX.isMuted()?JNw(vg,0):JNw(vg,Pg));t(Pg);_.UK(ov)})}
var M=p.orientation;p=_.nE("desktop-shorts-volume-controls");var X=_.nE("button"),Z=_.mo("input"),n=_.K(_.eQ(!1,void 0,"RuD0I")),b=n.next().value,F=n.next().value,f=_.K(_.eQ(!1,void 0,"YbWwwb"));n=f.next().value;f=f.next().value;var O=n,A=f;f=_.K(_.eQ(!0,void 0,"F7Esub"));n=f.next().value;f=f.next().value;var P=n,W=f;n=_.K(_.eQ(50,void 0,"QFGbod"));var y=n.next().value,t=n.next().value;n=_.BW(function(){var vg=O();return _.z("web_shorts_keyboard_enable_mute_shortcut")?vg?_.Kl("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Kl("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):vg?_.Kl("UNMUTE_VOLUME",void 0,"Unmute"):_.Kl("MUTE_VOLUME",void 0,"Mute")},void 0,"rhQxrf");
f=_.BW(function(){var vg=O(),yX=P();return{sources:[{clientResource:{imageName:vg?_.z("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":yX?_.z("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.z("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"mluxjf");
var D=_.BW(function(){var vg=y();return O()?vg+"% volume muted":vg+"% volume"},void 0,"QaT2u"),k=_.BW(function(){return M()==="vertical_down"},void 0,"LkJ9ac");
_.ad(function(){function vg(){F(!0)}
function yX(){F(!1)}
Z&&Z.value&&(Z.value.addEventListener("focus",vg),Z.value.addEventListener("focusout",yX),H(Z.value).then(function(){J(Number(SQ4(Z.value)))}));
X&&X.value&&(X.value.addEventListener("focus",vg),X.value.addEventListener("focusout",yX));_.VY(function(){var Pg;Z==null||(Pg=Z.value)==null||Pg.removeEventListener("focus",vg);var ov;Z==null||(ov=Z.value)==null||ov.removeEventListener("focusout",yX);var NW;X==null||(NW=X.value)==null||NW.removeEventListener("focus",vg);var TW;X==null||(TW=X.value)==null||TW.removeEventListener("focusout",yX)})});
var E=_.Kb(function(){if(Z&&Z.value){var vg=Number(SQ4(Z.value));pV4(vg);t(vg);Z.value.style.setProperty("--gradient-percent",vg+"%");J(vg)}return!1}),a=_.Kb(function(){Z&&Z.value&&(S(Z.value,O()),A(!O()));
return!1}),q={},w={},I={},Z3={};
return _.m("desktop-shorts-volume-controls",{"on:pointerleave":_.Kb(function(){F(!1)}),
"on:pointerenter":_.Kb(function(){F(!0)}),
class:_.XB("ytdDesktopShortsVolumeControlsHost",(q.ytdDesktopShortsVolumeControlsHostVertical=k,q.ytdDesktopShortsVolumeControlsHostModern=_.z("web_shorts_modern_controls"),q.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.z("web_shorts_modern_controls")&&b()},q)),
el:p},_.m(_.v,{cond:function(){return!k()},
then:function(){var vg={};return _.m("div",{class:_.XB("ytdDesktopShortsVolumeControlsBackgroundScrim",(vg.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=b,vg.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.z("web_shorts_modern_controls")&&b()},vg))})}}),_.m("div",{class:_.XB((w.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=k,w))},_.m("button",{"aria-label":n,
title:n,el:X,"on:click":a,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},f?_.m(_.a4,{data:f,alt:n,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.m("div",{class:_.XB("ytdDesktopShortsVolumeControlsSliderContainer",(I.ytdDesktopShortsVolumeControlsSliderContainerExpanded=b,I.ytdDesktopShortsVolumeControlsSliderContainerVertical=k,I.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=k,I.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return b()&&
k()},I))},_.m("input",{"aria-label":_.Kl("VOLUME"),
title:_.Kl("VOLUME"),el:Z,"on:input":E,type:"range",class:_.XB("ytdDesktopShortsVolumeControlsNativeSlider",(Z3.ytdDesktopShortsVolumeControlsNativeSliderModern=_.z("web_shorts_modern_controls"),Z3)),id:"volume-input",role:"slider","aria-valuenow":y,"aria-valuetext":D,"aria-valuemin":0,"aria-valuemax":100})))},"$g");var XLI=_.d(function(p){var J=p.data;var S=p.overlayDensity;p={};return _.m("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.m(_.AH,{data:function(){return J().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(H){var M=H.data;
return _.m(_.RH,{data:function(){return(S==null?void 0:S())===1?Object.assign({},M(),{avatar:{avatarViewModel:Object.assign({},_.e(M().avatar,_.tH),{avatarImageSize:"AVATAR_SIZE_M"})}}):M()}})}}),_.m(_.AH,{data:function(){return J().avatarStackViewModel}},{avatarStackViewModel:function(H){return _.m(_.KF,{data:H.data})}}),_.m(_.v3,{className:_.XB("ytReelChannelBarViewModelChannelName",(p.ytReelChannelBarViewModelChannelNameLarge=function(){return(S==null?void 0:S())===1},p)),
text:function(){return J().channelName},
linkInheritColor:!0,userInput:!0}),_.m("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.m(_.AH,{data:function(){return J().subscribeButtonViewModel}},{subscribeButtonViewModel:function(H){var M=H.data;
return _.m(_.iG,{data:function(){return(S==null?void 0:S())===1?Object.assign({},M(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},M().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):M()},
isOverlay:!1})},
buttonViewModel:_.D0})),_.m("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.m(_.AH,{data:function(){var H,M;return(M=_.e((H=J())==null?void 0:H.sponsorButtonViewModel,KBM))==null?void 0:M.sponsorButton}},{buttonViewModel:function(H){return _.m(_.D0,{data:H.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ah");var iHr=_.d(function(p){var J=function(){var M;return((M=p.overlayDensity)==null?void 0:M.call(p))===1},S=function(){return J()?22:16},H={};
return _.m("yt-reel-multi-format-link-view-model",{class:_.XB("ytReelMultiFormatLinkViewModelHost",(H.ytReelMultiFormatLinkViewModelHostTall=!0,H.ytReelMultiFormatLinkViewModelHostLarge=function(){return J()},H))},_.m(_.yD,{ariaLabel:function(){return p.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return p.data().command}},_.m("h3",{class:function(){return J()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.m(_.v,{cond:function(){return p.data().icon},
then:function(M){return _.m(_.a4,{data:M,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:S})}}),_.m(_.v3,{text:function(){return p.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"bh");
iHr.idomCompat=!0;var RpI=_.d(function(p){var J=p.data;var S=p.overlayDensity;var H=p.extractOverlay;var M=_.nE("yt-shorts-suggested-action-view-model");p=_.K(_.eQ(!1,void 0,"S60Hzc"));var X=p.next().value,Z=p.next().value;p=_.K(_.eQ(!1,void 0,"O76chf"));var n=p.next().value,b=p.next().value,F=function(){return J().isMultiLineSa},f=_.v$(AUs,function(){var q,w;
return(w=(q=J().toggleableContent)==null?void 0:q.entityKey)!=null?w:""}),O=function(){var q,w,I;
return(I=J().toggleableContent)!=null&&I.entityKey?(w=(q=f())==null?void 0:q.value)!=null?w:!1:!1},A=function(){var q,w,I,Z3,vg,yX,Pg,ov,NW,TW,Ys;
return J().toggleableContent?O()?(q=J().toggleableContent)==null?void 0:q.toggledData:(w=J().toggleableContent)==null?void 0:w.untoggledData:{primaryText:(ov=(I=J().defaultContent)==null?void 0:I.primaryText)!=null?ov:J().text,secondaryText:(Z3=J().defaultContent)==null?void 0:Z3.secondaryText,onTapCommand:(NW=(vg=J().defaultContent)==null?void 0:vg.onTapCommand)!=null?NW:J().onTapCommand,icon:(TW=(yX=J().defaultContent)==null?void 0:yX.icon)!=null?TW:J().icon,image:(Ys=(Pg=J().defaultContent)==null?
void 0:Pg.image)!=null?Ys:J().image}},P=function(){return F()?J().trailingTapTarget:void 0},W=function(q,w){return function(){return X()?w:q}},y=function(){return{leadingSection:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(S==null?void 0:S())===1?W("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):W("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:W("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
p={};p=_.XB((p.ytShortsSuggestedActionViewModelStaticHost=function(){return!F()},p.ytShortsSuggestedActionViewModelDynamicHost=F,p.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return F()&&n()},p.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return F()&&!n()},p.ytShortsSuggestedActionViewModelExtractOverlay=function(){return H==null?void 0:H()},p));
_.ad(function(){if(F()){var q=0,w;if((w=J().animationParams)==null?0:w.shouldExpand){var I,Z3;q=((Z3=(I=J().animationParams)==null?void 0:I.expansionDelaySecs)!=null?Z3:0)*1E3}var vg,yX=((vg=J().animationParams)==null?0:vg.shouldExpand)?setTimeout(function(){Z(!0)},q):void 0,Pg,ov;
q=((Pg=J().animationParams)==null?0:Pg.visibilityDelaySecs)?((ov=J().animationParams)==null?NaN:ov.visibilityDelaySecs)*1E3:0;var NW=setTimeout(function(){b(!0)},q);
_.VY(function(){yX&&clearTimeout(yX);clearTimeout(NW)})}});
var t=function(q){_.Dm(q,Object.assign({},{form:{element:M.value}}))},D=_.Kb(function(){var q,w=(q=A())==null?void 0:q.onTapCommand;
w&&t(w)}),k=_.Kb(function(){var q,w;
if(q=(w=P())==null?void 0:w.onTapCommand)return t(q),!1}),E=_.G7({"vertical-align":"bottom",
"border-radius":function(){var q;return F()?((q=J().defaultContent)==null?0:q.isCircleImage)?"50%":"4px":"0px"},
width:function(){var q,w,I;return F()&&((q=J().defaultContent)==null?0:q.imageSize)?((I=(w=J().defaultContent)==null?void 0:w.imageSize)!=null?I:24)+"px":null},
height:function(){var q,w,I;return F()&&((q=J().defaultContent)==null?0:q.imageSize)?((I=(w=J().defaultContent)==null?void 0:w.imageSize)!=null?I:24)+"px":null}}),a={};
return _.m("yt-shorts-suggested-action-view-model",{class:p,el:M},_.m("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.m("button",{class:_.XB(function(){return F()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var q;
return(q=J().useFullRoundedBorder)!=null&&q?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!P()&&F()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":F()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var q;
return(q=J().disableFixedHeight)!=null&&q?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(a.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(S==null?void 0:S())===1},a.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return H==null?void 0:H()},a)),
"on:click":D},_.m(_.B3,{model:{color:4}}),_.m("div",{class:_.XB(function(){return F()?y().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.m(_.v,{cond:function(){var q;
return(q=A())==null?void 0:q.image},
then:function(q){return _.m(_.a4,{data:q,alt:"",className:function(){return F()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:E})}}),_.m(_.v,{cond:function(){var q,w;
return(q=A())==null?void 0:(w=q.icon)==null?void 0:w.iconType},
then:function(q){return _.m(_.bn,{icon:q,active:O,className:function(){return F()?X()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.m("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.m(_.v,{cond:function(){var q;
return(q=A())==null?void 0:q.primaryText},
then:function(q){var w={};return _.m("div",{class:_.XB("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(w.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(S==null?void 0:S())===1},w))},_.m(_.v3,{text:q}))}}),_.m(_.v,{cond:function(){var q;
return(q=A())==null?void 0:q.secondaryText},
then:function(q){return _.m("div",{class:function(){return y().secondaryText()}},_.m(_.v3,{text:q}))}}))),_.m(_.v,{cond:P,
then:function(q){return _.m("div",{class:_.XB(function(){return y().trailingSection()},function(){var w,I;
return(H==null?void 0:H())&&((I=(w=y()).trailingSectionExtractOverlay)==null?void 0:I.call(w))||""}),
"aria-label":function(){var w;return(w=q().a11yLabel)!=null?w:""},
"on:click":k,role:"button",tabindex:0},_.m(_.B3,{model:{color:4}}),_.m(_.bn,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"ch");var K4r=_.d(function(p){var J=p.data;var S=p.overlayDensity;var H=_.nE("yt-shorts-video-title-view-model");p=_.Kb(function(Z){if(_.yh(_.CG(Z),H.value,["A".toString()]))return!1;(Z=J().truncatedTextOnTapCommand)&&_.Dm(Z);return!1});
var M={},X={};return _.m("yt-shorts-video-title-view-model",{el:H,class:_.XB("ytShortsVideoTitleViewModelHost",(M.ytShortsVideoTitleViewModelHostClickable=function(){return!!J().truncatedTextOnTapCommand},M)),
"on:click":p},_.m("h2",{class:_.XB("ytShortsVideoTitleViewModelShortsVideoTitle",(X.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(S==null?void 0:S())===1},X.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.z("enable_shorts_declutter_ui")},X))},_.m(_.v3,{text:function(){return J().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(S==null?void 0:S())===1}})))},"dh");_.ZHf=_.d(function(p){var J=p.data;var S=p.overlayDensity;var H=p.extractOverlay;var M=function(){return(S==null?void 0:S())===1};
return _.m("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.m(_.AH,{data:function(){return J().metadataItems}},{badgeViewModel:function(X){X=X.data;
return _.m("div",{class:_.XB(function(){return M()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.m(_.Qy,{data:X}))},
playerDisclosureViewModel:function(X){X=X.data;return _.m("div",{class:_.XB(function(){return M()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.m(_.MaN,{data:X,
extractOverlay:H}))},
shortsSuggestedActionViewModel:function(X){X=X.data;return _.m("div",{class:_.XB(function(){return M()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.m(RpI,{data:X,
overlayDensity:S,extractOverlay:H}))},
reelChannelBarViewModel:function(X){X=X.data;var Z={};return _.m("div",{class:_.XB("ytReelMetapanelViewModelMetapanelItem",(Z.ytReelMetapanelViewModelExpansive=function(){return M()},Z))},_.m(XLI,{data:X,
overlayDensity:S}))},
reelMultiFormatLinkViewModel:function(X){X=X.data;var Z={};return _.m("div",{class:_.XB("ytReelMetapanelViewModelMetapanelItem",(Z.ytReelMetapanelViewModelExpansive=function(){return M()},Z))},_.m(iHr,{data:X,
overlayDensity:S}))},
shortsVideoTitleViewModel:function(X){X=X.data;var Z={};return _.m("div",{class:_.XB("ytReelMetapanelViewModelMetapanelItem",(Z.ytReelMetapanelViewModelExpansive=function(){return M()},Z))},_.m(K4r,{data:X,
overlayDensity:S}))},
reelSoundMetadataViewModel:function(X){X=X.data;var Z={};return _.m("div",{class:_.XB("ytReelMetapanelViewModelMetapanelItem",(Z.ytReelMetapanelViewModelExpansive=function(){return M()},Z))},_.m(_.ZVr,{data:X,
overlayDensity:S}))},
toggleButtonViewModel:function(X){X=X.data;var Z={};return _.m("div",{class:_.XB("ytReelMetapanelViewModelMetapanelItem",(Z.ytReelMetapanelViewModelExpansive=function(){return M()},Z))},_.m(_.LD,{data:X}))}}))},"eh");var nQN=_.d(function(p){var J=_.jh(p,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),S=J.size,H=J.onTap,M=J.disabled,X=J.tooltipText;return _.m("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.m(_.gF,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:S(),disabled:M(),tooltipText:X(),onTap:H}},
iconName:p.iconType}))},"fh"),GgU=_.d(function(p){function J(f){f.stopPropagation();
f.code==="ArrowUp"?(f.preventDefault(),i6X(n.value)):f.code==="ArrowDown"?(f.preventDefault(),RNW(n.value)):f.code==="KeyM"?H6L():(f.code==="KeyK"||f.code==="Space")&&Muv(b())}
var S=_.jh(p,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});p=S.previousButtonDisabled;var H=S.nextButtonDisabled,M=S.data,X=S.playabilityStatus,Z=S.previewThumbnail,n=_.nE("ytd-shorts-miniplayer-overlay"),b=_.fb(_.hgi),F;_.qz(function(){(F=_.VF(n.value))&&F.addEventListener("keydown",J)});
_.VY(function(){var f;(f=F)==null||f.removeEventListener("keydown",J)});
S=function(){var f,O;var A=_.e((f=M())==null?void 0:(O=f.reelPlayerOverlayRenderer)==null?void 0:O.buttonBar,M$E);if(A){var P;f=Object.assign({},A,{buttonViewModels:(P=A.buttonViewModels)==null?void 0:P.filter(XV3)})}else f=void 0;return f};
return _.m("ytd-shorts-miniplayer-overlay",{el:n,class:"ytdShortsMiniplayerOverlayHost"},_.m("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.G7({"background-image":function(){var f=Z();return f?'url("'+_.LI(f.thumbnails)+'")':""}})}),_.m("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.m("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.m(nQN,{iconType:function(){var f=b();
return f===2||f===-1||f===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Muv(b())},
tooltipText:function(){var f=b();return f===1||f===3?_.Kl("PLAYER_LABEL_PAUSE"):_.Kl("PLAYER_LABEL_PLAY")}}),_.m(_.MDe,{orientation:"horizontal_right"})),_.m("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.m(nQN,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:p,onTap:function(){i6X(n.value)},
tooltipText:_.Kl("PREVIOUS_VIDEO_LABEL")}),_.m(nQN,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:H,onTap:function(){RNW(n.value)},
tooltipText:_.Kl("NEXT_VIDEO_LABEL")}),_.z("web_shorts_pip_like_button")?_.m(_.v,{cond:S,then:function(f){return _.m("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.m(_.MPp,{data:f,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.m("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.m(_.v,{cond:function(){var f,O;
return _.e((f=M())==null?void 0:(O=f.reelPlayerOverlayRenderer)==null?void 0:O.metapanel,X78)},
then:function(f){return _.m("div",{class:_.XB("ytdShortsMiniplayerOverlayInteractive")},_.m(_.ZHf,{data:f}))}})),_.m("div",{class:_.XB("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var f;return!((f=M())==null||!f.adsOverlay)||X()&&!Tqg(X())}},_.m("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.m(_.HHf,null)))),_.m(_.v,{cond:function(){var f=M(),O,A;
f=_.e(f==null?void 0:(O=f.adsOverlay)==null?void 0:(A=O.fulfillmentContent)==null?void 0:A.fulfilledLayout,uU4);return _.e(f==null?void 0:f.renderingContent,YEv)},
then:function(f){return _.m("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.m(Zvn,{data:f}))}}))},"hh");var Kas=_.d(function(){var p=_.K(_.eQ(new _.yF(NaN,NaN),void 0,"hq9Bjf")),J=p.next().value,S=p.next().value;p=_.K(_.eQ(!1,void 0,"Mu3aZc"));var H=p.next().value,M=p.next().value,X=_.K(_.eQ(!1,void 0,"LGtoFb"));p=X.next().value;var Z=X.next().value,n=_.vO().resolve(_.DF).miniplayerPropSignalMap[0],b=n.data,F=n.shortsData,f=n.nextButtonDisabled,O=n.shortsPreviewThumbnail,A=n.previousButtonDisabled,P=n.externalPlaylistData;X=n.toastData;var W=n.playabilityStatus,y=n.isDisabled,t=n.playerVe,D=n.closeVe;
n=_.fb(_.Ss);_.Zy("yt-pip-window-resized",function(q){S(q)});
_.Zy("yt-activate-pip-miniplayer",function(){return _.G(function(q){Z(!0);_.UK(q)})});
var k=function(){var q;return!((q=P())==null||!q.contents)&&H()},E=function(){var q=J(),w=!!b(),I=k();
q=q.clone();w&&(q.height-=76);I&&(q.height-=285);return q},a=function(){M(!H())};
_.lf(function(){var q=t(),w=_.C1(11),I=_.Wf(11);w&&I&&q&&(_.kO(w,I,q),I=D())&&(_.Nq(w,q,[I]),_.dI(w,[I]))},"fHkmfb");
return _.m("ytd-pip-container",{class:"ytdPipContainerHost"},_.m(_.v,{cond:p,then:function(){return _.m(_.Aql,{isDisabled:y,playabilityStatus:W,size:E,isPictureInPicture:!0})}}),_.m(_.v,{cond:b,
then:function(){return _.m(_.fkN,{data:b,expanded:H,onExpandClick:a,playlistData:P})}}),_.m(_.v,{cond:k,
then:function(){return _.m("div",{class:"ytdPipContainerPlaylistPanel"},_.m(_.UGw,{data:P,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.m(_.v,{cond:n,
then:function(){return _.m(GgU,{data:F,nextButtonDisabled:f,previousButtonDisabled:A,playabilityStatus:W,previewThumbnail:O})}}),_.m("div",{class:"ytdPipContainerToast"},_.m(_.P4U,{toastData:X})))},"jh");var Ex=function(p,J,S){var H=this;this.pipController=p;this.JSC$19176_clientRoot=J;this.JSC$19176_pageRequestService=S;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=Pti();this.watchPipEnabled=_.z("web_watch_pip");this.shortsPipEnabled=_.z("web_shorts_pip");this.JSC$19176_watchWhileEnabled=_.z("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;_.j7(_.rl(),BFL,function(M){H.isSingleOptionSurveyActive=M});
this.JSC$19176_onPlayerPlayVideo=this.JSC$19176_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);_.RZ(_.XK.getInstance(),this.miniplayerServiceActionMap,this.JSC$19176_clientRoot);p.pictureInPictureSupported()&&_.YQ("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Buv,$8$,OHN,oQy,epp,cRo;
Ex.prototype.handleMediaSessionPipActivation=function(){var p=this,J;return _.G(function(S){_.YE().mediaSessionPipActivation=!0;J=_.vO().resolve(_.xz);return J.isOnWatch()&&p.watchPipEnabled?(_.YE().watchPipActivation=!0,_.bHr(p,J.data),S.jumpTo(0)):J.isOnShorts()&&p.shortsPipEnabled?(_.YE().shortsPipActivation=!0,_.m8P(p),S.jumpTo(0)):p.isMiniplayerActive()&&p.watchPipEnabled&&!p.watchWhileMode?S.yield(F4f(p),0):S.jumpTo(0)})};
var F4f=function(p){var J,S,H,M;return _.G(function(X){if(X.nextAddress==1)return J=!p.miniplayerToPipMode,S=p.playerElement,H=p.miniplayerData,M=p.watchResponse,X.yield(p.deactivate(),2);if(X.nextAddress!=3)return J?(_.YE().mediaSessionPipActivation=!0,_.YE().watchPipActivation=!0):_.YE().miniplayerButtonActivation=!0,X.yield(p.activate(S,H,M),3);p.miniplayerToPipMode=J;_.UK(X)})};
Ex.prototype.onDownloadedVideoDeleted=function(p){var J,S=_.e((J=this.miniplayerData)==null?void 0:J.watchEndpoint,_.lj),H,M;S&&((H=this.watchResponse)==null?void 0:(M=H.playerResponse)==null?void 0:M.offlineState)!==void 0&&(J=S.videoId)&&p&&J===p&&this.close()};
Ex.prototype.onShowMiniplayerCommand=function(p){var J=this,S,H,M,X,Z,n,b,F,f,O,A;return _.G(function(P){switch(P.nextAddress){case 1:return S=_.e(p,aa8),M=(H=S)==null?void 0:H.miniplayerCommand,X=_.e(M,_.lj),M&&X&&!J.active?P.yield(_.JW.getInstance(),2):P.return();case 2:return Z=P.yieldResult,P.yield((n=Z)==null?void 0:n.get("yt-miniplayer-shown-video-id"),3);case 3:b=P.yieldResult;F=X.videoId;if(!F||b===F)return P.return();f=_.vO().resolve(_.xz);if(f.isOnWatch())return _.xQ(Error("Tj")),P.return();
O={channelItem:{externalId:btoa(F)}};J.readyToResumeVe=_.KG(121253,void 0,void 0,O);_.YE().showMiniplayerCommandActivation=!0;return P.yield(_.I6E(J,M,!0),4);case 4:return J.active&&(_.Yk(J,{readyToResumeVe:J.readyToResumeVe,isReadyToResume:!0}),J.isReadyToResume=!0),P.yield((A=Z)==null?void 0:A.set("yt-miniplayer-shown-video-id",X.videoId),5);case 5:J.readyToResumeVe=void 0,_.UK(P)}})};
Ex.prototype.init=function(p){this.miniplayerEl?_.xQ(new _.TG("MiniplayerService already initialized.")):this.miniplayerEl=p};
Ex.prototype.isInitialized=function(){var p=!!this.miniplayerEl;p||_.xQ(new _.TG("MiniplayerService used before initialized."));return p};
_.bHr=function(p,J){if(p.isInitialized()){var S=_.o7X(J.response,J.playerResponse),H=_.vO().resolve(_.xz).getPlayerFromWatch();_.YE().currentEndpoint=S.watchEndpoint||null;p.activate(H,S,J)}};
_.m8P=function(p){if(p.isInitialized()){var J=_.vO().resolve(_.xz).getPlayerFromShorts();p.activate(J)}};
Buv=function(p,J){var S;(S=!p.isInitialized())||(S=_.vO().resolve(_.xz).isOnWatch()&&p.watchPipMode,S=!(p.isMiniplayerActive()&&(_.YE().userActivation||_.YE().lockupActivation||S)));if(S)return!1;vQw(p,J)?_.V2(p):cRo(p,J);return p.watchPipMode?!_.vO().resolve(_.xz).isOnWatch():!0};
Ex.prototype.isMiniplayerActive=function(){return this.active};
var vQw=function(p,J){var S;J=(S=_.e(J,_.lj))==null?void 0:S.videoId;var H,M;p=(M=_.e((H=p.miniplayerData)==null?void 0:H.watchEndpoint,_.lj))==null?void 0:M.videoId;return J!=null&&J===p};
Ex.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.cf(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.IV(this.miniplayerEl,"yt-navigate-home-action"))};
_.I6E=function(p,J,S,H){S=S===void 0?!1:S;var M,X,Z;return _.G(function(n){switch(n.nextAddress){case 1:if(p.active){n.jumpTo(2);break}M=_.vO().resolve(_.xz);if(Z=(X=p.playerElement)!=null?X:M.getPlayerFromWatch()){n.jumpTo(3);break}return n.yield(_.vO().resolve(_.H$),4);case 4:Z=M.getPlayerFromWatch();case 3:if(!Z){_.xQ(Error("Vj"));n.jumpTo(2);break}return n.yield(p.activate(Z,H),2);case 2:return p.active?n.yield(cRo(p,J,S),0):n.return()}})};
Ex.prototype.activate=function(p,J,S){var H=this,M,X,Z,n,b,F,f,O,A;return _.G(function(P){switch(P.nextAddress){case 1:if(!H.isInitialized())return P.return();if(!p)return _.xQ(Error("Vj")),P.return();if(_.Gt4()||H.isMiniplayerActive())var W=!0;else W=_.YE().watchPipActivation||_.YE().watchWhileActivation,_.vO().resolve(_.xz).isOnWatch()&&!W?(_.xQ(new _.TG("miniplayer activated on watch page")),W=!0):W=_.YE().watchWhileActivation?H.userDeactivatedWatchWhile||!!document.pictureInPictureElement||Afi():
!1;if(W)return nSm(),P.return();M=_.YE().mediaSessionPipActivation;X=_.YE().shortsPipActivation;Z=_.YE().watchPipActivation;b=(n=_.YE().watchWhileActivation)||Z;F=Z||X;if(!H.pictureInPictureEnabled()||!F){P.jumpTo(2);break}return P.yield(ftp(H,M),3);case 3:if(!P.yieldResult)return _.xQ(Error("Uj")),nSm(),P.return();case 2:return H.setActive(!0),H.watchResponse=S,H.playerElement=p,H.updateMiniplayerData(J),P.yield(OHN(H,p),4);case 4:if(!H.active)return _.xQ(new _.TG("miniplayer deactivated during activation")),
H.removePlayerListeners(),P.return();W=_.vO().resolve(_.FF);W.addEventListener("yt-navigate",_.n3(H,H.onPlaylistNavigate));W.addEventListener("yt-playlist-data-updated",_.n3(H,H.JSC$19176_onPlaylistDataUpdated));H.JSC$19176_onPlaylistDataUpdated();nSm();H.JSC$19176_watchWhileEnabled&&_.AVf(H,n);H.pictureInPictureEnabled()&&H.shortsPipEnabled&&(H.shortsPipMode=X,_.rl().dispatch(LvM(H.shortsPipMode)));H.pictureInPictureEnabled()&&H.watchPipEnabled&&(H.watchPipMode=Z,_.zot(H.handleMediaSessionPipActivation));
H.player&&(f=H.player.getPlayerState(),O=f===1,_.rl().dispatch(ZSo(f)),_.L1(H.miniplayerEl,"yt-miniplayer-play-state-changed",[O]),_.YE().isVideoPlaying=O);_.L1(H.miniplayerEl,"yt-miniplayer-endpoint-changed");PSy(H);_.zpr(H);if(H.shortsPipMode||H.watchPipMode)P=P.yield(_.IV(H.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{W=P.yield;var y=_.IV(H.miniplayerEl,"yt-activate-miniplayer",[b])[0];P=W.call(P,y,6)}return P;case 6:if(H.watchResponse){W=H.getScreenLayer();y=_.C1(0);var t=GQW(0);y&&t&&
(_.Bf(y,t,W),W===0&&ZoX(void 0,0))}$8$(H);oQy(H,!0);(A=H.getPlayerElement())==null||A.focusOnPlayer();_.UK(P)}})};
Ex.prototype.updateMiniplayerData=function(p){this.miniplayerData=p;_.Yk(this,{data:p})};
_.zpr=function(p){var J,S,H=((J=p.miniplayerData)==null?void 0:(S=J.miniplayerRenderer)==null?void 0:S.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";J=p.watchWhileMode||p.watchPipMode?H&&!_.vO().resolve(_.xz).isOnWatch():H;_.Yk(p,{isDisabled:J});var M,X;S=_.e((M=p.miniplayerData)==null?void 0:(X=M.miniplayerRenderer)==null?void 0:X.minimizedEndpoint,_.Yi);J&&S&&_.vO().resolve(_.Sd).openSheet({openPopupActionCommand:{openPopupAction:S}},p.miniplayerEl)};
$8$=function(p){if(p.watchResponse&&!epp(p)){var J,S=(J=p.watchResponse.playerResponse)==null?void 0:J.trackingParams;S&&(_.Yk(p,{expandVe:_.KG(35989),closeVe:_.KG(34699),readyToResumeCloseVe:_.KG(131070),repositionVe:_.KG(226204),resizeVe:_.KG(226205)}),_.Yk(p,{playerVe:_.Az(S)}))}};
OHN=function(p,J){return _.G(function(S){if(S.nextAddress==1)return J.preparePlayer(),S.yield(J.getPlayerPromise(),2);p.player=S.yieldResult;p.player&&(p.player.addEventListener("onPlayVideo",p.JSC$19176_onPlayerPlayVideo),p.player.addEventListener("onCloseMiniplayer",p.onPlayerCloseMiniplayer),p.player.addEventListener("onExpandMiniplayer",p.onPlayerExpandMiniplayer),p.player.addEventListener("onStateChange",p.onPlayerStateChange));_.UK(S)})};
_.R=Ex.prototype;_.R.JSC$19176_onPlayerPlayVideo=function(p){var J=p.sessionData&&"autonav"in p.sessionData,S;p.sessionData&&p.sessionData.itct&&(S=p.sessionData.itct);var H=p.watchEndpoint;J=H&&J?_.dt3(H,S):_.c9(p.videoId,p.listId||void 0,S);p.sessionData&&_.EB(_.e(J.commandMetadata,_.i7).url,p.sessionData);cRo(this,J)};
_.R.onPlayerExpandMiniplayer=function(){_.V2(this)};
_.R.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.R.onPlayerStateChange=function(){if(this.player){var p=this.player.getPlayerState(),J=p===1;_.rl().dispatch(ZSo(p));_.rl().dispatch(_.bS8(p));_.L1(this.miniplayerEl,"yt-miniplayer-play-state-changed",[J]);_.YE().isVideoPlaying=J;if(p===0){J=!_.yK.getInstance().isAutoplaySetExplicitly();var S,H,M,X,Z,n,b=(S=this.watchResponse.response)==null?void 0:(H=S.contents)==null?void 0:(M=H.twoColumnWatchNextResults)==null?void 0:(X=M.autoplay)==null?void 0:(Z=X.autoplay)==null?void 0:(n=Z.autoplayExplicitChoiceDialogRenderer)==
null?void 0:n.confirmDialogRenderer;J&&b&&this.player.setAutonavState(1)}p===0&&this.watchWhileMode&&this.deactivate()}};
_.R.onPlaylistNavigate=function(p,J){var S=this,H,M,X,Z,n,b,F;return _.G(function(f){if(f.nextAddress==1){if(!_.e(J.endpoint,_.lj))return f.return();_.YE().currentEndpoint=J.endpoint;_.L1(S.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.vO().resolve(_.xz).isOnWatch()&&(S.watchWhileMode||S.watchPipMode))return f.return();p.stopPropagation();(X=(M=_.e((H=J.endpoint)==null?void 0:H.commandMetadata,_.i7))==null?void 0:M.url)&&J.tempData&&!_.T6.isEmpty(J.tempData)&&_.EB(X,J.tempData);Z={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};n=new bWE(function(){return S.getPlayerElement()},Z,{layer:S.getScreenLayer()});
b=function(O){n.processChunk({endpoint:J.endpoint,data:O})};
W4I(S);S.miniplayerFetchRequest=QJN(S,J.endpoint,b);_.oI(f,2);return f.yield(S.miniplayerFetchRequest,4)}if(f.nextAddress!=2)return F=f.yieldResult,CSe(S,F),_.X$(f,0);_.BZ(f);_.UK(f)})};
_.R.JSC$19176_onPlaylistDataUpdated=function(){var p=_.vO().resolve(_.FF).getPlaylistData();this.hasPlaylistData=!!p;_.Yk(this,{externalPlaylistData:p||{}})};
_.R.close=function(p){if(this.isInitialized())if(p){if(!((this.watchWhileMode||this.watchPipMode)&&_.vO().resolve(_.xz).isOnWatch()||this.shortsPipMode)){var J;(J=this.getPlayerElement())==null||J.stop()}this.deactivate()}else _.PR().closeMiniplayer(this.miniplayerEl)};
_.R.deactivate=function(p){var J=this,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1){if(!J.isInitialized()||!J.active)return Z.return();J.setActive(!1);W4I(J);(S=!!p&&vQw(J,p))&&J.isSingleOptionSurveyActive&&_.IV(J.miniplayerEl,"yt-show-watch-page-survey",[J.isSingleOptionSurveyActive]);return Z.yield(yVP(J),2)}if(Z.nextAddress!=3){oQy(J,!1);J.isReadyToResume=!1;J.watchResponse=void 0;J.updateMiniplayerData(void 0);J.shortsPipMode&&(J.shortsPipMode=!1,_.rl().dispatch(LvM(J.shortsPipMode)),u4f(J.pipController),
(H=J.player)==null||H.setInternalSize(NaN,NaN));J.watchPipMode&&(J.watchPipMode=!1,u4f(J.pipController));(M=J.watchWhileMode)&&_.AVf(J,!1);J.removePlayerListeners();var n=_.vO().resolve(_.FF);n.removeEventListener("yt-navigate",_.n3(J,J.onPlaylistNavigate));n.removeEventListener("yt-playlist-data-updated",_.n3(J,J.JSC$19176_onPlaylistDataUpdated));_.YE().currentEndpoint=null;_.L1(J.miniplayerEl,"yt-miniplayer-endpoint-changed");J.playerElement=null;nSm();if(J.shortsPipMode||J.watchPipMode)Z=Z.jumpTo(3);
else{n=Z.yield;var b=_.IV(J.miniplayerEl,"yt-deactivate-miniplayer",[S,M])[0];Z=n.call(Z,b,3)}return Z}(X=J.player)==null||X.setInternalSize(NaN,NaN);J.player=null;_.UK(Z)})};
var yVP=function(p){var J;return _.G(function(S){J=_.vO().resolve(_.xz);return p.shortsPipMode?S.yield(J.movePlayerToShorts(p.playerElement),0):S.yield(J.movePlayerToWatch(p.playerElement),0)})};
Ex.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19176_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Ex.prototype.setActive=function(p){this.active=p;this.isSingleOptionSurveyActive?_.IV(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.IV(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.rl().dispatch(_.Jk({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.AVf=function(p,J){p.watchWhileMode=J;_.Yk(p,{watchWhile:J})};
oQy=function(p,J){if(!epp(p))if(p.shortsPipMode||p.watchPipMode){var S;(S=p.player)==null||S.setDocumentPictureInPicture(J)}else{var H;(H=p.player)==null||H.setMinimized(J)}};
epp=function(p){return p.watchWhileMode&&_.z("kevlar_watch_while_counterfactual")};
_.V2=function(p){var J;return _.G(function(S){switch(S.nextAddress){case 1:if(!p.isInitialized())return S.return();_.oI(S,2);return S.yield(p.miniplayerFetchRequest,4);case 4:_.X$(S,3);break;case 2:_.BZ(S);case 3:p.watchResponse&&p.miniplayerData&&p.miniplayerData.watchEndpoint?(J={url:p.watchResponse.url,endpoint:p.miniplayerData.watchEndpoint,data:p.watchResponse,miniplayer:!0},_.cf(p.miniplayerEl,"yt-navigate-cache",J)):p.miniplayerData&&p.miniplayerData.watchEndpoint&&_.cf(p.miniplayerEl,"yt-navigate",
{endpoint:p.miniplayerData.watchEndpoint}),_.UK(S)}})};
cRo=function(p,J,S){var H,M,X,Z;return _.G(function(n){if(n.nextAddress==1){if(vQw(p,J))return n.return();_.YE().currentEndpoint=J;_.L1(p.miniplayerEl,"yt-miniplayer-endpoint-changed");_.L1(p.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.YE().isVideoPlaying=!1;H={clientParams:{miniplayer:!0,autoSaveToQueue:!S}};M=new bWE(function(){return p.getPlayerElement()},H,{layer:p.getScreenLayer(),
parentLayer:0},void 0,p.readyToResumeVe);X=function(b){var F,f,O=Object.assign({},(F=b.playerResponse)==null?void 0:(f=F.playerConfig)==null?void 0:f.playbackStartConfig,{startPaused:!0}),A;S&&((A=b.playerResponse)==null?0:A.playerConfig)&&(b.playerResponse.playerConfig.playbackStartConfig=O);M.processChunk({endpoint:J,data:b})};
W4I(p);p.miniplayerFetchRequest=QJN(p,J,X);_.oI(n,2);return n.yield(p.miniplayerFetchRequest,4)}if(n.nextAddress!=2)return Z=n.yieldResult,CSe(p,Z),_.X$(n,0);_.BZ(n);_.UK(n)})};
Ex.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var W4I=function(p){p.miniplayerFetchRequest&&(p.miniplayerFetchRequest.cancel&&p.miniplayerFetchRequest.cancel("Active request obsolete"),p.miniplayerFetchRequest=null)},QJN=function(p,J,S){var H,M=(H=_.e(J.commandMetadata,_.i7))==null?void 0:H.url,X;
H=!M||_.z("disable_miniplayer_tempdata")?{}:(X=cQX(M))!=null?X:{};return ub(p.JSC$19176_pageRequestService,J,H,window.location.href,"watch",function(Z,n){S(n)},function(Z){return Z!==p.miniplayerFetchRequest})},CSe=function(p,J){var S;
_.G(function(H){if(!J)return H.return();p.watchResponse=J;$8$(p);PSy(p);S=_.o7X(J.response,J.playerResponse);if(p.isMiniplayerActive()){J.response&&(p.playerElement.watchNextData=J.response);var M=_.T6.getValueByKeys.apply(_.T6,[J].concat(_.dW(oPv)));_.T6.getValueByKeys.apply(_.T6,[J].concat(_.dW(y2o)))&&M&&_.vO().resolve(_.FF).setAutoplayRenderer(M);if(M)if(_.z("kevlar_is_pupi_enabled")){var X,Z,n,b,F,f=((X=J.response)==null?0:(Z=X.playerOverlays)==null?0:(n=Z.playerOverlayRenderer)==null?0:(b=n.autonavToggle)==
null?0:(F=b.autoplaySwitchButtonRenderer)==null?0:F.enabled)?2:1;_.yK.getInstance().setState(f,!1,!1)}else X=niL()?2:1,(f=p.player)==null||f.setAutonavState(X);p.updateMiniplayerData(S);_.zpr(p)}_.UK(H)})},PSy=function(p){var J,S,H=(J=p.watchResponse)==null?void 0:(S=J.playerResponse)==null?void 0:S.playabilityStatus,M;
J=H==null?void 0:(M=H.miniplayer)==null?void 0:M.miniplayerRenderer;(J==null?void 0:J.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&J.minimizedEndpoint&&_.pl(p.miniplayerEl,[J.minimizedEndpoint]);_.Yk(p,{playabilityStatus:H})};
Ex.prototype.openToast=function(p,J){_.Yk(this,{toastData:{data:p,label:J}})};
_.Yk=function(p,J){(0,p.miniplayerPropSignalMap[1])(J)};
Ex.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var p;return this.playerElement?this.playerElement:(p=_.Jn(this.miniplayerEl).querySelector("#player-container"))==null?void 0:p.firstElementChild};
Ex.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var ftp=function(p,J){J=J===void 0?!1:J;var S,H,M,X,Z,n;return _.G(function(b){if(b.nextAddress==1){if(!p.pictureInPictureSupported()||!n1g()&&!J)return b.return(!1);S=Bfy(p);H=S.width;M=S.height;return b.yield(p.pipController.openWindow({width:H,height:M}),2)}X=b.yieldResult;Z=p.pipController.getWindow();if(!Z||!X)return b.return(!1);Z.document.body.style.overflow="hidden";n=Z6X(Z);lD$(p.pipController,function(){U8p(p);n()});
return b.return(!0)})},Bfy=function(p){var J=_.YE().shortsPipActivation,S,H;
p=J?.5625:(H=(S=p.player)==null?void 0:S.getVideoAspectRatio())!=null?H:16/9;S=Math.min(window.innerWidth,window.innerHeight)/2;J=J?0:76;return p>1?new _.yF(S,J+S/p):new _.yF(S*p,J+S)},U8p=function(p){var J;
_.G(function(S){J=_.vO().resolve(_.xz);return J.isOnWatch()&&p.watchPipMode||J.isOnShorts()&&p.shortsPipMode?S.yield(p.deactivate(),0):p.miniplayerToPipMode?S.yield(F4f(p),0):p.watchPipMode?S.yield(_.V2(p),0):S.jumpTo(0)})};
Ex.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.vh.Object.defineProperties(Ex.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Ex[fQ]=[VQp,eLn,_.o$];var sJP="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(" "),
gQN="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),tDU="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
hpI="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var D8y=function(p,J,S){_.gp.call(this);this.store=p;this.panelController=J;this.pageContentExtractor=S;this.isInitialized=!1};
_.Q(D8y,_.gp);
D8y.prototype.init=function(p){var J=this;this.isInitialized||(this.isInitialized=!0,this.environment=p!=null?p:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.uT.currentPageSubTypeSelector(this.store.getState()),p=_.j7(this.store,_.uT.currentPageSubTypeSelector,function(S){a:if(_.kgf(J))switch(S){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var H=!0;break a;default:H=!1}else H=!1;H&&J.panelController.hidePanel({identifier:"PAai_companion"});
J.pageSubtype!==S&&(J.pageSubtype=S)}),this.addOnDisposeCallback(p))};
_.HAP=function(p,J){if(_.kgf(p))switch(J){case "watch":var S,H;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(S=_.nG())==null?void 0:(H=S.getVideoData())==null?void 0:H.video_id};case "search":var M,X,Z;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(X=(M=p.pageContentExtractor)==null?void 0:BrP(M))!=null?X:[],entityId:(Z=(new URLSearchParams(window.location.search)).get("search_query"))!=null?Z:void 0};case "companion-canvas":var n,b;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(b=(n=
p.pageContentExtractor)==null?void 0:BrP(n))!=null?b:[]};default:var F,f;p={videoIds:(f=(F=p.pageContentExtractor)==null?void 0:BrP(F))!=null?f:[]};return _.z("enable_ai_companion_default_page_context")?p:void 0}};
_.kgf=function(p){return p.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
D8y[fQ]=[_.XN,_.JY,_.F9(UsI)];var Nfr=_.d(function(p){return _.m("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.m(_.$h,{text:function(){return p.data().text||""},
wrapCodeBlocks:p.shouldWrapCodeBlock}))},"lh");_.Tfw=_.d(function(p){return _.m("yt-ai-companion-attachment-view-model",{el:_.Y2(_.sl(function(){return p.data().rendererContext})),
class:_.XB("ytAiCompanionAttachmentViewModelHost",p.className)},_.m("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.m(_.v,{cond:function(){return p.data().title},
then:function(J){return _.m("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return J().content}},_.m(_.v3,{text:J}))}}),_.m(_.v,{cond:function(){return _.dT(p.data().trailingTitleIcon)},
then:function(J){return _.m("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.m(_.a4,{data:J,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.m(_.v,{cond:function(){return p.data().description},
then:function(J){return _.m("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.m(_.v3,{text:J}))}}),_.m(_.v,{cond:function(){return p.data().bottomItem},
then:function(J){return _.m("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.m(_.AH,{data:J},{tableViewModel:u2E}))}}))},"mh");_.d8r=_.d(function(p){return _.m("yt-channel-attribution-view-model",{class:_.XB("ytChannelAttributionViewModelHost",p.className)},_.m("div",{class:"ytChannelAttributionViewModelUpper"},_.m(_.AH,{data:function(){return p.data().avatar}},{decoratedAvatarViewModel:_.RH}),_.m("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.m(_.v3,{text:function(){return p.data().title}}))),_.m("div",{class:"ytChannelAttributionViewModelBottom"},_.m(_.v3,{text:function(){return p.data().subtitle}})))},"nh");var ubr=_.d(function(p){var J=_.K(_.eQ(!1,void 0,"MFRKRb")),S=J.next().value,H=J.next().value,M=function(){return p.data().activeRenderer},X=function(){return p.data().inactiveRenderer};
return _.m("yt-channel-disclosure-view-model",{"on:mouseleave":_.Kb(function(){H(!1)}),
"on:mouseover":_.Kb(function(){H(!0)}),
class:_.XB("ytChannelDisclosureViewModelHost",p.className)},_.m(_.v,{cond:function(){return S()},
then:function(){return _.m(_.AH,{data:M},{channelAttributionViewModel:_.d8r})},
else:function(){return _.m(_.AH,{data:X},{decoratedAvatarViewModel:_.RH})}}))},"oh");var ltf=null;var VDU={},qIN=(VDU.initialized={priority:10,callback:function(p){var J=_.vO();J.addProvider({provide:U14,useClass:qgN});J.addProvider({provide:_.Vnj,useFactory:function(){return new s6U}});
J.addProvider({provide:$g,useValue:_.jn("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});J.addProvider({provide:bAw,useValue:5184E6});J.addProvider({provide:N2I,useValue:_.Qb()});J.addProvider({provide:ZUM,useClass:eyv});J.addProvider({provide:PC,useClass:PC});J.addProvider({provide:_.H$,useFactory:function(){return pIU.promise}});
J.addProvider({provide:_.SPM,useFactory:function(){return _.J2p.promise}});
J.addProvider({provide:hik,useValue:function(){var b;return((b=_.IY())==null?void 0:b.getPlayer())||null}});
var S={};J.addProvider((S.provide=_.ZE,S.useFactory=function(b,F){return function(){return Mz9(b,F)}},S[fQ]=[$g,
bAw],S));S={};J.addProvider((S.provide=_.T0,S.useClass=CWr,S[fQ]=[$g,bAw],S));S={};J.addProvider((S.provide=_.Ckw,S.useClass=s7M,S[fQ]=[_.T0],S));J.addProvider({provide:bx,useFactory:_.rl});J.addProvider({provide:Hu,useFactory:_.rl});J.addProvider({provide:AZp,useFactory:_.rl});J.addProvider({provide:SVl,useFactory:_.rl});J.addProvider({provide:_.XN,useFactory:_.rl});J.addProvider({provide:ao,useValue:_.n$});J.addProvider({provide:NYy,useClass:jRg});J.addProvider({provide:t0I,useClass:gFl});J.addProvider({provide:wA,
useClass:wA});J.addProvider({provide:Y$,useClass:Y$});J.addProvider({provide:VO,useClass:VO});J.addProvider({provide:rj,useClass:rj});J.addProvider({provide:S1,useClass:S1});J.addProvider({provide:Th,useClass:Th});J.addProvider({provide:oj,useClass:oj});J.addProvider({provide:_.Ef,useValue:M9f});S={};J.addProvider((S.provide=cyp,S.useFactory=function(b){return b.watchEndpointMap||{}},S[fQ]=[_.Ef],S));
S={};J.addProvider((S.provide=IZf,S.useFactory=function(b){return b.reelWatchEndpointMap||{}},S[fQ]=[_.Ef],S));
J.addProvider({provide:_.c3,useFactory:_.bC});J.addProvider({provide:RN,useFactory:_.Gv});S={};J.addProvider((S.provide=KJw,S.useFactory=function(b){return function(F){var f={automatedLogEventSource:5};f=f===void 0?{}:f;var O,A,P=(A=_.e((O=F.endpoint)==null?void 0:O.commandMetadata,_.i7))==null?void 0:A.rootVe;if(P){var W,y;if(O=F.previousCsn||((y=_.e((W=F.endpoint)==null?void 0:W.commandMetadata,erq))==null?void 0:y.parentCsn)){var t=t===void 0?{}:t;if(O!==_.C1(t.layer)||P!==GQW(t.layer))f$k(O,t.cttAuthInfo,
t.layer||0),ZoX(O,t.layer||0),W=t.layer||0,_.rY(n9i(W===void 0?0:W),P);f.parentCsn=O}F.endpoint&&O?j3m(b,F.endpoint,f):_.TZ(b,P,void 0,f);var D;((D=F.response)==null?0:D.trackingParams)&&b.graftServerVe(F.response.trackingParams);var k;((k=F.playerResponse)==null?0:k.trackingParams)&&b.graftServerVe(F.playerResponse.trackingParams);var E;((E=F.reelWatchSequenceResponse)==null?0:E.trackingParams)&&b.graftServerVe(F.reelWatchSequenceResponse.trackingParams)}}},S[fQ]=[_.c3],S));
S={};J.addProvider((S.provide=zWl,S.useClass=Pfy,S[fQ]=[ao,_.XN],S));S={};J.addProvider((S.provide=zS,S.useClass=zS,S[fQ]=[_.H$,_.XN],S));S={};J.addProvider((S.provide=fZ,S.useClass=fZ,S[fQ]=[Hu,_.Ov],S));J.addProvider({provide:_.s2N,useClass:aDI});S={};J.addProvider((S.provide=_.JY,S.useClass=hWf,S[fQ]=[_.s2N,_.F9(_.M_)],S));J.addProvider({provide:_.dj,useClass:hmI});S={};J.addProvider((S.provide=uU,S.useClass=uU,S[fQ]=[_.dj,_.H$,_.Ac,_.Ov],S));J.addProvider({provide:_.Sd,useClass:e1});J.addProvider({provide:_.B2e,
useClass:WTP});J.addProvider({provide:_.Hw,useClass:$k});_.z("enable_ai_companion")&&(J.addProvider({provide:_.M_,useClass:NrP}),J.addProvider({provide:_.$28,useClass:Vio}),J.addProvider({provide:UsI,useClass:Cfl}),J.addProvider({provide:RU,useClass:RU}),J.addProvider({provide:ix,useClass:ix}),J.addProvider({provide:e7o,useValue:ubr}),J.addProvider({provide:_.WP8,useValue:_.Tfw}),J.addProvider({provide:QiU,useValue:Nfr}));_.z("enable_ai_chat_controller")&&J.addProvider({provide:_.Xo,useClass:D8y});
S={};J.addProvider((S.provide=_.HU,S.useClass=qGI,S[fQ]=[_.HU],S));J.addProvider({provide:_.uE,useClass:QII});J.addProvider({provide:OF,useClass:OF});J.addProvider({provide:aU,useClass:aU});J.addProvider({provide:ee,useClass:ee});S={};J.addProvider((S.provide=Jp,S.useClass=Jp,S[fQ]=[_.Ov,_.Ac],S));J.addProvider({provide:DM,useClass:oF});S={};J.addProvider((S.provide=TB,S.useClass=TB,S[fQ]=[_.Sd,DM],S));S={};J.addProvider((S.provide=gJ,S.useClass=gJ,S[fQ]=[_.Sd],S));S={};J.addProvider((S.provide=mw,
S.useClass=mw,S[fQ]=[bx,GB,_.Ov],S));J.addProvider({provide:GB,useClass:Xsj});_.z("web_enable_feedback_endpoint_resolver_batch_2")&&(S={},J.addProvider((S.provide=vQ,S.useClass=vQ,S[fQ]=[bx],S)),S={},J.addProvider((S.provide=Fo,S.useClass=Fo,S[fQ]=[GB],S)));S={};J.addProvider((S.provide=kg,S.useClass=kg,S[fQ]=[_.Hw,DM],S));S={};J.addProvider((S.provide=UF,S.useClass=UF,S[fQ]=[_.Hw],S));S={};J.addProvider((S.provide=Nu,S.useClass=Nu,S[fQ]=[_.Ac,_.JY],S));S={};J.addProvider((S.provide=hp,S.useClass=
hp,S[fQ]=[_.Ac,_.c3],S));J.addProvider({provide:FW,useClass:FW});S={};J.addProvider((S.provide=iU,S.useClass=iU,S[fQ]=[bx],S));J.addProvider({provide:BU,useClass:BU});J.addProvider({provide:y_,useClass:y_});S={};J.addProvider((S.provide=sf,S.useClass=sf,S[fQ]=[bx],S));S={};J.addProvider((S.provide=gj,S.useClass=gj,S[fQ]=[_.Ac,bx],S));S={};J.addProvider((S.provide=tK,S.useClass=tK,S[fQ]=[bx],S));S={};J.addProvider((S.provide=hK,S.useClass=hK,S[fQ]=[bx],S));S={};J.addProvider((S.provide=sF,S.useClass=
sF,S[fQ]=[_.JY],S));S={};J.addProvider((S.provide=PU,S.useClass=PU,S[fQ]=[_.c3],S));S={};J.addProvider((S.provide=Q_,S.useClass=Q_,S[fQ]=[Gz],S));S={};J.addProvider((S.provide=C9,S.useClass=C9,S[fQ]=[Gz],S));J.addProvider({provide:oN,useClass:oN});J.addProvider({provide:eW,useClass:eW});J.addProvider({provide:AK,useClass:AK});S={};J.addProvider((S.provide=dJ,S.useClass=dJ,S[fQ]=[_.JY,_.Ov],S));J.addProvider({provide:zB,useClass:zB});S={};J.addProvider((S.provide=tp,S.useClass=tp,S[fQ]=[_.Ac,_.JY],
S));J.addProvider({provide:WQ,useClass:WQ});S={};J.addProvider((S.provide=Mi,S.useClass=Mi,S[fQ]=[bx,_.Ac,_.HU],S));S={};J.addProvider((S.provide=JK,S.useClass=JK,S[fQ]=[_.Ac,_.Ov],S));J.addProvider({provide:O48,useValue:nMi});J.addProvider({provide:CY8,useValue:xi4});J.addProvider({provide:SW,useClass:SW});S={};J.addProvider((S.provide=p9,S.useClass=p9,S[fQ]=[bx],S));S={};J.addProvider((S.provide=XW,S.useClass=XW,S[fQ]=[_.uE,_.Ov],S));S={};J.addProvider((S.provide=fc,S.useClass=fc,S[fQ]=[_.Ov],S));
J.addProvider({provide:nc,useFactory:function(){return new nc(_.rl())}});
J.addProvider({provide:sbk,useFactory:_.uy.getInstance});S={};J.addProvider((S.provide=oU,S.useClass=oU,S[fQ]=[$g,sbk,_.Ov],S));J.addProvider({provide:Ap,useClass:Ap});J.addProvider({provide:Se,useClass:Se});J.addProvider({provide:Mu,useClass:Mu});J.addProvider({provide:_.HQ,useClass:_.HQ});J.addProvider({provide:Ni,useClass:Ni});S={};J.addProvider((S.provide=wJ,S.useClass=wJ,S[fQ]=[Hu],S));S={};J.addProvider((S.provide=lx,S.useClass=lx,S[fQ]=[_.Ov],S));S={};J.addProvider((S.provide=xg,S.useClass=
xg,S[fQ]=[_.Ov],S));S={};J.addProvider((S.provide=cQ,S.useClass=cQ,S[fQ]=[_.Ov],S));_.z("web_enable_prefetching_videos_on_home")&&(J.addProvider({provide:vc,useClass:vc}),J.addProvider({provide:kk,useClass:kk}));S={};J.addProvider((S.provide=k$,S.useClass=k$,S[fQ]=[_.Ov],S));J.addProvider({provide:Kc,useClass:Kc});S={};J.addProvider((S.provide=vU,S.useClass=vU,S[fQ]=[_.Ac,_.Ov],S));S={};J.addProvider((S.provide=ZM,S.useClass=ZM,S[fQ]=[_.Ov],S));S={};J.addProvider((S.provide=Nt,S.useClass=Nt,S[fQ]=
[_.Ac,_.Ov],S));J.addProvider({provide:DE,useClass:DE});J.addProvider({provide:Yg,useClass:Yg});S={};J.addProvider((S.provide=EF,S.useClass=EF,S[fQ]=[Hu,_.Ov],S));J.addProvider({provide:rJ,useClass:rJ});S={};J.addProvider((S.provide=V_,S.useClass=V_,S[fQ]=[Hu,_.Ov,_.Ac],S));S={};J.addProvider((S.provide=qi,S.useClass=qi,S[fQ]=[_.Ov],S));S={};J.addProvider((S.provide=lU,S.useClass=lU,S[fQ]=[_.Ov,_.Ac],S));S={};J.addProvider((S.provide=mL,S.useClass=mL,S[fQ]=[_.Ov,_.Ac],S));S={};J.addProvider((S.provide=
Lc,S.useClass=Lc,S[fQ]=[_.H$],S));S={};J.addProvider((S.provide=IU,S.useClass=IU,S[fQ]=[_.H$],S));S={};J.addProvider((S.provide=je,S.useClass=je,S[fQ]=[_.H$],S));J.addProvider({provide:n9,useClass:n9});J.addProvider({provide:bU,useClass:bU});J.addProvider({provide:Uf,useClass:Uf});J.addProvider({provide:f9,useClass:f9});J.addProvider({provide:Zs,useClass:Zs});J.addProvider({provide:yO,useClass:yO});J.addProvider({provide:K9,useClass:K9});_.z("kevlar_enable_mss_lazy_load")&&J.addProvider({provide:_.ds,
useClass:eXp});J.addProvider({provide:_.jW,useClass:Q2});J.addProvider({provide:C5,useFactory:function(){return _.XK.getInstance()}});
J.addProvider({provide:fDN,useFactory:fft});J.addProvider({provide:Gz,useFactory:function(){return _.JW.getInstance()}});
J.addProvider({provide:q68,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});S={};J.addProvider((S.provide=_.Ox,S.useClass=_.Ox,S[fQ]=[_.H$,_.Ov,_.c3,fDN,Gz,C5,q68,ao],S));J.addProvider({provide:_.qg,useClass:XSn});J.addProvider({provide:_.F9I,useClass:m0U});S={};J.addProvider((S.provide=BQ,S.useClass=BQ,S[fQ]=[_.F9I],S));S={};J.addProvider((S.provide=_.Aj,S.useFactory=function(b){return b.upliftCompletionResolver.promise},S[fQ]=[zWl],S));
S=_.wY("IS_SHELL_LOAD")?"aa":"eocs";var H=_.wY("IS_SHELL_LOAD")?3:2;_.fq().parkOrScheduleJob(function(){oTe()},H,S);
_.fq().parkOrScheduleJob(function(){_.vO().resolve(zS).start()},2,"eocs");
_.fq().parkOrScheduleJob(function(){OUP()},2,"eocs");
_.fq().parkOrScheduleJob(function(){_.vO().resolve(fZ).start()},2,"eocs");
_.z("kevlar_debug_data_app_registration_ks")||Rit();J.addProvider({provide:_.Am,useValue:new hTI(p.root)});J.addProvider({provide:HJ,useValue:new GyL});J.addProvider({provide:_.Va$,useValue:new usI(p.root)});J.addProvider({provide:_.Or,useValue:new l4e});J.addProvider({provide:_.lc,useClass:jk});J.addProvider({provide:VQp,useClass:Wc});_.z("kevlar_network_sli_killswitch")||J.addProvider({provide:xzM,useValue:ZR8});J.addProvider({provide:TYr,useFactory:en9});_.z("web_bind_fetch")&&(S={},J.addProvider((S.provide=
dzr,S.useFactory=Wmi,S[fQ]=[_.F9(TYr)],S)));_.z("web_bind_window_request")&&(S={},J.addProvider((S.provide=uaI,S.useFactory=Q_3,S[fQ]=[_.F9(TYr)],S)));_.z("web_bind_text_decoder")&&(S={},J.addProvider((S.provide=lJy,S.useFactory=CmW,S[fQ]=[_.F9(TYr)],S)));S={};J.addProvider((S.provide=lZr,S.useFactory=Xrv,S[fQ]=[_.Aj,bx,_.ZE],S));S={};J.addProvider((S.provide=uCI,S.useClass=aN,S[fQ]=[lZr],S));J.addProvider({provide:zwU,useClass:fdf});J.addProvider({provide:k6N,useClass:T2M});S=[].concat(_.dW(aY));
_.z("web_continuation_response_processing")&&S.push(_.hm);S.push(MZq);_.z("enable_share_panel_navigation_logging_fix_on_web")&&S.push(_.OD8);J.addProvider({provide:CR9,useValue:S});J.addProvider({provide:hNL,useClass:D0M});J.addProvider({provide:Jlw,useClass:c4I});S={};J.addProvider((S.provide=U5g,S.useClass=L7r,S[fQ]=[Hu],S));_.wg.addLowPriorityJob(function(){g5X()});
S={};J.addProvider((S.provide=QX8,S.useFactory=function(b){return function(F){var f,O=(f=_.e(F.commandMetadata,_.i7))==null?void 0:f.url;if(!O)throw new _.TG("No URL for PBJ Command",F);O=YBW(O,{pbj:"1"});f=blg(O,{})||{};f=Object.assign({},f,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.jn("STS").toString()});F=_.Uv({command:JSON.stringify(F),session_token:_.jn("XSRF_TOKEN")});return b.fetch(O,{method:"POST",headers:f,body:F})}},S[fQ]=[Jlw],S));
J.addProvider({provide:r4y,useFactory:function(){var b={};return b.CSI=BtW(),b.ECATCHER=yR3(),b}});
J.addProvider({provide:o1X,useClass:jd$});S=[];S.push(J.resolve(k6N));H={};H=(H.client_location=_.uy.getInstance(),H.consistency=_.ZMX(),H.entities=J.resolve(t0I),H.response_received_commands=J.resolve(hNL),H.store=J.resolve(_.Ckw),H.tokens=J.resolve(k6N),H.service_params=J.resolve(o1X),H);if(_.z("web_shorts_prefetch_service_enabled")){var M=new gcP(J.resolve(_.T0));H.shorts_prefetch=M}H.adblock_detection=J.resolve(U5g);J.addProvider({provide:_.RJ,useClass:_.RJ});M=J.resolve(_.Ef);var X=[];_.z("PremiumClientSharedConfig__enable_att_context_processor")&&
(J.addProvider({provide:frw,useClass:mDP}),X.push(J.resolve(frw)));if(_.z("owl_pl_await")){var Z={};J.addProvider((Z.provide=sdr,Z.useFactory=function(b){return new BYj(b)},Z[fQ]=[_.RJ],Z));
X.push(J.resolve(sdr))}Cgd(M,J.resolve(Jlw),J.resolve(NYy),H,J.resolve(_.T0),S,X,J.resolve(uCI),J.resolve(zwU));J.addProvider({provide:_.Ac,useValue:_.un.instance});_.z("start_client_gcf")&&J.addProvider({provide:lS,useValue:Z$8()});J.addProvider({provide:WrP,useFactory:function(){return new WrP(_.vO().resolve(_.RJ),_.JW.getInstance())}});
_.fq().parkOrScheduleJob(function(){Q2r()},1,"eocs");
S={};J.addProvider((S.provide=Pc,S.useClass=Pc,S[fQ]=[_.ZE,_.Ac],S));J.addProvider({provide:_.xsP,useFactory:_.hj.getInstance});_.fq().parkOrScheduleJob(function(){_.vO().resolve(Pc).refresh()},0,"eocs");
J.addProvider({provide:_.o$,useClass:X0P});_.z("kevlar_signal_collection_killswitch")||(S={},J.addProvider((S.provide=Krf,S.useClass=Krf,S[fQ]=[$g,RN],S)),_.fq().parkOrScheduleJob(function(){_.vO().resolve(Krf).record()},1,"eocs"));
_.z("web_debug_handler_registration_killswitch")||_.fq().parkOrScheduleJob(function(){Xnv("DOWNLOAD_PES",vxw);_.z("offline_client_state_export_ks")||Xnv("OFFLINE_CLIENT_STATE",bh3)},0,"eocs");
_.z("kevlar_prevent_polymer_dynamic_font_load")&&_.fq().parkOrScheduleJob(function(){var b=[_.fA(nae),_.fA(GG$)];b=_.K(b);for(var F=b.next();!F.done;F=b.next()){F=F.value;var f=document.createElement("link");_.n_(f,F,"stylesheet");document.head.appendChild(f)}},1,"eocs");
S=p.injector.resolve(_.Ac);_.vFU.instance=new _.vFU(S);a9k(i_f(new FCj(S)));S={};p.injector.addProvider((S.provide=Oy,S.useFactory=function(b){(b=b==null?void 0:b.getCurrentPage())?b=b.visibilityObserver:(ltf||(ltf=nAw()),b=ltf);return b},S[fQ]=[_.F9(_.xz)],S.skipCache=!0,S));
J.addProvider({provide:_.DF,useClass:Ex});J.addProvider({provide:rU,useClass:vb8});p.injector.addProvider({provide:Z98,useValue:taw});J.addProvider({provide:pXm,useValue:I4I});J.addProvider({provide:RA8,useValue:XeX});J.addProvider({provide:_.uC,useValue:OvX});p=J.addProvider;p5N||(p5N=new Lrl);p.call(J,{provide:_.CZ,useValue:p5N});J.addProvider({provide:_.VM,useValue:_.jn("HTML_DIR")==="rtl"?"rtl":"ltr"});J.addProvider({provide:qKN,useClass:psM});J.addProvider({provide:_.iC,useClass:y2});_.vO().addProvider({provide:EFf,
useValue:_.z("enable_web_delhi_icons")?gQN.concat(hpI):sJP.concat(tDU)});J.addProvider({provide:_.Ux,useClass:_.Ux});J.addProvider({provide:_.RXM,useValue:new iQy});J.addProvider({provide:swj,useClass:UDy});J.addProvider({provide:Of,useClass:Of});J.addProvider({provide:zz,useClass:zz});p={};J.addProvider((p.provide=ux,p.useClass=ux,p[fQ]=[_.Ac,_.JY],p));J.addProvider({provide:Tz,useClass:Tz});J.addProvider({provide:xje,useClass:YGy});J.addProvider({provide:WU,useClass:WU});J.addProvider({provide:Gjq,
useValue:xdn});J.addProvider({provide:_.CR,useClass:sIU});_.z("enable_payments_purchase_manager")&&J.addProvider({provide:zjl,useClass:O_M});J.addProvider({provide:M6I,useFactory:function(){return function(b){return _.ZQP(b)}}});
J.addProvider({provide:_.sry,useClass:goP});p={};J.addProvider((p.provide=Ds,p.useClass=Ds,p[fQ]=[_.sry],p));J.addProvider({provide:$$,useClass:$$});J.addProvider({provide:a3N,useValue:opI});J.addProvider({provide:k84,useValue:_.RYN});J.addProvider({provide:oJt,useClass:ETe});J.addProvider({provide:J4M,useValue:n_e});p={};J.addProvider((p.provide=Sgy,p.useClass=HV$,p[fQ]=[J4M],p));p={};J.addProvider((p.provide=_.cD,p.useClass=m1I,p[fQ]=[Sgy],p));p={};J.addProvider((p.provide=_.gP,p.useClass=sx,p[fQ]=
[_.XN,_.lc],p));if(_.z("web_explore_hub_on_hover")||_.z("web_client_explore_hub_on_hover"))p={},J.addProvider((p.provide=PQ,p.useClass=PQ,p[fQ]=[_.Ac,C5],p));if(_.z("web_enable_renderer_logger")){var n=new Emw;Sdk(function(){n.abort()});
J.addProvider({provide:tCX,useValue:new nTN(n.signal)})}J.addProvider({provide:Gh4,useValue:UMi});J.addProvider({provide:mAi,useClass:tmU});_.z("web_use_flow_state_manager")&&(J.addProvider({provide:_.Y6,useClass:hjP}),p={},J.addProvider((p.provide=r3,p.useClass=r3,p[fQ]=[_.Y6],p)),p={},J.addProvider((p.provide=jR,p.useClass=jR,p[fQ]=[_.XN,_.Y6],p)),p={},J.addProvider((p.provide=w3,p.useClass=w3,p[fQ]=[_.XN,_.Y6,_.Ov],p)),p={},J.addProvider((p.provide=x6,p.useClass=x6,p[fQ]=[_.Ac,_.Ov],p)),p={},J.addProvider((p.provide=
cK,p.useClass=cK,p[fQ]=[_.Y6,_.Ov],p)))}},VDU);var atP={},EQU=(atP.initialized={priority:10,callback:function(){if(!w5I){PCs();s_s("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Qn(_.nl(s_s,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.z("log_heartbeat_with_lifecycles")){var p={};ek.instance||(ek.instance=new ek);ek.instance.install((p.document_visible={callback:guv,priority:10},p.document_hidden={callback:guv,priority:10},p))}else _.vL(document,"visibilitychange",guv);w5I=!0}(p=_.C1())&&p!=="UNDEFINED_CSN"&&Rc9(p)}},atP);var YIl={},rVN=(YIl.initialized={callback:function(p){var J=_.KG(232091),S=p.injector.resolve(_.c3);_.dC(S,J);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?Gwt()&&_.lq(S,J):(p=p.injector.resolve(M6I)("refresh_detector"))&&(p.get("first_tab_load")?_.lq(S,J):p.set("first_tab_load","1"))}},YIl);var jJp={},wLI=(jJp.initialized={priority:10,callback:Pkv},jJp);var x8e={},cVM=(x8e.initialized={priority:0,callback:function(){var p=new iOq,J="other";_.GF?J="chrome":_.nu?J="firefox":_.Iy?J="safari":Gx&&(J="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(S){p.increment(_.DL(),S,J)}).catch(function(){p.increment(_.DL(),!1,J)}):p.increment(_.DL(),!1,J)}},x8e);var Itj={},L4p=(Itj.rendering={priority:8,callback:zNW},Itj);var pJf={},Jwj=(pJf.rendering={priority:10,callback:kwi},pJf.rendered={callback:D5t},pJf),SyM={},HEe=(SyM.rendering={callback:kwi},SyM.rendered={callback:D5t},SyM);var M5j=!1,XJr={},iEw=(XJr.initialized={priority:10,callback:function(){M5j||(Ed9({didPatch:function(p){p.el&&q$s(p.el,p.props)},
didUnmount:function(p){l6v(p.el)}}),M5j=!0)}},XJr);var RHr=/^\/shorts\/?$/;_.rY("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:{}}}}}}});_.z("kevlar_use_common_module_manager_ks")?(_.wOg(new Nh3),XYX()):Th9();
(function(){var p=document.querySelector("ytd-app");if(!p)throw Error("Xj");p=new tj({root:p,injector:_.vO()});p.install(EQU);var J={};p.install((J.initialized={priority:10,callback:Jo3},J));_.z("wp_lat_b")&&(J={},p.install((J.initialized={priority:10,callback:function(){znL()}},J)));
J={};p.install((J.rendered={priority:0,callback:I2g},J));J={};p.install((J.rendered={priority:0,callback:function(){_.wg.addLowPriorityJob(function(){_.Jyj>1&&(EAv(),xfi())},4E4)}},J));
p.install(T1p);p.install(rVN);p.install(iEw);prt();p.install(rly);p.install(gay);p.install(kGP);p.install(JZM);p.install(iUP);p.install(EaP);p.install(qIN);_.z("kevlar_enable_mss_lazy_load")&&p.install(wLI);p.install(hXN);p.install(cVM);if(!_.wY("IS_SHELL_LOAD")||_.z("kevlar_fetch_initial_data_promise_client")||_.z("sw_nav_preload_pbj")){var S=_.yn(window.location.href);J=S&&S==="/watch";S=S&&S.match(RHr);J?p.install(HEe):S?p.install(L4p):p.install(Jwj)}else p.install(B1y);p.install(u9I);_.z("web_enable_prefetching_videos_on_home")&&
p.install(cle);_.z("start_client_gcf")&&p.install(Yge);p.install(xLP);(new R2p).increment("INSTALLED");p.install(wOp);p.install(QyI);p.transition("initialized");b8W();S$X()})();
_.XV=[[["a2luZCNkcnN0ZnBiZjJ6aXg=","YWx1ZSM3cTQ0cnp4aDdxY3d2"],"VEFSVCN3Nms5YWc1bmt3cG1BRF9QTEFDRU1FTlRfS0lORF9T"]];_.Mc=["YWNrcyNmY2hzYzY4aW5tcG5nbG9iYWxDYWxsYg==","Y3RlZCNxeWoyeWdlbXY2N21vbkFibm9ybWFsaXR5RGV0ZQ==","U2tpcCNiZmJnc3doa3NjODFvbkFk","cG9uc2UjczNlMm9yamJpZnRyYXdfcGxheWVyX3Jlcw==","bG90cyMydTl4ZTNkczdyZzVhZFM="];_.oQ="YWNrcyNmY2hzYzY4aW5tcG5nbG9iYWxDYWxsYg== Y3RlZCNxeWoyeWdlbXY2N21vbkFibm9ybWFsaXR5RGV0ZQ== U2tpcCNiZmJnc3doa3NjODFvbkFk cG9uc2UjczNlMm9yamJpZnRyYXdfcGxheWVyX3Jlcw== c19rcyNoZXlmODc3bWI4eXh3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcA== YV9lZiMyYno5ODJlOWNlZWNhYl9z bG90cyMydTl4ZTNkczdyZzVhZFM=".split(" ");
_._ModuleManager_initialize=function(p,J){if(!_.TN){if(!_.dp)return;_.wOg(_.dp())}_.TN.setAllModuleInfoString(p,J)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya:3/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/syd:1/sye:a,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/NSzT5:b/iuT5Oc',['sy4','sy3','sy1','sy8','syd','sya','syk','syj','syg','sye','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syb','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var oXP,eHP;_.cc=function(p){return!!p.getOptions("captions")};
_.$yI=function(p){return(p=p.getOption("captions","track"))?!!p.displayName:!1};
_.IF=function(p,J){_.WY(J,p,function(){return oXP[J]},function(S){oXP[J]=S;
if(!_.z("mweb_player_ve_show_ks")){var H=_.C1(0);H&&S&&_.Tv(H,S)}})};
_.LZ=function(p){(p=oXP[p])&&_.lq(_.bC(),p)};
oXP={};var WoP;/*

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
*/
_.QG({_template:function(){if(WoP!==void 0)return WoP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;eHP===void 0&&(eHP=document.createElement("template"));var H=eHP;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return WoP=p},
is:"tp-yt-paper-checkbox",behaviors:[_.nf8],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.mN(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var p=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),J="px",S=p.match(/[A-Za-z]+$/);S!==null&&(J=S[0]);p=parseFloat(p);S=8/3*p;J==="px"&&(S=Math.floor(S),S%2!==p%2&&S++);this.updateStyles({"--paper-checkbox-ink-size":S+
J})}})},
_computeCheckboxClass:function(p,J){var S="";p&&(S+="checked ");J&&(S+="invalid");return S},
_computeCheckmarkClass:function(p){return p?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.KEn._createRipple.call(this)}});var QZP=new _.Zz("radioButtonSurveyOptionRenderer"),CZP=new _.Zz("checkboxSurveyOptionRenderer");var ywI;var BdP;var Uyf=0,p2=function(){var p=_.T.call(this)||this;p.selected=!1;p.isOverlay=!1;p.inputId="toggle-option-"+Uyf;Uyf++;return p};
_.Q(p2,_.T);p2.prototype.onTap=function(){_.cf(this.hostElement,"ytd-toggle-option-clicked")};
_.V([_.N(),_.Y("design:type",String)],p2.prototype,"label",void 0);_.V([_.N(),_.Y("design:type",String)],p2.prototype,"inputId",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],p2.prototype,"selected",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],p2.prototype,"isOverlay",void 0);_.V([_.gw({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.Y("design:paramtypes",[])],p2);
_.l(p2,"ytd-toggle-option-renderer",function(){if(BdP!==void 0)return BdP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return BdP=p},{mode:1});var JB=function(){var p=_.T.apply(this,arguments)||this;p.isToggleOption=!1;p.isOverlay=!1;return p};
_.Q(JB,_.T);JB.prototype.onTap=function(p){p.preventDefault();this.data&&(p=!this.data.checked,this.set("data.checked",p),_.cf(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:p,value:this.data.value}))};
_.vh.Object.defineProperties(JB.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
JB.prototype.onTap=JB.prototype.onTap;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],JB.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],JB.prototype,"isToggleOption",void 0);_.V([_.N(),_.Y("design:type",Object)],JB.prototype,"isOverlay",void 0);_.V([_.U("data.responseText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],JB.prototype,"label",null);
_.V([_.GI("ytd-toggle-option-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],JB.prototype,"onTap",null);_.V([_.gw({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],JB);
_.l(JB,"ytd-checkbox-survey-option-renderer",function(){if(ywI!==void 0)return ywI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ywI=p},{mode:1});var sZ$;var gXI;var SV=function(){var p=_.T.apply(this,arguments)||this;p.checked=!1;p.isToggleOption=!1;return p};
_.Q(SV,_.T);SV.prototype.onTap=function(){this.data&&(this.checked?_.IV(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.IV(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
SV.prototype.onTap=SV.prototype.onTap;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],SV.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],SV.prototype,"checked",void 0);_.V([_.N(),_.Y("design:type",Object)],SV.prototype,"isToggleOption",void 0);_.V([_.GI("ytd-toggle-option-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],SV.prototype,"onTap",null);
_.V([_.gw({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],SV);
_.l(SV,"ytd-radio-button-survey-option-renderer",function(){if(gXI!==void 0)return gXI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return gXI=p},{mode:1});var Hn=function(){var p=_.T.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=_.z("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};
_.Q(Hn,_.T);_.R=Hn.prototype;
_.R.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"}}}}};
_.R.attached=function(){var p=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(S){var H;if((H=S[0])!=null&&H.isIntersecting){_.nI().reportShown(p.hostElement);var M;(M=p.intersectionObserver)==null||M.unobserve(p.hostElement)}},{rootMargin:"0px",
threshold:.6});var J;(J=this.intersectionObserver)==null||J.observe(this.hostElement)};
_.R.onDarkModeToggledAction=function(p){this.isDarkMode=p};
_.R.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 J;((J=this.data)==null?void 0:J.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var S,H,M,X;this.darkColorPalette=(S=this.data)==null?void 0:(H=S.inlineContent)==null?void 0:(M=H.compactVideoRenderer)==null?void 0:(X=M.thumbnail)==null?
void 0:X.darkColorPalette;var Z,n,b,F;this.lightColorPalette=(Z=this.data)==null?void 0:(n=Z.inlineContent)==null?void 0:(b=n.compactVideoRenderer)==null?void 0:(F=b.thumbnail)==null?void 0:F.lightColorPalette;var f,O;if(((f=this.data)==null?0:(O=f.inlineContent)==null?0:O.compactVideoRenderer)&&this.isShortsStyle){var A,P,W,y;p=_.LI((A=this.data)==null?void 0:(P=A.inlineContent)==null?void 0:(W=P.compactVideoRenderer)==null?void 0:(y=W.thumbnail)==null?void 0:y.thumbnails);_.K3(this.hostElement,
{"--yt-background-url":"url("+p+")"})}};
_.R.handleRequestCompletion=function(){this.hostElement.hidden&&_.cf(this.hostElement,"yt-dismissible-item-dismissed")};
_.R.onPopupClosed=function(p){var J;((J=p.detail)==null?void 0:J.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.IV(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.R.handleInlineSurveyRatingSelect=function(p,J){var S=this;this.selectedRatingEndpoint=p;this.followUpSurveyCommand=J;this.expanded=!!p;this.getOptionRenderers().forEach(function(H,M){S.notifyPath("followUpSurveyCommand.followUpOptions."+M+".checkboxSurveyOptionRenderer.checked");S.set("followUpSurveyCommand.followUpOptions."+M+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),p=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.IV(this.hostElement,"yt-reel-non-video-content-dismissal-command",[p]))};
_.R.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.IV(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var p,J=(p=this.data)==null?void 0:p.dismissalEndpoint;J&&this.ytComponentBehavior.resolveCommand(J)}};
_.R.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.IV(this.hostElement,"yt-close-popup-action"))};
_.R.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(H){return H.checked});
if(p.length===0)return;p=p.map(function(H){return H.responseEndpoint})}var J=[];
p.forEach(function(H,M){M!==0&&(H=_.e(H,_.U0))&&H.feedbackToken&&J.push(H.feedbackToken)});
if(p=p[0]){var S={};J.length>0&&(S.extra_feedback_tokens=J);this.ytComponentBehavior.resolveCommand(p,{form:S})}}};
_.R.getOptionRenderers=function(){var p=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(J){p.isSingleSelect=!!_.e(J,QZP);return p.isSingleSelect?_.e(J,QZP):_.e(J,CZP)}):[]};
_.R.handleInlineSurveyOptionSelect=function(p){p=this.optionSelector.indexOf(p);p!==-1&&this.optionSelector.selectIndex(p)};
_.R.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.R.maybeGetBackgroundColor=function(p){return this.isDarkMode?p.section2Color:p.section3Color};
_.R.colorPaletteChanged=function(){var p=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;p=p&&this.maybeGetBackgroundColor(p);this.dismissibleEl.style.backgroundColor=!p||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.yi(p)};
_.vh.Object.defineProperties(Hn.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Hn.prototype.colorPaletteChanged=Hn.prototype.colorPaletteChanged;Hn.prototype.onPopupClosed=Hn.prototype.onPopupClosed;Hn.prototype.handleRequestCompletion=Hn.prototype.handleRequestCompletion;Hn.prototype.dataChanged=Hn.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Hn.prototype,"actionHandlerBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Hn.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],Hn.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.FM("#follow-up-survey-options"),_.Y("design:type",Object)],Hn.prototype,"optionSelector",void 0);_.V([_.N(),_.Y("design:type",Object)],Hn.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],Hn.prototype,"disableAnimation",void 0);_.V([_.N(),_.Y("design:type",Object)],Hn.prototype,"isToggleOption",void 0);_.V([_.N(),_.Y("design:type",Object)],Hn.prototype,"followUpSurveyCommand",void 0);_.V([_.N(),_.Y("design:type",Object)],Hn.prototype,"selectedRatingEndpoint",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Hn.prototype,"expanded",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"isShortsStyle",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"styleOverrideAttribute",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Hn.prototype,"isSingleSelect",void 0);_.V([_.N(),_.Y("design:type",Object)],Hn.prototype,"isDarkMode",void 0);
_.V([_.N(),_.Y("design:type",Object)],Hn.prototype,"lightColorPalette",void 0);_.V([_.N(),_.Y("design:type",Object)],Hn.prototype,"darkColorPalette",void 0);_.V([_.U("selectedRatingEndpoint","isShortsStyle"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Hn.prototype,"isOptionSelected",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"roundedContainer",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"improveShortsResponseRate",void 0);_.V([_.FM("#dismissible"),_.Y("design:type",HTMLElement)],Hn.prototype,"dismissibleEl",void 0);_.V([_.FM("#dismiss-button yt-icon-button"),_.Y("design:type",HTMLElement)],Hn.prototype,"dismissButtonEl",void 0);_.V([_.FM("#inline-survey-header yt-icon-button"),_.Y("design:type",HTMLElement)],Hn.prototype,"inlineHeaderDismissButtonEl",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hn.prototype,"dataChanged",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hn.prototype,"handleRequestCompletion",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Hn.prototype,"onPopupClosed",null);
_.V([_.bO("darkColorPalette","lightColorPalette","isDarkMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hn.prototype,"colorPaletteChanged",null);_.V([_.gw({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Hn);
_.l(Hn,"ytd-inline-survey-renderer",function(){if(sZ$!==void 0)return sZ$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return sZ$=p},{mode:1});var t5j=["en-CA","en","es-MX","fr-CA"];_.hHI=_.d(function(p){var J=_.jh(p,{isOverlay:!1,isModern:!1}),S=J.captionIconType,H=J.onClick;p=J.ariaLabel;var M=J.ariaPressed,X=J.isOverlay,Z=J.isModern;J=_.nE("button",function(F){_.IF(F,127299)});
var n=_.Kb(function(F){_.LZ(127299);H==null||H(F);return!1}),b={};
return _.m("ytm-closed-captioning-button",{class:_.XB("ytmClosedCaptioningButtonHost",(b.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return S()===-1&&X()},b.ytmClosedCaptioningButtonIconDisabled=function(){return S()===-1&&!X()},b))},_.m("button",{el:J,
class:"ytmClosedCaptioningButtonButton",title:p,"aria-label":p,"aria-pressed":M,"on:click":n},_.m(_.bn,{icon:function(){var F="",f=Z();var O=f?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";f=f?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var A=_.Gv().get("hl");O=!A||t5j.includes(A)?O:f;f=S();switch(f){case -1:case 0:F=O;break;case 1:F=O+"_FILLED";break;default:_.rm(f)}return F}})))},"ph");
_.hHI.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.rP=function(p,J,S,H,M){var X={};J&&(X[J]=S);H?X.errorType=H:M&&(X.errorReason=M);_.YQ(p,X);_.rf()};
_.j1=function(p){var J=_.fq();return _.Dbv(J,p,1)};
_.QG({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 Fo$;var vXe;var fyI=function(){};
_.R=fyI.prototype;_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._noinkChanged=function(){};
_.R._focusedChanged=function(){};
_.R._createRipple=function(){};
_.R.registered=function(){};
_.R._invalidChanged=function(){};
_.R.hasValidator=function(){};
_.R.validate=function(){};
_.R._getValidity=function(){};
_.R._requiredChanged=function(){};
_.R._valueChanged=function(){};
_.R._checkedChanged=function(){};
_.R._buttonStateChanged=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
fyI=_.QG({is:"tp-yt-paper-radio-button",_template:function(){if(vXe!==void 0)return vXe;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Fo$===void 0&&(Fo$=document.createElement("template"));var H=Fo$;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return vXe=p},
behaviors:[_.nf8],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(){_.mN(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var p=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),J=Math.floor(3*p);J%2!==p%2&&J++;this.updateStyles({"--paper-radio-button-ink-size":J+"px"})}})}});var OEM;var AwI;_.QG({_template:function(){if(AwI!==void 0)return AwI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;OEM===void 0&&(OEM=document.createElement("template"));var H=OEM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return AwI=p},
is:"tp-yt-paper-radio-group",behaviors:[_.Huo],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 J=this._valueToItem(p);if(!J||!J.hasAttribute("disabled")){if(this.selected){J=this._valueToItem(this.selected);if(this.selected==p)if(this.allowEmptySelection)p="";else{J&&(J.checked=!0);return}J&&
(J.checked=!1)}_.VG.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){_.Swn._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(p){_.Swn._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.VG._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.jo._resetTabindices.apply(this,arguments);this.items.forEach(function(p){p.removeAttribute("aria-selected")},this)}});var PZP;_.QI("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var wP=function(){return _.T.apply(this,arguments)||this};
_.Q(wP,_.T);_.R=wP.prototype;_.R.computeHasPrimaryIcon=function(p){return!(!p.icon&&!p.thumbnail)};
_.R.computeHasSecondary=function(p){return!(!p.secondaryIcon&&!p.secondaryNotificationText)};
_.R.computeHideSecondaryString=function(p){return!_.z("disable_hide_empty_secondary_string")&&!p.secondaryNotificationText};
_.R.computeCompactLinkStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.R.computeHasFitHeight=function(p){return p==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.R.isActiveEndpoint=function(p){return(p=this.get("commandMetadata.webCommandMetadata.url",p))?_.yn(window.location.href)!=="/account_transfer_channel"&&_.yn(window.location.href)!=="/gaia_link"&&_.yn(window.location.href)!=="/channel_switcher"||p!=="/account"?_.yn(window.location.href)===p:!0:!1};
_.R.onTap=function(){var p;((p=this.data)==null?0:p.serviceEndpoint)&&_.pl(this.hostElement,[this.data.serviceEndpoint])};
wP.prototype.onTap=wP.prototype.onTap;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wP.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.Y("design:type",Boolean)],wP.prototype,"active",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.Y("design:type",String)],wP.prototype,"compactLinkStyle",void 0);
_.V([_.N({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],wP.prototype,"icon",void 0);_.V([_.N({computed:"computeIcon_(data.secondaryIcon)"}),_.Y("design:type",Object)],wP.prototype,"secondaryIcon",void 0);_.V([_.N({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],wP.prototype,"hasSecondary",void 0);_.V([_.N({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],wP.prototype,"hideSecondaryString",void 0);
_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wP.prototype,"onTap",null);_.V([_.gw({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],wP);
_.l(wP,"ytd-compact-link-renderer",function(){if(PZP!==void 0)return PZP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return PZP=p},{mode:1});var zHr;_.QI("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var xk=function(){var p=_.T.apply(this,arguments)||this;p.role="link";p.tabindex="0";p.actionMap=_.z("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};
_.Q(xk,_.T);_.R=xk.prototype;_.R.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.kt()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.R.getCurrentTheme=function(){return _.Nc()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.kt()};
_.R.onThemeSelected=function(p,J){var S=p||J?p:_.Dc(),H=(S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.iMw(_.yn(window.location.href));_.b7(0,165,p);_.b7(0,174,J);this.prefs.save();H&&_.IV(this.hostElement,"yt-dark-mode-toggled-action",[S]);_.IV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.R.onTap=function(){this.data.serviceEndpoint&&_.pl(this.hostElement,[this.data.serviceEndpoint])};
_.R.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.R.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.R.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
xk.prototype.onTap=xk.prototype.onTap;xk.prototype.dataChanged=xk.prototype.dataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],xk.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.F8),_.Y("design:type",Object)],xk.prototype,"paperItemBehaviors",void 0);_.V([_.N(),_.Y("design:type",Object)],xk.prototype,"data",void 0);_.V([_.N({value:function(){return _.Gv()}}),
_.Y("design:type",_.br)],xk.prototype,"prefs",void 0);_.V([_.N(),_.Y("design:type",Object)],xk.prototype,"label",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],xk.prototype,"role",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],xk.prototype,"tabindex",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xk.prototype,"dataChanged",null);
_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xk.prototype,"onTap",null);_.V([_.gw({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],xk);
_.pI()(xk,"ytd-toggle-theme-compact-link-renderer",function(){if(zHr===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);zHr=p}p=zHr;return p},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var Dyr,kUr,NdI,dyj,uKr,lyy,V5P,qye,ayp,EXP,IyN,iX,cwp,rww,xyw,wJ$,jZe,Yyj,LoI,phP,JSM,SLe,Rk,Hzr,MT$,RtP,Zi,XhI,bX,K2,n2,izI,Gp,KNP,Zzj,ndU,Gdp,bzP,mXf,vdf,fne,Ozr,AS$,Puw,zt$,$Xl,odp,ety,WNI,CuN,ySP,B0e,sCP,tTN,DXy,kdI,N0I,T0I,u7P,lnP,VTw,qLN,anj,Edr,YLe,jCP,Inw,cSy,whI,LNw,xXw,pfw,XfI,MqU,SBy,H1w,mW,i1r,Kzw,Z1e,nVM,vVy,fxP,O1r,A1l,PjI,zCN,$9e,oVy,eCI,QVP,Cjy,y1P,BGU,U9I,sVp,gVP,tqP,kXp,GXI;
_.Mx=function(p){var J=new _.TG("Error accessing DB");return _.vAX().then(function(S){return new Promise(function(H,M){try{var X=S.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(p);X.onsuccess=function(){var Z=X.result;H(Z?Z.value:null)};
X.onerror=function(){J.params={key:p,source:"onerror"};M(J)}}catch(Z){J.params={key:p,
thrownError:String(Z)},M(J)}})},function(){return null})};
Dyr=function(p,J){return _.RR(p.entities,"inlineExpansionEntity",J)};
kUr=function(p,J){return _.RR(p.entities,"flowStateEntity",J)};
NdI=function(p,J){if(p&&J){var S=_.fG();S().set(p,J);_.bjk(S())}};
_.Tde=function(p,J){if(p&&J){var S=_.fG();S().set(p,J);_.bjk(S())}};
dyj=function(p,J){return _.RR(p.entities,"contextNoteUserRatingEntityPayload",J)};
uKr=function(p){return _.t9(p,function(J){return J.languageCode==="en"})};
lyy=function(p){var J=X3;if(_.$yI(p))p.setOption("captions","stickyLoading",{}),p.setOption("captions","track",{});else{var S=_.t9(_.$hX(p),function(H){return H.displayName===J});
p.setOption("captions","track",S)}};
V5P=function(p){if(!p)return 0;var J=p.getPresentingPlayerType(),S=p.getVideoData();return S&&S.isLive?(p=p.getProgressState(J),p.seekableEnd-p.seekableStart):p.getDuration(J)};
qye=function(p,J){for(var S=_.K(Object.keys(p)),H=S.next();!H.done;H=S.next())if(H=H.value,p[H]!==J[H])return!1;return!0};
ayp=function(){return document.getElementById("player-control-overlay")};
EXP=function(p){p!==-1&&!_.z("player_controls_log_creation_killswitch")&&ayp()&&(_.Qf("pcu_cs",p),_.Qf("pcu_ce"))};
IyN=function(p,J){var S=_.rw(p,{}),H=Yyj("top",J),M=Yyj("bottom",J),X=Yyj("left",J),Z=Yyj("right",J);return _.G7({top:function(){return iX(S().position,H)},
bottom:function(){return iX(S().position,M)},
left:function(){return iX(S().position,X)},
right:function(){return iX(S().position,Z)},
position:function(){return iX(S().positionType,rww)},
height:function(){return iX(S().height,Rk)},
width:function(){return iX(S().width,Rk)},
"min-width":function(){return iX(S().minWidth,Rk)},
"min-height":function(){return iX(S().minHeight,Rk)},
"max-width":function(){return iX(S().maxWidth,Rk)},
"max-height":function(){return iX(S().maxHeight,Rk)},
"aspect-ratio":function(){return iX(S().aspectRatio,String)},
"margin-top":function(){return iX(S().margin,H)},
"margin-bottom":function(){return iX(S().margin,M)},
"margin-left":function(){return iX(S().margin,X)},
"margin-right":function(){return iX(S().margin,Z)},
"padding-top":function(){return iX(S().padding,H)},
"padding-bottom":function(){return iX(S().padding,M)},
"padding-left":function(){return iX(S().padding,X)},
"padding-right":function(){return iX(S().padding,Z)},
"flex-direction":function(){return iX(S().flexDirection,jZe)},
"justify-content":function(){return iX(S().justifyContent,wJ$)},
"align-items":function(){return iX(S().alignItems,xyw)},
"flex-grow":function(){return iX(S().flexGrow,String)},
"flex-shrink":function(){return iX(S().flexShrink,String)},
"flex-basis":function(){return iX(S().flexBasis,Rk)},
"align-self":function(){return iX(S().alignSelf,xyw)},
"flex-wrap":function(){return iX(S().flexWrap,cwp)},
"align-content":function(){return iX(S().alignContent,xyw)}})};
iX=function(p,J){return p!==void 0?J(p):void 0};
cwp=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"}};
rww=function(p){switch(p){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
xyw=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"}};
wJ$=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"}};
jZe=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"}};
Yyj=function(p,J){var S=J==="rtl";switch(p){case "top":var H=LoI;break;case "bottom":H=phP;break;case "left":H=JSM;break;default:H=SLe}return function(M){return iX(H(M,S),Rk)}};
LoI=function(p){var J=p.top;var S=p.vertical;p=p.all;var H;return(H=J!=null?J:S)!=null?H:p};
phP=function(p){var J=p.bottom;var S=p.vertical;p=p.all;var H;return(H=J!=null?J:S)!=null?H:p};
JSM=function(p,J){var S=p.left;var H=p.end;var M=p.start;var X=p.horizontal;p=p.all;var Z,n;return(n=(Z=S!=null?S:J?H:M)!=null?Z:X)!=null?n:p};
SLe=function(p,J){var S=p.right;var H=p.end;var M=p.start;var X=p.horizontal;p=p.all;var Z,n;return(n=(Z=S!=null?S:J?M:H)!=null?Z:X)!=null?n:p};
Rk=function(p){var J=p.value;switch(p.unit){case "YPC_DIMENSION_UNIT_POINT":return J+"px";case "YPC_DIMENSION_UNIT_FRACTION":return J+"%";default:return""+J}};
Hzr=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"}};
MT$=function(p){var J=p!=null?p:{};p=J.fontRole;var S=J.fontSize;J=J.fontWeight;if(p!==null&&S!==null)switch(p){case "YPC_FONT_ROLE_DISPLAY":switch(S){case "YPC_FONT_SIZE_L":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(S){case "YPC_FONT_SIZE_L":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return J===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(S){case "YPC_FONT_SIZE_XL":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return J==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
RtP=function(p,J,S){function H(O){return Object.values(O).map(function(A){var P=A.productId;A=A.pricingOptionIndex;return K2(M(P).pricingOptions,A).pricingOptionId})}
function M(O){return b().get(O)}
function X(O){O=H(O);S(O)}
function Z(O,A){return Array.from(Zi(O.pricingOptions)).filter(function(P){P=_.K(P);P.next();P=P.next().value;return n2(P.pricingGroupAttributes,A)}).map(function(P){return _.K(P).next().value})}
var n=Gp([p,J],function(O,A){var P=O==null?void 0:O.selectedPricingOptions;O={};var W=!0;if(P&&A.length)for(var y=_.K(A),t=y.next();!t.done;t=y.next()){t=t.value;var D=XhI(t.pricingOptions,function(a){a:{a=a.pricingOptionId;for(var q=_.K(P),w=q.next();!w.done;w=q.next())if(w.value===a){a=!0;break a}a=!1}return a});
if(D>=0){W=!1;var k=K2(t.pricingOptions,D),E=void 0;O[t.groupId]={productId:t.productId,pricingOptionIndex:D,pricingGroupAttributes:(E=k)==null?void 0:E.pricingGroupAttributes}}}W&&A.length&&(W=K2(A[0].pricingOptions,0),O[A[0].groupId]={productId:A[0].productId,pricingOptionIndex:0,pricingGroupAttributes:W==null?void 0:W.pricingGroupAttributes});return O}),b=Gp([J],function(O){return new Map(O.map(function(A){return[A.productId,
A]}))}),F=Gp([J],function(O){var A=new Map;
O=_.K(O);for(var P=O.next();!P.done;P=O.next()){var W=P.value;P=W.groupId;var y=W.productId;W=_.K(Zi(W.pricingOptions));for(var t=W.next();!t.done;t=W.next()){var D=_.K(t.value);t=D.next().value;D=D.next().value;A.set(D.pricingOptionId,{groupId:P,productId:y,index:t,pricingOption:D,pricingGroupAttributes:D.pricingGroupAttributes})}}return A}),f=Gp([J],function(O){var A=new Map;
O=_.K(O);for(var P=O.next();!P.done;P=O.next()){var W=P.value;P=W.groupId;var y=W.productId,t=void 0;W=_.K(Zi((t=W.pricingGroups)!=null?t:[]));for(t=W.next();!t.done;t=W.next()){var D=_.K(t.value);t=D.next().value;D=D.next().value;A.set(D.pricingGroupId,{groupId:P,productId:y,index:t,pricingGroup:D,pricingGroupAttributes:D.pricingGroupAttributes})}}return A});
return{getProductById:M,isProductSelected:function(O){var A=M(O);if(!A)return!1;var P;return((P=n()[A.groupId])==null?void 0:P.productId)===O},
getSelectedPricingOptions:function(){return Object.values(n()).map(function(O){var A=O.productId;O=O.pricingOptionIndex;return K2(M(A).pricingOptions,O)})},
getSelectedPricingGroupAttributesByGroupId:function(O){var A;return(O=(A=n()[O])==null?void 0:A.pricingGroupAttributes)?Array.from(O):void 0},
getSelectedProductByGroupId:function(O){var A;return(O=(A=n()[O])==null?void 0:A.productId)?M(O):void 0},
onProductSelected:function(O){var A=M(O);if(A){var P=n(),W;if(((W=P[A.groupId])==null?void 0:W.productId)!==O){var y=(W=(y=P[A.groupId])==null?void 0:y.productId)?M(W):void 0;var t;W=(t=P[A.groupId])==null?void 0:t.pricingGroupAttributes;var D;t=(D=P[A.groupId])==null?void 0:D.pricingOptionIndex;if(y&&t!==void 0)if(W){D=Z(y,W).indexOf(t);if(D===-1)throw Error("Yj`"+t+"`"+y.productId);t=Z(A,W);D=D<t.length?t[D]:t.length>0?t[0]:0}else D=t<bX(A.pricingOptions)?t:0;else D=0;bX(A.pricingOptions)<=D&&(D=
0);t=K2(A.pricingOptions,D);var k;y={};X(Object.assign({},P,(y[A.groupId]={productId:O,pricingOptionIndex:D,pricingGroupAttributes:(k=t==null?void 0:t.pricingGroupAttributes)!=null?k:[]},y)))}}},
onPricingOptionSelected:function(O){var A=F().get(O);if(A){O=A.groupId;var P=A.productId;A=A.index;var W=n(),y,t;if(((y=W[O])==null?void 0:y.productId)!==P||((t=W[O])==null?void 0:t.pricingOptionIndex)!==A){var D,k;y={};X(Object.assign({},W,(y[O]={productId:P,pricingOptionIndex:A,pricingGroupAttributes:(k=(D=W[O])==null?void 0:D.pricingGroupAttributes)!=null?k:[]},y)))}}},
onPricingGroupSelected:function(O){var A=f().get(O);if(A){O=A.groupId;var P=A.productId,W=A.pricingGroup.pricingGroupAttributes,y=M(P);if(y){A=n();var t=A[O].pricingGroupAttributes,D;if(((D=A[O])==null?void 0:D.productId)!==P||!n2(izI(t,bX(W)),W)){D=Array.from(W);for(W=bX(W);W<bX(t);W++){var k="",E=!1,a=Array.from(D);a.push(K2(t,W));for(var q=_.K(y.pricingGroups),w=q.next();!w.done;w=q.next())if(w=w.value,n2(w.pricingGroupAttributes,a)){D.push(K2(t,W));E=!0;break}else k===""&&bX(w.pricingGroupAttributes)===
a.length&&n2(izI(w.pricingGroupAttributes,D.length),D)&&(k=K2(w.pricingGroupAttributes,W));E||D.push(k)}k=A[O].pricingOptionIndex;W=[];E=new Map;a=0;y=_.K(Zi(y.pricingOptions));for(q=y.next();!q.done;q=y.next())w=_.K(q.value),q=w.next().value,w=w.next().value,n2(w.pricingGroupAttributes,D)&&W.push(q),n2(w.pricingGroupAttributes,t)&&E.set(q,a++);W.length===0?t=0:(t=E.get(k),t=t!==void 0&&t<W.length?W[t]:W[0]);y={};X(Object.assign({},A,(y[O]={productId:P,pricingOptionIndex:t,pricingGroupAttributes:D},
y)))}}}},
onClearGroupSelected:function(O){var A=n();A[O]&&(A=Object.fromEntries(Object.entries(A).filter(function(P){return _.K(P).next().value!==O})),X(A))}}};
Zi=function(p){return function S(){var H,M,X,Z,n;return _.R$(S,function(b){switch(b.nextAddress){case 1:_.C_(b,2),H=0,M=_.K(p),X=M.next();case 4:if(X.done){b.jumpTo(2);break}Z=X.value;n=_.KT;return b.yield([H++,Z],7);case 7:n(b.yieldResult);X=M.next();b.jumpTo(4);break;case 2:_.WZ(b),_.yV(b,0)}})}()};
XhI=function(p,J){p=_.K(Zi(p));for(var S=p.next();!S.done;S=p.next()){var H=_.K(S.value);S=H.next().value;H=H.next().value;if(J(H))return S}return-1};
bX=function(p){var J=0;for(p=p[Symbol.iterator]();!p.next().done;)++J;return J};
K2=function(p,J){p=_.K(Zi(p));for(var S=p.next();!S.done;S=p.next()){var H=_.K(S.value);S=H.next().value;H=H.next().value;if(S===J)return H}};
n2=function(p,J){if(!p&&!J)return!0;if(!p||!J)return!1;p=Array.from(p);J=Array.from(J);if(p.length!==J.length)return!1;for(var S=0;S<p.length;S++)if(p[S]!==J[S])return!1;return!0};
izI=function(p,J){J=J===void 0?Infinity:J;var S=[];p=_.K(Zi(p));for(var H=p.next();!H.done;H=p.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;if(H>=J)break;H>=0&&S.push(M)}return S};
Gp=function(p,J){var S,H;return function(){for(var M=p.map(function(Z){return Z()}),X=0;X<M.length;X++)if(!S||M[X]!==S[X]){S=M;
H=J.apply(null,_.dW(M));break}return H}};
KNP=function(p,J,S){var H=[];p=_.K(p);for(var M=p.next();!M.done;M=p.next()){M=M.value;var X=void 0;((X=J)==null?0:X.length)&&!n2(M.pricingGroupAttributes,J)||H.push({pricingOption:M,isSelected:S.includes(M.pricingOptionId)})}return H};
Zzj=function(p,J){return _.RR(p.entities,"pdpStateEntity",J)};
ndU=function(p){var J,S;return!!(p.productId&&p.groupId&&((J=p.pricingOptions)==null?0:J.length)&&p.pricingOptions.every(function(H){return H.pricingOptionId})&&((S=p.pricingGroups)==null||!S.length||Array.isArray(p.pricingGroups)&&p.pricingGroups.every(function(H){return H.pricingGroupId&&H.pricingGroupAttributes&&H.pricingGroupAttributes.length>0})))};
Gdp=function(p,J,S){return RtP(p,Gp([J],function(H){return H.filter(ndU)}),S)};
bzP=function(p,J){return J.length===0?[p]:[p.slice(0,J[0]),p.slice(J[0])].filter(function(S){return S.length>0})};
mXf=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""}};
vdf=function(p,J,S,H){H=Object.assign({},H);_.QM(H,FN$,{selectedOptionId:p,primaryButtonOverride:S});_.ED().dispatch(_.P$("flowStateEntity",J,H))};
fne=function(p,J,S){!_.e(S,FN$)&&p.noPreselect&&J!==""&&p.defaultButtonOverride&&vdf("default",J,p.defaultButtonOverride,S)};
Ozr=function(p){switch(p){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
AS$=function(p){switch(p){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
Puw=function(p,J){if(J)return"ytCardViewModelCardSelected";switch(p){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
zt$=function(p,J){J.includes(p)?J=J.filter(function(S){return S!==p}):J.push(p);
return[].concat(_.dW(J))};
$Xl=function(p,J){return _.RR(p.entities,"contextNoteFeedEntityPayload",J)};
odp=function(p,J){switch(p){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return J==null?void 0:J.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return J==null?void 0:J.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return J==null?void 0:J.ratingNotHelpfulText}};
ety=function(p,J,S){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:S||p.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:p.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:p.deleteDialogTitle}]},dialogMessages:[{runs:[{text:p.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:p.deleteActionText}]},command:{performCommentActionEndpoint:{action:J}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:p.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
WNI=function(p,J,S){var H;if(p&&((H=J())==null?0:H.includes(p))){var M;S((M=J())==null?void 0:M.filter(function(X){return X!==p}))}else S([].concat(_.dW(J()||[]),[p]))};
CuN=function(p,J){if(p){var S=[];J=_.K((J==null?void 0:J.checkboxes)||[]);for(var H=J.next();!H.done;H=J.next()){H=_.e(H.value,QCj);var M=void 0;((M=H)==null?0:M.value)&&p.includes(H.key||"")&&S.push(H.value)}return S}};
ySP=function(p){p.style.height="auto";p.style.height=p.scrollHeight+"px"};
B0e=function(p){return[p.syncStep,p.asyncStep].filter(function(J){return J!==void 0})};
sCP=function(p){var J,S,H;if(p=(J=p.structuredContextNoteFormSchema)==null?void 0:(S=J.fieldSchemas)==null?void 0:(H=S.noteBody)==null?void 0:H.validationSchema)for(J=_.K(B0e(p)),S=J.next();!S.done;S=J.next()){S=S.value.rules;if(!S)break;S=_.K(S);for(S=S.next();!S.done;S=S.next())return _.e(S.value,_.UXp)}};
tTN=function(p){if(p){p=_.K(B0e(p));for(var J=p.next();!J.done;J=p.next()){J=J.value.rules;if(!J)break;J=_.K(J);for(J=J.next();!J.done;J=J.next())return _.e(J.value,gdP)}}};
DXy=function(p){if(p){p=_.K(B0e(p));for(var J=p.next();!J.done;J=p.next()){J=J.value.rules;if(!J)break;J=_.K(J);for(J=J.next();!J.done;J=J.next())return _.e(J.value,htr)}}};
kdI=function(p){p=/^https?:\/\//.test(p)?p:"http://"+p;try{var J=_.I7(p)}catch(S){return!1}if(J.toString()!==p)return!1;p=J.JSC$10187_domain_.split(".");return p.length>1&&p.every(function(S){return!!S})};
N0I=function(p,J,S,H){var M;H=(M=H.structuredContextNoteData)==null?void 0:M.createCommentEndpoint;if(M=_.e(H,_.t$o))return M.commentText=_.aR(p),M.videoPositionMention=J,M.sources=S,H};
T0I=function(p){return p==null?void 0:p.stringValue};
u7P=function(p,J,S){p=p.map(function(H,M){return{listItemViewModel:{title:H.title,subtitle:H.subtitle,leadingImage:H.leadingImage,trailingImage:M===J?dXU:void 0,rendererContext:{commandContext:{onTap:H.onTap}}}}});
return Object.assign({},S&&{header:{panelHeaderViewModel:{title:S}}},{content:{listViewModel:{listItems:p}}})};
lnP=function(p,J){if(p&&J)switch(J){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;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return p.timePickerFormatValue}};
VTw=function(p){var J;p=(J=p.options)==null?void 0:J.findIndex(function(S){return S.isSelected});
return p===void 0?-1:p};
qLN=function(p,J,S){var H=function(){return p().label},M={},X=_.XB("ytDropdownViewModelLabel",(M.ytDropdownViewModelLabelError=J,M));
return _.m(_.v,{cond:function(){return p().label&&!(S()===-1&&p().label&&!p().placeholderText)},
then:function(){return _.m("div",{class:X},_.m(_.v3,{text:H}))}})};
anj=function(p,J){var S={};S=_.XB("ytDropdownViewModelTitle",(S.ytDropdownViewModelTitlePlaceholder=function(){return J()===-1},S));
return _.m("div",{class:S},_.m(_.v3,{text:function(){var H=p();var M=J();if(M===-1)H=H.placeholderText?H.placeholderText:H.label;else{var X,Z;H=(X=H.options)==null?void 0:(Z=X[M])==null?void 0:Z.title}return H}}))};
Edr=function(p,J){var S=function(){return p().hint};
return _.m(_.fV,null,_.m(_.v,{cond:function(){return S()&&!J()},
then:function(){return _.m("div",{class:_.XB("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.m(_.v3,{text:S,className:"ytDropdownViewModelSupportText"}))}}),_.m(_.v,{cond:J,
then:function(){return _.m("div",{id:"dropdown-view-model-error",role:"alert",class:_.XB("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.m(_.bn,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.m(_.v3,{text:J,className:"ytDropdownViewModelSupportText"}))}}))};
YLe=function(p,J){var S=_.vO().resolve(_.F9I);_.ad(function(){var H=p().id;H&&S!=null&&S.dropdownMap.set(H,J)})};
jCP=function(p){p=_.e(p.scheduleButton,rSP);p=_.e(p==null?void 0:p.primaryButton,_.mO);p=_.e(p==null?void 0:p.onTap,_.Ua);var J,S,H=((S=_.e(p,_.H9))==null?void 0:S.commands)||[p];S=_.K(H);for(p=S.next();!p.done&&!(J=_.e(p.value,_.UZ8));p=S.next());var M;J=(M=J)==null?void 0:M.createBroadcastRequest;if(!J)throw Error("ek");return J};
Inw=function(p,J,S){S=S===void 0?{}:S;var H,M;return _.G(function(X){if(H=whI(J))return X.return(H);(M=xXw(p,J,S))&&cSy(J,M);return X.return(M)})};
cSy=function(p,J){var S=LNw(p);S&&J.then(function(H){_.vO().resolve(_.T0).put(S,new _.dU({innertubeResponse:H}))})};
whI=function(p){if(p=LNw(p)){var J=_.vO().resolve(_.T0);if(J.has(p))return J.get(p).then(function(S){return S==null?void 0:_.It(S)})}return null};
LNw=function(p){var J=_.e(p.endpoint,_.lj);if(J!=null&&J.videoId)return J={videoId:J.videoId},_.z("web_imp_player_mute_params")&&(J.mutedAtStart=p.startPlaybackInMutedState),_.uj("inline_playback",J)};
xXw=function(p,J,S){p=_.VI(p,J.endpoint,pfw(J,S)).then(function(H){return H});
return Promise.resolve(p)};
pfw=function(p,J){J=_.z("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!p.startPlaybackInMutedState},J):Object.assign({},{vis:5,autonav:"1"},J);var S;J={contentPlaybackContext:_.Mk(J,(S=_.e(p.endpoint.commandMetadata,_.i7))==null?void 0:S.url,window.location.href)};_.z("web_imp_player_mute_params")&&(J.overrideMutedAtStart=!p.startPlaybackInMutedState);return J};
XfI=function(p,J){var S=window.MutationObserver;S&&(J1p=new S(function(H,M){H=_.K(H);for(var X=H.next();!X.done;X=H.next()){X=X.value;var Z;if(Z=X.type==="childList"&&X.target)a:{Z=p;X=SBy(X.target);Z=SBy(Z);for(var n=null,b=0;b<X.length;b++)if(Z.includes(X[b])){if(b===0){Z=!1;break a}n=X[b];break}n?(X=H1w(X,n),Z=H1w(Z,n),Z=X<Z):Z=!1}if(Z){J();M.disconnect();break}}}),(S=MqU())&&J1p.observe(S,{childList:!0,
subtree:!0}))};
MqU=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};
SBy=function(p){for(var J=[];p;)J.push(p),p=p.parentElement;return J};
H1w=function(p,J){var S=Array.from(J.children);J=p.indexOf(J);return J>0?S.indexOf(p[J-1]):-1};
mW=function(p,J,S){S=S===void 0?{}:S;return _.Kl(p,S,J)};
i1r=function(p){switch(p){case "MUSIC":return!0;default:return!1}};
Kzw=function(p){if(p=p==null?void 0:p.find(function(H){var M,X;return((M=_.e(H,RCI))==null?void 0:(X=M.inlinePlaybackBadgeData)==null?void 0:X.replicateAsTimestamp)===!0}))if(p=_.e(p,RCI),p==null?0:p.icon){var J,S;
if((p=(J=_.SfX(p.icon))==null?void 0:(S=J.clientResource)==null?void 0:S.imageName)&&i1r(p))return p}};
Z1e=function(p){return p==null?void 0:p.filter(function(J){return J.premiereTrailerBadgeRenderer})};
nVM=function(p){var J,S=p==null?void 0:(J=p.find(function(b){return b.thumbnailOverlayTimeStatusRenderer}))==null?void 0:J.thumbnailOverlayTimeStatusRenderer,H,M;
if((S==null?0:(H=S.icon)==null?0:H.iconType)&&i1r(S==null?void 0:(M=S.icon)==null?void 0:M.iconType)){var X;return{icon:S==null?void 0:(X=S.icon)==null?void 0:X.iconType}}var Z;if(J=p==null?void 0:(Z=p.find(function(b){return b.thumbnailOverlayBadgeViewModel}))==null?void 0:Z.thumbnailOverlayBadgeViewModel)if(Z=Kzw(J.thumbnailBadges))return{icon:Z};
var n;if(p=p==null?void 0:(n=p.find(function(b){return b.thumbnailBottomOverlayViewModel}))==null?void 0:n.thumbnailBottomOverlayViewModel)if(n=Kzw(p.badges))return{icon:n};
return{}};
vVy=function(p,J){var S=new GXI(function(X){M(X)},J);
J=_.K(_.eQ(b1f(S),void 0,"D2uee"));var H=J.next().value,M=J.next().value;_.lf(function(){Promise.resolve().then(function(){var X,Z=(X=p())!=null?X:{};S.playerControlsData=Z;S.lastSeenPlayerApi=_.h7(Z.playerApi);m9$(S)});
_.VY(function(){FzM(S)})},"xfRk8b");
return H};
fxP=function(p){return function(J){var S=p(),H={playerState:J};if(J===1){var M;(M=S.playerApi)==null||M.loadModule("captions")}if(J===0){var X;(X=S.playerApi)==null||X.unloadModule("captions")}J!==-1&&S.setState(H)}};
O1r=function(p){return function(J){p().setState({playbackRate:J})}};
A1l=function(p){return function(J){var S=p(),H=S.playerApi,M=H==null?void 0:H.getVideoData(),X=(M==null?void 0:M.isLive)||!1;M=M==null?void 0:M.video_id;X={videoDuration:V5P(H||void 0),isLive:X,videoId:M};X.videoId!==S.videoId&&(X=Object.assign({},_.g7w(H),X));if(J==null?0:J.playertype)X.playerType=J.playertype;if(H){X.captionsAvailable=_.cc(H);J=X;var Z;M=(Z=H.getStoryboardLevel(H.getNumberOfStoryboardLevels()-1))==null?void 0:Z.intervalMs;J.storyboardInterval=M?M/1E3:void 0;X.captionsAvailable&&
(X.captionsEnabled=_.$yI(H))}X.volumeMuted=!(H==null||!H.isMuted());S.setState(X)}};
PjI=function(p){return function(J){var S=p(),H=S.playerApi;if(H){var M=H.getPresentingPlayerType();J={playedTime:J||0,percentLoaded:H.getVideoLoadedFraction(),playerType:M};S.playerState===0&&(J.playedTime=S.videoDuration);S.isLive&&(M=H.getProgressState(M),J.playedTime-=M.seekableStart,J.videoDuration=V5P(H));if(S.playerType===1)H=!1;else{var X;if((X=S.uxConfig)==null?0:X.showCuedOverlay){var Z;H=!((Z=S.playerApi)==null?0:Z.getPlayerStateObject(S.playerType).isDomPaused)}else H=!0}H&&delete J.playedTime;
S.setState(J)}}};
zCN=function(p){return function(){var J=p(),S,H,M,X={volume:(M=(S=J.playerApi)==null?void 0:S.getVolume())!=null?M:0,volumeMuted:!((H=J.playerApi)==null||!H.isMuted())};J.setState(X)}};
$9e=function(p){return function(){var J=p(),S=J.playerApi;if(S){var H={captionsAvailable:_.cc(S)};H.captionsAvailable&&(H.captionsEnabled=_.$yI(S));J.setState(H)}}};
oVy=function(p){return{appApi:Object.assign({},_.WJi(),{showCaptionsToggleToast:function(J){var S,H;(H=(S=p()).showCaptionsToggleToast)==null||H.call(S,J)},
openInMiniplayer:function(){var J,S;(S=(J=p()).openInMiniplayer)==null||S.call(J)}})}};
eCI=function(p,J){var S,H,M;return!!(p==null?0:(S=p.playerResponse)==null?0:(H=S.playerConfig)==null?0:(M=H.inlinePlaybackConfig)==null?0:M.showScrubbingControls)&&!(J==null?0:J.hideScrubbingControls)};
_.Wzf=function(p){var J=!p.miniplayerIsActive;return[5,2,0].includes(p.miniplayerPlaybackState)||J};
QVP={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Cjy=function(p){this.onStepChangeCallback=function(){};
this.flowRenderer=p};
Cjy.prototype.getCurrentStep=function(){var p=this,J;return((J=this.flowRenderer.steps)!=null?J:[]).map(function(S){return _.e(S,_.wB)}).find(function(S){return S&&S.stepId===p.currentStepId})};
y1P=function(p,J){var S=J.flowStateEntityKey,H=p.flowStates.get(S);if(H)return H;J=new Cjy(J);p.flowStates.set(S,J);return J};
BGU=function(p,J){for(var S=_.K(p.flowStates.entries()),H=S.next();!H.done;H=S.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;if(M.flowRenderer.targetId===J){p.flowStates.delete(H);break}}};
U9I=function(p,J){p.onStepChangeCallback=J;p.onStepChangeCallback(p.getCurrentStep())};
sVp=function(p,J){var S=p.getCurrentStep();if(S&&S.stepId===J)return!0;var H;return((H=p.flowRenderer.steps)!=null?H:[]).map(function(M){return _.e(M,_.wB)}).find(function(M){return M&&M.stepId===J})?(p.currentStepId=J,p.onStepChangeCallback(p.getCurrentStep()),!0):!1};
gVP=function(p,J){var S,H,M,X,Z;_.G(function(n){if(!J.length)return n.return([]);S=[];H=_.K(J);for(M=H.next();!M.done;M=H.next())X=M.value,(Z=p.resolveIcon(X))&&!p.iconCache[Z.url]&&S.push(_.fJI(p,Z).then(function(){}).catch(function(){}));
return n.return(Promise.all(S))})};
tqP=function(p,J){var S=[];J=(new Set(J)).values();J=_.K(J);for(var H=J.next();!H.done;H=J.next()){H=H.value;for(var M=_.K(Object.values(QVP)),X=M.next();!X.done;X=M.next())S.push({iconName:H,iconStyle:X.value})}gVP(p.iconManager,S)};
_.hC$=function(p,J,S){var H=S!=null?S:p.iconsToFetch;H!=null&&H.length?J!==void 0&&J>=0?_.uS(_.wg,function(){tqP(p,H)},J):tqP(p,H):Promise.resolve()};
_.D9N=_.nt(function(p,J,S){if(p.nextWireType_!==5)return!1;_.bv(J,S,_.d4(p.decoder_));return!0},function(p,J,S){J=_.$4W(J);
J!=null&&(_.m7(p,S,5),_.Fs(p.encoder_,J))},_.iP8);
kXp=[0,_.YC,_.D9N,-1];_.NGN=function(){return _.Jk({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
GXI=function(p,J){var S=TGP,H=this;this.renderFn=p;this.listeners=S;this.context=J;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var M;this.lastSeenPlayerApi=_.h7((M=this.playerControlsData)==null?void 0:M.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.g7w(),void 0);_.z("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){b1f(H).setState({playerState:-1});H.resetRecentlyNavigatedJobId&&
_.wg.cancelJob(H.resetRecentlyNavigatedJobId);H.recentlyNavigated=!0;H.resetRecentlyNavigatedJobId=_.wg.addJob(function(){H.recentlyNavigated=!1},8,1E4)})};
GXI.prototype.setState=function(p){if(!_.z("mweb_player_skip_no_op_state_changes")||!qye(p,this.state))if(this.state=Object.assign({},this.state,p),!_.z("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)p=-1,_.z("player_controls_log_creation_killswitch")||ayp()||(p=(0,_.fO)()),_.Qf("pcu_s"),_.Qf("pcu_se"),_.Qf("pcu_rs"),this.renderFn(b1f(this)),_.Qf("pcu_re"),EXP(p),_.wg.addJob(function(){_.Qf("pcu_ap")},8)};
var b1f=function(p){if(p.getPlayerApi)var J=_.h7(p.getPlayerApi());else{var S;J=_.h7((S=p.playerControlsData)==null?void 0:S.playerApi)}return Object.assign({},p.state,{setState:p.boundSetState,domMeasurements:{progressBarLineRect:p.progressBarLineRect},playerApi:J,appApi:p.context.appApi,playerContainer:p.context.playerContainer,playerControlContainer:p.context.playerControlContainer,uxConfig:p.context.uxConfig})},m9$=function(p){p.listeners.forEach(function(J){p.eventListenerCleanupFunctions.push(J.register(function(){return b1f(p)},
function(){return p.getData()}))})},FzM=function(p){p.eventListenerCleanupFunctions.forEach(function(J){J()});
p.eventListenerCleanupFunctions.length=0};
GXI.prototype.getData=function(){return this.playerControlsData};var d9P=[0,_.Xh,_.w4,_.Xh,-1,_.w4,[0,_.xC,_.Ih,-1],_.Xh,-1];var u_P=[0,[1,2,3],_.pX,-2];var lxe=[0,_.Xh];var VqU=new _.Zz("crowdsourcedContextUserRatingFormFlowState");var qBr=new _.Zz("noteViewModel");var F3=new _.Zz("abuseReportFlowState");var axe=new _.Zz("feedbackFormFlowState");var EVf=new _.Zz("inputBoxViewModel");_.UXp=new _.Zz("lengthValidationRule");var gdP=new _.Zz("regexValidationRule");var htr=new _.Zz("selectedValidationRule");var YBj=[0,_.Ih,_.Xh,_.Zo];var r1M=[0,_.w4,-2,kXp];var jVl=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(jVl,_.Kt);jVl.prototype.getFeature=function(){return _.B_(this,6)};
jVl.prototype.hasFeature=function(){return _.$y(_.fu(this,6))!=null};var wfy=[0,_.Ih];var x9e=_.PG(jVl,[0,_.w4,-2,kXp,_.w4,_.Ih,-1,_.jJ,-1,_.Ih,-3,_.Qw4,_.xC,r1M,_.Ih,-1,d9P,_.jJ,_.Ih,YBj,[0,[0,_.Ih,-2,2,_.Ih,-1,[0,_.Ih],[0,_.Xh,_.Ih],[0,_.Xh],[0,_.Ih],2,[0,_.Xh,2,[0,_.Xh,-1],[0,_.Jd,u_P],1,[0,lxe],1,[0,_.Ih]],[0,_.xC],[0,[1,2],_.S_,[0,_.Ih],_.S_,[0,_.Ih,_.MR,-1]],[0,_.Xh],[0,_.Ih,[0,[1,2,3,4],_.S_,[0,[0,_.Ih],wfy],_.S_,[0,[0,_.Ih],wfy],_.S_,[0,wfy],_.S_,[0,[0,_.Ih],wfy]]],[0,_.Ih],1,[0,_.Ih,_.Xh],1,[0,_.Ih],[0,_.xC],[0,_.Ih,_.Xh,-1,[0,_.Ih,-4]],[0,_.Ih],[0,_.Ih,-2],1,[0,_.Ih],[0,
_.xC],[0,_.xC,_.Ih],1,[0,_.xC],[0]],_.Ih,_.Xh,_.YC,1,_.Hj,_.Ih,_.Xh],_.w4,_.Hj,_.Xh,-1,_.w4]);var c1w=new _.Zz("talkToRecsViewModel");var Ixy=new _.Zz("creatorGoalSetUpFlowDropdownItemViewModel");var Lzj=new _.Zz("creatorGoalSetUpFlowDropdownViewModel");var RCI=new _.Zz("thumbnailBadgeViewModel");var p9$=new _.Zz("checkboxGroupViewModel");var QCj=new _.Zz("checkboxItemViewModel");_.JPU=new _.Zz("radioButtonGroupViewModel");var SJp=new _.Zz("radioButtonItemViewModel");var rSP=new _.Zz("panelFooterViewModel");var Hlw=new _.Zz("ypcCancelRecurrenceCommand");var MUj=new _.Zz("cancellationFlowState");var FN$=new _.Zz("premiumPurchaseFlowState");var X9I=new _.Zz("surveyAnswerCardRenderer");var ilr=new _.Zz("showMoreButtonRenderer");var RaI;var KY$,Zlr=function(){if(KY$!==void 0)return KY$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;RaI===void 0&&(RaI=document.createElement("template"));var H=RaI;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return KY$=p};var vn=function(){var p=_.T.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};
_.Q(vn,_.T);_.R=vn.prototype;_.R.getGoalDropdownItems=function(){var p,J;return(J=_.e((p=this.data)==null?void 0:p.purchaseTargetDropdown,Lzj))==null?void 0:J.dropdownItems};
_.R.getTimerDropdownItems=function(){var p,J;return(J=_.e((p=this.data)==null?void 0:p.timerDropdown,Lzj))==null?void 0:J.dropdownItems};
_.R.getColorDropdownItems=function(){var p,J;return(J=_.e((p=this.data)==null?void 0:p.colorDropdown,Lzj))==null?void 0:J.dropdownItems};
_.R.getDropdownItemText=function(p){var J;return(J=_.e(p,Ixy))==null?void 0:J.itemLabel};
_.R.getDropdownItemValue=function(p){p=_.e(p,Ixy);return(p==null?void 0:p.timeLimit)||(p==null?void 0:p.purchaseTarget)||(p==null?void 0:p.eligiblePurchaseType)};
_.R.updateFlowState=function(p){_.IV(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:p}])};
_.R.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.R.updateGoalValue=function(p){this.goal=p.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.R.onTextValueChanged=function(p){this.goalDescription=p.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.R.updateTimerValue=function(p){this.timer=p.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.R.updateTierValue=function(p){this.tier=p.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.R.getButtonViewModel=function(p){p=(p==null?void 0:p.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var J,S=_.e((J=this.data)==null?void 0:J.startGoalButton,_.mO);return Object.assign({},S,{state:p})};
_.vh.Object.defineProperties(vn,{template:{configurable:!0,enumerable:!0,get:function(){return Zlr()}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],vn.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],vn.prototype,"goal",void 0);_.V([_.N(),_.Y("design:type",Object)],vn.prototype,"goalDescription",void 0);_.V([_.N(),_.Y("design:type",Object)],vn.prototype,"timer",void 0);_.V([_.N(),_.Y("design:type",Object)],vn.prototype,"tier",void 0);
_.V([_.N(),_.Y("design:type",Object)],vn.prototype,"startButtonId",void 0);_.V([_.N(),_.Y("design:type",Object)],vn.prototype,"exampleButtonId",void 0);_.V([_.sD({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],vn);_.l(vn,"yt-creator-goal-set-up-flow-view-model",function(){return Zlr()},{mode:0});var nOU;var GvI;var blp;var mqy=function(){return _.T.apply(this,arguments)||this};
_.Q(mqy,_.T);_.V([_.N(),_.Y("design:type",Object)],mqy.prototype,"data",void 0);_.V([_.sD({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],mqy);
_.l(mqy,"yt-survey-answer-card-renderer",function(){if(blp===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;GvI===void 0&&(GvI=document.createElement("template"));var H=GvI;S.call(J,H.content.cloneNode(!0),p.content.firstChild);blp=p}p=blp;return p},{mode:2});var FYw;var vOy;var f2=function(){return _.T.apply(this,arguments)||this};
_.Q(f2,_.T);_.R=f2.prototype;_.R.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.R.selectedItemChanged=function(p){_.IV(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[p.feedbackToken||""]}])};
_.R.surveyAnswerCardRendererClicked=function(p){if(p.target&&_.e(p.model.item,X9I)){var J=p.target;p=_.e(p.model.item,X9I);p.onTapCommand?_.JP(J,[p.onTapCommand],J):this.data.onTapCommand&&_.JP(J,[this.data.onTapCommand],J);this.selectedItemChanged(p)}};
_.R.checkIsCancellationStyle=function(p){return p==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.R.updateSelectedItemFromBinding=function(p){this.selectedItem=p.detail.value};
f2.prototype.onSelectedItemChanged=f2.prototype.onSelectedItemChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],f2.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],f2.prototype,"selectedItem",void 0);_.V([_.N({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],f2.prototype,"isCancellationStyle",void 0);
_.V([_.bO("selectedItem"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f2.prototype,"onSelectedItemChanged",null);_.V([_.sD({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],f2);
_.l(f2,"yt-survey-flow-step-renderer",function(){if(vOy===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;FYw===void 0&&(FYw=document.createElement("template"));var H=FYw;S.call(J,H.content.cloneNode(!0),p.content.firstChild);vOy=p}p=vOy;return p},{mode:2});var OC=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return p};
_.Q(OC,_.T);OC.prototype.handleSurveyFlowStepOptionChanged=function(p){this.ytdReduxBehavior.dispatch(_.Jk({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:p}));_.IV(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:p}}])};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],OC.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],OC.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],OC.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],OC);
_.l(OC,"ytd-survey-flow-step-renderer",function(){if(nOU!==void 0)return nOU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return nOU=p},{mode:1});_.P7N=_.d(function(p){var J=p.data;var S=p.hideDivider;var H=p.isChannelInfoCard;p={};return _.m("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.m("div",{class:_.XB("yt-profile-identity-info-view-model__frame",(p["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!J().channelBanner},p))},_.m(fOy,{profileIdentityInfoData:J}),_.m("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.m("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.m(_.AH,{data:function(){return J().avatar}},{avatarViewModel:_.iF})),_.m(OlU,{profileIdentityInfoData:J})),_.m(_.v,{cond:function(){return J().channelDescription},
then:function(M){var X={};return _.m("div",{class:_.XB((X["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(H==null||!H())},X["yt-profile-identity-info-view-model__channel-description"]=function(){return!(H==null?0:H())},X))},M)}}),_.m(APy,{profileIdentityInfoData:J}),_.m(_.v,{cond:function(){return!(S==null?0:S())},
then:function(){return _.m("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"qh");
_.P7N.idomCompat=!0;var APy=_.d(function(p){var J=p.profileIdentityInfoData;return _.m("div",{class:"yt-profile-identity-info-view-model__buttons"},_.m(_.dY,{each:function(){return J().subscribeButton?[J().subscribeButton,J().channelAccess]:[J().channelAccess]}},function(S){return _.m("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.m("div",{class:"yt-profile-identity-info-view-model--button"},_.m(_.AH,{data:function(){return S}},{buttonViewModel:_.D0,
subscribeButtonViewModel:_.iG})))}))},"rh"),OlU=_.d(function(p){var J=p.profileIdentityInfoData;
return _.m("div",{class:"yt-profile-identity-info-view-model__trio"},_.m("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.m(zar,{profileIdentityInfoData:J}),_.m(_.AH,{data:function(){return J().threeDotMenu}},{buttonViewModel:_.D0})),_.m($qI,{profileIdentityInfoData:J}))},"sh"),zar=_.d(function(p){var J=p.profileIdentityInfoData;
return _.m("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.m("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return J().channelDisplayName}),_.m(_.v,{cond:function(){return J().verifiedOrOacBadge},
then:function(S){return _.m("div",{class:"yt-profile-identity-info-view-model__badge"},_.m(_.a4,{data:function(){return{thumbnails:[{url:S().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"th"),fOy=_.d(function(p){var J=p.profileIdentityInfoData;
return _.m("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.m(_.AH,{data:function(){var S=J().channelBanner;if(S)return{imageBannerViewModel:{image:S.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(S){return _.m("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.m(_.zR,{data:S.data,
isPositionRelative:!0}))}}))},"uh"),$qI=_.d(function(p){var J=p.profileIdentityInfoData;
return _.m("div",{class:"yt-profile-identity-info-view-model__metadata"},_.m("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.m("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return J().channelHandle}),_.m(_.v,{cond:function(){return J().channelPronouns&&J().channelHandle},
then:function(){return _.m("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.m("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return J().channelPronouns})),_.m("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.m("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return J().leftOfBulletInfo}),_.m(_.v,{cond:function(){return J().leftOfBulletInfo&&J().rightOfBulletInfo},
then:function(){return _.m("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.m("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return J().rightOfBulletInfo})))},"vh");var oO$;var eaI=function(){return _.T.apply(this,arguments)||this};
_.Q(eaI,_.T);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],eaI.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],eaI.prototype,"data",void 0);_.V([_.gw({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],eaI);
_.l(eaI,"ytd-channel-history-renderer",function(){if(oO$!==void 0)return oO$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return oO$=p},{mode:1});var WYP;var Q5M=function(){return _.T.apply(this,arguments)||this};
_.Q(Q5M,_.T);_.V([_.N(),_.Y("design:type",Object)],Q5M.prototype,"data",void 0);_.V([_.gw({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],Q5M);
_.l(Q5M,"ytd-feature-enablement-info-renderer",function(){if(WYP!==void 0)return WYP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return WYP=p},{mode:1});var C7U;var yPe;var AB=function(){var p=_.T.apply(this,arguments)||this;p.textBoxMaxLength=_.z("enable_tvod_campaign_code_integration")?15:12;return p};
_.Q(AB,_.T);_.R=AB.prototype;_.R.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.R.onSubmit=function(){var p=this.data.serviceEndpoint,J=_.e(p,_.El);J&&p&&(J.couponCode=this.userInput,_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}}))};
_.R.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=_.z("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.R.computeStyle=function(p){return p};
_.R.computeShowValidationBelowInput=function(p){return p!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.R.updateUserInputFromBinding=function(p){this.userInput=p.currentTarget.value};
_.R.updateShowErrorMessageFromBinding=function(p){this.showErrorMessage=p.detail.value};
_.vh.Object.defineProperties(AB.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
AB.prototype.dataChanged=AB.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],AB.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],AB.prototype,"userInput",void 0);_.V([_.N(),_.Y("design:type",Boolean)],AB.prototype,"disableApplyButton",void 0);_.V([_.N(),_.Y("design:type",Boolean)],AB.prototype,"hideApplyButton",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],AB.prototype,"hideErrorMessage",void 0);_.V([_.N(),_.Y("design:type",Boolean)],AB.prototype,"showTick",void 0);_.V([_.N(),_.Y("design:type",Boolean)],AB.prototype,"showErrorMessage",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],AB.prototype,"couponStyle",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.Y("design:type",Boolean)],AB.prototype,"showValidationBelowInput",void 0);_.V([_.N(),_.Y("design:type",Object)],AB.prototype,"textBoxMaxLength",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AB.prototype,"dataChanged",null);
_.V([_.U("showTick","showErrorMessage","userInput"),_.Y("design:type",String),_.Y("design:paramtypes",[])],AB.prototype,"validationState",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],AB);
_.l(AB,"ytd-ypc-coupon-renderer",function(){if(yPe!==void 0)return yPe;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return yPe=p},{mode:1});var Pn=function(){return _.T.apply(this,arguments)||this};
_.Q(Pn,_.T);Pn.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"}}}};
Pn.prototype.computeStyle=function(p){return p};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Pn.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],Pn.prototype,"buttonStyle",void 0);_.V([_.gw({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Pn);
_.l(Pn,"ytd-flow-bottom-bar-renderer",function(){if(C7U!==void 0)return C7U;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return C7U=p},{mode:1});var BIe;var Uqr;var s5I;var zp=function(){return _.T.apply(this,arguments)||this};
_.Q(zp,_.T);zp.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zp.prototype.focus=function(p){this.title&&_.nH(this.title,p)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],zp.prototype,"data",void 0);_.V([_.FM("#title"),_.Y("design:type",HTMLElement)],zp.prototype,"title",void 0);_.V([_.gw({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],zp);
_.l(zp,"ytd-flow-top-bar-renderer",function(){if(s5I!==void 0)return s5I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return s5I=p},{mode:1});var gOw;var tUP;var haN;var $J=function(){return _.T.apply(this,arguments)||this};
_.Q($J,_.T);$J.prototype.freeTextValueChanged=function(){_.IV(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
$J.prototype.updateFreeTextValueFromBinding=function(p){this.freeTextValue=p.detail.value};
_.vh.Object.defineProperties($J.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var p,J,S=(J=(p=this.data)==null?void 0:p.responseMaxLength)!=null?J:500,H;return((H=this.freeTextValue)!=null?H:"").length>=S?"maxed-out":""}}});
$J.prototype.freeTextValueChanged=$J.prototype.freeTextValueChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],$J.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],$J.prototype,"freeTextValue",void 0);_.V([_.FM("#user-input"),_.Y("design:type",HTMLTextAreaElement)],$J.prototype,"input",void 0);
_.V([_.U("freeTextValue"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$J.prototype,"characterLimitClass",null);_.V([_.bO("freeTextValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$J.prototype,"freeTextValueChanged",null);_.V([_.sD({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],$J);
_.l($J,"yt-free-text-input-flow-step-renderer",function(){if(haN===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;tUP===void 0&&(tUP=document.createElement("template"));var H=tUP;S.call(J,H.content.cloneNode(!0),p.content.firstChild);haN=p}p=haN;return p},{mode:2});var ok=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return p};
_.Q(ok,_.T);ok.prototype.handleFreeTextFlowStepInputChanged=function(p){_.IV(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:p}}])};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],ok.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],ok.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ok.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],ok);
_.l(ok,"ytd-free-text-input-flow-step-renderer",function(){if(gOw!==void 0)return gOw;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return gOw=p},{mode:1});var Dqw;var kvU;var NIe=function(){return _.T.apply(this,arguments)||this};
_.Q(NIe,_.T);_.V([_.N(),_.Y("design:type",Object)],NIe.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],NIe);
_.l(NIe,"ytd-metadata-line-renderer",function(){if(kvU!==void 0)return kvU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return kvU=p},{mode:1});var eV=function(){return _.T.apply(this,arguments)||this};
_.Q(eV,_.T);eV.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],eV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],eV.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eV.prototype,"isMasthead",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],eV);
_.l(eV,"ytd-media-product-renderer",function(){if(Dqw!==void 0)return Dqw;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Dqw=p},{mode:1});var TIP;var Wn=function(){return _.T.apply(this,arguments)||this};
_.Q(Wn,_.T);Wn.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Wn.prototype.onBillboardImageLoaded=function(){_.cf(this.hostElement,"yt-refit")};
Wn.prototype.onBillboardImageLoaded=Wn.prototype.onBillboardImageLoaded;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Wn.prototype,"data",void 0);_.V([_.FM("#billboardImage"),_.Y("design:type",Object)],Wn.prototype,"billboardImage",void 0);_.V([_.GI("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wn.prototype,"onBillboardImageLoaded",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Wn);
_.l(Wn,"ytd-billboard-masthead-renderer",function(){if(TIP!==void 0)return TIP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return TIP=p},{mode:1});var dqP;var Qu=function(){var p=_.T.apply(this,arguments)||this;p.smallSize=!1;return p};
_.Q(Qu,_.T);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Qu.prototype,"ytComponentBehaviorType",void 0);_.V([_.N(),_.Y("design:type",Object)],Qu.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Qu.prototype,"smallSize",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Qu);
_.l(Qu,"ytd-bullet-formatted-string",function(){if(dqP!==void 0)return dqP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return dqP=p},{mode:1});var u6I;var C2=function(){return _.T.apply(this,arguments)||this};
_.Q(C2,_.T);C2.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],C2.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],C2);
_.l(C2,"ytd-offer-detail-renderer",function(){if(u6I!==void 0)return u6I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return u6I=p},{mode:1});var lOU;var yu=function(){return _.T.apply(this,arguments)||this};
_.Q(yu,_.T);yu.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yu.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],yu);
_.l(yu,"ytd-offer-detail-step-renderer",function(){if(lOU!==void 0)return lOU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return lOU=p},{mode:1});var VUI;var Bn=function(){var p=_.T.apply(this,arguments)||this;p.isInOfferModule=!1;return p};
_.Q(Bn,_.T);_.R=Bn.prototype;_.R.computeHasEndpoint=function(){var p;return!((p=this.data)==null||!p.onClickCommand)};
_.R.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")};
_.R.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)};
_.R.handleClickEvent=function(){var p;if((p=this.data)==null?0:p.onClickCommand){var J;this.componentBehavior.resolveCommand((J=this.data)==null?void 0:J.onClickCommand)}};
_.R.onContentKeyDown=function(p){p.key==="Enter"?this.handleClickEvent(p):p.key===" "&&p.preventDefault()};
_.R.onContentKeyUp=function(p){p.key===" "&&this.handleClickEvent(p)};
Bn.prototype.dataChanged=Bn.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Bn.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Bn.prototype,"data",void 0);_.V([_.N({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Bn.prototype,"hasEndpoint",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Bn.prototype,"isInOfferModule",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bn.prototype,"dataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Bn);
_.l(Bn,"ytd-channel-masthead-renderer",function(){if(VUI!==void 0)return VUI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return VUI=p},{mode:1});var qJy;var UC=function(){var p=_.T.apply(this,arguments)||this;p.thumbnailObjectFit="CONTAIN";p.thumbnailObjectPosition="LEFT";p.isExpanded=!1;return p};
_.Q(UC,_.T);_.R=UC.prototype;_.R.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.R.dataChanged=function(){this.resetStates()};
_.R.computeisTapOnOfferInfoContainerEnabled=function(){var p;return((p=this.data)==null?void 0:p.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.R.onExpandBtnClick=function(){var p,J=_.e((p=this.data)==null?void 0:p.showMoreButtonRenderer,ilr);J&&_.VK(_.bC(),J.trackingParams);this.isExpanded=!this.isExpanded};
_.R.onOfferInfoClick=function(p){this.isTapOnOfferInfoContainerEnabled&&(_.jK(_.Er(p)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.wn(_.Er(p)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.R.onBottomBarClick=function(){this.executeTapCommand()};
_.R.executeTapCommand=function(){var p,J=(p=this.data)==null?void 0:p.tapCommand;J&&this.ytComponentBehavior.resolveCommand(J)};
_.R.resetStates=function(){this.isExpanded=!1};
_.vh.Object.defineProperties(UC.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),J,S,H;return((J=this.data)==null?void 0:J.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&p&&!!((S=this.data)==null?0:(H=S.benefits)==null?0:H.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,J,S;return((J=_.e((p=this.data)==null?void 0:p.showMoreButtonRenderer,ilr))==null?void 0:J.showMoreButtonTitle)||((S=this.data)==null?void 0:S.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return((J=_.e((p=this.data)==null?void 0:p.showMoreButtonRenderer,ilr))==null?void 0:J.showLessButtonTitle)||((S=this.data)==null?void 0:S.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var p;return(p=this.showLessButtonTitle)!=null?p:""}var J;return(J=this.showMoreButtonTitle)!=null?J:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return((p=this.data)==null?void 0:p.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((J=this.data)==null?0:J.footerTitle)||((S=this.data)==null?0:S.footerSubtitle))}}});
UC.prototype.dataChanged=UC.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],UC.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",String)],UC.prototype,"thumbnailObjectFit",void 0);
_.V([_.N(),_.Y("design:type",String)],UC.prototype,"thumbnailObjectPosition",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.Y("design:type",Boolean)],UC.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.V([_.N(),_.Y("design:type",Object)],UC.prototype,"isExpanded",void 0);_.V([_.N(),_.Y("design:type",Object)],UC.prototype,"data",void 0);_.V([_.N({computed:"computeIcon_(data.footerIcon)"}),_.Y("design:type",String)],UC.prototype,"icon",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UC.prototype,"dataChanged",null);_.V([_.U("data.thumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UC.prototype,"hasThumbnail",null);_.V([_.U("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UC.prototype,"enableExpandButton",null);
_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UC.prototype,"enableOfferContentIcon",null);_.V([_.U("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UC.prototype,"showMoreButtonTitle",null);_.V([_.U("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UC.prototype,"showLessButtonTitle",null);
_.V([_.U("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],UC.prototype,"expandedBtnText",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UC.prototype,"enableBottomBar",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],UC);
_.l(UC,"ytd-offer-card-renderer",function(){if(qJy!==void 0)return qJy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return qJy=p},{mode:1});var aOl;var sC=function(){return _.T.apply(this,arguments)||this};
_.Q(sC,_.T);sC.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"}}}};
sC.prototype.onClick=function(p){if(!_.jK(p.composedPath()||[],this.hostElement,["A".toString()])){var J,S;if((p=(S=_.e((J=this.data)==null?void 0:J.actionButton,_.Za))==null?void 0:S.command)&&!this.ytComponentBehavior.resolveCommand(p)){var H;(H=_.bC())==null||H.clickCommand(p);_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}})}}};
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],sC.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],sC.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],sC);
_.l(sC,"ytd-offer-content-renderer",function(){if(aOl!==void 0)return aOl;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return aOl=p},{mode:1});var EOP;var gz=function(){return _.T.apply(this,arguments)||this};
_.Q(gz,_.T);gz.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.vh.Object.defineProperties(gz.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var p,J;return!((p=this.data)==null||!p.title)||!((J=this.data)==null||!J.description)}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],gz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],gz.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gz.prototype,"hasHeaderData",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],gz);
_.l(gz,"ytd-offer-section-renderer",function(){if(EOP!==void 0)return EOP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return EOP=p},{mode:1});var YJf;var tB=function(){return _.T.apply(this,arguments)||this};
_.Q(tB,_.T);
tB.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"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],tB.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],tB);
_.l(tB,"ytd-offer-selection-step-renderer",function(){if(YJf!==void 0)return YJf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return YJf=p},{mode:1});var rPP;var hB=function(){return _.T.apply(this,arguments)||this};
_.Q(hB,_.T);hB.prototype.computeStyle=function(p){return p};
hB.prototype.computeImageWidth=function(p){return p==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.V([_.N({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Y("design:type",String)],hB.prototype,"containerStyle",void 0);_.V([_.N({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.Y("design:type",String)],hB.prototype,"imageWidth",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],hB.prototype,"data",void 0);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],hB);
_.l(hB,"ytd-confirmation-masthead-renderer",function(){if(rPP!==void 0)return rPP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return rPP=p},{mode:1});var j5j;var Di=function(){return _.T.apply(this,arguments)||this};
_.Q(Di,_.T);Di.prototype.computeStyle=function(p){return p};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Di.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Y("design:type",String)],Di.prototype,"containerStyle",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Di);
_.l(Di,"ytd-purchase-complete-detail-renderer",function(){if(j5j!==void 0)return j5j;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return j5j=p},{mode:1});var w9e;var kJ=function(){var p=_.T.apply(this,arguments)||this;p.scriptsAppended=!1;return p};
_.Q(kJ,_.T);kJ.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"}}}};
kJ.prototype.onDataChanged=function(){var p=this.get("data.gtmId");p&&(_.xw(p,_.jn("GL","")),this.setupConversionTracking())};
kJ.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}};
kJ.prototype.onDataChanged=kJ.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],kJ.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],kJ.prototype,"scriptsAppended",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kJ.prototype,"onDataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],kJ);
_.l(kJ,"ytd-purchase-complete-step-renderer",function(){if(w9e!==void 0)return w9e;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return w9e=p},{mode:1});var xqr;var Nx=function(){return _.T.apply(this,arguments)||this};
_.Q(Nx,_.T);Nx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Nx.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Nx);
_.l(Nx,"ytd-ypc-transaction-error-message-renderer",function(){if(xqr!==void 0)return xqr;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return xqr=p},{mode:1});var cPf;var ION;var Tp=function(){var p=_.T.apply(this,arguments)||this;p.handlePhoneVerificationSuccess=function(J){if(p.isValidPhoneVerificationCompletionMessageEvent(J)){var S;((S=p.data)==null?0:S.nextStepCommand)&&p.ytComponentBehavior.resolveCommand(p.data.nextStepCommand)}};
return p};
_.Q(Tp,_.T);Tp.prototype.isValidPhoneVerificationCompletionMessageEvent=function(p){if(p.data!=="yt-phone-verification-complete")return!1;p=_.nQ(p.origin);return p!==null&&p.includes("youtube.com")};
Tp.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Tp.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Tp.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Tp.prototype,"data",void 0);_.V([_.sD({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Tp);
_.l(Tp,"yt-feature-enablement-soft-entry-renderer",function(){if(ION===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;cPf===void 0&&(cPf=document.createElement("template"));var H=cPf;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ION=p}p=ION;return p},{mode:1});var LYy;var pqP;var Jkw;var S4w;var H$P=function(){return _.T.apply(this,arguments)||this};
_.Q(H$P,_.T);_.V([_.N(),_.Y("design:type",Object)],H$P.prototype,"data",void 0);_.V([_.sD({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],H$P);
_.l(H$P,"yt-benefits-item-renderer",function(){if(S4w===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Jkw===void 0&&(Jkw=document.createElement("template"));var H=Jkw;S.call(J,H.content.cloneNode(!0),p.content.firstChild);S4w=p}p=S4w;return p},{mode:2});var MxI;var Xqy;var dz=function(){return _.T.apply(this,arguments)||this};
_.Q(dz,_.T);dz.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
dz.prototype.computeisWithoutPadding=function(){var p;return((p=this.data)==null?void 0:p.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],dz.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.Y("design:type",Boolean)],dz.prototype,"isWithoutPadding",void 0);_.V([_.sD({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],dz);
_.l(dz,"yt-benefits-section-renderer",function(){if(Xqy===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;MxI===void 0&&(MxI=document.createElement("template"));var H=MxI;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Xqy=p}p=Xqy;return p},{mode:2});var uX=function(){return _.T.apply(this,arguments)||this};
_.Q(uX,_.T);uX.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
uX.prototype.computeisUsingLargeWidth=function(){var p;return((p=this.data)==null?void 0:p.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],uX.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.Y("design:type",Boolean)],uX.prototype,"isUsingLargeWidth",void 0);_.V([_.sD({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],uX);
_.l(uX,"yt-benefits-flow-step-renderer",function(){if(pqP===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;LYy===void 0&&(LYy=document.createElement("template"));var H=LYy;S.call(J,H.content.cloneNode(!0),p.content.firstChild);pqP=p}p=pqP;return p},{mode:2});var i$I;var R0j;var lX=function(){return _.T.apply(this,arguments)||this};
_.Q(lX,_.T);lX.prototype.checkIsUsingLargeWidth=function(){var p;return((p=this.data)==null?void 0:p.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.V([_.N(),_.Y("design:type",Object)],lX.prototype,"data",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.V([_.N({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.Y("design:type",Boolean)],lX.prototype,"isUsingLargeWidth",void 0);_.V([_.sD({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],lX);
_.l(lX,"yt-confirmation-flow-step-renderer",function(){if(R0j===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;i$I===void 0&&(i$I=document.createElement("template"));var H=i$I;S.call(J,H.content.cloneNode(!0),p.content.firstChild);R0j=p}p=R0j;return p},{mode:2});var Kg$;var Z$r;var nZP=function(){return _.T.apply(this,arguments)||this};
_.Q(nZP,_.T);_.V([_.N(),_.Y("design:type",Object)],nZP.prototype,"data",void 0);_.V([_.sD({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],nZP);
_.l(nZP,"yt-info-flow-step-renderer",function(){if(Z$r===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Kg$===void 0&&(Kg$=document.createElement("template"));var H=Kg$;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Z$r=p}p=Z$r;return p},{mode:2});var Grl;var b$w;var mwM=function(){return _.T.apply(this,arguments)||this};
_.Q(mwM,_.T);_.V([_.N(),_.Y("design:type",Object)],mwM.prototype,"data",void 0);_.V([_.sD({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],mwM);
_.l(mwM,"yt-info-list-flow-step-renderer",function(){if(b$w===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Grl===void 0&&(Grl=document.createElement("template"));var H=Grl;S.call(J,H.content.cloneNode(!0),p.content.firstChild);b$w=p}p=b$w;return p},{mode:2});var Fgf=_.d(function(p){var J=p.data;return _.m("styled-text-view-model",{class:_.XB("ytStyledTextViewModelHost",function(){return MT$(J().fontAttributes)},function(){return Hzr(J().color)})},_.m(_.v3,{text:function(){return J().text},
ariaLabel:function(){var S,H,M;return(M=(S=J().accessibility)==null?void 0:(H=S.accessibilityData)==null?void 0:H.label)!=null?M:""}}))},"wh");
Fgf.idomCompat=!0;var vZU=_.d(function(p){var J=function(){var M,X,Z,n;return(n=(Z=(M=p.alt)==null?void 0:M.call(p))!=null?Z:(X=p.data().accessibilityData)==null?void 0:X.label)!=null?n:""},S=function(){return p.data().imageWidth},H=function(){return p.data().imageHeight};
return _.m("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.m(_.v,{cond:function(){var M=p.data();if(M){var X,Z,n;var b=((X=_.vO().resolve(_.F9(_.uC)))==null?0:X())?(Z=M.imageDark)!=null?Z:M.imageLight:(n=M.imageLight)!=null?n:M.imageDark}else b=void 0;return b},
then:function(M){return _.m(_.a4,Object.assign({},p,{data:M,alt:J,targetWidth:S,targetHeight:H,preserveHeight:!0,preserveWidth:!0}))}}))},"xh");
vZU.idomCompat=!0;var Vu=_.d(function(p){var J=p.data;p=_.rw(function(){return J().slots},[]);
var S=_.rw(function(){return J().layoutProperties},{}),H=_.vO().resolve(_.VM);
return _.m("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:IyN(S,H)},_.m(_.dY,{each:p,keyBy:"INDEX"},function(M){return _.m("div",{class:"ytContainerLayoutViewModelSlot",style:IyN(function(){return M().layoutProperties},H)},_.m(_.AH,{data:function(){return M().contents}},{containerLayoutViewModel:Vu,
badgeViewModel:_.Qy,buttonViewModel:_.D0,styledTextViewModel:Fgf,contentPreviewImageViewModel:function(X){return _.m(_.D2,{data:X.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(X){return _.m(vZU,{data:X.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"yh");
Vu.idomCompat=!0;var fYP=_.d(function(p){var J=p.data;var S=p.stateFns;var H=function(){var F=J(),f=F.productId;return!(!F.clearGroupId&&!f)},M=function(){var F=J(),f=F.clearGroupId;
return(F=F.productId)?S().isProductSelected(F):f?S().getSelectedProductByGroupId(f)==null:!1},X=function(F){var f=J(),O=f.clearGroupId;
if(f=f.productId)S().onProductSelected(f),F==null||F.forEach(function(A){_.Dm(A)});
else if(O)S().onClearGroupSelected(O)},Z=function(){var F=J(),f=F.clearGroupId;
if(F=F.productId){var O;return"group:"+(((O=S().getProductById(F))==null?void 0:O.groupId)||"")}return f?"group:"+f:""},n=_.rw(function(){return J().header},[]),b=_.rw(function(){return J().body},[]);
return _.m("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.m(_.v,{cond:function(){return n().length>0||H()},
then:function(){return _.m("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.m("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.m(_.AH,{data:n},{containerLayoutViewModel:function(F){return _.m("div",{class:"ytPdpCardSectionViewModelContentItem"},_.m(Vu,{data:F.data}))},
styledTextViewModel:function(F){return _.m("div",{class:"ytPdpCardSectionViewModelContentItem"},_.m(Fgf,{data:F.data}))}})),_.m(_.v,{cond:H,
then:function(){return _.m("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.m(_.F1,{checked:M,name:Z,onChange:function(){X(J().onSelect)}}))}}))}}),_.m(_.v,{cond:function(){return b().length>0},
then:function(){return _.m("div",null,_.m(_.AH,{data:b},{containerLayoutViewModel:function(F){return _.m("div",{class:"ytPdpCardSectionViewModelContentItem"},_.m(Vu,{data:F.data}))}}))}}))},"zh");
fYP.idomCompat=!0;var O$j=_.d(function(p){var J=p.data;var S=p.stateFns;return _.m("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.m(_.v,{cond:function(){return J().banner},
then:function(H){return _.m("div",{class:"ytPdpCardViewModelBanner"},_.m(_.v3,{text:H}))}}),_.m(_.AH,{data:function(){return J().sections}},{pdpCardSectionViewModel:function(H){H=H.data;
var M={};return _.m("div",{class:_.XB("ytPdpCardViewModelSectionContainer",(M.ytPdpCardViewModelShowDividers=function(){return J().showDividers},M))},_.m(fYP,{data:H,
stateFns:S}))}}))},"Ah");
O$j.idomCompat=!0;var AkU=_.d(function(p){var J=p.data;var S=p.isOverlay;p={};return _.m("pdp-masthead-view-model",{class:_.XB("ytPdpMastheadViewModelHost",(p.ytPdpMastheadViewModelIsOverlay=S,p))},_.m(_.AH,{data:function(){return J().image}},{contentPreviewImageViewModel:_.D2,
themedImageViewModel:function(H){return _.m(vZU,{data:H.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.m(_.v,{cond:function(){return J().title},
then:function(H){return _.m("h1",{class:"ytPdpMastheadViewModelHeading"},_.m(_.v3,{text:H,isOverlay:S}))}}),_.m(_.dY,{each:function(){var H;
return(H=J().finePrint)!=null?H:[]}},function(H){return _.m("div",{class:"ytPdpMastheadViewModelFinePrint"},_.m(_.v3,{text:H,
isOverlay:S}))}))},"Bh");
AkU.idomCompat=!0;var PoP=_.d(function(p){var J=p.data;var S=p.stateFns;var H=function(){return"pdp-pricing-group-selector-"+J().pricingGroupAttributeIds},M=_.rw(function(){return J().pricingGroupSelectorSectionHeader});
return _.m("pdp-pricing-group-selector-view-model",null,_.m(_.v,{cond:function(){return!!M()},
then:function(){return _.m(_.AH,{data:M},{sectionHeaderViewModel:function(X){X=X.data;var Z={};return _.m("div",{class:_.XB("ytPdpPricingGroupSelectorViewModelSectionHeader",(Z.ytPdpPricingGroupSelectorViewModelFullBleed=!0,Z.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,Z))},_.m(_.EP,{data:X}))}})}}),_.m("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.m(_.dY,{each:function(){var X=S().getSelectedProductByGroupId(J().groupId);
if(!X)return _.wf(Error("Zj`"+J().groupId)),[];var Z,n=(Z=J().pricingGroupAttributeIds)!=null?Z:[],b;if((b=X.pricingGroups)==null||!b.length||!n.length)return[];Z=X.pricingGroups.filter(function(A){return n.length?A.pricingGroupAttributes.every(function(P){return n.includes(P)}):!1});
X=[];if(n.length>0){Z=[].concat(_.dW(Z));b=_.K(n);for(var F=b.next(),f={};!F.done;f={targetAttrId:void 0},F=b.next())f.targetAttrId=F.value,F=Z.findIndex(function(A){return function(P){return P.pricingGroupAttributes.includes(A.targetAttrId)}}(f)),F!==-1&&(X.push(Z[F]),Z.splice(F,1))}var O=S().getSelectedPricingGroupAttributesByGroupId(J().groupId);
return X.map(function(A){var P=!1;O&&A.pricingGroupAttributes&&(P=n2(A.pricingGroupAttributes,O));return{pricingGroup:A,isSelected:P}})},
keyBy:function(X){return X.pricingGroup.pricingGroupId}},function(X){return _.m("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.m("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.m(_.AH,{data:function(){return X().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Vu})),_.m("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.m(_.F1,{checked:function(){return X().isSelected},
name:H,onClick:function(){var Z=X().pricingGroup;S().onPricingGroupSelected(Z.pricingGroupId);if(Z=_.sa(Z.onSelectPricingGroup)){var n;(n=_.vO().resolve(_.Ov))==null||n.resolveCommand(Z)}}})))})))},"Ch");
PoP.idomCompat=!0;var z0j=_.d(function(p){var J=p.data;var S=p.stateFns;var H=function(){var Z=S().getSelectedPricingOptions().map(function(F){return F.pricingOptionId}),n=S().getSelectedProductByGroupId(J().groupId);
if(!n)return _.wf(Error("$j`"+J().groupId)),[];var b=S().getSelectedPricingGroupAttributesByGroupId(J().groupId);return KNP(n.pricingOptions,b,Z)},M=_.rw(function(){return J().pricingOptionSelectorSectionHeader}),X=function(){return H().length>1};
return _.m("pdp-pricing-option-selector-view-model",null,_.m(_.v,{cond:function(){return!!M()&&X()},
then:function(){return _.m(_.AH,{data:M},{sectionHeaderViewModel:function(Z){Z=Z.data;var n={};return _.m("div",{class:_.XB("ytPdpPricingOptionSelectorViewModelSectionHeader",(n.ytPdpPricingOptionSelectorViewModelFullBleed=!0,n.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,n))},_.m(_.EP,{data:Z}))}})}}),_.m(_.v,{cond:X,
then:function(){return _.m("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.m(_.dY,{each:H,keyBy:"INDEX"},function(Z){return _.m("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.m("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.m(_.AH,{data:function(){return Z().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Vu})),_.m("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.m(_.F1,{checked:function(){return Z().isSelected},
onClick:function(){S().onPricingOptionSelected(Z().pricingOption.pricingOptionId);var n=Z().pricingOption.onSelectPricingOption;if(n=_.sa(n)){var b;(b=_.vO().resolve(_.Ov))==null||b.resolveCommand(n)}}})))}))}}))},"Dh");
z0j.idomCompat=!0;var $we=_.d(function(p){var J=p.data;var S=p.stateFns;return _.m("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.m(_.AH,{data:function(){var H,M;return(M=(H=S().getSelectedPricingOptions()[0])==null?void 0:H.primaryButton)!=null?M:J().emptyStateButton}},{buttonViewModel:_.D0}))},"Eh");
$we.idomCompat=!0;var oZP=_.d(function(p){var J=p.stateFns;return _.m("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.m(_.AH,{data:function(){return J().getSelectedPricingOptions().flatMap(function(S){return S.summaryLines}).filter(function(S){return!!S})}},{containerLayoutViewModel:function(S){return _.m("div",{class:"ytPdpSummaryViewModelLineItem"},_.m(Vu,{data:S.data}))}}))},"Fh");
oZP.idomCompat=!0;var e0w=_.d(function(p){function J(W){var y=Z();_.Y3(_.BY("pdpStateEntity",y,{key:y,selectedPricingOptions:W}))}
var S=p.data;var H=p.internalScrolling;var M=p.stateFnsForTesting;var X=_.rw(function(){return S().allProducts},[]),Z=_.rw(function(){return S().pdpStateEntityKey},""),n=_.v$(Zzj,Z),b=_.BW(function(){_.a2(!0);
var W;return(W=M==null?void 0:M())!=null?W:Gdp(n,X,J)},void 0,"Pzdsic"),F=_.rw(function(){return S().body},[]),f=_.rw(function(){return S().columnBreakHints},[]),O=function(){return S().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},A=function(){return O()||S().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},P=_.BW(function(){var W=_.dT(S().background),y;
if(W==null?0:(y=W.sources)==null?0:y.length){var t=t===void 0?!0:t;W=_.Ry9(void 0,W.sources,void 0,t,t?1E3:void 0,t?void 0:1E3)}else W=null;return W},void 0,"RDPOae");
_.ad(function(){var W=S().onStartCommand;if(W&&(W=_.sa(W))){var y;(y=_.vO().resolve(_.Ov))==null||y.resolveCommand(W)}});
p={};return _.m("pdp-view-model",{class:_.XB("ytPdpViewModelHost",(p.ytPdpViewModelHasBackground=function(){return A()||!!P()},p.ytPdpViewModelHasDarkBackground=A,p.ytPdpViewModelHasScrim=O,p.ytPdpViewModelInternalScrolling=H,p.ytPdpViewModelForceSingleColumn=function(){return f().length===0},p)),
style:_.G7({"--pdp-view-model-background":function(){return P()?"url("+P()+")":void 0}})},_.m("div",{class:"ytPdpViewModelColumnContainer"},_.m(_.dY,{each:function(){return bzP(F(),f())},
keyBy:"INDEX"},function(W){return _.m("div",{class:"ytPdpViewModelColumn"},_.m(_.AH,{data:W},{containerLayoutViewModel:function(y){return _.m(qx,null,_.m(Vu,{data:y.data}))},
dividerViewModel:function(y){return _.m(qx,{fullBleed:!0},_.m(_.Z6v,{data:y.data}))},
pdpCardViewModel:function(y){return _.m(qx,null,_.m(O$j,{data:y.data,stateFns:b}))},
pdpMastheadViewModel:function(y){return _.m(qx,null,_.m(AkU,{data:y.data,isOverlay:A}))},
pdpPricingGroupSelectorViewModel:function(y){return _.m(qx,null,_.m(PoP,{data:y.data,stateFns:b}))},
pdpPricingOptionSelectorViewModel:function(y){return _.m(qx,null,_.m(z0j,{data:y.data,stateFns:b}))},
pdpPrimaryButtonViewModel:function(y){return _.m(qx,null,_.m($we,{data:y.data,stateFns:b}))},
pdpSummaryViewModel:function(y){return _.m(qx,null,_.m(oZP,{data:y.data,stateFns:b}))},
sectionHeaderViewModel:function(y){return _.m(qx,{fullBleed:!0,noVerticalPadding:!0},_.m(_.EP,{data:y.data}))}}))})))},"Gh");
e0w.idomCompat=!0;var qx=_.d(function(p){var J={};return _.m("div",{class:_.XB("ytPdpViewModelItem",(J.ytPdpViewModelFullBleed=p.fullBleed,J.ytPdpViewModelNoVerticalPadding=p.noVerticalPadding,J))},p.children)},"Hh");_.ci(e0w,"pdp-view-model",{props:{data:_.fD,stateFnsForTesting:_.jr,internalScrolling:_.jr}});var Wgy=_.d(function(p){var J=p.data;var S=p.className;var H=_.v$(_.Y8,function(){return J().flowStateEntityKey});
return _.m("ytm-premium-purchase-button-renderer",{class:_.XB("ytPremiumPurchaseButtonRendererHost",S)},_.m(_.AH,{data:function(){var M;return(M=_.e(H(),FN$))==null?void 0:M.primaryButtonOverride}},{buttonRenderer:function(M){return _.m(_.W2,{data:M.data,
className:S})},
buttonViewModel:function(M){return _.m(_.D0,{data:M.data,className:S})}}))},"Ih");
Wgy.idomCompat=!0;var QRU=_.d(function(p){var J=p.data;p=p.className;var S=function(){return mXf(J().style)},H=_.XB("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",S),M=_.XB("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",S);
return _.m("yt-flow-bottom-bar-renderer",{class:_.XB("yt-flow-bottom-bar-renderer",p,S)},_.m(_.AH,{data:function(){return J().secondaryButton}},{buttonRenderer:function(X){return _.m(_.W2,{data:X.data,
className:M})},
buttonViewModel:function(X){return _.m(_.D0,{data:X.data,className:M})},
premiumPurchaseButtonRenderer:function(X){return _.m(Wgy,{data:X.data,className:M})}}),_.m(_.AH,{data:function(){return J().primaryButton}},{buttonRenderer:function(X){return _.m(_.W2,{data:X.data,
className:H})},
buttonViewModel:function(X){return _.m(_.D0,{data:X.data,className:H})},
premiumPurchaseButtonRenderer:function(X){return _.m(Wgy,{data:X.data,className:H})}}))},"Jh");
QRU.idomCompat=!0;_.ci(QRU,"yt-flow-bottom-bar-renderer",{props:{data:_.fD,className:_.fD}});var Cor=_.d(function(p){var J=_.XB(p.className,"ytOfferSummaryRendererHost");return _.m("yt-offer-summary-renderer",{class:J},_.m("div",{class:"ytOfferSummaryRendererTextContainer"},_.m("div",{class:"ytOfferSummaryRendererEyebrowText"},_.m(_.v3,{text:function(){return p.data().eyebrowText}})),_.m("div",{class:"ytOfferSummaryRendererTitle"},_.m(_.v3,{text:function(){return p.data().title}})),_.m("div",{class:"ytOfferSummaryRendererSubtitle"},_.m(_.v3,{text:function(){return p.data().subtitle}})),_.m("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.m(_.dY,{each:function(){var S;
return(S=p.data().featureListData)!=null?S:[]}},function(S){var H;
return _.m("div",{class:"ytOfferSummaryRendererFeatureList"},_.m(_.bn,{icon:(H=S.icon)==null?void 0:H.iconType,active:function(){return S.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(S.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.m("div",{class:"ytOfferSummaryRendererFeatureListText"},_.m(_.v3,{text:S.text,
className:function(){return S.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.m("div",{class:"ytOfferSummaryRendererDescription"},_.m(_.v3,{text:function(){return p.data().description}}))))},"Kh");_.ci(_.d(function(p){var J={};J=_.XB("ytOfferSummaryFlowStepRendererHost",(J.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=p.shouldDisableHeaderTopMargin,J));return _.m("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:J},_.m("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.m("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.m(_.v3,{text:function(){return p.data().header}})),_.m("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.m(_.v3,{text:function(){return p.data().subtitle}}))),_.m("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.m(_.AH,{data:function(){return p.data().offerSummary}},{offerSummaryRenderer:function(S){return _.m(Cor,{data:S.data,
className:p.flowClassName})}})))},"Lh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.jr,
flowClassName:_.jr,flowStateEntityKey:_.jr,shouldDisableHeaderTopMargin:_.jr}});var ykM=_.d(function(p){var J=p.data;var S=p.className;var H=p.flowStateEntityKey;var M=p.selectionStepStyle;p=_.Kb(function(b){var F=J(),f=H==null?void 0:H();b.target&&(b.stopPropagation(),b=f||"",f=_.Y8(_.ED().getState(),b),F=Object.assign({},f,{premiumPurchaseFlowState:{selectedOptionId:F.optionId,primaryButtonOverride:F.primaryButtonOverride}}),_.ED().dispatch(_.P$("flowStateEntity",b,F)));return!1});
var X=function(){return(H==null?void 0:H())||""},Z=_.v$(_.Y8,X);
_.ad(function(){var b=J(),F=X(),f=Z();b.defaultSelected&&F!==""&&b.primaryButtonOverride&&vdf(b.optionId||"",F,b.primaryButtonOverride,f)});
var n={};return _.m("ytm-option-item-renderer",{"on:click":p,class:_.XB(S,"ytm-option-item-renderer",(n["ytm-option-item-renderer--lp2-style"]=function(){return(M==null?void 0:M())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},n))},_.m("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.m("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var b=J(),F=X(),f=Z();f=_.e(f,FN$);return(f?(f==null?void 0:f.selectedOptionId)||"":b.defaultSelected&&F!==""?(b==null?void 0:b.optionId)||"":"")===J().optionId},
name:("input"+_.q7(_.nW)).toString()})),_.m("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.m(_.AH,{data:function(){return J().titleBadge}},{badgeViewModel:function(b){return _.m(_.Qy,{data:b.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.m(_.v,{cond:function(){return J().eyebrowText},
then:function(){return _.m("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.m(_.v3,{text:function(){return J().eyebrowText}}))}}),_.m("div",{class:"ytm-option-item-renderer__option-item-title"},_.m(_.v3,{text:function(){return J().title}})),_.m("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.m(_.v3,{text:function(){return J().subtitle}})),_.m(_.v,{cond:function(){return J().featureListData},
then:function(){return _.m("div",{class:"ytm-option-item-renderer__feature-list-data"},_.m(_.dY,{each:function(){return J().featureListData||[]}},function(b){var F,f=(F=b.icon)==null?void 0:F.iconType;
a:switch(b.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":F="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":F="ytm-option-item-renderer__feature-list-icon-small";break a;default:F="ytm-option-item-renderer__feature-list-icon-default"}return _.m("div",{class:"ytm-option-item-renderer__feature-list"},_.m(_.bn,{icon:f,className:F,active:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.m("div",{class:"ytm-option-item-renderer__feature-list-text"},_.m(_.v3,{text:b.text,
className:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.m("div",{class:"ytm-option-item-renderer__option-item-description"},_.m(_.v3,{text:function(){return J().description}}))))},"Mh");var Bll=_.d(function(p){var J=p.data;var S=p.flowClassName;var H=p.flowStateEntityKey;var M=p.selectionStepStyle;return _.m("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.m("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.m("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.m(_.v3,{text:function(){return J().title}}),_.m(_.AH,{data:function(){return J().titleBadge}},{badgeViewModel:function(X){return _.m(_.Qy,{data:X.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.m(_.v,{cond:function(){return J().subtitle},
then:function(){return _.m("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.m(_.v3,{text:function(){return J().subtitle}}))}}),_.m(_.v,{cond:function(){return J().featureListData},
then:function(X){return _.m("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.m(_.dY,{each:X},function(Z){var n;return _.m("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.m(_.bn,{icon:(n=Z.icon)==null?void 0:n.iconType,active:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(Z.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.m("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.m(_.v3,{text:Z.text,
className:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.m(_.v,{cond:function(){return J().secondaryTitle},
then:function(){return _.m("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.m(_.v3,{text:function(){return J().secondaryTitle}}))}}),_.m(_.dY,{each:function(){return J().sectionDisclaimers||[]}},function(X){return _.m("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.m(_.v3,{text:X}))})),_.m(_.AH,{data:function(){return J().optionItems}},{optionItemRenderer:function(X){return _.m("div",{class:"ytOptionSectionRendererOptionItem"},_.m(ykM,{data:X.data,
className:S,flowStateEntityKey:H,selectionStepStyle:M}))}}),_.m(_.v,{cond:function(){return J().offerText},
then:function(){return _.m("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.m(_.v3,{text:function(){return J().offerText}}))}}))},"Nh");
Bll.idomCompat=!0;var Uwf=_.d(function(p){var J=p.data;var S=p.flowClassName;var H=p.flowStateEntityKey;p=p.isDesktop;var M=_.nE("div"),X=function(){var f;return(f=J().flowStateEntityKey)!=null?f:H==null?void 0:H()},Z=function(){return(X==null?void 0:X())||""},n=function(){return J().style},b=_.v$(_.Y8,Z);
_.ad(function(){fne(J(),Z(),b());setTimeout(function(){var f;(f=M.value)==null||f.focus()})});
var F={};return _.m("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.XB("ytm-option-selection-flow-step-renderer",(F["ytm-option-selection-flow-step-renderer--desktop"]=p,F["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return J().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},F))},_.m("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"},
_.m("div",{el:M,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.m(_.v3,{text:function(){return J().header}})),_.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.m(_.v3,{text:function(){return J().subtitle}}))),_.m(_.AH,{data:function(){return J().optionItems||[]}},{optionItemRenderer:function(f){return _.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.m(ykM,{data:f.data,
className:S,flowStateEntityKey:X,selectionStepStyle:n}))},
optionSectionRenderer:function(f){return _.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.m(Bll,{data:f.data,flowClassName:S,flowStateEntityKey:X,selectionStepStyle:n}))}}))},"Oh");
Uwf.idomCompat=!0;_.ci(Uwf,"yt-option-selection-flow-step-renderer",{props:{data:_.fD,flowClassName:_.fD,flowStateEntityKey:_.fD,isDesktop:_.fD}});_.ak=_.d(function(p){var J=_.jh(p,{type:1,disablePadding:!1,disablePrimaryButton:!1}),S=J.data,H=J.type;p=J.disablePadding;var M=J.disablePrimaryButton,X=J.onClickPrimaryButton,Z=function(){return S().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},n=function(){return{disabled:M(),
state:M()?"disabled":"active"}},b=function(){return S().leadingLabel||S().trailingLabel};
J={};return _.m("yt-panel-footer-view-model",{class:_.XB("yt-panel-footer-view-model",(J["yt-panel-footer-view-model--hide-divider"]=function(){return S().shouldHideDivider},J["yt-panel-footer-view-model--disable-padding"]=p,J))},_.m(_.v,{cond:b,
then:function(){var F={},f={};return _.m("div",{class:_.XB("yt-panel-footer-view-model__text-row",(F["yt-panel-footer-view-model--row-bottom-padding"]=function(){var O=S();return!(!O.leadingLabel&&!O.trailingLabel||!O.primaryButton&&!O.secondaryButton)},F))},_.m(_.v3,{text:function(){return S().leadingLabel},
className:_.XB((f["yt-panel-footer-view-model--text-padding"]=b,f))}),_.m(_.v3,{text:function(){return S().trailingLabel}}))}}),_.m(_.v,{cond:Z,
then:function(){var F={};return _.m("div",{class:"yt-panel-footer-view-model__button-stack"},_.m("div",{class:_.XB("yt-panel-footer-view-model__primary-button",(F["yt-panel-footer-view-model__button-stack--top-button"]=function(){return S().secondaryButton},F))},_.m(_.AH,{data:function(){return S().primaryButton}},{buttonViewModel:function(f){return _.m(_.D0,{data:f.data,
buttonOverrides:n,onClick:X})}})),_.m(_.AH,{data:function(){return S().secondaryButton}},{buttonViewModel:_.D0}))}}),_.m(_.v,{cond:function(){return!Z()},
then:function(){var F={},f={},O={};return _.m("div",{class:_.XB("yt-panel-footer-view-model__button-row",(F["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===H()},F))},_.m("div",{class:_.XB("yt-panel-footer-view-model__button-row--left-button",(f["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===H()},f["yt-panel-footer-view-model__button-row--hidden"]=function(){return!S().secondaryButton||0===H()},f["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===H()},f))},_.m(_.AH,{data:function(){return S().secondaryButton}},{buttonViewModel:_.D0})),_.m("div",{class:_.XB("yt-panel-footer-view-model__primary-button",(O["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===H()||1===H()},O["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===H()},O))},_.m(_.AH,{data:function(){return S().primaryButton}},{buttonViewModel:function(A){return _.m(_.D0,{data:A.data,
buttonOverrides:n,onClick:X})}})))}}))},"Ph");
_.ak.idomCompat=!0;_.sRI=_.d(function(p){p=_.jh(p,{disablePadding:!1});var J=p.data,S=p.disablePadding;p=_.ZjX(function(){return J().formId},void 0,function(){return J().onSubmitSuccess});
var H=p.submitForm,M=p.isValid,X=p.isSubmitting;return _.m("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.m(_.AH,{data:function(){return J().panelFooter}},{panelFooterViewModel:function(Z){return _.m(_.ak,{data:Z.data,
onClickPrimaryButton:function(){H()},
disablePrimaryButton:function(){return!M()||X()},
disablePadding:S})}}))},"Qh");_.ci(_.sRI,"yt-form-footer-view-model",{props:{data:_.fD,disablePadding:_.fD}});var gZM=_.d(function(p){var J=_.z("enable_user_rating_web");return _.m("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.m("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.m(_.v,{cond:function(){var S;return(S=p.data())==null?void 0:S.image},
then:function(S){return _.m(_.a4,{data:S,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.m("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.m(_.v3,{text:function(){var S;
return(S=p.data())==null?void 0:S.title}})),_.m("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.m(_.v3,{text:function(){var S;
return(S=p.data())==null?void 0:S.subtitle}})),_.m(_.v,{cond:function(){return!J},
then:function(){return _.m(_.AH,{data:function(){var S;return(S=p.data())==null?void 0:S.viewTipsButton}},{buttonViewModel:function(S){return _.m(_.D0,{data:S.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Rh");_.ci(gZM,"yt-contributor-zero-state-view-model",{props:{data:_.fD}});var txe=_.d(function(p){var J=function(){var S;return(S=p.data())==null?void 0:S.image};
return _.m("yt-featured-content-item-view-model",{class:_.XB("ytFeaturedContentItemViewModelHost")},_.m("div",{class:_.XB(function(){return J()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.m("div",{class:function(){return J()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.m(_.v,{cond:J,
then:function(){return _.m("div",{class:"ytFeaturedContentItemViewModelImage"},_.m(_.AH,{data:function(){return p.data().image}},{themedImageViewModel:function(S){return _.m(vZU,{data:S.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.m(_.v,{cond:function(){var S;
return!J()&&((S=p.data())==null?void 0:S.iconName)},
then:function(){return _.m("div",{class:"ytFeaturedContentItemViewModelIcon"},_.m(_.bn,{icon:function(){return p.data().iconName}}))}}),_.m("div",{class:"ytFeaturedContentItemViewModelContent"},_.m(_.v,{cond:function(){var S;
return(S=p.data())==null?void 0:S.title},
then:function(){return _.m("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.m(_.v3,{text:function(){return p.data().title}}))}}),_.m(_.v,{cond:function(){var S;
return(S=p.data())==null?void 0:S.body},
then:function(){return _.m("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.m(_.v3,{text:function(){return p.data().body}}))}})))))},"Sh");var h0p=_.d(function(p){var J=function(){var M;return Ozr((M=p.data())==null?void 0:M.titleFontSize)},S=function(){var M;
return AS$((M=p.data())==null?void 0:M.descriptionFontSize)},H=function(){var M;
return((M=p.data())==null?void 0:M.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.m("yt-landing-page-view-model",{class:_.XB("ytLandingPageViewModelHost",p.className)},_.m("div",{class:"ytLandingPageViewModelHeader"},_.m(_.v,{cond:function(){var M;return(M=p.data())==null?void 0:M.bannerImage},
then:function(M){return _.m("div",{class:"ytLandingPageViewModelHeaderImage"},_.m(_.AH,{data:function(){return M()}},{imageBannerViewModel:function(X){return _.m(_.zR,{data:X.data,
isPositionRelative:!0})}}))}}),_.m(_.v,{cond:function(){var M;
return(M=p.data())==null?void 0:M.bannerAnimation},
then:function(M){return _.m(_.l1,{data:function(){var X=M();if(X==null?0:X.url){var Z;X={path:(Z=X==null?void 0:X.url)!=null?Z:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(X==null?0:X.payload){var n;X={animationData:JSON.parse((n=X==null?void 0:X.payload)!=null?n:""),autoplay:!0,loop:!0,renderer:"svg"}}else X=void 0;return{animationConfig:X}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.m("div",{class:"ytLandingPageViewModelHeaderTitle"},_.m(_.v,{cond:function(){var M;
return(M=p.data())==null?void 0:M.title},
then:function(M){return _.m("div",{class:_.XB("ytLandingPageViewModelHeaderTitleContent",J)},_.m(_.v3,{text:function(){return M()}}))}}),_.m(_.v,{cond:function(){var M;
return(M=p.data())==null?void 0:M.description},
then:function(M){var X={};return _.m(_.v3,{className:_.XB("ytLandingPageViewModelHeaderTitleDescription",S,(X.ytLandingPageViewModelHeaderTitleDescriptionMargin=H,X)),text:function(){return M()}})}}))),_.m(_.v,{cond:function(){var M,X;
return(M=p.data())==null?void 0:(X=M.featuredContentList)==null?void 0:X.length},
then:function(){return _.m("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.m(_.AH,{data:function(){return p.data().featuredContentList}},{featuredContentItemViewModel:function(M){return _.m(txe,{data:M.data})}}))}}),_.m(_.v,{cond:function(){var M,X;
return(M=p.data())==null?void 0:(X=M.expandableContentList)==null?void 0:X.length},
then:function(){return _.m("div",{class:"ytLandingPageViewModelFaqSection"},_.m(_.AH,{data:function(){return p.data().expandableContentList}},{faqEntryViewModel:function(M){return _.m("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.m(_.Y1L,{data:M.data}))}}))}}),_.m("div",{class:"ytLandingPageViewModelFooter"},_.m(_.v,{cond:function(){var M;
return(M=p.data())==null?void 0:M.legalCopy},
then:function(M){return _.m("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.m(_.v3,{text:function(){return M()}}))}}),_.m(_.v,{cond:function(){var M;
return(M=p.data())==null?void 0:M.actions},
then:function(M){return _.m("div",null,_.m(_.AH,{data:function(){return M()}},{flexibleActionsViewModel:function(X){return _.m(_.KB,{data:X.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Th");_.ci(_.d(function(p){return _.m("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.m("div",{class:"ytLpSectionGroupViewModelContainer"},_.m(_.AH,{data:function(){return p.data().sections}},{landingPageViewModel:function(J){return _.m(h0p,{data:J.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Uh"),"yt-lp-section-group-view-model",{props:{data:_.fD}});var DwI=_.d(function(p){var J=p.data;var S=p.selectedKey;var H=p.onSelected;var M=p.groupName;var X=function(){return J().text},Z=function(){return J().attributedText},n=function(){return J().subtext},b=function(){return J().attributedSubtext},F=_.m("div",{class:"ytRadioButtonItemViewModelLabel"},_.m(_.v,{cond:X,
then:function(){return _.m("div",null,X)}}),_.m(_.v,{cond:Z,
then:function(){return _.m(_.v3,{text:Z})}}),_.m(_.v,{cond:n,
then:function(){return _.m("div",{class:"ytRadioButtonItemViewModelSubText"},n)}}),_.m(_.v,{cond:b,
then:function(){return _.m("div",{class:"ytRadioButtonItemViewModelSubText"},_.m(_.v3,{text:b}))}})),f=function(){if(Z()){var A;
return(A=Z())==null?void 0:A.content}return X()},O=function(){if(b()){var A;
return(A=b())==null?void 0:A.content}return n()};
p={};return _.m("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.m(_.F1,{name:M,checked:function(){return!(S==null||!S()||J().key!==(S==null?void 0:S()))},
onChange:function(A){H==null||H(A.target,J(),M==null?void 0:M())},
labelRenderable:function(){return F},
ariaLabel:function(){return O()?f()+", "+O():f()},
className:_.XB((p.ytRadioButtonItemViewModelSubTitle=function(){return!!J().subtext},p))}))},"Vh");_.krp=_.d(function(p){var J=p.data;var S=function(){var H;return _.Ul((H=J())==null?void 0:H.rendererContext)};
p={};return _.m("content-list-item-view-model",{el:_.Y2(_.sl(function(){return J().rendererContext})),
class:_.XB("ytContentListItemViewModelHost",(p.ytContentListItemViewModelTappable=S,p)),role:function(){return S()?"listitem":void 0},
tabindex:function(){return S()?0:void 0}},_.m("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.m("div",{class:"ytContentListItemViewModelImageContainer"},_.m(_.v,{cond:function(){return J().image},
then:function(H){return _.m(_.a4,{data:H,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.m(_.AH,{data:function(){var H;
return(H=J())==null?void 0:H.avatar}},{avatarViewModel:_.iF})),_.m("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.m("div",{class:_.XB("ytContentListItemViewModelTitle",function(){a:{switch(J().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var H="ytContentListItemViewModelProminentTitle";
break a}H=void 0}return H})},_.m(_.v3,{text:function(){return J().title}})),_.m("div",{class:"ytContentListItemViewModelMetadata"},_.m(_.AH,{data:function(){return J().metadata}},{contentMetadataViewModel:function(H){return _.m(_.Nf,{data:H.data,
layout:1})}})))),_.m("div",{class:"ytContentListItemViewModelActionButton"},_.m(_.AH,{data:function(){var H;
return(H=J())==null?void 0:H.actionButton}},{buttonViewModel:_.D0,
toggleButtonViewModel:_.LD})))},"Wh");var NlP=_.d(function(p){var J=p.data,S=function(){var M;return(M=J())==null?void 0:M.description},H=function(){var M;
return(M=J())==null?void 0:M.title};
return _.m("ytfc-youth-basic-section-header-view-model",{class:_.XB("ytfcYouthBasicSectionHeaderViewModelHost",p.className)},_.m("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.m(_.AH,{data:function(){var M;return(M=J())==null?void 0:M.avatar}},{avatarViewModel:_.iF}),_.m(_.v,{cond:function(){var M;
return _.dT((M=J())==null?void 0:M.themedImage)},
then:function(M){return _.m(_.a4,{data:M,alt:function(){var X,Z;return(Z=(X=H())==null?void 0:X.content)!=null?Z:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.m("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.m(_.v,{cond:H,
then:function(){return _.m(_.v3,{text:H,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.m("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.m(_.AH,{data:function(){var M;
return(M=J())==null?void 0:M.bottomBadge}},{badgeViewModel:function(M){return _.m("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.m(_.Qy,{data:M.data}))}}),_.m(_.v,{cond:S,
then:function(){return _.m(_.v3,{text:S,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Xh");var Tlr=_.d(function(p){var J=p.data;return _.m("ytfc-youth-section-body-view-model",{class:_.XB("ytfcYouthSectionBodyViewModelHost",p.className)},_.m(_.AH,{data:function(){var S;return(S=J())==null?void 0:S.topContent}},{avatarStackViewModel:function(S){return _.m(_.KF,{data:S.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.m(_.v3,{text:function(){var S;
return(S=J())==null?void 0:S.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Yh");var dwP=_.d(function(p){var J=_.K(_.eQ(!1,void 0,"SrK51e")),S=J.next().value,H=J.next().value,M=function(){return p.data().inlineExpansionEntityKey},X=_.v$(Dyr,M),Z=function(){if(p.isSelected!==void 0)return p.isSelected();
if(M()){var b;return(b=X())==null?void 0:b.expanded}return S()};
J={};var n={};return _.m("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.Kb(function(){p.isSelected!==void 0||M()||H(!S())})},_.m("div",{class:"ytInlineExpanderViewModelHeader"},_.m(_.AH,{data:function(){return p.data().headerContent}},{youthBasicSectionHeaderViewModel:NlP}),_.m("div",{class:_.XB("ytInlineExpanderViewModelButton",(J.ytInlineExpanderViewModelButtonExpanded=Z,J))},_.m(_.gF,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:Z(),accessibilityLabel:Z()?_.Kl("SHOW_LESS",void 0,"Show Less"):_.Kl("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.m("div",{class:_.XB("ytInlineExpanderViewModelBody",(n.ytInlineExpanderViewModelBodyExpanded=Z,n)),"aria-hidden":function(){return!Z()}},_.m("div",{class:"ytInlineExpanderViewModelBodyContent"},_.m(_.AH,{data:function(){return p.data().bodyContent}},{youthSectionBodyViewModel:Tlr}))))},"Zh");var uD$=new _.ni("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.lYP=_.d(function(p){var J=function(){return p.data().background},S=function(){return p.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},H=function(){return p.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},M=_.vO().resolve(_.F9(uD$)),X={};
return _.m("yt-card-view-model",{el:_.Y2(_.sl(function(){return p.data().rendererContext})),
class:_.XB("ytCardViewModelHost",p.className,(X.ytCardViewModelClickable=function(){return _.B$(p.data().rendererContext)},X))},_.m(_.TK,{contentId:function(){return p.data().contentId}},function(){var Z={};
return _.m("div",{class:_.XB("ytCardViewModelCardViewModelInner",function(){var n;return Puw(p.data().cardStyle,(n=p.isSelected)==null?void 0:n.call(p))},function(){if(p.isSelected===void 0){var n;
a:{switch((n=p.data().cardState)==null?void 0:n.selectionState){case "CARD_SELECTION_STATE_SELECTED":n="ytCardViewModelSelected";break a}n=void 0}return n}})},_.m(_.AH,{data:J},{cinematicContainerViewModel:function(n){return _.m(_.HLN,{data:n.data})}}),_.m("div",{class:"ytCardViewModelContentWrapper"},_.m(_.v,{cond:function(){return!S()},
then:function(){var n={},b={};return _.m("div",{class:"ytCardViewModelTopContentContainer"},_.m("div",{class:_.XB("ytCardViewModelTopContent",(n.ytCardViewModelInnerPadding=function(){return!p.data().disableTopContentPadding&&p.data().topContent},n))},_.m(_.AH,{data:function(){return p.data().topContent}},{contentListItemViewModel:function(F){return _.m(_.krp,{data:F.data})},
basicContentViewModel:_.ml,linearLayoutViewModel:_.OY})),_.m("div",{class:_.XB("ytCardViewModelInlineTrailingAction",(b.ytCardViewModelInlineCenterTrailingAction=H,b.ytCardViewModelInlineTrailingActionMargin=function(){return p.data().trailingAction},b))},_.m(_.AH,{data:function(){return p.data().trailingAction}},{buttonViewModel:function(F){return _.m(_.D0,{data:F.data})}})))}}),_.m("div",{class:_.XB((Z.ytCardViewModelInnerPadding=function(){return!p.data().disableBodyContentPadding&&p.data().bodyContent},
Z))},_.m(_.AH,{data:function(){return p.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.d8r,
contentListItemViewModel:_.krp,descriptionPreviewViewModel:_.aa,inlineExpanderViewModel:function(n){return _.m(dwP,{data:n.data,isSelected:p.isSelected})},
linearLayoutViewModel:_.OY,listItemViewModel:_.fW},M&&{contentSectionViewModel:M})))),_.m(_.v,{cond:function(){return S()},
then:function(){return _.m("div",{class:"ytCardViewModelOverlayTrailingAction"},_.m(_.AH,{data:function(){return p.data().trailingAction}},{buttonViewModel:function(n){return _.m(_.D0,{data:n.data})}}))}}))}))},"$h");var Vxf=_.d(function(p){var J=p.data,S=p.onSelected,H=p.selectedKey,M=p.groupName;p=p.className;var X=_.K(_.eQ(!1,void 0,"mDtSad")),Z=X.next().value,n=X.next().value,b=function(){if(H!==void 0){var F=H();return!(!F||J().key!==F)}return Z()};
X=_.Kb(function(F){S?S(F.currentTarget,J(),M==null?void 0:M()):n(!Z())});
return _.m("yt-selectable-item-view-model",{class:_.XB("ytSelectableItemViewModelHost",p,"ytSelectableItemViewModelContainer"),"on:click":X,"prop:checked":b},_.m(_.AH,{data:function(){return J().content}},{cardViewModel:function(F){return _.m(_.lYP,{data:F.data,
isSelected:b})}}))},"ai");_.q4M=_.d(function(p){var J=p.data;var S=p.onSelected;var H=p.selectedKey;var M=p.groupName;var X=function(){return(M==null?void 0:M())||J().key};
return _.m("yt-radio-button-group-view-model",{class:_.XB("ytRadioButtonGroupViewModelHost",p.className)},_.m("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.m(_.AH,{data:function(){return J().radioButtons}},{radioButtonItemViewModel:function(Z){return _.m(DwI,{data:Z.data,
onSelected:S,selectedKey:H,groupName:X})},
selectableItemViewModel:function(Z){return _.m(Vxf,{data:Z.data,onSelected:S,selectedKey:H,groupName:X})}})))},"bi");var aY$=_.d(function(p){_.ad(function(){if(p.controlledMode()&&p.data().defaultSelected)_.jD(Error("ak"));else{var X;!p.controlledMode()&&((X=p.selected)==null?0:X.call(p))&&_.jD(Error("bk"))}});
var J=_.K(_.re(function(){if(!p.controlledMode())return p.data().defaultSelected})),S=J.next().value,H=J.next().value,M=function(){if(!p.controlledMode())return S();
var X;return(X=p.selected)==null?void 0:X.call(p)};
return _.m("yt-checkbox-item-view-model",{class:_.XB("ytCheckboxItemViewModelHost",p.className)},_.m(_.fW,{data:function(){var X=p.data(),Z=M();return{title:X.text,subtitle:X.subtext,superlabel:X.superlabel,isSelected:!!Z,isDisabled:X.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!p.controlledMode()&&H(!S());var X,Z;(Z=p.onTap)==null||Z.call(p,!!M(),p.data(),(X=p.groupName)==null?void 0:X.call(p))},
isCompact:p.isCompact}))},"ci");var EZe=_.d(function(p){var J=p.data;var S=p.controlledMode;var H=p.selectedKeys;var M=p.onItemTap;var X=p.groupName;var Z=function(){return(X==null?void 0:X())||J().key};
_.ad(function(){S()&&J().defaultSelectedKeys?_.jD(Error("ck")):!S()&&(H==null?0:H())&&_.jD(Error("dk"))});
p=_.K(_.re(function(){if(!S())return J().defaultSelectedKeys}));
var n=p.next().value,b=p.next().value,F=function(f,O,A){f=[];!S()&&O.key&&(f=zt$(O.key,n()||[]),b(f));M==null||M(O,f,A)};
return _.m("yt-checkbox-group-view-model",{class:_.XB("ytCheckboxGroupViewModelHost")},_.m("fieldset",{class:_.XB("ytCheckboxGroupViewModelFieldset")},_.m("div",{role:"list"},_.m(_.AH,{data:function(){return J().checkboxes}},{checkboxItemViewModel:function(f){var O=f.data;
return _.m(aY$,{data:O,controlledMode:!0,selected:function(){var A=S()?(H==null?void 0:H())||[]:n()||[],P=O().key;return P?A.includes(P):!1},
onTap:F,groupName:Z})}}))))},"di");var EC=_.d(function(p){var J=_.v$($Xl,_.rw(function(){var n;return(n=p.data())==null?void 0:n.noteFeedEntityKey},"")),S=_.v$(dyj,_.rw(function(){var n;
return(n=p.data())==null?void 0:n.userRatingEntityKey},"")),H=_.z("enable_user_rating_web"),M=function(){var n,b,F;
return((n=J())==null?0:n.contributorNote)?(b=J())==null?void 0:b.contributorNote:(F=p.data())==null?void 0:F.existingNote},X=function(){var n,b;
return!!S()&&!!odp((n=S())==null?void 0:n.helpfulnessValue,(b=p.data())==null?void 0:b.noteData)};
if(H){var Z={};return _.m("yt-note-view-model",{class:_.XB("ytNoteViewModelHostUserRating",(Z.ytNoteViewModelHostUserRatingPublishedNote=function(){var n,b,F,f;return((n=p.data())==null?void 0:(b=n.noteData)==null?void 0:b.isPublished)&&!((F=p.data())==null?0:(f=F.noteData)==null?0:f.isUserRatingForm)},Z))},_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.m(_.v,{cond:function(){var n,b;
return(n=p.data())==null?void 0:(b=n.noteData)==null?void 0:b.isPinned},
then:function(){return _.m(_.bn,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.m(_.v,{cond:function(){var n,b;return(n=p.data())==null?void 0:(b=n.noteData)==null?void 0:b.isPublished},
then:function(){return _.m(_.bn,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.m(_.AH,{data:function(){var n;
return(n=p.data())==null?void 0:n.metadata}},{contentMetadataViewModel:_.Nf}),_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var n,b;
return(b=_.e((n=p.data())==null?void 0:n.metadata,_.o48))==null?void 0:b.delimiter}),_.m(_.v3,{text:function(){var n;
return(n=M())==null?void 0:n.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.m(_.v,{cond:function(){var n,b;return!((n=p.data())==null?0:(b=n.noteData)==null?0:b.isUserRatingForm)},
then:function(){return _.m(_.AH,{data:function(){var n,b,F,f,O,A,P,W=!!((n=p.data())==null?0:(b=n.noteData)==null?0:b.isPinned);n=X();b=(F=p.data())==null?void 0:F.noteData;F=(f=J())==null?void 0:(O=f.contributorNote)==null?void 0:O.deleteAction;f=(A=p.data())==null?void 0:A.overflowButtonNoteWithRatingOnTapOverride;A=(P=p.data())==null?void 0:P.overflowButton;var y;P=(y=_.e(A,_.mO))==null?void 0:y.accessibilityText;return W?ety(b,F,P):n?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:f,accessibilityText:P}}:A}},{buttonViewModel:function(n){return _.m(_.D0,{data:n.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.m("div",{class:"ytNoteViewModelNoteContent"},_.m(_.v3,{text:function(){var n;
return(n=M())==null?void 0:n.text}})),_.m(_.v,{cond:function(){var n,b,F,f;
return!((n=p.data())==null?0:(b=n.noteData)==null?0:b.isPinned)&&!((F=p.data())==null?0:(f=F.noteData)==null?0:f.isUserRatingForm)},
then:function(){return _.m(_.v,{cond:X,then:function(){return _.m("div",{class:"ytNoteViewModelUserRatingContainer"},_.m(_.v3,{text:function(){var n,b;return odp((n=S())==null?void 0:n.helpfulnessValue,(b=p.data())==null?void 0:b.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.m(_.AH,{data:function(){var n;return(n=p.data())==null?void 0:n.userRatingButton}},{buttonViewModel:function(n){return _.m(_.D0,{data:n.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.m(_.v,{cond:function(){var n,b,F,f;
return!((n=p.data())==null?0:(b=n.noteData)==null?0:b.ignoreDivider)&&!((F=p.data())==null?0:(f=F.noteData)==null?0:f.isUserRatingForm)},
then:function(){return _.m("div",{class:"ytNoteViewModelDivider"},_.m(_.AH,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(n){return _.m(_.Z6v,{data:n.data})}}))}}))}return _.m("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.m(_.v,{cond:function(){var n,b;return(n=p.data())==null?void 0:(b=n.noteData)==null?void 0:b.isPinned},
then:function(){return _.m(_.bn,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.m(_.v,{cond:function(){var n,b;return(n=p.data())==null?void 0:(b=n.noteData)==null?void 0:b.isPublished},
then:function(){return _.m(_.bn,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.m(_.v,{cond:function(){return H},
then:function(){return _.m(_.AH,{data:function(){var n;return(n=p.data())==null?void 0:n.metadata}},{contentMetadataViewModel:function(n){return _.m(_.Nf,{data:n.data})}})}}),_.m(_.v3,{text:function(){var n,b;
return(n=p.data())==null?void 0:(b=n.noteData)==null?void 0:b.headerText}}),_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.m(_.v3,{text:function(){var n,b;
return(n=p.data())==null?void 0:(b=n.noteData)==null?void 0:b.delimiter}})),_.m(_.v3,{text:function(){var n,b;
return(n=J())==null?void 0:(b=n.contributorNote)==null?void 0:b.publishedTimeText}})),_.m(_.AH,{data:function(){var n,b,F;
return ety((n=p.data())==null?void 0:n.noteData,(b=J())==null?void 0:(F=b.contributorNote)==null?void 0:F.deleteAction)}},{buttonViewModel:function(n){return _.m(_.D0,{data:n.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.m("div",{class:"ytNoteViewModelNoteContent"},_.m(_.v3,{text:function(){var n,b;
return(n=J())==null?void 0:(b=n.contributorNote)==null?void 0:b.text}})))},"ei");
EC.idomCompat=!0;_.ci(_.d(function(p){var J=_.rw(function(){var k;return(k=p.data())==null?void 0:k.flowStateEntityKey},""),S=_.v$(_.Y8,J),H=_.v$($Xl,_.rw(function(){var k;
return(k=p.data())==null?void 0:k.noteFeedEntityKey},"")),M=_.K(_.re(function(){var k;
return(k=_.e(p.data().helpfulnessValue,_.JPU))==null?void 0:k.defaultSelectedKey})),X=M.next().value,Z=M.next().value;
M=_.K(_.re(function(){var k,E,a;return(a=_.e((k=_.e(p.data().helpfulnessValue,_.JPU))==null?void 0:(E=k.radioButtons)==null?void 0:E.find(function(q){var w;return((w=_.e(q,SJp))==null?void 0:w.key)===X()}),SJp))==null?void 0:a.value}));
var n=M.next().value,b=M.next().value;M=_.K(_.re(function(){var k;return(k=_.e(p.data().helpfulReasons,p9$))==null?void 0:k.defaultSelectedKeys}));
var F=M.next().value,f=M.next().value;M=_.K(_.re(function(){var k;return(k=_.e(p.data().notHelpfulReasons,p9$))==null?void 0:k.defaultSelectedKeys}));
var O=M.next().value,A=M.next().value,P=function(k,E){Z(E.key);b(E.value);f([]);A([])},W=function(){var k,E;
return((k=n())==null?void 0:k.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((E=n())==null?void 0:E.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},y=function(){var k,E;
return((k=n())==null?void 0:k.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((E=n())==null?void 0:E.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},t=function(k){WNI(k.key,F,f)},D=function(k){WNI(k.key,O,A)};
_.ad(function(){var k,E,a;NdI((k=p.data())==null?void 0:(E=k.userRatingFormSchema)==null?void 0:E.id,{isValid:function(){return!!X()},
formData:function(){var q=n(),w=CuN(F(),_.e(p.data().helpfulReasons,p9$)),I=CuN(O(),_.e(p.data().notHelpfulReasons,p9$));q={helpfulnessValue:q==null?void 0:q.noteHelpfulnessValue};if(w){q.helpfulReasons=[];w=_.K(w);for(var Z3=w.next();!Z3.done;Z3=w.next()){Z3=Z3.value;var vg=void 0;if((vg=Z3)==null?0:vg.noteHelpfulReason)vg=void 0,q.helpfulReasons.push((vg=Z3)==null?void 0:vg.noteHelpfulReason)}}if(I)for(q.notHelpfulReasons=[],I=_.K(I),w=I.next();!w.done;w=I.next())if(w=w.value,Z3=void 0,(Z3=w)==
null?0:Z3.noteNotHelpfulReason)Z3=void 0,q.notHelpfulReasons.push((Z3=w)==null?void 0:Z3.noteNotHelpfulReason);return{userRatingFormData:q}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(a=_.e(S(),VqU))==null?void 0:a.submitFormParams},onSubmitResult:function(){var q,w=(q=_.e(S(),VqU))==null?void 0:q.userRatingEntityKey,I;q={key:w,helpfulnessValue:(I=n())==null?void 0:I.noteHelpfulnessValue};w&&_.Y3(_.P$("contextNoteUserRatingEntityPayload",w,q));var Z3;w=(Z3=p.data())==null?void 0:Z3.viewNoteFlowStepId;var vg;if((vg=H())==null||!vg.contributorNote){var yX;w=(yX=p.data())==null?void 0:yX.zeroStateFlowStepId}(Z3=
Object.assign({},S()))&&w&&(Z3.currentStepId=w,Z3.stepIdStack=[w],_.Y3(_.P$("flowStateEntity",J(),Z3)));var Pg;(Z3=(Pg=p.data())==null?void 0:Pg.ratingSubmittedSnackbarCommand)&&_.Dm(Z3)},
disableDuringSubmission:!0})});
return _.m("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.m(_.AH,{data:function(){var k=_.e(S(),VqU);if(k){var E;var a={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:k==null?void 0:(E=k.note)==null?void 0:E.headerText}]}],delimiter:"\u2022"}},existingNote:k.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else a=void 0;return a}},{noteViewModel:function(k){return _.m("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.m(EC,{data:k.data}))}}),_.m(_.AH,{data:function(){var k;
return(k=p.data())==null?void 0:k.helpfulnessValue}},{radioButtonGroupViewModel:function(k){return _.m("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.m(_.q4M,{data:k.data,
onSelected:P,selectedKey:X}))}}),_.m(_.v,{cond:W,
then:function(){return _.m("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.m("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.m(_.v3,{text:function(){var k;return(k=p.data())==null?void 0:k.helpfulReasonQuestion}})),_.m(_.AH,{data:function(){var k;
return(k=p.data())==null?void 0:k.helpfulReasons}},{checkboxGroupViewModel:function(k){return _.m(EZe,{data:k.data,
onItemTap:t,selectedKeys:F,controlledMode:!0})}}))}}),_.m(_.v,{cond:y,
then:function(){return _.m("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.m("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.m(_.v3,{text:function(){var k;return(k=p.data())==null?void 0:k.notHelpfulReasonQuestion}})),_.m(_.AH,{data:function(){var k;
return(k=p.data())==null?void 0:k.notHelpfulReasons}},{checkboxGroupViewModel:function(k){return _.m(EZe,{data:k.data,
onItemTap:D,selectedKeys:O,controlledMode:!0})}}))}}),_.m(_.v,{cond:function(){return!W()&&!y()},
then:function(){return _.m(_.AH,{data:function(){var k;return(k=p.data())==null?void 0:k.helpfulNoteFeatures}},{alertBannerViewModel:function(k){return _.m("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.m(_.v18,{data:k.data}))}})}}))},"fi"),"yt-note-user-rating-view-model",{props:{data:_.fD}});_.ci(EC,"yt-note-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=_.v$($Xl,_.rw(function(){var S;return(S=p.data())==null?void 0:S.noteFeedEntityKey},""));
return _.m("yt-notes-wrapper-view-model",{class:_.XB("ytNotesWrapperViewModelHost")},_.m(_.v,{cond:function(){var S,H,M;return!((S=p.data())==null||!S.existingNotes)||!((H=p.data())==null||!H.currentNote)&&!((M=J())==null||!M.contributorNote)},
then:function(){return _.m(_.fV,null,_.m(_.AH,{data:function(){var S,H,M,X;return((H=_.e((S=p.data())==null?void 0:S.currentNote,qBr))==null?0:(M=H.noteData)==null?0:M.isPublished)?(X=p.data())==null?void 0:X.currentNote:void 0}},{noteViewModel:function(S){return _.m(EC,{data:S.data})}}),_.m(_.AH,{data:function(){var S;
return(S=p.data())==null?void 0:S.existingNotes}},{noteViewModel:function(S){var H=S.data;
return _.m(_.v,{cond:function(){var M,X;return(M=H())==null?void 0:(X=M.noteData)==null?void 0:X.isPublished},
then:function(){return _.m(EC,{data:H})}})}}),_.m(_.AH,{data:function(){var S,H,M,X,Z;
return((H=_.e((S=p.data())==null?void 0:S.currentNote,qBr))==null?0:(M=H.noteData)==null?0:M.isPublished)||(X=J())==null||!X.contributorNote?void 0:(Z=p.data())==null?void 0:Z.currentNote}},{noteViewModel:function(S){return _.m(EC,{data:S.data})}}),_.m(_.AH,{data:function(){var S;
return(S=p.data())==null?void 0:S.existingNotes}},{noteViewModel:function(S){var H=S.data;
return _.m(_.v,{cond:function(){var M,X;return!((M=H())==null?0:(X=M.noteData)==null?0:X.isPublished)},
then:function(){return _.m(EC,{data:H})}})}}))},
else:function(){return _.m(_.AH,{data:function(){var S;return(S=p.data())==null?void 0:S.zeroStateData}},{contributorZeroStateViewModel:gZM})}}))},"gi"),"yt-notes-wrapper-view-model",{props:{data:_.fD}});var rke=_.d(function(p){var J=_.jh(p,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,timePickerData:void 0,hasError:!1}),S=J.label,H=J.text,M=J.placeholder,X=J.hint;p=J.rows;var Z=J.overflowStyle,n=J.outline,b=J.disabled,F=J.disableNewLines,f=J.characterLimit,O=J.validation,A=J.onInput,P=J.timePickerData,W=J.hasError,y=_.nE("textarea");J=_.K(_.re(function(){return H()}));
var t=J.next().value,D=J.next().value;J=_.K(_.eQ(!1,void 0,"mpbND"));var k=J.next().value,E=J.next().value,a=function(){E(!0)},q=function(){E(!1)};
_.ad(function(){var Go=y.value,$U=Z(),LL=t();$U==="expand-vertically"&&LL&&ySP(Go);y.value.addEventListener("focusin",a);y.value.addEventListener("focusout",q)});
_.VY(function(){y.value.removeEventListener("focusin",a);y.value.removeEventListener("focusout",q)});
var w=function(){var Go;return(Go=O())==null?void 0:Go.validate(t())},I=function(){return f()&&!w()&&t().length>f().maxChars},Z3=function(){return!!w()||I()||W()};
J=_.Kb(function(Go){if(!Go.currentTarget)return!1;Go=Go.currentTarget;D(Go.value);Z()==="expand-vertically"&&ySP(Go);A==null||A(Go.value);return!0});
var vg=_.Kb(function(Go){F()&&Go.key==="Enter"&&Go.preventDefault();return!1}),yX=_.Kb(function(){y.value.focus()}),Pg=function(){return M()||S()},ov={},NW={},TW={},Ys={};
return _.m("textarea-shape",{class:_.XB("ytStandardsTextareaShapeHost",(ov.ytStandardsTextareaShapeTimePicker=function(){var Go;return(Go=P())==null?void 0:Go.useTimePickerStyles},ov))},_.m("div",{class:_.XB("ytStandardsTextareaShapeTextareaContainer",(NW.ytStandardsTextareaShapeTextareaContainerOutline=n,NW.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=b,NW.ytStandardsTextareaShapeTextareaContainerOutlineError=Z3,NW)),
"on:click":yX},_.m("label",{class:_.XB("ytStandardsTextareaShapeLabel",(TW.ytStandardsTextareaShapeLabelFocused=k,TW.ytStandardsTextareaShapeLabelDisabled=b,TW.ytStandardsTextareaShapeLabelError=function(){return Z3()&&!b()},TW.ytStandardsTextareaShapeLabelHidden=function(){return!k()&&!t()&&!!Pg()},TW))},S),_.m("div",{class:_.XB("ytStandardsTextareaShapePlaceholder",(Ys.ytStandardsTextareaShapePlaceholderVisible=function(){return!k()&&!t()},Ys)),
"aria-hidden":"true"},Pg),_.m("textarea",{el:y,class:"ytStandardsTextareaShapeTextarea",rows:p,disabled:b,placeholder:Pg,"prop:value":t,"on:input":J,"on:keydown":vg})),_.m(_.v,{cond:function(){return X()&&!Z3()},
then:function(){var Go={};return _.m("div",{class:_.XB("ytStandardsTextareaShapeHint",(Go.ytStandardsTextareaShapeHintDisabled=b,Go))},_.m("div",{class:"ytStandardsTextareaShapeHintHintMessage"},X))}}),_.m(_.v,{cond:w,
then:function(){return _.m(Y4w,{disabled:b},_.m("div",{class:"ytStandardsTextareaShapeErrorMessage"},w))}}),_.m(_.v,{cond:f,
then:function(Go){return _.m(_.v,{cond:I,then:function(){return _.m(Y4w,{disabled:b},_.m("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return Go().errorMessage}),_.m("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return t().length+"/"+Go().maxChars}))}})}}))},"hi");
rke.idomCompat={callbacks:{onInput:!0}};var Y4w=_.d(function(p){var J={};return _.m("div",{class:_.XB("ytStandardsTextareaShapeError",(J.ytStandardsTextareaShapeErrorDisabled=p.disabled,J)),role:"alert"},_.m(_.bn,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),p.children)},"ii");_.jRp=_.d(function(p){var J=p.data;return _.m("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.m(rke,{text:p.text,label:function(){var S;return(S=J().contentProperties)==null?void 0:S.labelText},
placeholder:function(){var S;return(S=J().contentProperties)==null?void 0:S.placeholderText},
hint:function(){var S;return(S=J().contentProperties)==null?void 0:S.hintText},
outline:function(){var S;return!((S=J().displayProperties)==null?0:S.hideBorder)},
overflowStyle:function(){var S;return((S=J().displayProperties)==null?0:S.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:p.disabled,disableNewLines:function(){var S;return(S=J().displayProperties)==null?void 0:S.disableNewLines},
onInput:p.onInput,characterLimit:p.characterLimit,validation:p.validation,rows:function(){var S;return(S=J().displayProperties)==null?void 0:S.rows}}))},"ji");_.wq$=_.d(function(p){var J=p.data;return _.m("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.m(rke,{text:p.text,label:function(){var S;return(S=J().contentProperties)==null?void 0:S.labelText},
placeholder:function(){var S;return(S=J().contentProperties)==null?void 0:S.placeholderText},
hint:function(){var S;return(S=J().contentProperties)==null?void 0:S.hintText},
outline:function(){var S;return!((S=J().displayProperties)==null?0:S.hideBorder)},
overflowStyle:function(){var S;return((S=J().displayProperties)==null?0:S.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var S;return(S=J().displayProperties)==null?void 0:S.disableNewLines},
onInput:p.onInput,characterLimit:p.characterLimit,validation:p.validation,rows:function(){var S;return(S=J().displayProperties)==null?void 0:S.rows}}))},"ki");var xwy=_.d(function(p){var J=_.K(_.re(function(){var vg,yX;return((vg=p.data().structuredContextNoteFormSchema)==null?0:(yX=vg.initialValues)==null?0:yX.noteBody)?p.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),S=J.next().value,H=J.next().value;
J=_.K(_.re(function(){p.data();return!1}));
var M=J.next().value,X=J.next().value;J=_.K(_.re(function(){p.data();return!1}));
var Z=J.next().value,n=J.next().value;J=_.K(_.re(function(){var vg,yX;return((vg=p.data().structuredContextNoteFormSchema)==null?0:(yX=vg.initialValues)==null?0:yX.timestamp)?p.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var b=J.next().value,F=J.next().value;J=_.K(_.re(function(){p.data();return!1}));
var f=J.next().value,O=J.next().value;J=_.K(_.re(function(){var vg,yX;return((vg=p.data().structuredContextNoteFormSchema)==null?0:(yX=vg.initialValues)==null?0:yX.sources)?[p.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var A=J.next().value,P=J.next().value;J=_.K(_.re(function(){p.data();return!1}));
var W=J.next().value,y=J.next().value;J=_.K(_.re(function(){return!1}));
var t=J.next().value,D=J.next().value;_.ad(function(){var vg;_.Tde((vg=p.data().structuredContextNoteFormSchema)==null?void 0:vg.id,{isSubmitting:t,onSubmit:function(){D(!0);var yX=N0I(S(),b(),A(),p.data()),Pg=_.vO().resolve(_.Ov);yX&&Pg&&Pg.resolveCommand(yX,{commandController:{onSuccess:function(){D(!1)}}})},
isValid:function(){return M()&&!Z()&&!f()&&!W()}})});
var k=function(vg){if(vg!==void 0&&(H(vg),!M()&&vg.length>0&&X(!0),M())){var yX=sCP(p.data());if(yX){var Pg=yX.minLength;yX=yX.maxLength;Pg&&vg.length<Pg?n(!0):yX&&vg.length>yX?n(!0):n(!1)}}},E=function(vg){if(vg!==void 0){F(vg);
if(vg.length>0){var yX,Pg,ov,NW,TW=tTN((yX=p.data())==null?void 0:(Pg=yX.structuredContextNoteFormSchema)==null?void 0:(ov=Pg.fieldSchemas)==null?void 0:(NW=ov.timestamp)==null?void 0:NW.validationSchema);if(TW&&(yX=TW.regex)&&!(new RegExp(yX)).test(vg)){O(!0);return}}O(!1)}},a=function(vg){if(vg!==void 0){var yX=vg.split(/[ \n]/).map(function(Pg){return Pg.trim()});
P(yX);if(vg.length>0)for(vg=_.K(yX),yX=vg.next();!yX.done;yX=vg.next())if(!kdI(yX.value)){y(!0);return}y(!1)}},q=function(){return{validate:function(vg){if(M()){var yX=sCP(p.data());
if(yX){var Pg=yX.minLength;yX=yX.translations;if(Pg&&vg.length<Pg)return yX==null?void 0:yX.minLengthErrorMessage}}}}},w=function(){var vg=sCP(p.data()),yX=vg==null?void 0:vg.maxLength,Pg;
vg=vg==null?void 0:(Pg=vg.translations)==null?void 0:Pg.maxLengthErrorMessage;if(yX&&vg)return{maxChars:yX,errorMessage:vg}},I=function(){return{validate:function(vg){if(vg){var yX,Pg,ov,NW,TW=tTN((yX=p.data())==null?void 0:(Pg=yX.structuredContextNoteFormSchema)==null?void 0:(ov=Pg.fieldSchemas)==null?void 0:(NW=ov.timestamp)==null?void 0:NW.validationSchema);
if(TW&&(yX=TW.regex,TW=TW.translations,yX&&!(new RegExp(yX)).test(vg)))return TW==null?void 0:TW.regexErrorMessage}}}},Z3=function(){return{validate:function(vg){if(vg){var yX,Pg,ov,NW,TW=DXy((yX=p.data())==null?void 0:(Pg=yX.structuredContextNoteFormSchema)==null?void 0:(ov=Pg.fieldSchemas)==null?void 0:(NW=ov.sources)==null?void 0:NW.validationSchema);
if(TW&&(yX=TW.translations,yX==null?0:yX.selectedErrorMessage))for(vg=vg.split(/[ \n]/).map(function(Ys){return Ys.trim()}),vg=_.K(vg),Pg=vg.next();!Pg.done;Pg=vg.next())if(!kdI(Pg.value))return vg=void 0,(vg=yX)==null?void 0:vg.selectedErrorMessage}}}};
return _.m("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.m("div",{class:"ytStructuredContextNoteViewModelTextField"},_.m(_.AH,{data:function(){var vg;return(vg=p.data())==null?void 0:vg.noteContents}},{textFormFieldViewModel:function(vg){return _.m(_.wq$,{data:vg.data,
onInput:k,validation:q,characterLimit:w})},
textFieldViewModel:function(vg){return _.m(_.jRp,{data:vg.data,onInput:k,validation:q,characterLimit:w})}})),_.m("div",{class:"ytStructuredContextNoteViewModelTextField"},_.m(_.AH,{data:function(){var vg;
return(vg=p.data())==null?void 0:vg.noteTimestamp}},{textFormFieldViewModel:function(vg){return _.m(_.wq$,{data:vg.data,
onInput:E,validation:I})},
textFieldViewModel:function(vg){return _.m(_.jRp,{data:vg.data,onInput:E,validation:I})}})),_.m("div",{class:"ytStructuredContextNoteViewModelTextField"},_.m(_.AH,{data:function(){var vg;
return(vg=p.data())==null?void 0:vg.noteSources}},{textFormFieldViewModel:function(vg){return _.m(_.wq$,{data:vg.data,
onInput:a,validation:Z3})},
textFieldViewModel:function(vg){return _.m(_.jRp,{data:vg.data,onInput:a,validation:Z3})}})))},"li");
xwy.idomCompat=!0;_.ci(xwy,"yt-structured-context-note-view-model",{props:{data:_.fD}});var cke=_.d(function(p){var J=_.K(_.re(function(){var X;if((X=p.controlled)==null?0:X.call(p))return[];var Z;return(((Z=p.data())==null?void 0:Z.chips)||[]).map(function(n){n=_.e(n,_.FY);if(n==null?0:n.selected)return T0I(n.chipValue)}).filter(function(n){return n!==void 0})})),S=J.next().value,H=J.next().value,M=function(X){var Z=T0I(X.chipValue);
if(Z!==void 0){var n;if((n=p.controlled)==null?0:n.call(p))return void p.controlled().onTap(Z);X=S().includes(Z)?[].concat(_.dW(S().filter(function(F){return F!==Z}))):[].concat(_.dW(S()),[Z]);
H(X);var b;if((b=p.uncontrolled)==null?0:b.call(p))p.uncontrolled().onUpdate(X)}};
return _.m("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.m(_.dY,{each:function(){return p.data().chips||[]}},function(X){return _.m("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.m(_.kcn,{data:function(){return _.e(X,_.FY)},
selected:function(){var Z;if(Z=_.e(X,_.FY)){var n=T0I(Z.chipValue);if(n!==void 0){var b;Z=((b=p.controlled)==null?0:b.call(p))?p.controlled().selectedValues.includes(n):S().includes(n)}else Z=void 0}else Z=!1;return Z},
callback:M}))}))},"mi");var IYr=_.d(function(p){var J=p.data;var S=function(){var n;return((n=J())==null?void 0:n.flowStateKey)||""},H=_.v$(_.Y8,S),M=function(){var n;
return(n=_.e(H(),axe))==null?void 0:n.chips},X=function(n){if(n!==void 0){var b=M()||[];
b=b.find(function(F){return F===n})?b.filter(function(F){return F!==n}):[].concat(_.dW(b),[n]);
b=Object.assign({},H(),{feedbackFormFlowState:Object.assign({},_.e(H(),axe),{chips:b})});_.Y3(_.P$("flowStateEntity",S(),b))}},Z=function(){var n;
return _.e((n=J())==null?void 0:n.inputBox,EVf)};
p=_.Uj(function(n){var b=Z();b=!(b==null?0:b.maxChars)||n.length<=b.maxChars;n=Object.assign({},H(),{feedbackFormFlowState:Object.assign({},_.e(H(),axe),{detail:n}),abuseReportFlowState:Object.assign({},_.e(H(),F3),{navigationEnabled:b})});_.Y3(_.P$("flowStateEntity",S(),n))},150);
return _.m("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.m("div",{class:"ytFeedbackFormViewModelChips"},_.m(_.AH,{data:function(){var n;return(n=J())==null?void 0:n.chipSelection}},{chipSelectionFormFieldViewModel:function(n){return _.m(cke,{data:n.data,
controlled:function(){return{selectedValues:M()||[],onTap:X}}})}})),_.m("div",{class:"ytFeedbackFormViewModelInputBox"},_.m(rke,{text:function(){var n;
return(n=_.e(H(),axe))==null?void 0:n.detail},
placeholder:function(){var n;return((n=Z())==null?void 0:n.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var n=Z();if(n&&n.maxChars)return{maxChars:n.maxChars,errorMessage:n.maxCharsExceededErrorMessage||""}},
onInput:p})),_.m("div",{class:"ytFeedbackFormViewModelFooterText"},_.m(_.v3,{text:function(){return J().footerText}})))},"ni");
IYr.idomCompat=!0;_.ci(IYr,"yt-feedback-form-view-model",{props:{data:_.fD}});var LgN=_.d(function(p){var J=p.data;var S=_.v$(kUr,function(){return J().flowStateKey||""}),H=function(){var M;
_.Dm((M=_.e(S(),F3))==null?void 0:M.navigationCommand)};
return _.m("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.m("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.m(_.AH,{data:function(){return J().cancelButton}},{buttonViewModel:function(M){return _.m(_.D0,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:H})}}),_.m(_.AH,{data:function(){var M;
if(J().navButton){var X=Object;var Z=X.assign,n=_.e(J().navButton,_.mO),b=((M=_.e(S(),F3))==null?0:M.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",F,f;M=_.e((F=_.e(S(),F3))==null?void 0:F.navigationCommand,_.Ua);F=(f=_.e(M,_.My))==null?void 0:f.url;X={buttonViewModel:Z.call(X,{},n,{state:b,iconName:F?"OPEN_IN_NEW":""})}}else X=void 0;return X}},{buttonViewModel:function(M){return _.m(_.D0,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:H})}})))},"oi");
LgN.idomCompat=!0;_.ci(LgN,"yt-report-form-bottom-bar-view-model",{props:{data:_.fD}});var pty=_.d(function(p){var J=p.nextStep;return _.m("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.m("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.m(_.bn,{icon:function(){return J().iconName||""}})),_.m("div",null,_.m(_.v3,{text:function(){return J().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"pi"),Jcf=_.d(function(p){var J=p.data;
var S,H=(S=_.vO().resolve(_.F9(_.uC)))==null?void 0:S(),M=_.v$(_.Y8,function(){return J().flowStateKey||""});
return _.m("yt-report-form-confirmation-page-view-model",{class:function(){var X;return((X=_.e(M(),F3))==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.m("div",{class:function(){var X;
return((X=_.e(M(),F3))==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.m(_.a4,{data:function(){return H&&J().imageDark?J().imageDark:J().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.m("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.m("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return J().confirmationHeader}),_.m("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.m(_.v3,{text:function(){return J().confirmationText}})),_.m("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.m(_.v3,{text:function(){return J().lawEnforcementText}})),
_.m("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return J().whatToExpectHeader}),_.m(_.v,{cond:function(){return J().nextSteps},
then:function(X){return _.m("div",null,_.m(_.dY,{each:X},function(Z){return _.m(pty,{nextStep:Z})}))}}),_.m(_.v,{cond:function(){return J().legalReportText},
then:function(X){return _.m("div",null,_.m(_.v3,{text:X,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"qi");
Jcf.idomCompat=!0;_.ci(Jcf,"yt-report-form-confirmation-page-view-model",{props:{data:_.fD}});var SrI=_.d(function(p){var J=p.data;var S=function(){var X;return((X=_.e(J().inputBox,EVf))==null?void 0:X.maxChars)||500},H=function(){return J().flowStateKey||""},M=_.v$(_.Y8,H);
p=_.Uj(function(X){X=Object.assign({},M(),{flowFormState:{isValid:X.length<=S()},abuseReportFlowState:{userComments:X,navigationEnabled:!(X.length>S()),isReportFormDirty:!0}});_.ED().dispatch(_.BY("flowStateEntity",H(),X))},150);
_.ad(function(){var X=Object.assign({},M(),{flowFormState:{isValid:!0}});_.ED().dispatch(_.BY("flowStateEntity",H(),X))});
return _.m("yt-report-form-details-page-view-model",{class:function(){var X;return((X=_.e(M(),F3))==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.m("h1",{class:function(){var X;
return((X=_.e(M(),F3))==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return J().detailsPageHeader}),_.m("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.m(_.v3,{text:function(){return J().bodyText}})),_.m("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.m(rke,{label:function(){var X;
return((X=_.e(J().inputBox,EVf))==null?void 0:X.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var X;return{errorMessage:((X=_.e(J().inputBox,EVf))==null?void 0:X.maxCharsExceededErrorMessage)||"",maxChars:S()}},
onInput:p})))},"ri");
SrI.idomCompat=!0;_.ci(SrI,"yt-report-form-details-page-view-model",{props:{data:_.fD}});var HyI=_.d(function(p){var J=p.data;var S=function(){return J().flowStateKey||""},H=_.v$(_.Y8,S),M=function(){return _.e(H(),F3)};
return _.m("yt-report-form-reason-select-page-view-model",{class:function(){var X;return((X=M())==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.m("h1",{class:function(){var X;
return((X=M())==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return J().pageHeader}),_.m("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.m(_.v3,{text:function(){return J().bodyText}})),_.m("div",{class:function(){var X;
return((X=M())==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.m(_.q4M,{data:function(){return _.e(J().radioButtonGroup,_.JPU)},
onSelected:function(X,Z){X=Object.assign({},H(),{abuseReportFlowState:Object.assign({},M(),{reasonKey:Z.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:Z.command})});_.Y3(_.P$("flowStateEntity",S(),X))},
selectedKey:function(){var X;return(X=M())==null?void 0:X.reasonKey},
groupName:"report-form-reason-select-page"})))},"si");
HyI.idomCompat=!0;_.ci(HyI,"yt-report-form-reason-select-page-view-model",{props:{data:_.fD}});var MSU=_.d(function(p){var J=p.data;var S,H=(S=_.vO().resolve(_.F9(_.uC)))==null?void 0:S();return _.m("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.m("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.m(_.a4,{data:function(){return H&&J().imageDark?J().imageDark:J().image},
alt:""})),_.m("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.m("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return J().header}),_.m(_.v3,{text:function(){return J().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"ti");
MSU.idomCompat=!0;_.ci(MSU,"yt-report-form-sign-in-page-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;var S=_.fb(_.utU.talkToRecsStateSelector),H=function(){return J().titleSuperscript},M=function(){return J().answersShelf},X=function(){return J().videoShelf},Z=function(){var I;
return(I=J().textInputPlaceholder)==null?void 0:I.content},n=function(){return J().showOpenTextInput},b=function(){var I;
return(I=J().textInputValue)==null?void 0:I.content},F=function(){return J().isMultiTurnFlow?J().resetButtonViewModel:void 0},f="",O=function(){return J().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
p=_.K(_.eQ("",void 0,"GjDBze"));var A=p.next().value,P=p.next().value;p=_.K(_.eQ(!1,void 0,"cHfsvd"));var W=p.next().value,y=p.next().value,t=function(){return{state:W()||A()?"active":"disabled",disabled:!(W()||A())}};
_.qz(function(){if(n()){b()&&P(b());var I;if(!F()&&((I=S())==null?0:I.stepStates)){var Z3;I=Object.keys((Z3=S())==null?void 0:Z3.stepStates);Z3=I[I.length-1];var vg,yX;Z3=(vg=S().stepStates[Z3])==null?void 0:(yX=vg.userQuery)==null?void 0:yX.userQuery;_.Y3(_.NGN());Z3&&D(Z3)}}});
var D=function(I){var Z3=J().onUpdateText;Z3&&_.Dm(Z3,{form:{userQuery:I}});P(I)},k=_.Uj(function(I){D(I.target.value.trim())},150),E=_.Kb(function(I){var Z3;
f=(Z3=I.target.value)==null?void 0:Z3.trim();k(I);return!1}),a=_.Kb(function(I){I.key==="Enter"&&(W()||A())&&(D(I.target.value.trim()),w());
return!1}),q=function(I,Z3){y(Z3);
if(Z3){if(J().isMultiTurnFlow&&!f){var vg;D((vg=I==null?void 0:I.text)!=null?vg:"")}J().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&w()}else P(f)},w=function(){var I=_.e(J().nextButtonViewModel,_.mO);
if(I==null?0:I.trackingParams){I=_.Az(I.trackingParams);var Z3=_.C1();Z3&&I&&_.Vf(Z3,I,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(I=J().onNextStepCommand)&&_.Dm(I)};
p={};return _.m("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.m("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.m(_.AH,{data:function(){return J().topCornerButton}},{buttonViewModel:_.D0})),_.m("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.m("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.m(_.v3,{text:function(){return J().title}}),_.m(_.v,{cond:H,
then:function(){return _.m("sup",{class:"ytwTalkToRecsSuperScript"},_.m(_.v3,{text:H}))}})),_.m("div",{class:"ytwTalkToRecsSubtitle"},_.m(_.v3,{text:function(){return J().subtitle}})),_.m("div",{class:"ytwTalkToRecsResultsShelf"},_.m(_.v,{cond:M,
then:function(){return _.m(_.AH,{data:M},{chipsShelfViewModel:function(I){return _.m("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.m(_.E6,{data:I.data,callback:q,selectionBehavior:O}))}})}}),_.m(_.v,{cond:X,
then:function(){return _.m(_.AH,{data:X},{horizontalShelfViewModel:function(I){return _.m("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.m(_.P8,{data:I.data,thumbnailAspectRatio:0}))}})}})),_.m("div",{class:_.XB("ytwTalkToRecsRefinementContainer",(p.ytwTalkToRecsBottomMargin=function(){return J().isMultiTurnFlow},p))},_.m(_.v,{cond:n,
then:function(){return _.m("div",{class:"ytwTalkToRecsUserInputBox"},_.m("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:Z,value:A,"on:input":E,"on:keyup":a,maxlength:200}))}}),_.m(_.AH,{data:function(){return J().isMultiTurnFlow?J().nextButtonViewModel:void 0}},{buttonViewModel:function(I){return _.m("div",{class:"ytwTalkToRecsFlowControlButtons"},_.m(_.D0,{data:I.data,
buttonOverrides:t}))}}),_.m(_.AH,{data:F},{buttonViewModel:function(I){return _.m("div",{class:"ytwTalkToRecsFlowControlButtons"},_.m(_.D0,{data:I.data,
onClick:function(){var Z3=_.e(J().resetButtonViewModel,_.mO);D(A());(Z3=Z3==null?void 0:Z3.onTap)&&_.Dm(Z3)}}))}}))))},"vi"),"yt-talk-to-recs-view-model",{props:{data:_.fD}});var dXU={sources:[{clientResource:{imageName:"CHECK"}}]};_.XtI=_.d(function(p){var J=_.nE("div");p=_.jh(p,{error:void 0});var S=p.data,H=p.error,M=p.onSelected;p=_.K(_.re(function(){return VTw(S())}));
var X=p.next().value,Z=p.next().value;YLe(S,function(A){Z(A);var P,W,y=lnP((P=S().options)==null?void 0:(W=P[A])==null?void 0:W.value,S().type);M==null||M(y);J.value.focus()});
p=_.Kb(function(){if(!S().disabled){var A=S(),P=X(),W=J.value;A.options&&(A=u7P(A.options,P,A.label),_.vO().resolve(_.Sd).openSheet({viewModel:A},W))}});
var n=_.uOs(),b=function(){return!!H()},F=function(){return!!S().disabled},f={},O={};
return _.m("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.m("div",{class:_.XB("ytDropdownViewModelDropdownContainer",(f.ytDropdownViewModelDropdownContainerErrorBorder=b,f.ytDropdownViewModelDropdownContainerDisabled=F,f)),"on:click":p,el:J,role:"combobox",tabindex:0,"on:keydown":n,"aria-invalid":b,"aria-disabled":F,"aria-describedby":function(){return b()?"dropdown-view-model-error":void 0}},_.m("div",{class:"ytDropdownViewModelText"},qLN(S,b,X),anj(S,X)),_.m("div",{class:_.XB("ytDropdownViewModelChevronDown",
(O.ytDropdownViewModelChevronDownDisabled=F,O))},_.m(_.bn,{icon:"CHEVRON_DOWN"}))),Edr(S,H))},"wi");_.ci(_.d(function(p){var J=p.data;var S=function(M){var X=jCP(J());X.videoMetadata||(X.videoMetadata={});X.videoMetadata.sponsorshipsMetadata||(X.videoMetadata.sponsorshipsMetadata={});X.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(M)},H=function(M){var X=jCP(J());
X.scheduledRedirectMetadata||(X.scheduledRedirectMetadata={});X.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(M)};
return _.m("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.m("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.m("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.m(_.v3,{text:function(){return J().title}}),_.m(_.bn,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.m(_.v3,{text:function(){return J().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.m(_.AH,{data:function(){return J().tierChoices}},{dropdownViewModel:function(M){return _.m("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.m(_.XtI,{data:M.data,
onSelected:S}))}}),_.m(_.AH,{data:function(){return J().startTimeChoices}},{dropdownViewModel:function(M){return _.m("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.m(_.XtI,{data:M.data,
onSelected:H}))}}),_.m(_.v3,{text:function(){return J().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.m("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.m(_.AH,{data:function(){return J().scheduleButton}},{panelFooterViewModel:_.ak})))},"xi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;p=p.className===void 0?"":p.className;var S=_.v$(kUr,function(){return J().flowStateEntityKey||""}),H={};
H=_.XB("ytFlowBottomBarViewModelFlowBottomBarButtons",(H.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return J().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||J().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},H));
var M={},X=_.XB("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",H,(M.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return J().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},M.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return J().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},M));
M={};var Z=_.XB("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",H,(M.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return J().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},M.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return J().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},M));
H={};H=_.XB("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return J().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return J().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return J().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
H));
p=_.XB("ytFlowBottomBarViewModelHost",p);return _.m("yt-flow-bottom-bar-view-model",{class:p},_.m(_.v,{cond:function(){var n;return(n=J())==null?void 0:n.textSection},
then:function(n){return _.m("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.m(_.v3,{text:n}))}}),_.m("div",{class:H},_.m(_.AH,{data:function(){return J().secondaryButton}},{buttonViewModel:function(n){return _.m(_.D0,{data:n.data,
className:Z})}}),_.m(_.AH,{data:function(){return J().primaryButton}},{buttonViewModel:function(n){return _.m(_.D0,{data:n.data,
className:X,buttonOverrides:function(){var b;return{disabled:!((b=S())==null||!b.primaryButtonDisabled)}}})}})))},"yi"),"yt-flow-bottom-bar-view-model",{props:{data:_.fD,
className:_.jr}});var iyj="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),YJ=function(){var p=_.T.apply(this,arguments)||this;p.enableScrollingFix=!0;p.bottomBar=!1;p.fitContent=!1;return p};
_.Q(YJ,_.T);_.R=YJ.prototype;_.R.ready=function(){_.z("enable_pdp_icon_prefetch")&&_.hC$(_.vO().resolve(_.Ux),0,iyj)};
_.R.focus=function(p){this.topBar?_.nH(this.topBar,p):this.paperDialog.focus(p)};
_.R.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19546_scroller&&(this.JSC$19546_scroller.dialogElement=this.paperDialog,this.JSC$19546_scroller.attached&&typeof this.JSC$19546_scroller.attached==="function"&&this.JSC$19546_scroller.attached())};
_.R.onDataChanged=function(){var p;this.fitContent=!((p=this.data)==null||!p.fitContent);var J;this.bottomBar=!((J=this.data)==null||!J.bottomBar)};
_.R.onProgressChanged=function(){var p,J,S=((J=(p=this.data)==null?void 0:p.progress)!=null?J:0)*100;this.progressElement.style.width=S+"%"};
_.R.isProgressHidden=function(){var p;return!((p=this.data)==null?0:p.progress)};
_.R.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(p){return p&&!p.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
YJ.prototype.onProgressChanged=YJ.prototype.onProgressChanged;YJ.prototype.onDataChanged=YJ.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],YJ.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YJ.prototype,"enableScrollingFix",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YJ.prototype,"bottomBar",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YJ.prototype,"fitContent",void 0);_.V([_.FM("#progress"),_.Y("design:type",HTMLElement)],YJ.prototype,"progressElement",void 0);_.V([_.FM("#scroller"),_.Y("design:type",Object)],YJ.prototype,"JSC$19546_scroller",void 0);_.V([_.FM("ytd-flow-top-bar-renderer"),_.Y("design:type",HTMLElement)],YJ.prototype,"topBar",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YJ.prototype,"onDataChanged",null);_.V([_.bO("data.progress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YJ.prototype,"onProgressChanged",null);_.V([_.gw({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],YJ);
_.l(YJ,"ytd-flow-step-renderer",function(){if(Uqr!==void 0)return Uqr;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Uqr=p},{mode:1});var rz=function(p){this.resolveCommand=p;this.steps={}},Rdf=function(p,J){J=_.K(J||[]);
for(var S=J.next();!S.done;S=J.next()){S=S.value;var H=Object.values(S)[0],M=void 0;if((M=H)==null?0:M.stepId)p.steps[H.stepId]=S}},ZyI=function(p,J){var S,H,M,X,Z;
return _.G(function(n){if((S=p.state)==null||!S.currentStepId)return n.return(void 0);H=p.getCurrentStep();if(!H)return n.return(Kue(p));if(M=_.e(H,_.wB))p.logVEScreen(M),((X=M)==null?0:X.onStepStartCommand)&&p.resolveCommand((Z=M)==null?void 0:Z.onStepStartCommand,{});M&&J&&(p.logFlowEvent(M,J),J.steps&&!J.steps.includes(H)&&J.steps.push(H));return n.return(H)})};
rz.prototype.back=function(){var p;(p=this.state)!=null&&p.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
rz.prototype.handleUpdateFlowCommand=function(p){p.steps&&Rdf(this,p.steps);p.entityUpdateCommand&&this.resolveCommand(p.entityUpdateCommand,{});p.flowContinuationCommand&&(p=p.flowContinuationCommand)&&(this.getFlowContinuationCommand=p);this.awaitFlowContinuation&&(p=this.getCurrentStep(),this.awaitFlowContinuation(p),this.awaitFlowContinuation=void 0)};
rz.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Kue=function(p){return _.G(function(J){return p.getFlowContinuationCommand?J.return(new Promise(function(S){p.awaitFlowContinuation=S;p.getFlowContinuationCommand&&p.resolveCommand(p.getFlowContinuationCommand,{flow_state:p.state})})):J.return(Promise.resolve(void 0))})};
rz.prototype.getCurrentStep=function(){var p;if((p=this.state)!=null&&p.currentStepId)return this.steps[this.state.currentStepId]};
rz.prototype.logVEScreen=function(p){var J;((J=p.screenLoggingData)==null?0:J.screenVeType)&&_.TZ(_.bC(),p.screenLoggingData.screenVeType)};
rz.prototype.logFlowEvent=function(p,J){var S,H,M,X;((S=J.flowLoggingData)==null?0:S.eventNamespace)&&((H=p.flowEventData)==null?0:H.eventType)&&((M=p.flowEventData)==null?0:M.eventMetadata)&&((X=J.flowLoggingData)==null?0:X.flowType)&&(p=_.Rs(J.flowLoggingData.eventNamespace,p.flowEventData.eventType,p.flowEventData.eventMetadata),_.Ky().logFlowEvent(p,J.flowLoggingData.flowType))};
_.vh.Object.defineProperties(rz.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.state)==null?void 0:p.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.state)!=null&&p.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(J,S){S.key&&S.value&&(J[S.key]=S.value);return J},{})}}});var jV=function(){var p=_.T.apply(this,arguments)||this;p.flowState=_.z("web_use_flow_state_manager")?void 0:new rz(function(J,S){S=S===void 0?{}:S;_.R4.instance.resolveCommand(J,{form:{form:S,element:p.hostElement}})});
p.JSC$19557_flowStateManager=_.z("web_use_flow_state_manager")?_.vO().resolve(_.Y6):void 0;p.currentTargetId="";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"};p.containsTalkToRecs=!1;return p};
_.Q(jV,_.T);_.R=jV.prototype;_.R.onPopupClosed=function(p){if(!p||this.hostElement===p.detail.popupRenderer){if(this.JSC$19557_flowStateManager){var J;((J=this.data)==null?0:J.flowStateEntityKey)&&this.JSC$19557_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.R.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.R.focus=function(p){var J=this;_.dw(function(){var S=_.Jn(J.hostElement).querySelector("ytd-flow-step-renderer");(S==null?0:S.topBar)?S.focus(p):J.topBar&&_.nH(J.topBar,p)},1)};
_.R.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.R.computeTopBarHidden=function(p){var J;return!((J=_.e(p,_.wB))==null||!J.topBarOverride)};
_.R.onCurrentFlowChange=function(){if(this.JSC$19557_flowStateManager&&this.data&&this.flow){var p=y1P(this.JSC$19557_flowStateManager,this.data),J;if(p&&((J=this.flow)==null?0:J.currentStepId)){p=sVp(p,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var S;!p&&((S=this.data)==null?0:S.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.R.observeData=function(){var p=this;if(this.JSC$19557_flowStateManager){var J=this.currentTargetId,S,H,M=(H=(S=this.data)==null?void 0:S.targetId)!=null?H:"";J!==M&&J&&BGU(this.JSC$19557_flowStateManager,J);this.currentTargetId=M;this.data&&U9I(y1P(this.JSC$19557_flowStateManager,this.data),function(X){X&&(p.initialState=!1,p.currentFlowStep={flowStepRenderer:X},p.isLoading=!p.currentFlowStep,p.autofocusAndRefit(),p.updateContainsTalkToRecs(),p.logVEScreen(),p.logFlowEvent())})}};
_.R.dataChanged=function(){var p=this,J,S;return _.G(function(H){if(H.nextAddress==1){if(!p.flowState)return H.return();((J=p.data)==null?0:J.steps)&&Rdf(p.flowState,p.data.steps);if((S=p.data)==null?0:S.flowContinuationCommand){var M=p.flowState,X=p.data.flowContinuationCommand;X&&(M.getFlowContinuationCommand=X)}return H.yield(ZyI(p.flowState,p.data),2)}p.currentFlowStep=H.yieldResult;_.UK(H)})};
_.R.flowChanged=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1){if(!p.flowState||!p.flow)return S.return();p.flowState.state=p.flow;p.isLoading=!0;return S.yield(ZyI(p.flowState,p.data),2)}J=S.yieldResult;if(!J||p.flow.isLoading)return S.return();p.currentFlowStep=J;p.initialState=!1;p.isLoading=!1;p.autofocusAndRefit();p.updateContainsTalkToRecs();_.UK(S)})};
_.R.logVEScreen=function(){var p,J,S=(p=_.e(this.currentFlowStep,_.wB))==null?void 0:(J=p.screenLoggingData)==null?void 0:J.screenVeType;S&&_.TZ(_.vO().resolve(_.c3),S)};
_.R.logFlowEvent=function(){var p=_.e(this.currentFlowStep,_.wB),J,S,H,M,X,Z;(this==null?0:(J=this.data)==null?0:(S=J.flowLoggingData)==null?0:S.eventNamespace)&&(this==null?0:(H=this.data)==null?0:(M=H.flowLoggingData)==null?0:M.flowType)&&(p==null?0:(X=p.flowEventData)==null?0:X.eventType)&&(p==null?0:(Z=p.flowEventData)==null?0:Z.eventMetadata)&&(p=_.Rs(this.data.flowLoggingData.eventNamespace,p.flowEventData.eventType,p.flowEventData.eventMetadata),_.Ky().logFlowEvent(p,this.data.flowLoggingData.flowType))};
_.R.updateContainsTalkToRecs=function(){var p,J=(p=_.e(this.currentFlowStep,_.wB))==null?void 0:p.content;this.containsTalkToRecs=!!J&&!!_.e(J,c1w)};
_.R.autofocusAndRefit=function(){var p=this,J=_.vO().resolve(_.F9(_.CD)),S=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),H=document.querySelector("yt-report-form-confirmation-page-view-model"),M=document.querySelector("yt-report-form-details-page-view-model"),X=document.querySelector("yt-report-form-reason-select-page-view-model"),Z=document.querySelector("yt-contributor-zero-state-view-model"),
n=document.querySelector("yt-structured-context-note-view-model"),b=document.querySelector("yt-note-view-model");(!S&&J&&J.isKeyBoardInUse()||H||!S&&M||!S&&X||!S&&(Z||n||b))&&_.Gg(this.hostElement);_.mN(this,function(){_.cf(p.hostElement,"yt-refit")})};
_.R.handleUpdateFlowCommand=function(p){this.flowState?this.data&&(p=_.e(p,_.b74),p.targetId===this.data.targetId&&(p.flowContinuationCommand&&(this.data.flowContinuationCommand=p.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(p),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(p)};
_.R.handleFlowNextStepCommand=function(p){this.JSC$19557_flowStateManager?this.ytComponentBehavior.resolveCommand(p):this.data&&this.flow&&this.flow.key&&(p=_.e(p,_.KA4),p.targetId===this.data.targetId&&(p=p.stepId||"",this.ytdReduxBehavior.dispatch(_.BY("flowStateEntity",this.flow.key,{currentStepId:p,stepIdStack:(this.flow.stepIdStack||[]).concat(p)}))))};
_.R.handleFlowPrevStepCommand=function(p){if(this.JSC$19557_flowStateManager)this.ytComponentBehavior.resolveCommand(p);else if(this.data&&this.flow&&this.flow.key&&(p=_.e(p,_.Z7L),p.targetId===this.data.targetId)){var J=[].concat(_.dW(this.flow.stepIdStack||[]));J.length>1?(J.pop(),this.ytdReduxBehavior.dispatch(_.BY("flowStateEntity",this.flow.key,{currentStepId:J[J.length-1],stepIdStack:J}))):p.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(p.onFirstStepCommand)}};
_.R.handleYpcCancelRecurrenceCommand=function(p){if(this.data&&this.flow&&this.flow.key&&(p=_.e(p,Hlw),p.targetId===this.data.targetId&&p.endpointCommand)){var J=_.e(this.flow,MUj);J&&_.e(p.endpointCommand,_.Wxn)&&(_.e(p.endpointCommand,_.Wxn).feedbackData=J.surveyFeedback);this.ytComponentBehavior.resolveCommand(p.endpointCommand)}};
_.R.handlePartialUpdateFlowStateEntity=function(p){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.BY("flowStateEntity",this.flow.key,p,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
jV.prototype.flowChanged=jV.prototype.flowChanged;jV.prototype.dataChanged=jV.prototype.dataChanged;jV.prototype.observeData=jV.prototype.observeData;jV.prototype.onCurrentFlowChange=jV.prototype.onCurrentFlowChange;jV.prototype.onPopupClosed=jV.prototype.onPopupClosed;_.V([_.B(_.RB),_.Y("design:type",Object)],jV.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],jV.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],jV.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jV.prototype,"initialState",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jV.prototype,"isLoading",void 0);_.V([_.N(),_.Y("design:type",Object)],jV.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],jV.prototype,"currentFlowStep",void 0);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jV.prototype,"onPopupClosed",null);
_.V([_.N({selectorArgs:["data.flowStateEntityKey"],selector:kUr}),_.Y("design:type",Object)],jV.prototype,"flow",void 0);_.V([_.FM("ytd-flow-top-bar-renderer"),_.Y("design:type",HTMLElement)],jV.prototype,"topBar",void 0);_.V([_.bO("data","flow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jV.prototype,"onCurrentFlowChange",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jV.prototype,"observeData",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],jV.prototype,"dataChanged",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jV.prototype,"containsTalkToRecs",void 0);_.V([_.An("flow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],jV.prototype,"flowChanged",null);_.V([_.gw({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],jV);
_.nty=_.pI()(jV,"ytd-flow-root-renderer",function(){if(BIe!==void 0)return BIe;var p=document.createElement("template");_.C(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="root-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(_.r().content.cloneNode(!0),p.content.firstChild);return BIe=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var Gey;var J1p=null;_.ci(_.d(function(p){return _.m("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.m("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.m(_.v3,{text:function(){return p.data().text}}),_.m("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"zi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.fD}});var byp=_.d(function(p){var J=p.playerControlsProps;var S=p.isShortsPage;return _.m("yt-bigboard",null,_.m(_.v,{cond:function(){return J().isDragging},
then:function(){return _.m("div",{class:"ytBigboardStoryboardHost"},_.m(_.wB$,{progressBarProps:J,isShortsPage:S}))}}))},"Ai");
byp.idomCompat=!0;_.wz={ACCOUNT_LABEL:mW("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:mW("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:mW("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:mW("AD_BADGE_HINT"),AD_BADGE_TEXT:mW("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:mW("ALL_CHANNELS_LABEL"),AMBIENT_MODE:mW("AMBIENT_MODE"),AMBIENT_MODE_OFF:mW("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:mW("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:mW("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:mW("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:mW("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:mW("APP_UPSELL_TITLE"),AUDIO_TRACK:mW("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:mW("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:mW("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:mW("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:mW("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:mW("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:mW("AUTO_ZOOM","Auto zoom"),BACK:mW("BACK"),CANCEL:mW("CANCEL"),CHANNEL_SWITCHER_LABEL:mW("CHANNEL_SWITCHER_LABEL"),CLOSE:mW("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:mW("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:mW("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:mW("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:mW("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:mW("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:mW("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:mW("COMMENT_MODAL_CONTENT"),CONFIRM_OK:mW("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:mW("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:mW("COPIED_TO_CLIPBOARD"),COPY:mW("COPY"),COPY_DEBUG_INFO:mW("COPY_DEBUG_INFO"),COPY_EMBED_CODE:mW("COPY_EMBED_CODE"),
COPY_LINK_LABEL:mW("COPY_LINK_LABEL"),COPY_VIDEO_URL:mW("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:mW("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:mW("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:mW("DELETE_FROM_DOWNLOADS"),DIALOG:mW("DIALOG"),DONE:mW("DONE"),DOWNLOAD:mW("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:mW("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:mW("FLAG_CONFIRM"),FLAG_CONTENT:mW("FLAG_CONTENT"),FLAG_LABEL:mW("FLAG_LABEL"),FLAG_TITLE:mW("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:mW("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:mW("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:mW("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:mW("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:mW("HIDE_SEARCH_FILTERS_LABEL"),HOME:mW("HOME","Home"),INVALID_RESPONSE_RECEIVED:mW("INVALID_RESPONSE_RECEIVED"),LIBRARY:mW("LIBRARY","Library"),LISTENING:mW("LISTENING"),LOADING:mW("LOADING"),LONG_PRESS_MIC_TO_SPEAK:mW("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:mW("LOOP"),MENU_DESKTOP:mW("MENU_DESKTOP"),
MENU_EXIT:mW("MENU_EXIT"),MENU_FEEDBACK:mW("MENU_FEEDBACK"),MENU_HELP:mW("MENU_HELP"),MENU_IMPRESSUM:mW("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:mW("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:mW("MENU_SETTINGS"),MENU_SIGN_IN:mW("MENU_SIGN_IN"),MENU_TITLE:mW("MENU_TITLE"),MENU_YOUR_DATA:mW("MENU_YOUR_DATA"),MORE_INFO:mW("MORE_INFO"),MORE_OPTIONS:mW("MORE_OPTIONS"),MUTE_VOLUME:mW("MUTE_VOLUME"),NEW_PLAYLIST:mW("NEW_PLAYLIST"),NEXT_VIDEO:mW("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:mW("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:mW("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:mW("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:mW("NOT_FOUND_TITLE"),NO_DOWNLOADS:mW("NO_DOWNLOADS"),NO_MIC_INPUT:mW("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:mW("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:mW("OOPS_MESSAGE"),OPEN_APP:mW("OPEN_APP"),OPEN_YOUTUBE:mW("OPEN_YOUTUBE"),PAUSE:mW("PAUSE"),PLAY:mW("PLAY"),PLAYER_CAPTION:mW("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:mW("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:mW("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:mW("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:mW("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:mW("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:mW("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:mW("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:mW("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:mW("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:mW("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:mW("PLAYER_MINIMIZE"),PLAYER_NEXT:mW("PLAYER_NEXT"),PLAYER_PAUSE:mW("PLAYER_PAUSE"),PLAYER_PLAY:mW("PLAYER_PLAY"),
PLAYER_PREVIOUS:mW("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:mW("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:mW("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:mW("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:mW("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:mW("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:mW("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:mW("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:mW("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:mW("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:mW("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:mW("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:mW("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:mW("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:mW("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:mW("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:mW("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:mW("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:mW("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:mW("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:mW("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:mW("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:mW("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:mW("PLAY_ALL"),PLEASE_FIX_ERRORS:mW("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:mW("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:mW("PREVIOUS_VIDEO"),PRIVACY_POLICY:mW("PRIVACY_POLICY"),RELOAD:mW("RELOAD"),REQUIRED_LABEL:mW("REQUIRED_LABEL"),SAVE_PLAYLIST:mW("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:mW("SCRUB_SLIDE_USER_EDU"),SEARCH:mW("SEARCH","Search"),
SEARCH_APPEND_LABEL:mW("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:mW("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:mW("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:mW("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:mW("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:mW("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:mW("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:mW("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:mW("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:mW("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:mW("SEEK_SLIDER"),SETTINGS_LABEL:mW("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:mW("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:mW("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:mW("SHOW_LESS"),SHOW_MORE:mW("SHOW_MORE"),SHOW_PLAYER_CONTROLS:mW("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:mW("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:mW("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:mW("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:mW("SIGN_IN_ON_WEB"),STABLE_VOLUME:mW("STABLE_VOLUME"),STABLE_VOLUME_OFF:mW("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:mW("STABLE_VOLUME_ON"),STATS_FOR_NERDS:mW("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:mW("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:mW("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:mW("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:mW("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:mW("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:mW("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:mW("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:mW("TIMESTAMP_SECONDS"),TOGGLE_OFF:mW("TOGGLE_OFF"),TOGGLE_ON:mW("TOGGLE_ON"),TRENDING:mW("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:mW("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:mW("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:mW("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:mW("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:mW("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:mW("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:mW("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:mW("VIDEO_LINK_LABEL")};var mcM=_.d(function(p){var J=p.playerApi;p=_.nE("button",function(H){_.IF(H,36843)});
var S=mW("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.m("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.m("button",{el:p,class:"ytPlayerControlsJumpForwardButtonButton",title:S,"aria-label":S,"on:click":_.Kb(function(){_.LZ(36843);J&&J().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.m("span",null,_.m(_.bn,{icon:"FAST_FORWARD"}))))},"Bi");var FuU=_.d(function(p){var J=p.appApi;p=_.nE("button",function(H){_.IF(H,62946)});
var S=mW("OPEN_IN_MINIPLAYER");return _.m("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.m("button",{el:p,class:"ytMiniplayerButtonButton",title:S,"aria-label":S,"on:click":_.Kb(function(){_.LZ(62946);var H,M;(M=(H=J()).openInMiniplayer)==null||M.call(H);return!1})},_.m(_.bn,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Ci");var vtw=_.d(function(p){var J=p.playerApi;p=_.nE("button",function(X){_.IF(X,142812)});
var S=_.K(_.eQ(!1,void 0,"eOMRAb")),H=S.next().value,M=S.next().value;S=function(){return mW("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(H()?1:2)})};
return _.m("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.m("button",{el:p,class:"ytPlaybackSpeedButtonButton",title:S,"aria-label":S,"on:click":_.Kb(function(){_.LZ(142812);if(J){var X=J(),Z=H();X.setPlaybackRate(Z?1:2);M(!H())}return!1})},_.m("span",null,_.m(_.bn,{icon:function(){return H()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Di");var fcP=_.d(function(p){var J=p.title;var S=p.ariaLabel;var H=p.icon;var M=p.command;var X=p.visualElementId;p=_.nE("button",function(Z){X&&_.IF(Z,X())});
return _.m("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.m("button",{el:p,class:"ytdThumbnailOverlayButtonButton",title:J,"aria-label":S,"on:click":_.Kb(function(){X&&_.LZ(X());M&&_.vO().resolve(_.Ov).resolveCommand(M())})},_.m(_.bn,{icon:H})))},"Ei");var X3="";var Oyp=_.d(function(p){var J=p.playerControlsProps,S=p.onClickFn;p=_.BW(function(){var X=J(),Z=-1;X.captionsAvailable&&(Z=X.captionsEnabled?1:0);return Z},void 0,"MZ0Wqe");
var H=_.BW(function(){var X=J();return X.captionsAvailable?_.Kl(X.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Kl("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),M=_.BW(function(){var X=J();
X=X.captionsAvailable?X.captionsEnabled:void 0;return X},void 0,"fhuQRe");
return _.m("yt-closed-captions-toggle-button",null,_.m(_.hHI,{captionIconType:p,ariaLabel:H,ariaPressed:M,onClick:function(X){var Z=J();if(Z.captionsAvailable){var n=Z.playerApi;if(n){var b=Z.playerApi;if(b){var F=X3;if(F){b=b.getOption("captions","track");var f;X3=(f=b?b.displayName:null)!=null?f:F}else _.cc(b)?(F=_.$hX(b),X3=F.length?(f=uKr(F))?f.displayName:F[0].displayName:""):X3=""}lyy(n);_.z("mweb_disable_set_state_captions_killswitch")&&Z.setState({captionsEnabled:!Z.captionsEnabled})}}var O,
A;(A=(O=Z.appApi).showCaptionsToggleToast)==null||A.call(O,Z);S==null||S(X)},
isOverlay:!0}))},"Fi");var Acp=_.d(function(p){var J=p.data;return _.m("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.m(_.bG,{data:function(){return{type:17,text:_.h7s(J().label)}}}))},"Gi");var Pyw=_.d(function(p){var J=_.XB("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 _.m("animated-seek-arrows",{class:_.XB("ytPlayerControlsAnimatedSeekArrowsHost")},_.m("span",{class:J}),_.m("span",{class:J}),_.m("span",{class:J}))},"Hi");
Pyw.idomCompat=!0;var zdI=_.d(function(){var p=_.Kl("PLAYER_SECONDS",{seconds_placeholder:"30"}),J=_.K(_.eQ(!1,void 0,"iRJu8c")),S=J.next().value,H=J.next().value,M=_.K(_.eQ(!1,void 0,"MPnizf"));J=M.next().value;var X=M.next().value;M={};var Z=_.XB("jumpForwardOverlayOverlay",(M.jumpForwardOverlayOverlayHidden=J,M));_.ad(function(){var n=null,b=null,F=function(){n!==null&&_.Qb().cancelJob(n);b!==null&&_.Qb().cancelJob(b);X(!0);H(!0);_.SK(_.Qb(),function(){X(!1)});
n=_.SK(_.Qb(),function(){X(!0);b=_.SK(_.Qb(),function(){H(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",F);_.VY(function(){window.removeEventListener("jump-forward-clicked",F)})});
return _.m("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.m(_.v,{cond:S,then:function(){return _.m("div",{class:Z},_.m(Pyw,{direction:1,size:"large"}),_.m("div",null,p))}}))},"Ii");var $c$=_.wz.MUTE_VOLUME,otP=_.wz.UNMUTE_VOLUME,edI=_.d(function(p){var J=p.muteIconType;var S=p.onClick;var H=p.useOutlineIcon;var M=p.useDelhiIcons;p=_.nE("button",function(n){_.IF(n,28662)});
var X=function(){var n=J(),b=H==null?void 0:H(),F=M==null?void 0:M(),f="",O="";switch(n){case -1:case 0:f=b?"VOLUME_OFF":F?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";O=otP;break;case 1:f=b?"VOLUME_UP_OUTLINE":F?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";O=$c$;break;case 2:f=b?"VOLUME_DOWN_OUTLINE":F?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";O=$c$;break;default:_.rm(n)}return{iconName:f,ariaLabel:O}},Z=function(){return X().ariaLabel};
return _.m("ytm-mute-button",{class:"ytmMuteButtonHost"},_.m("button",{el:p,class:"ytmMuteButtonButton",title:Z,"aria-label":Z,"on:click":_.Kb(function(n){_.LZ(28662);S==null||S(n);return!1})},_.m("span",null,_.m(_.bn,{icon:function(){return X().iconName}}))))},"Ji");var Wup=_.d(function(p){var J=p.volumeProps;var S=p.onClickFn;var H=p.useOutlineIcon;var M=p.useDelhiIcons;return _.m("yt-mute-toggle-button",null,_.m(edI,{muteIconType:function(){var X=J();return X.volumeMuted||X.volume===0?0:X.volume>50?1:2},
onClick:function(X){var Z=J().playerApi;Z&&(Z.isMuted()?Z.unMute():Z.mute(!1));S==null||S(X)},
useOutlineIcon:function(){return!(H==null||!H())},
useDelhiIcons:function(){return!(M==null||!M())}}))},"Ki");
Wup.idomCompat=!0;var QsI=_.d(function(p){var J=p.data;var S=_.nE("ytm-paid-content-overlay-renderer");return _.m("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:S,"on:animationend":_.Kb(function(){S.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.m(_.yD,{command:function(){return J().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.m(_.v,{cond:function(){var H;return(H=J().icon)==null?void 0:H.iconType},
then:function(){return _.m("span",null,_.m(_.bn,{icon:function(){var H;return(H=J().icon)==null?void 0:H.iconType}}))}}),_.m("div",{class:"ytmPaidContentOverlayText"},_.m(_.v3,{text:function(){return J().text}})),_.m(_.v,{cond:function(){return J().navigationEndpoint},
then:function(){return _.m(_.bn,{icon:"CHEVRON_RIGHT"})}})))},"Li");
QsI.idomCompat=!0;var TGP=[].concat(_.dW([{register:function(p){var J=zCN(p),S;(S=p().playerApi)==null||S.addEventListener("onVolumeChange",J);return function(){}}},
{register:function(p){var J=$9e(p);p=p().playerApi;p==null||p.addEventListener("captionschanged",J);p==null||p.addEventListener("captionssettingschanged",J);p==null||p.addEventListener("onCaptionsTrackListChanged",J);return function(){}}}]),[{register:function(p){var J=fxP(p),S;
(S=p().playerApi)==null||S.addEventListener("onStateChange",J);return function(){}}},
{register:function(p){var J=O1r(p),S;(S=p().playerApi)==null||S.addEventListener("onPlaybackRateChange",J);return function(){}}},
{register:function(p){var J=A1l(p),S;(S=p().playerApi)==null||S.addEventListener("onVideoDataChange",J);return function(){}}},
{register:function(p){var J=PjI(p),S,H;(S=p())==null||(H=S.playerApi)==null||H.addEventListener("onVideoProgress",J);return function(){}}}]);var Cyp=_.d(function(p){var J=p.data;var S=function(){return _.Kl("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+J().playbackRate})};
return _.m(_.v,{cond:function(){return J().playbackRate&&J().playbackRate!==1},
then:function(){return _.m("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.m("div",{class:"ytPlaybackRateOverlayOverlay"},_.m(Pyw,{direction:1,size:"small"}),_.m("div",{class:"ytPlaybackRateOverlayLabel"},S)))}})},"Ni");var ycy=_.d(function(p){var J=p.data;return _.m("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.m(_.v,{cond:function(){var S,H=(S=J())==null?void 0:S.playerResponse,M;return H==null?void 0:(M=H.paidContentOverlay)==null?void 0:M.paidContentOverlayRenderer},
then:function(S){return _.m(QsI,{data:S})}}))},"Pi"),BoP=_.d(function(p){var J=p.props;
var S=p.data;var H=p.options;var M=function(){var F,f,O,A;return(F=S())==null?void 0:(f=F.playerResponse)==null?void 0:(O=f.playerConfig)==null?void 0:(A=O.inlinePlaybackConfig)==null?void 0:A.showAudioControls},X=function(){var F,f;
if(M()&&((F=H())==null?void 0:(f=F.additionalButton)==null?void 0:f.button)!==void 0){var O,A,P;F=(O=S())==null?void 0:(A=O.playerApi)==null?void 0:(P=A.getSize())==null?void 0:P.height;if(!(F===void 0||F<180)){var W,y;return(W=H())==null?void 0:(y=W.additionalButton)==null?void 0:y.button}}},Z=function(){var F,f;
return(F=H())==null?void 0:(f=F.additionalButton)==null?void 0:f.thumbnailOverlayButtonRenderers},n=function(){var F,f;
return(F=H())==null?void 0:(f=F.additionalButton)==null?void 0:f.thumbnailOverlayButtonViewModels},b=function(){var F=[_.m(Wup,{volumeProps:J})],f;
((f=H())==null?0:f.hideCaptionsToggleButton)||F.push(_.m(Oyp,{playerControlsProps:J}));X()===1&&F.push(_.m(mcM,{playerApi:function(){return J().playerApi}}));
X()===2&&F.push(_.m(FuU,{appApi:function(){return J().appApi}}));
X()===3&&F.push(_.m(vtw,{playerApi:function(){return J().playerApi}}));
f=Z();if(X()===4&&f){f=_.K(f);for(var O=f.next(),A={};!O.done;A={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$49:void 0,command$jscomp$604:void 0},O=f.next()){O=O.value;A.tooltip$jscomp$2=O.tooltip;var P=void 0,W=void 0;A.ariaLabel$jscomp$19=((P=O.accessibility)==null?void 0:(W=P.accessibilityData)==null?void 0:W.label)||A.tooltip$jscomp$2;P=void 0;A.icon$jscomp$49=(P=O.icon)==null?void 0:P.iconType;A.command$jscomp$604=O.command;A.tooltip$jscomp$2&&A.ariaLabel$jscomp$19&&A.icon$jscomp$49&&
F.push(_.m(fcP,{title:function(y){return function(){return y.tooltip$jscomp$2}}(A),
ariaLabel:function(y){return function(){return y.ariaLabel$jscomp$19}}(A),
icon:function(y){return function(){return y.icon$jscomp$49}}(A),
command:function(y){return function(){return y.command$jscomp$604}}(A)}))}}f=n();
if(X()===4&&f)for(f=_.K(f),O=f.next(),A={};!O.done;A={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$605:void 0,trackingParamsVeType:void 0},O=f.next())O=O.value,A.tooltip$jscomp$3=O.title,A.ariaLabel$jscomp$20=O.accessibilityText||A.tooltip$jscomp$3,A.icon$jscomp$50=O.iconName,A.command$jscomp$605=_.sa(O.onTap),W=P=void 0,A.trackingParamsVeType=((P=O.loggingDirectives)==null?0:P.trackingParams)?(W=x9e(_.cg(O.loggingDirectives.trackingParams)))==null?void 0:
_.bW(W,2):void 0,A.tooltip$jscomp$3&&A.ariaLabel$jscomp$20&&A.icon$jscomp$50&&F.push(_.m(fcP,{title:function(y){return function(){return y.tooltip$jscomp$3}}(A),
ariaLabel:function(y){return function(){return y.ariaLabel$jscomp$20}}(A),
icon:function(y){return function(){return y.icon$jscomp$50}}(A),
command:function(y){return function(){return y.command$jscomp$605}}(A),
visualElementId:function(y){return function(){return y.trackingParamsVeType}}(A)}));
return F};
return _.m(_.v,{cond:M,then:function(){return _.m("div",{class:"ytInlinePlayerControlsTopRightControls"},_.m(_.dY,{each:b},function(F){return _.m("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.m("div",{class:"ytInlinePlayerControlsButtonIcon"},F))}))}})},"Qi"),gte=_.d(function(p){var J=p.props;
var S=p.data;var H=p.options;p={};p=_.XB("ytInlinePlayerControlsBottomRightControls",(p.ytInlinePlayerControlsBottomRightControlsHidden=function(){var M;return eCI(S(),H())&&((M=H())==null?void 0:M.insetProgressBar)&&(J().isHovering||J().isDragging)},p));
return _.m("div",{class:p},_.m(Ucr,{data:S}),_.m(_.v,{cond:function(){var M;return!((M=H())==null?0:M.hideTimeDisplay)},
then:function(){return _.m(ssw,{props:J,data:S})}}))},"Ri"),Ucr=_.d(function(p){var J=p.data;
return _.m(_.AH,{data:function(){var S;return Z1e((S=J())==null?void 0:S.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Acp})},"Si"),ssw=_.d(function(p){var J=p.props;
var S=p.data;return _.m(_.v,{cond:function(){return J().isLive},
then:function(){return _.m(tSy,{props:J,data:S})},
else:function(){return _.m(hdl,{props:J,data:S})}})},"Ti"),hdl=_.d(function(p){var J=p.props;
var S=p.data;var H=_.BW(function(){var M;return nVM((M=S())==null?void 0:M.thumbnailOverlays)},void 0,"Pf9uIe");
return _.m("div",{class:_.XB("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.wz.PLAYER_TIME_ELAPSED+" "+_.ch9(J().playedTime)}},_.m(_.bG,{data:function(){var M=_.ch9(J().videoDuration-J().playedTime);
return Object.assign({},{type:17,text:M},H())}}))},"Ui"),Dcl=_.d(function(p){p=p.badgeShapeData;
return _.m("div",{class:_.XB("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.m(_.bG,{data:p}))},"Vi"),tSy=_.d(function(p){var J=p.data;
p=_.BW(function(){if(_.z("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var H,M=_.K(((H=J())==null?void 0:H.thumbnailOverlays)||[]);for(H=M.next();!H.done;H=M.next()){H=H.value;if(H.thumbnailOverlayTimeStatusRenderer||H.thumbnailOverlayBadgeViewModel)return H;var X=void 0;if((X=H.thumbnailBottomOverlayViewModel)==null?0:X.badges)if(H=H.thumbnailBottomOverlayViewModel.badges.find(function(Z){return _.e(Z,RCI)}))return H}}},void 0,"GPGpgc");
var S=_.BW(function(){var H,M,X,Z,n,b;return _.TRL((H=J())==null?void 0:(M=H.playerApi)==null?void 0:(X=M.getSize())==null?void 0:X.width,(Z=J())==null?void 0:(n=Z.playerApi)==null?void 0:(b=n.getSize())==null?void 0:b.height)},void 0,"OeIVKe");
return _.m(_.v,{cond:p,then:function(H){return _.m(_.AH,{data:H},{thumbnailOverlayTimeStatusRenderer:function(M){var X=M.data;M=_.BW(function(){return _.C23(X(),0)},void 0,"skoDC");
return _.m(Dcl,{badgeShapeData:M})},
thumbnailBadgeViewModel:function(M){return _.m(_.CQ8,{data:M.data,class:_.XB("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(M){return _.m(_.tMn,{data:M.data,thumbnailSize:S})}})},
else:function(){var H={type:18,text:_.wz.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.m(Dcl,{badgeShapeData:function(){return H}})}})},"Wi"),ke$=_.d(function(p){var J=p.props;
var S=p.data;var H=p.options;return _.m(_.JVN,{progressBarProps:J,config:function(){var M,X=_.e((M=S())==null?void 0:M.multiMarkersPlayerBar,_.rMq),Z;M=((Z=H())==null?0:Z.insetProgressBar)?2:1;var n;Z=(n=H())==null?void 0:n.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:M,chapterData:X,isInlinePlayback:!0,doSeekOnClick:Z,playheadDotBehavior:Z?1:0}}})},"Xi");_.ci(_.d(function(p){var J=p.data;var S=p.appApi;var H=p.options;var M=vVy(J,oVy(S));p={};S={};return _.m("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.m("div",{class:_.XB("ytInlinePlayerControlsDarkenedOverlay",(p.ytInlinePlayerControlsDarkenedOverlayShow=function(){return M().isHovering},p))}),_.m(zdI,null),_.m(Cyp,{data:M}),_.m(ycy,{data:J}),_.m(byp,{playerControlsProps:M,
isShortsPage:!1}),_.m("div",{class:_.XB((S.ytInlinePlayerControlsControlsHidden=function(){return M().isDragging},S))},_.m(BoP,{props:M,
data:J,options:H}),_.m(gte,{props:M,data:J,options:H})),_.m(_.v,{cond:function(){return eCI(J(),H())},
then:function(){return _.m(ke$,{props:M,data:J,options:H})}}))},"Oi"),"yt-inline-player-controls",{props:{data:_.fD,
appApi:_.jr,options:_.fD}});var xJ=function(){var p=_.T.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.persistentPanelVisible=!1;p.videoPreviewDataIndex=0;p.JSC$19600_playerPromise=null;p.player=null;p.enableAudioControls=!1;p.hasBeenUnmuted=!1;p.captionsHaveBeenTurnedOff=!1;p.JSC$19600_playerEvents=new Map;p.videoPreviewFetchRequest=null;p.scheduledPreviewEndJobId=null;p.JSC$19600_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};
_.Q(xJ,_.T);_.R=xJ.prototype;
_.R.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{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",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.R.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19600_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19600_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19600_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19600_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.n3(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.n3(this,this.onScroll))};
_.R.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.n3(this,this.onScroll))};
_.R.onPageTypeChange=function(){this.deactivate()};
_.R.onWindowResized=function(){this.deactivate()};
_.R.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.R.onCaptionsChanged=function(p){p=!!p.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!p);this.setCaptionSize()};
_.R.setCaptionSize=function(){var p;if(this.active&&!this.captionsHaveBeenTurnedOff&&((p=this.player)==null?0:p.getCaptionWindowContainerId())){var J;(J=this.player)==null||J.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.R.currentPageAllowed=function(){return!this.isWatchPage};
_.R.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.z("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var p=this.positionData,J=p.initialTopPosition,S=p.initialHorizontalPosition;_.K3(this.hostElement,{"--ytd-video-preview-translate-left":p.finalHorizontalPosition-S+"px","--ytd-video-preview-translate-top":p.finalTopPosition-J+"px","--ytd-video-preview-original-top-position":J+
"px","--ytd-video-preview-original-horizontal-position":S+"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};
_.R.isOutOfBounds=function(p){var J=p.initialHorizontalPosition+12;p=J+p.videoPreviewWidth>window.innerWidth;return J<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&J<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&J<72||p};
_.R.handleOpenVideoPreviewAction=function(p){var J=this,S;return _.G(function(H){if(!J.currentPageAllowed())return H.return(0);J.opts=p;return(S=J.alignVideoPreviewForAnimation(p.thumbnail))?H.return(J.activate()):H.return(0)})};
_.R.onMouseLeave=function(p){var J,S;(J=this.opts)==null||(S=J.mouseleaveCallback)==null||S.call(J);this.shouldDeactivateOnMouseLeave(p)&&this.deactivate()};
_.R.onScroll=function(){var p,J;((p=this.opts)==null?0:p.isAutoplay)&&((J=this.opts)==null?0:J.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.R.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.wg.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.R.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.R.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",xJ.JSC$19599_DEFAULT_CLICK_LOCATION_BEHAVIOR,xJ.JSC$19599_CLICK_LOCATION_ID_MAP)};
_.R.shouldDeactivateOnMouseLeave=function(p){p=p.relatedTarget;if(!p)return!0;var J;return(J=this.opts)!=null&&J.mediaRenderer?!_.Sh(this.opts.mediaRenderer).contains(p):!0};
_.R.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.R.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$19600_preventProgressSaveTimer=
_.SK(_.wg,function(){p.resetPreventProgressSaveTimer()},1E4);
var J;if((J=this.opts)==null?0:J.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.SK(_.wg,function(){p.hasMultipleVideoPreviews()?p.startPlaybackForNextVideo():p.deactivate()},this.opts.videoPreviewDurationMs);
var S;this.player.setGlobalCrop(((S=this.opts)==null?0:S.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.R.getRoundedCornersSize=function(){var p;if((p=this.opts)==null?0:p.roundedCornersSize){var J;return(J=this.opts)==null?void 0:J.roundedCornersSize}var S;if((S=this.opts)==null?0:S.enableRounding){var H;if(((H=this.opts)==null?void 0:H.thumbnailSize)==="small")return 1;var M;if(((M=this.opts)==null?void 0:M.thumbnailSize)==="medium")return 2;var X;if(((X=this.opts)==null?void 0:X.thumbnailSize)==="large")return 3}return _.z("web_imp_inset_progress_bar")?3:0};
_.R.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.R.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.R.onMediaContainerClick=function(p){this.isShortcutClick(p)||(this.navigateToWatch(p),p.preventDefault(),p.stopPropagation())};
_.R.activate=function(){var p=this,J,S,H,M,X,Z,n,b,F;return _.G(function(f){switch(f.nextAddress){case 1:if(!p.currentPageAllowed())return f.return(0);S=(J=p.videoPreviewData)==null?void 0:J.inlinePlaybackEndpoint;H=_.un.instance;if(!S||!H)return f.return(0);p.playbackIntentTriggered=!0;((M=p.opts)==null?0:M.mediaRenderer)&&((X=p.opts)==null||!X.isAutoplay)&&XfI(p.opts.mediaRenderer,function(){p.deactivate()});
_.mN(p,function(){p.revealPreviewUi()});
Z={};_.z("enable_unknown_lact_fix_on_html5")&&(_.vO().resolve(_.Am),Z.lact=_.AV());p.videoPreviewFetchRequest=Inw(H,p.getInlinePlaybackRequestData(p.videoPreviewData),Z);_.oI(f,2);return f.yield(p.videoPreviewFetchRequest,4);case 4:n=f.yieldResult;if(((b=n)==null?void 0:(F=b.playabilityStatus)==null?void 0:F.status)==="OK")return f.return(p.handlePlayerResponse(n));throw Error("fk");case 2:_.BZ(f),p.deactivate();case 3:return f.return(1)}})};
_.R.getInlinePlaybackRequestData=function(p){var J,S=_.z("web_imp_player_mute_params")?((J=this.opts)==null?void 0:J.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:p.inlinePlaybackEndpoint,startPlaybackInMutedState:S}};
_.R.handlePlayerResponse=function(p){var J=this,S,H,M,X,Z,n,b,F,f,O,A,P,W,y;return _.G(function(t){if(t.nextAddress==1){S=J.getInlinePlaybackVideoId();if(!(((H=p)==null?0:(M=H.videoDetails)==null?0:M.videoId)&&J.currentPageAllowed()&&J.playbackIntentTriggered&&J.opts&&S))return J.deactivate(),t.return(0);if(p.videoDetails.videoId!==S)return t.return(0);J.enableAudioControls=!!((X=p.playerConfig)==null?0:(Z=X.inlinePlaybackConfig)==null?0:Z.showAudioControls);p.trackingParams=J.getInlinePlaybackTrackingParams();
if(!J.inlinePlayer)return t.return(0);n={};if(F=_.e((b=J.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint,_.lj))n.watch_endpoint=F;if(J.videoPreviewData){var D,k=(D=_.e(J.videoPreviewData.inlinePlaybackEndpoint,_.lj))==null?void 0:D.startTimeSeconds;k!==void 0&&(p.playerConfig||(p.playerConfig={}),p.playerConfig.playbackStartConfig||(p.playerConfig.playbackStartConfig={}),p.playerConfig.playbackStartConfig.startPosition||(p.playerConfig.playbackStartConfig.startPosition={}),p.playerConfig.playbackStartConfig.startSeconds=
k,p.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(k*1E3))}J.inlinePlayer.loadVideoWithPlayerResponse(p,n);if(J.JSC$19600_playerPromise)return t.jumpTo(2);J.JSC$19600_playerPromise=J.inlinePlayer.getPlayerPromise();return t.yield(J.JSC$19600_playerPromise,3)}t.nextAddress!=2&&(f=t.yieldResult,f.setInlinePreview(!0),O=!_.z("web_imp_theater_bugfix"),f.setSizeStyle(!1,O),J.ytPlayerListenerBehavior.listenToPlayerEvents(f,J.JSC$19600_playerEvents),J.player=f,_.cf(J.hostElement,
"player-api-ready"));((A=J.opts)==null?0:A.showPlayerControls)&&J.videoPreviewData&&J.player&&(J.playerControlsData={playerResponse:p,isInlinePlayback:!0,thumbnailOverlays:J.videoPreviewData.thumbnailOverlays,playerApi:J.player},J.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!J.unroundCornersForPlayback,additionalButton:J.getAdditionalButtonType(J.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(P=J.opts)==null?void 0:P.hideTimeDisplay,hideScrubbingControls:(W=J.opts)==
null?void 0:W.hideScrubber,hideCaptionsToggleButton:(y=J.opts)==null?void 0:y.hideCaptionsToggleButton});return t.return(2)})};
_.R.revealPreviewUi=function(){var p=this;this.playbackIntentTriggered&&_.Ouk(this,function(){p.hasThumbnailPositionChangedSinceTriggered()||(p.updateActiveState(!0),p.noAnimation=!1)})};
_.R.hasThumbnailPositionChangedSinceTriggered=function(){var p=this.positionData,J=this.getThumbnailPositionData();return(p==null?void 0:p.initialTopPosition)!==(J==null?void 0:J.initialTopPosition)||(p==null?void 0:p.initialHorizontalPosition)!==(J==null?void 0:J.initialHorizontalPosition)};
_.R.getThumbnailPositionData=function(){var p,J;if((J=this.opts)==null||!J.thumbnail)return null;J=this.opts.thumbnail;var S=((p=this.opts)==null?0:p.cropPlayerToFillThumbnailHorizontally)?!1:!0;var H=J.getBoundingClientRect();p=H.width;J=H.height;var M=H.top+window.scrollY;H=H.left+window.scrollX;var X=S?Math.ceil(p):p;S=S?Math.ceil(J):J;var Z=p/X;p={initialScale:Z,initialTopPosition:M-12*Z,finalTopPosition:M-12-(S-J)/2,initialHorizontalPosition:H-(12+(X-p)/2),finalHorizontalPosition:H-12-(X-p)/
2,videoPreviewWidth:X,videoPreviewHeight:S};return p};
_.R.updateActiveState=function(p){this.active=p;this.ytdReduxBehavior.dispatch(_.Jk({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:p}))};
_.R.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&&(_.wg.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.R.deactivate=function(p){p=p===void 0?{}:p;p=p.resetWatchEndpointStartTime===void 0?!1:p.resetWatchEndpointStartTime;J1p&&(J1p.disconnect(),J1p=null);this.stopPlayer({resetWatchEndpointStartTime:p});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.R.isValidThumbnailOverlayButton=function(p,J){p=p.thumbnailOverlayButtonRenderer;var S;return!!p&&!!p.tooltip&&!((S=p.icon)==null||!S.iconType)&&J.includes(p.icon.iconType)};
_.R.isValidThumbnailOverlayButtonViewModel=function(p,J){var S;p=_.e((S=p.thumbnailOverlayButtonViewModel)==null?void 0:S.overlayButton,_.mO);return!!p&&!!p.title&&!!p.iconName&&J.includes(p.iconName)};
_.R.getAdditionalButtonType=function(p){var J=this;if(_.z("web_imp_fastforward_button"))return{button:1};if(_.z("web_imp_miniplayer_button"))return{button:2};if(_.z("web_imp_playback_speed_button"))return{button:3};var S=["BOX_STACK_3"],H=(p||[]).filter(function(X){return J.isValidThumbnailOverlayButton(X,S)}).map(function(X){return X.thumbnailOverlayButtonRenderer});
if(H.length)return{button:4,thumbnailOverlayButtonRenderers:H};var M=["BOX_STACK_3"];p=(p||[]).filter(function(X){return J.isValidThumbnailOverlayButtonViewModel(X,M)}).map(function(X){return _.e(X.thumbnailOverlayButtonViewModel.overlayButton,_.mO)});
if(p.length)return{button:4,thumbnailOverlayButtonViewModels:p}};
_.R.allowCaptions=function(){var p;return!((p=this.opts)==null?0:p.forceCaptionsOff)};
_.R.allowUnmuting=function(){var p;return this.enableAudioControls&&!((p=this.opts)==null?0:p.forceMutedVolume)};
_.R.beginStartTimeUpdater=function(){var p=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Qn(function(){p.updateWatchEndpointStartTime()},1E3)};
_.R.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.R.resetPreventProgressSaveTimer=function(){this.JSC$19600_preventProgressSaveTimer!==null&&(_.wg.cancelJob(this.JSC$19600_preventProgressSaveTimer),this.JSC$19600_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.R.updateWatchEndpointStartTime=function(p){var J=this.videoPreviewData;if(this.player&&J!=null&&J.inlinePlaybackEndpoint&&!this.JSC$19600_preventProgressSaveTimer){p=p?0:Math.floor(this.player.getCurrentTime());var S=_.e(J.navigationEndpoint,_.lj);S&&(S.startTimeSeconds=p);if(J=_.e(J.inlinePlaybackEndpoint,_.lj))J.startTimeSeconds=p}};
_.R.isShortcutClick=function(p){return!!p&&(p.ctrlKey||p.shiftKey||p.metaKey)};
_.R.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.R.openInMiniplayer=function(){var p=this,J,S;return _.G(function(H){if(H.nextAddress==1){S=(J=p.videoPreviewData)==null?void 0:J.navigationEndpoint;if(!S)return H.return();_.YE().lockupActivation=!0;return H.yield(_.I6E(_.vO().resolve(_.DF),S),2)}_.YE().userActivation=!0;_.UK(H)})};
_.R.navigateToWatch=function(p){var J,S=(J=this.videoPreviewData)==null?void 0:J.navigationEndpoint;if(S){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(S,p,!0);else{var H;_.z("web_thumbnail_to_watch_transition")&&((H=this.opts)==null?0:H.thumbnail)&&_.wA4(_.vO().resolve(_.cD),this.opts.thumbnail);_.cf(this.hostElement,"yt-navigate",{endpoint:S})}this.deactivate()}};
_.R.getInlinePlaybackVideoId=function(){var p,J;return(J=_.e((p=this.videoPreviewData)==null?void 0:p.inlinePlaybackEndpoint,_.lj))==null?void 0:J.videoId};
_.R.getInlinePlaybackTrackingParams=function(){var p,J;return(p=this.videoPreviewData)==null?void 0:(J=p.inlinePlaybackEndpoint)==null?void 0:J.clickTrackingParams};
_.R.hasMultipleVideoPreviews=function(){var p;return!!(((p=this.opts)==null?0:p.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.R.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())};
_.vh.Object.defineProperties(xJ.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 J;return(J=this.opts)==null?void 0:J.videoPreviewData[this.videoPreviewDataIndex]}var S;return(S=this.opts)==null?void 0:S.videoPreviewData}}});
xJ.prototype.onIsAdsVideoChange=xJ.prototype.onIsAdsVideoChange;xJ.prototype.onInlinePreviewIsEnabledChange=xJ.prototype.onInlinePreviewIsEnabledChange;xJ.prototype.optsChanged=xJ.prototype.optsChanged;xJ.prototype.onMouseLeave=xJ.prototype.onMouseLeave;xJ.prototype.onPersistentPanelVisibleChange=xJ.prototype.onPersistentPanelVisibleChange;xJ.JSC$19599_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
xJ.JSC$19599_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"}];_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],xJ.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],xJ.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],xJ.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],xJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],xJ.prototype,"componentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],xJ.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Ca.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],xJ.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xJ.prototype,"opts",void 0);_.V([_.N(),_.Y("design:type",Object)],xJ.prototype,"playerControlsData",void 0);_.V([_.N(),_.Y("design:type",Object)],xJ.prototype,"playerControlsAppApi",void 0);
_.V([_.N(),_.Y("design:type",Object)],xJ.prototype,"playerControlsOptions",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],xJ.prototype,"noAnimation",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],xJ.prototype,"hidden",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],xJ.prototype,"active",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],xJ.prototype,"playing",void 0);
_.V([_.N({selector:_.tpW}),_.Y("design:type",Boolean)],xJ.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.N(),_.Y("design:type",String)],xJ.prototype,"pagePath",void 0);_.V([_.N({selector:_.UaX}),_.Y("design:type",Boolean)],xJ.prototype,"isWatchPage",void 0);_.V([_.N({selector:_.uT.persistentPanelVisibleSelector}),_.Y("design:type",Object)],xJ.prototype,"persistentPanelVisible",void 0);
_.V([_.U("videoPreviewData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xJ.prototype,"thumbnailData",null);_.V([_.U("opts","active"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xJ.prototype,"hidePlayerControls",null);_.V([_.U("opts"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xJ.prototype,"isAdsVideo",null);
_.V([_.U("opts"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xJ.prototype,"roundedCornersSmall",null);_.V([_.U("opts"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xJ.prototype,"roundedCornersMedium",null);_.V([_.U("opts"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xJ.prototype,"roundedCornersLarge",null);
_.V([_.U("opts"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xJ.prototype,"unroundCornersForPlayback",null);_.V([_.U("opts","videoPreviewDataIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xJ.prototype,"videoPreviewData",null);_.V([_.N(),_.Y("design:type",Object)],xJ.prototype,"videoPreviewDataIndex",void 0);_.V([_.FM("#inline-player"),_.Y("design:type",Object)],xJ.prototype,"inlinePlayer",void 0);
_.V([_.bO("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xJ.prototype,"onPersistentPanelVisibleChange",null);_.V([_.GI("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],xJ.prototype,"onMouseLeave",null);_.V([_.An("opts"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xJ.prototype,"optsChanged",null);
_.V([_.An("inlinePreviewIsEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xJ.prototype,"onInlinePreviewIsEnabledChange",null);_.V([_.bO("isAdsVideo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xJ.prototype,"onIsAdsVideoChange",null);_.V([_.gw({is:"ytd-video-preview",disableElementRegistration:!0})],xJ);
_.l(xJ,"ytd-video-preview",function(){if(Gey!==void 0)return Gey;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Gey=p},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.nj=function(p){return function(J,S){var H=p||S.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(J,S,{get:function(){var M;return this.$?this.$[H]:(M=_.my(this))==null?void 0:M.querySelector("#"+H)},
enumerable:!0,configurable:!0})}};_.Gl=function(p){p=p===void 0?!1:p;_.gp.call(this);this.pubSub_=new _.sv(p);_.$c(this,this.pubSub_)};
_.SJ(_.Gl,_.gp);_.Gl.prototype.subscribe=function(p,J,S){return this.isDisposed()?0:this.pubSub_.subscribe(p,J,S)};
_.Gl.prototype.unsubscribe=function(p,J,S){return this.isDisposed()?!1:this.pubSub_.unsubscribe(p,J,S)};
_.Gl.prototype.unsubscribeByKey=function(p){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(p)};
_.Gl.prototype.publish=function(p,J){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var hUG=function(){_.rP("ypcRedeemFlowStarted")},Djp=function(p){_.rP("ypcRedeemFlowFailed",void 0,void 0,void 0,p)},kfq=function(p,J,S){J&&S&&(p.videos.forEach(function(H){H.videoId===J&&(H.itemId=S)}),p.recommendedVideos.forEach(function(H){H.videoId===J&&(H.itemId=S)}))};var NMa;var TMD;/*

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
*/
_.QG({_template:function(){if(TMD!==void 0)return TMD;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;NMa===void 0&&(NMa=document.createElement("template"));var H=NMa;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return TMD=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,J){var S=this._resolveSrc(p);S!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",p===""||J?this._setLoading(!1):(this._resolvedSrc=S,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,J=this.$.placeholder.style;p.backgroundSize=J.backgroundSize=this.sizing;p.backgroundPosition=J.backgroundPosition=this.sizing?this.position:"";p.backgroundRepeat=J.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(p){p=_.e5(p,this.$.baseURIAnchor.href);p.length>=2&&p[0]==="/"&&p[1]!=="/"&&(p=(location.origin||location.protocol+"//"+location.host)+p);return p}});var djy;var uPy;_.QG({_template:function(){if(uPy!==void 0)return uPy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;djy===void 0&&(djy=document.createElement("template"));var H=djy;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return uPy=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 J=this.getAttribute("heading"),S=this.getAttribute("aria-label");typeof S==="string"&&S!==J||this.setAttribute("aria-label",p)},
_computeHeadingClass:function(p){return p?" over-image":""},
_computeAnimated:function(p){return p}});var lly=new _.Zz("addRendererToItemSectionAction");var VId;var hI=function(){return _.T.apply(this,arguments)||this};
_.Q(hI,_.T);hI.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],hI.prototype,"rendererBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],hI.prototype,"dismissibleItemBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],hI.prototype,"rendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],hI.prototype,"data",void 0);_.V([_.gw({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],hI);
_.l(hI,"ytd-comment-history-entry-renderer",function(){if(VId!==void 0)return VId;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return VId=p},{mode:1});var qNG;_.QI("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.QI("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var D9=function(){return _.T.apply(this,arguments)||this};
_.Q(D9,_.T);_.R=D9.prototype;_.R.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.onKeyUp=function(p){if(p.keyCode===13)this.onTap()};
_.R.onTap=function(){this.data.recordClickEndpoint&&_.vO().resolve(_.Ov).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var p=this.data.navigationEndpoint;p&&_.e(p,_.Ml)&&_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}})};
_.R.readChanged=function(){var p;_.XM(this.hostElement,"unread",!((p=this.data)==null?0:p.read))};
_.R.dataChanged=function(){this.data&&_.XM(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.R.computeThumbnailSize=function(){var p;return((p=this.data)==null?0:p.highPriorityNotification)?32:48};
_.R.getEndpointURL=function(p){return p&&!_.e(p,_.Ml)?this.componentBehavior.computeHref_(p):null};
_.R.getEndpointData=function(p){return p&&!_.e(p,_.Ml)?p:null};
D9.prototype.computeThumbnailSize=D9.prototype.computeThumbnailSize;D9.prototype.dataChanged=D9.prototype.dataChanged;D9.prototype.readChanged=D9.prototype.readChanged;D9.prototype.onKeyUp=D9.prototype.onKeyUp;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],D9.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],D9.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],D9.prototype,"data",void 0);_.V([_.N({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.Y("design:type",Number)],D9.prototype,"thumbnailSize",void 0);_.V([_.GI("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],D9.prototype,"onKeyUp",null);
_.V([_.bO("data.read"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D9.prototype,"readChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D9.prototype,"dataChanged",null);_.V([_.bO("data.highPriorityNotification"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D9.prototype,"computeThumbnailSize",null);
_.V([_.gw({is:"ytd-notification-renderer",disableElementRegistration:!0})],D9);
_.l(D9,"ytd-notification-renderer",function(){if(qNG!==void 0)return qNG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return qNG=p},{mode:1});var alv;var k5=function(){return _.T.apply(this,arguments)||this};
_.Q(k5,_.T);k5.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"}}}};
k5.prototype.computeActionButtonClass=function(p){return!p.actionButtons||p.actionButtons.length<=1?"single-button":p.description?"vertical-buttons":"horizontal-buttons"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],k5.prototype,"data",void 0);_.V([_.gw({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],k5);
_.l(k5,"ytd-playlist-show-metadata-renderer",function(){if(alv!==void 0)return alv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return alv=p},{mode:1});var Eyp;_.QI("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var NJ=function(){return _.T.apply(this,arguments)||this};
_.Q(NJ,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],NJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],NJ.prototype,"data",void 0);_.V([_.gw({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],NJ);
_.l(NJ,"ytd-purchase-item-renderer",function(){if(Eyp!==void 0)return Eyp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Eyp=p},{mode:1});var YNG;var rrG={};rrG.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"}};_.QI("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Ta=function(){return _.T.apply(this,arguments)||this};
_.Q(Ta,_.T);Ta.prototype.onYtNavigate=function(p){var J=this.openPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);J&&(p.stopPropagation(),this.openPopupBehavior.openPopup(J))};
Ta.prototype.onYtNavigate=Ta.prototype.onYtNavigate;_.V([_.B(rrG.YtSimpleTextSectionBehavior),_.Y("design:type",Object)],Ta.prototype,"ytSimpleTextSectionBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],Ta.prototype,"openPopupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ta.prototype,"data",void 0);
_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ta.prototype,"onYtNavigate",null);_.V([_.gw({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Ta);
_.l(Ta,"ytd-simple-text-section-renderer",function(){if(YNG!==void 0)return YNG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return YNG=p},{mode:1});var jwd;_.QI("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var wp4=function(){return _.T.apply(this,arguments)||this};
_.Q(wp4,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wp4.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wp4.prototype,"data",void 0);_.V([_.gw({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],wp4);
_.l(wp4,"ytd-unlimited-page-feature-info-renderer",function(){if(jwd!==void 0)return jwd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return jwd=p},{mode:1});var xjd;var crs;var dD=function(){return _.T.apply(this,arguments)||this};
_.Q(dD,_.T);dD.prototype.dataChanged=function(){if(this.data){var p=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);p&&(p=_.I4(p,screen.width),this.hostElement.style.backgroundImage="url("+p+")")}};
dD.prototype.dataChanged=dD.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],dD.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dD.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],dD);
_.l(dD,"ytd-post-redemption-section-renderer",function(){if(crs!==void 0)return crs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return crs=p},{mode:1});var Ild;var u5=function(){return _.T.apply(this,arguments)||this};
_.Q(u5,_.T);u5.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],u5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],u5.prototype,"data",void 0);_.V([_.gw({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],u5);
_.l(u5,"ytd-ypc-post-redemption-renderer",function(){if(Ild!==void 0)return Ild;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Ild=p},{mode:1});_.QI("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var l5=function(){var p=_.T.apply(this,arguments)||this;p.MIN_CODE_LENGTH=12;p.MAX_CODE_LENGTH=24;return p};
_.Q(l5,_.T);_.R=l5.prototype;_.R.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.R.created=function(){this.riskService=new _.gMw;this.loadPaymentThenable=_.hev(_.jn("YPC_MB_URL"))};
_.R.ready=function(){var p=this;this.code.addEventListener("keypress",function(J){p.onCodeInputKeypress(J)})};
_.R.dataChanged=function(){var p=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(J){J=_.K(J);for(var S=J.next();!S.done;S=J.next())S=S.value,S.type==="attributes"&&S.attributeName==="dark"&&p.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.R.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+")")}};
_.R.computeRedeemButton=function(p){(p=this.get("redeemButton.buttonRenderer",p))&&(p=Object.assign({},p,{serviceEndpoint:void 0}));return p};
_.R.onRedeemButtonTap=function(p){p.stopPropagation();hUG();this.redeemCode()};
_.R.redeemCode=function(){var p=this;this.isLoading=!0;var J=this.riskService.init();_.kf([J,this.loadPaymentThenable]).then(function(){var S=p.data.redeemButton.buttonRenderer.serviceEndpoint,H=_.t44(),M=_.w_.payments.business.integration.ClientTokenFactory.createClientToken(_.e(S,_.BXd).countryCode,H);H={c:p.code.value.trim(),rd:window.btoa(H),ctk:M};S&&_.vO().resolve(_.Ov).resolveCommand(S,{form:Object.assign({},H,{element:p.hostElement})})},function(){p.showGenericError();
Djp("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.xv(Error("Po"))})};
_.R.onYtServiceRequestCompleted=function(p){p.stopPropagation();this.isLoading=!1;var J,S;this.errorMessage=(J=p.detail)==null?void 0:(S=J.data)==null?void 0:S.errorMessage;var H,M;this.postRedemptionRenderer=(H=p.detail)==null?void 0:(M=H.data)==null?void 0:M.renderer;var X,Z;if(p=(X=p.detail)==null?void 0:(Z=X.data)==null?void 0:Z.redirectEndpoint)this.isLoading=!0,_.cf(this.hostElement,"yt-navigate",{endpoint:p});this.errorMessage?Djp("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
p)&&_.rP("ypcRedeemFlowSucceeded")};
_.R.onYtServiceRequestError=function(p){p.stopPropagation();this.isLoading=!1;if(p=this.get("detail.error.message",p))this.errorMessage=_.aR(p);Djp("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.R.onInvokeInstrumentManagerActionCompleted=function(p){p.stopPropagation();this.redeemCode()};
_.R.onInvokeInstrumentManagerActionError=function(p){p.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",p)){case "instrumentManagerLoadError":this.showGenericError();Djp("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Djp("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.rP("ypcRedeemFlowCancelled")}};
_.R.onInput=function(){var p=this;_.uO(this,"onInput",function(){var J=p.code.value.trim();p.redeemButtonDisabled=J.length<p.MIN_CODE_LENGTH||J.length>p.MAX_CODE_LENGTH},200)};
_.R.onCodeInputKeypress=function(p){p.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(hUG(),this.redeemCode())};
_.R.computeImageUrl=function(p){return p?_.I4(p.thumbnails,600):null};
_.R.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
l5.prototype.onInvokeInstrumentManagerActionError=l5.prototype.onInvokeInstrumentManagerActionError;l5.prototype.onInvokeInstrumentManagerActionCompleted=l5.prototype.onInvokeInstrumentManagerActionCompleted;l5.prototype.onYtServiceRequestError=l5.prototype.onYtServiceRequestError;l5.prototype.onYtServiceRequestCompleted=l5.prototype.onYtServiceRequestCompleted;l5.prototype.dataChanged=l5.prototype.dataChanged;
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],l5.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],l5.prototype,"isLoading",void 0);_.V([_.N(),_.Y("design:type",Boolean)],l5.prototype,"redeemButtonDisabled",void 0);
_.V([_.N(),_.Y("design:type",Object)],l5.prototype,"errorMessage",void 0);_.V([_.N(),_.Y("design:type",Object)],l5.prototype,"postRedemptionRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],l5.prototype,"observer",void 0);_.V([_.FM("#code"),_.Y("design:type",HTMLInputElement)],l5.prototype,"code",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l5.prototype,"dataChanged",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],l5.prototype,"onYtServiceRequestCompleted",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],l5.prototype,"onYtServiceRequestError",null);
_.V([_.GI("yt-invoke-instrument-manager-action-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],l5.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.V([_.GI("yt-invoke-instrument-manager-action-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],l5.prototype,"onInvokeInstrumentManagerActionError",null);_.V([_.gw({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],l5);
_.l(l5,"ytd-redeem-code-renderer",function(){if(xjd!==void 0)return xjd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return xjd=p},{mode:1});var LID;_.QI("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Va=function(){var p=_.T.apply(this,arguments)||this;p.businessEmailDisplayState="HIDE_SECTION";return p};
_.Q(Va,_.T);_.R=Va.prototype;_.R.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}}}}}};
_.R.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"};
_.R.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.R.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.h1(_.PmL),this.businessEmailDisplayState="CAPTCHA"))};
_.R.onYtServiceRequestCompleted=function(p){var J;if((J=p.detail.data)==null?0:J.businessEmail)this.businessEmail=p.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var S;if((S=p.detail.data)==null?0:S.errorMessage)this.businessEmailErrorMessage=p.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.R.computeEmailHref=function(p){return"mailto:"+p};
_.R.computeSafeUrl=function(p){if(p)return _.Vd(p)};
_.R.onBusinessEmailCaptchaSubmit=function(){var p;(p=this.data)!=null&&p.onBusinessEmailRevealClickCommand&&(p=this.JSC$22352_captchaTextarea.value)&&(p={recaptcha_response_token:p,channel_id:this.data.channelId},_.vO().resolve(_.Ov).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},p,{element:this.hostElement})}))};
_.R.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.vh.Object.defineProperties(Va.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,J;return!((p=this.data)==null||!p.primaryLinks)&&!((J=this.data)==null?0:J.links)&&this.data.primaryLinks.every(function(S){return S.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var p,J;return!((p=this.data)==null||!p.primaryLinks)&&!((J=this.data)==null?0:J.links)&&!this.shouldShowNewLinks}}});
Va.prototype.onYtServiceRequestCompleted=Va.prototype.onYtServiceRequestCompleted;Va.prototype.dataChanged=Va.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Va.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.FM("#g-recaptcha-response"),_.Y("design:type",HTMLTextAreaElement)],Va.prototype,"JSC$22352_captchaTextarea",void 0);_.V([_.N(),_.Y("design:type",Object)],Va.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],Va.prototype,"businessEmailDisplayState",void 0);_.V([_.N(),_.Y("design:type",String)],Va.prototype,"businessEmail",void 0);_.V([_.N(),_.Y("design:type",String)],Va.prototype,"businessEmailErrorMessage",void 0);
_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Va.prototype,"hideDetailsSection",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Va.prototype,"dataChanged",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Va.prototype,"shouldShowNewLinks",null);_.V([_.U("data","shouldShowLinks"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Va.prototype,"shouldShowLegacyLinks",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Va.prototype,"onYtServiceRequestCompleted",null);_.V([_.gw({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Va);
_.l(Va,"ytd-channel-about-metadata-renderer",function(){if(LID!==void 0)return LID;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return LID=p},{mode:1});var pG4;_.QI("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var qJ=function(){return _.T.apply(this,arguments)||this};
_.Q(qJ,_.T);qJ.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],qJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qJ.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Number)],qJ.prototype,"lockupContainerType",void 0);_.V([_.N(),_.Y("design:type",String)],qJ.prototype,"thumbnailFixedWidth",void 0);
_.V([_.gw({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],qJ);
_.l(qJ,"ytd-channel-featured-content-renderer",function(){if(pG4!==void 0)return pG4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return pG4=p},{mode:1});var Jsd;_.QI("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var ac=function(){var p=_.T.apply(this,arguments)||this;p.roundContainer=!0;p.amsterdamEnabled=_.z("enable_desktop_amsterdam_info_panels");return p};
_.Q(ac,_.T);_.R=ac.prototype;_.R.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.R.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)};
_.R.computeSource=function(p){return p.secondarySource?_.E4(p.secondarySource):_.E4(p.source)};
_.R.computeClarifyStyle=function(p){return p?p.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.R.isLargeStyle=function(p){return p==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.R.computeBackgroundStyle=function(p){return p?p.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.R.computeHasActionButton=function(p){return!!p.actionButton};
_.R.computeHasBottomSection=function(p){return!!p.ctaHasBottomSection};
_.R.computeIsSourceMissing=function(p){return p.ctaHasBottomSection===!1?!0:p&&this.computeSource(p)?!1:!0};
_.R.computeSecondaryEndpoint=function(p){return p.secondaryEndpoint||p.endpoint};
ac.prototype.dataChanged=ac.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ac.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ac.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Number)],ac.prototype,"imageWidth",void 0);_.V([_.N(),_.Y("design:type",Number)],ac.prototype,"imageHeight",void 0);
_.V([_.N({computed:"computeSecondaryEndpoint(data)"}),_.Y("design:type",Object)],ac.prototype,"secondaryEndpoint",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.Y("design:type",Boolean)],ac.prototype,"hasActionButton",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.Y("design:type",Boolean)],ac.prototype,"hasBottomSection",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.Y("design:type",Boolean)],ac.prototype,"missingSource",void 0);_.V([_.N({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],ac.prototype,"icon",void 0);_.V([_.N({computed:"computeIcon_(data.secondaryIcon)"}),_.Y("design:type",String)],ac.prototype,"secondaryIcon",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.Y("design:type",String)],ac.prototype,"clarifyStyle",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.Y("design:type",String)],ac.prototype,"backgroundStyle",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ac.prototype,"roundContainer",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ac.prototype,"amsterdamEnabled",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ac.prototype,"dataChanged",null);
_.V([_.gw({is:"ytd-clarification-renderer",disableElementRegistration:!0})],ac);
_.l(ac,"ytd-clarification-renderer",function(){if(Jsd!==void 0)return Jsd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Jsd=p},{mode:1});var SqT;var Hta;var Ec=function(){var p=_.T.apply(this,arguments)||this;p.amsterdamEnabled=_.z("enable_desktop_amsterdam_info_panels");return p};
_.Q(Ec,_.T);_.R=Ec.prototype;_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.R.computeIcon=function(p){return p?"yt-icons:"+p.toLowerCase():null};
_.R.computeUseContacts=function(p){return!!p.contacts&&p.contacts.length>0};
_.R.computePhoneContact=function(p){var J,S;return(J=p.contacts)==null?void 0:(S=J.find(function(H){var M;return(H==null?void 0:(M=H.icon)==null?void 0:M.iconType)==="PHONE"}))==null?void 0:S.actionText};
_.R.computeSmsContact=function(p){var J,S;return(J=p.contacts)==null?void 0:(S=J.find(function(H){var M;return(H==null?void 0:(M=H.icon)==null?void 0:M.iconType)==="SMS"}))==null?void 0:S.actionText};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ec.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ec.prototype,"amsterdamEnabled",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.Y("design:type",Boolean)],Ec.prototype,"useContacts",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.Y("design:type",String)],Ec.prototype,"phoneContact",void 0);_.V([_.gw({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Ec);
_.l(Ec,"ytd-single-action-emergency-support-renderer",function(){if(Hta!==void 0)return Hta;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Hta=p},{mode:1});_.QI("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Y5=function(){var p=_.T.apply(this,arguments)||this;p.roundedContainer=!0;p.amsterdamEnabled=_.z("enable_desktop_amsterdam_info_panels");return p};
_.Q(Y5,_.T);Y5.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"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Y5.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Y5.prototype,"roundedContainer",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Y5.prototype,"amsterdamEnabled",void 0);
_.V([_.gw({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Y5);
_.l(Y5,"ytd-emergency-onebox-renderer",function(){if(SqT!==void 0)return SqT;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return SqT=p},{mode:1});var Maq;_.QI("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var rD=function(){return _.T.apply(this,arguments)||this};
_.Q(rD,_.T);rD.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],rD.prototype,"data",void 0);_.V([_.gw({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],rD);
_.l(rD,"ytd-exploratory-results-renderer",function(){if(Maq!==void 0)return Maq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Maq=p},{mode:1});var XGa;_.QI("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var jP=function(){var p=_.T.apply(this,arguments)||this;p.messageData=null;return p};
_.Q(jP,_.T);_.R=jP.prototype;_.R.onServiceRequestCompleted=function(p,J){p=J.actions||[];J=0;for(var S=p.length;J<S;J++){var H=p[J],M=void 0,X=void 0;if((M=_.e(H,_.Vs))==null?0:(X=M.item)==null?0:X.messageRenderer)this.messageData=_.e(H,_.Vs).item.messageRenderer}};
_.R.dataChanged=function(){var p=this.data;this.hostElement.hidden=!1;_.XM(this.hostElement,"is-channel",p&&!p.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.R.computeThumbnailWidth=function(p){return p?126:56};
_.R.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.R.onSubmitTap=function(){var p=this.data,J=this.selectedResponseIndex;p!==void 0&&J!==void 0&&(p=p.responses[J],p.responseData&&_.vO().resolve(_.Ov).resolveCommand(p.responseData,{form:{element:this.hostElement}}))};
_.R.onDismissTap=function(){this.hostElement.hidden=!0;var p=this.data;p!==void 0&&p.dismissalEndpoint&&_.vO().resolve(_.Ov).resolveCommand(p.dismissalEndpoint,{form:{element:this.hostElement}})};
_.R.updateSelectedResponseIndexFromBinding=function(p){this.selectedResponseIndex=p.detail.value};
jP.prototype.onSelectedResponseIndexChange=jP.prototype.onSelectedResponseIndexChange;jP.prototype.dataChanged=jP.prototype.dataChanged;jP.prototype.onServiceRequestCompleted=jP.prototype.onServiceRequestCompleted;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],jP.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],jP.prototype,"messageData",void 0);
_.V([_.N(),_.Y("design:type",Number)],jP.prototype,"selectedResponseIndex",void 0);_.V([_.FM("#submit-button"),_.Y("design:type",HTMLButtonElement)],jP.prototype,"submitButton",void 0);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],jP.prototype,"onServiceRequestCompleted",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jP.prototype,"dataChanged",null);
_.V([_.bO("selectedResponseIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jP.prototype,"onSelectedResponseIndexChange",null);_.V([_.gw({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],jP);
_.l(jP,"ytd-feedback-elicitation-single-question-renderer",function(){if(XGa!==void 0)return XGa;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return XGa=p},{mode:1});var itv;var wD=function(){return _.T.apply(this,arguments)||this};
_.Q(wD,_.T);wD.prototype.computeThumbnailWidth=function(p){return p?602:428};
wD.prototype.updateWideFromBinding=function(p){this.wide=p.detail.value};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wD.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],wD.prototype,"wide",void 0);_.V([_.gw({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],wD);
_.l(wD,"ytd-newspaper-hero-video-renderer",function(){if(itv!==void 0)return itv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return itv=p},{mode:1});var RTs;var K7G=function(){return _.T.apply(this,arguments)||this};
_.Q(K7G,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],K7G.prototype,"rendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],K7G.prototype,"data",void 0);_.V([_.gw({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],K7G);
_.l(K7G,"ytd-newspaper-mini-video-renderer",function(){if(RTs!==void 0)return RTs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return RTs=p},{mode:1});var ZtG;_.QI("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var x5=function(){return _.T.apply(this,arguments)||this};
_.Q(x5,_.T);x5.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"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],x5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],x5.prototype,"data",void 0);_.V([_.gw({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],x5);
_.l(x5,"ytd-newspaper-renderer",function(){if(ZtG!==void 0)return ZtG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ZtG=p},{mode:1});var npp;_.QI("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var ce=function(){var p=_.T.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};
_.Q(ce,_.T);_.R=ce.prototype;_.R.created=function(){var p=this;this.JSC$22385_ytReorderableController=new _.m24(101,function(J){p.handleDrop(J)})};
_.R.attached=function(){_.vO();var p;(p=_.vO().resolve(_.F9(_.HU)))!=null&&(p.playlistVideoListElement=this.hostElement)};
_.R.detached=function(){var p;(p=_.vO().resolve(_.F9(_.HU)))!=null&&(p.playlistVideoListElement=void 0);p=_.vO().resolve(_.F9(_.uE));_.z("web_enable_voting_animation")&&p&&(p.parentElem=void 0,p.videos=[],p.continuationsPresent=!1,p.showRefreshPill=!1);_.Et(this.JSC$22385_ytReorderableController)};
_.R.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"}}}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.R.dataChanged=function(){var p=_.vO().resolve(_.F9(_.uE));if(_.z("web_enable_voting_animation")&&this.data&&p){var J=_.Jn(this.hostElement).querySelector("#contents");J&&(p.parentElem=J);p.addVideos(this.data.contents)}_.Et(this.JSC$22385_ytReorderableController)};
_.R.onRendererstamperFinished=function(){this.canReorder&&_.FqM(this.JSC$22385_ytReorderableController,_.Jn(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.R.onPlaylistReloading=function(){this.isReloading=!0};
_.R.onUpdateSetVideoId=function(p){if(p.detail&&this.data&&this.data.contents){var J=p.detail;p=this.data.contents.findIndex(function(M){var X;return((X=M.playlistVideoRenderer)==null?void 0:X.videoId)===J.videoId});
if(!(p<0)&&J.setVideoId&&(this.set("data.contents."+p+".playlistVideoRenderer.setVideoId",J.setVideoId),_.z("web_enable_voting_animation"))){var S;if(p=_.e((S=this.data.contents[p].playlistVideoRenderer)==null?void 0:S.engagementBar,_.I9s)){var H;(H=p.actions)==null||H.forEach(function(M){if(M=_.e(M,_.LS3))M.itemId=J.setVideoId})}(S=_.vO().resolve(_.F9(_.uE)))&&kfq(S,J.videoId,J.setVideoId)}}};
_.R.computeContentsClass=function(p){return p?"reloading":""};
_.R.computeIsSortable=function(p,J){return p&&J>0&&!this.isSegment&&!_.z("shorts_in_playlists_web")};
_.R.computeIsEditable=function(p){return p};
_.R.computeCanReorder=function(p){return p};
_.R.handlePlaylistRemoveVideosAction=function(p){if(this.get("playlistRemoveVideosAction.setVideoIds",p)&&this.data&&this.data.contents){p=_.e(p,_.Y28).setVideoIds;for(var J=this.data.contents.length-1;J>=0;){var S=this.data.contents[J].playlistVideoRenderer;S&&S.setVideoId&&p.includes(S.setVideoId)&&this.splice("data.contents",J,1);J--}_.IV(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.R.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",_.aR(String(p+1)))};
_.R.handleDrop=function(p){p=p.currDragItem;var J=_.ks(p.parentNode.childNodes,p),S=this.data.contents.splice(Number(_.E4(p.data.index))-1,1)[0];this.data.contents.splice(J,0,S);J=J?this.get("contents."+(J-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();p=this.buildReorderServiceEndpoint(p.data.setVideoId,J);this.ytComponentBehavior.resolveCommand(p)};
_.R.buildReorderServiceEndpoint=function(p,J){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",p),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",J),this.data.onReorderEndpoint):null};
_.R.handleUpdatePlaylistAction=function(p){var J;(p=_.e((J=_.e(p,_.r3E))==null?void 0:J.updatedRenderer,_.w34))&&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)};
_.R.handleAddRendererToItemSectionAction=function(p){var J,S=(J=_.e(p,lly))==null?void 0:J.renderer,H;S&&((H=_.e(p,lly))==null?void 0:H.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,S),p=_.vO().resolve(_.F9(_.uE)),_.z("web_enable_voting_animation")&&p&&(S&&(J=_.cIX(S))&&p.recommendedVideos.push({itemId:J,videoId:_.pTX(S),voteCount:_.Jgi(S),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.R.isVotingEnabledOnPlaylist=function(p){if(!p)return!1;p=_.K(p);for(p=p.next();!p.done;p=p.next()){var J=void 0;return!!_.e((J=p.value.playlistVideoRenderer)==null?void 0:J.engagementBar,_.I9s)}return!1};
_.R.onAppendContinuationItemsActionFinished=function(){var p;this.isVotingEnabledOnPlaylist((p=this.data)==null?void 0:p.contents)&&(this.updateIndices(),p=_.vO().resolve(_.F9(_.uE)),_.z("web_enable_voting_animation")&&p&&this.data&&p.addVideos(this.data.contents))};
_.R.updateVideoData=function(p){if(p.detail&&this.data&&this.data.contents){var J=p.detail;p=J.toIdx;var S=J.itemId,H=J.newVoteCount,M=J.voteStatus;J=J.hideItem;var X,Z,n=(X=this.data)==null?void 0:(Z=X.contents)==null?void 0:Z.findIndex(function(O){return _.cIX(O)===S});
if(!(n<0)){X=this.data.contents[n];var b;if((b=X.playlistVideoRenderer)==null?0:b.voteCount)X.playlistVideoRenderer.voteCount=H;var F;if(b=_.e((F=X.playlistVideoRenderer)==null?void 0:F.engagementBar,_.I9s)){var f;(f=b.actions)==null||f.forEach(function(O){(O=_.e(O,_.LS3))&&O.initialState&&(O.initialState.votes=H,O.initialState.status=M)})}this.data.contents.splice(n,1);
J||this.data.contents.splice(p,0,X);this.updateIndices()}}};
ce.prototype.updateVideoData=ce.prototype.updateVideoData;ce.prototype.onAppendContinuationItemsActionFinished=ce.prototype.onAppendContinuationItemsActionFinished;ce.prototype.onUpdateSetVideoId=ce.prototype.onUpdateSetVideoId;ce.prototype.onPlaylistReloading=ce.prototype.onPlaylistReloading;ce.prototype.onRendererstamperFinished=ce.prototype.onRendererstamperFinished;ce.prototype.dataChanged=ce.prototype.dataChanged;
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],ce.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.oM.YtNextContinuationBehavior),_.Y("design:type",Object)],ce.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.B(_.$W),_.Y("design:type",Object)],ce.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],ce.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ce.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],ce.prototype,"isReloading",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ce.prototype,"isSegment",void 0);
_.V([_.N({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.Y("design:type",Boolean)],ce.prototype,"isSortable",void 0);_.V([_.N({computed:"computeIsEditable(data.isEditable)"}),_.Y("design:type",Boolean)],ce.prototype,"isEditable",void 0);_.V([_.N({computed:"computeCanReorder(data.canReorder)"}),_.Y("design:type",Boolean)],ce.prototype,"canReorder",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ce.prototype,"dataChanged",null);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ce.prototype,"onRendererstamperFinished",null);_.V([_.GI("yt-playlist-reloading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ce.prototype,"onPlaylistReloading",null);
_.V([_.GI("yt-update-set-video-id"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ce.prototype,"onUpdateSetVideoId",null);_.V([_.GI("yt-append-continuation-items-action-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ce.prototype,"onAppendContinuationItemsActionFinished",null);
_.V([_.GI("yt-update-video-data-voting-animation"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ce.prototype,"updateVideoData",null);_.V([_.gw({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],ce);
_.l(ce,"ytd-playlist-video-list-renderer",function(){if(npp!==void 0)return npp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return npp=p},{mode:_.Jz("kevlar_poly_si_batch_j047")?1:2});var GuG;var Ic=function(){return _.T.apply(this,arguments)||this};
_.Q(Ic,_.T);Ic.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"}}}}};
Ic.prototype.onTextWrapperTap=function(p){var J=this.data&&this.data.navigationEndpoint;J&&!_.jK(_.Er(p),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.cf(this.hostElement,"yt-navigate",{endpoint:J})};
Ic.prototype.dataChanged=function(){var p=this.get("data.offerButton.buttonRenderer.serviceEndpoint");p&&p.commandMetadata&&_.e(p.commandMetadata,_.rB)&&_.e(p.commandMetadata,_.rB).fireAutomatically&&_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}})};
Ic.prototype.dataChanged=Ic.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ic.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.fa),_.Y("design:type",Object)],Ic.prototype,"ytdLockupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ic.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Ic.prototype,"useBiggerThumbs",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.zG("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Ic.prototype,"biggerThumbsStyle",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ic.prototype,"leftAligned",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ic.prototype,"dataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Ic);
_.l(Ic,"ytd-movie-renderer",function(){if(GuG!==void 0)return GuG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return GuG=p},{mode:1});var bt7;var Lv=function(){var p=_.T.apply(this,arguments)||this;p.rounded=!0;p.pageAttachedTo=void 0;p.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return p};
_.Q(Lv,_.T);Lv.prototype.attached=function(){this.pageAttachedTo=_.vO().resolve(_.xz).getCurrentPage();_.cf(this.hostElement,"yt-player-attached",this.player)};
Lv.prototype.detached=function(){var p;if((p=this.pageAttachedTo)==null?0:p.hostElement)_.cf(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Lv.prototype.dataChanged=function(){var p;if((p=this.data)==null?0:p.videoId)p={video_id:this.data.videoId,autoplay:!0},!_.z("miniplayer_stop_channel_video_autoplay_killswitch")&&_.vO().resolve(_.DF).isMiniplayerActive()&&(p.pause_at_start=!0,p.autoplay=!1),this.player.loadVideoWithPlayerVars(p)};
Lv.prototype.handleSignalActionPausePlayer=function(){_.Lb().pause()};
Lv.prototype.dataChanged=Lv.prototype.dataChanged;_.V([_.N(),_.Y("design:type",Object)],Lv.prototype,"data",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Lv.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Lv.prototype,"rounded",void 0);_.V([_.FM("#player"),_.Y("design:type",Object)],Lv.prototype,"player",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lv.prototype,"dataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Lv);
_.l(Lv,"ytd-channel-video-player-renderer",function(){if(bt7!==void 0)return bt7;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return bt7=p},{mode:1});var mGG;var F7G;var vpd;var px=function(){var p=_.T.apply(this,arguments)||this;p.playing=!1;p.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.jt(p);p.active=!1;return p};
_.Q(px,_.T);_.R=px.prototype;_.R.detached=function(){this.stop()};
_.R.play=function(){var p=this,J,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return p.active=!0,J=p.get("data.inlinePlaybackEndpoint.watchEndpoint"),S=J.videoId||p.data.videoId,H=J.startTimeSeconds||0,M=J.playerParams||null,_.z("kevlar_player_update_killswitch")?Z.yield(p.playerEl.update({args:{video_id:S,startSeconds:H,player_params:M}}),2):(p.playerEl.loadVideoWithPlayerVars({video_id:S,startSeconds:H,player_params:M,autoplay:!0}),Z.jumpTo(2));if(Z.nextAddress!=4)return Z.yield(p.playerEl.getPlayerPromise(),
4);X=Z.yieldResult;X.unloadModule("annotations_module");X.addEventListener("onStateChange",function(n){p.onPlayerStateChange(n)});
_.UK(Z)})};
_.R.onPlayerStateChange=function(p){if(this.active)switch(this.playing=p===1,p){case 1:_.cf(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.cf(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.R.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.R.resize=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return S.yield(p.playerEl.getPlayerPromise(),2);J=S.yieldResult;J.setSize(NaN,NaN);_.UK(S)})};
_.V([_.N(),_.Y("design:type",Object)],px.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],px.prototype,"playing",void 0);_.V([_.N(),_.Y("design:type",Object)],px.prototype,"playerId",void 0);_.V([_.FM("#player"),_.Y("design:type",Object)],px.prototype,"playerEl",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],px);
_.l(px,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(vpd!==void 0)return vpd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return vpd=p},{mode:1});var f4p;var OtG;var Jg=function(){var p=_.T.apply(this,arguments)||this;p.width=0;return p};
_.Q(Jg,_.T);_.R=Jg.prototype;_.R.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.n3(this,this.onEnded));this.mp4El.addEventListener("error",_.n3(this,this.onError))};
_.R.detached=function(){this.videoEl.removeEventListener("ended",_.n3(this,this.onEnded));this.mp4El.removeEventListener("error",_.n3(this,this.onError))};
_.R.play=function(){var p=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var J=this.videoEl.play();J?J.then(function(){p.handleVideoStartPlaying()}).catch(function(){_.cf(p.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.cf(this.hostElement,"yt-video-thumbnail-not-playing")};
_.R.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.R.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.R.dataChanged=function(){var p;if((p=this.data)==null?0:p.thumbnailPlaceholder)p=_.I4(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+p+")";this.stop();this.autoplay&&this.play()};
_.R.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.R.onEnded=function(){this.stop();_.cf(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.R.onError=function(){_.cf(this.hostElement,"yt-video-thumbnail-error")};
_.R.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.R.getVideoThumbnail=function(p){if(p&&p.length)return p[0]};
Jg.prototype.dataChanged=Jg.prototype.dataChanged;_.V([_.N(),_.Y("design:type",Object)],Jg.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Jg.prototype,"animatePlaceholderOnEntrance",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Jg.prototype,"autoplay",void 0);_.V([_.N({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.Y("design:type",Object)],Jg.prototype,"videoThumbnail",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],Jg.prototype,"loop",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Jg.prototype,"isVideoPlaying",void 0);_.V([_.N(),_.Y("design:type",Object)],Jg.prototype,"width",void 0);_.V([_.FM("#mp4"),_.Y("design:type",HTMLElement)],Jg.prototype,"mp4El",void 0);_.V([_.FM("#placeholder"),_.Y("design:type",HTMLElement)],Jg.prototype,"placeholderEl",void 0);_.V([_.FM("#video"),_.Y("design:type",HTMLVideoElement)],Jg.prototype,"videoEl",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jg.prototype,"dataChanged",null);_.V([_.sD({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Jg);
_.l(Jg,"yt-video-as-thumbnail-details",function(){if(OtG===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;f4p===void 0&&(f4p=document.createElement("template"));var H=f4p;S.call(J,H.content.cloneNode(!0),p.content.firstChild);OtG=p}p=OtG;return p},{mode:2});var S4=function(){var p=_.T.apply(this,arguments)||this;p.disableGridStateAware=!1;p.animationEnabled=_.z("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};
_.Q(S4,_.T);_.R=S4.prototype;_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.R.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)};
_.R.attached=function(){this.onWindowResized()};
_.R.detached=function(){this.clearTimeouts()};
_.R.onWindowResized=function(){this.updateSize()};
_.R.computePanelLayout=function(p){return p&&p.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.R.playVideo=function(){var p;this.video&&((p=this.data)==null?0:p.videoThumbnail)&&this.video.play();var J;this.player&&((J=this.data)==null?0:J.inlinePlaybackRenderer)&&this.player.play()};
_.R.stopVideo=function(){var p;this.video&&((p=this.data)==null?0:p.videoThumbnail)&&this.video.stop();var J;this.player&&((J=this.data)==null?0:J.inlinePlaybackRenderer)&&this.player.stop()};
_.R.transitionOut=function(){var p=this;this.transitioningOut=!0;return new Promise(function(J){var S=function(){_.Jn(p.hostElement).querySelector("#action-button").removeEventListener("animationend",S);_.wg.cancelJob(H);J();p.transitioningOut=!1};
var H=_.uS(_.wg,S,1E3);_.Jn(p.hostElement).querySelector("#action-button").addEventListener("animationend",S);p.player&&(p.player.playing=!1)})};
_.R.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"};
_.R.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.R.computeAvatarSize=function(p){return p&&p.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.R.onContentClick=function(p){if(!_.jK(_.Er(p),this.hostElement,["A".toString(),"BUTTON".toString()])){var J;if((J=this.data)==null?0:J.navigationEndpoint){var S;this.componentBehavior.resolveCommand((S=this.data)==null?void 0:S.navigationEndpoint)}}};
_.R.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.R.setBackgroundImage=function(p){if(p=this.getBackgroundImageUrl(p))_.Jn(this.hostElement).querySelector("#hero").style.backgroundImage="url("+p+")"};
_.R.setScrimLayer=function(p){var J=this.getScrimLayerColorStops(p);p=((p==null?void 0:p.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(p=180);_.jn("HTML_DIR")==="rtl"&&(p=-p);J&&(_.Jn(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+p+"deg, "+J+")")};
_.R.isNarrower=function(){return this.hostElement.clientWidth<S4.NARROW_VERSION_SIZE};
_.R.getScrimLayerColorStops=function(){var p,J=(p=this.data)==null?void 0:p.scrimColorValues;if(!J)return null;if(J.length===1)return p=_.Bt(J[0]),p+" 0%, "+p+" 100%";if(J.length===3){var S=[0,72,98];return J.map(function(H,M){return _.Bt(H)+" "+S[M]+"%"}).join(",")}return null};
_.R.getBackgroundImageUrl=function(p){return p&&p.largeFormFactorBackgroundThumbnail?_.I4((p.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||p.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.R.onPlaying=function(){this.startVideoTimeout()};
_.R.onEnded=function(){this.rotate()};
_.R.startPanelTimeout=function(){var p=this;if(!this.panelTimeoutJobId){var J=this.get("data.minPanelDisplayDurationMs");J&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.uS(_.wg,function(){p.rotate()},J))}};
_.R.startVideoTimeout=function(){var p=this;if(!this.videoTimeoutJobId){_.wg.cancelJob(this.panelTimeoutJobId);var J=Date.now()-this.panelTimeoutJobStartMs;J=Math.max(0,this.get("data.minPanelDisplayDurationMs")-J);J=Math.max(this.get("data.minVideoPlayDurationMs")||0,J);this.videoTimeoutJobId=_.uS(_.wg,function(){p.rotate()},J)}};
_.R.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.wg.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.wg.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.R.rotate=function(){this.clearTimeouts();_.cf(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.vh.Object.defineProperties(S4.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Jn(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Jn(this.hostElement).querySelector("#video")}}});
_.vh.Object.defineProperties(S4,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
S4.prototype.onEnded=S4.prototype.onEnded;S4.prototype.onPlaying=S4.prototype.onPlaying;S4.prototype.dataChanged=S4.prototype.dataChanged;_.V([_.B(_.G0),_.Y("design:type",Object)],S4.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],S4.prototype,"componentBehavior",void 0);_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],S4.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.B(_.RUr),_.Y("design:type",Object)],S4.prototype,"ytBooleanLogicBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],S4.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],S4.prototype,"disableGridStateAware",void 0);_.V([_.N(),_.Y("design:type",Object)],S4.prototype,"data",void 0);_.V([_.N({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.Y("design:type",String)],S4.prototype,"panelLayout",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],S4.prototype,"animationEnabled",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],S4.prototype,"transitioningOut",void 0);
_.V([_.N({computed:"computeMetadataOrder(data)"}),_.Y("design:type",Boolean)],S4.prototype,"metadataOrder",void 0);_.V([_.N({computed:"computeByline(data)"}),_.Y("design:type",Object)],S4.prototype,"byline",void 0);_.V([_.N({computed:"computeAvatarSize(data)"}),_.Y("design:type",Number)],S4.prototype,"avatarSize",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],S4.prototype,"narrow",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],S4.prototype,"narrower",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],S4.prototype,"layoutStyle",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],S4.prototype,"isCarouselInFeed",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S4.prototype,"dataChanged",null);_.V([_.GI("yt-default-promo-panel-renderer-playing"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S4.prototype,"onPlaying",null);
_.V([_.GI("yt-default-promo-panel-renderer-ended"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S4.prototype,"onEnded",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],S4);
_.l(S4,"ytd-default-promo-panel-renderer",function(){if(F7G!==void 0)return F7G;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return F7G=p},{mode:1});_.QI("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var HT=function(){var p=_.T.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};
_.Q(HT,_.T);_.R=HT.prototype;_.R.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]]"}}}}}};
_.R.attached=function(){document.addEventListener("yt-page-type-changed",_.n3(this,this.onPageTypeChange));this.currentPageSubtype=_.p2X(location.pathname);this.onWindowResized()};
_.R.detached=function(){this.jobId&&_.wg.cancelJob(this.jobId);this.updateSizeJobId&&_.wg.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.n3(this,this.onPageTypeChange))};
_.R.onPageTypeChange=function(p){this.active=p.detail.newPageSubtype===this.currentPageSubtype};
_.R.onWindowResized=function(){this.updateSize()};
_.R.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.R.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.R.setCarouselItem=function(p){p>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.wg.cancelJob(this.jobId);var J=this.getCurrentPanelElement();J&&J.stopVideo();this.currentItemIndex=p%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(J||(J=this.getCurrentPanelElement()),J.playVideo()):this.startRotationJob()};
_.R.scrollThumbnails=function(p){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var J=this.getCurrentPaginationElement();if(J){var S=_.Jn(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?S.style.transform="translateX(0)":(J=J.offsetWidth+8,S.style.transform="translateX(-"+J*(p-Math.ceil(Math.floor(this.overlay.offsetWidth/J)/2)+1)+"px)")}}};
_.R.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=_.bb(_.wg,function(){var J;(J=p.getCurrentPanelElement())==null||J.updateSize();p.updateSize()}))};
_.R.getCurrentPanelElement=function(){return _.Jn(_.Jn(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.R.getCurrentPaginationElement=function(){return _.Jn(_.Jn(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.R.getNavigationClass=function(p,J){return p===J?"selected":""};
_.R.getNavigationDurationStyle=function(p){return"animation-duration:"+(this.get("data.carouselItems."+p+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.R.onNavigationTap=function(p){var J=this,S=p.model.index;S!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){J.setCarouselItem(S)}),this.autorotateActive=!1)};
_.R.onVideoThumbnailEnded=function(){var p=this;if(this.shouldRotate()){var J=this.getCurrentPaginationElement();J&&(J.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){J.classList.remove("finished");p.setNextCarouselItem()}))}};
_.R.onVideoThumbnailError=function(){this.startRotationJob()};
_.R.onVideoNotPlaying=function(){this.startRotationJob()};
_.R.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.R.startRotationJob=function(){var p=this;_.wg.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.wg.addLowPriorityJob(function(){p.getCurrentPanelElement().transitionOut().then(function(){p.setNextCarouselItem()})},this.rotationTimeout))};
_.R.computeDotMenuVisible=function(p,J){return!!p&&!!p.carouselItems&&p.carouselItems.length>1&&!p.paginationThumbnails||!!J};
_.R.computePaginationThumbnailsVisible=function(p,J){var S,H;return((H=p==null?void 0:(S=p.paginationThumbnails)==null?void 0:S.length)!=null?H:0)>1&&!J};
_.R.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.R.computePaginatorAlignment=function(p){return(p==null?void 0:p.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.R.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.R.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.R.isNarrower=function(p){return(p!=null?p:0)<S4.NARROW_VERSION_SIZE};
HT.prototype.activeChanged=HT.prototype.activeChanged;HT.prototype.onVideoNotPlaying=HT.prototype.onVideoNotPlaying;HT.prototype.onVideoThumbnailError=HT.prototype.onVideoThumbnailError;HT.prototype.onVideoThumbnailEnded=HT.prototype.onVideoThumbnailEnded;HT.prototype.onDataChanged=HT.prototype.onDataChanged;_.V([_.B(_.G0),_.Y("design:type",Object)],HT.prototype,"ytdGridStateAwareBehavior",void 0);
_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],HT.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],HT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],HT.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],HT.prototype,"currentItem",void 0);
_.V([_.N(),_.Y("design:type",Number)],HT.prototype,"currentItemIndex",void 0);_.V([_.N(),_.Y("design:type",Number)],HT.prototype,"rotationTimeout",void 0);_.V([_.N(),_.Y("design:type",Number)],HT.prototype,"loopCount",void 0);_.V([_.N({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.Y("design:type",String)],HT.prototype,"paginatorAlignment",void 0);_.V([_.N(),_.Y("design:type",Number)],HT.prototype,"jobId",void 0);
_.V([_.N(),_.Y("design:type",Number)],HT.prototype,"updateSizeJobId",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],HT.prototype,"isCarouselInFeed",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],HT.prototype,"narrower",void 0);_.V([_.N({computed:"computeDotMenuVisible(data, narrower)"}),_.Y("design:type",Object)],HT.prototype,"dotMenuVisible",void 0);
_.V([_.N({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.Y("design:type",Object)],HT.prototype,"paginationThumbnailsVisible",void 0);_.V([_.N({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.Y("design:type",String)],HT.prototype,"layoutType",void 0);_.V([_.N({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],HT.prototype,"autorotateActive",void 0);_.V([_.N(),_.Y("design:type",Object)],HT.prototype,"active",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],HT.prototype,"disableGridStateAware",void 0);_.V([_.FM("#overlay"),_.Y("design:type",HTMLElement)],HT.prototype,"overlay",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HT.prototype,"onDataChanged",null);
_.V([_.GI("yt-video-thumbnail-ended"),_.GI("yt-default-promo-panel-renderer-rotate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HT.prototype,"onVideoThumbnailEnded",null);_.V([_.GI("yt-video-thumbnail-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HT.prototype,"onVideoThumbnailError",null);
_.V([_.GI("yt-video-thumbnail-not-playing"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HT.prototype,"onVideoNotPlaying",null);_.V([_.An("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HT.prototype,"activeChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],HT);
_.l(HT,"ytd-carousel-item-renderer",function(){if(mGG!==void 0)return mGG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return mGG=p},{mode:2});var Asa;var PvT;var zTd;var $G4;var Mh=function(){var p=_.T.apply(this,arguments)||this;p.originalQuery=null;p.originalEndpoint=null;return p};
_.Q(Mh,_.T);Mh.prototype.computeShowOriginalQueryWithoutEndpoint_=function(p,J){return!(!p||J)};
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Mh.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Mh.prototype,"correctedText",void 0);_.V([_.N(),_.Y("design:type",Object)],Mh.prototype,"correctedQuery",void 0);_.V([_.N(),_.Y("design:type",Object)],Mh.prototype,"correctedEndpoint",void 0);_.V([_.N(),_.Y("design:type",Object)],Mh.prototype,"originalText",void 0);_.V([_.N(),_.Y("design:type",Object)],Mh.prototype,"originalQuery",void 0);
_.V([_.N(),_.Y("design:type",Object)],Mh.prototype,"originalEndpoint",void 0);_.V([_.N({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.Y("design:type",Boolean)],Mh.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.V([_.sD({is:"yt-search-query-correction",disableElementRegistration:!0})],Mh);
_.l(Mh,"yt-search-query-correction",function(){if($G4===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;zTd===void 0&&(zTd=document.createElement("template"));var H=zTd;S.call(J,H.content.cloneNode(!0),p.content.firstChild);$G4=p}p=$G4;return p},{mode:2});_.QI("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var opa=function(){return _.T.apply(this,arguments)||this};
_.Q(opa,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],opa.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],opa.prototype,"data",void 0);_.V([_.sD({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],opa);
_.l(opa,"yt-did-you-mean-renderer",function(){if(PvT===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Asa===void 0&&(Asa=document.createElement("template"));var H=Asa;S.call(J,H.content.cloneNode(!0),p.content.firstChild);PvT=p}p=PvT;return p},{mode:2});var eTs;var W7a;_.QI("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var QD7=function(){return _.T.apply(this,arguments)||this};
_.Q(QD7,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],QD7.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],QD7.prototype,"data",void 0);_.V([_.sD({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],QD7);
_.l(QD7,"yt-including-results-for-renderer",function(){if(W7a===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;eTs===void 0&&(eTs=document.createElement("template"));var H=eTs;S.call(J,H.content.cloneNode(!0),p.content.firstChild);W7a=p}p=W7a;return p},{mode:2});var Cvv;var ysv;_.QI("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var iK=function(){return _.T.apply(this,arguments)||this};
_.Q(iK,_.T);iK.prototype.computeExtraClasses_=function(p,J){var S="";p&&(S+=" "+p.toLowerCase().replace(/_/g,"-"));J&&(S+=" "+J.toLowerCase().replace(/_/g,"-"));return S};
iK.prototype.computeUrlImg_=function(){var p=this.data;p.image&&(_.Jn(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.I4(p.image.thumbnails,Number.MAX_VALUE)+")")};
iK.prototype.computeUrlImg_=iK.prototype.computeUrlImg_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],iK.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iK.prototype,"computeUrlImg_",null);_.V([_.sD({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],iK);
_.l(iK,"yt-music-pass-feature-info-renderer",function(){if(ysv===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Cvv===void 0&&(Cvv=document.createElement("template"));var H=Cvv;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ysv=p}p=ysv;return p},{mode:2});var Bys;var UGD;_.QI("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var sDs=function(){return _.T.apply(this,arguments)||this};
_.Q(sDs,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],sDs.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],sDs.prototype,"data",void 0);_.V([_.sD({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],sDs);
_.l(sDs,"yt-no-results-found-showing-results-for-renderer",function(){if(UGD===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Bys===void 0&&(Bys=document.createElement("template"));var H=Bys;S.call(J,H.content.cloneNode(!0),p.content.firstChild);UGD=p}p=UGD;return p},{mode:2});var gpq;var taD;_.QI("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var hT7=function(){return _.T.apply(this,arguments)||this};
_.Q(hT7,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],hT7.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],hT7.prototype,"data",void 0);_.V([_.sD({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],hT7);
_.l(hT7,"yt-results-without-quotes-renderer",function(){if(taD===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;gpq===void 0&&(gpq=document.createElement("template"));var H=gpq;S.call(J,H.content.cloneNode(!0),p.content.firstChild);taD=p}p=taD;return p},{mode:2});var DG7;var kuv;_.QI("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Ny4=function(){return _.T.apply(this,arguments)||this};
_.Q(Ny4,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ny4.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ny4.prototype,"data",void 0);_.V([_.sD({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],Ny4);
_.l(Ny4,"yt-search-no-results-renderer",function(){if(kuv===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;DG7===void 0&&(DG7=document.createElement("template"));var H=DG7;S.call(J,H.content.cloneNode(!0),p.content.firstChild);kuv=p}p=kuv;return p},{mode:2});var Tyq;var dGt;_.QI("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var us7=function(){return _.T.apply(this,arguments)||this};
_.Q(us7,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],us7.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],us7.prototype,"data",void 0);_.V([_.sD({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],us7);
_.l(us7,"yt-showing-results-for-renderer",function(){if(dGt===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Tyq===void 0&&(Tyq=document.createElement("template"));var H=Tyq;S.call(J,H.content.cloneNode(!0),p.content.firstChild);dGt=p}p=dGt;return p},{mode:2});var l4d;var Vav;var qqG;var a4d;var Rp=function(){var p=_.T.apply(this,arguments)||this;p.answerExpanded=!1;return p};
_.Q(Rp,_.T);Rp.prototype.toggleAnswer_=function(p){var J=_.Yt(p);J&&J.classList.contains("yt-simple-endpoint")||(p.preventDefault(),p.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Rp.prototype.toggleAnswer_=Rp.prototype.toggleAnswer_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Rp.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Rp.prototype,"answerExpanded",void 0);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Rp.prototype,"toggleAnswer_",null);
_.V([_.sD({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Rp);
_.l(Rp,"yt-generic-faq-question-renderer",function(){if(a4d===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;qqG===void 0&&(qqG=document.createElement("template"));var H=qqG;S.call(J,H.content.cloneNode(!0),p.content.firstChild);a4d=p}p=a4d;return p},{mode:2});_.QI("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Kx=function(){return _.T.apply(this,arguments)||this};
_.Q(Kx,_.T);Kx.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Kx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Kx.prototype,"data",void 0);_.V([_.sD({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Kx);
_.l(Kx,"yt-faq-section-renderer",function(){if(Vav===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;l4d===void 0&&(l4d=document.createElement("template"));var H=l4d;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Vav=p}p=Vav;return p},{mode:2});var EpT;var Yqd;_.QI("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Zw=function(){return _.T.apply(this,arguments)||this};
_.Q(Zw,_.T);
Zw.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"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Zw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Zw.prototype,"data",void 0);_.V([_.sD({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],Zw);
_.l(Zw,"yt-offer-item-expanded-renderer",function(){if(Yqd===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;EpT===void 0&&(EpT=document.createElement("template"));var H=EpT;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Yqd=p}p=Yqd;return p},{mode:2});var rsq;var jDp;_.QI("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var nx=function(){return _.T.apply(this,arguments)||this};
_.Q(nx,_.T);
nx.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"}}}}};
nx.prototype.computeFullWidthMode=function(p){return!(!p||!p.fullWidthMode)};
nx.prototype.computeBorderlessMode=function(p){return!(!p||!p.borderlessMode)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],nx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],nx.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.Y("design:type",Boolean)],nx.prototype,"fullWidthMode",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.Y("design:type",Boolean)],nx.prototype,"borderlessMode",void 0);_.V([_.sD({is:"yt-offer-item-renderer",disableElementRegistration:!0})],nx);
_.l(nx,"yt-offer-item-renderer",function(){if(jDp===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;rsq===void 0&&(rsq=document.createElement("template"));var H=rsq;S.call(J,H.content.cloneNode(!0),p.content.firstChild);jDp=p}p=jDp;return p},{mode:2});var wG4;var xGd;_.QI("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var G4=function(){return _.T.apply(this,arguments)||this};
_.Q(G4,_.T);G4.prototype.computeAriaLevel_=function(p){return this.getLevelID_(p)};
G4.prototype.getLevelID_=function(p){return(p=p.match(/[0-9]+$/))&&p.length==1?p[0]:"1"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],G4.prototype,"data",void 0);_.V([_.N({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.Y("design:type",String)],G4.prototype,"ariaLevel",void 0);_.V([_.N({value:"heading",reflectToAttribute:!0}),_.Y("design:type",String)],G4.prototype,"role",void 0);
_.V([_.N({value:-1,reflectToAttribute:!0}),_.Y("design:type",Number)],G4.prototype,"tabindex",void 0);_.V([_.sD({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],G4);
_.l(G4,"yt-subscription-product-header-renderer",function(){if(xGd===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;wG4===void 0&&(wG4=document.createElement("template"));var H=wG4;S.call(J,H.content.cloneNode(!0),p.content.firstChild);xGd=p}p=xGd;return p},{mode:2});var csy;var I47;_.QI("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var bK=function(){return _.T.apply(this,arguments)||this};
_.Q(bK,_.T);bK.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:_.Cb("menuRenderer"),events:!0}}};
bK.prototype.onStampFinished_=function(){_.Jn(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
bK.prototype.onStampFinished_=bK.prototype.onStampFinished_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],bK.prototype,"data",void 0);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bK.prototype,"onStampFinished_",null);
_.V([_.sD({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],bK);
_.l(bK,"yt-subscription-product-renderer",function(){if(I47===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;csy===void 0&&(csy=document.createElement("template"));var H=csy;S.call(J,H.content.cloneNode(!0),p.content.firstChild);I47=p}p=I47;return p},{mode:2});var L7s;var pZq;_.QI("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var mD=function(){return _.T.apply(this,arguments)||this};
_.Q(mD,_.T);mD.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
mD.prototype.imageScrimColorValuesChanged_=function(){var p,J=(p=this.data)==null?void 0:p.imageScrimColorValues;_.Jn(this.hostElement).querySelector("#scrim").style.backgroundColor=J?_.Bt(J[0]):"transparent"};
mD.prototype.imageScrimColorValuesChanged_=mD.prototype.imageScrimColorValuesChanged_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],mD.prototype,"data",void 0);
_.V([_.bO("data.imageScrimColorValues"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mD.prototype,"imageScrimColorValuesChanged_",null);_.V([_.sD({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],mD);
_.l(mD,"yt-subscription-product-upsell-offer-renderer",function(){if(pZq===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;L7s===void 0&&(L7s=document.createElement("template"));var H=L7s;S.call(J,H.content.cloneNode(!0),p.content.firstChild);pZq=p}p=pZq;return p},{mode:2});var Juv;var SKD;var H_a;var M04;var XZv;var i_u;var FR=function(){return _.T.apply(this,arguments)||this};
_.Q(FR,_.T);FR.prototype.onYtServiceRequestError_=function(p){_.Vh(this.hostElement,p.detail.error.message)};
FR.prototype.onYtServiceRequestError_=FR.prototype.onYtServiceRequestError_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],FR.prototype,"data",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],FR.prototype,"collapsible",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],FR.prototype,"isManageRed",void 0);
_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],FR.prototype,"onYtServiceRequestError_",null);_.V([_.sD({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],FR);
_.l(FR,"yt-single-ypc-offer-renderer",function(){if(i_u===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;XZv===void 0&&(XZv=document.createElement("template"));var H=XZv;S.call(J,H.content.cloneNode(!0),p.content.firstChild);i_u=p}p=i_u;return p},{mode:2});var vT=function(){return _.T.apply(this,arguments)||this};
_.Q(vT,_.T);vT.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],vT.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],vT.prototype,"isManageRed",void 0);_.V([_.sD({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],vT);
_.l(vT,"yt-single-ypc-offer-list-renderer",function(){if(M04===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;H_a===void 0&&(H_a=document.createElement("template"));var H=H_a;S.call(J,H.content.cloneNode(!0),p.content.firstChild);M04=p}p=M04;return p},{mode:2});var Rja;var KC4;_.QI("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var fx=function(){return _.T.apply(this,arguments)||this};
_.Q(fx,_.T);fx.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],fx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],fx.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],fx.prototype,"isManageRed",void 0);_.V([_.sD({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],fx);
_.l(fx,"yt-ypc-offers-list-renderer",function(){if(KC4===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Rja===void 0&&(Rja=document.createElement("template"));var H=Rja;S.call(J,H.content.cloneNode(!0),p.content.firstChild);KC4=p}p=KC4;return p},{mode:2});_.QI("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Om=function(){return _.T.apply(this,arguments)||this};
_.Q(Om,_.T);
Om.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}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Om.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Om.prototype,"data",void 0);_.V([_.sD({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Om);
_.l(Om,"yt-unlimited-manage-subscription-page-renderer",function(){if(SKD===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Juv===void 0&&(Juv=document.createElement("template"));var H=Juv;S.call(J,H.content.cloneNode(!0),p.content.firstChild);SKD=p}p=SKD;return p},{mode:2});var Z_D;var nF7;var Ag=function(){return _.T.apply(this,arguments)||this};
_.Q(Ag,_.T);_.R=Ag.prototype;_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.R.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.onKeypress_=function(p){p.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.R.handleHeaderTap_=function(p){p.preventDefault();p.stopPropagation();this.expandOffers_()};
_.R.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.R.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Ag.prototype.dataChanged_=Ag.prototype.dataChanged_;_.V([_.B(_.ua),_.Y("design:type",Object)],Ag.prototype,"ironA11yKeysBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ag.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ag.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ag.prototype,"offersVisible_",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ag.prototype,"dataChanged_",null);_.V([_.sD({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Ag);
_.l(Ag,"yt-collapsible-ypc-offer-renderer",function(){if(nF7===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Z_D===void 0&&(Z_D=document.createElement("template"));var H=Z_D;S.call(J,H.content.cloneNode(!0),p.content.firstChild);nF7=p}p=nF7;return p},{mode:2});var GHt;var b_D;_.QI("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var tg=function(){return _.T.apply(this,arguments)||this};
_.Q(tg,_.T);_.R=tg.prototype;_.R.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.R.dataChanged_=function(){if(this.data.backgroundImage){var p=_.I4(this.data.backgroundImage.thumbnails,screen.width),J=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=J?"linear-gradient(180deg, "+J+"), url("+p+")":"url("+p+")";this.data.gtmId&&_.xw(this.data.gtmId,_.jn("GL",""))}};
_.R.onYtServiceRequestError_=function(p){_.Vh(this.hostElement,p.detail.error.message)};
_.R.getScrimLayerColorStops_=function(){var p,J,S=(p=this.data.unlimitedHeaderV2Data)==null?void 0:(J=p.unlimitedHeaderV2Data)==null?void 0:J.scrimLayerColors;if(!S)return null;var H=100/S.length;return S.map(function(M,X){X*=H;return _.Bt(M)+" "+X+"%"}).join(",")};
_.R.computeLogoWithPadding=function(p){var J,S,H;return(p=(J=p.unlimitedLogoImage)==null?void 0:(S=J.thumbnails)==null?void 0:(H=S[0])==null?void 0:H.height)&&p%31===0?!0:!1};
tg.prototype.onYtServiceRequestError_=tg.prototype.onYtServiceRequestError_;tg.prototype.dataChanged_=tg.prototype.dataChanged_;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],tg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);_.V([_.N({computed:"computeLogoWithPadding(data)"}),_.Y("design:type",Boolean)],tg.prototype,"logoWithPadding",void 0);
_.V([_.N(),_.Y("design:type",Object)],tg.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tg.prototype,"dataChanged_",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],tg.prototype,"onYtServiceRequestError_",null);_.V([_.sD({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],tg);
_.l(tg,"yt-unlimited-page-header-renderer",function(){if(b_D===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;GHt===void 0&&(GHt=document.createElement("template"));var H=GHt;S.call(J,H.content.cloneNode(!0),p.content.firstChild);b_D=p}p=b_D;return p},{mode:2});var mDs;var FCG;_.QI("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var hg=function(){return _.T.apply(this,arguments)||this};
_.Q(hg,_.T);hg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],hg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],hg.prototype,"data",void 0);_.V([_.sD({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],hg);
_.l(hg,"yt-unlimited-user-notification-renderer",function(){if(FCG===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;mDs===void 0&&(mDs=document.createElement("template"));var H=mDs;S.call(J,H.content.cloneNode(!0),p.content.firstChild);FCG=p}p=FCG;return p},{mode:2});
}catch(e){_._DumpException(e)}
try{
var lVN,qDI,E3P,rnN,jfN,cny;_.FZ=function(p){var J=p.clientMessageId;var S=p.playerOffsetMs;var H=p.pageContext;p=p.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:J},!!S&&{playerOffsetMs:S},!!H&&{pageContext:H},!!p&&{userInputText:p})}};
_.uMp=function(p,J,S){J=J===void 0?5:J;if(J!==0){var H=typeof p==="function"?p():document.querySelector(p);H?(S==null?0:S.enableSmartFocus)?_.YvL(H):H.focus():setTimeout(function(){_.uMp(p,J-1,S)},500)}};
lVN=function(p){return String.raw.apply(String,[{raw:p}].concat(_.dW(_.Yp.apply(1,arguments).map(function(J){return J instanceof Array?J.join(""):J}))))};
qDI=function(p){var J=_.Yp.apply(1,arguments),S=J.length;if(!Array.isArray(p)||!Array.isArray(p.raw)||p.length!==p.raw.length||!_.Yqv&&p===p.raw||!(_.Yqv&&!_.rsp||_.ts(p))||S+1!==p.length)throw new TypeError("$");return new VhI(Object.freeze({strings:Object.freeze(p),args:Object.freeze(J)}))};
_.aVU=function(p){return{continuationCommand:{token:p,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
E3P=function(){return _.Yp.apply(0,arguments).flat().filter(function(p){return p}).join(";")};
rnN=function(){return qDI(YDp,E3P.apply(null,_.dW(_.Yp.apply(0,arguments))))};
jfN=function(p,J){if(_.z("web_enable_chat_autoscroll_to_user_turn")&&p&&J)return p-4+"px"};
_.w6P=function(p,J){return _.RR(p.entities,"youchatPendingResponseEntity",J)};
_.xQN=function(p){return function(J){_.Y3(_.P$("youchatPendingResponseEntity",p,{entityKey:p,isPendingResponse:J}))}};
cny=function(p){p==null||p.addEventListener("DOMLoaded",function(){p.goToAndPlay(p.totalFrames-48,!0)})};
_.mT=function(p){this.__isSoyCss=!0;this.css=lVN.apply(null,[p.strings].concat(_.dW(p.args)))};
_.mT.prototype.toString=function(){return this.css};
var VhI=function(){_.mT.apply(this,arguments)};
_.Q(VhI,_.mT);var YDp=_.YI(["",""]);_.IVN=_.d(function(p){var J=_.jh(p,{numberOfChips:5}).numberOfChips;return _.m("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.m(_.dY,{each:function(){return Array(J==null?void 0:J())}},function(){return _.m("div",{class:"ytGhostChipShelfChip"})}))},"Yi");var Lyr=_.d(function(p){var J=void 0,S=function(){return p.data()},H=function(){return!!_.es(_.$8(S())).optionColor},M=_.K(_.eQ(-1,void 0,"WFh1pc")),X=M.next().value,Z=M.next().value,n=function(A){return X()===A},b=function(A){return S().correctAnswerIndex===A},F=function(){return X()!==-1};
M=_.K(_.eQ("",void 0,"Vi7Gfe"));var f=M.next().value,O=M.next().value;return _.m("yoututor-quiz-view-model",{class:_.XB("learningQuizComponentHost","learningYoututorQuizHost",p.className),style:_.G7({background:function(){return _.es(_.$8(S())).backgroundColor}})},_.m("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},f),_.m("div",{class:"learningQuizComponentQuizContainer"},_.m("div",{class:"learningQuizComponentQuiz"},_.m("div",{class:"learningQuizComponentQuizContent"},_.m(_.v,{cond:function(){return!!S().aiGeneratedQuizLabel},
then:function(){return _.m("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.m(_.v3,{text:function(){return S().aiGeneratedQuizLabel}}))}}),_.m("div",{class:"learningQuizComponentQuizHeader"},_.m("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.m("div",{class:"learningYoututorQuizText",
style:_.G7({color:function(){return _.es(_.$8(S())).primaryTextColor}})},_.m(_.v3,{text:function(){return S().questionHeaderText}}))))),_.m("div",{role:"group",
class:_.XB("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.m(_.dY,{each:function(){return S().optionsData||[]}},function(A,P){var W={};
return _.m("button",{class:_.XB("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(W.learningQuizComponentQuizHover=function(){return!F()},W.learningQuizComponentQuizOptionWithCustomColor=H,W.learningYoututorQuizOptionSelectedCorrectOutline=function(){return F()&&b(P())},W.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return X()!==S().correctAnswerIndex&&n(P())},W.learningQuizComponentQuizIncorrectShake=function(){return X()!==
S().correctAnswerIndex&&n(P())},W)),
"on:click":_.Kb(function(){if(F())return!1;Z(P());O(b(P())?S().correctAnswerAriaLabel||"":S().incorrectAnswerAriaLabel||"");return!1}),
style:_.G7({background:"transparent"}),"aria-description":function(){return F()?b(P())?S().correctAnswerAriaLabel:S().incorrectAnswerAriaLabel:""},
"aria-disabled":F,el:_.Y2(function(y){_.WY(271905,y,J,function(t){J=t})}),
"client-ve-type":271905},_.m("div",{class:"learningQuizComponentQuizOptionContainer"},_.m(_.v3,{text:A.optionText}),_.m(_.v,{cond:function(){var y=P();return F()&&(n(y)||b(y))},
then:function(){var y={};return _.m(_.bn,{className:_.XB("learningYoututorQuizOptionIcon",(y.learningQuizComponentQuizPulse=function(){return X()===S().correctAnswerIndex&&b(P())},y)),
size:24,icon:function(){return b(P())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.m(_.v,{cond:F,
then:function(){return _.m("div",{class:"learningYoututorQuizExplanationContainer"},_.m("div",{class:"learningYoututorQuizExplanationText"},_.m(_.v3,{text:function(){return S().explanationHeaderText}})),_.m(_.v3,{text:function(){return S().optionsData[X()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Zi");
Lyr.idomCompat=!0;var pip=_.d(function(p){var J=p.thumbsUp,S=p.thumbsDown,H=p.rightAlignThumbs;p=_.K(_.eQ(!1,void 0,"OxPsH"));var M=p.next().value,X=p.next().value;p=_.K(_.eQ(!1,void 0,"V5vWne"));var Z=p.next().value,n=p.next().value;p={};return _.m("div",{class:_.XB("ytwThumbsUpDownThumbs",(p.ytwThumbsUpDownRightAlign=function(){return H==null?void 0:H()},p))},_.m(_.LD,{data:J,
onToggle:function(b){X(b);Z()&&n(!1)},
buttonShapeOverrides:function(){return{toggled:M()}}}),_.m(_.LD,{data:S,
onToggle:function(b){n(b);M()&&X(!1)},
buttonShapeOverrides:function(){return{toggled:Z()}}}))},"$i");
pip.idomCompat=!0;var SaU=_.d(function(p){var J=function(){return p.data().pendingStateEntityKey||""},S=_.v$(_.w6P,J),H=function(){var n;
if(!(n=p.disabled())){var b;n=!((b=S())==null||!b.isPendingResponse)}return n},M=_.K(_.eQ(rnN(""),void 0,"Q6q6y")),X=M.next().value,Z=M.next().value;
_.qz(function(){requestAnimationFrame(function(){var n=p.data().onShowAnimationMs||0;n=n>0?rnN("--chip-animation-duration: "+n+"ms;"):rnN("");Z(n)})});
return _.m("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:X},_.m(_.dY,{each:function(){return p.data().chipData||[]},
keyBy:"REFERENCE"},function(n){return _.m(Jzw,{data:n,disabled:H,pendingStateKey:J,onError:p.onError})}))},"bj"),Jzw=_.d(function(p){var J=_.mo("button"),S=_.K(_.eQ(!0,void 0,"baSFEf")),H=S.next().value,M=S.next().value,X=function(){return p.data().text.content},Z=function(){return p.data().transparentWhenLoading},n=_.fb(_.uT.currentPageSubTypeSelector),b=function(){var f;
return(f=_.vO().resolve(_.F9(_.Xo)))==null?void 0:_.HAP(f,n())},F=_.Kb(function(f){var O,A,P,W,y,t,D,k;
return _.G(function(E){switch(E.nextAddress){case 1:f.stopPropagation();if(p.disabled())return E.return();A=String(Math.floor(((O=_.nG())==null?void 0:O.getCurrentTime())||0)*1E3);P="youchat-"+Date.now();W=function(){_.ge(p.data().onClick||{});var a=_.aVU(p.data().continuation),q=_.FZ({clientMessageId:P,playerOffsetMs:A,pageContext:b()});return new Promise(function(w,I){_.ge(a,{form:{formData:q},commandController:{onSuccess:function(Z3,vg){w(vg)},
onServerError:function(Z3,vg){I(vg.error)}}})})};
y=_.xQN(p.pendingStateKey());y(!0);_.uMp("#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");M(!1);_.oI(E,2);return E.yield(W(),4);case 4:_.X$(E,3);break;case 2:t=_.BZ(E),(k=(D=p).onError)==null||k.call(D,t);case 3:y(!1),_.UK(E)}})});
return _.m(_.v,{cond:H,then:function(){return _.m("div",{class:"ytwYouChatChipsDataChipWrapper"},_.m("button",{el:J,class:"ytwYouChatChipsDataChip","data-disabled":p.disabled,"data-transparent-loading":Z,"on:click":F,tabindex:0},X))}})},"cj");var HII=_.d(function(p){var J=p.data;var S=p.initiallyExpanded;var H=function(){var F;return(F=J().conversationResourceData)==null?void 0:F.learningGuideData};
p=_.K(_.re(function(){var F;return(F=S==null?void 0:S())!=null?F:!1}));
var M=p.next().value,X=p.next().value,Z=function(){X(!0)},n=_.BW(function(){var F,f;
return(f=(F=H())==null?void 0:F.sections)!=null?f:[]},void 0,"QxyRyf"),b=_.BW(function(){return n().length>4},void 0,"MEbwoe");
p=_.BW(function(){var F;return!M()&&b()&&(F=H())!=null&&F.expandButton?n().slice(0,4):n()},void 0,"hIE70b");
return _.m("yt-conversation-resource-view-model",{class:_.XB("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.m(_.AH,{data:p},{expandableMetadataViewModel:_.RYN}),_.m(_.v,{cond:function(){return b()&&!M()},
then:function(){return _.m("div",{id:"showMoreButton"},_.m(_.AH,{data:function(){var F;return(F=H())==null?void 0:F.expandButton}},{buttonViewModel:function(F){return _.m(_.D0,{data:F.data,
onClick:Z})}}))}}))},"dj");_.Mrj=_.d(function(p){var J=function(){var k;return(k=p.data().text)==null?void 0:k.content},S=function(){var k,E;
return(k=p.data().webData)==null?void 0:(E=k.textResult)==null?void 0:E.content},H=_.vO().resolve(_.VM),M=_.Gy(),X=function(){return p.data().chatResponseStyle},Z=function(){return!p.data().transparentBackground},n=function(){return p.data().rightAlignThumbs},b=function(){return p.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||p.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},F=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:b()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:p.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},f=function(){var k;
return p.data().webData||((k=p.data().text)==null?void 0:k.content)||p.data().videoResultsData||p.data().conversationResourceViewModel||p.data().quiz||p.data().yoututorQuiz||p.data().richContent},O=function(){return!!p.data().sectionHeader||f()},A=function(){var k;
return(k=p.data().videoResultsData)==null?void 0:k.videoShelf},P=function(){var k;
return(k=p.data().webData)==null?void 0:k.sourcesShelf},W=function(){return X()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||X()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:p.data().thumbsDownViewModel&&p.data().thumbsUpViewModel},y=function(){return _.e(p.data().thumbsUpViewModel,_.f5)},t=function(){return _.e(p.data().thumbsDownViewModel,_.f5)};
_.qz(function(){requestAnimationFrame(function(){var k;(k=p.shouldAnimateIcon)!=null&&k.call(p)&&cny(M.lottieEl)})});
var D={};return _.m("you-chat-item-view-model",{class:_.XB("ytwYouChatItemViewModelYouChatItemViewModel",(D.ytwYouChatItemViewModelColumnLayout=function(){return b()},D)),
style:_.G7({"min-height":function(){var k,E;return jfN((k=p.containerHeight)==null?void 0:k.call(p),(E=p.isLastItem)==null?void 0:E.call(p))}}),
"data-target-id":function(){return p.data().id||""}},_.m(_.v,{cond:function(){return p.data().removeIcon?!1:O()},
then:function(){var k={};return _.m("div",{"aria-hidden":"true"},_.m(_.l1,{className:_.XB("ytwYouChatItemViewModelIcon",(k.ytwYouChatItemViewModelRtl=H==="rtl",k.ytwYouChatItemViewModelHidden=function(){return!(p.data().hideIcon||X()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||X()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:O())},k)),
animationName:"YOUCHAT_ICON",data:F,animationRef:M}))}}),_.m(_.v,{cond:O,
then:function(){var k={};return _.m("div",{class:_.XB("ytwYouChatItemViewModelHost",(k.ytwYouChatItemViewModelHostNoPadding=function(){return!!p.data().sectionHeader&&!f()},k.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return X()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},k.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return X()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},k.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return X()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
k.ytwYouChatItemViewModelGradientBackground=Z,k.ytwYouChatItemViewModelHostAlignStart=function(){return!b()},k.ytwYouChatItemViewModelHostDefaultFlex=function(){return!b()},k)),
role:"alert"},_.m(_.v,{cond:J,then:function(E){return _.m(_.$h,{text:E,wrapCodeBlocks:!0})}}),_.m(_.AH,{data:function(){return p.data().sectionHeader}},{sectionHeaderViewModel:function(E){var a={};
return _.m(_.EP,{data:E.data,className:_.XB("ytwYouChatItemViewModelSectionHeader",(a.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!p.data().sectionHeader&&!f()},a)),
forceSmallLayout:!0})}}),_.m(_.v,{cond:S,
then:function(E){return _.m(_.$h,{text:E,wrapCodeBlocks:!0})}}),_.m(_.v,{cond:A,
then:function(){return _.m("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.m(_.AH,{data:function(){var E;return(E=p.data().videoResultsData)==null?void 0:E.videoShelf}},{horizontalShelfViewModel:function(E){return _.m(_.P8,{data:E.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.m(_.v,{cond:P,
then:function(){return _.m("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.m(_.AH,{data:function(){var E;return(E=p.data().webData)==null?void 0:E.sourcesShelf}},{horizontalShelfViewModel:function(E){return _.m(_.P8,{data:E.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.m(_.AH,{data:function(){return p.data().conversationResourceViewModel}},{conversationResourceViewModel:HII}),_.m(_.AH,{data:function(){return p.data().quiz}},{learningJourneyQuizViewModel:_.qQv}),_.m(_.AH,{data:function(){return p.data().yoututorQuiz}},{yoututorQuizViewModel:Lyr}),_.m(_.AH,{data:function(){return p.data().richContent}},{cardViewModel:_.lYP,
linearLayoutViewModel:_.OY}),_.m(_.v,{cond:W,then:function(){return _.m(pip,{thumbsUp:y,thumbsDown:t,rightAlignThumbs:n})}}))}}),_.m(_.v,{cond:function(){return p.data().chipsData},
then:function(k){return _.m(SaU,{data:k,disabled:p.pending,onError:p.onError})}}))},"fj");
_.Mrj.idomCompat={callbacks:{onError:!0,onSend:!0}};_.Xir=_.d(function(p){var J=function(){return p.data().choiceSelectedText},S=function(){return p.data().hasGradientBackground},H={};
return _.m("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.G7({"min-height":function(){var M,X;return jfN((M=p.containerHeight)==null?void 0:M.call(p),(X=p.isLastItem)==null?void 0:X.call(p))}}),
"data-target-id":function(){var M;return(M=p.data().itemTargetId)!=null?M:""}},_.m(_.v,{cond:J,
then:function(){return _.m("div",{class:"ytYouChatUserTurnChoiceSelected"},_.m(_.v3,{text:J}))}}),_.m("div",{class:_.XB("ytYouChatUserTurnUserMessage",(H.ytYouChatUserTurnGradientContainer=S,H.ytYouChatUserTurnDefaultContainer=function(){return!S()},H))},function(){return p.data().text}))},"gj");_.iIP=_.d(function(p){var J=function(){var Z;return((Z=p.data)==null?void 0:Z.call(p).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},S=_.Gy(),H=_.vO().resolve(_.VM);
_.qz(function(){requestAnimationFrame(function(){var Z;(Z=S.lottieEl)==null||Z.addEventListener("DOMLoaded",function(){var n;(n=p.onLottieLoaded)==null||n.call(p)})})});
var M=function(){var Z;return(Z=p.data)==null?void 0:Z.call(p).loadingAnimationA11yLabel},X={};
return _.m("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var Z;return((Z=p.data)==null?void 0:Z.call(p).targetId)||""},
"aria-label":function(){return M()||""},
role:function(){return M()?"progressbar":void 0},
style:_.G7({"min-height":function(){var Z,n;return jfN((Z=p.containerHeight)==null?void 0:Z.call(p),(n=p.isLastItem)==null?void 0:n.call(p))}})},_.m(_.l1,{"aria-hidden":"true",
className:_.XB((X.ytChatLoadingViewModelRtl=H==="rtl",X)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:J()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||J()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:J()}}},
animationRef:S}))},"ij");
}catch(e){_._DumpException(e)}
try{
var YGp,rZs,j2G;YGp=function(p){return _.z("kevlar_watch_cinematics_invisible")||p.fullscreen&&_.z("kevlar_watch_cinematics_invisible_in_fullscreen")||p.theater&&!p.fullscreen&&_.z("kevlar_watch_cinematics_invisible_in_theater")};
rZs=function(){var p=document.createElement("canvas"),J=p.getContext("2d");if(!J)throw Error("To");_.Ej(p,{position:"absolute",width:"100%",height:"100%"});return{element:p,context:J}};
j2G=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.z("kevlar_watch_cinematics_css_blur")};
_.wWd=function(p,J,S){return Math.abs(p-J)<=(S||1E-6)};
_.xss=function(p,J){return p==J?!0:p&&J?p.width==J.width&&p.height==J.height:!1};_.cZ7=new _.Zz("notificationActionRenderer");var IDs=function(p){var J=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.iy;this.element.addEventListener("load",function(){J.loaded=!0;J.resolver.resolve(J.element)});
this.element.addEventListener("error",function(){J.failed=!0});
this.element.src=p};var Lr4=function(p,J){this.image=p;this.frame=J};
Lr4.prototype.drawToCanvas=function(p,J){var S=this.frame.width/this.frame.columns,H=this.frame.height/this.frame.rows,M=J.offsetX,X=J.offsetY;YGp(J)?(p.fillStyle=J.fullscreen?"#000":"#0f0f0f",p.fillRect(M,X,(J==null?void 0:J.width)||S,(J==null?void 0:J.height)||H)):p.drawImage(this.image,this.frame.column*S,this.frame.row*H,S,H,M,X,(J==null?void 0:J.width)||S,(J==null?void 0:J.height)||H)};
var p5q=function(p){this.color=p};
p5q.prototype.drawToCanvas=function(p,J){var S=J.offsetX,H=J.offsetY,M=J.width,X=J.height;p.fillStyle=YGp(J)?J.fullscreen?"#000":"#0f0f0f":this.color;p.fillRect(S,H,M,X)};var Fx=function(p,J){_.Gl.call(this);this.playerApi=J;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.yF(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();J4y(this,p);Sgp(this);this.update()};
_.Q(Fx,_.Gl);Fx.prototype.addEventListeners=function(){var p=this,J=function(){p.update()},S=function(M){p.paused||(M.type==="newdata"&&(p.mosaics.clear(),HVv(p),vM(p)),Sgp(p),p.update())},H=function(){p.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",J);this.playerApi.addEventListener("onVideoDataChange",S);this.playerApi.addEventListener("onStateChange",H);this.addOnDisposeCallback(function(){p.playerApi.removeEventListener("onVideoProgress",J);p.playerApi.removeEventListener("onVideoDataChange",S);p.playerApi.removeEventListener("onStateChange",H)})};
var J4y=function(p,J){p.cinematicContainerRenderer!==J&&(p.cinematicContainerRenderer=J,HVv(p),vM(p),p.colorStoreUpdateJobId=_.wg.addLowPriorityJob(function(){var S;if((S=p.cinematicContainerRenderer.colorStore)!=null&&S.sampledColors){S=Infinity;for(var H=_.K(p.cinematicContainerRenderer.colorStore.sampledColors),M=H.next();!M.done;M=H.next()){M=M.value;var X=Number(M.key);X!==0&&X<S&&(S=X);X=_.Bt(M.value);p.colorStore.set(M.key,X)}p.colorStoreTimeInterval=S}}))},HVv=function(p){p.colorStoreUpdateJobId&&
(_.wg.cancelJob(p.colorStoreUpdateJobId),p.colorStoreUpdateJobId=void 0);
p.colorStore.clear();p.currentStoryboardColor=void 0},Mns=function(p,J){var S;
return(S=p.getStoryboardFrame(J))==null?void 0:S.url};
Fx.prototype.onPlayerStateChange=function(){this.update()};
Fx.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var Sgp=function(p){var J=p.getStoryboardFrame(0);J&&(J=new _.yF(J.width/J.columns,J.height/J.rows),_.xss(p.currentStoryboardSize,J)||(p.currentStoryboardSize=J,p.publish("STORYBOARD_SIZE_CHANGED",p.currentStoryboardSize)))},X5s=function(p,J){p.currentStoryboardIndex=J;
p.pendingStoryboardIndex=NaN;J=p.getStoryboardFrame(p.currentStoryboardIndex);p.currentStoryboard=new Lr4(p.mosaics.get(J.url).element,J);p.publish("STORYBOARD_CHANGED",p.currentStoryboard);p.lastUpdateTime=(0,_.fO)()};
Fx.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var vM=function(p){p.currentStoryboardIndex=NaN;p.pendingStoryboardIndex=NaN;p.currentStoryboard&&(p.currentStoryboard=void 0,p.publish("STORYBOARD_CHANGED",void 0));p.lastUpdateTime=NaN};
Fx.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)vM(this);else{var p=this.playerApi.getPlayerState(1);if(p===-1||p===5||p===0)vM(this);else if(isNaN(this.lastUpdateTime)||!((0,_.fO)()<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 J=this.colorStore.get(p);J?J!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=J,this.currentStoryboard=new p5q(J),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.fO)()):(_.xQ(new _.TG("Could not find color for timestamp: "+p,this.cinematicContainerRenderer)),vM(this))}else vM(this);else iVp(this,p)}};
var iVp=function(p,J){var S=p.getStoryboardFrameIndex(J);if(S!==p.currentStoryboardIndex&&S!==p.pendingStoryboardIndex){J=Mns(p,S);var H=p.mosaics.get(J);H?H.loaded&&X5s(p,S):(p.pendingStoryboardIndex=S,S=new IDs(J),p.mosaics.set(J,S),S.resolver.promise.then(function(){if(!p.isDisposed()&&!p.paused&&!isNaN(p.pendingStoryboardIndex)){var M=Mns(p,p.pendingStoryboardIndex);if(M){var X;(X=p.mosaics.get(M))!=null&&X.loaded&&X5s(p,p.pendingStoryboardIndex)}else vM(p)}}))}};
Fx.prototype.getStoryboardFrameIndex=function(p){var J=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(p,J)};
Fx.prototype.getStoryboardFrame=function(p){var J=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,S,H;return((H=(S=this.playerApi).getStoryboardFrame)==null?void 0:H.call(S,p,J))||null};
Fx.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var O$=function(p,J,S,H){H=H===void 0?!1:H;_.gp.call(this);this.cinematicContainerRenderer=J;this.playerApi=S;this.theater=this.fullscreen=!1;var M;this.ambientLightThemeEnabled=!H&&!!(J==null?0:(M=J.config)==null?0:M.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=H)&&!0;this.container=document.createElement("div");p.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);RYq(this);this.backCanvas=
rZs();this.frontCanvas=rZs();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new Fx(J,this.playerApi);_.$c(this,this.storyboardManager);this.addEventListeners();KTG(this)?ZVs(this,100+f8(this)*3*2,100+f8(this)*3*2):nvp(this);GVG(this,this.storyboardManager.currentStoryboard)};
_.Q(O$,_.gp);
var RYq=function(p){var J=p.playerApi.getVideoAspectRatio();_.Ej(p.container,{"aspect-ratio":""+J,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var S;var H;if((p.fullscreen||p.theater)&&((S=p.cinematicContainerRenderer.config)==null?0:(H=S.watchFullscreenConfig)==null?0:H.colorSourceWidthMultiplier))S=p.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var M;S=(M=
p.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?M:p.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var X,Z;if((p.fullscreen||p.theater)&&((X=p.cinematicContainerRenderer.config)==null?0:(Z=X.watchFullscreenConfig)==null?0:Z.colorSourceHeightMultiplier))M=p.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var n;M=(n=p.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?n:p.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.Ej(p.innerContainer,
{"aspect-ratio":""+J,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+S+", "+M+")"});j2G()&&_.Ej(p.innerContainer,"filter","blur("+_.PO("cinematic_watch_css_filter_blur_strength",40)+"px)")};
O$.prototype.setFullscreen=function(p,J){this.fullscreen=p;this.theater=!!J;RYq(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),p=this.storyboardManager.currentStoryboard,bVG(this),p&&mzu(this,p)};
O$.prototype.addEventListeners=function(){var p=this,J=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(M){GVG(p,M)}),S=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){nvp(p)});
this.addOnDisposeCallback(function(){p.storyboardManager.unsubscribeByKey(J);p.storyboardManager.unsubscribeByKey(S)});
var H=function(){RYq(p)};
this.playerApi.addEventListener("onVideoDataChange",H);this.addOnDisposeCallback(function(){p.playerApi.removeEventListener("onVideoDataChange",H)})};
var nvp=function(p){if(!KTG(p)){var J=p.storyboardManager.currentStoryboardSize;isNaN(J.width)||isNaN(J.height)||ZVs(p,Number(J.width)+f8(p)*3*2,Number(J.height)+f8(p)*3*2)}},ZVs=function(p,J,S){p.backCanvas.element.width=J;
p.backCanvas.element.height=S;p.frontCanvas.element.width=J;p.frontCanvas.element.height=S},KTG=function(p){return p.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},GVG=function(p,J,S){S=S===void 0?!1:S;
var H=p.frontCanvas.element.getAnimations()[0];H?(H.pause(),p.backCanvas.context.globalAlpha=Number(getComputedStyle(p.frontCanvas.element).opacity),p.frontCanvas.element.style.opacity="0",H.finish()):p.backCanvas.context.globalAlpha=1;p.backCanvas.context.drawImage(p.frontCanvas.element,0,0,p.backCanvas.element.width,p.backCanvas.element.height);bVG(p);J&&mzu(p,J);J=J?p.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.PO("cinematic_watch_fade_out_duration",500);H=_.PO("cinematic_watch_transition_frame_rate")/
1E3;var M={};H&&(M={easing:"steps("+Math.round(J*H)+")"});(S===void 0?0:S)||p.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:J,iterations:1},M));p.frontCanvas.element.style.opacity="1"},bVG=function(p){var J=p.ambientLightThemeEnabled||p.ambientTheaterModeEnabled,S=p.ambientLightThemeEnabled||p.ambientFullscreenEnabled;
p.frontCanvas.context.fillStyle=p.theater&&J||p.fullscreen&&S?"#000":"#0f0f0f";j2G()||(p.frontCanvas.context.filter="blur(0)");p.frontCanvas.context.fillRect(0,0,p.frontCanvas.element.width,p.frontCanvas.element.height)},mzu=function(p,J){j2G()||(p.frontCanvas.context.filter="blur("+f8(p)+"px)");
p.frontCanvas.context.globalAlpha=p.fullscreen&&p.ambientFullscreenEnabled||p.theater&&p.ambientTheaterModeEnabled?_.PO("cinematic_watch_effect_letterbox_opacity",.4):_.PO("cinematic_watch_effect_opacity",.4);var S={offsetX:f8(p)*3,offsetY:f8(p)*3,theater:p.theater,fullscreen:p.fullscreen};KTG(p)&&(S.width=100,S.height=100);J.drawToCanvas(p.frontCanvas.context,S);p.frontCanvas.context.globalAlpha=1},f8=function(p){var J;
return(J=p.cinematicContainerRenderer.config.blurStrength)!=null?J:5};
O$.prototype.disposeInternal=function(){_.gp.prototype.disposeInternal.call(this);this.container.remove()};
O$.prototype.clear=function(){GVG(this,void 0,!0)};
O$.prototype.pause=function(){this.storyboardManager.pause()};var FTt;FTt=_.Bj(function(){var p,J,S=!((J=(p=document.createElement("canvas")).getContext)==null||!J.call(p,"2d")),H;p=!((H=CSS)==null||!H.supports("filter: blur(0)"));H=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var M;return S&&p&&H&&!((M=CSS)==null||!M.supports("aspect-ratio: 1 / 1"))});
_.AR=function(p,J){_.Gl.call(this);this.container=p;this.playerApi=J;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=vvs(this);this.update()};
_.Q(_.AR,_.Gl);_.fJa=function(p){var J=document.documentElement.hasAttribute("dark");p.isDarkModeEnabled=J;p.update()};
_.OVv=function(p,J){p.settingEnabled=J;p.update()};
_.AR.prototype.setFullscreen=function(p,J){this.fullscreen=p;this.theater=!!J;this.update()};
_.A4v=function(p,J){p.cinematicContainerRenderer=J;p.cinematicContainerRenderer&&(p.cinematicsVe=_.KG(p.isShorts()?227858:159022),_.dC(_.bC(),p.cinematicsVe),p.loggingClientData={watchCinematicContainerData:{presentationStyle:p.cinematicContainerRenderer.presentationStyle}});p.update()};
_.AR.prototype.isShorts=function(){var p,J;return((p=this.cinematicContainerRenderer)==null?void 0:(J=p.config)==null?void 0:J.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.AR.prototype.isAllowed=function(){var p;if(p=FTt()){var J,S,H;p=((S=this.cinematicContainerRenderer)==null?void 0:S.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((H=this.cinematicContainerRenderer)==null||!H.colorStore)||((J=this.cinematicContainerRenderer)==null?void 0:J.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(p)if(_.z("web_cinematics_pausing")){var M,X;p=this.isDarkModeEnabled||!!((M=this.cinematicContainerRenderer)==
null?0:(X=M.config)==null?0:X.enableInLightTheme)}else{var Z,n;M=!!((Z=this.cinematicContainerRenderer)==null?0:(n=Z.config)==null?0:n.enableInLightTheme)&&(_.jn("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);p=this.isDarkModeEnabled||M}if(Z=p){var b,F;Z=!((F=(b=this.prefersReducedMotionQuery)==null?void 0:b.matches)!=null&&F)}return Z};
_.PeT=function(p){var J;(J=p.currentCinematicEffect)==null||J.pause()};
_.zYs=function(p){(p=p.currentCinematicEffect)!=null&&(p=p.storyboardManager,p.paused=!1,Sgp(p),p.update())};
_.AR.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var vvs=function(p){if(!_.z("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var J=window.matchMedia("(prefers-reduced-motion: reduce)"),S=function(){p.update()};
J.addListener(S);p.addOnDisposeCallback(function(){J.removeListener(S)});
return J}};
_.AR.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 O$(this.container,p,this.playerApi,this.isDarkModeEnabled),_.$c(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var J=this.currentCinematicEffect;J.cinematicContainerRenderer!==
p&&(J.cinematicContainerRenderer=p,J4y(J.storyboardManager,p),RYq(J));p=_.Gv();_.b7(0,194,!0);p.save();p=_.C1();this.cinematicsVe&&p&&_.dI(p,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(p=_.C1(),this.cinematicsVe&&p&&_.u7(p,[this.cinematicsVe],!1,this.loggingClientData),_.iW(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.vh.Object.defineProperties(_.AR.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var AZG;var Pfp;_.QG({_template:function(){if(Pfp!==void 0)return Pfp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=
p.content,S=J.insertBefore;AZG===void 0&&(AZG=document.createElement("template"));var H=AZG;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return Pfp=p},
is:"tp-yt-iron-pages",behaviors:[_.wL,_.VG],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var vod;_.fZu=function(){if(_.z("kevlar_home_skeleton")&&!vod){var p=document.querySelector("#home-page-skeleton");p&&(_.Qf("hgcr"),_.CC(p),vod=!0)}};
vod=!1;_.Lx=new _.Zz("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var vFT=function(p){return _.uqL(_.dfs(p&16777215))<.5},frD=function(p,J,S){var H=S.minimumRowsOfVideosBetweenSections===void 0?1:S.minimumRowsOfVideosBetweenSections;
return p<(S.minimumRowsOfVideosAtStart===void 0?2:S.minimumRowsOfVideosAtStart)||J!==null&&p-J<=H?!1:!0},O_y=function(p,J){var S=0,H=0;
p=_.K(p);for(var M=p.next();!M.done;M=p.next()){var X=M.value;if(X.richItemRenderer)X.richItemRenderer.rowIndex=H,X.richItemRenderer.colIndex=S++,S===J&&(S=0,H++);else if(X.richGroupRenderer&&X.richGroupRenderer.numColumns!==void 0)X.richGroupRenderer.rowIndex=H,X.richGroupRenderer.colIndex=S,S+=X.richGroupRenderer.numColumns,S===J&&(S=0,H++);else if(X.richSectionRenderer){var Z=M=void 0;if(X=_.e((M=X)==null?void 0:(Z=M.richSectionRenderer)==null?void 0:Z.content,_.BLE))X.rowIndex=H++}}},Au7=function(p,
J){var S=J.contentElement;
J=J.rendererToTagNameMap;if(S&&J&&J.size!==0){for(var H=new Map,M=_.K(S.children),X=M.next();!X.done;X=M.next()){X=X.value;var Z=X.tagName.toLowerCase(),n=H.get(Z);n||(n=[],H.set(Z,n));n.push(X)}if(H.size!==0)for(M=Math.min(p.length,S.children.length),X=new Map,Z=0;Z<M;Z++){n=Object.keys(p[Z])[0];n=J.get(n);if(!n)break;var b=X.get(n);b===void 0&&(b=0,X.set(n,b));var F=H.get(n);if(!F||b>=F.length)break;X.set(n,b+1);n=F[b];b=S.children[Z];b!==n&&(_.we=!0,_.x2.set(n,!0),S.insertBefore(n,b),_.x2.delete(n),
_.we=!1)}}},P0t=function(p,J,S,H,M,X,Z){H=H===void 0?{}:H;
if(!p||!p.length)return{orderedContent:[]};p=p.slice();var n=[],b=[];M=null;for(var F=0,f=function(E){b.sort(function(w,I){return I.skippedOnRow-w.skippedOnRow});
for(var a,q=(a=b.shift())==null?void 0:a.content;q;)!q.richSectionRenderer&&E||n.push(q),a=void 0,q=(a=b.shift())==null?void 0:a.content},O=void 0,A=void 0,P=new Set;p.length>0||b.length>0;){for(var W=[],y=J;y>0;){var t=void 0,D=void 0,k=(D=b[0]&&b[0].skippedOnRow<F?(t=b.shift())==null?void 0:t.content:void 0)!=null?D:p.shift();
if(!k)break;if(k.richItemRenderer)t=k.richItemRenderer.targetId,D=void 0,t&&((D=Z)==null?0:D.has(t))&&(D=Z.get(t),!O||D&&D.timestamp>O.timestamp)&&(O=D,A&&P.add(A),A=t),W.push(k),y--;else if(k.richGroupRenderer&&k.richGroupRenderer.numColumns!==void 0)k.richGroupRenderer.numColumns<=y?(W.push(k),y-=k.richGroupRenderer.numColumns):y===J&&k.richGroupRenderer.numColumns>J?(W.push({richGroupRenderer:Object.assign({},k.richGroupRenderer,{numColumns:J})}),y=0):b.push({content:k,skippedOnRow:F});else if(k.richSectionRenderer)if(frD(F,
M,H)&&y===J){n.push(k);M=F;F++;continue}else b.push({content:k,skippedOnRow:F});else if(k.continuationItemRenderer){f(!0);n.push(k);y=0;break}if(y===0)n.push.apply(n,_.dW(W));else if(!S&&p.length===0){f(!1);n.push.apply(n,_.dW(W));y=0;break}}F++;O&&(n.push(O.content),F++);A=O=void 0}O_y(n,J);X&&Au7(n,X);return{orderedContent:n,pinnedContentNotShownTargetIds:P}},oFG=function(p,J){if(J){var S=_.rl().getState().entities.flowStateEntity,H=zj4(p),M=[J];
H&&H!==J&&M.push(H);var X=!0,Z;if(S&&p.flowStateEntityKey&&((Z=S[p.flowStateEntityKey])==null?void 0:Z.primaryButtonDisabled)!==void 0){var n;X=!((n=S[p.flowStateEntityKey])==null||!n.primaryButtonDisabled)}$D4(p,H!=null?H:J,M,X)}},WC4=function(p){return _.j7(_.rl(),function(J){return J.entities.flowStateEntity},function(J,S){if(p.flowStateEntityKey){var H,M=J==null?void 0:(H=J[p.flowStateEntityKey])==null?void 0:H.currentStepId,X;
S=S==null?void 0:(X=S[p.flowStateEntityKey])==null?void 0:X.currentStepId;X=_.rl().getState().talkToRecs;if(M&&M!==S){var Z;J=(J==null?void 0:(Z=J[p.flowStateEntityKey])==null?void 0:Z.stepIdStack)||Object.keys(X.stepStates);Z=!ejq(X==null?void 0:X.stepStates[M]);$D4(p,M,J,Z)}}})},C0v=function(p){return _.j7(_.rl(),QI7,function(J){var S=zj4(p);
if(S){var H=Object.keys(J.stepStates);J=!ejq(J==null?void 0:J.stepStates[S]);$D4(p,S,H,J)}})},ejq=function(p){var J=Object.keys((p==null?void 0:p.selectionStates)||{}).reduce(function(X,Z){return X||(p==null?void 0:p.selectionStates[Z].isSelected)},!1),S,H,M=!!(p==null?0:(S=p.userQuery)==null?0:(H=S.userQuery)==null?0:H.trim());
return J||M},zj4=function(p){if(p.flowStateEntityKey){var J,S,H=(J=_.rl().getState().entities.flowStateEntity)==null?void 0:(S=J[p.flowStateEntityKey])==null?void 0:S.currentStepId;
if(H)return H}},$D4=function(p,J,S,H){_.rl().dispatch(_.P$("flowStateEntity",p.flowStateEntityKey,{currentStepId:J,
stepIdStack:S,key:p.flowStateEntityKey,primaryButtonDisabled:H}))},yus;var BWd;_.QG({_template:function(){if(BWd!==void 0)return BWd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
var J=p.content,S=J.insertBefore;yus===void 0&&(yus=document.createElement("template"));var H=yus;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return BWd=p},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var UDp=new _.Zz("flowRootRenderer");var sIT=new _.Zz("chipsShelfViewModel");var gF4=new _.Zz("responsiveContainerConfiguration");_.t07=new _.Zz("engagementPanelSectionListRenderer");var hjt=function(){this.horizontal=!1},DDG=function(p,J){p.horizontal=J};
hjt.prototype.position=function(p,J,S,H){H=H===void 0?1:H;p=this.delta(p)*H+J;H=Math.max(J,S);return p>=Math.min(J,S)&&p<=H?p:S};
hjt.prototype.axis=function(p){p=this.direction(p);return p==="up"||p==="down"?"Y":"X"};var Dw=function(p,J,S){J=J===void 0?_.ET():J;this.target=p;this.manager=J;this.touchAction=S;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Dw.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(_.dW(this.events)));for(var p=_.K(this.events),J=p.next();!J.done;J=p.next())this.listen(J.value)}};
Dw.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.dW(this.events)));for(var p=_.K(this.events),J=p.next();!J.done;J=p.next())this.unlisten(J.value)}};
Dw.prototype.listen=function(p){this.eventMap[p]&&this.target.addEventListener(p,this.eventMap[p])};
Dw.prototype.unlisten=function(p){this.eventMap[p]&&this.target.removeEventListener(p,this.eventMap[p])};var kM=function(){hjt.apply(this,arguments)};
_.Q(kM,hjt);kM.prototype.direction=function(p){var J=p.detail;p=J.deltaY;J=J.deltaX;return p&&!this.horizontal?p>0?"down":"up":J&&this.horizontal?J>0?"right":"left":"none"};
kM.prototype.distance=function(p){return Math.abs(this.delta(p))};
kM.prototype.delta=function(p){var J=this.direction(p),S=p.detail;p=S.deltaX;S=S.deltaY;return J==="up"||J==="down"?S||0:p||0};
kM.prototype.velocity=function(p){var J=this.direction(p),S=p.detail;p=S.velocityX;S=S.velocityY;return Math.abs(J==="up"||J==="down"?S||0:p||0)};_.Nh=function(p,J,S,H,M,X){M=M===void 0?new kM:M;X=X===void 0?_.ET():X;Dw.call(this,J,X,H);var Z=this;this.element=p;this.target=J;this.config=S;this.input=M;this.manager=X;this.events=["panstart","panmove","panend"];this.onPanStart=function(){Z.config.draggingClass&&Z.element.classList.add(Z.config.draggingClass);Z.config.startAction&&Z.config.startAction()};
this.onPanMove=function(n){var b=kHy(Z,n);if(b){Z.move(n,b);b.fade&&Z.fade(n,b);var F=Z.input.direction(n);b.moveAction&&b.moveAction(NWs(Z,n,b),F)}};
this.onPanEnd=function(n){var b,F,f,O,A,P;return _.G(function(W){if(W.nextAddress==1){Z.animationRequestId&&cancelAnimationFrame(Z.animationRequestId);Z.animationRequestId=void 0;b=kHy(Z,n);if(!b)return W.return();F=b;f=F.triggerAction;O=F.fade;A=F.disableFinish;P=F.translateBack;var y=Z.input.velocity(n),t=Z.input.distance(n),D=Z.threshold(b);return y>.3&&t>10||t>D?A?W.jumpTo(6):O?W.yield(TWp(Z,n),6):W.yield(dDu(Z,n,b),6):P?W.yield(Z.translateBack(n),3):W.jumpTo(3)}W.nextAddress!=3&&f&&f();Z.config.draggingClass&&
Z.element.classList.remove(Z.config.draggingClass);Z.reset();_.UK(W)})};
p=Object.keys(S.triggers);this.directions=new Set(p);DDG(this.input,this.directions.has("right")||this.directions.has("left"))};
_.Q(_.Nh,Dw);_.Nh.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var kHy=function(p,J){J=p.input.direction(J);return p.config.triggers[J]};
_.Nh.prototype.move=function(p,J){var S=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var H=S.input.axis(p),M=S.input.position(p,S.config.startPosition,J.endPosition,J.moveRatio||1);S.element.style.transform="translate"+H+"("+M+"px)";S.animationRequestId=void 0}))};
var NWs=function(p,J,S){var H=S.moveRatio||1;S=Math.abs(p.config.startPosition-S.endPosition);return Math.min(p.input.distance(J)*H,S)/S};
_.Nh.prototype.fade=function(p,J){var S=J.endOpacity;p=NWs(this,p,J);p>0&&(this.element.style.opacity=""+(((S||0)-1)*p+1))};
_.Nh.prototype.threshold=function(p){return p.threshold?p.threshold:Math.abs(p.endPosition-this.config.startPosition)/3};
var dDu=function(p,J,S){var H,M,X,Z,n,b,F;return _.G(function(f){if(f.nextAddress==1)return H=p.input.delta(J)+p.config.startPosition,M=p.input.axis(J),X=S,Z=X.endPosition,n=X.transitionEndPosition,F=(b=n)!=null?b:Z,f.yield(p.element.animate([{transform:"translate"+M+"("+H+"px)"},{transform:"translate"+M+"("+F+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);p.element.style.transform="translate"+M+"("+F+"px)";_.UK(f)})};
_.Nh.prototype.translateBack=function(p){var J=this,S,H;return _.G(function(M){if(M.nextAddress==1){if(!J.element.style.transform)return M.return();S=J.input.axis(p);H=J.config.startPosition;return M.yield(J.element.animate([{transform:J.element.style.transform},{transform:"translate"+S+"("+H+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}J.element.style.transform="translate"+S+"("+H+"px)";_.UK(M)})};
var TWp=function(p,J){var S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return S=p.input.delta(J)+p.config.startPosition,H=p.input.axis(J),M=S+70,X=p.element.style.opacity===""?1:p.element.style.opacity,Z.yield(p.element.animate([{transform:"translate"+H+"("+S+"px)",opacity:X},{transform:"translate"+H+"("+M+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);p.element.style.transform="translate"+H+"("+M+"px)";p.element.style.opacity="0";_.UK(Z)})};var T4=function(){var p=_.f3.apply(this,arguments)||this;p._noAccessors=!0;p.scrollRate=3;p.autoScrollAnimationStart=0;p.autoScrollPaused=!1;p.autoScrollRafId=0;return p};
_.Q(T4,_.f3);_.R=T4.prototype;_.R.created=function(){var p=this;this.boundAutoScrollHandler=function(J){p.autoScroll(J)}};
_.R.detached=function(){this.hostElement.removeEventListener("mouseout",_.n3(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.n3(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.n3(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.R.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.n3(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.n3(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.n3(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.n3(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.n3(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.n3(this,this.endAutoScroll)),this.endAutoScroll())};
_.R.autoScroll=function(p){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=p);var J;if(J=!this.autoScrollPaused&&this.scrollTarget)J=this.scrollTarget,J=J.scrollHeight-J.scrollTop!==J.clientHeight;J&&(J=1E3/this.scrollRate,p-=this.autoScrollAnimationStart,p>J&&(this.scrollTarget.scrollTop+=Math.ceil(p/J),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.R.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.R.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
T4.prototype.autoScrollEnabledChanged=T4.prototype.autoScrollEnabledChanged;_.V([_.N(),_.Y("design:type",Object)],T4.prototype,"scrollRate",void 0);_.V([_.N(),_.Y("design:type",Object)],T4.prototype,"scrollTarget",void 0);_.V([_.N(),_.Y("design:type",Boolean)],T4.prototype,"autoScrollEnabled",void 0);_.V([_.bO("autoScrollEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T4.prototype,"autoScrollEnabledChanged",null);_.V([_.OD()],T4);_.ulD=[T4.prototype];var lrp;var d8=function(){var p=_.T.apply(this,arguments)||this;p.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};p.forceDarkTheme=!1;p.forceLightTheme=!1;p.dynamicTextHeight=94;p.hasOverflowButton=!1;p.isInfeedModernization=!1;return p};
_.Q(d8,_.T);_.R=d8.prototype;_.R.computeUrlImg=function(p){if(p)return _.LI(p.thumbnails)};
_.R.getLogoHeight=function(p){return this.logoWithPadding(p)?"31":"24"};
_.R.getLogoClassName=function(p){return this.logoWithPadding(p)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.R.logoWithPadding=function(p){var J,S;return(p=(J=p.thumbnails)==null?void 0:(S=J[0])==null?void 0:S.height)&&p%31===0?!0:!1};
_.R.sendImpressionEndpoints=function(p){p.impressionEndpoints&&_.pl(this.hostElement,p.impressionEndpoints)};
_.R.observeBasicPalette=function(){var p,J,S=(p=this.data)==null?void 0:(J=p.colorData)==null?void 0:J.basicColorPaletteData;S?_.eK(this.hostElement,S):_.eK(this.hostElement,{})};
_.R.observeDataChanged=function(){var p;this.dynamicTextHeight=((p=this.data)==null?0:p.supplementalText)?74:94;var J;this.hasSupplementalText=!((J=this.data)==null||!J.supplementalText);var S,H,M,X;p=(S=this.data)==null?void 0:(H=S.actionButton)==null?void 0:(M=H.buttonRenderer)==null?void 0:(X=M.colorData)==null?void 0:X.basicColorPaletteData;var Z,n,b;if(!((Z=this.data)==null?0:(n=Z.actionButton)==null?0:(b=n.buttonRenderer)==null?0:b.style)&&p){this.computeIsInfeedModernization(this.data)||(p.borderColor=
p.foregroundTitleColor);var F,f;this.set("data.actionButton.buttonRenderer",_.T6.unsafeClone((F=this.data)==null?void 0:(f=F.actionButton)==null?void 0:f.buttonRenderer))}};
_.R.observeDataForCounterfactual=function(){if(_.z("kevlar_banner_cf_extra_logging")){var p;((p=this.data)==null?0:p.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.R.computeSupplementalStyle=function(){var p;if((p=this.data)!=null&&p.supplementalText){var J,S,H;if((J=this.data)==null?0:(S=J.colorData)==null?0:(H=S.basicColorPaletteData)==null?0:H.foregroundActivatedColor)return p=_.yi(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;"}};
_.R.computeForcedDarkTheme=function(){var p,J,S,H=(p=this.data)==null?void 0:(J=p.actionButton)==null?void 0:(S=J.buttonRenderer)==null?void 0:S.style,M,X,Z;p=vFT(((M=this.data)==null?void 0:(X=M.colorData)==null?void 0:(Z=X.basicColorPaletteData)==null?void 0:Z.backgroundColor)||0);return H&&p};
_.R.computeForcedLightTheme=function(){var p,J,S,H=(p=this.data)==null?void 0:(J=p.actionButton)==null?void 0:(S=J.buttonRenderer)==null?void 0:S.style,M,X,Z;p=!vFT(((M=this.data)==null?void 0:(X=M.colorData)==null?void 0:(Z=X.basicColorPaletteData)==null?void 0:Z.backgroundColor)||0);return H&&p};
_.R.computeHasOverflowButton=function(p){return!!p.overflowButton};
_.R.computeHasTitle=function(p){return!!p.title};
_.R.computeTitleMaxFontSize=function(p){return this.computeHasOverflowButton(p)?28:64};
_.R.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.R.computeIsInfeedModernization=function(){var p,J,S,H,M=(p=this.data)==null?void 0:(J=p.actionButton)==null?void 0:(S=J.buttonRenderer)==null?void 0:(H=S.colorData)==null?void 0:H.basicColorPaletteData;return(M==null?void 0:M.backgroundColor)===452984831||(M==null?void 0:M.backgroundColor)===218103808};
d8.prototype.observeDataForCounterfactual=d8.prototype.observeDataForCounterfactual;d8.prototype.observeDataChanged=d8.prototype.observeDataChanged;d8.prototype.observeBasicPalette=d8.prototype.observeBasicPalette;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],d8.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],d8.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],d8.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],d8.prototype,"hasSupplementalText",void 0);_.V([_.N(),_.Y("design:type",Object)],d8.prototype,"dismissButtonOverrides",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Y("design:type",Boolean)],d8.prototype,"hasTitle",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.Y("design:type",Object)],d8.prototype,"forceDarkTheme",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.Y("design:type",Object)],d8.prototype,"forceLightTheme",void 0);_.V([_.N(),_.Y("design:type",Object)],d8.prototype,"dynamicTextHeight",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Y("design:type",Object)],d8.prototype,"hasOverflowButton",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.Y("design:type",Object)],d8.prototype,"isInfeedModernization",void 0);_.V([_.bO("data.colorData.basicColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d8.prototype,"observeBasicPalette",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d8.prototype,"observeDataChanged",null);_.V([_.bO("data.isVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d8.prototype,"observeDataForCounterfactual",null);_.V([_.gw({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],d8);
_.l(d8,"ytd-banner-promo-renderer",function(){if(lrp!==void 0)return lrp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return lrp=p},{mode:1});var V0a;var qKq;var arv;var EFu=function(){return _.T.apply(this,arguments)||this};
_.Q(EFu,_.T);_.V([_.N(),_.Y("design:type",Object)],EFu.prototype,"data",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],EFu.prototype,"ytRendererBehavior",void 0);_.V([_.gw({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],EFu);
_.l(EFu,"ytd-hashtag-grid-tile-renderer",function(){if(arv!==void 0)return arv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return arv=p},{mode:1});var uK=function(){return _.T.apply(this,arguments)||this};
_.Q(uK,_.T);uK.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
uK.prototype.updateRichGridTrendingHashtagsVisibility=function(){var p,J;if(((p=this.data)==null||!p.isExpanded)&&(J=this.data)!=null&&J.tiles){p=this.data.tiles.length;J=p>this.richGridItemsPerRow?this.richGridItemsPerRow+1:p;var S=Math.ceil(p/J);this.fullyVisibleRows=p%J===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}};
uK.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
uK.prototype.updateRichGridTrendingHashtagsVisibility=uK.prototype.updateRichGridTrendingHashtagsVisibility;_.V([_.N(),_.Y("design:type",Object)],uK.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Number)],uK.prototype,"fullyVisibleRows",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],uK.prototype,"isShowMoreVisible",void 0);_.V([_.N({selector:_.yc,value:0}),_.Y("design:type",Number)],uK.prototype,"richGridItemsPerRow",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],uK.prototype,"ytdReduxBehavior",void 0);_.V([_.bO("data","richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uK.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.V([_.gw({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],uK);
_.l(uK,"ytd-hashtag-grid-shelf-renderer",function(){if(qKq!==void 0)return qKq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return qKq=p},{mode:1});var YKd;var ruG;var lK=function(){var p=_.T.apply(this,arguments)||this;p.visibleVideos=[];p.hiddenVideos=[];p.modern=_.z("web_modern_buttons");p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.Q(lK,_.T);_.R=lK.prototype;_.R.attached=function(){var p=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",p);this.onDarkModeToggledAction(p)};
_.R.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"}}}};
_.R.dataChanged=function(){var p=this;this.requestElementsPerRow();var J,S;this.currentColorPalette=this.isDarkTheme?(J=this.data)==null?void 0:J.darkColorData:(S=this.data)==null?void 0:S.lightColorData;var H;if((H=this.currentColorPalette)==null?0:H.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.mN(this,function(){p.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.R.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.R.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.R.computeIsFirstFeedItem=function(p){return p};
_.R.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&this.set("isDarkTheme",p);this.data&&(this.currentColorPalette=p?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.R.getCurrentLogo=function(p,J){if(p)return J?p.darkLogoImage:p.lightLogoImage};
_.R.computeTitleStyle=function(p){var J;if((J=this.data)!=null&&J.title&&p&&p.textPrimary!==void 0)return"color:"+_.yi(p.textPrimary)+";"};
_.R.computeSubtitleStyle=function(p){var J;if((J=this.data)!=null&&J.subtitle&&p&&p.textSecondary!==void 0)return"color:"+_.yi(p.textSecondary)+";"};
_.R.computeDismissIconStyle=function(p){if(this.data&&this.data.dismissButton&&p&&p.textPrimary!==void 0)return"--yt-button-color:"+_.yi(p.textPrimary)+";"};
_.R.computeOverflowButtonStyle=function(p){if(this.data&&this.data.overflowButton&&p&&p.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.yi(p.textPrimary)+";--yt-spec-icon-active-other:"+_.yi(p.textPrimary)+";"};
_.R.computeBackgroundStyle=function(p){if(p&&this.data){var J="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var S=_.LI((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);S&&(J+='background-image:url("'+S+'");')}p.backgroundColor!==void 0&&(J+="background-color:"+_.Bt(p.backgroundColor)+";");return J}};
_.R.computeButton=function(){var p,J=Object.assign({},_.e((p=this.data)==null?void 0:p.showMoreButton,_.Za));if(this.modern&&J){J.style="STYLE_MONO_OUTLINE";var S;if(p=(S=this.currentColorPalette)==null?void 0:S.textPrimary)J.colorData={basicColorPaletteData:{foregroundTitleColor:p,borderColor:p}}}return J};
_.R.shouldShowBottomButton=function(p,J){return!(p==null?0:p.header)&&!(p==null||!p.primaryButton)&&J<3};
_.R.checkExpanded=function(p){this.isExpanded=p&&p.content?this.hiddenVideos.length===0:!0};
_.R.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.R.getLogoHeight=function(p){return this.logoWithPadding(p)?"26":"20"};
_.R.getLogoImageId=function(p){return this.logoWithPadding(p)?"logo-image-with-padding":"logo-image"};
_.R.computeHasSectionHeader=function(p){return!!p.header};
_.R.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 J;((J=this.data.dismissButton)==null?0:J.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var S,H;((S=this.data)==null?0:(H=S.primaryButton)==null?0:H.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.R.setVisibleVideos=function(p){if(this.data&&this.data.content)if(this.data.content.length){var J=this.data.content.length;this.data.header?p?(this.visibleVideos=this.data.content.slice(0,Math.min(J,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(J,this.slimItemsPerRow),J)):(this.visibleVideos=this.data.content.slice(0,Math.min(J,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(J,this.elementsPerRow),J)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(J,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(J,this.elementsPerRow),J)):(this.visibleVideos=this.data.content.slice(0,Math.min(J,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(J,this.elementsPerRow-1),J))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.R.setHasMovieRenderer=function(){var p;if((p=this.data)!=null&&p.content){var J;this.hasMovieRenderer=!!_.e((J=this.data)==null?void 0:J.content[0],_.Tb4)}else this.hasMovieRenderer=!1};
_.R.requestElementsPerRow=function(){_.cf(this.hostElement,"yt-request-elements-per-row")};
_.R.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var p=_.K(this.hiddenMediaRenderers),J=p.next();!J.done;J=p.next())J.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(p=_.Jn(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&p.focus()}};
_.R.updateTitleSpec=function(){var p;(p=this.data)!=null&&p.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.R.logoWithPadding=function(p){var J,S,H;return(p=(J=this.getCurrentLogo(p,this.isDarkTheme))==null?void 0:(S=J.thumbnails)==null?void 0:(H=S[0])==null?void 0:H.height)&&p%31===0?!0:!1};
_.R.onUpdateElementsPerRowAction=function(p,J,S){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p);S&&this.slimItemsPerRow!==S&&(this.slimItemsPerRow=S)};
lK.prototype.slimItemsPerRowChanged=lK.prototype.slimItemsPerRowChanged;lK.prototype.elementsPerRowChanged=lK.prototype.elementsPerRowChanged;lK.prototype.dataChanged=lK.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],lK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],lK.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],lK.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],lK.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],lK.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],lK.prototype,"currentColorPalette",void 0);_.V([_.N(),_.Y("design:type",Array)],lK.prototype,"visibleVideos",void 0);_.V([_.N(),_.Y("design:type",Array)],lK.prototype,"hiddenVideos",void 0);
_.V([_.N(),_.Y("design:type",Object)],lK.prototype,"primaryButton",void 0);_.V([_.N({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],lK.prototype,"elementsPerRow",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lK.prototype,"isDarkTheme",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lK.prototype,"isExpanded",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lK.prototype,"largeTitle",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],lK.prototype,"hasMovieRenderer",void 0);_.V([_.N(),_.Y("design:type",Number)],lK.prototype,"slimItemsPerRow",void 0);_.V([_.N(),_.Y("design:type",Boolean)],lK.prototype,"showLightVideoMetadata",void 0);_.V([_.N(),_.Y("design:type",Boolean)],lK.prototype,"showDarkVideoMetadata",void 0);_.V([_.N(),_.Y("design:type",Number)],lK.prototype,"videoMetadataColor",void 0);
_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],lK.prototype,"miniMode",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Y("design:type",Boolean)],lK.prototype,"isFirstFeedItem",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.Y("design:type",Boolean)],lK.prototype,"hasSectionHeader",void 0);
_.V([_.N({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],lK.prototype,"roundedContainer",void 0);_.V([_.v6("#visible-video-container ytd-rich-grid-media"),_.Y("design:type",Array)],lK.prototype,"visibleMediaRenderers",void 0);_.V([_.v6("#hidden-video-container ytd-rich-grid-media"),_.Y("design:type",Array)],lK.prototype,"hiddenMediaRenderers",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],lK.prototype,"modern",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lK.prototype,"dataChanged",null);_.V([_.bO("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lK.prototype,"elementsPerRowChanged",null);_.V([_.bO("slimItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lK.prototype,"slimItemsPerRowChanged",null);
_.V([_.gw({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],lK);
_.l(lK,"ytd-brand-video-shelf-renderer",function(){if(ruG!==void 0)return ruG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ruG=p},{mode:1});var jId;var VR=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.Q(VR,_.T);_.R=VR.prototype;_.R.attached=function(){var p=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",p);this.onDarkModeToggledAction(p)};
_.R.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.R.dataChanged=function(){this.requestElementsPerRow();var p,J;this.currentColorPalette=this.isDarkTheme?(p=this.data)==null?void 0:p.darkColorData:(J=this.data)==null?void 0:J.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.R.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.R.computeIsFirstFeedItem=function(p){return p};
_.R.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())};
_.R.shouldShowThumbnailInMetadata=function(p){return p<=1};
_.R.computeVideoMetadataColor=function(){if(this.data){var p;if((p=this.currentColorPalette)==null?0:p.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.R.computeTitleStyle=function(p){var J;if((J=this.data)!=null&&J.title&&p&&p.textPrimary!==void 0)return"color:"+_.yi(p.textPrimary)+";"};
_.R.computeSubtitleStyle=function(p){var J;if((J=this.data)!=null&&J.subtitle&&p&&p.textSecondary!==void 0)return"color:"+_.yi(p.textSecondary)+";"};
_.R.computeOverflowButtonStyle=function(p){if(this.data&&this.data.overflowButton&&p.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.yi(p.textPrimary)+";--yt-spec-icon-active-other:"+_.yi(p.textPrimary)+";"};
_.R.computeBackgroundStyle=function(p){if(p&&this.data){var J="";p.backgroundColor!==void 0&&(J+="background-color:"+_.Bt(p.backgroundColor)+";");return J}};
_.R.computeHasOverflowButton=function(p){return!!p.overflowButton};
_.R.updateButtonPalette=function(){if(this.data){var p;if((p=this.data.primaryButton)==null?0:p.buttonRenderer){var J;if((J=this.currentColorPalette)==null?0:J.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var S;((S=this.currentColorPalette)==null?0:S.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.R.requestElementsPerRow=function(){_.cf(this.hostElement,"yt-request-elements-per-row")};
_.R.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")};
_.R.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p)};
VR.prototype.elementsPerRowChanged=VR.prototype.elementsPerRowChanged;VR.prototype.dataChanged=VR.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],VR.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],VR.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],VR.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],VR.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],VR.prototype,"currentColorPalette",void 0);_.V([_.N(),_.Y("design:type",Object)],VR.prototype,"primaryButton",void 0);
_.V([_.N({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],VR.prototype,"elementsPerRow",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],VR.prototype,"isDarkTheme",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],VR.prototype,"titleSize",void 0);_.V([_.N(),_.Y("design:type",Number)],VR.prototype,"videoMetadataColor",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],VR.prototype,"miniMode",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Y("design:type",Boolean)],VR.prototype,"isFirstFeedItem",void 0);_.V([_.N({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],VR.prototype,"roundedContainer",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Y("design:type",Boolean)],VR.prototype,"hasOverflowButton",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VR.prototype,"dataChanged",null);_.V([_.bO("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VR.prototype,"elementsPerRowChanged",null);_.V([_.gw({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],VR);
_.l(VR,"ytd-brand-video-singleton-renderer",function(){if(jId!==void 0)return jId;var p=document.createElement("template");_.C(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" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return jId=p},{mode:_.Jz("kevlar_poly_si_batch_j070")?1:2});var wZD;var xDG=_.d(function(p){var J=p.data;return _.m(_.a4,{data:function(){return J().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(J().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var S=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":S=88;break a;default:S=88}return S},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return J().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"fn"),Iru=_.d(function(p){var J=p.metadataRow;
var S=p.delimiter;return _.m(_.dY,{each:function(){return J().textParts||[]},
keyBy:"INDEX"},function(H,M){return _.m(_.fV,null,_.m(_.v3,{text:H,noWrap:!0,userInput:!0}),_.m(cuv,{delimiter:S,max:function(){return J().textParts.length},
index:M}))})},"gn"),cuv=_.d(function(p){var J=p.delimiter;
var S=p.max;var H=p.index;return _.m(_.v,{cond:function(){return(J==null?void 0:J())&&S()-1>H()},
then:function(){return _.m("span",null,J)}})},"hn"),LCq=_.d(function(p){var J=p.data;
p={};return _.m("yt-profile-page-header-information-view-model",{class:_.XB("profilePageHeaderInformationViewModelHost",(p.profilePageHeaderInformationViewModelMobile=!1,p))},_.m(_.v,{cond:function(){return J().onTap},
then:function(){return _.m(_.yD,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.sa(J().onTap)}},_.m(_.AH,{data:function(){return J().thumbnail}},{profilePageHeaderThumbnailViewModel:xDG}))},
else:function(){return _.m("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.m(_.AH,{data:function(){return J().thumbnail}},{profilePageHeaderThumbnailViewModel:xDG}))}}),_.m("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.m(_.v,{cond:function(){return J().onTap},
then:function(){return _.m(_.AH,{data:function(){return J().title}},{profilePageHeaderTitleViewModel:function(S){var H=S.data;
return _.m(_.yD,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.sa(H().onTap)}},_.m(_.v3,{text:function(){return H().title}}))}})},
else:function(){return _.m(_.AH,{data:function(){return J().title}},{profilePageHeaderTitleViewModel:function(S){var H=S.data;
return _.m(_.v3,{text:function(){return H().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.m(_.AH,{data:function(){return J().metadata}},{profilePageHeaderMetadataViewModel:function(S){var H=S.data;
return _.m(_.v,{cond:function(){return H().metadataRows},
then:function(M){return _.m("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.m(_.dY,{each:M,keyBy:"INDEX"},function(X,Z){return _.m(_.fV,null,_.m(Iru,{metadataRow:X,delimiter:" \u2022 "}),_.m(cuv,{delimiter:" \u2022 ",max:function(){return M().length},
index:Z}))}))}})}})))},"jn");
LCq.idomCompat=!0;_.ci(LCq,"yt-profile-page-header-information-view-model",{props:{data:_.fD}});var qh=function(){return _.T.apply(this,arguments)||this};
_.Q(qh,_.T);qh.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qh.prototype,"data",void 0);_.V([_.gw({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],qh);
_.l(qh,"ytd-effect-pivot-header-view-model",function(){if(wZD!==void 0)return wZD;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return wZD=
p},{mode:1});var psy;var ap=function(){return _.T.apply(this,arguments)||this};
_.Q(ap,_.T);ap.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ap.prototype,"data",void 0);_.V([_.gw({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],ap);
_.l(ap,"ytd-source-pivot-header-renderer",function(){if(psy!==void 0)return psy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return psy=p},{mode:1});_.ci(_.lYP,"yt-card-view-model",{props:{data:_.fD,className:_.fD,isSelected:_.fD}});var QI7=_.utU.talkToRecsStateSelector;_.ci(_.d(function(p){var J=function(){return _.e(p.data().flowRoot,UDp)};
_.ad(function(){var S=J(),H=function(){},M=function(){};
if(S){var X,Z,n,b=((n=_.e((X=J())==null?void 0:(Z=X.steps)==null?void 0:Z[0],_.wB))==null?void 0:n.stepId)||"";oFG(S,b);H=WC4(S);M=C0v(S)}_.VY(function(){var F=J();F&&_.rl().dispatch(_.P$("flowStateEntity",F.flowStateEntityKey));H();H=function(){};
M();M=function(){};
_.Y3(_.NGN())})});
return _.m("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.m(_.TK,{contentId:function(){return p.data().contentId}},function(){return _.m("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.m(_.v,{cond:J,
then:function(S){return _.m(_.nty,{data:S})}}))}))},"kn"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.fD}});_.ci(_.d(function(){return _.m("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.m("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.m("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.m(_.IVN,null)),_.m(_.paM,{data:{rows:1},isExploreHub:!0}))},"ln"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.ci(_.d(function(p){var J=p.data;var S=p.standardUnitMinWidth;p=_.K((0,_.MjE)(J));var H=p.next().value,M=p.next().value,X=function(){var n,b=(n=H())==null?void 0:n.contents;return b==null||b.length===0},Z=function(){M(Object.assign({},H(),{contents:[]}))};
return _.m("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.Y2(_.Aw({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var n=_.e(J().chipsShelf,sIT);if(n!=null&&n!=null&&n.autoselectChipOnVisible){var b,F,f=_.e(n==null?void 0:(b=n.contents)==null?void 0:b[(F=n.autoselectedChipIndex)!=null?F:0],_.FY);f&&f.tapCommand&&_.Dm(f.tapCommand)}}}))},_.m(_.TK,{contentId:function(){return J().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.m("div",null,_.m("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.m(_.AH,{data:function(){return J().header}},{sectionHeaderViewModel:function(n){return _.m(_.EP,{data:n.data,
disableHorizontalPadding:!0})}})),_.m("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.m(_.AH,{data:function(){return J().chipsShelf}},{chipsShelfViewModel:function(n){return _.m(_.E6,{data:n.data,
callback:Z,selectionBehavior:1})}})),_.m("div",null,_.m(_.v,{cond:X,
then:function(){return _.m("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.m(_.paM,{data:{rows:1},isExploreHub:!0}))}}),_.m(_.AH,{data:function(){var n;
return(n=H())==null?void 0:n.contents}},{richShelfRenderer:function(n){return _.m(_.Fm8,{data:n.data,
isInnerShelf:!0,standardUnitMinWidth:S})}})))}))},"mn"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.fD,
standardUnitMinWidth:_.fD}});var Em=function(){return _.T.apply(this,arguments)||this};
_.Q(Em,_.T);
Em.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",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
Em.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.V([_.B(_.RB),_.Y("design:type",Object)],Em.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Em.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.$W),_.Y("design:type",Object)],Em.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Em.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Number)],Em.prototype,"standardUnitMinWidth",void 0);_.V([_.gw({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Em);
_.l(Em,"ytd-rich-section-renderer",function(){if(YKd!==void 0)return YKd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return YKd=p},{mode:_.Jz("kevlar_poly_si_batch_j029")?
1:2});_.ci(_.P7N,"yt-profile-identity-info-view-model",{props:{data:_.fD,hideDivider:_.fD,isChannelInfoCard:_.fD}});_.ci(_.GWf,"yt-page-header-view-model",{props:{data:_.fD,noPadding:_.fD,enableBanner:_.fD,cinematicContainerTopbarOffset:_.fD,allowCinematicContainerOverflow:_.fD,displayAsSidebar:_.fD,displayAsPanel:_.fD,alwaysUseMediumTextDescription:_.fD}});_.ci(_.d(function(p){var J=p.data;var S=function(){var M;return(M=J().numColumns)!=null?M:2},H=function(){return S()>1?3:2};
p={};return _.m("ytd-rich-grid-group",{class:_.XB("ytdRichGridGroupHost",(p.ytdRichGridGroupHostFirstColumn=function(){return J().colIndex===0},p)),
style:_.G7({"--ytd-rich-grid-group-num-columns":S,"--ytd-rich-grid-items-per-group":H})},_.m("div",{class:"ytdRichGridGroupContents"},_.m(_.AH,{data:function(){var M;return(M=J().contents)==null?void 0:M.slice(0,H())}},{richItemRenderer:function(M){return _.m(_.b8o,{data:M.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"nn"),"ytd-rich-grid-group",{props:{data:_.fD}});var YM=function(){var p=_.T.apply(this,arguments)||this;p.resizeOnObserverInit=!1;p.isInlinePreviewDisabled=_.z("web_disable_inline_preview");p.disableStickyFilterBar=!1;p.transparentBackgroundChipsBar=!1;p.hideChipsBar=!1;p.collapseFeedCustomizationForm=!1;p.isWatchDefaultLayout=!0;p.continuationShowButton=!1;p.rowReducedHorizontalMargin=!1;p.useCompactList=!1;p.manualDownloadsPresent=!1;p.smartDownloadsPresent=!1;p.isOnline=!1;p.shouldRenderDownloadsBanner=!1;p.shouldRenderDownloadsBannerUpsell=
!1;p.hasOptedIntoSmartDownloads=!1;p.elementsPerRow=4;p.typographyBump=!1;p.slimItemsPerRow=1;p.pageLoadingFromNavigation=!1;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(J){var S=_.K(J);J=S.next().value;S=S.next().value;return[J,S.component]}));
p.insertedContent=new Map;return p};
_.Q(YM,_.T);_.R=YM.prototype;_.R.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var p=_.K(_.Jn(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),J=p.next();!J.done;J=p.next())J.value.useCompactList=this.useCompactList};
_.R.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var p=_.K(_.Jn(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),J=p.next();!J.done;J=p.next())J=J.value,J.sizing=this.sizing,J.typographyBump=this.typographyBump};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.R.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.R.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]",collapseFeedCustomizationForm:"[[collapseFeedCustomizationForm]]"}},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}}};
_.R.attached=function(){document.addEventListener("yt-page-type-changed",_.n3(this,this.onPageChange));document.addEventListener("scroll",_.n3(this,this.onScroll));document.addEventListener("yt-feed-customization-scroll-up",_.n3(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$22542_throttledOnResize=new _.nb(this.resizeObserved,_.PO("rich_grid_resize_delay_ms",50),this)};
_.R.detached=function(){var p;(p=this.resizeObserver)==null||p.disconnect();document.removeEventListener("yt-page-type-changed",_.n3(this,this.onPageChange));document.removeEventListener("scroll",_.n3(this,this.onScroll));document.removeEventListener("yt-feed-customization-scroll-up",_.n3(this,this.onFeedCustomizationScrollUp))};
_.R.insertRichSection=function(p){var J=p.richItemTargetId;p=p.richSectionRendererToInsert;J&&p&&(this.insertedContent.set(J,{content:p,timestamp:Date.now()}),this.reflowContent())};
_.R.computeIsInlinePreviewEnabled=function(p,J,S){return _.z("web_disable_inline_preview")?!1:!S&&_.Wzf({miniplayerIsActive:p,miniplayerPlaybackState:J})};
_.R.computeSizing=function(){var p=_.kDW(this.data);if(p||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return p?this.useCompactList?"COMPACT":p:this.miniMode?"COMPACT":"STANDARD"};
_.R.updateItemMinAndMaxWidth=function(){var p=_.PO("rich_grid_max_item_width",500);p>0&&_.K3(this.hostElement,{"--ytd-rich-grid-item-max-width":p+"px"});var J;p=this.getRichItemMinWidth((J=this.hostElement)==null?void 0:J.clientWidth);p>0&&_.K3(this.hostElement,{"--ytd-rich-grid-item-min-width":p+"px"})};
_.R.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.R.resizeObserved=function(){_.L1(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.R.onPageChange=function(){var p=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.L1(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.wg.addJob(function(){p.pageLoadingFromNavigation=!1;p.setMasthead();p.maybeSetBigYoodle();p.forceRefreshAndLog();p.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.R.dataChanged=function(){var p=this;_.L1(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.mN(this,function(){p.updateRichItemGridPositions();p.contentsElement&&_.K3(p.hostElement,{"--ytd-rich-grid-content-offset-top":p.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.R.initResizeObserver=function(){var p=this;if(window.ResizeObserver){var J;(J=this.resizeObserver)==null||J.disconnect();var S=!1;this.resizeObserver=new ResizeObserver(function(){if(S){var H;(H=p.resizeObserver)==null||H.disconnect();var M;(M=p.JSC$22542_throttledOnResize)==null||M.fire();requestAnimationFrame(function(){var Z;(Z=p.JSC$22542_throttledOnResize)==null||Z.fire();p.initResizeObserver()})}else if(S=!0,p.resizeOnObserverInit){var X;
(X=p.JSC$22542_throttledOnResize)==null||X.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.R.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.L1(this.hostElement,"ytd-rich-item-index-update-action")};
_.R.updateElementsPerRow=function(){_.L1(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Jk({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Jk({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.R.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.R.onRichShelfRendererCollapse=function(p){if(this.shownItems){var J=p.detail;p=this.shownItems.findIndex(function(H){var M,X;return((X=_.e(H==null?void 0:(M=H.richSectionRenderer)==null?void 0:M.content,_.BLE))==null?void 0:X.trackingParams)===J});
var S=p+1;p<0||S>=this.contentsElement.children.length||!this.shownItems[S].richItemRenderer||this.contentsElement.children[S].scrollIntoView({behavior:"smooth",block:"start"})}};
_.R.onSoftReloadPage=function(){this.scrollUpToTop()};
_.R.handleRerenderDownloadsData=function(){_.z("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.R.handlePlaylistRemoveVideosAction=function(p){var J;if(((J=_.e(p,_.Y28))==null?0:J.setVideoIds)&&this.data&&this.data.contents){p=_.e(p,_.Y28).setVideoIds;for(J=this.data.contents.length-1;J>=0;){var S=_.e(this.data.contents[J],_.j3);(S=S&&_.e(S.content,_.Rl))&&S.setVideoId&&p.includes(S.setVideoId)&&this.splice("data.contents",J,1);J--}this.updateIndices()}};
_.R.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",_.aR(String(p+1)))};
_.R.hasTopRowInlinePlayableVideoWithEndorsement=function(p){var J;return!((J=p.slice(0,this.getItemsPerRow()))==null||!J.some(function(S){var H;S=_.e(S==null?void 0:(H=S.richItemRenderer)==null?void 0:H.content,_.GZ);var M;return(S==null?void 0:S.inlinePlaybackEndpoint)&&(S==null?void 0:(M=S.thumbnailOverlays)==null?void 0:M.some(function(X){return X.thumbnailOverlayEndorsementRenderer}))}))};
_.R.refreshGridLayoutNew=function(p,J,S,H){var M=H.postsPerRow;var X=H.slimItemsPerRow;var Z=H.gameCardsPerRow;H=H.miniGameCardsPerRow;var n;if((n=this.data)==null||!n.contents||!this.containerWidth)return!1;var b;if((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize){var F=_.f_w(this.data.responsiveContainerConfiguration,this.containerWidth,2),f;n=_.N6(Object.assign({},F,{standardUnitMinWidth:(f=this.data)==null?void 0:f.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&F.isCompactList)}else n=_.N6({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(F=this.data)==null?void 0:F.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=n.typographyBump;f=!1;if(p||this.elementsPerRow!==n.numItems||this.postsPerRow!==M||this.slimItemsPerRow!==X||this.gameCardsPerRow!==
Z||this.miniGameCardsPerRow!==H||this.gutter!==n.gutter)f=this.elementsPerRow!==n.numItems,this.elementsPerRow=n.numItems,this.postsPerRow=M,this.slimItemsPerRow=X,this.gameCardsPerRow=Z,this.miniGameCardsPerRow=H,this.gutter=n.gutter,this.itemWidth=n.itemWidth,this.reflowContent(J),_.K3(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":n.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(S);this.ytdReduxBehavior.dispatch(_.Jk({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:n.maxContainerWidth}));return f};
_.R.refreshGridLayout=function(p,J){var S,H=(S=this.hostElement)==null?void 0:S.clientWidth;this.containerWidth=this.adjustRichGridWidth(H,!0);var M;if((M=this.data)==null||!M.contents||!this.containerWidth)return p&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(p=!0,this.pendingForceReflow=!1);S=this.getRichItemMinWidth(H);var X=this.isShortsPanel?146:194,Z=this.getMiniGameCardMinWidth(),n=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.PO("rich_grid_default_max_items_per_row",
6);H=S=this.calcElementsPerRow(S,n);(M=S<=3&&this.miniModeAllowed())&&(S=this.calcElementsPerRow(240,4));var b=this.calcMaxSlimElementsPerRow(S,n,this.isDefaultGrid);n=this.calcElementsPerRow(X,b);var F=this.calcElementsPerRow(this.isCompactGrid?X:154,b);X=this.calcElementsPerRow(this.isCompactGrid?X:Z,b);Z=!1;if(this.sizing)return this.refreshGridLayoutNew(p,J,M,{postsPerRow:H,slimItemsPerRow:n,gameCardsPerRow:F,miniGameCardsPerRow:X});if(p||this.elementsPerRow!==S||this.postsPerRow!==H||this.slimItemsPerRow!==
n||this.gameCardsPerRow!==F||this.miniGameCardsPerRow!==X)Z=this.elementsPerRow!==S,this.elementsPerRow=S,this.postsPerRow=H,this.slimItemsPerRow=n,this.gameCardsPerRow=F,this.miniGameCardsPerRow=X,this.reflowContent(J),this.updateElementsPerRow(),_.K3(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)&&_.K3(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(M);_.L1(this.hostElement,"yt-rich-grid-layout-refreshed");return Z};
_.R.getRichItemMinWidth=function(p){var J=_.PO("rich_grid_min_item_width",310);if(!_.z("kevlar_disable_min_width_override")){var S,H;J=(H=(S=this.data)==null?void 0:S.minItemWidth)!=null?H:J}return J+_.UNX(p)};
_.R.calcMaxSlimElementsPerRow=function(p,J,S){return(S===void 0?0:S)?p===1?2:p%2===0?p/2*3:p+2:J*2};
_.R.adjustRichGridWidth=function(p,J){var S=_.z("disable_rich_grid_guide_compensation");if(!this.isWatch&&!S){S=_.vO().resolve(_.F9(_.bA));var H=S==null?void 0:S.guideElement;if(!(!S||S.getData()||H!=null&&H.opened||S.getMiniGuideVisible()))if(S.canFitPersistentGuide(p)&&S.getGuideExpandsAutomatically()){var M,X,Z=Number((M=window.getComputedStyle(this.hostElement))==null?void 0:(X=M.getPropertyValue("--app-drawer-width"))==null?void 0:X.replace("px",""));p-=Z||0}else if(S.canFitMiniGuide(p)){var n;
M=Number((Z=window.getComputedStyle(this.hostElement))==null?void 0:(n=Z.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:n.replace("px",""));p-=M||0}}p>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(p-=J?32:48));return p};
_.R.calcElementsPerRow=function(p,J){var S=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),H=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((S+H)/(p+H))||1,J)};
_.R.reflowContent=function(p){var J=this;if(!this.isReflowing){this.isReflowing=!0;var S,H,M=!!((S=this.data)==null?0:(H=S.contents)==null?0:H.some(function(n){return _.e(n,_.js)}));
S=this.getItemsPerRow();var X;H=(X=this.data)==null?void 0:X.reflowOptions;p&&(_.Qf("rgr_s"),_.mN(this,function(){_.Qf("rgr_nrf")}));
p={};(X=_.Jn(this.hostElement).querySelector("#contents"))&&(p={contentElement:X,rendererToTagNameMap:this.rendererToTagNameMap});X=(X=this.data.contents)?X.slice():[];M=P0t(X,S,M,H,this.getRichGridStyle(),p,this.insertedContent);var Z=M.orderedContent;if(M=M.pinnedContentNotShownTargetIds)for(M=_.K(M),S=M.next();!S.done;S=M.next())this.insertedContent.delete(S.value);M=function(){J.shownItems=Z;J.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(Z),_.mN(this,M)):M()}};
_.R.getFirstRowItems=function(p){for(var J=[],S=0;S<p.length;S++){var H=void 0,M=void 0,X=void 0,Z=void 0,n=void 0,b=void 0;if(((H=p[S])==null?void 0:(M=H.richItemRenderer)==null?void 0:M.rowIndex)===0||((X=p[S])==null?void 0:(Z=X.richGroupRenderer)==null?void 0:Z.rowIndex)===0||((n=p[S])==null?void 0:(b=n.richSectionRenderer)==null?void 0:b.rowIndex)===0)J.push(p[S]);else break}return J};
_.R.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.R.resetInsertedContentIfNeeded=function(){(_.z("web_explore_hub_on_hover")||_.z("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.R.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.R.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.R.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.R.terminateVideoPreview=function(){_.L1(this.hostElement,"yt-terminate-video-preview-action")};
_.R.updateRichItemGridPositions=function(){var p={gridData:{gridColumnCount:this.elementsPerRow}},J;((J=this.data)==null?0:J.trackingParams)&&(J=_.C1())&&_.qq(J,_.Az(this.data.trackingParams),p);_.L1(this.hostElement,"ytd-rich-item-index-update-action")};
_.R.miniModeAllowed=function(){return this.isChannelPage};
_.R.getMiniGameCardMinWidth=function(){return 154};
_.R.updateMiniMode=function(p){this.miniMode=this.miniModeAllowed()&&p;this.ytdReduxBehavior.dispatch(_.Jk({type:"SET_RICH_GRID_MINI_MODE",payload:p}))};
_.R.isCurrentPage=function(){return location.pathname===this.pagePath};
_.R.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var p=_.vO().resolve(_.xz).getCurrentPage();p&&p.setScrollTop(0)}};
_.R.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.R.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.R.maybeSetBigYoodle=function(){var p,J=(p=this.data)==null?void 0:p.bigYoodle;this.bigYoodleData!==J&&(this.bigYoodleData=J)};
_.R.setMasthead=function(){var p;((p=this.data)==null?0:p.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.R.getRichGridStyle=function(){var p,J;return(J=(p=this.data)==null?void 0:p.style)!=null?J:"RICH_GRID_STYLE_UNKNOWN"};
_.R.onIsShortsGridChange=function(){var p=this.ytdReduxBehavior,J=p.dispatch,S=this.getRichGridStyle();J.call(p,_.Jk({type:"SET_RICH_GRID_STYLE",payload:S}))};
_.R.onScroll=function(){this.collapseFeedCustomizationForm=window.scrollY>20};
_.R.onFeedCustomizationScrollUp=function(){this.collapseFeedCustomizationForm=!1;this.scrollUpToTop()};
_.vh.Object.defineProperties(YM.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=_.vO().resolve(_.xz).getCurrentPage(),J,S,H;return(((J=this.data)==null?void 0:J.targetId)==="browse-feedFEsfv_audio_pivot"||_.z("web_enable_channel_pivot_panel")&&((S=this.data)==null?void 0:S.targetId)==="browse-feedFEsfv_channel_pivot"||_.z("web_enable_effect_pivot_panel")&&((H=this.data)==null?void 0:H.targetId)==="browse-feedFEsfv_effect_pivot")&&(p==null?void 0:p.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.z("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=_.vO().resolve(_.xz).getCurrentPage())==null?void 0:p.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var p;return((p=_.vO().resolve(_.xz).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"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return((p=this.data)==null?0:p.enableContentSpecificAspectRatio)||((J=this.data)==null?0:(S=J.responsiveContainerConfiguration)==null?0:S.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.PO("web_continuation_handler_margin",0):0}}});
YM.prototype.onIsShortsGridChange=YM.prototype.onIsShortsGridChange;YM.prototype.onReloadContinuationFinish=YM.prototype.onReloadContinuationFinish;YM.prototype.reflowContent=YM.prototype.reflowContent;YM.prototype.handleRerenderDownloadsData=YM.prototype.handleRerenderDownloadsData;YM.prototype.onRichShelfRendererCollapse=YM.prototype.onRichShelfRendererCollapse;YM.prototype.onRequestElementsPerRow=YM.prototype.onRequestElementsPerRow;YM.prototype.contentLengthChanged=YM.prototype.contentLengthChanged;
YM.prototype.dataChanged=YM.prototype.dataChanged;YM.prototype.onSizingChange=YM.prototype.onSizingChange;YM.prototype.onUseCompactListChange=YM.prototype.onUseCompactListChange;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],YM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.wL),_.Y("design:type",Object)],YM.prototype,"ironResizableBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],YM.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.$W),_.Y("design:type",Object)],YM.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],YM.prototype,"componentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],YM.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],YM.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],YM.prototype,"miniMode",void 0);_.V([_.N({value:[]}),_.Y("design:type",Array)],YM.prototype,"shownItems",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],YM.prototype,"isReflowing",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],YM.prototype,"isFilteredFeed",void 0);_.V([_.N({selector:_.yL3}),_.Y("design:type",Boolean)],YM.prototype,"guideIsExpanded",void 0);
_.V([_.N({selectorArgs:["entitySelectorType"],selector:function(p,J){if(_.z("kevlar_modern_downloads_page")&&J&&J!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(J){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":J=p.entities;var S=_.ex(J),H=_.Wq(J),M=_.YZ3(p),X=_.ENw(p),Z=_.rLi(p),n=_.ODw(J),b=_.O4(S),F=_.Qc(J);return _.ZmX(S,H,n,_.$ak(J),M,X,b,F,Z,_.w3W(p),_.s4(p));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return p=_.ex(p.entities),_.GP4(p);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return p=
_.FUX(p.entities),_.bmX(p);default:_.xQ(new _.TG("Error: entitySelectorType defined but not matched in selector.",p,J))}}}),
_.Y("design:type",Object)],YM.prototype,"entityDrivenRichGridData",void 0);_.V([_.N(),_.Y("design:type",Object)],YM.prototype,"resizeOnObserverInit",void 0);_.V([_.N(),_.Y("design:type",Object)],YM.prototype,"bigYoodleData",void 0);_.V([_.N(),_.Y("design:type",Object)],YM.prototype,"mastheadData",void 0);_.V([_.N(),_.Y("design:type",Boolean)],YM.prototype,"isInlinePreviewDisabled",void 0);_.V([_.N(),_.Y("design:type",Object)],YM.prototype,"disableStickyFilterBar",void 0);
_.V([_.N(),_.Y("design:type",Object)],YM.prototype,"transparentBackgroundChipsBar",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YM.prototype,"hideChipsBar",void 0);_.V([_.N(),_.Y("design:type",Object)],YM.prototype,"collapseFeedCustomizationForm",void 0);_.V([_.N(),_.Y("design:type",Object)],YM.prototype,"isWatchDefaultLayout",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YM.prototype,"continuationShowButton",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YM.prototype,"rowReducedHorizontalMargin",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YM.prototype,"useCompactList",void 0);_.V([_.N({selector:function(p){return _.Wq(p.entities).length>0}}),
_.Y("design:type",Object)],YM.prototype,"manualDownloadsPresent",void 0);_.V([_.N({selector:function(p){return _.ex(p.entities).length>0}}),
_.Y("design:type",Object)],YM.prototype,"smartDownloadsPresent",void 0);_.V([_.N({selector:_.s4}),_.Y("design:type",Object)],YM.prototype,"isOnline",void 0);_.V([_.N({selector:_.ENw}),_.Y("design:type",Object)],YM.prototype,"shouldRenderDownloadsBanner",void 0);_.V([_.N({selector:_.w3W}),_.Y("design:type",Object)],YM.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.V([_.N({selector:_.YZ3}),_.Y("design:type",Object)],YM.prototype,"hasOptedIntoSmartDownloads",void 0);
_.V([_.bO("useCompactList"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YM.prototype,"onUseCompactListChange",null);_.V([_.bO("sizing","typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YM.prototype,"onSizingChange",null);_.V([_.N({selector:_.hgi}),_.Y("design:type",Number)],YM.prototype,"miniplayerPlaybackState",void 0);_.V([_.N({selector:_.Bq}),_.Y("design:type",Boolean)],YM.prototype,"miniplayerIsActive",void 0);
_.V([_.N({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Y("design:type",Boolean)],YM.prototype,"isInlinePreviewEnabled",void 0);_.V([_.N({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.Y("design:type",String)],YM.prototype,"sizing",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],YM.prototype,"elementsPerRow",void 0);
_.V([_.N(),_.Y("design:type",Object)],YM.prototype,"typographyBump",void 0);_.V([_.N(),_.Y("design:type",Number)],YM.prototype,"itemWidth",void 0);_.V([_.FM("#header"),_.Y("design:type",HTMLElement)],YM.prototype,"headerElement",void 0);_.V([_.FM("#contents"),_.Y("design:type",HTMLElement)],YM.prototype,"contentsElement",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YM.prototype,"dataChanged",null);
_.V([_.An("data.contents.length"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YM.prototype,"contentLengthChanged",null);_.V([_.GI("yt-request-elements-per-row"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YM.prototype,"onRequestElementsPerRow",null);
_.V([_.GI("yt-rich-shelf-renderer-collapse"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],YM.prototype,"onRichShelfRendererCollapse",null);_.V([_.An("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YM.prototype,"handleRerenderDownloadsData",null);
_.V([_.U("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],YM.prototype,"entitySelectorType",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"isSub",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"isWatch",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"isShortsPanel",null);_.V([_.N({reflectToAttribute:!0}),_.U("isWatch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"reducedTopMargin",null);_.V([_.N({reflectToAttribute:!0}),_.U("data","isWatch","isWatchDefaultLayout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"noTopMargin",null);
_.V([_.N({reflectToAttribute:!0}),_.U("isInlinePreviewEnabled","shownItems"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"topRowEndorsement",null);_.V([_.U("data.header"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"hideHeader",null);_.V([_.GI("yt-rich-grid-reflow"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],YM.prototype,"reflowContent",null);
_.V([_.GI("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YM.prototype,"onReloadContinuationFinish",null);_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"isSlimGrid",null);_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"isShortsGrid",null);
_.V([_.U("data","isSlimGrid","isShortsGrid"),_.N(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"noRichItemGutterMargins",null);_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"isShortsGridSlim",null);_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"isCompactGrid",null);
_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"isDefaultGrid",null);_.V([_.U("data.targetId"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"hideChipsBarOnWatch",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YM.prototype,"onIsShortsGridChange",null);
_.V([_.U("data.enableContentSpecificAspectRatio"),_.N(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YM.prototype,"force16By9ThumbnailAspectRatio",null);_.V([_.U("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],YM.prototype,"continuationTriggerOffset",null);_.V([_.gw({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],YM);
_.l(YM,"ytd-rich-grid-renderer",function(){if(V0a!==void 0)return V0a;var p=document.createElement("template");_.C(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="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return V0a=p},{mode:2});var JyG=_.d(function(p){return _.m("yt-feedback-prompt-view-model",{class:_.XB("ytFeedbackPromptViewModelHost",p.className)},_.m(_.v,{cond:function(){return p.data().text},
then:function(J){return _.m(_.v3,{text:J,className:"ytFeedbackPromptViewModelPrompt"})}}),_.m(_.AH,{data:function(){return p.data().likeButton}},{likeButtonViewModel:function(J){return _.m(_.nB,{data:J.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.m(_.AH,{data:function(){return p.data().dislikeButton}},{dislikeButtonViewModel:_.Zh}))},"on");var S9u=_.d(function(p){var J=_.K((0,_.Rzp)(p.data)).next().value,S=function(){var H,M;return(M=(H=J().contents)==null?void 0:H.length)!=null?M:0};
return _.m("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return p.data().targetId||""},
"aria-busy":function(){var H,M;return(M=(H=J().contents)==null?void 0:H.some(function(X){return!!X.chatLoadingViewModel}))!=null?M:!1}},_.m(_.AH,{data:function(){return p.data().header}},{chipBarViewModel:_.KaU,
sectionHeaderViewModel:_.EP}),_.m(_.AH,{data:function(){return J().contents}},{accordionViewModel:_.rN8,
alertBannerViewModel:_.v18,chatLoadingViewModel:function(H,M){return _.m(_.iIP,{data:H.data,containerHeight:p.containerHeight,isLastItem:function(){return M()===S()-1}})},
chatUserTurnViewModel:function(H,M){return _.m(_.Xir,{data:H.data,containerHeight:p.containerHeight,isLastItem:function(){return M()===S()-1}})},
feedbackPromptViewModel:JyG,gridShelfViewModel:function(H){return _.m(_.bd,{data:H.data,shouldUseOwnContainerSize:!0,marginSettings:p.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.uwM,linearLayoutViewModel:_.OY,lockupViewModel:function(H){return _.m(_.Vy,{data:H.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:p.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.EP,videoOverviewViewModel:_.SiP,youChatItemViewModel:function(H,M){return _.m(_.Mrj,{data:H.data,pending:!1,containerHeight:p.containerHeight,isLastItem:function(){return M()===S()-1}})}}))},"pn");_.ci(_.d(function(p){var J=_.K((0,_.Rzp)(p.data)).next().value,S=_.K(_.AX()),H=S.next().value;S=S.next().value;var M=_.Y2(S);S=_.K(_.eQ(void 0,void 0,"fqbUqd"));var X=S.next().value,Z=S.next().value,n=function(){var b;return _.e((b=p.data().sectionListLayoutConfiguration)==null?void 0:b.layoutConfiguration,gF4)};
_.ad(function(){var b,F=(b=M.value)==null?void 0:b.clientWidth;b=n()?_.I_i(F,n()):void 0;Z(b)});
S={};return _.m("yt-section-list-renderer",{class:_.XB("ytSectionListRendererHost",p.className,(S.ytSectionListRendererHostOverscrollContain=function(){var b;return(b=p.overscrollContain)==null?void 0:b.call(p)},S)),
el:M,"data-target-id":function(){return p.data().targetId||""}},_.m(_.AH,{data:function(){return J().contents}},{itemSectionRenderer:function(b){return _.m(S9u,{data:b.data,
containerLayoutConfig:X,marginSettings:p.marginSettings,containerHeight:function(){return H.height()}})}}))},"qn"),"yt-section-list-renderer",{props:{data:_.fD,
className:_.jr,marginSettings:_.fD,overscrollContain:_.fD}});var HAt;var M6a;var XsG=function(){return _.T.apply(this,arguments)||this};
_.Q(XsG,_.T);_.V([_.N(),_.Y("design:type",Object)],XsG.prototype,"data",void 0);_.V([_.sD({is:"yt-alert-renderer",disableElementRegistration:!0})],XsG);
_.l(XsG,"yt-alert-renderer",function(){if(M6a===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;HAt===void 0&&(HAt=document.createElement("template"));var H=HAt;S.call(J,H.content.cloneNode(!0),p.content.firstChild);M6a=p}p=M6a;return p},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Now;Now=function(p,J,S,H){S||(p?H&&(H.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||H.WINDOW_SIZE_CHANGED&&(J.width!==window.innerWidth||J.height!==window.innerHeight)||H.SAFARI_ABORTED_BY_NEW_TRANSITION&&p instanceof DOMException&&p.name==="AbortError"&&p.message.includes("Old view transition aborted by new view transition"))||_.jD(p):_.jD(Error("wj")))};
_.Tor=function(p,J){J=J===void 0?{}:J;var S,H,M,X,Z,n,b,F,f,O,A,P,W;return _.G(function(y){switch(y.nextAddress){case 1:S=J;H=S.shouldWrap===void 0?!0:S.shouldWrap;M=S.skipTransitionTimeoutMs===void 0?300:S.skipTransitionTimeoutMs;X=S.beforeTransition;Z=S.afterTransition;if(!H||!document.startViewTransition||document.visibilityState==="hidden")return y.return(p());n={width:window.innerWidth,height:window.innerHeight};b=!1;(F=X)==null||F();_.oI(y,2);f=document.startViewTransition(p);O=setTimeout(function(){f.skipTransition();
b=!0},M);
return y.yield(f.ready,4);case 4:return clearTimeout(O),y.yield(f.finished,5);case 5:clearTimeout(O);(A=Z)==null||A();_.X$(y,0);break;case 2:P=_.BZ(y),(W=Z)==null||W(),Now(P,n,b,J.ignoredErrors),_.UK(y)}})};
_.dcP=function(p,J){var S=_.nFi(J);S!=="javascript:"&&S!=="data:"&&p.setAttribute("href",J)};
_.cn=function(){for(var p=Array(36),J=0,S,H=0;H<36;H++)H==8||H==13||H==18||H==23?p[H]="-":H==14?p[H]="4":(J<=2&&(J=33554432+Math.random()*16777216|0),S=J&15,J>>=4,p[H]=_.Er9[H==19?S&3|8:S]);return p.join("")};
_.uVM=function(p,J,S){p.persistentPanelContainerMap.set(S,J)};/*

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 lcM=_.YI(['<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>']),
VSP=_.YDE(lcM);VSP.setAttribute("style","display: none;");document.head.appendChild(VSP.content);_.Ik=_.F$w(function(p){var J=_.Q0("DIV");p&&(J.className=p);J.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";p=_.Q0("DIV");_.q9q(p,"200px","200px");J.appendChild(p);document.body.appendChild(J);p=J.offsetWidth-J.clientWidth;_.CC(J);return p});var qrN;var acw;var L2=function(){var p=_.T.apply(this,arguments)||this;p.icon=null;return p};
_.Q(L2,_.T);L2.prototype.dismiss=function(){_.cf(this.hostElement,"yt-live-chat-error-message-dismiss")};
L2.prototype.computeIcon=function(p){return p&&p.iconType?"yt-icons:"+p.iconType.toLowerCase():"yt-icons:close"};
_.V([_.N(),_.Y("design:type",Object)],L2.prototype,"data",void 0);_.V([_.N({computed:"computeIcon(data.icon)"}),_.Y("design:type",Object)],L2.prototype,"icon",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],L2);
_.l(L2,"yt-live-chat-error-message-renderer",function(){if(acw===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;qrN===void 0&&(qrN=document.createElement("template"));var H=qrN;S.call(J,H.content.cloneNode(!0),p.content.firstChild);acw=p}p=acw;return p},{mode:0});
}catch(e){_._DumpException(e)}
try{
var Qya,Ch4,yls,B1p,gap,DVG,kGs,N1u,T1G,dV7,u9a,lLs,VBd,s$,qvD,aL7,Eat,Yvt,rlp,jyu,wOG,xVs,cld,Ldv,pBv,JqG,S34,HOy,M9u,XBq,iO4,R2q,K$d,ZO4,n_d,Gxt,bOD,m1a,fkq,Aq4,z2T,$1D,o_s,e2v,F$v,v_4,C4q,yq4,Bgy,U1G,s6p,g_s,t9s,h27,W$d;Qya=function(p,J){return _.RR(p.entities,"timedMarkersListSyncEntity",J)};
Ch4=function(p,J){return _.RR(p.entities,"liveReactionsDataEntity",J)};
yls=function(p,J){p=_.RR(p.entities,"booleanEntity",J);return!(!p||!p.value)};
B1p=function(p,J){var S=_.C1();S&&p&&_.kO(S,_.Az(p),J)};
_.UVD=function(p){return p.watch.isWatchActive};
_.syy=function(p){return!_.SxW(p)};
_.U$=function(p){return p.watch.watchScrollTop};
gap=function(p){return p.watch.isLiveChatCollapsed};
_.tBy=function(){_.z("web_watch_log_theater_mode")&&_.Qz3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.hXq=function(p,J,S){if(!p.includes("START_TIME_PLACEHOLDER")||!p.includes("END_TIME_PLACEHOLDER"))return p;var H=new Date(0),M=new Date(0);H.setUTCMilliseconds(J);M.setUTCMilliseconds(S);return p.replace("START_TIME_PLACEHOLDER",_.lo(H,7)).replace("END_TIME_PLACEHOLDER",_.lo(M,7))};
DVG=function(p){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:p}}]}}}};
kGs=function(p,J,S){var H=_.z("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;J=Object.assign({},{text:J,hasGradientBackground:S},H&&{itemTargetId:H});H=_.z("web_enable_chat_autoscroll_to_user_turn")&&H?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:H,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:J}],insertByPositionInSection:{sectionTargetId:p,
position:"INSERTION_POSITION_LAST"}}}]},H?{scrollConfig:H}:{})}}};
N1u=function(p,J){return _.RR(p.entities,"booleanEntity",J)};
T1G=function(){return function(p){_.Y3(_.P$("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:p}))}};
dV7=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}};
u9a=function(p,J,S){var H=_.sa(S);p&&J&&H&&p.getPlayerPromise().then(function(M){_.UxX(H)&&_.rf();(new _.MH(M)).executeCommand(H,J);_.z("continue_playback_on_desktop_companion_click")||M.pauseVideo()})};
lLs=function(p){var J=_.IY(),S;if(S=_.Id("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;S=(H=S())==null?void 0:H.layoutId}else S=null;u9a(J,S,p)};
VBd=function(p){var J=_.IY(),S;if(S=_.Id("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;S=(H=S())==null?void 0:H.layoutId}else S=null;u9a(J,S,p)};
s$=function(p,J){var S=p<0?"-":"";p=Math.abs(p);var H=Math.floor(p/3600),M=Math.floor(p)%3600,X=Math.floor(M/60);M=Math.floor(M)%60;var Z="";(J===void 0?0:J)&&(Z="."+Math.round((p-Math.floor(p))*10));return H>0?S+H+":"+(X<10?"0"+X:""+X)+":"+(M<10?"0"+M:""+M)+Z:S+X+":"+(M<10?"0"+M:""+M)+Z};
qvD=function(p){var J=p.match(/[^0-9:\.]/g);if(J&&J.length>0)return null;p=p.split(":");if(p.length===0||p.length>3)return null;J=1;for(var S=0;p.length>0;){var H=p.pop();if(H===void 0)break;var M=Number(H);if(H===""||isNaN(M))return null;S+=M*J;J*=60}return S};
aL7=function(p,J,S,H){p=Math.max(S,p);J=Math.min(J,H-S);p+J>H?(S=H,p=S-J):S=p+J;return{start:p,end:S}};
Eat=function(p,J,S,H,M,X){p<S?p=S:p+M>H&&(p=H-M);J>H&&(J=H);J=Math.min(p+X,Math.max(p+M,J));return{start:p,end:J}};
Yvt=function(p,J,S,H,M,X){J>H?J=H:J-M<S&&(J=S+M);p<S&&(p=S);p=Math.min(J-M,Math.max(J-X,p));return{start:p,end:J}};
rlp=function(p){return _.z("web_transcript_cue_id_killswitch")?String(p):"ytd-transcript-renderer_"+p};
jyu=function(p){return _.z("web_transcript_cue_id_killswitch")?!0:p.startsWith("ytd-transcript-renderer")};
wOG=function(p){var J=_.IY(),S;if(S=_.Id("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;S=(H=S())==null?void 0:H.layoutId}else S=null;u9a(J,S,p)};
xVs=function(p){p.style.height="auto";p.style.height=Math.min(p.scrollHeight||20,80)+"px"};
cld=function(){var p;return String(Math.floor(((p=_.nG())==null?void 0:p.getCurrentTime())||0)*1E3)};
Ldv=function(p){if(p.onWelcomeCommand)return _.sa(p.onWelcomeCommand);p=_.e(p.inputComposerViewModel,ILG);if(p==null?0:p.welcomeFeatureContinuation)return _.aVU(p.welcomeFeatureContinuation)};
pBv=function(p){var J=_.IY(),S;S=(S=_.Id("yt.www.ads.eventcache.getLastCompanionData"))?(S=S())&&S.layoutId:null;u9a(J,S,p)};
JqG=function(p){var J=_.IY(),S;S=(S=_.Id("yt.www.ads.eventcache.getLastCompanionData"))?(S=S())&&S.layoutId:null;u9a(J,S,p)};
S34=function(p){if(p.simpleText)return[{text:p.simpleText}];var J;return(J=p.runs)!=null?J:[]};
HOy=function(p){var J=p.startEndTimeTemplate,S=p.startTimeUtcMillis;p=p.endTimeUtcMillis;if(J&&S&&p)return _.aR(_.hXq(_.E4(J),Number(S),Number(p)))};
M9u=function(p,J){var S,H,M=p==null?void 0:(S=p.viewCount)==null?void 0:(H=S.videoViewCountRenderer)==null?void 0:H.shortViewCount;if(!J&&M)return M;var X,Z;return p==null?void 0:(X=p.viewCount)==null?void 0:(Z=X.videoViewCountRenderer)==null?void 0:Z.viewCount};
XBq=function(p,J){var S=p==null?void 0:p.relativeDateText;return!J&&S?[S,!0]:[p==null?void 0:p.dateText,!1]};
iO4=function(p,J,S,H,M){H=H===void 0?"":H;M=M===void 0?!1:M;var X=M9u(p,J),Z=_.K(XBq(p,J)),n=Z.next().value;Z=Z.next().value;J=J?p==null?void 0:p.sponsorsOnlyFirstTimeLongText:p==null?void 0:p.sponsorsOnlyFirstTimeShortText;var b=[];S&&X&&b.push(X);!S&&Z||!n||b.push(n);p=[M?p==null?void 0:p.subtitle:void 0].concat(_.dW(b),[J,p==null?void 0:p.stationName,p==null?void 0:p.rating,p?HOy(p):void 0,p==null?void 0:p.upNextProgramText,p==null?void 0:p.superTitleLink]).filter(function(F){return!!F});
S={runs:[]};for(M=0;M<p.length;M++)S.runs.push.apply(S.runs,_.dW(S34(p[M]))),M<p.length-1&&S.runs.push({text:" "+H+" "});return S};
R2q=function(p){return p.filter(function(J){return!_.e(J,_.Nk)})};
K$d=function(p){var J,S,H,M;if(p=p==null?void 0:(J=p.contents)==null?void 0:(S=J.twoColumnWatchNextResults)==null?void 0:(H=S.results)==null?void 0:(M=H.results)==null?void 0:M.contents){var X,Z;return(Z=(X=p.find(function(n){return!!n.videoPrimaryInfoRenderer}))==null?void 0:X.videoPrimaryInfoRenderer)==null?void 0:Z.updatedMetadataEndpoint}};
ZO4=function(p,J){var S;return(S=p.sourceConfigs)==null?void 0:S.find(function(H){return H.videoId===J})};
n_d=function(p){return p==="End of video"||p==="End of playlist"};
Gxt=function(p){var J,S,H,M;return(J=p.getWatchNextResponse())==null?void 0:(S=J.contents)==null?void 0:(H=S.twoColumnWatchNextResults)==null?void 0:(M=H.playlist)==null?void 0:M.playlist};
bOD=function(p){var J,S,H,M,X,Z;return(J=Gxt(p))==null?void 0:(S=J.playlistButtons)==null?void 0:(H=S.menuRenderer)==null?void 0:(M=H.topLevelButtons)==null?void 0:(X=M[0])==null?void 0:(Z=X.playlistLoopButtonRenderer)==null?void 0:Z.playlistLoopStateEntityKey};
m1a=function(p){var J=_.vO().resolve(_.FF),S;return(J=(S=_.e(J.getAutoplayEndpoint(),_.lj))==null?void 0:S.playlistId)&&J===p};
fkq=function(p,J,S,H,M){function X(){_.wg.cancelJob(gt);var Z=F$v(J,S/p.getPlaybackRate()),n=Z.hours,b=Z.minutes;Z=(Z.seconds*1E3||6E4)/p.getPlaybackRate();p.setVideoTimeLeft(v_4(n,b));H&&p.getPlayerState()!==0&&p.setSleepTimerTimeLeft(v_4(n,b,!0));(n>0||b>0)&&!M&&(gt=_.oA(_.wg,X,Z))}
_.wg.cancelJob(gt);gt=_.oA(_.wg,X)};
Aq4=function(p,J,S){function H(){_.wg.cancelJob(OOt);var M=F$v(J,S),X=M.hours;M=M.minutes;var Z=6E4/p.getPlaybackRate();if(X>0||M>0)p.setSleepTimerTimeLeft(v_4(X,M,!0)),OOt=_.oA(_.wg,H,Z)}
_.wg.cancelJob(OOt);OOt=_.oA(_.wg,H)};
z2T=function(p,J){var S=p.getVolume()/(J/500),H=function(M){_.wg.cancelJob(P4T);var X=Math.floor(M-S);p.setVolume(X,!1);X>0&&(P4T=_.oA(_.wg,function(){H(X)},500))};
_.wg.cancelJob(P4T);P4T=_.oA(_.wg,function(){H(p.getVolume())})};
$1D=function(p,J){_.wg.cancelJob(P4T);J&&p.syncVolume()};
o_s=function(){var p={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Kl("SLEEP_TIMER_DISRUPTED")}}}}};_.vO().resolve(_.Ov).resolveCommand(p)};
e2v=function(p){return(p.getDuration()-p.getProgressState().current)*1E3};
F$v=function(p,J){p=p+J-(0,_.fO)();if(p<=0)return{hours:0,minutes:0,seconds:0};var S=new W$d(0,0,0,0,0,0,p);p=S.getHours();J=S.getMinutes();S=S.getSeconds();S!==0&&J++;J!==0&&J%60===0&&(p++,J=0);return{hours:p,minutes:J,seconds:S}};
v_4=function(p,J,S){return p>0&&J>0?S?_.Kl("TIME_LEFT_HOURS_MINUTES",{hours:p.toString(),minutes:J.toString()}):_.Kl("TIME_HOURS_MINUTES",{hours:p.toString(),minutes:J.toString()}):p>0?S?_.ZO("TIME_LEFT_HOURS",p):_.ZO("TIME_HOURS",p):S?_.Kl("TIME_LEFT_MINUTES",{minutes:J.toString()}):_.Kl("TIME_MINUTES",{minutes:J.toString()})};
C4q=function(p,J){if(p.timelyActions)return p.timelyActions.find(function(S){var H;return((H=_.e(S,Q67))==null?void 0:H.cueRangeId)===J})};
yq4=function(p){var J=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Pd(p);p.keyMap_.forEach(function(S,H){_.dk(J,H)||this.remove(H)},p)};
Bgy=function(p,J){p.reloadContinuationItemsCommandMatcher=J};
U1G=function(p,J){var S;return _.G(function(H){return H.nextAddress==1?J&&p.lastWelcomeContinuationSent!==J?_.kgf(p)?H.yield(p.panelController.isVisible("PAai_companion"),3):H.jumpTo(2):H.return(!1):H.nextAddress==2||(S=H.yieldResult,S)?H.return(!0):H.return(!1)})};
s6p=function(p){var J,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1){if(!p.welcomeOptions)return Z.return();J=p.welcomeOptions;S=J.command;H=J.setPending;if(S){var n;var b=(n=_.e(S,_.hm))==null?void 0:n.token}else b=void 0;M=b;return Z.yield(U1G(p,M),2)}if(!Z.yieldResult)return Z.return();p.lastWelcomeContinuationSent=M;(X=H)==null||X(!0);b="youchat-"+Date.now();n=(n=_.nG())?String(Math.floor(n.getCurrentTime())*1E3):void 0;_.ge(S,{form:{formData:_.FZ({clientMessageId:b,playerOffsetMs:n,pageContext:_.HAP(p,
p.pageSubtype)})}});_.UK(Z)})};
g_s=function(p,J){_.G(function(S){p.welcomeOptions=J;return S.yield(s6p(p),0)})};
_.tR=function(p,J){p.insertBefore(J,p.childNodes[0]||null)};
t9s=function(p){if(p>=48&&p<=57||p>=96&&p<=106||p>=65&&p<=90||_.Ku&&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 _.Rh;default:return!1}};
h27=function(p){if(p.altKey&&!p.ctrlKey||p.metaKey||p.keyCode>=112&&p.keyCode<=123)return!1;if(t9s(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!_.Rh;default:return p.keyCode<166||p.keyCode>183}};
W$d=function(p,J,S,H,M,X,Z){this.date=typeof p==="number"?new Date(p,J||0,S||1,H||0,M||0,X||0,Z||0):new Date(p&&p.getTime?p.getTime():_.JF())};
_.SJ(W$d,_.uB);_.R=W$d.prototype;_.R.getHours=function(){return this.date.getHours()};
_.R.getMinutes=function(){return this.date.getMinutes()};
_.R.getSeconds=function(){return this.date.getSeconds()};
_.R.getMilliseconds=function(){return this.date.getMilliseconds()};
_.R.getUTCDay=function(){return this.date.getUTCDay()};
_.R.getUTCHours=function(){return this.date.getUTCHours()};
_.R.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.R.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.R.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.R.setHours=function(p){this.date.setHours(p)};
_.R.setMinutes=function(p){this.date.setMinutes(p)};
_.R.setSeconds=function(p){this.date.setSeconds(p)};
_.R.setMilliseconds=function(p){this.date.setMilliseconds(p)};
_.R.setUTCHours=function(p){this.date.setUTCHours(p)};
_.R.setUTCMinutes=function(p){this.date.setUTCMinutes(p)};
_.R.setUTCSeconds=function(p){this.date.setUTCSeconds(p)};
_.R.setUTCMilliseconds=function(p){this.date.setUTCMilliseconds(p)};
_.R.add=function(p){_.uB.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)};
_.R.JSC$11482_toIsoString=function(p){var J=_.uB.prototype.JSC$11482_toIsoString.call(this,p);return p?J+"T"+_.b_(this.getHours(),2)+":"+_.b_(this.getMinutes(),2)+":"+_.b_(this.getSeconds(),2):J+"T"+_.b_(this.getHours(),2)+_.b_(this.getMinutes(),2)+_.b_(this.getSeconds(),2)};
_.R.equals=function(p){return this.getTime()==p.getTime()};
_.R.toString=function(){return this.JSC$11482_toIsoString()};
_.R.clone=function(){var p=new W$d(this.date);p.firstDayOfWeek_=this.firstDayOfWeek_;p.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return p};
_.D1t=function(p){return _.Jk({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:p}})};var kxs=new _.Zz("imageTileRenderer");var Ngq=new _.Zz("promotedSparklesWebRenderer");var Tgs=new _.Zz("adGridCardCollectionViewModel");var d1p=new _.Zz("carouselTitleViewModel");var u$y=new _.Zz("ctaCarouselItemViewModel");var lkp=new _.Zz("textFieldViewModel");_.V9s=new _.Zz("engagementPanelHeaderShowNavigationButtonCommand");var q3G=new _.Zz("hideEngagementPanelScrimAction");var aky=new _.Zz("setActivePanelItemAction");var E_a=new _.Zz("showEngagementPanelScrimAction");var Y3D=new _.Zz("updateEngagementPanelAction");var rqG=new _.Zz("updateSearchInVideoResultsAction");var j6v=new _.Zz("transcriptCueGroupRenderer");var wBv=new _.Zz("transcriptCueRenderer");var x1a=new _.Zz("transcriptFooterRenderer");var cqv=new _.Zz("engagementPanelAdSubtitleRenderer");var Ikp=new _.Zz("videoDescriptionFantasySectionViewModel");var L$p=new _.Zz("deleteClipEngagementPanelCommand");var pLd=new _.Zz("loopCommand");var JVq=new _.Zz("changeCreatorEndscreenVisibilityCommand");var SIG=new _.Zz("liveChatCallForQuestionsRenderer");var HHu=new _.Zz("updateTimedMarkersSyncObserverCommand");var Q67=new _.Zz("timelyActionViewModel");var MDd=new _.Zz("timelyActionsOverlayViewModel");var XL7=new _.Zz("repeatChapterCommand");var iHs=new _.Zz("watchPlayerOverflowMenuCommand");var Rpa=new _.Zz("compositeVideoOverlayRenderer");var K4s=new _.Zz("sortFilterSubMenuRenderer");var ZHu=new _.Zz("switchListItemViewModel");var ILG=new _.Zz("inputComposerViewModel");var nQq=new _.Zz("transcriptEditSegmentCommand");var GgT=new _.Zz("transcriptUpdateSegmentTextCommand");var bHs=new _.Zz("transcriptSearchBoxRenderer");var m8t=new _.Zz("transcriptSegmentListRenderer");var F4u=new _.Zz("transcriptSegmentRenderer");_.vQD=new _.Zz("updateDateTextAction");var ftG=new _.Zz("updateTitleAction");var OHq=new _.Zz("updateViewershipAction");var AVu=new _.Zz("relatedChipCommand");var PSp=new _.Zz("carouselLockupRenderer");var hR=new _.Zz("expandableVideoDescriptionBodyRenderer");var zps=new _.Zz("videoDescriptionHeaderRenderer");var $8v=new _.Zz("videoDescriptionYouchatSectionViewModel");_.D6=_.PO("kevlar_watch_page_horizontal_margin",24);_.oQp=_.PO("kevlar_watch_page_columns_top_padding",24);_.epG=426+_.D6*2;_.ku=_.PO("kevlar_watch_two_column_width_threshold",1E3);_.W4a=_.D6*2;_.QJq=_.PO("kevlar_watch_secondary_width",402);_.CSd=_.PO("kevlar_watch_max_player_width",1280);_.yVt=_.PO("kevlar_watch_flexy_metadata_height",136);_.Bfp=_.W4a+310+_.D6;_.U8G=_.W4a+360+_.D6;var sJs={PAUSE_CHAT:18};var gQq;var tDT;var NY=function(){return _.T.apply(this,arguments)||this};
_.Q(NY,_.T);NY.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
NY.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var p=_.e(this.data.button,_.mO);p&&(p.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.vh.Object.defineProperties(NY,{template:{configurable:!0,enumerable:!0,get:function(){if(tDT===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;gQq===void 0&&(gQq=document.createElement("template"));var H=gQq;S.call(J,H.content.cloneNode(!0),p.content.firstChild);tDT=p}p=tDT;return p}}});
_.V([_.B(_.i1),_.Y("design:type",Object)],NY.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N({selectorArgs:["data.enabledEntityKey"],selector:yls,observer:"onEnabledChange"}),_.Y("design:type",Boolean)],NY.prototype,"enabled",void 0);_.V([_.N(),_.Y("design:type",Object)],NY.prototype,"data",void 0);_.V([_.sD({is:"yt-disableable-button-view-model",noInjection:!0})],NY);var hp7;var D8p;var kgu=["transVert01","transVert02","transVert03"],Nfs="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Tj=function(){var p=_.T.apply(this,arguments)||this;p.emojiManager=_.v7;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};p.reactionBuckets=[];p.noEmojiIdentifier="NO_EMOJI";return p};
_.Q(Tj,_.T);_.R=Tj.prototype;_.R.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.R.desktopFountainEmojiSizePxChanged=function(){_.K3(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.R.createUserReactionAnimation=function(p){this.createEmojiAnimation(p,!0)};
_.R.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var p;((p=this.data)==null?0:p.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.P$("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.dW(this.emojiContainer.children)).forEach(function(J){J.remove()})};
_.R.detached=function(){this.cleanupFountain()};
_.R.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var p;this.reactionBuckets=_.T6.unsafeClone((p=this.emojiFountainData)==null?void 0:p.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.R.processEmojiBucket=function(p){var J=this;if(this.reactionBuckets&&!(p>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var S=this.reactionBuckets[p];this.generateEmojiAnimations(S);if(p<this.reactionBuckets.length-1){var H;if(S==null?0:(H=S.duration)==null?0:H.seconds)this.emojiBucketTimerId=setTimeout(function(){J.processEmojiBucket(p+1)},Number(S.duration.seconds)*1E3)}}};
_.R.generateEmojiAnimations=function(p){var J=this,S=this.getRandomEmojiIdFromBucketWithOverride(p);if(S&&S!==this.noEmojiIdentifier){var H=0;p.targetEps?(H=this.linearInterpolateBounded(1,20,100,12,p.emojiSizeIndex||0),this.createEmojiAnimation(S,!1,p.emojiAnimationMs,H),H=this.getEmojiDelayMsFromTargetEps(p.targetEps)):(this.createEmojiAnimation(S),H=this.getEmojiDelayMsFromDistribution(p.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){J.generateEmojiAnimations(p)},H)}};
_.R.getRandomEmojiIdFromBucketWithOverride=function(p){if(!(p&&p.reactionsData&&p.reactionsData.length&&p.totalReactions))return this.noEmojiIdentifier;for(var J=p.totalReactions,S=1,H=_.K(p.reactionsData),M=H.next();!M.done;M=H.next())M=M.value,(M.reactionWeightOverride||M.reactionWeightOverride===0)&&M.reactionCount&&(J-=M.reactionCount,S-=M.reactionWeightOverride);H=!0;S<0&&(H=!1,J=p.totalReactions,S=1);if(H&&S>0&&J===0)if(S===1){M=0;for(var X=_.K(p.reactionsData),Z=X.next();!Z.done;Z=X.next())Z=
Z.value,Z.reactionCount&&Z.reactionCount>0&&M++;M=1/M;X=_.K(p.reactionsData);for(Z=X.next();!Z.done;Z=X.next())Z.value.reactionWeightOverride=M}else for(M=1/(1-S),X=_.K(p.reactionsData),Z=X.next();!Z.done;Z=X.next())Z=Z.value,Z.reactionWeightOverride&&(Z.reactionWeightOverride*=M);M=Math.random();X=0;Z=_.K(p.reactionsData);for(var n=Z.next();!n.done;n=Z.next())if(n=n.value,n.reactionCount&&(X=(n.reactionWeightOverride||n.reactionWeightOverride===0)&&H?X+n.reactionWeightOverride:X+S*n.reactionCount/
J,X>M&&(n.reactionCount--,p.totalReactions--,n=this.reactionItemToEmojiString(n),n!==this.noEmojiIdentifier)))return n;return this.noEmojiIdentifier};
_.R.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};
_.R.createEmojiAnimation=function(p,J,S,H){J=J===void 0?!1:J;this.lastEmojiRequestedForTesting=p;var M=p.startsWith("yt-icons:"),X=_.mB(this.emojiManager,p);if(X||M){var Z=document.createElement("emoji");Z.classList.add("yt-emoji-fountain-view-model");Z.classList.add(kgu[Math.floor(Math.random()*kgu.length)]);var n=document.createElement("div");n.classList.add("yt-emoji-fountain-view-model");n.classList.add("horizontal-container");n.classList.add(Nfs[Math.floor(Math.random()*Nfs.length)]);J?(S=document.createElement("div"),
S.classList.add("user-reaction-bubble"),S.classList.add("yt-emoji-fountain-view-model"),n.appendChild(S)):(S&&(Z.style.animationDuration=S+"ms",n.style.animationDuration=S+"ms"),H&&(Z.style.width=H+"px",Z.style.height=H+"px"));M?(M=document.createElement("yt-icon"),M.polymerController.icon=p,H&&(M.style.width=H+"px",M.style.height=H+"px"),p=M):p=this.emojiManager.createEmoji(X,!1);p.classList.add("yt-emoji-fountain-view-model");n.appendChild(p);Z.appendChild(n);this.emojiContainer.appendChild(Z);
Z.addEventListener("animationend",function(){Z.remove()});
var b,F;if((b=this.data)==null?0:(F=b.loggingDirectives)==null?0:F.trackingParams)J=J?_.KG(183501):_.KG(183500),B1p(this.data.loggingDirectives.trackingParams,J),_.mM9(J);setTimeout(function(){Z&&Z.remove()},2E3)}};
_.R.getEmojiDelayMsFromDistribution=function(p){return Math.random()*(p||1)*1E3};
_.R.getEmojiDelayMsFromTargetEps=function(p){return Math.random()*2*(1/p)*1E3};
_.R.linearInterpolateBounded=function(p,J,S,H,M){M=Math.min(Math.max(M,p),S);return(J*(S-M)+H*(M-p))/(S-p)};
Tj.prototype.onEmojiFountainDataEntityUpdate=Tj.prototype.onEmojiFountainDataEntityUpdate;Tj.prototype.desktopFountainEmojiSizePxChanged=Tj.prototype.desktopFountainEmojiSizePxChanged;Tj.prototype.isActiveChanged=Tj.prototype.isActiveChanged;_.V([_.N(),_.Y("design:type",_.bP)],Tj.prototype,"emojiManager",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.i1),_.Y("design:type",Object)],Tj.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Tj.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Tj.prototype,"data",void 0);_.V([_.N({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(p,J){return _.RR(p.entities,"emojiFountainDataEntity",J)}}),
_.Y("design:type",Object)],Tj.prototype,"emojiFountainData",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Tj.prototype,"isActive",void 0);_.V([_.bO("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tj.prototype,"isActiveChanged",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Tj.prototype,"isDarkTheme",void 0);_.V([_.N(),_.Y("design:type",String)],Tj.prototype,"lastEmojiRequestedForTesting",void 0);
_.V([_.N({value:function(){return _.PO("desktop_fountain_emoji_size_px",20)}}),
_.Y("design:type",Number)],Tj.prototype,"desktopFountainEmojiSizePx",void 0);_.V([_.bO("desktopFountainEmojiSizePx"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tj.prototype,"desktopFountainEmojiSizePxChanged",null);_.V([_.FM("#emoji-container"),_.Y("design:type",HTMLElement)],Tj.prototype,"emojiContainer",void 0);
_.V([_.bO("emojiFountainData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tj.prototype,"onEmojiFountainDataEntityUpdate",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Tj);
_.l(Tj,"yt-emoji-fountain-view-model",function(){if(D8p===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;hp7===void 0&&(hp7=document.createElement("template"));var H=hp7;S.call(J,H.content.cloneNode(!0),p.content.firstChild);D8p=p}p=D8p;return p},{mode:0});var TfD;var d8s;var dt=function(){return _.T.apply(this,arguments)||this};
_.Q(dt,_.T);dt.prototype.onChoiceChanged=function(){this.data&&_.K3(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
dt.prototype.onChoiceChanged=dt.prototype.onChoiceChanged;_.V([_.N(),_.Y("design:type",Object)],dt.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dt.prototype,"onChoiceChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],dt);
_.l(dt,"yt-live-chat-banner-poll-choice",function(){if(d8s===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;TfD===void 0&&(TfD=document.createElement("template"));var H=TfD;S.call(J,H.content.cloneNode(!0),p.content.firstChild);d8s=p}p=d8s;return p},{mode:0});var ubs;var ltu;var um=function(){var p=_.T.apply(this,arguments)||this;p.modern=_.z("web_button_rework_with_live");p.small=!1;return p};
_.Q(um,_.T);um.prototype.computeIsSmall=function(){var p;return((p=this.buttonOverrides)==null?void 0:p.size)==="S"};
um.prototype.computeId=function(){return this.data&&this.data.targetId};
_.V([_.B(_.RO.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],um.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.N({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",String)],um.prototype,"id",void 0);_.V([_.N(),_.Y("design:type",Object)],um.prototype,"buttonOverrides",void 0);_.V([_.N(),_.Y("design:type",Object)],um.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],um.prototype,"modern",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.Y("design:type",Object)],um.prototype,"small",void 0);_.V([_.gw({disableElementRegistration:!0,is:"yt-live-chat-button"})],um);
_.l(um,"yt-live-chat-button",function(){if(ltu===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;ubs===void 0&&(ubs=document.createElement("template"));var H=ubs;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ltu=p}p=ltu;return p},{mode:0});var VDT;var qIq;var lm=function(){var p=_.T.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};
_.Q(lm,_.T);_.R=lm.prototype;_.R.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]]"}}}}}};
_.R.onContextMenuButtonClick=function(p){this.ytLiveChatItemBehavior.showContextMenu(p)};
_.R.onYtRendererstamperFinished=function(){this.menuButton=_.Jn(this.hostElement).querySelector("#menu-button")};
_.R.dataChanged=function(){var p,J;if((J=_.e((p=this.data)==null?void 0:p.overflowMenuButton,_.Za))==null?0:J.command)this.data.contextMenuEndpoint=_.e(this.data.overflowMenuButton,_.Za).command};
_.R.onButtonClick=function(){var p,J=_.e((p=this.data)==null?void 0:p.askQuestionButton,_.Za);if(J){if(J.trackingParams&&(p=_.Az(J.trackingParams))){var S=_.C1();S&&_.l7(S,p)}_.cf(this.hostElement,"innertube-command",J.command)}};
lm.prototype.onYtRendererstamperFinished=lm.prototype.onYtRendererstamperFinished;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.i1),_.Y("design:type",Object)],lm.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],lm.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.N({observer:"dataChanged"}),_.Y("design:type",Object)],lm.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],lm.prototype,"inCollapsedBanner",void 0);_.V([_.N(),_.Y("design:type",Object)],lm.prototype,"buttonOverrides",void 0);_.V([_.N(),_.Y("design:type",Object)],lm.prototype,"questionButtonOverrides",void 0);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lm.prototype,"onYtRendererstamperFinished",null);
_.V([_.gw({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],lm);
_.l(lm,"yt-live-chat-call-for-questions-renderer",function(){if(qIq===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;VDT===void 0&&(VDT=document.createElement("template"));var H=VDT;S.call(J,H.content.cloneNode(!0),p.content.firstChild);qIq=p}p=qIq;return p},{mode:0});var att={};att.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 J=_.qjn(p.hostElement);J.length&&J[J.length-1].focus()})},
isAttachedChanged_:function(p,J){p?this.focusChild_():J&&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||_.Er(p).indexOf(this.hostElement)!==-1||(p.stopPropagation(),this.focusChild_())}};var EQT;var YI4;var Vx=function(){return _.T.apply(this,arguments)||this};
_.Q(Vx,_.T);Vx.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Vx.prototype.onClick=function(p){p.target!==this.confirmButton&&p.target!==this.cancelButton&&(this.hidden=!0)};
_.V([_.FM("#confirm_button"),_.Y("design:type",Object)],Vx.prototype,"confirmButton",void 0);_.V([_.FM("#cancel_button"),_.Y("design:type",Object)],Vx.prototype,"cancelButton",void 0);_.V([_.N(),_.Y("design:type",rVq)],Vx.prototype,"data",void 0);_.V([_.N({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vx.prototype,"hidden",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Vx.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(att.YtLiveChatDialogBehavior),_.Y("design:type",Object)],Vx.prototype,"ytLiveChatDialogBehavior",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Vx);
var rVq=_.l(Vx,"yt-live-chat-dialog-renderer",function(){if(YI4===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;EQT===void 0&&(EQT=document.createElement("template"));var H=EQT;S.call(J,H.content.cloneNode(!0),p.content.firstChild);YI4=p}p=YI4;return p},{mode:0});var jJG;var wLa,x8d=function(){if(wLa!==void 0)return wLa;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;jJG===void 0&&(jJG=document.createElement("template"));var H=jJG;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return wLa=p};var cVy;var ItG;var qY=function(){var p=_.T.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};
_.Q(qY,_.T);_.R=qY.prototype;
_.R.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,_.Rf)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var J;if((J=this.data)==null?0:J.disabled)this.disabled=!0};
_.R.computeId=function(p){return p};
_.R.computeIcon=function(p,J){if(!p)return"";if(this.useToggledActiveState)return"yt-icons:"+p.toLowerCase();var S,H;return J&&((S=this.data)==null?0:(H=S.toggledIcon)==null?0:H.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+p.toLowerCase()};
_.R.logPDGEntryPoint=function(){_.x_v(_.Rs("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")};
_.R.immediatelyShowTooltip=function(){var p=_.Jn(this.hostElement).querySelector("#tooltip");p.animationDelay=0;p.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};p.show()};
_.R.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.R.onClick=function(p){var J;((J=this.data)==null?0:J.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(),_.cf(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.R.computeShowTooltip=function(p,J){return!!(p&&p.tooltip&&J)};
_.R.maybeUpdateTooltipText=function(){var p=this,J;if((J=this.data)==null?0:J.tooltip){var S=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Rf)(p.tooltip).textContent=S},250)}};
_.R.handleLiveChatActions=function(p){var J=this;p.length&&(this.id!=="creator"&&this.id!=="product-picker"||p.forEach(function(S){(S=J.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",S))&&S.durationSec===S.fullDurationSec&&J.startBubble(J.colorFromDecimal(S.startBackgroundColor))}))};
_.R.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.R.startBubble=function(p){_.K3(this.hostElement,{"--yt-live-chat-monetization-button-glow":p});this.hostElement.setAttribute("bubble","")};
_.R.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.R.colorFromDecimal=function(p){typeof p==="string"&&(p=Number(p));return"rgba("+[p>>16&255,p>>8&255,p&255,(p>>24&255)/255].join()+")"};
qY.prototype.onAnimationEnd=qY.prototype.onAnimationEnd;qY.prototype.disabledChanged=qY.prototype.disabledChanged;qY.prototype.dataChanged=qY.prototype.dataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],qY.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.RO.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],qY.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qY.prototype,"data",void 0);_.V([_.N({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",Object)],qY.prototype,"id",void 0);_.V([_.N({notify:!0,reflectToAttribute:!0}),_.Y("design:type",Object)],qY.prototype,"active",void 0);
_.V([_.N({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.Y("design:type",Object)],qY.prototype,"icon",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],qY.prototype,"disabled",void 0);_.V([_.N({computed:"computeShowTooltip(data, disabled)"}),_.Y("design:type",Object)],qY.prototype,"showTooltip",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],qY.prototype,"useToggledActiveState",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qY.prototype,"dataChanged",null);_.V([_.bO("disabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qY.prototype,"disabledChanged",null);_.V([_.GI("animationend"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],qY.prototype,"onAnimationEnd",null);
_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],qY);
_.l(qY,"yt-live-chat-icon-toggle-button-renderer",function(){if(ItG===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;cVy===void 0&&(cVy=document.createElement("template"));var H=cVy;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ItG=p}p=ItG;return p},{mode:0});var L4G;var pJu;var a_=function(){return _.T.apply(this,arguments)||this};
_.Q(a_,_.T);a_.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V([_.N(),_.Y("design:type",Object)],a_.prototype,"data",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.gw({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],a_);
_.l(a_,"yt-live-chat-message-input-prompt-header-renderer",function(){if(pJu===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;L4G===void 0&&(L4G=document.createElement("template"));var H=L4G;S.call(J,H.content.cloneNode(!0),p.content.firstChild);pJu=p}p=pJu;return p},{mode:0});var JwG;var Syy;var HEd;var M5G;var XJs;var iED;var RHs=function(){return _.T.apply(this,arguments)||this};
_.Q(RHs,_.T);_.V([_.N(),_.Y("design:type",Object)],RHs.prototype,"data",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],RHs);
_.l(RHs,"yt-live-chat-message-subtext-renderer",function(){if(iED===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;XJs===void 0&&(XJs=document.createElement("template"));var H=XJs;S.call(J,H.content.cloneNode(!0),p.content.firstChild);iED=p}p=iED;return p},{mode:0});var E$=function(){var p=_.T.apply(this,arguments)||this;p.subtextOnBottom=!1;p.buttonOverrides={style:"mono",type:"tonal"};return p};
_.Q(E$,_.T);E$.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],E$.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],E$.prototype,"subtextOnBottom",void 0);_.V([_.N(),_.Y("design:type",Object)],E$.prototype,"buttonOverrides",void 0);
_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],E$);
_.l(E$,"yt-live-chat-message-renderer",function(){if(M5G===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;HEd===void 0&&(HEd=document.createElement("template"));var H=HEd;S.call(J,H.content.cloneNode(!0),p.content.firstChild);M5G=p}p=M5G;return p},{mode:0});var Koa;var ZE4;var Yu=function(){var p=_.T.apply(this,arguments)||this;p.isRemovable=!1;p.hasPrefilledText=!1;p.isInputDirty=!1;p.overCharacterLimit=!1;p.underCharacterLimit=!1;p.showErrorMessage=!1;return p};
_.Q(Yu,_.T);_.R=Yu.prototype;_.R.computeId=function(){return this.data.id};
_.R.computeInputData=function(){return this.data.inputData};
_.R.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.R.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.R.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.R.getLiveChatRichMessageInput=function(){return _.Jn(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.R.clearInput=function(){_.Jn(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.R.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.R.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.R.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.R.handleTextInputCharCountChanged=function(p){p=p.detail&&p.detail.characterCount;p!==void 0&&(this.characterCount=p,p!==0&&(this.isInputDirty=!0))};
_.R.onInputFocusOut=function(){this.isInputDirty=!0};
_.R.onClickCloseButton=function(){_.cf(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Yu.prototype.handleTextInputCharCountChanged=Yu.prototype.handleTextInputCharCountChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Yu.prototype,"data",void 0);_.V([_.N({computed:"computeId(data.id)"}),_.Y("design:type",String)],Yu.prototype,"id",void 0);_.V([_.N({computed:"computeInputData(data.inputData)"}),_.Y("design:type",Object)],Yu.prototype,"inputData",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.Y("design:type",Object)],Yu.prototype,"isRemovable",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.Y("design:type",Object)],Yu.prototype,"hasPrefilledText",void 0);_.V([_.N({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.Y("design:type",Number)],Yu.prototype,"charactersRemaining",void 0);
_.V([_.N(),_.Y("design:type",Number)],Yu.prototype,"characterCount",void 0);_.V([_.N(),_.Y("design:type",Object)],Yu.prototype,"isInputDirty",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.Y("design:type",Object)],Yu.prototype,"overCharacterLimit",void 0);_.V([_.N({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.Y("design:type",Object)],Yu.prototype,"underCharacterLimit",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.Y("design:type",Object)],Yu.prototype,"showErrorMessage",void 0);_.V([_.GI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Yu.prototype,"handleTextInputCharCountChanged",null);
_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Yu);
_.l(Yu,"yt-live-chat-poll-editor-input",function(){if(ZE4===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Koa===void 0&&(Koa=document.createElement("template"));var H=Koa;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ZE4=p}p=ZE4;return p},{mode:0});var nXD;var GU4;var bE4={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},rt=function(){var p=_.T.apply(this,arguments)||this;p.modern=_.z("web_button_rework_with_live");p.closeButtonOverrides={iconPosition:"icon-only"};p.startButtonOverrides={style:"mono",type:"filled"};p.addOptionButtonOverrides={style:"mono",type:"text"};return p};
_.Q(rt,_.T);_.R=rt.prototype;
_.R.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"}}}}};
_.R.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var p;_.e((p=this.data)==null?void 0:p.startButton,_.Za)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.R.computeId=function(){return this.data&&this.data.id||""};
_.R.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.R.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.R.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.R.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.R.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var p=0;p<this.pollEditorInfoWithDefaults.minPollOptions;p++)this.addPollOptionData()};
_.R.getIsValidPoll=function(){var p=this;if(!this.pollEditorInfoWithDefaults)return!1;var J=this.pollEditorInfoWithDefaults,S=J.minPollOptionChars,H=J.maxPollOptionChars,M=J.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>J.maxPollQuestionChars)return!1;J=_.Jn(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(J).every(function(X,Z){X=X.characterCount;!X&&M[Z]&&(X=p.ytRendererBehavior.getSimpleString(M[Z]).length);return X!==void 0&&X>=S&&X<=H})};
_.R.isValidPollChanged=function(){var p;_.e((p=this.data)==null?void 0:p.startButton,_.Za)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.R.addPollOptionData=function(){var p=this.pollEditorInfoWithDefaults,J=p.maxPollOptionChars,S=p.optionPlaceholderText,H=p.customOptionPlaceholderText,M=p.pollOptionData;this.currentNumPollOptions>=p.maxPollOptions||(p={liveChatPollOptionInput:{inputData:{placeholder:H[this.currentNumPollOptions]||S,maxCharacterLimit:J},maxCharacterLimit:J,minCharacterLimit:p.minPollOptionChars,hasPrefilledText:!!H[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=p.minPollOptions}},M.charCountErrorText&&
(p.liveChatPollOptionInput.charCountErrorText=M.charCountErrorText),M.charsRemainingAltLabel&&(p.liveChatPollOptionInput.charsRemainingAltLabel=M.charsRemainingAltLabel),M.removeOptionAltText&&(p.liveChatPollOptionInput.removeOptionAltText=M.removeOptionAltText),this.push("pollOptionsData",p),M=Array.from(_.Jn(_.Jn(this.hostElement).querySelector("#poll-options")).children),M.forEach(function(X,Z){X.polymerController.set("data.id",Z)}),_.Jn(M[M.length-1]).querySelector("#input").focus())};
_.R.getPollOptionInputValues=function(){var p=this,J=[],S=_.Jn(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),H=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(S).forEach(function(M,X){var Z=null;M=M.getLiveChatRichMessageInput();var n;(M==null?0:(n=M.textSegments)==null?0:n.length)?Z=_.Nr(M):H[X]&&(Z=p.formattedStringToLiveChatRichMessageInput(H[X]));J.push(Z)});
return J};
_.R.requestCreateAndStartPoll=function(p){var J=this.getPollOptionInputValues();if(!J.some(function(H){return!H})){J={optionText:J};
var S=_.Jn(_.Jn(this.hostElement).querySelector("#poll-question")).firstChild;S&&S.liveChatRichMessageInput&&(J.questionText=_.Nr(S.liveChatRichMessageInput));_.pl(this.hostElement,[p,J])}};
_.R.selectedChanged=function(){if(this.selected){var p=_.Jn(_.Jn(this.hostElement).querySelector("#start-button")).firstElementChild;if(p){var J;(J=_.Jn(p).querySelector("#button")||_.Sh(p).querySelector("button"))==null||J.focus()}}};
_.R.handleTextInputChanged=function(p){var J;((J=p.target)==null?void 0:J.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=p.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.R.handleStartButtonAction=function(p){p.detail.actionName==="yt-service-request"&&(p.stopPropagation(),(p=p.detail.args[1])&&this.requestCreateAndStartPoll(p))};
_.R.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.R.handleServiceRequestCompleted=function(p){this.createPollRequestInFlight=!1;(p=p.detail&&p.detail.data)&&p.success&&(_.cf(this.hostElement,"picker-cancelled"),_.IV(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.R.onCloseClick=function(){_.cf(this.hostElement,"picker-cancelled");_.IV(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.R.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.R.handlePollEditorInputClosed=function(p){var J=this.pollOptionsData.findIndex(function(S){return S.liveChatPollOptionInput.id===p.detail.id});
this.splice("pollOptionsData",J,1);this.isValidPoll=this.getIsValidPoll()};
_.R.onPickerCancelled=function(){this.reset()};
_.R.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var p=_.Jn(_.Jn(this.hostElement).querySelector("#poll-question")).firstChild;p&&p.setLiveChatRichMessageInput(null);if(p=_.Jn(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){p=_.K(Array.from(p));for(var J=p.next();!J.done;J=p.next())J.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.R.formattedStringToLiveChatRichMessageInput=function(p){return p.simpleText?{text_segments:[p.simpleText]}:{text_segments:p.runs}};
_.vh.Object.defineProperties(rt.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(bE4,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
rt.prototype.onPickerCancelled=rt.prototype.onPickerCancelled;rt.prototype.handlePollEditorInputClosed=rt.prototype.handlePollEditorInputClosed;rt.prototype.handleServiceRequestCompleted=rt.prototype.handleServiceRequestCompleted;rt.prototype.handleServiceRequestSent=rt.prototype.handleServiceRequestSent;rt.prototype.handleTextInputChanged=rt.prototype.handleTextInputChanged;rt.prototype.selectedChanged=rt.prototype.selectedChanged;rt.prototype.isValidPollChanged=rt.prototype.isValidPollChanged;
rt.prototype.shouldInitializePollChanged=rt.prototype.shouldInitializePollChanged;rt.prototype.dataChanged=rt.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],rt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],rt.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rt.prototype,"modern",void 0);
_.V([_.N(),_.Y("design:type",Object)],rt.prototype,"closeButtonOverrides",void 0);_.V([_.N(),_.Y("design:type",Object)],rt.prototype,"startButtonOverrides",void 0);_.V([_.N(),_.Y("design:type",Object)],rt.prototype,"addOptionButtonOverrides",void 0);_.V([_.N({computed:"computeId(data.id)",reflectToAttribute:!0}),_.Y("design:type",String)],rt.prototype,"id",void 0);_.V([_.N({value:function(){return[]}}),
_.Y("design:type",Array)],rt.prototype,"pollOptionsData",void 0);_.V([_.U("pollEditorInfoWithDefaults"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rt.prototype,"pollQuestionData",null);_.V([_.N({value:0}),_.Y("design:type",Number)],rt.prototype,"pollQuestionCharacterCount",void 0);_.V([_.U("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rt.prototype,"pollQuestionCharactersRemaining",null);
_.V([_.N({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.Y("design:type",Boolean)],rt.prototype,"overQuestionCharacterLimit",void 0);_.V([_.U("data.pollEditorInfo"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rt.prototype,"pollEditorInfoWithDefaults",null);_.V([_.N({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.Y("design:type",Number)],rt.prototype,"currentNumPollOptions",void 0);
_.V([_.N({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],rt.prototype,"hasMaxNumPollOptions",void 0);_.V([_.U("pollEditorInfoWithDefaults","pollOptionsData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rt.prototype,"shouldInitializePoll",null);_.V([_.N(),_.Y("design:type",Object)],rt.prototype,"isValidPoll",void 0);
_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],rt.prototype,"createPollRequestInFlight",void 0);_.V([_.N(),_.Y("design:type",Object)],rt.prototype,"selected",void 0);_.V([_.N({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.Y("design:type",Boolean)],rt.prototype,"showQuestionErrorMessage",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rt.prototype,"dataChanged",null);_.V([_.bO("shouldInitializePoll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rt.prototype,"shouldInitializePollChanged",null);_.V([_.bO("isValidPoll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rt.prototype,"isValidPollChanged",null);
_.V([_.bO("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rt.prototype,"selectedChanged",null);_.V([_.GI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rt.prototype,"handleTextInputChanged",null);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rt.prototype,"handleServiceRequestSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rt.prototype,"handleServiceRequestCompleted",null);
_.V([_.GI("yt-live-chat-poll-editor-input-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rt.prototype,"handlePollEditorInputClosed",null);_.V([_.GI("picker-cancelled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rt.prototype,"onPickerCancelled",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],rt);
_.l(rt,"yt-live-chat-poll-editor-panel-renderer",function(){if(GU4===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;nXD===void 0&&(nXD=document.createElement("template"));var H=nXD;S.call(J,H.content.cloneNode(!0),p.content.firstChild);GU4=p}p=GU4;return p},{mode:0});var myT;var Fov;var jO=function(){return _.T.apply(this,arguments)||this};
_.Q(jO,_.T);jO.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
jO.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.vh.Object.defineProperties(jO.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var p,J;return(p=this.data)==null?void 0:(J=p.title)==null?void 0:J.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 _.sa((p=this.data)==null?void 0:p.onTapCommand)}}});
_.V([_.B(_.dF.YtEndpointBehavior),_.Y("design:type",Object)],jO.prototype,"ytEndpointBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],jO.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jO.prototype,"itemId",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jO.prototype,"hasPromotion",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jO.prototype,"innertubeCommand",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],jO);
_.l(jO,"yt-live-chat-product-picker-panel-item-view-model",function(){if(Fov===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;myT===void 0&&(myT=document.createElement("template"));var H=myT;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Fov=p}p=Fov;return p},{mode:0});var vXd;var fya;var wt=function(){var p=_.T.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};
_.Q(wt,_.T);_.R=wt.prototype;_.R.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.R.observeSelected=function(){this.selected&&this.hostElement.focus();var p=_.Jn(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");p.length&&p[0].focus()};
_.R.onCloseBuyFlow=function(){_.cf(this.hostElement,"picker-cancelled")};
_.R.onCloseClick=function(){_.cf(this.hostElement,"picker-cancelled");var p;((p=this.data)==null?0:p.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.e(this.data.closeButton,_.mO))};
_.R.onCloseEngageWithAudienceEditorPanels=function(){_.cf(this.hostElement,"picker-cancelled")};
wt.prototype.observeSelected=wt.prototype.observeSelected;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],wt.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wt.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],wt.prototype,"id",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],wt.prototype,"selected",void 0);_.V([_.N(),_.Y("design:type",Object)],wt.prototype,"closeButtonId",void 0);_.V([_.bO("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wt.prototype,"observeSelected",null);
_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],wt);
_.l(wt,"yt-live-chat-product-picker-panel-view-model",function(){if(fya===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;vXd===void 0&&(vXd=document.createElement("template"));var H=vXd;S.call(J,H.content.cloneNode(!0),p.content.firstChild);fya=p}p=fya;return p},{mode:0});var OEy;var Awa;var xu=function(){var p=_.T.apply(this,arguments)||this;p.iconId="";p.icon="";p.disabled=!1;p.systemIcons=_.z("kevlar_system_icons");return p};
_.Q(xu,_.T);_.R=xu.prototype;_.R.computeIconId=function(p){return p&&p.icon&&p.icon.iconType?p.icon.iconType.toLowerCase():""};
_.R.computeIcon=function(p){return p&&p.icon&&p.icon.iconType?(p=p.icon.iconType.toLowerCase(),(p.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+p):""};
_.R.computeDisabled=function(p){return!!p};
_.R.computeCommand=function(p,J){return J?void 0:p};
_.R.computeTooltip=function(p,J){return J&&p?p:""};
_.R.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.vh.Object.defineProperties(xu.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var p="",J,S,H;if((J=this.data)==null?0:(S=J.text)==null?0:(H=S.runs)==null?0:H.length)p=this.data.text.runs[0].text||"";else{var M,X;if((M=this.data)==null?0:(X=M.text)==null?0:X.simpleText)p=this.data.text.simpleText}var Z,n,b;if((Z=this.data)==null?0:(n=Z.subtext)==null?0:(b=n.runs)==null?0:b.length)p&&(p+=". "),p+=this.data.subtext.runs[0].text||"";else{var F,f;if((F=this.data)==null?0:(f=F.subtext)==
null?0:f.simpleText)p&&(p+=". "),p+=this.data.subtext.simpleText}return p}}});
_.V([_.B(_.dF.YtEndpointBehavior),_.Y("design:type",Object)],xu.prototype,"ytEndpointBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xu.prototype,"data",void 0);_.V([_.N({computed:"computeIconId(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],xu.prototype,"iconId",void 0);
_.V([_.N({computed:"computeIcon(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],xu.prototype,"icon",void 0);_.V([_.N({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.Y("design:type",Object)],xu.prototype,"disabled",void 0);_.V([_.N({computed:"computeCommand(data.command, disabled)"}),_.Y("design:type",Object)],xu.prototype,"command",void 0);_.V([_.N({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.Y("design:type",String)],xu.prototype,"tooltip",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],xu.prototype,"systemIcons",void 0);_.V([_.U("data.text","data.subtext"),_.N(),_.Y("design:type",String),_.Y("design:paramtypes",[])],xu.prototype,"ariaLabel",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],xu);
_.l(xu,"yt-live-chat-product-button-renderer",function(){if(Awa===void 0){var p=document.createElement("template");_.C(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" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;OEy===void 0&&(OEy=document.createElement("template"));var H=OEy;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Awa=p}p=Awa;return p},{mode:0});var PZs;var zHs;var cM=function(){var p=_.T.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","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return p};
_.Q(cM,_.T);_.R=cM.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.computeId=function(p){return p.id||""};
_.R.onCloseClick=function(){_.cf(this.hostElement,"picker-cancelled")};
_.R.observeSelected=function(){this.selected&&this.hostElement.focus();var p=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");p.length&&p[0].focus()};
_.R.onCloseBuyFlow=function(){_.cf(this.hostElement,"picker-cancelled")};
_.R.onCloseEngageWithAudienceEditorPanels=function(){_.cf(this.hostElement,"picker-cancelled")};
cM.prototype.observeSelected=cM.prototype.observeSelected;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],cM.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],cM.prototype,"data",void 0);
_.V([_.N({computed:"computeId(data)",reflectToAttribute:!0}),_.Y("design:type",String)],cM.prototype,"id",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],cM.prototype,"selected",void 0);_.V([_.bO("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cM.prototype,"observeSelected",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],cM);
_.l(cM,"yt-live-chat-product-picker-renderer",function(){if(zHs===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;PZs===void 0&&(PZs=document.createElement("template"));var H=PZs;S.call(J,H.content.cloneNode(!0),p.content.firstChild);zHs=p}p=zHs;return p},{mode:0});var $y7;var oXs;var eHs;var Wos;var I_=function(){return _.T.apply(this,arguments)||this};
_.Q(I_,_.T);I_.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()};
I_.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
I_.prototype.created=function(){this.ids={background:_.cn(),maskOne:_.cn(),maskTwo:_.cn(),gradient:_.cn(),largeBackground:_.cn(),largeGradientOne:_.cn(),largeGradientTwo:_.cn(),largeGradientPath:_.cn()}};
I_.prototype.maybeLoadAnimationBackground=I_.prototype.maybeLoadAnimationBackground;_.V([_.N({value:!1}),_.Y("design:type",Boolean)],I_.prototype,"useLargeBackground",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],I_.prototype,"useAnimationBackground",void 0);_.V([_.N({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.Y("design:type",Boolean)],I_.prototype,"useRegularBackground",void 0);
_.V([_.N(),_.Y("design:type",Object)],I_.prototype,"ids",void 0);_.V([_.N(),_.Y("design:type",Object)],I_.prototype,"lottieAnimation",void 0);_.V([_.FM("#animation-background"),_.Y("design:type",HTMLDivElement)],I_.prototype,"animationBackground",void 0);_.V([_.bO("useAnimationBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I_.prototype,"maybeLoadAnimationBackground",null);
_.V([_.sD({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],I_);
_.l(I_,"yt-live-interactivity-component-background",function(){if(Wos===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;eHs===void 0&&(eHs=document.createElement("template"));var H=eHs;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Wos=p}p=Wos;return p},{mode:0});var L8=function(){var p=_.T.apply(this,arguments)||this;p.characterCount=0;p.showInputErrorMessage=!1;p.startQnaRequestInFlight=!1;p.modern=_.z("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};
_.Q(L8,_.T);_.R=L8.prototype;
_.R.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]]"}}}}}};
_.R.onCharacterCountChanged=function(p){var J,S,H,M,X=(S=_.e(this==null?void 0:(J=this.data)==null?void 0:J.creatorCallForQuestions,SIG))==null?void 0:(H=S.inputField)==null?void 0:(M=H.liveChatTextInputFieldRenderer)==null?void 0:M.maxCharacterLimit,Z,n;X!=null&&(p==null?void 0:(Z=p.detail)==null?void 0:Z.characterCount)!=null&&_.e(this==null?void 0:(n=this.data)==null?void 0:n.startButton,_.Za)&&(J=p.detail.characterCount>X,this.set("data.startButton.buttonRenderer.isDisabled",p.detail.characterCount===
0||J),this.showInputErrorMessage=J)};
_.R.onCloseClick=function(){_.cf(this.hostElement,"picker-cancelled");_.IV(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.R.onPickerCancelled=function(){var p=_.Jn(this.hostElement).querySelector("#qna-creator-text-input-field");p&&p.setLiveChatRichMessageInput(null)};
_.R.handleOpenQnaStartPanel=function(){var p=_.Jn(this.hostElement).querySelector("#qna-creator-text-input-field");p&&p.focus()};
_.R.handleStartButtonAction=function(p){var J=this;if(p.detail.actionName==="yt-service-request"&&(p.stopPropagation(),p=p.detail.args[1])){var S=_.Jn(this.hostElement).querySelector("#qna-creator-text-input-field"),H;(S==null?0:(H=S.liveChatRichMessageInput)==null?0:H.textSegments)&&S.liveChatRichMessageInput.textSegments.length!==0&&(H={rich_message:_.Nr(S.liveChatRichMessageInput)},_.pl(this.hostElement,[p,H]).then(function(){_.cf(J.hostElement,"picker-cancelled")}))}};
_.R.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.R.handleServiceRequestCompleted=function(p){var J;p=p==null?void 0:(J=p.detail)==null?void 0:J.data;(p==null?0:p.actions)&&p.actions.length>0?this.startQnaRequestInFlight=!1:_.IV(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.R.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
L8.prototype.handleServiceRequestError=L8.prototype.handleServiceRequestError;L8.prototype.handleServiceRequestCompleted=L8.prototype.handleServiceRequestCompleted;L8.prototype.handleServiceRequestSent=L8.prototype.handleServiceRequestSent;L8.prototype.onPickerCancelled=L8.prototype.onPickerCancelled;L8.prototype.onCharacterCountChanged=L8.prototype.onCharacterCountChanged;_.V([_.N(),_.Y("design:type",Object)],L8.prototype,"characterCount",void 0);
_.V([_.N(),_.Y("design:type",Object)],L8.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L8.prototype,"showInputErrorMessage",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L8.prototype,"startQnaRequestInFlight",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L8.prototype,"modern",void 0);_.V([_.N(),_.Y("design:type",Object)],L8.prototype,"buttonOverrides",void 0);
_.V([_.N(),_.Y("design:type",Object)],L8.prototype,"closeButtonOverrides",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],L8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.i1),_.Y("design:type",Object)],L8.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.fe.YtLiveChatItemBehavior),_.Y("design:type",_.O7)],L8.prototype,"ytLiveChatItemBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],L8.prototype,"ytActionHandlerBehavior",void 0);_.V([_.GI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],L8.prototype,"onCharacterCountChanged",null);_.V([_.GI("picker-cancelled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L8.prototype,"onPickerCancelled",null);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L8.prototype,"handleServiceRequestSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],L8.prototype,"handleServiceRequestCompleted",null);
_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],L8.prototype,"handleServiceRequestError",null);_.V([_.gw({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],L8);
_.l(L8,"yt-live-chat-qna-start-panel-renderer",function(){if(oXs===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;$y7===void 0&&($y7=document.createElement("template"));var H=$y7;S.call(J,H.content.cloneNode(!0),p.content.firstChild);oXs=p}p=oXs;return p},{mode:0});var QZs;var CZs;var pw=function(){return _.T.apply(this,arguments)||this};
_.Q(pw,_.T);pw.prototype.dismiss=function(){_.cf(this.hostElement,"yt-live-chat-error-message-dismiss")};
pw.prototype.edit=function(){_.cf(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.V([_.N(),_.Y("design:type",Object)],pw.prototype,"data",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],pw);
_.l(pw,"yt-live-chat-text-actions-error-message-renderer",function(){if(CZs===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;QZs===void 0&&(QZs=document.createElement("template"));var H=QZs;S.call(J,H.content.cloneNode(!0),p.content.firstChild);CZs=p}p=CZs;return p},{mode:0});var yw7;var Bdt;var Uyu;var sZv;var Jh=function(){var p=_.T.apply(this,arguments)||this;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.newnessDotEligible=!1;return p};
_.Q(Jh,_.T);Jh.prototype.sendReaction=function(){var p,J,S=((p=this.data)==null?void 0:p.emojiId)||((J=this.data)==null?void 0:J.emoteId),H;S&&((H=this.data)==null?0:H.shouldTriggerAnimation)&&_.IV(this.hostElement,"yt-create-user-reaction-animation",[S]);var M;(p=_.sa((M=this.data)==null?void 0:M.onTap))&&_.KI(p,this.hostElement);this.showNewnessDot&&_.IV(this.hostElement,"yt-hide-newness-dot")};
Jh.prototype.onClick=function(p){(!p||p.clientX||p.clientY)&&this.sendReaction()};
Jh.prototype.onKeyDown=function(p){p.key!=="Enter"&&p.key!==" "||p.repeat||this.sendReaction()};
_.vh.Object.defineProperties(Jh.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,J;return!!(((p=this.data)==null?0:p.emojiId)||((J=this.data)==null?0:J.emoteId))}}});
_.V([_.N(),_.Y("design:type",Object)],Jh.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Jh.prototype,"isDarkTheme",void 0);_.V([_.N(),_.Y("design:type",Object)],Jh.prototype,"newnessDotEligible",void 0);_.V([_.U("data.maybeShowNewnessDot"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Jh.prototype,"showNewnessDot",null);_.V([_.U("data.emojiId","data.emoteId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Jh.prototype,"useYtImage",null);
_.V([_.sD({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Jh);
_.l(Jh,"yt-reaction-control-panel-button-view-model",function(){if(sZv===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Uyu===void 0&&(Uyu=document.createElement("template"));var H=Uyu;S.call(J,H.content.cloneNode(!0),p.content.firstChild);sZv=p}p=sZv;return p},{mode:0});var gXa;var t5G;var Sl=function(){var p=_.T.apply(this,arguments)||this;p.reactionControlPanelExpanded=!1;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.newnessDotEligible=!1;return p};
_.Q(Sl,_.T);_.R=Sl.prototype;_.R.expandedButtonsChanged=function(){var p,J;_.K3(this.hostElement,{"--expanded-buttons-height":((J=(p=this.expandedButtonsData)==null?void 0:p.length)!=null?J:0)*36+"px"})};
_.R.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}}};
_.R.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.R.onMouseLeave=function(){var p=this;this.collapseTimer=setTimeout(function(){p.reactionControlPanelExpanded=!1},500)};
_.R.onFocusIn=function(){this.onMouseEnter()};
_.R.onFocusOut=function(){this.onMouseLeave()};
_.R.onCollapsedButtonFocusIn=function(){var p=this;setTimeout(function(){var J;(J=p.expandedButtons.querySelector("button"))==null||J.focus()},100)};
_.R.onCollapsedButtonFocusOut=function(p){p.stopPropagation()};
_.vh.Object.defineProperties(Sl.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var p,J;return _.T6.unsafeClone((p=this.liveReactionsData)==null?void 0:p.emojiButtonData)||((J=this.data)==null?void 0:J.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var p;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((p=this.data)==null||!p.maybeShowNewnessDot)}}});
Sl.prototype.expandedButtonsChanged=Sl.prototype.expandedButtonsChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Sl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.i1),_.Y("design:type",Object)],Sl.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Sl.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Sl.prototype,"reactionControlPanelExpanded",void 0);_.V([_.N({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Ch4}),_.Y("design:type",Object)],Sl.prototype,"liveReactionsData",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Sl.prototype,"isDarkTheme",void 0);_.V([_.N(),_.Y("design:type",Object)],Sl.prototype,"newnessDotEligible",void 0);
_.V([_.U("liveReactionsData","data.expandedButtons"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Sl.prototype,"expandedButtonsData",null);_.V([_.U("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.N({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Sl.prototype,"showNewnessDot",null);_.V([_.FM("#expanded-buttons"),_.Y("design:type",HTMLElement)],Sl.prototype,"expandedButtons",void 0);
_.V([_.bO("expandedButtonsData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sl.prototype,"expandedButtonsChanged",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Sl);
_.l(Sl,"yt-reaction-control-panel-view-model",function(){if(t5G===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;gXa===void 0&&(gXa=document.createElement("template"));var H=gXa;S.call(J,H.content.cloneNode(!0),p.content.firstChild);t5G=p}p=t5G;return p},{mode:0});var Hr=new _.pH("yt-live-chat"),hH7=Date.parse("2024-7-24"),MS=function(){var p=_.T.apply(this,arguments)||this;p.emojiManager=_.v7;p.newnessDotEligible=!1;p.newnessDotImpressionCounted=!1;p.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return p};
_.Q(MS,_.T);_.R=MS.prototype;_.R.emojiCustomizationEnabledChanged=function(){var p;((p=this.data)==null?0:p.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((p=Hr.getCreationTime("emoji-customization-count"))&&p<hH7&&Hr.set("emoji-customization-count","0"),p=Number(Hr.get("emoji-customization-count"))||0,p<3&&(this.newnessDotEligible=!0,Hr.set("emoji-customization-count",(p+1).toString())),this.newnessDotImpressionCounted=!0)};
_.R.hideNewnessDot=function(){this.newnessDotEligible=!1;Hr.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.R.handleReactionsMute=function(p){var J=_.C1(),S=_.KG(206221),H={checkboxData:{state:p?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};J&&_.l7(J,S,H);this.reactionsMuted=p};
_.R.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.R.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}}};
_.vh.Object.defineProperties(MS.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var p;return(!((p=this.liveReactionsData)==null||!p.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
MS.prototype.liveReactionsSettingChanged=MS.prototype.liveReactionsSettingChanged;MS.prototype.emojiCustomizationEnabledChanged=MS.prototype.emojiCustomizationEnabledChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.i1),_.Y("design:type",Object)],MS.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],MS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],MS.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",_.bP)],MS.prototype,"emojiManager",void 0);_.V([_.N(),_.Y("design:type",Object)],MS.prototype,"newnessDotEligible",void 0);_.V([_.N(),_.Y("design:type",Object)],MS.prototype,"newnessDotImpressionCounted",void 0);
_.V([_.N({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:yls}),_.Y("design:type",Boolean)],MS.prototype,"liveReactionsSetting",void 0);_.V([_.N({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Ch4}),_.Y("design:type",Object)],MS.prototype,"liveReactionsData",void 0);_.V([_.N({value:function(){var p=_.z("enable_lwe_web_mute"),J=Hr.get("allow-reactions");return J===void 0?!1:!J&&p}}),
_.Y("design:type",Boolean)],MS.prototype,"reactionsMuted",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MS.prototype,"liveReactionsEnabled",null);_.V([_.bO("data.emojiCustomizationEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MS.prototype,"emojiCustomizationEnabledChanged",null);
_.V([_.bO("liveReactionsEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MS.prototype,"liveReactionsSettingChanged",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],MS);
_.l(MS,"yt-reaction-control-panel-overlay-view-model",function(){if(Bdt===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;yw7===void 0&&(yw7=document.createElement("template"));var H=yw7;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Bdt=p}p=Bdt;return p},{mode:0});var Dys={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(p){var J=this.$.pickers.selected;if(J){_.Jn(this.hostElement).removeAttribute(J+"-open");var S="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(S="#picker-buttons",J==="emoji"&&_.Jn(this.hostElement).querySelector("#emoji-picker-button")&&(S="#emoji-picker-button"));if(S=_.Jn(this.hostElement).querySelector(S).querySelector("#"+J))S.active=!1}S=p;J==p&&(S=null);J!=
p&&_.Jn(this.hostElement).setAttribute(p+"-open","");this.$.pickers.selected=S;_.IV(this.hostElement,"yt-live-chat-picker-changed",[S])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Xu=function(){var p=_.T.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=_.z("kevlar_system_icons");p.tallerEmojiPicker=_.z("live_chat_taller_emoji_picker");
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};
_.Q(Xu,_.T);_.R=Xu.prototype;
_.R.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"}}}};
_.R.attached=function(){window.addEventListener("resize",this.onResize)};
_.R.detached=function(){window.removeEventListener("resize",this.onResize)};
_.R.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.R.sendMessage=function(){var p=this,J,S,H,M;return _.G(function(X){if(p.sendDisabled)return X.return();p.isTooltipVisible&&_.IV(p.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(p.data.sendButton&&p.data.sendButton.buttonRenderer){p.input.completeEmojis();J=p.data.sendButton.buttonRenderer.serviceEndpoint;if(!J)return X.return();H=((S=_.e(J,_.WOM))==null?void 0:S.clientIdPrefix)||"";M={client_message_id:H+String(p.numSentMessages++),rich_message:_.Nr(p.input.liveChatRichMessageInput)};
p.pendingMessageId=M.client_message_id;p.inReplyPanel&&(p.sendReplyMessageInFlight=!0);_.pl(p.hostElement,[J,M]);p.input.setLiveChatRichMessageInput(null)}_.UK(X)})};
_.R.handleSendButtonAction=function(p){p.detail.actionName==="yt-service-request"&&(p.stopPropagation(),this.sendMessage())};
_.R.onSendCompleted=function(p,J){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(p=this.get("timeoutDurationUsec",J.data))&&this.handleTimeout(Number(p)/1E3);this.errorMessage=this.get("errorMessage",J.data);this.pendingMessageId=""};
_.R.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.IV(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.R.handlePickerButtonToggle=function(p){p=p.detail.targetId;this.ytPickerBehavior.togglePicker_(p);if(p==="emoji")this.input.focus();else if(p==="qna-start-panel"){var J,S;(J=_.Jn(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(S=J.querySelector("#qna-creator-text-input-field"))==null||S.focus()}};
_.R.onComponentReplaced=function(p){var J,S;p.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((J=p.replacement.liveChatMessageInputRenderer)==null?0:(S=J.headerRenderer)==null?0:S.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.R.onEmojiSelect=function(p){this.input.focus();this.input.insertEmoji(p.detail)};
_.R.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.R.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.IV(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.IV(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.R.onOpenPopupAction=function(p,J){var S=this;J===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.IV(S.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.R.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.R.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.R.focusChanged=function(){this.maybeToggleCharacterCount()};
_.R.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};
_.R.computeId=function(){return this.data&&this.data.targetId||""};
_.R.computeSendDisabled=function(p,J,S,H){p=!!(!p||J&&p>J||H);(J=_.Jn(this.hostElement).querySelector("#send-button"))&&J.children.length&&(J.children[0].disabled=p);return p};
_.R.handleTimeout=function(p){this.timeoutDurationMs=this.timeoutMs=p;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.R.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};
_.R.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.R.onErrorMessageEdit=function(p){this.input.setLiveChatRichMessageInput(p.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.R.errorMessageChanged=function(){var p=this;_.dw(function(){_.IV(p.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.R.computeAuthorNameColor=function(p){var J;if(_.z("live_chat_author_name_color_usernames")&&(p==null?0:(J=p.authorName)==null?0:J.simpleText))return _.bRi(_.mOL(p.authorName.simpleText));if(_.z("live_chat_seed_color_usernames")&&(p==null?0:p.authorSeedColorArgb))return _.bRi(_.Hi(p.authorSeedColorArgb));if(_.z("live_chat_colored_usernames"))return"#cc0000";var S;return _.z("live_chat_simple_color_usernames")&&(p==null?0:(S=p.authorName)==null?0:S.simpleText)&&(p==null?0:p.authorUsernameColorLight)&&
(p==null?0:p.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Hi(p.authorUsernameColorDark):_.Hi(p.authorUsernameColorLight):""};
_.R.onIsTooltipVisibleChanged=function(){var p=_.Jn(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){p.hidden=!1;p.setAttribute("role","alert")},0):(p.hidden=!0,p.removeAttribute("role"))};
_.R.onFocusedChanged=function(p){this.inputFocused=p.detail.value};
_.vh.Object.defineProperties(Xu.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,J;return((p=this.data)==null?void 0:(J=p.pickers)==null?void 0:J.find(function(S){return S.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)}}});
Xu.prototype.onIsTooltipVisibleChanged=Xu.prototype.onIsTooltipVisibleChanged;Xu.prototype.errorMessageChanged=Xu.prototype.errorMessageChanged;Xu.prototype.onErrorMessageEdit=Xu.prototype.onErrorMessageEdit;Xu.prototype.onErrorMessageDismiss=Xu.prototype.onErrorMessageDismiss;Xu.prototype.focusChanged=Xu.prototype.focusChanged;Xu.prototype.characterCountChanged=Xu.prototype.characterCountChanged;Xu.prototype.onEmojiSelect=Xu.prototype.onEmojiSelect;Xu.prototype.handlePickerButtonToggle=Xu.prototype.handlePickerButtonToggle;
Xu.prototype.onSendError=Xu.prototype.onSendError;Xu.prototype.onSendCompleted=Xu.prototype.onSendCompleted;Xu.prototype.sendMessage=Xu.prototype.sendMessage;Xu.prototype.dataChanged=Xu.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Xu.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(Dys.YtPickerBehavior),_.Y("design:type",Object)],Xu.prototype,"ytPickerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Xu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RO.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],Xu.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"hasFiredInitialFocusActions",void 0);
_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"isBeforeFocusEnabled",void 0);_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"data",void 0);_.V([_.N({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",Object)],Xu.prototype,"id",void 0);_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"characterCount",void 0);_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"maxCharacterLimit",void 0);
_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"remainingCharacterCount",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Xu.prototype,"inputExpanded",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Xu.prototype,"inputFocused",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Xu.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.V([_.N(),_.Y("design:type",_.z3)],Xu.prototype,"participantsManager",void 0);
_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"buttonOverrides",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Xu.prototype,"inReplyPanel",void 0);_.V([_.U("characterCount, maxCharacterLimit, countdownActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xu.prototype,"sendDisabled",null);_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"countdownRatio",void 0);
_.V([_.U("countdownRatio"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Xu.prototype,"countdownStrokeDashOffset",null);_.V([_.U("countdownRatio"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xu.prototype,"countdownActive",null);_.V([_.U("data.interactionMessage"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xu.prototype,"hasInteractionMessage",null);
_.V([_.U("data.emojiPickerButton"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xu.prototype,"hasEmojiPickerButton",null);_.V([_.U("data, characterCount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xu.prototype,"showAvatar",null);_.V([_.U("data.pickers"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xu.prototype,"hasProductPickerPanelViewModel",null);
_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"errorMessage",void 0);_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"genericErrorMessage",void 0);_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"isTooltipVisible",void 0);_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"tooltipTimeout",void 0);_.V([_.U("data.onInitialFocusCommand"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Xu.prototype,"tooltipMessage",null);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Xu.prototype,"systemIcons",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Xu.prototype,"tallerEmojiPicker",void 0);_.V([_.U("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Xu.prototype,"authorNameColor",null);_.V([_.N(),_.Y("design:type",Object)],Xu.prototype,"sendReplyMessageInFlight",void 0);_.V([_.FM("#input"),_.Y("design:type",_.M1o)],Xu.prototype,"input",void 0);
_.V([_.FM("#count"),_.Y("design:type",HTMLElement)],Xu.prototype,"count",void 0);_.V([_.FM("#input-container"),_.Y("design:type",HTMLElement)],Xu.prototype,"inputContainer",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xu.prototype,"dataChanged",null);_.V([_.GI("yt-live-chat-send-message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Xu.prototype,"sendMessage",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,_.Yz]),_.Y("design:returntype")],Xu.prototype,"onSendCompleted",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xu.prototype,"onSendError",null);
_.V([_.GI("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xu.prototype,"handlePickerButtonToggle",null);_.V([_.GI("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xu.prototype,"onEmojiSelect",null);
_.V([_.bO("characterCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xu.prototype,"characterCountChanged",null);_.V([_.bO("inputFocused"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xu.prototype,"focusChanged",null);_.V([_.GI("yt-live-chat-error-message-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xu.prototype,"onErrorMessageDismiss",null);
_.V([_.GI("yt-live-chat-error-message-edit"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xu.prototype,"onErrorMessageEdit",null);_.V([_.bO("errorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xu.prototype,"errorMessageChanged",null);_.V([_.bO("isTooltipVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xu.prototype,"onIsTooltipVisibleChanged",null);
_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Xu);
_.l(Xu,"yt-live-chat-message-input-renderer",function(){if(Syy===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;JwG===void 0&&(JwG=document.createElement("template"));var H=JwG;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Syy=p}p=Syy;return p},{mode:0});var kUs;var Nd7;var RT=function(){var p=_.T.apply(this,arguments)||this;p.systemIcons=_.z("kevlar_system_icons");p.firedOnClickCommand=!1;p.inReplyPanel=!1;return p};
_.Q(RT,_.T);
RT.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"}}}};
RT.prototype.onButtonToggle=function(p){p.target.disabled||this.ytPickerBehavior.togglePicker_(p.detail.targetId)};
RT.prototype.onClick=function(){var p=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.IV(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return p.firedOnClickCommand=!1},5E3))};
_.vh.Object.defineProperties(RT.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?void 0:(J=p.panels)==null?void 0:J.find(function(S){return S.liveChatProductPickerPanelViewModel}))!==void 0}}});
RT.prototype.onButtonToggle=RT.prototype.onButtonToggle;_.V([_.B(Dys.YtPickerBehavior),_.Y("design:type",Object)],RT.prototype,"ytPickerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],RT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],RT.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],RT.prototype,"systemIcons",void 0);_.V([_.N({reflectToAttribute:!1}),_.Y("design:type",Object)],RT.prototype,"firedOnClickCommand",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],RT.prototype,"inReplyPanel",void 0);_.V([_.U("data.pickers"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],RT.prototype,"hasProductPickerPanelViewModel",null);
_.V([_.GI("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RT.prototype,"onButtonToggle",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],RT);
_.l(RT,"yt-live-chat-restricted-participation-renderer",function(){if(Nd7===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;kUs===void 0&&(kUs=document.createElement("template"));var H=kUs;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Nd7=p}p=Nd7;return p},{mode:0});var Kw=function(){var p=_.T.apply(this,arguments)||this;p.genericErrorMessage=_.aR("Error, try again.");p.inReplyPanel=!1;p.hideBorder=!1;return p};
_.Q(Kw,_.T);Kw.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}}}}}};
_.vh.Object.defineProperties(Kw,{template:{configurable:!0,enumerable:!0,get:function(){return x8d()}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Kw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Kw.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Kw.prototype,"genericErrorMessage",void 0);_.V([_.N(),_.Y("design:type",Object)],Kw.prototype,"inReplyPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Kw.prototype,"hideBorder",void 0);
_.V([_.sD({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Kw);_.l(Kw,"yt-live-chat-engagement-panel-input-renderer",function(){return x8d()},{mode:0});var Tdd,dyG;Tdd=_.KG(115994);dyG=_.KG(115993);_.ZH=function(p,J,S){var H=this;var M=S.dragDownAction;this.layer=0;this.JSC$23147_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.JSC$23147_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.fullscreen=!1;var X=_.bC();_.uq(X,Tdd,this.layer);_.uq(X,dyG,this.layer);this.dragDownAction=function(){M();_.dn(X,{visualElement:H.fullscreen?Tdd:dyG})};
this.gesture=new _.Nh(p,J,this.getConfig(!1),"pandown");this.attach()};
_.ZH.prototype.attach=function(){this.gesture.attach()};
_.ZH.prototype.detach=function(){this.gesture.detach()};
_.ZH.prototype.update=function(p){this.fullscreen=p;var J=this.gesture;p=this.getConfig(p);J.config=p};
_.ZH.prototype.getConfig=function(p){return p?this.JSC$23147_watchFullScreenConfig:this.JSC$23147_watchConfig};var uKs={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(p){if(p&&p.length==1&&Array.isArray(p[0].loggingUrls)){p=_.T6.unsafeClone(p[0]);var J=this.macros||{},S=this.getAdModuleClient_();if(!S)return _.SU();p.loggingUrls.forEach(function(H){if(H.baseUrl){var M=H.baseUrl;var X=J;X=X===void 0?{}:X;M=S.getOptions().includes("replaceUrlMacros")?_.Wcm(S,"replaceUrlMacros",{url:M,additionalMapping:X}):M;H.baseUrl=M}},this);
p=[p]}return _.pl(this.hostElement,p)},
getAdModuleClient_:function(){var p=_.IY(this);return p?(p=p.getPlayer())?new _.MH(p):null:null}}]};var lyp;var V5s;var nw=function(){return _.T.apply(this,arguments)||this};
_.Q(nw,_.T);nw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],nw.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],nw);
_.l(nw,"ytd-compact-tvfilm-entry-point-renderer",function(){if(V5s!==void 0)return V5s;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return V5s=p},{mode:1});var qyd;var ayG;var EXs;var GE=function(){return _.T.apply(this,arguments)||this};
_.Q(GE,_.T);GE.prototype.ready=function(){this.initializeDefs()};
GE.prototype.initializeDefs=function(){var p=this.meta.byKey("yt-icons"),J=_.Jn(p).querySelector("#star"),S=_.Jn(p).querySelector("#star_half");p=_.Jn(p).querySelector("#star_border");J&&this.defs.appendChild(J.cloneNode(!0));S&&this.defs.appendChild(S.cloneNode(!0));p&&this.defs.appendChild(p.cloneNode(!0))};
GE.prototype.percentChanged=function(){for(var p=this.rating;p.firstChild;)p.removeChild(p.firstChild);var J=Math.round(this.percent/10);p=Math.floor(J/2);J%=2;var S=5-p-J;this.appendStars("star",p,0);this.appendStars("star_half",J,p);this.appendStars("star_border",S,p+J)};
GE.prototype.appendStars=function(p,J,S){for(var H=0;H<J;H++){var M=(18+this.spacing)*(H+S),X=document.createElementNS("http://www.w3.org/2000/svg","use");_.dcP(X,"#"+p);X.setAttribute("x",""+M);X.setAttribute("y","0");this.rating.appendChild(X)}};
GE.prototype.percentChanged=GE.prototype.percentChanged;_.V([_.FM("#defs"),_.Y("design:type",HTMLElement)],GE.prototype,"defs",void 0);_.V([_.FM("#rating"),_.Y("design:type",HTMLElement)],GE.prototype,"rating",void 0);_.V([_.N(),_.Y("design:type",Number)],GE.prototype,"percent",void 0);_.V([_.N({value:6}),_.Y("design:type",Number)],GE.prototype,"spacing",void 0);_.V([_.N({value:_.dS.create("iron-meta",{type:"iconset"})}),_.Y("design:type",_.EM)],GE.prototype,"meta",void 0);
_.V([_.bO("percent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GE.prototype,"percentChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-ratings"})],GE);
_.l(GE,"ytd-ratings",function(){if(EXs!==void 0)return EXs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return EXs=p},{mode:1});var YyG=function(){return _.T.apply(this,arguments)||this};
_.Q(YyG,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],YyG.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],YyG.prototype,"data",void 0);_.V([_.gw({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],YyG);
_.l(YyG,"ytd-offer-review-renderer",function(){if(ayG!==void 0)return ayG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ayG=p},{mode:1});var bt=function(){var p=_.T.apply(this,arguments)||this;p.badges=[{textBadge:{label:_.aR("CC")}}];return p};
_.Q(bt,_.T);_.R=bt.prototype;_.R.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.R.dataChanged=function(){var p=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(p&&p.commandMetadata&&_.e(p.commandMetadata,_.rB)&&_.e(p.commandMetadata,_.rB).fireAutomatically)_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}});else{var J;p&&((J=_.e(p,_.rB))==null?0:J.fireAutomatically)&&_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}})}};
_.R.isEmptyContent=function(p){return this.isStorefrontEntryPointEmpty(p)&&this.shouldHideOfferModule(p)};
_.R.isStorefrontEntryPointEmpty=function(p){return!p||!p.storefrontEntryPoint};
_.R.shouldHideOfferModule=function(p){return!!p.hideVideoDetails};
_.R.isOfferModuleNavigationInactive=function(p){return!p.navigationEndpoint&&!p.serviceEndpoint};
_.R.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.vO().resolve(_.Ov).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
bt.prototype.dataChanged=bt.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],bt.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.Y("design:type",Boolean)],bt.prototype,"hidden",void 0);
_.V([_.N(),_.Y("design:type",Object)],bt.prototype,"badges",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bt.prototype,"dataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],bt);
_.l(bt,"ytd-movie-offer-module-renderer",function(){if(qyd!==void 0)return qyd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return qyd=p},{mode:1});var rwD;var jZd=function(){return _.T.apply(this,arguments)||this};
_.Q(jZd,_.T);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],jZd.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],jZd.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],jZd);
_.l(jZd,"ytd-media-masthead-renderer",function(){if(rwD!==void 0)return rwD;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return rwD=p},{mode:1});var wJv;_.ci(_.R4j,"course-metadata-view-model",{props:{data:_.jr,isOverlay:_.jr}});var mJ=function(){var p=_.T.apply(this,arguments)||this;p.isMetadataVisible=!1;p.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return p};
_.Q(mJ,_.T);_.R=mJ.prototype;
_.R.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"}}}}};
_.R.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.R.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.R.expanderChanged=function(){var p;if((p=this.data)==null?0:p.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.R.isExpandButtonToggled=function(){var p,J;return(J=_.e((p=this.data)==null?void 0:p.expandMetadataButton,_.f5))==null?void 0:J.isToggled};
_.R.onVisibilityButtonClick=function(){var p;if((p=this.data)==null?0:p.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.R.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
mJ.prototype.expanderChanged=mJ.prototype.expanderChanged;mJ.prototype.dataChanged=mJ.prototype.dataChanged;mJ.prototype.descriptionChanged=mJ.prototype.descriptionChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B([_.u1.YtActionHandlerBehavior]),_.Y("design:type",Object)],mJ.prototype,"actionHandlerBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],mJ.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],mJ.prototype,"isMetadataVisible",void 0);_.V([_.FM("#expander"),_.Y("design:type",Object)],mJ.prototype,"expander",void 0);_.V([_.bO("data.description"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mJ.prototype,"descriptionChanged",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mJ.prototype,"dataChanged",null);_.V([_.bO("isMetadataVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mJ.prototype,"expanderChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],mJ);
_.l(mJ,"ytd-tvfilm-offer-module-renderer",function(){if(wJv!==void 0)return wJv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return wJv=p},{mode:2});var xyD;var Fu=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return p};
_.Q(Fu,_.T);Fu.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Fu.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Fu.prototype.onThumbnailTap=function(p){this.data&&this.data.serviceEndpoint&&(_.vO().resolve(_.Ov).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),p.stopPropagation())};
Fu.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Fu.prototype.dataChanged=Fu.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Fu.prototype,"rendererBehaviors",void 0);_.V([_.B([_.u1.YtActionHandlerBehavior]),_.Y("design:type",Object)],Fu.prototype,"actionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Fu.prototype,"data",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fu.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Fu);
_.l(Fu,"ytd-unlimited-offer-module-renderer",function(){if(xyD!==void 0)return xyD;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return xyD=p},{mode:1});var cwG;var Iyq;var vr=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return p};
_.Q(vr,_.T);vr.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
vr.prototype.handleRelatedChipCommand=function(p){p=_.e(p,AVu);var J=p.contents;J?_.L1(this.hostElement,"yt-item-section-replace-action",[J,p.targetSectionIdentifier]):_.L1(this.hostElement,"yt-item-section-continuation-action",[p.continuationData,p.targetSectionIdentifier])};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],vr.prototype,"actionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],vr.prototype,"data",void 0);_.V([_.sD({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],vr);
_.l(vr,"yt-related-chip-cloud-renderer",function(){if(Iyq===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;cwG===void 0&&(cwG=document.createElement("template"));var H=cwG;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Iyq=p}p=Iyq;return p},{mode:2});var fw=function(){var p=_.T.apply(this,arguments)||this;p.isTwoColumns=!0;p.watchFeedBigThumbs=_.z("kevlar_watch_feed_big_thumbs");p.watchFeedBigThumbsOnLockup=_.z("web_watch_next_big_thumbs");p.watchNextGridHideChips=_.z("kevlar_watch_grid_hide_chips");p.eligibleToSwitchToGrid=!0;p.disableShortsShelfHeightOverride=_.z("web_shorts_wn_shelf_ratio_tuning");p.isWatchNextGrid=!1;p.reuseComponents=!_.z("kevlar_watch_grid");p.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return p};
_.Q(fw,_.T);_.R=fw.prototype;
_.R.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.z("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}}};
_.R.getItemsPath=function(){return"data.results"};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.R.created=function(){this.ytLazyListBehavior.initialCount=1};
_.R.ready=function(){_.K3(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.R.resultsChanged=function(){if(this.data&&this.data.results){for(var p=this.data.results,J=null,S=null,H=0;H<p.length;H++)p[H].relatedChipCloudRenderer?J=p[H].relatedChipCloudRenderer:p[H].itemSectionRenderer&&(S=p[H].itemSectionRenderer);if(J&&S)for(this.set("data.continuations",[]),p=_.e(J.content,_.fXU).chips,J=0;J<p.length;J++)if(H=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",p[J]),H.loadCached||!H.contents){H.contents=S.contents;break}}};
_.R.dataChanged=function(){var p=this,J;if((J=this.data)!=null&&J.results&&this.hasAllowedInstreamAd(this.playerData)){if(J=this.data.results.filter(function(n){return!!n.promotedSparklesWebRenderer})){for(var S=0;S<J.length;S++){var H=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",J[S]);
if(H)for(var M=0;M<H.length;M++)H[M]&&H[M].baseUrl&&_.Xb(H[M].baseUrl)}this.set("data.results",this.data.results.filter(function(n){return!n.promotedSparklesWebRenderer}))}if(J=this.data.results.filter(function(n){return!!p.getSparklesAd(n)})){J=_.K(J);
for(M=J.next();!M.done;M=J.next())if(H=S=void 0,M=(S=this.getSparklesAd(M.value))==null?void 0:(H=S.errorCommand)==null?void 0:H.loggingUrls)for(S=_.K(M),H=S.next();!H.done;H=S.next())(H=H.value)&&H.baseUrl&&_.Xb(H.baseUrl);var X,Z;this.set("data.results",(X=this.data)==null?void 0:(Z=X.results)==null?void 0:Z.filter(function(n){return!n.adSlotRenderer}))}}};
_.R.getSparklesAd=function(p){var J,S;p=_.e((J=p.adSlotRenderer)==null?void 0:(S=J.fulfillmentContent)==null?void 0:S.fulfilledLayout,_.dP8);return _.e(p==null?void 0:p.renderingContent,Ngq)};
_.R.hasAllowedInstreamAd=function(p){p=this.get("adPlacements",p)||[];for(var J=0;J<p.length;J++){var S=this.get("adPlacementRenderer.config.adPlacementConfig",p[J]);if(S&&S.suppressDisplayAd)return!0}return!1};
_.R.computeHideUnlimitedOfferModule=function(p,J){return p&&p.offerModule&&J&&p.offerModule.unlimitedOfferModuleRenderer&&p.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(J)?!0:!1};
_.R.hideUnlimitedOfferModuleChanged=function(){var p=_.Jn(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");p&&(p.hidden=this.hideUnlimitedOfferModule)};
_.R.updateLockupContainerTypes=function(p){if(this.eligibleToSwitchToGrid){var J;(J=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||J.forEach(function(S){S.containerType=p})}};
_.R.computeHideTvfilmOfferModule=function(p,J){var S,H;return!!((p==null?0:(S=p.offerModule)==null?0:(H=S.tvfilmOfferModuleRenderer)==null?0:H.clientShouldSuppressIfCompanionAdDisplayed)&&J&&this.hasCompanionAds(J))};
_.R.hideTvfilmOfferModuleChanged=function(){var p=_.Jn(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");p&&(p.hidden=this.hideTvfilmOfferModule)};
_.R.hasCompanionAds=function(p){p=this.get("adPlacements",p)||[];for(var J=0;J<p.length;J++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",p[J]))return!0;var S=void 0,H=void 0,M=void 0;if(!_.z("web_watch_top_banner_companion_check_killswitch")&&((S=p[J])==null?0:(H=S.adPlacementRenderer)==null?0:(M=H.renderer)==null?0:M.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.R.hasSuppressedResults=function(p){return p==null?!0:p.filter(function(J){return!J.continuationItemRenderer&&!J.compactPromotedVideoRenderer&&!J.promotedSparklesWebRenderer}).length===0};
_.R.computeShowButton=function(p,J){return this.isWatchNextGrid?p:p||this.hasSuppressedResults(J)};
_.R.showButtonChanged=function(){if(this.isWatchNextGrid){var p=_.Jn(this.hostElement).querySelector("ytd-rich-grid-renderer");p&&this.showButton!==null&&(p.continuationShowButton=this.showButton)}else{p=_.Jn(this.hostElement).querySelector("yt-next-continuation");var J=_.Jn(this.hostElement).querySelector("ytd-continuation-item-renderer"),S=_.Jn(this.hostElement).querySelector("ytd-item-section-renderer");p&&(p.showButton=this.showButton);J&&(J.showButton=this.showButton);S&&(S.continuationShowButton=
this.showButton)}};
_.R.continuationTap=function(p){var J;if(((J=this.data)==null?void 0:J.continuations)!=null&&p.target.tagName==="TP-YT-PAPER-BUTTON")for(p=this.data.continuations,J=0;J<p.length;J++)p[J].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(p[J].nextContinuationData||{})};
_.R.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("shown-items-changed",this.shownItems))};
_.vh.Object.defineProperties(fw.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.shownItems)==null||!p.some(function(J){return!!J.lockupViewModel||J.compactVideoRenderer}))}}});
fw.prototype.shownItemsChangedForBinding=fw.prototype.shownItemsChangedForBinding;fw.prototype.showButtonChanged=fw.prototype.showButtonChanged;fw.prototype.hideTvfilmOfferModuleChanged=fw.prototype.hideTvfilmOfferModuleChanged;fw.prototype.updateLockupContainerTypes=fw.prototype.updateLockupContainerTypes;fw.prototype.hideUnlimitedOfferModuleChanged=fw.prototype.hideUnlimitedOfferModuleChanged;fw.prototype.dataChanged=fw.prototype.dataChanged;fw.prototype.resultsChanged=fw.prototype.resultsChanged;
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.y$.YtLazyListBehavior),_.Y("design:type",Object)],fw.prototype,"ytLazyListBehavior",void 0);_.V([_.B(_.oM.YtNextContinuationBehavior),_.Y("design:type",Object)],fw.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.B(_.$W),_.Y("design:type",Object)],fw.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],fw.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],fw.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],fw.prototype,"playerData",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],fw.prototype,"autoFill",void 0);_.V([_.N({value:60}),_.Y("design:type",Number)],fw.prototype,"targetFramerate",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],fw.prototype,"isTwoColumns",void 0);_.V([_.N(),_.Y("design:type",Object)],fw.prototype,"shownItems",void 0);_.V([_.N({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.Y("design:type",Boolean)],fw.prototype,"hideUnlimitedOfferModule",void 0);_.V([_.N({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.Y("design:type",Boolean)],fw.prototype,"hideTvfilmOfferModule",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],fw.prototype,"watchFeedBigThumbs",void 0);_.V([_.N(),_.Y("design:type",Object)],fw.prototype,"watchFeedBigThumbsOnLockup",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],fw.prototype,"watchNextGridHideChips",void 0);_.V([_.N(),_.Y("design:type",Object)],fw.prototype,"eligibleToSwitchToGrid",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],fw.prototype,"disableShortsShelfHeightOverride",void 0);
_.V([_.N({selector:_.gn,reflectToAttribute:!0}),_.Y("design:type",Object)],fw.prototype,"isGridViewEnabled",void 0);_.V([_.N({selector:_.pck,reflectToAttribute:!0}),_.Y("design:type",Object)],fw.prototype,"isSwatcherooActive",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],fw.prototype,"showMoreButton",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],fw.prototype,"isWatchNextGrid",void 0);
_.V([_.N({computed:"computeShowButton(showMoreButton, data.results)"}),_.Y("design:type",Boolean)],fw.prototype,"showButton",void 0);_.V([_.An("data.results.*"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fw.prototype,"resultsChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fw.prototype,"dataChanged",null);
_.V([_.bO("hideUnlimitedOfferModule"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fw.prototype,"hideUnlimitedOfferModuleChanged",null);_.V([_.U("isGridViewEnabled","containsLockups","data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],fw.prototype,"lockupContainerType",null);
_.V([_.bO("lockupContainerType","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[Number]),_.Y("design:returntype")],fw.prototype,"updateLockupContainerTypes",null);_.V([_.bO("hideTvfilmOfferModule"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fw.prototype,"hideTvfilmOfferModuleChanged",null);_.V([_.bO("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fw.prototype,"showButtonChanged",null);
_.V([_.bO("shownItems"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fw.prototype,"shownItemsChangedForBinding",null);_.V([_.U("shownItems"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],fw.prototype,"containsLockups",null);
_.l(fw,"ytd-watch-next-secondary-results-renderer",function(){if(lyp===void 0){var p=document.createElement("template");_.C(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" 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(_.r().content.cloneNode(!0),
p.content.firstChild);lyp=p}p=lyp;return p},{mode:1});var Lo7;var O1=function(){var p=_.T.apply(this,arguments)||this;p.isCollapsed=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return p};
_.Q(O1,_.T);_.R=O1.prototype;_.R.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.onDonateTap=function(){var p=this.get("data.donateButton.buttonRenderer.command");if(p){var J=_.C1(),S=this.get("data.donateButton.buttonRenderer.trackingParams");J&&S&&_.l7(J,_.Az(S));this.ytOpenPopupBehavior.openPopup(p)}};
_.R.onShowMore=function(){this.isCollapsed=!1;var p=_.C1(),J=this.get("data.expandButton.buttonRenderer.trackingParams");p&&J&&_.l7(p,_.Az(J))};
_.R.onShowLess=function(){this.isCollapsed=!0};
_.R.dataChanged=function(){_.K3(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.R.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.R.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()};
_.R.handleOpenPopupAction=function(p){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",p)&&_.IV(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.R.computeHeaderBackgroundUrl=function(p,J){if(p)return J?p.headerBackgroundDarkUrl:p.headerBackgroundUrl};
_.R.isProgressBarVisible=function(p){return!(!p||p.progress===void 0)};
_.R.headerBackgroundClass=function(){return _.jn("HTML_DIR")==="rtl"?"flip":""};
O1.prototype.dataChanged=O1.prototype.dataChanged;_.V([_.B(_.T_.YtOpenPopupBehavior),_.Y("design:type",Object)],O1.prototype,"ytOpenPopupBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],O1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],O1.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],O1.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],O1.prototype,"isCollapsed",void 0);_.V([_.N({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.Y("design:type",String)],O1.prototype,"headerBackgroundUrl",void 0);_.V([_.N(),_.Y("design:type",Boolean)],O1.prototype,"isDarkTheme",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],O1.prototype,"dataChanged",null);
_.V([_.gw({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],O1);
_.l(O1,"ytd-donation-shelf-renderer",function(){if(Lo7!==void 0)return Lo7;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Lo7=p},{mode:1});var pht;var JSy=function(){return _.T.apply(this,arguments)||this};
_.Q(JSy,_.T);_.V([_.N(),_.Y("design:type",Object)],JSy.prototype,"data",void 0);_.V([_.gw({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],JSy);
_.l(JSy,"ytd-donation-unavailable-renderer",function(){if(pht!==void 0)return pht;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return pht=p},{mode:1});var SLd;var Ah=function(){return _.T.apply(this,arguments)||this};
_.Q(Ah,_.T);Ah.prototype.computeIconType=function(p){return p?"yt-icons:"+p.toLowerCase():null};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ah.prototype,"data",void 0);_.V([_.gw({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Ah);
_.l(Ah,"ytd-limited-state-message-renderer",function(){if(SLd!==void 0)return SLd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return SLd=p},{mode:1});var Hzs;var Pr=function(){return _.T.apply(this,arguments)||this};
_.Q(Pr,_.T);Pr.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Pr.prototype.onTap=function(p){var J=this.data&&this.data.endpoint;J&&!_.jK(_.Er(p),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.cf(this.hostElement,"yt-navigate",{endpoint:J})};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Pr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Pr.prototype,"data",void 0);_.V([_.gw({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Pr);
_.l(Pr,"ytd-autotagging-metadata-renderer",function(){if(Hzs!==void 0)return Hzs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Hzs=p},{mode:1});var MTv;var zE=function(){return _.T.apply(this,arguments)||this};
_.Q(zE,_.T);zE.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],zE.prototype,"data",void 0);_.V([_.gw({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],zE);
_.l(zE,"ytd-autotagging-metadata-row-renderer",function(){if(MTv!==void 0)return MTv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return MTv=p},{mode:1});var Xh7;var iz7;var $7=function(){var p=_.T.apply(this,arguments)||this;p.engagementPanelContent=!1;return p};
_.Q($7,_.T);$7.prototype.computeHasDividerLine=function(p,J){return p&&!J};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],$7.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.Y("design:type",Boolean)],$7.prototype,"hasDividerLine",void 0);_.V([_.N(),_.Y("design:type",Object)],$7.prototype,"engagementPanelContent",void 0);
_.V([_.gw({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],$7);
_.l($7,"ytd-metadata-row-header-renderer",function(){if(iz7!==void 0)return iz7;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return iz7=p},{mode:1});var Rts;var oT=function(){return _.T.apply(this,arguments)||this};
_.Q(oT,_.T);oT.prototype.computeHasDividerLine=function(p){return p};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],oT.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Y("design:type",Boolean)],oT.prototype,"hasDividerLine",void 0);_.V([_.gw({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],oT);
_.l(oT,"ytd-metadata-row-renderer",function(){if(Rts!==void 0)return Rts;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Rts=p},{mode:1});var KNt;var ZzG=function(){return _.T.apply(this,arguments)||this};
_.Q(ZzG,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ZzG.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ZzG.prototype,"data",void 0);_.V([_.gw({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],ZzG);
_.l(ZzG,"ytd-metadata-with-image-row-renderer",function(){if(KNt!==void 0)return KNt;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return KNt=p},{mode:1});var ndT;var el=function(){var p=_.T.apply(this,arguments)||this;p.rounded=!0;p.fixie=!1;p.fullWidth=!1;return p};
_.Q(el,_.T);_.R=el.prototype;_.R.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.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(J){p.onEndpointLinkKeyPress(J)}))};
_.R.onEndpointLinkKeyPress=function(p){p.target===this.endpointLink&&p.keyCode===13&&_.cf(this.hostElement,"click")};
_.R.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var p;if((p=this.data)==null?0:p.endpoint)_.JP(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.R.onYtNavigate=function(p){this.endpointHref||(p.stopPropagation(),p.preventDefault())};
_.R.onInformationButtonContainerClick=function(p){p.target.id!=="information-button-container"&&(p.stopPropagation(),p.preventDefault())};
_.R.computeStyle=function(p){return p};
_.R.computeIsThumbnailStyle=function(p){return p==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.R.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}};
_.R.computeThumbnailObjectFit=function(p){switch(p){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.vh.Object.defineProperties(el.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}}});
el.prototype.onYtNavigate=el.prototype.onYtNavigate;el.prototype.onClick=el.prototype.onClick;el.prototype.onDataChanged=el.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],el.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],el.prototype,"componentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],el.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],el.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],el.prototype,"componentStyle",void 0);_.V([_.N({computed:"computeIsThumbnailStyle(data.style)"}),_.Y("design:type",Boolean)],el.prototype,"isThumbnailStyle",void 0);_.V([_.N({computed:"computeThumbnailObjectFit(data.style)"}),_.Y("design:type",String)],el.prototype,"thumbnailObjectFit",void 0);
_.V([_.N({computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],el.prototype,"thumbnailWidth",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],el.prototype,"rounded",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],el.prototype,"fixie",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],el.prototype,"fullWidth",void 0);_.V([_.FM("#endpoint-link"),_.Y("design:type",HTMLAnchorElement)],el.prototype,"endpointLink",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],el.prototype,"onDataChanged",null);_.V([_.U("data.endpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],el.prototype,"endpointHref",null);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],el.prototype,"onClick",null);
_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],el.prototype,"onYtNavigate",null);_.V([_.gw({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],el);
_.l(el,"ytd-rich-metadata-renderer",function(){if(ndT!==void 0)return ndT;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ndT=p},{mode:_.Jz("kevlar_poly_si_batch_j075")?1:2});var GdG;var Wr=function(){var p=_.T.apply(this,arguments)||this;p.fixie=!1;p.fullWidth=!1;return p};
_.Q(Wr,_.T);Wr.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Wr.prototype.computeHasDividerLine=function(p){return p};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Wr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Wr.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Y("design:type",Boolean)],Wr.prototype,"hasDividerLine",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Wr.prototype,"fixie",void 0);_.V([_.N(),_.Y("design:type",Object)],Wr.prototype,"fullWidth",void 0);
_.V([_.gw({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Wr);
_.l(Wr,"ytd-rich-metadata-row-renderer",function(){if(GdG!==void 0)return GdG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return GdG=p},{mode:1});var QA=function(){var p=_.T.apply(this,arguments)||this;p.engagementPanelContent=!1;p.fixie=!1;p.fullWidth=!1;return p};
_.Q(QA,_.T);
QA.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"}}}};
QA.prototype.computeCollapsibleItems=function(p,J,S){return p===void 0||J===void 0||S===void 0||S?[]:p.slice(J)};
QA.prototype.computeAlwaysShownItems=function(p,J){return p&&p.length?p.slice(0,J):[]};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],QA.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],QA.prototype,"collapsed",void 0);
_.V([_.N({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.Y("design:type",Array)],QA.prototype,"alwaysShownItems",void 0);_.V([_.N({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.Y("design:type",Array)],QA.prototype,"collapsibleItems",void 0);_.V([_.N(),_.Y("design:type",Object)],QA.prototype,"engagementPanelContent",void 0);_.V([_.N(),_.Y("design:type",Object)],QA.prototype,"fixie",void 0);
_.V([_.N(),_.Y("design:type",Object)],QA.prototype,"fullWidth",void 0);_.V([_.gw({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],QA);
_.l(QA,"ytd-metadata-row-container-renderer",function(){if(Xh7!==void 0)return Xh7;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Xh7=p},{mode:1});var bzt;var Cw=function(){var p=_.T.apply(this,arguments)||this;p.currentPageUrl="";p.baseUrl="";p.isHiddenByUser=null;p.hidden=!1;p.showAboveScrim=!1;p.watchNextGrid=_.z("kevlar_watch_grid");p.modernButtons=_.z("web_modern_buttons");p.roundedContainer=!0;p.noBorder=!1;p.roundBackground=!_.z("live_chat_round_background_killswitch");p.overflowHideChat=_.z("live_chat_overflow_hide_chat");p.forceDarkTheme=!1;p.theaterWatchWhile=!1;p.isListeningForPlayerProgress=!1;p.JSC$23218_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};
_.Q(Cw,_.T);_.R=Cw.prototype;_.R.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.L1(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.R.created=function(){var p=this;this.handleIframeEventListener=function(J){p.handleIframeEvent(J)};
this.handleKeyboardEventListener=function(J){p.handleKeyboardEvent(J)};
this.JSC$23218_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23218_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23218_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23218_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23218_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.R.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()};
_.R.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};
_.R.computeBaseUrl=function(p){var J="/live_chat";this.isChatReplay()&&(J="/live_chat_replay");return _.Ff(_.mb(_.bl(_.I7(p),J),null),"").toString()};
_.R.dataChanged=function(){_.z("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.R.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var p=this.url;if(this.isChatReplay()&&this.player){var J=Math.floor(this.player.getProgressState().current*1E3);p=_.pU(_.I7(p),"playerOffsetMs",J.toString()).toString()}J=this.chatframe;try{var S=p==="about:blank"?_.jDU:_.Vd(p),H=J.contentDocument.location,M=_.ry(S);M!==void 0&&H.replace(M)}catch(X){J.src=p}}};
_.R.collapsedChanged=function(){_.cf(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.R.handleIframeEvent=function(p){if(p&&this.baseUrl.startsWith(p.origin)&&p.source===this.chatframe.contentWindow&&_.Ei(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 J=_.vO().resolve(_.F9(_.Va$));if(J){var S=p.ports,H;S&&S.length&&(H=function(){S[0].postMessage({})});
p=p.data["yt-show-feedback-dialog"];J.showFeedbackDialog(p.customProductData,p.feedbackContent,H,p.bucket)}}else if(p.data["yt-show-survey"])_.cf(this.hostElement,"yt-show-survey",p.data["yt-show-survey"]);else if(p.data["yt-purchase-membership"])_.vO().resolve(_.Ov).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"])_.OI();
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&&(J={cpn:this.player.getVideoData().cpn},_.YQ("liveChatBeingModerated",J))};
_.R.attachLiveChatResponseVeTrackingParams=function(p){p=_.Az(p);var J=_.C1(),S=_.Id("liveChatRenderer.trackingParams",this.data);J&&S&&_.kO(J,_.Az(S),p)};
_.R.handleBuyflowMessages=function(p){var J=p.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,S=p.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,H=p.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.N8g(_.x8(_.as),J.replace(/-/g,"+").replace(/_/g,"/"),function(M){p.ports[0].postMessage({success:!0,buyFlowResponse:M})},void 0,function(M){p.ports[0].postMessage({success:!1,
error:M&&M.message||"Buyflow rejected without error."})},_.Gv().get("hl"),void 0,function(){p.ports[0].postMessage({closed:!0})},S,H)};
_.R.setupPlayerProgressRelay=function(){var p=this;if(!this.isListeningForPlayerProgress){var J=_.Lb();J!=null&&J.getPlayerPromise&&(J.getPlayerPromise().then(function(S){p.playerApiReady(S)}),this.isListeningForPlayerProgress=!0)}};
_.R.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.R.playerApiReady=function(p){this.setPlayer(p)};
_.R.playerProgressHandler=function(){if(this.player){var p=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":p.current})}};
_.R.playerAdStartHandler=function(p){this.postToContentWindow({"yt-player-ad-start":p})};
_.R.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.R.playerStateChangeHandler=function(p){this.postToContentWindow({"yt-player-state-change":p})};
_.R.setPlayer=function(p){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23218_playerEvents);p&&(this.player=p,this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$23218_playerEvents),_.cf(this.hostElement,"player-api-ready"))};
_.R.liveChatPageUrl=function(p,J,S,H){return!S||J?"about:blank":S.liveChatRenderer?(J=_.I7(this.currentPageUrl).JSC$10187_queryData_,yq4(J),p=_.I7(p),J.add("continuation",S.liveChatRenderer.continuations[0].reloadContinuationData.continuation),S=_.kt()==="USER_INTERFACE_THEME_DARK",(H||S)&&J.add("dark_theme","true"),_.mb(p,J),H=_.I7(p.toString()),S=H.JSC$10187_queryData_,"SESSION_INDEX"in _.Yv&&(S.add("authuser",_.jn("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Yv&&S.add("pageId",_.jn("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Yv&&S.add("sdc",_.jn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),H.toString()):""};
_.R.isCollapsed=function(p,J){return J!==null?J:this.isChatReplay()||p&&p.conversationBarRenderer&&p.conversationBarRenderer.availabilityMessage?!0:p?p.liveChatRenderer?p.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.z("live_chat_hide_premiere_replay_message")||p.conversationBarRenderer&&p.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.R.isHidden=function(p,J,S){var H=J&&J.conversationBarRenderer&&J.conversationBarRenderer.availabilityMessage,M=J&&J.liveChatRenderer&&J.liveChatRenderer.showHideButton,X=J&&J.liveChatRenderer&&J.liveChatRenderer.showButton;return S&&p&&!H&&!X||!S&&p&&!H&&!M?!0:J&&J.liveChatRenderer&&J.liveChatRenderer.initialDisplayState?J.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.R.computeButtonOverride=function(p,J){if(p&&J)return{type:"outline"}};
_.R.setCollapsedState=function(p){_.e(p,_.lN8)&&((this.isHiddenByUser=!!_.e(p,_.lN8).collapsed)||_.IV(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.R.forwardReduxActionToIframe=function(p){this.postToContentWindow({"yt-live-chat-forward-redux-action":p})};
_.R.onLoopRangeChange=function(p){this.showAboveScrim=!(p==null||!p.postId)};
_.R.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.R.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.R.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.R.sendDarkThemePostMessage=function(p){this.postToContentWindow({"yt-live-chat-set-dark-theme":p})};
_.R.onLiveChatBuyFlowCallback=function(p){this.postToContentWindow({"yt-live-chat-buy-flow-callback":p})};
_.R.handleKeyboardEvent=function(p){(0,_.T6.containsValue)(sJs,p.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:p.type,keyCode:p.keyCode}})};
_.R.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.R.postToContentWindow=function(p){if(this.isFrameReady)try{var J=window.location.protocol+"//"+window.location.host,S;(S=this.chatframe)!=null&&S.contentWindow?this.chatframe.contentWindow.postMessage(p,J):_.xQ(new _.TG("Tried posting a message to an iframe with no content window",p))}catch(H){_.jD(H)}};
_.R.shouldHideChatFrame=function(p){return p&&_.z("hide_live_chat_button_when_collapsed")};
_.vh.Object.defineProperties(Cw.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.z("live_chat_overflow_hide_chat")||_.z("web_watch_chat_hide_button_killswitch"))return _.z("live_chat_overflow_hide_chat");var p,J,S,H;return!!((p=this.data)==null?0:(J=p.liveChatRenderer)==null?0:(S=J.header)==null?0:(H=S.liveChatHeaderRenderer)==null?0:H.collapseButton)}}});
Cw.prototype.collapsedChanged=Cw.prototype.collapsedChanged;Cw.prototype.urlChanged=Cw.prototype.urlChanged;Cw.prototype.dataChanged=Cw.prototype.dataChanged;Cw.prototype.onShowHideChat=Cw.prototype.onShowHideChat;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Cw.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Cw.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],Cw.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.T_.YtOpenPopupBehavior),_.Y("design:type",Object)],Cw.prototype,"ytOpenPopupBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Cw.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Cw.prototype,"currentPageUrl",void 0);
_.V([_.N({computed:"computeBaseUrl(currentPageUrl,data)"}),_.Y("design:type",Object)],Cw.prototype,"baseUrl",void 0);_.V([_.N({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.Y("design:type",String)],Cw.prototype,"url",void 0);_.V([_.N(),_.Y("design:type",Object)],Cw.prototype,"isHiddenByUser",void 0);_.V([_.N({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.Y("design:type",Object)],Cw.prototype,"hidden",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.Y("design:type",Boolean)],Cw.prototype,"collapsed",void 0);_.V([_.N({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.Y("design:type",Boolean)],Cw.prototype,"hideChatFrame",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"showAboveScrim",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"watchNextGrid",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cw.prototype,"modernButtons",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"roundedContainer",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"noBorder",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cw.prototype,"roundBackground",void 0);
_.V([_.N({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.Y("design:type",Object)],Cw.prototype,"toggleButtonOverride",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cw.prototype,"overflowHideChat",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"forceDarkTheme",void 0);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Cw.prototype,"enableShowWithoutHideChatButton",null);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"theaterWatchWhile",void 0);_.V([_.FM("#chatframe"),_.Y("design:type",HTMLIFrameElement)],Cw.prototype,"chatframe",void 0);_.V([_.GI("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"onShowHideChat",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"dataChanged",null);
_.V([_.bO("url"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"urlChanged",null);_.V([_.bO("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"collapsedChanged",null);_.V([_.gw({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Cw);
_.l(Cw,"ytd-live-chat-frame",function(){if(bzt!==void 0)return bzt;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return bzt=p},{mode:1});var mXu;var yA=function(){var p=_.T.apply(this,arguments)||this;p.modern=_.z("web_modern_buttons");p.buttonOverrides={style:"call-to-action",type:"filled"};return p};
_.Q(yA,_.T);yA.prototype.dataChanged=function(){this.data&&(this.data.impressionCommand&&this.data.impressionCommand.clickTrackingParams&&delete this.data.impressionCommand.clickTrackingParams,this.macroReplacementBehavior.sendServiceRequestAction([this.data.impressionCommand]),this.data.backgroundColor&&(this.enableColors=!0,this.hostElement.style.backgroundColor=_.yi(this.data.backgroundColor)))};
yA.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var p=this.getFormattedStringLoggingDirectives(this.data.headline);p&&this.rendererBehavior.logExplicitClick(p)}};
yA.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var p=this.getFormattedStringLoggingDirectives(this.data.description);p&&this.rendererBehavior.logExplicitClick(p)}};
yA.prototype.getFormattedStringLoggingDirectives=function(p){return p&&p.runs&&p.runs.length>0&&p.runs[0]&&p.runs[0].loggingDirectives?p.runs[0].loggingDirectives:null};
yA.prototype.dataChanged=yA.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yA.prototype,"rendererBehavior",void 0);_.V([_.B(uKs.YtMacroReplacementBehavior),_.Y("design:type",Object)],yA.prototype,"macroReplacementBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yA.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],yA.prototype,"navigationEndpoint",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yA.prototype,"enableColors",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yA.prototype,"modern",void 0);_.V([_.N(),_.Y("design:type",Object)],yA.prototype,"buttonOverrides",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yA.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],yA);
_.l(yA,"ytd-action-basic-immersive-content-renderer",function(){if(mXu!==void 0)return mXu;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return mXu=p},{mode:1});var FNv;var vdu;var Br=function(){return _.T.apply(this,arguments)||this};
_.Q(Br,_.T);Br.prototype.dataChanged=function(){var p;((p=this.data)==null?void 0:p.backgroundColor)!==void 0&&_.K3(this.hostElement,{"--bgu-color":_.yi(this.data.backgroundColor)})};
Br.prototype.onImageTileClick=function(){var p;((p=this.data)==null?0:p.navigationEndpoint)&&_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var J;((J=this.data)==null?0:J.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.vh.Object.defineProperties(Br.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,J,S;if(((p=this.data)==null?void 0:(J=p.detailsLine)==null?void 0:J.texts)!=null&&((S=this.data)==null?void 0:S.detailsLine.texts.length)>0){var H;return(H=this.data)==null?void 0:H.detailsLine.texts.map(function(M){return M.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var p,J,S;if(((p=this.data)==null?void 0:(J=p.optionalDetailsLine)==null?void 0:J.texts)!=null&&((S=this.data)==null?void 0:S.optionalDetailsLine.texts.length)>0){var H;return(H=this.data)==null?void 0:H.optionalDetailsLine.texts.map(function(M){return M.text}).join("")}return null}}});
Br.prototype.dataChanged=Br.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Br.prototype,"rendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Br.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Br.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.backgroundColor"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Br.prototype,"hasBackgroundColor",null);
_.V([_.U("data.objectFit"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Br.prototype,"getObjectFit",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.tileRenderingStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Br.prototype,"hasTileMetadata",null);_.V([_.U("data.detailsLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Br.prototype,"getSecondaryDetails",null);
_.V([_.U("data.optionalDetailsLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Br.prototype,"getOptionalDetails",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Br.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Br);
_.l(Br,"ytd-image-tile-renderer",function(){if(vdu!==void 0)return vdu;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return vdu=p},{mode:1});var fnd;var U1=function(){return _.T.apply(this,arguments)||this};
_.Q(U1,_.T);U1.prototype.getOpenLinkIcon=function(){return _.z("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
U1.prototype.onSitelinkTap=function(){_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.z("kevlar_command_handler_migration_killswitch"))_.JP(this.hostElement,this.data.clickCommands,this.hostElement);else for(var p=_.K(this.data.clickCommands),J=p.next();!J.done;J=p.next())this.ytComponentBehavior.resolveCommand(J.value)};
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],U1.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],U1.prototype,"rendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],U1.prototype,"data",void 0);_.V([_.gw({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],U1);
_.l(U1,"ytd-sitelink-renderer",function(){if(fnd!==void 0)return fnd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return fnd=p},{mode:1});var s1=function(){var p=_.T.apply(this,arguments)||this;p.paddingFix=_.z("enable_ads_web_ep_buenos_aires_and_padding_fix");return p};
_.Q(s1,_.T);s1.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"}}}};
s1.prototype.dataChanged=function(){var p=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(J){J.clickTrackingParams&&delete J.clickTrackingParams;p.ytMacroReplacementBehavior.sendServiceRequestAction([J])})};
s1.prototype.shouldHideFooter=function(p){return!(p&&_.z("use_ads_engagement_panel_desktop_footer_cta"))};
_.vh.Object.defineProperties(s1.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?void 0:p.imageTileRenderers)===void 0||((J=this.data)==null?void 0:J.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(S){var H;return(H=_.e(S,kxs))==null?void 0:H.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?void 0:p.imageTileRenderers)===void 0||((J=this.data)==null?void 0:J.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(S){var H;return((H=_.e(S,kxs))==null?void 0:H.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
s1.prototype.dataChanged=s1.prototype.dataChanged;_.V([_.B(uKs.YtMacroReplacementBehavior),_.Y("design:type",Object)],s1.prototype,"ytMacroReplacementBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],s1.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],s1.prototype,"paddingFix",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.imageTileRenderers"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],s1.prototype,"removeBorderFromImageTiles",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.imageTileRenderers"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],s1.prototype,"useFooteredMetadataRenderingStyle",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s1.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],s1);
_.l(s1,"ytd-action-engagement-panel-content-renderer",function(){if(FNv!==void 0)return FNv;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return FNv=p},{mode:1});var Ozs;var ASv=_.d(function(p){var J=p.data;var S=p.customCommandResolver;return _.m("ad-grid-card-image-full-metadata-view-model",{class:function(){var H;return((H=J().interaction)==null?0:H.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.Y2(_.Aw({visibilityCallback:function(H){var M,X=(M=J().interaction)==null?void 0:M.onFirstVisible;H&&X&&_.Dm(X)},
showOption:_.gX}),_.km(function(){return J().interaction},S)),
"aria-label":function(){var H,M;return(H=J().interaction)==null?void 0:(M=H.accessibility)==null?void 0:M.label}},_.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.m(_.AH,{data:function(){return J().adImage}},{adImageViewModel:function(H){return _.m(_.rO,{data:H.data,
customCommandResolver:S})}})),_.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.m(_.v,{cond:function(){return J().headline},
then:function(H){return _.m(_.v3,{text:H,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.m(_.v,{cond:function(){return J().detailsLine},
then:function(H){return _.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.m(_.AH,{data:H},{adDetailsLineViewModel:function(M){return _.m(_.uF,{data:M.data,customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.m(_.v,{cond:function(){return J().secondaryDetailsLine},
then:function(H){return _.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.m(_.AH,{data:H},{adDetailsLineViewModel:function(M){return _.m(_.uF,{data:M.data,customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Jn");var PuD=_.d(function(p){var J=p.data;var S=p.customCommandResolver;return _.m("ad-grid-card-image-view-model",{class:function(){var H;return((H=J().interaction)==null?0:H.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.Y2(_.Aw({visibilityCallback:function(H){var M,X=(M=J().interaction)==null?void 0:M.onFirstVisible;H&&X&&_.Dm(X)},
showOption:_.gX}),_.km(function(){return J().interaction},S)),
"aria-label":function(){var H,M;return(H=J().interaction)==null?void 0:(M=H.accessibility)==null?void 0:M.label}},_.m(_.AH,{data:function(){return J().adImage}},{adImageViewModel:function(H){return _.m(_.rO,{data:H.data,
customCommandResolver:S})}}),_.m("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.m(_.AH,{data:function(){return J().adCardBadge}},{adCardBadgeViewModel:_.IWq})))},"Kn");var ztv=_.d(function(p){var J=p.data;var S=p.customCommandResolver;return _.m("ad-grid-card-text-view-model",{class:function(){var H;return((H=J().interaction)==null?0:H.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.Y2(_.Aw({visibilityCallback:function(H){var M,X=(M=J().interaction)==null?void 0:M.onFirstVisible;H&&X&&_.Dm(X)},
showOption:_.gX}),_.km(function(){return J().interaction},S)),
"aria-label":function(){var H,M;return(H=J().interaction)==null?void 0:(M=H.accessibility)==null?void 0:M.label}},_.m("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.m(_.v,{cond:function(){return J().title},
then:function(H){return _.m(_.v3,{text:H,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.m("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.m(_.dY,{each:function(){var H;
return((H=J())==null?void 0:H.descriptions)||[]},
keyBy:"INDEX"},function(H){return _.m(_.v3,{text:H,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.m("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.m(_.AH,{data:function(){return J().moreInfoButton}},{adButtonViewModel:function(H){return _.m(_.hO,{data:H.data,
customCommandResolver:S})}})))},"Ln");var $X4=_.d(function(p){var J=p.data;var S=p.customCommandResolver;var H=p.adGridCardCollectionStyle;return _.m("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.Y2(_.Aw({visibilityCallback:function(M){var X,Z=(X=J().interaction)==null?void 0:X.onFirstVisible;M&&Z&&_.Dm(Z)},
showOption:_.gX})),style:function(){return"grid-template-columns: repeat("+dV7(H?H():J().style)+", minmax(0, 1fr));"}},_.m(_.AH,{data:function(){var M;
return(M=J())==null?void 0:M.gridCards}},{adGridCardImageViewModel:function(M){return _.m(PuD,{data:M.data,
customCommandResolver:S})},
adGridCardImageFullMetadataViewModel:function(M){return _.m(ASv,{data:M.data,customCommandResolver:S})},
adGridCardTextViewModel:function(M){return _.m(ztv,{data:M.data,customCommandResolver:S})}}))},"Mn");_.ci(_.d(function(p){var J=p.data;return _.m("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.Y2(_.Aw({visibilityCallback:function(S){var H,M=(H=J().interaction)==null?void 0:H.onFirstVisible;S&&M&&_.Dm(M)},
showOption:_.gX}),_.km(function(){return J().interaction},lLs))},_.m("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.m(_.v,{cond:_.OKL("(min-width: "+((0,_.Ik)()+_.ku)+"px)"),
then:function(){return _.m(_.AH,{data:function(){return J().adGridCardCollection}},{adGridCardCollectionViewModel:function(S){return _.m($X4,{data:S.data,
customCommandResolver:lLs})}})},
else:function(){return _.m(_.AH,{data:function(){return J().adGridCardCollection}},{adGridCardCollectionViewModel:function(S){return _.m($X4,{data:S.data,
customCommandResolver:lLs,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.m("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.m(_.AH,{data:function(){return J().adButton}},{adButtonViewModel:function(S){return _.m(_.hO,{data:S.data,
customCommandResolver:lLs})}})))},"Nn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;return _.m("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.Y2(_.Aw({visibilityCallback:function(S){var H,M=(H=J().interaction)==null?void 0:H.onFirstVisible;S&&M&&_.Dm(M)},
showOption:_.gX}),_.km(function(){return J().interaction},VBd))},_.m("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.m(_.AH,{data:function(){if(_.OKL("(min-width: "+((0,_.Ik)()+_.ku)+"px)")())var S=J().adGridCardCollection;
else{S=Object.assign({},_.e(J().adGridCardCollection,Tgs));var H;S.gridCards!==void 0&&((H=S.gridCards)==null?void 0:H.length)>1?S.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":S.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";S={adGridCardCollectionViewModel:S}}return S}},{adGridCardCollectionViewModel:function(S){return _.m($X4,{data:S.data,
customCommandResolver:VBd})}})),_.m("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.m(_.AH,{data:function(){return J().adButton}},{adButtonViewModel:function(S){return _.m(_.hO,{data:S.data,
customCommandResolver:VBd})}})))},"On"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.fD}});var gE=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return p};
_.Q(gE,_.T);_.R=gE.prototype;_.R.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"}}}};
_.R.attached=function(){this.getDataFromPlayerAndRender()};
_.R.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.R.getDataFromPlayerAndRender=function(){var p=this,J=_.IY(this.hostElement);J&&J.getPlayerPromise().then(function(S){p.getCachedDataAndListen(S)})};
_.R.getCachedDataAndListen=function(p){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(p,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(p,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=p)};
_.R.resolveCachedActions=function(){var p=_.Id("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(p=p&&p())&&!_.T6.isEmpty(p)&&this.sendUpdateEngagementPanelAction(p);(p=(p=_.Id("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&p())&&!_.T6.isEmpty(p)&&this.sendChangeEngagementPanelVisibilityAction(p);(p=(p=_.Id("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&p())&&!_.T6.isEmpty(p)&&this.sendScrollToEngagementPanelCommand(p)};
_.R.sendUpdateEngagementPanelAction=function(p){var J;_.IV(this.hostElement,"yt-update-engagement-panel-action",[(J=_.T6.get(p,"action"))!=null?J:p])};
_.R.sendChangeEngagementPanelVisibilityAction=function(p){_.IV(this.hostElement,"yt-change-engagement-panel-visibility-action",[p])};
_.R.sendScrollToEngagementPanelCommand=function(p){_.IV(this.hostElement,"yt-scroll-to-engagement-panel-command",[p])};
_.R.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.z("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.xQ(Error("cp"))};
gE.prototype.dataChanged=gE.prototype.dataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],gE.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],gE.prototype,"componentBehavior",void 0);_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],gE.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],gE.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],gE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],gE.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],gE.prototype,"player",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gE.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],gE);
_.l(gE,"ytd-ads-engagement-panel-content-renderer",function(){if(Ozs!==void 0)return Ozs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
return Ozs=p},{mode:1});var odG;var th=function(){var p=_.T.apply(this,arguments)||this;p.player=null;p.JSC$23255_playerEvents=new Map;p.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return p};
_.Q(th,_.T);_.R=th.prototype;_.R.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]]"}}}}}};
_.R.created=function(){this.player=null;this.JSC$23255_playerEvents=new Map;this.JSC$23255_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23255_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23255_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23255_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.R.attached=function(){var p=this,J=_.IY();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));J&&J.getPlayerPromise().then(function(S){p.setPlayer(S);p.set("isPageLoad",!1)})};
_.R.setPlayer=function(p){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23255_playerEvents);this.set("player",p);p&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$23255_playerEvents),p.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.R.onLoopRangeChange=function(p){var J=_.vO().resolve(_.F9(_.xz));if((!J||J.isOnWatch())&&this.hostElement.clientHeight){var S;!p&&((S=this.data)==null?0:S.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.R.onVideoProgress=function(p){var J,S,H=((J=this.player)==null?void 0:(S=J.getPresentingPlayerType)==null?void 0:S.call(J))===2;this.isAdPlaying!==H&&this.set("isAdPlaying",H);var M;if(!H&&(M=this.player)!=null&&M.getLoopRange()){S=this.player.getLoopRange();J=S.startTimeMs;S=S.endTimeMs;H=this.player.getProgressState(1).seekableStart;var X;J<H*1E3&&((X=this.data)==null?0:X.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
p=S<p*1E3;var Z;((Z=this.player)==null?0:Z.getLoopRange())&&p&&this.player.seekTo(J/1E3)}};
_.R.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.R.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.R.onYtDeleteClipEngagementPanelCommand=function(p){_.e(p,L$p).command&&this.ytComponentBehavior.resolveCommand(_.e(p,L$p).command)};
_.vh.Object.defineProperties(th.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.voteCount)||_.aR("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)}}});
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],th.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],th.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],th.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],th.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],th.prototype,"isAdPlaying",void 0);_.V([_.N({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],th.prototype,"isPageLoad",void 0);_.V([_.N({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],th.prototype,"isDarkTheme",void 0);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],th.prototype,"voteCount",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],th.prototype,"channelEndpoint",null);_.V([_.U("channelEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],th.prototype,"channelHref",null);_.V([_.gw({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],th);
_.l(th,"ytd-clip-attribution-renderer",function(){if(odG!==void 0)return odG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return odG=p},{mode:1});var etp;var hh=function(){var p=_.T.apply(this,arguments)||this;p.player=null;p.JSC$23260_playerEvents=new Map;return p};
_.Q(hh,_.T);_.R=hh.prototype;_.R.created=function(){this.player=null;this.JSC$23260_playerEvents=new Map;this.JSC$23260_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23260_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23260_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.R.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.R.attached=function(){var p=this,J=_.IY();J&&J.getPlayerPromise().then(function(S){p.setPlayer(S);p.set("isPageLoad",!1)})};
_.R.setPlayer=function(p){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23260_playerEvents);this.set("player",p);if(p){this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$23260_playerEvents);var J;(p==null?void 0:(J=p.getPresentingPlayerType)==null?void 0:J.call(p))===2&&this.playerAdStartHandler()}};
_.R.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.R.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.R.onVideoProgress=function(){var p,J,S=((p=this.player)==null?void 0:(J=p.getPresentingPlayerType)==null?void 0:J.call(p))===2;this.isAdPlaying!==S&&this.set("isAdPlaying",S)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],hh.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],hh.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],hh.prototype,"isAdPlaying",void 0);
_.V([_.N({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],hh.prototype,"isPageLoad",void 0);_.V([_.gw({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],hh);
_.l(hh,"ytd-clip-section-footer-renderer",function(){if(etp!==void 0)return etp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return etp=p},{mode:1});var WNa;var QCG;var Cuq=function(){return _.T.apply(this,arguments)||this};
_.Q(Cuq,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Cuq.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Cuq.prototype,"data",void 0);_.V([_.gw({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Cuq);
_.l(Cuq,"ytd-clip-ad-state-renderer",function(){if(QCG!==void 0)return QCG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return QCG=p},{mode:1});var ySs;var DH=function(){var p=_.T.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};
_.Q(DH,_.T);_.R=DH.prototype;_.R.detached=function(){this.userChangedValue=!1};
_.R.handleKeyDown=function(p){if(_.Rh)var J=13;else _.r98&&_.Ku?J=13:J=13;p.keyCode===J&&p.preventDefault()};
_.R.handleInput=function(){var p=_.Jn(this.hostElement).querySelector("#title");if(p){var J=(p.value||"").replace(/\r|\n/g," ");this.set("value",J);p.value=J;this.valid=p.validate();this.userChangedValue=!0}};
_.R.handleBlur=function(){this.valid=_.Jn(this.hostElement).querySelector("#title").validate()};
_.R.onValueChanged=function(){_.cf(this.hostElement,"title-changed",{title:this.value})};
_.R.onValidChanged=function(){_.cf(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.R.setInput=function(p,J){var S=_.Jn(this.hostElement).querySelector("#title");S&&(S.value=p,this.handleInput(),J&&(S.invalid=!1,this.valid=!0))};
_.R.onClipCreationDisable=function(){this.set("disabled",!0)};
_.R.onClipCreationEnable=function(){this.set("disabled",!1)};
_.R.onClipCreationVisibilityChange=function(p){var J=this;p.visible?requestAnimationFrame(function(){var S;((S=_.Jn(J.hostElement).querySelector("#title"))==null?void 0:S.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
DH.prototype.onValidChanged=DH.prototype.onValidChanged;DH.prototype.onValueChanged=DH.prototype.onValueChanged;DH.prototype.handleBlur=DH.prototype.handleBlur;DH.prototype.handleInput=DH.prototype.handleInput;DH.prototype.handleKeyDown=DH.prototype.handleKeyDown;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],DH.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],DH.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],DH.prototype,"value",void 0);_.V([_.N(),_.Y("design:type",Object)],DH.prototype,"valid",void 0);_.V([_.N(),_.Y("design:type",Object)],DH.prototype,"userChangedValue",void 0);_.V([_.N(),_.Y("design:type",Object)],DH.prototype,"disabled",void 0);_.V([_.GI("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],DH.prototype,"handleKeyDown",null);
_.V([_.GI("input"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DH.prototype,"handleInput",null);_.V([_.GI("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DH.prototype,"handleBlur",null);_.V([_.bO("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DH.prototype,"onValueChanged",null);
_.V([_.bO("valid"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DH.prototype,"onValidChanged",null);_.V([_.gw({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],DH);
_.l(DH,"ytd-clip-creation-text-input-renderer",function(){if(ySs!==void 0)return ySs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ySs=p},{mode:1});var B0d;var UXG;var sCs;var gdt;var tTq;var k7=function(){var p=_.T.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};
_.Q(k7,_.T);_.R=k7.prototype;_.R.attached=function(){var p=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(J){J=_.K(["screen and (min-resolution: "+J+")","screen and (max-resolution: "+J+")"]);for(var S=J.next();!S.done;S=J.next()){S=S.value;var H=window.matchMedia(S);H&&(p.mediaListeners_[S]=p.updatePixelRatio_.bind(p),H.addEventListener?H.addEventListener("change",p.mediaListeners_[S]):H.addListener?H.addListener(p.mediaListeners_[S]):delete p.mediaListeners_[S])}})};
_.R.detached=function(){this.setPlayer(null);for(var p=_.K(Object.keys(this.mediaListeners_)),J=p.next();!J.done;J=p.next()){var S=J.value;J=this.mediaListeners_[S];(S=window.matchMedia(S))&&(S.removeEventListener?S.removeEventListener("change",J):S.removeListener&&S.removeListener(J))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.R.onVisibilityChangedAction_=function(p){var J=this;p.visible&&!this.player_&&(p=_.IY())&&p.getPlayerPromise().then(function(S){J.setPlayer(S)})};
_.R.setPlayer=function(p){p&&this.set("player_",p)};
_.R.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.R.setUpCanvas_=function(){var p=this.rulerWidth,J=this.devicePixelRatio_,S=this.visible;this.set("canvasReady_",!1);if(S&&J!==0){S=this.aboveRulerHeight+this.rulerHeight;var H=_.Jn(this.hostElement).querySelector("#ticks");H.width=p*J;H.height=S*J;H.style.width=p+"px";H.style.height=S+"px";H.getContext("2d").scale(J,J);this.set("canvasReady_",!0)}};
_.R.drawRuler_=function(p,J,S,H,M,X,Z,n,b,F,f,O){p&&S&&J&&(p=_.Jn(this.hostElement).querySelector("#ticks"),J=p.getContext("2d"),J.clearRect(0,0,p.width,p.height),J.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),J.lineWidth=2,J.beginPath(),J.moveTo(0,this.aboveRulerHeight),J.lineTo(p.width,this.aboveRulerHeight),J.moveTo(0,p.height),J.lineTo(p.width,p.height),J.stroke(),this.drawRulerTicks_(p,X,M,H),this.drawStoryboardImages_(p,S,X,M,H),J.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
J.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(Z-X,H,!1),this.rulerHeight),S=this.timeToPixels_(n-X,H,!1),J.fillRect(S,this.aboveRulerHeight,p.width-S,this.rulerHeight),this.drawSpeedLines_(p,X,O))};
_.R.drawRulerTicks_=function(p,J,S,H){var M=p.getContext("2d");M.save();M.lineWidth=1;for(var X=Math.floor(Math.max(0,J-this.tickLabelInterval));X<J+S;X++){M.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var Z=(X-J)*H;M.beginPath();M.moveTo(Z,p.height);var n=this.smallTickHeight;X%this.largeTickInterval===0?n=this.largeTickHeight:X%this.mediumTickInterval===0&&(n=this.mediumTickHeight);M.lineTo(Z,p.height-n);M.stroke();X%this.tickLabelInterval===0&&(M.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),M.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),M.fillText(s$(X),Z+4,12),M.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),M.moveTo(Z,0),M.lineTo(Z,this.aboveRulerHeight),M.stroke())}M.restore()};
_.R.percentToHex_=function(p){p=Math.round(p*255).toString(16);p.length<2&&(p="0"+p);return p};
_.R.drawSpeedLines_=function(p,J,S){var H=p.getContext("2d");H.save();var M=Math.min(25,Math.abs(S)-15)/25,X=p.width*.3*M,Z=p.width*-.3,n=p.width*1.3,b=this.aboveRulerHeight;p=p.height;var F=Math.round(4*M),f=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");f.length<7&&(f="#"+f.substring(1,4).repeat(2));var O=this.percentToHex_(.5+M/2);O=f+O;f+="00";if(M>0)for(M=0;M<F;M++){var A=Z+Math.random()*(n-Z),P=b+Math.random()*(p-b),W=X+J%X,y=H.createLinearGradient(A,P,A+W,P);
S<0?(y.addColorStop(0,O),y.addColorStop(.4,O),y.addColorStop(.9,f)):(y.addColorStop(.1,f),y.addColorStop(.6,O),y.addColorStop(1,O));H.strokeStyle=y;H.lineWidth=1;H.beginPath();H.moveTo(A,P);H.lineTo(A+W,P);H.stroke()}H.restore()};
_.R.getStoryboardForTime_=function(p,J,S){S===void 0&&(S=J.getNumberOfStoryboardLevels()-1);p=J.getStoryboardFrameIndex(p,S);return J.getStoryboardFrame(p,S)};
_.R.drawStoryboardImages_=function(p,J,S,H,M){if(!this.disabled){p=p.getContext("2d");var X=this.getStoryboardForTime_(0,J);if(X){var Z=X.width/X.columns;X=X.height/X.rows;var n=Z/X,b=this.rulerHeight*n;b=this.tickLabelInterval*(n<this.tickLabelInterval*M/this.rulerHeight?1/Math.floor(this.tickLabelInterval*M/b):Math.round(b/(this.tickLabelInterval*M)));var F=b*M,f=this.rulerHeight,O=F/this.rulerHeight,A=Math.floor(Math.max(0,S-b));for(A-=A%b;A<S+H;A+=b){var P=this.getStoryboardForTime_(A,J),W=this.getPreloadedStoryboard_(P.url);
if(W){var y=(A-S)*M,t=this.aboveRulerHeight,D=P.column*Z,k=P.row*X;if(n<O){var E=f/(F/n);P=Z;E*=X;k+=(X-E)/2}else P=F/(f*n)*Z,E=X,D+=(Z-P)/2;p.drawImage(W,D,k,P,E,y,t,F,f)}else this.fetchStoryboardImage_(P)}}}};
_.R.getPreloadedStoryboard_=function(p){return this.storyboardImages_.find(function(J){if(J.src==p)return!0;var S=J.src.indexOf(p);return S!=-1&&S==J.src.length-p.length})};
_.R.fetchStoryboardImage_=function(p){var J=this,S=this.getPreloadedStoryboard_(p.url),H=this.pendingStoryboardImages_[p.url];S||H!==void 0||(S=new Promise(function(M){var X=new Image(p.width,p.height);X.src=p.url;X.onload=function(){M(X)};
X.onerror=function(){M(null)}}),this.pendingStoryboardImages_[p.url]=S,S.then(function(M){M&&J.push("storyboardImages_",M);
return M}).finally(function(){delete J.pendingStoryboardImages_[p.url]}))};
_.R.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.R.timeToPixels_=function(p,J,S){p*=J;return S===void 0||S?p+"px":p};
_.R.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
k7.prototype.drawRuler_=k7.prototype.drawRuler_;k7.prototype.setUpCanvas_=k7.prototype.setUpCanvas_;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],k7.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],k7.prototype,"start",void 0);_.V([_.N({value:30}),_.Y("design:type",Number)],k7.prototype,"end",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],k7.prototype,"visible",void 0);_.V([_.N(),_.Y("design:type",Object)],k7.prototype,"player_",void 0);_.V([_.N(),_.Y("design:type",Number)],k7.prototype,"tickSpacing",void 0);_.V([_.N(),_.Y("design:type",Number)],k7.prototype,"windowSizeSec",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],k7.prototype,"rulerWidth",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],k7.prototype,"rulerShift",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],k7.prototype,"canvasReady_",void 0);_.V([_.N({value:function(){return[]}}),
_.Y("design:type",Array)],k7.prototype,"storyboardImages_",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],k7.prototype,"disabled",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],k7.prototype,"forceRender_",void 0);_.V([_.N({value:1}),_.Y("design:type",Number)],k7.prototype,"devicePixelRatio_",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],k7.prototype,"windowSpeed",void 0);
_.V([_.bO("visible","devicePixelRatio_","rulerWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k7.prototype,"setUpCanvas_",null);
_.V([_.bO("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.Y("design:returntype")],k7.prototype,"drawRuler_",null);_.V([_.sD({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],k7);
_.l(k7,"yt-clip-creation-scrubber-canvas",function(){if(tTq===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);tTq=p}p=tTq;return p},
{mode:2});var hts;var DXp;var NS=function(){var p=_.T.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};
_.Q(NS,_.T);_.R=NS.prototype;
_.R.created=function(){var p=this;this.JSC$23273_playerEvents=new Map;this.JSC$23273_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23273_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23273_playerEvents.set("onStateChange",this.onStateChange_);var J={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(J).forEach(function(S){p.boundHandlers_[S]=J[S].bind(p)})};
_.R.attached=function(){this.activeLoopRange_=!1;_.Jn(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Jn(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.KG(156731)};
_.R.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Jn(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Jn(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.R.onVisibilityChangedAction_=function(p){var J=this;p.visible&&!this.player_&&(p=_.IY())&&p.getPlayerPromise().then(function(S){J.setPlayer(S)})};
_.R.setPlayer=function(p){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23273_playerEvents);p&&(this.set("player_",p),this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$23273_playerEvents))};
_.R.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.R.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.R.beginHandleDrag_=function(p){this.disabled||(p.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=p.clientX,p.target===_.Jn(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():p.target===_.Jn(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.R.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.R.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.R.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.R.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_())};
_.R.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.R.beginWindowScroll_=function(){var p=this;this.scrollInterval_=setInterval(function(){var J=p.windowSlideSpeed;if(J=_.wWd(p.start,p.boundedRulerStartLimit_())?J-.1:_.wWd(p.end,p.boundedRulerEndLimit_())?J+.1:0){var S=p.capRulerOffset_(p.rulerShift_+J);S==p.rulerShift_?J=0:(p.set("rulerShift_",S),_.cf(p.hostElement,"set-fixed-length-range",{start:p.start+J,duration:p.end-p.start}))}p.set("windowSlideSpeed",J)},33)};
_.R.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.R.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))};
_.R.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.R.updateRulerSize_=function(){this.set("rulerWidth_",_.Jn(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.R.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))};
_.R.handleRulerDrag_=function(p){p=this.pixelsToTime_(p.clientX-this.rulerDragMouseStart_);p=this.capRulerOffset_(this.rulerDragRulerStart_-p);this.set("rulerShift_",p);var J=this.rulerDragStartTime_-(this.rulerDragRulerStart_-p);_.cf(this.hostElement,"set-fixed-length-range",{start:J,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-p)-J})};
_.R.handleWindowDrag_=function(p){var J=p.clientX-this.dragMouseLastX_;this.dragMouseLastX_=p.clientX;p=this.pixelsToTime_(J);_.cf(this.hostElement,"set-fixed-length-range",{start:this.start+p,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.R.capRulerOffset_=function(p){var J=this.seekableStart-this.pixelsToTime_(16),S=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(J,p),S)};
_.R.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.R.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.R.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.R.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.R.handleWindowHandleDrag_=function(p){var J=p.clientX-this.dragMouseLastX_;this.dragMouseLastX_=p.clientX;p=this.pixelsToTime_(J);if(this.draggingLeft_){var S=this.start+p;var H=this.end}else this.draggingRight_&&(S=this.start,H=this.end+p);_.cf(this.hostElement,"set-range",{start:S,end:H,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.R.onVideoProgress_=function(p){this.disabled||(p=this.timeToPixels_(p-this.rulerShift_,this.tickSpacing_),_.Jn(this.hostElement).querySelector("#playhead").style.transform="translateX("+p+")")};
_.R.onClipCreationDisable_=function(){this.endDrag_()};
_.R.timeToPixels_=function(p,J,S){p*=J;return S===void 0||S?p+"px":p};
_.R.pixelsToTime_=function(p){return p/this.tickSpacing_};
_.R.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.R.centerRuler_=function(p,J,S){this.set("rulerShift_",this.capRulerOffset_(p+(J-p)/2-S/2))};
_.R.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.R.updateLoopRange_=function(p,J,S,H,M,X,Z){p&&(J&&H&&!S?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(p.pauseVideo(),p.seekTo(M,!1,void 0,void 0,50)):this.draggingRight_?(p.pauseVideo(),p.seekTo(X-.1,!1,void 0,void 0,50)):(Z!==void 0?p.seekTo(Z,!0,void 0,void 0,50):(J=p.getCurrentTime(),J<M||J>X?p.seekTo(M,!0,void 0,void 0,50):p.seekTo(J,!0,void 0,void 0,50)),p.playVideo()),p.setLoopRange({startTimeMs:M*1E3,endTimeMs:X*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(p.getCurrentTime())):
this.activeLoopRange_&&(p.setLoopRange(null),this.activeLoopRange_=!1))};
_.R.updateHandles_=function(){_.Jn(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Jn(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.R.updateRuler_=function(){var p=this.end,J=this.start,S=this.draggableStartLimit_(),H=this.draggableEndLimit_();(J<S-.001||p>H+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.R.computeDurationLabel_=function(p,J){return p?p.replace("$clip_length",parseFloat(J).toFixed(1)):""};
_.R.computeDuration_=function(p,J){return this.isValidTime_(p)&&this.isValidTime_(J)&&p<J?J-p:0};
_.R.isValidTime_=function(p){return isNaN(parseFloat(p))||p<0?!1:this.player_?p>=this.seekableStart&&p<=this.seekableEnd:!0};
_.R.computeWindowSizeSec_=function(p,J,S){return Math.min((p||12E4)/1E3,S-J)};
_.R.computeTickSpacing_=function(p,J){return J?J/p:1};
_.R.onDragStateChanged_=function(){_.cf(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.R.centerRangeOnTime_=function(p){var J=this.duration;p=aL7(p-J/2,J,this.seekableStart,this.seekableEnd);_.cf(this.hostElement,"set-fixed-length-range",{start:p.start,duration:p.end-p.start})};
_.R.nearlyLessThan_=function(p,J,S){return p+(S===void 0?1E-6:S)<J};
_.R.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)}};
_.R.onStateChange_=function(p){this.visible&&!this.disabled&&p==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.R.computeDragState_=function(p,J,S,H){return p?"left":J?"right":S?"ruler":H?"window":"none"};
_.R.logClick=function(){var p=_.C1(),J=_.Wf();p&&J&&this.scrubberVe_&&(_.z("combine_ve_grafts")?_.dC(_.bC(),this.scrubberVe_,J):_.kO(p,J,this.scrubberVe_),_.l7(p,this.scrubberVe_))};
NS.prototype.onDragStateChanged_=NS.prototype.onDragStateChanged_;NS.prototype.updateRuler_=NS.prototype.updateRuler_;NS.prototype.updateHandles_=NS.prototype.updateHandles_;NS.prototype.onUpdateLoopRange=NS.prototype.onUpdateLoopRange;NS.prototype.onInitializedChanged_=NS.prototype.onInitializedChanged_;NS.prototype.onVisibleChanged_=NS.prototype.onVisibleChanged_;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],NS.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",Object)],NS.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"start",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"end",void 0);_.V([_.N({computed:"computeDuration_(start, end)"}),_.Y("design:type",Number)],NS.prototype,"duration",void 0);
_.V([_.N(),_.Y("design:type",String)],NS.prototype,"lengthTemplate",void 0);_.V([_.N({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.Y("design:type",String)],NS.prototype,"durationLabel",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"visible",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"player_",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"draggingLeft_",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"draggingRight_",void 0);
_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"draggingRuler_",void 0);_.V([_.N({value:!1}),_.Y("design:type",Object)],NS.prototype,"draggingWindow_",void 0);_.V([_.N({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.Y("design:type",Number)],NS.prototype,"tickSpacing_",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"seekableStart",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"seekableEnd",void 0);
_.V([_.N(),_.Y("design:type",Number)],NS.prototype,"windowSizeMs",void 0);_.V([_.N({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.Y("design:type",Number)],NS.prototype,"windowSizeSec_",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"rulerWidth_",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"rulerShift_",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"windowSlideSpeed",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],NS.prototype,"disabled",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"initialized",void 0);_.V([_.N(),_.Y("design:type",Object)],NS.prototype,"durationAccessibilityLabel",void 0);_.V([_.N({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.Y("design:type",String)],NS.prototype,"dragState",void 0);
_.V([_.bO("visible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NS.prototype,"onVisibleChanged_",null);_.V([_.bO("initialized"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NS.prototype,"onInitializedChanged_",null);_.V([_.bO("player_","visible","disabled","initialized","start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NS.prototype,"onUpdateLoopRange",null);
_.V([_.bO("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NS.prototype,"updateHandles_",null);_.V([_.bO("start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NS.prototype,"updateRuler_",null);
_.V([_.bO("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NS.prototype,"onDragStateChanged_",null);_.V([_.sD({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],NS);
_.l(NS,"yt-clip-creation-scrubber-view",function(){if(DXp===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;hts===void 0&&(hts=document.createElement("template"));var H=hts;S.call(J,H.content.cloneNode(!0),p.content.firstChild);DXp=p}p=DXp;return p},{mode:2});var TE=function(){var p=_.T.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};
_.Q(TE,_.T);_.R=TE.prototype;_.R.attached=function(){var p=this;this.startInput.addEventListener("input",function(J){return p.handleStartInput_(J)});
this.endInput.addEventListener("input",function(J){return p.handleEndInput_(J)});
this.startInput.addEventListener("focusout",function(J){return p.handleStartBlur_(J)});
this.endInput.addEventListener("focusout",function(J){return p.handleEndBlur_(J)})};
_.R.setPlayer=function(p){this.set("player_",p)};
_.R.onSetFixedLengthRange_=function(p){var J=p.detail;p=J.start;var S=J.duration,H=J.startLimit;J=J.endLimit;H||(H=this.seekableStart_);J||(J=this.seekableEnd_);p=aL7(p,S,H,J);this.start=p.start;this.end=p.end};
_.R.onSetRange_=function(p){var J=p.detail;p=J.start;var S=J.end,H=J.startLimit;J=J.endLimit;H||(H=this.seekableStart_);J||(J=this.seekableEnd_);if(p=Eat(p,S,H,J,this.minLengthSec,this.maxLengthSec))this.start=p.start,this.end=p.end};
_.R.updateInputs_=function(){var p=this.end,J=this.start;this.startInput.focused||(this.startInput.value=s$(J,!0));this.endInput.focused||(this.endInput.value=s$(p,!0))};
_.R.handleStartInput_=function(p){p=qvD(p.target.value);if(p===null)this.set("startValid",!1);else{var J=this.end,S=Eat(p,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);S?(this.set("endWillUpdate",S.end!==J),this.set("startValid",S.start===p)):this.set("startValid",!1)}};
_.R.handleEndInput_=function(p){p=qvD(p.target.value);if(p===null)this.set("endValid",!1);else{var J=this.start,S=Yvt(this.start,p,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);S?(this.set("startWillUpdate",S.start!==J),this.set("endValid",S.end===p)):this.set("endValid",!1)}};
_.R.handleStartBlur_=function(p){p=qvD(p.target.value);p===null?this.startInput.value=s$(this.start,!0):this.forceUpdateInputs_(Eat(p,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.R.handleEndBlur_=function(p){p=qvD(p.target.value);p===null?this.endInput.value=s$(this.end,!0):this.forceUpdateInputs_(Yvt(this.start,p,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.R.forceUpdateInputs_=function(p){p&&(this.start=p.start,this.end=p.end);this.startInput.value=s$(this.start,!0);this.endInput.value=s$(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.R.initializeClipRange_=function(){var p=this.seekableEnd_,J=this.seekableStart_,S=this.visible_,H=this.player_;if(!H||!S||J===null||!p)this.set("initialized",!1);else if(!this.initialized){var M=H.getCurrentTime(),X=this.getDefaultLengthSec_();S=H.getVideoData();var Z=H.getPlayerState()==1,n=S.isLive;X=Math.min(X,p-J);M=Math.max(0,M);p=n?Yvt(M-X,M,J,p,this.minLengthSec,this.maxLengthSec):Z?aL7(M-X/2,X,J,p):aL7(M,X,J,p);this.start=p.start;this.end=p.end;this.set("initialized",!0);S.isLive&&H.seekTo(p.start);
this.startInput.value=s$(this.start,!0);this.endInput.value=s$(this.end,!0)}};
_.R.onStartChanged_=function(){var p=this;_.cf(this.hostElement,"start-changed",{start:this.start});var J;isNaN((J=this.oldStart)!=null?J:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){p.set("highlightStart",!1);p.startHighlightTimeout=0;p.oldStart=p.start},3E3))};
_.R.onEndChanged_=function(){var p=this;_.cf(this.hostElement,"end-changed",{end:this.end});var J;isNaN((J=this.oldEnd)!=null?J:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){p.set("highlightEnd",!1);p.endHighlightTimeout=0;p.oldEnd=p.end},3E3))};
_.R.onVisibilityChangedAction_=function(p){var J=this;this.set("visible_",p.visible);this.visible_&&!this.player_&&(p=_.IY())&&p.getPlayerPromise().then(function(S){J.setPlayer(S)})};
_.R.computeMinLengthSec_=function(p){return p/1E3||5};
_.R.computeMaxLengthSec_=function(p){return p/1E3||60};
_.R.computeDefaultLengthSec_=function(p){return p/1E3};
_.R.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.R.computeSeekableStart_=function(p,J){return p&&J?p.getProgressState(1).seekableStart:0};
_.R.computeSeekableEnd_=function(p,J){return p&&J?p.getProgressState(1).seekableEnd:0};
_.R.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.R.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.R.onDragState_=function(p){this.set("highlightStart",p.detail.startChanging);this.set("highlightEnd",p.detail.endChanging)};
TE.prototype.onDragState_=TE.prototype.onDragState_;TE.prototype.onEndChanged_=TE.prototype.onEndChanged_;TE.prototype.onStartChanged_=TE.prototype.onStartChanged_;TE.prototype.initializeClipRange_=TE.prototype.initializeClipRange_;TE.prototype.updateInputs_=TE.prototype.updateInputs_;TE.prototype.onSetRange_=TE.prototype.onSetRange_;TE.prototype.onSetFixedLengthRange_=TE.prototype.onSetFixedLengthRange_;
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],TE.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],TE.prototype,"data",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],TE.prototype,"start",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],TE.prototype,"startValid",void 0);
_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],TE.prototype,"startWillUpdate",void 0);_.V([_.N({value:30}),_.Y("design:type",Number)],TE.prototype,"end",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],TE.prototype,"endValid",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],TE.prototype,"endWillUpdate",void 0);_.V([_.N({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.Y("design:type",Number)],TE.prototype,"minLengthSec",void 0);
_.V([_.N({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.Y("design:type",Number)],TE.prototype,"maxLengthSec",void 0);_.V([_.N({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.Y("design:type",Number)],TE.prototype,"defaultLengthSec",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],TE.prototype,"visible_",void 0);_.V([_.N(),_.Y("design:type",Object)],TE.prototype,"player_",void 0);
_.V([_.N({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.Y("design:type",Number)],TE.prototype,"seekableStart_",void 0);_.V([_.N({computed:"computeSeekableEnd_(player_, visible_)"}),_.Y("design:type",Number)],TE.prototype,"seekableEnd_",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],TE.prototype,"initialized",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],TE.prototype,"disabled",void 0);
_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],TE.prototype,"highlightStart",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],TE.prototype,"highlightEnd",void 0);_.V([_.FM("#start"),_.Y("design:type",HTMLInputElement)],TE.prototype,"startInput",void 0);_.V([_.FM("#end"),_.Y("design:type",HTMLInputElement)],TE.prototype,"endInput",void 0);
_.V([_.GI("set-fixed-length-range"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],TE.prototype,"onSetFixedLengthRange_",null);_.V([_.GI("set-range"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],TE.prototype,"onSetRange_",null);_.V([_.bO("start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TE.prototype,"updateInputs_",null);
_.V([_.bO("player_","visible_","seekableStart_","seekableEnd_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TE.prototype,"initializeClipRange_",null);_.V([_.bO("start"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TE.prototype,"onStartChanged_",null);_.V([_.bO("end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TE.prototype,"onEndChanged_",null);
_.V([_.GI("clips-drag-state"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],TE.prototype,"onDragState_",null);_.V([_.sD({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],TE);
_.l(TE,"yt-clip-creation-scrubber-renderer",function(){if(gdt===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;sCs===void 0&&(sCs=document.createElement("template"));var H=sCs;S.call(J,H.content.cloneNode(!0),p.content.firstChild);gdt=p}p=gdt;return p},{mode:2});var dE=function(){var p=_.T.apply(this,arguments)||this;p.player_=null;p.JSC$23287_playerEvents=new Map;p.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return p};
_.Q(dE,_.T);_.R=dE.prototype;_.R.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"}}}};
_.R.created=function(){this.JSC$23287_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23287_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23287_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23287_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.R.detached=function(){this.setPlayer(null)};
_.R.onVisibilityChangedAction_=function(p){var J=this,S;if((S=this.data)==null?0:S.externalVideoId){var H;this.videoId=(H=this.data)==null?void 0:H.externalVideoId}this.getPlayer().then(function(M){if(p.visible)J.returnTime=M.getCurrentTime(),J.isAtLiveHead=M.getProgressState().isAtLiveHead;else{var X=J.returnTime;J.isAtLiveHead&&(X=Number.POSITIVE_INFINITY);M.seekTo(X,void 0,void 0,void 0,51)}})};
_.R.getPlayer=function(){var p=this;if(!this.player_){var J=_.IY();if(J)return J.getPlayerPromise().then(function(S){p.setPlayer(S);return S})}return Promise.resolve(this.player_)};
_.R.setPlayer=function(p){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23287_playerEvents);if(p){this.player_=p;var J;((J=this.data)==null?0:J.externalVideoId)||this.set("videoId",p.getVideoData().video_id||"");var S;(p==null?void 0:(S=p.getPresentingPlayerType)==null?void 0:S.call(p))===2&&(this.set("isAdPlaying",!0),_.IV(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$23287_playerEvents)}};
_.R.ready=function(){_.Jn(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.R.onTitleChanged_=function(p){this.set("titleValue",p.detail.title)};
_.R.onStartChanged_=function(p){this.set("start",p.detail.start)};
_.R.onEndChanged_=function(p){this.set("end",p.detail.end)};
_.R.onTitleValidChanged_=function(p){this.set("titleValid",p.detail.valid)};
_.R.onStartValidChanged_=function(p){this.set("startValid",p.detail.valid)};
_.R.onEndValidChanged_=function(p){this.set("endValid",p.detail.valid)};
_.R.onVideoDataChange_=function(){var p;if((p=this.data)==null||!p.externalVideoId){var J;this.set("videoId",((J=this.player_)==null?void 0:J.getVideoData().video_id)||"")}};
_.R.computeFormValid_=function(p,J,S,H){return!!(p&&J&&S&&H)};
_.R.computeCancelButton_=function(p,J,S){return p&&_.e(p,_.Za)?{buttonRenderer:Object.assign({},_.e(p,_.Za),{isDisabled:J||S})}:null};
_.R.computeSubmitButton_=function(p,J,S){return p&&_.e(p,_.Za)?{buttonRenderer:Object.assign({},_.e(p,_.Za),{command:void 0,isDisabled:!this.formValid||J||S})}:null};
_.R.computeSubmitCommand_=function(p){return p||null};
_.R.onSubmit_=function(p){var J=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),_.pl(this.hostElement,[this.submitCommand_,p]).then(function(){J.set("isLoading_",!1)},function(){J.set("isLoading_",!1)}))};
_.R.playerAdStartHandler_=function(){_.IV(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.R.playerAdEndHandler_=function(){_.IV(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.R.onVideoProgress_=function(){var p=this;this.getPlayer().then(function(J){var S,H=(J==null?void 0:(S=J.getPresentingPlayerType)==null?void 0:S.call(J))===2;p.isAdPlaying!==H&&(H?p.playerAdStartHandler_():p.playerAdEndHandler_())})};
dE.prototype.onEndValidChanged_=dE.prototype.onEndValidChanged_;dE.prototype.onStartValidChanged_=dE.prototype.onStartValidChanged_;dE.prototype.onTitleValidChanged_=dE.prototype.onTitleValidChanged_;dE.prototype.onEndChanged_=dE.prototype.onEndChanged_;dE.prototype.onStartChanged_=dE.prototype.onStartChanged_;dE.prototype.onTitleChanged_=dE.prototype.onTitleChanged_;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],dE.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",Object)],dE.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],dE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],dE.prototype,"data",void 0);_.V([_.N({value:""}),_.Y("design:type",String)],dE.prototype,"titleValue",void 0);
_.V([_.N({value:!1}),_.Y("design:type",Boolean)],dE.prototype,"titleValid",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],dE.prototype,"start",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],dE.prototype,"startValid",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],dE.prototype,"end",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],dE.prototype,"endValid",void 0);_.V([_.N({value:""}),_.Y("design:type",String)],dE.prototype,"videoId",void 0);
_.V([_.N({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.Y("design:type",Boolean)],dE.prototype,"formValid",void 0);_.V([_.N({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.Y("design:type",Object)],dE.prototype,"submitButton_",void 0);_.V([_.N({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.Y("design:type",Object)],dE.prototype,"submitCommand_",void 0);
_.V([_.N({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.Y("design:type",Object)],dE.prototype,"cancelButton_",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],dE.prototype,"isLoading_",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dE.prototype,"isAdPlaying",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],dE.prototype,"returnTime",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],dE.prototype,"isAtLiveHead",void 0);
_.V([_.GI("title-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dE.prototype,"onTitleChanged_",null);_.V([_.GI("start-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dE.prototype,"onStartChanged_",null);_.V([_.GI("end-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dE.prototype,"onEndChanged_",null);
_.V([_.GI("title-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dE.prototype,"onTitleValidChanged_",null);_.V([_.GI("start-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dE.prototype,"onStartValidChanged_",null);_.V([_.GI("end-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dE.prototype,"onEndValidChanged_",null);
_.V([_.sD({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],dE);
_.l(dE,"yt-clip-creation-renderer",function(){if(UXG===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;B0d===void 0&&(B0d=document.createElement("template"));var H=B0d;S.call(J,H.content.cloneNode(!0),p.content.firstChild);UXG=p}p=UXG;return p},{mode:2});var ut=function(){return _.T.apply(this,arguments)||this};
_.Q(ut,_.T);ut.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"}}}};
ut.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(p){return p.hasOwnProperty("clipCreationRenderer")})&&_.IV(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
ut.prototype.onPanelContentVisibleChanged=ut.prototype.onPanelContentVisibleChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.G_.YtVisibilityBehavior),_.Y("design:type",Object)],ut.prototype,"ytVisibilityBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],ut.prototype,"ytdReduxBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],ut.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ut.prototype,"panelContentVisible",void 0);_.V([_.bO("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ut.prototype,"onPanelContentVisibleChanged",null);_.V([_.gw({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],ut);
_.l(ut,"ytd-clip-section-renderer",function(){if(WNa!==void 0)return WNa;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return WNa=p},{mode:1});var kda;var lt=function(){return _.T.apply(this,arguments)||this};
_.Q(lt,_.T);_.R=lt.prototype;
_.R.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=_.s0(this.highlightedIndex,-1,this.snippetElements.length);p=this.snippetElements.length;var J=this.highlightedIndex%p;this.highlightedIndex=J*p<0?J+p:J;p=this.snippetElements[this.highlightedIndex];this.highlightSnippet(p);this.ensureVisible(p)}};
_.R.onKeyUp=function(p){var J=this;h27(p)&&(p.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.wg.cancelJob(this.inputTimerId),this.inputTimerId=_.wg.addLowPriorityJob(function(){J.typedValue&&(J.fetchSnippets(J.typedValue),J.logInputGesture(J.data))},1E3))};
_.R.onClick=function(p){(p=_.d0o(p.target,null,"snippet-item"))&&this.selectSnippet(p)};
_.R.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.R.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.R.ready=function(){var p=this;this.inputElement.addEventListener("focus",function(){p.snippetsWrapper.style.removeProperty("display")})};
_.R.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.R.getSourceTimelines=function(){if(!this.data)return[];var p=[];if(this.data.searchInVideoSources)for(var J=_.K(this.data.searchInVideoSources),S=J.next();!S.done;S=J.next())S=S.value,S==="SEARCH_IN_VIDEO_SOURCE_ASR"?p.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):S==="SEARCH_IN_VIDEO_SOURCE_OCR"&&p.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return p};
_.R.fetchSnippets=function(p){var J=_.IV(this.hostElement,"yt-get-current-video-id-action")[0],S=this.getSourceTimelines();p={getSearchInVideoCommand:{externalVideoId:J,query:p!=null?p:"",sourceTimelines:S},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}})};
_.R.filterSnippets=function(p,J){var S=this;if(J){this.filteredSnippets=(0,_.T6.unsafeClone)(p);var H=RegExp(_.B9W(J),"i");this.filteredSnippets=this.filteredSnippets.filter(function(Z){return H.test(S.ytRendererBehavior.getSimpleString(Z.snippet))});
p=_.K(this.filteredSnippets);for(var M=p.next();!M.done;M=p.next()){M=M.value;var X=this.ytRendererBehavior.getSimpleString(M.snippet);M.snippet={runs:[{text:X.substring(0,X.toLowerCase().indexOf(J))},{text:X.substring(X.toLowerCase().indexOf(J),X.toLowerCase().indexOf(J)+J.length),bold:!0},{text:X.substring(X.toLowerCase().indexOf(J)+J.length,X.length)}]}}}else this.filteredSnippets=p};
_.R.onUpdateSearchInVideoResults=function(p){if(!(this.snippets.length>0)){var J,S,H;if((H=(J=_.e(p,rqG))==null?void 0:(S=J.results)==null?void 0:S.length)!=null&&H){var M;this.filteredSnippets=this.snippets=((M=_.e(p,rqG))==null?void 0:M.results).map(function(X){var Z,n,b;return{startMs:X==null?void 0:(Z=X.searchInVideoResultRenderer)==null?void 0:Z.startMs,startTimeText:X==null?void 0:(n=X.searchInVideoResultRenderer)==null?void 0:n.startTimeText,snippet:X==null?void 0:(b=X.searchInVideoResultRenderer)==
null?void 0:b.snippet}})}}};
_.R.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};
_.R.highlightSnippet=function(p){p.classList.add("highlighted")};
_.R.removeSnippetHighlight=function(p){p.classList.remove("highlighted")};
_.R.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)};
_.R.ensureVisible=function(p){var J=this.snippetsWrapper.scrollTop,S=J+this.snippetsWrapper.clientHeight,H=p.offsetTop-this.snippetsWrapper.offsetTop;p=H+p.clientHeight;H<J?this.snippetsWrapper.scrollTop-=J-H:p>S&&(this.snippetsWrapper.scrollTop+=p-S)};
_.R.seekPlayer=function(p){var J,S;return _.G(function(H){if(H.nextAddress==1){if(!p)return H.jumpTo(0);J=Number(p.dataset.startOffset);return H.yield(_.Lb().getPlayerPromise(),3)}S=H.yieldResult;S.seekTo(J/1E3,!0);S.wakeUpControls();_.UK(H)})};
_.R.logInputGesture=function(p){var J=_.C1();J&&(p==null?0:p.trackingParams)&&_.Vf(J,_.Az(p.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.R.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("typed-value-changed",this.typedValue))};
_.R.updateTypedValueFromBinding=function(p){this.typedValue=p.currentTarget.value};
lt.prototype.typedValueChangedForBinding=lt.prototype.typedValueChangedForBinding;lt.prototype.dataChanged=lt.prototype.dataChanged;lt.prototype.panelContentVisibleChanged=lt.prototype.panelContentVisibleChanged;lt.prototype.onClick=lt.prototype.onClick;lt.prototype.onKeyUp=lt.prototype.onKeyUp;lt.prototype.onKeyDown=lt.prototype.onKeyDown;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],lt.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],lt.prototype,"data",void 0);_.V([_.N({value:[]}),_.Y("design:type",Array)],lt.prototype,"snippets",void 0);_.V([_.N({value:[]}),_.Y("design:type",Array)],lt.prototype,"filteredSnippets",void 0);_.V([_.N({value:[]}),_.Y("design:type",Array)],lt.prototype,"snippetElements",void 0);
_.V([_.FM("#siv-input"),_.Y("design:type",HTMLElement)],lt.prototype,"inputElement",void 0);_.V([_.FM("#siv-snippets-wrapper"),_.Y("design:type",HTMLElement)],lt.prototype,"snippetsWrapper",void 0);_.V([_.N(),_.Y("design:type",String)],lt.prototype,"typedValue",void 0);_.V([_.N({value:-1}),_.Y("design:type",Number)],lt.prototype,"highlightedIndex",void 0);_.V([_.GI("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.Bz]),_.Y("design:returntype")],lt.prototype,"onKeyDown",null);
_.V([_.GI("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.Bz]),_.Y("design:returntype")],lt.prototype,"onKeyUp",null);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],lt.prototype,"onClick",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],lt.prototype,"panelContentVisible",void 0);
_.V([_.bO("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lt.prototype,"panelContentVisibleChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lt.prototype,"dataChanged",null);_.V([_.bO("typedValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lt.prototype,"typedValueChangedForBinding",null);
_.V([_.gw({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],lt);
_.l(lt,"ytd-search-in-video-renderer",function(){if(kda!==void 0)return kda;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return kda=p},{mode:1});var N07;var VA=function(){return _.T.apply(this,arguments)||this};
_.Q(VA,_.T);VA.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
VA.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]]"}}}}}};
VA.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var p,J,S,H,M=(J=_.e((p=this.data)==null?void 0:p.onClickCommand,_.gD8))==null?void 0:(S=J.item)==null?void 0:(H=S.notificationTextRenderer)==null?void 0:H.successResponseText;M&&_.bsL(this.hostElement,M)}};
_.vh.Object.defineProperties(VA.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,J,S,H;return this.isProductPlaceholder&&((p=this.data)==null?void 0:(J=p.hiddenProductOptions)==null?void 0:J.showDropCountdown)&&!!((S=this.data)==null?0:(H=S.hiddenProductOptions)==null?0:H.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,J;return!((p=this.data)==null?0:p.priceReplacementText)&&!((J=this.data)==null||!J.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],VA.prototype,"componentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],VA.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VA.prototype,"useCenterLayoutContainer",null);_.V([_.N({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],VA.prototype,"buttonOverride",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VA.prototype,"isProductPlaceholder",null);
_.V([_.U("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VA.prototype,"showDropCountdown",null);_.V([_.U("isProductPlaceholder","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VA.prototype,"showBrandName",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VA.prototype,"showPriceReplacementText",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VA.prototype,"showPrice",null);
_.V([_.U("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VA.prototype,"showMetadata",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],VA);
_.l(VA,"ytd-product-list-item-renderer",function(){if(N07!==void 0)return N07;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return N07=p},{mode:1});var T0a;var qS=function(){return _.T.apply(this,arguments)||this};
_.Q(qS,_.T);qS.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
qS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
qS.prototype.panelContentVisibleChanged=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return p.playerApi?S.jumpTo(2):S.yield(_.Lb().getPlayerPromise(),3);S.nextAddress!=2&&(p.playerApi=S.yieldResult);(J=p.playerApi)==null||J.productsInVideoVisibilityUpdated(!!p.panelContentVisible);_.UK(S)})};
qS.prototype.panelContentVisibleChanged=qS.prototype.panelContentVisibleChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qS.prototype,"panelContentVisible",void 0);_.V([_.N(),_.Y("design:type",Object)],qS.prototype,"data",void 0);
_.V([_.bO("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],qS.prototype,"panelContentVisibleChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],qS);
_.l(qS,"ytd-product-list-renderer",function(){if(T0a!==void 0)return T0a;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return T0a=p},{mode:1});var dXT;var aT=function(){var p=_.T.apply(this,arguments)||this;p.hideTimestamps=!!_.$t("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};
_.Q(aT,_.T);_.R=aT.prototype;_.R.hideTimestampsChanged=function(){_.ze("hide-transcript-timestamps",this.hideTimestamps)};
_.R.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.R.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.R.dataChanged=function(){var p;if((p=this.data)!=null&&p.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;p=_.K(this.data.cueGroups);for(var J=p.next();!J.done;J=p.next()){J=_.K(_.e(J.value,j6v).cues);for(var S=J.next();!S.done;S=J.next())this.flatCues.push(Number(_.e(S.value,wBv).startOffsetMs))}}};
_.R.onYtPlayerTimeChanged=function(p){if(!(p<0)){for(var J=this.currentCueIndex,S=J;;){var H=S>=0?this.flatCues[S]/1E3:-1;if(p+.5<H)--S;else if(H=S+1<this.flatCues.length?this.flatCues[S+1]/1E3:Infinity,p+.5>H)S+=1;else break}S!==J&&(J>=0&&((p=this.getCueElement(J))&&p.classList.remove("active"),(J=this.getCueGroupElement(J))&&J.classList.remove("active")),(J=this.getCueElement(S))&&J.classList.add("active"),(J=this.getCueGroupElement(S))&&J.classList.add("active"),this.currentCueIndex=S,this.isHovered||
this.scrollElementToTop(S))}};
_.R.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)};
_.R.getCueElement=function(p){return _.Jn(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[p]+'"]')};
_.R.getCueGroupElement=function(p){return(p=this.getCueElement(p))&&p.parentElement?p.parentElement.parentElement:null};
_.R.onTap=function(p){var J=_.Yt(p);p.target.classList.contains("cue")&&this.seekCueElement(J)};
_.R.onKeyPress=function(p){p.keyCode==13&&(p=_.d0o(p.target,null,"cue"))&&this.seekCueElement(p)};
_.R.seekCueElement=function(p){p=Number(p.getAttribute("start-offset"));_.IV(this.hostElement,"yt-transcript-player-seek",[p/1E3])};
_.R.onMouseEnter=function(){this.isHovered=!0};
_.R.onMouseLeave=function(){this.isHovered=!1};
aT.prototype.onMouseLeave=aT.prototype.onMouseLeave;aT.prototype.onMouseEnter=aT.prototype.onMouseEnter;aT.prototype.onKeyPress=aT.prototype.onKeyPress;aT.prototype.onTap=aT.prototype.onTap;aT.prototype.dataChanged=aT.prototype.dataChanged;aT.prototype.hideTimestampsChanged=aT.prototype.hideTimestampsChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],aT.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],aT.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],aT.prototype,"hideTimestamps",void 0);_.V([_.N(),_.Y("design:type",Boolean)],aT.prototype,"isHovered",void 0);_.V([_.bO("hideTimestamps"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aT.prototype,"hideTimestampsChanged",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aT.prototype,"dataChanged",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],aT.prototype,"onTap",null);_.V([_.GI("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],aT.prototype,"onKeyPress",null);
_.V([_.GI("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aT.prototype,"onMouseEnter",null);_.V([_.GI("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aT.prototype,"onMouseLeave",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],aT);
_.l(aT,"ytd-transcript-body-renderer",function(){if(dXT!==void 0)return dXT;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return dXT=p},{mode:1});var u7t;var E1=function(){var p=_.T.apply(this,arguments)||this;p.darkerPanels=_.z("web_watch_darker_panels");return p};
_.Q(E1,_.T);E1.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],E1.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],E1.prototype,"darkerPanels",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],E1);
_.l(E1,"ytd-transcript-footer-renderer",function(){if(u7t!==void 0)return u7t;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return u7t=p},{mode:1});var lnt;var VTD;var Y7=function(){var p=_.T.apply(this,arguments)||this;p.systemIcons=_.z("kevlar_system_icons");p.showClearButton=!1;return p};
_.Q(Y7,_.T);_.R=Y7.prototype;_.R.handleInput=function(p){var J=this;p.target.value.length?_.uO(this,"ytdTranscriptSearchBoxSearch",function(){J.emitSearchEvent(p)},500):(_.A2k(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=p.target.value.length>0};
_.R.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.R.handleClick=function(){var p,J=(p=this.data)==null?void 0:p.trackingParams;J&&_.VK(_.bC(),J)};
_.R.handleClear=function(){_.A2k(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var p,J,S=(J=_.e((p=this.data)==null?void 0:p.clearButton,_.Za))==null?void 0:J.trackingParams;S&&_.VK(_.bC(),S);this.clear()};
_.R.emitSearchEvent=function(p){_.cf(this.hostElement,"yt-transcript-search-box-search",{query:p.target.value});var J,S;(p=(S=_.e((J=this.data)==null?void 0:J.searchButton,_.Za))==null?void 0:S.trackingParams)&&_.VK(_.bC(),p)};
_.R.emitClearEvent=function(){_.cf(this.hostElement,"yt-transcript-search-box-clear")};
_.vh.Object.defineProperties(Y7.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Jn(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Y7.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Y7.prototype,"systemIcons",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Y7);
_.l(Y7,"ytd-transcript-search-box-renderer",function(){if(VTD!==void 0)return VTD;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return VTD=p},{mode:1});var qLq;var anG;var rE=function(){return _.T.apply(this,arguments)||this};
_.Q(rE,_.T);rE.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var p,J;this.sectionHeaderAriaLabel=(p=this.data)==null?void 0:(J=p.accessibility)==null?void 0:J.accessibilityData.label}};
rE.prototype.fireSelectedEvent=function(p){_.cf(this.hostElement,"ytd-transcript-section-header",{startMs:p})};
rE.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
rE.prototype.handleKeyPress=function(p){this.data&&p.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.vh.Object.defineProperties(rE.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var p,J;return(J=(p=this.data)==null?void 0:p.enableTappableTranscriptHeader)!=null?J:!1}}});
rE.prototype.dataChanged=rE.prototype.dataChanged;_.V([_.N(),_.Y("design:type",Object)],rE.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],rE.prototype,"sectionHeaderAriaLabel",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rE.prototype,"enableTappableTranscriptHeader",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rE.prototype,"dataChanged",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],rE);
_.l(rE,"ytd-transcript-section-header-renderer",function(){if(anG!==void 0)return anG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return anG=p},{mode:1});var Eds;var YLd;var jl=function(){var p=_.T.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:_.Kl("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Kl("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Kl("submit_correction",void 0,"Submit for review"),cancel_correction:_.Kl("cancel_correction",
void 0,"Cancel"),replay_segment:_.Kl("replay_segment",void 0,"Re-play segment"),delete_correction:_.Kl("delete_correction",void 0,"Delete correction")};p.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return p};
_.Q(jl,_.T);_.R=jl.prototype;_.R.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)};
_.R.handleDelete=function(p){if(this.deleteCaptionCorrectionPopupCommand){var J=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);J&&this.ytdOpenPopupBehavior.openPopup(J);p.stopPropagation()}};
_.R.handleSubmit=function(p){if(this.data&&this.data.submitCaptionCorrectionCommand&&(p.stopPropagation(),this.textChanged)){var J;p=(J=_.e(this.data.submitCaptionCorrectionCommand,_.NUL))==null?void 0:J.params;J=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:p,correctionText:String(this.ironTextAreaElement.value),originalText:_.E4(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(J);this.isEditMode=!1}};
_.R.handleUpdateSegmentText=function(p){(p=_.e(p,GgT))&&p.targetId&&this.data&&p.targetId===this.data.targetId&&(p.userCorrection&&(this.editedText=p.userCorrection),p.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.E4(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))};
_.R.handleCancel=function(p){this.isEditMode=!1;p.stopPropagation();this.logClientVe(159409)};
_.R.handleEditSegmentCommand=function(p){(p=_.e(p,nQq))&&p.targetId&&this.data&&p.targetId===this.data.targetId&&this.handleEdit()};
_.R.handleEditButtonClick=function(p){this.data&&(this.handleEdit(),p.stopPropagation())};
_.R.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)}};
_.R.handleMouseEnter=function(){this.mouseOver=!0};
_.R.handleMouseLeave=function(){this.mouseOver=!1};
_.R.handleReplay=function(p){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),p.stopPropagation(),this.logClientVe(159408))};
_.R.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()))};
_.R.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))};
_.R.handleTextboxClick=function(p){p.stopPropagation()};
_.R.handleTextboxKeydown=function(p){this.isControlEnterPress(p)?this.handleSubmit(p):p.key==="Escape"&&this.handleCancel(p)};
_.R.handleTextboxKeyup=function(){this.textChanged=_.E4(this.latestText)!==String(this.ironTextAreaElement.value)};
_.R.fireSelectedEvent=function(p){_.cf(this.hostElement,"yt-transcript-segment-selected",{startMs:p})};
_.R.fireReplayEvent=function(p,J){_.cf(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(p-100,0),endMs:J})};
_.R.fireEditEvent=function(p,J){_.cf(this.hostElement,"yt-transcript-segment-edit",{startMs:p,endMs:J})};
_.R.isEnterPress=function(p){return p.key==="Enter"||p.code==="Enter"||p.code==="NumpadEnter"||p.keyCode===13?!0:!1};
_.R.isControlEnterPress=function(p){var J=p.key==="Enter"||p.code==="Enter"||p.code==="NumpadEnter"||p.keyCode===13;return(p.ctrlKey||p.metaKey)&&J};
_.R.isCopyPress=function(p){var J=p.ctrlKey;return p.key==="c"&&J};
_.R.logClick=function(){var p,J=(p=this.data)==null?void 0:p.trackingParams;J&&_.VK(_.bC(),J)};
_.R.logClientVe=function(p){_.lq(_.bC(),_.KG(p))};
_.vh.Object.defineProperties(jl.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}}});
jl.prototype.handleMouseLeave=jl.prototype.handleMouseLeave;jl.prototype.handleMouseEnter=jl.prototype.handleMouseEnter;jl.prototype.dataChanged=jl.prototype.dataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],jl.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],jl.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],jl.prototype,"ytRendererBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],jl.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jl.prototype,"isEditMode",void 0);_.V([_.N(),_.Y("design:type",Object)],jl.prototype,"touchCaptionsEnabled",void 0);_.V([_.N(),_.Y("design:type",Object)],jl.prototype,"editedText",void 0);_.V([_.N(),_.Y("design:type",Object)],jl.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.V([_.N(),_.Y("design:type",Object)],jl.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.V([_.N(),_.Y("design:type",String)],jl.prototype,"segmentAriaLabel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jl.prototype,"roundedContainer",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jl.prototype,"mouseOver",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jl.prototype,"textChanged",void 0);_.V([_.N(),_.Y("design:type",Object)],jl.prototype,"messages",void 0);
_.V([_.FM("#suggestion"),_.Y("design:type",Object)],jl.prototype,"ironTextAreaElement",void 0);_.V([_.U("data","editedText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jl.prototype,"latestText",null);_.V([_.U("touchCaptionsEnabled","isEditMode"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jl.prototype,"enableEditButton",null);
_.V([_.U("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jl.prototype,"enableUndoButton",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jl.prototype,"dataChanged",null);_.V([_.GI("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jl.prototype,"handleMouseEnter",null);
_.V([_.GI("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jl.prototype,"handleMouseLeave",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],jl);
_.l(jl,"ytd-transcript-segment-renderer",function(){if(YLd!==void 0)return YLd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return YLd=p},{mode:1});var wE=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};p.isError=!1;p.darkerPanels=_.z("web_watch_darker_panels");p.useParentMaxHeight=_.z("web_watch_transscript_use_parent_max_height");p.segmentOffsets=[];p.segmentIndex=-1;return p};
_.Q(wE,_.T);_.R=wE.prototype;_.R.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"}}}}};
_.R.segmentsChanged=function(){this.updateOffsets()};
_.R.onYtPlayerTimeChanged=function(p){for(var J=this.segmentIndex,S=J;;){if(S>=0){var H=this.segmentOffsets[S].start;var M=this.segmentOffsets[S].isAutoScrollable}else H=-1,M=!0;var X=p+.5;if(!M){H=S+1<this.segmentOffsets.length?this.segmentOffsets[S+1].start:Infinity;if(X>=H){S+=1;continue}S=-1;break}if(X<H)H=S-1>=0&&this.segmentOffsets[S-1].isAutoScrollable,M=S===0||H?1:2,S-=M;else if(M=S+1<this.segmentOffsets.length&&this.segmentOffsets[S+1].isAutoScrollable?1:2,H=S+M<this.segmentOffsets.length?
this.segmentOffsets[S+M].start:Infinity,X>H)S+=M;else{if(S<0)break;S<this.segmentOffsets.length&&X>this.segmentOffsets[S].end&&(S=-1);break}}if(J!==S){if(J>=0){var Z;(Z=this.getSegmentElement(J))==null||Z.classList.remove("active")}this.segmentIndex=S;if(!(S<0)){var n;(n=this.getSegmentElement(S))==null||n.classList.add("active");this.isHovered||this.scrollElementToTop(S)}}};
_.R.handleSegmentEdit=function(p){p.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=p.target,_.IV(this.hostElement,"yt-transcript-player-edit",[p.detail.startMs/1E3,p.detail.endMs/1E3]))};
_.R.handleSegmentSelected=function(p){_.IV(this.hostElement,"yt-transcript-player-seek",[p.detail.startMs/1E3])};
_.R.handleSegmentReplay=function(p){_.IV(this.hostElement,"yt-transcript-player-replay",[p.detail.startMs/1E3,p.detail.endMs/1E3])};
_.R.handleSectionHeaderSelected=function(p){_.IV(this.hostElement,"yt-transcript-player-seek",[p.detail.startMs/1E3])};
_.R.onMouseEnter=function(){this.isHovered=!0};
_.R.onMouseLeave=function(){this.isHovered=!1};
_.R.onRetryButtonClick=function(){_.cf(this.hostElement,"transcript-retry-button-click")};
_.R.getSegmentElement=function(p){return _.Jn(this.hostElement).querySelector(":nth-child("+(p+1)+")")};
_.R.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)};
_.R.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(p){var J,S=(J=p.transcriptSegmentRenderer)!=null?J:p.transcriptSectionHeaderRenderer;return{start:Number(S.startMs)/1E3,end:Number(S.endMs)/1E3,isAutoScrollable:p.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.R.clearHighlightedSegments=function(){var p=_.Jn(this.hostElement);p=_.K(p.querySelectorAll("ytd-transcript-segment-renderer"));for(var J=p.next();!J.done;J=p.next())J.value.classList.remove("active")};
_.vh.Object.defineProperties(wE.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?void 0:p.searchResultSegments)||((J=this.data)==null?void 0:J.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
wE.prototype.onMouseLeave=wE.prototype.onMouseLeave;wE.prototype.onMouseEnter=wE.prototype.onMouseEnter;wE.prototype.handleSectionHeaderSelected=wE.prototype.handleSectionHeaderSelected;wE.prototype.handleSegmentReplay=wE.prototype.handleSegmentReplay;wE.prototype.handleSegmentSelected=wE.prototype.handleSegmentSelected;wE.prototype.handleSegmentEdit=wE.prototype.handleSegmentEdit;wE.prototype.segmentsChanged=wE.prototype.segmentsChanged;
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],wE.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],wE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wE.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],wE.prototype,"isError",void 0);
_.V([_.N(),_.Y("design:type",Object)],wE.prototype,"noResultLabel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],wE.prototype,"darkerPanels",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],wE.prototype,"useParentMaxHeight",void 0);_.V([_.U("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],wE.prototype,"segments",null);
_.V([_.U("segments","noResultLabel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wE.prototype,"displayNoResults",null);_.V([_.bO("segments"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wE.prototype,"segmentsChanged",null);_.V([_.GI("yt-transcript-segment-edit"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],wE.prototype,"handleSegmentEdit",null);
_.V([_.GI("yt-transcript-segment-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],wE.prototype,"handleSegmentSelected",null);_.V([_.GI("yt-transcript-segment-replay"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],wE.prototype,"handleSegmentReplay",null);
_.V([_.GI("ytd-transcript-section-header"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],wE.prototype,"handleSectionHeaderSelected",null);_.V([_.GI("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wE.prototype,"onMouseEnter",null);_.V([_.GI("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wE.prototype,"onMouseLeave",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],wE);
_.l(wE,"ytd-transcript-segment-list-renderer",function(){if(Eds!==void 0)return Eds;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Eds=p},{mode:1});var x7=function(){var p=_.T.apply(this,arguments)||this;p.hideTimestamps=!!_.$t("hide-transcript-timestamps");p.isLoadingTranscripts=!1;p.darkerPanels=_.z("web_watch_darker_panels");p.isError=!1;p.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return p};
_.Q(x7,_.T);_.R=x7.prototype;_.R.headerChanged=function(){var p,J;this.baseGetTranscriptsCommand=(J=_.e((p=this.data)==null?void 0:p.header,bHs))==null?void 0:J.onTextChangeCommand};
_.R.bodyChanged=function(){var p=this.getBodyRenderer();p&&(p.initialSegments&&(this.initialTranscriptsRenderer=p),p.noResultLabel&&(this.noResultLabel=p.noResultLabel),p.retryLabel&&(this.retryLabel=p.retryLabel))};
_.R.detached=function(){this.clearSearchBoxText()};
_.R.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.R.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"}}}};
_.R.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.R.fireSearch=function(p){var J=this;if(p){var S=p.detail.query;if(this.baseGetTranscriptsCommand){var H;p=(H=_.e(this.baseGetTranscriptsCommand,_.kQp))==null?void 0:H.params;var M;H=_.e((M=this.data)==null?void 0:M.footer,x1a);var X;if((M=(X=_.e(H==null?void 0:H.languageMenu,K4s))==null?void 0:X.subMenuItems)&&M.length>0&&(X=M.find(function(b){return b.selected}))){var Z,n;
p=(Z=X.continuation)==null?void 0:(n=Z.reloadContinuationData)==null?void 0:n.continuation}Z=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:p,searchQuery:S}});this.ytComponentBehavior.resolveCommand(Z,{commandController:{onServerError:function(){J.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Bgy(this.ytContinuationHandlerBehavior,function(){return S===J.getCurrentSearchBoxText()})}}};
_.R.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.R.onRetryButtonClick=function(){this.isError=!1;var p={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:p}))};
_.R.hideTimestampsChanged=function(){_.ze("hide-transcript-timestamps",this.hideTimestamps)};
_.R.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.R.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.R.handleSignalActionCopyTranscript=function(){var p=this,J=this.getBodyRenderer();J&&(J=((J==null?void 0:J.searchResultSegments)||(J==null?void 0:J.initialSegments)||[]).map(function(S){return _.e(S,F4u)}).filter(function(S){return!!S}).map(function(S){return{snippet:S.snippet||{runs:[{text:""}]},
startTimeText:S.startTimeText||{simpleText:""}}}).map(function(S){var H=(S.snippet.runs||[]).reduce(function(M,X){return M+X.text},"");
return p.hideTimestamps?H:S.startTimeText.simpleText+" "+H}).join("\n"),this.copyToClipboard(J))};
_.R.copyToClipboard=function(p){navigator.clipboard&&navigator.clipboard.writeText(p)};
_.R.getCurrentSearchBoxText=function(){var p;return(p=this.searchBox)==null?void 0:p.value};
_.R.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.R.getBodyRenderer=function(){var p;return _.e((p=this.data)==null?void 0:p.body,m8t)};
_.R.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.vh.Object.defineProperties(x7.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Jn(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
x7.prototype.hideTimestampsChanged=x7.prototype.hideTimestampsChanged;x7.prototype.searchCleared=x7.prototype.searchCleared;x7.prototype.fireSearch=x7.prototype.fireSearch;x7.prototype.onReloadContinuationFinish=x7.prototype.onReloadContinuationFinish;x7.prototype.bodyChanged=x7.prototype.bodyChanged;x7.prototype.headerChanged=x7.prototype.headerChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],x7.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],x7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.$W),_.Y("design:type",Object)],x7.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],x7.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],x7.prototype,"hideTimestamps",void 0);
_.V([_.N(),_.Y("design:type",Object)],x7.prototype,"isLoadingTranscripts",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],x7.prototype,"darkerPanels",void 0);_.V([_.N(),_.Y("design:type",Object)],x7.prototype,"isError",void 0);_.V([_.bO("data.header"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x7.prototype,"headerChanged",null);
_.V([_.An("data.body"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x7.prototype,"bodyChanged",null);_.V([_.GI("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x7.prototype,"onReloadContinuationFinish",null);_.V([_.GI("yt-transcript-search-box-search"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],x7.prototype,"fireSearch",null);
_.V([_.GI("yt-transcript-search-box-clear"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x7.prototype,"searchCleared",null);_.V([_.bO("hideTimestamps"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x7.prototype,"hideTimestampsChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],x7);
_.l(x7,"ytd-transcript-search-panel-renderer",function(){if(qLq!==void 0)return qLq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return qLq=p},{mode:1});var cr=function(){var p=_.T.apply(this,arguments)||this;p.player=null;p.playerPollJobId=0;return p};
_.Q(cr,_.T);_.R=cr.prototype;_.R.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.R.onLoadReloadContinuation=function(p){_.z("web_generate_att_data_for_get_transcript_request")?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}}},_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}}))};
_.R.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"}}}};
_.R.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.R.attached=function(){this.updatePlayerListening()};
_.R.detached=function(){this.updatePlayerListening()};
_.R.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.R.startPlayerListening=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return(J=_.IY())?S.yield(J.getPlayerPromise(),2):S.return();p.player=S.yieldResult;p.playerPollJobId=_.wg.addLowPriorityJob(function(){p.getPlayerVideoProgress()},1E3);
p.player.addEventListener("onCueRangeEnter",function(H){p.onCueRangeEnter(H)});
p.player.addEventListener("onCueRangeExit",function(H){p.onCueRangeExit(H)});
p.player.addEventListener("onStateChange",function(H){p.onPlayerStateChange(H)});
p.player.addEventListener("SEEK_TO",function(H){p.onPlayerSeek(H)});
_.UK(S)})};
_.R.getPlayerVideoProgress=function(){var p=this;_.wg.cancelJob(this.playerPollJobId);if(this.player){var J=this.player.getCurrentTime();_.IV(this.hostElement,"yt-player-time-changed",[J])}this.playerPollJobId=_.wg.addLowPriorityJob(function(){p.getPlayerVideoProgress()},1E3)};
_.R.stopPlayerListening=function(){this.player=null;_.wg.cancelJob(this.playerPollJobId)};
_.R.onPlayerStateChange=function(p){p===2&&this.removePendingCue()};
_.R.onPlayerSeek=function(p){var J;if(J=this.pendingReplayCueId)J=this.pendingReplayCueId,J=p===(_.z("web_transcript_cue_id_killswitch")?Number(J):Number(J.split("_")[1]));J||this.removePendingCue()};
_.R.onCueRangeEnter=function(p){jyu(p)&&(this.pendingReplayCueId=p)};
_.R.onCueRangeExit=function(p){jyu(p)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.R.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.R.onYtTranscriptPlayerSeek=function(p){this.player&&this.player.seekTo(p,!0)};
_.R.onYtTranscriptPlayerReplay=function(p,J){this.player&&(this.player.addCueRange(rlp(p),p,J),this.player.seekTo(p,!0),this.player.playVideo())};
_.R.onYtTranscriptPlayerEdit=function(p,J){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(rlp(p),p,J),this.player.seekTo(p,!0))};
cr.prototype.onLoadReloadContinuation=cr.prototype.onLoadReloadContinuation;cr.prototype.panelContentVisibleChanged=cr.prototype.panelContentVisibleChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],cr.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],cr.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],cr.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],cr.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],cr.prototype,"panelContentVisible",void 0);_.V([_.bO("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cr.prototype,"panelContentVisibleChanged",null);
_.V([_.GI("yt-load-reload-continuation"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],cr.prototype,"onLoadReloadContinuation",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],cr);
_.l(cr,"ytd-transcript-renderer",function(){if(lnt!==void 0)return lnt;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return lnt=p},{mode:1});var rSs;var jCs;var IT=function(){return _.T.apply(this,arguments)||this};
_.Q(IT,_.T);IT.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.JP(this.hostElement,[this.data.clickCommand],this.hostElement))};
IT.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Ik)()+_.ku)+"px)"};
IT.prototype.updateShouldHideFromBinding=function(p){this.shouldHide=p.detail.value};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],IT.prototype,"rendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],IT.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],IT.prototype,"shouldHide",void 0);_.V([_.gw({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],IT);
_.l(IT,"ytd-ad-engagement-panel-banner-renderer",function(){if(jCs!==void 0)return jCs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return jCs=p},{mode:_.Jz("kevlar_poly_si_batch_j070")?1:2});var wha;var Lw=function(){var p=_.T.apply(this,arguments)||this;p.buttonUpdate=_.z("web_modern_buttons");p.adsSemanticText=_.z("enable_ads_web_ep_buenos_aires_and_padding_fix");return p};
_.Q(Lw,_.T);Lw.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.V([_.N(),_.Y("design:type",Object)],Lw.prototype,"data",void 0);_.V([_.N({computed:"computeHideDefaultAdBadge(data)"}),_.Y("design:type",Boolean)],Lw.prototype,"hideDefaultAdBadge",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Lw.prototype,"buttonUpdate",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Lw.prototype,"adsSemanticText",void 0);_.V([_.gw({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Lw);
_.l(Lw,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(wha!==void 0)return wha;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return wha=p},{mode:1});var xXD;var p6=function(){var p=_.T.apply(this,arguments)||this;p.darkerPanels=_.z("web_watch_darker_panels");p.enableSqueezebackPanels=_.z("web_shorts_enable_squeezeback_panels");p.enableAnchoredPanel=_.z("desktop_shorts_v2_anchored_panel");p.headerClickListener=function(J){p.onHeaderClick(J)};
p.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return p};
_.Q(p6,_.T);_.R=p6.prototype;_.R.computeAdsInfoButton=function(){if(_.z("web_modern_buttons")){var p,J;return(J=_.e((p=this.data)==null?void 0:p.subtitleComplex,cqv))==null?void 0:J.adInfoRenderer}};
_.R.updateHeaderClickListener=function(){var p,J,S;((p=this.data)==null?0:p.navigationEndpoint)||((J=this.data)==null?0:J.onClickCommand)||_.e((S=this.data)==null?void 0:S.visibilityButton,_.n5)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.R.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}}}}}};
_.R.collapsedChanged=function(){var p;(p=this.data)!=null&&p.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.z("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.R.focus=function(p){var J=this;this.titleElement&&_.wg.addJob(function(){_.nH(J.titleElement,p)},0,500)};
_.R.computeTitleAriaLabel=function(p){var J=[];if(p.title){var S,H;J.push(this.ytRendererBehavior.getSimpleString(p.title)||((S=p.title.accessibility)==null?void 0:(H=S.accessibilityData)==null?void 0:H.label))}p.contextualInfo&&J.push(this.ytRendererBehavior.getSimpleString(p.contextualInfo));return J.join(" ")};
_.R.onHeaderClick=function(p){this.shouldTriggerHeaderClick(p)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.JP(this.hostElement,[this.data.onClickCommand],this.hostElement)):(p=this.getVisibilityToggleButton())&&p.click())};
_.R.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var p=_.e(this.data.visibilityButton,_.Za)||_.e(this.data.visibilityButton,_.n5);p&&this.ytRendererBehavior.logExplicitClick(p)}};
_.R.getVisibilityToggleButton=function(){var p=_.Jn(this.hostElement).querySelector("#visibility-button").firstElementChild;return(p==null?void 0:p.is)==="ytd-toggle-button-renderer"?p:null};
_.R.shouldTriggerHeaderClick=function(p){return!_.jK(_.Er(p),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.R.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(p){p=_.e(p,_.V9s);this.targetId&&(p==null?void 0:p.targetId)===this.targetId&&(p=p.navigationButton)&&this.set("data.navigationButton",p)};
_.vh.Object.defineProperties(p6.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.z("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)}}});
p6.prototype.collapsedChanged=p6.prototype.collapsedChanged;p6.prototype.updateHeaderClickListener=p6.prototype.updateHeaderClickListener;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],p6.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],p6.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],p6.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],p6.prototype,"targetId",void 0);_.V([_.N(),_.Y("design:type",Boolean)],p6.prototype,"collapsed",void 0);_.V([_.N(),_.Y("design:type",Boolean)],p6.prototype,"hideActionButton",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],p6.prototype,"shortsPanel",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],p6.prototype,"liveChatEngagementPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],p6.prototype,"learningChatEngagementPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],p6.prototype,"darkerPanels",void 0);_.V([_.FM("#title"),_.Y("design:type",HTMLElement)],p6.prototype,"titleElement",void 0);_.V([_.FM("#header"),_.Y("design:type",HTMLElement)],p6.prototype,"headerElement",void 0);
_.V([_.N({computed:"computeAdsInfoButton(data)"}),_.Y("design:type",Object)],p6.prototype,"adsInfoButton",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],p6.prototype,"enableSqueezebackPanels",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],p6.prototype,"enableAnchoredPanel",void 0);_.V([_.N({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(p,J){return _.RR(p.entities,"engagementPanelTitleHeaderEntity",J)}}),
_.Y("design:type",Object)],p6.prototype,"entity",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],p6.prototype,"adsSemanticText",null);_.V([_.bO("data","data.navigationEndpoint","data.onClickCommand"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],p6.prototype,"updateHeaderClickListener",null);
_.V([_.An("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],p6.prototype,"collapsedChanged",null);_.V([_.U("entity","hideActionButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],p6.prototype,"isActionButtonHidden",null);_.V([_.gw({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],p6);
_.l(p6,"ytd-engagement-panel-title-header-renderer",function(){if(xXD!==void 0)return xXD;var p=document.createElement("template");_.C(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" 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(_.r().content.cloneNode(!0),p.content.firstChild);return xXD=p},{mode:1});var cSp;var JN=function(){return _.T.apply(this,arguments)||this};
_.Q(JN,_.T);JN.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],JN.prototype,"data",void 0);_.V([_.gw({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],JN);
_.l(JN,"ytd-macro-markers-info-item-renderer",function(){if(cSp!==void 0)return cSp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return cSp=p},{mode:1});var InD;var Su=function(p,J,S,H,M,X){_.gp.call(this);var Z=this;this.JSC$23387_containerElement=p;this.hostElement=J;this.supportedSyncItems=S;this.syncEntityKey=H;this.options=M;this.renderLazyListItems=X;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;LND(this);pfD(this);this.JSC$23387_scrollAnimation=new _.QZ(function(n){p.scrollTop=n});
_.$c(this,this.JSC$23387_scrollAnimation);this.addOnDisposeCallback(function(){J1G(Z,!1);Z.activeItem&&Z.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.Q(Su,_.gp);var LND=function(p){var J=_.j7(_.vO().resolve(_.XN),function(S){return S.entities.markersEngagementPanelSyncEntity||{}},function(S,H){var M;
if(S[p.syncEntityKey]!==H[p.syncEntityKey]&&((M=S[p.syncEntityKey])==null?void 0:M.activeItemIndex)!==void 0)if(H=S[p.syncEntityKey].activeItemIndex,S=p.getItemByIndex(H)){if(SBp(p,S),p.contentVisible)if(p.browsingMode){var X;((X=p.options)==null?void 0:X.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(X=H1D(p),S.offsetTop<p.JSC$23387_containerElement.clientHeight+p.JSC$23387_containerElement.scrollTop&&X&&!p.activeItemBelowSyncPosition&&J1G(p,!1));MqT(p)}else p.scrollToItem(S)}else _.xQ(new _.TG("Could not find "+
p.supportedSyncItems+" sync child to set active.",H,p.JSC$23387_containerElement.querySelectorAll(p.supportedSyncItems).length))});
p.unsubscribeFromTimedMarkersListSyncEntity=J;p.addOnDisposeCallback(J);Xf7(p)},Xf7=function(p){var J=_.vO().resolve(_.XN);
J=_.Ffv(J.getState(),p.syncEntityKey);(J==null?void 0:J.activeItemIndex)!==void 0&&(J=p.getItemByIndex(J.activeItemIndex))&&SBp(p,J)},pfD=function(p){var J=new _.nb(p.onScroll,50,p);
_.$c(p,J);var S=function(){J.fire()};
p.JSC$23387_containerElement.addEventListener("scroll",S);p.addOnDisposeCallback(function(){p.JSC$23387_containerElement.removeEventListener("scroll",S)})};
Su.prototype.getItemByIndex=function(p){var J;(J=this.renderLazyListItems)==null||J.call(this,p);J=this.JSC$23387_containerElement.querySelectorAll(this.supportedSyncItems);if(J.length>p)return J[p]};
var SBp=function(p,J){p.activeItem&&p.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));J.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));p.activeItem=J};
Su.prototype.scrollToItem=function(p){p=this.getScrollPositionForItem(p);this.JSC$23387_containerElement.scrollTop!==p&&this.JSC$23387_scrollAnimation.start(this.JSC$23387_containerElement.scrollTop,p,300)};
Su.prototype.getScrollPositionForItem=function(p){if(this.JSC$23387_containerElement.querySelectorAll(this.supportedSyncItems)[0]===p)return 0;var J,S=((J=this.options)==null?0:J.percentOffset)?this.JSC$23387_containerElement.clientHeight*this.options.percentOffset:0;p=_.q0(p).y+this.JSC$23387_containerElement.scrollTop-(_.q0(this.JSC$23387_containerElement).y+S);return Math.max(0,Math.min(p,this.JSC$23387_containerElement.scrollHeight-this.JSC$23387_containerElement.offsetHeight))};
Su.prototype.onScroll=function(){this.activeItemBelowSyncPosition=H1D(this);if(this.activeItem&&!this.JSC$23387_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23387_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var p;switch((p=this.options)==null?void 0:p.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":i1s(this,!RCa(this));MqT(this);break;default:i1s(this,!0)}}};
var i1s=function(p,J){var S,H;_.G(function(M){if(M.nextAddress==1){if(p.browsingMode)return M.return();p.browsingMode=!0;J&&p.hostElement.classList.add("browsing-mode");p.playerExitBrowsingModeListener=function(){J1G(p,!1)};
return M.yield(_.Zp(),2)}S=M.yieldResult;(H=S)==null||H.addEventListener("SEEK_TO",p.playerExitBrowsingModeListener);_.UK(M)})},J1G=function(p,J){J=J===void 0?!0:J;
p.browsingMode&&(p.browsingMode=!1,p.hostElement.classList.remove("browsing-mode"),J&&p.scrollToItem(p.activeItem),KzD(p))},KzD=function(p){var J,S;
_.G(function(H){if(H.nextAddress==1)return p.playerExitBrowsingModeListener?H.yield(_.Zp(),3):H.jumpTo(0);J=H.yieldResult;(S=J)==null||S.removeEventListener("SEEK_TO",p.playerExitBrowsingModeListener);p.playerExitBrowsingModeListener=void 0;_.UK(H)})},MqT=function(p){var J;
((J=p.options)==null?void 0:J.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(RCa(p)?p.hostElement.classList.remove("browsing-mode"):p.activeItem&&p.hostElement.classList.add("browsing-mode"))},H1D=function(p){if(!p.activeItem)return!1;
var J,S=((J=p.options)==null?0:J.percentOffset)?p.JSC$23387_containerElement.clientHeight*p.options.percentOffset:0;return p.activeItem.offsetTop>=p.JSC$23387_containerElement.scrollTop+S},RCa=function(p){if(!p.activeItem)return!1;
var J=p.activeItem.offsetTop+14<=p.JSC$23387_containerElement.scrollTop+p.JSC$23387_containerElement.clientHeight;return p.activeItem.offsetTop+p.activeItem.clientHeight-14>=p.JSC$23387_containerElement.scrollTop&&J};
Su.prototype.panelContentVisibleChanged=function(p){(this.contentVisible=p)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Z1d=function(p,J){p.syncEntityKey=J;var S;(S=p.unsubscribeFromTimedMarkersListSyncEntity)==null||S.call(p);LND(p)},nVy=function(p,J){p.options=J};var HV=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return p};
_.Q(HV,_.T);_.R=HV.prototype;_.R.detached=function(){var p;(p=this.scrollController)==null||p.dispose();this.scrollController=void 0};
_.R.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"}}}};
_.R.dataChanged=function(){var p=this;_.mN(this,function(){if(p.scrollController){var J;(J=p.scrollController)==null||J1G(J,!1);var S,H,M;(H=p.scrollController)==null||Z1d(H,(M=(S=p.data)==null?void 0:S.syncModelEntityKey)!=null?M:"default-macro-markers-list-renderer-entity-key");var X,Z,n;(n=p.scrollController)==null||nVy(n,{percentOffset:(X=p.data)==null?void 0:X.selectedItemAlignmentPercentOffset,floatingPillType:(Z=p.data)==null?void 0:Z.floatingPillType})}else{var b,F,f,O;p.scrollController=
new Su(p.contents,p.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(O=(b=p.data)==null?void 0:b.syncModelEntityKey)!=null?O:"default-macro-markers-list-renderer-entity-key",{percentOffset:(F=p.data)==null?void 0:F.selectedItemAlignmentPercentOffset,floatingPillType:(f=p.data)==null?void 0:f.floatingPillType},function(A){p.renderLazyListItems(A)})}p.scrollController.panelContentVisibleChanged(!!p.panelContentVisible)})};
_.R.computeButtonShape=function(){var p=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){p.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.R.renderLazyListItems=function(p){for(var J=this.contents.children,S=0,H=0;H<J.length;H++){var M=void 0;(M=J[H].ytLazyListBehavior)==null||M.fillRemainingListItems();var X=void 0,Z=void 0;M=_.e((X=this.data)==null?void 0:(Z=X.contents)==null?void 0:Z[H],_.zrn);Z=X=void 0;if((X=M)==null?0:(Z=X.contents)==null?0:Z.length)S+=M.contents.length;if(S>=p)break}};
_.R.handleSetActivePanelItemAction=function(p){if((p=_.e(p,aky))&&this.panelTargetId===p.panelTargetId){p=p.itemIndex;var J,S,H=(S=(J=this.data)==null?void 0:J.syncModelEntityKey)!=null?S:"default-macro-markers-list-renderer-entity-key",M;((M=this.syncEntity)==null?void 0:M.activeItemIndex)!==p&&this.ytdReduxBehavior.dispatch(_.P$("markersEngagementPanelSyncEntity",H,{key:H,activeItemIndex:p}))}};
_.R.onSyncClick=function(){var p;(p=this.scrollController)==null||J1G(p)};
_.R.panelContentVisibleChanged=function(){var p;(p=this.scrollController)==null||p.panelContentVisibleChanged(!!this.panelContentVisible)};
HV.prototype.panelContentVisibleChanged=HV.prototype.panelContentVisibleChanged;HV.prototype.dataChanged=HV.prototype.dataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],HV.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],HV.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],HV.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],HV.prototype,"data",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],HV.prototype,"useCustomColors",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],HV.prototype,"panelTargetId",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],HV.prototype,"panelContentVisible",void 0);
_.V([_.FM("#contents"),_.Y("design:type",HTMLElement)],HV.prototype,"contents",void 0);_.V([_.N({selectorArgs:["data.syncModelEntityKey"],selector:_.Ffv}),_.Y("design:type",Object)],HV.prototype,"syncEntity",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HV.prototype,"dataChanged",null);
_.V([_.bO("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HV.prototype,"panelContentVisibleChanged",null);_.V([_.gw({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],HV);
_.l(HV,"ytd-macro-markers-list-renderer",function(){if(InD!==void 0)return InD;var p=document.createElement("template");_.C(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" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return InD=p},{mode:1});var GXa;var M5=function(){return _.T.apply(this,arguments)||this};
_.Q(M5,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],M5.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],M5.prototype,"data",void 0);_.V([_.gw({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],M5);
_.l(M5,"ytd-error-corrections-section-item-renderer",function(){if(GXa!==void 0)return GXa;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return GXa=p},{mode:1});var b1u;var Xw=function(){return _.T.apply(this,arguments)||this};
_.Q(Xw,_.T);Xw.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Xw.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Xw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Xw.prototype,"data",void 0);_.V([_.gw({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Xw);
_.l(Xw,"ytd-error-corrections-section-renderer",function(){if(b1u!==void 0)return b1u;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return b1u=p},{mode:1});var m9v;var ik=function(){return _.T.apply(this,arguments)||this};
_.Q(ik,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],ik.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ik.prototype,"data",void 0);_.V([_.gw({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],ik);
_.l(ik,"ytd-topic-link-renderer",function(){if(m9v!==void 0)return m9v;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return m9v=p},{mode:1});var Fzy;var Rb=function(){var p=_.T.apply(this,arguments)||this;p.modernLockupV2=_.z("modernize_structured_description_playlist_lockups_v2");return p};
_.Q(Rb,_.T);Rb.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Rb.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Rb.prototype,"modernLockupV2",void 0);_.V([_.gw({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Rb);
_.l(Rb,"ytd-video-description-course-section-renderer",function(){if(Fzy!==void 0)return Fzy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Fzy=p},{mode:1});var vVp;var K6=function(){return _.T.apply(this,arguments)||this};
_.Q(K6,_.T);K6.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],K6.prototype,"data",void 0);_.V([_.gw({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],K6);
_.l(K6,"ytd-video-description-files-section-renderer",function(){if(vVp!==void 0)return vVp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return vVp=p},{mode:1});var fxs;var Zb=function(){return _.T.apply(this,arguments)||this};
_.Q(Zb,_.T);Zb.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Zb.prototype,"data",void 0);_.V([_.gw({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Zb);
_.l(Zb,"ytd-video-description-gaming-section-renderer",function(){if(fxs!==void 0)return fxs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return fxs=p},{mode:1});var O1s;var n6=function(){var p=_.T.apply(this,arguments)||this;p.isExpanded=!1;return p};
_.Q(n6,_.T);n6.prototype.computeHasDefaultMetadataEndpoint=function(p){var J;p=p==null?void 0:(J=p.defaultMetadata)==null?void 0:J.runs;return!(!p||p.length!==1||!p[0].navigationEndpoint)};
n6.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.vh.Object.defineProperties(n6.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)}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],n6.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],n6.prototype,"isExpanded",void 0);_.V([_.N({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],n6.prototype,"hasDefaultMetadataEndpoint",void 0);
_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],n6.prototype,"isExpandable",null);_.V([_.U("data","isExpandable","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],n6.prototype,"showExpandedMetadata",null);_.V([_.gw({is:"ytd-info-row-renderer",disableElementRegistration:!0})],n6);
_.l(n6,"ytd-info-row-renderer",function(){if(O1s!==void 0)return O1s;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return O1s=p},{mode:1});var A14;var Gw=function(){var p=_.T.apply(this,arguments)||this;p.currentIndex=0;p.supportComponentResize=!0;p.JSC$23416_lastScrollContainerWidth=NaN;return p};
_.Q(Gw,_.T);_.R=Gw.prototype;
_.R.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"}}}};
_.R.getItemsPath=function(){return"videoLockups"};
_.R.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.R.onIronResize=function(){this.updateVideoLockupStyles()};
_.R.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.R.updateVideoLockupStyles=function(){var p;this.JSC$23416_scrollContainer!==void 0&&(p=this.videoLockups)!=null&&p.length&&(p=this.JSC$23416_scrollContainer.clientWidth,p!==this.JSC$23416_lastScrollContainerWidth&&(this.JSC$23416_lastScrollContainerWidth=p,_.K3(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(p*.8,415)+"px"}),_.cf(this.hostElement,"iron-resize")))};
_.vh.Object.defineProperties(Gw.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var p=[],J;if((J=this.data)==null||!J.carouselLockups)return p;J=_.K(this.data.carouselLockups);for(var S=J.next();!S.done;S=J.next()){S=S.value;var H=void 0;((H=_.e(S,PSp))==null?0:H.videoLockup)&&p.push(_.e(S,PSp).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=[],J;if((J=this.data)==null||!J.carouselLockups)return p;var S;return(S=_.e(this.data.carouselLockups[this.scrollCount],PSp))==null?void 0:S.infoRows}}});
Gw.prototype.dataChanged=Gw.prototype.dataChanged;Gw.prototype.onIronResize=Gw.prototype.onIronResize;Gw.prototype.hiddenChanged=Gw.prototype.hiddenChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Gw.prototype,"componentBehavior",void 0);_.V([_.B(_.BH.YtdHorizontalListBehavior),_.Y("design:type",Object)],Gw.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Gw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Gw.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gw.prototype,"inlineStructuredDescription",void 0);_.V([_.N({value:2}),_.Y("design:type",Number)],Gw.prototype,"initialCount",void 0);_.V([_.N(),_.Y("design:type",Object)],Gw.prototype,"currentIndex",void 0);
_.V([_.N(),_.Y("design:type",Number)],Gw.prototype,"scrollCount",void 0);_.V([_.N(),_.Y("design:type",Object)],Gw.prototype,"supportComponentResize",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gw.prototype,"contentHidden",void 0);_.V([_.FM("#scroll-container"),_.Y("design:type",HTMLDivElement)],Gw.prototype,"JSC$23416_scrollContainer",void 0);
_.V([_.bO("contentHidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gw.prototype,"hiddenChanged",null);_.V([_.U("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Gw.prototype,"videoLockups",null);_.V([_.U("videoLockups"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gw.prototype,"hasVideoLockups",null);
_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gw.prototype,"onIronResize",null);_.V([_.U("data","scrollCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gw.prototype,"infoRows",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gw.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Gw);
_.l(Gw,"ytd-video-description-music-section-renderer",function(){if(A14!==void 0)return A14;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return A14=p},{mode:_.Jz("kevlar_poly_si_batch_j081")?1:2});var Pja;var bk=function(){return _.T.apply(this,arguments)||this};
_.Q(bk,_.T);bk.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.V([_.N({}),_.Y("design:type",Object)],bk.prototype,"data",void 0);_.V([_.gw({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],bk);
_.l(bk,"ytd-video-description-transcript-section-renderer",function(){if(Pja!==void 0)return Pja;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Pja=p},{mode:1});var zCq;_.ci(_.d(function(p){var J=_.v$(_.OpW,function(){return p.data().firstProviderLinkStatusEntityKey}),S=_.v$(_.OpW,function(){return p.data().secondProviderLinkStatusEntityKey}),H=function(){var M,X;
return((M=J())==null?void 0:M.linked)||((X=S())==null?void 0:X.linked)};
return _.m("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.m(_.v3,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return p.data().sectionTitle}}),_.m(_.v3,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return H()?p.data().connectedMessage:p.data().notConnectedMessage}}),_.m(_.v,{cond:H,
then:function(){return _.m(_.AH,{data:function(){return p.data().connectedButton}},{buttonViewModel:function(M){return _.m(_.D0,{data:M.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.m(_.v,{cond:function(){return!H()},
then:function(){return _.m(_.AH,{data:function(){return p.data().notConnectedButton}},{buttonViewModel:function(M){return _.m(_.D0,{data:M.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Pn"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;return _.m("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.m("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.m(_.v3,{text:function(){return J().sectionTitle}})),_.m("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.m(_.v3,{text:function(){return J().bodyHeader}})),_.m("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.m(_.v3,{text:function(){return J().bodyText}})),_.m(_.v,{cond:function(){return J().attributionText},
then:function(){return _.m("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.m(_.v3,{text:function(){return J().attributionText}}))}}))},"Qn"),"how-this-was-made-section-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){return _.m("yt-video-description-youchat-section-view-model",{class:_.XB("ytVideoDescriptionYouchatSectionViewModelHost")},_.m("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.m(_.v3,{text:function(){return p.data().sectionTitle}})),_.m("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.m(_.v3,{text:function(){return p.data().subHeaderText}})),_.m("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.m(_.D0,{data:function(){return _.e(p.data().primaryButton,
_.mO)}})))},"Rn"),"yt-video-description-youchat-section-view-model",{props:{data:_.fD}});var ma=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return p};
_.Q(ma,_.T);_.R=ma.prototype;
_.R.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}}}}}};
_.R.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.R.dataChanged=function(){var p,J;this.hasDescriptionOnly=!(((p=this.data)==null?void 0:(J=p.items)==null?void 0:J.length)!==1||!_.e(this.data.items[0],hR))};
_.R.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.R.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.R.autoFocusDescription=function(){var p;((p=_.vO().resolve(_.F9(_.CD)))==null?0:p.isKeyBoardInUse())&&this.description&&_.Gg(this.description)};
_.R.resize=function(){if(_.z("kevlar_disable_sd_resize"))this.JSC$23424_cardList&&_.cf(this.JSC$23424_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.cf(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.cf(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.R.scrollToSection=function(p){if(p=this.getSectionElement(p))_.IV(this.hostElement,"yt-scroll-to-watch-element",[p]),p.focus()};
_.R.getSectionElement=function(p){switch(p){case "infocards-item-section":var J;return(J=this.infocardsSection)!=null?J:null;case "transcript-item-section":var S;return(S=this.transcriptSection)!=null?S:null;case "how-this-was-made-section-item-section":var H;return(H=this.howThisWasMadeSection)!=null?H:null;case "files-item-section":var M;return(M=this.filesSection)!=null?M:null;default:return null}};
_.R.handleSetActiveItemAction=function(p){var J=_.e(p,aky),S=J&&(J==null?void 0:J.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23424_cardList;if(J&&S){p=this.currentActiveChapter;var H=this.currentActiveProblem;J=S==null?void 0:S.getItemByIndex(J.itemIndex);var M=S=!0;J&&(J.active=!0,J.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(S=p!==J,M=!1,this.currentActiveChapter=J):(J==null?void 0:J.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(S=!1,M=H!==J,this.currentActiveProblem=J));p&&S&&(p.active=!1);H&&M&&(H.active=!1)}};
_.vh.Object.defineProperties(ma.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.z("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
ma.prototype.onYtExpanderMoreTapped=ma.prototype.onYtExpanderMoreTapped;ma.prototype.onHiddenChanged=ma.prototype.onHiddenChanged;ma.prototype.dataChanged=ma.prototype.dataChanged;ma.prototype.panelContentVisibleChanged=ma.prototype.panelContentVisibleChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],ma.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.wL),_.Y("design:type",Object)],ma.prototype,"ironResizableBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ma.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],ma.prototype,"panelContentVisible",void 0);_.V([_.N(),_.Y("design:type",Boolean)],ma.prototype,"hasDescriptionOnly",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ma.prototype,"inlineStructuredDescription",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ma.prototype,"hidden",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ma.prototype,"shortsPanel",void 0);_.V([_.N(),_.Y("design:type",Object)],ma.prototype,"videoSummary",void 0);_.V([_.N(),_.Y("design:type",Object)],ma.prototype,"merchShelf",void 0);
_.V([_.U("videoSummary"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ma.prototype,"showVideoSummary",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ma.prototype,"engagementPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ma.prototype,"watchWhileSdp",void 0);_.V([_.FM("ytd-expandable-video-description-body-renderer"),_.Y("design:type",Object)],ma.prototype,"description",void 0);
_.V([_.FM("ytd-horizontal-card-list-renderer"),_.Y("design:type",Object)],ma.prototype,"JSC$23424_cardList",void 0);_.V([_.FM("ytd-horizontal-card-list-renderer[center-items]"),_.Y("design:type",Object)],ma.prototype,"problemWalkthroughCardList",void 0);_.V([_.FM("ytd-shelf-renderer"),_.Y("design:type",Object)],ma.prototype,"shelfSection",void 0);_.V([_.FM("ytd-video-description-music-section-renderer"),_.Y("design:type",Object)],ma.prototype,"musicMetadataSection",void 0);
_.V([_.FM("ytd-video-description-infocards-section-renderer"),_.Y("design:type",Object)],ma.prototype,"infocardsSection",void 0);_.V([_.FM("ytd-video-description-transcript-section-renderer"),_.Y("design:type",Object)],ma.prototype,"transcriptSection",void 0);_.V([_.FM("how-this-was-made-section-view-model"),_.Y("design:type",Object)],ma.prototype,"howThisWasMadeSection",void 0);_.V([_.FM("ytd-video-description-files-section-renderer"),_.Y("design:type",Object)],ma.prototype,"filesSection",void 0);
_.V([_.bO("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ma.prototype,"panelContentVisibleChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ma.prototype,"dataChanged",null);_.V([_.bO("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ma.prototype,"onHiddenChanged",null);
_.V([_.GI("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ma.prototype,"onYtExpanderMoreTapped",null);_.V([_.gw({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],ma);
_.l(ma,"ytd-structured-description-content-renderer",function(){if(zCq!==void 0)return zCq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return zCq=p},{mode:2});var $9d;var oVp;var Fw=function(){return _.T.apply(this,arguments)||this};
_.Q(Fw,_.T);Fw.prototype.computeAriaLabel=function(p){var J,S;return(p==null?void 0:(J=p.accessibility)==null?void 0:(S=J.accessibilityData)==null?void 0:S.label)||_.Kl("LOADING",void 0,"Loading")};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Fw.prototype,"data",void 0);_.V([_.N({computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],Fw.prototype,"ariaLabel",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Fw);
_.l(Fw,"yt-content-loading-renderer",function(){if(oVp===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;$9d===void 0&&($9d=document.createElement("template"));var H=$9d;S.call(J,H.content.cloneNode(!0),p.content.firstChild);oVp=p}p=oVp;return p},{mode:1});_.ci(_.d(function(p){var J=_.K(_.eQ(!1,void 0,"OZMtVb")),S=J.next().value,H=J.next().value;J=_.K(_.eQ(!1,void 0,"qWERsf"));var M=J.next().value,X=J.next().value;_.ad(function(){var b=_.e(p.data().collaboratePlaylistCollaborationSetting,ZHu);b&&H(b.switchedOnByDefault);var F=_.e(p.data().allowNewCollaboratorsPlaylistCollaborationSetting,ZHu);F&&X(F.switchedOnByDefault);if(!b&&!F||!b&&p.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")H(!0),X(!0)});
var Z=function(b){H(b);X(b);var F=p.data().playlistCollaborationEntityKey||"";var f=_.ED().getState();(f=_.RR(f.entities,"playlistCollaborationEntity",F))&&(f==null?void 0:f.isCollaborative)===b||_.ED().dispatch(_.P$("playlistCollaborationEntity",F,Object.assign({},f,{isCollaborative:b})))},n=function(b){X(b)};
return _.m("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.m("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.m(_.AH,{data:function(){return p.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.m(_.Ck8,{data:b.data,
onSwitch:Z})}})),_.m(_.v,{cond:S,
then:function(){return _.m(_.fV,null,_.m("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.m(_.AH,{data:function(){return p.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.m(_.Ck8,{data:b.data,
onSwitch:n,overrideDisabled:!1})}})),_.m(_.v,{cond:M,
then:function(){return _.m("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.m(_.AH,{data:function(){return p.data().copyLinkButton}},{buttonViewModel:_.D0}))}}),_.m("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.m(_.AH,{data:function(){return p.data().playlistCollaborators}},{contentListItemViewModel:_.krp})))}}))},"Sn"),"playlist-collaboration-view-model",{props:{data:_.fD}});var eCa=_.d(function(p){var J=p.data;var S=p.customCommandResolver;return _.m(_.fV,null,_.m("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.m(_.AH,{data:function(){return J().adAvatar}},{adAvatarViewModel:function(H){return _.m(_.cC8,{data:H.data,
customCommandResolver:S})}})),_.m("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.m(_.v,{cond:function(){return J().headline},
then:function(H){return _.m(_.v3,{text:H,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.m("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.m(_.AH,{data:function(){return J().adBadge}},{adBadgeViewModel:function(H){return _.m(_.dX,{data:H.data,
hasDot:function(){return J().primaryDetailsLine!==void 0},
customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.m(_.AH,{data:function(){return J().primaryDetailsLine}},{adDetailsLineViewModel:function(H){return _.m(_.uF,{data:H.data,
customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Tn"),Wzu=_.d(function(p){var J=p.data;
var S=p.customCommandResolver;return _.m("ad-avatar-lockup-view-model",{class:function(){var H;return((H=J().interaction)==null?0:H.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.Y2(_.Aw({visibilityCallback:function(H){var M,X=(M=J().interaction)==null?void 0:M.onFirstVisible;H&&X&&_.Dm(X)},
showOption:_.gX}),_.km(function(){return J().interaction},S)),
"aria-label":function(){var H,M;return(H=J().interaction)==null?void 0:(M=H.accessibility)==null?void 0:M.label}},_.m(_.ue,null,_.m(_.Nz,{when:function(){return J().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.m(eCa,{data:J,
customCommandResolver:S})}),_.m(_.TV,null,function(){return null})))},"Un");_.ci(_.d(function(p){var J=p.data;var S=p.panelContentVisibility;p=_.Aw({visibilityCallback:function(X){var Z,n=(Z=J().interaction)==null?void 0:Z.onFirstVisible;X&&n&&_.Dm(n)},
showOption:_.gX});var H=_.km(function(){return J().interaction},wOG);
_.uf(function(){var X,Z;if(Z=_.Id("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;Z=(n=Z())==null?void 0:n.onLayoutVisibleCallback}else Z=null;(X=Z)==null||X()},"Vn");
var M=function(){return S()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.m("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.Y2(p,H)},_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.m(_.v,{cond:_.OKL("(min-width: "+((0,_.Ik)()+_.ku)+"px) or (max-width: 600px)"),then:function(){return _.m(_.AH,{data:function(){return J().adImage}},{adImageViewModel:function(X){return _.m(_.rO,{data:X.data,
targetHeight:80,customCommandResolver:wOG})}})}})),_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.m(_.AH,{data:function(){return J().adAvatarLockup}},{adAvatarLockupViewModel:function(X){return _.m(Wzu,{data:X.data,
customCommandResolver:wOG})}})),_.m(_.v,{cond:M,
then:function(){return _.m(_.AH,{data:function(){return J().adButton}},{adButtonViewModel:function(X){return _.m(_.hO,{data:X.data,
customCommandResolver:wOG})}})},
else:function(){return _.m(_.AH,{data:function(){return J().menu}},{buttonViewModel:_.D0})}}),_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.m(_.AH,{data:function(){var X=_.e(J().toggleButton,_.f5);
return{toggleButtonViewModel:Object.assign({},X,{isTogglingDisabled:!0,isToggled:M()})}}},{toggleButtonViewModel:_.LD})))))},"Wn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.fD,
panelContentVisibility:_.fD}});_.ci(_.d(function(p){var J=function(){return _.e(p.data().inputComposerViewModel,ILG)},S=_.fb(_.uT.currentPageSubTypeSelector),H=_.fb(_.uT.persistentPanelVisibleSelector),M=_.K(_.eQ(!1,void 0,"IASwBb")),X=M.next().value,Z=M.next().value;
M=_.K(_.eQ(!1,void 0,"GdQ0qf"));var n=M.next().value,b=M.next().value,F=function(){y(!0);var ov;_.Dm(((ov=J())==null?void 0:ov.onSubmitCommand)||{})},f=function(){if(H()&&!n()){var ov;
(ov=_.nG())==null||ov.removeCueRange("aic-proactive");Z(!1);b(!0);F();_.ge(_.aVU(J().endOfVideoContinuation),{form:{formData:_.FZ({clientMessageId:"youchat-"+Date.now(),pageContext:yX()})},commandController:{onSuccess:function(){y(!1)},
onServerError:function(){_.ge(DVG(E()));y(!1)}}})}},O=function(){var ov=_.nG();
if(ov&&!X()&&!n()){var NW=ov.getDuration();NW>60&&(ov.addCueRange("aic-proactive",NW-60,NW-20),Z(!0))}},A=function(){var ov;
return((ov=J())==null?void 0:ov.youchatPendingResponseEntityKey)||""},P=_.v$(_.w6P,A),W=function(){var ov;
return!((ov=P())==null||!ov.isPendingResponse)},y=function(ov){_.xQN(A())(ov)};
M=_.K(_.eQ(!0,void 0,"n0Jijf"));var t=M.next().value,D=M.next().value,k=function(){var ov,NW;var TW=_.e((NW=J())==null?void 0:NW.inputFormField,lkp);return TW==null?void 0:(ov=TW.contentProperties)==null?void 0:ov.placeholderText},E=function(){return J().sectionTargetId||"youchat_messages_section"};
M=_.mo("yt-chat-input-view-model");var a=_.nE("textarea"),q=_.v$(N1u,"chat_input_view_model_state"),w=T1G(),I=function(){var ov;return!((ov=q())==null||!ov.value)},Z3=function(){return p.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},vg=function(){var ov;
(ov=_.nG())==null||ov.removeCueRange("aic-proactive");Z(!1);b(!1);var NW;_.z("enable_navigational_proactive_messages_on_ai_companion")&&((NW=J())==null?0:NW.navigationContinuation)&&H()&&(F(),_.ge(_.aVU(J().navigationContinuation),{form:{formData:_.FZ({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:cld(),pageContext:yX()})},commandController:{onSuccess:function(){y(!1)},
onServerError:function(){_.ge(DVG(E()));y(!1)}}}))},yX=function(){var ov;
return(ov=_.vO().resolve(_.F9(_.Xo)))==null?void 0:_.HAP(ov,S())};
_.ad(function(){if(_.z("enable_ai_chat_controller")){var ov;(ov=_.vO().resolve(_.F9(_.Xo)))==null||ov.init(p.data().environment)}else if(ov=Ldv(p.data()),!I()&&ov){var NW;((NW=J())==null?0:NW.setPendingResponseOnWelcome)&&y(!0);_.ge(ov,{form:{formData:_.FZ({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:cld(),pageContext:yX()})}});w(!0)}var TW=E(),Ys=_.vO().resolve(_.F9(_.lc)),Go=function(){_.Ol.remove(TW);if(_.z("enable_ai_chat_controller")){var LL;(LL=_.vO().resolve(_.F9(_.Xo)))!=null&&LL.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(LL.lastWelcomeContinuationSent=void 0)}else w(!1)},$U=function(){_.$T(function(){if(Z3()&&(vg(TW),S()==="watch")){var LL=_.nG();
LL&&(LL.addEventListener("onStateChange",O),LL.addEventListener("onCueRangeEnter",f))}})};
NW=_.z("enable_ai_companion")?!Z3():!0;Ys==null||Ys.addEventListener("yt-navigate-start",Go,{once:NW});Ys==null||Ys.addEventListener("yt-navigate-finish",$U,{once:NW});_.VY(function(){Ys==null||Ys.removeEventListener("yt-navigate-start",Go);Ys==null||Ys.removeEventListener("yt-navigate-finish",$U);var LL=_.nG();LL&&(LL.removeEventListener("onCueRangeEnter",f),LL.removeEventListener("onStateChange",O),LL.removeCueRange("aic-proactive"))})});
_.lf(function(){if(_.z("enable_ai_chat_controller")){var ov=Ldv(p.data());if(ov){var NW,TW=((NW=J())==null?0:NW.setPendingResponseOnWelcome)?y:void 0,Ys;(Ys=_.vO().resolve(_.F9(_.Xo)))==null||g_s(Ys,{command:ov,setPending:TW})}}},"Z4XQCb");
var Pg=function(){var ov=a.value.value;a.value.value="";xVs(a.value);var NW,TW=((NW=J())==null?void 0:NW.enableGradientColorBg)||!1;NW=kGs(E(),ov,TW);_.ge(NW);F();var Ys,Go,$U;NW=($U=_.sa((Ys=p.data())==null?void 0:Ys.sendUserQueryCommand))!=null?$U:_.aVU((Go=J())==null?void 0:Go.continuation);_.ge(NW,{form:{formData:_.FZ({clientMessageId:"youchat-"+Date.now(),userInputText:ov,playerOffsetMs:cld(),pageContext:yX()})},commandController:{onSuccess:function(){y(!1)},
onServerError:function(){_.ge(DVG(E()));y(!1)}}})};
return _.m("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:M},_.m("div",{class:"chatInputViewModelChatInputWrapper"},_.m("form",{class:"chatInputViewModelChatInputForm"},_.m("textarea",{class:"chatInputViewModelChatInput",el:a,"on:keydown":_.Kb(function(ov){var NW=W()||!1;xVs(a.value);NW||ov.key!=="Enter"||ov.shiftKey||(ov.preventDefault(),Pg());return!1}),
"on:keyup":_.Kb(function(){D(a.value.value.length===0);return!1}),
"aria-label":function(){return W()?p.data().loadingAnimationA11yLabel||"":k()},
placeholder:k,rows:1}),_.m(_.D0,{data:function(){return _.e(p.data().sendButton,_.mO)},
onClick:function(ov){ov.preventDefault();Pg();D(a.value.value.length===0)},
buttonOverrides:function(){return{disabled:t()||W()}}})),_.m(_.v3,{className:"chatInputViewModelChatDisclaimer",
text:function(){var ov;return(ov=_.e(p.data().disclaimer,_.$FU))==null?void 0:ov.text}})))},"Yn"),"yt-chat-input-view-model",{props:{data:_.fD}});var QVs=["engagement-panel-clip-create","engagement-panel-clip-view"],Cjp=0,vV=function(){var p=_.T.apply(this,arguments)||this;var J;p.headerData=(J=p.data)==null?void 0:J.header;p.darkerPanels=_.z("web_watch_darker_panels");p.matchContentTheme=_.z("web_watch_panel_content_match_theme");p.disableAutoFill=!1;p.isFullscreen=!1;p.isTheaterMode=!1;p.liveChatReplyPanel=!1;p.enableAnchoredPanel=_.z("desktop_shorts_v2_anchored_panel");p.disableBackdropFilter=_.z("web_disable_backdrop_filter");p.isPersistentPanel=
!1;p.trackEngagementPanelVisibility=_.z("web_watch_track_engagement_panel_visibility");p.overscrollContain=!1;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};
_.Q(vV,_.T);_.R=vV.prototype;
_.R.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(p){var J;return(p==null?void 0:(J=p.webComponentHint)==null?void 0:J.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},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"}}}};
_.R.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)};
_.R.detached=function(){this.updateTheaterDisablement()};
_.R.showPanel=function(){var p=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.wg.addJob(function(){p.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.R.maybeScrollToItemSection=function(p){var J=this,S,H=p==null?void 0:(S=p.sectionListEngagementPanelExtras)==null?void 0:S.scrollToItemSectionIdentifier;H&&_.wg.addJob(function(){var M;(M=J.sectionListRendererElement)==null||M.scrollToItemSection(H)},8)};
_.R.hidePanel=function(){var p=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.wg.addJob(function(){p.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.R.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.R.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.R.updatePanel=function(p,J,S,H){var M=this;if((p=p==null?void 0:p.engagementPanelSectionListRenderer)||H){if(p){H=p.header;var X=p.content,Z=p.footer;(p=p.targetId)&&this.set("data.targetId",p);H&&this.set("data.header",H);X&&this.set("data.content",X);Z&&this.set("data.footer",Z)}else H&&(p=H.content,X=H.secondaryHeaderContent,Z=H.targetId,H=H.loggingDirectives,Z&&this.set("data.targetId",Z),p&&this.set("data.content",p),H&&_.z("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
H),X&&(this.secondaryHeaderData=X));this.updateChildVisibilityProperties();if(J){var n;_.z("kevlar_update_panel_focus_scroll_killswitch")||(n={preventScroll:!0});this.focus(n)}_.mN(this,function(){_.cf(M.hostElement,"yt-refit");M.maybeScrollToItemSection(S)})}};
_.R.computeHeaderData=function(){var p,J=(0,_.T6.unsafeClone)((p=this.data)==null?void 0:p.header);if(J){p=new _.Zz(Object.keys(J)[0]);var S=_.e(J,p),H=_.e(this.secondaryHeaderData,p);H&&_.QM(J,p,Object.assign({},H,S))}return J};
_.R.getReloadContinuation=function(){var p,J,S,H=_.K(((p=this.data)==null?void 0:(J=p.content)==null?void 0:(S=J.sectionListRenderer)==null?void 0:S.continuations)||[]);for(p=H.next();!p.done;p=H.next())if(p=p.value,p.reloadContinuationData)return p.reloadContinuationData.continuation};
_.R.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)};
_.R.forwardPopupClosedToFlowRootRenderer=function(){var p=_.Jn(this.hostElement).querySelector("ytd-flow-root-renderer");if(p&&this.hostElement.closest("ytd-popup-container"))p.onPopupClosed()};
_.R.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var p;if(!QVs.includes((p=this.theaterDisablementPanelIdentifier)!=null?p:""))if(p=_.z("web_watch_imax_theater_mode")&&this.isTheaterMode,p=_.z("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||p,_.z("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||p){var J;this.visibility=(J=this.data)==null?void 0:J.visibility;var S;this.trackEngagementPanelVisibility&&((S=this.data)==null?void 0:S.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var H,M,X,Z;this.contentEmpty=!!(((H=this.data)==null?0:(M=H.content)==null?0:M.structuredDescriptionContentRenderer)&&Object.keys((X=this.data)==null?void 0:(Z=X.content)==null?void 0:
Z.structuredDescriptionContentRenderer).length===0);(J=_.vO().resolve(_.JY))&&J.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.R.isTheaterModeChanged=function(){_.z("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.R.isFullscreenChanged=function(){_.z("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.R.focus=function(p){if(this.header)this.header.focus(p);else{var J;(J=_.Jn(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||J.focus(p)}};
_.R.visibilityChanged=function(){if(!_.z("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var p=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",J=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",M=H||!this.lastVisibility,X,Z,n,b=((X=this.data)==null?void 0:(Z=X.identifier)==null?void 0:
Z.tag)||((n=this.data)==null?void 0:n.panelIdentifier);if(p&&M){var F;((F=this.data)==null?0:F.onShowCommands)&&_.JP(this.hostElement,this.data.onShowCommands,this.hostElement);b&&_.rl().dispatch(_.Jk({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:b}}))}else if(J&&S){var f;((f=this.data)==null?0:f.onHideCommands)&&_.JP(this.hostElement,this.data.onHideCommands,this.hostElement);b&&_.rl().dispatch(_.Jk({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:b}}))}p&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*Cjp++));_.z("kevlar_watch_focus_on_engagement_panels")&&p&&H&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.R.notifyVisibilityChanged=function(p){var J;_.L1(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,p,(J=this.data)==null?void 0:J.targetId]);if(_.z("autonav_pause_for_comments_ep")){var S;_.cf(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:p==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(S=this.data)==null?void 0:S.targetId})}};
_.R.updateTheaterDisablement=function(){if(!_.z("kevlar_watch_theater_disablement_killswitch")){var p=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&QVs.includes(p)&&!_.z("watch_next_grid_ignore_disallowed_panels")){var J=_.US(_.rl().getState()),S=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";p!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():S?(this.originalTheaterState===void 0&&(this.originalTheaterState=J,this.theaterDisablementPanelIdentifier=
p),J&&_.IV(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.R.clearTheaterDisablement=function(){_.IV(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.R.updateChildVisibilityProperties=function(){this.hostElement||_.z("kevlar_panel_property_init_killswitch")||this._enableProperties();var p=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=p);var J,S=(J=this.headerElement)==null?void 0:J.firstElementChild;if(S&&!this.adHeaderImageLockupViewModel){J=p==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";S.collapsed=J;S=_.Jn(S).querySelector("#visibility-button");if(!S)return;(S=S.firstElementChild)&&
S.polymerController.is==="ytd-toggle-button-renderer"&&S.polymerController.data.isToggled!==J&&S.polymerController.set("data.isToggled",J)}var H;if(J=(H=this.contentElement)==null?void 0:H.firstElementChild)if(p&&p!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")J.removeAttribute("panel-content-visible");else{J.setAttribute("panel-content-visible","");var M;(M=J.markDirty)==null||M.call(J)}};
_.R.onYtChangeEngagementPanelVisibilityAction=function(p){var J=this,S,H=(S=this.data)==null?void 0:S.targetId,M,X,Z;S=((M=this.data)==null?void 0:(X=M.identifier)==null?void 0:X.tag)||((Z=this.data)==null?void 0:Z.panelIdentifier);var n=_.e(p,_.VY8),b;p=H&&(n==null?void 0:n.targetId)===H||S&&(n==null?void 0:(b=n.panelIdentifier)==null?void 0:b.tag)===S;this.dialog&&p&&(n==null?void 0:n.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(H==="engagement-panel-comments-section"?_.IV(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.IV(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",S]));!_.z("kevlar_use_engagement_panel_management_component")&&p&&(H=n.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!H?_.wg.addJob(function(){J.visibility=n.visibility},2,this.hideDelayMs):this.visibility=n.visibility,n.visibility&&this.notifyVisibilityChanged(n.visibility))};
_.R.onYtScrollToEngagementPanelCommand=function(p){var J,S=(J=this.data)==null?void 0:J.targetId,H,M,X;J=((H=this.data)==null?void 0:(M=H.identifier)==null?void 0:M.tag)||((X=this.data)==null?void 0:X.panelIdentifier);p=_.e(p,_.pyd);var Z;(S&&(p==null?void 0:p.targetId)===S||J&&(p==null?void 0:(Z=p.panelIdentifier)==null?void 0:Z.tag)===J)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.IV(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.R.attachVEs=function(p){var J,S;(p==null?0:(J=p.content)==null?0:(S=J.productListRenderer)==null?0:S.trackingParams)&&_.bC().graftServerVe(p.content.productListRenderer.trackingParams);var H,M;(p==null?0:(H=p.content)==null?0:(M=H.transcriptRenderer)==null?0:M.trackingParams)&&_.bC().graftServerVe(p.content.transcriptRenderer.trackingParams)};
_.R.onYtUpdateEngagementPanelAction=function(p){var J,S=(J=this.data)==null?void 0:J.targetId;p=_.e(p,Y3D);S&&(p==null?void 0:p.targetId)===S&&(this.updatePanel({engagementPanelSectionListRenderer:{header:p==null?void 0:p.header,content:p==null?void 0:p.content}},!1),this.attachVEs(p))};
_.R.onYtShowEngagementPanelScrimAction=function(p){var J,S=(J=this.data)==null?void 0:J.targetId;p=_.e(p,E_a);S&&(p==null?void 0:p.engagementPanelTargetId)===S&&(this.scrimmed=!0)};
_.R.onYtHideEngagementPanelScrimAction=function(p){var J,S=(J=this.data)==null?void 0:J.targetId;p=_.e(p,q3G);S&&(p==null?void 0:p.engagementPanelTargetId)===S&&(this.scrimmed=!1)};
_.R.getIdentifier=function(){var p,J,S;return((p=this.data)==null?void 0:p.panelIdentifier)||((J=this.data)==null?void 0:(S=J.identifier)==null?void 0:S.tag)};
_.R.getSurface=function(){var p,J;return(p=this.data)==null?void 0:(J=p.identifier)==null?void 0:J.surface};
_.vh.Object.defineProperties(vV.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"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
vV.prototype.visibilityChanged=vV.prototype.visibilityChanged;vV.prototype.isFullscreenChanged=vV.prototype.isFullscreenChanged;vV.prototype.isTheaterModeChanged=vV.prototype.isTheaterModeChanged;vV.prototype.dataChanged=vV.prototype.dataChanged;vV.prototype.forwardPopupClosedToFlowRootRenderer=vV.prototype.forwardPopupClosedToFlowRootRenderer;vV.prototype.onYtRendererstamperFinished=vV.prototype.onYtRendererstamperFinished;
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],vV.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],vV.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],vV.prototype,"ytEventForwardingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],vV.prototype,"data",void 0);
_.V([_.N({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.Y("design:type",Object)],vV.prototype,"headerData",void 0);_.V([_.N(),_.Y("design:type",Object)],vV.prototype,"secondaryHeaderData",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],vV.prototype,"visibility",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vV.prototype,"contentEmpty",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vV.prototype,"scrimmed",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vV.prototype,"dialog",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vV.prototype,"dropdown",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],vV.prototype,"darkerPanels",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],vV.prototype,"matchContentTheme",void 0);_.V([_.N(),_.Y("design:type",Object)],vV.prototype,"disableAutoFill",void 0);
_.V([_.N({reflectToAttribute:!0,value:_.z("optimal_reading_width_comments_ep")}),_.Y("design:type",Boolean)],vV.prototype,"optimalReadingWidthComments",void 0);_.V([_.N(),_.Y("design:type",Number)],vV.prototype,"hideDelayMs",void 0);_.V([_.N({selector:_.sS,reflectToAttribute:!0}),_.Y("design:type",Object)],vV.prototype,"isFullscreen",void 0);_.V([_.N({selector:_.US,reflectToAttribute:!0}),_.Y("design:type",Object)],vV.prototype,"isTheaterMode",void 0);
_.V([_.N(),_.Y("design:type",Number)],vV.prototype,"showDelayMs",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.targetId"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vV.prototype,"targetId",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vV.prototype,"webSize",null);_.V([_.N(),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vV.prototype,"hideFooterBorder",null);
_.V([_.N(),_.Y("design:type",Object)],vV.prototype,"isWatch",void 0);_.V([_.N(),_.Y("design:type",Object)],vV.prototype,"originalTheaterState",void 0);_.V([_.N(),_.Y("design:type",Object)],vV.prototype,"theaterDisablementPanelIdentifier",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vV.prototype,"isWatchWhilePanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vV.prototype,"shortsPanel",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vV.prototype,"liveChatEngagementPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vV.prototype,"learningChatEngagementPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],vV.prototype,"liveChatReplyPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],vV.prototype,"enableAnchoredPanel",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],vV.prototype,"disableBackdropFilter",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],vV.prototype,"isPersistentPanel",void 0);_.V([_.N(),_.Y("design:type",Object)],vV.prototype,"trackEngagementPanelVisibility",void 0);_.V([_.N(),_.Y("design:type",Object)],vV.prototype,"overscrollContain",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vV.prototype,"isAiCompanionPanel",null);
_.V([_.FM("#header"),_.Y("design:type",HTMLElement)],vV.prototype,"headerElement",void 0);_.V([_.FM("#header > *"),_.Y("design:type",HTMLElement)],vV.prototype,"header",void 0);_.V([_.FM("ytd-section-list-renderer"),_.Y("design:type",Object)],vV.prototype,"sectionListRendererElement",void 0);_.V([_.FM("panel-ad-header-image-lockup-view-model"),_.Y("design:type",HTMLElement)],vV.prototype,"adHeaderImageLockupViewModel",void 0);
_.V([_.FM("#content"),_.Y("design:type",HTMLElement)],vV.prototype,"contentElement",void 0);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vV.prototype,"onYtRendererstamperFinished",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vV.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.V([_.An("data","isFullscreen","isTheaterMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vV.prototype,"dataChanged",null);_.V([_.bO("isTheaterMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vV.prototype,"isTheaterModeChanged",null);_.V([_.bO("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vV.prototype,"isFullscreenChanged",null);
_.V([_.bO("visibility"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vV.prototype,"visibilityChanged",null);_.V([_.gw({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],vV);
_.l(vV,"ytd-engagement-panel-section-list-renderer",function(){if(rSs!==void 0)return rSs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return rSs=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var y1s;var f6=function(){var p=_.T.apply(this,arguments)||this;p.lastRenderedPanelIds=new Set;p.visiblePanels=[];p.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return p};
_.Q(f6,_.T);_.R=f6.prototype;_.R.dataChanged=function(){if(this.data){for(var p=[],J=_.K(this.data),S=J.next();!S.done;S=J.next()){S=S.value;var H=void 0,M=void 0,X=(H=S)==null?void 0:(M=H.engagementPanelSectionListRenderer)==null?void 0:M.visibility;M=H=void 0;((H=S)==null?0:(M=H.engagementPanelSectionListRenderer)==null?0:M.targetId)&&X!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&p.push(S)}this.visiblePanels=p}else this.visiblePanels=[]};
_.R.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}}};
_.R.withoutVisiblePanelById=function(p){return this.visiblePanels.filter(function(J){var S;return((S=J.engagementPanelSectionListRenderer)==null?void 0:S.targetId)!==p})};
_.R.onYtChangeEngagementPanelVisibilityAction=function(p){var J=this,S=_.e(p,_.VY8);if(this.data&&(S==null?0:S.targetId)&&(S==null?0:S.visibility)){var H,M=(H=this.data.find(function(Z){var n;return((n=Z.engagementPanelSectionListRenderer)==null?void 0:n.targetId)===S.targetId}))==null?void 0:H.engagementPanelSectionListRenderer;
if(M){var X=this.withoutVisiblePanelById(S.targetId);S.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(p=this.data.find(function(Z){var n;return((n=Z.engagementPanelSectionListRenderer)==null?void 0:n.targetId)===S.targetId}))&&(X=[p].concat(_.dW(X)));
this.hideDelayMs&&S.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&X.length===0?_.wg.addJob(function(){M.visibility=S.visibility;J.visiblePanels=X},10,this.hideDelayMs):(M.visibility=S.visibility,this.visiblePanels=X);
_.L1(this.hostElement,"yt-engagement-panels-visible-changed",[X])}}};
_.R.onRendererstamperFinished=function(){var p=new Set(this.visiblePanels.map(function(J){var S;return(S=J.engagementPanelSectionListRenderer)==null?void 0:S.targetId}));
this.handlePanelVisibilityChange(p,this.lastRenderedPanelIds);this.lastRenderedPanelIds=p};
_.R.handlePanelVisibilityChange=function(p,J){p=p===void 0?new Set:p;J=J===void 0?new Set:J;if(this.data)for(var S=_.K(this.data),H=S.next();!H.done;H=S.next()){H=H.value;var M=void 0,X=void 0,Z=(M=H)==null?void 0:(X=M.engagementPanelSectionListRenderer)==null?void 0:X.targetId;if(Z&&(M=J.has(Z),X=p.has(Z),Z=void 0,!M&&X?(X=M=void 0,Z=(M=H)==null?void 0:(X=M.engagementPanelSectionListRenderer)==null?void 0:X.onShowCommands):M&&!X&&(X=M=void 0,Z=(M=H)==null?void 0:(X=M.engagementPanelSectionListRenderer)==
null?void 0:X.onHideCommands),Z))for(H=_.K(Z),Z=H.next();!Z.done;Z=H.next())this.ytComponentBehavior.resolveCommand(Z.value)}};
f6.prototype.onRendererstamperFinished=f6.prototype.onRendererstamperFinished;f6.prototype.dataChanged=f6.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],f6.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],f6.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],f6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],f6.prototype,"lastRenderedPanelIds",void 0);_.V([_.N(),_.Y("design:type",Number)],f6.prototype,"hideDelayMs",void 0);_.V([_.N(),_.Y("design:type",Array)],f6.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Array)],f6.prototype,"visiblePanels",void 0);_.V([_.N(),_.Y("design:type",Boolean)],f6.prototype,"isWatchWhilePanel",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f6.prototype,"dataChanged",null);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f6.prototype,"onRendererstamperFinished",null);_.V([_.gw({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],f6);
_.l(f6,"ytd-watch-engagement-panels",function(){if(y1s!==void 0)return y1s;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return y1s=p},{mode:1});var BGT;var OQ=function(){return _.T.apply(this,arguments)||this};
_.Q(OQ,_.T);OQ.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.K_(_.Jn(this.hostElement).querySelector("#text"),_.Jy4(_.M6L,this.data.companionLegalText))};
OQ.prototype.computeAutoScrollEnabled=function(p,J){return p&&!J};
OQ.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
OQ.prototype.onToggleTap=function(){this.expanded=!this.expanded};
OQ.prototype.expandedChanged=OQ.prototype.expandedChanged;OQ.prototype.dataChanged=OQ.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ulD),_.Y("design:type",Object)],OQ.prototype,"ytdAutoScrollBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],OQ.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],OQ.prototype,"expanded",void 0);
_.V([_.N({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.Y("design:type",Boolean)],OQ.prototype,"autoScrollEnabled",void 0);_.V([_.N(),_.Y("design:type",String)],OQ.prototype,"expanderIcon",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OQ.prototype,"dataChanged",null);
_.V([_.bO("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OQ.prototype,"expandedChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],OQ);
_.l(OQ,"ytd-companion-legal-text-renderer",function(){if(BGT!==void 0)return BGT;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return BGT=p},{mode:1});var U97;var AN=function(){var p=_.T.apply(this,arguments)||this;p.buttonUpdate=_.z("web_modern_buttons");p.kevlarWatchGrid=_.z("kevlar_watch_grid");p.centerAlignDescription=_.z("action_companion_center_align_description");p.truncateDomain=_.z("action_companion_truncate_domain");p.enableMonoStyle=_.z("enable_default_mono_cta_migration_web_client");return p};
_.Q(AN,_.T);_.R=AN.prototype;_.R.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.R.getOnLayoutVisibleCallback=function(){var p=_.Id("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.onLayoutVisibleCallback:null};
_.R.getLayoutId=function(){var p=_.Id("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
_.R.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",AN.JSC$23469_DEFAULT_AD_BADGE_RENDERER);var p=this.getOnLayoutVisibleCallback();p&&p()}};
_.R.getButtonRenderer=function(p){return p.actionButton&&_.e(p.actionButton,_.Za)?(delete _.e(p.actionButton,_.Za).navigationEndpoint,_.e(p.actionButton,_.Za)):{}};
_.R.onClick=function(p){var J=this;if((!_.z("web_modern_buttons")||!_.jK(_.Er(p),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){p=_.IY();var S=this.getLayoutId();p&&S&&_.z("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?p.getPlayerPromise().then(function(H){(new _.MH(H)).executeCommand(J.data.navigationEndpoint,S)}):_.z("kevlar_companion_resolve_command_killswitch")?_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.IV(this.hostElement,"yt-companion-ad-clicked",["action-companion",S])}};
_.vh.Object.defineProperties(AN.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return((p=this.data)==null?0:(J=p.detailsLine)==null?0:(S=J.adRating)==null?0:S.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,J,S,H;return((p=this.data)==null?0:(J=p.detailsLine)==null?0:(S=J.adRating)==null?0:(H=S.ratingIcon)==null?0:H.iconType)?_.Xj(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H;return((p=this.data)==null?0:(J=p.detailsLine)==null?0:(S=J.texts)==null?0:(H=S[0])==null?0:H.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,J;return((p=this.data)==null?0:(J=p.description)==null?0:J.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=_.Id("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}}});
AN.prototype.onClick=AN.prototype.onClick;AN.prototype.dataChanged=AN.prototype.dataChanged;AN.JSC$23469_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Kl("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],AN.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],AN.prototype,"rendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],AN.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],AN.prototype,"buttonUpdate",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],AN.prototype,"kevlarWatchGrid",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],AN.prototype,"centerAlignDescription",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],AN.prototype,"truncateDomain",void 0);
_.V([_.N({computed:"computeButtonOverride(buttonUpdate)"}),_.Y("design:type",Object)],AN.prototype,"buttonOverride",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],AN.prototype,"enableMonoStyle",void 0);_.V([_.U("data.detailsLine.adRating.ratingText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AN.prototype,"getRating",null);_.V([_.U("getRating"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AN.prototype,"computeRatingHidden",null);
_.V([_.U("data.detailsLine.adRating.ratingIcon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AN.prototype,"iconType",null);_.V([_.U("data.detailsLine.texts.0.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AN.prototype,"getDetailsLine",null);_.V([_.U("getDetailsLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AN.prototype,"computeDetailsLineHidden",null);
_.V([_.U("data.description.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AN.prototype,"getDescriptionText",null);_.V([_.U("getDescriptionText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AN.prototype,"computeDescriptionTextHidden",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AN.prototype,"interactionLoggingClientData",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AN.prototype,"hideBanner",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AN.prototype,"dataChanged",null);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],AN.prototype,"onClick",null);_.V([_.gw({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],AN);
_.l(AN,"ytd-action-companion-ad-renderer",function(){if(U97!==void 0)return U97;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return U97=p},{mode:_.Jz("kevlar_poly_si_batch_j067")?1:2});var sVG;var gVs;var PV=function(){var p=_.T.apply(this,arguments)||this;p.buttonUpdate=_.z("web_modern_buttons");p.hideLegacyBanner=_.z("enable_dsa_one_click_ata_translators_infeed_elements");p.adInfoButtonStyle="mono";p.adInfoButtonType="text";p.noDotAdBadge=!0;return p};
_.Q(PV,_.T);_.R=PV.prototype;_.R.getOnLayoutVisibleCallback=function(){var p=_.Id("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.onLayoutVisibleCallback:null};
_.R.getLayoutId=function(){var p=_.Id("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
_.R.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?_.Vd(p.url):void 0;this.imageWidth=p.width||0;this.imageHeight=p.height||0}this.data.clickthroughEndpoint&&_.e(this.data.clickthroughEndpoint,_.My)&&(p=_.e(this.data.clickthroughEndpoint,_.My).url,_.z("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
p||"":p?(p=_.Vd(p),this.clickThroughUrl=_.Tu(p)):this.clickThroughUrl=void 0);(p=this.getOnLayoutVisibleCallback())&&p()}};
_.R.onClick=function(p){_.jK(_.Er(p),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(p)};
_.R.handleClick=function(){var p=this;this.data&&this.data.clickthroughEndpoint&&(_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(J){p.macroReplacementBehavior.sendServiceRequestAction([J])}),_.IV(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.R.onLoad=function(){_.L1(this.hostElement,"yt-refit-popups-action")};
_.vh.Object.defineProperties(PV.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var p=_.Id("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var p=_.Id("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.interactionLoggingClientData:null}}});
PV.prototype.onLoad=PV.prototype.onLoad;PV.prototype.onClick=PV.prototype.onClick;PV.prototype.dataChanged=PV.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],PV.prototype,"rendererBehavior",void 0);_.V([_.B(uKs.YtMacroReplacementBehavior),_.Y("design:type",Object)],PV.prototype,"macroReplacementBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],PV.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PV.prototype,"buttonUpdate",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PV.prototype,"hideLegacyBanner",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PV.prototype,"adInfoButtonStyle",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],PV.prototype,"adInfoButtonType",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PV.prototype,"macros",null);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PV.prototype,"interactionLoggingClientData",null);_.V([_.N(),_.Y("design:type",String)],PV.prototype,"clickThroughUrl",void 0);_.V([_.N(),_.Y("design:type",_.hs)],PV.prototype,"imageSrc",void 0);_.V([_.N(),_.Y("design:type",Number)],PV.prototype,"imageWidth",void 0);_.V([_.N(),_.Y("design:type",Number)],PV.prototype,"imageHeight",void 0);_.V([_.N(),_.Y("design:type",Object)],PV.prototype,"noDotAdBadge",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PV.prototype,"dataChanged",null);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],PV.prototype,"onClick",null);_.V([_.GI("load"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PV.prototype,"onLoad",null);_.V([_.gw({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],PV);
_.l(PV,"ytd-image-companion-renderer",function(){if(gVs!==void 0)return gVs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return gVs=p},{mode:_.Jz("kevlar_poly_si_batch_j067")?1:2});var tqt;var zw=function(){return _.T.apply(this,arguments)||this};
_.Q(zw,_.T);_.R=zw.prototype;_.R.dataChanged=function(){this.set("data.adBadge",zw.JSC$23478_DEFAULT_AD_BADGE_RENDERER);if(this.data){var p=this.getOnLayoutVisibleCallback();p&&p()}};
_.R.getOnLayoutVisibleCallback=function(){var p=_.Id("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.onLayoutVisibleCallback:null};
_.R.getLayoutId=function(){var p=_.Id("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
_.R.onCompanionClicked=function(p){this.data&&(p.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.IV(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.R.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var p=_.IY(),J=this.getLayoutId(),S=this.data.clickToAdvSiteEndpoint;p&&J&&_.z("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?p.getPlayerPromise().then(function(H){(new _.MH(H)).executeCommand(S,J)}):_.cf(this.hostElement,"yt-navigate",{endpoint:S})}};
_.R.sendTrackingPings=function(p){if(p&&p.length!==0&&p[0].loggingUrls&&(p=p[0].loggingUrls.map(this.getBaseUrl)))for(var J=0;J<p.length;J++)_.Xb(p[J])};
_.R.getBaseUrl=function(p){return p.baseUrl||""};
_.vh.Object.defineProperties(zw.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var p=_.Id("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.interactionLoggingClientData:null}}});
zw.prototype.onCompanionClicked=zw.prototype.onCompanionClicked;zw.prototype.dataChanged=zw.prototype.dataChanged;zw.JSC$23478_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Kl("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],zw.prototype,"data",void 0);_.V([_.FM("#title"),_.Y("design:type",HTMLElement)],zw.prototype,"shopTitle",void 0);
_.V([_.An("data.impressionEndpoints"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zw.prototype,"dataChanged",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zw.prototype,"interactionLoggingClientData",null);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],zw.prototype,"onCompanionClicked",null);
_.V([_.gw({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],zw);
_.l(zw,"ytd-shopping-companion-renderer",function(){if(tqt!==void 0)return tqt;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return tqt=p},{mode:1});_.ci(_.d(function(p){var J=p.data;p=_.Aw({visibilityCallback:function(H){var M,X=(M=J().interaction)==null?void 0:M.onFirstVisible;H&&X&&_.Dm(X)},
showOption:_.gX});var S=_.km(function(){return J().interaction},pBv);
_.uf(function(){var H,M;M=(M=_.Id("yt.www.ads.eventcache.getLastCompanionData"))?(M=M())&&M.onLayoutVisibleCallback:null;(H=M)==null||H()},"Zn");
return _.m("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Kb(function(H){_.L1(H.currentTarget,"yt-refit-popups-action")}),
el:_.Y2(p,S),"aria-label":function(){var H,M;return(H=J().interaction)==null?void 0:(M=H.accessibility)==null?void 0:M.label}},_.m("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.m(_.AH,{data:function(){return J().adImage}},{adImageViewModel:function(H){return _.m(_.rO,{data:H.data,
targetHeight:80,customCommandResolver:pBv})}})),_.m("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.m("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.m(_.AH,{data:function(){return J().adBadge}},{adBadgeViewModel:function(H){return _.m(_.dX,{data:H.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.m("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.m(_.AH,{data:function(){return J().menu}},{buttonViewModel:_.D0}))))},"$n"),"banner-image-layout-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;p=_.Aw({visibilityCallback:function(H){var M,X=(M=J().interaction)==null?void 0:M.onFirstVisible;H&&X&&_.Dm(X)},
showOption:_.gX});var S=_.km(function(){return J().interaction},JqG);
_.uf(function(){var H,M;M=(M=_.Id("yt.www.ads.eventcache.getLastCompanionData"))?(M=M())&&M.onLayoutVisibleCallback:null;(H=M)==null||H()},"ao");
return _.m("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.Y2(p,S)},_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.m(_.AH,{data:function(){return J().adImage}},{adImageViewModel:function(H){return _.m(_.rO,{data:H.data,
targetHeight:80,customCommandResolver:JqG})}})),_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.m(_.AH,{data:function(){return J().adAvatarLockup}},{adAvatarLockupViewModel:function(H){return _.m(Wzu,{data:H.data,
customCommandResolver:JqG})}})),_.m(_.AH,{data:function(){return J().adButton}},{adButtonViewModel:function(H){return _.m(_.hO,{data:H.data,
customCommandResolver:JqG})}}),_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.m(_.AH,{data:function(){return J().menu}},{buttonViewModel:_.D0}))))},"bo"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.fD}});var hCv={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"},$1=function(){var p=_.T.apply(this,arguments)||this;p.updateCompanionDataJobId=0;p.contentVideoId=null;p.player=null;p.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return p};
_.Q($1,_.T);_.R=$1.prototype;_.R.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:hCv}}};
_.R.attached=function(){var p=this,J=_.IY();J&&J.getPlayerPromise().then(function(S){p.getCachedDataAndListen(S)})};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.R.updateRendererStamper=function(){var p={};if(this.data)for(var J in hCv)if(this.data[J]){p[J]=this.data[J];break}if(this.oneofRenderer!=void 0||Object.keys(p).length)this.oneofRenderer=p};
_.R.getCachedDataAndListen=function(p){var J=this.retrieveCachedCompanionData();J&&Object.keys(J).length&&this.receiveCompanionData(J);this.ytPlayerListenerBehavior.listenToPlayerEvent(p,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=p};
_.R.retrieveCachedCompanionData=function(){return _.Hg.yt&&_.Hg.yt.www&&_.Hg.yt.www.ads&&_.Hg.yt.www.ads.eventcache&&_.Hg.yt.www.ads.eventcache.getLastCompanionData?_.Hg.yt.www.ads.eventcache.getLastCompanionData():null};
_.R.receiveCompanionData=function(p){p&&Object.keys(p).length?(this.contentVideoId=p.contentVideoId,this.setCompanionData(p)):this.setCompanionData(p)};
_.R.setCompanionData=function(p){this.cancelPendingCompanionAdJobs();if(p){this.updateCompanionDataJobId=0;for(var J in hCv)hCv.hasOwnProperty(J)&&(this.data[J]=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),_.L1(this.hostElement,
"yt-hide-unlimited-offer-module"),_.L1(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()}};
_.R.dataChanged=function(){var p=this,J=_.IY();J?J.getPlayerPromise().then(function(S){p.contentVideoId&&S.getVideoUrl().includes("v="+p.contentVideoId)||(p.cancelPendingCompanionAdJobs(),p.updateRendererStamper())}):_.SB(Error("dp"))};
_.R.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.wg.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.R.handleCompanionAdClicked=function(p,J){this.player.onAdUxClicked(p,J);this.player.pauseVideo()};
$1.prototype.dataChanged=$1.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],$1.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],$1.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],$1.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],$1.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],$1.prototype,"oneofRenderer",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$1.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],$1);
_.l($1,"ytd-companion-slot-renderer",function(){if(sVG!==void 0)return sVG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return sVG=p},{mode:_.Jz("kevlar_poly_si_batch_j067")?
1:2});var D9q;var ob=function(){return _.T.apply(this,arguments)||this};
_.Q(ob,_.T);ob.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
ob.prototype.dataChanged=ob.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ob.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],ob.prototype,"companionSlotData",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ob.prototype,"dataChanged",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],ob);
_.l(ob,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(D9q!==void 0)return D9q;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return D9q=p},{mode:1});var kXG;var eu=function(){var p=_.T.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,_.mN(p,function(){var J=p.COMPACT_EVENT_COUNT-1,S;(S=_.Jn(p.hostElement).querySelector("#event-"+J))==null||S.focus()}))};
return p};
_.Q(eu,_.T);_.R=eu.prototype;_.R.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.R.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.R.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.n3(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.n3(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.n3(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.n3(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.n3(this.infoTooltip,this.infoTooltip.hide))};
_.R.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.n3(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.n3(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.n3(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.n3(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.n3(this.infoTooltip,this.infoTooltip.hide))};
_.R.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)};
_.R.onShowingMoreChanged=function(){var p;this.showingMoreChanged((p=this.showingMore)!=null?p:!1)};
_.R.showingMoreChanged=function(p){var J=this.get("data.events")||[];this.set("restEvents",J.slice(1,p?J.length:this.COMPACT_EVENT_COUNT).map(function(S){return S.ticketEventRenderer}));
J.slice(0,p?J.length:this.COMPACT_EVENT_COUNT).forEach(function(S){var H=_.C1();S=S.ticketEventRenderer.trackingParams;_.Wf()&&H&&S&&(S=_.Az(S),H&&_.Tv(H,S))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.R.computeAriaLabel=function(p){return p.subtitle1+", "+p.subtitle2};
_.R.logTap=function(p){_.Wf()&&this.ytRendererBehavior.logExplicitClick(p)};
_.R.isKeyboardAction=function(p){return this.get("detail.x",p)===0&&this.get("detail.y",p)===0};
_.R.onFirstEventTap=function(p){p.target&&this.handleTap(p.target,this.firstEvent,this.isKeyboardAction(p))};
_.R.onTicketLinkTap=function(p){p.target&&this.handleTap(p.target,p.model.item,this.isKeyboardAction(p))};
_.R.handleTap=function(p,J,S){if(J.buttonCommand)if(J.hasMultipleOffers)Object.assign(_.e(J.buttonCommand,_.Yi),{properties:{source:S?"keyboard":"tap"}}),this.logTap(J),this.popupPositionTarget=p,_.JP(this.hostElement,[J.buttonCommand],this.hostElement);else{var H;if((H=_.e(J.buttonCommand,_.My))==null?0:H.url)this.logTap(J),_.Ju(window,_.e(J.buttonCommand,_.My).url)}};
eu.prototype.onShowingMoreChanged=eu.prototype.onShowingMoreChanged;eu.prototype.dataChanged=eu.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],eu.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],eu.prototype,"firstEvent",void 0);_.V([_.N(),_.Y("design:type",Object)],eu.prototype,"restEvents",void 0);_.V([_.N(),_.Y("design:type",String)],eu.prototype,"imageUrl",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eu.prototype,"showingMore",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eu.prototype,"canShowMore",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eu.prototype,"skinnyMode",void 0);_.V([_.N(),_.Y("design:type",HTMLElement)],eu.prototype,"popupPositionTarget",void 0);_.V([_.FM("#banner-info-tooltip"),_.Y("design:type",Object)],eu.prototype,"infoTooltip",void 0);
_.V([_.FM("#info-container"),_.Y("design:type",HTMLElement)],eu.prototype,"infoContainer",void 0);_.V([_.FM("#shelf-toggler"),_.Y("design:type",HTMLElement)],eu.prototype,"shelfToggleButton",void 0);_.V([_.FM("#separator"),_.Y("design:type",HTMLDivElement)],eu.prototype,"separator",void 0);_.V([_.N(),_.Y("design:type",String)],eu.prototype,"shelfTogglerLabelText",void 0);_.V([_.N(),_.Y("design:type",String)],eu.prototype,"shelfTogglerIcon",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eu.prototype,"dataChanged",null);_.V([_.An("showingMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eu.prototype,"onShowingMoreChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],eu);
_.l(eu,"ytd-ticket-shelf-renderer",function(){if(kXG!==void 0)return kXG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return kXG=p},{mode:1});var NGq;var TGs;var d9t=function(){return _.T.apply(this,arguments)||this};
_.Q(d9t,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],d9t.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],d9t.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],d9t);
_.l(d9t,"ytd-comments-entry-point-message-renderer",function(){if(TGs!==void 0)return TGs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return TGs=p},{mode:1});var u_t;var WV=function(){return _.T.apply(this,arguments)||this};
_.Q(WV,_.T);_.vh.Object.defineProperties(WV.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.teaserAvatar)}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],WV.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],WV.prototype,"hasAvatar",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],WV);
_.l(WV,"ytd-comments-entry-point-teaser-renderer",function(){if(u_t!==void 0)return u_t;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return u_t=p},{mode:1});var lxd;var VqT=function(){return _.T.apply(this,arguments)||this};
_.Q(VqT,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],VqT.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],VqT.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],VqT);
_.l(VqT,"ytd-comments-simplebox-renderer",function(){if(lxd!==void 0)return lxd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return lxd=p},{mode:1});var Qq=function(){var p=_.T.apply(this,arguments)||this;p.fullHeight=!_.z("comment_teaser_full_height_kill_switch")&&_.z("kevlar_watch_grid");return p};
_.Q(Qq,_.T);Qq.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"}}}};
Qq.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Qq.prototype.onTap=function(){var p=this.tapCommand;p&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(p))};
Qq.prototype.onKeyUp=function(p){if(p.keyCode===13)this.onTap()};
_.vh.Object.defineProperties(Qq.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.onTap)return this.data.onTap;var J,S;if(((J=this.data)==null?0:J.teaserContent)||((S=this.data)==null?0:S.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}}});
Qq.prototype.onKeyUp=Qq.prototype.onKeyUp;Qq.prototype.onTap=Qq.prototype.onTap;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Qq.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Qq.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Qq.prototype,"fullHeight",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qq.prototype,"tapCommand",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qq.prototype,"simpleboxPlaceholder",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qq.prototype,"hasSimpleboxPlaceholder",null);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qq.prototype,"simpleboxAvatar",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qq.prototype,"teaserContent",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qq.prototype,"hasTeaserContent",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qq.prototype,"teaserAvatar",null);
_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qq.prototype,"hasTeaserAvatar",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qq.prototype,"messageText",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qq.prototype,"contentRenderer",null);_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qq.prototype,"hasContents",null);
_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qq.prototype,"hasContentRenderer",null);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qq.prototype,"onTap",null);_.V([_.GI("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.Bz]),_.Y("design:returntype")],Qq.prototype,"onKeyUp",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Qq);
_.l(Qq,"ytd-comments-entry-point-header-renderer",function(){if(NGq!==void 0)return NGq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return NGq=p},{mode:1});var qBs;_.ci(_.Yf8,"yt-animated-rolling-number",{props:{numberText:_.fD,numberValue:_.fD,heightPx:_.fD,fontSizeMultiplier:_.fD,shouldAnimate:_.fD,forceRollUp:_.fD}});var axd=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),EVu={numberText:"",heightPx:2*axd,shouldAnimate:!1},C6=function(){var p=_.T.apply(this,arguments)||this;p.usingAnimatedComponents=!0;p.wasDetailed=!1;p.JSC$23515_browserSupportsAnimation=_.z("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=EVu;p.dateTextProps=
EVu;p.metadataBadgesInDescription=_.z("web_metadata_badges_in_description");return p};
_.Q(C6,_.T);_.R=C6.prototype;_.R.attached=function(){var p=this;_.vO().resolve(_.dj).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(J){p.set("videoPrimaryInfoRenderer.subtitle",J)})};
_.R.detached=function(){_.vO().resolve(_.dj).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.R.resetAnimationState=function(){this.shouldAnimate=!1};
_.R.updateDynamicMetadata=function(){if(this.JSC$23515_browserSupportsAnimation){if(!this.detailed){var p,J,S,H;var M=(p=this.videoPrimaryInfoRenderer)==null?void 0:(J=p.viewCount)==null?void 0:(S=J.videoViewCountRenderer)==null?void 0:(H=S.extraShortViewCount)==null?void 0:H.simpleText;var X,Z,n,b;var F=(X=this.videoPrimaryInfoRenderer)==null?void 0:(Z=X.viewCount)==null?void 0:(n=Z.videoViewCountRenderer)==null?void 0:(b=n.shortViewCount)==null?void 0:b.simpleText}if(!F){var f,O,A,P;M=(f=this.videoPrimaryInfoRenderer)==
null?void 0:(O=f.viewCount)==null?void 0:(A=O.videoViewCountRenderer)==null?void 0:(P=A.unlabeledViewCountValue)==null?void 0:P.simpleText;var W,y,t,D;F=(W=this.videoPrimaryInfoRenderer)==null?void 0:(y=W.viewCount)==null?void 0:(t=y.videoViewCountRenderer)==null?void 0:(D=t.viewCount)==null?void 0:D.simpleText}var k,E,a;p=Number((k=this.videoPrimaryInfoRenderer)==null?void 0:(E=k.viewCount)==null?void 0:(a=E.videoViewCountRenderer)==null?void 0:a.originalViewCount);var q,w;k=(q=this.videoPrimaryInfoRenderer)==
null?void 0:(w=q.relativeDateText)==null?void 0:w.simpleText;var I;q=!((I=this.videoPrimaryInfoRenderer)==null||!I.relativeDateText);if(M&&F&&p&&(k||!q)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;I=F.split(new RegExp("("+M+")"));M=_.aR(I[0]);var Z3;F={numberText:(Z3=I[1])!=null?Z3:"",numberValue:p,heightPx:2*axd,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var vg;Z3=((vg=I[2])!=null?vg:"")+"  ";this.setViewCount(F,M,_.aR(Z3));if(!this.detailed&&
q){M=k.split(/(\d+)/);vg=_.aR(M[0]);var yX;Z3={numberText:(yX=M[1])!=null?yX:"",heightPx:2*axd,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Pg;yX=((Pg=M[2])!=null?Pg:"")+"  ";this.setDateText(Z3,vg,_.aR(yX))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.R.setViewCount=function(p,J,S){_.E4(J)!==_.E4(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=J);this.viewCountProps.numberText!==(p==null?void 0:p.numberText)&&(this.viewCountProps=p||EVu);_.E4(S)!==_.E4(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=S)};
_.R.setDateText=function(p,J,S){_.E4(J)!==_.E4(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=J);this.dateTextProps.numberText!==(p==null?void 0:p.numberText)&&(this.dateTextProps=p||EVu);_.E4(S)!==_.E4(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=S)};
_.R.onYtUpdateViewershipAction=function(p){this.videoPrimaryInfoRenderer&&(_.e(p,OHq).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.e(p,OHq).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.e(p,OHq).viewCount)))};
_.R.onYtUpdateDateTextAction=function(p){if(this.videoPrimaryInfoRenderer){p=_.e(p,_.vQD).dateText;this.shouldAnimate=!0;var J;((J=this.videoPrimaryInfoRenderer)==null?0:J.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",p):this.set("videoPrimaryInfoRenderer.dateText",p)}};
_.vh.Object.defineProperties(C6.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return iO4(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.E4(iO4(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.E4(this.viewCountPreNumberText),this.viewCountProps.numberText,_.E4(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.E4(this.dateTextPreNumberText),this.dateTextProps.numberText,_.E4(this.dateTextPostNumberText)].join("")}}});
C6.prototype.updateDynamicMetadata=C6.prototype.updateDynamicMetadata;C6.prototype.resetAnimationState=C6.prototype.resetAnimationState;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],C6.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],C6.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],C6.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],C6.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],C6.prototype,"detailed",void 0);_.V([_.N(),_.Y("design:type",Object)],C6.prototype,"shouldAnimate",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],C6.prototype,"viewCountPreNumberText",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],C6.prototype,"viewCountProps",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],C6.prototype,"viewCountPostNumberText",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],C6.prototype,"dateTextPreNumberText",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],C6.prototype,"dateTextProps",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],C6.prototype,"dateTextPostNumberText",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],C6.prototype,"metadataBadgesInDescription",void 0);_.V([_.U("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],C6.prototype,"infoText",null);
_.V([_.U("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.Y("design:type",String),_.Y("design:paramtypes",[])],C6.prototype,"descriptionInfoTooltipText",null);_.V([_.U("detailed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],C6.prototype,"showDescriptionInfoTooltip",null);
_.V([_.U("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],C6.prototype,"animatedViewCountAccessibilityLabel",null);_.V([_.U("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],C6.prototype,"animatedDateTextAccessibilityLabel",null);
_.V([_.bO("videoPrimaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C6.prototype,"resetAnimationState",null);_.V([_.bO("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C6.prototype,"updateDynamicMetadata",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-watch-info-text"})],C6);
_.l(C6,"ytd-watch-info-text",function(){if(qBs!==void 0)return qBs;var p=document.createElement("template");_.C(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  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return qBs=p},{mode:1});var YBG;var r1y="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var jV4=_.d(function(p){var J=p.data;var S=p.setTapCommand;_.lf(function(){var H=_.sa(J().onTap);S(H)},"CLm0Xe");
return _.m("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.m(_.AH,{data:function(){return J().avatar}},{avatarViewModel:_.iF}),_.m("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.m("span",null,function(){return J().simpleboxText})))},"eo");var wfp=_.d(function(p){return _.m("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.m(_.v,{cond:function(){return _.e(p.data().avatar,_.tH)},
then:function(J){return _.m(_.iF,{data:J,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.m("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.m(_.v3,{text:function(){return p.data().teaserText}})))},"fo");var x9d=_.d(function(p){var J=p.data;var S=p.setTapCommand;_.lf(function(){var H=_.sa(J().onTap);S(H)},"qxjCCd");
return _.m("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.m(_.AH,{data:function(){return J().teasers}},{commentsEntryPointTeaserViewModel:wfp}))},"ho");var c1D=_.d(function(p){var J=p.data;var S=p.setTapCommand;_.lf(function(){var H=_.sa(J().onTap);S(H)},"CRZByf");
return _.m("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.m(_.v3,{text:function(){return J().messageText}}))},"jo");var Ixp=_.d(function(p){var J=p.data;var S=p.setTapCommand;var H=p.isDisabled;_.lf(function(){var M=(H==null?0:H())?void 0:_.sa(J().onTap);S(M)},"GZxRqd");
return _.m("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.m(_.bn,{icon:function(){return J().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.m(_.v,{cond:function(){return J().image},
then:function(M){return _.m(_.a4,{data:M,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.m(_.v3,{text:function(){return J().text},
className:function(){return J().image||J().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.m(_.AH,{data:function(){return J().button}},{buttonViewModel:function(M){return _.m(_.D0,{data:M.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:H==null?void 0:H()}}})}}))},"lo");var LzG=_.d(function(p){var J=p.data;var S=p.itemIndex;var H=p.selectedIndex;var M=p.indexUpdatedCallback;var X=p.observer;p=p.title;var Z=_.nE("yt-carousel-item-view-model",function(O){X&&X().observe(O)}),n=function(O){S()===H()&&M(O)},b=_.fb(gap),F=_.fb(_.HZX),f=function(){var O,A,P,W,y;
return((O=J())==null?void 0:O.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!b()||((A=J())==null?void 0:A.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((P=F())==null?void 0:P.includes("PAposts_by_host"))||((W=J())==null?void 0:W.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((y=F())==null?void 0:y.includes("PAyouchat"))};
return _.m("yt-carousel-item-view-model",{el:Z,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":p},_.m(_.AH,{data:function(){var O,A;return(A=(O=_.e(J().carouselItem,u$y))==null?void 0:O.textCarousel)!=null?A:J().carouselItem}},{textCarouselItemViewModel:function(O){return _.m(Ixp,{data:O.data,
setTapCommand:n,isDisabled:f})},
commentTeaserCarouselItemViewModel:function(O){return _.m(x9d,{data:O.data,setTapCommand:n})},
commentInputBoxCarouselItemViewModel:function(O){return _.m(jV4,{data:O.data,setTapCommand:n})},
commentsEntryPointMessageViewModel:function(O){return _.m(c1D,{data:O.data,setTapCommand:n})}}))},"mo");var p9v=_.d(function(p){var J=p.numDots;var S=p.activeIndex;return _.m("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.m(_.dY,{each:function(){return Array.from({length:J()})},
keyBy:"INDEX"},function(H,M){return _.m("div",{class:function(){var X={};return _.Qh("ytCarouselDotsShapeDot",(X.ytCarouselDotsShapeDotActive=M===S(),X))}})}))},"no");var JPT=_.d(function(p){var J=p.data;var S=p.handleCarouselNavigation;var H=p.numItems;var M=p.selectedIndex;var X=function(){return{disabled:M()===0}},Z=function(){return{disabled:M()===H()-1}};
return _.m("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.m("div",null,_.m("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return J().title}),_.m(_.v,{cond:function(){return J().subtitle},
then:function(n){return _.m("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return J().subtitleAccessibilityText}},n)}})),_.m(_.v,{cond:function(){return H()>1},
then:function(){return _.m("div",{class:"ytCarouselTitleViewModelNavigation"},_.m(p9v,{numDots:H,activeIndex:M}),_.m(_.v,{cond:function(){return J().previousButton},
then:function(n){return _.m(_.AH,{data:n},{buttonViewModel:function(b){return _.m(_.D0,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return S(-1)},
buttonOverrides:X})}})}}),_.m(_.v,{cond:function(){return J().nextButton},
then:function(n){return _.m(_.AH,{data:n},{buttonViewModel:function(b){return _.m(_.D0,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return S(1)},
buttonOverrides:Z})}})}}))}}))},"oo");_.ci(_.d(function(p){var J=p.data;var S,H=_.nE("yt-video-metadata-carousel-view-model"),M=_.nE("div",function(q){var w=function(){var I=q.offsetWidth*y(),Z3=24*(y()-1);A(I+Z3)};
w();window.ResizeObserver&&(S=new ResizeObserver(w),S.observe(q))}),X=_.jn("HTML_DIR")==="rtl",Z=!1,n=0,b=0;
p=_.K(_.eQ(0,void 0,"M49TDf"));var F=p.next().value,f=p.next().value;p=_.K(_.eQ(0,void 0,"zLIok"));var O=p.next().value,A=p.next().value;p=_.K(_.eQ(!1,void 0,"bhelhc"));var P=p.next().value,W=p.next().value,y=function(){var q,w,I;return(I=(q=J())==null?void 0:(w=q.carouselTitles)==null?void 0:w.length)!=null?I:0},t=function(){M.value&&M.value.scrollLeft!==n&&f((X?M.value.scrollLeft<n:M.value.scrollLeft>n)?Math.min(F()+1,y()-1):Math.max(F()-1,0))},D;
window.IntersectionObserver&&(D=new IntersectionObserver(function(q){q=_.K(q);for(var w=q.next();!w.done;w=q.next())if(w.value.isIntersecting){if(Z){Z=!1;break}t()}else f(b)},{threshold:.2}));
_.lf(function(){if(M.value){var q=(X?-1:1)*(O()/y()+12)*(P()&&D?b:F());typeof M.value.scrollTo==="function"?M.value.scrollTo({left:q,behavior:"smooth"}):M.value.scrollLeft=q;n=q;b=P()&&D?b:F()}},"s9rbgc");
var k,E=function(q){k=q};
_.VY(function(){var q;(q=S)==null||q.disconnect();var w;(w=D)==null||w.disconnect()});
var a=function(q){q=F()+q;q>=0&&q<y()&&(Z=!0,f(q))};
return _.m("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:H,"on:click":_.Kb(function(q){if(_.yh(_.CG(q),H.value,["BUTTON".toString()])||!k)return!1;_.vO().resolve(_.Ov).resolveCommand(k,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Kb(function(){W(!0);return!1}),
"on:touchend":_.Kb(function(){D||t();W(!1);return!1}),
hidden:function(){var q,w;return!((q=J())==null?0:(w=q.carouselItems)==null?0:w.length)}},_.m("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.m(_.v,{cond:function(){return J().carouselTitles},
then:function(q){return _.m(_.AH,{data:function(){return q()[P()&&D?b:F()]}},{carouselTitleViewModel:function(w){return _.m(JPT,{data:w.data,
handleCarouselNavigation:a,numItems:y,selectedIndex:F})}})}})),_.m("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:M},_.m("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+O()+"px;"}},_.m(_.v,{cond:function(){return J().carouselItems},
then:function(q){return _.m(_.dY,{each:q},function(w,I){return _.m(_.AH,{data:function(){return w}},{carouselItemViewModel:function(Z3){return _.m(LzG,{data:Z3.data,
itemIndex:I,selectedIndex:F,indexUpdatedCallback:E,observer:D,title:function(){a:{var vg=I();var yX,Pg=(yX=J())==null?void 0:yX.carouselTitles;if(Pg&&(vg=Pg[vg])){var ov;vg=(ov=_.e(vg,d1p))==null?void 0:ov.title;break a}vg=void 0}return vg}})}})})}}))))},"qo"),"yt-video-metadata-carousel-view-model",{props:{data:_.fD}});var SJG=_.z("web_action_buttons_update_owner_width")?32:12,yq=function(){var p=_.T.apply(this,arguments)||this;p.isHovering=!1;p.enableColorSampling=_.z("web_delhi_colorful_sd");p.metadataBadgesInDescription=_.z("web_metadata_badges_in_description");p.descriptionCollapsed=!0;p.useFadedScrimDescription=_.z("kevlar_enable_faded_scrim_on_description");p.skinnyMode=!1;p.playlist=!1;p.isDark=document.documentElement.hasAttribute("dark");p.disableVideoOwnerOnTap=_.z("swatchie_video_owner_on_tap_ks");p.swatcherooDelayLoad=
_.z("swatcheroo_enable_ghost_cards");p.primaryMenuWidth=0;p.videoId="";p.titleHeadlineXs=_.z("web_watch_typography_title_headline_xs");p.titleHeadlineS=_.z("web_watch_typography_title_headline_s");p.titleHeadlineM=_.z("web_watch_typography_title_headline_m");p.titleHashtagBlackLinkified=_.z("web_title_hashtag_black_linkified");p.titleHashtagGreyLinkified=_.z("web_title_hashtag_grey_linkified");p.actionButtonsUpdateOwnerWidth=_.z("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"};p.isFullscreen=!1;p.isTheaterMode=!1;return p};
_.Q(yq,_.T);_.R=yq.prototype;_.R.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.R.updateOwnerAndDescriptionPosition=function(){_.z("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.tR(this.bottomRowElement,this.ownerElement)):(_.tR(this.bottomRowElement,this.descriptionElement),_.tR(this.topRowElement,this.ownerElement)))};
_.R.titleOnTap=function(p){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.jK(_.Er(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var J;((J=window.getSelection())==null?0:J.toString().length)||this.handleExpandDescriptionCommands()}};
_.R.videoOwnerOnTap=function(p){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.jK(_.Er(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.R.detached=function(){var p=this,J;return _.G(function(S){(J=p.resizeObserver)==null||J.disconnect();_.UK(S)})};
_.R.maybeAttachResizeObserver=function(){var p=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.nb(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){p.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.R.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var p=this.hostElement.clientWidth,J=Math.max(this.largerItemWrap?400:350,p/2-SJG);_.z("web_action_buttons_update_owner_width")&&(J=this.ownerElement.clientWidth+SJG);this.actionsOnSeparateLine=this.primaryMenuWidth>p-J?!0:!1}};
_.R.stripAttributedDescription=function(p){return{content:p.content.replace(/[\r\n]{2,}/g,"\n")}};
_.R.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.z("web_modern_buttons"),forceIconButton:!_.z("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:_.z("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"}}}};
_.R.videoPrimaryInfoRendererChanged=function(){var p;if((p=this.videoPrimaryInfoRenderer)==null?0:p.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.R.videoSecondaryInfoRendererChanged=function(){var p,J;(p=this.descriptionInlineExpander)==null||(J=p.collapse)==null||J.call(p);this.descriptionExpandClientVe=_.KG(110509);this.descriptionCollapseClientVe=_.KG(110510);p=_.C1();J=_.Wf();p&&J&&(_.z("combine_ve_grafts")?(_.dC(_.bC(),this.descriptionExpandClientVe,J),_.dC(_.bC(),this.descriptionCollapseClientVe,J)):_.Nq(p,J,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.R.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.R.updateTopLevelIconsOnly=function(){var p=this;_.z("top_level_update_killswitch")||this.menu&&_.wg.addLowPriorityJob(function(){p.menu.topLevelIconsOnly=p.skinnyMode},_.PO("swathceroo_delay_flexible_menu_update",100))};
_.R.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.z("web_action_buttons_minimize_subscribe")};
_.R.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.R.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.R.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.R.onYtTextInlineExpanderExpandedChanged=function(){if(!_.z("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var p,J;(J=(p=this.structuredDescriptionContentRendererElement).resize)==null||J.call(p)}};
_.R.onRenderStamperFinished=function(p){(p==null?void 0:p.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.R.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.R.onYtExpanderLessTapped=function(){var p,J=(p=this.videoSecondaryInfoRenderer)==null?void 0:p.showLessCommand;J&&this.ytComponentBehavior.resolveCommand(J)};
_.R.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.R.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.R.onDescriptionClick=function(p){if(!_.jK(_.Er(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var J;((J=window.getSelection())==null?0:J.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.z("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.R.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.R.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.R.logCollapseClick=function(){var p=_.C1();p&&this.descriptionCollapseClientVe&&_.l7(p,this.descriptionCollapseClientVe)};
_.R.logExpandClick=function(){var p=_.C1();p&&this.descriptionExpandClientVe&&_.l7(p,this.descriptionExpandClientVe)};
_.R.collapseDescription=function(){this.descriptionCollapsed=!0};
_.R.scrollToTopOfContainer=function(){_.IV(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.R.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.R.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.R.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.R.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var p,J;(J=(p=this.descriptionInlineExpander).resize)==null||J.call(p)}else _.xQ(new _.TG("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var S;(S=this.menu)==null||S.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.R.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var p,J,S,H,M=_.z("web_action_buttons_update_owner_width")?(S=(p=_.Jn(this.menu).querySelector("#button-shape"))==null?void 0:p.clientWidth)!=null?S:0:(H=(J=_.Jn(this.menu).querySelector("#button"))==null?void 0:J.clientWidth)!=null?H:0,X,Z;p=((Z=(X=_.Jn(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:X.clientWidth)!=null?Z:0)+8+M;var n,b;M=(b=(n=_.Jn(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:n.children.length)!=null?b:2;p<=8*M||(this.primaryMenuWidth=p)}};
_.R.onYtUpdateTitleAction=function(p){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.e(p,ftG).title)};
_.R.onYtUpdateDescriptionAction=function(p){if(p=_.e(p,_.Vkp)){var J,S=!((J=this.videoSecondaryInfoRenderer)==null||!J.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&&(S?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.CI(p.description)):this.set("videoSecondaryInfoRenderer.description",p.description))}};
_.R.onYtDarkModeToggledAction=function(p){this.isDark=p};
_.R.registerPanel=function(){if(!_.z("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var p=_.z("web_watch_imax_theater_mode")&&this.isTheaterMode;p=_.z("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||p;var J=_.vO().resolve(_.JY);J&&!p&&J.registerPanel("engagement-panel-structured-description",this)}};
_.R.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.R.parseColorSamplingData=function(){var p;if(_.z("web_delhi_colorful_sd")&&((p=this.structuredDescriptionContentRenderer)==null?0:p.items)&&(p=this.structuredDescriptionContentRenderer.items.find(function(M){return!!_.e(M,hR)}))){var J,S;
this.hoverColor={lightTheme:(J=_.e(p,hR))==null?void 0:J.lightThemeColorPalette,darkTheme:(S=_.e(p,hR))==null?void 0:S.darkThemeColorPalette};var H;this.hoverText=(H=_.e(p,hR))==null?void 0:H.colorSampledDescriptionBodyText}};
_.R.updateHoverColor=function(){if(_.z("web_delhi_colorful_sd")){var p=this.hoverColor,J={},S;p=(S=this.isDark?p==null?void 0:p.darkTheme:p==null?void 0:p.lightTheme)!=null?S:{};S=_.K(r1y);for(var H=S.next();!H.done;H=S.next()){H=H.value;var M=p[H];J["--yt-saturated-"+_.K1(H)]=M?_.Bt(M):"initial"}_.K3(this.hostElement,J)}};
_.R.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.R.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.R.showPanel=function(p){this.expandDescription();var J=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;J.resize();var S,H=p==null?void 0:(S=p.sectionListEngagementPanelExtras)==null?void 0:S.scrollToItemSectionIdentifier;H?_.wg.addJob(function(){J==null||J.scrollToSection(H)},8):this.scrollToTopOfContainer()};
_.R.isVisible=function(){return!this.descriptionCollapsed};
_.R.getReloadContinuation=function(){};
_.R.hidePanel=function(){};
_.R.updatePanel=function(){};
_.vh.Object.defineProperties(yq.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var p;return _.z("web_delhi_colorful_sd")&&(p=this.structuredDescriptionContentRenderer)!=null&&p.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(J){return!_.e(J,hR)&&!_.e(J,zps)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.structuredDescriptionContentRendererComputed)!=null&&p.items){var J;p=_.K((J=this.structuredDescriptionContentRendererComputed)==null?void 0:J.items);for(J=p.next();!J.done;J=p.next())if(J=_.e(J.value,_.DZ8))return J}}},
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,J,S;return!!((p=this.videoSecondaryInfoRenderer)==null?0:(J=p.owner)==null?0:(S=J.videoOwnerRenderer)==null?0:S.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var p,J;if((p=this.videoSecondaryInfoRenderer)==null?0:(J=p.attributedDescription)==null?0:J.content){var S,H;return(H=this.stripAttributedDescription((S=this.videoSecondaryInfoRenderer)==null?void 0:S.attributedDescription))!=null?H:{runs:[]}}}if(_.z("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var M,X,Z,n;return(n=(Z=(M=this.videoSecondaryInfoRenderer)==
null?void 0:M.description)!=null?Z:(X=this.videoSecondaryInfoRenderer)==null?void 0:X.attributedDescription)!=null?n:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var p,J;return(J=(p=this.videoSecondaryInfoRenderer)==null?void 0:p.headerRuns)!=null?J:[]}},
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?_.PO("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var p,J,S=Object.assign({},(p=this.videoSecondaryInfoRenderer)==null?void 0:(J=p.metadataRowContainer)==null?void 0:J.metadataRowContainerRenderer);if(S&&S.rows&&S.collapsedItemCount!==void 0&&!(S.rows.length<=S.collapsedItemCount))return S.rows=S.rows.slice(S.collapsedItemCount),S.collapsedItemCount=0,S}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var p,J,S=Object.assign({},(p=this.videoSecondaryInfoRenderer)==null?void 0:(J=p.metadataRowContainer)==null?void 0:J.metadataRowContainerRenderer);if(S&&S.rows&&S.collapsedItemCount!==void 0)return S.rows=S.rows.slice(0,S.collapsedItemCount),S.collapsedItemCount=S.rows.length,S}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var p,J;return!!((p=this.structuredDescriptionContentRendererComputed)==null?0:(J=p.items)==null?0:J.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var p;return(p=this.videoSecondaryInfoRenderer)==null?void 0:p.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return((p=this.videoSecondaryInfoRenderer)==null?0:(J=p.owner)==null?0:(S=J.videoOwnerRenderer)==null?0:S.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H;return!!((p=this.videoPrimaryInfoRenderer)==null?0:(J=p.videoActions)==null?0:(S=J.menuRenderer)==null?0:(H=S.flexibleItems)==null?0:H.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.lC(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.lC(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(_.z("web_title_hashtag_grey_delinkified")){var J,S=_.T6.unsafeClone((J=this.videoPrimaryInfoRenderer)==null?void 0:J.title);(J=S==null?void 0:S.runs)&&J.forEach(function(H){if(H==null?0:H.navigationEndpoint)H.textColor=4284506208,p.isDark&&(H.textColor=4289374890)});
return S}return(S=this.videoPrimaryInfoRenderer)==null?void 0:S.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.z("web_title_hashtag_black_delinkified")||_.z("web_title_hashtag_grey_delinkified")}}});
yq.prototype.updateHoverColor=yq.prototype.updateHoverColor;yq.prototype.parseColorSamplingData=yq.prototype.parseColorSamplingData;yq.prototype.resetDescriptionState=yq.prototype.resetDescriptionState;yq.prototype.registerPanel=yq.prototype.registerPanel;yq.prototype.onYtExpanderLessTapped=yq.prototype.onYtExpanderLessTapped;yq.prototype.onYtExpanderMoreTapped=yq.prototype.onYtExpanderMoreTapped;yq.prototype.onRenderStamperFinished=yq.prototype.onRenderStamperFinished;
yq.prototype.onYtTextInlineExpanderExpandedChanged=yq.prototype.onYtTextInlineExpanderExpandedChanged;yq.prototype.onYtTextInlineExpanderCollapseClicked=yq.prototype.onYtTextInlineExpanderCollapseClicked;yq.prototype.onYtTextInlineExpanderExpandClicked=yq.prototype.onYtTextInlineExpanderExpandClicked;yq.prototype.moveActionsElement=yq.prototype.moveActionsElement;yq.prototype.updateShouldForceIconOnly=yq.prototype.updateShouldForceIconOnly;yq.prototype.updateTopLevelIconsOnly=yq.prototype.updateTopLevelIconsOnly;
yq.prototype.structuredDescriptionContentRendererChanged=yq.prototype.structuredDescriptionContentRendererChanged;yq.prototype.videoSecondaryInfoRendererChanged=yq.prototype.videoSecondaryInfoRendererChanged;yq.prototype.videoPrimaryInfoRendererChanged=yq.prototype.videoPrimaryInfoRendererChanged;yq.prototype.maybeUpdateActionsOnSeparateLine=yq.prototype.maybeUpdateActionsOnSeparateLine;yq.prototype.updateOwnerAndDescriptionPosition=yq.prototype.updateOwnerAndDescriptionPosition;
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],yq.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],yq.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],yq.prototype,"ytdReduxBehavior",void 0);_.V([_.FM("#above-the-fold"),_.Y("design:type",HTMLElement)],yq.prototype,"aboveTheFoldContainer",void 0);_.V([_.FM("#menu ytd-menu-renderer"),_.Y("design:type",Object)],yq.prototype,"menu",void 0);_.V([_.FM("#description-inline-expander"),_.Y("design:type",Object)],yq.prototype,"descriptionInlineExpander",void 0);
_.V([_.FM("#faded-structured-description"),_.Y("design:type",Object)],yq.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.V([_.FM("#structured-description"),_.Y("design:type",Object)],yq.prototype,"structuredDescriptionContentRendererElement",void 0);_.V([_.FM("#title"),_.Y("design:type",HTMLElement)],yq.prototype,"titleElement",void 0);_.V([_.FM("#description"),_.Y("design:type",HTMLElement)],yq.prototype,"descriptionElement",void 0);
_.V([_.FM("#description-interaction"),_.Y("design:type",Object)],yq.prototype,"descriptionInteraction",void 0);_.V([_.FM("#owner"),_.Y("design:type",HTMLElement)],yq.prototype,"ownerElement",void 0);_.V([_.FM("#top-row"),_.Y("design:type",HTMLElement)],yq.prototype,"topRowElement",void 0);_.V([_.FM("#bottom-row"),_.Y("design:type",HTMLElement)],yq.prototype,"bottomRowElement",void 0);_.V([_.FM("#actions"),_.Y("design:type",HTMLElement)],yq.prototype,"actionsElement",void 0);
_.V([_.FM("#bottom-actions"),_.Y("design:type",HTMLElement)],yq.prototype,"bottomActionsElement",void 0);_.V([_.FM("#ytd-watch-info-text"),_.Y("design:type",Object)],yq.prototype,"watchInfoTextElement",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"videoSecondaryInfoRenderer",void 0);
_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"commentsEntryPointHeaderRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"videoMetadataCarousel",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"structuredDescriptionContentRenderer",void 0);_.V([_.U("structuredDescriptionContentRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"structuredDescriptionContentRendererComputed",null);
_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"videoSummary",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"merchShelf",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"infoPanelBelowMetadata",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"hoverColor",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"hoverText",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"isHovering",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"enableColorSampling",void 0);_.V([_.U("structuredDescriptionContentRendererComputed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"productShelf",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"metadataBadgesInDescription",void 0);_.V([_.U("videoPrimaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"shouldHideBadges",null);
_.V([_.U("productShelf","descriptionCollapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yq.prototype,"shouldShowProductShelf",null);_.V([_.N(),_.Y("design:type",Boolean)],yq.prototype,"isWatchFlexy",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"descriptionCollapsed",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yq.prototype,"useFadedScrimDescription",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"skinnyMode",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("videoSecondaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"largerItemWrap",null);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"playlist",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"clarifyBox",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"playerAds",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],yq.prototype,"isDark",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yq.prototype,"actionsOnSeparateLine",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"disableVideoOwnerOnTap",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"swatcherooDelayLoad",void 0);_.V([_.N(),_.Y("design:type",Boolean)],yq.prototype,"suppressTopLevelMetadataRows",void 0);
_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"primaryMenuWidth",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"videoId",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"titleHeadlineXs",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"titleHeadlineS",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"titleHeadlineM",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"titleHashtagBlackLinkified",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"titleHashtagGreyLinkified",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.V([_.N(),_.Y("design:type",Object)],yq.prototype,"shouldForceIconOnly",void 0);
_.V([_.An("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"updateOwnerAndDescriptionPosition",null);_.V([_.An("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.V([_.U("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"descriptionText",null);_.V([_.U("videoSecondaryInfoRenderer.headerRuns"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],yq.prototype,"headerRuns",null);
_.V([_.N({value:!1}),_.U("commentsEntryPointHeaderRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"hasTeaser",null);_.V([_.N({value:!1,reflectToAttribute:!0}),_.U("videoMetadataCarousel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"hasTeaserCarousel",null);_.V([_.N({value:3}),_.U("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"descriptionMaxLines",null);
_.V([_.U("videoSecondaryInfoRenderer.metadataRowContainer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"collapsibleMetadataRows",null);_.V([_.U("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"alwaysVisibleMetadataRows",null);
_.V([_.U("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yq.prototype,"hasInlineStructuredDescription",null);_.V([_.U("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yq.prototype,"showInlineStructuredDescription",null);
_.V([_.U("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"descriptionExpandCommand",null);_.V([_.U("videoSecondaryInfoRenderer.owner"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"videoOwnerCommand",null);_.V([_.N({reflectToAttribute:!0}),_.U("videoPrimaryInfoRenderer.videoActions"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yq.prototype,"flexMenuEnabled",null);
_.V([_.N({selector:_.sS,reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"isFullscreen",void 0);_.V([_.N({selector:_.US,reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"isTheaterMode",void 0);_.V([_.U("descriptionText","useFadedScrimDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yq.prototype,"showAttributedStringDescription",null);
_.V([_.U("descriptionText","useFadedScrimDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yq.prototype,"showFormattedStringDescription",null);_.V([_.U("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yq.prototype,"showFadedStructuredDescription",null);
_.V([_.An("videoPrimaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"videoPrimaryInfoRendererChanged",null);_.V([_.U("videoPrimaryInfoRenderer.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"videoTitle",null);_.V([_.U("videoPrimaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yq.prototype,"noEndpoints",null);
_.V([_.An("videoSecondaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"videoSecondaryInfoRendererChanged",null);_.V([_.bO("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"structuredDescriptionContentRendererChanged",null);
_.V([_.bO("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"updateTopLevelIconsOnly",null);_.V([_.bO("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"updateShouldForceIconOnly",null);_.V([_.bO("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"moveActionsElement",null);
_.V([_.GI("yt-text-inline-expander-expand-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"onYtTextInlineExpanderExpandClicked",null);_.V([_.GI("yt-text-inline-expander-collapse-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.V([_.GI("yt-text-inline-expander-expanded-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],yq.prototype,"onRenderStamperFinished",null);
_.V([_.GI("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"onYtExpanderMoreTapped",null);_.V([_.GI("yt-expander-less-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"onYtExpanderLessTapped",null);
_.V([_.bO("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"registerPanel",null);_.V([_.bO("videoSecondaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"resetDescriptionState",null);
_.V([_.bO("structuredDescriptionContentRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"parseColorSamplingData",null);_.V([_.bO("hoverColor","isDark"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"updateHoverColor",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-watch-metadata"})],yq);
_.l(yq,"ytd-watch-metadata",function(){if(YBG!==void 0)return YBG;var p=document.createElement("template");_.C(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    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" 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="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\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(_.r().content.cloneNode(!0),p.content.firstChild);return YBG=p},{mode:2});_.nOT=function(p){_.gp.call(this);this.JSC$23540_watchApi=p;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;HlD(this);MUG(this);X9a(this);ils(this);Ra7(this);KYv(this);Zls(this)};
_.Q(_.nOT,_.gp);var X9a=function(p){var J=function(){_.z("kevlar_is_pupi_enabled")||BV(p)};
p.JSC$23540_watchApi.getRoot().addEventListener("yt-player-updated",J);p.addOnDisposeCallback(function(){p.JSC$23540_watchApi.getRoot().removeEventListener("yt-player-updated",J)})},Ra7=function(p){if(_.z("kevlar_endscreen_auto_theater_mode")){var J=p.JSC$23540_watchApi.subscribeToActiveChanged(function(){Gva(p)},!1);
p.addOnDisposeCallback(J)}},HlD=function(p){var J,S,H,M,X;
_.G(function(Z){if(Z.nextAddress==1)return Z.yield(p.JSC$23540_watchApi.playerApi,2);J=Z.yieldResult;S=function(n){n=!!n;blG(p)&&(n=n?2:1,_.yK.getInstance().setState(n,!0,!1))};
H=function(n){n&&_.syy(_.rl().getState())&&(_.IV(p.JSC$23540_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),p.temporaryTheaterMode=!0)};
M=function(n){_.z("kevlar_player_update_autonav_on_new_data")&&n.type==="newdata"&&(_.z("kevlar_is_pupi_enabled")||BV(p))};
X=function(n){p.onPlayerStateChange(n)};
_.z("kevlar_endscreen_auto_theater_mode")&&J.addEventListener("onAutonavCancelled",H);J.addEventListener("onAutonavChangeRequest",S);J.addEventListener("onVideoDataChange",M);J.addEventListener("onStateChange",X);p.addOnDisposeCallback(function(){J.removeEventListener("onAutonavChangeRequest",S);J.removeEventListener("onVideoDataChange",M);J.removeEventListener("onStateChange",X);_.z("kevlar_endscreen_auto_theater_mode")&&J.removeEventListener("onAutonavCancelled",H)});
_.UK(Z)})},MUG=function(p){p.JSC$23540_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){p.autonavCancelledBySignal=!0;
_.z("kevlar_is_pupi_enabled")||BV(p)});
p.JSC$23540_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(J,S,H){S&&BV(p,H)});
p.JSC$23540_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){blG(p)&&_.yK.getInstance().setState(2,!0,!0)});
p.JSC$23540_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){blG(p)&&_.yK.getInstance().setState(1,!0,!0)});
p.addOnDisposeCallback(function(){p.JSC$23540_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");p.JSC$23540_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");p.JSC$23540_watchApi.unregisterActionHandler("yt-enable-autoplay-command");p.JSC$23540_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},ils=function(p){var J=p.JSC$23540_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Zls(p)}),S=p.JSC$23540_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){KYv(p)});
p.addOnDisposeCallback(function(){p.JSC$23540_watchApi.unsubscribeByKey(J);p.JSC$23540_watchApi.unsubscribeByKey(S)})},Zls=function(p){p.autonavCancelledBySignal=!1;
_.z("kevlar_is_pupi_enabled")||BV(p)},KYv=function(p){var J=p.JSC$23540_watchApi.getWatchNextResponse(),S,H;
var M=(J=(H=_.e(J==null?void 0:(M=J.playerOverlays)==null?void 0:(S=M.playerOverlayRenderer)==null?void 0:S.autonavToggle,_.Ytm))==null?void 0:H.enabled)?2:1;_.z("kevlar_is_pupi_enabled")?_.yK.getInstance().setState(M,!1,!1):BV(p);_.z("web_persist_server_autonav_state_on_client")&&typeof J==="boolean"&&_.Gb9(M===2)},blG=function(p){if(p.autonavCancelledBySignal)return!1;
var J,S,H,M;return!!((J=p.JSC$23540_watchApi.getWatchNextResponse())==null?0:(S=J.contents)==null?0:(H=S.twoColumnWatchNextResults)==null?0:(M=H.autoplay)==null?0:M.autoplay)};
_.nOT.prototype.onPlayerStateChange=function(p){if(p===0){p=!_.yK.getInstance().isAutoplaySetExplicitly();var J=this.JSC$23540_watchApi.getWatchNextResponse(),S,H,M,X;J=_.e(J==null?void 0:(S=J.contents)==null?void 0:(H=S.twoColumnWatchNextResults)==null?void 0:(M=H.autoplay)==null?void 0:(X=M.autoplay)==null?void 0:X.autoplayExplicitChoiceDialogRenderer,_.G38);blG(this)&&p&&J&&_.R4.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:J},popupType:"DIALOG"}})}else Gva(this)};
var Gva=function(p){p.temporaryTheaterMode&&(p.temporaryTheaterMode=!1,_.IV(p.JSC$23540_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},BV=function(p,J){J=J===void 0?!1:J;
var S;_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23540_watchApi.playerApi,2);S=H.yieldResult;blG(p)?S.setAutonavState(_.yK.getInstance().getState(),J):S.setAutonavState(1,J);_.UK(H)})};var mqp={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.vOp=function(p){_.gp.call(this);var J=this;this.JSC$23545_watchApi=p;var S=this.JSC$23545_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){FYD(J)});
this.addOnDisposeCallback(function(){J.JSC$23545_watchApi.unsubscribeByKey(S)});
FYD(this)};
_.Q(_.vOp,_.gp);var FYD=function(p){var J=p.JSC$23545_watchApi.getPlayerResponse(),S=p.JSC$23545_watchApi.getWatchNextResponse();if(!_.ddi(J==null?void 0:J.playabilityStatus,S==null?void 0:S.playerOverlays)){var H;var M=J==null?void 0:(H=J.playabilityStatus)==null?void 0:H.errorScreen}p.JSC$23545_watchApi.provideRenderingData("ERROR_SCREEN",M)};var fOp=_.d(function(p){return _.m("yt-player-grid-renderer",{class:_.XB("ytPlayerGridRendererHost",p.className)},_.m(_.AH,{data:p.data},{lockupViewModel:function(J){return _.m(_.Vy,{data:J.data,useOverlayStyling:!0})}}))},"ro");var OlT=_.d(function(p){var J=p.data;p=_.z("web_watch_video_details_hide_subtitle");var S=_.z("web_watch_video_details_single_line_title"),H=_.Kb(function(){var n=J().onTap;n&&_.vO().resolve(_.Ov).resolveCommand(n)}),M={},X={},Z={};
return _.m("yt-player-overlay-video-details-renderer",{class:_.XB("ytPlayerOverlayVideoDetailsRendererHost",(M.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.z("web_watch_video_details_transparent_background"),M)),"on:click":H,role:"button"},_.m("h2",{class:_.XB("ytPlayerOverlayVideoDetailsRendererTitle",(X.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return S},X))},_.m(_.v3,{text:function(){return J().title}})),_.m("div",{class:_.XB("ytPlayerOverlayVideoDetailsRendererSubtitle",
(Z.ytPlayerOverlayVideoDetailsRendererHideSubtitle=p,Z))},_.m(_.v3,{text:function(){return J().subtitle}})))},"so");var UQ={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},APp=_.d(function(p){var J=p.data;var S=_.fb(_.sS),H=_.z("web_watch_action_bar_resize_buttons"),M=_.z("web_watch_video_action_dsdvb"),X=_.z("delhi_modern_web_player_icons")&&!_.z("enable_web_delhi_icons");p=_.z("delhi_modern_web_player_disable_frosted_glass");var Z=_.z("delhi_modern_web_player_compact_video_actions_controls"),
n=_.z("web_player_quick_action_buttons_icon_only"),b=function(){var f=H&&!S(),O={};Z?O.size="S":f&&(O.size="M");n&&(O.iconPosition="icon-only");if(Object.keys(O).length!==0)return O},F={};
return _.m("yt-player-quick-action-buttons",{class:_.XB("ytPlayerQuickActionButtonsHost",(F.ytPlayerQuickActionButtonsHostCompactControls=function(){return!S()||Z},F.ytPlayerQuickActionButtonsHostDisableBackdropFilter=p,F))},_.m(_.dY,{each:function(){var f=J();
if(X){f=JSON.parse(JSON.stringify(f));for(var O=_.K(f),A=O.next();!A.done;A=O.next()){var P=A.value,W=void 0;A=_.e((W=_.e(P,_.kI))==null?void 0:W.toggleButtonViewModel,_.f5);var y=void 0;W=_.e((y=_.e(P,_.Nk))==null?void 0:y.toggleButtonViewModel,_.f5);y=_.e(P,_.mO);P=_.e(P,_.f5);if(A)W=_.e(A.defaultButtonViewModel,_.mO),A=_.e(A.toggledButtonViewModel,_.mO),W&&W.iconName&&(W.iconName=UQ[W.iconName]),A&&A.iconName&&(A.iconName=UQ[A.iconName]);else if(W)A=_.e(W.defaultButtonViewModel,_.mO),W=_.e(W.toggledButtonViewModel,
_.mO),A&&A.iconName&&(A.iconName=UQ[A.iconName]),W&&W.iconName&&(W.iconName=UQ[W.iconName]);else if(y)y.iconName&&(y.iconName=UQ[y.iconName]);else if(P){A=_.e(P.defaultButtonViewModel,_.mO);W=_.e(P.toggledButtonViewModel,_.mO);P=void 0;if((P=A)==null?0:P.iconName)A.iconName=UQ[A.iconName];A=void 0;if((A=W)==null?0:A.iconName)W.iconName=UQ[W.iconName]}}}M&&(f=R2q(f));return f}},function(f){return _.m(_.AH,{data:function(){return f}},{buttonViewModel:function(O){return _.m(_.D0,{data:O.data,
buttonOverrides:b})},
likeButtonViewModel:function(O){return _.m(_.nB,{data:O.data,buttonShapeOverrideables:b})},
dislikeButtonViewModel:function(O){return _.m(_.Zh,{data:O.data,buttonShapeOverrideables:b})},
toggleButtonViewModel:function(O){return _.m(_.LD,{data:O.data,buttonShapeOverrides:b})}})}))},"to");_.zas=function(p){_.gp.call(this);var J=this;this.JSC$23551_watchApi=p;p=_.K(_.eQ({},void 0,"OB6c5e"));this.quickActionsViewModel=p.next().value;this.setQuickActionsViewModel=p.next().value;p=_.K(_.eQ({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=p.next().value;this.setPlayerOverlayVideoDetailsRenderer=p.next().value;p=_.K(_.eQ([],void 0,"A7tRk"));this.lockupViewModels=p.next().value;this.setLockupViewModels=p.next().value;var S=this.JSC$23551_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){P7q(J)});
this.addOnDisposeCallback(function(){J.JSC$23551_watchApi.unsubscribeByKey(S)});
P7q(this)};
_.Q(_.zas,_.gp);
var P7q=function(p){var J,S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D;_.G(function(k){if(k.nextAddress==1)return k.yield(p.JSC$23551_watchApi.playerApi,2);J=k.yieldResult;S=p.JSC$23551_watchApi.getWatchNextResponse();X=(H=S)==null?void 0:(M=H.playerOverlays)==null?void 0:M.playerOverlayRenderer;n=_.e((Z=X)==null?void 0:Z.fullscreenQuickActionsBar,_.YZq);(F=(b=p).setQuickActionsViewModel)==null||F.call(b,n||{});n&&$qa(p,J);A=(f=X)==null?void 0:(O=f.videoDetails)==null?void 0:O.playerOverlayVideoDetailsRenderer;(W=
(P=p).setPlayerOverlayVideoDetailsRenderer)==null||W.call(P,A||{});A&&oOv(p,J);if(_.z("web_player_use_external_grid_component")){var E=[],a,q,w,I,Z3=S==null?void 0:(a=S.contents)==null?void 0:(q=a.twoColumnWatchNextResults)==null?void 0:(w=q.secondaryResults)==null?void 0:(I=w.secondaryResults)==null?void 0:I.results;if(Z3)for(a=_.K(Z3),q=a.next();!q.done;q=a.next())if(q=q.value,q.lockupViewModel)E.push(q);else if(w=void 0,(w=q.itemSectionRenderer)==null?0:w.contents)for(q=_.K(q.itemSectionRenderer.contents),
w=q.next();!w.done;w=q.next())w=w.value,w.lockupViewModel&&E.push(w);y=E;(D=(t=p).setLockupViewModels)==null||D.call(t,y||[]);eaa(p,J)}_.UK(k)})},$qa=function(p,J){if(!p.quickActionButtonsContainer)if(J.setFullscreenQuickActions){p.quickActionButtonsContainer=document.createElement("div");
J.setFullscreenQuickActions(p.quickActionButtonsContainer);var S=function(){return p.quickActionsViewModel().quickActionButtons||[]},H=_.VS(p.quickActionButtonsContainer,function(){return _.m(APp,{data:S})},"uo");
p.addOnDisposeCallback(function(){J.setFullscreenQuickActions(void 0);H()})}else _.xQ(new _.TG("setFullscreenQuickActions not defined",{playerApi:Object.keys(J),
isReady:J.isReady(),appState:J.getAppState()}))},oOv=function(p,J){if(!p.playerOverlayVideoDetailsRendererContainer)if(J.setPlayerOverlayVideoDetailsRenderer){p.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
J.setPlayerOverlayVideoDetailsRenderer(p.playerOverlayVideoDetailsRendererContainer);var S=_.VS(p.playerOverlayVideoDetailsRendererContainer,function(){return _.m(OlT,{data:p.playerOverlayVideoDetailsRenderer})},"vo");
p.addOnDisposeCallback(function(){J.setPlayerOverlayVideoDetailsRenderer(void 0);S()})}else _.xQ(new _.TG("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(J),
isReady:J.isReady(),appState:J.getAppState()}))},eaa=function(p,J){if(!p.gridRendererContainer)if(J.setFullscreenGrid){p.gridRendererContainer=document.createElement("div");
J.setFullscreenGrid(p.gridRendererContainer);var S=_.VS(p.gridRendererContainer,function(){return _.m(fOp,{data:p.lockupViewModels})},"wo");
p.addOnDisposeCallback(function(){J.setFullscreenGrid(void 0);S()})}else _.xQ(new _.TG("setFullscreenGrid not defined",{playerApi:Object.keys(J),
isReady:J.isReady(),appState:J.getAppState()}))};_.sQ=function(p){_.gp.call(this);var J=this;this.JSC$23557_watchApi=p;this.JSC$23557_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;p=_.j7(_.rl(),_.sS,function(S){J.onFullscreenChanged(S)});
this.addOnDisposeCallback(p);p=_.j7(_.rl(),_.U$,function(S){J.onWatchScroll(S)});
this.addOnDisposeCallback(p);_.z("kevlar_watch_while_v2")&&(p=_.j7(_.rl(),_.Bq,function(S){WYs(J,S)}),this.addOnDisposeCallback(p));
Q5y(this);C7T(this);yPd();this.onWatchScroll(_.U$(_.rl().getState()));_.wY("START_IN_FULL_WINDOW_MODE")&&this.JSC$23557_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.Q(_.sQ,_.gp);var Q5y=function(p){p.JSC$23557_watchApi.registerActionHandler("yt-fullscreen-change-action",function(J){var S=p.JSC$23557_watchApi.isActive();J&&!S||_.rl().dispatch(_.Jk({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!J}}))});
p.addOnDisposeCallback(function(){p.JSC$23557_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},C7T=function(p){var J,S;
_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23557_watchApi.playerApi,2);J=H.yieldResult;S=function(){p.onFullerscreenEduClicked()};
J.addEventListener("onFullerscreenEduClicked",S);p.addOnDisposeCallback(function(){J.removeEventListener("onFullerscreenEduClicked",S)});
_.UK(H)})};
_.sQ.prototype.onFullscreenChanged=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return J.isFullscreen=!!_.rG(),H.yield(J.JSC$23557_watchApi.playerApi,2);S=H.yieldResult;J.JSC$23557_miniplayerActive||S.setFauxFullscreen(J.isFullscreen);if(p&&(J.JSC$23557_watchApi.focusOnPlayer(),!J.fullerscreenEduButtonShownThisPlayback)){J.fullerscreenEduButtonShownThisPlayback=!0;var M=_.$t("yt-fullerscreen-edu-button-shown-count")||0;_.ze("yt-fullerscreen-edu-button-shown-count",M+1,31536E3);
J.updateFullerscreenEduButtonSubtleModeState()}_.UK(H)})};
var WYs=function(p,J){var S;_.G(function(H){if(H.nextAddress==1)return p.JSC$23557_miniplayerActive=J,H.yield(p.JSC$23557_watchApi.playerApi,2);S=H.yieldResult;S.setFauxFullscreen(!p.JSC$23557_miniplayerActive&&p.isFullscreen);_.UK(H)})};
_.sQ.prototype.onWatchScroll=function(p){var J=this,S,H;return _.G(function(M){if(M.nextAddress==1)return _.z("external_fullscreen_with_edu")?M.yield(J.JSC$23557_watchApi.playerApi,2):M.return();S=M.yieldResult;H=p<=0;J.shouldShowFullerscreenEdu!==H&&(J.shouldShowFullerscreenEdu=H,S.updateFullerscreenEduButtonVisibility(!J.shouldShowFullerscreenEdu));_.UK(M)})};
_.sQ.prototype.onFullerscreenEduClicked=function(){this.JSC$23557_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var p=_.$t("yt-fullerscreen-edu-button-click-count")||0;_.ze("yt-fullerscreen-edu-button-click-count",p+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.sQ.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var p=this,J,S,H,M,X,Z;return _.G(function(n){if(n.nextAddress==1)return J=_.$t("yt-fullerscreen-edu-button-click-count")||0,S=_.$t("yt-fullerscreen-edu-button-shown-count")||0,H=_.PO("external_fullscreen_button_click_threshold"),M=_.PO("external_fullscreen_button_shown_threshold"),X=J>=H||S>=M,n.yield(p.JSC$23557_watchApi.playerApi,2);Z=n.yieldResult;Z.updateFullerscreenEduButtonSubtleModeState(X);_.UK(n)})};
_.sQ.prototype.disposeInternal=function(){_.gp.prototype.disposeInternal.call(this);var p=_.rG();_.z("kevlar_exit_fullscreen_leaving_watch")&&p&&_.jq(p)};
var yPd=function(){if(_.z("web_watch_add_viewport_meta_tag")){var p=document.querySelector("meta[name=viewport]"),J=document.head;J&&!p&&(p=document.createElement("meta"),p.name="viewport",p.content="width=device-width, initial-scale=1.0, viewport-fit=cover",J.appendChild(p))}};_.Uqs=function(p){_.gp.call(this);var J=this;this.JSC$23560_watchApi=p;this.jobId=0;this.pendingRequestId=void 0;var S=this.JSC$23560_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){BId(J)});
this.addOnDisposeCallback(function(){J.JSC$23560_watchApi.unsubscribeByKey(S)});
BId(this)};
_.Q(_.Uqs,_.gp);var s5a=function(p){_.wg.cancelJob(p.jobId);p.pendingRequestId=void 0},BId=function(p){s5a(p);
var J=K$d(p.JSC$23560_watchApi.getWatchNextResponse());if(J){var S=250,H,M=(H=_.e(J,_.EYq))==null?void 0:H.initialDelayMs;_.z("web_watch_updated_metadata_server_initial_delay")&&M&&(S=M);p.jobId=_.wg.addLowPriorityJob(function(){return p.fetchUpdatedMetadata(J)},S)}};
_.Uqs.prototype.fetchUpdatedMetadata=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D;return _.G(function(k){switch(k.nextAddress){case 1:J&&(H={continuation:J});if(!_.z("web_get_updated_metadata_fantasy_panel_continuation_params")){k.jumpTo(2);break}M=_.vO().resolve(_.JY);X="PAsports_fantasy";return k.yield(M.isVisible(X,!0),3);case 3:k.yieldResult&&(F=(n=(Z=M).getUpdatePanelContinuationData)==null?void 0:(b=n.call(Z,X))==null?void 0:b.updatePanelContinuationRequest)&&(H||(H={}),H.clientParams=
{panelContinuationParams:{panelContinuation:F}});case 2:f=_.vO().resolve(_.Ac);if(!f)return _.jD(Error("ep")),k.return();O={};S.pendingRequestId=O;return k.yield(_.VI(f,p,H),4);case 4:A=k.yieldResult;if(O!==S.pendingRequestId)return k.return();y=(P=A)==null?void 0:(W=P.continuation)==null?void 0:W.timedContinuationData;((t=y)==null?0:t.continuation)&&((D=y)==null?0:D.timeoutMs)&&(S.jobId=_.wg.addLowPriorityJob(function(){return S.fetchUpdatedMetadata(p,y.continuation)},y.timeoutMs));
_.UK(k)}})};
_.Uqs.prototype.disposeInternal=function(){_.gp.prototype.disposeInternal.call(this);s5a(this)};var gOD=_.d(function(p){var J=_.Kb(function(){var H=p.data().videoId;if(p.active())H=_.c9(H),_.vO().resolve(_.Ov).resolveCommand(H);else{var M=p.playerApi(),X=M.getAvailableAudioTracks(),Z,n,b=(Z=p.sourceVideoConfig().audioTracks)==null?void 0:(n=Z.find(function(F){return F.isDefaultForSource}))==null?void 0:n.id;
if(X=X.find(function(F){return F.getLanguageInfo().getId()===b}))M.setAudioTrack(X,!0),M.setCompositeParam({activeVideoId:H}),p.setActiveSourceId(H)}}),S={};
return _.m("ytw-composite-source-video-overlay",{class:_.XB("ytwCompositeSourceVideoOverlayHost",(S.ytwCompositeSourceVideoOverlayActive=p.active,S.ytwCompositeSourceVideoOverlayInteracting=p.interacting,S)),style:_.G7({left:function(){var H;return((H=p.data().topLeftCornerX)!=null?H:0)*100+"%"},
top:function(){var H;return((H=p.data().topLeftCornerY)!=null?H:0)*100+"%"},
width:function(){var H;return((H=p.data().width)!=null?H:0)*100+"%"},
height:function(){var H;return((H=p.data().height)!=null?H:0)*100+"%"}}),
"on:click":J},_.m("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"xo");var tUs=_.d(function(p){var J=_.K(_.re(function(){var Z,n=(Z=p.data().sources)==null?void 0:Z.find(function(b){return b.isActive});
if(n)return n.videoId})),S=J.next().value,H=J.next().value;
J=_.K(_.eQ(!1,void 0,"rmRJ8d"));var M=J.next().value,X=J.next().value;return _.m("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Kb(function(){X(!0)}),
"on:mouseout":_.Kb(function(){X(!1)})},_.m(_.v,{cond:function(){return p.data().sources},
then:function(Z){return _.m(_.dY,{each:Z},function(n){return _.m(gOD,{data:n,active:function(){return n.videoId===S()},
setActiveSourceId:H,interacting:M,playerApi:p.playerApi,sourceVideoConfig:function(){return ZO4(p.compositeVideoConfig(),n.videoId)}})})}}))},"yo");_.kvT=function(p){_.gp.call(this);this.JSC$23576_watchApi=p;p=_.K(_.eQ({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=p.next().value;this.setCompositeVideoOverlayRenderer=p.next().value;p=_.K(_.eQ({},void 0,"OlaJpc"));this.compositeVideoConfig=p.next().value;this.setCompositeVideoConfig=p.next().value;haq(this);DqD(this)};
_.Q(_.kvT,_.gp);var haq=function(p){var J=p.JSC$23576_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){DqD(p)});
p.addOnDisposeCallback(function(){p.JSC$23576_watchApi.unsubscribeByKey(J)})},NId=function(p){var J;
return _.G(function(S){if(S.nextAddress==1)return S.yield(p.JSC$23576_watchApi.playerApi,2);J=S.yieldResult;J.setCompositeVideoOverlayRendererComponent(p.container);_.UK(S)})},TIs=function(p){var J;
return _.G(function(S){if(S.nextAddress==1)return S.yield(p.JSC$23576_watchApi.playerApi,2);J=S.yieldResult;J.setCompositeVideoOverlayRendererComponent(void 0);_.UK(S)})},dqt=function(p){var J,S;
return _.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23576_watchApi.playerApi,2);J=H.yieldResult;p.container=document.createElement("div");S=_.VS(p.container,function(){return _.m(tUs,{data:p.compositeVideoOverlayRenderer,compositeVideoConfig:p.compositeVideoConfig,playerApi:J})},"zo");
p.addOnDisposeCallback(S);_.UK(H)})},DqD=function(p){var J,S,H,M,X,Z,n,b;
_.G(function(F){return F.nextAddress==1?(J=p.JSC$23576_watchApi.getPlayerResponse(),X=_.e((S=J)==null?void 0:(H=S.overlay)==null?void 0:(M=H.playerControlsOverlayRenderer)==null?void 0:M.compositeVideoOverlay,Rpa),b=(Z=J)==null?void 0:(n=Z.playerConfig)==null?void 0:n.compositeVideoConfig,X&&p.setCompositeVideoOverlayRenderer(X),b&&p.setCompositeVideoConfig(b),X&&b?p.container?F.jumpTo(6):F.yield(dqt(p),6):u67(p)?F.yield(TIs(p),0):F.jumpTo(0)):u67(p)?F.jumpTo(0):F.yield(NId(p),0)})},u67=function(p){var J;
return!((J=p.container)==null||!J.parentElement)};
_.kvT.prototype.disposeInternal=function(){u67(this)&&TIs(this);_.gp.prototype.disposeInternal.call(this)};_.EOs=function(p){_.gp.call(this);var J=this;this.JSC$23582_watchApi=p;var S=this.JSC$23582_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var H=J.JSC$23582_watchApi.getPlayerResponse();if(H){var M,X;if(H=_.e((M=H.endscreen)==null?void 0:(X=M.endscreenRenderer)==null?void 0:X.hideButton,_.f5)){var Z;(Z=J.setEndscreenHideButton)==null||Z.call(J,H);lOT(J)}}});
this.addOnDisposeCallback(function(){J.JSC$23582_watchApi.unsubscribeByKey(S)});
p=_.K(_.eQ({},void 0,"ER3tqb"));this.endscreenHideButton=p.next().value;this.setEndscreenHideButton=p.next().value;VU7(this);qJp(this);aO4(this)};
_.Q(_.EOs,_.gp);
var lOT=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return p.creatorEndscreenHideButtonContainer?H.return():H.yield(p.JSC$23582_watchApi.playerApi,2);J=H.yieldResult;p.creatorEndscreenHideButtonContainer=document.createElement("div");_.JZ(p.creatorEndscreenHideButtonContainer,!1);J.setCreatorEndscreenHideButton(p.creatorEndscreenHideButtonContainer);S=_.VS(p.creatorEndscreenHideButtonContainer,function(){return _.m(_.LD,{data:p.endscreenHideButton,useOutlinedIcon:!0})},"Ao");
p.addOnDisposeCallback(function(){S();var M;(M=J)==null||M.setCreatorEndscreenHideButton(void 0)});
_.UK(H)})},VU7=function(p){var J,S;
_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23582_watchApi.playerApi,2);J=H.yieldResult;S=function(){p.creatorEndscreenHideButtonContainer&&_.JZ(p.creatorEndscreenHideButtonContainer,!0)};
J.addEventListener("endscreenelementshown",S);p.addOnDisposeCallback(function(){var M;(M=J)==null||M.removeEventListener("endscreenelementshown",S)});
_.UK(H)})},qJp=function(p){var J=function(){p.creatorEndscreenHideButtonContainer&&_.JZ(p.creatorEndscreenHideButtonContainer,!1)},S=p.JSC$23582_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",J),H=p.JSC$23582_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",J);
p.addOnDisposeCallback(function(){p.JSC$23582_watchApi.unsubscribeByKey(S);p.JSC$23582_watchApi.unsubscribeByKey(H)})},aO4=function(p){p.JSC$23582_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(J){var S=_.e(J,JVq);
p.JSC$23582_watchApi.playerApi.then(function(H){H==null||H.setCreatorEndscreenVisibility(!!S.hide)})});
p.addOnDisposeCallback(function(){p.JSC$23582_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.rPs=function(p){_.gp.call(this);this.JSC$23588_watchApi=p;YJu(this)};
_.Q(_.rPs,_.gp);var YJu=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23588_watchApi.playerApi,2);J=H.yieldResult;S=function(M){_.rl().dispatch(_.Jk({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:M}}))};
J.addEventListener("onRetroModeChanged",S);p.addOnDisposeCallback(function(){J.removeEventListener("onRetroModeChanged",S)});
_.UK(H)})};var OOt=0,gt=0,P4T=0;var j5G;j5G=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.gh=function(p){_.gp.call(this);this.JSC$23593_watchApi=p;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;w9d(this)};
_.Q(_.gh,_.gp);
var w9d=function(p){var J,S,H;_.G(function(M){if(M.nextAddress==1)return M.yield(p.JSC$23593_watchApi.playerApi,2);J=M.yieldResult;if(p.isDisposed())return M.return();p.sessionStorage=_.ZQP("yt-sleep-timer");p.sessionStorage||_.xQ(new _.TG("SessionStorage for Sleep Timer is undefined."));((S=p.sessionStorage)==null?void 0:S.get("yt-sleep-timer"))==="true"&&(o_s(),(H=p.sessionStorage)==null||H.remove("yt-sleep-timer"),J.syncVolume());xqs(p,J);cPu(p,J);IOq(p,J);_.UK(M)})},xqs=function(p,J){var S=function(F){p.onSleepTimerSettingsChanged(F,
J)},H=function(F){p.onPlayerStateChange(F,J)},M=function(){p.onLoopChange(J)},X=function(){p.onCloseMiniplayer(J)},Z=function(){fkq(J,(0,_.fO)(),e2v(J),p.selectedOption==="End of video",J.getPlayerState()!==1)},n=function(){p.onSeekComplete(J)},b=function(){_.wg.cancelJob(gt);
var F=J.getCurrentTime()>=J.getDuration(),f=p.selectedOption==="End of video"||p.selectedOption==="End of playlist"&&!m1a(p.playlistId);F&&f&&LYp(p,J)};
J.addEventListener("onSleepTimerSettingsChanged",S);J.addEventListener("onLoopChange",M);J.addEventListener("onLoopRangeChange",M);J.addEventListener("onStateChange",H);J.addEventListener("onCloseMiniplayer",X);J.addEventListener("onSleepTimerFeatureAvailable",Z);J.addEventListener("SEEK_COMPLETE",n);J.addEventListener("onAdStart",b);p.addOnDisposeCallback(function(){J.removeEventListener("onSleepTimerSettingsChanged",S);J.removeEventListener("onLoopChange",M);J.removeEventListener("onLoopRangeChange",
M);J.removeEventListener("onStateChange",H);J.removeEventListener("onCloseMiniplayer",X);J.removeEventListener("onSleepTimerFeatureAvailable",Z);J.removeEventListener("SEEK_COMPLETE",n);J.removeEventListener("onAdStart",b)})},cPu=function(p,J){var S=p.JSC$23593_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var H=J.getVideoData().video_id,M,X=(M=Gxt(p.JSC$23593_watchApi))==null?void 0:M.playlistId;
p.pauseAutonavPlayback&&(J.pauseVideo(),J.syncVolume(),p.pauseAutonavPlayback=!1);if(p.selectedOption==="End of video"&&H!==p.videoId)tN(p,J);else{if(p.selectedOption==="End of playlist"){M=m1a(p.playlistId);if(X!==p.playlistId){tN(p,J);break a}M?M&&pqt(p,J):JkD(p,J)}p.videoId=H;p.playlistId=X}}});
p.addOnDisposeCallback(function(){p.JSC$23593_watchApi.unsubscribeByKey(S)})},IOq=function(p,J){var S=_.vO().resolve(_.XN),H=_.j7(S,_.sO4,function(X){X&&p.selectedOption!=="Off"&&tN(p,J)}),M=p.JSC$23593_watchApi.subscribeToActiveChanged(function(X){var Z,n;
return _.G(function(b){if(b.nextAddress==1)return b.yield(_.YE().navigationFinishPromise,2);Z=!_.Gt4();n=_.vO().resolve(_.DF).isMiniplayerActive();X||!n_d(p.selectedOption)||n||Z||tN(p,J);_.UK(b)})},!1);
S=_.j7(S,function(X){return X.entities.playlistLoopStateEntity||{}},function(X){X=X===void 0?{}:X;
var Z=bOD(p.JSC$23593_watchApi);if(Z){var n;((n=X[Z])==null?void 0:n.state)==="PLAYLIST_LOOP_STATE_ALL"&&n_d(p.selectedOption)&&tN(p,J)}});
p.addOnDisposeCallback(H);p.addOnDisposeCallback(S);p.addOnDisposeCallback(M)};
_.gh.prototype.onSleepTimerSettingsChanged=function(p,J){switch(p){case "Off":this.selectedOption!=="Off"&&tN(this,J);break;case "End of video":case "End of playlist":S4D(this,p,J);break;default:S4D(this,p,J,j5G.get(p))}};
_.gh.prototype.onLoopChange=function(p){(p.getLoopVideo()||p.getLoopRange())&&n_d(this.selectedOption)&&tN(this,p)};
_.gh.prototype.onCloseMiniplayer=function(p){n_d(this.selectedOption)&&tN(this,p)};
var S4D=function(p,J,S,H){H$s(p,S);p.selectedOption=J;p.videoId=S.getVideoData().video_id;p.playlistId="";var M;(M=p.sessionStorage)==null||M.set("yt-sleep-timer","true");p.adjustmentsCount++;fkq(S,(0,_.fO)(),e2v(S),p.selectedOption==="End of video");if(p.selectedOption==="End of video")JkD(p,S),Mx7(p,S);else if(p.selectedOption==="End of playlist"){Mx7(p,S);var X,Z;p.playlistId=(Z=(X=Gxt(p.JSC$23593_watchApi))==null?void 0:X.playlistId)!=null?Z:"";m1a(p.playlistId)||JkD(p,S)}else H&&(p.presetFadeSchedulerId=
_.oA(_.wg,function(){z2T(S,15E3)},H-15E3),p.presetPauseSchedulerId=_.oA(_.wg,function(){LYp(p,S)},H),Aq4(S,(0,_.fO)(),H))},LYp=function(p,J){if(p.JSC$23593_watchApi.isActive()){var S={dismissDialogEndpoint:{}};
var H={commandExecutorCommand:{commands:[S,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};S={buttonViewModel:{title:_.Kl("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:S}}};H={buttonViewModel:{title:_.Kl("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:H}}};var M={dialogHeaderViewModel:{headline:{content:_.Kl("SLEEP_TIMER_ENDED_TITLE")}}},
X={basicContentViewModel:{paragraphs:[{text:{content:_.Kl("SLEEP_TIMER_ENDED_TEXT")}}]}};S={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:M,content:X,footer:{panelFooterViewModel:{primaryButton:S,secondaryButton:H,shouldHideDivider:!0}}}}}}};_.vO().resolve(_.Ov).resolveCommand(S,{form:{element:p}})}else o_s();Xqp(p,!1);i$7(p,J);J.pauseVideo();_.yK.getInstance().getState()===2&&J.getPlayerState()===5&&(p.pauseAutonavPlayback=!0)},tN=function(p,J){Xqp(p,!0);
i$7(p,J);o_s()},i$7=function(p,J){H$s(p,J);
p.selectedOption="Off";p.videoId="";p.playlistId="";p.adjustmentsCount=0;var S;(S=p.sessionStorage)==null||S.remove("yt-sleep-timer");_.wg.cancelJob(OOt);J.resetSleepTimerMenuSettings()},Xqp=function(p,J){J={timer_length_adjustment_times_during_session:p.adjustmentsCount-1,
is_session_cancelled:J};switch(p.selectedOption){case "Off":J.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":J.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":J.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:J.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",J.option_duration_in_minutes=j5G.get(p.selectedOption)/6E4}_.YQ("sleepTimerSessionFinishEvent",J)};
_.gh.prototype.onPlayerStateChange=function(p,J){p===1?fkq(J,(0,_.fO)(),e2v(J),this.selectedOption==="End of video"):p===0?(_.wg.cancelJob(gt),J.setVideoTimeLeft(v_4(0,0))):p===2&&_.wg.cancelJob(gt);this.selectedOption==="End of video"?p===0?LYp(this,J):p===2&&$1D(J):this.selectedOption!=="End of playlist"||m1a(this.playlistId)||(p===0?LYp(this,J):p===2&&$1D(J))};
_.gh.prototype.onSeekComplete=function(p){p.getPlayerState()===2&&fkq(p,(0,_.fO)(),e2v(p),this.selectedOption==="End of video",!0)};
_.gh.prototype.onCueRangeEnter=function(p,J){p==="sleep-timer-fade-audio"&&z2T(J,(J.getDuration()-J.getProgressState().current)*1E3)};
_.gh.prototype.onCueRangeExit=function(p,J){p==="sleep-timer-fade-audio"&&J.getPlayerState()!==0&&$1D(J,!0)};
var JkD=function(p,J){J.addCueRange("sleep-timer-fade-audio",J.getDuration()-15,J.getDuration());J.addEventListener("onCueRangeEnter",function(S){p.onCueRangeEnter(S,J)});
J.addEventListener("onCueRangeExit",function(S){p.onCueRangeExit(S,J)})},pqt=function(p,J){J.removeCueRange("sleep-timer-fade-audio");
J.removeEventListener("onCueRangeEnter",function(S){p.onCueRangeEnter(S,J)});
J.removeEventListener("onCueRangeExit",function(S){p.onCueRangeExit(S,J)})},H$s=function(p,J){n_d(p.selectedOption)?pqt(p,J):(_.wg.cancelJob(p.presetPauseSchedulerId),_.wg.cancelJob(p.presetFadeSchedulerId),p.presetPauseSchedulerId=0,p.presetFadeSchedulerId=0);
$1D(J,!0)},Mx7=function(p,J){J.setLoop(!1);
J.setLoopVideo(!1);J.setLoopRange(null);(p=bOD(p.JSC$23593_watchApi))&&_.vO().resolve(_.XN).dispatch(_.P$("playlistLoopStateEntity",p,{key:p,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Gr4=function(p){_.gp.call(this);var J=this;this.JSC$23596_watchApi=p;_.z("web_watch_force_start_in_theater_mode")&&R0G(this,!0,!1);Kgv(this);Z$s(this);nZs(this);var S=this.JSC$23596_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.PO("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.tl.get("wide",void 0)==="1"&&_.hl("wide","1",_.PO("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){J.JSC$23596_watchApi.unsubscribeByKey(S)});
p=p.getRoot();if(p.is==="ytd-watch-flexy"||p.is==="ytd-watch-grid")p.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.tBy();_.z("web_watch_log_theater_mode_cookie_state")&&_.tl.get("wide","0")==="1"&&_.Qz3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.Q(_.Gr4,_.gp);var Kgv=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23596_watchApi.playerApi,2);J=H.yieldResult;S=function(M){R0G(p,!!M)};
J.addEventListener("SIZE_CLICKED",S);p.addOnDisposeCallback(function(){J.removeEventListener("SIZE_CLICKED",S)});
_.UK(H)})},Z$s=function(p){p.JSC$23596_watchApi.registerActionHandler("yt-toggle-theater-mode",function(J,S){R0G(p,J,S===void 0?!0:S)});
p.addOnDisposeCallback(function(){p.JSC$23596_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Gr4.prototype.getState=function(){return _.US(_.rl().getState())};
var R0G=function(p,J,S){S=S===void 0?!0:S;var H,M,X,Z=_.z("enable_player_resize_transition")&&!!p.JSC$23596_watchApi.getWatchNextResponse()&&!((H=p.JSC$23596_watchApi.getWatchNextResponse())==null?0:(M=H.contents)==null?0:(X=M.twoColumnWatchNextResults)==null?0:X.conversationBar);_.Tor(function(){_.rl().dispatch(_.Jk({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:J}}));_.z("theater_mode_scroll_to_top_killswitch")||p.JSC$23596_watchApi.scrollWatchTo(0,!1);_.rG()&&_.z("external_fullscreen")&&_.jq(document.documentElement);
nZs(p);S&&_.hl("wide",J?"1":"0",_.PO("theater_mode_cookie_max_age_seconds",-1));_.IV(p.JSC$23596_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);p.JSC$23596_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:J});J&&_.tBy()},{shouldWrap:Z})},nZs=function(p){var J;
_.G(function(S){if(S.nextAddress==1)return S.yield(p.JSC$23596_watchApi.playerApi,2);J=S.yieldResult;J.setSizeStyle(!0,p.getState());_.UK(S)})};var Fgu=function(p){_.gp.call(this);var J=this;this.playerApi=p;this.timeToPanelSyncKeyMap={};var S;if(p==null?0:(S=p.isReady)==null?0:S.call(p)){S=_.j7(_.vO().resolve(_.XN),function(M){return M.entities.timedMarkersListSyncEntity||{}},function(M,X){M=M===void 0?{}:M;
X=X===void 0?{}:X;for(var Z=_.K(Object.keys(X)),n=Z.next();!n.done;n=Z.next())n=n.value,M[n]!==X[n]&&b$D(J,X[n]);X=_.K(Object.keys(M));for(Z=X.next();!Z.done;Z=X.next())Z=Z.value,n=M[Z],J.timeToPanelSyncKeyMap[Z]&&mwy(J,n)});
this.addOnDisposeCallback(S);var H=function(M){J.onCueRangeEnter(M)};
p.addEventListener("onCueRangeEnter",H);this.addOnDisposeCallback(function(){var M;(M=p.removeEventListener)==null||M.call(p,"onCueRangeEnter",H)})}};
_.Q(Fgu,_.gp);
var mwy=function(p,J){var S,H;if((S=p.playerApi)==null?0:(H=S.isReady)==null?0:H.call(S)){var M;if((S=J==null?void 0:(M=J.timedListData)==null?void 0:M.sections)&&J!=null&&J.key)for(M=_.K(S),S=M.next();!S.done;S=M.next())if(S=S.value,S.timedSyncDataList&&S.sectionId)for(H=0;H<S.timedSyncDataList.length;H++){var X=S.timedSyncDataList[H];X.syncItemId&&p.playerApi.addCueRange(S.sectionId+"_"+J.key+"_"+X.syncItemId,Number(X.videoTimeMs)/1E3,H===S.timedSyncDataList.length-1?0x8000000000000:Number(S.timedSyncDataList[H+
1].videoTimeMs)/1E3)}}},b$D=function(p,J){var S,H;
if((S=p.playerApi)==null?0:(H=S.isReady)==null?0:H.call(S)){var M;if((S=J==null?void 0:(M=J.timedListData)==null?void 0:M.sections)&&J!=null&&J.key)for(M=_.K(S),S=M.next();!S.done;S=M.next())if(S=S.value,S.timedSyncDataList&&S.sectionId){H=_.K(S.timedSyncDataList);for(var X=H.next();!X.done;X=H.next())X=X.value,X.syncItemId&&p.playerApi.removeCueRange(S.sectionId+"_"+J.key+"_"+X.syncItemId)}}};
Fgu.prototype.onCueRangeEnter=function(p){for(var J=_.K(Object.keys(this.timeToPanelSyncKeyMap)),S=J.next();!S.done;S=J.next()){S=S.value;var H=_.K(p.split("_"+S+"_")),M=H.next().value;H=H.next().value;if(M&&H){p=_.vO().resolve(_.XN);J=this.timeToPanelSyncKeyMap[S];var X=_.Ffv(p.getState(),J);S=vZT(S,M,H);if(S===-1)break;S={activeSyncId:H,activeItemIndex:S,activeSectionInfo:{sectionIdentifier:M}};X?p.dispatch(_.BY("markersEngagementPanelSyncEntity",J,S)):p.dispatch(_.P$("markersEngagementPanelSyncEntity",
J,Object.assign({},{key:J},S)));break}}};
var vZT=function(p,J,S){var H=_.vO().resolve(_.XN),M,X;p=(M=Qya(H.getState(),p))==null?void 0:(X=M.timedListData)==null?void 0:X.sections;if(!p)return-1;M=0;X=_.K(p);for(p=X.next();!p.done;p=X.next()){p=p.value;H=p.timedSyncDataList||[];if(p.sectionId===J)return J=H.findIndex(function(Z){return Z.syncItemId===S}),J===-1?J:M+J;
M+=H.length}return-1};_.AkT=function(p){_.gp.call(this);var J=this;this.JSC$23609_watchApi=p;this.unresolvedCommands=[];this.JSC$23609_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(S){fYs(J,S)});
this.addOnDisposeCallback(function(){J.JSC$23609_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
O$G(this)};
_.Q(_.AkT,_.gp);var O$G=function(p){var J;_.G(function(S){if(S.nextAddress==1)return S.yield(p.JSC$23609_watchApi.playerApi,2);J=S.yieldResult;if(p.isDisposed())return S.return();p.timedSyncObserver=new Fgu(J);p.unresolvedCommands.length&&(p.unresolvedCommands.forEach(function(H){return fYs(p,H)}),p.unresolvedCommands=[]);
_.$c(p,p.timedSyncObserver);_.UK(S)})},fYs=function(p,J){if(p.timedSyncObserver){var S=_.e(J,HHu);
if(S&&S.timedSyncEntityKey&&S.panelSyncEntityKey){p=p.timedSyncObserver;J=S.timedSyncEntityKey;var H=S.panelSyncEntityKey;S=!!S.isEnabled;S=S===void 0?!0:S;var M=_.vO().resolve(_.XN);M=Qya(M.getState(),J);S?p.timeToPanelSyncKeyMap[J]||(p.timeToPanelSyncKeyMap[J]=H,mwy(p,M)):(delete p.timeToPanelSyncKeyMap[J],b$D(p,M))}}else p.unresolvedCommands.push(J)};var Pos=_.d(function(p){var J=p.data,S=p.maybeLogSmartSkipClientData,H=null,M=null,X=_.z("web_enable_auto_focus_for_timely_action_button"),Z=function(){H=document.activeElement},n=function(){J().smartSkipMetadata&&(H=document.activeElement,_.uMp(function(){return M}))},b=function(f){if(J().smartSkipMetadata&&(!f||f.key!=="Enter")){H&&H.isConnected&&(_.uMp(function(){return H}),H=null);
var O;(O=M)==null||O.blur()}};
p=_.Kb(function(){S==null||S(!0,J());return!1});
var F=_.Y2(_.sl(function(){return J().rendererContext},{onTap:function(f,O){O({disableClickTracking:!0})}}),_.Aw({visibilityCallback:function(f){if(X)f?M&&J().smartSkipMetadata&&(n(),document.addEventListener("focusin",Z)):(document.removeEventListener("focusin",Z),b());
else if(f){f=_.B$(J().rendererContext);var O=Number(J().maxVisibleDurationMilliseconds),A,P=(A=_.e(J().rendererContext,_.PY))==null?void 0:A.label;f&&O&&P&&(A={label:P,command:f,durationMs:O},_.vO().resolve(_.gP).enqueue(A))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.qz(function(){if(X){var f;if((M=(f=F.value)==null?void 0:f.querySelector("button"))&&J().smartSkipMetadata){var O;(O=F.value)==null||O.addEventListener("keydown",b)}}});
_.VY(function(){X&&(M&&J().smartSkipMetadata&&M.removeEventListener("keydown",b),document.removeEventListener("focusin",Z),b())});
return _.m("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:F,"on:click":p},_.m(_.AH,{data:function(){return J().content}},{buttonViewModel:_.D0}))},"Co");var z0G=_.d(function(p){var J=p.data,S=p.playerApi,H=_.vO().resolve(_.sry);p=_.K(_.re(function(){J()}));
var M=p.next().value,X=p.next().value,Z=function(){return C4q(J(),M())},n=function(F,f){var O,A,P=(O=_.e(f==null?void 0:f.rendererContext,_.Fj))==null?void 0:(A=O.loggingDirectives)==null?void 0:A.trackingParams;
if((f=f==null?void 0:f.smartSkipMetadata)&&f.loggingData&&(A=f.loggingData,f=A.algorithmId,O=A.startMilliseconds,A=A.endMilliseconds,f&&O!==void 0&&A!==void 0)){var W,y;F={smartSkipData:Object.assign({},{versionName:f,startMediaTimeMs:O,endMediaTimeMs:A},F&&{userInteractionMediaTimeMs:(Math.floor(((W=_.IY())==null?void 0:(y=W.getPlayer())==null?void 0:y.getCurrentTime())||0)*1E3).toString()})};W=_.C1();var t;P&&(t=_.Az(P));W&&t&&_.qq(W,t,F)}},b=function(F,f){var O=C4q(J(),F);
if(O){var A=_.e(O,Q67),P;if(P=f)P=S(),O=_.e(O,Q67),P=O!=null&&O.smartSkipMetadata?!(P==null?0:P.isSameMarkerTypeVisible((O==null?void 0:O.smartSkipMetadata.markerKey)||"")):!0;if(P){var W,y;(A==null?0:(W=A.smartSkipMetadata)==null?0:(y=W.loggingData)==null?0:y.isCounterfactual)||(n(!1,A),X(F))}else f||M()!==F||X(void 0)}};
_.lf(function(){var F=J().timelyActions;if(F){F=_.K(F);for(var f=F.next();!f.done;f=F.next()){f=_.e(f.value,Q67);var O=void 0;(O=f)!=null&&O.cueRangeId&&H.timelyActionsMap.set(f.cueRangeId,b)}_.VY(function(){H.timelyActionsMap.clear()})}},"l2RtC");
return _.m("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.m(_.AH,{data:Z},{timelyActionViewModel:function(F){return _.m(Pos,{data:F.data,maybeLogSmartSkipClientData:function(){n(!0,_.e(Z(),Q67))}})}}))},"Eo");_.oZs=function(p){_.gp.call(this);this.JSC$23621_watchApi=p;p=_.K(_.eQ({},void 0,"UN7k5e"));this.timelyActionsOverlay=p.next().value;this.setTimelyActionsOverlay=p.next().value;$wd(this)};
_.Q(_.oZs,_.gp);var $wd=function(p){var J,S,H,M;_.G(function(X){if(X.nextAddress==1)return e0D(p),Wgp(p),p.timelyActionsContainer=document.createElement("div"),X.yield(p.JSC$23621_watchApi.playerApi,2);J=X.yieldResult;(H=(S=J).insertTimelyActionUi)==null||H.call(S,p.timelyActionsContainer);M=_.VS(p.timelyActionsContainer,function(){return _.m(z0G,{data:p.timelyActionsOverlay,playerApi:J})},"Fo");
p.addOnDisposeCallback(M);_.UK(X)})},Wgp=function(p){var J=p.JSC$23621_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){e0D(p)});
p.addOnDisposeCallback(function(){p.JSC$23621_watchApi.unsubscribeByKey(J)})},e0D=function(p){var J=p.JSC$23621_watchApi.getWatchNextResponse();
if(J){var S,H;if(J=_.e((S=J.playerOverlays)==null?void 0:(H=S.playerOverlayRenderer)==null?void 0:H.timelyActionsOverlayViewModel,MDd)){var M;(M=p.setTimelyActionsOverlay)==null||M.call(p,J)}}};_.Cos=function(p){_.gp.call(this);this.JSC$23625_watchApi=p;QRT(this)};
_.Q(_.Cos,_.gp);var QRT=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23625_watchApi.playerApi,2);J=H.yieldResult;S=function(M){_.R4.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.e(M,_.cZ7)},popupType:"TOAST"}})};
J.addEventListener("onYtShowToast",S);p.addOnDisposeCallback(function(){J.removeEventListener("onYtShowToast",S)});
_.UK(H)})};var yky,sRa,krG,Bl4,Uwu,Dwa,txd,h0G,Nls,dwt;yky=!1;_.gZy=function(p){_.gp.call(this);this.JSC$23628_watchApi=p;this.fullscreen=this.theater=!1;Bl4(this);Uwu(this);sRa(this)};
_.Q(_.gZy,_.gp);sRa=function(p){var J,S,H;_.G(function(M){if(M.nextAddress==1)return M.yield(p.JSC$23628_watchApi.playerApi,2);J=M.yieldResult;if(p.isDisposed())return M.return();S=p.JSC$23628_watchApi.getElement("CINEMATICS");if(!S)return M.return();p.JSC$23628_cinematicController=new _.AR(S,J);_.$c(p,p.JSC$23628_cinematicController);_.fJa(p.JSC$23628_cinematicController);txd(p,_.cgX());H=p.JSC$23628_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(X){h0G(p,X)});
p.addOnDisposeCallback(function(){p.JSC$23628_watchApi.unsubscribeByKey(H)});
Dwa(p);h0G(p,p.JSC$23628_cinematicController.isAllowed());krG(p);Nls(p);_.UK(M)})};
krG=function(p){p.fullscreen=_.sS(_.rl().getState());p.theater=_.US(_.rl().getState());_.Tls(p,p.fullscreen,p.theater);var J=_.j7(_.rl(),_.sS,function(H){p.fullscreen=H;_.Tls(p,p.fullscreen,p.theater)}),S=_.j7(_.rl(),_.US,function(H){p.theater=H;
_.Tls(p,p.fullscreen,p.theater)});
p.addOnDisposeCallback(J);p.addOnDisposeCallback(S)};
Bl4=function(p){var J=p.JSC$23628_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Dwa(p)});
p.addOnDisposeCallback(function(){p.JSC$23628_watchApi.unsubscribeByKey(J)})};
Uwu=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23628_watchApi.playerApi,2);J=H.yieldResult;S=function(M){txd(p,M)};
J.addEventListener("cinematicSettingsToggleChange",S);p.addOnDisposeCallback(function(){J.removeEventListener("cinematicSettingsToggleChange",S)});
_.UK(H)})};
Dwa=function(p){var J=p.JSC$23628_watchApi.getWatchNextResponse(),S;J=_.e(J==null?void 0:(S=J.pageVisualEffects)==null?void 0:S[0],_.Lx);var H;(H=p.JSC$23628_cinematicController)==null||_.A4v(H,J)};
txd=function(p,J){var S;(S=p.JSC$23628_cinematicController)==null||_.OVv(S,J);dwt(p)};
h0G=function(p,J){var S;_.G(function(H){if(H.nextAddress==1)return _.z("kevlar_watch_cinematics_invisible")&&(J=!1),H.yield(p.JSC$23628_watchApi.playerApi,2);S=H.yieldResult;S.updateCinematicSettings(J);dwt(p);_.UK(H)})};
Nls=function(p){var J=_.Gv();if(_.z("kevlar_measure_ambient_mode_idle")&&!J.getFlag(192)&&!yky){yky=!0;var S=_.uS(_.wg,function(){_.vO().resolve(_.RXM).start(1E4)},5E3);
p.addOnDisposeCallback(function(){_.wg.cancelJob(S);_.vO().resolve(_.RXM).stop()})}};
_.Tls=function(p,J,S){p.fullscreen=J;p.theater=S;var H;(H=p.JSC$23628_cinematicController)==null||H.setFullscreen(p.fullscreen,p.theater);if(_.z("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(p.theater||p.fullscreen){var M;(M=p.JSC$23628_cinematicController)==null||_.zYs(M)}else{var X;(X=p.JSC$23628_cinematicController)==null||_.PeT(X)}};
dwt=function(p){var J;p.JSC$23628_watchApi.getRoot().toggleCinematicsActive(!((J=p.JSC$23628_cinematicController)==null||!J.isEnabled()))};_.q4y=function(p){_.gp.call(this);var J=this;this.JSC$23631_watchApi=p;this.commentsReady=!1;this.setCommentsJobId=0;p=_.j7(_.rl(),_.U$,function(){uDv(J)});
this.addOnDisposeCallback(p);var S=this.JSC$23631_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){lYs(J)}),H=this.JSC$23631_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){lYs(J)});
this.addOnDisposeCallback(function(){J.JSC$23631_watchApi.unsubscribeByKey(S);J.JSC$23631_watchApi.unsubscribeByKey(H)});
var M=function(){_.z("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Vxu(J,"false")};
this.JSC$23631_watchApi.getRoot().addEventListener("yt-page-data-will-update",M);this.addOnDisposeCallback(function(){J.JSC$23631_watchApi.getRoot().removeEventListener("yt-page-data-will-update",M)});
lYs(this)};
_.Q(_.q4y,_.gp);var lYs=function(p){p.commentsReady=!1;_.wg.cancelJob(p.setCommentsJobId);p.setCommentsJobId=_.uS(_.wg,function(){uDv(p)},1E3)},uDv=function(p){if(!p.commentsReady){_.Qf("cmi");
_.wg.cancelJob(p.setCommentsJobId);var J,S,H,M,X=(J=p.JSC$23631_watchApi.getWatchNextResponse())==null?void 0:(S=J.contents)==null?void 0:(H=S.twoColumnWatchNextResults)==null?void 0:(M=H.results)==null?void 0:M.results.contents;J=void 0;if(X&&X.length)for(X=_.K(X),S=X.next();!S.done;S=X.next())if(S=S.value,M=H=void 0,((H=S)==null?void 0:(M=H.itemSectionRenderer)==null?void 0:M.sectionIdentifier)==="comment-item-section"){_.z("web_watch_provide_undefined_comments")?J=S.itemSectionRenderer:p.JSC$23631_watchApi.provideRenderingData("COMMENTS",
S.itemSectionRenderer);Vxu(p,"true");break}_.z("web_watch_provide_undefined_comments")&&p.JSC$23631_watchApi.provideRenderingData("COMMENTS",J);p.commentsReady=!0;p.JSC$23631_watchApi.dispatchEvent("yt-watch-comments-ready")}},Vxu=function(p,J){var S;
(S=p.JSC$23631_watchApi.getElement("COMMENTS"))==null||S.setAttribute("canScheduleJobs",J)};_.jRG=function(p){_.gp.call(this);var J=this;this.JSC$23634_watchApi=p;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.z("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.z("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.z("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.PO("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)aYv(this);
else{var S=this.JSC$23634_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){EZd(J);hN(J)}),H=this.JSC$23634_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Db(J);
hN(J)});
this.JSC$23634_watchApi.getRoot().is==="ytd-watch-grid"&&_.z("swatcheroo_pbs_load_grid")&&(Y4D(this),rkd(this));this.addOnDisposeCallback(function(){J.JSC$23634_watchApi.unsubscribeByKey(S);J.JSC$23634_watchApi.unsubscribeByKey(H);_.wg.cancelJob(J.provideRichGridJobId)});
EZd(this);Db(this)}};
_.Q(_.jRG,_.gp);var aYv=function(p){var J=p.JSC$23634_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){p.providePlayerJobId=_.bb(_.wg,function(){EZd(p);hN(p)},p.provideAllDataDelayMs)}),S=p.JSC$23634_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){p.provideWatchNextJobId=_.bb(_.wg,function(){Db(p);
hN(p)},p.provideAllDataDelayMs)}),H=p.JSC$23634_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){p.provideWatchNextJobId=_.bb(_.wg,function(){Db(p);
hN(p)},p.provideAllDataDelayMs)});
p.JSC$23634_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.uS(_.wg,function(){EZd(p);Db(p);hN(p)},100)});
p.JSC$23634_watchApi.addPageDisposeJob(function(){_.wg.cancelJob(p.provideWatchNextJobId);_.wg.cancelJob(p.providePlayerJobId)});
p.addOnDisposeCallback(function(){p.JSC$23634_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");p.JSC$23634_watchApi.unsubscribeByKey(J);p.JSC$23634_watchApi.unsubscribeByKey(S);p.JSC$23634_watchApi.unsubscribeByKey(H);_.wg.cancelJob(p.providePlayerJobId);_.wg.cancelJob(p.provideWatchNextJobId)});
EZd(p);Db(p)},EZd=function(p){var J=p.JSC$23634_watchApi.getPlayerResponse(),S,H,M=(H=J==null?void 0:(S=J.playabilityStatus)==null?void 0:S.messageRenderers)!=null?H:[],X,Z;
J=(Z=J==null?void 0:(X=J.playabilityStatus)==null?void 0:X.messages)!=null?Z:[];X=_.K(J);for(Z=X.next();!Z.done;Z=X.next())M.push({alertRenderer:{text:_.aR(Z.value),type:"WARNING"}});p.JSC$23634_watchApi.provideRenderingData("ALERTS",M)},Db=function(p){var J=[],S,H,M,X=p.JSC$23634_watchApi.getWatchNextResponse(),Z,n,b,F,f=X==null?void 0:(Z=X.contents)==null?void 0:(n=Z.twoColumnWatchNextResults)==null?void 0:(b=n.results)==null?void 0:(F=b.results)==null?void 0:F.contents;
if(f)for(Z=_.K(f),n=Z.next();!n.done;n=Z.next())if(n=n.value,n.videoPrimaryInfoRenderer)var O=n;else if(n.videoSecondaryInfoRenderer){var A=n;F=b=void 0;n=Object.assign({},(b=n.videoSecondaryInfoRenderer)==null?void 0:(F=b.metadataRowContainer)==null?void 0:F.metadataRowContainerRenderer);if(n.rows&&n.collapsedItemCount!==void 0){n.rows=n.rows.slice(0,n.collapsedItemCount).filter(function(Ld){return!!Ld.richMetadataRowRenderer});
n.collapsedItemCount=n.rows.length;var P={metadataRowContainerRenderer:n}}}else if(n.merchandiseShelfRenderer)var W=n;else if(n.ticketShelfRenderer)var y=n;else if(n.expandableMetadataRenderer)var t=n;else if(n.itemSectionRenderer)if(b=n.itemSectionRenderer.contents,F=void 0,p.directlyProvideComments&&((F=n.itemSectionRenderer)==null?void 0:F.sectionIdentifier)==="comment-item-section")_.Qf("cmi"),p.JSC$23634_watchApi.provideRenderingData("COMMENTS",n.itemSectionRenderer);else if(b)for(n=_.K(b),b=
n.next();!b.done;b=n.next())if(b=b.value,b.commentsEntryPointHeaderRenderer)var D=b;else if(b.clarificationRenderer||b.infoPanelContainerRenderer||b.infoPanelContentRenderer||b.emergencyOneboxRenderer){J.push(b);var k=k||!!A}else b.limitedStateMessageRenderer?H=b:b.videoMetadataCarouselViewModel&&(M=b);if(_.z("web_watch_merch_in_sd_when_ticket_shelf_present")&&W&&y){var E=W;W=void 0}if(p.provideWatchNextSecondaryResults){var a,q,w;p.JSC$23634_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
X==null?void 0:(a=X.contents)==null?void 0:(q=a.twoColumnWatchNextResults)==null?void 0:(w=q.secondaryResults)==null?void 0:w.secondaryResults)}if(p.JSC$23634_watchApi.getRoot().is==="ytd-watch-grid"){var I,Z3;p.JSC$23634_watchApi.provideRenderingData("LIVE_CHAT",X==null?void 0:(I=X.contents)==null?void 0:(Z3=I.twoColumnWatchNextResults)==null?void 0:Z3.conversationBar)}var vg,yX,Pg,ov;(a=X==null?void 0:(vg=X.contents)==null?void 0:(yX=vg.twoColumnWatchNextResults)==null?void 0:(Pg=yX.secondaryResults)==
null?void 0:(ov=Pg.secondaryResults)==null?void 0:ov.offerModule)&&(a.donationShelfRenderer||a.donationUnavailableRenderer)&&p.JSC$23634_watchApi.getRoot().is!=="ytd-watch-grid"&&(S=a);vg=p.JSC$23634_watchApi.getPlayerResponse();if(!vg||!_.ddi(vg.playabilityStatus,X==null?void 0:X.playerOverlays)){var NW;if(X==null?0:(NW=X.contents)==null?0:NW.singleColumnWatchNextResults){var TW,Ys;var Go=X==null?void 0:(TW=X.contents.singleColumnWatchNextResults.results)==null?void 0:(Ys=TW.results)==null?void 0:
Ys.contents}else{var $U,LL,fd,Qv;NW=!!(f==null?0:($U=f[0])==null?0:(LL=$U.itemSectionRenderer)==null?0:(fd=LL.contents)==null?0:(Qv=fd[0])==null?0:Qv.backgroundPromoRenderer);var t8,Wp;$U=!!(X==null?0:(t8=X.contents)==null?0:(Wp=t8.twoColumnWatchNextResults)==null?0:Wp.secondaryResults);NW&&!$U&&(Go=f)}}f=J[0];t8=J[1];k&&J.length===1&&(t8=f,f=void 0);p.JSC$23634_watchApi.provideRenderingData("PRIMARY_INFO",O);p.JSC$23634_watchApi.provideRenderingData("SECONDARY_INFO",A);p.JSC$23634_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
D);p.JSC$23634_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",M);p.JSC$23634_watchApi.provideRenderingData("CLARIFICATION",f);p.JSC$23634_watchApi.provideRenderingData("RICH_METADATA",P);p.JSC$23634_watchApi.provideRenderingData("MERCH_SHELF",W);_.z("web_watch_merch_in_sd_when_ticket_shelf_present")&&p.JSC$23634_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",E);p.JSC$23634_watchApi.provideRenderingData("TICKET_SHELF",y);p.JSC$23634_watchApi.provideRenderingData("LIMITED_STATE",H);p.JSC$23634_watchApi.getRoot().is!==
"ytd-watch-grid"&&p.JSC$23634_watchApi.provideRenderingData("DONATION_SHELF",S);p.JSC$23634_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Go);p.JSC$23634_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",t8);p.JSC$23634_watchApi.provideRenderingData("EXPANDABLE_METADATA",t);if(p.swatcherooProvideAllDataOnScheduledJob){var ON,KL,HE,o8,xU,eL;O=X==null?void 0:(ON=X.contents)==null?void 0:(KL=ON.twoColumnWatchNextResults)==null?void 0:(HE=KL.secondaryResults)==null?void 0:(o8=HE.secondaryResults)==
null?void 0:(xU=o8.results)==null?void 0:(eL=xU[0])==null?void 0:eL.richGridRenderer;p.JSC$23634_watchApi.provideRenderingData("RICH_GRID_RENDERER",O)}};
_.jRG.prototype.hasCompanionAds=function(p){var J,S;return(S=p==null?void 0:(J=p.adPlacements)==null?void 0:J.some(function(H){var M,X,Z,n;return(H==null?void 0:(M=H.adPlacementRenderer)==null?void 0:(X=M.renderer)==null?void 0:X.actionCompanionAdRenderer)||(H==null?void 0:(Z=H.adPlacementRenderer)==null?void 0:(n=Z.renderer)==null?void 0:n.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?S:!1};
var hN=function(p){if(!_.z("swaterdoo_ps_wn_handle_ks")){p.swatcherooProvideAllDataOnScheduledJob||rkd(p,3E3);var J=p.JSC$23634_watchApi.getPlayerResponse(),S,H,M,X,Z,n=(S=p.JSC$23634_watchApi.getWatchNextResponse())==null?void 0:(H=S.contents)==null?void 0:(M=H.twoColumnWatchNextResults)==null?void 0:(X=M.secondaryResults)==null?void 0:(Z=X.secondaryResults)==null?void 0:Z.offerModule;J=p.hasCompanionAds(J);var b,F;S=(n==null?void 0:(b=n.tvfilmOfferModuleRenderer)==null?void 0:b.clientShouldSuppressIfCompanionAdDisplayed)||
(n==null?void 0:(F=n.unlimitedOfferModuleRenderer)==null?void 0:F.suppressIfCompanionAds);b=J&&S;p.JSC$23634_watchApi.getRoot().is==="ytd-watch-grid"&&p.JSC$23634_watchApi.provideRenderingData("OFFER_MODULE",b?void 0:n)}},rkd=function(p,J){_.z("swatcheroo_pbs_load_grid")&&(p.provideRichGridJobId&&_.wg.cancelJob(p.provideRichGridJobId),p.provideRichGridJobId=_.bb(_.wg,function(){p.provideRichGridJobId=0;
var S,H,M,X,Z,n,b,F=(S=p.JSC$23634_watchApi.getWatchNextResponse())==null?void 0:(H=S.contents)==null?void 0:(M=H.twoColumnWatchNextResults)==null?void 0:(X=M.secondaryResults)==null?void 0:(Z=X.secondaryResults)==null?void 0:(n=Z.results)==null?void 0:(b=n[0])==null?void 0:b.richGridRenderer;F&&p.JSC$23634_watchApi.provideRenderingData("RICH_GRID_RENDERER",F)},J))},Y4D=function(p){var J,S;
_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23634_watchApi.playerApi,2);J=H.yieldResult;S=function(){p.onPlaybackStart()};
J.addEventListener("onPlaybackStartExternal",S);p.addOnDisposeCallback(function(){J.removeEventListener("onPlaybackStartExternal",S)});
_.UK(H)})};
_.jRG.prototype.onPlaybackStart=function(){rkd(this)};_.xwp=function(p){_.gp.call(this);var J=this;this.JSC$23646_watchApi=p;p.playerApi.then(function(S){J.player=S});
this.gestures=new _.ZH(this.JSC$23646_watchApi.getRoot(),p.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.UVD(_.rl().getState())&&_.U$(_.rl().getState())<=0)if(_.sS(_.rl().getState())){var S;(S=J.player)==null||S.toggleFullscreen()}else _.IV(J.JSC$23646_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
wqv(this)};
_.Q(_.xwp,_.gp);var wqv=function(p){var J=_.j7(_.rl(),_.sS,function(S){p.onFullscreenChanged(S)});
p.addOnDisposeCallback(J);J=_.j7(_.rl(),_.U$,function(S){p.gestures&&(S>0?p.gestures.detach():p.gestures.attach())});
p.addOnDisposeCallback(J)};
_.xwp.prototype.onFullscreenChanged=function(p){this.gestures&&this.gestures.update(p)};var ckd;ckd=["PLAYLIST"];_.Lgq=function(p){_.gp.call(this);var J=this;this.JSC$23649_watchApi=p;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(p.subscribeToActiveChanged(function(S){J.onActiveChanged(S)}));
IYs(this)};
_.Q(_.Lgq,_.gp);var ptp=function(p){p.pageDisposalDataTypes=Object.values(mqp).filter(function(J){return!ckd.includes(J)})},IYs=function(p){if(_.z("swatcheroo_enable_ghost_cards")||_.z("web_watch_clear_data_on_page_dispose"))ptp(p),p.JSC$23649_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.wg.cancelJob(p.clearDataJobId);
p.clearDataJobId=0}),p.runPageDisposeJob=function(){var J=_.vO().resolve(_.xz).getDestinationPageType()==="watch";
p.clearDataJobId=_.bb(_.wg,p.runClearDataJob,J?0:_.PO("web_watch_delay_page_dispose_ms",1E4))},p.runClearDataJob=function(){Jcu(p)},p.runOnYtNavigateAwayFinish=function(){p.clearDataJobId&&(_.wg.cancelJob(p.clearDataJobId),p.clearDataJobId=0,Jcu(p))},document.addEventListener("yt-navigate-finish",p.runOnYtNavigateAwayFinish),p.JSC$23649_watchApi.addPageDisposeJob(p.runPageDisposeJob),p.addOnDisposeCallback(function(){p.JSC$23649_watchApi.removePageDisposeJob(p.runPageDisposeJob);
p.JSC$23649_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",p.runOnYtNavigateAwayFinish)})},Jcu=function(p){p.pageDisposalDataTypes.forEach(function(J){p.JSC$23649_watchApi.provideRenderingData(J,void 0)});
p.clearDataJobId=0};
_.Lgq.prototype.onActiveChanged=function(p){p&&((p=document.querySelector("#watch-page-skeleton"))&&_.CC(p),Sr7(this),document.body.removeAttribute("no-y-overflow"),_.wY("IS_SHELL_LOAD")&&_.fZu())};
var Sr7=function(p){_.G(function(J){if(J.nextAddress==1)return J.yield(p.JSC$23649_watchApi.playerApi,2);_.Ts();_.UK(J)})};var Hya;Hya=_.z("kevlar_watch_while_counterfactual")?0:.25;_.Rdu=function(p){_.gp.call(this);this.JSC$23652_watchApi=p;this.JSC$23652_watchWhileEnabled=_.z("kevlar_watch_while_v2");this.pipEnabled=_.z("web_enable_pip_on_miniplayer");MST(this);Xta(this);iyG(this)};
_.Q(_.Rdu,_.gp);var MST=function(p){p.JSC$23652_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){Kud(p)});
p.addOnDisposeCallback(function(){p.JSC$23652_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Xta=function(p){var J,S;
_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23652_watchApi.playerApi,2);J=H.yieldResult;S=function(){Kud(p)};
J.addEventListener("onCollapseMiniplayer",S);p.addOnDisposeCallback(function(){J.removeEventListener("onCollapseMiniplayer",S)});
_.UK(H)})},iyG=function(p){var J=p.JSC$23652_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&J&&p.JSC$23652_watchWhileEnabled&&(p.playerIntersectionObserver=new IntersectionObserver(function(S){p.handleIntersect(S)},{threshold:[Hya]}),p.playerIntersectionObserver.observe(J),p.addOnDisposeCallback(function(){var S;
(S=p.playerIntersectionObserver)==null||S.disconnect()}))},Kud=function(p){var J,S,H;
_.G(function(M){if(M.nextAddress==1){J=_.vO().resolve(_.xz);S=J.data;H=_.o7X(S.response,S.playerResponse);_.YE().miniplayerButtonActivation=!0;if(p.pipEnabled)return _.YE().watchPipActivation=!0,M.jumpTo(2);_.vO().resolve(_.DF).collapse();return M.yield(_.YE().navigationFinishPromise,2)}if(M.nextAddress!=4)return _.YE().currentEndpoint=H.watchEndpoint||null,M.yield(_.vO().resolve(_.DF).activate(p.JSC$23652_watchApi.getElement("PLAYER"),H,S),4);_.YE().userActivation=!0;_.UK(M)})};
_.Rdu.prototype.handleIntersect=function(p){Zy7(this,p[p.length-1])};
var Zy7=function(p,J){p.watchWhileJobId&&_.wg.cancelJob(p.watchWhileJobId);p.watchWhileJobId=_.wg.addLowPriorityJob(function(){var S,H;return _.G(function(M){if(M.nextAddress==1)return p.watchWhileJobId=void 0,S=_.vO().resolve(_.DF),J.intersectionRatio>Hya?S.isMiniplayerActive()?M.yield(S.deactivate(),0):M.jumpTo(0):(H=!S.isMiniplayerActive())?M.yield(ntp(p),5):M.jumpTo(4);M.nextAddress!=4&&(H=M.yieldResult);if(!H)return M.jumpTo(0);_.YE().watchWhileActivation=!0;return M.yield(Gep(p),0)})},100)},
ntp=function(p){return _.G(function(J){return J.nextAddress==1?_.z("kevlar_watch_while_paused")?J.return(!0):J.yield(p.isPlayerPlaying(),2):J.return(J.yieldResult)})};
_.Rdu.prototype.isPlayerPlaying=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return S.yield(p.JSC$23652_watchApi.playerApi,2);J=S.yieldResult;return S.return(J.getPlayerStateObject().isPlaying)})};
var Gep=function(p){var J,S;return _.G(function(H){J=_.vO().resolve(_.xz).data;S=_.o7X(J.response,J.playerResponse);_.YE().currentEndpoint=S.watchEndpoint||null;return H.yield(_.vO().resolve(_.DF).activate(p.JSC$23652_watchApi.getElement("PLAYER"),S,J),0)})};_.FuT=function(p){_.gp.call(this);this.JSC$23656_watchApi=p;byG(this);mcy(this)};
_.Q(_.FuT,_.gp);var mcy=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23656_watchApi.playerApi,2);J=H.yieldResult;S=function(M){var X;M.sessionData&&M.sessionData.itct&&(X=M.sessionData.itct);var Z=M.watchEndpoint;if(Z&&M.sessionData&&M.sessionData.autonav)Z=_.dt3(Z,X);else{var n;Z=_.c9(M.videoId,(n=M.listId)!=null?n:void 0,X)}X={endpoint:Z};M.sessionData&&(X.tempData=M.sessionData);p.JSC$23656_watchApi.dispatchEvent("yt-navigate",X)};
J.addEventListener("onPlayVideo",S);p.addOnDisposeCallback(function(){J.removeEventListener("onPlayVideo",S)});
_.UK(H)})},byG=function(p){var J=function(S){p.onYtNavigate(S)};
p.JSC$23656_watchApi.getRoot().addEventListener("yt-navigate",J);p.addOnDisposeCallback(function(){p.JSC$23656_watchApi.getRoot().removeEventListener("yt-navigate",J)})};
_.FuT.prototype.onYtNavigate=function(p){var J=this,S,H,M,X,Z,n,b,F,f;return _.G(function(O){if(O.nextAddress==1){if(!((S=p.detail)==null?0:(H=S.endpoint)==null?0:H.watchEndpoint))return O.return();M=p.detail.endpoint.watchEndpoint;X=J.JSC$23656_watchApi.getWatchNextResponse();n=_.e((Z=X)==null?void 0:Z.currentVideoEndpoint,_.lj);if(!n)return O.return();if(M.videoId!==n.videoId||M.playlistId&&M.playlistId!==n.playlistId||typeof M.startTimeSeconds!=="number")return O.jumpTo(0);p.stopPropagation();
(b=_.z("kevlar_watch_while_v2")&&!_.z("kevlar_watch_while_counterfactual"))&&_.vO().resolve(_.DF).isMiniplayerActive()||J.JSC$23656_watchApi.scrollWatchTo(0,!0);return O.yield(J.JSC$23656_watchApi.playerApi,3)}F=O.yieldResult;f=M.startTimeSeconds;F.seekTo(f,void 0,void 0,void 0,84);F.wakeUpControls();f<F.getDuration()&&F.playVideo();_.UK(O)})};_.fct=function(p){_.gp.call(this);var J=this;this.JSC$23659_watchApi=p;var S=this.JSC$23659_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){vtD(J)});
this.addOnDisposeCallback(function(){J.JSC$23659_watchApi.unsubscribeByKey(S)});
vtD(this);_.z("enable_ai_companion")&&(p=this.JSC$23659_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.uVM(_.vO().resolve(_.M_),p,"WATCH")};
_.Q(_.fct,_.gp);var vtD=function(p){var J=p.JSC$23659_watchApi.getWatchNextResponse();if(J){var S,H=[].concat(_.dW((S=J==null?void 0:J.engagementPanels)!=null?S:[]));_.z("web_watch_comments_visible_by_default")&&(S=H.find(function(M){var X;return((X=M.engagementPanelSectionListRenderer)==null?void 0:X.targetId)==="engagement-panel-comments-section"}),S==null?0:S.engagementPanelSectionListRenderer)&&(S.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
H.unshift.apply(H,_.dW(OyG(J)));p.JSC$23659_watchApi.provideRenderingData("ENGAGEMENT_PANELS",H)}},AcG=function(p){var J,S,H,M=(J=p.engagementPanels)==null?void 0:(S=J.find(function(P){var W;
return((W=P.engagementPanelSectionListRenderer)==null?void 0:W.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(H=S.engagementPanelSectionListRenderer.content)==null?void 0:H.structuredDescriptionContentRenderer,X;
if(_.e(M==null?void 0:(X=M.items)==null?void 0:X.find(function(P){return!!_.e(P,$8v)}),$8v))return!0;
var Z,n,b,F;if(p=(((Z=p.contents)==null?void 0:(n=Z.twoColumnWatchNextResults)==null?void 0:(b=n.results)==null?void 0:(F=b.results)==null?void 0:F.contents)||[]).find(function(P){return P.videoPrimaryInfoRenderer})){var f,O,A;
return(((f=p.videoPrimaryInfoRenderer)==null?void 0:(O=f.videoActions)==null?void 0:(A=O.menuRenderer)==null?void 0:A.flexibleItems)||[]).some(function(P){P=_.e(P,_.mFm);if(!P)return!1;var W,y;P=(W=P.topLevelButton)==null?void 0:(y=W.buttonViewModel)==null?void 0:y.onTap;if(!P)return!1;W=_.sa(P);if(!W)return!1;var t;return((t=_.e(W,_.Bu))==null?void 0:t.panelIdentifier)==="PAyouchat"})}return!1},OyG=function(p){var J=[];
if(!_.z("web_watch_inject_placeholder_fantasy_panel_killswitch")){var S,H,M,X=(S=p.engagementPanels)==null?void 0:(H=S.find(function(n){var b;return((b=n.engagementPanelSectionListRenderer)==null?void 0:b.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(M=H.engagementPanelSectionListRenderer.content)==null?void 0:M.structuredDescriptionContentRenderer,Z;
_.e(X==null?void 0:(Z=X.items)==null?void 0:Z.find(function(n){return!!_.e(n,Ikp)}),Ikp)&&(S=_.Agv("PAsports_fantasy"),S.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",J.push(S))}AcG(p)&&(p=_.Agv("PAyouchat"),p.engagementPanelSectionListRenderer.targetId="PAyouchat",p.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",J.push(p));
return J};_.zda=function(p){_.gp.call(this);this.JSC$23662_watchApi=p;PyD(this)};
_.Q(_.zda,_.gp);var PyD=function(p){p.JSC$23662_watchApi.registerActionHandler("yt-loop-command",function(J){$cv(p,J)});
p.JSC$23662_watchApi.registerActionHandler("yt-repeat-chapter-command",function(J){ott(p,J)});
p.addOnDisposeCallback(function(){p.JSC$23662_watchApi.unregisterActionHandler("yt-loop-command");p.JSC$23662_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},$cv=function(p,J){var S;
_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23662_watchApi.playerApi,2);S=H.yieldResult;_.e(J,pLd).loop?(S.setLoopRange({startTimeMs:Number(_.e(J,pLd).startTimeMs),endTimeMs:Number(_.e(J,pLd).endTimeMs),postId:_.e(J,pLd).postId,type:"clips"}),S.playVideo()):S.setLoopRange(null);_.UK(H)})},ott=function(p,J){var S,H;
_.G(function(M){if(M.nextAddress==1)return M.yield(p.JSC$23662_watchApi.playerApi,2);S=M.yieldResult;H=_.e(J,XL7).repeat;H==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(S.setLoopRange({startTimeMs:Number(_.e(J,XL7).startTimeMs),endTimeMs:Number(_.e(J,XL7).endTimeMs),type:"repeatChapter"}),S.playVideo()):H==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&S.setLoopRange(null);_.UK(M)})};_.WuG=function(p){_.gp.call(this);this.JSC$23667_watchApi=p;ed7(this)};
_.Q(_.WuG,_.gp);var ed7=function(p){p.JSC$23667_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(J){Qs7(p,J)});
p.addOnDisposeCallback(function(){p.JSC$23667_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},Qs7=function(p,J){var S,H,M,X,Z,n,b,F,f,O,A;
_.G(function(P){if(P.nextAddress==1)return P.yield(p.JSC$23667_watchApi.playerApi,2);S=P.yieldResult;if(X=(M=(H=_.e(J,iHs))==null?void 0:H.highlightedMenuItemKey)!=null?M:"")(n=(Z=S).highlightSettingsMenuItem)==null||n.call(Z,X);if(f=(F=(b=_.e(J,iHs))==null?void 0:b.openMenuItemKey)!=null?F:"")(A=(O=S).openSettingsMenuItem)==null||A.call(O,f);_.UK(P)})};var CyG=_.io("/youtube/app/watch/player_state","playerStateEntity");_.k1=function(p){_.gp.call(this);this.JSC$23670_watchApi=p;ycp(this)};
_.Q(_.k1,_.gp);var Bot=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"}},ycp=function(p){var J,S,H,M,X;
_.G(function(Z){if(Z.nextAddress==1)return Z.yield(p.JSC$23670_watchApi.playerApi,2);J=Z.yieldResult;if(p.isDisposed())return Z.return();S=function(n){p.onPlayerStateChange(n)};
H=function(n){p.onAdStateChange(n)};
M=function(){p.onAdSkip()};
X=function(n){p.onVideoDataChange(n)};
J.addEventListener("onStateChange",S);J.addEventListener("onAdStateChange",H);J.addEventListener("onAdSkip",M);J.addEventListener("onVideoDataChange",X);p.addOnDisposeCallback(function(){J.removeEventListener("onStateChange",S);J.removeEventListener("onAdStateChange",H);J.removeEventListener("onAdSkip",M);J.removeEventListener("onVideoDataChange",X)});
_.UK(Z)})},Ucs=function(p){var J=_.ED(),S=J.dispatch;
a:switch(p.adsState){case -1:case 0:var H="ADS_STATE_NONE";break a;case 1:case 2:case 3:H="ADS_STATE_PLAYING";break a;default:H="ADS_STATE_UNKNOWN"}S.call(J,_.P$("playerStateEntity",CyG,{key:CyG,playerState:Bot(p.playerState),adsState:H,videoId:p.videoId}))};
_.k1.prototype.onPlayerStateChange=function(p){var J=this,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(J.JSC$23670_watchApi.playerApi,2);S=H.yieldResult;if(J.isDisposed())return H.return();J.playerState=p;J.videoId=S.getVideoData().video_id;Ucs(J);_.UK(H)})};
_.k1.prototype.onAdStateChange=function(p){this.adsState=p;Ucs(this)};
_.k1.prototype.onAdSkip=function(){this.adsState=0;Ucs(this)};
_.k1.prototype.onVideoDataChange=function(p){p.type==="newdata"&&(this.adsState=-1,Ucs(this))};_.gtd=function(p){_.gp.call(this);var J=this;this.JSC$23674_watchApi=p;this.enableExternalPlaylistPanelInPlayer=_.z("delhi_web_player_use_external_playlist_panel");_.vO().resolve(_.FF).setPlayer(this.JSC$23674_watchApi.getElement("PLAYER"));p=this.JSC$23674_watchApi.subscribeToActiveChanged(function(S){J.onActiveChanged(S)});
this.addOnDisposeCallback(p);ssD(this)};
_.Q(_.gtd,_.gp);var ssD=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return p.enableExternalPlaylistPanelInPlayer?H.yield(p.JSC$23674_watchApi.playerApi,2):H.return();J=H.yieldResult;S=function(){if(p.playlistPanelElement)p.playlistPanelElement.onToggleExpanded()};
J.addEventListener("onToggleExternalPlaylistPanel",S);p.addOnDisposeCallback(function(){J.removeEventListener("onToggleExternalPlaylistPanel",S)});
_.UK(H)})};
_.gtd.prototype.onActiveChanged=function(p){var J=this,S=_.vO().resolve(_.FF),H=function(){tSp(J)};
p?(this.playlistPanelElement=this.JSC$23674_watchApi.getElement("PLAYLIST_PANEL"))?(S.setPlaylistComponent(this.playlistPanelElement),S.addEventListener("yt-playlist-data-updated",H),this.addOnDisposeCallback(function(){S.removeEventListener("yt-playlist-data-updated",H)}),tSp(this)):_.SB(Error("fp")):(S.removeEventListener("yt-playlist-data-updated",H),S.cancelVideoSkip())};
var tSp=function(p){var J=_.vO().resolve(_.FF);p.JSC$23674_watchApi.provideRenderingData("PLAYLIST",J.getPlaylistData())};_.N5=function(p){_.gp.call(this);var J=this;this.JSC$23677_watchApi=p;this.onPageScroll=function(){J.scrollThrottle.fire();J.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.nb(this.onThrottledScroll,200,this);_.$c(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.nb(this.onMastheadThrottledScroll,50,this);_.$c(this,this.mastheadScrollThrottle);this.animation=new _.QZ(function(S){J.JSC$23677_watchApi.getRoot().setScrollTop(S)});
p=_.j7(_.rl(),_.sS,function(){J.onFullscreenChanged()});
this.addOnDisposeCallback(p);hd4(this);Dc4(this);this.onThrottledScroll()};
_.Q(_.N5,_.gp);
_.N5.prototype.onFullscreenChanged=function(){var p=this,J=this.JSC$23677_watchApi.getRoot();!this.pageScrollElement&&J.pageScrollElement?(this.pageScrollElement=J.pageScrollElement,J.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){p.pageScrollElement&&p.pageScrollElement.removeEventListener("scroll",p.onPageScroll)})):this.pageScrollElement&&!J.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var hd4=function(p){window.addEventListener("scroll",p.onPageScroll);p.addOnDisposeCallback(function(){window.removeEventListener("scroll",p.onPageScroll)})},Dc4=function(p){p.JSC$23677_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(J){a:{var S;
if(S=p.JSC$23677_watchApi.getRoot().contains(J)&&!p.animation.isAnimating()){S=J.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var H,M,X=(J==null?void 0:(H=J.parentElement)==null?void 0:(M=H.parentElement)==null?void 0:M.id)==="fixed-secondary";S=!(S&&X)}if(S){if(_.z("kevlar_watch_scroll_manager_absolute_offset_killswitch"))H=J.offsetTop;else for(H=0,M=J;M!==null;)H+=M.offsetTop,H-=M.scrollTop,M=M.offsetParent;M=H;H=M-24;J=M+J.offsetHeight+24;M=p.JSC$23677_watchApi.getRoot().getPageScrollingElement();
S=p.JSC$23677_watchApi.getRoot().getScrollTop();X=S+M.clientHeight-56;if(H<S+56)J=H-56;else if(J>X)J-=M.clientHeight;else break a;p.scrollWatchTo(Math.max(0,J),!0)}}});
p.addOnDisposeCallback(function(){p.JSC$23677_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.N5.prototype.onThrottledScroll=function(){var p=_.rl(),J=p.dispatch,S=this.JSC$23677_watchApi.getRoot().getScrollTop();J.call(p,_.Jk({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:S}}))};
_.N5.prototype.onMastheadThrottledScroll=function(){this.JSC$23677_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23677_watchApi.getRoot().getScrollTop())};
_.N5.prototype.scrollWatchTo=function(p,J){(J===void 0?0:J)?this.animation.start(this.JSC$23677_watchApi.getRoot().getScrollTop(),Math.max(0,p),500):this.JSC$23677_watchApi.getRoot().setScrollTop(p)};_.Tos=function(p){_.gp.call(this);var J=this;this.JSC$23680_watchApi=p;var S=this.JSC$23680_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){kev(J)}),H=this.JSC$23680_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NoD(J)});
this.addOnDisposeCallback(function(){J.JSC$23680_watchApi.unsubscribeByKey(S);J.JSC$23680_watchApi.unsubscribeByKey(H)});
kev(this);NoD(this)};
_.Q(_.Tos,_.gp);
var kev=function(p){var J,S,H,M=(H=(J=p.JSC$23680_watchApi.getPlayerResponse())==null?void 0:(S=J.videoDetails)==null?void 0:S.title)!=null?H:"";p.JSC$23680_watchApi.dispatchEvent("yt-update-title",M)},NoD=function(p){var J,S,H,M,X,Z,n,b=(n=((Z=(J=p.JSC$23680_watchApi.getWatchNextResponse())==null?void 0:(S=J.contents)==null?void 0:(H=S.twoColumnWatchNextResults)==null?void 0:(M=H.results)==null?void 0:(X=M.results)==null?void 0:X.contents)!=null?Z:[]).find(function(F){return!!F.videoPrimaryInfoRenderer}))==null?
void 0:n.videoPrimaryInfoRenderer;
(J=_.E4(b==null?void 0:b.title))&&p.JSC$23680_watchApi.dispatchEvent("yt-update-title",J)};_.uVy=function(p){_.gp.call(this);this.JSC$23683_watchApi=p;dct(this)};
_.Q(_.uVy,_.gp);var dct=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$23683_watchApi.playerApi,2);J=H.yieldResult;S=function(){p.onYpcContentRequest()};
J.addEventListener("onYpcContentRequest",S);p.addOnDisposeCallback(function(){J.removeEventListener("onYpcContentRequest",S)});
_.UK(H)})};
_.uVy.prototype.onYpcContentRequest=function(){var p,J,S,H,M,X=(p=this.JSC$23683_watchApi.getWatchNextResponse())==null?void 0:(J=p.contents)==null?void 0:(S=J.twoColumnWatchNextResults)==null?void 0:(H=S.secondaryResults)==null?void 0:(M=H.secondaryResults)==null?void 0:M.offerModule,Z,n,b,F;p=(F=(b=(n=(Z=X==null?void 0:X.episodeOfferModuleRenderer)!=null?Z:X==null?void 0:X.movieOfferModuleRenderer)!=null?n:X==null?void 0:X.unlimitedOfferModuleRenderer)!=null?b:X==null?void 0:X.liveOfferModuleRenderer)!=
null?F:X==null?void 0:X.tvfilmOfferModuleRenderer;var f,O,A;X=(A=X==null?void 0:(f=X.tvfilmOfferModuleRenderer)==null?void 0:(O=f.actionButtons)==null?void 0:O.length)!=null?A:0;O=Math.max(X-1,0);var P,W,y;f=(y=p==null?void 0:(P=p.offerButton)==null?void 0:P.buttonRenderer)!=null?y:p==null?void 0:(W=p.actionButtons)==null?void 0:W[O].buttonRenderer;var t,D;(P=(D=(t=f==null?void 0:f.navigationEndpoint)!=null?t:f==null?void 0:f.serviceEndpoint)!=null?D:f==null?void 0:f.command)&&_.R4.instance.resolveCommand(P)};
}catch(e){_._DumpException(e)}
try{
var Bww,Qfl,o3f;_.Wye=function(){var p=_.T6.clone($Q$),J;return(new _.UI(function(S,H){p.onSuccess=function(M){_.KYw(M)?S(new o3f(M)):H(new _.euy("Request failed, status="+_.eB(M),"net.badstatus",M))};
p.onError=function(M){H(new _.euy("Unknown request error","net.unknown",M))};
p.onTimeout=function(M){H(new _.euy("Request timed out","net.timeout",M))};
J=_.BO("//googleads.g.doubleclick.net/pagead/id",p)})).thenCatch(function(S){if(S instanceof _.DP){var H;
(H=J)==null||H.abort()}return _.o4(S)})};
_.COe=function(p){a:{var J="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(J="EMBEDDED_PLAYER_MODE_PFL");var S=p.raw_embedded_player_response;if(!S&&(p=p.embedded_player_response))try{S=JSON.parse(p)}catch(M){break a}if(S)b:for(var H in Qfl)if(Qfl[H]==S.embeddedPlayerMode){J=Qfl[H];break b}}return J==="EMBEDDED_PLAYER_MODE_PFL"};
_.ynM=function(){if(_.z("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.YMw())return Error("wf");var p=_.jn("PLAYER_VARS",{});if(_.T6.get(p,"privembed",!1)=="1")return Error("xf");if(_.COe(p))return Error("yf")};
Bww=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:_.rm(p,"unknown result type")}};
_.UQj=function(p,J,S){J=_.jGg[J];S={detected:p===0,source:J.cfc,detectionResult:Bww(p),contentCpn:S};_.YQ("biscottiBasedDetection",S);_.My8.increment(J.cfc,p);J.xmc!==void 0&&_.rY("CATSTAT",_.Y8s(p,J))};
_.sfy=function(p,J){var S={};S.key=p;S.value=J;return _.vAX().then(function(H){return new Promise(function(M,X){try{var Z=H.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(S);Z.onsuccess=function(){M()};
Z.onerror=function(){X()}}catch(n){X(n)}})})};
_.thU=function(){var p=_.PO("user_engagement_experiments_rate_limit_ms"),J=g3I.get("last-user-engagement-exp-trigger-timestamp");return!J||(0,_.fO)()>=J+p?(g3I.set("last-user-engagement-exp-trigger-timestamp",(0,_.fO)()),!0):!1};
_.ZT=function(p,J,S,H,M){J=J===void 0?null:J;S=S===void 0?null:S;H=H===void 0?null:H;M=M===void 0?null:M;p={youThereEventType:p};S&&(p.lactThresholdMs=S.lactThresholdMs,p.mediaPosSec=S.promptDelaySec,p.lactServerRequestMs=S.lactServerRequestMs,p.triggerReason=S.triggerReason);M!=null&&(p.renderingMediaPosSec=Math.round(M));J||(J=_.C1());J&&(p.clientScreenNonce=J);H&&(p.clientPlaybackNonce=H);_.YQ("youThere",p)};
Qfl={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"};o3f=function(p){this.xhr=p};
_.euy=function(p,J,S){_.pL.call(this,p+", errorCode="+J);this.errorCode=J;this.xhr=S;this.name="PromiseAjaxError"};
_.Q(_.euy,_.pL);var $Q$={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var g3I=new _.pH("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.zu$=function(p){return _.Jk({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:p})};
}catch(e){_._DumpException(e)}
try{
var q5,v3s,O3T,And,POt,zuv,o3u,g3a,thT,huq,$Qv,fVT,COd,Qf4,Nwd;_.Fys=function(){var p=window.location.hash;p.charAt(0)==="#"&&(p=p.charAt(1)==="!"?p.substring(2):p.substring(1));return _.X9(p)};
q5=function(p,J,S){var H;return _.G(function(M){if(M.nextAddress==1)return M.yield(J(),2);H=M.yieldResult;S(H,p);_.UK(M)})};
v3s=function(){return _.G(function(p){return p.nextAddress==1?p.yield((_.ynM()!==void 0?_.o4(Error("zf")):_.Wye()).then(function(){return 1},function(J){if(J.message==="Biscotti id is disabled")return 3;
_.xQ("Failed fetching bid");return 0}),2):p.return(p.yieldResult)})};
O3T=function(){var p=_.cq("YXllciNhMjQ1Nmg0Yjl4ZmR5dC1oYXZlbi1lbWJlZC1wbA=="),J=_.cq("cmFtZSM2OWY5c2p0b2w1YzNpZg==");return document.querySelector(J+fVT+p)?0:1};
And=function(){return _.tdX(_.oQ)};
POt=function(){return _.hPX()===0?0:_.D_i()};
zuv=function(){return _.uEi(_.pwv([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
o3u=function(){return _.Wni($Qv)};
_.eup=function(p){_.G(function(J){switch(J.nextAddress){case 1:return J.yield(q5("b.f_",v3s,p),2);case 2:return J.yield(q5("j.s_",_.oBk,p),3);case 3:return J.yield(q5("r.s_",_.PGw,p),4);case 4:return J.yield(q5("e.h_",o3u,p),5);case 5:if(!_.z("ab_det_sc_inj")){J.jumpTo(6);break}return J.yield(q5("s.i_",_.sG9,p),6);case 6:if(_.z("ab_deg_unex_thr")){J.jumpTo(8);break}return J.yield(q5("a.o_",_.BvL,p),8);case 8:if(_.z("ks_get_o_pp")){J.jumpTo(10);break}return J.yield(q5("g.o_",_.yY3,p),10);case 10:if(_.z("ks_det_gpbl")){J.jumpTo(12);
break}return J.yield(q5("p.i_",_.CGW,p),12);case 12:return J.yield(q5("f.i_",_.KnL,p),14);case 14:return J.yield(q5("a.b_",_.OB4,p),15);case 15:return J.yield(q5("p.m_",_.G23,p),16);case 16:if(!_.z("ab_det_el_h_v2")){J.jumpTo(17);break}return J.yield(q5("n.h_",zuv,p),17);case 17:return J.yield(q5("o.p_",And,p),19);case 19:return J.yield(q5("e.i_",O3T,p),20);case 20:if(_.z("ab_det_apm"))return J.yield(q5("o.a_",POt,p),0);J.jumpTo(0)}})};
_.Wyd=function(p,J){p={videoId:p};J&&(p.playlistId=J);return p};
_.yny=function(){if(_.YMw()){var p=_.jn("PLAYER_VARS",{});if(_.T6.get(p,"privembed",!1)!="1"&&!_.COe(p)){var J=function(){Qf4=!0;"google_ad_status"in window?_.rY("DCLKSTAT",1):_.rY("DCLKSTAT",2)};
try{_.h1(_.SKw,J)}catch(S){}COd.push(_.wg.addLowPriorityJob(function(){if(!(Qf4||"google_ad_status"in window)){try{_.TLi(_.SKw.toString(),J)}catch(S){}Qf4=!0;_.rY("DCLKSTAT",3)}},5E3))}}};
_.BwD=function(p,J,S){S=S===void 0?!1:S;var H=Math.max(p.width,_.epG);if(_.z("kevlar_watch_feed_big_thumbs")&&p.width>=1550-_.Ik()&&p.height>=800)H-=_.U8G;else if(p.width>=_.ku){var M=_.W4a+_.QJq+_.D6;_.z("kevlar_watch_feed_big_thumbs")&&(M=_.Bfp);H-=M}else H-=_.W4a;H=Math.min(H,_.CSd);M=240;S&&(M=380);J<.5624||(!_.z("kevlar_watch_flexy_disable_small_window_sizing")&&(p.height<630&&p.width>=657||p.height>=630&&p.width>=_.ku&&p.width<1327)?M=360:!_.z("kevlar_watch_flexy_disable_large_window_sizing")&&
p.height>=630&&p.width>=1327&&(M=480));var X=Math.min(H*J,p.height-(56+_.oQp+_.yVt));X=Math.max(X,M);J<1?H=X/J:p.width>=_.ku&&(H=_.BwD(p,.5625,S).width);return new _.yF(Math.round(H),Math.round(X))};
_.UQG=function(p){var J=0;p.indexOf("h")!=-1&&(p=p.split("h"),J=p[0]*60*60,p=p[1]);p.indexOf("m")!=-1&&(p=p.split("m"),J=p[0]*60+J,p=p[1]);p.indexOf("s")!=-1?(p=p.split("s"),J=p[0]*1+J):J=p*1+J;return J};
_.sfp=function(){_.PO("service_worker_push_logged_out_prompt_watches")!=-1&&_.Mx("WatchCount").then(function(p){p>=100||_.sfy("WatchCount",p+1)})};
g3a=function(p){var J=p.externalVideoId||"";return J?p.isShortsEligible?"https://www.youtube.com/shorts/"+J:"https://www.youtube.com/watch?v="+J:""};
thT=function(p){var J=[];p.viewCount&&J.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:p.viewCount});p.likeCount&&J.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:p.likeCount});return J};
huq=function(p){var J,S,H={"@context":"https://schema.org","@type":"VideoObject",description:_.E4(p.description),duration:"PT"+(p.lengthSeconds||"0")+"S",embedUrl:p.embed?p.embed.iframeUrl:"",name:_.E4(p.title),thumbnailUrl:((J=p.thumbnail)==null?void 0:(S=J.thumbnails)==null?void 0:S.map(function(f){return f&&f.url||""}))||[],
uploadDate:p.publishDate};_.z("mweb_video_schema_id_killswitch")||(H["@id"]=g3a(p));J=thT(p);J.length&&(H.interactionStatistic=J);p.category&&(H.genre=p.category);p.ownerChannelName&&(H.author=p.ownerChannelName);p.liveBroadcastDetails&&(H.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:p.liveBroadcastDetails.startTimestamp,endDate:p.liveBroadcastDetails.endTimestamp}]);if(p.learningResource){p=p.learningResource;H["@type"]=["VideoObject","LearningResource"];var M;if((M=p.learningResourceType)==
null?0:M.length)H.learningResourceType=p.learningResourceType[0];var X;if((X=p.educationalAlignment)==null?0:X.length)H.educationalAlignment={"@type":"AlignmentObject",targetName:p.educationalAlignment[0]};var Z;if((Z=p.educationalLevel)==null?0:Z.length){M=p.educationalLevel[0];var n;if((n=p.educationalLevelCountry)==null?0:n.length)M+=" ("+p.educationalLevelCountry+")";H.educationalLevel=M}var b,F;if(((b=p.learningResourceType)==null?0:b.length)&&p.learningResourceType[0]==="Problem walkthrough"&&
((F=p.problemDescriptions)==null?0:F.length))for(H.hasPart=[],n=_.K(p.problemDescriptions),b=n.next();!b.done;b=n.next())M=b.value,b=M.problemDescriptionText,F=M.startOffset,M=M.url,b&&F!==void 0&&M&&H.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:b,text:b,startOffset:F,url:M})}return H};
_.DQT=function(p){return _.Jk({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:p}})};
$Qv=[[["aW1hcnkjMjcwZHJkbWR6N3dwcg==",null,null],[null,["ZXJlciM4OGJmY2c5cG4yYnJ5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5k","Y29wZSNlajBucjA4ZWdiNjJzdHlsZS1z"],null],["ZC1hZCNmYXRibWI1eWI3NHdtYXN0aGVh",["ZXJlciNjaWJmM3I2dmJreWh5dGQtcmljaC1ncmlkLXJlbmQ="],null],[null,["ZXJlciM4OXFkbWhyMzgzZjV5dGQtcmljaC1ncmlkLXJlbmQ=","Y29wZSNubm1pa2I0eGN3eWFzdHlsZS1z"],null],[null,["ZGVyZXIjMWFwNXQ1bng3c215dGQtYmFubmVyLXByb21vLXJlbg==","Y29wZSN3eXppcnQ2ZDYxY3NzdHlsZS1z"],null],[null,["ZXJlciNzNjYzdm03OHU2Mnl5dGQtYWQtc2xvdC1yZW5k"],
null]],[["LWFkcyM5MWpyMTM3Y2FqbWhwbGF5ZXI=",null,null]],[[null,null,"ZXJlciNxc2o1aXhtZXE1ZW55dGxyLWJhbm5lci1jdGEtcmVuZA=="]]];fVT="#";COd=[];Qf4=!1;_.kIt=["engagement-panel-ads"];Nwd=new _.Zz("updateSentimentBarStateCommand");_.TwG=new _.Zz("showSurveyCommand");_.ab=new _.Zz("changeMarkersVisibilityCommand");var uMG,lVq,E3t,aVT,qD7,EQ;_.dQG=function(p,J){this.playerProvider_=p;this.actionSenderElement_=J;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.dQG.prototype.reset=function(){uMG(this);this.isUserPredictedAbsent_=!1};
uMG=function(p,J){!p.youThereData_||p.showWarningJob_||J!==void 0&&J||(_.ZT("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.C1(),p.youThereData_,p.clientPlaybackNonce_),_.rf());_.wg.cancelJob(p.showWarningJob_);p.showWarningJob_=0;_.wg.cancelJob(p.showBlockingWarningJob_);p.showBlockingWarningJob_=0;_.wg.cancelJob(p.pausePlaybackJob_);p.pausePlaybackJob_=0;p.youThereData_=null;p.clientPlaybackNonce_=void 0;p.inYouThereFlow_=!1};
_.Vha=function(p,J){var S,H,M;_.G(function(X){if(X.nextAddress==1)return p.reset(),X.yield(p.playerProvider_().getPlayerPromise(),2);S=X.yieldResult;p.clientPlaybackNonce_=S.getVideoData().cpn;p.youThereData_=J.configData.youThereData;if(!p.youThereData_)return X.return();if(p.youThereData_.triggerReason&&p.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.thU())return _.ZT("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.C1(),p.youThereData_,p.clientPlaybackNonce_),X.return();H=p.youThereData_.promptDelaySec;
M=S.getCurrentTime();p.showWarningJob_=_.wg.addLowPriorityJob(function(){return _.G(function(Z){p.showWarningJob_=0;return Z.yield(lVq(p),0)})},Math.max(H-M,0)*1E3);
_.UK(X)})};
lVq=function(p){var J,S,H,M,X,Z;return _.G(function(n){if(n.nextAddress==1)return n.yield(p.playerProvider_().getPlayerPromise(),2);if(n.nextAddress!=3)return J=n.yieldResult,S=J.getCurrentTime(),n.yield(qD7(p),3);H=n.yieldResult;if(!H||!p.youThereData_)return n.return();if(_.z("check_user_lact_at_prompt_shown_time_on_web")&&(M=parseInt(p.youThereData_.lactThresholdMs,10),_.AV()<M))return _.ZT("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.C1(),p.youThereData_,p.clientPlaybackNonce_),n.return();if(p.youThereData_.playbackPauseDelayMs<=
0)return aVT(p),n.return();!_.z("external_fullscreen")&&(X=_.rG())&&(p.ignoreFullscreenExitUserActivity_=!0,_.wg.addLowPriorityJob(function(){p.ignoreFullscreenExitUserActivity_=!1},2E3),_.jq(X));
p.youThereData_.showToastWarningPrompt&&(EQ(p,p.youThereData_.showWarningActions),p.inYouThereFlow_=!0,_.ZT("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.C1(),p.youThereData_,p.clientPlaybackNonce_,S),_.ZT("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.C1(),p.youThereData_,p.clientPlaybackNonce_,S));Z=0;p.youThereData_.blockingPromptDelayMs&&(Z=p.youThereData_.blockingPromptDelayMs);p.showBlockingWarningJob_=_.wg.addLowPriorityJob(function(){return _.G(function(b){p.showBlockingWarningJob_=0;return b.yield(E3t(p),
0)})},Z);
_.UK(n)})};
E3t=function(p){var J,S,H;return _.G(function(M){if(M.nextAddress==1)return M.yield(qD7(p),2);J=M.yieldResult;if(!p.youThereData_)return M.return();J&&(p.youThereData_.showBlockingWarningAction&&(_.ZT("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.C1(),p.youThereData_,p.clientPlaybackNonce_),(S=_.e(p.youThereData_.showBlockingWarningAction,_.H9))?EQ(p,S.commands):EQ(p,[p.youThereData_.showBlockingWarningAction]),p.inYouThereFlow_=!0),H=p.youThereData_.playbackPauseDelayMs,p.pausePlaybackJob_=
_.wg.addLowPriorityJob(function(){return _.G(function(X){p.pausePlaybackJob_=0;return X.yield(aVT(p),0)})},H));
_.UK(M)})};
aVT=function(p){var J;return _.G(function(S){if(S.nextAddress==1)return S.yield(qD7(p),2);J=S.yieldResult;if(!p.youThereData_)return S.return();J&&(_.ZT("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.C1(),p.youThereData_,p.clientPlaybackNonce_),EQ(p,p.youThereData_.showPausedActions),p.inYouThereFlow_=!0);_.UK(S)})};
_.dQG.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var p=_.e(this.youThereData_.userActiveDuringFlowAction,_.H9);p?EQ(this,p.commands):EQ(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.ZT("YOU_THERE_EVENT_TYPE_LACT_RESET",_.C1(),this.youThereData_,this.clientPlaybackNonce_),_.rf());uMG(this,!0)}_.YDG(this,!1)};
_.rnq=function(p){_.ZT("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.C1(),p.youThereData_,p.clientPlaybackNonce_)};
qD7=function(p){var J,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(p.playerProvider_().getPlayerPromise(),2);J=H.yieldResult;S=J.getPlayerState();return H.return(S==-1||S==1||S==3)})};
_.YDG=function(p,J){var S;_.G(function(H){if(H.nextAddress==1){if(p.isUserPredictedAbsent_==J)return H.jumpTo(0);p.isUserPredictedAbsent_=J;return H.yield(p.playerProvider_().getPlayerPromise(),3)}S=H.yieldResult;S.setUserEngagement(J);J&&_.ZT("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.C1(),p.youThereData_,p.clientPlaybackNonce_);_.UK(H)})};
EQ=function(p,J){if(_.z("handle_service_request_actions")||_.z("kevlar_youthere_service_endpoint_actions_killswitch"))_.JP(p.actionSenderElement_,J,p.actionSenderElement_);else{J=_.K(J);for(var S=J.next();!S.done;S=J.next())S=S.value,S.commandMetadata&&S.commandMetadata.webCommandMetadata&&S.commandMetadata.webCommandMetadata.sendPost?_.pl(p.actionSenderElement_,[S]):_.JP(p.actionSenderElement_,[S],p.actionSenderElement_)}};var jfq;var w6t;var Y1=function(){var p=_.T.apply(this,arguments)||this;p.systemIcons=_.z("kevlar_system_icons");p.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return p};
_.Q(Y1,_.T);Y1.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);_.Jn(this.hostElement).querySelector("#like-bar").style.width=p+"%"}};
Y1.prototype.handleUpdateSentimentBarStateCommand=function(p){this.data&&this.set("data.likeStatus",_.e(p,Nwd).likeStatus)};
Y1.prototype.observeLikeStatus=Y1.prototype.observeLikeStatus;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Y1.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Y1.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Y1.prototype,"activated",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Y1.prototype,"systemIcons",void 0);_.V([_.bO("data.likeStatus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y1.prototype,"observeLikeStatus",null);_.V([_.gw({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Y1);
_.l(Y1,"ytd-sentiment-bar-renderer",function(){if(w6t!==void 0)return w6t;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return w6t=p},{mode:1});var xQq;var rh=function(){var p=_.T.apply(this,arguments)||this;p.small=!0;return p};
_.Q(rh,_.T);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],rh.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],rh.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rh.prototype,"small",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],rh);
_.l(rh,"ytd-video-view-count-renderer",function(){if(xQq!==void 0)return xQq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return xQq=p},{mode:_.Jz("kevlar_poly_si_batch_j080")?1:2});var ju=function(){var p=_.T.apply(this,arguments)||this;p.infoFormattedStrings=[];p.wrapVideoActions=_.z("kevar_watch_wrap_video_actions");p.hideSentimentBar=_.z("kevlar_watch_hide_sentiment_bar");p.actionMap={};return p};
_.Q(ju,_.T);_.R=ju.prototype;_.R.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.z("web_modern_buttons"),forceIconButton:!_.z("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.R.dataChanged=function(){_.z("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.R.computeInfoFormattedStrings=function(p){if(!p)return[];var J=[];p.dateText&&J.push(p.dateText);p.stationName&&J.push(p.stationName);p.rating&&J.push(p.rating);p.startEndTimeTemplate&&p.startTimeUtcMillis&&p.endTimeUtcMillis&&J.push(_.aR(_.hXq(_.E4(p.startEndTimeTemplate),Number(p.startTimeUtcMillis),Number(p.endTimeUtcMillis))));p.upNextProgramText&&J.push(p.upNextProgramText);return J};
_.R.scheduleInitialUpdatedMetadataRequest=function(){var p,J=(p=this.data)==null?void 0:p.updatedMetadataEndpoint;if(J){var S;p=Number((S=_.e(J,_.EYq))==null?void 0:S.initialDelayMs);S=isNaN(p)?250:p;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),S)}};
_.R.setSentimentBarWidth=function(){var p=this;_.mN(this,function(){var J=_.Jn(p.hostElement).querySelector("ytd-menu-renderer");if(J){J=J.topLevelButtons;for(var S=0,H=0;H<J.length;H++){var M=J[H],X=p.get("toggleButtonSupportedData.toggleButtonIdData.id",M.data);if(X==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||X==="TOGGLE_BUTTON_ID_TYPE_LIKE")S+=M.clientWidth+8;else break}S&&(p.sentiment.style.width=S-8+" px")}})};
_.R.fetchUpdatedMetadata=function(p){var J;p&&(J={continuation:p});var S;(p=(S=this.data)==null?void 0:S.updatedMetadataEndpoint)&&_.vO().resolve(_.Ov).resolveCommand(p,{form:Object.assign({},J,{element:this.hostElement})})};
_.R.onYtServiceRequestSent=function(p,J){J.endpoint&&_.e(J.endpoint,_.IW)&&(this.hasUpdateSentimentBarStateCommands()&&!_.z("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.e(J.endpoint,_.IW).status),this.setSentimentBarWidth())};
_.R.hasUpdateSentimentBarStateCommands=function(){var p,J,S,H,M=(H=(p=this.data)==null?void 0:(J=p.videoActions)==null?void 0:(S=J.menuRenderer)==null?void 0:S.topLevelButtons)!=null?H:[];p=_.K(M);for(J=p.next();!J.done;J=p.next()){J=J.value;M=H=S=void 0;var X=(S=J.toggleButtonRenderer)==null?void 0:(H=S.toggleButtonSupportedData)==null?void 0:(M=H.toggleButtonIdData)==null?void 0:M.id;if(X==="TOGGLE_BUTTON_ID_TYPE_LIKE"||X==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){H=S=void 0;J=(H=_.e((S=J.toggleButtonRenderer)==
null?void 0:S.defaultServiceEndpoint,_.H9))==null?void 0:H.commands;if(!J)break;J=_.K(J);for(S=J.next();!S.done;S=J.next())if(_.e(S.value,Nwd))return!0}}return!1};
_.R.onYtServiceRequestCompleted=function(p,J){var S;(p=(S=J.data)==null?void 0:S.loggingDirectives)&&_.wMi(_.bC(),p);this.get("continuation.timedContinuationData",J.data)&&this.data&&this.data.updatedMetadataEndpoint&&(J=J.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,J.continuation),J.timeoutMs))};
_.R.computeHasDateText=function(p){return!!p&&!!p.dateText};
_.vh.Object.defineProperties(ju.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H;return!((H=(p=this.data)==null?void 0:(J=p.videoActions)==null?void 0:(S=J.menuRenderer)==null?void 0:S.flexibleItems)==null||!H.length)}}});
ju.prototype.onYtServiceRequestCompleted=ju.prototype.onYtServiceRequestCompleted;ju.prototype.onYtServiceRequestSent=ju.prototype.onYtServiceRequestSent;ju.prototype.dataChanged=ju.prototype.dataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],ju.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ju.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.$N.YtTaskEmitterBehavior),_.Y("design:type",Object)],ju.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ju.prototype,"data",void 0);_.V([_.N({computed:"computeInfoFormattedStrings(data)"}),_.Y("design:type",Array)],ju.prototype,"infoFormattedStrings",void 0);
_.V([_.N({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ju.prototype,"hasDateText",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ju.prototype,"wrapVideoActions",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ju.prototype,"hideSentimentBar",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ju.prototype,"flexMenuEnabled",null);
_.V([_.FM("#sentiment"),_.Y("design:type",Object)],ju.prototype,"sentiment",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ju.prototype,"dataChanged",null);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],ju.prototype,"onYtServiceRequestSent",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],ju.prototype,"onYtServiceRequestCompleted",null);
_.l(ju,"ytd-video-primary-info-renderer",function(){if(jfq===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);jfq=p}p=jfq;return p},{mode:1});var cnp;var wh=function(){var p=_.T.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};
_.Q(wh,_.T);_.R=wh.prototype;_.R.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"}}}};
_.R.dataChanged=function(){var p;this.descriptionToggled=!((p=this.data)==null||!p.defaultExpanded);var J;this.collapsed=this.descriptionAlwaysCollapsed||!((J=this.data)==null?0:J.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.KG(110509);this.showLessClientVe=_.KG(110510);p=_.C1();J=_.Wf();p&&J&&_.Nq(p,J,[this.showMoreClientVe,this.showLessClientVe])};
_.R.onYtExpanderMoreTapped=function(){var p,J=(p=this.data)==null?void 0:p.showMoreCommand;J&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(J);(p=_.C1())&&this.showMoreClientVe&&_.l7(p,this.showMoreClientVe)};
_.R.onYtExpanderLessTapped=function(){var p=_.C1();p&&this.showLessClientVe&&_.l7(p,this.showLessClientVe);var J;(p=(J=this.data)==null?void 0:J.showLessCommand)&&this.componentBehavior.resolveCommand(p)};
_.R.handleUpdateDateTextAction=function(p){this.data&&this.data.dateText&&this.set("data.dateText",_.e(p,_.vQD).dateText)};
_.R.handleUpdateDescriptionAction=function(p){if(p=_.e(p,_.Vkp))p.isEmpty||!p.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.CI(p.description)):this.set("data.description",p.description)};
_.R.onYtChangeEngagementPanelVisibilityAction=function(p){if(_.z("web_structured_description_show_more")||_.z("web_engagement_panel_open_description")){var J,S=(J=_.e(p,_.VY8))==null?void 0:J.targetId,H;p=((H=_.e(p,_.VY8))==null?void 0:H.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";S==="engagement-panel-structured-description"&&p&&(this.descriptionToggled=!0)}};
_.R.updateCollapsedFromBinding=function(p){this.collapsed=p.detail.value};
_.R.updateDescriptionToggledFromBinding=function(p){this.descriptionToggled=p.detail.value};
_.R.updateCanCollapseFromBinding=function(p){this.canCollapse=p.detail.value};
_.vh.Object.defineProperties(wh.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var p,J,S=(p=this.data)==null?void 0:(J=p.metadataRowContainer)==null?void 0:J.metadataRowContainerRenderer;return!!S&&!!S.rows&&S.rows.length>S.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 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}}});
wh.prototype.onYtExpanderLessTapped=wh.prototype.onYtExpanderLessTapped;wh.prototype.onYtExpanderMoreTapped=wh.prototype.onYtExpanderMoreTapped;wh.prototype.dataChanged=wh.prototype.dataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],wh.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],wh.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wh.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],wh.prototype,"collapsed",void 0);_.V([_.N(),_.Y("design:type",Boolean)],wh.prototype,"descriptionToggled",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],wh.prototype,"canCollapse",void 0);_.V([_.N(),_.Y("design:type",Object)],wh.prototype,"subscribeButtonData",void 0);_.V([_.N(),_.Y("design:type",Number)],wh.prototype,"descriptionCollapsedHeight",void 0);_.V([_.N(),_.Y("design:type",Object)],wh.prototype,"structuredDescriptionContentRenderer",void 0);_.V([_.N({value:function(){return _.z("web_watch_description_always_collapsed")}}),
_.Y("design:type",Boolean)],wh.prototype,"descriptionAlwaysCollapsed",void 0);_.V([_.FM("#description"),_.Y("design:type",HTMLDivElement)],wh.prototype,"description",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wh.prototype,"dataChanged",null);_.V([_.GI("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wh.prototype,"onYtExpanderMoreTapped",null);
_.V([_.GI("yt-expander-less-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wh.prototype,"onYtExpanderLessTapped",null);_.V([_.U("data.metadataRowContainer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wh.prototype,"metadataCollapsible",null);_.V([_.U("data","structuredDescriptionContentRenderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wh.prototype,"hasInlineStructuredDescription",null);
_.V([_.U("data.attributedDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wh.prototype,"hasAttributedDescription",null);_.V([_.U("hasInlineStructuredDescription","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wh.prototype,"loadStructuredDescription",null);_.V([_.U("data","structuredDescriptionContentRenderer","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wh.prototype,"showInlineStructuredDescription",null);
_.V([_.U("data","hasInlineStructuredDescription","metadataCollapsible"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wh.prototype,"descriptionAlwaysCollapsible",null);
_.l(wh,"ytd-video-secondary-info-renderer",function(){if(cnp===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);cnp=p}p=cnp;return p},{mode:2});var IVq;var x1=function(){return _.T.apply(this,arguments)||this};
_.Q(x1,_.T);x1.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:_.z("web_modern_buttons"),forceIconButton:!_.z("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
x1.prototype.activate=function(p){p.appendTo(this.player);p.getPlayerPromise().then(function(J){J.setMinimized(!0)});
this.active=!0};
x1.prototype.deactivate=function(){var p=this.player.firstElementChild;p.getPlayerPromise().then(function(J){J.setMinimized(!1)});
this.active=!1;return p};
x1.prototype.onScrollUpTap=function(){var p=_.vO().resolve(_.xz).getCurrentPage();p&&p.setScrollTop(0)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],x1.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],x1.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],x1.prototype,"active",void 0);
_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.Y("design:type",Boolean)],x1.prototype,"darkLaunch",void 0);_.V([_.FM("#player"),_.Y("design:type",HTMLDivElement)],x1.prototype,"player",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],x1);
_.l(x1,"ytd-miniplayer-bar-renderer",function(){if(IVq!==void 0)return IVq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return IVq=p},{mode:1});_.ci(_.d(function(p){var J=_.nE("script");_.lf(function(){var S;if(S=JSON)S=huq(p.data()),S=_.MD(JSON.stringify(S).replace(/</g,"\\u003C"));var H=p.data(),M=_.E4(H.title).trim().length===0,X=!H.publishDate||H.publishDate.trim().length===0,Z,n,b,F,f=!((Z=H.thumbnail)==null?0:(n=Z.thumbnails)==null?0:n.length)||!((b=H.thumbnail)==null?0:b.thumbnails[0].url)||((F=H.thumbnail)==null?void 0:F.thumbnails[0].url.trim().length)===0;J.value&&S&&!(M||X||f)&&_.i0(J.value,S)},"Vy9K7b");
return _.m("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.m("script",{el:J,type:"application/ld+json"}))},"Ho"),"player-microformat-renderer",{props:{data:_.jr}});
}catch(e){_._DumpException(e)}
try{
var VSs,qrq,Etd;_.lcy=function(p){return p.watch.watchWindowSize};
VSs=function(p,J){var S=document.querySelector(p);S?J(S):setTimeout(function(){VSs(p,J)},1E3)};
qrq=function(p,J,S,H){if(p.isLockupToWatchTransitionEnabled){if(J){var M={};M=(M["watch-next-appears"]="player-watch-next-loaded",M);M["lockup-to-watch"]=p.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";p.viewTransitionCoordinator.registerElement(J,M)}S&&(J={},p.viewTransitionCoordinator.registerElement(S,(J["lockup-to-watch"]="below-lockup-to-watch",J["watch-next-appears"]="below-watch-next-loaded",J)));H&&(S={},p.viewTransitionCoordinator.registerElement(H,
(S["watch-next-appears"]="secondary-watch-next-loaded",S)))}};
_.acD=function(p){return _.Jk({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:p}})};
Etd=new _.Zz("webWatchNextResponseExtensionData");var rcp=function(p){_.gp.call(this);var J=this;this.JSC$23687_watchApi=p;this.observer=null;var S=this.JSC$23687_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Yry(J)});
this.addOnDisposeCallback(function(){J.JSC$23687_watchApi.unsubscribeByKey(S);J.observer&&(J.observer.disconnect(),J.observer=null)});
Yry(this)};
_.Q(rcp,_.gp);
var Yry=function(p){var J,S,H,M,X;_.G(function(Z){if(Z.nextAddress==1){p.observer&&(p.observer.disconnect(),p.observer=null);J=p.JSC$23687_watchApi.getWatchNextResponse();if(!J)return Z.return();S=_.e(J,Etd);return((H=S)==null?0:H.enableCreatorChatbot)&&S.creatorChannelId?_.z("enable_creator_chatbot_link_out")?Z.yield((0,_.Msv)("NSzT5"),6):Z.yield((0,_.Msv)("NSzT5"),5):Z.jumpTo(0)}if(Z.nextAddress!=6)return M=_.jsG,M(S.creatorChannelId),VSs("ytd-watch-metadata",function(n){p.observer=new MutationObserver(function(){var b,
F;(b=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(F=b.closest("yt-button-view-model.ytd-menu-renderer"))==null||F.remove()});
p.observer.observe(n,{childList:!0,subtree:!0})}),Z.jumpTo(0);
X=_.wtu;X(S.creatorChannelId);_.UK(Z)})};var Tw=function(p){_.gp.call(this);this.JSC$23691_watchApi=p;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;xcu(this)};
_.Q(Tw,_.gp);var xcu=function(p){_.G(function(J){if(J.nextAddress==1)return J.yield(ccG(p),2);Ics(p);_.UK(J)})},ccG=function(p){var J,S,H,M,X,Z,n,b,F;
return _.G(function(f){if(f.nextAddress==1)return f.yield(p.JSC$23691_watchApi.playerApi,2);J=f.yieldResult;p.JSC$23691_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){Lu4(p)});
p.JSC$23691_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){p.isShelfVisible?p6T(p):dh(p)});
S=_.rl().subscribe(function(){p.isTheaterMode=_.US(_.rl().getState());p.isTheaterMode?dh(p):Jn7(p)});
H=p.JSC$23691_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ics(p)});
M=function(O){p.onCueRangeEnter(O)};
J.addEventListener("onCueRangeEnter",M);X=function(O){p.onCueRangeExit(O)};
J.addEventListener("onCueRangeExit",X);Z=function(){p.isSeeking=!0};
J.addEventListener("SEEK_TO",Z);n=function(){p.onSeekComplete()};
J.addEventListener("SEEK_COMPLETE",n);b=function(){p.onAdStart()};
J.addEventListener("onAdStart",b);F=function(){p.onAdComplete()};
J.addEventListener("onAdComplete",F);p.addOnDisposeCallback(function(){S();p.JSC$23691_watchApi.unsubscribeByKey(H);J.removeEventListener("onCueRangeEnter",M);J.removeEventListener("onCueRangeExit",X);J.removeEventListener("SEEK_TO",Z);J.removeEventListener("SEEK_COMPLETE",n);J.removeEventListener("onAdStart",b);J.removeEventListener("onAdComplete",F)});
_.UK(f)})},SD7=function(p){var J,S,H,M,X,Z,n,b,F;
return(X=(J=p.contents)==null?void 0:(S=J.twoColumnWatchNextResults)==null?void 0:(H=S.results)==null?void 0:(M=H.results)==null?void 0:M.contents)==null?void 0:(Z=X.find(function(f){var O,A,P;return(O=f.itemSectionRenderer)==null?void 0:(A=O.contents)==null?void 0:(P=A[0])==null?void 0:P.shoppingTimelyShelfViewModel}))==null?void 0:(n=Z.itemSectionRenderer)==null?void 0:(b=n.contents)==null?void 0:(F=b[0])==null?void 0:F.shoppingTimelyShelfViewModel},Ics=function(p){var J;
_.G(function(S){if(S.nextAddress==1)return(J=p.JSC$23691_watchApi.getWatchNextResponse())?S.yield(Lu4(p),2):S.return();p.shoppingTimelyShelfViewModel=SD7(J);H3D(p);MhD(p);_.UK(S)})},H3D=function(p){var J,S=(J=p.shoppingTimelyShelfViewModel)==null?void 0:J.offerIdToVariants;
S&&(J=S.filter(function(H){return H.key&&H.value}).map(function(H){return[H.key,
H.value]}),p.variantsMap=new Map(J))},MhD=function(p){var J,S,H,M,X,Z;
_.G(function(n){if(n.nextAddress==1)return(S=(J=p.shoppingTimelyShelfViewModel)==null?void 0:J.cueRanges)?n.yield(p.JSC$23691_watchApi.playerApi,2):n.return();H=n.yieldResult;p.cueRanges=S;M=_.K(S);for(X=M.next();!X.done;X=M.next())Z=X.value,Z.startTime!==void 0&&Z.endTime!==void 0&&Z.id!==void 0&&H.addCueRange("shopping_timely_shelf"+Z.id,X6T(Z.startTime),X6T(Z.endTime));_.UK(n)})},X6T=function(p){return Number(p.seconds||0)+(p.nanos||0)/1E9};
Tw.prototype.onCueRangeEnter=function(p){if(p.startsWith("shopping_timely_shelf")&&(this.activeCueId=p,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){p=p.substring(21);var J,S,H=(J=this.variantsMap)==null?void 0:(S=J.get(p))==null?void 0:S.shelf;H&&(this.JSC$23691_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",H),p6T(this))}};
Tw.prototype.onCueRangeExit=function(p){p.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||dh(this))};
Tw.prototype.onSeekComplete=function(){this.isSeeking=!1;Jn7(this)};
var p6T=function(p){p.shoppingTimelyShelfViewModel&&(p.isShelfVisible=!0,_.XK.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},dh=function(p){p.shoppingTimelyShelfViewModel&&(p.isShelfVisible=!1,_.XK.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},Lu4=function(p){var J,S,H,M,X;
return _.G(function(Z){if(Z.nextAddress==1)return Z.yield(p.JSC$23691_watchApi.playerApi,2);J=Z.yieldResult;if(p.cueRanges)for(S=_.K(p.cueRanges),H=S.next();!H.done;H=S.next())M=H.value,M.id&&(X="shopping_timely_shelf"+M.id,J.removeCueRange(X));p.JSC$23691_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});dh(p);p.shoppingTimelyShelfViewModel=void 0;p.cueRanges=void 0;p.variantsMap=void 0;p.isSeeking=!1;p.activeCueId=void 0;_.UK(Z)})};
Tw.prototype.onAdStart=function(){this.isAdPlaying=!0;dh(this)};
Tw.prototype.onAdComplete=function(){this.isAdPlaying=!1;Jn7(this)};
var Jn7=function(p){if(p.activeCueId)p.onCueRangeEnter(p.activeCueId);else dh(p)};var n3p=function(p){_.gp.call(this);var J=this;this.JSC$23698_watchApi=p;p=_.j7(_.rl(),_.Jjs,function(){i3G(J)});
this.addOnDisposeCallback(p);p=_.j7(_.rl(),_.lcy,function(){i3G(J)});
this.addOnDisposeCallback(p);Rut(this);Kyy(this);Z3s()};
_.Q(n3p,_.gp);var Rut=function(p){var J=function(H){_.rl().dispatch(_.D1t(H.matches))},S=window.matchMedia("(max-width: "+(999+_.Ik())+"px)");
S.addListener(J);p.addOnDisposeCallback(function(){S.removeListener(J)});
J(S)},Kyy=function(p){p.JSC$23698_watchApi.registerActionHandler("yt-window-resized",function(){Z3s()});
p.addOnDisposeCallback(function(){p.JSC$23698_watchApi.unregisterActionHandler("yt-window-resized")})},Z3s=function(){var p=_.FV();
_.rl().dispatch(_.Jk({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:p.width,height:p.height}}}))},i3G=function(p){var J;
_.G(function(S){if(S.nextAddress==1)return S.yield(p.JSC$23698_watchApi.playerApi,2);J=S.yieldResult;J.setSize(NaN,NaN);_.UK(S)})};var GID=function(p){_.gp.call(this);var J=_.vO().resolve(_.cD);qrq(J,p.getElement("PLAYER_CONTAINER"),p.getElement("BELOW_THE_PLAYER"),p.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var S=p.getElement("PLAYER_CONTAINER"),H=p.getElement("BELOW_THE_PLAYER"),M=p.getElement("SECONDARY");J.isLockupToWatchTransitionEnabled&&(S&&_.Dp(J.viewTransitionCoordinator,S),H&&_.Dp(J.viewTransitionCoordinator,H),M&&_.Dp(J.viewTransitionCoordinator,M))})};
_.Q(GID,_.gp);_.uk=function(p){_.Gl.call(this);var J=this;this.rootElement=p;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return J.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(S){J.initOrDisposeActiveModules(S)}));
this.onAttached()};
_.Q(_.uk,_.Gl);_.R=_.uk.prototype;_.R.getRoot=function(){return this.rootElement};
_.R.getElement=function(p){return this.rootElement.getElement(p)};
_.R.setPlayerResponse=function(p){this.playerResponse=p;this.publish("PLAYER_RESPONSE_UPDATED",p)};
_.R.getPlayerResponse=function(){return this.playerResponse};
_.R.setWatchNextResponse=function(p){this.watchNextResponse===p?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=p,this.publish("WATCH_NEXT_RESPONSE_UPDATED",p))};
_.R.getWatchNextResponse=function(){return this.watchNextResponse};
_.R.registerActionHandler=function(p,J){var S=this;if(_.z("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.RZ(_.XK.getInstance(),(H[p]=J,H),this.getRoot())}else this.actionHandlers.has(p)||(this.actionHandlers.set(p,[]),H={},_.RZ(_.XK.getInstance(),(H[p]=function(){var M=_.Yp.apply(0,arguments);return(S.actionHandlers.get(p)||[]).map(function(X){return X.apply(null,_.dW(M))})},H),this.getRoot())),this.actionHandlers.get(p).push(J)};
_.R.unregisterActionHandler=function(p){if(_.z("web_watch_controller_reg_multiple_handlers_killswitch")){var J={};_.KE(_.XK.getInstance(),(J[p]=!0,J),this.getRoot())}else(J=this.actionHandlers.get(p))?(J.pop(),J.length===0&&(J={},_.KE(_.XK.getInstance(),(J[p]=!0,J),this.getRoot()),this.actionHandlers.delete(p))):_.xQ(new _.TG("Attempted to unregister an action handler which is not registered.",p))};
_.R.addPageDisposeJob=function(p){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.svs(this.rootElement.pageDisposeJobs,p)};
_.R.removePageDisposeJob=function(p){this.rootElement.pageDisposeJobs&&_.uw(this.rootElement.pageDisposeJobs,p)};
_.R.dispatchEvent=function(p,J){_.cf(this.rootElement,p,J)};
_.R.provideRenderingData=function(p,J){this.rootElement.provideRenderingData(p,J)};
_.R.scrollWatchTo=function(p,J){var S;(S=this.watchScrollManager)==null||S.scrollWatchTo(p,J)};
_.R.focusOnPlayer=function(){var p=this.getElement("PLAYER");_.mN(p,function(){if(p&&p.firstElementChild){var J=p.querySelector(".html5-video-player");J&&(_.Q$(_.vO().resolve(_.Am)),J.focus())}else _.xQ(Error("gp"))})};
_.R.subscribeToActiveChanged=function(p,J){J=J===void 0?!0:J;var S=_.j7(_.rl(),_.UVD,function(H){p(H)});
J&&p(_.UVD(_.rl().getState()));return S};
_.R.isActive=function(){return _.UVD(_.rl().getState())};
_.R.onAttached=function(){var p=_.z("external_fullscreen");_.z("use_unified_flag_accessor")&&(p=_.vO().resolve(_.Vnj).retriever.getFlag(_.Bgm));(p||_.wY("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var b3T=function(p){return p.getRoot().is==="ytd-watch-flexy"||p.getRoot().is==="ytd-watch-grid"},lk=function(p){return p.getRoot().is==="ytd-watch-fixie"};
_.uk.prototype.initPersistentModules=function(){if(lk(this)||b3T(this)&&_.z("kevlar_watch_flexy_theater_manager")){var p=new _.Gr4(this);_.$c(this,p)}p=new _.Lgq(this);_.$c(this,p);p=new _.sQ(this);_.$c(this,p);p=new _.jRG(this);_.$c(this,p);p=new _.k1(this);_.$c(this,p);p=new _.gh(this);_.$c(this,p);if(lk(this)||b3T(this)&&_.z("kevlar_watch_flexy_playlist_manager"))p=new _.gtd(this),_.$c(this,p);_.z("web_thumbnail_to_watch_transition")&&(p=new GID(this),_.$c(this,p))};
_.uk.prototype.initOrDisposeActiveModules=function(p){p?(this.watchScrollManager=new _.N5(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.FuT(this)),_.z("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new Tw(this)),this.activeModules.push(new _.nOT(this)),lk(this)&&this.activeModules.push(new n3p(this)),this.activeModules.push(new _.Tos(this)),this.activeModules.push(new _.Rdu(this)),(lk(this)||_.z("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.vOp(this)),this.activeModules.push(new _.zda(this)),(lk(this)||_.z("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.uVy(this)),(lk(this)||_.z("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Cos(this)),_.z("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.gZy(this),this.activeModules.push(this.watchCinematicManager)),_.z("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.WuG(this)),_.z("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.xwp(this)),p=_.z("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.z("kevlar_watch_flexy_comments_manager")&&!p&&this.activeModules.push(new _.q4y(this)),_.z("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Uqs(this)),this.activeModules.push(new _.AkT(this)),this.activeModules.push(new _.fct(this)),_.z("web_enable_timely_actions")&&this.activeModules.push(new _.oZs(this)),_.z("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.EOs(this)),_.z("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.kvT(this)),_.z("web_fullscreen_components")&&this.activeModules.push(new _.zas(this)),_.z("web_player_rtr_ctrls")&&this.activeModules.push(new _.rPs(this)),(_.z("enable_creator_chatbot")||_.z("enable_creator_chatbot_link_out"))&&this.activeModules.push(new rcp(this))):(_.R7(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.uk.prototype.disposeInternal=function(){_.Gl.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.vh.Object.defineProperties(_.uk.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var AyG,Jf,PID,zmy,oov,em7,$0u,W9G;AyG=function(){var p=_.mY();p.info||(p.info={});return p.info};
Jf=function(p){return Math.round(_.OJ()+p)};
PID=function(){var p;if(_.z("csi_use_performance_navigation_timing")){var J,S,H,M=_.fl==null?void 0:(p=_.fl.getEntriesByType)==null?void 0:(J=p.call(_.fl,"navigation"))==null?void 0:(S=J[0])==null?void 0:(H=S.toJSON)==null?void 0:H.call(S);M?(M.requestStart=Jf(M.requestStart),M.responseEnd=Jf(M.responseEnd),M.redirectStart=Jf(M.redirectStart),M.redirectEnd=Jf(M.redirectEnd),M.domainLookupEnd=Jf(M.domainLookupEnd),M.connectStart=Jf(M.connectStart),M.connectEnd=Jf(M.connectEnd),M.responseStart=Jf(M.responseStart),
M.secureConnectionStart=Jf(M.secureConnectionStart),M.domainLookupStart=Jf(M.domainLookupStart),M.isPerformanceNavigationTiming=!0,p=M):p=_.fl.timing}else p=_.z("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.fl.timing)):_.fl.timing;return p};
zmy=function(){if(_.fl.getEntriesByType){var p=_.fl.getEntriesByType("paint");if(p=_.t9(p,function(S){return S.name==="first-paint"}))return Jf(p.startTime)}var J;
_.z("csi_use_performance_navigation_timing")?J=_.fl.getEntriesByType("first-paint")[0].startTime:J=_.fl.timing.msFirstPaint;return J?Math.max(0,J):0};
oov=function(){var p=window.location.protocol,J=_.fl.getEntriesByType("resource");J=_.MU(J,function(S){return S.name.indexOf(p+"//fonts.gstatic.com/s/")===0});
(J=$0u(J,function(S,H){return H.duration>S.duration?H:S}))&&J.startTime>0&&J.responseEnd>0&&(_.AP("wffs",Jf(J.startTime)),_.AP("wffe",Jf(J.responseEnd)))};
em7=function(p,J){p=document.querySelector(p);if(!p)return!1;var S="",H=p.nodeName;H==="SCRIPT"?(S=p.src,S||(S=p.getAttribute("data-timing-href"))&&(S=window.location.protocol+S)):H==="LINK"&&(S=p.href);_.S0(document)&&p.setAttribute("nonce",_.S0(document));return S?(p=_.fl.getEntriesByName(S))&&p[0]&&(p=p[0],S=_.OJ(),_.AP("rsf_"+J,S+Math.round(p.fetchStart)),_.AP("rse_"+J,S+Math.round(p.responseEnd)),p.transferSize!==void 0&&p.transferSize===0)?!0:!1:!1};
_.Qrs=function(p,J){_.c5(function(){_.v9("").info.actionType=p;J&&_.rY("TIMING_AFT_KEYS",J);_.rY("TIMING_ACTION",p);var S=_.NBX(_.jn("TIMING_INFO",{}));Object.keys(S).length>0&&_.P9(S);S={isNavigation:!0,actionType:_.e3k(_.jn("TIMING_ACTION"))};var H=_.jn("PREVIOUS_ACTION");H&&(S.previousAction=_.e3k(H));if(H=_.jn("CLIENT_PROTOCOL"))S.httpProtocol=H;if(H=_.jn("CLIENT_TRANSPORT"))S.transportProtocol=H;(H=_.C1())&&H!=="UNDEFINED_CSN"&&(S.clientScreenNonce=H);H=_.kbL();if(H===1||H===-1)S.isVisible=!0;
H=_.vik().loadType==="cold";var M=AyG();H||(H=M.yt_lt==="cold");if(H){S.loadType="cold";H=AyG();M=PID();var X=_.OJ(),Z=_.jn("CSI_START_TIMESTAMP_MILLIS",0);Z>0&&!_.z("embeds_web_enable_csi_start_override_killswitch")&&(X=Z);X&&(_.AP("srt",M.responseStart),H.prerender!==1&&_.BBL(X));H=zmy();H>0&&_.AP("fpt",H);H=PID();H.isPerformanceNavigationTiming&&_.P9({performanceNavigationTiming:!0},void 0);_.AP("nreqs",H.requestStart,void 0);_.AP("nress",H.responseStart,void 0);_.AP("nrese",H.responseEnd,void 0);
H.redirectEnd-H.redirectStart>0&&(_.AP("nrs",H.redirectStart,void 0),_.AP("nre",H.redirectEnd,void 0));H.domainLookupEnd-H.domainLookupStart>0&&(_.AP("ndnss",H.domainLookupStart,void 0),_.AP("ndnse",H.domainLookupEnd,void 0));H.connectEnd-H.connectStart>0&&(_.AP("ntcps",H.connectStart,void 0),_.AP("ntcpe",H.connectEnd,void 0));H.secureConnectionStart>=_.OJ()&&H.connectEnd-H.secureConnectionStart>0&&(_.AP("nstcps",H.secureConnectionStart,void 0),_.AP("ntcpe",H.connectEnd,void 0));_.fl&&"getEntriesByType"in
_.fl&&oov();H=[];if(document.querySelector&&_.fl&&_.fl.getEntriesByName)for(var n in W9G)W9G.hasOwnProperty(n)&&(M=W9G[n],em7(n,M)&&H.push(M));if(H.length>0)for(S.resourceInfo=[],n=_.K(H),H=n.next();!H.done;H=n.next())S.resourceInfo.push({resourceCache:H.value})}_.P9(S);S=_.F6();S.preLoggedGelInfos||(S.preLoggedGelInfos=[]);n=S.preLoggedGelInfos;S=_.O73();H=void 0;for(M=0;M<n.length;M++)if(X=n[M],X.loadType){H=X.loadType;break}if(_.vik().loadType==="cold"&&(S.loadType==="cold"||H==="cold")){H=_.fNs();
M=_.F6();M=M.gelTicks?M.gelTicks:M.gelTicks={};for(var b in H)if(!(b in M))if(typeof H[b]==="number")_.AP(b,_.zv(b));else if(_.z("log_repeated_ytcsi_ticks"))for(X=_.K(H[b]),Z=X.next();!Z.done;Z=X.next())Z=Z.value,_.AP(b.slice(1),Z);b={};H=!1;n=_.K(n);for(M=n.next();!M.done;M=n.next())H=M.value,_.sB(S,H),_.sB(b,H),H=!0;H&&_.P9(b)}_.dIw(!0);b=_.jn("TIMING_ACTION");_.Id("ytglobal.timingready_")&&b&&_.jWi()&&_.TBw()&&_.h3X()})()};
$0u=function(p,J){return Array.prototype.reduce.call(p,J,{duration:0})};
W9G={'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 CIG={};CIG.YtVisibilityRootBehavior=[_.QUE.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.iW(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.jn("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var p=_.jn("INNERTUBE_CLIENT_NAME")!=="WEB";_.z("kevlar_use_vimio_behavior")&&p&&_.rAo()}}];_.Sz={};_.Sz.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}}],
CIG.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.qr();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(p){var J=this;this.pageCount+=1;_.z("kevlar_use_vimio_behavior")&&(_.jn("INNERTUBE_CLIENT_NAME")==="WEB"?_.wg.addJob(function(){J.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(p)},
loadPage_:function(p){this.data=p},
ytPageBehaviorActiveObserver_:function(p){var J=this;_.z("kevlar_use_vimio_behavior")&&(p?_.jn("INNERTUBE_CLIENT_NAME")==="WEB"?_.wg.addJob(function(){J.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(p){if(!this.setScrollTopJobId_){var J=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){J.setScrollTopJobId_=0;var S=_.vO().resolve(_.F9(_.Am));S&&_.Q$(S);this.getPageScrollingElement().scrollTop=p}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Dv(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var OAd;var ph=function(){var p=_.T.apply(this,arguments)||this;p.playerListenerConfig=null;p.actionMap={"yt-show-watch-page-survey":"openSurvey"};return p};
_.Q(ph,_.T);_.R=ph.prototype;_.R.dataChanged=function(){var p=this,J=_.IY();J&&J.getPlayerPromise().then(function(H){p.maybeRemovePlayerListeners(H)});
var S=this.data&&this.data.survey;S&&((S=(S=S.singleOptionSurveyRenderer||S.checkboxSurveyRenderer||S.multiStageSurveyRenderer)&&S.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(J,S):this.openSurvey())};
_.R.triggerWatchPageSurvey=function(p,J){var S=this,H,M,X,Z,n,b,F,f,O;return _.G(function(A){if(A.nextAddress==1)return p?A.yield(p.getPlayerPromise(),2):A.return();S.player=A.yieldResult;if(!S.player)return A.return();H={};M=_.K(J);for(X=M.next();!X.done;X=M.next())Z=X.value,n=_.K(S.createEventListenerPair(Z)),b=n.next().value,F=n.next().value,f=b,O=F,f&&O&&(H[f]=O,S.ytPlayerListenerBehavior.listenToPlayerEvent(S.player,f,O));S.playerListenerConfig=H;_.UK(A)})};
_.R.createEventListenerPair=function(p){var J=p.playbackEventTrigger;return J?this.handlePlaybackTrigger(J):(p=p.watchTimeTrigger)?this.handleWatchTimeTrigger(p):[void 0,void 0]};
_.R.handleWatchTimeTrigger=function(p){var J=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var S=p.videoWatchFraction,H=p.watchTimeSec;return H&&S?["onVideoProgress",function(){J.player&&J.isWatchTimeConditionMet(J.player,S,H)&&J.showSurvey()}]:[void 0,
void 0]};
_.R.isWatchTimeConditionMet=function(p,J,S){var H=p.getProgressState(),M=H.current-this.lastKnownPlaybackPosition;M<5&&(this.accumulatedMediaTime+=M);this.lastKnownPlaybackPosition=H.current;H=Math.round(this.accumulatedMediaTime/H.duration*1E3)/1E3;return p.getPresentingPlayerType&&p.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>S||H>J)};
_.R.handlePlaybackTrigger=function(p){var J=this;p=p.playbackEvent;if(p==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var S="onStateChange";var H=function(M){M===0&&J.showSurvey()}}else p==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(S="onVideoProgress",H=function(M){J.player&&J.player.getPresentingPlayerType&&J.player.getPresentingPlayerType()===1&&M&&J.showSurvey()}):p==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(S="onAdEnd",H=this.showSurvey);
return[S,H]};
_.R.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.R.openSurvey=function(){var p=this,J=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.zu$(!!J));_.wg.addJob(function(){p.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:J}})},0,0)};
_.R.maybeRemovePlayerListeners=function(p){if(this.playerListenerConfig){for(var J=_.K(Object.keys(this.playerListenerConfig)),S=J.next();!S.done;S=J.next())S=S.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(p,S,this.playerListenerConfig[S]);this.playerListenerConfig=null}};
ph.prototype.dataChanged=ph.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],ph.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],ph.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],ph.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],ph.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ph.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],ph.prototype,"playerListenerConfig",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],ph.prototype,"lastKnownPlaybackPosition",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],ph.prototype,"accumulatedMediaTime",void 0);_.V([_.N(),_.Y("design:type",Object)],ph.prototype,"player",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ph.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],ph);
_.l(ph,"ytd-survey-trigger-renderer",function(){if(OAd!==void 0)return OAd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return OAd=p},{mode:1});
}catch(e){_._DumpException(e)}
try{
var RZP;_.vb=function(p){var J=document.createElement("link");_.n_(J,p,"stylesheet");document.head.appendChild(J)};
_.fj=function(p,J){var S,H;return _.G(function(M){S=document.createElement("div");S.id=p.id;p.className&&(S.className=p.className);H=p.element;if(!H)throw Error("gk");if(p.location==="prepend")H.prepend(S);else if(p.location==="appendChild")H.appendChild(S);else if(p.location==="after")H.after(S);else throw Error("hk");return M.return(_.VS(S,J,"kj"))})};
_.OW=function(p){var J;return _.G(function(S){(J=document.getElementById(p))&&J.remove();_.UK(S)})};
_.Ab=function(p,J){var S=document.querySelector(p);S?J(S):setTimeout(function(){_.Ab(p,J)},1E3)};
_.K5I=function(p,J,S){var H;_.G(function(M){if(M.nextAddress==1)return(H=document.getElementById(p))?M.jumpTo(2):M.yield(RZP(p,J,S),2);if(H=document.getElementById(p))H.style.display="block";_.UK(M)})};
RZP=function(p,J,S){return _.G(function(H){return H.return(new Promise(function(M){_.Ab("div #panels",function(X){_.fj({element:X,location:"appendChild",id:p,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+S},J);M()})}))})};_.Pb=_.d(function(p){var J=p.text;var S=p.onClick;var H=p.color;var M=p.backgroundColor;var X=p.buttonSize;var Z=p.disabled;var n=p.iconName;var b=p.iconSize;var F=p.className;var f=p.iconClassName;p=p.ariaLabel;var O=_.Kb(function(P){S(P)}),A={};
return _.m("button",{class:_.XB("ytpStandardButtonsHost",(A.ytpStandardButtonsLarge=function(){return(X==null?void 0:X())==="large"},A),F),
"on:click":O,style:_.G7({color:H,"background-color":M}),disabled:Z,"aria-label":p},_.m(_.v,{cond:n,then:function(){return _.m(_.bn,{className:_.XB("ytpStandardButtonsIconContainer",f),icon:n,size:b})}}),J)},"jj");_.ZIp=_.d(function(p){var J,S,H={};return _.m("div",{class:_.XB("ytprototypesEngagementPanelComponentHost",(H.ytprototypesEngagementPanelComponentHostMweb=p.isMweb,H),p.className),id:p.id},_.m("div",{class:_.XB("ytprototypesEngagementPanelComponentEngagementPanelHeader",p.headerClassName)},_.m("div",null,p.header()),_.m("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.m("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(J=p.HeaderButton)==null?void 0:J.call(p)),
_.m(_.Pb,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var M;(M=p.onHide)==null||M.call(p);var X;if((X=p.preventDefault)==null||!X.call(p))if(M=p.id(),M=document.getElementById(M))M.style.display="none"}}))),_.m("div",{class:_.XB("ytprototypesEngagementPanelComponentEngagementPanelContent",p.contentClassName),
style:function(){var M,X;return"height: "+(((M=p.height)==null?0:M.call(p))||((X=p.isMweb)==null?0:X.call(p))?"100%":"800px")+";"}},p.content()),_.m("div",null,(S=p.Footer)==null?void 0:S.call(p)))},"lj");
}catch(e){_._DumpException(e)}
try{
var iAq=new _.Zz("replaceFeedContentAction");var Rmd;var K9y;var ZAs=function(){return _.T.apply(this,arguments)||this};
_.Q(ZAs,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ZAs.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ZAs.prototype,"data",void 0);_.V([_.gw({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],ZAs);
_.l(ZAs,"ytd-sub-feed-option-renderer",function(){if(K9y!==void 0)return K9y;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return K9y=p},{mode:1});var noy;var r8=function(){return _.T.apply(this,arguments)||this};
_.Q(r8,_.T);r8.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],r8.prototype,"ytRendererStamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],r8.prototype,"data",void 0);_.V([_.gw({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],r8);
_.l(r8,"ytd-sub-feed-selector-renderer",function(){if(noy!==void 0)return noy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return noy=p},{mode:1});var j4=function(){return _.T.apply(this,arguments)||this};
_.Q(j4,_.T);
j4.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}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],j4.prototype,"data",void 0);_.V([_.gw({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],j4);
_.l(j4,"ytd-browse-feed-actions-renderer",function(){if(Rmd!==void 0)return Rmd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Rmd=p},{mode:1});var G6p;var bAD;var w8=function(){return _.T.apply(this,arguments)||this};
_.Q(w8,_.T);w8.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],w8.prototype,"data",void 0);_.V([_.gw({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],w8);
_.l(w8,"ytd-mini-channel-renderer",function(){if(bAD!==void 0)return bAD;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return bAD=p},{mode:1});var m0T;var xM=function(){return _.T.apply(this,arguments)||this};
_.Q(xM,_.T);xM.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xM.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],xM);
_.l(xM,"ytd-vertical-channel-section-renderer",function(){if(m0T!==void 0)return m0T;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return m0T=p},{mode:1});var cT=function(){return _.T.apply(this,arguments)||this};
_.Q(cT,_.T);cT.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],cT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],cT.prototype,"data",void 0);_.V([_.gw({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],cT);
_.l(cT,"ytd-browse-secondary-contents-renderer",function(){if(G6p!==void 0)return G6p;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
return G6p=p},{mode:1});var F9a;var Ip=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};p.notActive=!1;p.isConstrainedList=!1;p.marginSettings=0;return p};
_.Q(Ip,_.T);_.R=Ip.prototype;
_.R.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]]",marginSettings:"[[marginSettings]]"},matcher:function(p){var J;return(p==null?void 0:(J=p.webComponentHint)==null?void 0:J.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?
"yt-section-list-renderer":"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.R.getPath=function(p,J){var S="data.tabs.#"+J+".";p.tabs[J].tabRenderer?S+="tabRenderer.":p.tabs[J].expandableTabRenderer&&(S+="expandableTabRenderer.");return S+"content.sectionListRenderer"};
_.R.computeDisplayedContent=function(p){this.unlinkPaths("content");if(p&&p.tabs)for(var J=p.tabs.length,S=0;S<J;S++){var H=p.tabs[S].tabRenderer||p.tabs[S].expandableTabRenderer;if(H.selected&&H.content)return this.linkPaths("content",this.getPath(p,S)),H.content}return null};
_.R.computeHasSecondaryColumnData=function(p){return!!p&&!!p.secondaryContents};
_.R.onRetrieveLocation=function(p,J){J.locationRetrieved(J.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);p.stopPropagation()};
_.R.onYtServiceRequestSent=function(p,J){_.z("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(J)};
_.R.onYtServiceRequestCompleted=function(p,J){_.z("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(J)};
_.R.onReplaceFeedContentAction=function(p){if(!_.z("replace_feed_content_action_killswitch")&&!this.notActive){var J;(p=(J=_.e(p,iAq))==null?void 0:J.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(p)}};
_.R.handleServiceRequestActions=function(p){if(p=p.actions){p=_.K(p);for(var J=p.next();!J.done;J=p.next()){J=J.value;var S=void 0;((S=_.e(J,iAq))==null?0:S.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.e(J,iAq).items)}}};
Ip.prototype.onYtServiceRequestCompleted=Ip.prototype.onYtServiceRequestCompleted;Ip.prototype.onYtServiceRequestSent=Ip.prototype.onYtServiceRequestSent;Ip.prototype.onRetrieveLocation=Ip.prototype.onRetrieveLocation;_.V([_.B(_.G0),_.Y("design:type",Object)],Ip.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Ip.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ip.prototype,"data",void 0);_.V([_.N({computed:"computeDisplayedContent(data)"}),_.Y("design:type",Object)],Ip.prototype,"content",void 0);
_.V([_.N({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ip.prototype,"hasSecondaryColumnData",void 0);_.V([_.N({value:function(){return window.outerHeight>1024?3:2}}),
_.Y("design:type",Number)],Ip.prototype,"initialCount",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],Ip.prototype,"pageSubtype",void 0);_.V([_.FM("ytd-section-list-renderer"),_.Y("design:type",Object)],Ip.prototype,"listRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],Ip.prototype,"notActive",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Ip.prototype,"isConstrainedList",void 0);
_.V([_.N(),_.Y("design:type",String)],Ip.prototype,"responsiveSizing",void 0);_.V([_.N(),_.Y("design:type",Number)],Ip.prototype,"marginSettings",void 0);_.V([_.GI("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Ip.prototype,"onRetrieveLocation",null);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],Ip.prototype,"onYtServiceRequestSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],Ip.prototype,"onYtServiceRequestCompleted",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Ip);
_.l(Ip,"ytd-two-column-browse-results-renderer",function(){if(F9a!==void 0)return F9a;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return F9a=p},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Lys=function(p){if((p==null?void 0:p.value)===void 0||p==null||!p.unit)return"initial";a:{switch(p.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var J="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":J="%";break a}J=void 0}return J?""+p.value+J:"initial"};_.ci(_.d(function(p){var J=p.data;p=_.K(_.eQ(!1,void 0,"VotqNe"));var S=p.next().value,H=p.next().value;_.ad(function(){_.XK.getInstance().triggerAction("yt-request-timely-shelf-state")});
var M=_.BW(function(){var F,f,O=(F=_.e(J().rendererContext,_.Fj))==null?void 0:(f=F.loggingDirectives)==null?void 0:f.trackingParams;if(O)return _.Az(O)},void 0,"AvMXxb");
_.RZ(_.XK.getInstance(),{"yt-hide-shopping-timely-shelf":function(){H(!1);var F=_.C1(),f=M();F&&f&&_.u7(F,[f])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){H(!0);var F=_.C1(),f=M();F&&f&&_.dI(F,[f])})}});
var X=function(){var F;return(F=J().image)==null?void 0:F.image},Z=function(){var F,f;
return!!((F=X())==null?0:(f=F.sources)==null?0:f.some(function(O){var A;return!!(O==null?0:(A=O.clientResource)==null?0:A.imageName)}))},n=function(){var F;
return((F=J().image)==null?void 0:F.height)||40},b=function(){var F;
return(F=J().image)==null?void 0:F.backgroundColor};
p={};return _.m("yt-shopping-timely-shelf-content-view-model",{el:_.Y2(_.sl(function(){return J().rendererContext})),
class:_.XB("ytShoppingTimelyShelfContentViewModelHost",(p.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(J().image||J().avatar||J().line1)&&S()},p)),
style:_.G7({"--shopping-timely-shelf-content-padding-top":function(){var F;return Lys((F=J().padding)==null?void 0:F.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var F;return Lys((F=J().padding)==null?void 0:F.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var F;return Lys((F=J().padding)==null?void 0:F.start)},
"--shopping-timely-shelf-content-padding-end":function(){var F;return Lys((F=J().padding)==null?void 0:F.end)},
"--yt-shopping-timely-shelf-background-color":function(){return J().backgroundColor!==void 0?_.Bt(J().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var F,f;return((f=(F=J().image)==null?void 0:F.cornerRadius)!=null?f:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return b()!==void 0?_.Bt(b()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var F;return(((F=J().image)==null?void 0:F.width)||40)+"px"}})},_.m(_.v,{cond:X,
then:function(F){var f={};return _.m(_.a4,{preserveHeight:!0,preserveWidth:!0,height:n,data:F,alt:"",className:_.XB("ytShoppingTimelyShelfContentViewModelImage",(f.ytShoppingTimelyShelfContentViewModelIcon=Z,f))})}}),_.m(_.AH,{data:function(){return J().avatar}},{avatarViewModel:_.iF}),_.m("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.m(_.AH,{data:function(){return J().line1}},{shoppingContentLineViewModel:function(F){return _.m(_.ey,{data:F.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.m(_.AH,{data:function(){return J().line2}},{shoppingContentLineViewModel:function(F){return _.m(_.ey,{data:F.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.m("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.m(_.AH,{data:function(){var F;
return(F=J().button)!=null?F:[]}},{buttonViewModel:function(F){var f=F.data;
return _.m(_.D0,{data:f,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(O){f().onTap&&O.stopPropagation()}})}})))},"Io"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.fD}});_.piG={};
_.piG.YtdWatchBehavior=[_.x.YtRendererBehavior,_.AM.YtPlayerListenerBehavior,_.QD.YtRendererstamperBehavior,_.u1.YtActionHandlerBehavior,_.Sz.YtPageBehavior,_.dF.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.wY("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.z("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 _.wY("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_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.z("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.PO("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.PO("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)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.z("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.z("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.z("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.z("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("swatcheroo_enable_ghost_cards")||_.z("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("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 _.z("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("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 _.z("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.z("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(p,J,S){return p&&(J||!S)},
computeShowGhostRelated_:function(p,J,S){return p&&(J||!S)},
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"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.j1(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.j1(["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"||_.z("swa_prov_panels_ks")?p.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(){_.z("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.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;_.z("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.z("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.dQG(function(){return _.cv(p)},this.hostElement);
this.pageDisposeJobs.push(function(){p.youThereManager_.reset()});
_.z("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){p.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.QU;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.z("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));_.z("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.n3(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){_.z("kevlar_watch_flexy_theater_manager")&&(this.theater=p,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(p){!_.z("kevlar_watch_while_v2")&&!_.z("web_watch_pip")||p||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(p){this.active!==void 0&&(this.fullscreen=p,_.z("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(p){this.active!==void 0&&(_.cf(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.z("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 J=this;if(p)if(this.data===p){this.onPageLoadWithSameData_();var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data)}else this.data=p;this.playlist&&_.o5({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Qf("nw");this.loading=!1;_.uS(_.wg,function(){J.initDclkstatus_();var H,M=((H=J.player)==null?void 0:H.getVideoData().cpn)||"";_.eup(function(X,Z){_.UQj(X,Z,M)})})},
onPageLoadWithSameData_:function(){_.z("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(_.z("kevlar_watch_frame0_loading_state")){var J,S,H;p=(J=this.loadingData)==null?void 0:(S=J.endpoint)==null?void 0:(H=S.watchEndpoint)==null?void 0:H.videoId;var M;p&&(M="https://i.ytimg.com/vi/"+p+"/frame0.jpg");_.Jn(this.hostElement).querySelector("#player").style.backgroundImage=M?"url("+M+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var p=_.Jn(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 J,S;(S=(J=this.watchMetadata).updateSentimentBarWidth)==
null||S.call(J);var H,M;(M=(H=this.watchMetadata).resize)==null||M.call(H)}_.z("kevlar_watch_frame0_loading_state")&&(_.Jn(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(p){var J=_.Jn(this.hostElement).querySelector(p);J?_.wG(J,!1):_.xQ(new _.TG("Overscroll monitor not found for component: ",p))},
removeSplitScrollMouseTrap:function(p){var J=_.Jn(this.hostElement).querySelector(p);J?_.xV(J):_.xQ(new _.TG("Disposal component for  overscroll monitoring not found: ",p))},
onLoadingChanged_:function(p){p?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.z("web_thumbnail_to_watch_transition")&&!_.K$e||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.z("web_thumbnail_to_watch_transition")&&!_.K$e||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(p){var J=this;p?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.wg.addLowPriorityJob(function(){J.onWindowResized_(_.FV(!0))})},
updateTheaterModeState_:function(p){if(!_.z("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&&_.tBy()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var p=this.fullBleedPlayer?_.Jn(this.hostElement).querySelector("#player-full-bleed-container"):_.Jn(this.hostElement).querySelector("#player-container-inner");var J=this.getPlayerContainer(),S=_.z("kevlar_watch_while_v2")||_.z("web_watch_pip");J.parentElement!==p&&(S&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.cv(this).appendTo(p,J))},
updateErrorScreenLocation:function(){var p=_.Jn(this.hostElement).querySelector("#error-screen"),J=this.fullBleedPlayer?_.Jn(this.hostElement).querySelector("#player-full-bleed-container"):_.Jn(this.hostElement).querySelector("#player");p.parentElement!==J&&J.appendChild(p)},
deactivateMiniplayerAndResetPlayer:function(){var p=this;return _.G(function(J){if(J.nextAddress==1)return J.yield(_.vO().resolve(_.DF).deactivate(),2);p.updatePlayerLocation();_.UK(J)})},
updateCinematicsLocation:function(){var p=this.getElement("CINEMATICS");if(p){var J=this.getCinematicsLocationContainer();p.parentElement!==J&&J.appendChild(p)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.Jn(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Jn(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(p,J,S){var H=document.documentElement.hasAttribute("dark"),M=!H&&this.cinematicLightTheme;return S||p&&H||J&&H||(J||p)&&M},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var p=this,J;(J=this.watchController)==null||J.setWatchNextResponse(this.data);_.z("kevlar_watch_flexy_comments_manager")||this.initComments_();_.z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.vO().resolve(_.FF).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.z("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.wg.addLowPriorityJob(function(){_.L1(p.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.z("web_watch_start_chat_in_theater_mode")){var S,H,M;if((S=this.data)==null?0:(H=S.contents)==null?0:(M=H.twoColumnWatchNextResults)==null?0:M.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var X,Z;((X=this.data)==null?0:(Z=X.contents)==null?0:Z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(p){var J;(J=this.watchController)==null||J.setPlayerResponse(this.playerData);p&&p.playabilityStatus&&(J=this.isVideoPlayable_(p.playabilityStatus,this.getPlayerOverlays_(this.data)),p=this.isLiveStreamOffline_(p.playabilityStatus),J&&!p||_.mN(this,function(){_.Qf("pbu")}));
this.setPlayerAds_();_.L1(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(p,J){if((_.z("kevlar_watch_while_v2")||_.z("web_watch_pip"))&&this.playerData&&J)return this.playerData.videoDetails},
watchPageActiveChanged_:function(p){_.rl().dispatch(_.acD(this.active));p?this.activate_():this.deactivate_()},
attached:function(){var p=this;this.watchController=new _.uk(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.z("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var J=_.cv(this);_.z("kevlar_disable_prepare_player")||
J.preparePlayer();_.z("kevlar_watch_flexy_playlist_manager")||_.vO().resolve(_.FF).setPlayer(J);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();J={"--ytd-watch-flexy-scrollbar-width":_.Ik()+"px"};this.is==="ytd-watch-grid"&&(_.rl().dispatch(_.Jk({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),J["--ytd-watch-flexy-sidebar-width"]=_.QJq+"px",J["--ytd-watch-grid-horizontal-page-margins"]=_.D6+"px",J["--ytd-watch-grid-columns-top-margins"]=
_.oQp+"px",J["--ytd-watch-grid-min-player-height-medium"]="360px");!_.PO("kv_pl_mx_sz_ks")&&_.PO("kevlar_watch_max_player_width")&&(J["--ytd-watch-flexy-max-player-width-wide-screen"]=_.CSd+"px");_.PO("kevlar_watch_flexy_metadata_height")&&(J["--ytd-watch-flexy-space-below-player"]=_.yVt+"px");this.safeUpdateStyles(J);_.z("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.ZH(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return p.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Jn(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var p=_.Ik(),J=_.ku+p,S=J;this.fixedPanels&&(J+=_.QJq);var H=657+p;p=1327+p;_.Jn(this.hostElement).querySelector("#two-column-query").query="(min-width: "+J+"px)";_.Jn(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(H+"px), (min-height: 630px) and (min-width: ")+(J+"px) and (max-width: ")+(p+"px)");_.Jn(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(p+"px)");
_.Jn(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+S+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var p=_.Jn(this.hostElement).querySelector("#miniplayer-bar").firstChild,J=this.squeezeback&&!_.z("web_watch_squeezeback_player_size_killswitch");return p&&p.active||this.theater||_.z("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||J||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.yF(NaN,NaN):_.BwD(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.BwD(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.iW(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var p=this;this.onWindowResized_(_.FV());_.z("browse_skeleton_removal_on_watch_killswitch")||_.wY("IS_SHELL_LOAD")&&_.fZu();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var J=_.cv(this);J.addEventListener("yt-player-updated",_.n3(this,this.onPlayerUpdated_));J.getPlayerPromise().then(function(S){p.playerApiReady_(S)});
_.z("kevlar_watch_flexy_playlist_manager")||(J=_.vO().resolve(_.FF),_.z("kevlar_watch_observe_playlist_navigations_killswitch")&&J.addEventListener("yt-navigate",_.n3(this,this.onYtNavigate_)),J.setPlaylistComponent(_.Jn(this.hostElement).querySelector("#playlist")),J.addEventListener("yt-playlist-data-updated",_.n3(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.wg.addLowPriorityJob(function(){_.cf(p.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.cv(this).removeEventListener("yt-player-updated",_.n3(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.z("kevlar_watch_flexy_playlist_manager")){var p=_.vO().resolve(_.FF);_.z("kevlar_watch_observe_playlist_navigations_killswitch")&&p.removeEventListener("yt-navigate",_.n3(this,this.onYtNavigate_));
p.cancelVideoSkip();p.removeEventListener("yt-playlist-data-updated",_.n3(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.cf(this.hostElement,"yt-autonav-pause-player",!1);p=_.rG();_.z("kevlar_exit_fullscreen_leaving_watch")&&p&&_.jq(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},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
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,J){J.hasComments?J.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):J.locationRetrieved("/related_ajax",void 0);p.stopPropagation()},
onSubscriptionChanged_:function(p,J){this.player&&(J?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Qrs("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Jn(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Jn(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_();_.z("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.z("kevlar_unified_player")||_.z("kevlar_player_new_bootstrap_adoption"))&&_.Ts()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(p,J){J=J===void 0?!0:J;_.rG()&&_.z("external_fullscreen")&&_.jq(document.documentElement);this.theaterRequested_=p;J&&_.hl("wide",p?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.IV(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.cf(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){_.cL(p,typeof this.player),this.player&&_.cL(p,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var p;((p=this.player)==null?0:p.isFullscreen())?this.player.toggleFullscreen():_.IV(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(p,J){return this.loading?J:!!Object.keys(p).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(p){if(p){p=_.K(p);for(var J=p.next();!J.done;J=p.next())J=J.value,J.youThereRenderer&&_.Vha(this.youThereManager_,J.youThereRenderer)}},
setPlaylistData_:function(p){return p||{}},
userEngagementConfigDataChanged_:function(p){if(p)if(p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var J=this.youThereManager_;_.AV()<p.lowEngagementThresholdMs||_.YDG(J,!0)}else p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.IV(this.hostElement,"yt-autonav-pause-user-engagement",[p])},
isPlayerUnavailable_:function(p,J,S){return!!p&&!this.isVideoPlayable_(p,S)&&!J},
getPlayerOverlays_:function(p){return(p==null?void 0:p.playerOverlays)||null},
isVideoPlayable_:function(p,J){if(!p)return!1;var S=p.status==="OK"||p.status==="LIVE_STREAM_OFFLINE",H=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",p)||this.get("errorScreen.ypcTrailerRenderer",p);p=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",p);var M;J=J==null?void 0:(M=J.playerOverlayRenderer)==null?void 0:M.gatedActionsOverlayRenderer;return!!S||!!H||!!p||!!J},
hasWatchNextResponseErrorRenderer:function(p){var J=this.getPageContents(p),S,H,M,X,Z;return!(p==null?0:(S=p.contents)==null?0:(H=S.twoColumnWatchNextResults)==null?0:H.secondaryResults)&&!!((M=J[0])==null?0:(X=M.itemSectionRenderer)==null?0:(Z=X.contents[0])==null?0:Z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(p){return p?p.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(p,J,S){var H=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",J),M=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];M=_.z("web_no_skip_video_on_verification_checks")?(p==null?void 0:p.status)&&M.includes(p.status):p&&p.status==="AGE_CHECK_REQUIRED";var X=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",p);X==void 0&&(X=!0);!S||this.isVideoPlayable_(p,this.getPlayerOverlays_(J))||
H||M||!X||_.vO().resolve(_.FF).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.sfp()},
onPlayerFeedbackStartRequest_:function(p){_.IV(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:p}])},
onPlayerFeedbackArticleRequest_:function(p){_.IV(this.hostElement,"yt-help-dialog-requested",[p])},
onPlayerYpcContentRequest_:function(){var p,J,S,H,M,X,Z,n,b=((p=this.data)==null?NaN:(J=p.contents)==null?NaN:(S=J.twoColumnWatchNextResults)==null?NaN:(H=S.secondaryResults)==null?NaN:(M=H.secondaryResults)==null?NaN:(X=M.offerModule)==null?NaN:(Z=X.tvfilmOfferModuleRenderer)==null?NaN:(n=Z.actionButtons)==null?NaN:n.length)-1;p=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];J=_.K(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(S=J.next();!S.done;S=J.next())for(S=S.value,H=_.K(p),M=H.next();!M.done;M=H.next())if(M="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+S+M.value,M=this.get(M+"navigationEndpoint",this.data)||this.get(M+"serviceEndpoint",this.data)||this.get(M+"command",this.data)){_.KI(M,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(p){_.cf(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:_.cf(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(p)},
setPlayerState:function(p){_.rl().dispatch(_.bS8(p))},
onPlayerSubscribe_:function(p){_.IV(this.hostElement,"yt-player-subscribe",[p])},
onPlayerUnsubscribe_:function(p){_.IV(this.hostElement,"yt-player-unsubscribe",[p])},
onPlayerAdYtShowToast_:function(p){_.IV(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!_.z("web_watch_move_summary_to_sd")&&!!p},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.z("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var p,J,S,H;this.watchNextSecondaryResults=(p=this.data)==null?void 0:(J=p.contents)==null?void 0:(S=J.twoColumnWatchNextResults)==null?void 0:(H=S.secondaryResults)==null?void 0:H.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var p,J=(p=this.data)==null?void 0:p.engagementPanels;if(J==null?0:J.length){p=null;J=_.K(J);for(var S=J.next();!S.done;S=J.next()){S=S.value;var H=void 0;if(((H=S.engagementPanelSectionListRenderer)==null?void 0:H.targetId)==="engagement-panel-structured-description"){p=S;break}}var M,X,Z;p=(M=p)==null?void 0:(X=M.engagementPanelSectionListRenderer)==null?void 0:(Z=X.content)==null?void 0:Z.structuredDescriptionContentRenderer;if(p==null?0:p.items){M=
[];X=_.K(p.items);for(Z=X.next();!Z.done;Z=X.next()){Z=Z.value;if(!_.z("sd_horizontal_list_show_nav_killswitch")){var n=H=S=J=p=void 0,b=void 0,F=(p=Z.horizontalCardListRenderer)==null?void 0:(J=p.header)==null?void 0:(S=J.richListHeaderRenderer)==null?void 0:(H=S.navigationButton)==null?void 0:(n=H.buttonRenderer)==null?void 0:(b=n.command)==null?void 0:b.commandExecutorCommand;F&&F.commands&&(F.commands=F.commands.filter(function(f){return!_.e(f,_.V9s)}))}(!Z.expandableVideoDescriptionBodyRenderer&&
!Z.videoDescriptionHeaderRenderer||_.z("web_delhi_colorful_sd"))&&M.push(Z)}return{items:M}}}},
constructWarning_:function(p){return{text:_.aR(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;_.cf(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var J=this.getScrollTop()>0;this.gestures_&&(J?this.gestures_.detach():this.gestures_.attach());J!==this.showFullerscreenEdu_&&_.z("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=J,_.cv(this).getPlayerPromise().then(function(S){S.updateFullerscreenEduButtonVisibility(p.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.cf(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var p=this;this.commentsReady=!1;_.wg.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.uS(_.wg,function(){p.setComments_()},1E3)},
setComments_:function(){if(!_.z("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Qf("cmi");_.wg.cancelJob(this.setCommentsJobId_);var p=this.getPageContents(this.data);if(p&&p.length){p=_.K(p);for(var J=p.next();!J.done;J=p.next())if(J=J.value,this.get("itemSectionRenderer.sectionIdentifier",J)==="comment-item-section"){this.comments=J.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.cf(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.z("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Qf("cmc")},
doRemoveComments_:function(){this.comments={};_.z("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.wg.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.wg.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(p,J){var S=_.e(J.endpoint,_.lj);S&&(!(J=this.get("data.currentVideoEndpoint.watchEndpoint"))||S.videoId!==J.videoId||S.playlistId&&S.playlistId!==J.playlistId||S.index!==void 0&&S.index!==J.index||typeof S.startTimeSeconds!=="number"||(p.stopPropagation(),this.setScrollTop(0),_.cv(this).getPlayerPromise().then(function(H){var M=S.startTimeSeconds;H.seekTo(M);H.wakeUpControls();M<H.getDuration()&&H.playVideo()})))},
updatePlayerStartTime_:function(){var p=_.Fys();"t"in p&&(p=_.UQG(p.t),this.player.seekTo(p,!0))},
updateTitleFromWatchNext:function(p){p=this.getPageContents(p);var J,S;(p=_.E4(p==null?void 0:(J=p[0])==null?void 0:(S=J.videoPrimaryInfoRenderer)==null?void 0:S.title))&&_.cf(this.hostElement,"yt-update-title",p)},
updateTitle_:function(p){p=this.get("videoDetails.title",p)||"";_.cf(this.hostElement,"yt-update-title",p)},
syncWithRemoteVideo_:function(p,J,S){if(this.active&&this.player){var H=this.player.getVideoData();if(H.video_id===S&&(S=H.list,_.z("polymer_enable_mdx_queue")&&S&&S.startsWith("RQ")&&(S=void 0),H.video_id!==p||S!=J)){var M;_.z("kevlar_player_watch_endpoint_navigation")?M=_.dt3(_.Wyd(p,J)):M=this.buildWatchEndpoint_(p,J);_.cf(this.hostElement,"yt-navigate",{endpoint:M,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(p,J,S){return _.c9(p,J,S)},
initDclkstatus_:function(){_.yny()},
attachWatchPageSkeleton_:function(){var p=document.querySelector("#watch-page-skeleton");if(p){var J=p.querySelector("#primary-info"),S=p.querySelector("#secondary-info"),H=p.querySelector("#related");J&&_.Jn(this.hostElement).querySelector("#info-skeleton").appendChild(J);S&&_.Jn(this.hostElement).querySelector("#meta-skeleton").appendChild(S);H&&(_.Jn(this.hostElement).querySelector("#related-skeleton").appendChild(H),this.watchNextSkeletonEl_=H);_.CC(p)}},
handlePlayerUpdated_:function(){_.cv(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(p,J){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof J!=="undefined"){var S=this.watchNextSkeletonEl_.children,H=p&&p.indexSplices.length?p.indexSplices[0].index:0;p=Math.min(this.watchNextShownItems.length,S.length);J||(H=0,p=S.length);if(!this.ghostCardsEnabled)for(J=H;J<p;J++)S[J].classList.add("hidden")}},
onPlayerFullscreenChange_:function(p){_.z("external_fullscreen")||_.IV(this.hostElement,"yt-player-fullscreen",[p.fullscreen])},
onFullscreenChange_:function(p){this.fullscreen=p;this.gestures_&&this.gestures_.update(this.fullscreen);var J=_.cv(this);J.getPlayerPromise().then(function(S){S.setFauxFullscreen(!!_.rG())});
this.updateFullBleedElementLocations();p&&(J.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(p,J){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!J},
computeIsDonationShelfCollapsed_:function(p){return p},
computeShouldShowMerchShelf:function(p,J){return J&&!!p},
computeResponseHasComments:function(p){var J,S,H,M,X;return!!(p==null?0:(J=p.contents)==null?0:(S=J.twoColumnWatchNextResults)==null?0:(H=S.results)==null?0:(M=H.results)==null?0:(X=M.contents)==null?0:X.some(function(Z){var n;return(Z==null?void 0:(n=Z.itemSectionRenderer)==null?void 0:n.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(p,J,S,H){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&H?!1:!!p&&!!Object.keys(p).length&&!J},
identity:_.D3,onWindowResized_:function(p){this.windowSize_=p;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(p){var J=this;p&&p.type!=="dataloaded"&&p.type!=="dataupdated"||_.cv(this).getPlayerPromise().then(function(S){var H=S.getPlayerState();H!==5&&H!==0&&(S=1/S.getVideoAspectRatio(),J.videoHeightToWidthRatio_!==S&&(J.videoHeightToWidthRatio_=S))})},
schedulePlayerSizeUpdate_:function(p){var J=this,S=_.z("kevlar_watch_while_v2")||_.z("web_watch_pip"),H=function(){if(J.watchMetadata){var M,X;(X=(M=J.watchMetadata).resize)==null||X.call(M)}_.cv(J).getPlayerPromise().then(function(Z){if(_.z("kevlar_set_internal_player_size")){if(!S||!J.isMiniplayerActive()){var n=J.calculateCurrentPlayerSize_();Z.setInternalSize(n.width,n.height)}}else Z.setSize(NaN,NaN);_.z("kevlar_watch_while")&&J.updateWatchWhileScrollThreshold_()})};
p?H():_.bb(_.wg,H)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(p){this.set("data.survey",p.detail)},
onYtShowSurveyCommand_:function(p){this.set("data.survey",_.e(p,_.TwG).survey)},
onDownloadedVideoDeleted:function(p){var J=this,S,H;return _.G(function(M){if(M.nextAddress==1){if(!J.active||(S=J.playerData)==null||!S.offlineState||J.videoId!==p)return M.return();(H=J.player)==null||H.stopVideo();_.YE().navigatingAwayFromWatchDeletedVideo=!0;_.KI(_.jit,J.hostElement);return M.yield(_.YE().navigationFinishPromise,2)}_.YE().navigatingAwayFromWatchDeletedVideo=!1;_.UK(M)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var p;this.theater?p=_.s0(.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=_.Jn(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&p){var J=this.windowSize_.height>=624,S=this.active?this.getScrollTop():0;!p.active&&J&&S>=this.watchWhileScrollThreshold_?(p.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):p.active&&(!J||S<this.watchWhileScrollThreshold_&&!_.rG())&&(p.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var p=_.Jn(this.hostElement).querySelector("#secondary-inner");if(p){var J=_.Jn(this.hostElement).querySelector("#below"),S=_.Jn(this.hostElement).querySelector("#secondary"),H=_.Jn(this.hostElement).querySelector("#comments");H&&S&&J&&(this.defaultTwoColumnLayout?(p.appendChild(H),S.appendChild(p)):(J.appendChild(H),_.tR(J,p)))}}},
isTwoColumnsChanged_:function(p,J){if(p!==!0||J!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(p=_.Jn(this.hostElement).querySelector("#secondary-inner"))){J=_.Jn(this.hostElement).querySelector("#below");var S=_.Jn(this.hostElement).querySelector("#secondary"),H=_.Jn(this.hostElement).querySelector("#comments");H&&S&&J&&(this.isTwoColumns_?(p.appendChild(H),S.appendChild(p)):(J.appendChild(H),_.tR(J,p)))}}else{p=!_.z("web_watch_enable_fs_squeezeback_panels");
J=_.Jn(this.hostElement).querySelector("#panels");var M=_.Jn(this.hostElement).querySelector("#alerts"),X=_.Jn(this.hostElement).querySelector("#shopping-timely-shelf");S=_.Jn(this.hostElement).querySelector("#playlist");H=_.Jn(this.hostElement).querySelector("#related");var Z=_.Jn(this.hostElement).querySelector("#donation-shelf"),n=_.Jn(this.hostElement).querySelector("#comments"),b=_.Jn(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(M=_.Jn(this.hostElement).querySelector("#secondary-inner"),
p&&(M.appendChild(J),M.appendChild(S),this.aiCompanionEnabled&&b&&M.appendChild(b)),M.appendChild(Z),M.appendChild(H)):(p&&(_.u_(J,M),_.u_(S,M),this.aiCompanionEnabled&&b&&_.u_(b,M),_.u_(X,S)),_.u_(Z,M),n&&_.u_(H,n));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.z("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.z("web_watch_enable_fs_squeezeback_panels")&&_.z("web_watch_theater_chat")){var p=_.Jn(this.hostElement).querySelector("#chat-container"),J=this.theater&&!this.fullscreen||_.z("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&J?(J=_.Jn(this.hostElement).querySelector("#columns"),(p==null?void 0:p.parentElement)!==J&&J.append(p),this.fixedPanels=!0):(this.fixedPanels=
!1,J=_.Jn(this.hostElement).querySelector("#playlist"),p&&J?_.l_(p,J):_.xQ(new _.TG("Missing element when updating chat location",{"chatContainer defined":!!p,"playlist defined":!!J})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(p,J){return _.z("sw_metadata_vis_toggle_ks")?!0:!!p||!!J},
computeForceDarkPanelTheme:function(p){return _.z("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&p:!1},
safeUpdateStyles:function(p){try{_.K3(this.hostElement,p)}catch(J){_.xQ(J)}},
videoHeightToWidthRatioChanged_:function(p,J){J&&(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&&_.cv(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.cv(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.rnq(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(p){var J=_.$t(p)||0;_.ze(p,J+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var p=_.$t("yt-fullerscreen-edu-button-click-count")||0,J=_.$t("yt-fullerscreen-edu-button-shown-count")||0,S=_.PO("external_fullscreen_button_shown_threshold"),H=p>=_.PO("external_fullscreen_button_click_threshold")||J>=S;_.cv(this).getPlayerPromise().then(function(M){M.updateFullerscreenEduButtonSubtleModeState(H)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(p,J){return J},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.vO().resolve(_.FF).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var p=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.wg.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.wg.addLowPriorityJob(function(){p.fullHeightPanelPositionUpdateJobId=0;var J=_.Jn(p.hostElement).querySelector("#secondary"),S=_.Jn(p.hostElement).querySelector("#fixed-secondary");J=J.getBoundingClientRect();var H=J.width;p.swatcherooSqueezeback&&
(H+=_.D6);if(p.swatcherooSqueezeback){var M=_.Jn(p.hostElement).querySelector("#squeezeback-constraining-container");M.style.width=H+"px";M.style.flex="0 0 "+H+"px"}S.style.width=H+"px";S.style.left=J.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var p=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.wg.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.wg.addLowPriorityJob(function(){p.panelMaxHeightUpdateJob_=0;var J;!p.isTwoColumns_||p.theater||p.fullscreen?J=460:J=p.calculateNormalPlayerSize_().height;var S=J+"px";_.z("live_chat_taller_height")&&!p.theater&&(S="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.z("live_chat_medium_height")&&!p.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.z("live_chat_scaled_height")&&!p.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 238px)");p.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":J+"px","--ytd-watch-flexy-chat-max-height":S,"--ytd-watch-flexy-structured-description-max-height":J+"px","--ytd-watch-flexy-comments-panel-max-height":J+"px","--ytd-comments-engagement-panel-content-height":J+"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_&&_.JP(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(p){var J=_.Jn(this.hostElement).querySelector("#engagement-panel-scrim");p?J.addEventListener("tap",_.n3(this,this.onEngagementPanelScrimClick_)):J.removeEventListener("tap",_.n3(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(p){if(this.hostElement.contains(p)&&!this.scrollToAnimation_.isAnimating()){var J=p.offsetTop-24;p=p.offsetTop+p.offsetHeight+24;var S=this.getPageScrollingElement(),H=this.getScrollTop(),M=H+S.clientHeight-56;if(J<H+56)J-=56;else if(p>M)J=p-S.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,J),500)}},
onYtSignalActionScrollToComments:function(){var p=this.hostElement.querySelector("#comments");if(p&&!this.scrollToAnimation_.isAnimating()){p=p.offsetTop-56-24;if(_.z("kevlar_comment_teaser_scroll_to_midpoint")&&(p-=_.Bs().height/3,p<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,p),500)}},
onYtEngagementPanelVisibleChanged:function(p,J,S){if(this.active&&this.trackEngagementPanelVisibility&&!_.kIt.includes(S)){if(J==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.L1(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var H=_.vO().resolve(_.JY);this.visiblePanelIdentifiers_.forEach(function(M){M!==S&&H.hidePanel({identifier:M})})}this.visiblePanelIdentifiers_.add(S)}J!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&J!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(S);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(p){return p?"":"watch-active-metadata"},
computeNewMetadataClass:function(p){return p?"watch-active-metadata":""},
computeIsSingleColumn:function(p,J){return J&&!p},
computeFullBleedPlayer:function(p,J,S){return _.z("external_fullscreen")&&p||J||S},
computeDefaultLayout:function(p){return!p},
computeDefaultTwoColumnLayout:function(p,J){return!p&&J},
updatePanelsLocation:function(){if(_.z("web_watch_enable_fs_squeezeback_panels")){var p=_.Jn(this.hostElement).querySelector("#below"),J=_.Jn(this.hostElement).querySelector("#panels"),S=_.Jn(this.hostElement).querySelector("#playlist"),H=_.Jn(this.hostElement).querySelector("#chat-container"),M=_.Jn(this.hostElement).querySelector("#panels-full-bleed-container"),X=_.Jn(this.hostElement).querySelector("#secondary-inner"),Z=_.Jn(this.hostElement).querySelector("#shopping-timely-shelf"),n=_.Jn(this.hostElement).querySelector("#persistent-panel-container");
if(p&&J&&S&&H&&M&&X&&Z&&(this.aiCompanionEnabled?n:1)){var b=this.fullscreen||this.theater&&this.iMaxTheaterMode,F=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;F?(F=_.Jn(this.hostElement).querySelector("#columns"),(H==null?void 0:H.parentElement)!==F&&F.append(H),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):b?M.appendChild(H):this.isTwoColumns_?_.tR(X,H):_.tR(p,H);b?(M.appendChild(J),M.appendChild(S),
this.aiCompanionEnabled&&n&&M.appendChild(n)):(this.isTwoColumns_?(_.tR(X,J),_.tR(X,S),this.aiCompanionEnabled&&n&&_.tR(X,n)):(_.tR(p,J),_.tR(p,S),this.aiCompanionEnabled&&n&&_.tR(p,n)),_.tR(p,Z))}}},
swatcherooUpdatePanelsLocation:function(p,J,S,H,M,X){if(this.is==="ytd-watch-grid"){J=p&&!J;this.swatcherooSplitScroll&&(J?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));S=_.Jn(this.hostElement).querySelector("#panels");var Z=_.Jn(this.hostElement).querySelector("#playlist"),n=_.Jn(this.hostElement).querySelector("#persistent-panel-container"),
b=_.Jn(this.hostElement).querySelector("#fixed-secondary"),F=_.Jn(this.hostElement).querySelector("#fixed-below"),f=_.Jn(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),O=_.Jn(this.hostElement).querySelector("#chat-container");X&&(p?(b.appendChild(S),this.aiCompanionEnabled&&n&&b.appendChild(n)):(F.appendChild(S),this.aiCompanionEnabled&&n&&F.appendChild(n)));M?p?b.appendChild(O):F.appendChild(O):_.l_(O,f);H?p?b.appendChild(Z):F.appendChild(Z):_.l_(Z,
f);this.swatcherooSplitScroll&&(p=_.Jn(this.hostElement).querySelector("#secondary"),H=_.Jn(this.hostElement).querySelector("#columns"),M=_.Jn(this.hostElement).querySelector("#fixed-columns-secondary"),J?M.appendChild(p):H.appendChild(p))}},
computeMetadataSkinnyMode:function(p,J,S){return this.is!=="ytd-watch-grid"?!1:p?S:J},
computeWatchWhilePanelsActive:function(p,J){return p||J},
computeNoBorderOnChat:function(p){return _.z("web_watch_theater_chat_no_border")&&p},
computeLiveChatPresentAndExpanded:function(p,J){return p&&!J},
computePanelExpanded:function(p,J,S){return p||J||S},
computeSqueezeback:function(p,J,S,H){if(_.z("web_watch_enable_fs_squeezeback_panels")){var M=this.iMaxTheaterMode&&this.theater,X=this.theater&&!this.iMaxTheaterMode;return(p||J||S)&&(M||H)||J&&X}},
computeSwatcherooSqueezeback:function(p,J,S){return this.is!=="ytd-watch-grid"||_.z("ww_squeezeback_killswitch")?!1:p&&J&&S},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(p){_.cv(this).getPlayerPromise().then(function(J){var S;(S=J.changeMarkerVisibility)==null||S.call(J,_.e(p,_.ab).isVisible||!1,_.e(p,_.ab).entityKeys||[],_.e(p,_.ab).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(p){this.liveChatCollapsed=p.detail;_.rl().dispatch(_.DQT(p.detail));if(!this.liveChatCollapsed&&this.squeezeback){var J=_.vO().resolve(_.JY);this.visiblePanelIdentifiers_.forEach(function(S){J.hidePanel({identifier:S})})}},
onSetPlaylistCollapsed:function(p){_.z("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!p)},
provideRenderingData:function(p,J){switch(p){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=J;break;case "PRIMARY_INFO":_.z("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=J);this.videoPrimaryInfoRendererValue=J==null?void 0:J.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.z("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=J);this.videoSecondaryInfoRendererValue=J==null?void 0:J.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
J;break;case "CLARIFICATION":this.clarifyBoxValue=J;break;case "LIVE_CHAT":this.conversationBar=J;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=J;break;case "PLAYLIST":this.externalPlaylistData_=J!=null?J:{};break;case "MERCH_SHELF":this.merchShelfValue=J==null?void 0:J.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=J;break;case "TICKET_SHELF":this.ticket=J;break;case "OFFER_MODULE":this.offerModule=J;break;case "LIMITED_STATE":this.limitedStateValue=
J;break;case "DONATION_SHELF":this.donation=J;break;case "ALERTS":this.alertsValue=J;break;case "COMMENTS":this.comments=J;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=J;break;case "ENGAGEMENT_PANELS":this.engagementPanels=J;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=J;break;case "RICH_GRID_RENDERER":this.richGridRendererData=J;break;case "EXPANDABLE_METADATA":this.expandableMetadata=J;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
J;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=J;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=J}},
toggleCinematicsActive:function(p){this.cinematicsActive=p},
isMiniplayerActive:function(){return _.vO().resolve(_.DF).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var DQU;_.huN=function(p){if(!(0,_.zMU)(p))throw Error("K``"+String(p));};
_.kIP=function(p){return p.findIndex(function(J){return DQU.indexOf(J.tagName)>-1})>-1};
_.Nwe=function(){var p=_.vO().resolve(_.jW);_.ZIg(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(p.isFullscreenEnabled()?_.jq(document.documentElement):_.Lti(document.documentElement))};
DQU=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.b3=new Map;_.b3.set(32,59972);_.b3.set(27,50765);_.b3.set(70,60102);_.b3.set(76,60221);_.b3.set(77,60222);_.b3.set(74,60223);_.b3.set(84,60224);_.b3.set(38,61941);_.b3.set(40,61942);_.b3.set(73,62521);_.b3.set(67,62522);_.b3.set(80,63390);_.b3.set(78,63397);_.b3.set(75,59972);_.b3.set(188,63385);_.b3.set(190,63384);_.b3.set(36,63387);
_.b3.set(35,63386);_.b3.set(37,63388);_.b3.set(39,63389);_.b3.set(79,63423);_.b3.set(87,63424);_.b3.set(107,63426);_.b3.set(109,63425);_.b3.set(65,63428);_.b3.set(83,63430);_.b3.set(68,63429);_.b3.set(221,63431);_.b3.set(219,63432);_.b3.set(97,63439);_.b3.set(98,63440);_.b3.set(99,63441);_.b3.set(100,63442);_.b3.set(101,63443);_.b3.set(102,63444);_.b3.set(103,63445);_.b3.set(104,63446);_.b3.set(105,63447);_.mR=new Map;_.mR.set(80,63390);_.mR.set(78,63397);_.mR.set(188,63400);_.mR.set(190,63401);
_.mR.set(191,60765);_.mR.set(13,247917);_.Twj=new Map;_.dQp=new Map;
}catch(e){_._DumpException(e)}
try{
var wtf,Icr,Lul,p6U;_.Ete=function(p){return p.ui.guideIsVisibleButNotPersistent};
_.YrM=function(p){return p.ui.tabGesturesIsActive};
_.rcy=function(){var p=_.zG("service_worker_scope");try{return navigator.serviceWorker.getRegistration(p)}catch(J){return Promise.reject(J)}};
_.jsp=function(p){return!(!p||!p.pushManager)};
wtf=function(){return _.rcy().then(_.jsp).catch(function(){return!1})};
_.xcf=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?wtf():Promise.resolve(!1)};
_.ccp=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Icr=function(){var p,J,S;return _.G(function(H){switch(H.nextAddress){case 1:return H.yield(_.JW.getInstance(),2);case 2:p=H.yieldResult;if(!p){J=void 0;H.jumpTo(3);break}return H.yield(p.get("lmqf"),4);case 4:J=H.yieldResult;case 3:switch((S=J)||(S="SD"),S){case "HD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Lul=function(p){var J,S,H;return _.G(function(M){if(M.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.z("disable_av1_setting")){var X=window.localStorage["yt-player-av1-pref"];X=X==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":X==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else X="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(J=p===X)return M.jumpTo(2);H=S=p;return M.yield(Icr(),3)}M.nextAddress!=2&&(J=H===M.yieldResult);return M.return(J)})};var JnI;var SDI=_.q3.IronButtonState,H3w=(0,_.Tm)(HTMLElement);
_.QG({_template:function(){if(JnI!==void 0)return JnI;var p=document.createElement("template");_.C(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]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;p6U===void 0&&(p6U=document.createElement("template"));var H=p6U;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return JnI=p},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[SDI,_.la,_.aK,_.rL],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(p){var J=(0,_.kX)(this);J.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:p});J.shadowRoot.appendChild(p);return H3w.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=_.f1(this.$.content).getDistributedNodes(),J=0,S=p.length;J<S;J++)if(p[J].nodeType===Node.ELEMENT_NODE)return p[J]},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 J="";p?J=p.label||p.getAttribute("label")||p.textContent.trim():J="";this.value=J;this._setSelectedItemLabel(J)},
_computeMenuVerticalOffset:function(p,J){return J?J:p?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var p=this.opened?"true":"false",J=this.contentElement;J&&J.setAttribute("aria-expanded",p)}});_.Mhw=new _.Zz("navigateAction");var X6U=new _.Zz("formRenderer");var pj=function(){var p=_.f3.apply(this,arguments)||this;p.showInput=!1;return p};
_.Q(pj,_.f3);_.R=pj.prototype;_.R.detached=function(){this.showInput&&window.removeEventListener("click",_.n3(this,this.closeOnOutsideClick_))};
_.R.stopPropagation_=function(p){this.showInput&&p.stopPropagation()};
_.R.closeOnOutsideClick_=function(p){this.closeOnOutsideClickCondition(p)&&(this.showInput=!1,window.removeEventListener("click",_.n3(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.R.closeOnOutsideClickCondition=function(){return!0};
_.R.closeOnOutsideClickHandler=function(){};
_.R.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.n3(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.R.openOnClickHandler=function(){};
_.R.showInputChanged=function(){};
_.R.setShowInput=function(p){this.showInput=p};
pj.prototype.setShowInput=pj.prototype.setShowInput;pj.prototype.showInputChanged=pj.prototype.showInputChanged;pj.prototype.openOnClickHandler=pj.prototype.openOnClickHandler;pj.prototype.openOnClick_=pj.prototype.openOnClick_;pj.prototype.closeOnOutsideClickHandler=pj.prototype.closeOnOutsideClickHandler;pj.prototype.closeOnOutsideClickCondition=pj.prototype.closeOnOutsideClickCondition;pj.prototype.closeOnOutsideClick_=pj.prototype.closeOnOutsideClick_;pj.prototype.stopPropagation_=pj.prototype.stopPropagation_;
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],pj.prototype,"showInput",void 0);_.V([_.GI("click"),_.GI("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],pj.prototype,"stopPropagation_",null);_.V([_.bO("showInput"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],pj.prototype,"showInputChanged",null);_.V([_.OD()],pj);_.i3p=[pj.prototype];var RuP;var KyM;var Jb=function(){return _.T.apply(this,arguments)||this};
_.Q(Jb,_.T);_.R=Jb.prototype;_.R.computePreselectedOption=function(p,J){return J===this.itemSelected_?p:void 0};
_.R.dataChanged_=function(){var p=this;this.preselectedSubreason=this.itemSelected_=-1;var J;(J=this.data)!=null&&J.key&&_.mN(this,function(){var S,H=Number((S=p.data)==null?void 0:S.key);!Number.isNaN(H)&&(p.itemSelected_=H,S=(S=(p.data.items||[])[H])&&S.optionSelectableItemRenderer&&S.optionSelectableItemRenderer.preselectedIndex)&&(p.preselectedSubreason=S)})};
_.R.isSubReasonHidden_=function(p,J){return p!=J};
_.R.onTopItemSelected_=function(p,J){for(var S=_.Jn(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),H=0,M=S.length;H<M;H++)S[H].select(0);_.IV(this.hostElement,"yt-report-form-update",[J.item.value]);p.stopPropagation()};
_.R.onItemSelected_=function(p,J){_.IV(this.hostElement,"yt-report-form-update",[J.item.value]);p.stopPropagation()};
_.R.getItem_=function(p){return p.serviceItem?p.serviceItem:p.navigationItem?p.navigationItem:p.optionSelectableItemRenderer?p.optionSelectableItemRenderer:null};
_.R.computeText_=function(p){return(p=this.getItem_(p))?this.ytRendererBehavior.getSimpleString(p.text):null};
_.R.validate=function(){return this.itemSelected_!==-1};
_.R.computeAriaLabel_=function(p){var J=_.E4(p.text);(p=p.accessibility&&p.accessibility.accessibilityData&&p.accessibility.accessibilityData.label)&&(J+=". "+p);return J};
_.R.computeItemSelected_=function(p){return p};
_.R.preventSelection_=function(p){p.stopPropagation();this.tooltipTapped=!0};
_.R.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.R.updateItemSelectedFromBinding=function(p){this.itemSelected_=p.detail.value};
_.R.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)||_.pl(this.hostElement,[p.optionSelectableItemRenderer.submitEndpoint])))};
Jb.prototype.onPaperRippleTransitionEnd_=Jb.prototype.onPaperRippleTransitionEnd_;Jb.prototype.dataChanged_=Jb.prototype.dataChanged_;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Jb.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Jb.prototype,"data",void 0);_.V([_.N({value:-1}),_.Y("design:type",Number)],Jb.prototype,"itemSelected_",void 0);
_.V([_.N({computed:"computeItemSelected_(itemSelected_)"}),_.Y("design:type",Number)],Jb.prototype,"value",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Jb.prototype,"restoreFocusOnClose",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Jb.prototype,"tooltipTapped",void 0);_.V([_.N({value:-1}),_.Y("design:type",Number)],Jb.prototype,"preselectedSubreason",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jb.prototype,"dataChanged_",null);_.V([_.GI("transitionend"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jb.prototype,"onPaperRippleTransitionEnd_",null);_.V([_.sD({is:"yt-options-renderer",disableElementRegistration:!0})],Jb);
_.l(Jb,"yt-options-renderer",function(){if(KyM===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;RuP===void 0&&(RuP=document.createElement("template"));var H=RuP;S.call(J,H.content.cloneNode(!0),p.content.firstChild);KyM=p}p=KyM;return p},{mode:2});var Z3r;var n3y;var GIw;var b3U;var mQI;var FyP;var SC=function(){return _.T.apply(this,arguments)||this};
_.Q(SC,_.T);SC.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
SC.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
SC.prototype.onTap=function(p){if(this.hostElement.classList.contains("selected")||_.IV(this.hostElement,"yt-share-panel-can-select-contact-action")[0])p&&p.detail&&(p.detail.x||p.detail.y)&&_.Jn(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)},_.IV(this.hostElement,"yt-share-panel-select-contact-action",[p])};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.V([_.N({observer:"onDataChanged"}),_.Y("design:type",Object)],SC.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Y("design:type",String)],SC.prototype,"componentTitle",void 0);_.V([_.FM("#thumbnail"),_.Y("design:type",Object)],SC.prototype,"thumbnail",void 0);_.V([_.sD({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],SC);
_.l(SC,"yt-enrolled-contact-renderer",function(){if(FyP===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;mQI===void 0&&(mQI=document.createElement("template"));var H=mQI;S.call(J,H.content.cloneNode(!0),p.content.firstChild);FyP=p}p=FyP;return p},{mode:2});var v3r;var fVU;var Hb=function(){return _.T.apply(this,arguments)||this};
_.Q(Hb,_.T);Hb.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Hb.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Hb.prototype.onTap=function(p){if(this.hostElement.classList.contains("selected")||_.IV(this.hostElement,"yt-share-panel-can-select-contact-action")[0])p&&p.detail&&(p.detail.x||p.detail.y)&&_.Jn(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)},_.IV(this.hostElement,"yt-share-panel-select-contact-action",[p])};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.V([_.N({observer:"onDataChanged"}),_.Y("design:type",Object)],Hb.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Y("design:type",String)],Hb.prototype,"componentTitle",void 0);_.V([_.FM("#thumbnail"),_.Y("design:type",Object)],Hb.prototype,"thumbnail",void 0);_.V([_.sD({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Hb);
_.l(Hb,"yt-suggested-contact-renderer",function(){if(fVU===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;v3r===void 0&&(v3r=document.createElement("template"));var H=v3r;S.call(J,H.content.cloneNode(!0),p.content.firstChild);fVU=p}p=fVU;return p},{mode:2});var MA=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-share-panel-reset-action":"onReset"};return p};
_.Q(MA,_.T);MA.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"}}}}}};
MA.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.IV(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
MA.prototype.onReset=function(){for(var p=_.Jn(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),J=p.length-1;J>=0;J--)p[J].classList.toggle("selected")};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],MA.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N({observer:"onDataChanged"}),_.Y("design:type",Object)],MA.prototype,"data",void 0);
_.V([_.sD({is:"yt-contact-section-renderer",disableElementRegistration:!0})],MA);
_.l(MA,"yt-contact-section-renderer",function(){if(b3U===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;GIw===void 0&&(GIw=document.createElement("template"));var H=GIw;S.call(J,H.content.cloneNode(!0),p.content.firstChild);b3U=p}p=b3U;return p},{mode:2});var XZ=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return p};
_.Q(XZ,_.T);_.R=XZ.prototype;_.R.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"}}}};
_.R.onYtRefreshFormCommand=function(p){var J;(p=_.e((J=_.e(p,_.IRq))==null?void 0:J.formRenderer,X6U))&&this.set("data",p)};
_.R.reset=function(){var p=_.Jn(this.hostElement).querySelector("#fields").children;p=_.K(p);for(var J=p.next();!J.done;J=p.next())J=J.value,J.reset&&J.reset()};
_.R.getForm=function(){var p={},J=_.Jn(this.hostElement).querySelector("#fields").children;J=_.K(J);for(var S=J.next();!S.done;S=J.next()){S=S.value;if(!S.validate())return null;p[S.data.key]=S.value}return p};
_.R.submitFormFields=function(){if(this.fields)for(var p=_.K(this.fields),J=p.next();!J.done;J=p.next())J=J.value,J.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?J.save():J.nodeName==="YT-OPTIONS-RENDERER"&&J.save()};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],XZ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],XZ.prototype,"data",void 0);_.V([_.v6("#fields > *"),_.Y("design:type",Array)],XZ.prototype,"fields",void 0);
_.V([_.sD({is:"yt-form-renderer",disableElementRegistration:!0})],XZ);
_.l(XZ,"yt-form-renderer",function(){if(n3y===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Z3r===void 0&&(Z3r=document.createElement("template"));var H=Z3r;S.call(J,H.content.cloneNode(!0),p.content.firstChild);n3y=p}p=n3y;return p},{mode:2});var O3U;var i3=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return p};
_.Q(i3,_.T);i3.prototype.onCheckboxChange=function(p){this.data&&(p=(this.checked=_.Yt(p).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}})};
i3.prototype.handleUpdateCheckboxCommand=function(p){(p=_.e(p,_.v9U))&&this.data&&this.data.id===p.id&&(this.set("data.disabled",p.disabled),this.set("data.title",p.title))};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],i3.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],i3.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],i3.prototype,"checked",void 0);_.V([_.gw({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],i3);
_.l(i3,"ytd-settings-checkbox-renderer",function(){if(O3U!==void 0)return O3U;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return O3U=p},{mode:1});var Ane;var R0=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return p};
_.Q(R0,_.T);R0.prototype.dataChanged=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return p.radio.removeAttribute("checked"),!p.data||!p.data.id||p.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.ccp()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(J=p.data&&p.data.id)?S.yield(Lul(p.data.id),4):S.jumpTo(3):(p.set("data.hidden",!0),S.jumpTo(0));S.nextAddress!=3&&(J=S.yieldResult);J&&_.IV(p.hostElement,"yt-select-settings-radio-option",[p.data.id]);_.UK(S)})};
R0.prototype.onButtonChanged=function(p){_.Yt(p).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.vO().resolve(_.Ov).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.IV(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
R0.prototype.onSelectOption=function(p){this.data&&this.data.id&&(this.data.id===p?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
R0.prototype.dataChanged=R0.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],R0.prototype,"ytActionHandlerBehavior",void 0);_.V([_.FM("#radio"),_.Y("design:type",Object)],R0.prototype,"radio",void 0);_.V([_.N(),_.Y("design:type",Object)],R0.prototype,"data",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],R0.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],R0);
_.l(R0,"ytd-settings-radio-option-renderer",function(){if(Ane!==void 0)return Ane;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Ane=p},{mode:1});var POP;var Kj=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return p};
_.Q(Kj,_.T);
Kj.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"}}}};
Kj.prototype.handleUpdateTextCommand=function(p){(p=_.e(p,_.f$m))&&this.data&&this.data.id===p.id&&this.set("data",p)};
Kj.prototype.handleUpdateConnectedAppRendererCommand=function(p){if(_.e(p,_.Pa8)&&this.data){var J,S;if(p=(J=_.e(p,_.Pa8))==null?void 0:(S=J.newConnectedAppRenderer)==null?void 0:S.connectedAppRenderer)this.data=p}};
Kj.prototype.computeConnectedAppStyle=function(p){return p.style?p.style.toLowerCase().replace(/_/g,"-"):""};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Kj.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Kj.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.Y("design:type",String)],Kj.prototype,"connectedAppStyle",void 0);_.V([_.gw({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],Kj);
_.l(Kj,"ytd-connected-app-renderer",function(){if(POP!==void 0)return POP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return POP=p},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.lW("iuT5Oc");

_.V0();
}catch(e){_._DumpException(e)}
try{
_.lW("NSzT5");
var fmv=function(){var p;return _.G(function(J){if(J.nextAddress==1)return J.yield(_.vO().resolve(_.H$),2);(p=J.yieldResult)&&p.pauseVideo();_.UK(J)})};var OId=_.YI(["https://portraits.google.com"]),Az7=_.YI(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),PCp=_.YI(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),zZd=_.fA(OId),$nu=_.d(function(p){function J(f){var O;if(f=(O=f.detail)==null?void 0:O.endpoint){O=_.e(f,_.Ge);var A;O&&((A=O.browseId)==null?0:A.startsWith("UC"))&&O.browseId!==M()&&(_.OW("creator-chatbots-panel-persistent"),b.removeEventListener("yt-navigate-start",J))}}
var S=p.usePlayerHeight;var H=p.isPersistentPanel;var M=p.creatorChannelId;p=_.fb(_.SxW);console.log("isNarrow",p());var X=_.Y2(function(f){var O=M();O=_.fA(Az7,O);_.p_(f,1,O)}),Z=function(){var f,O,A;
return _.G(function(P){return P.nextAddress==1?P.yield(_.vO().resolve(_.H$),2):(f=P.yieldResult)?P.return({video_id:(A=(O=f.getVideoData())==null?void 0:O.video_id)!=null?A:"",timestamp_sec:f.getCurrentTime().toString()}):P.return({})})};
_.fE("message",function(f){var O,A,P,W,y,t;return _.G(function(D){if(D.nextAddress==1){if((O=H)==null?0:O())return D.return();if(f.origin!==zZd.toString())return console.warn("Received message from untrusted origin:",f.origin),D.return();A=f.data;if(typeof A!=="object"||A===null||!A.action)return D.return();if(A.action==="pause")return D.yield(fmv(),0);if(A.action!=="getYouTubeContext"||!f.source)return D.jumpTo(0);P=f.source;W=P.postMessage;y=JSON;t=y.stringify;return D.yield(Z(),7)}W.call(P,t.call(y,
{youTubeContext:D.yieldResult}),{targetOrigin:f.origin});return D.jumpTo(0)})});
var n=function(){var f,O;(f=X.value)==null||(O=f.contentWindow)==null||O.postMessage("ep_closed",zZd.toString())};
_.fE("yt-page-type-changed",function(){if(H==null?0:H()){var f;((f=_.vO().resolve(_.xz).getCurrentPage())==null?void 0:f.pageSubtype)!=="channels"&&(f=document.getElementById("creator-chatbots-panel-persistent"))&&(f.style.display="none")}});
var b=_.vO().resolve(_.lc),F;(F=b)==null||F.addEventListener("yt-navigate-start",J);_.VY(function(){var f;(f=b)==null||f.removeEventListener("yt-navigate-start",J)});
F={};return _.m("div",{class:_.XB("ytprotoCreatorChatbotsAppHost",(F.ytprotoCreatorChatbotsAppHostSingleColumn=p,F)),style:_.G7({height:function(){return(S==null?0:S())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.m(_.ZIp,{id:function(){return(H==null?0:H())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:n,header:function(){return _.m("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.m("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.m(_.bG,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.m(_.Pb,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var f=_.uv("https://portraits.google.com/gallery?ytChannelId="+M());f&&_.Ju(window,f,"_blank");n()}})},
content:function(){return _.m("iframe",{el:X,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+zZd.toString()})}}))},"Jo"),o2d=_.d(function(p){var J=p.creatorChannelId;
p=_.fb(_.SxW);var S=_.Y2(function(X){var Z=J();Z=_.fA(PCp,Z);_.p_(X,1,Z)}),H=_.G$(_.bC(),{veType:281629}),M={};
return _.m("div",{class:_.XB("ytprotoCreatorChatbotsAppHost",(M.ytprotoCreatorChatbotsAppHostSingleColumn=p,M)),style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.m(_.ZIp,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.m("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.m("div",
{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.m(_.bG,{data:{text:"AI experiment",type:0}}))},
content:function(){return _.m("iframe",{el:S,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.m("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.m(_.Pb,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var X=_.uv("https://portraits.google.com/gallery?ytChannelId="+J());X&&_.Ju(window,X,"_blank");fmv();H&&_.dn(_.bC(),{visualElement:H})},
"client-ve-type":281629}),_.m("div",null,"This will take you to Google Portraits"))}}))},"Ko");var eZt,W54,Q4y;eZt=_.YI(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);W54=_.fA(eZt);
_.jsG=function(p){p=p===void 0?"":p;_.OW("creator_chatbots-entry-point");_.OW("creator-chatbots-panel");_.vb(W54);_.Ab("ytd-watch-metadata #top-level-buttons-computed",function(J){document.getElementById("creator_chatbots-entry-point")||(_.fj({element:J,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.m(Q4y,{creatorChannelId:p})}),_.K5I("creator-chatbots-panel",function(){return _.m($nu,{usePlayerHeight:!0,
creatorChannelId:p})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};
_.wtu=function(p){p=p===void 0?"":p;_.OW("creator-chatbots-panel");_.Ab("ytd-watch-metadata #top-level-buttons-computed",function(){_.K5I("creator-chatbots-panel",function(){return _.m(o2d,{creatorChannelId:p})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
Q4y=_.d(function(p){var J=p.creatorChannelId;var S=function(){_.K5I("creator-chatbots-panel",function(){return _.m($nu,{usePlayerHeight:!0,creatorChannelId:J})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.m("div",{class:"ytd-menu-renderer"},_.m(_.gF,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:S}},
icon:function(){return _.m(_.bn,{icon:"SPARK"})}}))},"Lo");
_.VBe=function(p,J){p=p===void 0?"":p;J=J===void 0?!1:J;var S;return _.G(function(H){S=document.getElementById("creator-chatbots-panel-persistent");return!J||S?(!J&&S&&S.style.display==="none"&&(S.style.display="block"),H.jumpTo(0)):H.yield(new Promise(function(M){_.Ab("ytd-app",function(X){_.fj({element:X,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.m($nu,
{isPersistentPanel:!0,creatorChannelId:p})});
M()})}),0)})};
_.V0();
}catch(e){_._DumpException(e)}
try{
_.lW("L3n37");
var RZs=function(p){return p.watch.isLearningJourneyActive},K5a=_.KG(115994),ZIG=_.KG(115993),n2q=function(p,J,S){var H=this;
var M=S.dragDownAction;this.layer=0;this.JSC$23766_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.JSC$23766_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.fullscreen=!1;var X=_.bC();_.uq(X,K5a,this.layer);_.uq(X,ZIG,this.layer);this.dragDownAction=function(){M();_.dn(X,{visualElement:H.fullscreen?K5a:ZIG})};
this.gesture=new _.Nh(p,J,this.getConfig(!1),"pandown");this.attach()};
n2q.prototype.attach=function(){this.gesture.attach()};
n2q.prototype.detach=function(){this.gesture.detach()};
n2q.prototype.update=function(p){this.fullscreen=p;var J=this.gesture;p=this.getConfig(p);J.config=p};
n2q.prototype.getConfig=function(p){return p?this.JSC$23766_watchFullScreenConfig:this.JSC$23766_watchConfig};var G$d=function(p){_.Gl.call(this);var J=this;this.rootElement=p;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return J.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(S){J.initOrDisposeActiveModules(S)}));
this.onAttached()};
_.Q(G$d,_.Gl);_.R=G$d.prototype;_.R.getRoot=function(){return this.rootElement};
_.R.getElement=function(p){return this.rootElement.getElement(p)};
_.R.setPlayerResponse=function(p){this.playerResponse=p;this.publish("PLAYER_RESPONSE_UPDATED",p)};
_.R.getPlayerResponse=function(){return this.playerResponse};
_.R.setWatchNextResponse=function(p){this.watchNextResponse===p?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=p,this.publish("WATCH_NEXT_RESPONSE_UPDATED",p))};
_.R.getWatchNextResponse=function(){return this.watchNextResponse};
_.R.registerActionHandler=function(p,J){var S=this;if(_.z("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.RZ(_.XK.getInstance(),(H[p]=J,H),this.getRoot())}else this.actionHandlers.has(p)||(this.actionHandlers.set(p,[]),H={},_.RZ(_.XK.getInstance(),(H[p]=function(){var M=_.Yp.apply(0,arguments);return(S.actionHandlers.get(p)||[]).map(function(X){return X.apply(null,_.dW(M))})},H),this.getRoot())),this.actionHandlers.get(p).push(J)};
_.R.unregisterActionHandler=function(p){if(_.z("web_watch_controller_reg_multiple_handlers_killswitch")){var J={};_.KE(_.XK.getInstance(),(J[p]=!0,J),this.getRoot())}else(J=this.actionHandlers.get(p))?(J.pop(),J.length===0&&(J={},_.KE(_.XK.getInstance(),(J[p]=!0,J),this.getRoot()),this.actionHandlers.delete(p))):_.xQ(new _.TG("Attempted to unregister an action handler which is not registered.",p))};
_.R.addPageDisposeJob=function(p){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.svs(this.rootElement.pageDisposeJobs,p)};
_.R.removePageDisposeJob=function(p){this.rootElement.pageDisposeJobs&&_.uw(this.rootElement.pageDisposeJobs,p)};
_.R.dispatchEvent=function(p,J){_.cf(this.rootElement,p,J)};
_.R.provideRenderingData=function(p,J){this.rootElement.provideRenderingData(p,J)};
_.R.scrollWatchTo=function(p,J){var S;(S=this.watchScrollManager)==null||S.scrollWatchTo(p,J)};
_.R.focusOnPlayer=function(){var p=this.getElement("PLAYER");_.mN(p,function(){if(p&&p.firstElementChild){var J=p.querySelector(".html5-video-player");J&&(_.Q$(_.vO().resolve(_.Am)),J.focus())}else _.xQ(Error("gp"))})};
var bIa=function(p){var J=!!p.rootElement.theater,S=!!p.rootElement.fullscreen,H;(H=p.watchCinematicManager)==null||_.Tls(H,S,J)};
_.R=G$d.prototype;_.R.subscribeToActiveChanged=function(p,J){J=J===void 0?!0:J;var S=_.j7(_.rl(),RZs,function(H){p(H)});
J&&p(RZs(_.rl().getState()));return S};
_.R.isActive=function(){return RZs(_.rl().getState())};
_.R.onAttached=function(){var p=_.z("external_fullscreen");_.z("use_unified_flag_accessor")&&(p=_.vO().resolve(_.Vnj).retriever.getFlag(_.Bgm));(p||_.wY("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.R.initPersistentModules=function(){if(_.z("kevlar_watch_flexy_theater_manager")){var p=new _.Gr4(this);_.$c(this,p)}p=new _.Lgq(this);_.$c(this,p);p=new _.sQ(this);_.$c(this,p);p=new _.jRG(this);_.$c(this,p);p=new _.k1(this);_.$c(this,p);p=new _.gh(this);_.$c(this,p);_.z("kevlar_watch_flexy_playlist_manager")&&(p=new _.gtd(this),_.$c(this,p))};
_.R.initOrDisposeActiveModules=function(p){p?(this.watchScrollManager=new _.N5(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.FuT(this)),this.activeModules.push(new _.nOT(this)),this.activeModules.push(new _.Tos(this)),this.activeModules.push(new _.Rdu(this)),_.z("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.vOp(this)),this.activeModules.push(new _.zda(this)),_.z("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.uVy(this)),
_.z("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Cos(this)),_.z("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.gZy(this),this.activeModules.push(this.watchCinematicManager),bIa(this)),_.z("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.WuG(this)),_.z("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.xwp(this)),p=_.z("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.z("kevlar_watch_flexy_comments_manager")&&
!p&&this.activeModules.push(new _.q4y(this)),_.z("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Uqs(this)),this.activeModules.push(new _.AkT(this)),this.activeModules.push(new _.fct(this)),_.z("web_enable_timely_actions")&&this.activeModules.push(new _.oZs(this)),_.z("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.EOs(this)),_.z("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.kvT(this)),_.z("web_fullscreen_components")&&
this.activeModules.push(new _.zas(this)),_.z("web_player_rtr_ctrls")&&this.activeModules.push(new _.rPs(this))):(_.R7(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.R.disposeInternal=function(){_.Gl.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.vh.Object.defineProperties(G$d.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var mns={},F5s=["learning-journey-engagement-panel","PAlearning_chat"];
mns.YtdLearningJourneyWatchBehavior=[_.x.YtRendererBehavior,_.AM.YtPlayerListenerBehavior,_.QD.YtRendererstamperBehavior,_.u1.YtActionHandlerBehavior,_.Sz.YtPageBehavior,_.dF.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.wY("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.z("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 _.wY("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 _.z("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.z("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.PO("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.PO("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("web_watch_rounded_player_large")||_.z("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.z("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.z("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("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 _.z("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.j1(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.j1(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var p=this;this.watchController=void 0;this.pageDisposeJobs=[function(){p.showMetadataPlaceholder_()},
function(){_.z("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.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.z("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.z("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.dQG(function(){return _.cv(p)},
this.hostElement);
this.pageDisposeJobs.push(function(){p.youThereManager_.reset()});
_.z("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){p.resetFullerscreenEduButtonForNewPlayback_()}));
_.z("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.QU;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;_.z("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.z("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));_.z("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.n3(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){_.z("kevlar_watch_flexy_theater_manager")&&(this.theater=p,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.z("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(p){!_.z("kevlar_watch_while_v2")&&!_.z("web_watch_pip")||p||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(p){this.active!==void 0&&(this.fullscreen=p,_.z("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(p){this.active!==void 0&&(_.cf(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.z("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 J=this;if(p)if(this.data===p){this.onPageLoadWithSameData_();var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data)}else this.data=p;this.playlist&&_.o5({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Qf("nw");this.loading=!1;_.uS(_.wg,function(){J.initDclkstatus_();var H,M=((H=J.player)==null?void 0:H.getVideoData().cpn)||"";_.eup(function(X,Z){_.UQj(X,Z,M)})})},
onPageLoadWithSameData_:function(){_.z("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;var J,S,H;p=(J=this.loadingData)==null?void 0:(S=J.endpoint)==null?void 0:(H=S.watchEndpoint)==null?void 0:H.videoId;var M;p&&(M="https://i.ytimg.com/vi/"+p+"/frame0.jpg");_.Jn(this.hostElement).querySelector("#player").style.backgroundImage=M?"url("+M+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var p=_.Jn(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 J,S;(S=(J=this.watchMetadata).updateSentimentBarWidth)==
null||S.call(J);var H,M;(M=(H=this.watchMetadata).resize)==null||M.call(H)}_.Jn(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(p){var J=_.Jn(this.hostElement).querySelector(p);J?_.wG(J,!1):_.xQ(new _.TG("Overscroll monitor not found for component: ",p))},
removeSplitScrollMouseTrap:function(p){var J=_.Jn(this.hostElement).querySelector(p);J?_.xV(J):_.xQ(new _.TG("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 J=this;p?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.wg.addLowPriorityJob(function(){J.onWindowResized_(_.FV(!0))})},
updateTheaterModeState_:function(p){if(!_.z("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&&_.tBy()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var p=this.theater;_.z("external_fullscreen")&&this.fullscreen&&(p=!0);p=p?_.Jn(this.hostElement).querySelector("#player-full-bleed-container"):_.Jn(this.hostElement).querySelector("#player-container-inner");var J=this.getPlayerContainer(),S=_.z("kevlar_watch_while_v2")||_.z("web_watch_pip");J.parentElement!==p&&(S&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.cv(this).appendTo(p,J),p.appendChild(_.Jn(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var p=this;return _.G(function(J){if(J.nextAddress==1)return J.yield(_.vO().resolve(_.DF).deactivate(),2);p.updatePlayerLocation();_.UK(J)})},
updateCinematicsLocation:function(){var p=this.getElement("CINEMATICS");if(p){var J=this.getCinematicsLocationContainer();p.parentElement!==J&&J.appendChild(p);var S;(S=this.watchController)==null||bIa(S)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Jn(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Jn(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(p,J){var S=document.documentElement.hasAttribute("dark"),H=!S&&this.cinematicLightTheme;return p&&S||J&&S||(J||p)&&H},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var p;(p=this.watchController)==null||p.setWatchNextResponse(this.data);_.z("kevlar_watch_flexy_comments_manager")||this.initComments_();_.z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.vO().resolve(_.FF).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.z("web_watch_start_chat_in_theater_mode")){var J,
S,H;if((J=this.data)==null?0:(S=J.contents)==null?0:(H=S.twoColumnWatchNextResults)==null?0:H.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var M,X;((M=this.data)==null?0:(X=M.contents)==null?0:X.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(p){var J;(J=this.watchController)==null||J.setPlayerResponse(this.playerData);p&&p.playabilityStatus&&(J=this.isVideoPlayable_(p.playabilityStatus,this.getPlayerOverlays_(this.data)),p=this.isLiveStreamOffline_(p.playabilityStatus),J&&!p||_.mN(this,function(){_.Qf("pbu")}));
this.setPlayerAds_();_.L1(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(p){_.rl().dispatch(_.Jk({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));p?this.activate_():this.deactivate_()},
attached:function(){var p=this;this.watchController=new G$d(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.z("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var J=_.cv(this);_.z("kevlar_disable_prepare_player")||J.preparePlayer();_.z("kevlar_watch_flexy_playlist_manager")||_.vO().resolve(_.FF).setPlayer(J);this.updatePageMediaQueries();J={"--ytd-watch-flexy-scrollbar-width":_.Ik()+
"px"};!_.PO("kv_pl_mx_sz_ks")&&_.PO("kevlar_watch_max_player_width")&&(J["--ytd-watch-flexy-max-player-width-wide-screen"]=_.CSd+"px");_.PO("kevlar_watch_flexy_metadata_height")&&(J["--ytd-watch-flexy-space-below-player"]=_.yVt+"px");this.safeUpdateStyles(J);_.z("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new n2q(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return p.onPlayerTouchPanDown_()}}));
_.z("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Jn(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var p=_.Ik(),J=_.ku+p,S=J;this.fixedPanels&&(J+=_.QJq);var H=657+p;p=1327+p;_.Jn(this.hostElement).querySelector("#two-column-query").query="(min-width: "+J+"px)";_.Jn(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(H+"px), (min-height: 630px) and (min-width: ")+(J+"px) and (max-width: ")+(p+"px)");_.Jn(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(p+"px)");
_.Jn(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+S+"px)"},
calculateCurrentPlayerSize_:function(){var p=_.Jn(this.hostElement).querySelector("#miniplayer-bar").firstChild;return p&&p.active||this.theater||_.z("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.yF(NaN,NaN):_.BwD(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.BwD(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.iW(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var p=this;this.onWindowResized_(_.FV());_.z("browse_skeleton_removal_on_watch_killswitch")||_.wY("IS_SHELL_LOAD")&&_.fZu();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var J=_.cv(this);J.addEventListener("yt-player-updated",_.n3(this,this.onPlayerUpdated_));J.getPlayerPromise().then(function(S){p.playerApiReady_(S)});
_.z("kevlar_watch_flexy_playlist_manager")||(J=_.vO().resolve(_.FF),_.z("kevlar_watch_observe_playlist_navigations_killswitch")&&J.addEventListener("yt-navigate",_.n3(this,this.onYtNavigate_)),J.setPlaylistComponent(_.Jn(this.hostElement).querySelector("#playlist")),J.addEventListener("yt-playlist-data-updated",_.n3(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.wg.addLowPriorityJob(function(){_.cf(p.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.cv(this).removeEventListener("yt-player-updated",_.n3(this,this.onPlayerUpdated_));if(!_.z("kevlar_watch_flexy_playlist_manager")){var p=_.vO().resolve(_.FF);_.z("kevlar_watch_observe_playlist_navigations_killswitch")&&p.removeEventListener("yt-navigate",_.n3(this,this.onYtNavigate_));p.cancelVideoSkip();p.removeEventListener("yt-playlist-data-updated",_.n3(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.z("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.cf(this.hostElement,"yt-autonav-pause-player",!1);p=_.rG();_.z("kevlar_exit_fullscreen_leaving_watch")&&p&&_.jq(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,J){J.hasComments?J.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):J.locationRetrieved("/related_ajax",void 0);p.stopPropagation()},
onSubscriptionChanged_:function(p,J){this.player&&(J?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Qrs("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Jn(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Jn(this.hostElement).querySelector("#ytd-plj-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_();_.z("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.z("kevlar_unified_player")||_.z("kevlar_player_new_bootstrap_adoption"))&&_.Ts()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(p,J){J=J===void 0?!0:J;_.rG()&&_.z("external_fullscreen")&&_.jq(document.documentElement);this.theaterRequested_=p;J&&_.hl("wide",p?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.z("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.IV(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.cf(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){_.cL(p,typeof this.player),this.player&&_.cL(p,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var p;((p=this.player)==null?0:p.isFullscreen())?this.player.toggleFullscreen():_.IV(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(p,J){return this.loading?J:!!Object.keys(p).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(p){if(p){p=_.K(p);for(var J=p.next();!J.done;J=p.next())J=J.value,J.youThereRenderer&&_.Vha(this.youThereManager_,J.youThereRenderer)}},
setPlaylistData_:function(p){return p||{}},
userEngagementConfigDataChanged_:function(p){if(p)if(p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var J=this.youThereManager_;_.AV()<p.lowEngagementThresholdMs||_.YDG(J,!0)}else p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.IV(this.hostElement,"yt-autonav-pause-user-engagement",[p])},
isPlayerUnavailable_:function(p,J,S){return!!p&&!this.isVideoPlayable_(p,S)&&!J},
getPlayerOverlays_:function(p){return(p==null?void 0:p.playerOverlays)||null},
isVideoPlayable_:function(p,J){if(!p)return!1;var S=p.status==="OK"||p.status==="LIVE_STREAM_OFFLINE",H=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",p)||this.get("errorScreen.ypcTrailerRenderer",p);p=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",p);var M;J=J==null?void 0:(M=J.playerOverlayRenderer)==null?void 0:M.gatedActionsOverlayRenderer;return!!S||!!H||!!p||!!J},
hasWatchNextResponseErrorRenderer:function(p){var J=this.getPageContents(p),S,H,M,X,Z;return!(p==null?0:(S=p.contents)==null?0:(H=S.twoColumnWatchNextResults)==null?0:H.secondaryResults)&&!!((M=J[0])==null?0:(X=M.itemSectionRenderer)==null?0:(Z=X.contents[0])==null?0:Z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(p){return p?p.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(p,J,S){var H=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",J),M=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];M=_.z("web_no_skip_video_on_verification_checks")?(p==null?void 0:p.status)&&M.includes(p.status):p&&p.status==="AGE_CHECK_REQUIRED";var X=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",p);X==void 0&&(X=!0);!S||this.isVideoPlayable_(p,this.getPlayerOverlays_(J))||
H||M||!X||_.vO().resolve(_.FF).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.sfp()},
onPlayerFeedbackStartRequest_:function(p){_.IV(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:p}])},
onPlayerFeedbackArticleRequest_:function(p){_.IV(this.hostElement,"yt-help-dialog-requested",[p])},
onPlayerYpcContentRequest_:function(){var p,J,S,H,M,X,Z,n,b=((p=this.data)==null?NaN:(J=p.contents)==null?NaN:(S=J.twoColumnWatchNextResults)==null?NaN:(H=S.secondaryResults)==null?NaN:(M=H.secondaryResults)==null?NaN:(X=M.offerModule)==null?NaN:(Z=X.tvfilmOfferModuleRenderer)==null?NaN:(n=Z.actionButtons)==null?NaN:n.length)-1;p=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];J=_.K(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(S=J.next();!S.done;S=J.next())for(S=S.value,H=_.K(p),M=H.next();!M.done;M=H.next())if(M="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+S+M.value,M=this.get(M+"navigationEndpoint",this.data)||this.get(M+"serviceEndpoint",this.data)||this.get(M+"command",this.data)){_.KI(M,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(p){_.cf(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:_.cf(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(p)},
setPlayerState:function(p){_.rl().dispatch(_.bS8(p))},
onPlayerSubscribe_:function(p){_.IV(this.hostElement,"yt-player-subscribe",[p])},
onPlayerUnsubscribe_:function(p){_.IV(this.hostElement,"yt-player-unsubscribe",[p])},
onPlayerAdYtShowToast_:function(p){_.IV(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.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(p){return!_.z("web_watch_move_summary_to_sd")&&!!p},
computeWatchMetadataRefresh:function(){return _.z("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var p,J,S,H;this.watchNextSecondaryResults=(p=this.data)==null?void 0:(J=p.contents)==null?void 0:(S=J.twoColumnWatchNextResults)==null?void 0:(H=S.secondaryResults)==null?void 0:H.secondaryResults}},
setRichGridRendererData:function(p){this.richGridRendererData=p},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var p,J=(p=this.data)==null?void 0:p.engagementPanels;if(J==null?0:J.length){p=null;J=_.K(J);for(var S=J.next();!S.done;S=J.next()){S=S.value;var H=void 0;if(((H=S.engagementPanelSectionListRenderer)==null?void 0:H.targetId)==="engagement-panel-structured-description"){p=S;break}}var M,X,Z;p=(M=p)==null?void 0:(X=M.engagementPanelSectionListRenderer)==null?void 0:(Z=X.content)==null?void 0:Z.structuredDescriptionContentRenderer;if(p==null?0:p.items){M=
[];X=_.K(p.items);for(Z=X.next();!Z.done;Z=X.next()){Z=Z.value;if(!_.z("sd_horizontal_list_show_nav_killswitch")){var n=H=S=J=p=void 0,b=void 0,F=(p=Z.horizontalCardListRenderer)==null?void 0:(J=p.header)==null?void 0:(S=J.richListHeaderRenderer)==null?void 0:(H=S.navigationButton)==null?void 0:(n=H.buttonRenderer)==null?void 0:(b=n.command)==null?void 0:b.commandExecutorCommand;F&&F.commands&&(F.commands=F.commands.filter(function(f){return!_.e(f,_.V9s)}))}Z.expandableVideoDescriptionBodyRenderer||
Z.videoDescriptionHeaderRenderer||M.push(Z)}return{items:M}}}},
constructWarning_:function(p){return{text:_.aR(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;_.cf(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var J=this.getScrollTop()>0;this.gestures_&&(J?this.gestures_.detach():this.gestures_.attach());J!==this.showFullerscreenEdu_&&_.z("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=J,_.cv(this).getPlayerPromise().then(function(S){S.updateFullerscreenEduButtonVisibility(p.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.cf(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var p=this;this.commentsReady=!1;_.wg.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.uS(_.wg,function(){p.setComments_()},1E3)},
setComments_:function(){if(!_.z("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Qf("cmi");_.wg.cancelJob(this.setCommentsJobId_);var p=this.getPageContents(this.data);if(p&&p.length){p=_.K(p);for(var J=p.next();!J.done;J=p.next())if(J=J.value,this.get("itemSectionRenderer.sectionIdentifier",J)==="comment-item-section"){this.comments=J.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.cf(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.z("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Qf("cmc")},
doRemoveComments_:function(){this.comments={};_.z("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.wg.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.wg.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(p,J){var S=_.e(J.endpoint,_.lj);S&&(!(J=this.get("data.currentVideoEndpoint.watchEndpoint"))||S.videoId!==J.videoId||S.playlistId&&S.playlistId!==J.playlistId||S.index!==void 0&&S.index!==J.index||typeof S.startTimeSeconds!=="number"||(p.stopPropagation(),this.setScrollTop(0),_.cv(this).getPlayerPromise().then(function(H){var M=S.startTimeSeconds;H.seekTo(M);H.wakeUpControls();M<H.getDuration()&&H.playVideo()})))},
updatePlayerStartTime_:function(){var p=_.Fys();"t"in p&&(p=_.UQG(p.t),this.player.seekTo(p,!0))},
updateTitleFromWatchNext:function(p){p=this.getPageContents(p);var J,S;(p=_.E4(p==null?void 0:(J=p[0])==null?void 0:(S=J.videoPrimaryInfoRenderer)==null?void 0:S.title))&&_.cf(this.hostElement,"yt-update-title",p)},
updateTitle_:function(p){p=this.get("videoDetails.title",p)||"";_.cf(this.hostElement,"yt-update-title",p)},
syncWithRemoteVideo_:function(p,J,S){if(this.active&&this.player){var H=this.player.getVideoData();if(H.video_id===S&&(S=H.list,_.z("polymer_enable_mdx_queue")&&S&&S.startsWith("RQ")&&(S=void 0),H.video_id!==p||S!=J)){var M;_.z("kevlar_player_watch_endpoint_navigation")?M=_.dt3(_.Wyd(p,J)):M=this.buildWatchEndpoint_(p,J);_.cf(this.hostElement,"yt-navigate",{endpoint:M,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(p,J,S){return _.c9(p,J,S)},
initDclkstatus_:function(){_.yny()},
attachWatchPageSkeleton_:function(){var p=document.querySelector("#watch-page-skeleton");if(p){var J=p.querySelector("#primary-info"),S=p.querySelector("#secondary-info"),H=p.querySelector("#related");J&&_.Jn(this.hostElement).querySelector("#info-skeleton").appendChild(J);S&&_.Jn(this.hostElement).querySelector("#meta-skeleton").appendChild(S);H&&(_.Jn(this.hostElement).querySelector("#related-skeleton").appendChild(H),this.watchNextSkeletonEl_=H);_.CC(p)}},
handlePlayerUpdated_:function(){_.cv(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(p,J){if(this.watchNextSkeletonEl_&&typeof J!=="undefined"){var S=this.watchNextSkeletonEl_.children,H=p&&p.indexSplices.length?p.indexSplices[0].index:0;p=Math.min(this.watchNextShownItems.length,S.length);J||(H=0,p=S.length);for(J=H;J<p;J++)S[J].classList.add("hidden")}},
onPlayerFullscreenChange_:function(p){_.z("external_fullscreen")||_.IV(this.hostElement,"yt-player-fullscreen",[p.fullscreen])},
onFullscreenChange_:function(p){this.fullscreen=p;this.gestures_&&this.gestures_.update(this.fullscreen);var J=_.cv(this);J.getPlayerPromise().then(function(S){S.setFauxFullscreen(!!_.rG())});
this.updateFullBleedElementLocations();p&&(J.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(p,J){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!J},
computeIsDonationShelfCollapsed_:function(p){return p},
computeShouldShowMerchShelf:function(p,J){return J&&!!p},
computeResponseHasComments:function(p){var J,S,H,M,X;return!!(p==null?0:(J=p.contents)==null?0:(S=J.twoColumnWatchNextResults)==null?0:(H=S.results)==null?0:(M=H.results)==null?0:(X=M.contents)==null?0:X.some(function(Z){var n;return(Z==null?void 0:(n=Z.itemSectionRenderer)==null?void 0:n.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(p,J){this.responseHasComments=this.computeResponseHasComments(this.data);return!!p&&!!Object.keys(p).length&&!J},
identity:_.D3,onWindowResized_:function(p){this.windowSize_=p;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.z("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(p){var J=this;p&&p.type!=="dataloaded"&&p.type!=="dataupdated"||_.cv(this).getPlayerPromise().then(function(S){var H=S.getPlayerState();H!==5&&H!==0&&(S=1/S.getVideoAspectRatio(),J.videoHeightToWidthRatio_!==S&&(J.videoHeightToWidthRatio_=S))})},
schedulePlayerSizeUpdate_:function(p){var J=this,S=_.z("kevlar_watch_while_v2")||_.z("web_watch_pip"),H=function(){if(J.watchMetadata){var M,X;(X=(M=J.watchMetadata).resize)==null||X.call(M)}_.cv(J).getPlayerPromise().then(function(Z){if(_.z("kevlar_set_internal_player_size")){if(!S||!J.isMiniplayerActive()){var n=J.calculateCurrentPlayerSize_();Z.setInternalSize(n.width,n.height)}}else Z.setSize(NaN,NaN);_.z("kevlar_watch_while")&&J.updateWatchWhileScrollThreshold_()})};
p?H():_.bb(_.wg,H)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(p){this.set("data.survey",p.detail)},
onYtShowSurveyCommand_:function(p){this.set("data.survey",_.e(p,_.TwG).survey)},
onDownloadedVideoDeleted:function(p){var J=this,S,H;return _.G(function(M){if(M.nextAddress==1){if(!J.active||(S=J.playerData)==null||!S.offlineState||J.videoId!==p)return M.return();(H=J.player)==null||H.stopVideo();_.YE().navigatingAwayFromWatchDeletedVideo=!0;_.KI(_.jit,J.hostElement);return M.yield(_.YE().navigationFinishPromise,2)}_.YE().navigatingAwayFromWatchDeletedVideo=!1;_.UK(M)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var p;this.theater?p=_.s0(.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=_.Jn(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&p){var J=this.windowSize_.height>=624,S=this.active?this.getScrollTop():0;!p.active&&J&&S>=this.watchWhileScrollThreshold_?(p.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):p.active&&(!J||S<this.watchWhileScrollThreshold_&&!_.rG())&&(p.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(p,J){if(p!==!0||J!==void 0){p=!_.z("live_chat_over_engagement_panels");J=_.Jn(this.hostElement).querySelector("#chat-container");var S=_.Jn(this.hostElement).querySelector("#plj-sidebar"),H=_.Jn(this.hostElement).querySelector("#panels"),M=_.Jn(this.hostElement).querySelector("#plj-panels"),X=_.Jn(this.hostElement).querySelector("#plj-playlist"),Z=_.Jn(this.hostElement).querySelector("#alerts"),n=_.Jn(this.hostElement).querySelector("#playlist"),b=_.Jn(this.hostElement).querySelector("#related"),
F=_.Jn(this.hostElement).querySelector("#donation-shelf"),f=_.Jn(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Z=_.Jn(this.hostElement).querySelector("#secondary-inner"),Z.appendChild(S),S.appendChild(X),X.appendChild(n),S.appendChild(M),p&&Z.appendChild(H),_.z("web_watch_theater_chat")||Z.appendChild(J),p||Z.appendChild(H),Z.appendChild(F),Z.appendChild(b)):(p&&_.u_(H,Z),_.u_(n,Z),_.z("web_watch_theater_chat")||_.u_(J,Z),p||_.u_(H,Z),_.u_(F,Z),f&&(M&&_.u_(M,f),_.u_(b,f)));_.z("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.z("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.z("web_watch_theater_chat")){var p=_.Jn(this.hostElement).querySelector("#chat-container"),J=this.theater&&!this.fullscreen||_.z("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&J?_.z("web_watch_theater_chat_beside_player")?(J=_.Jn(this.hostElement).querySelector("#panels-full-bleed-container"),(p==null?void 0:p.parentElement)!==J&&J.append(p),this.panelsBesidePlayer=!0):_.z("web_watch_theater_fixed_chat")&&
(J=_.Jn(this.hostElement).querySelector("#columns"),(p==null?void 0:p.parentElement)!==J&&J.append(p),this.fixedPanels=!0):(_.z("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.z("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),J=_.Jn(this.hostElement).querySelector("#playlist"),p&&J?_.l_(p,J):_.xQ(new _.TG("Missing element when updating chat location",{"chatContainer defined":!!p,"playlist defined":!!J})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(p,J){return _.z("sw_metadata_vis_toggle_ks")?!0:!!p||!!J},
computeForceDarkPanelTheme:function(p){return _.z("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&p:!1},
safeUpdateStyles:function(p){try{_.K3(this.hostElement,p)}catch(J){_.xQ(J)}},
videoHeightToWidthRatioChanged_:function(p,J){J&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.z("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&&_.cv(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.cv(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.rnq(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(p){var J=_.$t(p)||0;_.ze(p,J+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var p=_.$t("yt-fullerscreen-edu-button-click-count")||0,J=_.$t("yt-fullerscreen-edu-button-shown-count")||0,S=_.PO("external_fullscreen_button_shown_threshold"),H=p>=_.PO("external_fullscreen_button_click_threshold")||J>=S;_.cv(this).getPlayerPromise().then(function(M){M.updateFullerscreenEduButtonSubtleModeState(H)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(p,J){return J},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.vO().resolve(_.FF).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var p=this;this.panelMaxHeightUpdateJob_&&_.wg.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.wg.addLowPriorityJob(function(){p.panelMaxHeightUpdateJob_=0;var J;!p.isTwoColumns_||p.theater||p.fullscreen?J=460:J=p.calculateNormalPlayerSize_().height;var S=J+"px";_.z("live_chat_taller_height")&&!p.theater&&(S="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.z("live_chat_medium_height")&&
!p.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.z("live_chat_scaled_height")&&!p.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 238px)");p.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":J+"px","--ytd-watch-flexy-chat-max-height":S,"--ytd-watch-flexy-structured-description-max-height":J+"px","--ytd-watch-flexy-comments-panel-max-height":J+"px","--ytd-comments-engagement-panel-content-height":J+"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_&&_.JP(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(p){var J=_.Jn(this.hostElement).querySelector("#engagement-panel-scrim");p?J.addEventListener("tap",_.n3(this,this.onEngagementPanelScrimClick_)):J.removeEventListener("tap",_.n3(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(p){if(this.hostElement.contains(p)&&!this.scrollToAnimation_.isAnimating()){var J=p.offsetTop-24;p=p.offsetTop+p.offsetHeight+24;var S=this.getPageScrollingElement(),H=this.getScrollTop(),M=H+S.clientHeight-56;if(J<H+56)J-=56;else if(p>M)J=p-S.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,J),500)}},
onYtSignalActionScrollToComments:function(){var p=this.hostElement.querySelector("#comments");if(p&&!this.scrollToAnimation_.isAnimating()){p=p.offsetTop-56-24;if(_.z("kevlar_comment_teaser_scroll_to_midpoint")&&(p-=_.Bs().height/3,p<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,p),500)}},
onYtEngagementPanelVisibleChanged:function(p,J,S){this.active&&this.trackEngagementPanelVisibility&&!_.kIt.includes(S)&&(J==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(S),J!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&J!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(S),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,J){return p||J},
computeDefaultLayout:function(p){return!p},
computeDefaultTwoColumnLayout:function(p,J){return!p&&J},
computeWatchWhilePanelsActive:function(p,J){return p||J},
computeNoBorderOnChat:function(p){return _.z("web_watch_theater_chat_no_border")&&p},
computeLiveChatPresentAndExpanded:function(p,J){return p&&!J},
computePanelExpanded:function(p,J,S){return p||J||S},
onChangeMarkersVisibility:function(p){_.cv(this).getPlayerPromise().then(function(J){var S;(S=J.changeMarkerVisibility)==null||S.call(J,_.e(p,_.ab).isVisible||!1,_.e(p,_.ab).entityKeys||[],_.e(p,_.ab).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(p){this.liveChatCollapsed=p.detail;_.rl().dispatch(_.DQT(p.detail))},
provideRenderingData:function(p,J){switch(p){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=J;break;case "PRIMARY_INFO":_.z("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=J);this.videoPrimaryInfoRendererValue=J==null?void 0:J.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.z("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=J);this.videoSecondaryInfoRendererValue=J==null?void 0:J.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
J;break;case "CLARIFICATION":this.clarifyBoxValue=J;break;case "LIVE_CHAT":this.conversationBar=J;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=J;break;case "PLAYLIST":this.externalPlaylistData_=J!=null?J:{};break;case "MERCH_SHELF":this.merchShelfValue=J==null?void 0:J.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=J;break;case "OFFER_MODULE":this.offerModule=J;break;case "LIMITED_STATE":this.limitedStateValue=J;break;case "DONATION_SHELF":this.donation=J;break;
case "ALERTS":this.alertsValue=J;break;case "COMMENTS":this.comments=J;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=J;break;case "ENGAGEMENT_PANELS":this.engagementPanels=J;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=J;break;case "RICH_GRID_RENDERER":this.richGridRendererData=J;break;case "EXPANDABLE_METADATA":this.expandableMetadata=J;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=J}},
toggleCinematicsActive:function(p){this.cinematicsActive=p},
isMiniplayerActive:function(){return _.vO().resolve(_.DF).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(p){return F5s.map(function(J){return p.find(function(S){var H;return(S==null?void 0:(H=S.engagementPanelSectionListRenderer)==null?void 0:H.targetId)===J})}).filter(function(J){return J!==void 0})},
getNonLearningJourneyEngagementPanels:function(p){return p.filter(function(J){var S;return!F5s.includes((J==null?void 0:(S=J.engagementPanelSectionListRenderer)==null?void 0:S.targetId)||"")})}}];var v2D;var L6=function(){var p=_.T.apply(this,arguments)||this;p.flexy=!0;p.learningJourney=!0;p.viewTransitionEnabled=_.z("enable_player_resize_transition");p.smallerChatMinHeight=_.z("live_chat_smaller_min_height");p.isDarkTheme=document.documentElement.hasAttribute("dark");p.theaterLargerPlayer=_.z("web_watch_theater_larger_player");p.defaultCollapsePlaylist=_.z("web_watch_default_collapse_playlist");p.enableCanvasLayout=_.z("web_enable_canvas_on_learning_journey");return p};
_.Q(L6,_.T);_.R=L6.prototype;_.R.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.R.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.R.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.R.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.R.ready=function(){var p=this,J=function(){p.onColumnScroll()};
this.primary.addEventListener("scroll",J);this.secondary.addEventListener("scroll",J)};
_.R.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.R.updateIsTwoColumnsFromBinding=function(p){_.z("web_watch_update_narrow_width_killswitch")||_.rl().dispatch(_.D1t(!p.detail.value));this.ytdWatchBehavior.isTwoColumns_=p.detail.value};
_.R.updateFlexySmallWindowFromBinding=function(p){this.ytdWatchBehavior.flexySmallWindow_=p.detail.value};
_.R.updateFlexyLargeWindowFromBinding=function(p){this.ytdWatchBehavior.flexyLargeWindow_=p.detail.value};
_.R.updateWatchWhileWindowSizeSufficientFromBinding=function(p){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=p.detail.value};
_.R.updateWatchNextCanShowMoreFromBinding=function(p){this.ytdWatchBehavior.watchNextCanShowMore=p.detail.value};
_.R.updateShownItemsFromBinding=function(p){p.detail.path?this.set(p.detail.path,p.detail.value):this.ytdWatchBehavior.watchNextShownItems=p.detail.value};
_.R.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23775_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23775_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.vh.Object.defineProperties(L6.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.pageVisualEffects)return!1;for(var J=0;J<this.data.pageVisualEffects.length;J++)if(p=_.e(this.data.pageVisualEffects[J],_.Lx))return J=void 0,(J=p.config)==null?void 0:J.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.learningJourneyEngagementPanels)==null?void 0:p.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var p,J=(p=this.learningJourneyEngagementPanels)==null?void 0:p.find(function(A){var P;return(A==null?void 0:(P=A.engagementPanelSectionListRenderer)==null?void 0:P.panelIdentifier)==="learning-journey-engagement-panel"});
if(J){var S,H,M,X,Z,n,b,F,f;if(p=(F=((b=(Z=((X=J==null?void 0:(S=J.engagementPanelSectionListRenderer)==null?void 0:(H=S.content)==null?void 0:(M=H.sectionListRenderer)==null?void 0:M.contents)!=null?X:[])[0])==null?void 0:(n=Z.itemSectionRenderer)==null?void 0:n.contents)!=null?b:[])[0])==null?void 0:(f=F.accordionViewModel)==null?void 0:f.onTitleTap){var O=_.sa(p);if(O)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.R4.instance.resolveCommand(O)}}}}}}});
_.vh.Object.defineProperties(L6,{template:{configurable:!0,enumerable:!0,get:function(){if(v2D===void 0){var p=document.createElement("template");_.C(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  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);v2D=p}p=v2D;return p}}});
L6.prototype.updateMiniplayerIsActiveValue=L6.prototype.updateMiniplayerIsActiveValue;L6.prototype.updateScrollTopValue=L6.prototype.updateScrollTopValue;L6.prototype.updateFullscreenValue=L6.prototype.updateFullscreenValue;L6.prototype.updateTheaterValue=L6.prototype.updateTheaterValue;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],L6.prototype,"ytComponentBehavior",void 0);
_.V([_.B(mns.YtdLearningJourneyWatchBehavior),_.Y("design:type",Object)],L6.prototype,"ytdWatchBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],L6.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],L6.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],L6.prototype,"playerData",void 0);_.V([_.N(),_.Y("design:type",Object)],L6.prototype,"browseData",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L6.prototype,"flexy",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L6.prototype,"learningJourney",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L6.prototype,"viewTransitionEnabled",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L6.prototype,"smallerChatMinHeight",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L6.prototype,"isDarkTheme",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L6.prototype,"theaterLargerPlayer",void 0);_.V([_.N(),_.Y("design:type",Object)],L6.prototype,"defaultCollapsePlaylist",void 0);_.V([_.N(),_.Y("design:type",Object)],L6.prototype,"enableCanvasLayout",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("playerData","browseData","enableCanvasLayout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L6.prototype,"showBrowseResponse",null);
_.V([_.N({reflectToAttribute:!0}),_.U("playerData","enableCanvasLayout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L6.prototype,"showWatchResponse",null);_.V([_.N({selector:_.US}),_.Y("design:type",Object)],L6.prototype,"theaterValue",void 0);_.V([_.N({selector:_.sS}),_.Y("design:type",Object)],L6.prototype,"fullscreenValue",void 0);_.V([_.N({selector:_.U$}),_.Y("design:type",Object)],L6.prototype,"scrollTopValue",void 0);
_.V([_.N({selector:_.Bq}),_.Y("design:type",Object)],L6.prototype,"miniplayerIsActiveValue",void 0);_.V([_.FM("#ytd-plj-player"),_.Y("design:type",HTMLElement)],L6.prototype,"ytdPlayer",void 0);_.V([_.FM("#playlist"),_.Y("design:type",HTMLElement)],L6.prototype,"JSC$23775_ytdPlaylistPanelRenderer",void 0);_.V([_.nj("ytd-comments"),_.Y("design:type",HTMLElement)],L6.prototype,"ytdComments",void 0);_.V([_.FM("#primary"),_.Y("design:type",HTMLElement)],L6.prototype,"primary",void 0);
_.V([_.FM("#secondary"),_.Y("design:type",HTMLElement)],L6.prototype,"secondary",void 0);_.V([_.FM("#player-container"),_.Y("design:type",HTMLElement)],L6.prototype,"playerContainer",void 0);_.V([_.FM("#cinematics"),_.Y("design:type",HTMLElement)],L6.prototype,"JSC$23775_cinematics",void 0);_.V([_.bO("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L6.prototype,"updateTheaterValue",null);
_.V([_.bO("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L6.prototype,"updateFullscreenValue",null);_.V([_.bO("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L6.prototype,"updateScrollTopValue",null);_.V([_.bO("miniplayerIsActiveValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L6.prototype,"updateMiniplayerIsActiveValue",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L6.prototype,"cinematicLightTheme",null);_.V([_.N({reflectToAttribute:!0}),_.U("learningJourneyEngagementPanels"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L6.prototype,"hasLearningJourneyPanels",null);_.V([_.U("learningJourneyEngagementPanels"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L6.prototype,"backButtonData",null);_.V([_.gw({is:"ytd-watch-learning-journey"})],L6);_.Ke.registerService(_.ANv,L6);
_.V0();
}catch(e){_._DumpException(e)}
try{
_.lW("Tm0L3c");
var SaT;var HI7;var MrG=function(){return _.T.apply(this,arguments)||this};
_.Q(MrG,_.T);_.V([_.gw({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],MrG);
_.l(MrG,"ytd-ghost-comments-renderer",function(){if(HI7===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);HI7=p}p=HI7;return p},{mode:1});var Xis;var iIt=function(){return _.T.apply(this,arguments)||this};
_.Q(iIt,_.T);_.V([_.gw({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],iIt);
_.l(iIt,"ytd-ghost-watch-metadata-renderer",function(){if(Xis===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);Xis=p}p=Xis;return p},{mode:1});var Ib=function(){var p=_.T.apply(this,arguments)||this;p.ghostGridRenderer={rows:6};p.smallerChatMinHeight=_.z("live_chat_smaller_min_height");p.darkerPanels=_.z("web_watch_darker_panels");p.isDarkTheme=document.documentElement.hasAttribute("dark");return p};
_.Q(Ib,_.T);_.R=Ib.prototype;_.R.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.R.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.R.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.R.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.R.ready=function(){var p=this,J=function(){p.onColumnScroll()};
this.primary.addEventListener("scroll",J);this.secondary.addEventListener("scroll",J)};
_.R.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.R.updateIsTwoColumnsFromBinding=function(p){this.ytdWatchBehavior.isTwoColumns_=p.detail.value};
_.R.updateFlexySmallWindowFromBinding=function(p){this.ytdWatchBehavior.flexySmallWindow_=p.detail.value};
_.R.updateFlexyLargeWindowFromBinding=function(p){this.ytdWatchBehavior.flexyLargeWindow_=p.detail.value};
_.R.updateWatchWhileWindowSizeSufficientFromBinding=function(p){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=p.detail.value};
_.R.updateWatchNextCanShowMoreFromBinding=function(p){this.ytdWatchBehavior.watchNextCanShowMore=p.detail.value};
_.R.updateShownItemsFromBinding=function(p){_.z("swatcheroo_direct_use_rich_grid")||(p.detail.path?this.set(p.detail.path,p.detail.value):this.ytdWatchBehavior.watchNextShownItems=p.detail.value)};
_.R.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23763_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23763_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.vh.Object.defineProperties(Ib.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.pageVisualEffects)return!1;for(var J=0;J<this.data.pageVisualEffects.length;J++)if(p=_.e(this.data.pageVisualEffects[J],_.Lx))return J=void 0,(J=p.config)==null?void 0:J.enableInLightTheme;return!1}}});
Ib.prototype.updateMiniplayerIsActiveValue=Ib.prototype.updateMiniplayerIsActiveValue;Ib.prototype.updateScrollTopValue=Ib.prototype.updateScrollTopValue;Ib.prototype.updateFullscreenValue=Ib.prototype.updateFullscreenValue;Ib.prototype.updateTheaterValue=Ib.prototype.updateTheaterValue;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Ib.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.piG.YtdWatchBehavior),_.Y("design:type",Object)],Ib.prototype,"ytdWatchBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Ib.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ib.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Ib.prototype,"ghostGridRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],Ib.prototype,"playerData",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Ib.prototype,"smallerChatMinHeight",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Ib.prototype,"darkerPanels",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Ib.prototype,"isDarkTheme",void 0);_.V([_.N({selector:_.US}),_.Y("design:type",Object)],Ib.prototype,"theaterValue",void 0);_.V([_.N({selector:_.sS}),_.Y("design:type",Object)],Ib.prototype,"fullscreenValue",void 0);_.V([_.N({selector:_.U$}),_.Y("design:type",Object)],Ib.prototype,"scrollTopValue",void 0);
_.V([_.N({selector:_.Bq}),_.Y("design:type",Object)],Ib.prototype,"miniplayerIsActiveValue",void 0);_.V([_.FM("#ytd-player"),_.Y("design:type",HTMLElement)],Ib.prototype,"ytdPlayer",void 0);_.V([_.FM("#playlist"),_.Y("design:type",HTMLElement)],Ib.prototype,"JSC$23763_ytdPlaylistPanelRenderer",void 0);_.V([_.FM("#ytd-comments"),_.Y("design:type",HTMLElement)],Ib.prototype,"ytdComments",void 0);_.V([_.FM("#primary"),_.Y("design:type",HTMLElement)],Ib.prototype,"primary",void 0);
_.V([_.FM("#secondary"),_.Y("design:type",HTMLElement)],Ib.prototype,"secondary",void 0);_.V([_.FM("#player-container"),_.Y("design:type",HTMLElement)],Ib.prototype,"playerContainer",void 0);_.V([_.FM("#cinematics"),_.Y("design:type",HTMLElement)],Ib.prototype,"JSC$23763_cinematics",void 0);_.V([_.bO("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ib.prototype,"updateTheaterValue",null);
_.V([_.bO("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ib.prototype,"updateFullscreenValue",null);_.V([_.bO("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ib.prototype,"updateScrollTopValue",null);_.V([_.bO("miniplayerIsActiveValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ib.prototype,"updateMiniplayerIsActiveValue",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ib.prototype,"cinematicLightTheme",null);
_.l(Ib,"ytd-watch-grid",function(){if(SaT===void 0){var p=document.createElement("template");_.C(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-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" 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-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" 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(_.r().content.cloneNode(!0),
p.content.firstChild);SaT=p}p=SaT;return p},{mode:2});_.Ke.registerService(_.O6w,Ib);
_.V0();
}catch(e){_._DumpException(e)}
try{
_.lW("CF909");
var JzD;var cV=function(){var p=_.T.apply(this,arguments)||this;p.viewTransitionEnabled=_.z("enable_player_resize_transition");p.smallerChatMinHeight=_.z("live_chat_smaller_min_height");p.isDarkTheme=document.documentElement.hasAttribute("dark");p.defaultCollapsePlaylist=_.z("web_watch_default_collapse_playlist");p.respectAspectRatio=_.z("web_enable_aspect_ratio_fix");p.retroModeReduxValue=!1;p.persistentPanelVisibleValue=!1;return p};
_.Q(cV,_.T);_.R=cV.prototype;_.R.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.R.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.R.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.R.updateRetroModeReduxValue=function(){_.z("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.R.updatePersistentPanelVisibleValue=function(){_.z("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.R.ready=function(){var p=this,J=function(){p.onColumnScroll()};
this.primary.addEventListener("scroll",J);this.secondary.addEventListener("scroll",J)};
_.R.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.R.updateIsTwoColumnsFromBinding=function(p){_.z("web_watch_update_narrow_width_killswitch")||_.rl().dispatch(_.D1t(!p.detail.value));this.ytdWatchBehavior.isTwoColumns_=p.detail.value};
_.R.updateFlexySmallWindowFromBinding=function(p){this.ytdWatchBehavior.flexySmallWindow_=p.detail.value};
_.R.updateFlexyLargeWindowFromBinding=function(p){this.ytdWatchBehavior.flexyLargeWindow_=p.detail.value};
_.R.updateWatchWhileWindowSizeSufficientFromBinding=function(p){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=p.detail.value};
_.R.updateWatchNextCanShowMoreFromBinding=function(p){this.ytdWatchBehavior.watchNextCanShowMore=p.detail.value};
_.R.updateShownItemsFromBinding=function(p){p.detail.path?this.set(p.detail.path,p.detail.value):this.ytdWatchBehavior.watchNextShownItems=p.detail.value};
_.R.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23758_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23758_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.vh.Object.defineProperties(cV.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.pageVisualEffects)return!1;for(var J=0;J<this.data.pageVisualEffects.length;J++)if(p=_.e(this.data.pageVisualEffects[J],_.Lx))return J=void 0,(J=p.config)==null?void 0:J.enableInLightTheme;return!1}}});
_.vh.Object.defineProperties(cV,{template:{configurable:!0,enumerable:!0,get:function(){if(JzD===void 0){var p=document.createElement("template");_.C(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="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\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" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></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(_.r().content.cloneNode(!0),p.content.firstChild);JzD=p}p=JzD;return p}}});
cV.prototype.updatePersistentPanelVisibleValue=cV.prototype.updatePersistentPanelVisibleValue;cV.prototype.updateRetroModeReduxValue=cV.prototype.updateRetroModeReduxValue;cV.prototype.updateScrollTopValue=cV.prototype.updateScrollTopValue;cV.prototype.updateFullscreenValue=cV.prototype.updateFullscreenValue;cV.prototype.updateTheaterValue=cV.prototype.updateTheaterValue;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],cV.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.piG.YtdWatchBehavior),_.Y("design:type",Object)],cV.prototype,"ytdWatchBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],cV.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],cV.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],cV.prototype,"playerData",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],cV.prototype,"viewTransitionEnabled",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],cV.prototype,"smallerChatMinHeight",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],cV.prototype,"isDarkTheme",void 0);_.V([_.N(),_.Y("design:type",Object)],cV.prototype,"defaultCollapsePlaylist",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],cV.prototype,"respectAspectRatio",void 0);
_.V([_.N({selector:_.US}),_.Y("design:type",Object)],cV.prototype,"theaterValue",void 0);_.V([_.N({selector:_.sS}),_.Y("design:type",Object)],cV.prototype,"fullscreenValue",void 0);_.V([_.N({selector:_.U$}),_.Y("design:type",Object)],cV.prototype,"scrollTopValue",void 0);_.V([_.N({selector:_.Bq}),_.Y("design:type",Object)],cV.prototype,"miniplayerIsActive",void 0);_.V([_.N({selector:function(p){return p.watch.isWatchRetroMode}}),
_.Y("design:type",Object)],cV.prototype,"retroModeReduxValue",void 0);_.V([_.N({selector:_.uT.persistentPanelVisibleSelector}),_.Y("design:type",Object)],cV.prototype,"persistentPanelVisibleValue",void 0);_.V([_.nj("ytd-player"),_.Y("design:type",HTMLElement)],cV.prototype,"ytdPlayer",void 0);_.V([_.FM("#playlist"),_.Y("design:type",HTMLElement)],cV.prototype,"JSC$23758_ytdPlaylistPanelRenderer",void 0);_.V([_.nj("ytd-comments"),_.Y("design:type",HTMLElement)],cV.prototype,"ytdComments",void 0);
_.V([_.FM("#primary"),_.Y("design:type",HTMLElement)],cV.prototype,"primary",void 0);_.V([_.FM("#secondary"),_.Y("design:type",HTMLElement)],cV.prototype,"secondary",void 0);_.V([_.FM("#player-container"),_.Y("design:type",HTMLElement)],cV.prototype,"playerContainer",void 0);_.V([_.FM("#below"),_.Y("design:type",HTMLElement)],cV.prototype,"below",void 0);_.V([_.FM("#cinematics"),_.Y("design:type",HTMLElement)],cV.prototype,"JSC$23758_cinematics",void 0);
_.V([_.FM("#persistent-panel-container"),_.Y("design:type",HTMLElement)],cV.prototype,"persistentPanelContainer",void 0);_.V([_.bO("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cV.prototype,"updateTheaterValue",null);_.V([_.bO("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cV.prototype,"updateFullscreenValue",null);
_.V([_.bO("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cV.prototype,"updateScrollTopValue",null);_.V([_.bO("retroModeReduxValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cV.prototype,"updateRetroModeReduxValue",null);_.V([_.bO("persistentPanelVisibleValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cV.prototype,"updatePersistentPanelVisibleValue",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cV.prototype,"cinematicLightTheme",null);_.V([_.gw({is:"ytd-watch-flexy"})],cV);_.Ke.registerService(_.fbi,cV);
_.V0();
}catch(e){_._DumpException(e)}
try{
_.lW("nmfa2d");
var mQ7;var Vq=function(){var p=_.T.apply(this,arguments)||this;p.hidden=!1;p.errorScreen=null;p.playlistData={};return p};
_.Q(Vq,_.T);_.R=Vq.prototype;_.R.getPlayer=function(){return this.ytdPlayer};
_.R.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:_.j1(["aa","eocs"])}}};
_.R.onActiveChanged=function(){_.rl().dispatch(_.acD(this.ytPageBehavior.active))};
_.R.playerDataChanged=function(){var p;(p=this.watchController)==null||p.setPlayerResponse(this.playerData)};
_.R.dataChanged=function(){var p;(p=this.watchController)==null||p.setWatchNextResponse(this.data)};
_.R.sizeChanged=function(){var p,J;(J=(p=this.metadata).resize)==null||J.call(p)};
_.R.attached=function(){this.watchController=new _.uk(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.R.detached=function(){_.iW(this.watchController);this.watchController=void 0};
_.R.getPlayerContainer=function(){return this.playerContainer};
_.R.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.R.provideRenderingData=function(p,J){switch(p){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=J;break;case "ERROR_SCREEN":this.errorScreen=J!=null?J:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=J;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=J;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=J;break;case "RICH_METADATA":this.richMetadataRowContainer=J;break;case "CLARIFICATION":this.clarificationData=J;break;case "PLAYLIST":this.playlistData=
J!=null?J:{};break;case "MERCH_SHELF":this.merchShelf=J;break;case "TICKET_SHELF":this.ticketShelf=J;break;case "LIMITED_STATE":this.limitedState=J;break;case "DONATION_SHELF":this.donationShelf=J;break;case "ALERTS":this.alerts=J}};
_.vh.Object.defineProperties(Vq.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,J,S;return!this.hidden&&!!((p=this.data)==null?0:(J=p.contents)==null?0:(S=J.twoColumnWatchNextResults)==null?0:S.conversationBar)}}});
Vq.prototype.sizeChanged=Vq.prototype.sizeChanged;Vq.prototype.dataChanged=Vq.prototype.dataChanged;Vq.prototype.playerDataChanged=Vq.prototype.playerDataChanged;Vq.prototype.onActiveChanged=Vq.prototype.onActiveChanged;_.V([_.B(_.Sz.YtPageBehavior),_.Y("design:type",Object)],Vq.prototype,"ytPageBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Vq.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Vq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Vq.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"playerData",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Vq.prototype,"hidden",void 0);_.V([_.FM("#ytd-player"),_.Y("design:type",HTMLElement)],Vq.prototype,"ytdPlayer",void 0);_.V([_.FM("#player-container"),_.Y("design:type",HTMLElement)],Vq.prototype,"playerContainer",void 0);_.V([_.FM("#metadata"),_.Y("design:type",Object)],Vq.prototype,"metadata",void 0);_.V([_.FM("#playlist"),_.Y("design:type",HTMLElement)],Vq.prototype,"playlistPanel",void 0);
_.V([_.N({selector:_.syy,reflectToAttribute:!0}),_.Y("design:type",Object)],Vq.prototype,"fixie",void 0);_.V([_.N({selector:_.SxW,reflectToAttribute:!0}),_.Y("design:type",Object)],Vq.prototype,"singleColumn",void 0);_.V([_.N({selector:function(p){return _.US(p)&&!_.sS(p)},
reflectToAttribute:!0}),_.Y("design:type",Object)],Vq.prototype,"theater",void 0);_.V([_.N({selector:_.sS,reflectToAttribute:!0}),_.Y("design:type",Object)],Vq.prototype,"fullscreen",void 0);_.V([_.N({selector:_.lcy}),_.Y("design:type",Object)],Vq.prototype,"windowSize",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"singleColumnContents",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"errorScreen",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"playlistData",void 0);
_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"videoSecondaryInfoRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"richMetadataRowContainer",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"clarificationData",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"commentsEntryPointHeaderRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"ticketShelf",void 0);
_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"merchShelf",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"donationShelf",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"limitedState",void 0);_.V([_.N(),_.Y("design:type",Object)],Vq.prototype,"alerts",void 0);_.V([_.U("playlistData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Vq.prototype,"hasPlaylistData",null);
_.V([_.U("data","hidden"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vq.prototype,"hasChat",null);_.V([_.bO("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vq.prototype,"onActiveChanged",null);_.V([_.bO("playerData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vq.prototype,"playerDataChanged",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vq.prototype,"dataChanged",null);_.V([_.bO("windowSize","singleColumn"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vq.prototype,"sizeChanged",null);
_.l(Vq,"ytd-watch-fixie",function(){if(mQ7===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);mQ7=p}p=mQ7;return p},{mode:1});_.Ke.registerService(_.v1i,Vq);
_.V0();
}catch(e){_._DumpException(e)}
try{
_.lW("xwEKAe");
var $zp=function(p){p=p.command;var J=_.e(p,_.vt);return{command:p,reelPlayerOverlayRenderer:_.e(J==null?void 0:J.overlay,_.ie4),thumbnail:J==null?void 0:J.thumbnail,videoId:J.videoId}},ovt=function(p){p=p.command;
var J=_.e(p,_.iq);return{command:p,reelNonVideoContentRenderer:_.e(J==null?void 0:J.renderer,_.K5)}},eYG=function(p){return p.entries?p.entries.map(function(J){return _.e(J==null?void 0:J.command,_.vt)?$zp(J):ovt(J)}):[]},WTs=function(p){return p.prevEntries?p.prevEntries.map(function(J){return _.e(J==null?void 0:J.command,_.vt)?$zp(J):ovt(J)}):[]},Qd7=function(p){return _.bS(p)?p.getAttribute("jsname")==="coFSxe":!1},Cea=function(p,J){J.id||(J.id="ow"+_.jt(J));
p.setAttribute("jsowner",J.id);p.__owner=J;var S=_.ar(J,Qd7);S&&(_.qB8.has(S)||_.qB8.set(S,[]),_.qB8.get(S).push(p));(S=_.VqM.get(J))||_.VqM.set(J,S=[]);S.includes(p)||S.push(p);J.setAttribute("__IS_OWNER",!0)},y4p=function(){var p=_.z24(1);
p=_.KU(p,_.C4i);if(!(_.P44(p)||p[_.$9X]&&!p.__hasBeenSet))return p.value},BYG=function(p){return(p=_.Lwg(p))?_.JKX(p):0},Uzv=function(p){return p.shorts.isSmallScreenSqueezeback},sds=function(p){return p.shorts.isPlaybackStarted},gvq=function(p){var J=_.Gv();
if(J.getFlag(202))J=J.getFlag(201);else{var S;J=(p==null?void 0:(S=p.config)==null?void 0:S.settingOnByDefault)!==void 0?p.config.settingOnByDefault:!_.z("web_shorts_cinematics_disabled_by_default")}return J},tny=function(p){var J=_.Gv();
_.b7(0,201,p);_.b7(0,202,!0);J.save()},kVs=function(p){var J=_.z24(2),S=new Set;
_.VY(function(){return void S.forEach(function(H){return void H()})});
return function(H){var M=_.R2(J);try{var X=hYG(Dz4(p),H);S.add(X);return function(){X();S.delete(X)}}finally{_.R2(M)}}},NYp=function(p){var J=p.children;
var S=p.root;_.qz(function(){var H=kVs(S)(J);_.VY(H)});
return document.createTextNode("")},hYG=function(p,J){var S=TYs(p);
(p=y4p())&&Cea(S,p);_.W5.setUp();J=_.K(_.apw(J,!0));p=J.next().value;var H=J.next().value;J=_.K(p);for(p=J.next();!p.done;p=J.next())S.appendChild(p.value);_.W5.log(S);_.W5.tearDown();return function(){H();S.remove()}},Dz4=function(p){if(typeof p==="string")return p=document.querySelector(p),_.huN(p),p;
if(_.A4(p)&&p.nodeType===Node.ELEMENT_NODE)return p;if(!p.__value&&!p.__optional){var J=_.eCt.USE_ELEMENT_NOT_ASSIGNED(p.__expectedTagName);p.__hasErrored=!0;throw J;}return p.value},TYs=function(p){var J=document.createElementNS(p.namespaceURI,p.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return p.appendChild(J)},lJp=function(p,J,S,H){if(p)return H=H||p.likeStatus,J?{style:{styleType:"STYLE_TEXT"},
toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:H==="LIKE",isDisabled:!p.likesAllowed,defaultIcon:{iconType:S},defaultText:H==="LIKE"?p.likeCountWithUnlikeText:p.likeCountText,toggledText:H==="LIKE"?p.likeCountText:p.likeCountWithLikeText,defaultNavigationEndpoint:dzs(p,"LIKE"),defaultServiceEndpoint:uaa(p,"LIKE"),toggledServiceEndpoint:uaa(p,"INDIFFERENT"),defaultTooltip:_.E4(p.likeCountTooltipText),toggledTooltip:_.E4(p.likeCountTooltipText),targetId:p.targetId}:{style:{styleType:"STYLE_TEXT"},
toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:H==="DISLIKE",isDisabled:!p.likesAllowed,defaultIcon:{iconType:S},defaultText:H==="DISLIKE"?p.dislikeCountWithUndislikeText:p.dislikeCountText,toggledText:H==="DISLIKE"?p.dislikeCountText:p.dislikeCountWithDislikeText,defaultNavigationEndpoint:dzs(p,"DISLIKE"),defaultServiceEndpoint:uaa(p,"DISLIKE"),toggledServiceEndpoint:uaa(p,"INDIFFERENT"),defaultTooltip:_.E4(p.dislikeCountTooltipText),toggledTooltip:_.E4(p.dislikeCountTooltipText)}},dzs=
function(p,J){if(J==="LIKE")return p.likeCommand;
if(J==="DISLIKE")return p.dislikeNavigationEndpoint},uaa=function(p,J){var S;
return(S=p.serviceEndpoints)==null?void 0:S.find(function(H){var M;return((M=_.e(H,_.IW))==null?void 0:M.status)===J})},VnG=function(p,J,S,H){p=J-p;
S=H-S;return Math.sqrt(p*p+S*S)},qgq=function(p){var J=p>>8&255,S=p&255;
return"#"+(p>>16&255).toString(16).padStart(2,"0")+J.toString(16).padStart(2,"0")+S.toString(16).padStart(2,"0")},aJq=function(p,J){p&&_.vO().resolve(_.Ov).resolveCommand(p,{forceClickLogging:!0,
form:{element:J}})},EvD=function(){return _.vO().resolve(_.jW).dismissedIndices},Ygd=function(p,J){var S,H,M,X,Z,n,b,F,f;
return _.G(function(O){if(O.nextAddress==1){S=_.vO().resolve(_.Ef);X=(H=S)==null?void 0:(M=H.reelWatchEndpointMap)==null?void 0:M.reelWatchSequence;n=(Z=p.innertubeTransportService)!=null?Z:_.vO().resolve(_.Ac);if(!X)return O.jumpTo(2);b=X();return(F=b.JSC$14326_getRequest(J,{}))?O.yield(_.mX(n,F.innerTubeRequest,F.input,J.clickTrackingParams,F.config),4):O.jumpTo(2)}return O.nextAddress!=2?(f=O.yieldResult,O.return(f)):O.return(void 0)})},r4p=function(p,J,S){var H,M=(H=_.e(J,_.vt))==null?void 0:
H.videoId;
H=!(!M||!p.find(function(Z){return Z.videoId&&Z.videoId===M}));
var X=!!p.find(function(Z){var n;return((n=_.e(Z.command,_.vt))==null?void 0:n.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
p=!!p.find(function(Z){return!!_.e(Z.command,_.iq)&&!!_.e(J,_.iq)&&Z.command===J});
return S?H||p:H||X||p},jdv=function(p,J,S){var H=[].concat(_.dW(p)),M=0,X=S?eYG(S):[];
S=S?WTs(S):[];J&&!r4p(p,J.command)&&H.unshift(J);X.length&&!r4p(p,X[0].command,!0)&&H.push.apply(H,_.dW(X));J&&S.length&&!r4p(p,S[0].command)&&(H.unshift.apply(H,_.dW(S.reverse())),M=S.length);return{newContentList:H,indexChange:M}},w57=function(p){var J;
(J=p.currentCinematicEffect)==null||J.clear()},xzy=function(p){return _.Jk({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:p}})},c4a=function(p){return _.Jk({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:p}})},IJa=function(p){return _.Jk({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:p}})};var PM=function(p,J){if(p instanceof PM)this.array_=p.array_;else{var S;if(S=_.qW(p))a:{for(var H=S=0;H<p.length;H++){if(!_.qW(p[H])||S>0&&p[H].length!=S){S=!1;break a}for(var M=0;M<p[H].length;M++)if(typeof p[H][M]!=="number"){S=!1;break a}S==0&&(S=p[H].length)}S=S!=0}if(S)this.array_=_.VX(p);else if(p instanceof _.yF)this.array_=LTu(p.height,p.width);else if(typeof p==="number"&&typeof J==="number"&&p>0&&J>0)this.array_=LTu(p,J);else throw Error("Uo");}this.size_=new _.yF(this.array_[0].length,
this.array_.length)},pOG=function(p,J,S){for(var H=0;H<p.getSize().height;H++)for(var M=0;M<p.getSize().width;M++)J.call(S,p.array_[H][M],H,M,p)},JlD=function(p,J){var S=new PM(p.getSize());
pOG(p,function(H,M,X){S.array_[M][X]=J.call(void 0,H,M,X,p)});
return S},LTu=function(p,J){for(var S=[],H=0;H<p;H++){S[H]=[];
for(var M=0;M<J;M++)S[H][M]=0}return S};
PM.prototype.add=function(p){if(!_.xss(this.size_,p.getSize()))throw Error("Vo");return JlD(this,function(J,S,H){return J+p.array_[S][H]})};
PM.prototype.equals=function(p,J){if(this.size_.width!=p.size_.width||this.size_.height!=p.size_.height)return!1;J=J||0;for(var S=0;S<this.size_.height;S++)for(var H=0;H<this.size_.width;H++)if(!_.wWd(this.array_[S][H],p.array_[S][H],J))return!1;return!0};
PM.prototype.getSize=function(){return this.size_};
var zj=function(p,J,S){return J>=0&&J<p.size_.height&&S>=0&&S<p.size_.width?p.array_[J][S]:null};
PM.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var SvG=function(p,J,S,H){if(!(J>=0&&J<p.size_.height&&S>=0&&S<p.size_.width))throw Error("Wo`"+J+"`"+S+"`"+p.size_.height+"`"+p.size_.width);p.array_[J][S]=H};
PM.prototype.multiply=function(p){if(p instanceof PM){if(this.size_.width!=p.getSize().height)throw Error("Xo");return HQq(this,p)}if(typeof p==="number")return MBq(this,p);throw Error("Yo");};
var HQq=function(p,J){var S=new PM(p.size_.height,J.getSize().width);pOG(S,function(H,M,X){for(var Z=H=0;Z<this.size_.width;Z++)H+=zj(this,M,Z)*zj(J,Z,X);SvG(S,M,X,H)},p);
return S},MBq=function(p,J){return JlD(p,function(S){return S*J})};var XOu=new _.Zz("inlineSurveyRenderer");var iQp=new _.Zz("interstitialViewModel");var RXy=new _.Zz("reelNavigateCommand");var Kdp=new _.Zz("reelNonVideoContentDismissalCommand");var ZQt=new _.Zz("showReelsCommentsOverlayCommand");var nad=new _.Zz("videoInteractionPopUpRenderer");var GGv=new _.Zz("pollChoiceData");var bQG;var mV7;var FdG;var $u=function(){var p=_.T.apply(this,arguments)||this;p.ctaVisualElement=null;p.currentCsn=null;return p};
_.Q($u,_.T);_.R=$u.prototype;_.R.onDataChanged=function(){this.maybeLogShows()};
_.R.computeButtonShape=function(){var p=this;if(this.data)return{buttonText:_.E4(this.data.text),state:"active",onTap:function(){p.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.R.maybeCreateCtaVe=function(){var p;if((p=this.data)!=null&&p.badgeInteractionLogging){var J;if(p=(J=this.data.badgeInteractionLogging)==null?void 0:J.trackingParams)this.ctaVisualElement=_.Az(p)}};
_.R.maybeLogClicks=function(){this.currentCsn=_.C1(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.l7(this.currentCsn,this.ctaVisualElement)};
_.R.maybeLogShows=function(){this.currentCsn=_.C1(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.dI(this.currentCsn,[this.ctaVisualElement])};
_.R.onTap=function(){var p;if((p=this.data)!=null&&p.onClickCommand){var J;this.ytComponentBehavior.resolveCommand((J=this.data)==null?void 0:J.onClickCommand);this.maybeLogClicks()}};
$u.prototype.onDataChanged=$u.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],$u.prototype,"ytComponentBehavior",void 0);_.V([_.N({}),_.Y("design:type",Object)],$u.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$u.prototype,"onDataChanged",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],$u);
_.l($u,"ytd-shopping-overlay-badge-renderer",function(){if(FdG!==void 0)return FdG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return FdG=p},{mode:1});var vap;var o_=function(){return _.T.apply(this,arguments)||this};
_.Q(o_,_.T);o_.prototype.computeShouldButtonBeVertical=function(p,J){return p||J};
o_.prototype.onYtServiceRequestSent=function(p,J){(p=_.e(J.endpoint,_.IW))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.P$("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:p.status})):this.handleLikeEndpoint(p))};
o_.prototype.computelikeStatusEntityKey=function(p){return p==null?void 0:p.likeStatusEntityKey};
o_.prototype.handleLikeEndpoint=function(p){p.status==="LIKE"?this.JSC$22940_ytdDislikeToggleButtonRenderer.toggle(!1):p.status==="DISLIKE"?this.JSC$22940_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$22940_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$22940_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.vh.Object.defineProperties(o_.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var p;return lJp(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;if(this.data&&((p=this.data)==null||!p.hideDislikeButton)){var J;return lJp(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(J=this.likeStatusEntity)==null?void 0:J.likeStatus)}}}});
o_.prototype.onYtServiceRequestSent=o_.prototype.onYtServiceRequestSent;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],o_.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],o_.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],o_.prototype,"vertical",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],o_.prototype,"textTransform",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],o_.prototype,"useShortsIcon",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],o_.prototype,"underIconLabel",void 0);_.V([_.N({value:"left"}),_.Y("design:type",String)],o_.prototype,"buttonTooltipPosition",void 0);_.V([_.N(),_.Y("design:type",Object)],o_.prototype,"overrides",void 0);
_.V([_.FM("#like-button"),_.Y("design:type",Object)],o_.prototype,"JSC$22940_ytdLikeToggleButtonRenderer",void 0);_.V([_.FM("#dislike-button"),_.Y("design:type",Object)],o_.prototype,"JSC$22940_ytdDislikeToggleButtonRenderer",void 0);_.V([_.U("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],o_.prototype,"likeButton",null);
_.V([_.U("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],o_.prototype,"dislikeButton",null);_.V([_.N({computed:"computelikeStatusEntityKey(data)"}),_.Y("design:type",String)],o_.prototype,"likeStatusEntityKey",void 0);_.V([_.N({selectorArgs:["likeStatusEntityKey"],selector:_.tm}),_.Y("design:type",Object)],o_.prototype,"likeStatusEntity",void 0);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],o_.prototype,"onYtServiceRequestSent",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],o_);
_.pI()(o_,"ytd-like-button-renderer",function(){if(vap===void 0){var p=document.createElement("template");_.C(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<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);vap=p}p=vap;return p},{mode:1});_.ci(_.ZVr,"reel-sound-metadata-view-model",{props:{data:_.jr,overlayDensity:_.jr}});_.ci(_.MaN,"player-disclosure-view-model",{props:{data:_.fD,extractOverlay:_.fD}});_.ci(_.Hvq,"pivot-button-view-model",{props:{data:_.jr,className:_.jr}});_.ci(_.MPp,"reel-action-bar-view-model",{props:{data:_.fD,buttonShapeOverrideables:_.fD}});_.ci(_.ZHf,"yt-reel-metapanel-view-model",{props:{data:_.fD,overlayDensity:_.fD,extractOverlay:_.fD}});var fLT=_.d(function(p){var J=p.children;var S=p.region;p=_.K(_.eQ(void 0,void 0,"flxBBc"));var H=p.next().value,M=p.next().value;p=_.K(_.eQ("0px",void 0,"IAR7k"));var X=p.next().value,Z=p.next().value;p=_.K(_.eQ("0px",void 0,"QV4iWb"));var n=p.next().value,b=p.next().value;p=_.K(_.eQ(0,void 0,"Q2oK6b"));var F=p.next().value,f=p.next().value;p=_.K(_.eQ(0,void 0,"hYKowe"));var O=p.next().value,A=p.next().value,P=function(){var E=H();if(E){var a;if(((a=_.nG())==null?void 0:a.getPlayerState())!==-1){E.style.display=
"inherit";var q;(q=_.nG())==null||q.removeEventListener("onStateChange",P)}else E.style.display="none";y()}},W=function(){var E;
return(E=_.IY())==null?void 0:E.querySelector("video")},y=function(){var E=W();
if(E){f(E.getBoundingClientRect().width);A(E.getBoundingClientRect().height);var a;Z((E==null?void 0:(a=E.style)==null?void 0:a.left)||"0px");var q;b((E==null?void 0:(q=E.style)==null?void 0:q.top)||"0px")}};
_.lf(function(){var E=H();if(E){var a,q,w;if(((a=_.nG())==null?void 0:a.getPlayerState())===-1&&Math.round(((w=(q=_.nG())==null?void 0:q.getVideoAspectRatio())!=null?w:0)*100)!==Math.round(F()/O()*100)){E.style.display="none";var I,Z3;A(F()/((Z3=(I=_.nG())==null?void 0:I.getVideoAspectRatio())!=null?Z3:1))}}},"N29KDe");
var t=function(){y()},D;
_.qz(function(){y();var E;if(!(S==null?0:(E=S())==null?0:E.transformationMatrix))throw Error("bp");var a;(a=_.nG())==null||a.addEventListener("onStateChange",P);if(window.ResizeObserver){if(E=W())D=new ResizeObserver(t),D.observe(E)}else window.addEventListener("resize",y);_.VY(function(){var q;(q=_.nG())==null||q.removeEventListener("onStateChange",P);D?D.disconnect():window.removeEventListener("resize",y)})});
var k=function(){var E,a,q=(a=S==null?void 0:(E=S())==null?void 0:E.transformationMatrix)!=null?a:[];E=F();a=O();for(var w=[],I=0,Z3=-1;I<q.length;I++)I%3===0&&(Z3++,w[Z3]=[]),w[Z3].push(q[I]);q=new PM(w);w=new PM([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);w=q.multiply(w);q=new PM([[0,0],[0,0],[0,0],[0,0]]);for(I=0;I<w.getSize().width;I++){Z3=zj(w,0,I);var vg=zj(w,1,I);if(Z3===null||vg===null)throw Error("ap`"+(I+1).toString());SvG(q,I,0,Z3*E);SvG(q,I,1,vg*a)}E=zj(q,0,0);I=zj(q,1,0);a=zj(q,0,1);Z3=zj(q,1,1);
if(E===null||I===null||a===null||Z3===null)throw Error("Zo");w=VnG(E,I,a,Z3);vg=zj(q,3,0);q=zj(q,3,1);if(vg===null||q===null)throw Error("$o");q=VnG(E,vg,a,q);Z3=(Number((Z3*-1).toFixed(2))-Number((a*-1).toFixed(2)))/(Number(I.toFixed(2))-Number(E.toFixed(2)));vg=Math.atan(Z3)*180/Math.PI;I=Z3===Number.POSITIVE_INFINITY?-90:Z3===Number.NEGATIVE_INFINITY?90:Object.is(Z3,-0)?180:Z3===0?0:Z3>0?vg*-1:E<I?vg*-1:Math.abs(vg)+180;return"left:calc("+E+"px + "+X()+"); top:calc("+(a+"px + "+n()+"); width:")+
(w+"px; height:")+(q+"px; transform:rotate(")+(I+"deg);\n        --sticker-width:"+w+";")};
return _.m(NYp,{root:"#sticker-layer"},function(){return _.m("yt-overlay-sticker",{el:_.Y2(M),style:k,class:"ytOverlayStickerHost"},J)})},"Bn");var OQD=_.d(function(p){function J(){var P,W,y,t,D=(W=_.e((P=b())==null?void 0:P.command,_.gD8))==null?void 0:(y=W.item)==null?void 0:(t=y.notificationTextRenderer)==null?void 0:t.successResponseText;if(D)P=_.wl(D),_.IV(H.value,"yt-open-popup-action",[P,H.value]);else if(F())aJq(F(),H.value);else{var k;aJq((k=b())==null?void 0:k.command,H.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var S=p.data;var H=_.nE("svg"),M=_.K(_.eQ(!1,void 0,"e9onLe"));p=M.next().value;var X=M.next().value,Z=_.K(_.eQ(!1,void 0,"ptnIQd"));M=Z.next().value;var n=Z.next().value,b=function(){var P;return _.e((P=S())==null?void 0:P.popUp,nad)},F=function(){var P;
return(P=S())==null?void 0:P.command},f=function(){return _.e(F(),_.zy)!==void 0};
Z=_.Kb(function(){J();return!1});
var O={},A={};return _.m("svg",{"on:mouseover":_.Kb(function(){f()&&X(!0);n(!0);return!1}),
"on:mouseout":_.Kb(function(){X(!1);n(!1);return!1}),
"on:keydown":_.Kb(function(P){P.key==="Enter"&&J();return!1}),
"on:focus":_.Kb(function(){f()&&X(!0);return!1}),
"on:blur":_.Kb(function(){f()&&X(!1);return!1}),
el:H,tabindex:0,"aria-label":function(){var P;return(P=S())==null?void 0:P.a11yString},
id:"player-overlay-video-interaction-svg",class:_.XB("ytPlayerOverlayInteractionInteractionsSvg",(O.ytPlayerOverlayInteractionInteractionsSvgHover=p,O),(A.ytPlayerOverlayInteractionInteractionsSvgHideOutline=M,A)),role:"button","on:click":Z})},"En");_.ci(_.d(function(p){var J=p.data;_.qz(function(){var S;if((S=J())==null?0:S.trackingParams){var H;_.bC().graftServerVe((H=J().trackingParams)!=null?H:"")}});
return _.m("yt-player-overlay-interaction",null,_.m(fLT,{region:function(){var S,H;return(S=J())==null?void 0:(H=S.regions)==null?void 0:H[0]}},_.m(OQD,Object.assign({},p))))},"Dn"),"yt-player-overlay-interaction",{props:{data:_.fD}});var AlG=_.d(function(p){var J=p.data;var S=p.index;var H=p.selectedChoice;var M=function(){var X;return _.e((X=J())==null?void 0:X.renderer,GGv)};
p={};return _.m("yt-overlay-poll-sticker-choice",{class:_.XB("ytOverlayPollStickerChoiceHost"),style:_.G7({"--displayed-percentage":function(){var X,Z,n,b;return""+Math.ceil(Number((H==null?void 0:H())===S()?(X=M())==null?void 0:(Z=X.selected)==null?void 0:Z.progressBarWidth:(n=M())==null?void 0:(b=n.unselected)==null?void 0:b.progressBarWidth)*100)}})},_.m("div",{class:_.XB("ytOverlayPollStickerChoicePollChoice",(p.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(H==null?void 0:H())!==
void 0},p.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(H==null?void 0:H())===S()},p))},_.m("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var X;
return((X=M())==null?void 0:X.text)||""}),_.m("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(H==null?void 0:H())==="undefined")var X="";
else{var Z,n,b,F;X=(H==null?void 0:H())===S()?(Z=M())==null?void 0:(n=Z.selected)==null?void 0:n.votePercentage:(b=M())==null?void 0:(F=b.unselected)==null?void 0:F.votePercentage}return X})))},"Fn");var Phd=_.d(function(p){var J=p.data;var S=p.enableDebuggingFeatures;var H=_.fb(function(X){var Z,n=((Z=J())==null?void 0:Z.postPollStateEntityKey)||"";X=_.RR(X.entities,"postPollStateEntity",n);var b;return((b=J())==null?0:b.viewerIsOwner)?Object.assign({},X,{selectedOptionId:-1,voted:!0}):X}),M=_.vO().resolve(_.Ov);
p={};return _.m("yt-overlay-poll-sticker",null,_.m(fLT,{region:function(){var X,Z;return(X=J())==null?void 0:(Z=X.region)==null?void 0:Z.interactionRegion}},_.m("div",{class:_.XB("ytOverlayPollStickerHost",(p.ytOverlayPollStickerDebugStyle=function(){return S==null?void 0:S()},p)),
style:_.G7({"--original-height":function(){var X;return""+(((X=J())==null?void 0:X.mainBodyHeight)||1)},
"--original-width":function(){var X;return""+(((X=J())==null?void 0:X.mainBodyWidth)||1)},
"--scaled-width":function(){var X;return""+(((X=J())==null?void 0:X.mainBodyWidth)||1)},
"--primary-surface":function(){var X,Z;return qgq(((X=J())==null?void 0:(Z=X.theme)==null?void 0:Z.primarySurface)||0)},
"--raised-surface":function(){var X,Z;return qgq(((X=J())==null?void 0:(Z=X.theme)==null?void 0:Z.raisedSurface)||0)},
"--secondary-surface":function(){var X,Z;return qgq(((X=J())==null?void 0:(Z=X.theme)==null?void 0:Z.secondarySurface)||0)},
"--primary-text":function(){var X,Z;return qgq(((X=J())==null?void 0:(Z=X.theme)==null?void 0:Z.primaryText)||0)},
"--secondary-text":function(){var X,Z;return qgq(((X=J())==null?void 0:(Z=X.theme)==null?void 0:Z.secondaryText)||0)}})},_.m("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return J().questionText}," "),_.m(_.dY,{each:function(){return J().pollChoiceConfigs||[]}},function(X,Z){return _.m("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.Kb(function(){var n=Z(),b;if((b=J())==null||!b.viewerIsOwner){var F,f;b=(F=J())==null?void 0:(f=F.pollChoiceConfigs)==null?void 0:f[n];if(f=(b==null?0:b.renderer)?_.e(b.renderer,GGv):void 0){var O;F=((O=H())==null?void 0:O.selectedOptionId)!==n;var A;if(O=(A=F?f.selectedPollCommand:f.deselectedPollCommand)==null?void 0:A.innertubeCommand){M.resolveCommand(O);var P,W;_.ED().dispatch(_.P$("postPollStateEntity",((P=H())==null?void 0:P.key)||"",{key:((W=H())==null?void 0:W.key)||"",selectedOptionId:F?
n:-1,voted:F}))}}}})},_.m(AlG,{data:X,
index:Z,selectedChoice:function(){var n,b;return((n=H())==null?0:n.voted)?(b=H())==null?void 0:b.selectedOptionId:void 0}}))}),_.m("div",{class:"ytOverlayPollStickerVoteCount"},function(){var X,Z;
return((X=H())==null?0:X.voted)&&((Z=H())==null?void 0:Z.selectedOptionId)!==-1?J().postVoteCountText:J().preVoteCountText}))))},"Gn");_.ci(_.d(function(p){var J=p.data;return _.m("yt-stickers-layer",null,_.m(_.dY,{each:function(){var S;return((S=J())==null?void 0:S.stickers)||[]}},function(S){return _.m(_.v,{cond:function(){return _.z("enable_shorts_poll_stickers_web")},
then:function(){return _.m(_.v,{cond:function(){return S==null?void 0:S.pollSticker},
then:function(H){return _.m(Phd,{data:H,enableDebuggingFeatures:function(){var M;return(M=J())==null?void 0:M.enableDebuggingFeatures}})}})}})}))},"Hn"),"yt-stickers-layer",{props:{data:_.fD}});var eO=function(){var p=_.T.apply(this,arguments)||this;p.showScrubber=!1;p.isWatchWhileMode=!1;p.enableAnchoredPanel=_.z("desktop_shorts_v2_anchored_panel");p.enablePollStickers=_.z("enable_shorts_poll_stickers_web");p.enableShortsModernControls=_.z("web_shorts_modern_controls");p.anchoredPanelActive=!1;p.enableLivingroomLayout=_.z("reels_enable_livingroom_layout");p.enablePlayerMetadataContainer=_.z("reels_web_enable_metadata_container");p.enableSqueezebackPanels=_.z("web_shorts_enable_squeezeback_panels");
p.useAspectRatio=_.z("web_use_aspect_ratio");p.isSqueezebackActive=!1;p.smallScreenSqueezeback=!1;p.isPlayerStarted=!1;p.overlayDensity=0;p.extractOverlay=!1;p.extractActionBar=!1;p.isOverlay=!1;p.isImmersive=!1;p.isImmersiveHorizontal=!1;p.isFullscreen=!1;p.onWindowResized=function(){var J;p.set("isImmersive",((J=window.getComputedStyle(p.hostElement))==null?void 0:J.getPropertyValue("--immersive-mode-on"))==="1");p.set("isImmersiveHorizontal",p.isImmersive&&p.enableLivingroomLayout&&!p.isWatchWhileMode)};
return p};
_.Q(eO,_.T);_.R=eO.prototype;_.R.updateIsOverlay=function(p){this.isOverlay=p.detail.value};
_.R.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.R.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.R.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.R.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.R.onOverlayDensityChange=function(){var p=_.Jn(this.hostElement).querySelector("ytd-info-panel-container-renderer");p&&(p.set("extractOverlay",this.extractOverlay),p.set("roundedContainer",this.extractOverlay))};
_.R.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.R.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.R.ready=function(){(_.z("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.z("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.zG("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.zG("reels_action_justified_content")||"flex-start")};
_.R.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",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.R.setFakeLoadingButtons=function(){_.z("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Kl("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Kl("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Kl("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Kl("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Kl("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()};
_.R.setEmptyOverlayMetadata=function(){_.z("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}))};
_.vh.Object.defineProperties(eO.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.infoPanel)}}});
eO.prototype.onOverlayDensityChange=eO.prototype.onOverlayDensityChange;eO.prototype.onIsActiveChanged=eO.prototype.onIsActiveChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],eO.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],eO.prototype,"ytdReduxBehavior",void 0);
_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],eO.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],eO.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],eO.prototype,"isActive",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],eO.prototype,"hidden",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],eO.prototype,"useShortsIcon",void 0);
_.V([_.N({value:"left"}),_.Y("design:type",String)],eO.prototype,"buttonTooltipPosition",void 0);_.V([_.N({value:_.z("reels_enable_livingroom_layout")?"top":"left"}),_.Y("design:type",String)],eO.prototype,"likeButtonTooltipPosition",void 0);_.V([_.N({value:"none"}),_.Y("design:type",String)],eO.prototype,"textTransform",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"showScrubber",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"isWatchWhileMode",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.infoPanel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eO.prototype,"hasInfoPanel",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"enableAnchoredPanel",void 0);_.V([_.N(),_.Y("design:type",Object)],eO.prototype,"enablePollStickers",void 0);
_.V([_.N(),_.Y("design:type",Object)],eO.prototype,"enableShortsModernControls",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"anchoredPanelActive",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"enableLivingroomLayout",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eO.prototype,"enablePlayerMetadataContainer",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"enableSqueezebackPanels",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"useAspectRatio",void 0);_.V([_.N({selector:_.aCX,reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"isSqueezebackActive",void 0);_.V([_.N({selector:Uzv,reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"smallScreenSqueezeback",void 0);
_.V([_.N({selector:sds}),_.Y("design:type",Object)],eO.prototype,"isPlayerStarted",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"overlayDensity",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"extractOverlay",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"extractActionBar",void 0);_.V([_.N(),_.Y("design:type",Object)],eO.prototype,"isOverlay",void 0);
_.V([_.N(),_.Y("design:type",Object)],eO.prototype,"isImmersive",void 0);_.V([_.N(),_.Y("design:type",Object)],eO.prototype,"isImmersiveHorizontal",void 0);_.V([_.N({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.Y("design:type",Boolean)],eO.prototype,"isShortsImmersive",void 0);_.V([_.N({computed:"computeButtonOverride(extractActionBar)"}),_.Y("design:type",Object)],eO.prototype,"buttonOverride",void 0);
_.V([_.N({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.Y("design:type",Object)],eO.prototype,"actionBarButtonOverride",void 0);_.V([_.N({selector:_.JX,reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"isFullscreen",void 0);_.V([_.bO("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eO.prototype,"onIsActiveChanged",null);
_.V([_.bO("extractOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eO.prototype,"onOverlayDensityChange",null);_.V([_.gw({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],eO);
_.l(eO,"ytd-reel-player-overlay-renderer",function(){if(mV7!==void 0)return mV7;var p=document.createElement("template");_.C(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-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\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]]" extract-overlay="[[extractOverlay]]" 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="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return mV7=p},{mode:1});var zXs;var WM=function(){var p=_.T.apply(this,arguments)||this;p.videoDuration=0;p.playedTime=0;p.isActive=!1;p.JSC$22966_playerEvents=new Map;return p};
_.Q(WM,_.T);_.R=WM.prototype;_.R.created=function(){this.JSC$22966_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22966_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.R.attached=function(){this.getPlayerAndInitializeListeners()};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22966_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.n3(this,this.onPageChanged))};
_.R.getPlayerAndInitializeListeners=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return J=_.IY(),J?S.yield(J.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.n3(p,p.onPageChanged)),S.jumpTo(0));p.player=S.yieldResult;p.initializePlayerListeners();_.UK(S)})};
_.R.onPageChanged=function(p){var J=this;return _.G(function(S){if(S.nextAddress==1)return p.detail.newPageType!=="ytd-shorts"?S.return():S.yield(_.Lb().getPlayerPromise(),2);J.player=S.yieldResult;J.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.n3(J,J.onPageChanged));_.UK(S)})};
_.R.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22966_playerEvents)};
_.R.onVideoDataChange=function(p){var J=this;return _.G(function(S){if(!J.player||p.type!=="newdata")return S.return();J.videoDuration=_.z("web_shorts_use_progress_state_for_gapless")?J.player.getProgressState(p.playertype).seekableEnd:J.player.getDuration(p.playertype);J.playedTime=0;_.UK(S)})};
_.R.onVideoProgress=function(p){var J=this,S,H;return _.G(function(M){if(!J.player)return M.return();S=J.player.getPresentingPlayerType();H=J.player.getPlayerState();J.videoDuration=_.z("web_shorts_use_progress_state_for_gapless")?J.player.getProgressState(S).seekableEnd:J.player.getDuration(S);J.playedTime=H===0?J.videoDuration:p;_.UK(M)})};
_.R.getPercentPlayed=function(p,J){return p?_.s0(J/p,0,1):0};
_.vh.Object.defineProperties(WM.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}}});
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],WM.prototype,"componentBehavior",void 0);_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],WM.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],WM.prototype,"player",void 0);_.V([_.N(),_.Y("design:type",Object)],WM.prototype,"videoDuration",void 0);_.V([_.N(),_.Y("design:type",Object)],WM.prototype,"playedTime",void 0);_.V([_.N(),_.Y("design:type",Object)],WM.prototype,"isActive",void 0);
_.V([_.U("videoDuration","playedTime"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],WM.prototype,"percentPlayed",null);_.V([_.U("videoDuration","playedTime"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WM.prototype,"percentPlayedStyle",null);_.V([_.U("videoDuration","isActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],WM.prototype,"hideProgressBar",null);
_.l(WM,"ytd-progress-bar-line",function(){if(zXs===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);zXs=p}p=zXs;return p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var $VT;_.ci(_.hHI,"ytm-closed-captioning-button",{props:{captionIconType:_.fD,onClick:_.jr,ariaLabel:_.fD,ariaPressed:_.fD,isOverlay:_.jr,isModern:_.jr}});_.ci(_.MDe,"desktop-shorts-volume-controls",{props:{orientation:_.fD}});var Qx=function(){var p=_.T.apply(this,arguments)||this;p.playerState=null;p.isMuted=!1;p.shortsModernControlsEnabled=_.z("web_shorts_modern_controls");p.volumeControlsOrientationState="horizontal_right";p.isOverlay=!0;p.isAdsOverlay=!1;p.captionIconType=-1;p.ariaLabel="";p.overlayDensity=0;p.JSC$22969_playerEvents=new Map;p.onClosedCaptionsButtonClick=function(){p.player&&_.cc(p.player)&&(p.player.toggleSubtitles(),p.updateCaptionIconType())};
return p};
_.Q(Qx,_.T);_.R=Qx.prototype;_.R.created=function(){this.JSC$22969_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22969_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22969_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.R.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.KG(28662);this.playPauseButtonClientVE=_.KG(36842);this.fullscreenButtonToggleOffClientVE=_.KG(222256);this.fullscreenButtonToggleOnClientVE=_.KG(222257);var p=_.C1(),J=_.Wf();p&&J&&(_.z("combine_ve_grafts")?(_.dC(_.bC(),this.muteButtonClientVE,J),_.dC(_.bC(),this.playPauseButtonClientVE,J)):_.Nq(p,J,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22969_playerEvents),this.player=null)};
_.R.updateCaptionIconType=function(){var p=-1,J=void 0,S=_.Kl("CLOSED_CAPTIONS_DISABLED");this.player&&_.cc(this.player)&&(_.$yI(this.player)?(J=!0,S=_.Kl("CLOSED_CAPTIONS_ON"),p=1):(J=!1,S=_.Kl("CLOSED_CAPTIONS_OFF"),p=0));this.captionIconType=p;this.ariaPressedState=J;this.ariaLabel=S};
_.R.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.R.getPlayerAndInitializeListeners=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return J=_.IY(),J?S.yield(J.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.n3(p,p.onPageChanged)),S.jumpTo(0));p.player=S.yieldResult;p.initializePlayerListeners();_.UK(S)})};
_.R.onPageChanged=function(p){var J=this;return _.G(function(S){if(S.nextAddress==1)return p.detail.newPageType!=="ytd-shorts"?S.return():S.yield(_.Lb().getPlayerPromise(),2);J.player=S.yieldResult;J.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.n3(J,J.onPageChanged));_.UK(S)})};
_.R.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22969_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.R.onPlayerStateChange=function(p){this.playerState=p};
_.R.onPlayerVolumeChange=function(p){this.isMuted=p.muted};
_.R.onPlayPauseButtonClick=function(){var p=this,J,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(_.Lb().getPlayerPromise(),2);J=H.yieldResult;(S=_.C1())&&p.playPauseButtonClientVE&&_.l7(S,p.playPauseButtonClientVE);J.getPlayerState()!==1?J.playVideo():J.pauseVideo();_.UK(H)})};
_.R.computePlayPauseIcon=function(p){return p===2||p===-1||p===5?_.z("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.z("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.z("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.R.computeFullscreenLabel=function(p){return p?_.Kl("FULLSCREEN_EXIT_LABEL"):_.Kl("FULLSCREEN_ENTER_LABEL")};
_.R.computePlayPauseLabel=function(p){return p===1||p===3?_.Kl("PLAYER_LABEL_PAUSE"):_.Kl("PLAYER_LABEL_PLAY")};
_.R.onMuteButtonClick=function(){var p=this,J,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(_.Lb().getPlayerPromise(),2);J=H.yieldResult;(S=_.C1())&&p.muteButtonClientVE&&_.l7(S,p.muteButtonClientVE);J.isMuted()?J.unMute(!0):J.mute(!0);_.UK(H)})};
_.R.computeMuteIcon=function(p){return p?"miniplayer:volume-off":"miniplayer:volume-up"};
_.R.computeMuteLabel=function(p){return p?_.Kl("PLAYER_LABEL_UNMUTE"):_.Kl("PLAYER_LABEL_MUTE")};
_.R.onFullscreenButtonClick=function(){var p=_.C1();p&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.l7(p,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.l7(p,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.Nwe()};
_.vh.Object.defineProperties(Qx.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()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.z("web_shorts_modern_controls")?"player_full_exit_alt":_.z("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.z("web_shorts_modern_controls")?"player_full_enter_alt":_.z("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Qx.prototype,"componentBehavior",void 0);_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],Qx.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Qx.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Qx.prototype,"player",void 0);_.V([_.N(),_.Y("design:type",Object)],Qx.prototype,"playerState",void 0);_.V([_.N(),_.Y("design:type",Object)],Qx.prototype,"isMuted",void 0);
_.V([_.N({computed:"computePlayPauseIcon(playerState)"}),_.Y("design:type",String)],Qx.prototype,"playPauseIcon",void 0);_.V([_.N({computed:"computeMuteIcon(isMuted)"}),_.Y("design:type",String)],Qx.prototype,"muteIcon",void 0);_.V([_.N({selector:_.JX}),_.Y("design:type",Boolean)],Qx.prototype,"isFullscreen",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Qx.prototype,"shortsModernControlsEnabled",void 0);
_.V([_.N(),_.Y("design:type",Object)],Qx.prototype,"volumeControlsOrientationState",void 0);_.V([_.N(),_.Y("design:type",Object)],Qx.prototype,"isOverlay",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Qx.prototype,"isAdsOverlay",void 0);_.V([_.N(),_.Y("design:type",Object)],Qx.prototype,"captionIconType",void 0);_.V([_.N(),_.Y("design:type",Object)],Qx.prototype,"ariaLabel",void 0);_.V([_.N(),_.Y("design:type",Object)],Qx.prototype,"ariaPressedState",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Qx.prototype,"overlayDensity",void 0);_.V([_.N(),_.Y("design:type",Object)],Qx.prototype,"data",void 0);_.V([_.N({computed:"computeActionBarButtonOverride()"}),_.Y("design:type",Object)],Qx.prototype,"actionBarButtonOverride",void 0);_.V([_.U("playerState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qx.prototype,"playPauseButtonData",null);
_.V([_.U("isFullscreen"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qx.prototype,"fullscreenButtonData",null);_.V([_.N(),_.Y("design:type",Object)],Qx.prototype,"onClosedCaptionsButtonClick",void 0);_.V([_.U("isFullscreen"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Qx.prototype,"fullscreenIcon",null);
_.l(Qx,"ytd-shorts-player-controls",function(){if($VT===void 0){var p=document.createElement("template");_.C(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<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <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 orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <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>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);$VT=p}p=$VT;return p},{mode:1});var oat;_.ci(_.wGl,"yt-interstitial-view-model",{props:{data:_.fD}});var eXG=_.d(function(p){var J=p.data;return _.m("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.m("h1",{class:"reelWatchBreakViewModelHostTitle"},_.m(_.v3,{text:function(){return J().title}})),_.m("h2",{class:"reelWatchBreakViewModelHostBody"},_.m(_.v3,{text:function(){return J().body},
isOverlay:!0})),_.m(_.AH,{data:function(){return J().buttons}},{buttonViewModel:function(S,H){return _.m("div",{class:function(){return H()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.m(_.D0,{data:S.data}))}}))},"In");
eXG.idomCompat=!0;_.ci(eXG,"reel-watch-break-view-model",{props:{data:_.fD}});var C8=function(){return _.T.apply(this,arguments)||this};
_.Q(C8,_.T);C8.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}}};
_.vh.Object.defineProperties(C8.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.e((p=this.data)==null?void 0:p.renderer,XOu)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.e((p=this.data)==null?void 0:p.renderer,iQp)}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],C8.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],C8.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],C8.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("data.renderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],C8.prototype,"isSurvey",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.renderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],C8.prototype,"isInterstitialViewModel",null);_.V([_.gw({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],C8);
_.l(C8,"ytd-reel-non-video-content-renderer",function(){if(oat!==void 0)return oat;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
return oat=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var Wds;_.ci(_.HHf,"desktop-shorts-player-controls",{});var yx=function(){var p=_.T.apply(this,arguments)||this;p.isPlayerPaused=!1;p.isPlayerStarted=!1;p.showPlayerControls=!1;p.showScrubber=!1;p.autoHideJobId=0;p.overlayType=_.zG("web_shorts_expanded_overlay_type");p.panelData=void 0;p.isWatchWhileMode=!1;p.hasError=!1;p.panelShowDelayMs=1;p.scrubberComponent={};p.isFullscreen=!1;p.shouldHideOverlay=!1;p.enableAnchoredPanel=_.z("desktop_shorts_v2_anchored_panel");p.enablePersistentAnchoredPanel=_.z("desktop_shorts_v2_persistent_anchored_panel");p.hideWatchWhilePanel=
_.z("web_shorts_hide_watch_while_panel");p.useAspectRatio=_.z("web_use_aspect_ratio");p.enableShortsModernControls=_.z("web_shorts_modern_controls");p.isPersistentPanelActive=!1;p.anchoredPanelActive=!1;p.isShortsPipActive=!1;p.smallScreenSqueezeback=!1;p.enableFlexibleOverlay=_.z("web_enable_flexible_overlay");p.overlayDensity=0;p.extractOverlay=!1;p.extractActionBar=!1;p.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
p.onWindowResized=function(){_.uO(p,"calculateOverlayDensity",function(){p.calculateOverlayDensity()},100)};
return p};
_.Q(yx,_.T);_.R=yx.prototype;_.R.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.R.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.R.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var p=_.vO().resolve(_.JY);this.isWatchWhileMode&&_.wg.addJob(function(){p.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.R.handleShowReelsCommentsOverlayCommand=function(p){p=_.e(p,ZQt);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))};
_.R.updateEngagementPanelVisibility=function(p,J){p&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:J?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:p}})};
_.R.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.R.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.vO().resolve(_.jW).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.R.handleWatchWhilePanelScrimClick=function(){var p=_.vO().resolve(_.JY);this.activeWatchWhilePanel&&(p.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.R.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.R.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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.R.handlePlayerClick=function(p){var J=this,S,H;if((H=(S=window).matchMedia)!=null&&H.call(S,"(any-pointer: coarse)").matches||!p)this.showPlayerControls=!0,_.wg.cancelJob(this.autoHideJobId),this.autoHideJobId=_.uS(_.wg,function(){J.showPlayerControls=!1},4E3)};
_.R.isFirstReel=function(){return this.index===0};
_.R.handleMouseenter=function(){_.wg.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.R.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.R.handleScrubberEnter=function(){this.showScrubber=!0};
_.R.handleScrubberLeave=function(){this.showScrubber=!1};
_.R.maybeLogNonDefaultAspectRatio=function(){var p;(p=this.data)!=null&&p.thumbnail&&this.isActive&&.5625!==BYG(this.data.thumbnail)&&_.Qz3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.R.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var p=document.querySelector("#shorts-container");if(p){var J=!1,S,H=this.playerContainer.offsetWidth,M=this.playerContainer.offsetHeight;p=p.offsetWidth/2-H/2;p>=368?(p=1,J=S=!0):p>=72?(p=0,S=!0):(p=2,S=!1);H>=600&&M>=840?p=1:window.innerWidth<=599&&(p=2,S=J=!1);this.isPersistentPanelActive&&(p=0,J=!1);this.extractActionBar=S;_.z("web_enable_flexible_overlay")&&(this.overlayDensity=p,this.extractOverlay=
J);var X;(X=this.onOverlayDensityChanged)==null||X.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.R.onOverlayDensityChange=function(){var p;(p=this.onOverlayDensityChanged)==null||p.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(p=_.Jn(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))p.set("overlayDensity",this.overlayDensity),p.set("extractOverlay",this.extractOverlay),p.set("extractActionBar",this.extractActionBar);if(p=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))p.overlayDensity=this.overlayDensity,p.extractOverlay=
this.extractOverlay,p.extractActionBar=this.extractActionBar};
_.R.isVideoContent=function(p){_.vO().resolve(_.jW);return!!_.e(p,_.vt)};
_.R.isNonVideoContent=function(p){_.vO().resolve(_.jW);return!!_.e(p,_.iq)};
_.R.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.vh.Object.defineProperties(yx.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var p,J;return _.z("web_enable_format_first")||((p=this.data)==null?void 0:p.adsOverlay)&&_.z("web_enable_format_first_ads_only")||((J=this.data)==null?void 0:J.reelPlayerOverlayRenderer)&&_.z("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.z("web_shorts_modern_controls"))}},
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(((p=this.data)==null?0:p.command)&&this.isVideoContent(this.data.command)){var J,S;if(((J=this.data)==null?0:J.adsOverlay)&&Object.keys((S=this.data)==null?void 0:S.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var H,M;if(((H=this.data)==null?0:H.reelPlayerOverlayRenderer)&&Object.keys((M=this.data)==null?void 0:M.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
yx.prototype.onOverlayDensityChange=yx.prototype.onOverlayDensityChange;yx.prototype.calculateOverlayDensity=yx.prototype.calculateOverlayDensity;yx.prototype.maybeLogNonDefaultAspectRatio=yx.prototype.maybeLogNonDefaultAspectRatio;yx.prototype.onEngagementPanelsChanged=yx.prototype.onEngagementPanelsChanged;yx.prototype.onScrubberDataChange=yx.prototype.onScrubberDataChange;yx.prototype.updateShouldHideOverlay=yx.prototype.updateShouldHideOverlay;
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],yx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],yx.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],yx.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yx.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Number)],yx.prototype,"index",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yx.prototype,"isActive",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yx.prototype,"isHiddenInDom",void 0);_.V([_.N(),_.Y("design:type",Object)],yx.prototype,"isPlayerPaused",void 0);_.V([_.N({selector:sds}),_.Y("design:type",Object)],yx.prototype,"isPlayerStarted",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"showPlayerControls",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"showScrubber",void 0);_.V([_.N(),_.Y("design:type",Object)],yx.prototype,"autoHideJobId",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"overlayType",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],yx.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],yx.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],yx.prototype,"watchWhileEngagementPanels",void 0);_.V([_.N(),_.Y("design:type",Object)],yx.prototype,"panelData",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"isWatchWhileMode",void 0);_.V([_.N(),_.Y("design:type",String)],yx.prototype,"activeWatchWhilePanel",void 0);_.V([_.N(),_.Y("design:type",Object)],yx.prototype,"hasError",void 0);_.V([_.N(),_.Y("design:type",Object)],yx.prototype,"panelShowDelayMs",void 0);
_.V([_.N(),_.Y("design:type",Object)],yx.prototype,"scrubberComponent",void 0);_.V([_.N({selector:_.JX,reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"isFullscreen",void 0);_.V([_.N(),_.Y("design:type",Object)],yx.prototype,"shouldHideOverlay",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"enableAnchoredPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"enablePersistentAnchoredPanel",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"hideWatchWhilePanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"useAspectRatio",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"enableShortsModernControls",void 0);_.V([_.N({selector:_.aCX,reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"isPersistentPanelActive",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"anchoredPanelActive",void 0);_.V([_.N({selector:_.Ss,reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"isShortsPipActive",void 0);_.V([_.N({selector:Uzv,reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"smallScreenSqueezeback",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.adsOverlay"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yx.prototype,"isAdsOverlay",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yx.prototype,"enableFormatFirst",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"enableFlexibleOverlay",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"overlayDensity",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"extractOverlay",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yx.prototype,"extractActionBar",void 0);_.V([_.N(),_.Y("design:type",Function)],yx.prototype,"onOverlayDensityChanged",void 0);_.V([_.N(),_.U("isActive","hasError","isPlayerStarted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yx.prototype,"shouldRenderPlayerElements",null);_.V([_.N(),_.U("isActive","isWatchWhileMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yx.prototype,"watchWhileOrPersistentActive",null);
_.V([_.bO("isActive","hasError","showingExpandedOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yx.prototype,"updateShouldHideOverlay",null);_.V([_.N({reflectToAttribute:!0}),_.U("isActive","isPlayerStarted","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yx.prototype,"shouldRenderScrubber",null);
_.V([_.bO("shouldRenderScrubber"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yx.prototype,"onScrubberDataChange",null);_.V([_.U("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yx.prototype,"overlayComponent",null);_.V([_.bO("watchWhileEngagementPanels"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yx.prototype,"onEngagementPanelsChanged",null);
_.V([_.FM("#player-container"),_.Y("design:type",HTMLElement)],yx.prototype,"playerContainer",void 0);_.V([_.FM("#cinematic-container"),_.Y("design:type",HTMLElement)],yx.prototype,"cinematicContainer",void 0);_.V([_.bO("isPersistentPanelActive","data.thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yx.prototype,"maybeLogNonDefaultAspectRatio",null);
_.V([_.bO("isPersistentPanelActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yx.prototype,"calculateOverlayDensity",null);_.V([_.bO("overlayDensity","extractOverlay","extractActionBar"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yx.prototype,"onOverlayDensityChange",null);_.V([_.gw({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],yx);
_.l(yx,"ytd-reel-video-renderer",function(){if(Wds!==void 0)return Wds;var p=document.createElement("template");_.C(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="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return Wds=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var BM=function(){var p=_.T.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.enablePreviousContinuation=_.z("shorts_in_playlists_web");p.shortsPipEnabled=_.z("web_shorts_pip");p.isDark=document.documentElement.hasAttribute("dark");p.shortsViewTransitions=_.z("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=_.z("web_scroll_into_view_center");p.formatFirst=_.z("web_enable_format_first")||_.z("web_enable_format_first_ads_only")||_.z("web_enable_format_first_organic_only");p.enableFlexibleOverlay=_.z("web_enable_flexible_overlay");p.extractOverlay=!1;p.useAspectRatio=_.z("web_use_aspect_ratio");
p.enableShortsSequenceRefactorUnify=_.z("web_enable_shorts_sequence_refactor_unify");p.continuationRequestPending=!1;p.carouselContainers=[];p.isShortsInitialized=!1;p.shortsContentList=[];p.hasDataUpdated=!1;p.playerInPosition=!1;p.hidePreviousButtonImmediately=!1;p.showPreviousButtonImmediately=!1;p.endOfNextContinuation=!1;p.currentPlayerIndex=0;p.nextReelVe=_.KG(56921);p.prevReelVe=_.KG(56922);p.loopToggleOffVe=_.KG(198013);p.loopToggleOnVe=_.KG(198014);p.ambientModeToggleVe=_.KG(227860);p.reelPlayerPausedStateRendererVe=
_.KG(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","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};p.onOverlayDensityChanged=function(J,S,H,M){J=p.getActiveReelVideo(J);p.extractOverlay=!!H;J==null||J.setAttribute("overlay-density",String(S));H===void 0||J!=null&&J.toggleAttribute("extract-overlay",
H);M===void 0||J!=null&&J.toggleAttribute("extract-action-bar",M)};
return p};
_.Q(BM,_.T);_.R=BM.prototype;_.R.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.R.setShortsContentList=function(){var p=this,J=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.dW(this.shortsContentList)):[],S=this.firstShortsData;if(S){var H=this.reelWatchSequenceResponse;if(S=this.shortsController==null?void 0:jdv(J,S,H!=null?H:null)){H=S.newContentList;var M=S.indexChange;if(H.length!==J.length){var X;(X=this.intersectionObserver)==null||X.disconnect();this.shortsContentList=H;M!==0&&(this.index=M,_.bb(_.wg,function(){var Z;(Z=p.getActiveReelVideo(M))==
null||Z.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"});p.movePlayerToVideo(M)},100));
_.wg.addLowPriorityJob(function(){p.observeShorts()},500)}}}};
_.R.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.R.onResize=function(){var p=_.rl(),J=p.dispatch,S=this.calculateIsSmallWidth();J.call(p,_.Jk({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:S}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.R.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:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.R.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var p=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,J=p,S=0;p<250&&(J=p+this.shortsInnerContainer.clientWidth,S=24);_.K3(this.hostElement,{"--ytd-shorts-header-width":J+"px","--ytd-shorts-top-spacing":S+"px"})}};
_.R.isFirstShorts=function(p){return p&&!this.enableShortsSequenceRefactorUnify?this.index===-p.length:this.index===0};
_.R.isActiveReel=function(p,J,S){S&&(J=this.calculatePrevIndex(J,S));return p===J};
_.R.onFullscreenChange=function(){_.z("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.vO().resolve(_.DF).close(!0))};
_.R.engagementPanelsChanged=function(){var p;this.watchWhileEngagementPanels=(p=this.data)==null?void 0:p.engagementPanels};
_.R.unregisterPanels=function(){var p=_.vO().resolve(_.JY);if(this.watchWhileEngagementPanels)for(var J=_.K(this.watchWhileEngagementPanels),S=J.next();!S.done;S=J.next()){var H=S.value,M=void 0,X=void 0;S=(M=H.engagementPanelSectionListRenderer)==null?void 0:(X=M.identifier)==null?void 0:X.tag;H=this.getPanelIdentifier(H.engagementPanelSectionListRenderer);p&&(S&&p.panelMap.delete(S),H&&_.z("web_shorts_panel_caching_bugfix")&&(M=S=void 0,(M=(S=p).unregisterPanelContent)==null||M.call(S,H)))}};
_.R.isVideoContent=function(p){return this.isVideoContentCommand(p==null?void 0:p.command)};
_.R.getActiveReelVideo=function(p){return _.Jn(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+p+'"]')};
_.R.calculatePrevIndex=function(p,J){return J?p-((J==null?void 0:J.length)||0):-1};
_.R.onKeydown=function(p){var J=_.Er(p)||[];if(!_.kIP(J))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")&&_.z("web_shorts_keyboard_enable_seek_shortcuts")){var S;(S=this.player)==null||S.seekBy(-5)}else if((p.code==="KeyD"||p.code===
"ArrowRight")&&_.z("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var H;(H=this.player)==null||H.seekBy(5)}};
_.R.onServiceRequestCompleted=function(p,J){p=J.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,p.continuationEndpoint||p.prevContinuationEndpoint)this.reelWatchSequenceResponse=p}else p.continuationEndpoint&&p.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:p.entries,continuationEndpoint:p.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=p):p.prevContinuationEndpoint&&
p.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:p.prevEntries,prevContinuationEndpoint:p.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.R.handleEngagementPanelVisibilityChanged=function(p,J){var S=_.vO().resolve(_.JY);if(p&&S){var H=this.getPanelIdentifier(p);if(J==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==H){S.hidePanel({identifier:this.activePanel});var M;this.activePanel=((M=p.identifier)==null?void 0:M.tag)||p.panelIdentifier}else this.isPersistentPanelActive=!0,_.rl().dispatch(xzy(!0)),this.anchoredPanelActive=!0,this.activePanel=H;else J==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===H&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.rl().dispatch(xzy(!1)))}};
_.R.handlePanelScrimClick=function(){var p=_.vO().resolve(_.JY);this.activePanel&&(p.hidePanel({identifier:this.activePanel}),_.rl().dispatch(xzy(!1)))};
_.R.getShortsLoopSetting=function(){var p,J,S,H,M;return _.G(function(X){switch(X.nextAddress){case 1:return _.z("kevlar_shorts_auto_advance")?X.yield(_.JW.getInstance(),2):X.return(!0);case 2:return(p=X.yieldResult)?X.yield(p.get("sfvles"),3):X.return(!0);case 3:return S=(J=X.yieldResult)!=null?J:!1,X.yield(p.get("sfvle"),4);case 4:return M=(H=X.yieldResult)!=null?H:!0,S?X.return(M):X.return(!0)}})};
_.R.handleSignalActionToggleLoopShortsOff=function(){var p=this,J,S,H;return _.G(function(M){switch(M.nextAddress){case 1:if(!p.player)return M.return();p.player.setLoopVideo(!1);J=_.bC();_.lq(J,p.loopToggleOffVe);return M.yield(_.JW.getInstance(),2);case 2:return(S=M.yieldResult)?M.yield(S.set("sfvle",!1),3):M.return();case 3:return M.yield(S.set("sfvles",!0),4);case 4:H=_.Gv(),_.b7(0,203,!1),_.b7(0,204,!0),H.save(),_.UK(M)}})};
_.R.handleSignalActionToggleLoopShortsOn=function(){var p=this,J,S,H;return _.G(function(M){switch(M.nextAddress){case 1:if(!p.player)return M.return();p.player.setLoopVideo(!0);J=_.bC();_.lq(J,p.loopToggleOnVe);return M.yield(_.JW.getInstance(),2);case 2:return(S=M.yieldResult)?M.yield(S.set("sfvle",!0),3):M.return();case 3:return M.yield(S.set("sfvles",!0),4);case 4:H=_.Gv(),_.b7(0,203,!0),_.b7(0,204,!0),H.save(),_.UK(M)}})};
_.R.handleSignalActionToggleCinematicShortsOn=function(){tny(!0);var p;(p=this.JSC$22993_cinematicController)==null||_.OVv(p,!0);_.lq(_.bC(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.R.handleSignalActionToggleCinematicShortsOff=function(){tny(!1);var p;(p=this.JSC$22993_cinematicController)==null||_.OVv(p,!1);_.lq(_.bC(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.R.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.R.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.R.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var p=this.overlayContainer.querySelector("#experiment-overlay");p&&_.wg.addLowPriorityJob(function(){p.style.display="unset"},100)}else if(this.overlayContainer){var J;
((J=this.playerElement.getPlayer())==null?void 0:J.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.R.getCurrentShort=function(){if(this.currentEndpoint){var p=this.currentEndpoint;if(this.isNonVideoContentCommand(p)){var J=_.e(p,_.iq);return{reelNonVideoContentRenderer:_.e(J==null?void 0:J.renderer,_.K5),command:p}}if(this.data){var S;J=(S=_.e(this.currentEndpoint,_.vt))==null?void 0:S.thumbnail;var H;S=(H=this.data.overlay)==null?void 0:H.reelPlayerOverlayRenderer;_.vO().resolve(_.jW);p=this.data;var M,X;H=(M=p.overlay)==null?void 0:(X=M.shortsAdsRenderer)==null?void 0:X.adSlots;if(H!==void 0)H.length===
0?(_.lT("Shorts ads returned no ad slots."),p=void 0):(H.length>1&&_.lT("Shorts ads has more than one ad slots."),p=_.e(H[0],_.lzo));else{var Z,n;p=_.e((Z=p.overlay)==null?void 0:(n=Z.shortsAdsRenderer)==null?void 0:n.overlay,_.lzo)}Z=p;p=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.e(this.currentEndpoint,_.vt),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var b;return{reelPlayerOverlayRenderer:S,thumbnail:J,command:p,adsOverlay:Z,
videoId:(b=_.e(this.currentEndpoint,_.vt))==null?void 0:b.videoId}}}};
_.R.created=function(){var p=this;this.scrollToVideoThrottle=new _.nb(function(J,S){S=S===void 0?"smooth":S;var H;(H=p.getActiveReelVideo(J))==null||H.scrollIntoView({behavior:S,block:"nearest",inline:p.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.vO().resolve(_.jW);this.maybeCreateIntersectionObserver()};
_.R.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.R.attached=function(){var p=this;_.vO().resolve(_.jW).registerRootElement(this);this.pageScrollElement=_.Jn(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.n3(this,this.processResetAction));_.z("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){p.maybeCreateIntersectionObserver();p.scrollToVideoThrottle.fire(p.activeIndex,"instant");p.shortsContainer.style.overflowY=
"scroll"}))};
_.R.updateReelWatchSequenceResponse=function(){var p=this,J;if(_.z("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((J=_.e(this.currentEndpoint,_.vt))==null?0:J.sequenceParams)&&!this.reelWatchSequenceResponse){var S;(S=this.shortsController)==null||Ygd(S,this.currentEndpoint).then(function(H){H&&(p.reelWatchSequenceResponse=H,p.cachedReelWatchSequenceResponse=H,_.wg.addLowPriorityJob(function(){p.observeShorts()}))})}};
_.R.calculateSqueezebackPanelSize=function(){var p=this,J=window.innerWidth-456-(window.innerHeight-106)*.5625;_.wg.addLowPriorityJob(function(){J<360?_.rl().dispatch(c4a(!0)):(p.hostElement.style.setProperty("--anchored-panel-width",Math.min(J,480)+"px"),_.rl().dispatch(c4a(!1)))})};
_.R.detached=function(){var p=_.vO().resolve(_.jW);p.rootElement=void 0;var J;(J=p.unsubscribeFromStore)==null||J.call(p);p.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.n3(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.R.onResizeFinished=function(p,J){var S=this,H=new ResizeObserver(function(){S.shortsContainer.style.overflowY="hidden";_.wg.addLowPriorityJob(function(){J()},100)});
H.observe(p);return H};
_.R.resetDocumentScrollTop=function(){var p,J;if((p=document)==null?0:(J=p.scrollingElement)==null?0:J.scrollTop)document.scrollingElement.scrollTop=0};
_.R.loadPage_=function(p){var J=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 S;if((S=_.e(this.currentEndpoint,_.vt))==null?0:S.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=p;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){J.isPlayerStarted&&
(J.handleOnPlaybackCommand(),J.afterPlayerStarted=function(){})};
this.registerPanel(p)}};
_.R.afterPlayerStarted=function(){};
_.R.handleOnPlaybackCommand=function(){if(_.z("web_shorts_comment_stickers")&&this.isPlayerStarted){var p,J=(p=_.e(this.currentEndpoint,_.vt))==null?void 0:p.onPlaybackCommand;J&&this.ytComponentBehavior.resolveCommand(J)}};
_.R.maybeCreateIntersectionObserver=function(){var p=this,J=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==J){this.intersectionObserverThreshold=J;var S={rootMargin:"0px",threshold:J},H;(H=this.intersectionObserver)==null||H.disconnect();this.intersectionObserver=new IntersectionObserver(function(M){M=_.K(M);for(var X=M.next();!X.done;X=M.next())if(X=X.value,X.intersectionRatio>J){X=Number(X.target.id);if(isNaN(X))break;if(X===p.index)break;
_.Eig();p.loadVideo(X);_.yf("r_vtc")}},S);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.R.observeShorts=function(){var p,J,S,H=this.enableShortsSequenceRefactorUnify?((p=this.shortsContentList)==null?void 0:p.length)||0:(((J=this.shortsProcessedPrevSequence)==null?void 0:J.length)||0)+(((S=this.shortsProcessedSequence)==null?void 0:S.length)||0);if(this.carouselContainers.length<H&&(this.carouselContainers=[].concat(_.dW(_.Jn(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(p=_.K(this.carouselContainers),J=p.next();!J.done;J=
p.next())J=J.value,S=void 0,(S=this.intersectionObserver)==null||S.observe(J);if(!this.enableShortsSequenceRefactorUnify)for(p=_.K(this.carouselContainers),J=p.next();!J.done;J=p.next())J=J.value,S=void 0,(S=this.intersectionObserver)==null||S.observe(J)};
_.R.initCsi=function(){_.Qrs("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"}},J,S;if((J=this.playerData)==null?0:(S=J.cacheMetadata)==null?0:S.isCacheHit)p.isCacheHit=!0;var H;if(J=(H=_.e(this.currentEndpoint,_.vt))==null?void 0:
H.prefetchTaskId)p.prefetchInfo={taskId:J};_.o5(p)};
_.R.isAd=function(){var p,J;return!!((p=_.e(this.currentEndpoint,_.vt))==null?0:(J=p.adClientParams)==null?0:J.isAd)};
_.R.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.R.getPlayerContainer=function(){var p;return(p=_.Jn(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:p.playerContainer};
_.R.onPlayerStateChange=function(p){var J=this;this.isPlayerPaused=p===2;p!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?p===1&&this.index===0&&(this.isPlayerStarted||_.rl().dispatch(IJa(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.rl().dispatch(IJa(!0)));this.player&&!this.player.getLoopVideo()&&_.wg.addLowPriorityJob(function(){J.getShortsLoopSetting().then(function(S){var H;(H=J.player)==null||H.setLoopVideo(S)})});
this.isPlayerPaused&&_.z("web_shorts_paused_state_logging")&&_.dI(_.C1(),[this.reelPlayerPausedStateRendererVe])};
_.R.isShortPlayable=function(){if(_.z("kevlar_playable_short_killswitch"))return!0;var p;return(p=this.playerData)!=null&&p.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.R.setNormalPlaybackSpeed=function(){var p=this,J,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(p.getPlayer().getPlayerPromise(),2);J=H.yieldResult;S=J.getPlaybackRate();S!==1&&(p.storedPlaybackSpeed=S,J.setPlaybackRate(1));_.UK(H)})};
_.R.restorePlaybackSpeed=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1)return p.storedPlaybackSpeed===null?S.jumpTo(0):S.yield(p.getPlayer().getPlayerPromise(),3);J=S.yieldResult;J.setPlaybackRate(p.storedPlaybackSpeed);p.storedPlaybackSpeed=null;_.UK(S)})};
_.R.playerDataChanged=function(){var p=this,J,S,H,M,X,Z,n,b,F;return _.G(function(f){if(f.nextAddress==1){J=p.getPlayer();p.enableShortsSequenceRefactorUnify||(S=p.intersectionObserver)==null||S.disconnect();if(p.playerData){if(((H=p.playerData.videoDetails)==null?void 0:H.videoId)!==((M=J.getPlayer())==null?void 0:M.getVideoData().video_id)){X={};if(Z=_.e(p.currentEndpoint,_.vt))X.watch_endpoint=Z,Z.endTimeSeconds&&(X.end=Z.endTimeSeconds);J.loadVideoWithPlayerResponse(p.playerData,X)}}else return f.return();
return p.player?f.jumpTo(2):f.yield(J.getPlayerPromise(),3)}f.nextAddress!=2&&(p.player=f.yieldResult,p.JSC$22993_playerStateChangeListener=p.onPlayerStateChange.bind(p),p.player.addEventListener("onStateChange",p.JSC$22993_playerStateChangeListener),_.z("kevlar_client_enable_shorts_player_bootstrap")&&_.Ts(),p.scrollToVideoThrottle.fire(p.index),p.movePlayerToVideo(p.index),_.wg.addLowPriorityJob(function(){p.getShortsLoopSetting().then(function(O){var A;(A=p.player)==null||A.setLoopVideo(O)})}),
_.J2p.resolve(p.player),p.player.syncVolume(),p.getPlayer().focusOnPlayer());
_.wg.addLowPriorityJob(function(){p.observeShorts()},100);
n=p.player.getPlayerState(p.player.getPresentingPlayerType());n!==1||p.isPlayerStarted||_.rl().dispatch(IJa(!0));p.updateBackNavContainerWidth();b=_.e(p.currentEndpoint,_.vt);((F=b)==null?0:F.startTimeSeconds)&&p.player.seekTo(b.startTimeSeconds);if(p.JSC$22993_cinematicController||p.cinematicsInitializeJobId)return f.return();p.cinematicsInitializeJobId=_.wg.addLowPriorityJob(function(){p.initCinematicController();p.cinematicsInitializeJobId=void 0});
_.UK(f)})};
_.R.onShortUndoDismiss=function(){var p=this,J=EvD().pop();J!==void 0&&(_.mN(this,function(){p.showCardWithIndex(J)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.R.onShortsDismiss=function(p){if(p=p.detail.reelDismissalActionRenderer)(p=_.e(p.onDismissalCompletionRenderer,_.cZ7))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:p}}}),this.scrollAndDismissCard()};
_.R.processReelNonVideoContentDismissalCommand=function(p){var J=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);p=_.e(p,Kdp);this.activeDimissalTimeout=setTimeout(function(){J.scrollAndDismissCard()},Number(p==null?void 0:p.delayMs))};
_.R.scrollAndDismissCard=function(){var p=this,J=this.index;EvD().push(J);_.mN(this,function(){var S=p.getPlayableNextIndex();S!==null&&(p.hideCardWithIndex(J),p.scrollToVideoThrottle.fire(S))})};
_.R.hideCardWithIndex=function(p){if(p=this.getActiveReelVideo(p))p.hidden=!0};
_.R.showCardWithIndex=function(p){if(p=this.getActiveReelVideo(p))p.hidden=!1};
_.R.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.R.activeChanged=function(p){_.rl().dispatch(_.Jk({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:p}}));if(p)document.addEventListener("keydown",_.n3(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var J;(J=this.player)==null||J.sendAbandonmentPing()}var S;(S=this.player)==null||S.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.n3(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.R.graftClientVisualElements=function(){if(this.data){var p=_.bC();_.cAL(p,_.SU({response:this.reelWatchSequenceResponse}));_.dC(p,this.nextReelVe);_.dC(p,this.prevReelVe);_.z("kevlar_shorts_auto_advance")&&(_.dC(p,this.loopToggleOffVe),_.dC(p,this.loopToggleOnVe));_.dC(p,this.ambientModeToggleVe);_.dI(_.C1(),[this.nextReelVe,this.prevReelVe]);_.z("web_shorts_paused_state_logging")&&_.dC(p,this.reelPlayerPausedStateRendererVe)}};
_.R.graftNvcRenderer=function(){var p,J,S,H,M,X,Z=this.enableShortsSequenceRefactorUnify?(p=this.shortsContentList)==null?void 0:(J=p[this.index])==null?void 0:J.command:this.index<0?(S=this.shortsProcessedPrevSequence)==null?void 0:(H=S[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:H.command:(M=this.shortsProcessedSequence)==null?void 0:(X=M[this.index])==null?void 0:X.command;if(Z&&this.isNonVideoContentCommand(Z)){p=_.e(Z,_.iq);var n,b;(p=(n=_.e(p==null?void 0:p.renderer,_.K5))==
null?void 0:(b=n.loggingDirectives)==null?void 0:b.trackingParams)&&_.bC().graftServerVe(p)}};
_.R.setActiveIndex=function(){_.vO().resolve(_.jW).setActiveIndex(this.index)};
_.R.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.R.lazyUpdateMiniplayerData=function(){var p=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.wg.addLowPriorityJob(function(){p.updateMiniplayerData();p.updateMiniplayerDataJobId=void 0}))};
_.R.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.wg.cancelJob(this.updateMiniplayerDataJobId)};
_.R.updateMiniplayerData=function(){var p,J,S,H=_.vO().resolve(_.DF),M={shortsData:this.getCurrentShort(),previousButtonDisabled:!((p=this.prevButtonData)==null||!p.isDisabled),nextButtonDisabled:!((J=this.nextButtonData)==null||!J.isDisabled),playabilityStatus:(S=this.playerData)==null?void 0:S.playabilityStatus};_.Yk(H,M)};
_.R.resetPlayerLocation=function(){var p=this.getPlayer();this.initialPlayerContainer&&p.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.R.movePlayerToVideo=function(p,J){var S=this;J=J===void 0?!0:J;var H=this.getActiveReelVideo(p),M=this.getPlayer();if(H){this.overlayContainer?H.appendChild(this.overlayContainer):(this.overlayContainer=_.Jn(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,H.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||M.appendTo(this.overlayContainer.playerContainer,void 0,!0));var X;(X=this.player)==null||X.setSize(NaN,NaN);this.isActive||_.uS(_.wg,function(){S.isActive=
!0});
M.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.z("reels_web_disable_rtr_tick")||_.z("reels_web_use_pbs_first_shorts")&&p===0||_.Qf("r_tr");this.currentPlayerIndex=p;H.appendChild(this.errorScreenContainer);var Z;(Z=this.JSC$22993_cinematicController)==null||_.zYs(Z)}else J?_.wg.addLowPriorityJob(function(){S.movePlayerToVideo(S.index,!1)}):Math.random()<=_.PO("web_shorts_error_logging_threshold")&&_.wf(new _.TG("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:J,
index:p}))};
_.R.enableFormatFirst=function(p){return _.z("web_enable_format_first")||p.adsOverlay&&_.z("web_enable_format_first_ads_only")||p.reelPlayerOverlayRenderer&&_.z("web_enable_format_first_organic_only")};
_.R.getAspectRatio=function(p){if(this.enableFormatFirst(p))return(p==null?0:p.thumbnail)&&BYG(p.thumbnail)?"--ytd-shorts-player-ratio: "+BYG(p.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.R.getBackgroundImage=function(p){if(p!=null&&p.thumbnail)return(p=_.LI(p.thumbnail.thumbnails))?'background-image:url("'+p+'");':"background-color:black;"};
_.R.onPersistentPanelActiveChanged=function(){var p=this.getCurrentShort();if(p&&this.enableFormatFirst(p)&&(p==null?0:p.thumbnail)&&BYG(p.thumbnail)!==.5625){var J;(J=this.player)==null||J.setSize(NaN,NaN)}};
_.R.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.R.moveCinematicsToVideo=function(){var p=_.Jn(this.hostElement).querySelector("ytd-reel-video-renderer");(p==null?0:p.cinematicContainer)&&p.cinematicContainer!==this.shortsCinematicContainer.parentElement&&p.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.R.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.R.updatePrevButtonData=function(){var p=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);p?this.prevButtonData=p=Object.assign({},p,{accessibility:{label:_.Kl("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.Kl("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=p=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.R.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.R.updateNextButtonData=function(){var p=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);p&&(this.nextButtonData=p=Object.assign({},p,{accessibility:{label:_.Kl("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.Kl("NEXT_VIDEO_LABEL")||""}))};
_.R.getPlayablePreviousIndex=function(){for(var p,J=this.index-1;J>=-(((p=this.prevShortsSequence)==null?void 0:p.length)||0);J--)if(!EvD().includes(J))return J;return null};
_.R.getIndexInSequence=function(p,J){return p.findIndex(function(S){var H;return((H=_.e(S.command,_.vt))==null?void 0:H.videoId)===J})};
_.R.handlePrevButtonClick=function(p){var J=this,S,H;return _.G(function(M){S=J.getPlayablePreviousIndex();if(S===null)return M.return();J.gestureType=((H=p)==null?void 0:H.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";S===0&&(J.hidePreviousButtonImmediately=!0);if(J.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){J.scrollToVideoThrottle.fire(S,"auto")}),M.return();
J.scrollToVideoThrottle.fire(S);_.UK(M)})};
_.R.getPlayableNextIndex=function(){for(var p,J,S=this.index+1;S<(this.enableShortsSequenceRefactorUnify?(p=this.shortsContentList)==null?void 0:p.length:((J=this.shortsProcessedSequence)==null?void 0:J.length)||0);S++)if(!EvD().includes(S))return S;return null};
_.R.handleNextButtonClick=function(p,J){var S=this,H,M;return _.G(function(X){H=S.getPlayableNextIndex();if(H===null)return X.return();H===1&&(S.showPreviousButtonImmediately=!0);S.gestureType=((M=p)==null?void 0:M.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";J&&(S.gestureType=J);if(S.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){S.scrollToVideoThrottle.fire(H,"auto")}),X.return();
S.scrollToVideoThrottle.fire(H);_.UK(X)})};
_.R.handleReelNavigateCommand=function(p,J,S){(p=_.e(p,RXy))&&J&&p.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(S)};
_.R.loadVideo=function(p,J){var S=this;J=J===void 0?!1:J;if(p!==this.currentPlayerIndex){_.rl().dispatch(IJa(!1));if(this.isAd()&&!J){var H;(H=this.player)==null||H.notifyShortsAdSwipeEvent()}var M;(M=this.JSC$22993_cinematicController)==null||_.PeT(M);var X;(X=this.JSC$22993_cinematicController)==null||w57(X);H=p>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(H));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var Z,n,b,F,f,O;J=this.enableShortsSequenceRefactorUnify?(Z=this.shortsContentList)==null?void 0:(n=Z[p])==null?void 0:n.command:p<0?(b=this.shortsProcessedPrevSequence)==null?void 0:(F=b[this.shortsProcessedPrevSequence.length+p])==null?void 0:F.command:(f=this.shortsProcessedSequence)==null?void 0:(O=f[p])==null?void 0:O.command;this.index=p;this.gestureType||(this.gestureType=H?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");J&&this.isVideoContentCommand(J)&&(this.ytComponentBehavior.resolveCommand(J,{form:{createScreenConfig:{clickedVisualElement:H?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(J&&this.isNonVideoContentCommand(J)){this.currentEndpoint=J;this.data=void 0;Z=_.bC();n=_.e(J,_.iq);var A,P;(n=(A=_.e(n==null?void 0:n.renderer,_.K5))==null?void 0:(P=A.screenLoggingData)==null?void 0:P.screenVeType)&&_.TZ(Z,n);
this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(A=this.getActiveReelVideo(p))&&A.appendChild(this.overlayContainer)}var W,y;A=this.enableShortsSequenceRefactorUnify?((W=this.shortsContentList)==null?NaN:W.length)-4<=p:((y=this.reelWatchSequenceResponse)==null?void 0:y.entries)&&p===this.reelWatchSequenceResponse.entries.length-1;var t;if(((t=this.reelWatchSequenceResponse)==null?0:t.continuationEndpoint)&&A){var D,k,E={contentPlaybackContext:_.Mk({},(k=_.e((D=
this.currentEndpoint)==null?void 0:D.commandMetadata,_.i7))==null?void 0:k.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(_.wg.addLowPriorityJob(function(){S.ytComponentBehavior.resolveCommand(S.reelWatchSequenceResponse.continuationEndpoint,{form:E})}),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:E})}var a,q;
p=this.enableShortsSequenceRefactorUnify?p===0:p===-(((a=this.reelWatchSequenceResponse)==null?void 0:(q=a.prevEntries)==null?void 0:q.length)||0);var w,I;((w=this.reelWatchSequenceResponse)==null?0:w.prevContinuationEndpoint)&&((I=this.reelWatchSequenceResponse)==null?0:I.prevEntries)&&p&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.R.setMiniplayerPreview=function(p){p=(p===void 0?0:p)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var J,S,H,M,X=_.vO().resolve(_.DF),Z={shortsData:void 0,shortsPreviewThumbnail:p?this.enableShortsSequenceRefactorUnify?(J=this.shortsContentList)==null?void 0:(S=J[p])==null?void 0:S.thumbnail:(H=this.shortsProcessedSequence)==null?void 0:(M=H[p])==null?void 0:M.thumbnail:void 0};_.Yk(X,Z)};
_.R.updateTitle=function(p){var J,S;p=(p==null?0:p.adSlots)?"":(S=p==null?void 0:(J=p.videoDetails)==null?void 0:J.title)!=null?S:"";_.cf(this.hostElement,"yt-update-title",p)};
_.R.registerPanel=function(p){var J=_.vO().resolve(_.JY);if(J){p=_.K(p.engagementPanels||[]);for(var S=p.next();!S.done;S=p.next()){S=S.value;var H=this.getPanelIdentifier(S.engagementPanelSectionListRenderer),M=void 0,X=void 0;(X=(M=J).registerPanelContent)==null||X.call(M,H,S)}}};
_.R.getPanelIdentifier=function(p){var J;return(p==null?void 0:(J=p.identifier)==null?void 0:J.tag)||(p==null?void 0:p.panelIdentifier)||(p==null?void 0:p.targetId)};
_.R.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.rl().dispatch(IJa(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.rl().dispatch(xzy(!1));var p;(p=this.shortsController)!=null&&(p.dismissedIndices=[]);var J;(J=this.shortsController)!=null&&J.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.vO().resolve(_.DF).close(!0)};
_.R.processAppendReelWatchSequenceContinuationEntriesAction=function(p){var J=this,S;(S=this.intersectionObserver)==null||S.disconnect();p=p.appendReelWatchSequenceContinuationEntriesAction;if(p==null?0:p.entries){var H;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.dW(((H=this.reelWatchSequenceResponse)==null?void 0:H.entries)||[]),_.dW(p.entries)),continuationEndpoint:p.continuationEndpoint})}else if(p==null?0:p.prevEntries){var M;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.dW(((M=this.reelWatchSequenceResponse)==null?void 0:M.prevEntries)||[]),_.dW(p.prevEntries)),prevContinuationEndpoint:p.prevContinuationEndpoint});_.wg.addLowPriorityJob(function(){J.movePlayerToVideo(J.index);J.scrollToVideoThrottle.fire(J.index,"instant")})}else return;
_.wg.addLowPriorityJob(function(){J.observeShorts()},100)};
_.R.processWatchSequence=function(p){var J=this;return p.map(function(S){S=S.command;if(J.isVideoContentCommand(S)){var H=_.e(S,_.vt);return{reelPlayerOverlayRenderer:_.e(H==null?void 0:H.overlay,_.ie4),thumbnail:H.thumbnail,command:S}}return J.isNonVideoContentCommand(S)?(H=_.e(S,_.iq),{reelNonVideoContentRenderer:_.e(H==null?void 0:H.renderer,_.K5),command:S}):{command:S}})};
_.R.calculateIntersectionObserverThreshold=function(){var p=_.Jn(this.hostElement).querySelector("ytd-reel-video-renderer"),J=1;(p==null?0:p.offsetHeight)&&(p==null?0:p.offsetWidth)&&(J=Math.min(p.offsetHeight,this.shortsContainer.offsetHeight)/p.offsetHeight*(Math.min(p.offsetWidth,this.shortsContainer.offsetWidth)/p.offsetWidth));return Math.round(J*.6*10)/10};
_.R.isVideoContentCommand=function(p){_.vO().resolve(_.jW);return!!_.e(p,_.vt)};
_.R.isNonVideoContentCommand=function(p){_.vO().resolve(_.jW);return!!_.e(p,_.iq)};
_.R.initCinematicController=function(){var p=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22993_cinematicController=new _.AR(this.shortsCinematicContainer,this.player);var J,S=_.e((J=this.data)==null?void 0:J.background,_.Lx);_.A4v(this.JSC$22993_cinematicController,S);_.OVv(this.JSC$22993_cinematicController,gvq(S));_.fJa(this.JSC$22993_cinematicController);_.wg.addLowPriorityJob(function(){p.moveCinematicsToVideo()})}};
_.R.handleMiniplayerNavigateShorts=function(p){p==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():p==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.R.handleSignalActionToggleShortsPictureInPicture=function(){if(_.vO().resolve(_.DF).pictureInPictureSupported()){var p=_.vO().resolve(_.jW);if(_.z("web_shorts_pip")){var J=_.vO().resolve(_.DF);p.isShortsPipActive()?J.deactivate():J.isMiniplayerActive()||(_.YE().shortsPipActivation=!0,_.m8P(J))}}else(p=this.player)==null||p.togglePictureInPicture()};
_.vh.Object.defineProperties(BM.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.reelWatchSequenceResponse)!=null&&p.prevEntries)return this.processWatchSequence([].concat(_.dW(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.dW(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.reelWatchSequenceResponse)!=null&&p.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var p=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var J;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((J=this.shortsProcessedSequence)==null?void 0:J.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var S;J=_.e((S=this.firstShortsData)==null?void 0:S.command,_.vt);if(J==null||!J.videoId)return this.shortsProcessedSequence;S=this.getIndexInSequence(this.shortsSequence,
J.videoId);if(S!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=S,_.wg.addLowPriorityJob(function(){p.scrollToVideoThrottle.fire(p.index,"auto");p.movePlayerToVideo(p.index)}));
return[].concat(_.dW(this.shortsSequence))}_.bb(_.wg,function(){p.observeShorts()},100);
return[this.firstShortsData].concat(_.dW(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(){if(this.enableShortsSequenceRefactorUnify){var p;return this.index===((p=this.shortsContentList)==null?NaN:p.length)-1}if(this.endOfNextContinuation){var J,S;return this.index===((J=this.reelWatchSequenceResponse)==null?void 0:(S=J.entries)==null?void 0:S.length)}var H;return!((H=this.reelWatchSequenceResponse)==null?0:H.entries)&&this.index===0}},
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,J,S;return this.isShortPlayable()||((J=_.e((p=this.data)==null?void 0:p.watchStatus,_.vYv))==null?void 0:(S=J.style)==null?void 0:S.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var p=this,J=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),S;if((this.data||J)&&(((S=this.data)==null?0:S.engagementPanels)||this.isAd()||J)){J=!1;this.activePanel="shorts-comments-panel";var H;S=_.K(((H=this.data)==null?void 0:H.engagementPanels)||[]);for(H=S.next();!H.done;H=S.next())if(this.getPanelIdentifier(H.value.engagementPanelSectionListRenderer)===this.activePanel){J=!0;break}if(this.isPersistentPanelActive){var M=
_.vO().resolve(_.JY);_.uS(_.wg,function(){M.showPanel({identifier:p.activePanel,target:null})},100)}var X;
H=[].concat(_.dW(Object.values(((X=this.data)==null?void 0:X.engagementPanels)||{})));X=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);S=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return X===void 0&&S===void 0||(X==null?0:X.isDisabled)||(S==null?void 0:S.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!J?(J=H==null?void 0:H.findIndex(function(Z){var n,b;return((n=Z.engagementPanelSectionListRenderer)==null?void 0:(b=n.identifier)==null?void 0:b.tag)==="shorts-comments-panel"}),J===-1||J===void 0||H!=null&&H.splice(J,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Kl("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Kl("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:_.Kl("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Kl("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(_.dW(Object.values(H||
{})))):H}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var p=this,J,S,H;if((J=this.playerData)==null?0:(S=J.playabilityStatus)==null?0:(H=S.errorScreen)==null?0:H.playerInterstitialRenderer)return _.wg.addLowPriorityJob(function(){p.movePlayerToVideo(p.index)}),this.playerData.playabilityStatus.errorScreen;
var M,X;return((M=this.data)==null?void 0:M.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((X=this.data)==null?0:X.watchStatus)&&_.e(this.data.watchStatus,_.DIq)?(_.wg.addLowPriorityJob(function(){p.movePlayerToVideo(p.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.vh.Object.defineProperties(BM,{template:{configurable:!0,enumerable:!0,get:function(){if(bQG===void 0){var p=document.createElement("template");_.C(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    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" 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="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" 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    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);bQG=p}p=bQG;return p}}});
BM.prototype.onNextButtonDataChange=BM.prototype.onNextButtonDataChange;BM.prototype.onPrevButtonDataChange=BM.prototype.onPrevButtonDataChange;BM.prototype.onPersistentPanelActiveChanged=BM.prototype.onPersistentPanelActiveChanged;BM.prototype.lazyUpdateMiniplayerData=BM.prototype.lazyUpdateMiniplayerData;BM.prototype.onShortsPipActiveChanged=BM.prototype.onShortsPipActiveChanged;BM.prototype.setActiveIndex=BM.prototype.setActiveIndex;BM.prototype.graftNvcRenderer=BM.prototype.graftNvcRenderer;
BM.prototype.graftClientVisualElements=BM.prototype.graftClientVisualElements;BM.prototype.onActiveChanged=BM.prototype.onActiveChanged;BM.prototype.onShortsDismiss=BM.prototype.onShortsDismiss;BM.prototype.onShortUndoDismiss=BM.prototype.onShortUndoDismiss;BM.prototype.playerDataChanged=BM.prototype.playerDataChanged;BM.prototype.afterPlayerStarted=BM.prototype.afterPlayerStarted;BM.prototype.updateReelWatchSequenceResponse=BM.prototype.updateReelWatchSequenceResponse;
BM.prototype.unhideCurrentOverlay=BM.prototype.unhideCurrentOverlay;BM.prototype.onServiceRequestCompleted=BM.prototype.onServiceRequestCompleted;BM.prototype.engagementPanelsChanged=BM.prototype.engagementPanelsChanged;BM.prototype.onFullscreenChange=BM.prototype.onFullscreenChange;BM.prototype.onResize=BM.prototype.onResize;BM.prototype.setShortsContentList=BM.prototype.setShortsContentList;BM.prototype.setFirstShortsData=BM.prototype.setFirstShortsData;
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],BM.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Sz.YtPageBehavior),_.Y("design:type",Object)],BM.prototype,"ytPageBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],BM.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.wL),_.Y("design:type",Object)],BM.prototype,"ironResizableBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],BM.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],BM.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],BM.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"playerData",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"reelWatchSequenceResponse",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"cachedReelWatchSequenceResponse",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"cachedSequenceParams",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"cachedSequenceProvider",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"currentEndpoint",void 0);
_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"nextButtonData",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"prevButtonData",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"isPreviousPageShorts",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"index",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"delayedActiveIndex",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"playablePreviousIndex",void 0);
_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"player",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"isPlayerPaused",void 0);_.V([_.N({selector:sds}),_.Y("design:type",Object)],BM.prototype,"isPlayerStarted",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"intersectionObserver",void 0);_.V([_.N(),_.Y("design:type",Number)],BM.prototype,"cinematicsInitializeJobId",void 0);_.V([_.N(),_.Y("design:type",Number)],BM.prototype,"updateMiniplayerDataJobId",void 0);
_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"fitToVisibleBounds",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"pageSubtype",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],BM.prototype,"enablePreviousContinuation",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"shortsPipEnabled",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"isDark",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"shortsViewTransitions",void 0);_.V([_.N({selector:_.JX,reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"isFullscreen",void 0);_.V([_.N({selector:_.Ss,reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"isShortsPipActive",void 0);_.V([_.FM("#shorts-inner-container"),_.Y("design:type",HTMLElement)],BM.prototype,"shortsInnerContainer",void 0);
_.V([_.FM("#back-nav-button ytd-button-renderer"),_.Y("design:type",_.yJ)],BM.prototype,"backNavButton",void 0);_.V([_.FM("#shorts-container"),_.Y("design:type",HTMLElement)],BM.prototype,"shortsContainer",void 0);_.V([_.nj("error-screen"),_.Y("design:type",HTMLElement)],BM.prototype,"errorScreenContainer",void 0);_.V([_.nj("player"),_.Y("design:type",Object)],BM.prototype,"playerElement",void 0);
_.V([_.nj("shorts-cinematic-container"),_.Y("design:type",HTMLElement)],BM.prototype,"shortsCinematicContainer",void 0);_.V([_.nj("initial-player-container"),_.Y("design:type",HTMLElement)],BM.prototype,"initialPlayerContainer",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"buttonOverride",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"anchoredPanelActive",void 0);_.V([_.N(),_.Y("design:type",String)],BM.prototype,"activePanel",void 0);
_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"isActive",void 0);_.V([_.N({selector:Uzv,reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"smallScreenPersistentPanel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"isPersistentPanelActive",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"smallScreenSqueezeBack",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"enableScrollIntoViewCenter",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"formatFirst",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"enableFlexibleOverlay",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"extractOverlay",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"useAspectRatio",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BM.prototype,"enableShortsSequenceRefactorUnify",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"continuationRequestPending",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"shortsController",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"panelContainer",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"overlayContainer",void 0);
_.V([_.N(),_.Y("design:type",Array)],BM.prototype,"carouselContainers",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"isShortsInitialized",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"firstShortsData",void 0);_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"firstShortsDataModel",void 0);_.V([_.N(),_.Y("design:type",Array)],BM.prototype,"shortsContentList",void 0);
_.V([_.U("reelWatchSequenceResponse"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BM.prototype,"prevShortsSequence",null);_.V([_.U("data","prevShortsSequence"),_.U("data","prevShortsSequence"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BM.prototype,"shortsProcessedPrevSequence",null);_.V([_.U("reelWatchSequenceResponse"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BM.prototype,"shortsSequence",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"setFirstShortsData",null);_.V([_.bO("reelWatchSequenceResponse","firstShortsData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"setShortsContentList",null);_.V([_.U("data","shortsSequence","firstShortsData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BM.prototype,"shortsProcessedSequence",null);
_.V([_.N({reflectToAttribute:!0}),_.U("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BM.prototype,"isUpArrowHidden",null);_.V([_.N({reflectToAttribute:!0}),_.U("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BM.prototype,"isDownArrowHidden",null);
_.V([_.N(),_.U("index"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],BM.prototype,"activeIndex",null);_.V([_.U("isShortPlayable","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BM.prototype,"shouldRenderOfflineContent",null);_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"onResize",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BM.prototype,"anchoredEngagementPanels",null);
_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"watchWhileEngagementPanels",void 0);_.V([_.bO("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"onFullscreenChange",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"engagementPanelsChanged",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],BM.prototype,"onServiceRequestCompleted",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"unhideCurrentOverlay",null);_.V([_.bO("currentEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"updateReelWatchSequenceResponse",null);
_.V([_.bO("isPlayerStarted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"afterPlayerStarted",null);_.V([_.U("playerData","reelWatchSequenceResponse","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BM.prototype,"errorScreen",null);_.V([_.U("errorScreen"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BM.prototype,"hasError",null);
_.V([_.bO("playerData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],BM.prototype,"playerDataChanged",null);_.V([_.GI("yt-dismissible-item-undo-feedback"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"onShortUndoDismiss",null);_.V([_.GI("yt-disable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],BM.prototype,"onShortsDismiss",null);
_.V([_.An("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"onActiveChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"graftClientVisualElements",null);_.V([_.bO("currentPlayerIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"graftNvcRenderer",null);
_.V([_.bO("index"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"setActiveIndex",null);_.V([_.bO("isShortsPipActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"onShortsPipActiveChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"lazyUpdateMiniplayerData",null);
_.V([_.N(),_.Y("design:type",Object)],BM.prototype,"onOverlayDensityChanged",void 0);_.V([_.bO("isPersistentPanelActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"onPersistentPanelActiveChanged",null);_.V([_.bO("index","data","isUpArrowHidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"onPrevButtonDataChange",null);
_.V([_.bO("index","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BM.prototype,"onNextButtonDataChange",null);_.V([_.gw({is:"ytd-shorts"})],BM);_.Ke.registerService(_.Fa4,BM);
_.V0();
}catch(e){_._DumpException(e)}
try{
_.lW("JzFVk");
var zW4;var $sD;var IP=function(){return _.T.apply(this,arguments)||this};
_.Q(IP,_.T);IP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
IP.prototype.computeBlueBottomLink=function(p){return p};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],IP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],IP.prototype,"data",void 0);_.V([_.N({computed:"computeIcon_(data.bottomIcon)"}),_.Y("design:type",String)],IP.prototype,"bottomIcon",void 0);
_.V([_.N({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],IP.prototype,"enableBlueBottomLink",void 0);_.V([_.gw({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],IP);
_.l(IP,"ytd-web-answer-renderer",function(){if($sD!==void 0)return $sD;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return $sD=p},{mode:_.Jz("kevlar_poly_si_batch_j035")?1:2});var oTd;var Lh=function(){var p=_.T.apply(this,arguments)||this;p.hasChipBar=!1;return p};
_.Q(Lh,_.T);Lh.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}}};
Lh.prototype.computeHasChipBar=function(p){return!(p==null||!p.chipBar)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Lh.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.Y("design:type",Object)],Lh.prototype,"hasChipBar",void 0);_.V([_.gw({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Lh);
_.l(Lh,"ytd-search-header-renderer",function(){if(oTd!==void 0)return oTd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return oTd=p},{mode:1});var eWq;var p8=function(){return _.T.apply(this,arguments)||this};
_.Q(p8,_.T);p8.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],p8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],p8.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-page-continuation"})],p8);
_.l(p8,"ytd-page-continuation",function(){if(eWq!==void 0)return eWq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return eWq=p},{mode:1});var Wrs;var Q2s;var Cf4;var yZs=function(){return _.T.apply(this,arguments)||this};
_.Q(yZs,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yZs.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yZs.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],yZs);
_.l(yZs,"ytd-watch-card-one-vs-one-event",function(){if(Cf4!==void 0)return Cf4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Cf4=p},{mode:1});var Brs=function(){return _.T.apply(this,arguments)||this};
_.Q(Brs,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Brs.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Brs.prototype,"data",void 0);_.V([_.gw({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Brs);
_.l(Brs,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Q2s!==void 0)return Q2s;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Q2s=p},{mode:1});var Us7;var s2q=function(){return _.T.apply(this,arguments)||this};
_.Q(s2q,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],s2q.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],s2q.prototype,"data",void 0);_.V([_.gw({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],s2q);
_.l(s2q,"ytd-banner-and-box-hero-image-renderer",function(){if(Us7!==void 0)return Us7;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Us7=p},{mode:1});var gTD;var JR=function(){var p=_.T.apply(this,arguments)||this;p.modern=_.z("web_modern_buttons");return p};
_.Q(JR,_.T);JR.prototype.computeIcon=function(){var p,J,S=(p=this.data)==null?void 0:(J=p.icon)==null?void 0:J.iconType;if(S)return _.Xj(S)};
JR.prototype.computeButtonShape=function(){var p;return{buttonText:_.E4((p=this.data)==null?void 0:p.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.vh.Object.defineProperties(JR.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"}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],JR.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],JR.prototype,"modern",void 0);_.V([_.N({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JR.prototype,"buttonColor",null);
_.V([_.gw({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],JR);
_.l(JR,"ytd-call-to-action-button-renderer",function(){if(gTD!==void 0)return gTD;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return gTD=p},{mode:1});var tQs;var SO=function(){return _.T.apply(this,arguments)||this};
_.Q(SO,_.T);SO.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Jn(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.I4(this.data.leftThumbnail.thumbnails,216)+")")};
SO.prototype.onLeftThumbnailChanged=SO.prototype.onLeftThumbnailChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],SO.prototype,"data",void 0);_.V([_.bO("data.leftThumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SO.prototype,"onLeftThumbnailChanged",null);_.V([_.gw({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],SO);
_.l(SO,"ytd-collage-hero-image-renderer",function(){if(tQs!==void 0)return tQs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return tQs=p},{mode:1});var hWu;var HM=function(){return _.T.apply(this,arguments)||this};
_.Q(HM,_.T);HM.prototype.computeStyle=function(p){return p};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],HM.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],HM.prototype,"componentStyle",void 0);_.V([_.gw({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],HM);
_.l(HM,"ytd-single-hero-image-renderer",function(){if(hWu!==void 0)return hWu;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return hWu=p},{mode:1});var Dsd;var MY=function(){return _.T.apply(this,arguments)||this};
_.Q(MY,_.T);_.R=MY.prototype;
_.R.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:_.z("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.R.computeSubtitle=function(p){if(this.data){var J;if(this.data.upcomingEventData){p=_.E4(p.subtitle);var S=Number(this.data.upcomingEventData.startTime);isNaN(S)||(J=_.aR(_.eH(p,S)))}else J=p.subtitle;return J}};
_.R.onHeroTap=function(p){p.preventDefault();var J=this.data&&this.data.navigationEndpoint;!J||!_.jK(_.Er(p),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.jK(_.Er(p),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.z("kevlar_watchcard_hero_video_renderer_killswitch")?_.cf(this.hostElement,"yt-navigate",{navigationEndpoint:J}):this.ytComponentBehavior.resolveCommand(J))};
_.R.computeHeroTabIndex=function(p){return p&&p.simpleText?-1:0};
_.R.computeHeroRole=function(p){return p&&p.simpleText?"":"link"};
_.R.computeIsReminderButtonPresent=function(p){return!(!p||!p.reminderButton)};
_.R.computeHideBottomItems=function(p){return!(this.computeIsReminderButtonPresent(p)||p.subtitle)};
_.R.dataChanged=function(){var p=this.get("data.buttons.buttonRenderer.serviceEndpoint"),J;((J=_.e(p==null?void 0:p.commandMetadata,_.rB))==null?0:J.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(p)};
MY.prototype.dataChanged=MY.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],MY.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],MY.prototype,"data",void 0);
_.V([_.N({computed:"computeSubtitle(data)"}),_.Y("design:type",String)],MY.prototype,"subtitle",void 0);_.V([_.N({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],MY.prototype,"isReminderButtonPresent",void 0);_.V([_.N({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],MY.prototype,"hideBottomItems",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MY.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],MY);
_.l(MY,"ytd-watch-card-hero-video-renderer",function(){if(Dsd!==void 0)return Dsd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Dsd=p},{mode:1});var kAy;var Xx=function(){return _.T.apply(this,arguments)||this};
_.Q(Xx,_.T);_.R=Xx.prototype;_.R.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"}}}};
_.R.computeTitleBadges=function(p){return p?[p]:[]};
_.R.computeHeaderStyle=function(p){return p?p.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.R.computeAvatarAriaLabel=function(p){if(p){var J,S,H,M;return(M=(J=p.avatar)==null?void 0:(S=J.accessibility)==null?void 0:(H=S.accessibilityData)==null?void 0:H.label)!=null?M:_.E4(p==null?void 0:p.title)}};
_.R.computeAvatarHeight=function(p){return p==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.R.computeBadgeRowClass=function(p){return(p==null?0:p[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Xx.prototype,"data",void 0);_.V([_.N({computed:"computeTitleBadges(data.titleBadge)"}),_.Y("design:type",Array)],Xx.prototype,"titleBadges",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.Y("design:type",String)],Xx.prototype,"headerStyle",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.Y("design:type",String)],Xx.prototype,"badgeRowClass",void 0);_.V([_.gw({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Xx);
_.l(Xx,"ytd-watch-card-rich-header-renderer",function(){if(kAy!==void 0)return kAy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return kAy=p},{mode:1});var Nrs;var Trq;var im=function(){return _.T.apply(this,arguments)||this};
_.Q(im,_.T);im.prototype.onMetadataTap=function(p){var J=this.data&&this.data.navigationEndpoint;J&&!_.jK(_.Er(p),this.hostElement,["A".toString()])&&_.cf(this.hostElement,"yt-navigate",{endpoint:J})};
_.vh.Object.defineProperties(im.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 J=_.E4(this.data.subtitle),S=Number(this.data.upcomingEventData.startTime);isNaN(S)||(p=_.aR(_.eH(J,S)))}else p=this.data.subtitle;return p}}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],im.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data.style"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],im.prototype,"isCondensed",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],im.prototype,"subtitle",null);
_.V([_.gw({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],im);
_.l(im,"ytd-watch-card-compact-video-renderer",function(){if(Trq!==void 0)return Trq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Trq=p},{mode:1});var dsd;var u4u=function(){return _.T.apply(this,arguments)||this};
_.Q(u4u,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],u4u.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],u4u.prototype,"data",void 0);_.V([_.gw({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],u4u);
_.l(u4u,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(dsd!==void 0)return dsd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return dsd=p},{mode:1});var R_=function(){return _.T.apply(this,arguments)||this};
_.Q(R_,_.T);R_.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}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],R_.prototype,"ytRendererStamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],R_.prototype,"data",void 0);_.V([_.gw({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],R_);
_.l(R_,"ytd-vertical-watch-card-list-renderer",function(){if(Nrs!==void 0)return Nrs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Nrs=p},{mode:1});var lDv;var K8=function(){var p=_.T.apply(this,arguments)||this;p.ariaExpanded="false";return p};
_.Q(K8,_.T);_.R=K8.prototype;_.R.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.R.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])};
_.R.computeEpisodesInfo=function(p,J,S){if(p!==void 0&&J.length===p.length)return p[S]};
_.R.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.R.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.R.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.R.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.R.getUppercaseSimpleString=function(p){return this.ytRendererBehavior.getSimpleString(p).toUpperCase()};
_.R.updateCurrentSeasonIndexFromBinding=function(p){this.currentSeasonIndex=p.detail.value};
K8.prototype.onIronOverlayClosed=K8.prototype.onIronOverlayClosed;K8.prototype.currentSeasonIndexChanged=K8.prototype.currentSeasonIndexChanged;K8.prototype.dataChanged=K8.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],K8.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",String)],K8.prototype,"label",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],K8.prototype,"currentSeasonIndex",void 0);_.V([_.N({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.Y("design:type",Object)],K8.prototype,"episodesInfo",void 0);_.V([_.N({value:"false"}),_.Y("design:type",Object)],K8.prototype,"ariaExpanded",void 0);_.V([_.FM("#lists"),_.Y("design:type",Object)],K8.prototype,"lists",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K8.prototype,"dataChanged",null);_.V([_.An("currentSeasonIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K8.prototype,"currentSeasonIndexChanged",null);_.V([_.GI("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],K8.prototype,"onIronOverlayClosed",null);
_.V([_.gw({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],K8);
_.l(K8,"ytd-watch-card-section-dropdown-renderer",function(){if(lDv!==void 0)return lDv;var p=document.createElement("template");_.C(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="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return lDv=p},{mode:1});var VQG;var Z6=function(){var p=_.T.apply(this,arguments)||this;p.isSearch=!1;return p};
_.Q(Z6,_.T);Z6.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}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Z6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Z6.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Z6.prototype,"isSearch",void 0);_.V([_.gw({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Z6);
_.l(Z6,"ytd-watch-card-section-sequence-renderer",function(){if(VQG!==void 0)return VQG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
return VQG=p},{mode:1});var qGa=_.d(function(p){return _.m("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.m(_.AH,{data:function(){return p.data().ctaButton}},{buttonViewModel:_.D0}),_.m(_.v3,{text:function(){return p.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"vn");
qGa.idomCompat=!0;_.ci(qGa,"ytd-button-banner-view-model",{props:{data:_.fD}});var n8=function(){var p=_.T.apply(this,arguments)||this;p.isSearch=!1;return p};
_.Q(n8,_.T);
n8.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"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],n8.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],n8.prototype,"rounded",void 0);_.V([_.N(),_.Y("design:type",Object)],n8.prototype,"isSearch",void 0);
_.V([_.gw({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],n8);
_.l(n8,"ytd-universal-watch-card-renderer",function(){if(Wrs!==void 0)return Wrs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Wrs=p},{mode:1});var aDa;_.ci(_.d(function(p){var J=p.data;var S;p=!((S=_.vO().resolve(_.F9(_.uC)))==null||!S());S={};return _.m("overview-message-view-model",{class:_.XB("ytwOverviewMessageViewModelHost",(S.ytwOverviewMessageViewModelDarkBackground=p,S.ytwOverviewMessageViewModelLightBackground=!p,S))},_.m(_.v,{cond:function(){return J().primaryImage},
then:function(H){return _.m(_.a4,{data:H,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.m(_.v,{cond:function(){return J().primaryText},
then:function(){return _.m("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.m(_.v3,{text:function(){return J().primaryText}}))}}),_.m(_.v,{cond:function(){return J().secondaryText},
then:function(){return _.m("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.m(_.v3,{text:function(){return J().secondaryText}}))}}))},"wn"),"overview-message-view-model",{props:{data:_.fD}});_.ci(_.OLP,"ytd-overview-answer-view-model",{props:{data:_.fD}});var Gj=function(){return _.T.apply(this,arguments)||this};
_.Q(Gj,_.T);Gj.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"}}}};
Gj.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Gj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.$W),_.Y("design:type",Object)],Gj.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Gj.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Gj.prototype,"isSearch",void 0);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Gj);
_.l(Gj,"ytd-secondary-search-container-renderer",function(){if(aDa!==void 0)return aDa;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
return aDa=p},{mode:1});var ETd;var bm=function(){var p=_.T.apply(this,arguments)||this;p.renderSecondarySearchContainer=!1;p.isSearch=!1;return p};
_.Q(bm,_.T);_.R=bm.prototype;_.R.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.R.created=function(){var p=this;this.boundStampSecondarySearchContainerIfFits=function(){p.stampSecondarySearchContainerIfFits()};
_.rY("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.R.computeIsSearchFrictionPage=function(p){var J,S,H,M,X;p=p==null?void 0:(J=p.primaryContents)==null?void 0:(S=J.sectionListRenderer)==null?void 0:(H=S.contents)==null?void 0:(M=H[0])==null?void 0:(X=M.itemSectionRenderer)==null?void 0:X.contents;if(!p)return!1;J=_.K(p);for(S=J.next();!S.done;S=J.next())if(H=void 0,(H=S.value)==null?0:H.searchFrictionViewModel)return!0;return!1};
_.R.computeShowSecondaryColumn=function(p,J){return!!(J&&J.secondaryContents&&p)};
_.R.activeChanged=function(){var p=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.n3(this,this.debounceStampSecondarySearchContainerIfFits)),_.dw(function(){p.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.n3(this,this.debounceStampSecondarySearchContainerIfFits))};
_.R.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.R.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.R.debounceStampSecondarySearchContainerIfFits=function(){_.uO(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.R.onRetrieveLocation=function(p,J){J.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);p.stopPropagation()};
_.R.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
bm.prototype.dataChanged=bm.prototype.dataChanged;bm.prototype.onRetrieveLocation=bm.prototype.onRetrieveLocation;bm.prototype.persistentGuideChanged=bm.prototype.persistentGuideChanged;bm.prototype.activeChanged=bm.prototype.activeChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],bm.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.wL),_.Y("design:type",Object)],bm.prototype,"ironResizableBehavior",void 0);_.V([_.N(),_.Y("design:type",Boolean)],bm.prototype,"active",void 0);_.V([_.N(),_.Y("design:type",Object)],bm.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],bm.prototype,"useBiggerThumbs",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.zG("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],bm.prototype,"biggerThumbsStyle",void 0);_.V([_.N(),_.Y("design:type",Object)],bm.prototype,"renderSecondarySearchContainer",void 0);_.V([_.N({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.Y("design:type",Boolean)],bm.prototype,"showSecondaryColumn",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.Y("design:type",Boolean)],bm.prototype,"isSearchFrictionPage",void 0);
_.V([_.N(),_.Y("design:type",Object)],bm.prototype,"isSearch",void 0);_.V([_.bO("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bm.prototype,"activeChanged",null);_.V([_.bO("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bm.prototype,"persistentGuideChanged",null);
_.V([_.GI("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],bm.prototype,"onRetrieveLocation",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bm.prototype,"dataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],bm);
_.l(bm,"ytd-two-column-search-results-renderer",function(){if(ETd!==void 0)return ETd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return ETd=p},{mode:1});var mm=function(){var p=_.T.apply(this,arguments)||this;p.hasSearchHeader=!1;p.hasSecondaryContent=!1;p.hasBiggerThumbs=_.z("enable_desktop_search_bigger_thumbs");p.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return p};
_.Q(mm,_.T);_.R=mm.prototype;_.R.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:_.j1(["aa","eocs"])}}};
_.R.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.R.loadPage_=function(p){this.initCsi();p&&(this.data=p,_.rY("REFINEMENTS_TUPLE",["FromSearchResponse",p.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Gg(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.R.initCsi=function(){_.Qrs("results",["ol","cpt"])};
_.R.updateTitle=function(){var p=_.xc(window.location.href,"q");p||(p=_.xc(window.location.href,"search_query"));_.cf(this.hostElement,"yt-update-title",p||"")};
_.R.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.R.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.z("web_srp_data_changed_terminate_imp_killswitch")||_.IV(this.hostElement,"yt-terminate-video-preview-action")};
_.R.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.R.computeHasSearchHeader=function(p){var J;p=p==null?void 0:(J=p.header)==null?void 0:J.searchHeaderRenderer;return!!p&&(!!p.searchFilterButton||!!p.chipBar)};
_.R.computeHasSecondaryContent=function(p){var J,S;return!!(p==null?0:(J=p.contents)==null?0:(S=J.twoColumnSearchResultsRenderer)==null?0:S.secondaryContents)};
_.vh.Object.defineProperties(mm,{template:{configurable:!0,enumerable:!0,get:function(){if(zW4===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);zW4=p}p=zW4;return p}}});
mm.prototype.onReloadContinuationFinish=mm.prototype.onReloadContinuationFinish;mm.prototype.dataChanged=mm.prototype.dataChanged;_.V([_.B(_.Sz.YtPageBehavior),_.Y("design:type",Object)],mm.prototype,"ytPageBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],mm.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],mm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.$W),_.Y("design:type",Object)],mm.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],mm.prototype,"data",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],mm.prototype,"monitorScroll",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mm.prototype,"hasSearchHeader",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mm.prototype,"hasSecondaryContent",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],mm.prototype,"hasBiggerThumbs",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mm.prototype,"dataChanged",null);
_.V([_.GI("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mm.prototype,"onReloadContinuationFinish",null);_.V([_.gw({is:"ytd-search"})],mm);_.Ke.registerService(_.m5X,mm);
_.V0();
}catch(e){_._DumpException(e)}
try{
_.lW("h8y2qb");
var yyv=function(p){if(p=_.Lwg(p)){var J;(J=p.sources)!=null&&J[0]?(J=_.JKX(p),J=J<1?"VERTICAL":J>1?"HORIZONTAL":"SQUARE"):J=void 0;return J}},HA=function(p){_.tJ.call(this,"upload");
this.opts.query=p},U0G=function(p,J){return _.m(B2d,{data:p,
onYtNavigate:J})},srp=function(p,J){return _.RR(p.entities,"pageHeaderEntity",J)},t6D=function(p,J){return p.map(function(S){if(S.tabRenderer)return gos(S.tabRenderer);
if(S.expandableTabRenderer&&J){var H=S.expandableTabRenderer;return{customTabRenderable:function(){return J(H)}}}return{}})},gos=function(p){return{identifier:p.tabIdentifier,
aTagConfig:_.tz({innertubeCommand:p.endpoint,forceNewState:!0}),title:p.title,selected:p.selected,disabled:p.unselectable,icon:p.icon}},hm7=function(p){return _.Jk({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:p})},D0y=function(p){if(!_.pG(document,"gtm-noscript")){var J=document.createElement("noscript");
J.id="gtm-noscript";J.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+p+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(J)}};_.SJ(HA,_.tJ);HA.prototype.JSC$10229_setLabel=function(p){HA.superClass_.JSC$10229_setLabel.call(this,p);return this};
HA.prototype.addUploadMetadata=function(p,J){HA.superClass_.addUploadMetadata.call(this,p,J);return this};var k6q=function(p){if(p!=="youtubebanner"&&p!=="youtube-channel-banner")throw Error("Qo");HA.call(this,p)};
_.Q(k6q,HA);k6q.prototype.JSC$10229_setLabel=function(p){HA.prototype.JSC$10229_setLabel.call(this,p);return this};
k6q.prototype.addUploadMetadata=function(p,J){HA.prototype.addUploadMetadata.call(this,p,J);return this};var N27=[_.wL,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(p){_.f1(p).path[0]!==this&&(this.resetLayout(),p.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var p=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.zm(this._layoutDebouncer,_.$2,p);_.$e(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 T2y=[_.X_8,{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,J){var S=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[p];if(!S)throw new ReferenceError(this._getUndefinedMsg(p));p=this._boundEffect(S,J||{});p.setUp();return p},
_effectsChanged:function(p,J,S){this._tearDownEffects();p&&S&&(p.split(" ").forEach(function(H){var M;H!==""&&((M=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[H])?this._effects.push(this._boundEffect(M,J[H])):console.warn(this._getUndefinedMsg(H)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(p,J){J=J||{};var S=parseFloat(J.startsAt||0),H=parseFloat(J.endsAt||1),M=H-S,X=function(){};
H=S===0&&H===1?p.run:function(Z,n){p.run.call(this,Math.max(0,(Z-S)/M),n)};
return{setUp:p.setUp?p.setUp.bind(this,J):X,run:p.run?H.bind(this):X,tearDown:p.tearDown?p.tearDown.bind(this):X}},
_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,J){this._effectsRunFn&&this._effectsRunFn.forEach(function(S){S(p,J)})},
_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("Ro`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 J={};p=parseFloat(p.scalar);J.background=this._getDOMRef("background");J.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");J.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");J.deltaBg=J.backgroundFrontLayer.offsetHeight-J.background.offsetHeight;J.deltaBg===0?(isNaN(p)&&(p=.8),J.deltaBg=(this._dHeight||0)*p):(isNaN(p)&&(p=
1),J.deltaBg*=p);this._fxParallaxBackground=J},
run:function(p){var J=this._fxParallaxBackground;this.transform("translate3d(0px, "+J.deltaBg*Math.min(1,p)+"px, 0px)",J.backgroundFrontLayer);J.backgroundRearLayer&&this.transform("translate3d(0px, "+J.deltaBg*Math.min(1,p)+"px, 0px)",J.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var d0u;var uC7;var lZs=function(){};
_.R=lZs.prototype;_.R._scrollTargetChanged=function(){};
_.R.scroll=function(){};
_.R._isValidScrollTarget=function(){};
_.R._toggleScrollListener=function(){};
_.R.toggleScrollListener=function(){};
_.R.createEffect=function(){};
_.R._effectsChanged=function(){};
_.R._layoutIfDirty=function(){};
_.R._boundEffect=function(){};
_.R._setUpEffect=function(){};
_.R._tearDownEffects=function(){};
_.R._runEffects=function(){};
_.R._scrollHandler=function(){};
_.R._scrollStateChanged=function(){};
_.R._getUndefinedMsg=function(){};
_.R.notifyResize=function(){};
_.R.assignParentResizable=function(){};
_.R.stopResizeNotificationsFor=function(){};
_.R._subscribeIronResize=function(){};
_.R._unsubscribeIronResize=function(){};
_.R.resizerShouldNotify=function(){};
_.R._onDescendantIronResize=function(){};
_.R._fireResize=function(){};
_.R._onIronRequestResizeNotifications=function(){};
_.R._parentResizableChanged=function(){};
_.R._notifyDescendant=function(){};
_.R._requestResizeNotifications=function(){};
_.R._findParent=function(){};
_.R._appResetLayoutHandler=function(){};
_.R.resetLayout=function(){};
_.R._notifyLayoutChanged=function(){};
_.R._notifyDescendantResize=function(){};
_.R._setThresholdTriggered=function(){};
lZs=_.QG({_template:function(){if(uC7!==void 0)return uC7;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;d0u===void 0&&(d0u=document.createElement("template"));var H=d0u;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return uC7=p},
is:"tp-yt-app-header",behaviors:[T2y,N27],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=_.f1(this.$.slot).getDistributedNodes(),J=0,S;S=p[J];J++)if(S.nodeType===Node.ELEMENT_NODE)if(S.hasAttribute("sticky")){this._stickyElRef=S;break}else this._stickyElRef||(this._stickyElRef=S);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var p=this._clampedScrollTop,J=this._height===0||p===0,S=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;J||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();J?this._updateScrollState(p,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=S}},
_updateScrollState:function(p,J){if(this._height!==0){var S=0,H=this._top;var M=this._maxHeaderTop;var X=p-this._lastScrollTop,Z=Math.abs(X),n=p>this._lastScrollTop,b=performance.now();this._mayMove()&&(S=this._clamp(this.reveals?H+X:p,0,M));p>=this._dHeight&&(S=this.condenses&&!this.fixed?Math.max(this._dHeight,S):S,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&Z<100){if(b-this._initTimestamp>300||this._wasScrollingDown!==n)this._initScrollTop=p,this._initTimestamp=b;p>=M&&
(Math.abs(this._initScrollTop-p)>30||Z>10?(n&&p>=M?S=M:!n&&p>=this._dHeight&&(S=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((S-H)/(X/(b-this._lastTimestamp)),0,300)+"ms"):S=this._top)}M=this._dHeight===0?p>0?1:0:S/this._dHeight;J||(this._lastScrollTop=p,this._top=S,this._wasScrollingDown=n,this._lastTimestamp=b);if(J||M!==this._progress||H!==S||p===0)this._progress=M,this._runEffects(M,S),this._transformHeader(S)}},
_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,J,S){return Math.min(S,Math.max(J,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),_.f1(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 _.f1(this).querySelector("[main-title]");case "condensedTitle":return _.f1(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var V6y;var q94;_.QG({_template:function(){if(q94!==void 0)return q94;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;V6y===void 0&&(V6y=document.createElement("template"));var H=V6y;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return q94=p},
is:"tp-yt-app-header-layout",behaviors:[N27],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.f1(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate: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 J=this.getBoundingClientRect(),S=document.documentElement.clientWidth-J.right;p.style.left=J.left+"px";p.style.right=S+"px"}J=this.$.contentContainer.style;S=p.offsetHeight;p.fixed&&!p.condenses&&this.hasScrollingRegion?
(J.marginTop=S+"px",J.paddingTop=""):(J.paddingTop=S+"px",J.marginTop="")}}});var aZv=new _.Zz("alertCommand");var EoG=new _.Zz("manageLabsStateCommand");var Y97=new _.Zz("inlineFormRenderer");var ryD=new _.Zz("playlistSidebarPrimaryInfoRenderer");var jrp=new _.Zz("productDetailsThumbnailRenderer"),wss=new _.Zz("productDetailsVariantRenderer"),x0D=new _.Zz("productDetailsVariantOptionRenderer"),cyG=new _.Zz("productDetailsOffersContainerRenderer"),IZu=new _.Zz("productDetailsOfferRenderer");var L9v=new _.Zz("shoppingFlaggingRenderer");var p0u=new _.Zz("playlistBylineRenderer");var JTv=new _.Zz("insertChannelTabCommand");var Md=function(){return _.f3.apply(this,arguments)||this};
_.Q(Md,_.f3);_.R=Md.prototype;_.R.activeChanged=function(){if(this.active){var p=_.Jn(this.hostElement).querySelector("#header");p&&_.cf(p,"iron-resize");window.addEventListener("scroll",_.n3(this,this.onScroll))}else window.removeEventListener("scroll",_.n3(this,this.onScroll)),_.cf(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.R.guideVisibleChanged=function(){var p=_.Jn(this.hostElement).querySelector("#header");p&&_.cf(p,"iron-resize")};
_.R.onScroll=function(){var p=this;_.uO(this,"onScroll",function(){var J=_.Jn(p.hostElement).querySelector("#header");J&&J.polymerController&&(J=J.polymerController.getScrollState().progress===1?"standard":"seamed",_.cf(p.hostElement,"yt-request-panel-mode-change",{mode:J}))},10)};
_.R.tabsChanged=function(){if(this.tabs){for(var p=null,J=0,S=this.tabs.length;J<S;++J){var H=this.tabs[J].tabRenderer;if(H&&H.selected){p=J;break}}this.selected=p}};
_.R.onTabsActivate=function(p){_.cf(this.hostElement,"yt-navigate",{endpoint:this.tabs[p.detail.selected].tabRenderer.endpoint})};
Md.prototype.tabsChanged=Md.prototype.tabsChanged;Md.prototype.guideVisibleChanged=Md.prototype.guideVisibleChanged;Md.prototype.activeChanged=Md.prototype.activeChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Md.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.N(),_.Y("design:type",Array)],Md.prototype,"tabs",void 0);
_.V([_.N(),_.Y("design:type",Object)],Md.prototype,"selected",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Md.prototype,"active",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Md.prototype,"disableHeaderFluidWidth",void 0);_.V([_.bO("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Md.prototype,"activeChanged",null);
_.V([_.bO("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Md.prototype,"guideVisibleChanged",null);_.V([_.bO("tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Md.prototype,"tabsChanged",null);_.V([_.OD()],Md);var SV4=[_.x.YtRendererBehavior,_.mG.YtdGuideStateAwareBehavior,Md.prototype];var HCp=2/3,MmD=_.KG(130749),X0t=function(p,J){var S=this;this.element=p;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){S.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:HCp,moveAction:function(H){S.moveAction(H)},
triggerAction:function(){S.element.isReloading=!0;_.dn(_.bC(),{visualElement:MmD});_.R4.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:S.element}})}}}};
_.uq(_.bC(),MmD,this.layer);this.gesture=new _.Nh(p,J,this.refreshConfig,"pan-down");this.attach()};
_.R=X0t.prototype;_.R.attach=function(){this.gesture.attach()};
_.R.detach=function(){this.gesture.detach()};
_.R.reset=function(){this.element.close()};
_.R.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.R.moveAction=function(p){this.element.rotation=p*360};var iCy=_.KG(130750),KH7=function(p,J,S,H,M){var X=this;this.element=p;this.parent=S;this.channelHeader=H;this.ytdReduxDispatch=M;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){X.tabsStartAtInPx=X.channelHeader.clientHeight-48;var Z;(Z=X.selectedTab)!=null&&Z.title&&(Z=_.vO().resolve(_.F9(_.xz)))&&(Z=Z.getCurrentPage(),X.lastVisitedTabScrollPosition=Z.getScrollTop(),X.previousTab&&
((X.lastVisitedTabScrollPosition===void 0?0:X.lastVisitedTabScrollPosition<X.channelHeader.clientHeight-48)?X.scrollPositionForTabs.has(X.selectedTab.title)&&X.scrollPositionForTabs.delete(X.selectedTab.title):X.scrollPositionForTabs.set(X.selectedTab.title,Z.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:RwG(),triggerAction:function(){X.navigate(X.previousTab)},
moveAction:function(Z,n){X.moveAction(Z,n)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-RwG(),triggerAction:function(){X.navigate(X.nextTab)},
moveAction:function(Z,n){X.moveAction(Z,n)}}}};
_.uq(_.bC(),iCy,this.layer);this.gesture=new _.Nh(p,J,this.tabConfig);this.attach()};
_.R=KH7.prototype;_.R.attach=function(){this.gesture.attach()};
_.R.detach=function(){this.gesture.detach()};
_.R.tabsChanged=function(p){if(p){var J=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;p=_.K(p);for(var S=p.next();!S.done;S=p.next()){S=S.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=S);var H=void 0;if((H=S)==null?0:H.selected)this.previousTab=J,this.selectedTab=S;J=S}J=this.gesture;p=this.getConfig();J.config=p;this.scrollPositionNeedsUpdate=!0}};
_.R.getConfig=function(){return 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}})};
_.R.moveAction=function(p,J){if(!this.tabsElement){var S;this.tabsElement=(S=this.parent.header)==null?void 0:S.tabsElement;J==="right"&&this.previousTab?(S=this.previousTab.endpoint,_.bCj(_.vO().resolve(_.o$),S,{},"")):J==="left"&&this.nextTab&&(S=this.nextTab.endpoint,_.bCj(_.vO().resolve(_.o$),S,{},""));if(!this.tabsElement)return}S=this.tabsElement._pos;J==="right"&&(p*=-1);this.tabsElement._positionBar(S.width,S.left*1+S.width*p)};
var RwG=function(){var p,J;return(J=(p=_.vO().resolve(_.xz).getCurrentPage())==null?void 0:p.clientWidth)!=null?J:0};
KH7.prototype.navigate=function(p){this.element.data=void 0;if(p=p==null?void 0:p.endpoint)this.ytdReduxDispatch(hm7(!0)),_.dn(_.bC(),{visualElement:iCy}),_.R4.instance.resolveCommand({navigateAction:{endpoint:p}},{form:{element:this.element}})};var ZCq;var ncd;var Xt=function(){return _.T.apply(this,arguments)||this};
_.Q(Xt,_.T);Xt.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Xt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Xt.prototype,"data",void 0);_.V([_.gw({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Xt);
_.l(Xt,"ytd-labs-edit-renderer",function(){if(ncd!==void 0)return ncd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ncd=p},{mode:1});var GNs;var ii=function(){var p=_.T.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};
_.Q(ii,_.T);ii.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ii.prototype.ready=function(){var p=document.documentElement.hasAttribute("dark");this.setBackgroundImage(p);this.dark=p};
ii.prototype.onDarkModeToggledAction=function(p){this.setBackgroundImage(p);this.dark=p};
ii.prototype.setBackgroundImage=function(p){_.K3(this.hostElement,{"--yt-labs-header-background":"url("+(p?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],ii.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ii.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ii.prototype,"dark",void 0);
_.V([_.gw({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],ii);
_.l(ii,"ytd-labs-header-renderer",function(){if(GNs!==void 0)return GNs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return GNs=p},{mode:1});var bCG;var RP=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return p};
_.Q(RP,_.T);RP.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"}}}}}};
RP.prototype.onYtToggleButton=function(p){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",p.detail.toggled)};
RP.prototype.onManageLabsState=function(p){if(p=_.e(p,EoG))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"?_.IV(this.hostElement,"yt-check-labs-opted-in-state").some(function(J){return J})&&this.data.confirmationDialogCommand?_.JP(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.vO().resolve(_.Ov).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"&&(_.vO().resolve(_.Ov).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
RP.prototype.onCheckLabsOptedInState=function(){var p=this.get("data.primaryButton.toggleButtonRenderer");return p?p.isToggled:!1};
_.vh.Object.defineProperties(RP.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
RP.prototype.onYtToggleButton=RP.prototype.onYtToggleButton;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],RP.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],RP.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],RP.prototype,"itemStyle",null);_.V([_.GI("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RP.prototype,"onYtToggleButton",null);_.V([_.gw({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],RP);
_.l(RP,"ytd-labs-item-renderer",function(){if(bCG!==void 0)return bCG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return bCG=p},{mode:1});var mLp;var FHq;var vc7=function(){return _.T.apply(this,arguments)||this};
_.Q(vc7,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],vc7.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],vc7.prototype,"data",void 0);_.V([_.gw({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],vc7);
_.l(vc7,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(FHq!==void 0)return FHq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return FHq=p},{mode:1});var fdu;var Kh=function(){return _.T.apply(this,arguments)||this};
_.Q(Kh,_.T);Kh.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)};_.K3(this.hostElement,p)}};
Kh.prototype.colorFromDecimal=function(p){return _.Bt(Number(p||0))};
Kh.prototype.observeSuperchatChip=Kh.prototype.observeSuperchatChip;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Kh.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kh.prototype,"observeSuperchatChip",null);_.V([_.gw({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Kh);
_.l(Kh,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(fdu!==void 0)return fdu;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return fdu=p},{mode:1});var Zf=function(){return _.T.apply(this,arguments)||this};
_.Q(Zf,_.T);Zf.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"}}}};
_.vh.Object.defineProperties(Zf.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ZU),_.Y("design:type",Object)],Zf.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Zf.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zf.prototype,"hideMessageBlock",null);
_.V([_.gw({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Zf);
_.l(Zf,"ytd-live-chat-history-entry-renderer",function(){if(mLp!==void 0)return mLp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return mLp=p},{mode:1});var OCT;var ATG=function(){return _.T.apply(this,arguments)||this};
_.Q(ATG,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ATG.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ATG.prototype,"data",void 0);_.V([_.gw({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],ATG);
_.l(ATG,"ytd-channel-options-renderer",function(){if(OCT!==void 0)return OCT;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return OCT=p},{mode:1});var PW4;var nh=function(){return _.T.apply(this,arguments)||this};
_.Q(nh,_.T);nh.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],nh.prototype,"data",void 0);_.V([_.gw({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],nh);
_.l(nh,"ytd-settings-email-item-renderer",function(){if(PW4!==void 0)return PW4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return PW4=p},{mode:1});var zwT;var Gc=function(){return _.T.apply(this,arguments)||this};
_.Q(Gc,_.T);Gc.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"}}}};
Gc.prototype.getExpansionIcon=function(p){return p?"COLLAPSE":"EXPAND"};
Gc.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.vh.Object.defineProperties(Gc.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Gc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Gc.prototype,"data",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gc.prototype,"expanded",void 0);_.V([_.U("expanded"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Gc.prototype,"emailListExpanded",null);
_.V([_.FM("#options"),_.Y("design:type",Object)],Gc.prototype,"options",void 0);_.V([_.gw({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Gc);
_.l(Gc,"ytd-settings-email-list-renderer",function(){if(zwT!==void 0)return zwT;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return zwT=p},{mode:1});var $LD;var bi=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return p};
_.Q(bi,_.T);bi.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"}}}};
bi.prototype.handleSignalActionSubmitForm=function(){var p,J=(p=this.formRenderer)==null?void 0:p.getForm();J&&this.data.serviceEndpoint&&_.vO().resolve(_.Ov).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},J,{element:this.hostElement})})};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bi.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],bi.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],bi.prototype,"data",void 0);_.V([_.FM("yt-form-renderer"),_.Y("design:type",Object)],bi.prototype,"formRenderer",void 0);
_.V([_.gw({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],bi);
_.l(bi,"ytd-settings-gaia-link-renderer",function(){if($LD!==void 0)return $LD;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return $LD=p},{mode:1});var oca;_.ci(_.ml,"basic-content-view-model",{props:{data:_.jr,className:_.jr}});var m0=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return p};
_.Q(m0,_.T);m0.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.ccp()&&this.set("data.hidden",!1)};
m0.prototype.onSwitchReady=function(){var p=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.z("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.xcf().then(function(J){J&&(Notification.permission==="default"?p.set("data.hidden",!1):Notification.permission==="granted"&&_.Mx("NotificationsDisabled").then(function(S){S||_.IV(p.hostElement,"yt-toggle-settings-switch",[p.data.id,!S]);p.set("data.hidden",!1)}).catch(function(){}))})})};
m0.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},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
m0.prototype.handleUpdateOptionsCommand=function(p){(p=_.e(p,_.Oo8))&&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",[]))};
m0.prototype.onSwitchReady=m0.prototype.onSwitchReady;m0.prototype.dataChanged=m0.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],m0.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],m0.prototype,"data",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m0.prototype,"dataChanged",null);_.V([_.GI("yt-settings-switch-ready"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m0.prototype,"onSwitchReady",null);_.V([_.gw({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],m0);
_.l(m0,"ytd-settings-options-renderer",function(){if(oca!==void 0)return oca;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return oca=p},{mode:1});var ewt;var Ft=function(){return _.T.apply(this,arguments)||this};
_.Q(Ft,_.T);Ft.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ft.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Ft.prototype.onYtExpanderMoreTapped=Ft.prototype.onYtExpanderMoreTapped;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Ft.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ft.prototype,"data",void 0);
_.V([_.GI("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ft.prototype,"onYtExpanderMoreTapped",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Ft);
_.l(Ft,"ytd-product-details-description-renderer",function(){if(ewt!==void 0)return ewt;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ewt=p},{mode:1});var WH7;var vA=function(){var p=_.T.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};
_.Q(vA,_.T);vA.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vh.Object.defineProperties(vA.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?void 0:(J=p.offerData)==null?void 0:J.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?void 0:p.purchaseButtonRenderers)!==void 0&&((J=this.data)==null?void 0:J.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var p,J;return!((p=this.data)==null||!p.formattedFromMerchantText)&&(!((J=this.data)==null||!J.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],vA.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],vA.prototype,"data",void 0);
_.V([_.N({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],vA.prototype,"shippingIcon",void 0);_.V([_.N({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],vA.prototype,"shippingAddressIcon",void 0);_.V([_.N({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],vA.prototype,"googleGuaranteeIcon",void 0);
_.V([_.N({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],vA.prototype,"returnPolicyIcon",void 0);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],vA.prototype,"showAdditionalFees",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],vA.prototype,"showMultiPurchaseButtons",null);
_.V([_.U("data","showMultiPurchaseButtons"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],vA.prototype,"showPurchaseData",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],vA);
_.l(vA,"ytd-product-details-hero-offer-renderer",function(){if(WH7!==void 0)return WH7;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return WH7=p},{mode:1});var Q7p;var CWs;var fh=function(){return _.T.apply(this,arguments)||this};
_.Q(fh,_.T);_.R=fh.prototype;_.R.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.R.onKeyDown=function(p){p=p.keyCode;p!==13&&p!==32||this.handleSelection()};
_.R.onMouseEnterImage=function(){var p;((p=this.data)==null?void 0:p.thumbnailDetails)!==void 0&&_.L1(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.R.onMouseLeaveImage=function(){_.L1(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.R.handleSelection=function(){this.data&&_.cf(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.vh.Object.defineProperties(fh.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isSelected)}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],fh.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fh.prototype,"isSelected",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],fh);
_.l(fh,"ytd-product-details-thumbnail-renderer",function(){if(CWs!==void 0)return CWs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return CWs=p},{mode:1});var Ob=function(){var p=_.T.apply(this,arguments)||this;var J={};p.actionMap=(J["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",J["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",J);p.selectedThumbnailIndex=0;p.selectItem=function(S){S.target.onKeyDown(S)};
return p};
_.Q(Ob,_.T);_.R=Ob.prototype;_.R.handlePreviewImageSelect=function(p){this.hoverThumbnail=p};
_.R.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.R.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.R.onThumbnailSelected=function(p,J){this.selectedThumbnailIndex=J};
_.R.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.R.updateOffset=function(){var p=_.Jn(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-p));this.ytdHorizontalListBehavior.reposition_()};
_.vh.Object.defineProperties(Ob.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.imageRenderer){var J,S;return((J=this.data)==null?void 0:(S=J.imageRenderer)==null?void 0:S.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 J;return(J=_.e(this.data.imageRenderer[this.selectedThumbnailIndex],jrp))==null?void 0:J.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var p=this,J,S,H,M=(H=(J=this.data)==null?void 0:(S=J.imageRenderer)==null?void 0:S.map(function(X,Z){return{productDetailsThumbnailRenderer:Object.assign({},_.e(X,jrp),{index:Z,isSelected:Z===p.selectedThumbnailIndex})}}))!=null?H:[];
return Object.assign({},this.data,{imageRenderer:M})}}});
Ob.prototype.updateOffset=Ob.prototype.updateOffset;Ob.prototype.dataChanged=Ob.prototype.dataChanged;Ob.prototype.onThumbnailSelected=Ob.prototype.onThumbnailSelected;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.BH.YtdHorizontalListBehavior),_.Y("design:type",Object)],Ob.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Ob.prototype,"componentBehavior",void 0);_.V([_.B([_.u1.YtActionHandlerBehavior]),_.Y("design:type",Object)],Ob.prototype,"actionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ob.prototype,"data",void 0);_.V([_.N({value:"$.items.children"}),_.Y("design:type",String)],Ob.prototype,"itemsPath",void 0);_.V([_.N({value:3}),_.Y("design:type",Number)],Ob.prototype,"initialCount",void 0);
_.V([_.FM("#items"),_.Y("design:type",Object)],Ob.prototype,"items",void 0);_.V([_.N(),_.Y("design:type",Object)],Ob.prototype,"selectedThumbnailIndex",void 0);_.V([_.N(),_.Y("design:type",Object)],Ob.prototype,"hoverThumbnail",void 0);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ob.prototype,"showThumbnails",null);
_.V([_.GI("ytd-product-details-thumbnail-renderer-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Number]),_.Y("design:returntype")],Ob.prototype,"onThumbnailSelected",null);_.V([_.U("data","selectedThumbnailIndex","hoverThumbnail"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ob.prototype,"thumbnailDetails",null);_.V([_.U("data","selectedThumbnailIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ob.prototype,"populatedData",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ob.prototype,"dataChanged",null);_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ob.prototype,"updateOffset",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Ob);
_.l(Ob,"ytd-product-details-image-carousel-renderer",function(){if(Q7p!==void 0)return Q7p;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Q7p=p},{mode:_.Jz("kevlar_poly_si_batch_j079")?1:2});var yTp;var Af=function(){return _.T.apply(this,arguments)||this};
_.Q(Af,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Af.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Af.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Af);
_.l(Af,"ytd-product-details-offer-renderer",function(){if(yTp!==void 0)return yTp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return yTp=p},{mode:1});var Bpt;var PA=function(){var p=_.T.apply(this,arguments)||this;p.isOffersHidden=!0;return p};
_.Q(PA,_.T);PA.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var p,J=_.e((p=this.data)==null?void 0:p.viewOffersButton,_.Za);J&&this.ytRendererBehavior.logExplicitClick(J)};
PA.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.vh.Object.defineProperties(PA.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H;return(S=_.e((p=this.data)==null?void 0:(J=p.offers)==null?void 0:J[0],IZu))==null?void 0:(H=S.offerData)==null?void 0:H.vendorLogoUrl}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],PA.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],PA.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],PA.prototype,"isOffersHidden",void 0);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PA.prototype,"firstOfferVendorLogoUrl",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],PA);
_.l(PA,"ytd-product-details-offers-container-renderer",function(){if(Bpt!==void 0)return Bpt;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Bpt=p},{mode:1});var ULp;var s7y;var zc=function(){return _.T.apply(this,arguments)||this};
_.Q(zc,_.T);zc.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
zc.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.L1(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
zc.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.L1(this,"ytd-product-details-variant-image-unselect")};
_.vh.Object.defineProperties(zc.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,J,S;return((p=this.data)==null?void 0:p.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((J=this.data)==null?void 0:J.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((S=this.data)==null?void 0:S.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,J;return this.isUnavailable?(p=this.data)==null?void 0:p.variantOptionUnavailableAccessibilityLabel:(J=this.data)==null?void 0:J.variantOptionAccessibilityLabel}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],zc.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],zc.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],zc.prototype,"displayType",void 0);
_.V([_.U("displayType","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zc.prototype,"isImageButton",null);_.V([_.U("displayType","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zc.prototype,"isPillButton",null);_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zc.prototype,"isActive",null);
_.V([_.U("data"),_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zc.prototype,"isUnavailable",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zc.prototype,"thumbnailDetails",null);_.V([_.U("isUnavailable","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zc.prototype,"accessibilityLabel",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],zc);
_.l(zc,"ytd-product-details-variant-option-renderer",function(){if(s7y!==void 0)return s7y;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return s7y=p},{mode:1});var gct;var $x=function(){var p=_.T.apply(this,arguments)||this;p.variantsExpanded=!1;p.hideShowMoreLessVariantButton=!0;p.initialized=!1;p.computeVariantsDebouncer=null;p.computeVariants=function(J){J=J===void 0?!1:J;p.variantsExpanded||p.showOptions()||!J||(p.variantsExpanded=!0);if(p.variantsExpanded){J=_.K(p.items.children);for(var S=J.next();!S.done;S=J.next())S.value.hidden=!1}p.initialized=!0};
return p};
_.Q($x,_.T);_.R=$x.prototype;_.R.ready=function(){var p=this;setTimeout(function(){p.computeVariants(!0)})};
_.R.showOptions=function(){for(var p=_.K(this.items.children),J=p.next();!J.done;J=p.next())J.value.hidden=!0;var S=this.container.getBoundingClientRect().width,H=0,M=p=0;J=!1;for(var X=_.K(this.items.children),Z=X.next();!Z.done;Z=X.next()){Z=Z.value;Z.hidden=!1;var n=Z.getBoundingClientRect().width;if(H+n<S)H+=n;else if(++M<2)H=n;else break;p+=1;Z.hasAttribute("is-active")&&(J=!0)}for(S=p;S<this.items.children.length;S++)this.items.children[S].hidden=!0;this.hideShowMoreLessVariantButton=p===this.items.children.length;
return J};
_.R.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.zm(this.computeVariantsDebouncer,_.Kk.after(100),this.computeVariants)};
_.R.onShowMoreLessVariantsButtonClick=function(){var p;(p=this.data)!=null&&p.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.R.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.vh.Object.defineProperties($x.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var p,J,S=(p=this.data)==null?void 0:(J=p.variantOptionRenderers)==null?void 0:J.find(function(X){return _.e(X,x0D).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),H,M;
return(M=(H=_.e(S,x0D))==null?void 0:H.name)!=null?M:""}},
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"}}}});
$x.prototype.debouncedComputeVariants=$x.prototype.debouncedComputeVariants;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],$x.prototype,"componentBehavior",void 0);_.V([_.B(_.wL),_.Y("design:type",Object)],$x.prototype,"ironResizableBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],$x.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],$x.prototype,"variantsExpanded",void 0);_.V([_.N(),_.Y("design:type",Object)],$x.prototype,"hideShowMoreLessVariantButton",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],$x.prototype,"initialized",void 0);_.V([_.FM("#items"),_.Y("design:type",HTMLDivElement)],$x.prototype,"items",void 0);_.V([_.FM("#container"),_.Y("design:type",HTMLDivElement)],$x.prototype,"container",void 0);
_.V([_.FM("#more-variants-button"),_.Y("design:type",HTMLElement)],$x.prototype,"moreVariantsButton",void 0);_.V([_.U("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],$x.prototype,"selectedOptionName",null);_.V([_.bO("data","variantsExpanded"),_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$x.prototype,"debouncedComputeVariants",null);
_.V([_.U("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],$x.prototype,"displayType",null);_.V([_.U("displayType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$x.prototype,"variantItemsClassname",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],$x);
_.l($x,"ytd-product-details-variant-renderer",function(){if(gct!==void 0)return gct;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return gct=p},{mode:1});var oP=function(){return _.T.apply(this,arguments)||this};
_.Q(oP,_.T);
oP.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"}}}};
_.vh.Object.defineProperties(oP.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,J,S=(J=_.e((p=this.data)==null?void 0:p.offersContainerRenderer,cyG))==null?void 0:J.offers;return S!==void 0&&(S==null?void 0:S.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,J,S;return((S=(p=this.data)==null?void 0:(J=p.variants)==null?void 0:J.map(function(H){var M,X;H=(X=(M=_.e(H,wss))==null?void 0:M.variantOptionRenderers)==null?void 0:X.find(function(n){var b;return((b=_.e(n,x0D))==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var Z;return(Z=_.e(H,x0D))==null?void 0:Z.name}).filter(function(H){return typeof H==="string"}))!=null?S:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var p,J,S,H=(J=_.e((p=this.data)==null?void 0:p.shoppingFlaggingRenderer,L9v))==null?void 0:(S=J.reportButton)==null?void 0:S.buttonRenderer;if(H)return{text:H.text,command:H.command,icon:{iconType:"FLAG"},accessibilityData:H.accessibilityData,trackingParams:H.trackingParams,loggingDirectives:H.loggingDirectives}}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],oP.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],oP.prototype,"data",void 0);_.V([_.FM("#image-carousel-renderer"),_.Y("design:type",Object)],oP.prototype,"imageCarouselRenderer",void 0);
_.V([_.FM("#hero-offer-renderer"),_.Y("design:type",Object)],oP.prototype,"productDetailsHeroOfferRenderer",void 0);_.V([_.FM("#variants"),_.Y("design:type",Object)],oP.prototype,"productDetailsVariantRenderer",void 0);_.V([_.FM("#offers"),_.Y("design:type",Object)],oP.prototype,"productDetailsOffersContainerRenderer",void 0);_.V([_.FM("#description-renderer"),_.Y("design:type",Object)],oP.prototype,"productDetailsDescriptionRenderer",void 0);
_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oP.prototype,"showPurchaseData",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oP.prototype,"showHeroOfferRenderer",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oP.prototype,"showBrandText",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oP.prototype,"showOffers",null);
_.V([_.U("showOffers","showPurchaseData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oP.prototype,"showBuySeparator",null);_.V([_.U("showOffers","showPurchaseData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oP.prototype,"showBuyCard",null);_.V([_.U("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],oP.prototype,"selectedVariantsText",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oP.prototype,"shoppingReportingButtonData",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],oP);
_.l(oP,"ytd-product-details-renderer",function(){if(ULp!==void 0)return ULp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ULp=p},{mode:1});var tmT;var hwq;var DLu;var ez=function(){return _.T.apply(this,arguments)||this};
_.Q(ez,_.T);ez.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.vh.Object.defineProperties(ez.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ez.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ez.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],ez.prototype,"formattedAmount",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],ez.prototype,"ariaLabel",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("data.style"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ez.prototype,"vcBalanceWidgetStyle",null);_.V([_.sD({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],ez);
_.l(ez,"yt-vc-balance-renderer",function(){if(DLu===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;hwq===void 0&&(hwq=document.createElement("template"));var H=hwq;S.call(J,H.content.cloneNode(!0),p.content.firstChild);DLu=p}p=DLu;return p},{mode:2});_.QI("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var WA=function(){return _.T.apply(this,arguments)||this};
_.Q(WA,_.T);_.vh.Object.defineProperties(WA.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:""}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],WA.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],WA.prototype,"data",void 0);_.V([_.N({selectorArgs:["data.vcBalanceEntityKey"],selector:function(p,J){return _.RR(p.entities,"vcBalanceEntity",J)}}),
_.Y("design:type",Object)],WA.prototype,"vcBalanceEntity",void 0);_.V([_.U("vcBalanceEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],WA.prototype,"formattedAmount",null);_.V([_.U("vcBalanceEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],WA.prototype,"vcBalanceAriaLabel",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],WA);
_.l(WA,"ytd-vc-balance-renderer",function(){if(tmT!==void 0)return tmT;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return tmT=p},{mode:1});var kNd;var Ql=function(){var p=_.T.apply(this,arguments)||this;p.rotation=0;p.isReloading=!1;return p};
_.Q(Ql,_.T);Ql.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Ql.prototype.reset=function(){this.hostElement.style.opacity=""};
Ql.prototype.close=function(){var p=this;return _.G(function(J){if(J.nextAddress==1)return J.yield(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";_.UK(J)})};
Ql.prototype.rotationChanged=Ql.prototype.rotationChanged;_.V([_.N(),_.Y("design:type",Object)],Ql.prototype,"rotation",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Ql.prototype,"isReloading",void 0);_.V([_.FM("#icon"),_.Y("design:type",HTMLElement)],Ql.prototype,"icon",void 0);_.V([_.bO("rotation"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ql.prototype,"rotationChanged",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-refresh"})],Ql);
_.l(Ql,"ytd-refresh",function(){if(kNd!==void 0)return kNd;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return kNd=p},{mode:1});var Npd;var Ch=function(){var p=_.T.apply(this,arguments)||this;p.useRaf=!_.z("web_use_raf_app_header_layout_killswitch");return p};
_.Q(Ch,_.T);Ch.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"}}}};
Ch.prototype.dataChanged=function(){if(this.data){var p=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var J=_.I4(this.data.banner.thumbnails,this.hostElement.clientWidth);J&&(J.indexOf("//")===0&&(J="https:"+J),this.hasBannerArt=!0,_.K3(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+J+")"}))}this.hasBannerArt!==p&&_.Jn(this.hostElement).querySelector("#header").fire("iron-resize")}};
Ch.prototype.updateSelectedFromBinding=function(p){this.selected=p.detail.value};
Ch.prototype.dataChanged=Ch.prototype.dataChanged;_.V([_.B(SV4),_.Y("design:type",Object)],Ch.prototype,"ytdTabbedHeaderBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.G0),_.Y("design:type",Object)],Ch.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Ch.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Ch.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ch.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Number)],Ch.prototype,"selected",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Ch.prototype,"active",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ch.prototype,"hasBannerArt",void 0);_.V([_.N(),_.Y("design:type",Object)],Ch.prototype,"useRaf",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ch.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Ch);
_.l(Ch,"ytd-interactive-tabbed-header-renderer",function(){if(Npd!==void 0)return Npd;var p=document.createElement("template");_.C(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 use-raf="[[useRaf]]" 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(_.r().content.cloneNode(!0),
p.content.firstChild);return Npd=p},{mode:1});var Tpu;var yl=function(){return _.T.apply(this,arguments)||this};
_.Q(yl,_.T);yl.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
yl.prototype.computeActionsAlignment=function(p){return(p==null?void 0:p.actionsAlignment)||""};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],yl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yl.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.Y("design:type",String)],yl.prototype,"actionsAlignment",void 0);
_.V([_.gw({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],yl);
_.l(yl,"ytd-page-footer-renderer",function(){if(Tpu!==void 0)return Tpu;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Tpu=p},{mode:1});var dLs;var uSt;var BA=function(){var p=_.T.apply(this,arguments)||this;p.isEditing=!1;p.useSlot=!1;p.isMultiline=!1;return p};
_.Q(BA,_.T);_.R=BA.prototype;_.R.onKeydown=function(p){if(p.keyCode===13&&!this.isMultiline)this.onSave();else if(p.keyCode===27)this.onCancel()};
_.R.computeComponentStyle=function(p){return(p==null?0:p.style)?p.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.R.computeisMultiline=function(p){if(this.multilineOverride!==void 0)return this.multilineOverride;var J,S;return!!(p==null?0:(J=p.formField)==null?0:(S=J.textInputFormFieldRenderer)==null?0:S.isMultiline)};
_.R.computeTextDisplayed=function(p,J){if(p)return p;if(J)return J};
_.R.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.R.onSave=function(){if(this.textForm.validate()){this.textForm.save();var p=this.textForm.value;if(p)this.set("data.textDisplayed",_.aR(p));else{var J;((J=this.data)==null?0:J.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.P7("inline-form-changed",this.data));this.isEditing=!1}};
_.R.onCancel=function(){var p=_.E4(this.data.textDisplayed);p===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(p);this.isEditing=!1};
BA.prototype.onKeydown=BA.prototype.onKeydown;_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],BA.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],BA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],BA.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],BA.prototype,"isEditing",void 0);_.V([_.N(),_.Y("design:type",Object)],BA.prototype,"useSlot",void 0);_.V([_.N(),_.Y("design:type",Boolean)],BA.prototype,"multilineOverride",void 0);_.V([_.N(),_.Y("design:type",Boolean)],BA.prototype,"enableOverlayTheme",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.Y("design:type",String)],BA.prototype,"componentStyle",void 0);
_.V([_.N({computed:"computeisMultiline(data)"}),_.Y("design:type",Object)],BA.prototype,"isMultiline",void 0);_.V([_.FM("#text-form"),_.Y("design:type",Object)],BA.prototype,"textForm",void 0);_.V([_.GI("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],BA.prototype,"onKeydown",null);_.V([_.gw({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],BA);
_.l(BA,"ytd-inline-form-renderer",function(){if(uSt!==void 0)return uSt;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return uSt=p},{mode:1});var ldu;var Ub=function(){var p=_.T.apply(this,arguments)||this;p.previousSelectValue=void 0;p.selectedItemMessage=void 0;return p};
_.Q(Ub,_.T);Ub.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Ub.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var p,J,S,H,M=(p=this.data)==null?void 0:(J=p.dropdown)==null?void 0:(S=J.dropdownRenderer)==null?void 0:(H=S.entries)==null?void 0:H.map(function(n){return n.privacyDropdownItemRenderer});
p=_.K(M!=null?M:[]);for(J=p.next();!J.done;J=p.next())if((J=J.value)&&J.int32Value===this.selectedValue){this.selectedItemMessage=J.itemMessage;break}}else this.selectedItemMessage=void 0;var X;(X=this.onValueChanged)==null||X.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var Z;(Z=this.data)!=null&&Z.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Ub.prototype.onValueChangedForSelectedValue=function(p){this.selectedValue=p.detail.value};
Ub.prototype.selectedValueChanged=Ub.prototype.selectedValueChanged;_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],Ub.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Ub.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ub.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ub.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],Ub.prototype,"theme",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Number)],Ub.prototype,"selectedValue",void 0);_.V([_.N(),_.Y("design:type",Function)],Ub.prototype,"onValueChanged",void 0);
_.V([_.An("selectedValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ub.prototype,"selectedValueChanged",null);_.V([_.gw({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Ub);
_.l(Ub,"ytd-dropdown-form-field-renderer",function(){if(ldu!==void 0)return ldu;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ldu=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var Vmt;var sb=function(){return _.T.apply(this,arguments)||this};
_.Q(sb,_.T);_.vh.Object.defineProperties(sb.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var p=[],J=_.K(this.data||[]),S=J.next();!S.done;S=J.next())(S=_.e(S.value,p0u))&&p.push(S);return p}}});
_.V([_.N(),_.Y("design:type",Array)],sb.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sb.prototype,"byline",null);_.V([_.gw({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],sb);
_.l(sb,"ytd-playlist-byline-renderer",function(){if(Vmt!==void 0)return Vmt;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Vmt=p},{mode:1});var qVG;var gq=function(){var p=_.T.apply(this,arguments)||this;p.rtlBullet=_.z("web_playlist_stats_rtl_bullet_icon_killswitch");p.modern=_.z("web_modern_buttons");p.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return p};
_.Q(gq,_.T);_.R=gq.prototype;_.R.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"}}}}};
_.R.attached=function(){};
_.R.computeIsCustomThumbnail=function(p){return p?!!p.playlistCustomThumbnailRenderer:!1};
_.R.onYtNavigate=function(p,J){if(J&&J.actions&&J.actions.indexOf("shuffle")>-1){p=_.vO().resolve(_.FF);var S=J.tempData||{};S.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);J.tempData=S;p.isShuffleNextPlaylist=!0}};
_.R.onUpdatePlaylistAction=function(p){var J;p=(J=_.e(p,_.r3E))==null?void 0:J.updatedRenderer;if(J=_.e(p,ryD))this.data=J};
_.R.computeStyleType=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.R.computeThumbnailWidth=function(p){return p==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.R.computeHideThumbnailAria=function(p){if(p==null?0:p.thumbnailOverlays)for(var J=0;J<p.thumbnailOverlays.length;J++){var S=void 0;if((S=p.thumbnailOverlays[J])==null?0:S.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
gq.prototype.onYtNavigate=gq.prototype.onYtNavigate;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],gq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],gq.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],gq.prototype,"ytComponentBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],gq.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],gq.prototype,"rtlBullet",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.Y("design:type",String)],gq.prototype,"styleType",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],gq.prototype,"thumbnailWidth",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],gq.prototype,"modern",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.Y("design:type",Boolean)],gq.prototype,"isCustomThumbnail",void 0);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],gq.prototype,"onYtNavigate",null);_.V([_.gw({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],gq);
_.l(gq,"ytd-playlist-sidebar-primary-info-renderer",function(){if(qVG!==void 0)return qVG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return qVG=p},{mode:1});var ad4;var tf=function(){return _.T.apply(this,arguments)||this};
_.Q(tf,_.T);tf.prototype.computeOwnerVisibility=function(p){return!(!p.videoOwner&&!p.button)};
tf.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],tf.prototype,"data",void 0);_.V([_.gw({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],tf);
_.l(tf,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(ad4!==void 0)return ad4;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return ad4=p},{mode:1});var EcT;var hf=function(){var p=_.T.apply(this,arguments)||this;p.expanded=!1;p.isCompact=!1;return p};
_.Q(hf,_.T);_.R=hf.prototype;_.R.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.R.dataChanged=function(){this.data&&_.K_(_.Jn(this.text),_.Jy4(_.M6L,_.E4(this.data.text||null)))};
_.R.computeAutoScrollEnabled=function(p,J){return p&&!J};
_.R.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.R.toggleOnTap=function(){this.expanded=!this.expanded};
hf.prototype.expandedChanged=hf.prototype.expandedChanged;hf.prototype.dataChanged=hf.prototype.dataChanged;_.V([_.B(_.ulD),_.Y("design:type",Object)],hf.prototype,"ytdAutoScrollBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],hf.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],hf.prototype,"expanded",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],hf.prototype,"isCompact",void 0);_.V([_.N({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.Y("design:type",Boolean)],hf.prototype,"autoScrollEnabled",void 0);_.V([_.FM("#text"),_.Y("design:type",Object)],hf.prototype,"text",void 0);_.V([_.FM("#expander-icon"),_.Y("design:type",Object)],hf.prototype,"expanderIcon",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hf.prototype,"dataChanged",null);_.V([_.bO("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hf.prototype,"expandedChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],hf);
_.l(hf,"ytd-channel-legal-info-renderer",function(){if(EcT!==void 0)return EcT;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return EcT=p},{mode:1});var YV7;var rTd=_.Kl("DOWNLOAD",{},"Download"),j7d=_.Kl("DOWNLOADING",{},"Downloading"),w0u=_.Kl("DOWNLOADED",{},"Downloaded"),Df=function(){var p=_.T.apply(this,arguments)||this;p.downloadProgress=0;p.isDownloadComplete=!1;p.transferState="TRANSFER_STATE_UNKNOWN";return p};
_.Q(Df,_.T);_.R=Df.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.dataChanged=function(){var p;(p=this.data)!=null&&p.tooltip||(p=_.tk(_.rl().getState(),this.playlistId),this.updateButtonState(p))};
_.R.computePlaylistId=function(p){return p};
_.R.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.R.updateButtonState=function(p){if(this.data&&(this.data.tooltip!==j7d||!_.f$(p))){this.isDownloadComplete=!1;switch(p){case "TRANSFER_STATE_UNKNOWN":p=rTd;var J="OFFLINE_DOWNLOAD";var S="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":p=w0u;J="OFFLINE_PIN";S="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":p=j7d;J="OFFLINE_DOWNLOADING_ZERO";S="ACTION_REMOVE_WITH_PROMPT";
break;default:p=rTd,J="OFFLINE_DOWNLOAD",S="ACTION_ADD"}var H=Object.assign({},this.data);H.tooltip=p;H.accessibilityData={accessibilityData:{label:p}};H.icon={iconType:J};H.size="SIZE_DEFAULT";_.e(H.command,_.FJ)&&(_.e(H.command,_.FJ).action=S);this.set("data",H)}};
_.R.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 J;p!==((J=this.data.icon)==null?void 0:J.iconType)&&(J=Object.assign({},this.data),J.tooltip=j7d,J.accessibilityData={accessibilityData:{label:j7d}},J.icon={iconType:p},_.e(J.command,_.FJ)&&(_.e(J.command,_.FJ).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",J))}};
Df.prototype.updateProgress=Df.prototype.updateProgress;Df.prototype.onTransferStateChanged=Df.prototype.onTransferStateChanged;Df.prototype.dataChanged=Df.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Df.prototype,"ytdReduxBehavior",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Df.prototype,"forceIconButton",void 0);
_.V([_.N({value:!0}),_.Y("design:type",Boolean)],Df.prototype,"forceIconOnly",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Df.prototype,"overrides",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Df.prototype,"buttonTooltipPosition",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Df.prototype,"styleActionButton",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Df.prototype,"disableTextTransform",void 0);
_.V([_.N({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.Y("design:type",String)],Df.prototype,"playlistId",void 0);_.V([_.N(),_.Y("design:type",Object)],Df.prototype,"data",void 0);_.V([_.N({selector:_.l0X,selectorArgs:["playlistId"]}),_.Y("design:type",Object)],Df.prototype,"downloadProgress",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Df.prototype,"isDownloadComplete",void 0);
_.V([_.N({selector:_.tk,selectorArgs:["playlistId"]}),_.Y("design:type",String)],Df.prototype,"transferState",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],Df.prototype,"showTooltips",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],Df.prototype,"sendCommandWhenDisabled",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Df.prototype,"disabled",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Df.prototype,"dataChanged",null);_.V([_.An("transferState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Df.prototype,"onTransferStateChanged",null);_.V([_.An("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Df.prototype,"updateProgress",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Df);
_.l(Df,"ytd-download-playlist-button-renderer",function(){if(YV7!==void 0)return YV7;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return YV7=p},{mode:1});var xLt;_.ci(_.B58,"thumbnail-overlay-button-view-model",{props:{data:_.fD,lockupExperiments:_.fD}});var kx=function(){var p=_.T.apply(this,arguments)||this;p.isSquare=!1;p.isVertical=!1;return p};
_.Q(kx,_.T);kx.prototype.computeIsSquare=function(p){return p!=null&&p.thumbnail?yyv(p.thumbnail)==="SQUARE":!1};
kx.prototype.computeIsVertical=function(p){return p!=null&&p.thumbnail?yyv(p.thumbnail)==="VERTICAL":!1};
kx.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.Y("design:type",Object)],kx.prototype,"isSquare",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.Y("design:type",Object)],kx.prototype,"isVertical",void 0);
_.V([_.N(),_.Y("design:type",Object)],kx.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],kx);
_.l(kx,"ytd-hero-playlist-thumbnail-renderer",function(){if(xLt!==void 0)return xLt;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return xLt=p},{mode:1});var Nd=function(){var p=_.T.apply(this,arguments)||this;p.isDarkTheme=!1;p.isUltraWide=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return p};
_.Q(Nd,_.T);_.R=Nd.prototype;_.R.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.vO();var p;(p=_.vO().resolve(_.F9(_.HU)))!=null&&(p.headerElement=this.hostElement)};
_.R.detached=function(){var p;(p=_.vO().resolve(_.F9(_.HU)))!=null&&(p.headerElement=void 0)};
_.R.onUpdateHeader=function(p){(p=p.detail)&&this.set("data",p)};
_.R.computeTextDisplayed=function(p){if(p)return p.textDisplayed?p.textDisplayed:p.placeholder};
_.R.gradientColorToLinearGradientStop=function(p){var J=this.isDarkTheme?p.darkThemeColor:p.lightThemeColor;return J?_.Bt(J)+" "+((p==null?void 0:p.startLocation)||0)*100+"%":"transparent"};
_.R.onWindowResize=function(){var p;((p=this.data)==null?0:p.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.R.onIronResize=function(p){this.isUltraWide=!p.detail.value};
_.R.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.R.onUpdatePlaylistName=function(p){var J=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},p.detail.value));_.mN(this,function(){var S;(S=J.editableTitle)==null||S.resize()})};
_.R.onUpdatePlaylistDescription=function(p){var J=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},p.detail.value));_.mN(this,function(){var S;(S=J.editableDescriptionInlineExpander)==null||S.resize()})};
_.R.getCinematicData=function(p){return _.e(p==null?void 0:p.cinematicContainer,_.Lx)};
_.vh.Object.defineProperties(Nd.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,J=(p=this.getCinematicData(this.data))==null?void 0:p.config;return(p=this.isDarkTheme?J==null?void 0:J.darkThemeBackgroundColor:J==null?void 0:J.lightThemeBackgroundColor)?"background-color:"+_.yi(p)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var p;return _.e((p=this.data)==null?void 0:p.descriptionForm,Y97)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var p=this,J,S,H;return"background:linear-gradient(to bottom, "+(((H=(J=this.getCinematicData(this.data))==null?void 0:(S=J.gradientColorConfig)==null?void 0:S.map(function(M){return p.gradientColorToLinearGradientStop(M)}))==null?void 0:H.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var p;return _.E4((p=this.data)==null?void 0:p.descriptionTapText)}}});
Nd.prototype.onUpdateHeader=Nd.prototype.onUpdateHeader;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Nd.prototype,"actionHandlerBehavior",void 0);_.V([_.FM("#description-inline-expander"),_.Y("design:type",Object)],Nd.prototype,"descriptionInlineExpander",void 0);
_.V([_.FM("#editable-description-inline-expander"),_.Y("design:type",Object)],Nd.prototype,"editableDescriptionInlineExpander",void 0);_.V([_.N(),_.Y("design:type",Object)],Nd.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Nd.prototype,"isUltraWide",void 0);_.V([_.FM("#editable-title-display"),_.Y("design:type",Object)],Nd.prototype,"editableTitle",void 0);_.V([_.U("isUltraWide"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nd.prototype,"maxDescriptionLines",null);
_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nd.prototype,"noCinematicData",null);_.V([_.GI("yt-new-playlist-header"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Nd.prototype,"onUpdateHeader",null);_.V([_.U("data","isDarkTheme"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nd.prototype,"backgroundStyle",null);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nd.prototype,"descriptionFormData",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nd.prototype,"getDropdownTheme",null);_.V([_.U("data","isDarkTheme"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Nd.prototype,"gradientStyle",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nd.prototype,"descriptionTapText",null);
_.V([_.gw({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Nd);
_.l(Nd,"ytd-playlist-header-renderer",function(){if(dLs!==void 0)return dLs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return dLs=p},{mode:_.Jz("kevlar_poly_si_batch_j078")?1:2});var cTp;var Idp;var Tc=function(){return _.T.apply(this,arguments)||this};
_.Q(Tc,_.T);Tc.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Tc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Tc.prototype,"data",void 0);_.V([_.gw({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Tc);
_.l(Tc,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Idp!==void 0)return Idp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Idp=p},{mode:1});var dq=function(){return _.T.apply(this,arguments)||this};
_.Q(dq,_.T);
dq.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}}}}};
dq.prototype.computeUsePremiumShowStyle=function(p){if(!p||!p.items)return!1;for(var J=0;J<p.items.length;J++)if(_.e(p.items[J],ryD)){var S=void 0;return((S=_.e(p.items[J],ryD))==null?void 0:S.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],dq.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.Y("design:type",Boolean)],dq.prototype,"usePremiumShowStyle",void 0);
_.V([_.gw({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],dq);
_.l(dq,"ytd-playlist-sidebar-renderer",function(){if(cTp!==void 0)return cTp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return cTp=p},{mode:1});var LHy;var pWT;var JZy=function(p,J,S,H,M,X,Z,n){this.minWidth=p;this.minHeight=J;this.recommendedWidth=S;this.recommendedHeight=H;this.JSC$22764_maxFileSize=M;this.title=X;this.bannerGalleryTitle=Z;this.channelId=n;this.picker_=null;p=_.iFt("yt-banner");J=p.addView;S=(new k6q("youtubebanner")).addUploadMetadata("silo_id","19");S.opts.ytMaxFileSize=this.JSC$22764_maxFileSize;H=this.recommendedHeight;S.opts.ytRecWidth=this.recommendedWidth;S.opts.ytRecHeight=H;J.call(p,S);p.addView(new _.k0);J=p.addView;S=new _.k0;
S.opts.type="ytbanner";J.call(p,S.JSC$10229_setLabel(this.bannerGalleryTitle));J=p.setTitle(this.title).setSize(1E3);J.urlParamMap_.set("thumbs","orig");S=this.minWidth;H=this.minHeight;if(isNaN(S)||isNaN(H))throw Error("gb`"+S+"`"+H);J.urlParamMap_.set("minSize",S+"x"+H);J.urlParamMap_.set("cropMode","ytcb");this.builder_=p};
JZy.prototype.open=function(){var p=this;return new _.UI(function(J,S){_.lyU(p.builder_,function(H){H.action=="picked"?J(H):H.action=="cancel"&&S(Error("So"))});
p.picker_&&p.picker_.dispose();p.picker_=p.builder_.build();p.picker_.setVisible(!0)})};
JZy.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var SG4=function(p){this.channelId=p};
SG4.prototype.upload=function(p){var J="";p.viewToken&&(J=p.viewToken[2].type);var S=p.docs[0];p=S.crop;J={channel_id:this.channelId,fife_url:S.thumbnails[0].url,photo_id:S.id,is_gallery_image:J=="ytbanner"};p&&(J.crop_top=p.top,J.crop_right=p.right,J.crop_bottom=p.bottom,J.crop_left=p.left);return _.bvX("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:J})};var ui=function(){var p=_.T.apply(this,arguments)||this;p.ariaLabel=null;return p};
_.Q(ui,_.T);_.R=ui.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.detached=function(){this.picker&&this.picker.dispose()};
_.R.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.R.computeAriaLabel=function(p){return p};
_.R.onTap=function(){var p=this,J;if((J=this.data)==null||!J.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new JZy(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 S;(S=this.picker)==null||S.open().then(function(H){p.handleBannerPicked(H)},function(){})}};
_.R.handleBannerPicked=function(p){var J=this;this.uploader||(this.uploader=new SG4(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(p).then(function(S){J.handleBannerUploadSucceeded(S)},function(S){J.handleBannerUploadFailed(S)})};
_.R.handleBannerUploadSucceeded=function(p){p&&p.errors?this.handleBannerUploadFailed(p):(_.cf(this.hostElement,"yt-banner-updated",p),this.message=null)};
_.R.handleBannerUploadFailed=function(p){this.message=p&&p.errors&&p.errors.length?p.errors[0]:null};
ui.prototype.dataChanged=ui.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],ui.prototype,"componentBehavior",void 0);_.V([_.B(_.cy),_.Y("design:type",Object)],ui.prototype,"ironButtonState",void 0);_.V([_.N(),_.Y("design:type",Object)],ui.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.Y("design:type",Object)],ui.prototype,"ariaLabel",void 0);
_.V([_.N(),_.Y("design:type",Object)],ui.prototype,"message",void 0);_.V([_.N(),_.Y("design:type",Object)],ui.prototype,"picker",void 0);_.V([_.N(),_.Y("design:type",Object)],ui.prototype,"uploader",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ui.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],ui);
_.l(ui,"ytd-channel-banner-editor-renderer",function(){if(pWT!==void 0)return pWT;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return pWT=p},{mode:1});var HUs;var MQq=_.YI(["#"]),li=function(){return _.T.apply(this,arguments)||this};
_.Q(li,_.T);li.prototype.computeHrefWithDefault=function(p){return this.ytComponentBehavior.computeHref_(p,!0)||_.KC3(MQq)};
li.prototype.dataChanged=function(){var p=this.data;p&&p.targetId&&_.qZ(_.aQ(),p.targetId,this.moreIcon)};
li.prototype.dataChanged=li.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],li.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],li.prototype,"data",void 0);_.V([_.FM("#more-icon"),_.Y("design:type",Object)],li.prototype,"moreIcon",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],li.prototype,"dataChanged",null);
_.V([_.gw({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],li);
_.l(li,"ytd-channel-tagline-renderer",function(){if(HUs!==void 0)return HUs;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return HUs=p},{mode:1});var XWd;var Vl=function(){return _.T.apply(this,arguments)||this};
_.Q(Vl,_.T);_.R=Vl.prototype;_.R.ready=function(){var p=this;_.Jn(this.hostElement).querySelector("#form").addEventListener("submit",function(J){p.onSubmit(J)})};
_.R.onDataChanged=function(){var p;((p=this.data)==null?0:p.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.R.onIconButtonKeydown=function(p){p.keyCode===13&&this.iconButton.click()};
_.R.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.R.openOnClickHandler=function(){this.input.focus()};
_.R.onSubmit=function(p){p.preventDefault();return!1};
_.R.submitOnEnterKeyUp=function(p){var J;if(p.keyCode===13&&((J=this.data)==null?0:J.expandedText)){p=this.data.endpoint;J=_.T6.unsafeClone(p);var S;((S=_.e(J==null?void 0:J.commandMetadata,_.i7))==null?0:S.url)?(_.e(J.commandMetadata,_.i7).url=_.pE(_.e(J.commandMetadata,_.i7).url,"query",this.data.expandedText),_.e(J,_.Ge)&&(_.e(J,_.Ge).query=this.data.expandedText),_.cf(this.hostElement,"yt-navigate",{endpoint:J,tempData:{disableCache:!0}})):(S=new _.TG("Error: Trying to navigate to an endpoint without url",
p),_.jD(S))}};
_.R.updateDataExpandedTextFromBinding=function(p){this.set("data.expandedText",p.detail.value)};
_.vh.Object.defineProperties(Vl.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.z("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Vl.prototype.onDataChanged=Vl.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.i3p),_.Y("design:type",Object)],Vl.prototype,"ytdExpandableInputBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Vl.prototype,"data",void 0);_.V([_.FM("#input"),_.Y("design:type",Object)],Vl.prototype,"input",void 0);_.V([_.FM("#icon-button"),_.Y("design:type",HTMLElement)],Vl.prototype,"iconButton",void 0);
_.V([_.N(),_.Y("design:type",String),_.Y("design:paramtypes",[])],Vl.prototype,"searchIcon",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vl.prototype,"onDataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Vl);
var B2d=_.pI()(Vl,"ytd-expandable-tab-renderer",function(){if(XWd===void 0){var p=document.createElement("template");_.C(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="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);XWd=p}p=XWd;return p},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var iUt;var qd=function(){var p=_.T.apply(this,arguments)||this;p.avatarSize=80;p.ariaLabel=_.Kl("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return p};
_.Q(qd,_.T);qd.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
qd.prototype.computeHref=function(p){var J;return((J=_.e(p,_.My))==null?0:J.url)?this.componentBehavior.computeHref_(p):null};
qd.prototype.onTap=function(){var p,J;(p=this.data)==null||!p.editAvatarServiceEndpoint||((J=_.e(this.data.editAvatarServiceEndpoint,_.My))==null?0:J.url)||_.vO().resolve(_.Ov).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.V([_.B(_.cy),_.Y("design:type",Object)],qd.prototype,"ironButtonState",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],qd.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qd.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],qd.prototype,"avatarSize",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],qd.prototype,"ariaLabel",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],qd);
_.l(qd,"ytd-channel-avatar-editor",function(){if(iUt!==void 0)return iUt;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return iUt=p},{mode:1});var RWy=_.d(function(p){var J=p.data;var S=p.noPadding;var H=p.enableBanner;var M=p.cinematicContainerTopbarOffset;var X=p.allowCinematicContainerOverflow;var Z=p.displayAsSidebar;p=p.className;_.lf(function(){J().tagManagerId&&(_.xw(J().tagManagerId,_.jn("GL")),D0y(J().tagManagerId))},"vUc8md");
var n=_.v$(srp,function(){return J().pageHeaderEntityKey});
return _.m("yt-page-header-renderer",{class:_.XB("pageHeaderRendererHost",p)},_.m(_.AH,{data:function(){var b;return((b=n())==null?0:b.header)?n().header:(Z==null?0:Z())&&J().sidebarContent?J().sidebarContent:J().content}},{pageHeaderViewModel:function(b){return _.m(_.GWf,{data:b.data,
noPadding:S,enableBanner:H,cinematicContainerTopbarOffset:M,allowCinematicContainerOverflow:X,displayAsSidebar:function(){return(Z==null?void 0:Z())&&J().enableSidebarView}})}}))},"sn");
RWy.idomCompat=!0;_.ci(RWy,"yt-page-header-renderer",{props:{data:_.fD,noPadding:_.fD,enableBanner:_.fD,cinematicContainerTopbarOffset:_.fD,allowCinematicContainerOverflow:_.fD,displayAsSidebar:_.fD,className:_.fD}});_.ci(_.zR,"yt-image-banner-view-model",{props:{data:_.fD,isPositionRelative:_.fD}});_.ci(_.svy,"yt-tab-group-shape",{props:{shape:_.fD}});var Kru=_.uT.persistentPanelVisibleSelector,aP=function(){var p=_.T.apply(this,arguments)||this;p.expandableCustomTabRenderable=function(J){return U0G(J,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.useRaf=!_.z("web_use_raf_app_header_layout_killswitch");p.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return p};
_.Q(aP,_.T);_.R=aP.prototype;_.R.computeHeaderDisabled=function(p,J){return J||!p||this.tabsHidden};
_.R.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.R.computeIsRichGridShorts=function(p){return p==="RICH_GRID_STYLE_SHORTS_GRID"||p==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.R.computeImageBannerViewModel=function(){var p,J;return _.e((J=_.e((p=this.data)==null?void 0:p.content,_.WG8))==null?void 0:J.banner,_.Oad)};
_.R.computeHasCinematicContainer=function(){var p,J;return!((J=_.e((p=this.data)==null?void 0:p.content,_.WG8))==null||!J.background)};
_.R.handleHeaderResize=function(){var p=_.Jn(this.hostElement).querySelector("#header");p&&_.cf(p,"iron-resize")};
_.R.handleInsertTabCommand=function(p){var J=_.e(p,JTv);J&&(J.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(S){return S.tabRenderer&&S.tabRenderer.tabIdentifier===J.tabIdentifier})||this.splice("tabs",J.tabIndex||-1,0,J.tab))};
_.R.handleRefreshChannelTabAction=function(p){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===p&&_.cf(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.R.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.R.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.K3(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.R.observerRichGridSlimItemsPerRow=function(){_.K3(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.R.updateCssVars=function(){this.richGridItemsPerRow&&_.K3(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.PO("rich_grid_max_item_width",500))+16)-16+"px"})};
_.R.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.K3(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.R.onDataChanged=function(){this.handleHeaderResize()};
_.R.onWindowResize=function(){this.handleHeaderResize()};
_.R.onFocusedChanged=function(p){(p=_.Yt(p))&&p.is==="tp-yt-paper-tab"&&p.hasRipple()&&(p.getRipple().holdDown=!p.pointerDown&&p.focused)};
_.R.updateSelectedFromBinding=function(p){this.ytdTabbedHeaderBehavior.selected=p.detail.value};
_.R.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.vh.Object.defineProperties(aP.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:t6D(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"}}});
aP.prototype.onDataChanged=aP.prototype.onDataChanged;aP.prototype.updateCssVarsForResponsiveGrid=aP.prototype.updateCssVarsForResponsiveGrid;aP.prototype.updateCssVars=aP.prototype.updateCssVars;aP.prototype.observerRichGridSlimItemsPerRow=aP.prototype.observerRichGridSlimItemsPerRow;aP.prototype.observerRichGridItemsPerRow=aP.prototype.observerRichGridItemsPerRow;aP.prototype.persistentPanelVisibleChanged=aP.prototype.persistentPanelVisibleChanged;
_.V([_.B(_.G0),_.Y("design:type",Object)],aP.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(SV4),_.Y("design:type",Object)],aP.prototype,"ytdTabbedHeaderBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],aP.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],aP.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],aP.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],aP.prototype,"ytdReduxBehavior",void 0);_.V([_.FM("#tabs"),_.Y("design:type",Object)],aP.prototype,"tabsElement",void 0);_.V([_.N(),_.Y("design:type",Array)],aP.prototype,"tabs",void 0);_.V([_.N(),_.Y("design:type",Object)],aP.prototype,"expandableCustomTabRenderable",void 0);
_.V([_.U("tabs.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aP.prototype,"tabGroupShape",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],aP.prototype,"isRichGrid",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],aP.prototype,"isConstrainedList",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Object)],aP.prototype,"richGridMiniMode",void 0);_.V([_.N({selector:function(p){return p.ui.richGridStyle}}),
_.Y("design:type",Object)],aP.prototype,"richGridStyle",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.Y("design:type",Object)],aP.prototype,"isRichGridShorts",void 0);_.V([_.N({selector:_.yc}),_.Y("design:type",Number)],aP.prototype,"richGridItemsPerRow",void 0);_.V([_.N({selector:function(p){return p.ui.richGridContainerWidth}}),
_.Y("design:type",Number)],aP.prototype,"richGridContainerWidth",void 0);_.V([_.N({selector:_.C1g}),_.Y("design:type",Number)],aP.prototype,"richGridSlimItemsPerRow",void 0);_.V([_.N(),_.Y("design:type",Object)],aP.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],aP.prototype,"responsiveSizing",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],aP.prototype,"disableGridStateAware",void 0);
_.V([_.N({computed:"computeImageBannerViewModel(data)"}),_.Y("design:type",Object)],aP.prototype,"imageBannerViewModel",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.Y("design:type",Boolean)],aP.prototype,"hasCinematicContainer",void 0);_.V([_.N({selector:_.Ete,reflectToAttribute:!0}),_.Y("design:type",Boolean)],aP.prototype,"guideIsVisibleButNotPersistent",void 0);
_.V([_.N({selector:Kru}),_.Y("design:type",Boolean)],aP.prototype,"persistentPanelVisible",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("imageBannerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aP.prototype,"hasBanner",null);_.V([_.N({reflectToAttribute:!0}),_.U("imageBannerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aP.prototype,"hasInsetBanner",null);_.V([_.N(),_.Y("design:type",Object)],aP.prototype,"useRaf",void 0);
_.V([_.N({computed:"computeTabsHidden(tabs)",value:!0}),_.Y("design:type",Boolean)],aP.prototype,"tabsHidden",void 0);_.V([_.bO("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aP.prototype,"persistentPanelVisibleChanged",null);_.V([_.bO("richGridItemsPerRow","isRichGrid"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aP.prototype,"observerRichGridItemsPerRow",null);
_.V([_.bO("richGridSlimItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aP.prototype,"observerRichGridSlimItemsPerRow",null);_.V([_.bO("richGridItemsPerRow","richGridMiniMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aP.prototype,"updateCssVars",null);
_.V([_.bO("richGridContainerWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aP.prototype,"updateCssVarsForResponsiveGrid",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aP.prototype,"onDataChanged",null);_.V([_.gw({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],aP);
_.l(aP,"ytd-tabbed-page-header",function(){if(LHy!==void 0)return LHy;var p=document.createElement("template");_.C(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 use-raf="[[useRaf]]" 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(_.r().content.cloneNode(!0),
p.content.firstChild);return LHy=p},{mode:1});var ZUy;var Eb=function(){return _.T.apply(this,arguments)||this};
_.Q(Eb,_.T);Eb.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.K3(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.vh.Object.defineProperties(Eb.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var p,J;return this.componentBehavior.computeIcon_(((J=_.e((p=this.data)==null?void 0:p.badge,_.U3d))==null?void 0:J.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var p,J;return(J=_.e((p=this.data)==null?void 0:p.badge,_.U3d))==null?void 0:J.label}}});
Eb.prototype.observerRichGridItemsPerRow=Eb.prototype.observerRichGridItemsPerRow;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Eb.prototype,"componentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Eb.prototype,"ytdReduxBehavior",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.C$}),_.Y("design:type",Boolean)],Eb.prototype,"richGridMiniMode",void 0);
_.V([_.N({selector:_.yc}),_.Y("design:type",Number)],Eb.prototype,"richGridItemsPerRow",void 0);_.V([_.N(),_.Y("design:type",Object)],Eb.prototype,"data",void 0);_.V([_.bO("richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eb.prototype,"observerRichGridItemsPerRow",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Eb.prototype,"badgeIconName",null);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Eb.prototype,"badgeLabel",null);_.V([_.gw({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Eb);
_.l(Eb,"ytd-member-hub-profile-renderer",function(){if(ZUy!==void 0)return ZUy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ZUy=p},{mode:1});var nTq;var Yx=function(){return _.T.apply(this,arguments)||this};
_.Q(Yx,_.T);Yx.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Yx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Yx.prototype,"data",void 0);_.V([_.gw({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Yx);
_.l(Yx,"ytd-settings-sidebar-renderer",function(){if(nTq!==void 0)return nTq;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return nTq=p},{mode:1});var GA7;var rq=function(){var p=_.T.apply(this,arguments)||this;p.expandableCustomTabRenderable=function(J){return U0G(J,function(){return void p.onSearchNavigate()})};
return p};
_.Q(rq,_.T);rq.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
rq.prototype.onSearchNavigate=function(){this.selected=void 0};
rq.prototype.onTabsChange=function(){var p,J=(p=this.tabs)==null?void 0:p.findIndex(function(S){var H;return S==null?void 0:(H=S.tabRenderer)==null?void 0:H.selected});
J!==void 0&&(this.selected=J)};
rq.prototype.onTabsActive=function(p){if(this.tabs!==void 0){var J,S;(p=(J=this.tabs[p.detail.selected])==null?void 0:(S=J.tabRenderer)==null?void 0:S.endpoint)&&_.cf(this.hostElement,"yt-navigate",{endpoint:p})}};
_.vh.Object.defineProperties(rq.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:t6D(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
rq.prototype.onTabsChange=rq.prototype.onTabsChange;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],rq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.G0),_.Y("design:type",Object)],rq.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],rq.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],rq.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Array)],rq.prototype,"tabs",void 0);_.V([_.N(),_.Y("design:type",Number)],rq.prototype,"selected",void 0);_.V([_.U("tabs.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rq.prototype,"tabGroupShape",null);_.V([_.N(),_.Y("design:type",Object)],rq.prototype,"expandableCustomTabRenderable",void 0);
_.V([_.U("tabs"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rq.prototype,"tabsEnabled",null);_.V([_.An("tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rq.prototype,"onTabsChange",null);_.V([_.gw({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],rq);
_.l(rq,"ytd-topic-channel-details-renderer",function(){if(GA7!==void 0)return GA7;var p=document.createElement("template");_.C(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        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return GA7=p},{mode:1});var bUa;var jz=function(){var p=_.T.apply(this,arguments)||this;p.disableGridStateAware=!1;return p};
_.Q(jz,_.T);jz.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]]"}}}}}};
jz.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
jz.prototype.updateCssVars=function(){_.K3(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.PO("rich_grid_max_item_width",500))+16)-16+"px"})};
jz.prototype.updateCssVars=jz.prototype.updateCssVars;jz.prototype.activeChanged=jz.prototype.activeChanged;_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],jz.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],jz.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],jz.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Array)],jz.prototype,"tabs",void 0);_.V([_.N(),_.Y("design:type",Boolean)],jz.prototype,"active",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],jz.prototype,"disableGridStateAware",void 0);
_.V([_.N({selector:_.yc}),_.Y("design:type",Number)],jz.prototype,"richGridItemsPerRow",void 0);_.V([_.N({selector:_.C$}),_.Y("design:type",Boolean)],jz.prototype,"richGridMiniMode",void 0);_.V([_.FM("ytd-carousel-item-renderer"),_.Y("design:type",Object)],jz.prototype,"carousel",void 0);_.V([_.bO("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jz.prototype,"activeChanged",null);
_.V([_.bO("richGridItemsPerRow","richGridMiniMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jz.prototype,"updateCssVars",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],jz);
_.l(jz,"ytd-carousel-header-renderer",function(){if(bUa!==void 0)return bUa;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return bUa=p},{mode:1});var msG;var FrT=_.YI(["https://www.google-analytics.com/analytics.js"]),wq=function(){var p=_.T.apply(this,arguments)||this;p.scriptAnalyticsAdded=!1;return p};
_.Q(wq,_.T);wq.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var p,J=(p=this.data)==null?void 0:p.tagManagerId;J&&(_.xw(J,_.jn("GL")),D0y(J))};
wq.prototype.sendGoogleAnalyticsPageview=function(p){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var S=_.Yp.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(S)};
var J=window.ga;J("set","page",window.location.pathname);J.l=+new Date;J("set","forceSSL",!0);J("create",p,"'auto'");J("send","pageview")};
wq.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var p=_.Q0("SCRIPT");p.name="ga-analytics";var J=_.fA(FrT);_.RI(p,J);p.async=!0;_.Jn(this.hostElement).appendChild(p)};
wq.prototype.dataChanged=wq.prototype.dataChanged;_.V([_.N(),_.Y("design:type",Object)],wq.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wq.prototype,"dataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],wq);
_.l(wq,"ytd-channel-metadata-renderer",function(){if(msG!==void 0)return msG;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return msG=p},{mode:1});var vTG;var fDq;var xx=function(){var p=_.T.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};
_.Q(xx,_.T);_.R=xx.prototype;_.R.attached=function(){this.requestElementsPerRow()};
_.R.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_]]"}}}}}};
_.R.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p)};
_.R.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.R.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.R.computeAlertStyle_=function(p){return p};
_.R.observerElementsPerRow=function(){this.elementsPerRow&&_.K3(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.R.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.R.requestElementsPerRow=function(){_.cf(this.hostElement,"yt-request-elements-per-row")};
xx.prototype.onIsVisibleChanged_=xx.prototype.onIsVisibleChanged_;xx.prototype.observerElementsPerRow=xx.prototype.observerElementsPerRow;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],xx.prototype,"actionHandlerBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],xx.prototype,"data",void 0);_.V([_.N({value:6,reflectToAttribute:!0}),_.Y("design:type",Number)],xx.prototype,"elementsPerRow",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],xx.prototype,"wrapButtons",void 0);_.V([_.N({value:_.jn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Y("design:type",Boolean)],xx.prototype,"isMusic",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.Y("design:type",String)],xx.prototype,"alertStyle",void 0);_.V([_.N({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.Y("design:type",Function)],xx.prototype,"dismissBoundButtonTap_",void 0);_.V([_.N({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.Y("design:type",Function)],xx.prototype,"acceptBoundButtonTap_",void 0);_.V([_.bO("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xx.prototype,"observerElementsPerRow",null);_.V([_.bO("data.isVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xx.prototype,"onIsVisibleChanged_",null);_.V([_.sD({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],xx);
_.l(xx,"yt-alert-with-actions-renderer",function(){if(fDq===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;vTG===void 0&&(vTG=document.createElement("template"));var H=vTG;S.call(J,H.content.cloneNode(!0),p.content.firstChild);fDq=p}p=fDq;return p},{mode:2});var OUs=_.d(function(p){var J={};return _.m(_.v3,{text:p.text,className:_.XB("ytPersonalGreetingViewModelHeadline",(J.ytPersonalGreetingViewModelHeadlineSmall=p.isSmallHeadline,J))})},"un");_.ci(_.d(function(p){var J=_.sl(function(){var A;return(A=p.data())==null?void 0:A.rendererContext},void 0,void 0,void 0,!0),S=function(){return p.data().canvasPromoData},H=function(){var A;
return(A=p.data().bannerHeight)!=null?A:56},M=_.K(_.AX({throttleMs:100})),X=M.next().value;
M=M.next().value;var Z=_.K(_.AX({throttleMs:100})),n=Z.next().value;Z=Z.next().value;var b=_.K(_.AX({throttleMs:100})),F=b.next().value;b=b.next().value;var f=function(){return n.width()-X.width()>1},O=function(){return H()===48};
return _.m("yt-personal-greeting-view-model",{el:_.Y2(J,M),"aria-hidden":f,class:_.XB(p.className,"ytPersonalGreetingViewModelHost"),style:_.G7({height:(0,_.GR)(function(){return f()?0:H()})})},_.m(_.v,{cond:function(){return p.data().avatar&&!(F.width()+(p.data().avatar?48:0)-X.width()>1)},
then:function(){return _.m(_.AH,{data:function(){return p.data().avatar}},{decoratedAvatarViewModel:function(A){return _.m(_.RH,{data:A.data,
className:_.XB("ytPersonalGreetingViewModelAvatar")})}})}}),_.m("h1",null,_.m(OUs,{text:function(){var A;
return(S==null?void 0:(A=S())==null?void 0:A.headline)||(F.width()+(p.data().avatar?48:0)-X.width()>1?p.data().shorterGreeting:p.data().greeting)},
isSmallHeadline:O})),_.m("span",{el:_.Y2(b),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.m(OUs,{text:function(){return p.data().greeting},
isSmallHeadline:O})),_.m("span",{el:_.Y2(Z),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.m(OUs,{text:function(){return p.data().shorterGreeting},
isSmallHeadline:O})))},"tn"),"yt-personal-greeting-view-model",{props:{data:_.fD,
className:_.fD}});var cA=function(){var p=_.T.apply(this,arguments)||this;p.hidden=!1;p.isConstrainedList=!1;p.responsiveSizing="COMPACT";p.attachedPlayers=_.z("kevlar_channel_trailer_multi_attach")?[]:void 0;p.player=null;p.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return p};
_.Q(cA,_.T);_.R=cA.prototype;
_.R.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.R.created=function(){var p=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){p.disposeMastheadAd()}]};
_.R.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new X0t(this.refresh,this.contents))};
_.R.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.R.activeChanged=function(){var p=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=p)};
_.R.tabsChanged=function(){var p=this,J,S;if(this.pageSubtype==="channels"||_.z("kevlar_tab_gestures_for_tabbed_header_data")&&((J=this.data)==null?0:(S=J.header)==null?0:S.carouselHeaderRenderer))this.tabGestures=new KH7(this.contents,this.contents,this.hostElement,this.header,function(Z){p.ytdReduxBehavior.dispatch(Z)});
var H,M,X;J=(H=this.data)==null?void 0:(M=H.contents)==null?void 0:(X=M.twoColumnBrowseResultsRenderer)==null?void 0:X.tabs;this.tabGestures&&this.tabGestures.tabsChanged(J)};
_.R.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.R.engagementPanelsChanged=function(){var p=_.vO().resolve(_.JY);if(p){if(this.engagementPanels)for(var J=_.K(this.engagementPanels),S=J.next();!S.done;S=J.next()){var H=void 0;(S=(H=S.value.identifier)==null?void 0:H.tag)&&p.panelMap.delete(S)}this.engagementPanels=[];var M;J=_.K(((M=this.data)==null?void 0:M.panels)||[]);for(M=J.next();!M.done;M=J.next()){M=_.e(M.value,_.t07);var X=S=void 0,Z=void 0,n=void 0;if(H=((S=M)==null?void 0:S.targetId)||((X=M)==null?void 0:X.panelIdentifier)||((Z=M)==
null?void 0:(n=Z.identifier)==null?void 0:n.tag))X=S=void 0,(X=(S=p).registerPanelContent)==null||X.call(S,H,{engagementPanelSectionListRenderer:M}),this.engagementPanels.push(M)}}};
_.R.onStampFinished=function(){var p=this;_.mN(this,function(){if(p.tabGestures){var J=p.tabGestures;if(J.scrollPositionNeedsUpdate){var S=_.vO().resolve(_.F9(_.xz)),H;if((H=J.selectedTab)!=null&&H.title&&S&&(H=S.getCurrentPage())){if(J.scrollPositionForTabs.has(J.selectedTab.title)){var M,X;S=(X=(M=S.getCurrentPage())==null?void 0:M.clientHeight)!=null?X:0;M=J.scrollPositionForTabs.get(J.selectedTab.title);H.setScrollTop(M);S>M+100&&(J.scrollPositionNeedsUpdate=!1)}else H.setScrollTop(Math.min(J.lastVisitedTabScrollPosition!==
void 0?J.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,J.tabsStartAtInPx)),J.scrollPositionNeedsUpdate=!1;J.ytdReduxDispatch(hm7(!1))}}}})};
_.R.loadPage_=function(p){this.initCsi();p&&(this.data=p);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.R.getTitle=function(p){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",p))return this.get("microformat.microformatDataRenderer.title",p);if(this.get("header.feedTabbedHeaderRenderer.title",p))return _.E4(this.get("header.feedTabbedHeaderRenderer.title",p));if(this.get("header.interactiveTabbedHeaderRenderer.title",p))return this.get("header.interactiveTabbedHeaderRenderer.title",p);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
p))return _.E4(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",p));var J,S;return(p==null?0:(J=p.header)==null?0:(S=J.pageHeaderRenderer)==null?0:S.pageTitle)?p.header.pageHeaderRenderer.pageTitle:""};
_.R.updateTitle=function(p){_.cf(this.hostElement,"yt-update-title",this.getTitle(p))};
_.R.initCsi=function(){_.Qrs(this.pageSubtype||"browse",["ol","cpt"])};
_.R.getPlayer=function(){if(_.z("kevlar_channel_trailer_multi_attach")){for(var p=_.K(this.attachedPlayers),J=p.next();!J.done;J=p.next())if(J=J.value,J.isConnected||_.wp(this.hostElement,J))return J;return null}return this.player};
_.R.getPlayerContainer=function(){return null};
_.R.onPlayerAttached=function(p,J){_.z("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(J):this.player=J};
_.R.onPlayerDetached=function(p,J){_.z("kevlar_channel_trailer_multi_attach")?(p=this.attachedPlayers.indexOf(J),p<0||this.attachedPlayers.splice(p,1)):this.player=null};
_.R.getServiceTrackingParams=function(){var p,J;return((p=this.data)==null?void 0:(J=p.responseContext)==null?void 0:J.serviceTrackingParams)||[]};
_.R.setMastheadAd=function(p){p&&p.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=p&&p.mastheadAd};
_.R.dataChanged=function(){var p=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.fZu();_.mN(this,function(){_.L1(p.hostElement,"ytd-update-grid-state-action")})};
_.R.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.R.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var p=this.data.alerts;return p&&p.find(function(J){return!!J.alertWithActionsRenderer})}};
_.R.computeGreetingData=function(){if(this.data&&this.data.alerts){var p=this.data.alerts;return p&&p.find(function(J){return!!J.personalGreetingViewModel})}};
_.R.computeHasMemberHubProfileRenderer=function(p){var J;return!!(p==null?0:(J=p.header)==null?0:J.memberHubProfileRenderer)};
_.R.handleAlertCommand=function(p){this.get("alertCommand.alert.alertWithActionsRenderer",p)&&(p=_.e(p,aZv),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",p.alert))};
_.R.handleYtPlaylistDeletionRedirect=function(p){p=this.get("playlistDeletionRedirectCommand.redirectEndpoint",p);_.cf(this.hostElement,"yt-navigate",{endpoint:p})};
_.R.computeFluidWidth=function(p,J,S){if(J==="mini_app"||S)return!0;var H,M,X;p=p==null?void 0:(H=p.contents)==null?void 0:(M=H.twoColumnBrowseResultsRenderer)==null?void 0:(X=M.tabs)==null?void 0:X.find(function(b){var F;return b==null?void 0:(F=b.tabRenderer)==null?void 0:F.selected});
if(!p)return!1;var Z,n;return!!((Z=p.tabRenderer)==null?0:(n=Z.content)==null?0:n.richGridRenderer)&&!["channel","channels","playables"].includes(J)};
_.R.computeHeaderFluidWidth=function(p){return p==="hashtag-landing-page"};
_.R.computeHasSidebar=function(p){var J;return!!(p.sidebar||((J=p.header)==null?0:J.playlistHeaderRenderer))};
_.R.computeHasPageHeaderSidebar=function(p){var J,S;return!!((J=p.header)==null?0:(S=J.pageHeaderRenderer)==null?0:S.enableSidebarView)};
_.R.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 J=0;J<p.items.length;J++)if(_.e(p.items[J],ryD)){var S=void 0;return((S=_.e(p.items[J],ryD))==null?void 0:S.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.R.computeIsConstrainedList=function(p){return _.z("web_enable_constrained_list_subscriptions_channels")&&p==="subscriptions-channels"};
_.R.computeResponsiveSizing=function(p){return p==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.vh.Object.defineProperties(cA.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var p,J;return((p=this.data)==null?0:(J=p.header)==null?0:J.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var p,J;if(!((p=this.data)==null?0:(J=p.sidebar)==null?0:J.playlistSidebarRenderer))return!1;var S;return(S=this.data)!=null&&S.header?!1:!0}}});
_.vh.Object.defineProperties(cA,{template:{configurable:!0,enumerable:!0,get:function(){if(ZCq===void 0){var p=document.createElement("template");_.C(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]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);ZCq=p}p=ZCq;return p}}});
cA.prototype.dataChanged=cA.prototype.dataChanged;cA.prototype.onPlayerDetached=cA.prototype.onPlayerDetached;cA.prototype.onPlayerAttached=cA.prototype.onPlayerAttached;cA.prototype.onStampFinished=cA.prototype.onStampFinished;cA.prototype.engagementPanelsChanged=cA.prototype.engagementPanelsChanged;cA.prototype.scrollAtTopChanged=cA.prototype.scrollAtTopChanged;cA.prototype.tabsChanged=cA.prototype.tabsChanged;cA.prototype.activeChanged=cA.prototype.activeChanged;
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],cA.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],cA.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],cA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],cA.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Sz.YtPageBehavior),_.Y("design:type",Object)],cA.prototype,"ytPageBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],cA.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],cA.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],cA.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],cA.prototype,"hidden",void 0);
_.V([_.N(),_.Y("design:type",Object)],cA.prototype,"mastheadAdData",void 0);_.V([_.N({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.Y("design:type",Object)],cA.prototype,"alertBannerData",void 0);_.V([_.N({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.Y("design:type",Object)],cA.prototype,"greetingData",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],cA.prototype,"pageSubtype",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.Y("design:type",Boolean)],cA.prototype,"hasMemberHubProfileRenderer",void 0);_.V([_.N({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],cA.prototype,"hasSidebar",void 0);_.V([_.N({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],cA.prototype,"hasPageHeaderSidebar",void 0);
_.V([_.N({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],cA.prototype,"roundedContainer",void 0);_.V([_.N({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],cA.prototype,"useUnifiedShowPageLayout",void 0);_.V([_.N({computed:"computeIsConstrainedList(pageSubtype)"}),_.Y("design:type",Object)],cA.prototype,"isConstrainedList",void 0);
_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],cA.prototype,"usePlaylistHeaderRenderer",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],cA.prototype,"useOldPlaylistSidebarRenderer",null);_.V([_.N({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.Y("design:type",Boolean)],cA.prototype,"fluidWidth",void 0);_.V([_.N({selector:function(p){return p.ui.scrollAtTop}}),
_.Y("design:type",Boolean)],cA.prototype,"scrollAtTop",void 0);_.V([_.N({selector:_.YrM}),_.Y("design:type",Boolean)],cA.prototype,"tabGesturesIsActive",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.Y("design:type",Boolean)],cA.prototype,"disableHeaderFluidWidth",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.Y("design:type",String)],cA.prototype,"responsiveSizing",void 0);
_.V([_.FM("ytd-two-column-browse-results-renderer"),_.Y("design:type",HTMLElement)],cA.prototype,"contents",void 0);_.V([_.FM("#header"),_.Y("design:type",HTMLElement)],cA.prototype,"header",void 0);_.V([_.FM("ytd-refresh"),_.Y("design:type",Object)],cA.prototype,"refresh",void 0);_.V([_.bO("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cA.prototype,"activeChanged",null);
_.V([_.bO("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cA.prototype,"tabsChanged",null);_.V([_.bO("scrollAtTop"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cA.prototype,"scrollAtTopChanged",null);_.V([_.N(),_.Y("design:type",Object)],cA.prototype,"engagementPanels",void 0);
_.V([_.bO("data.panels"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cA.prototype,"engagementPanelsChanged",null);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cA.prototype,"onStampFinished",null);_.V([_.GI("yt-player-attached"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Element]),_.Y("design:returntype")],cA.prototype,"onPlayerAttached",null);
_.V([_.GI("yt-player-detached"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Element]),_.Y("design:returntype")],cA.prototype,"onPlayerDetached",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cA.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-browse"})],cA);_.Ke.registerService(_.b6g,cA);
_.V0();
}catch(e){_._DumpException(e)}
try{
_.lW("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 zl,n2N,G$e,bII,mnP,F5r,v2w,fm$,OIe,AzI,PCy,zZe,$nf,o2e,W5l,Q4M,yzf,BeI,UnP,g2e,trw,hZM,DnU,o0,Ney,Tef,dnI,uj$,lmI,VrI,qaI,rzN,wiy,YaI,eZP,xne,cz$,Imj,L5I,pvj,Jm$,SSP,XvU,ibI,ZbP,nzf,bbp,FMN,vz$,fuy,AmP,zGp,$rU,ozU,eG$,WMp,QYU,Cnj,ymj,Bny,UrN,sYI,gzU,Drp,k7M,Nnr,Tnj,drU,uBr,lul,VKM,auI,Ezr,YSf,rmU,jYl,wvP,xrP,cmf,Iuw,LMN,p$I,JHM,SlU,HGP,MHp,X$y,iGe,RKN,KVe,ZGp,nmP,GyP,bGw,m6N,QL,FVI,vmr,zKf,U6w,hKM,D6$,uJM,VH$,d6M,NTP,w$f,Ipw,Msw,kyI,pYp,x6N,lpy,iYp,ZYw,bYM,n8y,GsI,mBf,OYe,v8p,AX$,P6I,fPU,FKw,
zlM,UW,C6I,yXU,B_w,sW,UBf,st$,g8I,T_w,dBP,tb,hb,lPw,umP,Vsw,qXI,aPr,E8f,DT,LKI,kj,pue,J7j,S0N,NA,K2I,MNj,R1p,ZTI,Xue,GJj,iT$,F2p,bTN,mkP,vIf,OTf,fFj,$kf,Q$y,l3,VL,e1w,y7r,W2N,CbP,qA,EW,Yj,rc,xkP,uie,L2U,p_M,JFp,SwP,MJj,Dkp,kJj,xj,TsP,jC,wc,dkP,Huf,c7M,Nsf,I0,fjP,AFp,P9I,OuM,bue,$UU,WsI,nCN,Ksf,ZuP,yFp,GFw,Ji,ekP,mUN,oCy,vCI,Rkp,FsP,UUf,shp,gCr,hky,kFN,N4P,T4y,dUM,ljP,uz$,qwP,ajU,Ywj,rFP,w_U,xUe,cFp,Ijr,LsP,pjp,Jdf,HXy,SjI,M_N,R6$,Kkr,ZXP,M2,nrw,G5P,bXP,mRM,Fke,vrI,fvr,OXy,AdI,P_r,z6N,orM,e6j,WkP,
Q1N,B7f,s1M,grw,h6$,t_P,DRp,k5p,N7I,dRe,uhP,lvN,V_y,qjP,avp,Err,Yjp,rdM,j1r,wjU,Lkw,pzP,cd$,IvP,xRI,Jel,MEN,Sne,HnM,R_U,XzP,inN,KEP,Znj,nf$,GiU,mve,FEp,vfP,AeP,PVN,$vl,e_N,QqU,yer,Uvy,gfp,h_$,kiN,dvj,loe,VEy,qnr,EfN,aoI,reI,jqp,wzM,xvI,i2,cef,Iof,LEM,GqU,m7w,Fbf,AJr,Ze,Plf,zSy,$7j,eSe,o0r,WbU,QEN,Cll,yJI,B$$,fpr,U7I,sEp,CVp,g0P,tbp,mre,hSl,D7j,kqU,N$N,T$f,d7$;
zl=function(p){if(!p)return"browse";var J=p.page,S=p.url,H,M,X,Z=(H=p.response)==null?void 0:(M=H.responseContext)==null?void 0:(X=M.webResponseContextExtensionData)==null?void 0:X.pageTheme;if(Z)J=Z.toLowerCase().replace(/_/g,"-");else if(J!=="watch"&&J!=="learning_journey_watch"){var n,b;if((J==="browse"||J==="settings")&&((n=p.response)==null?0:(b=n.sidebar)==null?0:b.settingsSidebarRenderer))J="WEB_PAGE_TYPE_SETTINGS";else{var F,f;J==="browse"&&((F=p.response)==null?0:(f=F.metadata)==null?0:f.channelMetadataRenderer)?
J="channel":S&&(J=_.p2X(S)||J)}}return J};
n2N=function(){return new Promise(function(p){var J=window;J.attmp!==void 0?p(J.attmp):(J.attmq===void 0&&(J.attmq=[]),J.attmq.push(function(S){p(S)}))})};
G$e=function(){var p=_.Id("yt.aba.att");return p?p:_.EU.instance!==void 0?_.EU.instance.yZ3.bind(_.EU.instance):null};
bII=function(p,J){var S,H;return _.G(function(M){return M.nextAddress==1?_.z("attmusi")&&_.z("attmusi_ue")?M.yield(n2N(),3):M.jumpTo(2):M.nextAddress!=2?(S=M.yieldResult,M.return(S.s(p,J,6E4))):(H=G$e())?M.return(H(p,J,6E4)):M.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
mnP=function(p,J,S,H,M){J=J===void 0?[]:J;M=M?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:M}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.I5(p),dialogMessages:J.map(function(X){return _.I5(X)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.I5(S),serviceEndpoint:M}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.I5(H)}}}}}};
F5r=function(p,J,S){S=S===void 0?!1:S;var H=_.YE(),M=!!_.PR().queueProxy,X,Z,n;p=p==null?void 0:(X=p.response)==null?void 0:(Z=X.currentVideoEndpoint)==null?void 0:(n=Z.watchEndpoint)==null?void 0:n.playlistId;if((M||p)&&!_.z("web_watch_disable_playlist_auto_miniplayer"))return S&&(H.playlistWatchPageActivation=!0),!0;switch(zl(J)){case "yts-products":return S&&(H.productDetailsPageActivation=!0),!0;case "mini_app":return S&&(H.miniAppPageActivation=!0),!0;case "playables":return S&&(H.playablesDestPageActivation=
!0),!0;case "companion-canvas":return S&&(H.companionCanvasActivation=!0),!0;default:return!1}};
v2w=function(p){p=_.R4W(p);p.length>0&&p[0].focus()};
fm$=function(p,J,S){for(var H=typeof p==="string"?p.split(""):p,M=p.length-1;M>=0;--M)M in H&&J.call(S,H[M],M,p)};
OIe=function(p,J){J=_.Bki(p,J);J>=0&&_.gsi(p,J)};
AzI=function(p){return Array.prototype.concat.apply([],arguments)};
PCy=function(p){var J=0;J=J===void 0?0:J;if(!_.Jr(p))throw _.Iv("uint64");var S=typeof p;switch(J){case 512:switch(S){case "string":return _.gUk(p);case "bigint":return String((0,_.vp)(64,p));default:return _.U4w(p)}case 1024:switch(S){case "string":return _.tLw(p);case "bigint":return _.N4((0,_.vp)(64,p));default:return _.s8k(p)}case 0:switch(S){case "string":return _.gUk(p);case "bigint":return _.N4((0,_.vp)(64,p));default:return _.BmX(p)}default:return _.rm(J,"Unknown format requested type for int64")}};
zZe=function(p,J,S){if(J)return _.fP(p);var H;return(H=_.$y(p))!=null?H:S?"":void 0};
$nf=function(p){p!=null&&(p=p.JSC$8975_value_||"",p=typeof p==="string"?p:new Uint8Array(p));return p};
o2e=function(p,J){if(/-[a-z]/.test(J))return null;if(_.OCM&&p.dataset){if(_.Pww()&&!(J in p.dataset))return null;p=p.dataset[J];return p===void 0?null:p}return p.getAttribute("data-"+_.K1(J))};
W5l=function(){var p=eZP;_.Id("yt.ads.biscotti.getId_")||_.m$("yt.ads.biscotti.getId_",p)};
Q4M=function(p){_.m$("yt.ads.biscotti.lastId_",p)};
yzf=function(){var p={};for(_.ay=new CCU(p.handleError===void 0?_.wf:p.handleError,p.logEvent===void 0?_.YQ:p.logEvent);_.Ev.length>0;)switch(p=_.Ev.shift(),p.type){case "ERROR":_.ay.logError(p.payload);break;case "EVENT":_.ay.logEvent(p.eventType,p.payload)}};
BeI=function(p,J,S){return _.nZX(function(H){return S?H.userIdentifier!==void 0&&!p.includes(H.userIdentifier)&&S.includes(H.publicName):H.userIdentifier!==void 0&&!p.includes(H.userIdentifier)},J)};
UnP=function(p){var J,S;return _.G(function(H){if(H.nextAddress==1)return J=_.ka("YtIdbMeta hasAnyMeta other"),H.yield(_.nZX(function(M){return M.userIdentifier!==void 0&&M.userIdentifier!==J},p),2);
S=H.yieldResult;return H.return(S.length>0)})};
g2e=function(p,J){s4P||(s4P=_.wg.addLowPriorityJob(function(){var S,H,M,X,Z;return _.G(function(n){switch(n.nextAddress){case 1:return n.yield(_.F$(),2);case 2:S=n.yieldResult;if(!S)return n.return();H=!0;_.oI(n,3);return n.yield(BeI(p,S,J),5);case 5:M=n.yieldResult;if(!M.length){H=!1;n.jumpTo(6);break}X=M[0];return n.yield(_.i4(X.actualName),7);case 7:return n.yield(_.Zk(X.actualName,S),6);case 6:_.X$(n,4);break;case 3:Z=_.BZ(n),_.Ya(Z),H=!1;case 4:_.wg.cancelJob(s4P),s4P=0,H&&g2e(p,J),_.UK(n)}})}))};
trw=function(){var p;return _.G(function(J){return J.nextAddress==1?J.yield(_.F$(),2):(p=J.yieldResult)?J.return(UnP(p)):J.return(!1)})};
hZM=function(p){var J=100;J=J===void 0?500:J;var S,H,M,X,Z,n;return _.G(function(b){return b.nextAddress==1?(S=_.jn("INNERTUBE_CONTEXT_CLIENT_NAME",0),H=[S,(0,_.fO)()-2592E6],M=[S,(0,_.fO)()],X=IDBKeyRange.bound(H,M),b.yield(_.NwX(p),2)):b.nextAddress!=3?(Z=b.yieldResult,n=[],b.yield(_.KO(Z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(F){n.length=0;return _.O3(F.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:X,direction:"prev"},function(f){if(f.getValue()&&n.length<
J)return n.push(f.getValue()),f.delete().then(function(){return f.continue()})})}),3)):b.return(n)})};
DnU=function(){var p;return _.G(function(J){if(J.nextAddress==1)return J.yield(_.F$(),2);p=J.yieldResult;if(!p||!_.NV()&&!_.z("nwl_init_require_datasync_id_killswitch")||!_.Sa4())return J.jumpTo(0);_.MrW=!0;_.HIi.isNwlInitialized=_.MrW;return J.yield(_.Nln().awaitInitialization(),0)})};
o0=function(p,J){_.$nW[p]=!0;var S=_.PL();S&&S.publish.apply(S,arguments);_.$nW[p]=!1};
Ney=function(){if(_.Ic9()&&!k$f){var p=function(S){S=S.data;if(S.op==="serializedGelBatch"){var H=_.oz4.get(S.key);H&&(_.WMg(S.serializedBatch,H.client,H.resolve,H.networklessOptions,H.isIsolated,H.useVSSEndpoint,H.dangerousLogToVisitorSession,H.requestsOutstanding),_.oz4.delete(S.key))}},J=_.ccg();
J&&(J.addEventListener("message",p),J.onerror=function(){_.oz4.clear()});
k$f=!0}};
Tef=function(){this.relativeTimeStart_=_.JF()};
dnI=function(p,J){p!=null&&this.append.apply(this,arguments)};
uj$=function(){return _.gG("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
lmI=function(p,J,S){S=S===void 0?!1:S;var H,M,X,Z,n;return _.G(function(b){switch(b.nextAddress){case 1:_.hl("SOCS",p,34128E3,"youtube.com",!0);if(_.nu)return M=fetch(J,{method:"POST",mode:_.TX(J),credentials:_.N9(J),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),X=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.TX("/upgrade_visitor_cookie?eom=1"),credentials:_.N9("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),b.yield(Promise.all([M,X]).then(function(F){return F[1]}),5);
fetch(J,{method:"POST",mode:_.TX(J),credentials:_.N9(J),cache:"no-store",headers:{"Content-Type":"text/plain"}});return b.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.TX("/upgrade_visitor_cookie?eom=1"),credentials:_.N9("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:H=b.yieldResult;b.jumpTo(3);break;case 5:H=Z=b.yieldResult;case 3:if(!H.ok)throw Error("uf");return b.yield(H.text(),7);case 7:n=b.yieldResult,
!n.includes('"state_switch":true')&&!S||n.includes("skip_reload_for_test")||window.location.reload(),_.UK(b)}})};
VrI=function(p){return _.G(function(J){return J.nextAddress==1?J.yield(lmI(p.socsCookie,p.savePreferenceUrl,!0),2):J.return()})};
qaI=function(p){return _.G(function(J){return J.nextAddress==1?J.yield(lmI(p.socsCookie,p.savePreferenceUrl),2):J.return()})};
rzN=function(p){p=p.xhr.responseText;if(!_.XX(p,")]}'"))throw new amM;p=JSON.parse(p.substr(4));if((p.type||1)>1)throw new amM;p=p.id;Q4M(p);E2I=_.$E(p);YaI(18E5,2);return p};
wiy=function(p,J){J=new j4p(J);Q4M("");E2I=_.VZ8(J);p>0&&YaI(12E4,p-1);throw J;};
YaI=function(p,J){_.WO(function(){_.Wye().then(rzN,function(S){return wiy(J,S)}).thenCatch(_.y4)},p)};
eZP=function(){var p=_.ynM();if(p!==void 0)return _.o4(p);E2I||(E2I=_.Wye().then(rzN).thenCatch(function(J){return wiy(2,J)}));
return E2I};
xne=function(){var p=document;return _.t9(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(J){return"on"+J.toLowerCase()in p})};
cz$=function(p){p.addEventListener("click",function(J){var S=J.target;S&&S.getAttribute("href")&&(S=S.getAttribute("href"),_.Ju(window,S,"_blank"),J.preventDefault(),J.stopImmediatePropagation())})};
Imj=function(p){var J,S,H,M=(H=(S=((J=p.mainDownloadsListEntity)!=null?J:{})[_.ALv])==null?void 0:S.refresh)!=null?H:"",X;p=(X=p.refresh)==null?void 0:X[M];M=p!=null?p:{};return(M==null?0:M.refreshTime)?Number(M==null?void 0:M.refreshTime):0};
L5I=function(p,J){var S=_.$Z(p);return J.every(function(H){var M;H=H==null?void 0:(M=H.playbackDataEntity)==null?void 0:M.key;if(!H)return!1;M=_.io(_.Hq(H).entityId,"mainVideoEntity");return!!S[M]})};
pvj=function(p){p=_.Ak(p.entities);return _.tgX(p).length};
Jm$=function(p,J){if(J){var S;p=(S=_.RR(p.entities,"downloadQualityPickerEntity",J))!=null?S:void 0}else p=void 0;return p};
SSP=function(p){var J=document.getElementsByTagName("ytd-enforcement-message-view-model");J.length===0||getComputedStyle(J[0]).display==="none"?p(0,"p.h_"):p(1,"p.h_")};
XvU=function(){HbI=0;var p=[_.FV(!0)];MKe&&_.L1(MKe,"yt-window-resized",p)};
ibI=function(){HbI||(HbI=_.wg.addLowPriorityJob(XvU,200))};
ZbP=function(){RGI=0;KMN=_.AyE(document);var p=[KMN];MKe&&_.L1(MKe,"yt-window-scrolled",p)};
nzf=function(){RGI||(RGI=_.wg.addLowPriorityJob(ZbP,200))};
bbp=function(p){p=p===void 0?null:p;G7I.push(_.vL(window,"resize",ibI));G7I.push(_.vL(window,"scroll",nzf));p&&(MKe=p)};
FMN=function(){var p=_.Pt.getLocalStorage();p&&mre(p,p.mechanism.__iterator__(!0))};
vz$=function(p){_.G(function(J){if(J.nextAddress==1)return J.yield(p.delete("yt-appshell-assets"),2);_.UK(J)})};
fuy=function(p){return _.R6((0,_.YYm)(),p)};
AmP=function(){var p;_.G(function(J){return J.nextAddress==1?J.yield(eC.getInstance(),2):(p=J.yieldResult)?J.yield(Obl(p),0):J.jumpTo(0)})};
zGp=function(){var p;_.G(function(J){return J.nextAddress==1?J.yield(Wb.getInstance(),2):(p=J.yieldResult)?J.yield(Pnl(p),0):J.jumpTo(0)})};
$rU=function(p){vz$(p);AmP();zGp()};
ozU=function(p){var J,S;return _.G(function(H){if(H.nextAddress==1)return H.yield(_.oAL(p),2);if(J=H.yieldResult){var M;a:{if(J.headers&&(M=J.headers.get("date"))&&(M=Date.parse(M),!isNaN(M))){M=Math.round((0,_.fO)()-M);break a}M=-1}S=M;if(S>-1)return H.return(S)}return H.return(-1)})};
eG$=function(){var p=_.Hg.caches,J=_.wY("IS_SHELL_LOAD"),S,H;_.G(function(M){if(M.nextAddress==1)return S=-1,J?M.yield(ozU(p),3):(H=_.OJ(),S=Math.round((0,_.fO)()-H),M.jumpTo(2));M.nextAddress!=2&&(S=M.yieldResult);S>=0&&S<2147483648&&_.o5({appInstallDataAgeMs:S});_.UK(M)})};
WMp=function(p){var J=_.I7(_.Hg.location.href),S={};"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(H){var M=J.JSC$10187_queryData_.getValues(H);if(M==null?0:M.length)S[H]=M});
return _.O9(p,new Map(Object.entries(S)))};
QYU=function(p){p=p.match(/(.*)::.*::.*/);if(p!==null)return p[1]};
Cnj=function(p){if(_.l2X()){var J=Object.keys(window.localStorage);J=_.K(J);for(var S=J.next();!S.done;S=J.next()){S=S.value;var H=QYU(S);H===void 0||p.includes(H)||self.localStorage.removeItem(S)}}};
ymj=function(){if(!_.l2X())return!1;var p=_.ka(),J=Object.keys(window.localStorage);J=_.K(J);for(var S=J.next();!S.done;S=J.next())if(S=QYU(S.value),S!==void 0&&S!==p)return!0;return!1};
Bny=function(p){return _.sfy("NotificationsDisabled",p)};
UrN=function(){return Notification.permission!="granted"?Promise.resolve():_.rcy().then(function(p){return p?p.pushManager.getSubscription().then(function(J){if(J)return Promise.resolve();J={userVisibleOnly:!0,applicationServerKey:_.cg("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return p.pushManager.subscribe(J).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
sYI=function(p){return _.rcy().then(function(J){if(!J||!J.active)return Promise.reject(new _.TG("serviceworker.postMessage",p,J));try{return J.active.postMessage(p),Promise.resolve()}catch(S){return Promise.reject(S)}})};
gzU=function(){sYI({type:"notifications_register",data:_.jn("ID_TOKEN")})};
Drp=function(){var p={isWide:_.tl.get("wide","0")==="1"},J=_.Gv();if(J=J.getFlag(165)||J.getFlag(174))p.theme=_.kt(!0);if(_.XCi()){var S=_.Dc()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";p.systemTheme=S}!J&&_.z("parent_tools_enable_app_settings")&&_.ih(window.location.href).theme!==void 0&&(p.theme=_.kt());if((J=tKU)?!_.T6.equals(J,p):p)J={currentValue:p},hGN&&(J.timeSinceLastSnapshotSecs=Math.round(((0,_.fO)()-hGN)/1E3)),tKU&&(J.previousValue=tKU),_.YQ("appSettingsCaptured",J),tKU=
p,hGN=(0,_.fO)()};
k7M=function(){if(!_.wY("LOGGED_IN"))return Promise.resolve(!1);var p=_.zG("service_worker_push_force_notification_prompt_tag");return p?_.Mx("PromptTags").then(function(J){if(!J)return!0;var S=[];try{S=JSON.parse(J)}catch(H){return!1}return S&&S.indexOf(p)==-1}):Promise.resolve(!1)};
Nnr=function(){var p=_.PO("service_worker_push_prompt_delay_microseconds");return p?_.Mx("PromptTime").then(function(J){return Promise.resolve(Date.now()-p>(J||0))}):Promise.resolve(!0)};
Tnj=function(){var p=_.PO("service_worker_push_logged_out_prompt_watches");return p==-1?Promise.resolve(!1):_.Mx("WatchCount").then(function(J){return J>=p})};
drU=function(){var p=_.pG(document,"yt-push-prompt-modal-bg");p&&_.CC(p)};
uBr=function(){return _.PO("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Mx("PromptCount").then(function(p){p||(p=0);return Promise.resolve(p<_.PO("service_worker_push_prompt_cap"))})};
lul=function(p){return _.wY("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.wY("LOGGED_IN")&&(p===void 0?0:p)?k7M().then(function(J){if(J)return!0;J=[uBr(),Nnr()];_.wY("LOGGED_IN")||J.push(Tnj());return Promise.all(J).then(function(S){return S.every(function(H){return H})})}):Promise.resolve(!1)};
VKM=function(){_.Mx("PromptCount").then(function(p){return _.sfy("PromptCount",p+1)}).then(function(){return _.sfy("PromptTime",Date.now())}).then(function(){var p=_.zG("service_worker_push_force_notification_prompt_tag");
if(p)return _.Mx("PromptTags").then(function(J){var S=[];if(J)try{S=JSON.parse(J)}catch(H){return!1}S||(S=[]);S.push(p);return _.sfy("PromptTags",JSON.stringify(S))})})};
auI=function(){qSN||drU()};
Ezr=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"};
YSf=function(){var p=_.pG(document,"yt-push-prompt-modal-bg");qSN=_.z("service_worker_push_prompt_modal_ignore_click");p?Ezr(p):(p=_.kr("div",{id:"yt-push-prompt-modal-bg"}),Ezr(p),document.body.appendChild(p),_.fmw(document,"click",auI))};
rmU=function(){var p=arguments;_.z("service_worker_push_prompt_modal_enable")&&YSf();return Notification.requestPermission().then(function(J){drU();var S=document.getElementById("ticker");S&&(S.className=S.classList.remove("show"));if(J=="granted")return UrN().then(function(){Bny(!1);gzU();return Promise.resolve(!0)});
J=="denied"&&gzU();return Promise.resolve(!1)}).catch(function(){drU();
return Promise.reject.apply(Promise,_.dW(p))})};
jYl=function(p){p=p===void 0?!1:p;var J=_.nWs().client;if(J&&J.browserVersion){var S=J.browserVersion,H=J.browserName=="CHROME"&&_.FX(S,"50.0.0")<0;J=J.browserName=="OPERA"&&_.FX(S,"42.0.0")<0;if(H||J)return Promise.resolve()}return _.xcf().then(function(M){if(!M)return Promise.resolve();M=UrN().then(function(){return sYI({type:"notifications_check_registration",data:_.jn("ID_TOKEN")})});
return Notification.permission!="default"?M.catch(function(){}):M.then(function(){return lul(p)}).then(function(X){if(X)return VKM(),rmU().then(function(){})}).catch(function(){})})};
wvP=function(p){return _.jsp(p)?jYl():Promise.resolve()};
xrP=function(p){var J=p.installing||p.waiting;return p.active||!J?Promise.resolve(p):new Promise(function(S){var H=function(M){M=M.target;if(M.state==="activated"||M.state==="redundant")J.removeEventListener("statechange",H),S(p)};
J.addEventListener("statechange",H)})};
cmf=function(){var p=new _.Wtk("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.ZF(p,{mainAppWeb:_.ly()});var J=_.bRp;_.z("service_worker_forward_exp_params")&&(J=WMp(J));try{var S=_.mH3(J).catch(function(){_.nT(p,"FAILURE");return new Promise(function(){})});
_.z("service_worker_push_enabled")&&S.then(function(H){_.nT(p,"SUCCESS");return H}).then(xrP).then(wvP)}catch(H){if(_.nT(p,"FAILURE"),H.name!=="SecurityError")throw H;
}};
Iuw=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&cmf()};
LMN=function(p,J){var S={};J&&(S.serializedYpcFamilyCreateLoggingParams=J);_.YQ(p,S);_.rf()};
p$I=function(p,J){var S={};S.serializedYpcRefundFlowLoggingParams=J;p&&(S.eventType=p);_.YQ("ypcRefundFlowEvent",S);_.rf()};
JHM=function(p){p&&_.vW3("transactionFlowSucceeded",p)};
SlU=function(p){p&&_.rP("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",p,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
HGP=function(p){var J,S,H,M,X,Z,n;_.G(function(b){if(b.nextAddress==1)return b.yield(_.pkX(),2);if(b.nextAddress!=3){if(!b.yieldResult)return b.return(!1);J=[];return b.yield(_.Hv.keys(),3)}S=b.yieldResult;H=_.K(S);for(M=H.next();!M.done;M=H.next())X=M.value,Z=_.Isk(X),n=Z.datasyncId,!n||p.includes(n)||J.push(_.Hv.delete(X));return b.return(Promise.all(J).then(function(F){return F.some(function(f){return f})}))})};
MHp=function(){var p,J,S,H,M,X,Z;return _.G(function(n){if(n.nextAddress==1)return n.yield(_.pkX(),2);if(n.nextAddress!=3){if(!n.yieldResult)return n.return(!1);p=_.ka("cache contains other");return n.yield(_.Hv.keys(),3)}J=n.yieldResult;S=_.K(J);for(H=S.next();!H.done;H=S.next())if(M=H.value,X=_.Isk(M),(Z=X.datasyncId)&&Z!==p)return n.return(!0);return n.return(!1)})};
X$y=function(){var p=_.vO().resolve(_.F9(_.bjm));return p?p.getCurrentTime():0};
iGe=function(){var p,J,S,H,M,X,Z,n,b,F,f,O,A,P;return _.G(function(W){switch(W.nextAddress){case 1:p={},J=_.H2k(),S=_.K(Object.entries(J)),H=S.next();case 4:if(H.done){W.jumpTo(3);break}M=H.value;X=_.K(M);Z=X.next().value;n=X.next().value;b=Z;F=n;if(!F){W.jumpTo(5);break}return W.yield(F(),8);case 8:p[b]=W.yieldResult;case 5:H=S.next();W.jumpTo(4);break;case 2:f=_.K(),O=f.next();case 9:if(O.done){W.jumpTo(3);break}A=O.value;P=J[A];if(!P){W.jumpTo(10);break}return W.yield(P(),13);case 13:p[A]=W.yieldResult;
case 10:O=f.next();W.jumpTo(9);break;case 3:return W.return(p)}})};
RKN=function(){var p;_.G(function(J){if(J.nextAddress==1)return J.yield(iGe(),2);p=J.yieldResult;return J.yield(navigator.clipboard.writeText(JSON.stringify(p,null,2)),0)})};
KVe=function(p,J){return _.RR(p.entities,"superThanksSelectedTierEntity",J)};
ZGp=function(p,J){return{popup:{searchSuggestionReportDialog:{searchQuery:p,title:_.Kl("SBOX_INAPPROPRIATE_TITLE"),suggestions:J,categoryLabel:_.Kl("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Kl("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Kl("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Kl("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Kl("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Kl("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Kl("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Kl("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.Kl("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.Kl("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
nmP=function(p){var J,S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E;return _.G(function(a){switch(a.nextAddress){case 1:return a.yield(_.n$(),2);case 2:return(J=a.yieldResult)?a.yield(_.Gcv(J),3):a.return();case 3:S=a.yieldResult;if(!S)return a.return();M=((H=S.offlineVideos)==null?void 0:H.length)||0;Z=((X=S.offlinePlaylists)==null?void 0:X.length)||0;if(M===0&&Z===0)return a.return();n=0;if(S.offlineVideos)for(b=_.K(S.offlineVideos),F=b.next();!F.done;F=b.next())f=F.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
f.videoState&&(n+=1);p.offline_videos_count=M.toString();_.z("kevlar_log_offline_current_network_type_ks")||(p.offline_current_network_type=(O=_.u6i())!=null?O:"CONN_INVALID");_.z("kevlar_log_updated_time_for_smart_downloads")&&(A=_.rl().getState().entities,P=_.Qc(A),W=Imj(A),p.offline_smart_downloads_last_sync_time_ms=P.toString(),p.offline_smart_downloads_next_sync_time_ms=W.toString());p.offline_videos_playable=n.toString();p.offline_playlists_count=Z.toString();S.offlineVideos&&(y=S.offlineVideos.reduce(function(q,
w){w.downloadedBytes&&(q+=Number(w.downloadedBytes));return q},0).toString())&&(p.offline_used_disk_space_bytes=y);
if(!((t=navigator)==null?0:(D=t.storage)==null?0:D.estimate)){a.jumpTo(4);break}return a.yield(navigator.storage.estimate(),5);case 5:k=a.yieldResult,p.offline_free_disk_space_bytes=(((E=k)==null?void 0:E.quota)||0).toString();case 4:p.offline_client_state=JSON.stringify(S),_.UK(a)}})};
GyP=function(p){p=p.match(/(.*)::.*::.*/);if(p!==null)return p[1]};
bGw=function(p){if(_.kj4()){var J=Object.keys(window.sessionStorage);J=_.K(J);for(var S=J.next();!S.done;S=J.next()){S=S.value;var H=GyP(S);H===void 0||p.includes(H)||self.sessionStorage.removeItem(S)}}};
m6N=function(){if(!_.kj4())return!1;var p=_.ka(),J=Object.keys(window.sessionStorage);J=_.K(J);for(var S=J.next();!S.done;S=J.next())if(S=GyP(S.value),S!==void 0&&S!==p)return!0;return!1};
QL=function(p,J,S){(_.z("desktop_keyboard_shortcut_usage_log")||S&&_.z("web_shorts_keyboard_shortcut_usage_log"))&&(J?_.mR.get(p):_.b3.get(p))&&(p=J?_.dQp.get(p):_.Twj.get(p))&&_.l7(_.C1(),p)};
FVI=function(p,J){return p.findIndex(function(S){return S.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(J.keyCode):!1};
vmr=function(p,J){J.stack&&(p.stack+="\n"+J.stack);return p};
zKf=function(p){var J=fpr(p,"Content-Type");if(!J)return null;J=J.toLowerCase();if(J.startsWith("application/json"))return J.startsWith("application/json+protobuf")?new OG$:new _.oK;if(J.startsWith("application/x-protobuf")){p=fpr(p,"Content-Transfer-Encoding");if(!p)return new AHI;if(p.toLowerCase()=="base64")return new PT$}return null};
U6w=function(p,J,S,H){var M=new $6P(function(n,b){return omU.has(b)?n.sentinel==="gal"&&n.event!==void 0:!1},function(n){n.event?(n=eKU(n.event),n=!n||WVM(H,n)?!0:_.AF(p.lastEvent,Cj,2,yL)?!_.AF(n,Bb,1,yL)&&!_.AF(n,Cj,2,yL):!_.AF(n,Bb,1,yL)&&!_.AF(n,Cj,3,yL)):n=!0;
return n});
S=_.O9(p.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",QAI(S)]]));if(p.nestedOrigins!==void 0)for(var X=_.K(p.nestedOrigins),Z=X.next();!Z.done;Z=X.next())S=_.O9(S,new Map([["origin",Z.value]]));return CTN(M,S,J).then(function(n){n=yHM(n.event);if(_.AF(n,Bb,1,yL)){var b,F=(b=_.tF(n,Bb,1,yL))==null?void 0:_.Uw(b,2);F&&H.JSC$19894_logErrorEvent(BTP(F));b=_.tF(n,Bb,1,yL);_.Uw(b,2)===4?(n=_.tF(n,Bb,1,yL),n={statusCode:11,statusMessage:_.B_(n,
3)}):(n=_.tF(n,Bb,1,yL),n={statusCode:12,statusMessage:_.B_(n,3)});return n}_.AF(n,Cj,3,yL)?(n=_.tF(n,Cj,3,yL),n={statusCode:1,consentLanguageKeys:_.B_(n,2)}):n={statusCode:1};return n}).catch(function(n){return n.errorCode!==void 0?{statusCode:n.errorCode,
statusMessage:n.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
hKM=function(p){var J={};if(p===void 0||p===null)return J;p.getToken()!==void 0&&sAl(p.getToken())&&sAl(p.getToken()).length>0&&(J.scopes=new Set(sAl(p.getToken())));p.getToken()!==void 0&&gmy(p.getToken())&&gmy(p.getToken()).length>0&&(J.capabilities=new Set(gmy(p.getToken())));_.B_(p,3)!==void 0&&(J.consistencyKey=_.B_(p,3));p.getName()!==void 0&&p.getName()!==""&&(J.linkName=p.getName());_.Ow(p,tHP,4)&&(p=_.PB(p,tHP,4),p=Object.assign({},_.B_(p,1)&&{userId:_.B_(p,1)},_.B_(p,2)&&{displayName:_.B_(p,
2)},_.B_(p,3)&&{email:_.B_(p,3)},_.B_(p,5)&&{username:_.B_(p,5)},_.B_(p,4)&&{profilePicture:_.B_(p,4)}),J.profile=p);return J};
D6$=function(p,J){var S=p.flowParams,H;return{serviceId:S.serviceId,sessionId:S.sessionId,currentFlow:p.currentFlow,googleScopesString:J,linkingSessionSerialized:p.session.serialize(),consentLanguageKeys:S.consentLanguageKeys,callerState:p.callerState,dynamicUrlParameters:S.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(H=S.partnerConfigMinReadTimestamp)==null?void 0:H.serialize()}};
uJM=function(p){var J=p.googleScopes!==void 0?Array.from(p.googleScopes).join(","):"";kyI(D6$(p,J),p.config.localStorage);J=NTP(p);return J===null?Promise.resolve(TTM):J.start().then(function(S){var H,M=(H=S.link)==null?void 0:H.consistencyKey;return S.statusCode===1&&p.googleScopes!==void 0&&p.googleScopes.size>0&&M!==void 0?(H=p.flowParams,d6M(H.serviceId,H.sessionId,p.googleScopes,M,H.galService,p.config,S)):S})};
VH$=function(p){var J=NTP(p);return J===null?Promise.resolve(lpy({statusCode:7,statusMessage:"Failed to create flow object"},p.callerState)):J.complete().then(function(S){var H,M=(H=S.link)==null?void 0:H.consistencyKey;return S.statusCode===1&&p.googleScopes!==void 0&&p.googleScopes.size>0&&M!==void 0?(H=p.flowParams,d6M(H.serviceId,H.sessionId,p.googleScopes,M,H.galService,p.config,S)):lpy(S,p.callerState)},function(S){return lpy({statusCode:12,
statusMessage:"Failed to complete the flow: "+S.message},p.callerState)})};
d6M=function(p,J,S,H,M,X,Z){return qlP(M,{serviceId:p,sessionId:J,googleScopes:S,consistencyKey:H}).then(function(){return Z},function(n){return M.deleteLink({serviceId:p,
sessionId:J,accountLinkingEntryPoint:X.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+n.message}},function(b){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+b.message}})})};
NTP=function(p){switch(p.currentFlow){case 1:var J=p.flowParams;p=_.PB(p.session,ap$,1);return Em$.createOAuthFlow(J,p);case 2:case 3:return J=p.flowParams,p=_.PB(p.session,YlN,6),rHr.createStreamlinedFlow(J,p);default:return null}};
w$f=function(p,J){p===2&&(p=3);var S=0;jAI.indexOf(p)!==-1&&(S=jAI.indexOf(p)+1);for(p=S;p<jAI.length;p++)if(J.has(jAI[p]))return jAI[p]};
Ipw=function(p){var J=p.serviceId;var S=p.sessionId;var H=p.config;var M=p.galService;var X=p.capabilities;var Z=p.scopes;var n=p.loginHint;var b=p.callerState;var F=p.consentLanguageKeys;var f=p.linkName;var O=p.dynamicUrlParameters;var A=p.partnerConfigMinReadTimestamp;p=H.dataUsageNoticeConfig?H.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return M.startLinkingSession({serviceId:J,sessionId:S,capabilities:X,scopes:Z,loginHint:n,callerState:b,supportedFlows:x6N(H.supportedFlows),completionUrl:H.completionUrl,
accountLinkingEntryPoint:H.accountLinkingEntryPoint,consentLanguageKeys:F,dataUsageNoticeConfig:p,linkName:f,dynamicUrlParameters:O,partnerConfigMinReadTimestamp:A}).then(function(P){return new cHe(J,S,H,M,P,void 0,b,F,O,A)})};
Msw=function(p,J,S){var H=(new LVP(J.localStorage)).getSession(p);if(H===null)return Promise.resolve({statusCode:2});pYp(p,J.localStorage);var M=JXI(H.linkingSessionSerialized),X=H.googleScopesString!==""&&H.googleScopesString!==void 0?new Set(H.googleScopesString.split(",")):void 0,Z=H.partnerConfigMinReadTimestampSerialized?SXN(H.partnerConfigMinReadTimestampSerialized):void 0;return HY$(new cHe(p,H.sessionId,J,S,M,X,H.callerState,H.consentLanguageKeys,H.dynamicUrlParameters,Z),H.currentFlow,H.consentLanguageKeys)};
kyI=function(p,J){J=new LVP(J);J.storage!==null&&J.storage.set("SAVED_SESSION",p)};
pYp=function(p,J){J=new LVP(J);if(J.storage!==null){var S=J.storage.get("SAVED_SESSION");S!==void 0&&S.serviceId===p&&J.storage.remove("SAVED_SESSION")}};
x6N=function(p){var J=new Set;p=_.K(p);for(var S=p.next();!S.done;S=p.next())S=S.value,S!==1&&XYP.has(S)&&J.add(XYP.get(S));return J};
lpy=function(p,J){J!==void 0&&(p.callerState=J);return p};
iYp=function(p){switch(p){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
ZYw=function(p){return new Rlr(p,new KKP(p))};
bYM=function(p,J){J=J===void 0?!1:J;var S=document.createElement("div");p&&(S.style.transform="scaleX(-1)");S.style.backgroundColor=J?"rgba(138,180,248,.24)":"#e8f0fe";S.style.height="4px";S.style.overflow="hidden";S.style.position="absolute";S.style.top="0";S.style.width="100%";S.style.zIndex="1500";S.setAttribute("aria-label","Loading");S.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  }";
S.appendChild(p);p=n8y();p.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";p.style.left="-145.166611%";var H=GsI(J);H.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";p.appendChild(H);S.appendChild(p);p=n8y();p.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";p.style.left="-54.888891%";J=GsI(J);J.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
p.appendChild(J);S.appendChild(p);return S};
n8y=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};
GsI=function(p){var J=document.createElement("span");J.style.borderTop=p?"4px solid #669df6":"4px solid #4285f4";J.style.display="inline-block";J.style.position="absolute";J.style.width="100%";return J};
mBf=function(p){return p==null?void 0:_.Q7U(p).valueOf()};
OYe=function(p){var J=document.body,S=!1,H=function(){S||(S=!0,FKw(M,X),setTimeout(function(){J.removeChild(X);J.removeChild(M)},150))},M=v8p(p,getComputedStyle(J).direction==="rtl",H),X=fPU(H);
FKw(M,X);J.appendChild(X);J.appendChild(M);window.requestAnimationFrame(function(){X.style.opacity="1";M.style.opacity="1";M.style.transform="translate(-50%, -50%) scale(1)";M.children[0].focus()})};
v8p=function(p,J,S){var H=document.createElement("div");H.style.position="fixed";H.style.alignItems="center";H.style.backgroundColor=p?"rgb(32, 33, 36)":"white";H.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";H.style.display="flex";H.style.flexDirection="column";H.style.justifyContent="center";H.style.left="50%";H.style.top="50%";H.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";H.style.zIndex="2002";document.body.clientWidth>=
660?(H.style.borderRadius="8px",H.style.minHeight="220px",H.style.maxHeight="90%",H.style.maxWidth="90%",H.style.minWidth="540px"):(H.style.height="100%",H.style.width="100%");H.setAttribute("aria-label","Error");H.setAttribute("aria-modal","true");H.setAttribute("role","alertdialog");H.addEventListener("keydown",function(X){X.key==="Escape"&&S()});
J=AX$(p,J,S);H.appendChild(P6I(J));H.appendChild(J);var M=document.createElement("img");M.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";M.style.height="72px";M.style.width="72px";M.style.color="#9aa0a6";M.setAttribute("alt","");H.appendChild(M);M=document.createElement("h1");M.textContent="Something went wrong.  Try again.";
M.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";M.style.lineHeight="24px";M.style.fontSize="16px";M.style.textAlign="center";M.style.letterSpacing="0.1px";M.style.color=p?"rgb(232,234,237)":"#3c4043";H.appendChild(M);H.appendChild(P6I(J));return H};
AX$=function(p,J,S){var H=document.createElement("button");H.style.backgroundColor="transparent";H.style.border="none";H.style.borderRadius="50%";H.style.cursor="pointer";H.style.outline="none";H.style.padding="12px";H.setAttribute("aria-label","Close dialog");H.style.position="absolute";H.style.top="0";J?H.style.right="0":H.style.left="0";H.addEventListener("focus",function(){H.style.backgroundColor=p?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
H.addEventListener("blur",function(){H.style.backgroundColor="transparent"});
H.addEventListener("mouseenter",function(){H.style.backgroundColor=p?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
H.addEventListener("mouseleave",function(){H.style.backgroundColor="transparent"});
H.addEventListener("click",S);H.addEventListener("keydown",function(M){M.key!=="Enter"&&M.key!=="Space"||S()});
J=document.createElement("img");J.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";J.style.display="block";J.style.height="24px";J.style.width="24px";J.setAttribute("alt","");H.appendChild(J);return H};
P6I=function(p){var J=document.createElement("div");J.setAttribute("tabindex","0");J.setAttribute("aria-hidden","true");J.addEventListener("focus",function(){return void p.focus()});
return J};
fPU=function(p){var J=document.createElement("div");J.style.backgroundColor="rgba(32,33,36,0.6)";J.style.bottom="0";J.style.left="0";J.style.position="fixed";J.style.right="0";J.style.top="0";J.style.transition=" opacity 150 ms linear";J.style.zIndex="2001";J.addEventListener("click",p);return J};
FKw=function(p,J){J.style.opacity="0";p.style.opacity="0";p.style.transform="translate(-50%, -50%) scale(0.8)"};
zlM=function(p,J){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=J};
UW=function(p){$Br.call(this,p)};
C6I=function(p,J){J=J===void 0?!1:J;this.parsedImageUrl_=null;p instanceof o8$||(ele==void 0&&(ele=new WKN),p=ele.parse(p.toString(),J));p=this.parsedImageUrl_=p;p.JSC$20107_parsedOptions_==void 0&&((J=p.getOptions())||(J=""),p.JSC$20107_parsedOptions_=(new Qtf).parse(J));$Br.call(this,p.JSC$20107_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;p=this.parsedImageUrl_;J=p.uri_.JSC$10187_port_;this.JSC$20109_domain_=p.uri_.JSC$10187_domain_+(J?":"+J:"");this.JSC$20109_query_=
this.parsedImageUrl_.uri_.JSC$10187_queryData_.toString()};
yXU=function(p){this.mode=4;this.data=p;this.parsedData=[];p=0;for(var J=this.data.length;p<J;p++){var S=[],H=this.data.charCodeAt(p);H>65536?(S[0]=240|(H&1835008)>>>18,S[1]=128|(H&258048)>>>12,S[2]=128|(H&4032)>>>6,S[3]=128|H&63):H>2048?(S[0]=224|(H&61440)>>>12,S[1]=128|(H&4032)>>>6,S[2]=128|H&63):H>128?(S[0]=192|(H&1984)>>>6,S[1]=128|H&63):S[0]=H;this.parsedData.push(S)}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))};
B_w=function(p){this.typeNumber=0;this.errorCorrectLevel=p===void 0?2:p;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
sW=function(p,J){if(p.length==void 0)throw Error("Pk`"+p.length+"`"+J);for(var S=0;S<p.length&&p[S]==0;)S++;this.num=Array(p.length-S+J);for(J=0;J<p.length-S;J++)this.num[J]=p[J+S]};
UBf=function(p,J){this.totalCount=p;this.dataCount=J};
st$=function(){this.buffer=[];this.length=0};
g8I=function(){var p=!1;if(_.e4i()){p=_.fL();var J="";_.Cwt()?(J=/Windows (?:NT|Phone) ([0-9.]+)/,J=(p=J.exec(p))?p[1]:"0.0"):_.si()?(J=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,J=(p=J.exec(p))&&p[1].replace(/_/g,".")):_.Qv9()?(J=/Mac OS X ([0-9_.]+)/,J=(p=J.exec(p))?p[1].replace(/_/g,"."):"10"):_.bw(_.fL(),"KaiOS")?(J=/(?:KaiOS)\/(\S+)/i,J=(p=J.exec(p))&&p[1]):_.e4i()?(J=/Android\s+([^\);]+)(\)|;)/,J=(p=J.exec(p))&&p[1]):_.y9L()&&(J=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,J=(p=J.exec(p))&&p[1]);p=
J||""}return p};
T_w=function(p,J){this.JSC$20132__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(J)for(var S in J)this.JSC$20132__htOption[S]=J[S];this.JSC$20132__htOption.useSVG&&(tsU=hlr);this.JSC$20132__android=g8I();this.JSC$20132__el=p;this._oQRCode=null;this._oDrawing=new tsU(this.JSC$20132__el,this.JSC$20132__htOption);this.JSC$20132__htOption.text&&(p=this.JSC$20132__htOption.text,this._oQRCode=new B_w(this.JSC$20132__htOption.correctLevel),DBj(this._oQRCode,
p),J=this._oQRCode,ksj(J,!1,N_P(J)),this.JSC$20132__el.title=p,this._oDrawing.draw(this._oQRCode),this.makeImage())};
dBP=function(p,J,S,H,M){p.save();var X=new Path2D;X.roundRect(J,S,H*7,H*7,H*2);X.roundRect(J+H,S+H,H*5,H*5,H*1.3);X.roundRect(J+2*H,S+2*H,H*3,H*3,H);p.clip(X,"evenodd");p.fillStyle=M;p.fillRect(0,0,p.canvas.width,p.canvas.height);p.restore()};
tb=function(p,J){if(typeof p!=="function")throw Error("Sk");return _.Hg.setTimeout(function(){p()},J)};
hb=function(){};
lPw=function(p,J,S,H,M){(new hb).debug("TestLoadImageWithRetries: "+M);if(H==0)S(!1);else{var X=M||0;H--;umP(p,J,function(Z){Z?S(!0):_.Hg.setTimeout(function(){lPw(p,J,S,H,X)},X)})}};
umP=function(p,J,S){var H=new hb;H.debug("TestLoadImage: loading "+p);var M=new Image;M.onload=function(){try{H.debug("TestLoadImage: loaded"),Vsw(M),S(!0)}catch(X){}};
M.onerror=function(){try{H.debug("TestLoadImage: error"),Vsw(M),S(!1)}catch(X){}};
M.onabort=function(){try{H.debug("TestLoadImage: abort"),Vsw(M),S(!1)}catch(X){}};
M.ontimeout=function(){try{H.debug("TestLoadImage: timeout"),Vsw(M),S(!1)}catch(X){}};
_.Hg.setTimeout(function(){if(M.ontimeout)M.ontimeout()},J);
M.src=p};
Vsw=function(p){p.onload=null;p.onerror=null;p.onabort=null;p.ontimeout=null};
qXI=function(){this.front_=[];this.back_=[]};
aPr=function(p,J){this.action=p;this.params=J||{}};
E8f=function(p,J){_.gp.call(this);this.delay_=new _.Dd(this.JSC$20258_onTick_,0,this);_.$c(this,this.delay_);this.JSC$20256_interval_=5E3;this.nextTickTime_=0;if(typeof p==="function")J&&(p=(0,_.tT)(p,J));else if(p&&typeof p.handleEvent==="function")p=(0,_.tT)(p.handleEvent,p);else throw Error("ya");this.JSC$20258_listener_=p};
DT=function(p,J,S,H,M,X,Z,n,b,F,f,O,A,P,W){var y=this;S=S===void 0?!1:S;H=H===void 0?function(){return""}:H;
M=M===void 0?!1:M;X=X===void 0?!1:X;Z=Z===void 0?!1:Z;n=n===void 0?function(){return _.SU({})}:n;
b=b===void 0?!1:b;f=f===void 0?!1:f;O=O===void 0?!1:O;A=A===void 0?!1:A;P=P===void 0?!1:P;this.JSC$20259_pathPrefix_=p;this.defaultQueryParams_=J;this.pubsub_=new _.sv;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!W)?W(function(){y.safeReconnect_()}):new E8f(this.safeReconnect_,this);
this.JSC$20259_channel_=null;this.JSC$20259_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20259_pendingMessages_=[];this.enableAsyncTest_=S;this.JSC$20259_getXsrfToken_=H;this.useAsyncBrowserChannelHandler_=X;this.getAuthorizationHeader_=n;this.getAuthorizationHeaderSync_=F;this.enableCachedUpdateAuthorizationHeader_=Z;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.SU();this.enableLoungeTokenRefresh_=M;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
b;this.disableMdxAuthForNonPlaybackMessages_=f;this.disableMdxAuthForAdMessages_=O;this.enableMdxAuthForConnectionOnly_=A;this.disableMdxAuthForShortsMessages_=P;this.JSC$20259_channelOpenedCounter=new YXU;this.JSC$20259_channelClosedCounter=new rXw;this.channelMessageSentCounter=new jtj;this.JSC$20259_channelMessageReceivedCounter=new wYp;this.JSC$20259_channelErrorCounter=new xBP;this.pendingMapsOnClosedCounter=new cXw;this.undeliveredMapsOnClosedCounter=new IPy};
LKI=function(p){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;p=p||document.location.href;var J=Number(_.ZL(p)[4]||null)||"";J&&(this.port=":"+J);this.domain=_.nQ(p)||"";p=_.fL();p.search("MSIE")>=0&&_.FX(p.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
kj=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";this.secret=p.screenIdSecret||""};
pue=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(p){var J=Math.random()*16|0;return(p=="x"?J:J&3|8).toString(16)})};
J7j=function(p){return _.d2(p,function(J){return{key:J.id,name:J.name}})};
S0N=function(p,J){return _.t9(p,function(S){return S||J?!S!=!J?!1:S.id==J.id:!0})};
NA=function(p,J){return _.t9(p,function(S){return HTp(S,J)})};
K2I=function(){var p=MNj(),J=Xue();if(iT$()){var S=p,H=_.Nki(S,J);H<0&&_.h4X(S,-(H+1),0,J)}p=R1p(p);if(p.length==0)try{_.kv4("remote_sid")}catch(M){}else try{_.hl("remote_sid",p.join(","),-1)}catch(M){}};
MNj=function(){var p=_.$t("yt-remote-connected-devices")||[];p.sort(_.kW3);return p};
R1p=function(p){if(p.length==0)return[];var J=p[0].indexOf("#"),S=J==-1?p[0]:p[0].substring(0,J);return _.d2(p,function(H,M){return M==0?H:H.substring(S.length)})};
ZTI=function(p){_.ze("yt-remote-connected-devices",p,86400)};
Xue=function(){if(nII)return nII;var p=_.$t("yt-remote-device-id");p||(p=pue(),_.ze("yt-remote-device-id",p,31536E3));for(var J=MNj(),S=1,H=p;_.dk(J,H);)S++,H=p+"#"+S;return nII=H};
GJj=function(){return _.$t("yt-remote-session-browser-channel")};
iT$=function(){return _.$t("yt-remote-session-screen-id")};
F2p=function(p){p.length>5&&(p=p.slice(p.length-5));var J=_.d2(bTN(),function(H){return H.loungeToken}),S=_.d2(p,function(H){return H.loungeToken});
_.TX4(S,function(H){return!_.dk(J,H)})&&mkP();
_.ze("yt-remote-local-screens",p,31536E3)};
bTN=function(){return _.$t("yt-remote-local-screens")||[]};
mkP=function(){_.ze("yt-remote-lounge-token-expiration",!0,86400)};
vIf=function(p){p||(_.eS("yt-remote-session-screen-id"),_.eS("yt-remote-session-video-id"));K2I();p=MNj();_.uw(p,Xue());ZTI(p)};
OTf=function(){fFj();return Tl?!!Tl.get("yt-remote-use-staging-server"):!1};
fFj=function(){if(!Tl){var p=_.qV();p&&(Tl=new _.d1(p))}};
$kf=function(p,J,S,H,M){S=S===void 0?function(){return""}:S;
var X=function(){return new DT(dc(p,"/bc"),J,!1,S,H)};
return _.z("enable_mdx_web_channel_desktop")?new A7$(function(){return new PbI(dc(p,"/wc"),J,S)}):new z1P(X,M)};
Q$y=function(){var p=oI$;e1w();u3.push(p);W2N()};
l3=function(p,J){e1w();var S=CbP(p,String(J));u3.length==0?y7r(S):(W2N(),_.MV(u3,function(H){H(S)}))};
VL=function(p){l3("CP",p)};
e1w=function(){u3||(u3=_.Id("yt.mdx.remote.debug.handlers_")||[],_.m$("yt.mdx.remote.debug.handlers_",u3))};
y7r=function(p){var J=(BsP+1)%50;BsP=J;UkM[J]=p;s$y||(s$y=J==49)};
W2N=function(){var p=u3;if(UkM[0]){var J=s$y?BsP:-1,S={};do S={record$jscomp$15:void 0},J=(J+1)%50,S.record$jscomp$15=UkM[J],_.MV(p,function(H){return function(M){M(H.record$jscomp$15)}}(S));
while(J!=BsP);UkM=Array(50);BsP=-1;s$y=!1}};
CbP=function(p,J){var S=(Date.now()-gIy)/1E3;S.toFixed&&(S=S.toFixed(3));var H=[];H.push("[",S+"s","] ");H.push("[","yt.mdx.remote","] ");H.push(p+": "+J,"\n");return H.join("")};
qA=function(p){_.Gl.call(this);this.JSC$20284_logName_=p;this.screens=[]};
EW=function(p){qA.call(this,"LocalScreenService");this.JSC$20291_http_=p;this.loungeTokenRefreshTimer_=NaN;a0(this);this.info("Initializing with "+tNe(this.screens))};
Yj=function(p,J){J=J===void 0?!1:J;qA.call(this,"ScreenService");this.JSC$20297_http_=p;this.disableAutomaticScreenCache_=J;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};h1$(this)};
rc=function(p,J,S){_.Gl.call(this);this.JSC$20301_logName_=S;this.JSC$20301_screenService_=p;this.receiver_=J;this.screen_=null};
xkP=function(p,J,S){S.disableCastApi?jC("Cannot initialize because disabled by Mdx config."):Dkp()?kJj(p,S)&&(Nsf(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?TsP(J):(window.__onGCastApiAvailable=function(H,M){H?TsP(J):(wc("Failed to load cast API: "+M),dkP(!1),Nsf(!1),_.eS("yt-remote-cast-available"),_.eS("yt-remote-cast-receiver"),uie(),J(!1))},S.loadCastApiSetupScript?_.h1(lFe):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
VNp()>=60&&q0f():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?aFf():VNp()>=89?EIN():(Y0I(),r7P(j$$.map(wu$))))):jC("Cannot initialize because not running Chrome")};
uie=function(){jC("dispose");var p=xj();p&&p.dispose();_.m$("yt.mdx.remote.cloudview.instance_",null);c7M(!1);_.o2X(IFN);IFN.length=0};
L2U=function(){return!!_.$t("yt-remote-cast-installed")};
p_M=function(){var p=_.$t("yt-remote-cast-receiver");return p?p.friendlyName:null};
JFp=function(){jC("clearCurrentReceiver");_.eS("yt-remote-cast-receiver")};
SwP=function(){return L2U()?xj()?xj().getCastSession():(wc("getCastSelector: Cast is not initialized."),null):(wc("getCastSelector: Cast API is not installed!"),null)};
MJj=function(p,J){Huf()?xj().setConnectedScreenStatus(p,J):wc("setConnectedScreenStatus called before ready.")};
Dkp=function(){var p=_.fL().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.GF||p};
kJj=function(p,J){var S=!1;xj()||(p=new cb(p,J),p.subscribe("yt-remote-cast2-availability-change",function(H){_.ze("yt-remote-cast-available",H);o0("yt-remote-cast2-availability-change",H)}),p.subscribe("yt-remote-cast2-receiver-selected",function(H){jC("onReceiverSelected: "+H.friendlyName);
_.ze("yt-remote-cast-receiver",H);o0("yt-remote-cast2-receiver-selected",H)}),p.subscribe("yt-remote-cast2-receiver-resumed",function(H){jC("onReceiverResumed: "+H.friendlyName);
_.ze("yt-remote-cast-receiver",H);o0("yt-remote-cast2-receiver-resumed",H)}),p.subscribe("yt-remote-cast2-session-change",function(H){jC("onSessionChange: "+X_I(H));
H||_.eS("yt-remote-cast-receiver");o0("yt-remote-cast2-session-change",H)}),_.m$("yt.mdx.remote.cloudview.instance_",p),S=!0);
jC("cloudview.createSingleton_: "+S);return S};
xj=function(){return _.Id("yt.mdx.remote.cloudview.instance_")};
TsP=function(p){dkP(!0);Nsf(!1);xj().init(!1,function(J){J?(c7M(!0),_.eZL("yt-remote-cast2-api-ready")):(wc("Failed to initialize cast API."),dkP(!1),_.eS("yt-remote-cast-available"),_.eS("yt-remote-cast-receiver"),uie());p(J)})};
jC=function(p){l3("cloudview",p)};
wc=function(p){l3("cloudview",p)};
dkP=function(p){jC("setCastInstalled_ "+p);_.ze("yt-remote-cast-installed",p)};
Huf=function(){return!!_.Id("yt.mdx.remote.cloudview.apiReady_")};
c7M=function(p){jC("setApiReady_ "+p);_.m$("yt.mdx.remote.cloudview.apiReady_",p)};
Nsf=function(p){_.m$("yt.mdx.remote.cloudview.initializing_",p)};
I0=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)};
fjP=function(p){fFj();if(!Tl||!Tl.get("yt-remote-disable-remote-module-for-dev")){p=_.jn("MDX_CONFIG")||p;FMN();K2I();iuf||(iuf=new LKI(p?p.loungeApiHost:void 0),OTf()&&(iuf.basePath="/api/loungedev"));Lj||(Lj=_.Id("yt.mdx.remote.deferredProxies_")||[],_.m$("yt.mdx.remote.deferredProxies_",Lj));Rkp();var J=Ksf();if(!J){var S=new Yj(iuf,p?p.disableAutomaticScreenCache||!1:!1);_.m$("yt.mdx.remote.screenService_",S);J=Ksf();var H={};p&&(H={appId:p.appId,disableDial:p.disableDial,theme:p.theme,loadCastApiSetupScript:p.loadCastApiSetupScript,
disableCastApi:p.disableCastApi,enableDialLoungeToken:p.enableDialLoungeToken,enableCastLoungeToken:p.enableCastLoungeToken,forceMirroring:p.forceMirroring});_.m$("yt.mdx.remote.enableConnectWithInitialState_",p?p.enableConnectWithInitialState||!1:!1);xkP(S,function(X){X?ZuP()&&MJj(ZuP(),"YouTube TV"):S.subscribe("onlineScreenChange",function(){o0("yt-remote-receiver-availability-change")})},H)}if(p&&!_.Id("yt.mdx.remote.initialized_")){_.m$("yt.mdx.remote.initialized_",!0);
nCN("Initializing: "+(0,_.uV)(p));pp.push(_.oJ("yt-remote-cast2-api-ready",function(){o0("yt-remote-api-ready")}));
pp.push(_.oJ("yt-remote-cast2-availability-change",function(){o0("yt-remote-receiver-availability-change")}));
pp.push(_.oJ("yt-remote-cast2-receiver-selected",function(){GFw();o0("yt-remote-auto-connect","cast-selector-receiver")}));
pp.push(_.oJ("yt-remote-cast2-receiver-resumed",function(){o0("yt-remote-receiver-resumed","cast-selector-receiver")}));
pp.push(_.oJ("yt-remote-cast2-session-change",bue));pp.push(_.oJ("yt-remote-connection-change",function(X){X?MJj(ZuP(),"YouTube TV"):mUN()||(MJj(null,null),JFp())}));
pp.push(_.oJ("yt-remote-cast2-session-failed",function(){o0("yt-remote-connection-failed")}));
H=FsP();p.isAuto&&(H.id+="#dial");var M=p.capabilities||[];M.length>0&&(H.capabilities=M);H.name=p.device;H.app=p.app;(p=p.theme)&&(H.theme=p);nCN(" -- with channel params: "+(0,_.uV)(H));H?(_.ze("yt-remote-session-app",H.app),_.ze("yt-remote-session-name",H.name)):(_.eS("yt-remote-session-app"),_.eS("yt-remote-session-name"));_.m$("yt.mdx.remote.channelParams_",H);J.start();ZuP()||vCI()}}};
AFp=function(){var p=Ksf().instance_.$_gos();var J=OuM();J&&Ji()&&(S0N(p,J)||p.push(J));return J7j(p)};
P9I=function(){var p=AFp(),J=OuM();J||(J=mUN());return _.t9(p,function(S){return J&&HTp(J,S.key)?!0:!1})};
OuM=function(){var p=ZuP();if(!p)return null;var J=Ksf().getScreens();return NA(J,p)};
bue=function(p){nCN("remote.onCastSessionChange_: "+X_I(p));if(p){var J=OuM();if(J&&J.id==p.id){if(MJj(J.id,"YouTube TV"),p.idType=="shortLived"&&(p=p.token))zkI&&(zkI.token=p),(J=Ji())&&J.setLoungeToken(p)}else J&&$UU(),oCy(p,1)}else Ji()&&$UU()};
$UU=function(){Huf()?xj().stopSession():wc("stopSession called before API ready.");var p=Ji();p&&(p.disconnect(1),ekP(null))};
WsI=function(){var p=Ji();return p&&p.getProxyState()!=3?new SX(Ji(),void 0):null};
nCN=function(p){l3("remote",p)};
Ksf=function(){if(!QhN){var p=_.Id("yt.mdx.remote.screenService_");QhN=p?new C9$(p):null}return QhN};
ZuP=function(){return _.Id("yt.mdx.remote.currentScreenId_")};
yFp=function(p){_.m$("yt.mdx.remote.currentScreenId_",p)};
GFw=function(){_.m$("yt.mdx.remote.connectData_",null)};
Ji=function(){return _.Id("yt.mdx.remote.connection_")};
ekP=function(p){var J=Ji();GFw();p||yFp("");_.m$("yt.mdx.remote.connection_",p);Lj&&(_.MV(Lj,function(S){S(p)}),Lj.length=0);
J&&!p?o0("yt-remote-connection-change",!1):!J&&p&&o0("yt-remote-connection-change",!0)};
mUN=function(){var p=iT$();if(!p)return null;var J=Ksf();if(!J)return null;J=J.getScreens();return NA(J,p)};
oCy=function(p,J){B4I?zkI=p:(yFp(p.id),p=new HS(iuf,p,FsP(),_.Id("yt.mdx.remote.enableConnectWithInitialState_")||!1),p.connect(J,_.Id("yt.mdx.remote.connectData_")),p.subscribe("beforeDisconnect",function(S){o0("yt-remote-before-disconnect",S)}),p.subscribe("beforeDispose",function(){Ji()&&ekP(null)}),p.subscribe("browserChannelAuthError",function(){var S=OuM();
S&&S.idType=="shortLived"&&(Huf()?xj().handleBrowserChannelAuthError():wc("refreshLoungeToken called before API ready."))}),ekP(p))};
vCI=function(){var p=mUN();p?(nCN("Resume connection to: "+X_I(p)),oCy(p,0)):(vIf(),JFp(),nCN("Skipping connecting because no session screen found."))};
Rkp=function(){var p=FsP();if(_.T6.isEmpty(p)){p=Xue();var J=_.$t("yt-remote-session-name")||"",S=_.$t("yt-remote-session-app")||"";p={device:"REMOTE_CONTROL",id:p,name:J,app:S,mdxVersion:3};p.authuser=String(_.jn("SESSION_INDEX","0"));(J=_.jn("DELEGATED_SESSION_ID"))&&(p.pageId=String(J));_.m$("yt.mdx.remote.channelParams_",p)}};
FsP=function(){return _.Id("yt.mdx.remote.channelParams_")||{}};
UUf=function(){var p,J;return _.G(function(S){if(S.nextAddress==1)return(_.Xi9()||_.z("use_new_nwl"))&&_.Jzv().isNetworkAvailable()?S.yield(_.F$(),2):S.return();if(S.nextAddress!=3)return(p=S.yieldResult)?S.yield(hZM(p),3):S.return();J=S.yieldResult;if(!J.length)return S.return();J.forEach(function(H){var M={timestamp:H.timestamp};H=H.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:H.appShellAssetLoadReport,options:M}:H.clientError?{payloadName:"clientError",payload:H.clientError,
options:M}:void 0;H&&_.YQ(H.payloadName,H.payload,H.options)});
J.length===100&&_.wg.addLowPriorityJob(UUf);_.UK(S)})};
shp=function(p){if(p.playerResponse){if(p=p.playerResponse,p.messages&&p.messages.length>0&&(p=p.messages.find(function(J){return!(!J||!J.mealbarPromoRenderer)}))&&p.mealbarPromoRenderer)return p.mealbarPromoRenderer}else if(p.response&&(p=p.response)&&p.overlay&&p.overlay.mealbarPromoRenderer)return p.overlay.mealbarPromoRenderer};
gCr=function(p){if(p.response){var J=p.response;if(J&&J.overlay&&J.overlay.tooltipRenderer)return J.overlay.tooltipRenderer}if(p.playerResponse&&(p=p.playerResponse,p.messages&&p.messages.length>0&&(p=p.messages.find(function(S){return!(!S||!S.tooltipRenderer)}))&&p.tooltipRenderer))return p.tooltipRenderer};
hky=function(p){if(!tJI&&(p=p||_.jn("ZWIEBACK_PING_URLS"))&&p.length){tJI=!0;for(var J=0;J<p.length;J++)_.Xb(p[J])}};
kFN=function(p){if(_.T6.get(_.jn("PLAYER_VARS",{}),"privembed",!1)!="1"){p&&W5l();try{DUr().then(function(){},function(){}),_.WO(kFN,18E5)}catch(J){_.xv(J)}}};
N4P=function(){var p=_.Gv(),J=p.getFlag(119),S=window.devicePixelRatio>1;document.body&&_.Ln(document.body,"exp-invert-logo")&&(S&&!_.Ln(document.body,"inverted-hdpi")?_.Ea(document.body,"inverted-hdpi"):!S&&_.Ln(document.body,"inverted-hdpi")&&_.qn(document.body,"inverted-hdpi"));J!=S&&(_.b7(0,119,S),p.save())};
T4y=function(p){return p.filter(function(J){return"ypcGetCartEndpoint"in J||"ypcFixInstrumentEndpoint"in J})};
dUM=function(p){return p.filter(function(J){return!_.e(J,_.CFE)})};
ljP=function(p,J){var S,H,M,X,Z,n,b;_.G(function(F){switch(F.nextAddress){case 1:S=_.uy.getInstance();H=_.R4.instance;M=_.un.instance;if(!M)return uz$(p,H,J),F.return();_.oI(F,2);p.onLoadingCommand&&H.resolveCommand(p.onLoadingCommand);return F.yield(S.getCurrentPositionFromGeolocation(),4);case 4:X=F.yieldResult;if(!p.resolveLocationCommand){F.jumpTo(5);break}Z=S.createLocationInfo(X);return F.yield(_.VI(M,p.resolveLocationCommand,{locationInfo:Z}),6);case 6:n=F.yieldResult;if(!n||"error"in n&&n.error||
n.errorMetadata)return uz$(p,H,J),F.return();var f;if(n==null?0:(f=n.onResponseReceivedActions)==null?0:f.length){f=_.K(n.onResponseReceivedActions);for(var O=f.next();!O.done;O=f.next())H.resolveCommand(O.value)}(_.e(p.onSuccessCommand,_.lj)||_.e(p.onSuccessCommand,_.Ge))&&_.cf(J.hostElement,"yt-navigate",{endpoint:p.onSuccessCommand,reload:!0});case 5:_.X$(F,0);break;case 2:b=_.BZ(F);if(b instanceof GeolocationPositionError&&b.code===GeolocationPositionError.PERMISSION_DENIED)return p.onDeniedCommand&&
H.resolveCommand(p.onDeniedCommand),F.return();uz$(p,H,J);_.UK(F)}})};
uz$=function(p,J,S){p.onFailureCommand&&(J.resolveCommand(p.onFailureCommand),_.IV(S.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
qwP=function(p,J){var S=_.e(p,_.jLv);if(S&&J){p=S.videoIds||[S.videoId];var H;J=(H=_.cf(J,"yt-lockup-requested",{videoIds:p}).detail)==null?void 0:H.returnValue;var M;S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?M=J?J:p.map(function(X){return{videoId:X,navigationEndpoint:S.videoCommand}}):J&&(M=J);
M&&(H=M.map(function(X){var Z=Object,n=Z.assign;var b=X.navigationEndpoint;if(!_.e(b,_.vt)){var F=_.e(b,_.lj);if(F){if(delete F.index,delete F.playlistId,F=_.e(b==null?void 0:b.commandMetadata,_.i7),F==null?0:F.url){var f=F.url;f=_.YV(f,"list");f=_.YV(f,"index");F.url=f}}else b=void 0}return n.call(Z,{},X,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:b})}),VJj(H,S))}};
ajU=function(p){var J=_.PR();if(p=_.e(p,_.wPq))p.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&J.clearQueue(),p.closeMiniplayer&&_.vO().resolve(_.DF).close(!0)};
Ywj=function(p){EC$(_.PR(),p)};
rFP=function(p){var J;(p=(J=_.e(p,_.Y28))==null?void 0:J.setVideoIds)&&p.forEach(function(S){_.qP4(_.PR(),S)})};
w_U=function(p){jhU(_.PR(),p)};
xUe=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(p){return!1}};
cFp=function(p){var J=["h","m","s"],S=_.VX(J);S.reverse();var H={};p=(p.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(Z){var n=(Z.match(/[hms]/)||[""])[0];return n?(H[n]=parseInt(Z.match(/\d+/)[0],10),!1):!0});
for(p.reverse();p.length&&S.length;){var M=S.shift();M in H||(H[M]=parseInt(p.shift(),10))}if(p.length||H.s>59||H.m>59||H.h>9)return null;var X="";J.forEach(function(Z){H[Z]&&(X+=""+H[Z]+Z)});
return X||null};
Ijr=function(p,J){var S=_.fz8(J,{},p,!0);return new Promise(function(H,M){S.listenOnce("n",function(){M(Error("Dl`"+S.JSC$30167_getErrorDescription()))});
S.listenOnce("l",function(){var X=S.getResponseCode();if(X!==200)M(Error("El`"+J+"`"+p.type+"`"+p.size+"`"+X));else try{H(JSON.parse(S.getResponseText()).encryptedBlobId)}catch(Z){M(Z)}});
S.run()})};
LsP=function(p){return p.substring(p.indexOf(":")+1,p.indexOf(";"))};
pjp=function(p){return new Promise(function(J,S){var H=new FileReader;H.onloadend=function(){try{var M=new Uint8Array(H.result);M.length<8&&S(void 0);var X=M.subarray(0,8);M="";for(var Z=0;Z<X.length;Z++)M+=("0"+X[Z].toString(16)).substr(-2);M.startsWith("ffd8ff")?J("image/jpeg"):M.startsWith("47494638")?J("image/gif"):M.startsWith("89504e470d0a1a0a")?J("image/png"):M.startsWith("424d")?J("image/bmp"):J(void 0)}catch(n){S(n)}};
H.onerror=S;H.readAsArrayBuffer(p)})};
Jdf=function(p){return new Promise(function(J,S){var H=new Image;H.crossOrigin="anonymous";H.onload=function(){var M=document.createElement("canvas");M.width=H.naturalWidth;M.height=H.naturalHeight;var X=M.getContext("2d");if(!X)throw Error("Fl");X.drawImage(H,0,0);X=LsP(p);M.toBlob(function(Z){Z?J(Z):S()},X)};
H.src=p})};
HXy=function(p,J){var S;if(((S=_.e(p,_.vt))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var H;_.cf((H=J.hostElement)!=null?H:J,"yt-shorts-reset");_.ZCN(_.vO().resolve(_.jW),p).then(function(X){SjI(X,J,p)})}else{var M;
_.pl((M=J.hostElement)!=null?M:J,[p]).then(function(X){X&&SjI(X.data,J,p)})}};
SjI=function(p,J,S){if(p){var H=_.e(p.replacementEndpoint,_.vt);if(H){p.sequenceContinuation&&(H.sequenceParams=p.sequenceContinuation);var M;_.cf((M=J.hostElement)!=null?M:J,"yt-navigate",{endpoint:p.replacementEndpoint})}else if((p==null?void 0:p.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(p==null?0:p.watchStatus)&&_.e(p.watchStatus,_.DIq)){var X;_.cf((X=J.hostElement)!=null?X:J,"yt-navigate",{endpoint:S})}}};
M_N=function(p){var J=_.vO().resolve(_.XN),S=_.uT.currentPageTypeSelector(J.getState())||"";J=_.uT.currentPageSubTypeSelector(J.getState())||"";S=S==="ytd-browse"&&J==="home";return _.z("web_guide_entry_enable_cache_for_non_home_pages")?(p=(p==null?void 0:p.navigationEndpoint)&&_.ny(p.navigationEndpoint)==="home",{disableCache:S&&p}):{disableCache:S}};
R6$=function(p,J,S,H){if(p&&p.length){var M={};if(J){var X=void 0;S&&(X={commandContext:{onTap:{innertubeCommand:S||{}}}});M.header={panelHeaderViewModel:{title:_.CI(J),rendererContext:X}}}J=[];p=_.K(p);for(S=p.next();!S.done;S=p.next()){X=S.value;S=_.e(X,Xj$);X=_.e(X,iXI);var Z=void 0,n=void 0;if((Z=X)==null?0:(n=Z.expandableItems)==null?0:n.length)for(X=_.K(X.expandableItems),Z=X.next();!Z.done;Z=X.next()){Z=Z.value.guideEntryRenderer;var b=n=void 0;if(((n=Z)==null?void 0:(b=n.icon)==null?void 0:
b.iconType)==="VIEW_LIST_CAIRO"){S=Z;break}}n=Z=void 0;X=((Z=S)==null?0:Z.formattedTitle)?_.CI((n=S)==null?void 0:n.formattedTitle):void 0;Z=void 0;n=(Z=S)==null?void 0:Z.isPrimary;if(S&&X&&!n){X={title:X};S.navigationEndpoint&&(X.rendererContext={commandContext:{onTap:{innertubeCommand:S.navigationEndpoint}}});Z=[];b=n=void 0;if(((n=S)==null?0:(b=n.thumbnail)==null?0:b.thumbnails)&&S.thumbnail.thumbnails.length>0){n=_.K(S.thumbnail.thumbnails);for(b=n.next();!b.done;b=n.next())Z.push({url:b.value.url});
X.leadingAccessory={avatarViewModel:{image:{sources:Z},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(n=void 0,(n=S.icon)==null?0:n.iconType)Z.push({clientResource:{imageName:S.icon.iconType||""}}),X.leadingImage={sources:Z};n=Z=void 0;((Z=S)==null?0:(n=Z.badges)==null?0:n.liveBroadcasting)?(X.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",X.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},X.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
S.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?X.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":S.count&&(X.trailingLabel={content:S.count.toString()});J.push({listItemViewModel:X})}}J.length!==0?(M.content={listViewModel:{listItems:J}},H===0&&(M.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):M=void 0;if(M)return J=void 0,H===0&&(J={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:M}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:J}}}}};
Kkr=function(p,J,S,H){if(J!=null&&J.isPrimary){switch(H){case 1:if(J.serviceEndpoint)break;S=R6$(S,J.formattedTitle,J.navigationEndpoint,H);if(!S)break;J.serviceEndpoint=S;J.navigationEndpoint=void 0;break;case 0:!J.mouseEnterEndpoint&&(S=R6$(S,J.formattedTitle,void 0,H))&&(J.mouseEnterEndpoint=S,J.mouseLeaveEndpoint={hideSheetCommand:{}})}p.push({guideEntryRenderer:J})}};
ZXP=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(J){return!1}return ZXP(p.parentNode)};
M2=function(p){return p?p.tagName==="A"&&p.href&&p.classList.contains("yt-simple-endpoint"):!1};
nrw=function(p){return p?p.tagName==="IMG"&&p.classList.contains("emoji"):!1};
G5P=function(p,J,S){if(!p)return null;var H=M2(p);if(H&&S)return J=p.pathname.substring(p.pathname.indexOf("/channel/")+9),document.createTextNode("@"+J);if(H&&!S)return document.createTextNode("");if(nrw(p))return S=p.alt,p=p.dataset.emojiId,!p&&J&&(J=_.MB(J,S))&&J.isCustomEmoji&&(p=J.emojiId),p?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+p+">"):document.createTextNode(S);H=p.cloneNode(!1);for(var M=0;M<p.childNodes.length;++M){var X=G5P(p.childNodes[M],J,S);X&&H.appendChild(X)}return H};
bXP=function(p){return p?M2(p)?p:bXP(p.lastChild):null};
mRM=function(p){return p?M2(p)?p:mRM(p.firstChild):null};
Fke=function(p){if(!p)return null;for(var J=p.previousSibling;J;)if(J.nodeType===Node.ELEMENT_NODE&&J.nodeName==="BR")J=J.previousSibling;else if(J.nodeType===Node.TEXT_NODE&&/\s+/.test(J.textContent))J=J.previousSibling;else break;(J=bXP(J))?p=J:p=(p=p.parentNode)?bXP(p.previousElementSibling):null;return p};
vrI=function(p){if(!p)return null;for(var J=p.nextSibling;J;)if(J.nodeType===Node.ELEMENT_NODE&&J.nodeName==="BR")J=J.nextSibling;else if(J.nodeType===Node.TEXT_NODE&&/\s+/.test(J.textContent))J=J.nextSibling;else break;return(J=mRM(J))?J:vrI(p.parentNode)};
fvr=function(p){var J=_.i6(),S=J.JSC$11499_getStartNode();if(!ZXP(S.parentNode))return null;J=J.JSC$11499_getStartOffset();if(S.nodeType===Node.TEXT_NODE){var H=_.ar(S,M2);if(H){if(p&&J===0||!p&&J===S.length)return H}else{if(p&&J===S.length)return!S||S.nodeName==="BR"||S.nextElementSibling&&_.Rt(S.nextElementSibling,"display")==="block"?null:mRM(S.nextElementSibling);if(!p&&J===0)return S?bXP(S.previousElementSibling):null}}if(S.nodeType===Node.ELEMENT_NODE)if(p){if(0<=J&&J<S.childNodes.length)return mRM(S.childNodes[J])}else if(0<
J&&J<=S.childNodes.length)return bXP(S.childNodes[J-1]);return null};
OXy=function(p,J,S){if(!p)return null;if(p.nodeType===Node.TEXT_NODE)if(S){var H=Fke(p);if(H&&!/^\s+\S/.test(p.wholeText.substr(0,J)))return H}else if((H=vrI(p))&&!/\S\s+/.test(p.wholeText.substr(J,p.wholeText.length)))return H;return p.nodeType===Node.ELEMENT_NODE?S?Fke(p.childNodes[J]):vrI(p.childNodes[J]):OXy(p.parentNode,J,S)};
AdI=function(p){if(p.hasChildNodes())switch(p.tagName){case "DIV":case "A":case "SPAN":var J="";for(p=p.firstChild;p;p=p.nextSibling)J+=AdI(p);return J;default:return""}else switch(p.nodeType){case 3:return p.textContent;default:return""}};
P_r=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"}};
z6N=function(p){return p.map(function(J){return{settingsRadioOptionRenderer:{title:_.p$(J.name),asideText:_.p$(J.approximateSize),id:P_r(J.format)}}})};
orM=function(p){if(p&&p.length!==0)return p.filter($Rr()).map(function(J){return{settingsRadioOptionRenderer:{title:J.name,asideText:J.approximateSize,id:P_r(J.formatType)}}})};
e6j=function(p){if(p)return p.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
WkP=function(p,J){p=new Set(p!=null?p:[]);if(p.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(p.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(p.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(p.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(p.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(J)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
Q1N=function(p){var J=p.indexOf("(");return J!==-1?p.substring(J+1,p.length-1):p};
_.ydf=function(p,J,S,H,M){S||(S=C_l);var X;(X=_.e(S.commandMetadata,_.i7))!=null&&X.url||(S=Error("Kl`"+JSON.stringify(S)),_.jD(S),S=C_l);S=_.T6.unsafeClone(S);X=_.pE(_.e(S.commandMetadata,_.i7).url,"search_query",p);_.xc(location.href,"sv")==="1"&&(_.e(S,_.by).params="EgOAAgE%3D",X=_.pE(X,"sv","1"));_.e(S,_.by)&&(_.e(S,_.by).query=p);X=X.replace(/%20/g,"+");_.e(S.commandMetadata,_.i7).url=X;M=_.z("desktop_enable_entity_suggest")?{entityMid:M}:{};_.vO().resolve(_.Ov).resolveCommand(S,{form:{tempData:Object.assign({},
{gs_l:J,oq:H!=null?H:p},M),isFromShorts:_.Ym()==="shorts"}})};
B7f=function(p){switch(p){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
s1M=function(p,J,S,H,M,X){var Z=_.T6.clone(URp);Z.locale=_.jn("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;Z.report={description:M||"<empty>"};M=_.jn("SBOX_SETTINGS",{});J=J.join(",");var n=Date.now();p={choice_cc:H,choice_id_cc:S,choices_sc:J,gl:M.REQUEST_DOMAIN,hl:M.REQUEST_LANGUAGE,query:p,time:n};X&&(p.choice_additional_comment_cc=X);_.$Pm(Z,p)};
grw=function(p){var J=new Map;J.set("authuser",_.jn("SESSION_INDEX","0"));return _.O9(p,J)};
h6$=function(p){var J;return _.G(function(S){switch(S.nextAddress){case 1:if(!p||!t_P(p))return S.return(null);J=null;switch(_.jn("INNERTUBE_CLIENT_NAME")){case "WEB":return S.jumpTo(2);case "WEB_REMIX":J=p.getPlayer()}S.jumpTo(3);break;case 2:return S.yield(p.getPlayerPromise(),4);case 4:J=S.yieldResult;S.jumpTo(3);break;case 3:return S.return(J)}})};
t_P=function(p){return["ytd-player","ytmusic-player"].includes(String(p.tagName||"").toLowerCase())};
DRp=function(p){p=Math.round(p);return p%2?p-1:p};
k5p=function(p){p=Math.round(p);return p%2===0?p-1:p};
N7I=function(p){var J,S,H;if(p=(J=p.createPlaylistDialogFormSchema)==null?void 0:(S=J.fieldSchemas)==null?void 0:(H=S.title)==null?void 0:H.validationSchema)for(J=[p.syncStep,p.asyncStep].filter(function(M){return M!==void 0}),J=_.K(J),S=J.next();!S.done;S=J.next()){S=S.value.rules;
if(!S)break;S=_.K(S);for(S=S.next();!S.done;S=S.next())return _.e(S.value,_.UXp)}};
dRe=function(p){var J,S,H;if(p=(J=p.createPlaylistDialogFormSchema)==null?void 0:(S=J.fieldSchemas)==null?void 0:(H=S.visibility)==null?void 0:H.validationSchema)for(J=[p.syncStep,p.asyncStep].filter(function(M){return M!==void 0}),J=_.K(J),S=J.next();!S.done;S=J.next()){S=S.value.rules;
if(!S)break;S=_.K(S);for(H=S.next();!H.done;H=S.next())if(H=_.e(H.value,T7f))return J=void 0,(J=H.translations)==null?void 0:J.visibilityNotValidErrorMessage}};
uhP=function(){var p,J;return(J=(p=_.vO().resolve(_.F9(_.uC)))==null?void 0:p())!=null?J:!1};
lvN=function(p){var J=21;if(!p)return J;J+=p.headerTitle?27:0;J+=p.headerTitle&&p.hasHeaderActionHeader?4:0;return J+=p.headerTitle&&p.headerSubtitle?16:0};
V_y=function(p){var J=0;if(!p)return J;J+=p.hasFooterPrimaryButton||p.hasFooterSecondaryButton?48:0;J+=p.footerTrailingLabel||p.footerLeadingLabel?30:0;return J+=p.hasFooterPrimaryButton||p.hasFooterSecondaryButton||!p.footerTrailingLabel&&!p.footerLeadingLabel?0:12};
qjP=function(p){var J=new _.sv,S=p;return{subscribe:function(H){J.subscribe("changed",H)},
dispatch:function(H,M){var X=S;if(H==="Touch Start")S=Object.assign({},X,{isAnimating:!1,initialY:M.event.touches[0].clientY});else if(H==="Touch Move"){H=M.contentScrollable?-1*(X.initialY-24):0;var Z,n=(Z=M.headerDivHeight)!=null?Z:lvN(M.header),b;Z=(b=M.footerDivHeight)!=null?b:V_y(M.footer);b=Math.min(M.fullContentWrapperHeight,M.heightMap[M.contentWrapperId]+n-Z);S=Object.assign({},X,{currentY:Math.max(H,M.event.touches[0].clientY-X.initialY),maxHeightForContentWrapper:Math.min(b,Math.max(0,
(X.isFullScreen?b:M.contentWrapperHeight)-X.currentY))})}else S=H==="Snap To Full Screen"?Object.assign({},X,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:M.maxHeight}):H==="Snap To Neutral Position"?Object.assign({},X,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:M.maxHeight}):H==="Close Sheet"?Object.assign({},X,{isAnimating:!0,currentY:M.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:M.maxHeight}):X;J.publish("changed",S)}}};
avp=function(){_.vO().resolve(_.Sd).closeSheet()};
Err=function(p){var J,S,H,M,X,Z,n,b,F,f,O;return{headerTitle:(J=p.headerTitle)==null?void 0:J.call(p),headerSubtitle:(S=p.headerSubtitle)==null?void 0:S.call(p),headerActionHeader:p.headerActionHeader,footerPrimaryButton:p.footerPrimaryButton,footerSecondaryButton:p.footerSecondaryButton,footerButtonType:(H=p.footerButtonType)==null?void 0:H.call(p),footerLeadingLabel:(M=p.footerLeadingLabel)==null?void 0:M.call(p),footerTrailingLabel:(X=p.footerTrailingLabel)==null?void 0:X.call(p),shouldShowIcons:(Z=
p.shouldShowIcons)==null?void 0:Z.call(p),skipContentClick:(n=p.skipContentClick)==null?void 0:n.call(p),additionalClassName:(b=p.additionalClassName)==null?void 0:b.call(p),onClosedCallback:p.onClosedCallback,focusOnClose:(F=p.focusOnClose)==null?void 0:F.call(p),isDisabled:(f=p.isDisabled)==null?void 0:f.call(p),disabledCommand:(O=p.disabledCommand)==null?void 0:O.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()}};
Yjp=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""}};
rdM=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""}};
j1r=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""}};
wjU=function(p,J,S){J.forEach(function(H){_.VK(_.vO().resolve(_.c3),H)});
_.IV(p,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",S])};
Lkw=function(p,J,S,H){var M=_.e(S,_.Ou).commandLifeCycleConfig;M&&M.onStartCommand&&_.JP(p,[M.onStartCommand],J);_.k8(J);var X=_.un.instance;X&&_.ln(X,S)?_.VI(X,S,H).then(function(Z){if(!Z||(Z==null?0:Z.error))return Z=_.e(S,_.Ou).serializedTransactionFlowLoggingParams,_.NB(J),_.o4(new XO("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Z));_.NB(J);return{data:Z}}).then(function(Z){_.NB(J);
xRI(Z.data);var n=Z.data.command;n&&_.JP(p,[n],J);n=cd$(S,Z.data);if(!n){var b=Z.data;Z=!1;if(b&&b.command&&_.e(b.command,_.H9)){var F;b=((F=_.e(b.command,_.H9))==null?void 0:F.commands)||[];for(F=0;F<b.length;F++)if(_.e(b[F],_.ZFd)){Z=!0;break}}Z||_.cR('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!n&&M&&M.onSuccessCommand?_.JP(p,[M.onSuccessCommand],J):n&&M&&M.onFailureCommand&&_.JP(p,[M.onFailureCommand],J)},function(){_.NB(J);
M&&M.onFailureCommand&&_.JP(p,[M.onFailureCommand],J);IvP(S)}):_.jD(Error("Wl"),"ERROR")};
pzP=function(p,J,S){var H=[J];S&&H.push(S);return _.pl(p,H).then(function(M){var X=_.e(J,_.Ou).serializedTransactionFlowLoggingParams,Z=M.data,n=cd$(J,Z);n?M=_.o4(new XO(n,X)):xRI(Z);return M},function(){var M=_.e(J,_.Ou).serializedTransactionFlowLoggingParams;
IvP(J);return _.o4(new XO("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",M))})};
cd$=function(p,J){p=_.e(p,_.Ou).serializedTransactionFlowLoggingParams;var S=null;switch(J.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":S="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":S="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":S="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}S?_.qc(S,p):JHM(p);return S};
IvP=function(p){_.qc("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.e(p,_.Ou).serializedTransactionFlowLoggingParams)};
xRI=function(p){if(p.trackingParams){var J=_.C1(),S=_.Wf();J&&S&&_.kO(J,S,_.Az(p.trackingParams))}};
Jel=function(p,J,S){var H=_.un.instance,M=_.hev(_.jn("YPC_MB_URL")),X=(new _.gMw).init(),Z=_.t44(),n=_.e(S,_.X2m).languageCode;n===void 0?_.jD(Error("Ii"),"ERROR"):_.kf([X,M]).then(function(){var b={ctk:_.w_.payments.business.integration.ClientTokenFactory.createClientToken(n,Z)};H&&_.ln(H,S)?_.VI(H,S,b).then(function(F){return{data:F}}).then(function(F){_.cf(J,"yt-service-request-completed",F);
F.code!=="ERROR"&&(F=F.data.command)&&_.JP(p,[F],J)}):_.jD(Error("Wl"),"ERROR")})};
MEN=function(p,J,S,H){var M=_.un.instance;M&&_.ln(M,S)?_.VI(M,S,H).then(function(X){return{data:X}}).then(function(X){Sne(p,J,S,X)},function(){HnM(S)}):(M=_.vO().resolve(_.F9(_.Or)))&&M.requestDataForServiceEndpoint(S,H).then(function(X){Sne(p,J,S,X)},function(){HnM(S)})};
Sne=function(p,J,S,H){_.cf(J,"yt-service-request-completed",H);if(H.code&&H.code=="ERROR")HnM(S);else{(H=H.data.commands)&&_.JP(p,H,J);var M;(p=(M=_.e(S,_.GKd))==null?void 0:M.serializedYpcPauseFlowLoggingParams)&&p&&_.rP("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",p)}};
HnM=function(p){var J;(p=(J=_.e(p,_.GKd))==null?void 0:J.serializedYpcPauseFlowLoggingParams)&&p&&_.rP("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",p,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
R_U=function(p,J,S){var H=_.un.instance;H&&_.ln(H,S)?_.VI(H,S).then(function(M){return{data:M}}).then(function(M){XzP(p,J,S,M)},function(){inN(S)}):(H=_.vO().resolve(_.F9(_.Or)))&&H.requestDataForServiceEndpoint(S).then(function(M){XzP(p,J,S,M)},function(){inN(S)})};
XzP=function(p,J,S,H){_.cf(J,"yt-service-request-completed",H);H.code&&H.code=="ERROR"?inN(S):((H=H.data.commands)&&_.JP(p,H,J),(p=_.e(S,_.bFv).serializedYpcResumeFlowLoggingParams)&&p&&_.rP("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",p))};
inN=function(p){(p=_.e(p,_.bFv).serializedYpcResumeFlowLoggingParams)&&p&&_.rP("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",p,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
KEP=function(p){p=p===void 0?{}:p;_.vO().resolve(_.Va$).showFeedbackDialog(p.customProductData,p.feedbackContent,p.onFeedbackSubmitted,p.bucket)};
Znj=function(p){p=p===void 0?{}:p;_.vO().resolve(_.Va$).showHelpDialog(p.helpContext,p.articleId,p.productData)};
nf$=function(){Znj()};
GiU=function(){KEP()};
mve=function(p,J,S){var H,M,X,Z,n,b,F;return _.G(function(f){switch(f.nextAddress){case 1:H=_.e(p,bny);if((M=H)==null?0:M.productId){b={productId:H.productId,bucket:H.bucket,enableAnonymousFeedback:(n=H.enableAnonymousFeedback)!=null?n:!0,allowNonLoggedInFeedback:!0};F={feedbackChoice:S.feedbackChoice};if(!_.z("web_collect_offline_state")){f.jumpTo(8);break}_.oI(f,9);return f.yield(nmP(F),11)}Z={bucket:(X=H)==null?void 0:X.bucket};if(!_.z("web_collect_offline_state")){f.jumpTo(4);break}Z.customProductData=
{};_.oI(f,5);return f.yield(nmP(Z.customProductData),7);case 7:_.X$(f,4);break;case 5:_.BZ(f);case 4:KEP(Z);f.jumpTo(0);break;case 11:_.X$(f,8);break;case 9:_.BZ(f);case 8:_.P5w(F),_.AI4("GFEEDBACK",F),H.productId==="5295751"&&(F.client_attestation=Number(_.jn("CATSTAT",0))),H.productId==="5295751"&&(F.client_time=Date.now()/1E3/3600),H.productId==="5295751"&&(F.original_playback_id=_.p8p||""),_.$Pm(b,F),_.UK(f)}})};
FEp=function(p){if(p=_.e(p,_.eFt)){var J={bucket:p.bucketIdentifier};p.additionalDatas&&(J.customProductData={},p.additionalDatas.forEach(function(S){if(S=S.userFeedbackEndpointProductSpecificValueData)J.customProductData[S.key]=S.value}));
KEP(J)}};
vfP=function(p){var J=_.XK.getInstance();var S=_.Kl("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var H=_.Kl("DELETE",void 0,"Delete"),M=_.Kl("CANCEL",void 0,"Cancel");S=mnP(S,void 0,H,M,{signal:"DELETE_ALL_DOWNLOADS"});_.YD(J,[{openPopupAction:S}],p)};
AeP=function(){return _.G(function(p){return p.nextAddress==1?p.yield(_.vO().resolve(_.Aj),2):p.yield(OnP(),0)})};
PVN=function(p){var J,S;return _.G(function(H){return H.nextAddress==1?(S=(J=_.e(p,_.S5))==null?void 0:J.targetId)?H.yield(_.vO().resolve(_.Aj),3):H.jumpTo(0):H.yield(_.vO().resolve(_.Ox).deleteVideo(S),0)})};
$vl=function(p){var J,S;return _.G(function(H){return H.nextAddress==1?(S=(J=_.e(p,_.S5))==null?void 0:J.targetId)?H.yield(_.vO().resolve(_.Aj),3):H.jumpTo(0):H.yield(z_P(_.vO().resolve(_.Ox),S),0)})};
e_N=function(p){var J,S;return _.G(function(H){return(S=(J=_.e(p,_.S5))==null?void 0:J.targetId)?H.yield(ofI(S),0):H.jumpTo(0)})};
QqU=function(){_.z("kevlar_woffle_refresh_dl_load_killswitch")||WEj()};
yer=function(){_.z("kevlar_woffle")&&_.Te.instance&&CVp()};
Uvy=function(p){var J;if((J=_.e(p,_.mV))==null||!J.videoId)return!1;BxI(_.vO().resolve(_.Ox),_.e(p,_.mV),p.clickTrackingParams);return!0};
gfp=function(p){var J;if((J=_.e(p,_.FJ))==null||!J.playlistId)return!1;sqI(_.vO().resolve(_.Ox),_.e(p,_.FJ),p.clickTrackingParams);return!0};
h_$=function(p){var J=_.e(p,_.r0U);(J==null?void 0:J.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(J==null?void 0:J.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||tE$(_.vO().resolve(_.Ox),_.e(p,_.r0U))};
kiN=function(p){p=_.e(p,_.oN4);var J;(p==null?0:(J=p.actions)==null?0:J.length)&&Dvr(p)};
dvj=function(p){var J,S;return _.G(function(H){J=_.e(p,Nx$);return(S=J)!=null&&S.localWatchHistoryCommandType?H.yield(TxP(J),0):H.return()})};
loe=function(){return _.G(function(p){return _.z("kevlar_enable_download_to_mobile")?p.yield(uvU(),0):p.return()})};
VEy=function(p){setTimeout(function(){requestAnimationFrame(p)},80)};
qnr=function(p){return Object.entries(p).map(function(J){return J.join(":")}).join(";")};
EfN=function(p){var J,S,H;_.G(function(M){if(M.nextAddress==1)return M.yield(aoI(),2);J=M.yieldResult;S=_.R4.instance;switch(J){case "granted":H=p.getLocationCommand;break;case "denied":H=p.openDeniedDialogAction;break;case "prompt":H=p.openCollectionDialogAction;break;default:H=p.openCollectionDialogAction}H&&S.resolveCommand(H);_.UK(M)})};
aoI=function(){var p,J;return _.G(function(S){if(S.nextAddress==1)return p="prompt",navigator.permissions?S.yield(navigator.permissions.query({name:"geolocation"}),3):S.jumpTo(2);S.nextAddress!=2&&(J=S.yieldResult,p=J.state);return S.return(p)})};
reI=function(){_.G(function(p){return p.yield(_.YnU(),0)})};
jqp=function(){var p,J,S;return _.G(function(H){if(H.nextAddress==1)return p=_.vO().resolve(_.Ac),p?H.yield(_.VI(p,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.xQ(Error("Zl")),H.return(void 0));if(J=H.yieldResult){if(J.errorMetadata)return _.xQ(Error("$l`"+J.errorMetadata.status+"`"+J.error)),H.return(void 0);S=J.datasyncIds;_.Jyj=S.length;return H.return(S)}_.xQ(Error("am"));return H.return(void 0)})};
wzM=function(){jqp().then(function(p){p&&(g2e(p),HGP(p),Cnj(p),bGw(p))})};
xvI=function(p){_.wg.addLowPriorityJob(function(){var J,S,H,M,X;return _.G(function(Z){switch(Z.nextAddress){case 1:if(_.z("ytidb_clear_optimizations_killswitch")){Z.jumpTo(2);break}J=_.ka("clear");if(J.startsWith("V")&&J.endsWith("||")){var n=[J];g2e(n);HGP(n);Cnj(n);bGw(n);return Z.return()}S=ymj();H=m6N();return Z.yield(MHp(),3);case 3:return M=Z.yieldResult,Z.yield(trw(),4);case 4:if(X=Z.yieldResult,!(S||H||M||X))return Z.return();case 2:p.isNetworkAvailable()?wzM():p.listenOnce("publicytnetworkstatus-online",
wzM),_.UK(Z)}})})};
i2=function(p){p={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.aR(p)}}}};_.R4.instance&&_.R4.instance.resolveCommand(p)};
cef=function(p){if(p){var J=_.bC();_.TZ(J,3854,void 0,{layer:0,parentLayer:4});switch(p){case 1:var S=238708;break;case 2:S=238715;break;case 3:S=238710;break;case 6:S=238709}S&&(p=_.G$(J,{veType:S}))&&_.lq(J,p)}};
Iof=function(p){if(p){var J=_.bC();_.TZ(J,3854,void 0,{layer:0,parentLayer:4});switch(p){case 1:var S=238714;break;case 2:S=238711;break;case 8:S=238709;break;case 7:S=238713;break;case 3:case 4:case 5:S=238712}S&&(p=_.G$(J,{veType:S}))&&_.lq(J,p)}};
LEM=function(p){switch(p.latencyType){case 0:_.W9("consent_primitive_flow");_.Qf("cpit",p.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Qf("cpist",p.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Qf("cprtif",p.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Qf("cprtli",p.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Qf("cprt",p.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Qf("cpdt",p.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Qf("cpjct",p.timestampEpochMillis,"consent_primitive_flow")}};
GqU=function(p,J){var S,H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q;return _.G(function(w){switch(w.nextAddress){case 1:_.oI(w,2);(H=(S=_.e(p,pdN))==null?void 0:S.serializedConsentRequest)||(H=(M=_.e(p,JJl))==null?void 0:M.serializedConsentRequest);H&&(X=Ssp(_.cg(H)));if(X===void 0)return w.return();Z=HNp(X);Z.latencyCallback=LEM;J&&MbI(Z,function(){J.then(function(I){I.pauseVideo();(new Xdy).increment()})});
return((n=_.e(p,pdN))==null?void 0:n.consentAction)==="CONSENT_ACTION_PREWARM"||((b=_.e(p,JJl))==null?void 0:b.consentAction)==="CONSENT_ACTION_PREWARM"?w.yield(iN$(Z),5):w.yield(RSw(Z),6);case 6:F=w.yieldResult;f=_.$C(F,Rz);if(f===1){if(((O=_.tF(F,KbN,1,Rz))==null?void 0:_.Uw(O,1))===1||((A=_.tF(F,KbN,1,Rz))==null?void 0:_.Uw(A,1))===2||((P=_.tF(F,KbN,1,Rz))==null?void 0:_.Uw(P,1))===3)_.e(p,JJl)?i2(_.Kl("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
i2(_.Kl("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));cef((W=_.tF(F,KbN,1,Rz))==null?void 0:_.Uw(W,1),_.Zd(F,ZNI,3,_.GN()))}else f===2?(((y=n0$(F))==null?void 0:_.Uw(y,1))===5?_.e(p,JJl)?i2(_.Kl("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):i2(_.Kl("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((t=n0$(F))==null?void 0:_.Uw(t,1))===1||((D=n0$(F))==null?void 0:_.Uw(D,1))===4?
i2(_.Kl("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((k=n0$(F))==null?void 0:_.Uw(k,1))===7&&((E=X)==null?void 0:(a=_.PB(E,Kp,4))==null?void 0:_.Uw(a,4))!==1&&i2(_.Kl("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Iof((q=n0$(F))==null?void 0:_.Uw(q,1))):i2(_.Kl("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));w.jumpTo(5);break;case 5:_.X$(w,0);break;case 2:_.BZ(w),i2(_.Kl("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.UK(w)}})};
m7w=function(){if(!bNI.has("Worker")){bNI.set("Worker",!0);var p={api:"BROWSER_API_WEB_WORKER"};p.available="Worker"in window?!0:!1;_.YQ("apiTest",p)}};
Fbf=function(p){return typeof p==="undefined"?"-1":String(Math.ceil(p/1048576))};
AJr=function(p,J){v0l(new fIP(_.e(J,ONI).addToken,_.e(J,ONI).commonToken)).then(function(){_.cf(p,"yt-invoke-instrument-manager-action-completed")},function(S){_.cf(p,"yt-invoke-instrument-manager-action-error",S)})};
Ze=function(){return _.jn("HTML_DIR")==="rtl"};
Plf=function(){var p,J;return(J=(p=window).matchMedia)==null?void 0:J.call(p,"(prefers-reduced-motion: reduce)").matches};
zSy=function(p){var J=_.vO().resolve(_.F9(_.cD));if(J&&J.isAnyTransitionEnabled){var S={};J.viewTransitionCoordinator.registerElement(p,(S.slide="miniplayer-page-transition",S["lockup-to-watch"]="miniplayer-page-transition",S["learning-journey"]="miniplayer-page-transition",S))}};
$7j=function(p,J,S){return{horizontalAlignment:p.x+S.width/2<J.width/2?"west":"east",verticalAlignment:p.y+S.height/2<J.height/2?"north":"south"}};
eSe=function(p,J,S,H,M){M=M===void 0?new _.uI(0,0):M;p=o0r(p,J,S,H,!1);return new _.uI(p.x+M.x,p.y+M.y)};
o0r=function(p,J,S,H,M){M=(M===void 0?0:M)?400:0;return new _.uI(p==="west"?16+(Ze()?M:0):S.width-H.width-16-(Ze()?0:M),J==="north"?16:S.height-H.height-16)};
WbU=function(p,J){var S=0;p&&(S+=76);J&&(S+=285);return S};
QEN=function(p){return _.TF(p)};
Cll=function(p){var J=1;p=p.split(":");for(var S=[];J>0&&p.length;)S.push(p.shift()),J--;p.length&&S.push(p.join(":"));return S};
yJI=function(p){var J=new _.Pz;return _.hF(J,11,p)};
B$$=function(p){var J={};p=p.getAllResponseHeaders().split("\r\n");for(var S=0;S<p.length;S++)if(!_.Rv(p[S])){var H=Cll(p[S]),M=H[0];H=H[1];if(typeof H==="string"){H=H.trim();var X=J[M]||[];J[M]=X;X.push(H)}}return _.T6.map(J,function(Z){return Z.join(", ")})};
fpr=function(p,J){return p.JSC$9951_xhr_?p.JSC$9951_xhr_.getResponseHeader(J):null};
U7I=function(p,J){if(p.isDisposed())throw Error("Ea");p.vY.pT("n");var S=_.aq(p.vY,function(){return p.f0j([J.jr,J.az5,J.p9C,J.vMW])},"n");
p.vY.rkW(S.length);p.vY.z9();return S};
sEp=function(p,J,S){Array.isArray(S)||(S=[String(S)]);_.epE(p.JSC$10187_queryData_,J,S);return p};
CVp=function(){var p=_.Te.instance;_.G(function(J){return p.deferredInstallPrompt?J.yield(p.deferredInstallPrompt.prompt(),0):J.jumpTo(0)})};
g0P=function(p,J,S){if(_.qW(p))_.MV(p,J,S);else for(p=_.kvM(p);;){var H=p.next();if(H.done)break;J.call(S,H.value,void 0,p)}};
tbp=function(p,J){var S=[];g0P(J,function(H){try{var M=_.Wh.prototype.getWrapper.call(this,H,!0)}catch(X){if(X=="Storage: Invalid value was encountered")return;throw X;}M===void 0?S.push(H):_.Dq8(M)&&S.push(H)},p);
return S};
mre=function(p,J){tbp(p,J).forEach(function(S){_.Wh.prototype.remove.call(this,S)},p)};
hSl=function(p){var J=_.ZN;J._minimumZ=Math.max(J._minimumZ,p)};
D7j=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];kqU=function(p,J){_.iW(p.vm);p.vm=J};
N$N=function(p,J,S,H){p.setState(5);var M=!!p.xnW&&D7j.includes(_.nQ(p.xnW)||"");try{var X=new _.En({program:J,globalName:S,kwh:{disable:!_.z("att_web_record_metrics")||!_.z("att_skip_metrics_for_cookieless_domains_ks")&&M,yB:"aGIf"}});X.xMH.then(function(){p.setState(6);H&&H(J)});
kqU(p,X)}catch(Z){p.setState(7),Z instanceof Error&&_.xQ(Z)}};
T$f=function(p,J,S,H,M,X){var Z=Z===void 0?"trayride":Z;S?(p.setState(2),_.h1(_.kc(S),function(){if(window[Z])N$N(p,H,Z,M);else{p.setState(3);var n=_.d3X(S),b=document.getElementById(n);b&&(_.Q4k(n),b.parentNode.removeChild(b));_.xQ(new _.TG("BL:ULB",S))}},X)):J?(X=_.Q0("SCRIPT"),J instanceof _.HZ?_.i0(X,J):X.textContent=J,X.nonce=_.S0(document),document.head.appendChild(X),document.head.removeChild(X),window[Z]?N$N(p,H,Z,M):(p.setState(4),_.xQ(new _.TG("BL:ULBJ")))):_.xQ(new _.TG("BL:ULV"))};
d7$=function(){this.state=1;this.vm=null;this.xnW=void 0};
_.R=d7$.prototype;_.R.initialize=function(p,J,S,H){this.xnW=H;if(p.program){var M;H=(M=p.interpreterUrl)!=null?M:null;if(p.interpreterSafeScript)M=_.rcs(p.interpreterSafeScript);else{var X;M=(X=p.interpreterScript)!=null?X:null}p.interpreterSafeUrl&&(H=_.x_(p.interpreterSafeUrl).toString());T$f(this,M,H,p.program,J,S)}else _.xQ(Error("sf"))};
_.R.isInitialized=function(){return!!this.vm};
_.R.getState=function(){return this.state};
_.R.isLoading=function(){return this.state===2};
_.R.invoke=function(p){p=p===void 0?{}:p;var J;this.vm?J=U7I(this.vm,{jr:p}):J=null;return J};
_.R.dispose=function(){kqU(this,null);this.setState(8)};
_.R.setState=function(p){this.state=p};
var ufU=function(p,J){return p.vm.snapshot(J)},lIf=function(p,J){var S=_.PO("botguard_async_snapshot_timeout_ms",3E3);
J=J===void 0?{}:J;S=S===void 0?3E3:S;return p.vm?new Promise(function(H,M){var X=!1,Z=_.wg.addJob(function(){X=!0;M(Error("tf"))},1,S);
p.vm?ufU(p,{jr:J}).then(function(n){_.wg.cancelJob(Z);X||H(n)}).catch(function(n){_.wg.cancelJob(Z);
X||M(n)}):(_.wg.cancelJob(Z),H(null))}):Promise.resolve(null)},VbP=["att/log"],C_l;
C_l={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var qsI={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},aIp=function(p,J){return _.mg(p,{mode:"readwrite",enableRetries:!0},function(S){return _.Oqw(S,J,"settingEntity")})},E0P=function(p,J,S){return _.mg(p,{mode:"readonly",
enableRetries:!0},function(H){return _.DCn(H,J,S)})},YsU=function(p){if(!p.storage)return!1;
a:{if(p.storage){try{var J=p.storage.get("TLPQtimestamp")}catch(S){}p=Number(J);if(!isNaN(p))break a}p=void 0}return p?Date.now()-p<864E5:!1},rJf=function(p){if(p.storage){try{var J=p.storage.get("TLPQindex")}catch(S){}p=Number(J);
if(!isNaN(p))return p}},jEP=function(p,J){p.queueProxy&&J.forEach(function(S){if(S.videoId&&S.trackingParams&&p.queueProxy instanceof _.Gk){var H=_.C1();
p.queueProxy.attributionData.set(S.videoId,{enqueueingVe:_.Az(S.trackingParams).getAsJson(),enqueueingCsn:H?H:void 0,clientEnqueueingTimeMs:Math.floor((0,_.fO)()).toString()})}})},wdl=function(p){var J=_.A$4(p);
J!=p.currentSnapState_&&(p.currentSnapState_=J,p.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},np=function(p){this.JSC$13376_networkManager_=p;
this.partCallbacks_=[]};
np.prototype.getCacheKeyForEndpoint=function(p){return _.X2k(p,!1)};
np.prototype.onPartsCallback_=function(p){this.partCallbacks_.forEach(function(J){p&&J(p)})};
var Gn=function(p,J,S){np.call(this,p);this.player_=J;this.autoplayData_=S};
_.Q(Gn,np);Gn.prototype.getCacheKeyForEndpoint=function(p){return _.X2k(p,!!this.autoplayData_)};
Gn.prototype.getTempData=function(p,J){J=J.timeBeforeNextVideo;p={itct:p.clickTrackingParams,lact:_.AV(),pbis:J,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(p.autonav=1);return p};
Gn.prototype.getXhrParams=function(p){return Object.assign({pbj:"prefetch"},p)};
Gn.prototype.getParams=function(p){p={frags:p.fragmentsRequested.join(",")};_.z("kevlar_droppable_prefetchable_requests")&&(p.prefetch=1);return p};
var x7P=function(p){p.playerEvents_.forEach(function(J){p.player.removeEventListener(J.eventName,J.callback)});
p.playerEvents_.length=0},cJp=function(p,J,S){this.player=p;
this.JSC$13386_taskManager=J;this.prefetchDelay=S;this.completionResolver_=null;this.playerEvents_=[]};
cJp.prototype.start=function(){var p=this;this.completionResolver_=_.qr();_.Nv(this.completionResolver_.promise,function(){x7P(p);p.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var IIf=function(p,J,S){p.player.addEventListener(J,S);p.playerEvents_.push({eventName:J,callback:S})},LbN={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},plj={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},JG$=function(p,J,S){cJp.call(this,p,J,S);this.cueId_="playbackTrigger-"+Math.random()};
_.Q(JG$,cJp);
JG$.prototype.prepareTrigger=function(p){var J=this,S=this.player.getDuration(),H=this.player.getVideoData(),M=H.isLive&&H.hasProgressBarBoundaries;if(M&&H.progressBarEndPositionUtcTimeMillis){var X=H.progressBarEndPositionUtcTimeMillis/1E3;isNaN(X)||(S=X)}var Z=0;this.prefetchDelay>=0?M?H.progressBarStartPositionUtcTimeMillis&&(H=H.progressBarStartPositionUtcTimeMillis/1E3,isNaN(H)||(Z=H+this.prefetchDelay)):Z=this.prefetchDelay:Z=S+this.prefetchDelay;M?this.player.addUtcCueRange(this.cueId_,Z,S):
this.player.addCueRange(this.cueId_,Z,S);_.Nv(p.promise,function(){J.player.removeCueRange(J.cueId_)});
IIf(this,"onCueRangeEnter",function(n){n==J.cueId_&&p.resolve(S-Z)})};
var SEN=function(p,J){p.fragmentConfiguration_[J].requiredKeys.every(function(S){return!!p.prefetchedData_[S]})&&(p.validatedFragments_.push(J),J=p.missingFragments_.indexOf(J),J!==-1&&p.missingFragments_.splice(J,1))},HiN=function(p){p.prefetchedFragments_.forEach(function(J){SEN(p,J)})},M2I=function(p,J,S){this.pageFragments_=p;
this.prefetchedFragments_=J;this.fragmentConfiguration_=plj;this.prefetchedData_=S;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;HiN(this)},XlN=function(){},ii$=function(p){this.JSC$13400_playlistManager_=p};
_.Q(ii$,XlN);ii$.prototype.getPrefetchEndpoint=function(){return this.JSC$13400_playlistManager_.getAutoplayEndpoint()};
var REr=function(p){this.autonavEndpoints_=p};
_.Q(REr,XlN);REr.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var K6P=function(p,J,S,H,M){this.autonavEndpoints=p;this.foregroundTrigger=J;this.backgroundTrigger=S;this.pageType=H;this.isInPlaylist=M},Zi$=function(p,J){if(p.webPrefetchData&&p.webPrefetchData.navigationEndpoints&&p.webPrefetchData.navigationEndpoints.length){p=p.webPrefetchData.navigationEndpoints;
var S=_.e(p[0],_.lj);if(S.watchEndpointSupportedPrefetchConfig&&S.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var H=S.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;S=H.playbackRelativeSecondsPrefetchCondition;S=typeof S==="number"&&Math.abs(S)<J.videoDuration?S:void 0;H=H.countdownUiRelativeSecondsPrefetchCondition;H=typeof H!=="number"||_.z("prefetch_job_config_cleanup_ks")&&J.inPlaylist?void 0:H;if(typeof H==="number")return new K6P(p,J.makeUpNextTrigger(H),J.makePlaybackTrigger(H),
"watch",J.inPlaylist);if(typeof S==="number")return new K6P(p,J.makePlaybackTrigger(S),null,"watch",J.inPlaylist)}}},nDe=function(p){return p.prefetchJobConfig_.backgroundTrigger?_.c5(_.kbL)()==0?p.prefetchJobConfig_.backgroundTrigger:p.prefetchJobConfig_.foregroundTrigger:p.prefetchJobConfig_.foregroundTrigger},GTI=function(p){_.gx(document,"visibilitychange",p.onVisibilityChange_,!1,p)},b2=function(p){np.call(this,p)};
_.Q(b2,np);b2.prototype.getCacheKeyForEndpoint=function(p){return np.prototype.getCacheKeyForEndpoint.call(this,p)};
b2.prototype.getTempData=function(){return{}};
b2.prototype.getXhrParams=function(p){return p};
b2.prototype.getParams=function(){return{}};
var biI=function(p,J,S){var H=p.prefetchDelay*1E3;if(Math.abs(H)>J)S.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var M=H,X=J-H;H<0&&(M=J+H,X=Math.abs(H));var Z=p.JSC$13386_taskManager.addJob(function(){S.resolve(X/1E3)},10,M);
S.promise.thenCatch(function(){p.JSC$13386_taskManager.cancelJob(Z)})}},mPy=function(p,J,S){cJp.call(this,p,J,S)};
_.Q(mPy,cJp);mPy.prototype.prepareTrigger=function(p){var J=this;IIf(this,"onAutonavCoundownStarted",function(S){biI(J,S,p)})};
var F6P=function(p){p.pendingPrefetchJob_&&(p.pendingPrefetchJob_.cancel(),p.pendingPrefetchJob_=null)},vDl=function(p,J,S){if(!p.triggeredTargets.has(J)){var H=_.Nao(p,J);
H.action=S;_.kR8(p,J,H)}},fzw=function(p){_.QN8();
_.rat("cpt")&&_.xQ(Error("lh"));_.Hg.requestAnimationFrame(function(){_.Hg.setTimeout(function(){_.Qf("cpt");var J=_.B9("vpl"),S=_.B9("cpt");J&&S&&_.Qf("ol",Math.max(J,S))})});
try{_.Qf("fr_s"),p()}catch(J){_.jD(J)}_.Hg.requestAnimationFrame(function(){_.Qf("bcp")})},Oi$=function(p,J){p.serviceEndpointHandlers.push(J)},AGP=function(p,J){J=p.pendingPages_.indexOf(J);
J>-1&&p.pendingPages_.splice(J,1)},Prr=function(p,J){var S=_.LWU.indexOf(J);
S>-1&&_.LWU.splice(S,1);p.targetPage_==J?(p.abort(),_.Jb8(p)):AGP(p,J)},zEf=function(p,J,S,H){J={challenge:J};
S&&(J.webResponse=S);return _.mX(p.innertubeTransportService,J,_.jx(VbP),H)},$PM=function(p,J,S){if(!J.challenge)throw Error("qi");
if(J.botguardData&&J.botguardData.program){var H=new d7$;H.initialize(J.botguardData,function(){lIf(H,{atr_challenge:J.challenge}).then(function(M){if(!M)throw Error("ri");return zEf(p,J.challenge,M,S)}).catch(function(M){_.xQ(M);
return zEf(p,J.challenge,void 0,S)})},void 0)}else zEf(p,J.challenge,void 0,S)},oDf=function(p,J,S){var H={};
J.ids&&(H.ids=[].concat(_.dW(J.ids)));J.engagementType&&(H.engagementType=J.engagementType);return _.mX(p.innertubeTransportService,H,_.jx(_.cOp),S).then(function(M){if(!M)throw new _.TG("GetAttestationChallenge returned falsy");$PM(p,M,S)}).thenCatch(function(M){_.jD(M)})},eEj=function(p,J,S){return new _.UI(function(H,M){var X;
return _.G(function(Z){if(Z.nextAddress==1){var n=Z.yield,b=J.engagementType,F=J.ids,f={};F=_.K(F!=null?F:[]);for(var O=F.next();!O.done;O=F.next())O=O.value,O.encryptedVideoId?f.encryptedVideoId=O.encryptedVideoId:O.externalChannelId?f.externalChannelId=O.externalChannelId:O.commentId?f.commentId=O.commentId:O.externalOwnerId?f.externalOwnerId=O.externalOwnerId:O.artistId?f.artistId=O.artistId:O.playlistId?f.playlistId=O.playlistId:O.externalPostId?f.externalPostId=O.externalPostId:O.shareId&&(f.shareId=
O.shareId);return n.call(Z,bII(b,f),2)}X=Z.yieldResult;if(!X.challenge)return _.xQ(Error("si")),oDf(p,J,S).then(H,M),Z.return();n=X;b={challenge:n.challenge};b.webResponse=n.webResponse;b.engagementType=J.engagementType;b.ids=J.ids;_.mX(p.innertubeTransportService,b,_.jx(VbP),S).then(H,M);_.UK(Z)})})},jhU=function(p,J){var S,H,M,X;
_.G(function(Z){if(Z.nextAddress==1){S=_.e(J,_.c3n);if(!(S&&S.listId&&p.response&&p.response.playingVideoId)||p.listId!==S.listId)return Z.return();p.index===void 0&&(p.index=0);return Z.yield(_.zQ8(p.JSC$13239_playlistNetworkManager,S.listId,p.index,p.response.playingVideoId),2)}H=Z.yieldResult;if(!H)return Z.return();M=H.playlistId;X=H.playlistPanelRenderer;p.setPlaylistData(M,X,H.autoplayRenderer);_.UK(Z)})},W6P=function(p,J,S){var H=p.getParams(S),M=_.Sl4(J,H),X=p.getTempData(J,S);
X.endpoint=JSON.stringify(J);_.z("enable_unknown_lact_fix_on_html5")&&(_.vO().resolve(_.Am),X.lact=_.AV());var Z={headers:{"X-YouTube-STS":_.jn("STS"),"x-youtube-csoc":1}};_.EB(M,X);return new _.UI(function(n,b){var F=p.getXhrParams(H),f;_.z("kevlar_cache_on_ttl_player")&&(f=_.vO().resolve(_.o$));f&&_.iCM(f,J)?_.bCj(f,J,X,window.location.href).then(function(O){O?n(O):b()},b):_.wxE(p.JSC$13376_networkManager_,J,F,p.onPartsCallback_.bind(p),Z).then(function(O){O?n(O):b()},b)})},Que=function(p,J){p.triggerPromise_=
J.start();
p.triggerPromise_.then(function(S){var H=p.prefetchEndpointProvider_.getPrefetchEndpoint();if(H){var M=LbN[p.prefetchJobConfig_.pageType].prefetchedFragments;p.prefetchRequestPromise_=W6P(p.JSC$13412_networkPrefetchRequest_,H,{fragmentsRequested:M,timeBeforeNextVideo:S});p.prefetchResponseCacheKey_=p.JSC$13412_networkPrefetchRequest_.getCacheKeyForEndpoint(H);GTI(p);p.prefetchRequestPromise_.then(function(X){p.storePrefetchedDataCallback_(p.prefetchResponseCacheKey_,X);if(_.z("web_prefetch_preload_video")&&
M.length===1&&M[0]==="pl"&&X&&!X.playerAds&&!X.adPlacements){var Z=_.e(H,_.vt),n=Z!=null,b={raw_player_response:X,watch_endpoint:Z};(X=_.vO().resolve(n?_.SPM:_.H$))&&H&&X.then(function(F){n&&_.z("web_queue_preload_video")?(b.prefer_gapless=!0,F.queueNextVideo(b)):F.preloadVideoByPlayerVars(b)})}})}})},mq=function(p,J,S,H){this.prefetchEndpointProvider_=p;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=J;this.prefetchJobConfig_=S;this.JSC$13412_networkPrefetchRequest_=H;this.prefetchResponseCacheKey_=null};
mq.prototype.enqueue=function(){this.triggerPromise_||(Que(this,nDe(this)),_.z$(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
mq.prototype.resolve=function(){this.cancel()};
mq.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.");GTI(this)};
mq.prototype.onVisibilityChange_=function(){var p=this;_.c5(_.kbL)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){p.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||Que(this,nDe(this))};
var Crf=function(p,J,S,H,M){J&&(J==null?0:J.videoId)&&S&&S.entries&&_.z("kevlar_enable_shorts_prefetch_in_sequence")&&(F6P(p),J=S.entries.map(function(X){var Z;return(Z=_.e(X.command,_.vt))==null?void 0:Z.videoId}).indexOf(J.videoId),S=S.entries[J+1],S!=null&&S.command&&!_.e(S==null?void 0:S.command,_.iq)&&(H=new K6P([S.command],new JG$(H,_.wg,1),null,"shorts",!1),p.pendingPrefetchJob_=new mq(new REr(H.autonavEndpoints),function(){return!1},H,new b2(M)),p.pendingPrefetchJob_.enqueue()))},yGw=function(p,
J,S,H,M,X){var Z=_.yK.getInstance();
if(!_.z("block_all_player_prefetch_requests")){F6P(p);var n=!!S.getPlaylistId(),b=S.getVideoData().isLive&&S.getVideoData().hasProgressBarBoundaries;if((Z.getState()==2||n||b)&&(!S.getVideoData().isLive||b)){Z={inPlaylist:n,videoDuration:S.getDuration(),makeUpNextTrigger:function(f){return new mPy(S,_.wg,f)},
makePlaybackTrigger:function(f){return new JG$(S,_.wg,f)}};
var F=Zi$(J,Z);F&&(p.pendingPrefetchJob_=new mq(F.isInPlaylist?new ii$(M):new REr(F.autonavEndpoints),function(f,O){O=new M2I(LbN[F.pageType].pageFragments,LbN[F.pageType].prefetchedFragments,O);return _.Cdv(O)?(p.prefetchCache_.set(f,O),!0):!1},F,new Gn(H,S,X,M)),p.pendingPrefetchJob_.enqueue())}}},B9f=function(){var p=_.PR();
p.signals.parkOrScheduleJob(function(){var J=p.storage;if(J.storage)if(YsU(J)){var S=J.getPlaylistId();J=rJf(J);S=!!S&&J!==void 0}else J.clear(),S=!1;else S=!1;if(S){S=p.JSC$13239_pageManager.isOnWatch();a:{var H=p.storage;if(H.storage&&YsU(H)&&(J=H.getPlaylistId(),H=rJf(H),J&&H!==void 0)){S={recoverPlaylistCommand:{listId:J,index:H,openMiniplayer:!S,openListPanel:S,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}S=void 0}S&&_.YD(p.JSC$13239_actionRouter,[S],null)}},0,"ma")},UPp=function(p,J,S,
H,M,X){var Z=_.KG(7111);
_.dC(p.JSC$18755_screenManager,Z,X?_.Az(X):void 0);_.lq(p.JSC$18755_screenManager,Z,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:H,offlineId:J,offlineabilityFormatType:S,isDefaultFormatType:M==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:M}})},suw=function(p,J,S,H,M){var X,Z,n,b,F;
return _.G(function(f){if(f.nextAddress==1)return f.yield(p.JSC$18755_playerApiPromise,2);X=f.yieldResult;UPp(p,J,S,"OFFLINE_OBJECT_TYPE_PLAYLIST",H,M);if(n=_.VwM[p.entityTypeMap.listEntityType])F={},Z=(F[n]={maximumDownloadQuality:(b=S)!=null?b:void 0},F);return f.yield(X.queueOfflineAction(J,p.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Z),0)})},gD$=function(p,J){var S,H,M,X;
return _.G(function(Z){if(Z.nextAddress==1)return Z.yield(p.JSC$18755_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3){S=Z.yieldResult;if(!S)return _.xQ(new _.TG("PES is undefined")),Z.return();H=_.io(J,"downloadStatusEntity");return Z.yield(E0P(S,H,"downloadStatusEntity"),3)}M=Z.yieldResult;return Z.return((X=M)==null?void 0:X.downloadState)})},t2P=function(p,J,S,H,M){var X,Z,n,b,F,f;
return _.G(function(O){switch(O.nextAddress){case 1:return O.yield(p.JSC$18755_playerApiPromise,2);case 2:X=O.yieldResult;UPp(p,J,S,"OFFLINE_OBJECT_TYPE_VIDEO",H,M);if(n=_.VwM[p.entityTypeMap.singleEntityType])F={},Z=(F[n]={maximumDownloadQuality:(b=S)!=null?b:void 0},F);return O.yield(gD$(p,J),3);case 3:f=O.yieldResult;if(f!=="DOWNLOAD_STATE_USER_DELETED"){O.jumpTo(4);break}return O.yield(p.deleteVideo(J),4);case 4:return O.yield(X.queueOfflineAction(J,p.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
Z),0)}})},hEI=function(p,J,S,H,M){return _.G(function(X){return X.nextAddress==1?X.yield(p.deleteVideo(J,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):X.yield(t2P(p,J,S,H,M),0)})},DPl=function(p,J,S){var H,M;
return _.G(function(X){if(X.nextAddress==1)return X.yield(p.JSC$18755_playerApiPromise,2);H=X.yieldResult;M=_.io(J,"mainVideoDownloadStateEntity");return X.yield(H.updateDownloadState(M,S),0)})},ofI=function(p){var J=_.vO().resolve(_.Ox);
return _.G(function(S){if(S.nextAddress==1)return J.previousDownloadStateForVideo[p]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&J.previousDownloadStateForVideo[p]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?S.jumpTo(2):S.yield(J.resumeVideoDownload(p),2);if(S.nextAddress!=4)return S.yield(DPl(J,p,J.previousDownloadStateForVideo[p]),4);delete J.previousDownloadStateForVideo[p];_.UK(S)})},z_P=function(p,J){var S;
return _.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$18755_playerApiPromise,2);S=H.yieldResult;return H.yield(S.queueOfflineAction(J,p.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},OnP=function(){var p=_.vO().resolve(_.Ox),J,S;
return _.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$18755_playerApiPromise,2);if(H.nextAddress!=3)return J=H.yieldResult,S={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},H.yield(J.queueOfflineAction("!*$_ALL_ENTITIES_!*$",p.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",S),3);var M=p.JSC$18755_commandHandler,X=M.resolveCommand,Z=_.Kl("DELETING_ALL",void 0,"Downloads are being deleted");X.call(M,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.I5(Z)}},
popupType:"TOAST"}});_.UK(H)})},kTf=function(p,J){var S,H,M,X,Z,n;
return _.G(function(b){if(b.nextAddress==1)return b.yield(p.JSC$18755_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return S=b.yieldResult,S?b.yield(E0P(S,_.oR,"downloadsPageViewConfigurationEntity"),3):(_.xQ(new _.TG("PES is undefined")),b.return());M=(H=b.yieldResult)!=null?H:{};n=(Z=(X=M)==null?void 0:X.downloadsUpsellBannerVisibility)!=null?Z:{};return n.visibleWithConnection?b.yield(J.refreshAllStaleEntities(0),0):b.jumpTo(0)})},N9w=function(p){var J,S;
return _.G(function(H){if(H.nextAddress==1)return H.yield(p.JSC$18755_prefStorage,2);J=H.yieldResult;return H.return((S=J)==null?void 0:S.get("sdois"))})},T9N=function(p){var J,S,H,M,X,Z;
return _.G(function(n){if(n.nextAddress==1)return n.yield(p.JSC$18755_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3){J=n.yieldResult;if(!J)return _.xQ(new _.TG("PES is undefined")),n.return();S=_.io("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return n.yield(E0P(J,S,"settingEntity"),3)}H=n.yieldResult;return n.return((Z=(M=H)==null?void 0:(X=M.settingOptionValue)==null?void 0:X.boolValue)!=null?Z:!1)})},dP$=function(p,J){var S,H,M,X;
return _.G(function(Z){switch(Z.nextAddress){case 1:return((S=J)==null?void 0:S.formatType)===void 0?Z.return():Z.yield(p.JSC$18755_prefStorage,2);case 2:H=Z.yieldResult;if(H===void 0)return Z.return();if(((M=J)==null?void 0:M.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return Z.yield(H.set("lmqf",J.formatType),8);if(((X=J)==null?void 0:X.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){Z.jumpTo(0);break}return Z.yield(H.set("lmqf",J.formatType),6);case 6:return Z.yield(H.set("lmqflst",
Math.floor((0,_.fO)())),0);case 8:return Z.yield(H.remove("lmqflst"),0)}})},uUj=function(p){var J,S;
return _.G(function(H){switch(H.nextAddress){case 1:return H.yield(p.JSC$18755_prefStorage,2);case 2:J=H.yieldResult;if(!J){H.jumpTo(3);break}return H.yield(J.get("lmqflst"),4);case 4:if(S=H.yieldResult,S!==void 0)return H.return(S);case 3:return H.return(0)}})},lzf=function(p){var J,S,H;
return _.G(function(M){return M.nextAddress==1?M.yield(p.JSC$18755_prefStorage,2):M.nextAddress!=3?(J=M.yieldResult,M.yield((S=J)==null?void 0:S.get("ldtmes"),3)):M.return((H=M.yieldResult)!=null?H:!1)})},uvU=function(){var p=_.vO().resolve(_.Ox),J;
return _.G(function(S){if(S.nextAddress==1)return S.yield(p.JSC$18755_prefStorage,2);J=S.yieldResult;return J===void 0?S.return():S.yield(J.set("ldtmes",!0),0)})},V2$=function(p){var J,S;
return _.G(function(H){switch(H.nextAddress){case 1:return H.yield(p.JSC$18755_prefStorage,2);case 2:J=H.yieldResult;if(J===void 0){H.jumpTo(3);break}return H.yield(J.get("lmqf"),4);case 4:if(S=H.yieldResult,S!==void 0)return H.return(S);case 3:return H.return("SD")}})},sqI=function(p,J,S){var H,M,X,Z,n,b,F,f;
_.G(function(O){switch(O.nextAddress){case 1:return O.yield(dP$(p,(H=J)==null?void 0:H.actionParams),2);case 2:M=J.playlistId;if(!M)return O.return();if(J.action==="ACTION_ADD")return((Z=J.actionParams)==null?0:Z.formatType)?O.yield(suw(p,M,J.actionParams.formatType,(f=J.actionParams)==null?void 0:f.settingsAction,S),0):O.yield(p.offlineWebClientEligibility,14);if(J.action==="ACTION_REMOVE_WITH_PROMPT"){var A=p.JSC$18755_commandHandler,P=A.resolveCommand,W=_.jn("INNERTUBE_CLIENT_NAME");var y=W===
"WEB_REMIX"?_.Kl("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Kl("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var t=W==="WEB_REMIX"?[_.Kl("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];W=W==="WEB_REMIX"?_.Kl("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Kl("DELETE",void 0,"Delete");var D=_.Kl("CANCEL",void 0,"Cancel");y=mnP(y,t,W,D,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:M});P.call(A,{openPopupAction:y});return O.return()}if(J.action===
"ACTION_REMOVE")return O.yield(z_P(p,M),0);if(J.action!=="ACTION_SYNC"){O.jumpTo(0);break}return O.yield(p.JSC$18755_playerApiPromise,9);case 9:return X=O.yieldResult,O.yield(X.queueOfflineAction(M,p.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return n=O.yieldResult,O.yield(V2$(p),15);case 15:return b=O.yieldResult,O.yield(uUj(p),16);case 16:F=O.yieldResult,J.onAddCommand&&p.JSC$18755_commandHandler.resolveCommand(J.onAddCommand,{form:{preferredFormatType:b,
offlineWebClientEligibility:n,lastOfflineQualitySettingsSavedMs:F.toString()}}),O.jumpTo(0)}})},BxI=function(p,J,S){var H,M,X,Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a,q,w;
_.G(function(I){switch(I.nextAddress){case 1:return I.yield(dP$(p,(H=J)==null?void 0:H.actionParams),2);case 2:M=J.videoId;if(!M)return I.return();if(J.action==="ACTION_REMOVE_WITH_PROMPT"){var Z3=p.JSC$18755_commandHandler,vg=Z3.resolveCommand,yX=_.jn("INNERTUBE_CLIENT_NAME");var Pg=yX==="WEB_REMIX"?_.Kl("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Kl("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var ov=yX==="WEB_REMIX"?[_.Kl("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];yX=yX==="WEB_REMIX"?_.Kl("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Kl("DELETE",void 0,"Delete");var NW=_.Kl("CANCEL",void 0,"Cancel");Pg=mnP(Pg,ov,yX,NW,{signal:"DELETE_DOWNLOAD",targetId:M});vg.call(Z3,{openPopupAction:Pg});return I.return()}if(J.action==="ACTION_ADD")return((k=J.actionParams)==null?0:k.formatType)?I.yield(t2P(p,M,J.actionParams.formatType,(w=J.actionParams)==null?void 0:w.settingsAction,S),0):I.yield(p.offlineWebClientEligibility,
28);if(J.action==="ACTION_RETRY")return I.yield(V2$(p),24);if(J.action==="ACTION_PAUSE")return I.yield(p.pauseVideoDownload(M),0);if(J.action==="ACTION_RESUME")return I.yield(p.resumeVideoDownload(M),0);if(J.action==="ACTION_REMOVE")return I.yield(gD$(p,M),18);if(!_.z("kevlar_enable_download_to_mobile")){I.jumpTo(0);break}X=_.e(J.onAddCommand,_.rn);n=(Z=X)==null?void 0:Z.isCrossDeviceDownload;if(!J.onAddCommand||!n){I.jumpTo(0);break}b="HD";return I.yield(uUj(p),16);case 16:return F=I.yieldResult,
I.yield(lzf(p),17);case 17:f=I.yieldResult;p.JSC$18755_commandHandler.resolveCommand(J.onAddCommand,{form:{preferredFormatType:b,lastOfflineQualitySettingsSavedMs:F.toString(),downloadToMobileEduShown:f}});I.jumpTo(0);break;case 18:return O=I.yieldResult,p.previousDownloadStateForVideo[M]=(A=O)!=null?A:"DOWNLOAD_STATE_UNKNOWN",I.yield(DPl(p,M,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(p.previousDownloadStateForVideo[M]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&p.previousDownloadStateForVideo[M]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){I.jumpTo(20);break}return I.yield(p.pauseVideoDownload(M),20);case 20:Z3=_.Kl("DELETED_VIDEO",void 0,"Video deleted from downloads.");vg=_.Kl("UNDO_ACTION",void 0,"Undo");Pg=_.Kl("CLOSE",void 0,"Close");P={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.I5(Z3),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.I5(vg),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:M}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:Z3+" "+vg}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:M}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:Pg}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};p.JSC$18755_commandHandler.resolveCommand(P);
I.jumpTo(0);break;case 24:W=I.yieldResult;W==="UNKNOWN_FORMAT_TYPE"&&(W="SD");y="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((t=J.actionParams)==null?0:t.formatType)W=J.actionParams.formatType,y=(D=J.actionParams)==null?void 0:D.settingsAction;return I.yield(hEI(p,M,W,y,S),25);case 25:return I.return();case 28:return E=I.yieldResult,I.yield(V2$(p),29);case 29:return a=I.yieldResult,I.yield(uUj(p),30);case 30:q=I.yieldResult,J.onAddCommand&&p.JSC$18755_commandHandler.resolveCommand(J.onAddCommand,
{form:{preferredFormatType:a,offlineWebClientEligibility:E,lastOfflineQualitySettingsSavedMs:q.toString()}}),I.jumpTo(0)}})},qE$=function(p,J){var S,H,M,X,Z,n,b;
return _.G(function(F){if(F.nextAddress==1)return F.yield(p.JSC$18755_persistentStorePromiseAccessor(),2);S=F.yieldResult;if(!S)return _.xQ(new _.TG("PES is undefined")),F.return();if((H=J)==null||!H.settingItemId)return F.return();M=J;X=M.settingItemId;Z=M.boolValue;n=_.io(X,"settingEntity");b={key:n,settingOptionValue:{boolValue:Z}};return F.yield(aIp(S,b),0)})},azw=function(p,J){var S,H,M,X,Z,n,b;
return _.G(function(F){switch(F.nextAddress){case 1:return F.yield(p.JSC$18755_prefStorage,2);case 2:return S=F.yieldResult,H=_.Gv(),F.yield(p.JSC$18755_persistentStorePromiseAccessor(),3);case 3:return M=F.yieldResult,S?M?F.yield(S.get("sdois"),4):(_.xQ(new _.TG("PES is undefined")),F.return()):(_.xQ(new _.TG("prefStorage is undefined")),F.return());case 4:X=F.yieldResult;n=(Z=J)==null?void 0:Z.boolValue;n===void 0||_.z("kevlar_set_sd_enabled_flag_killswitch")||_.b7(0,197,!0);X===void 0&&n===void 0&&
(n=!1);if(n===void 0){F.jumpTo(0);break}return F.yield(S.set("sdois",n),6);case 6:return _.z("kevlar_set_sd_enabled_flag_killswitch")||(_.b7(0,196,n),H.save()),b={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:n},F.yield(qE$(p,b),0)}})},EDe=function(p,J,S){var H,M,X,Z,n;
return _.G(function(b){switch(b.nextAddress){case 1:return b.yield(N9w(p),2);case 2:return H=b.yieldResult,b.yield(azw(p,S),3);case 3:return b.yield(N9w(p),4);case 4:return M=b.yieldResult,X=M!==H,b.yield(T9N(p),5);case 5:Z=b.yieldResult&&!_.z("kevlar_modern_downloads_page");if((n=!M&&!Z)||X)return b.yield(J.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);b.jumpTo(0)}})},WEj=function(){var p=_.vO().resolve(_.Ox),
J;
_.G(function(S){switch(S.nextAddress){case 1:return S.yield(p.JSC$18755_playerApiPromise,2);case 2:J=S.yieldResult;if(!_.z("kevlar_force_refresh_smart_downloads")){S.jumpTo(3);break}return S.yield(J.refreshAllStaleEntities(0),4);case 4:return S.return();case 3:return S.yield(J.refreshAllStaleEntities(),5);case 5:return S.yield(EDe(p,J),6);case 6:if(_.z("enable_download_pep_for_premium_countries_web"))return S.yield(kTf(p,J),0);S.jumpTo(0)}})},tE$=function(p,J){var S,H;
_.G(function(M){switch(M.nextAddress){case 1:return M.yield(p.JSC$18755_playerApiPromise,2);case 2:S=M.yieldResult;switch((H=J)==null?void 0:H.settingItemId){case "SMART_DOWNLOADS_ENABLED":return M.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return M.jumpTo(4)}M.jumpTo(0);break;case 3:return M.yield(EDe(p,S,J),6);case 6:M.jumpTo(0);break;case 4:return M.yield(qE$(p,J),7);case 7:M.jumpTo(0)}})},YEe=function(p,J){var S,H,M;
return _.G(function(X){if(X.nextAddress==1)return X.yield(p.JSC$18755_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3){S=X.yieldResult;if(!S)return _.xQ(new _.TG("PES is undefined")),X.return(!1);if(!J)return X.return(!1);H=_.io(J,"mainVideoEntity");return X.yield(E0P(S,H,"mainVideoEntity"),3)}M=X.yieldResult;return X.return(M!==void 0)})},Dvr=function(p){var J=_.vO().resolve(_.Ox),S,H,M,X,Z,n,b,F,f,O,A;
_.G(function(P){switch(P.nextAddress){case 1:return P.yield(J.JSC$18755_playerApiPromise,2);case 2:S=P.yieldResult;M=(H=p)==null?void 0:H.actions;if(!M)return P.return();X=_.K(M);Z=X.next();case 3:if(Z.done){P.jumpTo(0);break}n=Z.value;F=b=void 0;if(!(((b=n)==null?0:b.entityKey)&&((F=n)==null?0:F.actionType))){P.jumpTo(4);break}f=_.Hq(n.entityKey);O=f.entityId;A=f.entityType;return P.yield(S.queueOfflineAction(O,A,n.actionType),4);case 4:Z=X.next(),P.jumpTo(3)}})},rGy=function(p,J){var S,H,M,X,Z;
return _.G(function(n){if(n.nextAddress==1)return n.yield(p.JSC$18755_prefStorage,2);if(n.nextAddress!=3)return(S=n.yieldResult)?n.yield(S.get("psi"),3):n.return();H=n.yieldResult;Z={isPaused:J,lastSyncTimestamp:(X=(M=H)==null?void 0:M.lastSyncTimestamp)!=null?X:"0"};return n.yield(S.set("psi",Z),0)})},TxP=function(p){var J=_.vO().resolve(_.Ox),S,H,M,X,Z,n,b,F;
return _.G(function(f){switch(f.nextAddress){case 1:return f.yield(J.JSC$18755_playerApiPromise,2);case 2:S=f.yieldResult;M=((H=p)==null?void 0:H.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((n=p)==null?void 0:n.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":X="!*$_ALL_ENTITIES_!*$";Z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return f.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return f.jumpTo(4)}f.jumpTo(5);break;case 3:return f.yield(rGy(J,M),6);case 6:f.jumpTo(5);break;case 4:return f.yield(YEe(J,(b=p)==null?void 0:b.videoId),7);case 7:f.yieldResult&&(X=(F=p)==null?void 0:F.videoId,Z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");f.jumpTo(5);break;case 5:if(X&&Z)return f.yield(S.queueOfflineAction(X,"videoPlaybackPositionEntity",Z),0);f.jumpTo(0)}})},juI=function(p,J){var S;
J!==1||((S=p.currentPersistentToast)==null?0:S.isOpened())?p.openToast():p.currentPersistentToast=void 0},wlU=function(p,J){var S;
return(S=p.transitionTasksMap.get(J))!=null?S:[]},xPy=function(p,J){var S=[];
p.elementTasksMap.forEach(function(H){(H=H.get(J))&&S.push(H)});
return S},cGU=function(p,J,S,H,M){M=M===void 0?{}:M;
var X=J.defaultViewTransitionOptions;return Object.assign({},X,M,{beforeTransition:function(){H.forEach(function(F){F.beforeTransition()});
var Z;(Z=X.beforeTransition)==null||Z.call(X);var n,b;(b=(n=M).beforeTransition)==null||b.call(n);S.forEach(function(F){F.beforeTransition()})},
afterTransition:function(){H.forEach(function(F){F.afterTransition()});
var Z;(Z=X.afterTransition)==null||Z.call(X);var n,b;(b=(n=M).afterTransition)==null||b.call(n);S.forEach(function(F){F.afterTransition()})},
ignoredErrors:p.config.ignoredErrors})},Izf=function(p,J,S){p.transitionTasksMap.has(J)?p.transitionTasksMap.get(J).push(S):(p=new _.TG("Transition task registered for unknown transition type",J),_.jD(p))},L6U=function(p,J,S){if(p.transitionTasksMap.has(J)){var H=p.transitionTasksMap.get(J).filter(function(M){return M!==S});
p.transitionTasksMap.set(J,H)}},pPe=function(p,J){var S=wlU(p,J);
S=_.K(S);for(var H=S.next();!H.done;H=S.next())H=H.value,H.runOnce&&L6U(p,J,H);p.elementTasksMap.forEach(function(M,X){M.forEach(function(Z,n){Z.runOnce&&J===n&&(M.delete(n),M.size===0&&p.elementTasksMap.delete(X))})})},J3r=function(p,J,S){var H,M,X,Z,n,b,F,f,O;
_.G(function(A){if(A.nextAddress==1){if(p.config.disableAllTransitions)return A.return(J());if((H=S)==null||!H.transitionType)return A.return(_.Tor(J,Object.assign({},(M=S)==null?void 0:M.viewTransitionOptions,{ignoredErrors:p.config.ignoredErrors})));X=S;Z=X.transitionType;n=X.viewTransitionOptions;b=p.config.transitionConfigs.get(Z);if(!b)return A.return(J());F=wlU(p,Z);f=xPy(p,Z);O=_.Tor(J,cGU(p,b,F,f,n));return A.yield(O,2)}pPe(p,Z);_.UK(A)})},S2f=function(){var p,J,S,H;
return _.G(function(M){if(M.nextAddress==1)return p=navigator,(J=p.storage)!=null&&J.persisted?M.yield((S=p.storage)==null?void 0:S.persisted(),2):M.return("PERSISTED_STATE_NOT_SUPPORTED");H=M.yieldResult;return M.return(H?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Hkw=function(){var p,J,S,H;
return _.G(function(M){if(M.nextAddress==1)return p=navigator,(J=p.storage)!=null&&J.persist?M.yield((S=p.storage)==null?void 0:S.persist(),2):M.return("PERSISTED_STATE_NOT_SUPPORTED");H=M.yieldResult;return M.return(H?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},MYU=function(){var p,J;
return _.G(function(S){switch(S.nextAddress){case 1:return p="PERSISTED_STATE_NOT_SUPPORTED",_.oI(S,2),S.yield(S2f(),4);case 4:p=S.yieldResult;if(p!=="PERSISTED_STATE_NOT_GRANTED"){S.jumpTo(5);break}return S.yield(Hkw(),6);case 6:p=S.yieldResult;case 5:_.X$(S,3);break;case 2:J=_.BZ(S),J instanceof Error&&_.jD(J);case 3:return _.YQ("persistentStorageStateChecked",{persistedState:p}),S.return(p)}})},XPr=function(p,J){var S=[],H=!1;
J=_.K(J);for(var M=J.next();!M.done;M=J.next()){M=p.moduleRegistry[M.value];var X=void 0,Z=void 0;((X=M)==null?0:X.isFetching)&&((Z=M)==null?0:Z.resolver)?(S.push(M.resolver.promise),H=!0):(M=new _.iy,M.resolve(void 0),S.push(M.promise))}return H?Promise.all(S):void 0},ikp=function(p,J,S){if(p.isAnyTransitionEnabled){var H={beforeTransition:function(){S(!0);
J.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){J.style.viewTransitionName&&(J.style.viewTransitionName="",S(!1))}};
Izf(p.viewTransitionCoordinator,"slide",H);Izf(p.viewTransitionCoordinator,"lockup-to-watch",H);Izf(p.viewTransitionCoordinator,"watch-next-appears",H);Izf(p.viewTransitionCoordinator,"learning-journey",H)}},RhU=function(p,J){p.isBrowseTransitionEnabled?J3r(p.viewTransitionCoordinator,J,{transitionType:"slide"}):(J(),Promise.resolve())},KZN=function(p,J){p.isLockupToWatchTransitionEnabled?J3r(p.viewTransitionCoordinator,J,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){p.registeredLockupThumbnail=void 0;p.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(J(),Promise.resolve())},Zkf=function(p,J){p.isLockupToWatchTransitionEnabled?J3r(p.viewTransitionCoordinator,J,{transitionType:"watch-next-appears"}):(J(),Promise.resolve())},neI=function(p,J){p.isLearningJourneyTransitionEnabled?J3r(p.viewTransitionCoordinator,J,{transitionType:"learning-journey"}):(J(),Promise.resolve())},Gme=function(p,J,S){if(p.isInitialized()){var H=
zl(S),M=H==="watch";
H=H==="shorts";var X=zl(J)==="watch";if(M)X||(p.backgroundPageData=J),p.watchPipMode&&X||p.deactivate(S.endpoint);else if(H){if(zl(J)!=="shorts"){var Z;(Z=p.getPlayerElement())==null||Z.pause()}}else X&&!p.watchPipMode&&(F5r(J,S,!0)?(p.watchWhileMode&&_.AVf(p,!1),_.bHr(p,J)):p.isMiniplayerActive()&&p.watchWhileMode&&p.deactivate());X&&_.zpr(p);p.shortsPipMode&&!H&&(window.focus(),p.deactivate());if(p.pictureInPictureEnabled())if(H&&p.shortsPipEnabled||M&&p.watchPipEnabled)_.zot(p.handleMediaSessionPipActivation);
else if(!p.isMiniplayerActive()&&(p.shortsPipEnabled||p.watchPipEnabled)&&window.documentPictureInPicture&&_.CL()&&_.os9("Chromium")>=120){p=_.Pi3().mediaSession;try{p.setActionHandler("enterpictureinpicture",null)}catch(n){}}}},bkr=function(p,J){var S,H;
_.G(function(M){if(M.nextAddress==1){if(!p||!p.navigationEndpoint)return M.return();_.YE().lockupActivation=!0;var X;J?X=_.aR(_.Kl("QUEUE",void 0,"Queue")):X=p.longBylineText;H=(S=X)&&p.title?{miniplayerTitle:p.title,miniplayerSubtitle:S,playlistData:null}:void 0;return M.yield(_.I6E(_.vO().resolve(_.DF),p.navigationEndpoint,!0,H),2)}_.YE().userActivation=!0;_.UK(M)})},EC$=function(p,J){var S,H,M,X,Z,n;
_.G(function(b){if(b.nextAddress==1){S=_.e(J,_.xEp);if(!S||!S.listId)return b.return();p.index=S.index||p.index||0;H=p.response&&p.response.playingVideoId||void 0;return b.yield(_.zQ8(p.JSC$13239_playlistNetworkManager,S.listId,p.index,H),2)}M=b.yieldResult;if(!M)return b.return();X=M.playlistId;Z=M.playlistPanelRenderer;!p.queueProxy&&X&&Z&&X.startsWith("TLPQ")&&(p.queueProxy=new _.Gk(p.JSC$13239_playlistNetworkManager,X,p.setPlaylistData.bind(p),p.clearQueue.bind(p),_.wHv(Z),p.storage));if(S.openMiniplayer&&
(n=_.xgg(Z))&&!p.JSC$13239_pageManager.isOnWatch()){var F=n,f=S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";p.isMiniplayerActive()?p.openToast(F):bkr(F,f)}p.setPlaylistData(X,Z,M.autoplayRenderer);_.UK(b)})},VJj=function(p,J){var S=_.PR();
S.index===void 0&&(S.index=0);S.temporaryItems.push.apply(S.temporaryItems,_.dW(p));if((J.videoId||J.videoIds)&&S.index!==void 0&&J.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!S.queueProxy){var H=[];if(S.response){var M=_.vO().resolve(_.DF).isMiniplayerActive();if(S.response.playlistPanelRenderer&&S.response.playlistId&&!S.response.playlistId.startsWith("TLPQ")){if(S.JSC$13239_pageManager.isOnWatch()||M)H=_.wHv(S.response.playlistPanelRenderer)}else S.response.playingVideoId&&!J.openMiniplayer?
H.push(S.response.playingVideoId):M&&S.response.playingVideoId&&J.openMiniplayer&&H.push(S.response.playingVideoId)}S.queueProxy=new _.Gk(S.JSC$13239_playlistNetworkManager,"",S.setPlaylistData.bind(S),S.clearQueue.bind(S),H,S.storage);S.queueProxy.JSC$13185_setCurrentIndex(S.index)}S.queueProxy.addVideos(J.videoIds||[J.videoId],J)}jEP(S,p);S.response&&_.zk(S,_.$w(S,S.response.autoplayRenderer));S.JSC$13239_pageManager.isOnWatch()?S.isMiniplayerActive()&&S.openToast(p[0]):(p=p[0],J=J.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
S.isMiniplayerActive()?S.openToast(p):bkr(p,J))},mEN=function(p){var J=_.I8(p);
if(J=="object"||J=="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);J=J=="array"?[]:{};for(var S in p)J[S]=mEN(p[S]);return J}return p},FO=function(p,J){return _.A8t(_.fu(p,J,void 0,_.v_))},vS=function(p,J){return _.KP(_.fu(p,J,void 0,_.v_))},fp=function(p,J){return _.NmL(_.fu(p,J,void 0,_.v_))},OO=function(p,J){return _.fu(p,J,void 0,_.v_,_.cE)},FZl=_.nt(function(p,
J,S,H){if(p.nextWireType_!==0)return!1;
_.zF(J,S,H,_.NU(p.decoder_,_.fqi));return!0},_.Oq,_.V3),vej=_.nt(function(p,J,S){if(p.nextWireType_!==1)return!1;
var H=p.decoder_;p=_.d4(H);H=_.d4(H);p=_.l8(p,H);_.bv(J,S,p);return!0},_.Tyi,_.ZPv),fRy=_.nt(function(p,J,S){if(p.nextWireType_!==2)return!1;
p=_.r8d(p);_.bv(J,S,p===_.sp()?void 0:p);return!0},_.qqg,_.bP8),OkI=_.By9(function(p,J,S){if(p.nextWireType_!==0&&p.nextWireType_!==2)return!1;
J=_.pt(J,J[_.Xn]|0,S);p.nextWireType_==2?_.j8U(p,QEN,J):J.push(_.TF(p.decoder_));return!0},function(p,J,S){J=_.ysw(_.KP,J,!0);
if(J!=null&&J.length){S=_.pp8(p,S);for(var H=0;H<J.length;H++)_.DGi(p.encoder_,J[H]);_.Jrp(p,S)}},_.mjd),A3e=_.nt(function(p,J,S,H){if(p.nextWireType_!==0)return!1;
_.zF(J,S,H,_.TF(p.decoder_));return!0},_.Ep4,_.mjd),PBI=function(p){return p.previousElementSibling!==void 0?p.previousElementSibling:_.Qrn(p.previousSibling,!1)},zhr=function(p,J){var S=[];
for(J=J||0;J<p.length;J+=2)_.FHp(p[J],p[J+1],S);return S.join("&")},$EP=function(p,J){var S=arguments.length==2?zhr(arguments[1],0):zhr(arguments,1);
return _.mLU(p,S)},SXN=_.$p(_.UX),oeP=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(oeP,_.Kt);oeP.prototype.getTypeName=function(){return _.B_(this,1).split("/").pop()};
oeP.prototype.getValue=function(){var p=_.fu(this,2);if(Array.isArray(p)||p instanceof _.Kt)throw Error("W");return _.P_(this,2)};
var ehj=[0,2,_.Ih],YXU=function(){var p=_.SS();this.JSC$10072_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.v0("channel_type"))};
YXU.prototype.increment=function(p){this.JSC$10072_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",p)};
var rXw=function(){var p=_.SS();this.JSC$10075_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.v0("channel_type"))};
rXw.prototype.increment=function(p){this.JSC$10075_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",p)};
var wYp=function(){var p=_.SS();this.JSC$10078_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.v0("channel_type"))};
wYp.prototype.increment=function(p){this.JSC$10078_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",p)};
var jtj=function(){var p=_.SS();this.JSC$10081_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
jtj.prototype.increment=function(){this.JSC$10081_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var xBP=function(){var p=_.SS();this.JSC$10084_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.v0("channel_type"),_.v0("error_type"))};
xBP.prototype.increment=function(p,J){this.JSC$10084_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",p,J)};
var cXw=function(){var p=_.SS();this.JSC$10087_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
cXw.prototype.increment=function(){this.JSC$10087_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var IPy=function(){var p=_.SS();this.JSC$10090_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
IPy.prototype.increment=function(){this.JSC$10090_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var Xdy=function(){var p=_.SS();this.JSC$10096_streamzService=p;p.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
Xdy.prototype.increment=function(){this.JSC$10096_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var WZU=function(p){return p.getCount&&typeof p.getCount=="function"?p.getCount():_.qW(p)||typeof p==="string"?p.length:_.T6.getCount(p)},QLr=function(p,J){if(typeof p.every=="function")return p.every(J,void 0);
if(_.qW(p)||typeof p==="string")return Array.prototype.every.call(p,J,void 0);for(var S=_.F4o(p),H=_.KN(p),M=H.length,X=0;X<M;X++)if(!J.call(void 0,H[X],S&&S[X],p))return!1;return!0},CBI=function(p,J,S,H){var M=new _.V1(null);
p&&_.ZI(M,p);J&&_.nN(M,J);S&&_.Gq(M,S);H&&_.bl(M,H);return M},y3M=function(){var p=_.Iy&&_.FX(_.B0v,10)>=0,J;
if(J=_.LiL)J=_.FX(_.ySn,10)>=0;var S=_.GF&&_.FX(_.B0v,85)>=0;return _.Rh||p||J||S},BSl=function(p){var J=_.jrU(p);
return J&&y3M()?-p.scrollLeft:J&&_.jm(p,"overflowX")!="visible"?p.scrollWidth-p.clientWidth-p.scrollLeft:p.scrollLeft},UEN=function(p,J){J=Math.max(J,0);
_.jrU(p)?y3M()?p.scrollLeft=-J:p.scrollLeft=p.scrollWidth-J-p.clientWidth:p.scrollLeft=J},s4P=0,k$f=!1;
Tef.prototype.set=function(p){this.relativeTimeStart_=p};
Tef.prototype.reset=function(){this.set(_.JF())};
Tef.prototype.get=function(){return this.relativeTimeStart_};
var sLf=null,geP=function(){sLf||(sLf=new Tef)},tYr=function(){sLf||(sLf=new Tef)};
_.SJ(tYr,geP);_.R=dnI.prototype;_.R.JSC$11508_buffer_="";_.R.set=function(p){this.JSC$11508_buffer_=""+p};
_.R.append=function(p,J,S){this.JSC$11508_buffer_+=String(p);if(J!=null)for(var H=1;H<arguments.length;H++)this.JSC$11508_buffer_+=arguments[H];return this};
_.R.clear=function(){this.JSC$11508_buffer_=""};
_.R.getLength=function(){return this.JSC$11508_buffer_.length};
_.R.toString=function(){return this.JSC$11508_buffer_};
var hhf=!1,j4p=function(p){_.pL.call(this,p.message||p.description||p.name);this.isMissing=p instanceof amM;this.isTimeout=p instanceof _.euy&&p.errorCode=="net.timeout";this.isCanceled=p instanceof _.DP};
_.Q(j4p,_.pL);j4p.prototype.name="BiscottiError";var amM=function(){_.pL.call(this,"Biscotti ID is missing from server")};
_.Q(amM,_.pL);amM.prototype.name="BiscottiMissingError";var E2I=null,DUr=function(){try{var p=_.Id("yt.ads.biscotti.getId_");return p?p():eZP()}catch(J){return _.o4(J)}},DE$=function(p,J){return _.Jk({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:p,command:J}})},kme=function(p){return _.Jk({type:"SET_GUIDE_IS_EXPANDED",
payload:p})},NSU=function(p){return _.Jk({type:"SET_ONLINE_STATUS",
payload:p})},TSN=function(p,J){return _.Jk({type:"SET_TRANSCRIPTION_STATE",
payload:{high:p,low:J}})},dEy=function(p){return _.Jk({type:"SET_OVERLAY_STATE",
payload:p})},ugU=0,lRw=function(p,J,S){var H=this;
this.priority=J;this.delay=S;this.jobId=0;this.completionCallback=_.y4;this.wrappedJob=function(){p();H.completionCallback()};
this.id=++ugU};
lRw.prototype.enqueue=function(p){this.completionCallback=p;this.jobId=_.wg.addJob(this.wrappedJob,this.priority,this.delay)};
var Ai=function(){_.m6.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.Q(Ai,_.m6);Ai.prototype.addJob=function(p,J,S){p=new lRw(p,J,S);this.taskIdToTask.set(p.id,p);this.isActive?VY$(this,p):this.suspendedTasks.add(p);return p.id};
var VY$=function(p,J){p.scheduledTasks.add(J);J.enqueue(function(){p.scheduledTasks.delete(J)})};
Ai.prototype.cancelJob=function(p){(p=this.taskIdToTask.get(p))&&(this.scheduledTasks.delete(p)?_.wg.cancelJob(p.jobId):this.suspendedTasks.delete(p))};
Ai.prototype.pause=function(){var p=this;this.isActive=!1;this.scheduledTasks.forEach(function(J){_.wg.cancelJob(J.jobId);p.suspendedTasks.add(J)});
this.scheduledTasks.clear()};
Ai.prototype.start=function(){var p=this;this.isActive=!0;this.suspendedTasks.forEach(function(J){VY$(p,J)});
this.suspendedTasks.clear()};
Ai.prototype.reset=function(){this.scheduledTasks.forEach(function(p){_.wg.cancelJob(p.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var q2w=function(p,J){this.JSC$13365_networkService_=p;this.pageRequestPromise=J};
q2w.prototype.fetchData=function(p){aRI(this,this.JSC$13365_networkService_.fetchData(p))};
q2w.prototype.postData=function(p,J){aRI(this,this.JSC$13365_networkService_.postData(p,J))};
q2w.prototype.requestDataForServiceEndpoint=function(p,J){aRI(this,this.JSC$13365_networkService_.requestDataForServiceEndpoint(p,J))};
var aRI=function(p,J){J.then(p.pageRequestPromise.onSuccess,p.pageRequestPromise.onFailure,p.pageRequestPromise)};
q2w.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var Eer=function(p){this.buildNetworkRequest_=p;this.pendingRequests_=new Set};
Eer.prototype.reset=function(){this.pendingRequests_.forEach(function(p){p.cancel()});
this.pendingRequests_.clear()};
Eer.prototype.fetchData=function(p){var J=Y2I(this);J.fetchData(p);return J.pageRequestPromise};
Eer.prototype.postData=function(p,J){var S=Y2I(this);S.postData(p,J);return S.pageRequestPromise};
Eer.prototype.requestDataForServiceEndpoint=function(p,J){var S=Y2I(this);S.requestDataForServiceEndpoint(p,J);return S.pageRequestPromise};
var Y2I=function(p){var J=p.buildNetworkRequest_();p.pendingRequests_.add(J);var S=function(){p.pendingRequests_.delete(J)};
J.pageRequestPromise.then(S,S);return J},r3p=function(p){var J=new Ai;
this.JSC$13372_networkService_=p;this.JSC$13372_taskManager_=J;this.JSC$13372_networkManager_=new Eer(this.networkRequestFactory_.bind(this))};
_.R=r3p.prototype;_.R.networkRequestFactory_=function(){return new q2w(this.JSC$13372_networkService_,new _.db(this.JSC$13372_taskManager_))};
_.R.reset=function(){this.JSC$13372_taskManager_.reset();this.JSC$13372_networkManager_.reset()};
_.R.start=function(){this.JSC$13372_taskManager_.start()};
_.R.pause=function(){this.JSC$13372_taskManager_.pause()};
_.R.getTaskManager=function(){return this.JSC$13372_taskManager_};
_.R.getNetworkManager=function(){return this.JSC$13372_networkManager_};
var KMN=null,G7I=[],HbI=0,RGI=0,MKe=null,Wb=function(p){this.token=p};
Wb.getInstance=function(){var p;return _.G(function(J){if(J.nextAddress==1)return J.yield(_.F$(),2);p=J.yieldResult;if(!p)return J.return();Wb.instance||(Wb.instance=new Wb(p));return J.return(Wb.instance)})};
var Pnl=function(p){var J;return _.G(function(S){if(S.nextAddress==1)return S.yield(fuy(p.token),2);J=S.yieldResult;return S.return(J.clear("resource-manifest-assets"))})},eC=function(p){this.token=p};
eC.getInstance=function(){var p;return _.G(function(J){if(J.nextAddress==1)return J.yield(_.F$(),2);p=J.yieldResult;if(!p)return J.return();eC.instance||(eC.instance=new eC(p));return J.return(eC.instance)})};
var Obl=function(p){var J;return _.G(function(S){if(S.nextAddress==1)return S.yield(fuy(p.token),2);J=S.yieldResult;return S.yield(J.clear("auth"),0)})},jLe=!1,tKU=null,hGN=void 0,qSN=!1,wPl=function(p){_.pL.call(this,p)};
_.Q(wPl,_.r58);var VNp=function(){var p=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return p?parseInt(p[1],10):0},xEN=function(p){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+p)!=-1||document.currentScript.src.indexOf("&"+p)!=-1)},c3P=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},r7P=function(p){p.length?IRl(p.shift(),function(){r7P(p)}):aFf()},wu$=function(p){return"chrome-extension://"+p+"/cast_sender.js"},IRl=function(p,
J,S){var H=document.createElement("script");
H.onerror=J;S&&(H.onload=S);_.RI(H,_.kc(p));(document.head||document.documentElement).appendChild(H)},LZf=function(){var p=VNp(),J=[];
if(p>1){var S=p-1;J.push("//www.gstatic.com/eureka/clank/"+p+"/cast_sender.js");J.push("//www.gstatic.com/eureka/clank/"+S+"/cast_sender.js")}return J},aFf=function(){var p=c3P();
p&&p(!1,"No cast extension found")},Y0I=function(){if(pyP){var p=2,J=c3P(),S=function(){p--;
p==0&&J&&J(!0)};
window.__onGCastApiAvailable=S;IRl("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",aFf,S)}},q0f=function(){Y0I();
var p=LZf();p.push("//www.gstatic.com/eureka/clank/cast_sender.js");r7P(p)},EIN=function(){Y0I();
var p=LZf();p.push.apply(p,_.dW(j$$.map(wu$)));p.push("//www.gstatic.com/eureka/clank/cast_sender.js");r7P(p)},pyP=xEN("loadCastFramework")||xEN("loadCastApplicationFramework"),j$$=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var JQl=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(JQl,_.Kt);var SMI=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(SMI,_.Kt);var HoI=function(){var p=new SMI;return _.Dj(p,1,3)};var PS=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(PS,_.Kt);var tHP=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(tHP,_.Kt);var MoU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(MoU,_.Kt);MoU.prototype.getToken=function(){return _.B_(this,1)};
MoU.prototype.setToken=function(p){return _.u6(this,1,p)};
var sAl=function(p){return _.wM(p,3,_.$y,_.GN())},gmy=function(p){return _.wM(p,6,_.$y,_.GN())};var zn=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(zn,_.Kt);zn.prototype.getToken=function(){return _.PB(this,MoU,2)};
zn.prototype.setToken=function(p){return _.Qd(this,2,p)};
zn.prototype.getName=function(){return _.B_(this,6)};
var XyI=_.$p(zn);var ioU=function(p,J,S){this.requestMessage=p;this.methodDescriptor=J;this.metadata=S};
ioU.prototype.getMetadata=function(){return this.metadata};var Rcr=function(p,J){J=J===void 0?{}:J;this.responseMessage=p;this.metadata=J;this.status=null};
Rcr.prototype.getMetadata=function(){return this.metadata};
Rcr.prototype.getStatus=function(){return this.status};var $b=function(p,J,S,H,M){this.name=p;this.methodType="unary";this.requestType=J;this.responseType=S;this.requestSerializeFn=H;this.responseDeserializeFn=M},Kt$=function(p,J,S){S=S===void 0?{}:S;
return new ioU(J,p,S)};
$b.prototype.getName=function(){return this.name};var oz=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(oz,_.Kt);oz.prototype.getHeader=function(){return _.PB(this,PS,1)};
oz.prototype.setHeader=function(p){return _.Qd(this,1,p)};
oz.prototype.hasHeader=function(){return _.Ow(this,PS,1)};var ZoP=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(ZoP,_.Kt);var n9N=new $b("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",oz,ZoP,function(p){return p.serialize()},_.$p(ZoP));var eX=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(eX,_.Kt);eX.prototype.getHeader=function(){return _.PB(this,PS,1)};
eX.prototype.setHeader=function(p){return _.Qd(this,1,p)};
eX.prototype.hasHeader=function(){return _.Ow(this,PS,1)};var GQf=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(GQf,_.Kt);var boP=new $b("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",eX,GQf,function(p){return p.serialize()},_.$p(GQf));var WS=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(WS,_.Kt);WS.prototype.getHeader=function(){return _.PB(this,PS,1)};
WS.prototype.setHeader=function(p){return _.Qd(this,1,p)};
WS.prototype.hasHeader=function(){return _.Ow(this,PS,1)};var m3N=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(m3N,_.Kt);m3N.prototype.getValues=function(p){return _.D48(this,1,p)};var FtP=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(FtP,_.Kt);FtP.prototype.getLink=function(){return _.PB(this,zn,1)};var v9y=new $b("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",WS,FtP,function(p){return p.serialize()},_.$p(FtP));var Qo=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Qo,_.Kt);Qo.prototype.getHeader=function(){return _.PB(this,PS,1)};
Qo.prototype.setHeader=function(p){return _.Qd(this,1,p)};
Qo.prototype.hasHeader=function(){return _.Ow(this,PS,1)};var f$M=new $b("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Qo,zn,function(p){return p.serialize()},XyI);var Oow=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Oow,_.Kt);var AQr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(AQr,_.Kt);AQr.prototype.getUrl=function(){return _.B_(this,2)};
AQr.prototype.setUrl=function(p){return _.u6(this,2,p)};var Pa$=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Pa$,_.Kt);var zcU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(zcU,_.Kt);var $3$=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q($3$,_.Kt);var YlN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(YlN,_.Kt);var ap$=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(ap$,_.Kt);var o9e=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(o9e,_.Kt);var JXI=_.$p(o9e);var ece=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(ece,_.Kt);var WtM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(WtM,_.Kt);_.R=WtM.prototype;_.R.getHeader=function(){return _.PB(this,PS,1)};
_.R.setHeader=function(p){return _.Qd(this,1,p)};
_.R.hasHeader=function(){return _.Ow(this,PS,1)};
_.R.getCompletionUrl=function(){return _.B_(this,6)};
_.R.getDeviceId=function(){return _.B_(this,11)};var QK$=new $b("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",WtM,o9e,function(p){return p.serialize()},JXI);var CaI=new Set(["SAPISIDHASH","APISIDHASH"]);var yQl=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(yQl,_.Kt);yQl.prototype.getMessage=function(){return _.B_(this,2)};
var BLp=_.$p(yQl);var sKr=function(p,J){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=p.nodeReadableStream;this.grpcResponseDeserializeFn=J;this.xhr=p.xhr;this.xhrNodeReadableStream&&U3P(this)},d3e=function(p,J){var S=new g9r;
_.z$(p.xhr,"complete",function(){if(p.xhr.isSuccess()){var H=p.xhr.getResponseText();var M;if(M=J)M=p.xhr,M.JSC$9951_xhr_&&M.isComplete()?(M=M.JSC$9951_xhr_.getResponseHeader("Content-Type"),M=M===null?void 0:M):M=void 0,M=M==="text/plain";if(M){if(!atob)throw Error("ik");H=atob(H)}try{var X=p.grpcResponseDeserializeFn(H)}catch(n){hcf(p,vmr(new _.dx(13,"Error when deserializing response data; error: "+n+(", response: "+H)),S));return}H=_.naX(p.xhr.getStatus());D3l(p,kQN(p));H===0?NLP(p,X):hcf(p,vmr(new _.dx(H,
"Xhr succeeded but the status code is not 200"),S))}else{H=p.xhr.getResponseText();X=kQN(p);if(H){var Z=TLN(p,H);H=Z.code;M=Z.details;Z=Z.metadata}else H=2,M="Rpc failed due to xhr error. uri: "+String(p.xhr.JSC$9951_lastUri_)+", error code: "+(p.xhr.JSC$9951_lastErrorCode_+", error: ")+p.xhr.getLastError(),Z=X;D3l(p,X);hcf(p,vmr(new _.dx(H,M,Z),S))}})},U3P=function(p){p.xhrNodeReadableStream.on("data",function(J){if("1"in J){var S=J["1"];
try{var H=p.grpcResponseDeserializeFn(S)}catch(M){hcf(p,new _.dx(13,"Error when deserializing response data; error: "+M+(", response: "+S)))}H&&NLP(p,H)}if("2"in J)for(J=TLN(p,J["2"]),S=0;S<p.onStatusCallbacks.length;S++)p.onStatusCallbacks[S](J)});
p.xhrNodeReadableStream.on("end",function(){D3l(p,kQN(p));for(var J=0;J<p.onEndCallbacks.length;J++)p.onEndCallbacks[J]()});
p.xhrNodeReadableStream.on("error",function(){if(p.onErrorCallbacks.length!==0){var J=p.xhr.JSC$9951_lastErrorCode_;J!==0||p.xhr.isSuccess()||(J=6);var S=-1;switch(J){case 0:var H=2;break;case 7:H=10;break;case 8:H=4;break;case 6:S=p.xhr.getStatus();H=_.naX(S);break;default:H=14}D3l(p,kQN(p));J=_.Ygv(J)+", error: "+p.xhr.getLastError();S!==-1&&(J+=", http status code: "+S);hcf(p,new _.dx(H,J))}})},kQN=function(p){var J={},S=B$$(p.xhr);
Object.keys(S).forEach(function(H){J[H]=S[H]});
return J},TLN=function(p,J){var S=2,H={};
try{var M=BLp(J);S=_.bW(M,1);var X=M.getMessage();_.Zd(M,oeP,3,_.GN()).length&&(H["grpc-web-status-details-bin"]=J)}catch(Z){p.xhr&&p.xhr.getStatus()===404?(S=5,X="Not Found: "+String(p.xhr.JSC$9951_lastUri_)):(S=14,X="Unable to parse RpcStatus: "+Z)}return{code:S,details:X,metadata:H}};
sKr.prototype.on=function(p,J){p==="data"?this.onDataCallbacks.push(J):p==="metadata"?this.onMetadataCallbacks.push(J):p==="status"?this.onStatusCallbacks.push(J):p==="end"?this.onEndCallbacks.push(J):p==="error"&&this.onErrorCallbacks.push(J);return this};
var uIP=function(p,J){J=p.indexOf(J);J>-1&&p.splice(J,1)};
sKr.prototype.removeListener=function(p,J){p==="data"?uIP(this.onDataCallbacks,J):p==="metadata"?uIP(this.onMetadataCallbacks,J):p==="status"?uIP(this.onStatusCallbacks,J):p==="end"?uIP(this.onEndCallbacks,J):p==="error"&&uIP(this.onErrorCallbacks,J);return this};
sKr.prototype.cancel=function(){this.xhr.abort()};
var NLP=function(p,J){for(var S=0;S<p.onDataCallbacks.length;S++)p.onDataCallbacks[S](J)},D3l=function(p,J){for(var S=0;S<p.onMetadataCallbacks.length;S++)p.onMetadataCallbacks[S](J)},hcf=function(p,J){for(var S=0;S<p.onErrorCallbacks.length;S++)p.onErrorCallbacks[S](J)},g9r=function(){var p=Error.call(this);
this.message=p.message;"stack"in p&&(this.stack=p.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(g9r,Error);var l$I=function(p){this.JSC$19829_worker_=p.worker||null;this.JSC$19829_streamBinaryChunks_=p.streamBinaryChunks||!1;this.JSC$19829_credentialsMode_=void 0};
_.SJ(l$I,_.bQW);l$I.prototype.createInstance=function(){var p=new Cp(this.JSC$19829_worker_,this.JSC$19829_streamBinaryChunks_);this.JSC$19829_credentialsMode_&&p.setCredentialsMode(this.JSC$19829_credentialsMode_);return p};
l$I.prototype.setCredentialsMode=function(p){this.JSC$19829_credentialsMode_=p};
var Cp=function(p,J){_.te.call(this);this.JSC$19833_worker_=p;this.JSC$19833_streamBinaryChunks_=J;this.JSC$19833_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19833_responseHeaders_=null;this.JSC$19833_method_="GET";this.JSC$19833_url_="";this.inProgress_=!1;this.JSC$19833_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.SJ(Cp,_.te);Cp.prototype.open=function(p,J){if(this.readyState!=0)throw this.abort(),Error("jk");this.JSC$19833_method_=p;this.JSC$19833_url_=J;this.readyState=1;VoI(this)};
Cp.prototype.send=function(p){if(this.readyState!=1)throw this.abort(),Error("kk");if(this.abortController_.signal.aborted)throw this.abort(),Error("lk");this.inProgress_=!0;var J={headers:this.requestHeaders_,method:this.JSC$19833_method_,credentials:this.JSC$19833_credentialsMode_,cache:void 0,signal:this.abortController_.signal};p&&(J.body=p);(this.JSC$19833_worker_||_.Hg).fetch(new Request(this.JSC$19833_url_,J)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Cp.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,qMU(this));this.readyState=0};
Cp.prototype.handleResponse_=function(p){if(this.inProgress_&&(this.fetchResponse_=p,this.JSC$19833_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19833_responseHeaders_=p.headers,this.readyState=2,VoI(this)),this.inProgress_&&(this.readyState=3,VoI(this),this.inProgress_)))if(this.responseType==="arraybuffer")p.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Hg.ReadableStream!==
"undefined"&&"body"in p){this.currentReader_=p.body.getReader();if(this.JSC$19833_streamBinaryChunks_){if(this.responseType)throw Error("mk");this.response=[]}else this.response=this.responseText="",this.JSC$19833_textDecoder_=new TextDecoder;a$j(this)}else p.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var a$j=function(p){p.currentReader_.read().then(p.handleDataFromStream_.bind(p)).catch(p.handleSendFailure_.bind(p))};
Cp.prototype.handleDataFromStream_=function(p){if(this.inProgress_){if(this.JSC$19833_streamBinaryChunks_&&p.value)this.response.push(p.value);else if(!this.JSC$19833_streamBinaryChunks_){var J=p.value?p.value:new Uint8Array(0);if(J=this.JSC$19833_textDecoder_.decode(J,{stream:!p.done}))this.response=this.responseText+=J}p.done?qMU(this):VoI(this);this.readyState==3&&a$j(this)}};
Cp.prototype.handleResponseText_=function(p){this.inProgress_&&(this.response=this.responseText=p,qMU(this))};
Cp.prototype.handleResponseArrayBuffer_=function(p){this.inProgress_&&(this.response=p,qMU(this))};
Cp.prototype.handleSendFailure_=function(){this.inProgress_&&qMU(this)};
var qMU=function(p){p.readyState=4;p.fetchResponse_=null;p.currentReader_=null;p.JSC$19833_textDecoder_=null;VoI(p)};
Cp.prototype.setRequestHeader=function(p,J){this.requestHeaders_.append(p,J)};
Cp.prototype.getResponseHeader=function(p){return this.JSC$19833_responseHeaders_?this.JSC$19833_responseHeaders_.get(p.toLowerCase())||"":""};
Cp.prototype.getAllResponseHeaders=function(){if(!this.JSC$19833_responseHeaders_)return"";for(var p=[],J=this.JSC$19833_responseHeaders_.entries(),S=J.next();!S.done;)S=S.value,p.push(S[0]+": "+S[1]),S=J.next();return p.join("\r\n")};
Cp.prototype.setCredentialsMode=function(p){this.JSC$19833_credentialsMode_=p};
var VoI=function(p){p.onreadystatechange&&p.onreadystatechange.call(p)};
Object.defineProperty(Cp.prototype,"withCredentials",{get:function(){return this.JSC$19833_credentialsMode_==="include"},
set:function(p){this.setCredentialsMode(p?"include":"same-origin")}});var E9f=function(p){var J="";_.T6.forEach(p,function(S,H){J+=H;J+=":";J+=S;J+="\r\n"});
return J},YM$=function(p,J,S){if(_.T6.isEmpty(S))return p;
S=E9f(S);if(typeof p==="string")return _.cj(p,_.HO(J),S);_.pU(p,J,S);return p};var rQI=function(){this.isInputValid_=!0;this.JSC$19839_streamPos_=0;this.leftoverInput_=""};
rQI.prototype.isInputValid=function(){return this.isInputValid_};
rQI.prototype.decode=function(p){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("nk`"+this.JSC$19839_streamPos_+"`stream already broken`"+p);this.leftoverInput_+=p;p=Math.floor(this.leftoverInput_.length/4);if(p==0)return null;try{var J=_.DJi(this.leftoverInput_.slice(0,p*4))}catch(S){throw J=this.leftoverInput_,p=S.message,this.isInputValid_=!1,Error("nk`"+this.JSC$19839_streamPos_+"`"+p+"`"+J);}this.JSC$19839_streamPos_+=p*4;this.leftoverInput_=this.leftoverInput_.slice(p*4);return J};var AHI=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19842_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
AHI.prototype.isInputValid=function(){return this.state_!=3};
var jKl=function(p,J,S,H){p.state_=3;p.errorMessage_="The stream is broken @"+p.JSC$19842_streamPos_+"/"+S+". Error: "+H+". With input:\n"+J;throw Error(p.errorMessage_);};
AHI.prototype.acceptsBinaryInput=function(){return!0};
AHI.prototype.parse=function(p){function J(b){b&128&&jKl(X,Z,n,"invalid tag");(b&7)!=2&&jKl(X,Z,n,"invalid wire type");X.tag_=b>>>3;X.tag_!=1&&X.tag_!=2&&X.tag_!=15&&jKl(X,Z,n,"unexpected tag");X.state_=1;X.length_=0;X.countLengthBytes_=0}
function S(b){X.countLengthBytes_++;X.countLengthBytes_==5&&b&240&&jKl(X,Z,n,"message length too long");X.length_|=(b&127)<<(X.countLengthBytes_-1)*7;b&128||(X.state_=2,X.countMessageBytes_=0,typeof Uint8Array!=="undefined"?X.messageBuffer_=new Uint8Array(X.length_):X.messageBuffer_=Array(X.length_),X.length_==0&&M())}
function H(b){X.messageBuffer_[X.countMessageBytes_++]=b;X.countMessageBytes_==X.length_&&M()}
function M(){if(X.tag_<15){var b={};b[X.tag_]=X.messageBuffer_;X.result_.push(b)}X.state_=0}
for(var X=this,Z=p instanceof Array?p:new Uint8Array(p),n=0;n<Z.length;){switch(X.state_){case 3:jKl(X,Z,n,"stream already broken");break;case 0:J(Z[n]);break;case 1:S(Z[n]);break;case 2:H(Z[n]);break;default:throw Error("ok`"+X.state_);}X.JSC$19842_streamPos_++;n++}p=X.result_;X.result_=[];return p.length>0?p:null};var PT$=function(){this.errorMessage_=null;this.JSC$19845_streamPos_=0;this.base64Decoder_=new rQI;this.pbParser_=new AHI};
PT$.prototype.isInputValid=function(){return this.errorMessage_===null};
var wyP=function(p,J,S){p.errorMessage_="The stream is broken @"+p.JSC$19845_streamPos_+". Error: "+S+". With input:\n"+J;throw Error(p.errorMessage_);};
PT$.prototype.acceptsBinaryInput=function(){return!1};
PT$.prototype.parse=function(p){this.errorMessage_!==null&&wyP(this,p,"stream already broken");var J=null;try{var S=this.base64Decoder_.decode(p);J=S===null?null:this.pbParser_.parse(S)}catch(H){wyP(this,p,H.message)}this.JSC$19845_streamPos_+=p.length;return J};var OG$=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19848_streamPos_=0;this.result_=[];this.statusParsed_=!1};
OG$.prototype.isInputValid=function(){return this.errorMessage_===null};
OG$.prototype.acceptsBinaryInput=function(){return!1};
OG$.prototype.parse=function(p){function J(b){X.state_=6;X.errorMessage_="The stream is broken @"+X.JSC$19848_streamPos_+"/"+Z+". Error: "+b+". With input:\n";throw Error(X.errorMessage_);}
function S(){X.jsonStreamParser_=new _.oK({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function H(b){if(b)for(var F=0;F<b.length;F++){var f={};f[1]=b[F];X.result_.push(f)}}
function M(b){if(b){(X.statusParsed_||b.length>1)&&J("extra status: "+b);X.statusParsed_=!0;var F={};F[2]=b[0];X.result_.push(F)}}
for(var X=this,Z=0;Z<p.length;){var n;if(n=X.state_!==2){a:{for(;Z<p.length;){if(!_.$9(p[Z])){n=!0;break a}Z++;X.JSC$19848_streamPos_++}n=!1}n=!n}if(n)return null;switch(X.state_){case 6:J("stream already broken");break;case 0:p[Z]==="["?(X.state_=1,Z++,X.JSC$19848_streamPos_++):J("unexpected input token");break;case 1:p[Z]==="["?(X.state_=2,S()):p[Z]===","||p.slice(Z,Z+5)=="null,"?X.state_=3:p[Z]==="]"?(X.state_=5,Z++,X.JSC$19848_streamPos_++):J("unexpected input token");break;case 2:n=X.jsonStreamParser_.parse(p.substring(Z));
H(n);X.jsonStreamParser_.done()?(X.state_=3,n=X.jsonStreamParser_.JSC$11635_buffer_,X.JSC$19848_streamPos_+=p.length-Z-n.length,p=n,Z=0):(X.JSC$19848_streamPos_+=p.length-Z,Z=p.length);break;case 3:p[Z]===","||p.slice(Z,Z+5)=="null,"?(X.state_=4,S(),X.jsonStreamParser_.parse("["),Z+=p[Z]===","?1:5,X.JSC$19848_streamPos_++):p[Z]==="]"&&(X.state_=5,Z++,X.JSC$19848_streamPos_++);break;case 4:n=X.jsonStreamParser_.parse(p.substring(Z));M(n);X.jsonStreamParser_.done()?(X.state_=5,n=X.jsonStreamParser_.JSC$11635_buffer_,
X.JSC$19848_streamPos_+=p.length-Z-n.length,p=n,Z=0):(X.JSC$19848_streamPos_+=p.length-Z,Z=p.length);break;case 5:J("extra input after stream end")}}return X.result_.length>0?(p=X.result_,X.result_=[],p):null};var x3f=function(p){this.JSC$19851_xhr_=p;this.JSC$19851_parser_=null;this.status_=this.JSC$19851_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19851_textDecoder_=null;this.JSC$19851_eventHandler_=new _.oC(this);this.JSC$19851_eventHandler_.listen(this.JSC$19851_xhr_,"readystatechange",this.JSC$19853_readyStateChangeHandler_)},yo=function(p,J){p.status_!=J&&(p.status_=J,p.statusHandler_&&p.statusHandler_())},cQP=function(p){p.JSC$19851_eventHandler_.removeAll();
if(p.JSC$19851_xhr_){var J=p.JSC$19851_xhr_;p.JSC$19851_xhr_=null;J.abort();J.dispose()}};
x3f.prototype.getStatus=function(){return this.status_};
x3f.prototype.JSC$19853_readyStateChangeHandler_=function(p){p=p.target;try{if(p==this.JSC$19851_xhr_)a:{var J=_.Vr(this.JSC$19851_xhr_),S=this.JSC$19851_xhr_.JSC$9951_lastErrorCode_,H=this.JSC$19851_xhr_.getStatus(),M=this.JSC$19851_xhr_.getResponseText();p=[];if(this.JSC$19851_xhr_.getResponse()instanceof Array){var X=this.JSC$19851_xhr_.getResponse();X.length>0&&X[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,p=X)}if(!(J<3||J==3&&!M&&p.length==0))if(H=H==200||H==206,J==4&&(S==8?yo(this,
7):S==7?yo(this,8):H||yo(this,3)),this.JSC$19851_parser_||(this.JSC$19851_parser_=zKf(this.JSC$19851_xhr_),this.JSC$19851_parser_==null&&yo(this,5)),this.status_>2)cQP(this);else{if(p.length>this.JSC$19851_pos_){var Z=p.length;S=[];try{if(this.JSC$19851_parser_.acceptsBinaryInput())for(var n=0;n<Z;n++){var b=this.JSC$19851_parser_.parse(Array.from(p[n]));b&&(S=S.concat(b))}else{b="";if(!this.JSC$19851_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("pk");this.JSC$19851_textDecoder_=
new TextDecoder}for(n=0;n<Z;n++)b+=this.JSC$19851_textDecoder_.decode(p[n],{stream:J==4&&n==Z-1});S=this.JSC$19851_parser_.parse(b)}p.splice(0,Z);S&&this.dataHandler_(S)}catch(f){yo(this,5);cQP(this);break a}}else if(M.length>this.JSC$19851_pos_){n=M.slice(this.JSC$19851_pos_);this.JSC$19851_pos_=M.length;try{var F=this.JSC$19851_parser_.parse(n);F!=null&&this.dataHandler_&&this.dataHandler_(F)}catch(f){yo(this,5);cQP(this);break a}}J==4?(M.length!=0||this.hasStreamingResponseData_?yo(this,2):yo(this,
4),cQP(this)):yo(this,1)}}}catch(f){yo(this,6),cQP(this)}};var I$N=function(p){p=this.xhrReader_=p;var J=(0,_.tT)(this.onData_,this);p.dataHandler_=J;p=this.xhrReader_;J=(0,_.tT)(this.onStatusChange_,this);p.statusHandler_=J;this.JSC$19855_callbackMap_={};this.callbackOnceMap_={}};
_.R=I$N.prototype;_.R.on=function(p,J){var S=this.JSC$19855_callbackMap_[p];S||(S=[],this.JSC$19855_callbackMap_[p]=S);S.push(J);return this};
_.R.addListener=function(p,J){this.on(p,J);return this};
_.R.removeListener=function(p,J){var S=this.JSC$19855_callbackMap_[p];S&&_.uw(S,J);(p=this.callbackOnceMap_[p])&&_.uw(p,J);return this};
_.R.once=function(p,J){var S=this.callbackOnceMap_[p];S||(S=[],this.callbackOnceMap_[p]=S);S.push(J);return this};
_.R.onData_=function(p){var J=this.JSC$19855_callbackMap_.data;J&&LtN(p,J);(J=this.callbackOnceMap_.data)&&LtN(p,J);this.callbackOnceMap_.data=[]};
var LtN=function(p,J){for(var S={},H=0;H<p.length;S={message$jscomp$1008:void 0},H++)S.message$jscomp$1008=p[H],J.forEach(function(M){return function(X){try{X(M.message$jscomp$1008)}catch(Z){}}}(S))};
I$N.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:pNP(this,"readable");break;case 5:case 6:case 4:case 7:case 3:pNP(this,"error");break;case 8:pNP(this,"close");break;case 2:pNP(this,"end")}};
var pNP=function(p,J){var S=p.JSC$19855_callbackMap_[J];S&&S.forEach(function(H){try{H()}catch(M){}});
(S=p.callbackOnceMap_[J])&&S.forEach(function(H){H()});
p.callbackOnceMap_[J]=[]};var Jar=function(){var p={format:"jspb"};p=p===void 0?{}:p;this.suppressCorsPreflight=p.suppressCorsPreflight||_.Id("suppressCorsPreflight",p)||!1;this.withCredentials=p.withCredentials||_.Id("withCredentials",p)||!1;this.streamInterceptors=p.streamInterceptors||[];this.unaryInterceptors=p.unaryInterceptors||[];this.workerScope=p.workerScope;this.chunkedServerStreaming=p.useFetchDownloadStreams||!1},M3$=function(p,J,S,H,M,X){X=X===void 0?{}:X;
var Z=J.substring(0,J.length-M.name.length),n,b=(n=X)==null?void 0:n.signal;return SdM(function(F){return new Promise(function(f,O){if(b==null?0:b.aborted){var A=new _.dx(1,"Aborted");A.cause=b.reason;O(A)}else{var P={},W=H7e(p,F,Z);W.on("error",function(y){return void O(y)});
W.on("metadata",function(y){P=y});
W.on("data",function(y){var t=P;t=t===void 0?{}:t;f(new Rcr(y,t))});
b&&b.addEventListener("abort",function(){W.cancel();var y=new _.dx(1,"Aborted");y.cause=b.reason;O(y)})}})},p.unaryInterceptors).call(p,Kt$(M,S,H)).then(function(F){return F.responseMessage})},XNr=function(p,J,S,H,M,X){X=X===void 0?{}:X;
return M3$(p,J,S,H,M,X)};
Jar.prototype.serverStreaming=function(p,J,S,H){var M=this,X=p.substring(0,p.length-H.name.length);return i7w(function(Z){var n=Z.methodDescriptor,b=Z.getMetadata(),F=R3f(M,!1);b=KAj(M,b,F,X+n.getName());var f=Z7I(F,n.responseDeserializeFn,!0);Z=n.requestSerializeFn(Z.requestMessage);F.send(b,"POST",Z);return f},this.streamInterceptors).call(this,Kt$(H,J,S))};
var H7e=function(p,J,S){var H=J.methodDescriptor,M=J.getMetadata(),X=R3f(p,!0);p=KAj(p,M,X,S+H.getName());S=Z7I(X,H.responseDeserializeFn,!1);d3e(S,M["X-Goog-Encode-Response-If-Executable"]==="base64");J=H.requestSerializeFn(J.requestMessage);X.send(p,"POST",J);return S},R3f=function(p,J){J=p.chunkedServerStreaming&&!J;
return p.workerScope||J?new _.lV(new l$I({worker:p.workerScope,streamBinaryChunks:J})):new _.lV},KAj=function(p,J,S,H){J["Content-Type"]="application/json+protobuf";
J["X-User-Agent"]="grpc-web-javascript/0.1";var M=J.Authorization;if(M&&CaI.has(M.split(" ")[0])||p.withCredentials)S.JSC$9951_withCredentials_=!0;if(p.suppressCorsPreflight)H=YM$(H,"$httpHeaders",J);else for(p=_.K(Object.keys(J)),M=p.next();!M.done;M=p.next())M=M.value,S.headers.set(M,J[M]);return H},Z7I=function(p,J,S){if(S){S=new x3f(p);
var H=new I$N(S)}return new sKr({xhr:p,nodeReadableStream:H},J)},i7w=function(p,J){return J.reduce(function(S,H){return function(M){return H.intercept(M,S)}},p)},SdM=function(p,J){return J.reduce(function(S,H){return function(M){return H.intercept(M,S)}},p)};var niP=function(p){this.client_=new Jar;this.hostname_=p==void 0?p:p.replace(/\/+$/,"")};
_.R=niP.prototype;_.R.JSC$19873_depositGoogleCredential=function(p,J,S){return XNr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",p,J||{},boP,S)};
_.R.deleteLink=function(p,J,S){return XNr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",p,J||{},n9N,S)};
_.R.JSC$19873_finishOAuth=function(p,J,S){return XNr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",p,J||{},v9y,S)};
_.R.getLink=function(p,J,S){return XNr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",p,J||{},f$M,S)};
_.R.startLinkingSession=function(p,J,S){return XNr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",p,J||{},QK$,S)};var Gbr=[0,_.c_,1,OkI,[0,_.Jd,[0,_.Lu,-1]],[0,fRy],[0,_.i_,-1],[0,fRy]];var b7j=function(){this.storage=new Map},FAN=function(p,J,S,H,M){if(!p.storage.has(J))return null;
p=_.K(p.storage.get(J));for(J=p.next();!J.done;J=p.next())if(J=J.value,!M||J.linkName===M)if(S&&J.scopes&&mIf(J.scopes,S)||H&&J.capabilities&&mIf(J.capabilities,H))return J;return null},viM=function(p,J,S){if(!S)p.storage.delete(J);
else if(p.storage.has(J)){var H=p.storage.get(J).filter(function(M){return M.linkName!==S});
H.length>0?p.storage.set(J,H):p.storage.delete(J)}},mIf=function(p,J){J=_.K(J);
for(var S=J.next();!S.done;S=J.next())if(!p.has(S.value))return!1;return!0};var fNy=function(){var p=_.jn("LINK_GAL_DOMAIN");this.alsDomain1p=_.jn("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},O7l=function(p,J){p.apiKey=J;
return p};
fNy.prototype.build=function(){var p={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("qk");p.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("rk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("sk");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("tk");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);this.localStorage!==void 0&&(p.localStorage=this.localStorage);p.loggerType=this.loggerType;p.clientEnvironment=this.clientEnvironment;p.colorScheme=this.colorScheme;p.showCloseOption=this.showCloseOption;return p};var Cj=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Cj,_.Kt);var Aay=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Aay,_.Kt);var Ppl=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Ppl,_.Kt);var Bb=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Bb,_.Kt);var z3P=function(p){return _.Uw(p,1)};var $IU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q($IU,_.Kt);var yHM=_.$p($IU),yL=[1,2,3,4,5];var eKU=function(p){try{return yHM(p)}catch(J){return null}},oi$=function(){},WVM=function(p,J){switch(_.$C(J,yL)){case 4:return(J=_.tF(J,Ppl,4,yL))&&p.logStateTransition(_.Uw(J,1)),!0;
case 5:return(J=_.tF(J,Aay,5,yL))&&p.logInternalEvent(_.Uw(J,1)),!0}return!1},BTP=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:_.rm(p)}};var $6P=function(p,J){var S=this;this.validator=p;this.messageListener=J;this.dismissCallback=function(){e3M(S,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19902_receiveMessage=function(H){H.type==="message"&&(H=H.event_,H!==null&&(new URL(S.iframe.src)).origin===H.origin&&S.validator(H.data,H.origin)&&!S.messageListener(H.data)&&(S.JSC$19902_resolveCb!==void 0&&S.JSC$19902_resolveCb(H.data),WAf(S)))}},CTN=function(p,J,S){p.uiHandler!==void 0&&e3M(p,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(H,M){p.JSC$19902_resolveCb=H;p.JSC$19902_rejectCb=M;p.iframe=document.createElement("iframe");_.Lt(p.iframe,J);p.uiHandler=S.displayContent(p.iframe,p.dismissCallback);_.z$(window,"message",p.JSC$19902_receiveMessage,!1,p)})},e3M=function(p,J){p.JSC$19902_rejectCb!==void 0&&p.JSC$19902_rejectCb(J);
WAf(p)},WAf=function(p){p.uiHandler!==void 0&&p.uiHandler.hideContent();
_.gx(window,"message",p.JSC$19902_receiveMessage,!1,p);p.JSC$19902_resolveCb=void 0;p.JSC$19902_rejectCb=void 0;p.uiHandler=void 0;p.iframe=void 0};var QWU=function(p){if(p===2){var J;p=((J=window)==null?0:J.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return p},QAI=function(p){p=QWU(p);
switch(p){case 0:return"light";case 1:return"dark";default:_.rm(p)}};var omU=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),CpU=function(p,J){this.JSC$19914_linkingSession=p;this.noticeConfig=J;this.displayInfoMap=new Map;var S=new Map;if(_.Ow(this.JSC$19914_linkingSession,Pa$,7))for(p=_.PB(this.JSC$19914_linkingSession,Pa$,7),p=_.Zd(p,AQr,1,_.GN()),p=_.K(p),J=p.next();!J.done;J=p.next())J=J.value,S.set(_.Uw(J,1),_.Ch3(_.PB(J,_.ups,3)));if(S.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){J=this.noticeConfig.enabledDataUsageNoticeUis;p=J.has(0)?S.get(1):void 0;J=J.has(1)?S.get(2):void 0;S=p!==void 0&&J!==void 0?S.get(3):void 0;var H=this.noticeConfig.nestedOrigins;var M=new $IU;var X=new Cj;M=_.Ct(M,2,yL,X);X=new $IU;var Z=new Cj;X=_.Ct(X,3,yL,Z);Z=[];p!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:p,lastEvent:M,nestedOrigins:H}]),Z.push({trustedUrl:p,lastEvent:M,nestedOrigins:H}));J!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:J,lastEvent:X,nestedOrigins:H}]),Z.push({trustedUrl:J,lastEvent:X,nestedOrigins:H}));S!==void 0?this.displayInfoMap.set(3,[{trustedUrl:S,lastEvent:X,nestedOrigins:H}]):this.displayInfoMap.set(3,Z)}};var yae=function(p){var J=new b7j;this.galService=p;this.galCache=J};
yae.prototype.getLink=function(p){var J=p.serviceId;var S=p.scopes;var H=p.capabilities;var M=p.linkName;var X=this,Z;return _.G(function(n){if(H!==void 0&&S!==void 0)throw Error("uk");Z=FAN(X.galCache,J,S,H,M);return Z!==null?n.return(Z):n.return(X.galService.getLink({serviceId:J,sessionId:Math.floor(Math.random()*2147483648),scopes:S,capabilities:H,linkName:M}).then(function(b){b=hKM(b);var F=X.galCache;F.storage.has(J)?F.storage.get(J).push(b):F.storage.set(J,[b]);return b}))})};
yae.prototype.deleteLink=function(p,J,S){var H=this;return _.G(function(M){viM(H.galCache,p,S);return M.return(H.galService.deleteLink({serviceId:p,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:J,linkName:S}).then(function(){return!0}))})};var UIp=function(p,J){var S=this;this.validator=p;this.msgHandler=J;this.closedPopupTimeout=this.JSC$19936_rejectCb=this.JSC$19936_resolveCb=this.popup=null;this.JSC$19936_receiveMessage=function(H){if(H!==null&&(H=H.event_,H.source===S.popup)){var M=H.data;if(S.validator(M,H.origin)){var X;(X=S.msgHandler)!=null&&X.call(S,M)||(S.JSC$19936_resolveCb!==null&&S.JSC$19936_resolveCb(M),BBP(S))}}}};
UIp.prototype.open=function(p,J){var S=this;this.popup!==null&&sWf(this);return new Promise(function(H,M){S.JSC$19936_resolveCb=H;S.JSC$19936_rejectCb=M;S.popup=_.Ju(window,p,"",J);_.z$(window,"message",S.JSC$19936_receiveMessage,!1,S);giP(S)})};
var sWf=function(p,J){p.JSC$19936_rejectCb!==null&&p.JSC$19936_rejectCb(J);BBP(p)},BBP=function(p){p.closedPopupTimeout&&(p.closedPopupTimeout.cancel(),p.closedPopupTimeout=null);
p.popup&&p.popup.close();_.gx(window,"message",p.JSC$19936_receiveMessage,!1,p);p.popup=null;p.JSC$19936_resolveCb=null;p.JSC$19936_rejectCb=null},giP=function(p){p.closedPopupTimeout=_.lJU(100).then(function(){p.popup?p.popup.closed?t3w(p):giP(p):sWf(p,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},t3w=function(p){p.closedPopupTimeout=_.lJU(100).then(function(){sWf(p,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var h3e=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),DIl=function(p,J,S,H,M,X,Z,n,b,F){var f=this;this.serviceId=p;this.sessionId=J;this.galService=S;this.oauthDetails=H;this.galLogger=M;this.interactionMode=X;this.redirectServiceUrl=Z;this.consentLanguageKeys=n;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=F;this.started=!1;this.JSC$19942_dataValidator=function(O,
A){var P=h3e.has(A);P||f.redirectServiceUrl===void 0||(P=f.redirectServiceUrl===A);return P?O.sentinel==="gdi":!1}};
DIl.prototype.complete=function(){var p=this,J;return _.G(function(S){if(p.interactionMode!==1)return S.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));J=Em$.getRedirectStateFromUri();return J===null?S.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):S.return(kbP(p,J))})};
DIl.prototype.start=function(){var p=this,J;return _.G(function(S){if(p.started)return S.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.B_(p.oauthDetails,1))return S.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(p.interactionMode===1)return Em$.setLocation(_.B_(p.oauthDetails,1)),S.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));p.started=!0;p.galLogger.logStateTransition(5);
J=Em$.getPostMessagePopup(p.JSC$19942_dataValidator);return S.return(J.open(_.B_(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(H){p.started=!1;var M=p.galLogger;if((H==null?void 0:H.error)!==void 0)throw M.logInternalEvent(59),Error("vk");if((H==null?void 0:H.redirect_state)===void 0)throw M.logInternalEvent(131),Error("wk");return kbP(p,H.redirect_state)}).catch(function(H){p.started=
!1;
return H.errorCode!==void 0?{statusCode:H.errorCode,statusMessage:H.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var kbP=function(p,J){return _.G(function(S){return S.return(NBP(p.galService,{serviceId:p.serviceId,sessionId:p.sessionId,dynamicUrlParameters:p.dynamicUrlParameters,redirectState:J,consentLanguageKeys:p.consentLanguageKeys,partnerConfigMinReadTimestamp:p.partnerConfigMinReadTimestamp}).then(function(H){var M={statusCode:1,link:hKM(H.getLink())};$nf(_.P_(H,3))!==void 0&&(M.callerState=$nf(_.P_(H,3)));_.Djs(H,4,m3N,zZe).size>0&&(M.redirectUriParams=new Map(Array.from(_.Djs(H,4,m3N,zZe).entries()).map(function(X){var Z=
_.K(X);X=Z.next().value;var n=Z.next().value;Z=[];var b=Z.concat;n=_.wM(n,1,_.$y,_.GN());return[X,b.call(Z,_.dW(n))]})));
p.galLogger.logInternalEvent(134);return M}))})},Em$={getPostMessagePopup:function(p){return new UIp(p)},
getRedirectStateFromUri:function(){var p=_.I7(Em$.getLocation()).fragment_;return(new _.fN(p)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(p){_.Aui(window.location,_.Vd(p))},
createOAuthFlow:function(p,J){return new DIl(p.serviceId,p.sessionId,p.galService,J,p.galLogger,p.interactionMode,p.redirectServiceUrl,p.consentLanguageKeys,p.dynamicUrlParameters,p.partnerConfigMinReadTimestamp)}};var TB$=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(TB$,_.Kt);var dI$=_.$p(TB$);var u8f=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),lN$=function(p,J,S,H,M,X,Z,n,b){var F=this;this.serviceId=p;this.sessionId=J;this.galService=S;this.gsiWebFlowDetails=H;this.colorScheme=M;this.showCloseOption=X;this.galLogger=Z;this.interactionMode=n;this.redirectServiceUrl=b;this.started=!1;this.JSC$19955_dataValidator=function(f,O){var A=u8f.has(O);A||F.redirectServiceUrl===
void 0||(A=F.redirectServiceUrl===O);return A?f.sentinel==="gal":!1};
this.logEventProcessor=function(f){return f.result?(f=eKU(f.result))?WVM(F.galLogger,f):!1:!1}};
lN$.prototype.complete=function(){var p=this,J,S;return _.G(function(H){if(p.interactionMode!==1)return H.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));J=rHr.getRedirectStateFromUri();if(J===void 0)return p.galLogger.JSC$19894_logErrorEvent(131),H.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return S=V3e(p,J),H.return(qdw(p,S))}catch(M){return H.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
lN$.prototype.start=function(){var p=this,J;return _.G(function(S){if(p.started)return S.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.B_(p.gsiWebFlowDetails,1))return S.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(p.interactionMode===1)return rHr.setLocation(aNp(p,_.B_(p.gsiWebFlowDetails,1))),S.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
p.started=!0;J=rHr.getPostMessagePopup(p.JSC$19955_dataValidator,p.logEventProcessor);return S.return(J.open(aNp(p,_.B_(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(H){p.started=!1;if((H==null?void 0:H.result)===void 0)throw p.galLogger.JSC$19894_logErrorEvent(131),Error("wk");H=V3e(p,H.result);return qdw(p,H)}).catch(function(H){p.started=!1;
return H.errorCode!==void 0?{statusCode:H.errorCode,statusMessage:H.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var aNp=function(p,J){p=["result_channel",p.interactionMode===1?"2":"1","color_scheme",QAI(p.colorScheme),"show_close_option",p.showCloseOption];return $EP(J,p)},qdw=function(p,J){if(J!==null&&_.Ow(J,Bb,2)){var S,H=J==null?void 0:(S=_.PB(J,Bb,2))==null?void 0:_.Uw(S,2);
H&&p.galLogger.JSC$19894_logErrorEvent(BTP(H));return z3P(_.PB(J,Bb,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:_.B_(J,1)}).then(function(M){M=hKM(M);p.galLogger.logInternalEvent(134);return{statusCode:1,link:M}})},V3e=function(p,J){J=dI$(J);
if(!_.Ow(J,Bb,2)&&_.B_(J,1)==="")throw p.galLogger.JSC$19894_logErrorEvent(5),Error("xk");return J},rHr={getPostMessagePopup:function(p,J){return new UIp(p,J)},
getRedirectStateFromUri:function(){return _.LC(_.I7(rHr.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(p){_.Aui(window.location,_.Vd(p))},
createStreamlinedFlow:function(p,J){return new lN$(p.serviceId,p.sessionId,p.galService,J,p.colorScheme,p.showCloseOption,p.galLogger,p.interactionMode,p.redirectServiceUrl)}};var LVP=function(p){this.storage=(p=p?_.qV("GAL"):_.EOX("GAL"))?new _.d1(p):null};
LVP.prototype.getSession=function(p){if(this.storage!==null)try{var J=this.storage.get("SAVED_SESSION");if(J===void 0)return null;if(J.serviceId===p)return J}catch(S){}return null};var Eip=function(){};
_.Q(Eip,oi$);Eip.prototype.logStateTransition=function(){};
Eip.prototype.logInternalEvent=function(){};
Eip.prototype.JSC$19894_logErrorEvent=function(){};var YdN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(YdN,_.Kt);YdN.prototype.getCompletionUrl=function(){return _.B_(this,15)};var BS=function(p,J,S,H,M,X){this.serviceId=p;this.environment=J;this.sessionId=S;this.colorSchemeSelected=H;this.colorThemeDisplayed=M;this.JSC$19968_transport=X;this.currentState=1};
_.Q(BS,oi$);BS.prototype.logStateTransition=function(p){var J=raI(this);J=_.zx(J,3,this.currentState);J=_.zx(J,1,p);this.currentState=p;p=yJI(1);this.dispatch(J,p)};
BS.prototype.logInternalEvent=function(p){p=yJI(p);this.dispatch(raI(this),p)};
BS.prototype.JSC$19894_logErrorEvent=function(p){var J=raI(this);J=_.zx(J,1,10);p=yJI(p);this.dispatch(J,p)};
var raI=function(p){var J=new YdN;J=_.zx(J,1,p.currentState);J=_.g2(J,7,p.serviceId);var S,H;var M=((S=window)==null?0:(H=S.location)==null?0:H.href)?_.I7(window.location.href).JSC$10187_domain_:"NO_PACKAGE_NAME";S=_.g2(J,8,M);S=_.zx(S,6,p.environment);S=_.g2(S,5,"100");S=_.zx(S,11,p.colorSchemeSelected);return _.zx(S,12,p.colorThemeDisplayed)};
BS.prototype.dispatch=function(p,J){J===void 0&&(J=new _.Pz);var S=J;p=p.serialize();S=_.g2(S,8,p);_.Tg(S,12,this.sessionId);this.JSC$19968_transport.dispatch(J)};var jWI=function(p,J){this.loggerType=p;this.sessionIndex=J!=null?J:0},wNy;
jWI.prototype.create=function(p,J,S,H,M){switch(this.loggerType){case 0:return new Eip;case 1:return wNy||(wNy=(new _.P0(555,this.sessionIndex.toString())).build()),new BS(p,J,S,H,M,wNy);default:_.rm(this.loggerType,"unknown logger type")}};var jAI=[6,2,3,1],XYP=new Map([[4,1],[1,6],[2,2],[3,3]]),TTM={statusCode:7,statusMessage:"Failed to create flow object"},cHe=function(p,J,S,H,M,X,Z,n,b,F){this.serviceId=p;this.sessionId=J;this.config=S;this.galService=H;this.JSC$19975_linkingSession=M;this.googleScopes=X;this.callerState=Z;this.consentLanguageKeys=n;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=F;this.currentFlow=0;H=this.JSC$19975_linkingSession;M=new Set;_.Ow(H,ap$,1)&&M.add(1);_.Ow(H,$3$,2)&&_.Ow(H,YlN,6)&&M.add(2);
_.Ow(H,zcU,3)&&_.Ow(H,YlN,6)&&M.add(3);_.Ow(H,Oow,4)&&M.add(6);this.supportedFlows=M;H=S.loggerType;M=S.clientEnvironment;a:{X=S.colorScheme;switch(X){case 0:X=1;break a;case 1:X=2;break a;case 2:X=3;break a;default:_.rm(X)}X=void 0}a:{Z=S.colorScheme;Z=QWU(Z);switch(Z){case 0:Z=1;break a;case 1:Z=2;break a;default:_.rm(Z)}Z=void 0}this.galLogger=(new jWI(H,S.authUser)).create(p,M,J,X,Z)},INI=function(p){return new Promise(function(J){var S,H,M,X,Z,n,b,F,f,O;
return _.G(function(A){switch(A.nextAddress){case 1:S=w$f(p.currentFlow,p.supportedFlows),H=!1,M=new CpU(p.JSC$19975_linkingSession,p.config.dataUsageNoticeConfig);case 2:if(S===void 0){A.jumpTo(4);break}_.oI(A,5);var P=M,W=S,y=void 0;H?W===1&&(y=P.displayInfoMap.get(2)):W===2||W===3?y=P.displayInfoMap.get(1):W===1&&(y=P.displayInfoMap.get(3));X=y?y:[];Z=p.consentLanguageKeys;n=_.K(X);b=n.next();case 7:if(b.done)return p.currentFlow=S,A.yield(uJM(xIp(p,Z)),11);F=b.value;return A.yield(U6w(F,p.config.dataUsageNoticeConfig.uiAdapter,
p.config.colorScheme,p.galLogger),10);case 10:f=A.yieldResult;if(f.statusCode!==1)return caP(p),J(lpy({statusCode:f.statusCode,statusMessage:f.statusMessage},p.callerState)),A.return();f.consentLanguageKeys!==void 0&&(Z=f.consentLanguageKeys);b=n.next();A.jumpTo(7);break;case 11:O=A.yieldResult;if(O.statusCode!==10)return O.statusCode!==6&&caP(p),O.statusCode!==1&&p.callerState!==void 0&&(O.callerState=p.callerState),J(O),A.return();_.X$(A,6);break;case 5:_.BZ(A);case 6:S=w$f(p.currentFlow,p.supportedFlows);
H=!0;A.jumpTo(2);break;case 4:caP(p),J(lpy({statusCode:12,statusMessage:"Linking failed"},p.callerState)),_.UK(A)}})})},caP=function(p){pYp(p.serviceId,p.config.localStorage);
p.currentFlow=0},HY$=function(p,J,S){p.currentFlow=J;
return VH$(xIp(p,S)).then(function(H){return H.statusCode===10&&p.config.interactionMode===1&&w$f(p.currentFlow,p.supportedFlows)!==void 0?INI(p):H})},xIp=function(p,J){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:J,dynamicUrlParameters:p.dynamicUrlParameters,showCloseOption:p.config.showCloseOption,partnerConfigMinReadTimestamp:p.partnerConfigMinReadTimestamp},currentFlow:p.currentFlow,config:p.config,session:p.JSC$19975_linkingSession,googleScopes:p.googleScopes,callerState:p.callerState}};var Rlr=function(p,J){this.config=p;this.galService=J.getService();this.JSC$19988_galRepository=J.JSC$20006_galRepository};
Rlr.prototype.getLink=function(p,J){return LAp(this,p,J)};
var LAp=function(p,J,S){return p.JSC$19988_galRepository.getLink({serviceId:J,scopes:void 0,capabilities:void 0,linkName:S}).then(function(H){return{statusCode:1,link:H}}).catch(function(H){return{statusCode:iYp(H.code),
statusMessage:H.message}})};
Rlr.prototype.deleteLink=function(p,J){return this.JSC$19988_galRepository.deleteLink(p,this.config.accountLinkingEntryPoint,J).then(function(){return{statusCode:1}}).catch(function(S){return{statusCode:iYp(S.code),
statusMessage:S.message}})};
Rlr.prototype.startLinkingSession=function(p){var J=p.serviceId;var S=p.sessionId;return Ipw({serviceId:J,sessionId:S!==void 0?S: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 UO=function(p,J,S,H,M,X,Z){this.apiKey=J;this.authUser=S;this.oauthToken=H;this.bucket=M;this.locale=X;this.galSdkEventHandler=Z;if(H===void 0){if(J===void 0)throw Error("yk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new niP(p)};
UO.prototype.deleteLink=function(p){var J=p.serviceId;var S=p.sessionId;var H=p.accountLinkingEntryPoint;var M=p.linkName;var X=this,Z;return _.G(function(n){var b=(new oz).setHeader(X.getHeader(S));var F=pmP({serviceId:J,linkName:M});b=_.Qd(b,2,F);Z=_.Dj(b,3,H);return n.return(X.makeRequest(X.galServiceClient.deleteLink,Z,[1,3],[2,4]))})};
var NBP=function(p,J){var S=J.serviceId;var H=J.sessionId;var M=J.dynamicUrlParameters;var X=J.redirectState;var Z=J.consentLanguageKeys;var n=J.partnerConfigMinReadTimestamp;var b;return _.G(function(F){var f=(new WS).setHeader(p.getHeader(H,M));f=_.u6(f,2,S);b=_.u6(f,4,X);Z!==void 0&&_.u6(b,5,Z);n!==void 0&&_.Qd(b,6,n);return F.return(p.makeRequest(p.galServiceClient.JSC$19873_finishOAuth,b,[1,3],[2,4]))})};
UO.prototype.getLink=function(p){var J=p.serviceId;var S=p.sessionId;var H=p.scopes;var M=p.capabilities;var X=p.consistencyKey;var Z=p.linkName;var n=this,b;return _.G(function(F){var f=(new Qo).setHeader(n.getHeader(S)),O=pmP({serviceId:J,scopes:H,capabilities:M,linkName:Z});b=_.Qd(f,2,O);X!==void 0&&(f=HoI(),f=_.u6(f,2,X),_.Qd(b,3,f));return F.return(n.makeRequest(n.galServiceClient.getLink,b,[1,3],[2,4]))})};
var qlP=function(p,J){var S=J.serviceId;var H=J.sessionId;var M=J.googleScopes;var X=J.consistencyKey;var Z;return _.G(function(n){var b=(new eX).setHeader(p.getHeader(H));b=_.u6(b,2,S);var F=Array.from(M.values());b=_.Iw(b,3,F,_.fP);F=HoI();F=_.u6(F,2,X);Z=_.Qd(b,4,F);return n.return(p.makeRequest(p.galServiceClient.JSC$19873_depositGoogleCredential,Z,[1,3],[2,4]))})};
UO.prototype.startLinkingSession=function(p){var J=p.serviceId;var S=p.sessionId;var H=p.scopes;var M=p.capabilities;var X=p.loginHint;var Z=p.supportedFlows;var n=p.completionUrl;var b=p.usePingPong;var F=p.twoWayLinking;var f=p.accountLinkingEntryPoint;var O=p.callerState;var A=p.consentLanguageKeys;var P=p.googleScopes;var W=p.dataUsageNoticeConfig;var y=p.linkName;var t=p.dynamicUrlParameters;var D=p.partnerConfigMinReadTimestamp;var k=this,E,a;return _.G(function(q){if(M!==void 0&&H!==void 0)throw Error("uk");
var w=(new WtM).setHeader(k.getHeader(S,t));E=_.u6(w,2,J);y!==void 0&&_.u6(E,14,y);if(M!==void 0){w=E;var I=Array.from(M.values());_.Iw(w,5,I,_.fP)}else H!==void 0&&(w=E,I=Array.from(H.values()),_.Iw(w,3,I,_.fP));n!==void 0&&_.u6(E,6,n);b!==void 0&&_.$V(E,15,b);Z!==void 0&&(w=E,I=Array.from(Z.values()),_.Iw(w,4,I,_.Hp));if(F!==void 0){if(F&&(!P||P.size===0))throw Error("zk");_.$V(E,8,F)}f!==void 0&&_.Dj(E,9,f);X!==void 0&&_.u6(E,13,X);O!==void 0&&(w=E,I=(new TextEncoder).encode(O),_.LP(w,12,_.gm(I,
!1),_.sp()));A!==void 0&&_.u6(E,16,A);D!==void 0&&_.Qd(E,18,D);if(W!==void 0&&W.size>0||P!==void 0&&P.size>0)a=new ece,P!==void 0&&P.size>0&&(w=a,I=Array.from(P.values()),_.Iw(w,1,I,_.fP)),W!==void 0&&(W.has(0)&&_.VIX(a,2,_.Hp,1,_.i$),W.has(1)&&_.VIX(a,2,_.Hp,2,_.i$)),_.Qd(E,17,a);return q.return(k.makeRequest(k.galServiceClient.startLinkingSession,E,[1],[2]))})};
UO.prototype.getMetadata=function(){var p=this,J,S;return _.G(function(H){J={};p.useFpa?(J["X-Goog-Api-Key"]=p.apiKey,J["X-Goog-AuthUser"]=p.authUser!==void 0?p.authUser.toString():"0",(S=_.fV4([]))&&(J.Authorization=S)):J.Authorization="Bearer "+p.oauthToken;p.locale&&(J["accept-language"]=p.locale);return H.return(J)})};
UO.prototype.makeRequest=function(p,J,S,H){var M=this,X;return _.G(function(Z){if(Z.nextAddress==1)return Z.yield(M.getMetadata(),2);X=Z.yieldResult;J_y(M,S);return Z.return(p.bind(M.galServiceClient)(J,X).finally(function(){J_y(M,H)}))})};
var J_y=function(p,J){p.galSdkEventHandler!==void 0&&J.forEach(function(S){p.galSdkEventHandler.onEvent(S)})};
UO.prototype.getHeader=function(p,J){var S=new PS;p=_.LP(S,2,_.Rw(p),0);p=_.Dj(p,5,3);J=_.Iw(p,8,J,_.fP);this.bucket!==void 0&&_.u6(J,1,this.bucket);return J};
var pmP=function(p){var J=p.serviceId;var S=p.scopes;var H=p.capabilities;p=p.linkName;if(H!==void 0&&S!==void 0)throw Error("uk");var M=new JQl;J=_.u6(M,1,J);H!==void 0?(S=Array.from(H.values()),_.Iw(J,5,S,_.fP)):S!==void 0&&(S=Array.from(S.values()),_.Iw(J,3,S,_.fP));p!==void 0&&_.u6(J,6,p);return J};var KKP=function(p){this.galService=new UO(p.alsDomain,p.apiKey,p.authUser,p.oauthToken,p.bucket,p.locale,p.galSdkEventHandler);this.JSC$20006_galRepository=new yae(this.galService)};
KKP.prototype.getService=function(){return this.galService};var Su$=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Su$,_.Kt);var H5$=function(p){var J=new Su$;return _.zx(J,1,p)};
Su$.prototype.setErrorMessage=function(p){return _.g2(this,2,p)};var M7P=[0,_.Xh,_.Ih,_.Xh];var sO=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(sO,_.Kt);var XmP=[0,[1,2,3],_.S_,[0,_.P$8,_.D9N,-1],_.S_,[0,vej,-1],_.pX];var i5P=[0,_.w4,1,_.Xh,_.Ih,-1,1,_.Hj,_.YC,_.Xh,-1,XmP];var R9P=[0,_.Xh,[0,_.Hj,_.YC,[0,_.Ih]],_.xC,[0,_.Xh,-1]];var Kp=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Kp,_.Kt);var KOp=[0,_.Ih,_.Xh,-2,_.w4,_.Xh,_.w4,_.Xh,-2,1,_.xC];var Z5w=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Z5w,_.Kt);var nEN=[0,_.w4];var GZ$=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(GZ$,_.Kt);var b5P=[0,_.Xh,R9P,nEN,KOp,i5P];var Ssp=_.PG(GZ$,b5P);var mlj=[0,Gbr];var ZNI=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(ZNI,_.Kt);var FOP=[0,[1,3],A3e,_.Xh,A3e];var KbN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(KbN,_.Kt);var vEP=[0,_.Xh];var far=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(far,_.Kt);var n0$=function(p){return _.tF(p,Su$,2,Rz)},O5P=function(p){var J=new far;
return _.Ct(J,2,Rz,p)},Rz=[1,
2];var A_M=[0,Rz,_.S_,vEP,_.S_,M7P,_.Jd,FOP,1,_.Xh,mlj];var PqP=[0,1,[0,[1,2,3],_.S_,[0],_.S_,[0,ehj],_.S_,[0,Gbr]]];var z9P=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(z9P,_.Kt);var oEr=function(p){var J=new z9P;return _.Ct(J,3,$le,p)},$le=[2,
3];var e9P=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(e9P,_.Kt);var WOU=function(p,J){return _.Qd(p,2,J)},QlN=function(p,J){return _.Qd(p,8,J)},CqP=function(p,J){return _.Qd(p,3,J)};var y_M=[0,_.Xh,A_M,b5P,_.Zo,[0,[5,6,7],[0,_.Xh,-2],[0,_.w4,_.Xh,_.Ih],[0,XmP],[0,_.Ih,_.Xh,-1,_.Kn,_.Xh],_.S_,[0,[0,_.w4],_.Xh,-1],_.S_,[0,[3,4],_.Xh,-1,_.S_,[0,[0,_.Xh,_.xC]],_.S_,[0,[0,[0,[1,2,3],_.S_,[0],_.S_,[0],_.S_,[0]]]]],_.S_,[0,_.Xh]],_.Zo,-1,[0,$le,_.Xh,_.S_,vEP,_.S_,M7P,_.Jd,FOP,[0,Gbr],PqP]];var BCl=_.PG(e9P,y_M),Ulw=_.zu(y_M);var sly=function(){_.gp.call(this)};
_.Q(sly,_.gp);sly.prototype.init=function(){};
new sly;var gEN=_.YI(["data-"]),t7I=_.YI(["aria-"]),h9y=_.YI(["aria-"]),gu=function(p,J){this.isLatencyMeasurementExperiment=p===void 0?!1:p;this.enableDialogA11yFix=J===void 0?!1:J;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.ZCp(_.Hg.location.href)},MbI=function(p,J){p.onConsentPrimitiveShownCallback=J},DlI=function(p,J){return p.overriddenIframeLoadTimeout?p.overriddenIframeLoadTimeout:J!==void 0?J:5E3},iN$=function(p){if(p.prewarmPromise!==void 0)return p.prewarmPromise;
p.prewarmPromise=new Promise(function(J,S){ti(p,1);kZe(p,NCP(p,!0),TCM(p));p.iframe?p.prewarmChannel||dlp(p,p.iframe,J):S(Error("Ak"))});
p.prewarmPromise.finally(function(){p.prewarmPromise=void 0});
return p.prewarmPromise};
gu.prototype.showPrimitive=function(){var p=this;if(this.consentPromise!==void 0)return this.consentPromise;var J=Date.now();uY$(this,J);this.consentPromise=new Promise(function(S,H){ti(p,0,J);var M=p.isDarkTheme();p.isLatencyMeasurementExperiment||p.initialLoadingStrategy===1||p.initialLoadingStrategy===2||(p.loadingBar||(p.loadingBar=bYM(getComputedStyle(document.body).direction==="rtl",M),p.loadingBar.style.position="fixed",p.loadingBar.style.zIndex="15000"),document.body.appendChild(p.loadingBar));
kZe(p,NCP(p),TCM(p));p.iframe?p.channel||laI(p,p.iframe,S,H):(V7I(p),H(Error("Ak")))});
this.consentPromise.finally(function(){p.consentPromise=void 0});
return this.consentPromise};
var laI=function(p,J,S,H){var M,X;_.G(function(Z){switch(Z.nextAddress){case 1:ti(p,3);M=!1;setTimeout(function(){if(!M){V7I(p);que(p);aa$(p);var n=H5$(7).setErrorMessage("Timeout connecting to iframe");S(QlN(WOU(new e9P,O5P(n)),oEr(n)))}},DlI(p,EEp(p)));
if(!p.prewarmPromise){Z.jumpTo(2);break}_.oI(Z,3);return Z.yield(p.prewarmPromise,5);case 5:_.X$(Z,2);break;case 3:_.BZ(Z),X=H5$(4).setErrorMessage("Error while prewarming."),S(QlN(WOU(new e9P,O5P(X)),oEr(X)));case 2:p.prewarmChannel&&p.prewarmChannel.send(Ulw(CqP(new e9P,p.consentPrimitiveRequest))),p.channel=_.Zv({destination:p.win,iframe:J,origin:YuP(p),channelName:"cpw",onEstablished:function(){M=!0;V7I(p);p.isLatencyMeasurementExperiment||(p.JSC$20035_previousBodyOverflow=document.body.style.overflow,
p.JSC$20035_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,p.JSC$20035_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 n=p.iframe;n.style.bottom="0";n.style.position="fixed";n.style.right="0";n.style.border="none";n.style.left="0";n.style.top=
"0";n.style.zIndex="5000";n.style.pointerEvents="";n.style.visibility="";p.initialLoadingStrategy===2||p.initialLoadingStrategy===3?ti(p,4):ti(p,6);var b;(b=p.onConsentPrimitiveShownCallback)==null||b.call(p)},
onMessage:function(n){n=BCl(n.data);switch(_.Uw(n,1)){case 1:que(p);var b=mBf(_.PB(n,_.UX,7));b&&(p.initialLoadingStrategy!==2&&p.initialLoadingStrategy!==3||ti(p,6,b),ti(p,5,b));if(b=mBf(_.PB(n,_.UX,6)))ti(p,7,b),ti(p,8);var F,f;((F=_.PB(n,far,2))==null?void 0:_.$C(F,Rz))!==0&&((f=_.PB(n,z9P,8))==null?void 0:_.$C(f,$le))!==0||H(Error("Bk"));S(n);break;case 2:aa$(p)}}}),_.UK(Z)}})},dlp=function(p,J,S){p.prewarmChannel=_.Zv({destination:p.win,
iframe:J,origin:YuP(p),channelName:"pwcp",onEstablished:function(){ti(p,2);S()}})},YuP=function(p){var J=_.gy(p.src).toString();
return J&&J.indexOf("://")<0&&J.indexOf("//")!==0?p.origin:_.ZCp(J)},NCP=function(p,J){J=J===void 0?!1:J;
var S,H=new Map([["origin",p.origin],["hl",(S=r_e(p))!=null?S:null]]);J&&H.set("pw","1");J=_.K([["cpr",p.consentPrimitiveRequest.serialize()]]);for(S=J.next();!S.done;S=J.next()){var M=_.K(S.value);S=M.next().value;M=M.next().value;H.set(S,M)}p.isDarkTheme()&&H.set("color_scheme","dark");return _.O9(p.src,H)},V7I=function(p){p.isLatencyMeasurementExperiment||p.loadingBar&&document.body.removeChild(p.loadingBar)};
gu.prototype.getSrc=function(){var p=_.nQ(this.origin),J;var S=(J=_.PB(this.consentPrimitiveRequest,Z5w,3))==null?void 0:_.bW(J,1);J="consent.google.com";S=S?"/u/"+encodeURIComponent(S.toString()):"";(p==null?0:p.endsWith("youtube.com"))?J="consent.youtube.com":(p=p==null?void 0:p.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(J="consent.google."+((p[1]?"co.":"")+encodeURIComponent(p[2])));return _.sq("https://"+J+"/signedin"+S+"/landing")};
var kZe=function(p,J,S){p.iframe||(p.iframe=document.createElement("iframe"),p.iframe.style.width="100%",p.iframe.style.height="100%",S!==112496729&&(p.iframe.style.colorScheme="auto"),p.isLatencyMeasurementExperiment&&(p.iframe.style.display="none"),_.Lt(p.iframe,J),p.iframe.setAttribute("jsname","C5o1O"),jlP(p.iframe),document.body.appendChild(p.iframe))},jlP=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"},que=function(p){p.iframe&&(p.isLatencyMeasurementExperiment||(p.JSC$20035_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=p.JSC$20035_previousHtmlOverscroll),p.JSC$20035_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=p.JSC$20035_previousBodyOverscroll),p.JSC$20035_previousBodyOverflow!==
void 0&&(document.body.style.overflow=p.JSC$20035_previousBodyOverflow),p.enableDialogA11yFix&&wmM(p,!1)),jlP(p.iframe))};
gu.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(wmM(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var wmM=function(p,J){var S,H,M=(S=p.iframe)==null?void 0:(H=S.parentElement)==null?void 0:H.children;if(M)for(S=0;S<M.length;S++)H=M[S],H!==p.iframe&&(J?(H.hasAttribute("aria-hidden")&&_.Zr([_.m9(gEN)],H,"data-old-aria-hidden",H.getAttribute("aria-hidden")),_.Zr([_.m9(t7I)],H,"aria-hidden","true")):(H.removeAttribute("aria-hidden"),H.hasAttribute("data-old-aria-hidden")&&(_.Zr([_.m9(h9y)],H,"aria-hidden",H.getAttribute("data-old-aria-hidden")),H.removeAttribute("data-old-aria-hidden"))))},ti=function(p,
J,S){var H;
(H=p.latencyCallback)==null||H.call(p,{latencyType:J,timestampEpochMillis:S!=null?S:Date.now()})};var xlU=function(p,J,S){gu.call(this,J,S===void 0?!1:S);this.consentPrimitiveRequest=p;p=r_e(this);_.huN(p);this.src=this.getSrc();var H;this.initialLoadingStrategy=(H=_.PB(this.consentPrimitiveRequest,Kp,4))==null?void 0:_.Uw(H,4)},c_p;
_.Q(xlU,gu);var HNp=function(p){var J=_.z("enable_primitive_dialog_aria_hide_siblings");p={request:p,enableDialogA11yFix:J===void 0?!1:J};c_p||(c_p=new xlU(p.request,p.isLatencyMeasurementExperiment||_.Uw(p.request,1)===2,p.enableDialogA11yFix));return c_p},r_e=function(p){var J;
return(J=_.PB(p.consentPrimitiveRequest,Kp,4))==null?void 0:_.B_(J,1)},uY$=function(p,J){if(!_.Ow(p.consentPrimitiveRequest,sO,5)){var S=p.consentPrimitiveRequest,H=new sO;
_.Qd(S,5,H)}var M;if((M=_.PB(p.consentPrimitiveRequest,sO,5))==null||_.D49(_.fu(M,8))==null){var X;(X=_.PB(p.consentPrimitiveRequest,sO,5))!=null&&_.Tg(X,8,J)}},TCM=function(p){var J;
return(J=_.PB(p.consentPrimitiveRequest,sO,5))==null?void 0:_.bW(J,1)};
xlU.prototype.isDarkTheme=function(){var p;return((p=_.PB(this.consentPrimitiveRequest,Kp,4))==null?void 0:_.Uw(p,2))===2};
var EEp=function(p){var J;return((J=_.PB(p.consentPrimitiveRequest,Kp,4))==null?void 0:_.bW(J,5))||void 0},aa$=function(p){p.channel=void 0;
p.prewarmChannel=void 0;p.iframe&&(document.body.contains(p.iframe)&&document.body.removeChild(p.iframe),p.iframe=void 0);c_p=void 0},RSw=function(p){return gu.prototype.showPrimitive.call(p).then(function(J){return _.PB(J,far,2)})};for(var hi={},Iay=(hi[64]="ma",hi[73]="ogb",hi[89]="cr",hi[21]="test",hi[0]="unkn",hi[137]="con",hi[155]="hl",hi[78]="yt",hi[171]="lp",hi[172]="ap",hi[177]="amo",hi[178]="pqe",hi[74]="gg",hi[1]="gm",hi[140]="am",hi[193]="sc",hi),LOI=_.K(Object.keys(Iay)),pRP=LOI.next();!pRP.done;pRP=LOI.next());var JWj=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(JWj,_.Kt);var STM=[0,[2,3,4],_.Xh,FZl,A3e,_.pX];var HqP=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(HqP,_.Kt);var MgU=_.PG(HqP,[0,_.i_,_.Ih,_.Xh,_.Ih,_.Xh,STM]);var XRI=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(XRI,_.Kt);XRI.prototype.getCommand=function(){return _.Uw(this,1)};
var iqP=function(){var p=new XRI;return _.Dj(p,1,0)};var RDe=_.zu([0,_.i_,_.Ih,[0,_.Xh,_.Ih,-1]]);var KXp=new _.Cn("s"),ZqI=new _.Cn("t"),nwM=new _.Cn("u"),Gkj=new _.Cn("v"),bqI=function(p,J,S){_.yr.call(this,KXp);this.mediaKey=p;this.photoUrl=J;this.photoSource=S};
_.Q(bqI,_.yr);var mZf=function(){_.yr.call(this,ZqI)};
_.Q(mZf,_.yr);var FXy=function(p){p=p===void 0?!1:p;_.yr.call(this,nwM);this.isError=p};
_.Q(FXy,_.yr);var vwU=function(){_.yr.call(this,Gkj)};
_.Q(vwU,_.yr);var fgp=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,zDp=function(p){if(typeof p=="string"){if(p.charAt(0)==".")return Oq$(p.substr(1));if(p.charAt(0)=="["){var J=fgp.exec(p);p=p.indexOf("=")==-1?void 0:J[3];return AWP(J[1],p)}return PcM(p)}return p},Oq$=function(p){return function(J){return J.getAttribute&&_.Ln(J,p)}},AWP=function(p,J){return function(S){return J!==void 0?S.getAttribute&&S.getAttribute(p)==J:S.hasAttribute&&S.hasAttribute(p)}},PcM=function(p){p=p.toUpperCase();
return function(J){return(J=J.tagName)&&J.toUpperCase()==p}},$ZU=function(){return!0};var De=function(p,J){this.JSC$20063_key_=p;this.JSC$20063_value_=J},owe=function(p){throw Error("Ck`"+p.JSC$20063_key_);
},eDf=function(p,J){return new TypeError("Dk`"+J+"`"+p.JSC$20063_key_+"`"+p.JSC$20063_value_+"`"+typeof p.JSC$20063_value_)};
De.prototype.string=function(p){return arguments.length==0?WXP(this):QQr(this,p)};
var QQr=function(p,J){var S;return(S=CcP(p))!=null?S:J},WXP=function(p){var J=CcP(p);
J===null&&owe(p);return J},CcP=function(p){var J=p.JSC$20063_value_;
if(J==null)return null;if(typeof J==="string")return J;throw eDf(p,"string");};
De.prototype.bool=function(p){if(arguments.length==0){var J=this.optionalBool();J===null&&owe(this)}else{var S;J=(S=this.optionalBool())!=null?S:p}return J};
De.prototype.optionalBool=function(){var p=this.JSC$20063_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 eDf(this,"boolean");};
De.prototype.number=function(p){if(arguments.length==0){var J=yWU(this);J===null&&owe(this)}else J=BbP(this,p);return J};
var BbP=function(p,J){var S;return(S=yWU(p))!=null?S:J},yWU=function(p){var J=p.JSC$20063_value_;
if(J==null)return null;if(typeof J==="number")return J;if(typeof J==="string"){var S=Number(J);if(!isNaN(S)&&(S!==0||J.trim().length!==0))return S}throw eDf(p,"number");};
De.prototype.toString=function(){return WXP(this)};
De.prototype.enum=function(p,J){var S=!0,H=void 0,M;for(M in p){var X=p[M];S&&(S=!1,H=typeof X==="number"?BbP(this,J):QQr(this,J));if(X==H)return H}JSON.stringify(p);return H};
De.prototype.array=function(p){if(arguments.length==0){var J=UZw(this);J===null&&owe(this);return J}J=UZw(this);return J==null?p:J};
var UZw=function(p){var J=p.JSC$20063_value_;if(J==null)return null;Array.isArray(J)||(typeof J!=="string"?J=[J]:(J=J.trim(),J=J==""?[]:J.split(",").map(function(S){return S.trim()})));
return sQU(p,J)},sQU=function(p,J){var S=p.JSC$20063_key_+"[";
return Array.from(J,function(H,M){return new De(S+M+"]",H)})};
De.prototype.object=function(p){var J=this.JSC$20063_value_;if(J==null)return p===void 0&&owe(this),p;if(typeof J==="object"&&J.constructor===Object){p={};var S=this.JSC$20063_key_+".",H;for(H in J)p[H]=new De(S+H,J[H]);return p}throw eDf(this,"object");};var kb=function(p){this.list_=gwI(p)},gwI=function(p){if(p instanceof kb)p=p.list_;
else if(p[0]instanceof kb){for(var J=new Set,S=0;S<p.length;S++)for(var H=_.K(p[S].list_),M=H.next();!M.done;M=H.next())J.add(M.value);p=J}return[].concat(_.dW(p))};
_.R=kb.prototype;_.R.each=function(p,J,S){((S===void 0?0:S)?fm$:_.MV)(this.list_,p,J);return this};
_.R.size=function(){return this.list_.length};
_.R.isEmpty=function(){return this.list_.length===0};
_.R.get=function(p){return this.list_[p]||null};
_.R.el=function(){return this.list_[0]||null};
_.R.map=function(p,J){return _.d2(this.list_,p,J)};
_.R.equals=function(p){return this===p||_.xs(this.list_,p.list_)};
_.R.first=function(){return this.list_.length==0?null:new N2(this.list_[0])};
_.R.last=function(){return this.list_.length==0?null:new N2(this.list_[this.list_.length-1])};
_.R.find=function(p){var J=[];this.each(function(S){S=S.querySelectorAll(String(p));for(var H=0;H<S.length;H++)J.push(S[H])});
return new kb(J)};
_.R.parent=function(){var p=[];this.each(function(J){(J=J.parentElement||null)&&!_.dk(p,J)&&p.push(J)});
return new kb(p)};
_.R.children=function(){var p=[];this.each(function(J){J=_.V4(J);for(var S=0;S<J.length;S++)p.push(J[S])});
return new kb(p)};
_.R.filter=function(p){p=_.MU(this.list_,zDp(p));return new kb(p)};
_.R.closest=function(p){var J=[],S=zDp(p),H=function(M){return _.bS(M)&&S(M)};
this.each(function(M){(M=_.ar(M,H,!0))&&!_.dk(J,M)&&J.push(M)});
return new kb(J)};
_.R.next=function(p){return tgP(this,_.CIE,p)};
_.R.prev=function(p){return tgP(this,PBI,p)};
var tgP=function(p,J,S){var H=[];var M=S?zDp(S):$ZU;p.each(function(X){(X=J(X))&&M(X)&&H.push(X)});
return new kb(H)};
kb.prototype.setClass=function(p){return this.each(function(J){_.Iq(J,p)})};
var hDl=function(p,J){return p.each(function(S){_.Ea(S,J)})},DZw=function(p,J){return p.each(function(S){_.qn(S,J)})};
kb.prototype.toggleClass=function(p,J){return J===!0?hDl(this,p):J===!1?DZw(this,p):this.each(function(S){_.Ln(S,p)?_.qn(S,p):_.Ea(S,p)})};
kb.prototype.setText=function(p){return this.each(function(J){_.qR(J,p)})};
var kkN=function(p){p.each(function(J){J.removeAttribute("aria-hidden")})};
kb.prototype.getStyle=function(p){if(this.list_.length>0){var J=this.list_[0],S=J.style[_.Zx(p)];return typeof S!=="undefined"?S:J.style[_.uC8(J,p)]||""}};
kb.prototype.getData=function(p){if(this.list_.length===0)return new De(p,null);var J=o2e(this.list_[0],p);return new De(p,J)};
kb.prototype.focus=function(p){try{p?this.el().focus(p):this.el().focus()}catch(J){}return this};
kb.prototype.click=function(){var p=_.VF(this.el());if(p.createEvent){var J=p.createEvent("MouseEvents");J.initMouseEvent("click",!0,!0,p.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(J)}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 Tn=function(p,J,S,H){function M(n,b,F){var f=b;b&&b.parentNode&&(f=b.cloneNode(!0));n(f,F)}
H=H===void 0?!1:H;if(p.list_.length==1){var X=p.list_[0],Z=function(n){return J(n,X)};
S instanceof kb?S.each(Z,void 0,H):Array.isArray(S)?(H?fm$:_.MV)(S,Z):Z(S);return p}return p.each(function(n){S instanceof kb?S.each(function(b){M(J,b,n)}):Array.isArray(S)?_.MV(S,function(b){M(J,b,n)}):M(J,S,n)})};
_.R=kb.prototype;_.R.append=function(p){return Tn(this,function(J,S){J&&S.appendChild(J)},p)};
_.R.appendTo=function(p){(new kb([p])).append(this);return this};
_.R.remove=function(){return Tn(this,function(p,J){_.CC(J)},null)};
_.R.empty=function(){return Tn(this,function(p,J){_.d7(J)},null)};
_.R.after=function(p,J){return Tn(this,function(S,H){S&&_.l_(S,H)},p,!(J===void 0||J))};
_.R.before=function(p){return Tn(this,function(J,S){J&&_.u_(J,S)},p)};
_.R.replaceWith=function(p){return Tn(this,function(J,S){J&&_.em8(J,S)},p)};
_.R.toggle=function(p){return this.each(function(J){_.JZ(J,p)})};
_.R.show=function(){return this.toggle(!0)};
_.R.hide=function(){return this.toggle(!1)};
_.R.trigger=function(p,J,S,H){return Nbf(this,p,J,S,H)};
var Nbf=function(p,J,S,H,M){return p.each(function(X){_.OOL(_.VF(X)).triggerWizEventInternal(X,J,S,H,M)})},N2=function(p,J){p instanceof kb&&(J=p.list_,p=null);
this.list_=gwI(p!=null?[p]:J)};
_.SJ(N2,kb);_.R=N2.prototype;_.R.children=function(){return new kb(Array.prototype.slice.call(_.V4(this.list_[0])))};
_.R.each=function(p,J){p.call(J,this.list_[0],0);return this};
_.R.size=function(){return 1};
_.R.el=function(){return this.list_[0]};
_.R.first=function(){return this};var du=function(p,J){J=J===void 0?window:J;this.hostId=p;this.win=J;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$20074_previousHtmlOverscroll=this.JSC$20074_previousBodyOverscroll=this.JSC$20074_previousBodyOverflow="";this.eventTarget=new _.te;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},uFy=function(p){var J=
Tbj(Tbj(Tbj(new dZl(78),"po"),"hppp"),"hhc");
J.authUser=Number(_.jn("SESSION_INDEX","0"));J.colorScheme=p;return J};
du.prototype.getOrigin=function(){return this.origin?this.origin:_.Gq(_.nN(_.ZI(new _.V1,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
du.prototype.getTargetOrigin=function(){return _.Gq(_.nN(_.ZI(new _.V1,this.scheme),this.domain),this.port)};
du.prototype.preloadIframe=function(p){var J=this;if(this.iframeLoadPromise===void 0){var S=document.createElement("iframe");this.iframe=S;zlM(S,p);this.iframeLoadPromise=new Promise(function(H,M){var X=!1,Z=function(n){n.stopPropagation();S.removeEventListener("error",Z);S.removeEventListener("securitypolicyviolation",Z);M(Error("Ek",{cause:n}))};
S.addEventListener("error",Z);S.addEventListener("securitypolicyviolation",Z);setTimeout(function(){X||M(Error("Fk"))},3E4);
lgf(J,S,function(){X=!0;S.removeEventListener("error",Z);S.removeEventListener("securitypolicyviolation",Z);H()})});
Vgj(this);p=this.getTargetOrigin().toString();S.setAttribute("allow","camera "+p+"; display-capture "+p);this.parentElement.appendChild(S)}return this.iframeLoadPromise};
var Ewf=function(p,J){var S,H;return _.G(function(M){if(M.nextAddress==1)return S=bYM(getComputedStyle(p.parentElement).direction==="rtl"),p.parentElement.appendChild(S),document.activeElement instanceof HTMLElement&&(p.elementToFocusAfterClose=document.activeElement),_.oI(M,2),M.yield(p.preloadIframe(J),4);if(M.nextAddress!=2){p.parentElement.removeChild(S);p.JSC$20074_previousBodyOverflow=p.parentElement.style.overflow;p.JSC$20074_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
p.JSC$20074_previousBodyOverscroll=p.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";p.parentElement.style.overscrollBehavior="contain";p.parentElement.style.overflow="hidden";var X=p.iframe;X.style.bottom="0";X.style.border="none";X.style.height="100%";X.style.left="0";X.style.position=p.iframePosition;X.style.right="0";X.style.top="0";X.style.width="100%";X.style.zIndex="2202";X.setAttribute("aria-hidden","false");X.setAttribute("aria-modal","true");
p.opened=!0;qTI(p);return _.X$(M,0)}H=_.BZ(M);p.parentElement.removeChild(S);OYe(p.isDarkTheme());agy(p,!1);throw Error("Gk",{cause:H});})},agy=function(p,J){J=J===void 0?!0:J;
p.iframe!==void 0&&(YTI(p),document.documentElement.style.overscrollBehavior=p.JSC$20074_previousHtmlOverscroll,p.parentElement.style.overscrollBehavior=p.JSC$20074_previousBodyOverscroll,p.parentElement.style.overflow=p.JSC$20074_previousBodyOverflow,p.elementToFocusAfterClose!==void 0&&(p.elementToFocusAfterClose.focus(),p.elementToFocusAfterClose=void 0),J?Vgj(p):(p.parentElement.removeChild(p.iframe),p.iframe=void 0,p.iframeLoadPromise=void 0,p.mainChannel=void 0),p.opened=!1)},YTI=function(p){p.backgroundElementsAriaHiddenIsNull&&
(kkN(p.backgroundElementsAriaHiddenIsNull),p.backgroundElementsAriaHiddenIsNull=void 0);
p.backgroundElementsAriaHiddenIsFalse&&(p.backgroundElementsAriaHiddenIsFalse.each(function(J){J.setAttribute("aria-hidden","false")}),p.backgroundElementsAriaHiddenIsFalse=void 0);
p.backgroundElementsWithoutInert&&(p.backgroundElementsWithoutInert.each(function(J){J.removeAttribute("inert")}),p.backgroundElementsWithoutInert=void 0)},qTI=function(p){p.backgroundElementsAriaHiddenIsNull=(new N2(p.iframe.parentElement)).children().filter(function(J){return J.getAttribute("aria-hidden")===null&&J!==p.iframe});
p.backgroundElementsAriaHiddenIsNull.each(function(J){J.setAttribute("aria-hidden","true")});
p.backgroundElementsAriaHiddenIsFalse=(new N2(p.iframe.parentElement)).children().filter(function(J){return J.getAttribute("aria-hidden")==="false"&&J!==p.iframe});
p.backgroundElementsAriaHiddenIsFalse.each(function(J){J.setAttribute("aria-hidden","true")});
p.backgroundElementsWithoutInert=(new N2(p.iframe.parentElement)).children().filter(function(J){return!J.hasAttribute("inert")&&J!==p.iframe});
p.backgroundElementsWithoutInert.each(function(J){J.setAttribute("inert","true")})},Vgj=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")};
du.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var dZl=function(p,J){du.call(this,Iay[p],J);this.options=[];this.style=""};
_.Q(dZl,du);var rWI=function(p){p.style="youtube";return p},jQf=function(p,J){p.eventTarget.listen(nwM,J);
return p},wRU=function(p,J){p.eventTarget.listen(KXp,J);
return p},Tbj=function(p,J){p.options.push(J);
return p},xZe=function(p){var J=[p.getOrigin()];
p.ancestorOrigins&&J.push.apply(J,_.dW(p.ancestorOrigins));var S=new _.V1(p.win.location.href),H=p.startUrl?p.startUrl:p.options.includes("po")?"profile-picture/art":"profile-picture";J=sEp(_.bl(p.getTargetOrigin(),H),"origin",J);p.startUrl&&_.pU(J,"startPath",p.startUrl);p.authUser>0&&_.pU(J,"authuser",p.authUser);p.pageId!==void 0&&_.pU(J,"pageId",p.pageId);_.pU(J,"hostId",p.hostId);p.jsMode!==void 0&&_.pU(J,"jsmode",p.jsMode);p.rectangleRatio!==void 0&&_.pU(J,"rectangleRatio",p.rectangleRatio);
p.options.length>0&&_.pU(J,"opts",p.options.join(","));try{for(var M=_.K(["utm_source","utm_medium","utm_campaign","utm_content"]),X=M.next();!X.done;X=M.next()){var Z=X.value;_.LC(S,Z)&&_.pU(J,Z,_.LC(S,Z))}var n,b=(n=p.hl)!=null?n:_.LC(S,"hl");b!==void 0&&_.pU(J,"hl",b)}catch(F){if(!(F instanceof URIError))throw F;}p.colorScheme&&_.pU(J,"theme",p.colorScheme);p.style&&_.pU(J,"style",p.style);return J},cWe=function(p,J){p.mainChannel=_.Zv({destination:p.win,
iframe:J,origin:p.getTargetOrigin().toString(),channelName:"ow",onMessage:function(S){S=MgU(S.data);if(J===p.iframe)switch(_.Uw(S,1)){case 1:p.eventTarget.dispatchEvent(new FXy);agy(p);break;case 2:p.eventTarget.dispatchEvent(new bqI(_.B_(S,4),_.B_(S,2),_.Uw(S,5),_.PB(S,JWj,6)));break;case 0:var H;p.eventTarget.dispatchEvent(new mZf(_.B_(S,2),(H=_.Uw(S,3))!=null?H:0));break;case 3:p.eventTarget.dispatchEvent(new FXy(!0));agy(p,!1);break;case 4:p.eventTarget.dispatchEvent(new vwU)}}})},lgf=function(p,
J,S){_.Zv({destination:p.win,
iframe:J,origin:_.Gq(_.nN(_.ZI(new _.V1,p.scheme),p.domain),p.port).toString(),channelName:"owi",onMessage:function(H){J===p.iframe&&(S!==void 0&&S(),cWe(p,J),p.opened&&p.mainChannel.send(RDe(iqP())),H.reply(),lgf(p,J))}})};
dZl.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?du.prototype.preloadIframe.call(this,xZe(this).toString()):this.iframeLoadPromise};
dZl.prototype.openPicker=function(p){var J=this;return _.G(function(S){if(S.nextAddress==1)return J.startUrl=p?p:J.options.includes("po")?"profile-picture/art":"profile-picture",S.yield(Ewf(J,xZe(J).toString()),2);if(J.mainChannel){var H=J.mainChannel,M=H.send;var X=iqP();X=_.g2(X,2,J.startUrl);M.call(H,RDe(X))}_.UK(S)})};var Igl=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(Igl,_.Kt);_.R=Igl.prototype;_.R.getSize=function(){return vS(this,1)};
_.R.setSize=function(p){return _.hF(this,1,p)};
_.R.getWidth=function(){return vS(this,12)};
_.R.getHeight=function(){return vS(this,13)};
_.R.setCenterCrop=function(p){return _.fC(this,20,p)};
_.R.getHtml=function(){return _.Q3(this,4)};
_.R.getToken=function(){return _.W0(this,24)};
_.R.setToken=function(p){return _.g2(this,24,p)};
_.R.getBackgroundColor=function(){return vS(this,87)};
_.R.hasBackgroundColor=function(){return _.KP(_.fu(this,87))!=null};
_.R.getStoryboardLevel=function(){return vS(this,109)};var u2=function(p){this.JSC$20082_value_=void 0;this.childNodes_={};if(p){var J=_.F4o(p);p=_.KN(p);for(var S=0;S<J.length;S++)this.set(J[S],p[S])}};
u2.prototype.set=function(p,J){LXM(this,p,J,!1)};
u2.prototype.add=function(p,J){LXM(this,p,J,!0)};
var LXM=function(p,J,S,H){for(var M=0;M<J.length;M++){var X=J.charAt(M);p.childNodes_[X]||(p.childNodes_[X]=new u2);p=p.childNodes_[X]}if(H&&p.JSC$20082_value_!==void 0)throw Error("Hk`"+J);p.JSC$20082_value_=S},p3U=function(p,J){for(var S=0;S<J.length;S++)if(p=p.childNodes_[J.charAt(S)],!p)return;
return p};
u2.prototype.get=function(p){return(p=p3U(this,p))?p.JSC$20082_value_:void 0};
u2.prototype.getValues=function(){var p=[];JLN(this,p);return p};
var JLN=function(p,J){p.JSC$20082_value_!==void 0&&J.push(p.JSC$20082_value_);for(var S in p.childNodes_)JLN(p.childNodes_[S],J)};
u2.prototype.getKeys=function(p){var J=[];if(p){for(var S=this,H=0;H<p.length;H++){var M=p.charAt(H);if(!S.childNodes_[M])return[];S=S.childNodes_[M]}SZN(S,p,J)}else SZN(this,"",J);return J};
var SZN=function(p,J,S){p.JSC$20082_value_!==void 0&&S.push(J);for(var H in p.childNodes_)SZN(p.childNodes_[H],J+H,S)};
_.R=u2.prototype;_.R.containsKey=function(p){return this.get(p)!==void 0};
_.R.containsValue=function(p){if(this.JSC$20082_value_===p)return!0;for(var J in this.childNodes_)if(this.childNodes_[J].containsValue(p))return!0;return!1};
_.R.clear=function(){this.childNodes_={};this.JSC$20082_value_=void 0};
_.R.remove=function(p){for(var J=this,S=[],H=0;H<p.length;H++){var M=p.charAt(H);if(!J.childNodes_[M])throw Error("Ik`"+p);S.push([J,M]);J=J.childNodes_[M]}p=J.JSC$20082_value_;for(delete J.JSC$20082_value_;S.length>0;)if(H=S.pop(),J=H[0],H=H[1],J.childNodes_[H].isEmpty())delete J.childNodes_[H];else break;return p};
_.R.clone=function(){return new u2(this)};
_.R.getCount=function(){return WZU(this.getValues())};
_.R.isEmpty=function(){return this.JSC$20082_value_===void 0&&_.T6.isEmpty(this.childNodes_)};var Qtf=function(){if(!HDP){var p=HDP=new u2,J;for(J in Mpw)p.add(J,Mpw[J])}},HDP,l2=function(p,J){this.types=p;
this.setters=J},Mpw={a:new l2([3,
0],[function(p,J){_.fC(p,21,J)},
function(p,J){_.hF(p,56,J)}]),
al:new l2([3],[function(p,J){_.fC(p,74,J)}]),
b:new l2([3,0],[function(p,J){_.fC(p,23,J)},
function(p,J){_.hF(p,38,J)}]),
ba:new l2([0],[function(p,J){_.hF(p,85,J)}]),
bc:new l2([0],[function(p,J){_.hF(p,87,J)}]),
br:new l2([0],[function(p,J){_.hF(p,86,J)}]),
c:new l2([3,0],[function(p,J){_.fC(p,2,J)},
function(p,J){_.hF(p,39,J)}]),
cc:new l2([3],[function(p,J){_.fC(p,51,J)}]),
ci:new l2([3],[function(p,J){_.fC(p,32,J)}]),
ckm:new l2([3],[function(p,J){_.fC(p,104,J)}]),
cp:new l2([0],[function(p,J){_.hF(p,92,J)}]),
cr:new l2([3],[function(p,J){_.fC(p,108,J)}]),
cv:new l2([0],[function(p,J){_.hF(p,94,J)}]),
d:new l2([3],[function(p,J){_.fC(p,3,J)}]),
dc:new l2([5],[function(p,J){_.g2(p,99,J)}]),
df:new l2([3],[function(p,J){_.fC(p,80,J)}]),
dv:new l2([3],[function(p,J){_.fC(p,90,J)}]),
e:new l2([0],[function(p,J){_.hF(p,15,J)}]),
em:new l2([0],[function(p,J){_.hF(p,107,J)}]),
f:new l2([4],[function(p,J){_.g2(p,16,J)}]),
fg:new l2([3],[function(p,J){_.fC(p,34,J)}]),
fh:new l2([3],[function(p,J){_.fC(p,30,J)}]),
fm:new l2([3],[function(p,J){_.fC(p,84,J)}]),
fo:new l2([2],[function(p,J){_.e9(p,79,_.jL(J))}]),
ft:new l2([3],[function(p,J){_.fC(p,50,J)}]),
fv:new l2([3],[function(p,J){_.fC(p,31,J)}]),
g:new l2([3],[function(p,J){_.fC(p,14,J)}]),
gce:new l2([4],[function(p,J){_.g2(p,112,J)}]),
gd:new l2([3],[function(p,J){_.fC(p,83,J)}]),
gm:new l2([3],[function(p,J){_.fC(p,105,J)}]),
h:new l2([3,0],[function(p,J){_.fC(p,4,J)},
function(p,J){_.hF(p,13,J)}]),
i:new l2([3],[function(p,J){_.fC(p,22,J)}]),
ic:new l2([0],[function(p,J){_.hF(p,71,J)}]),
id:new l2([3],[function(p,J){_.fC(p,70,J)}]),
il:new l2([3],[function(p,J){_.fC(p,96,J)}]),
ip:new l2([3],[function(p,J){_.fC(p,54,J)}]),
iv:new l2([0],[function(p,J){_.Tg(p,75,J)}]),
j:new l2([1],[function(p,J){J=J==null?J:PCy(J);_.e9(p,29,J)}]),
k:new l2([3,0],[function(p,J){_.fC(p,17,J)},
function(p,J){_.hF(p,42,J)}]),
l:new l2([0],[function(p,J){_.hF(p,44,J)}]),
lf:new l2([3],[function(p,J){_.fC(p,65,J)}]),
lo:new l2([3],[function(p,J){_.fC(p,97,J)}]),
m:new l2([0],[function(p,J){_.hF(p,63,J)}]),
md:new l2([3],[function(p,J){_.fC(p,91,J)}]),
mm:new l2([4],[function(p,J){_.g2(p,81,J)}]),
mo:new l2([3],[function(p,J){_.fC(p,73,J)}]),
mp:new l2([0],[function(p,J){_.hF(p,115,J)}]),
mv:new l2([3],[function(p,J){_.fC(p,66,J)}]),
n:new l2([3],[function(p,J){p.setCenterCrop(J)}]),
nc:new l2([3],[function(p,J){_.fC(p,55,J)}]),
nd:new l2([3],[function(p,J){_.fC(p,53,J)}]),
ng:new l2([3],[function(p,J){_.fC(p,95,J)}]),
ngm:new l2([3],[function(p,J){_.fC(p,106,J)}]),
no:new l2([3],[function(p,J){_.fC(p,37,J)}]),
ns:new l2([3],[function(p,J){_.fC(p,40,J)}]),
nt0:new l2([4],[function(p,J){_.g2(p,36,J)}]),
ntm:new l2([3],[function(p,J){_.fC(p,114,J)}]),
nu:new l2([3],[function(p,J){_.fC(p,46,J)}]),
nw:new l2([3],[function(p,J){_.fC(p,48,J)}]),
o:new l2([1,3],[function(p,J){J=J==null?J:PCy(J);_.e9(p,7,J)},
function(p,J){_.fC(p,27,J)}]),
p:new l2([3,0],[function(p,J){_.fC(p,19,J)},
function(p,J){_.hF(p,43,J)}]),
pa:new l2([3],[function(p,J){_.fC(p,61,J)}]),
pc:new l2([0],[function(p,J){_.hF(p,88,J)}]),
pd:new l2([3],[function(p,J){_.fC(p,60,J)}]),
pf:new l2([3],[function(p,J){_.fC(p,67,J)}]),
pg:new l2([3],[function(p,J){_.fC(p,72,J)}]),
pi:new l2([2],[function(p,J){_.e9(p,76,_.jL(J))}]),
pp:new l2([3],[function(p,J){_.fC(p,52,J)}]),
pt:new l2([4],[function(p,J){_.g2(p,111,J)}]),
q:new l2([4],[function(p,J){_.g2(p,28,J)}]),
r:new l2([3,0],[function(p,J){_.fC(p,6,J)},
function(p,J){_.hF(p,26,J)}]),
ra:new l2([3],[function(p,J){_.fC(p,103,J)}]),
rf:new l2([3],[function(p,J){_.fC(p,100,J)}]),
rg:new l2([3],[function(p,J){_.fC(p,59,J)}]),
rh:new l2([3],[function(p,J){_.fC(p,49,J)}]),
rj:new l2([3],[function(p,J){_.fC(p,57,J)}]),
ro:new l2([2],[function(p,J){_.e9(p,78,_.jL(J))}]),
rp:new l2([3],[function(p,J){_.fC(p,58,J)}]),
rw:new l2([3],[function(p,J){_.fC(p,35,J)}]),
rwa:new l2([3],[function(p,J){_.fC(p,64,J)}]),
rwu:new l2([3],[function(p,J){_.fC(p,41,J)}]),
s:new l2([3,0],[function(p,J){_.fC(p,33,J)},
function(p,J){p.setSize(J)}]),
sb:new l2([0],[function(p,J){_.hF(p,110,J)}]),
sc:new l2([0],[function(p,J){_.hF(p,89,J)}]),
sg:new l2([3],[function(p,J){_.fC(p,82,J)}]),
sl:new l2([0],[function(p,J){_.hF(p,109,J)}]),
sm:new l2([3],[function(p,J){_.fC(p,93,J)}]),
t:new l2([4],[function(p,J){p.setToken(J)}]),
tm:new l2([3],[function(p,J){_.fC(p,113,J)}]),
u:new l2([3],[function(p,J){_.fC(p,18,J)}]),
ut:new l2([3],[function(p,J){_.fC(p,45,J)}]),
v:new l2([0],[function(p,J){_.hF(p,62,J)}]),
vb:new l2([0],[function(p,J){_.Tg(p,68,J)}]),
vf:new l2([4],[function(p,J){_.g2(p,102,J)}]),
vl:new l2([0],[function(p,J){_.Tg(p,69,J)}]),
vm:new l2([3],[function(p,J){_.fC(p,98,J)}]),
w:new l2([0],[function(p,J){_.hF(p,12,J)}]),
x:new l2([0],[function(p,J){_.hF(p,9,J)}]),
y:new l2([0],[function(p,J){_.hF(p,10,J)}]),
ya:new l2([2],[function(p,J){_.e9(p,77,_.jL(J))}]),
z:new l2([0],[function(p,J){_.hF(p,11,J)}])};
Qtf.prototype.parse=function(p){var J=new Igl,S=new Igl;if(p=="")p=!0;else{p=p.split("-");for(var H=!0,M=0;M<p.length;M++){var X=p[M];if(X.length==0)H=!1;else{var Z=X,n=!1;var b=Z;var F=Z.charAt(0);F!=F.toLowerCase()&&(n=!0,b=Z.charAt(0).toLowerCase()+Z.substring(1));var f=HDP;for(F=1;F<=b.length;++F){var O=f,A=b.substring(0,F);if(A.length==0?O.isEmpty():!p3U(O,A))break}b=F==1?null:(b=f.get(b.substring(0,F-1)))?{option:Z.substring(0,F-1),value:Z.substring(F-1),signed:n,attributes:b}:null;if(b){Z=
[];n=[];F=!1;for(f=0;f<b.attributes.types.length;f++){O=b.attributes.types[f];var P=b.value;A=M;if(b.signed&&O==1)for(var W=P.length;W<12&&A<p.length-1;)P+="-"+p[A+1],W=P.length,++A;else if(O==2)for(;A<p.length-1&&p[A+1].match(/^[\d\.]/);)P+="-"+p[A+1],++A;W=b.attributes.setters[f];P=X3I(this,O)(b.option,P,J,S,W);if(P===null){F=!0;M=A;break}else Z.push(O),n.push(P)}if(!F)for(b=0;b<n.length;b++)f=Z[b],P=n[b],iDI(this,f)(X,P);H=H&&F}else H=!1}}p=H}return new RgI(J,S,p)};
var KUw=function(p,J,S,H,M,X){M(S,J);p=p.charAt(0);X=X(p==p.toUpperCase());M(H,X)};
_.R=Qtf.prototype;_.R.parseAndSetIntOption_=function(p,J,S,H,M){if(J=="")return 0;isFinite(J)&&(J=String(J));J=typeof J==="string"?/^\s*-?0x/i.test(J)?parseInt(J,16):parseInt(J,10):NaN;if(isNaN(J))return 1;KUw(p,J,S,H,M,Number);return null};
_.R.logIntParseError_=function(){};
_.R.parseAndSetFloatOption_=function(p,J,S,H,M){if(J=="")return 0;var X=Number(J);J=X==0&&_.Rv(J)?NaN:X;if(isNaN(J))return 1;KUw(p,J,S,H,M,Number);return null};
_.R.logFloatParseError_=function(){};
_.R.parseAndSetBoolOption_=function(p,J,S,H,M){if(J!="")return 2;KUw(p,!0,S,H,M,Boolean);return null};
_.R.logBoolParseError_=function(){};
_.R.parseAndSetStringOption_=function(p,J,S,H,M){if(J=="")return 0;KUw(p,J,S,H,M,function(X){return X?"1":""});
return null};
_.R.logStringParseError_=function(){};
_.R.parseAndSetUint64Base64Option_=function(p,J,S,H,M){if(J=="")return 0;KUw(p,J,S,H,M,function(X){return X?1:0});
return null};
var X3I=function(p,J){switch(J){case 0:return(0,_.tT)(p.parseAndSetIntOption_,p);case 2:return(0,_.tT)(p.parseAndSetFloatOption_,p);case 3:return(0,_.tT)(p.parseAndSetBoolOption_,p);case 4:return(0,_.tT)(p.parseAndSetStringOption_,p);case 1:return(0,_.tT)(p.parseAndSetUint64Base64Option_,p);default:return function(){}}},iDI=function(p,J){switch(J){case 0:return(0,_.tT)(p.logIntParseError_,p);
case 2:return(0,_.tT)(p.logFloatParseError_,p);case 3:return(0,_.tT)(p.logBoolParseError_,p);case 4:case 1:return(0,_.tT)(p.logStringParseError_,p);default:return function(){}}},RgI=function(p,J,S){this.valueProto_=p;
this.signatureFlagProto_=J;this.JSC$20094_valid_=S};
RgI.prototype.isValid=function(){return this.JSC$20094_valid_};var $Br=function(p){this.JSC$20095_parser_=null;this.JSC$20095_components_=[];this.JSC$20095_parsedOptions_=null;ZDU(this,p)},nNy=function(p){p.JSC$20095_parser_==null&&(p.JSC$20095_parser_=new Qtf);
return p.JSC$20095_parser_},ZDU=function(p,J){p.JSC$20095_parsedOptions_=J?typeof J==="string"?nNy(p).parse(J):J:nNy(p).parse("")},Vo=function(p,J){return p==J?!1:!0};
_.R=$Br.prototype;_.R.JSC$20097_setCrop=function(p){p=p||void 0;var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,_.Q3(S,2),_.Q3(J.signatureFlagProto_,2))&&_.fC(S,2,p);return this};
_.R.JSC$20097_setCircleCrop=function(p){p=p||void 0;var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,FO(S,51),FO(J.signatureFlagProto_,51))&&_.fC(S,51,p);return this};
_.R.JSC$20097_setImageCrop=function(p){p=p||void 0;var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,FO(S,32),FO(J.signatureFlagProto_,32))&&_.fC(S,32,p);return this};
_.R.JSC$20097_setHeight=function(p){var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,S.getHeight(),J.signatureFlagProto_.getHeight())&&_.hF(S,13,p);return this};
_.R.setCenterCrop=function(p){p=p||void 0;var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,_.Q3(S,20),_.Q3(J.signatureFlagProto_,20))&&S.setCenterCrop(p);return this};
_.R.JSC$20097_setSmartCrop=function(p){p=p||void 0;var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,_.Q3(S,19),_.Q3(J.signatureFlagProto_,19))&&_.fC(S,19,p);return this};
_.R.JSC$20097_setPad=function(p){p=p||void 0;var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,FO(S,60),FO(J.signatureFlagProto_,60))&&_.fC(S,60,p);return this};
_.R.JSC$20097_setSmartCropUseFace=function(p){p=p||void 0;var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,_.Q3(S,67),_.Q3(J.signatureFlagProto_,67))&&_.fC(S,67,p);return this};
_.R.JSC$20097_setSmartCropNoClip=function(p){p=p||void 0;var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,_.Q3(S,52),_.Q3(J.signatureFlagProto_,52))&&_.fC(S,52,p);return this};
_.R.setSize=function(p){var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,S.getSize(),J.signatureFlagProto_.getSize())&&S.setSize(p);return this};
_.R.setToken=function(p){p=p||void 0;var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,S.getToken(),J.signatureFlagProto_.getToken())&&S.setToken(p);return this};
_.R.JSC$20097_setWidth=function(p){var J=this.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(p,S.getWidth(),J.signatureFlagProto_.getWidth())&&_.hF(S,12,p);return this};
_.R.clearOptions=function(){ZDU(this,"");return this};
_.R.build=function(){this.JSC$20095_components_.length=0;var p=this.JSC$20095_parsedOptions_,J=p.valueProto_;p=p.signatureFlagProto_;q2(this,"s",J.getSize(),p.getSize());q2(this,"w",J.getWidth(),p.getWidth());az(this,"c",_.Q3(J,2),_.Q3(p,2));az(this,"d",_.Q3(J,3),_.Q3(p,3));q2(this,"h",J.getHeight(),p.getHeight());az(this,"s",FO(J,33),FO(p,33));az(this,"h",J.getHtml(),p.getHtml());az(this,"p",_.Q3(J,19),_.Q3(p,19));az(this,"pp",_.Q3(J,52),_.Q3(p,52));az(this,"pf",_.Q3(J,67),_.Q3(p,67));az(this,"n",
_.Q3(J,20),_.Q3(p,20));q2(this,"r",vS(J,26),vS(p,26));az(this,"r",_.Q3(J,6),_.Q3(p,6));az(this,"o",FO(J,27),FO(p,27));var S=_.W_(J,7,_.v_);EO(this,"o",S,_.W_(p,7,_.v_));S=_.W_(J,29,_.v_);EO(this,"j",S,_.W_(p,29,_.v_));q2(this,"x",vS(J,9),vS(p,9));q2(this,"y",vS(J,10),vS(p,10));q2(this,"z",vS(J,11),vS(p,11));az(this,"g",_.Q3(J,14),_.Q3(p,14));q2(this,"e",vS(J,15),vS(p,15));EO(this,"f",_.W0(J,16),_.W0(p,16));az(this,"k",FO(J,17),FO(p,17));az(this,"u",FO(J,18),!0);az(this,"ut",FO(J,45),!0);az(this,"i",
FO(J,22),!0);az(this,"a",FO(J,21),FO(p,21));az(this,"b",_.Q3(J,23),_.Q3(p,23));q2(this,"b",vS(J,38),vS(p,38));q2(this,"c",vS(J,39),vS(p,39),16,8);EO(this,"q",_.W0(J,28),_.W0(p,28));az(this,"fh",FO(J,30),FO(p,30));az(this,"fv",FO(J,31),FO(p,31));az(this,"fg",_.Q3(J,34),_.Q3(p,34));az(this,"ci",FO(J,32),FO(p,32));EO(this,"t",J.getToken(),p.getToken());EO(this,"nt0",_.W0(J,36),_.W0(p,36));az(this,"rw",_.Q3(J,35),_.Q3(p,35));az(this,"rwu",_.Q3(J,41),_.Q3(p,41));az(this,"rwa",_.Q3(J,64),_.Q3(p,64));az(this,
"nw",_.Q3(J,48),_.Q3(p,48));az(this,"rh",_.Q3(J,49),_.Q3(p,49));az(this,"no",_.Q3(J,37),_.Q3(p,37));az(this,"ns",FO(J,40),FO(p,40));q2(this,"k",vS(J,42),vS(p,42));q2(this,"p",vS(J,43),vS(p,43));q2(this,"l",vS(J,44),vS(p,44));q2(this,"v",vS(J,62),vS(p,62));az(this,"nu",FO(J,46),FO(p,46));az(this,"ft",FO(J,50),FO(p,50));az(this,"cc",FO(J,51),FO(p,51));az(this,"nd",FO(J,53),FO(p,53));az(this,"ip",FO(J,54),FO(p,54));az(this,"nc",FO(J,55),FO(p,55));q2(this,"a",vS(J,56),vS(p,56));az(this,"rj",FO(J,57),
FO(p,57));az(this,"rp",FO(J,58),FO(p,58));az(this,"rg",FO(J,59),FO(p,59));az(this,"pd",FO(J,60),FO(p,60));az(this,"pa",FO(J,61),FO(p,61));q2(this,"m",vS(J,63),vS(p,63));q2(this,"vb",fp(J,68),fp(p,68));q2(this,"vl",fp(J,69),fp(p,69));az(this,"lf",FO(J,65),FO(p,65));az(this,"mv",FO(J,66),FO(p,66));az(this,"id",FO(J,70),FO(p,70));q2(this,"ic",vS(J,71),!0);az(this,"pg",_.Q3(J,72),_.Q3(p,72));az(this,"mo",FO(J,73),FO(p,73));az(this,"al",FO(J,74),FO(p,74));q2(this,"iv",fp(J,75),fp(p,75));q2(this,"pi",OO(J,
76),OO(p,76));q2(this,"ya",OO(J,77),OO(p,77));q2(this,"ro",OO(J,78),OO(p,78));q2(this,"fo",OO(J,79),OO(p,79));az(this,"df",FO(J,80),FO(p,80));EO(this,"mm",_.W0(J,81),_.W0(p,81));az(this,"sg",FO(J,82),FO(p,82));az(this,"gd",FO(J,83),FO(p,83));az(this,"fm",FO(J,84),FO(p,84));q2(this,"ba",vS(J,85),vS(p,85));q2(this,"br",vS(J,86),vS(p,86));q2(this,"bc",J.getBackgroundColor(),p.getBackgroundColor(),16,8);q2(this,"pc",vS(J,88),vS(p,88),16,8);q2(this,"sc",vS(J,89),vS(p,89),16,8);az(this,"dv",FO(J,90),FO(p,
90));az(this,"md",FO(J,91),FO(p,91));q2(this,"cp",vS(J,92),vS(p,92));az(this,"sm",FO(J,93),FO(p,93));q2(this,"cv",vS(J,94),vS(p,94));az(this,"ng",FO(J,95),FO(p,95));az(this,"il",FO(J,96),FO(p,96));az(this,"lo",FO(J,97),FO(p,97));az(this,"vm",FO(J,98),FO(p,98));EO(this,"dc",_.W0(J,99),_.W0(p,99));az(this,"rf",FO(J,100),FO(p,100));EO(this,"vf",_.W0(J,102),_.W0(p,102));az(this,"ra",_.Q3(J,103),_.Q3(p,103));az(this,"ckm",FO(J,104),FO(p,104));az(this,"gm",FO(J,105),FO(p,105));az(this,"ngm",FO(J,106),FO(p,
106));q2(this,"em",vS(J,107),vS(p,107));az(this,"cr",FO(J,108),FO(p,108));q2(this,"sl",J.getStoryboardLevel(),p.getStoryboardLevel());q2(this,"sb",vS(J,110),vS(p,110));EO(this,"pt",_.W0(J,111),_.W0(p,111));EO(this,"gce",_.W0(J,112),_.W0(p,112));az(this,"tm",FO(J,113),FO(p,113));az(this,"ntm",FO(J,114),FO(p,114));q2(this,"mp",vS(J,115),vS(p,115));return this.JSC$20095_components_.join("-")};
var q2=function(p,J,S,H,M,X){if(S!=null){var Z=M==void 0||M!=10&&M!=16?10:M;S=Number(S).toString(Z);M=new dnI;M.append(Z==16?"0x":"");Z=M.append;X==void 0?X="":(X-=S.length,X=X<=0?"":(0,_.GHd)("0",X));Z.call(M,X);M.append(S);G_M(p,J,M.toString(),!!Number(H))}},az=function(p,J,S,H){S&&G_M(p,J,"",!!H)},EO=function(p,J,S,H){S&&G_M(p,J,String(S),!!Number(H))},G_M=function(p,J,S,H){H&&(J=J.charAt(0).toUpperCase()+J.substring(1));
p.JSC$20095_components_.push(J+S)};_.SJ(UW,$Br);_.R=UW.prototype;_.R.JSC$20097_setCrop=function(p){p&&Yb(this);return UW.superClass_.JSC$20097_setCrop.call(this,p)};
_.R.JSC$20097_setHeight=function(p){p=p==null||p<0?void 0:p;p!=null&&this.setSize();return UW.superClass_.JSC$20097_setHeight.call(this,p)};
_.R.JSC$20097_setImageCrop=function(p){p&&Yb(this);return UW.superClass_.JSC$20097_setImageCrop.call(this,p)};
_.R.JSC$20097_setCircleCrop=function(p){p&&Yb(this);return UW.superClass_.JSC$20097_setCircleCrop.call(this,p)};
_.R.setSize=function(p){_.Ei(p)&&(p=Math.max(p.width,p.height));p=p==null||p<0?void 0:p;p!=null&&(this.JSC$20097_setWidth(),this.JSC$20097_setHeight());return UW.superClass_.setSize.call(this,p)};
_.R.JSC$20097_setSmartCrop=function(p){p&&Yb(this);return UW.superClass_.JSC$20097_setSmartCrop.call(this,p)};
_.R.JSC$20097_setSmartCropNoClip=function(p){p&&Yb(this);return UW.superClass_.JSC$20097_setSmartCropNoClip.call(this,p)};
_.R.JSC$20097_setSmartCropUseFace=function(p){p&&Yb(this);return UW.superClass_.JSC$20097_setSmartCropUseFace.call(this,p)};
_.R.setCenterCrop=function(p){p&&Yb(this);return UW.superClass_.setCenterCrop.call(this,p)};
_.R.JSC$20097_setPad=function(p){p&&Yb(this);return UW.superClass_.JSC$20097_setPad.call(this,p)};
_.R.JSC$20097_setWidth=function(p){p=p==null||p<0?void 0:p;p!=null&&this.setSize();return UW.superClass_.JSC$20097_setWidth.call(this,p)};
var bDw=function(p){p.clearOptions();var J=p.JSC$20095_parsedOptions_,S=J.valueProto_;Vo(!0,_.Q3(S,3),_.Q3(J.signatureFlagProto_,3))&&_.fC(S,3,!0);return p},Yb=function(p){p.setCenterCrop();
p.JSC$20097_setCircleCrop();p.JSC$20097_setCrop();p.JSC$20097_setImageCrop();p.JSC$20097_setPad();p.JSC$20097_setSmartCrop();p.JSC$20097_setSmartCropNoClip();p.JSC$20097_setSmartCropUseFace()};
UW.prototype.build=function(){var p=this.JSC$20095_parsedOptions_.valueProto_;FO(p,18)||FO(p,45)?p.getSize()||this.setSize(0):(p=this.JSC$20095_parsedOptions_.valueProto_,p.getSize()||p.getWidth()||p.getHeight()||(this.setSize(),this.JSC$20097_setHeight(),this.JSC$20097_setWidth(),Yb(this)));return UW.superClass_.build.call(this)};var maI=/^[^\/]*\/\//,FUe=function(p,J){J=J===void 0?!1:J;this.original_=p;this.originalPrefix_="";(p=this.original_.match(maI))&&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_=_.I7(p,!0);this.isFreeformUrl_=J;this.JSC$20101_valid_=!0;this.obfuscated_=!1},vNP=function(p,J){p.JSC$20103_pathPrefix_=p.JSC$20103_pathPrefix_?p.JSC$20103_pathPrefix_+("/"+J):J},ru=function(p){if(p.JSC$20103_components_==
void 0){var J=p.uri_.getPath().substring(1);
p.JSC$20103_pathPrefix_=null;if(p.isFreeformUrl_){p.JSC$20103_components_=[];if((J.match(/=/g)||[]).length>1)return p.JSC$20101_valid_=!1,p.JSC$20103_components_;var S=J.indexOf("=");S!=-1?(p.JSC$20103_components_.push(J.substr(0,S)),p.JSC$20103_components_.push(J.substr(S+1))):p.JSC$20103_components_.push(J);return p.JSC$20103_components_}p.JSC$20103_components_=J.split("/");J=p.JSC$20103_components_.length;J>2&&p.JSC$20103_components_[0]=="u"&&(vNP(p,p.JSC$20103_components_[0]+"/"+p.JSC$20103_components_[1]),
p.JSC$20103_components_.shift(),p.JSC$20103_components_.shift(),J-=2);if(J==0||J==4||J>7)return p.JSC$20101_valid_=!1,p.JSC$20103_components_;if(J==2)vNP(p,p.JSC$20103_components_[0]);else if(p.JSC$20103_components_[0]=="image")vNP(p,p.JSC$20103_components_[0]);else if(J==7||J==3)return p.JSC$20101_valid_=!1,p.JSC$20103_components_;if(J<=3){p.obfuscated_=!0;J==3&&(vNP(p,p.JSC$20103_components_[1]),p.JSC$20103_components_.shift(),--J);--J;S=p.JSC$20103_components_[J];var H=S.indexOf("=");H!=-1&&(p.JSC$20103_components_[J]=
S.substr(0,H),p.JSC$20103_components_.push(S.substr(H+1)))}}return p.JSC$20103_components_};
FUe.prototype.isValid=function(){ru(this);return this.JSC$20101_valid_};
FUe.prototype.isObfuscated=function(){ru(this);return this.obfuscated_};
var f0U=function(p){ru(p);return p.isFreeformUrl_},jX=function(p){ru(p);
p.JSC$20103_pathPrefix_==void 0&&(p.JSC$20103_pathPrefix_=null);return p.JSC$20103_pathPrefix_},OD$=function(p){switch(ru(p).length){case 7:return!0;
case 6:return jX(p)==null;case 5:return!1;case 3:return!0;case 2:return jX(p)==null;case 1:return!1;default:return!1}},wu=function(p,J){if(f0U(p))a:{switch(J){case 7:J=0;
break;case 4:if(!OD$(p)){p=null;break a}J=1;break;default:p=null;break a}p=ru(p)[J]}else if(p.isObfuscated())a:{var S=jX(p)!=null?1:0;switch(J){case 6:J=S;break;case 4:if(!OD$(p)){p=null;break a}J=1+S;break;default:p=null;break a}p=ru(p)[J]}else a:{S=jX(p)!=null?1:0;switch(J){case 0:J=S;break;case 1:J=1+S;break;case 2:J=2+S;break;case 3:J=3+S;break;case 4:if(!OD$(p)){p=null;break a}J=4+S;break;case 5:J=OD$(p)?1:0;J=4+S+J;break;default:p=null;break a}p=ru(p)[J]}return p};
FUe.prototype.getOptions=function(){this.options_==void 0&&(this.options_=wu(this,4));return this.options_};var WKN=function(){};
WKN.prototype.parse=function(p,J){return new o8$(p,J===void 0?!1:J)};
var o8$=function(p,J){FUe.call(this,p,J===void 0?!1:J)};
_.Q(o8$,FUe);_.SJ(C6I,UW);var ele;C6I.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
C6I.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var p=C6I.superClass_.build.call(this),J=[];jX(this.parsedImageUrl_)!=null&&J.push(jX(this.parsedImageUrl_));var S=f0U(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var H=this.parsedImageUrl_;H.obfuscatedData_==void 0&&(H.obfuscatedData_=wu(H,6));J.push(H.obfuscatedData_+(p?"="+p:""))}else if(S){H=J.push;var M=this.parsedImageUrl_;M.freeformUrlPath_===void 0&&(M.freeformUrlPath_=
wu(M,7));H.call(J,M.freeformUrlPath_);p&&J.push(p)}else H=J.push,M=this.parsedImageUrl_,M.obfuscatedGaiaId_==void 0&&(M.obfuscatedGaiaId_=wu(M,0)),H.call(J,M.obfuscatedGaiaId_),H=J.push,M=this.parsedImageUrl_,M.photoId_==void 0&&(M.photoId_=wu(M,1)),H.call(J,M.photoId_),H=J.push,M=this.parsedImageUrl_,M.imageVersion_==void 0&&(M.imageVersion_=wu(M,2)),H.call(J,M.imageVersion_),H=J.push,M=this.parsedImageUrl_,M.signature_==void 0&&(M.signature_=wu(M,3)),H.call(J,M.signature_),p&&J.push(p),p=J.push,
H=this.parsedImageUrl_,H.filename_==void 0&&(H.filename_=wu(H,5)),p.call(J,H.filename_);J=S?J.join("="):J.join("/");J=_.I7(this.protocolPrefix_+this.JSC$20109_domain_+"/"+J+(this.JSC$20109_query_?"?"+this.JSC$20109_query_:"")).toString();J.startsWith("%3a//")&&(J=J.replace("%3a//","://"));return J};var ALw=_.YI(["viewBox"]),P1$=_.YI(["width"]),zgy=_.YI(["height"]),$aM=_.YI(["fill"]),oNj=_.YI(["id"]),egl=_.YI(["x"]),WUp=_.YI(["y"]);yXU.prototype.getLength=function(){return this.parsedData.length};
yXU.prototype.write=function(p){for(var J=0,S=this.parsedData.length;J<S;J++)p.put(this.parsedData[J],8)};
var DBj=function(p,J){var S=new yXU(J);p.dataList.push(S);S=p.errorCorrectLevel;var H=1,M=encodeURI(J).toString().replace(/%[0-9a-fA-F]{2}/g,"a");J=M.length+(M.length!=J?3:0);M=0;for(var X=xb.length;M<=X;M++){var Z=0;switch(S){case 1:Z=xb[M][0];break;case 0:Z=xb[M][1];break;case 3:Z=xb[M][2];break;case 2:Z=xb[M][3]}if(J<=Z)break;else H++}if(H>xb.length)throw Error("Rk");p.typeNumber=H;p.dataCache=null};
B_w.prototype.isDark=function(p,J){if(p<0||this.moduleCount<=p||J<0||this.moduleCount<=J)throw Error("Jk`"+p+"`"+J);return this.modules[p][J]};
for(var ksj=function(p,J,S){p.moduleCount=p.typeNumber*4+17;p.modules=Array(p.moduleCount);for(var H=0;H<p.moduleCount;H++){p.modules[H]=Array(p.moduleCount);for(var M=0;M<p.moduleCount;M++)p.modules[H][M]=null}QO$(p,0,0);QO$(p,p.moduleCount-7,0);QO$(p,0,p.moduleCount-7);H=C1p[p.typeNumber-1];for(M=0;M<H.length;M++)for(var X=0;X<H.length;X++){var Z=H[M],n=H[X];if(p.modules[Z][n]==null)for(var b=-2;b<=2;b++)for(var F=-2;F<=2;F++)p.modules[Z+b][n+F]=b==-2||b==2||F==-2||F==2||b==0&&F==0?!0:!1}for(H=
8;H<p.moduleCount-8;H++)p.modules[H][6]==null&&(p.modules[H][6]=H%2==0);for(H=8;H<p.moduleCount-8;H++)p.modules[6][H]==null&&(p.modules[6][H]=H%2==0);H=p.errorCorrectLevel<<3|S;for(M=H<<10;cS(M)-cS(1335)>=0;)M^=1335<<cS(M)-cS(1335);H=(H<<10|M)^21522;for(M=0;M<15;M++)X=!J&&(H>>M&1)==1,M<6?p.modules[M][8]=X:M<8?p.modules[M+1][8]=X:p.modules[p.moduleCount-15+M][8]=X;for(M=0;M<15;M++)X=!J&&(H>>M&1)==1,M<8?p.modules[8][p.moduleCount-M-1]=X:M<9?p.modules[8][15-M-1+1]=X:p.modules[8][15-M-1]=X;p.modules[p.moduleCount-
8][8]=!J;if(p.typeNumber>=7){H=p.typeNumber;for(M=H<<12;cS(M)-cS(7973)>=0;)M^=7973<<cS(M)-cS(7973);H=H<<12|M;for(M=0;M<18;M++)X=!J&&(H>>M&1)==1,p.modules[Math.floor(M/3)][M%3+p.moduleCount-8-3]=X;for(M=0;M<18;M++)X=!J&&(H>>M&1)==1,p.modules[M%3+p.moduleCount-8-3][Math.floor(M/3)]=X}if(p.dataCache==null){M=p.typeNumber;X=p.dataList;J=p.errorCorrectLevel;H=yLl(M,J);if(H==void 0)throw Error("Qk`"+M+"`"+J);Z=H.length/3;J=[];for(n=0;n<Z;n++){b=H[n*3];F=H[n*3+1];for(var f=H[n*3+2],O=0;O<b;O++)J.push(new UBf(F,
f))}H=new st$;for(Z=0;Z<X.length;Z++)n=X[Z],H.put(n.mode,4),H.put(n.getLength(),BFP(n.mode,M)),n.write(H);for(Z=M=0;Z<J.length;Z++)M+=J[Z].dataCount;if(H.length>M*8)throw Error("Kk`"+H.length+"`"+M*8);for(H.length+4<=M*8&&H.put(0,4);H.length%8!=0;)UaP(H,!1);for(;!(H.length>=M*8);){H.put(236,8);if(H.length>=M*8)break;H.put(17,8)}X=M=F=0;Z=Array(J.length);n=Array(J.length);for(b=0;b<J.length;b++){O=J[b].dataCount;var A=J[b].totalCount-O;M=Math.max(M,O);X=Math.max(X,A);Z[b]=Array(O);for(f=0;f<Z[b].length;f++)Z[b][f]=
255&H.buffer[f+F];F+=O;f=A;O=new sW([1],0);for(A=0;A<f;A++)O=O.multiply(new sW([1,sOU(A)],0));f=O;O=(new sW(Z[b],f.getLength()-1)).mod(f);n[b]=Array(f.getLength()-1);for(f=0;f<n[b].length;f++)A=f+O.getLength()-n[b].length,n[b][f]=A>=0?O.get(A):0}for(f=H=0;f<J.length;f++)H+=J[f].totalCount;H=Array(H);for(f=F=0;f<M;f++)for(b=0;b<J.length;b++)f<Z[b].length&&(H[F++]=Z[b][f]);for(f=0;f<X;f++)for(b=0;b<J.length;b++)f<n[b].length&&(H[F++]=n[b][f]);p.dataCache=H}J=p.dataCache;H=-1;M=p.moduleCount-1;X=7;Z=
0;for(n=p.moduleCount-1;n>0;n-=2)for(n==6&&n--;;){for(b=0;b<2;b++)p.modules[M][n-b]==null&&(F=!1,Z<J.length&&(F=(J[Z]>>>X&1)==1),gNM(S,M,n-b)&&(F=!F),p.modules[M][n-b]=F,X--,X==-1&&(Z++,X=7));M+=H;if(M<0||p.moduleCount<=M){M-=H;H=-H;break}}},QO$=function(p,J,S){for(var H=-1;H<=7;H++)if(!(J+H<=-1||p.moduleCount<=J+H))for(var M=-1;M<=7;M++)S+M<=-1||p.moduleCount<=S+M||(p.modules[J+H][S+M]=0<=H&&H<=6&&(M==0||M==6)||0<=M&&M<=6&&(H==0||H==6)||2<=H&&H<=4&&2<=M&&M<=4?!0:!1)},N_P=function(p){for(var J=0,
S=0,H=0;H<8;H++){ksj(p,!0,H);
var M=p;for(var X=M.moduleCount,Z=0,n=0;n<X;n++)for(var b=0;b<X;b++){for(var F=0,f=M.isDark(n,b),O=-1;O<=1;O++)if(!(n+O<0||X<=n+O))for(var A=-1;A<=1;A++)b+A<0||X<=b+A||(O!=0||A!=0)&&f==M.isDark(n+O,b+A)&&F++;F>5&&(Z+=3+F-5)}for(n=0;n<X-1;n++)for(b=0;b<X-1;b++)if(F=0,M.isDark(n,b)&&F++,M.isDark(n+1,b)&&F++,M.isDark(n,b+1)&&F++,M.isDark(n+1,b+1)&&F++,F==0||F==4)Z+=3;for(n=0;n<X;n++)for(b=0;b<X-6;b++)M.isDark(n,b)&&!M.isDark(n,b+1)&&M.isDark(n,b+2)&&M.isDark(n,b+3)&&M.isDark(n,b+4)&&!M.isDark(n,b+5)&&
M.isDark(n,b+6)&&(Z+=40);for(b=0;b<X;b++)for(n=0;n<X-6;n++)M.isDark(n,b)&&!M.isDark(n+1,b)&&M.isDark(n+2,b)&&M.isDark(n+3,b)&&M.isDark(n+4,b)&&!M.isDark(n+5,b)&&M.isDark(n+6,b)&&(Z+=40);for(b=F=0;b<X;b++)for(n=0;n<X;n++)M.isDark(n,b)&&F++;M=Z+=Math.abs(100*F/X/X-50)/5*10;if(H==0||J>M)J=M,S=H}return S},C1p=[[],
[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]],cS=function(p){for(var J=0;p!=0;)J++,p>>>=1;return J},gNM=function(p,J,S){switch(p){case 0:return(J+S)%2==0;
case 1:return J%2==0;case 2:return S%3==0;case 3:return(J+S)%3==0;case 4:return(Math.floor(J/2)+Math.floor(S/3))%2==0;case 5:return J*S%2+J*S%3==0;case 6:return(J*S%2+J*S%3)%2==0;case 7:return(J*S%3+(J+S)%2)%2==0;default:throw Error("Lk`"+p);}},BFP=function(p,J){if(1<=J&&J<10)switch(p){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Mk`"+p);}else if(J<27)switch(p){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Mk`"+p);}else if(J<41)switch(p){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Mk`"+p);}else throw Error("Nk`"+J);},hgI=function(p){if(p<1)throw Error("Ok`"+p);
return tpf[p]},sOU=function(p){for(;p<0;)p+=255;
for(;p>=256;)p-=255;return Iz[p]},Iz=Array(256),tpf=Array(256),DaM=0;DaM<8;DaM++)Iz[DaM]=1<<DaM;
for(var Lp=8;Lp<256;Lp++)Iz[Lp]=Iz[Lp-4]^Iz[Lp-5]^Iz[Lp-6]^Iz[Lp-8];for(var k_r=0;k_r<255;k_r++)tpf[Iz[k_r]]=k_r;sW.prototype.get=function(p){return this.num[p]};
sW.prototype.getLength=function(){return this.num.length};
sW.prototype.multiply=function(p){for(var J=Array(this.getLength()+p.getLength()-1),S=0;S<this.getLength();S++)for(var H=0;H<p.getLength();H++)J[S+H]^=sOU(hgI(this.get(S))+hgI(p.get(H)));return new sW(J,0)};
sW.prototype.mod=function(p){if(this.getLength()-p.getLength()<0)return this;for(var J=hgI(this.get(0))-hgI(p.get(0)),S=Array(this.getLength()),H=0;H<this.getLength();H++)S[H]=this.get(H);for(H=0;H<p.getLength();H++)S[H]^=sOU(hgI(p.get(H))+J);return(new sW(S,0)).mod(p)};
var NFI=[[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]],yLl=function(p,J){switch(J){case 1:return NFI[(p-1)*4];case 0:return NFI[(p-1)*4+1];case 3:return NFI[(p-1)*4+2];case 2:return NFI[(p-1)*4+3]}};
st$.prototype.get=function(p){return(this.buffer[Math.floor(p/8)]>>>7-p%8&1)==1};
st$.prototype.put=function(p,J){for(var S=0;S<J;S++)UaP(this,(p>>>J-S-1&1)==1)};
var UaP=function(p,J){var S=Math.floor(p.length/8);p.buffer.length<=S&&p.buffer.push(0);J&&(p.buffer[S]|=128>>>p.length%8);p.length++},xb=[[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]],hlr=function(){var p=function(J,S){this.JSC$20129__el=J;this.JSC$20129__htOption=S};
p.prototype.draw=function(J){function S(f,O){f=document.createElementNS("http://www.w3.org/2000/svg",f);for(var A in O)O.hasOwnProperty(A)&&(A==="href"?_.dcP(f,O[A]):_.Zr([_.m9(ALw),_.m9(P1$),_.m9(zgy),_.m9($aM),_.m9(oNj),_.m9(egl),_.m9(WUp)],f,A,O[A]));return f}
var H=this.JSC$20129__htOption,M=this.JSC$20129__el,X=J.moduleCount;this.clear();var Z=S("svg",{viewBox:"0 0 "+String(X)+" "+String(X),width:"100%",height:"100%",fill:H.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});M.appendChild(Z);Z.appendChild(S("rect",{fill:H.colorLight,width:"100%",height:"100%"}));Z.appendChild(S("rect",{fill:H.colorDark,width:"1",height:"1",id:"template"}));for(var n=0;n<X;n++)for(var b=0;b<X;b++)if(J.isDark(n,b)){var F=S("use",{x:String(n),y:String(b),href:"#template"});
Z.appendChild(F)}};
p.prototype.clear=function(){for(;this.JSC$20129__el.hasChildNodes();)this.JSC$20129__el.removeChild(this.JSC$20129__el.lastChild)};
return p}(),tsU=document.documentElement.tagName.toLowerCase()==="svg"?hlr:typeof CanvasRenderingContext2D!="undefined"?function(){var p=function(J,S){this._bIsPainted=!1;
g8I();this.JSC$20129__htOption=S;this._elCanvas=document.createElement("canvas");this._elCanvas.width=S.width;this._elCanvas.height=S.height;J.appendChild(this._elCanvas);this.JSC$20129__el=J;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$20129__el.appendChild(this._elImage);this._bSupportDataURI=null};
p.prototype._onMakeImage=function(){var J=this._elCanvas.toDataURL("image/png");this._elImage.src=J;this._elImage.style.display="block";this._elCanvas.style.display="none"};
p.prototype._safeSetDataURI=function(J,S){var H=this;H._fFail=S;H._fSuccess=J;H._bSupportDataURI===null?(J=_.Q0("IMG"),S=function(){H._bSupportDataURI=!1;H._fFail&&H._fFail.call(H)},J.onabort=S,J.onerror=S,J.onload=function(){H._bSupportDataURI=!0;
H._fSuccess&&H._fSuccess.call(H)},J.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):H._bSupportDataURI===!0&&H._fSuccess?H._fSuccess.call(H):H._bSupportDataURI===!1&&H._fFail&&H._fFail.call(H)};
p.prototype.draw=function(J){var S=this._oContext,H=this.JSC$20129__htOption,M=J.moduleCount,X=H.width/M,Z=H.height/M,n=Math.round(X),b=Math.round(Z);this._elImage.style.display="none";this.clear();for(var F=0;F<M;F++)for(var f=0;f<M;f++){var O=J.isDark(F,f),A=f*X,P=F*Z;S.strokeStyle=O?H.colorDark:H.colorLight;S.lineWidth=1;S.fillStyle=O?H.colorDark:H.colorLight;S.fillRect(A,P,X,Z);S.strokeRect(Math.floor(A)+.5,Math.floor(P)+.5,n,b);S.strokeRect(Math.ceil(A)-.5,Math.ceil(P)-.5,n,b)}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(J){return J?Math.floor(J*1E3)/1E3:J};
return p}():function(){var p=function(J,S){this.JSC$20129__el=J;
this.JSC$20129__htOption=S};
p.prototype.draw=function(J){for(var S=this.JSC$20129__htOption,H=this.JSC$20129__el,M=J.moduleCount,X=Math.floor(S.width/M),Z=Math.floor(S.height/M),n=['<table style="border:0;border-collapse:collapse;">'],b=0;b<M;b++){n.push("<tr>");for(var F=0;F<M;F++)n.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+X+"px;height:"+Z+"px;background-color:"+(J.isDark(b,F)?S.colorDark:S.colorLight)+';"></td>');n.push("</tr>")}n.push("</table>");J=n.join("");J=_.Jy4(_.HAd,J);_.K_(H,J);
J=H.childNodes[0];M=(S.width-J.offsetWidth)/2;X=(S.height-J.offsetHeight)/2;M>0&&X>0&&(J.style.margin=X+"px "+M+"px")};
p.prototype.clear=function(){this.JSC$20129__el.textContent=""};
return p}();
T_w.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20132__android||this.JSC$20132__android>=3)&&this._oDrawing.makeImage()};
T_w.prototype.clear=function(){this._oDrawing.clear()};
_.Hg.QRCode=T_w;var TFM={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var daP=function(){};
daP.prototype.stringify=function(p){return _.Hg.JSON.stringify(p,void 0)};
daP.prototype.parse=function(p){return _.Hg.JSON.parse(p,void 0)};var uNf=function(){_.yr.call(this,"z")};
_.SJ(uNf,_.yr);var l0P=function(){_.yr.call(this,"y")};
_.SJ(l0P,_.yr);var Vpw=null,qZP=function(){return Vpw=Vpw||new _.te},a0N=function(p){_.yr.call(this,"serverreachability",p)};
_.SJ(a0N,_.yr);var EN$=function(p){var J=qZP();J.dispatchEvent(new a0N(J,p))},YZl=function(p,J){_.yr.call(this,"statevent",p);
this.stat=J};
_.SJ(YZl,_.yr);var pg=function(p){var J=qZP();J.dispatchEvent(new YZl(J,p))},rLN=function(p,J,S,H){_.yr.call(this,"timingevent",p);
this.size=J;this.rtt=S;this.retries=H};
_.SJ(rLN,_.yr);var jOr=function(p,J,S){var H=qZP();H.dispatchEvent(new rLN(H,p,J,S))},w3j=function(p,J){if(typeof p!=="function")throw Error("Sk");
return _.Hg.setTimeout(function(){p()},J)};var JE=function(){this.redactEnabled_=!0};
JE.prototype.disableRedact=function(){this.redactEnabled_=!1};
var xar=function(p,J,S,H,M,X){p.info(function(){if(p.redactEnabled_)if(X){var Z="";for(var n=X.split("&"),b=0;b<n.length;b++){var F=n[b].split("=");if(F.length>1){var f=F[0];F=F[1];var O=f.split("_");Z=O.length>=2&&O[1]=="type"?Z+(f+"="+F+"&"):Z+(f+"=redacted&")}}}else Z=null;else Z=X;return"XMLHTTP REQ ("+H+") [attempt "+M+"]: "+J+"\n"+S+"\n"+Z})},cLj=function(p,J,S,H,M,X,Z){p.info(function(){return"XMLHTTP RESP ("+H+") [ attempt "+M+"]: "+J+"\n"+S+"\n"+X+" "+Z})},SF=function(p,J,S,H){p.info(function(){return"XMLHTTP TEXT ("+
J+"): "+I0I(p,S)+(H?" "+H:"")})},LUM=function(p,J){p.info(function(){return"TIMEOUT: "+J})};
JE.prototype.debug=function(){};
JE.prototype.info=function(){};
JE.prototype.warning=function(){};
var I0I=function(p,J){if(!p.redactEnabled_)return J;if(!J)return null;try{var S=JSON.parse(J);if(S)for(var H=0;H<S.length;H++)if(Array.isArray(S[H])){var M=S[H];if(!(M.length<2)){var X=M[1];if(Array.isArray(X)&&!(X.length<1)){var Z=X[0];if(Z!="noop"&&Z!="stop"&&Z!="close")for(var n=1;n<X.length;n++)X[n]=""}}}return(0,_.uV)(S)}catch(b){return p.debug("Exception parsing expected JS array - probably was not JS"),J}};var Ho=function(p,J,S,H,M){this.JSC$20154_channel_=p;this.JSC$20154_channelDebug_=J;this.sid_=S;this.JSC$20154_rid_=H;this.JSC$20154_retryId_=M||1;this.JSC$20154_eventHandler_=new _.oC(this);this.timeout_=45E3;this.JSC$20154_extraHeaders_=null;this.JSC$20154_successful_=!1;this.JSC$20154_postData_=this.JSC$20154_requestUri_=this.JSC$20154_baseUri_=this.JSC$20154_type_=this.JSC$20154_requestStartTime_=this.JSC$20154_watchDogTimeoutTime_=this.JSC$20154_watchDogTimerId_=null;this.JSC$20154_pendingMessages_=
[];this.JSC$20154_xmlHttp_=null;this.JSC$20154_xmlHttpChunkStart_=0;this.JSC$20154_lastError_=this.JSC$20154_verb_=null;this.JSC$20154_lastStatusCode_=-1;this.JSC$20154_cancelled_=!1;this.JSC$20154_readyStateChangeThrottleMs_=0;this.JSC$20154_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new p7y},p7y=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},J0w=function(p,J){switch(p){case 0:return"Non-200 return code ("+J+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},S7e={},HeI={};
Ho.prototype.setTimeout=function(p){this.timeout_=p};
var X7I=function(p,J,S){p.JSC$20154_type_=1;p.JSC$20154_baseUri_=_.AJ(J.clone());p.JSC$20154_postData_=S;p.decodeChunks_=!0;M$p(p,null)},M$p=function(p,J){p.JSC$20154_requestStartTime_=Date.now();
iej(p);p.JSC$20154_requestUri_=p.JSC$20154_baseUri_.clone();sEp(p.JSC$20154_requestUri_,"t",p.JSC$20154_retryId_);p.JSC$20154_xmlHttpChunkStart_=0;var S=p.JSC$20154_channel_.JSC$20173_supportsCrossDomainXhrs_;p.fetchResponseState_=new p7y;p.JSC$20154_xmlHttp_=Rrr(p.JSC$20154_channel_,S?J:null,!p.JSC$20154_postData_);p.JSC$20154_readyStateChangeThrottleMs_>0&&(p.JSC$20154_readyStateChangeThrottle_=new _.nb((0,_.tT)(p.JSC$20158_xmlHttpHandler_,p,p.JSC$20154_xmlHttp_),p.JSC$20154_readyStateChangeThrottleMs_));
p.JSC$20154_eventHandler_.listen(p.JSC$20154_xmlHttp_,"readystatechange",p.JSC$20158_readyStateChangeHandler_);J=p.JSC$20154_extraHeaders_?_.T6.clone(p.JSC$20154_extraHeaders_):{};p.JSC$20154_postData_?(p.JSC$20154_verb_||(p.JSC$20154_verb_="POST"),J["Content-Type"]="application/x-www-form-urlencoded",p.JSC$20154_xmlHttp_.send(p.JSC$20154_requestUri_,p.JSC$20154_verb_,p.JSC$20154_postData_,J)):(p.JSC$20154_verb_="GET",p.JSC$20154_xmlHttp_.send(p.JSC$20154_requestUri_,p.JSC$20154_verb_,null,J));EN$(1);
xar(p.JSC$20154_channelDebug_,p.JSC$20154_verb_,p.JSC$20154_requestUri_,p.JSC$20154_rid_,p.JSC$20154_retryId_,p.JSC$20154_postData_)};
Ho.prototype.JSC$20158_readyStateChangeHandler_=function(p){p=p.target;var J=this.JSC$20154_readyStateChangeThrottle_;J&&_.Vr(p)==3?(this.JSC$20154_channelDebug_.debug("Throttling readystatechange."),J.fire()):this.JSC$20158_xmlHttpHandler_(p)};
Ho.prototype.JSC$20158_xmlHttpHandler_=function(p){try{p==this.JSC$20154_xmlHttp_?KBU(this):this.JSC$20154_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(J){this.JSC$20154_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),ZeN(this)}finally{}};
var KBU=function(p){var J=_.Vr(p.JSC$20154_xmlHttp_),S=p.JSC$20154_xmlHttp_.JSC$9951_lastErrorCode_,H=p.JSC$20154_xmlHttp_.getStatus();if(!(J<3||J==3&&!ZeN(p))){p.JSC$20154_cancelled_||J!=4||S==7||(S==8||H<=0?EN$(3):EN$(2));nYw(p);var M=p.JSC$20154_xmlHttp_.getStatus();p.JSC$20154_lastStatusCode_=M;S=G3w(p);ZeN(p)||p.JSC$20154_channelDebug_.debug(function(){return"No response text for uri "+p.JSC$20154_requestUri_+" status "+M});
p.JSC$20154_successful_=M==200;cLj(p.JSC$20154_channelDebug_,p.JSC$20154_verb_,p.JSC$20154_requestUri_,p.JSC$20154_rid_,p.JSC$20154_retryId_,J,M);if(p.JSC$20154_successful_){if(p.decodeInitialResponse_&&!p.initialResponseDecoded_)if(H=beM(p))SF(p.JSC$20154_channelDebug_,p.JSC$20154_rid_,H,"Initial handshake response via X-HTTP-Initial-Response"),p.initialResponseDecoded_=!0,mFM(p,H);else{p.JSC$20154_successful_=!1;p.JSC$20154_lastError_=3;pg(12);p.JSC$20154_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
p.JSC$20154_rid_+")");MN(p);FBI(p);return}p.decodeChunks_?vYe(p,J,S):(SF(p.JSC$20154_channelDebug_,p.JSC$20154_rid_,S,null),mFM(p,S));J==4&&MN(p);p.JSC$20154_successful_&&!p.JSC$20154_cancelled_&&(J==4?fXy(p.JSC$20154_channel_,p):(p.JSC$20154_successful_=!1,iej(p)))}else B$$(p.JSC$20154_xmlHttp_),M==400&&S.indexOf("Unknown SID")>0?(p.JSC$20154_lastError_=3,pg(12),p.JSC$20154_channelDebug_.warning("XMLHTTP Unknown SID ("+p.JSC$20154_rid_+")")):(p.JSC$20154_lastError_=0,pg(13),p.JSC$20154_channelDebug_.warning("XMLHTTP Bad status "+
M+" ("+p.JSC$20154_rid_+")")),MN(p),FBI(p)}},beM=function(p){return p.JSC$20154_xmlHttp_&&(p=fpr(p.JSC$20154_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Rv(p)?p:null},G3w=function(p){if(!Oej(p))return p.JSC$20154_xmlHttp_.getResponseText();
var J=p.JSC$20154_xmlHttp_.getResponse();if(J==="")return"";var S="",H=J.length,M=_.Vr(p.JSC$20154_xmlHttp_)==4;if(!p.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return MN(p),FBI(p),"";p.fetchResponseState_.textDecoder=new _.Hg.TextDecoder}for(var X=0;X<H;X++)p.fetchResponseState_.responseArrivedForFetch=!0,S+=p.fetchResponseState_.textDecoder.decode(J[X],{stream:!(M&&X==H-1)});J.length=0;p.fetchResponseState_.responseBuffer+=S;p.JSC$20154_xmlHttpChunkStart_=0;return p.fetchResponseState_.responseBuffer},
ZeN=function(p){return p.JSC$20154_xmlHttp_?p.fetchResponseState_.responseArrivedForFetch?!0:!(!p.JSC$20154_xmlHttp_.getResponseText()&&!p.JSC$20154_xmlHttp_.getResponse()):!1},Oej=function(p){return p.JSC$20154_xmlHttp_?p.JSC$20154_verb_=="GET"&&p.JSC$20154_type_!=2&&p.JSC$20154_channel_.usesFetchStreams_:!1},vYe=function(p,J,S){for(var H=!0,M;!p.JSC$20154_cancelled_&&p.JSC$20154_xmlHttpChunkStart_<S.length;)if(M=A0e(p,S),M==HeI){J==4&&(p.JSC$20154_lastError_=4,pg(14),H=!1);
SF(p.JSC$20154_channelDebug_,p.JSC$20154_rid_,null,"[Incomplete Response]");break}else if(M==S7e){p.JSC$20154_lastError_=4;pg(15);SF(p.JSC$20154_channelDebug_,p.JSC$20154_rid_,S,"[Invalid Chunk]");H=!1;break}else SF(p.JSC$20154_channelDebug_,p.JSC$20154_rid_,M,null),mFM(p,M);Oej(p)&&p.JSC$20154_xmlHttpChunkStart_!=0&&(p.fetchResponseState_.responseBuffer=p.fetchResponseState_.responseBuffer.slice(p.JSC$20154_xmlHttpChunkStart_),p.JSC$20154_xmlHttpChunkStart_=0);J!=4||S.length!=0||p.fetchResponseState_.responseArrivedForFetch||
(p.JSC$20154_lastError_=1,pg(16),H=!1);p.JSC$20154_successful_=p.JSC$20154_successful_&&H;H?S.length>0&&!p.firstByteReceived_&&(p.firstByteReceived_=!0,J=p.JSC$20154_channel_,J.JSC$20173_backChannelRequest_==p&&J.detectBufferingProxy_&&!J.bpDetectionDone_&&(J.JSC$20173_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+S.length),PPl(J),J.bpDetectionDone_=!0,pg(11))):(SF(p.JSC$20154_channelDebug_,p.JSC$20154_rid_,S,"[Invalid Chunked Response]"),MN(p),FBI(p))},A0e=function(p,
J){var S=p.JSC$20154_xmlHttpChunkStart_,H=J.indexOf("\n",S);
if(H==-1)return HeI;S=Number(J.substring(S,H));if(isNaN(S))return S7e;H+=1;if(H+S>J.length)return HeI;J=J.slice(H,H+S);p.JSC$20154_xmlHttpChunkStart_=H+S;return J};
Ho.prototype.cancel=function(){this.JSC$20154_cancelled_=!0;MN(this)};
var iej=function(p){p.JSC$20154_watchDogTimeoutTime_=Date.now()+p.timeout_;zrP(p,p.timeout_)},zrP=function(p,J){if(p.JSC$20154_watchDogTimerId_!=null)throw Error("Tk");
p.JSC$20154_watchDogTimerId_=w3j((0,_.tT)(p.JSC$20158_onWatchDogTimeout_,p),J)},nYw=function(p){p.JSC$20154_watchDogTimerId_&&(_.Hg.clearTimeout(p.JSC$20154_watchDogTimerId_),p.JSC$20154_watchDogTimerId_=null)};
Ho.prototype.JSC$20158_onWatchDogTimeout_=function(){this.JSC$20154_watchDogTimerId_=null;var p=Date.now();p-this.JSC$20154_watchDogTimeoutTime_>=0?(LUM(this.JSC$20154_channelDebug_,this.JSC$20154_requestUri_),this.JSC$20154_type_!=2&&(EN$(3),pg(17)),MN(this),this.JSC$20154_lastError_=2,FBI(this)):(this.JSC$20154_channelDebug_.warning("WatchDog timer called too early"),zrP(this,this.JSC$20154_watchDogTimeoutTime_-p))};
var FBI=function(p){p.JSC$20154_channel_.state_==0||p.JSC$20154_cancelled_||fXy(p.JSC$20154_channel_,p)},MN=function(p){nYw(p);
_.iW(p.JSC$20154_readyStateChangeThrottle_);p.JSC$20154_readyStateChangeThrottle_=null;p.JSC$20154_eventHandler_.removeAll();if(p.JSC$20154_xmlHttp_){var J=p.JSC$20154_xmlHttp_;p.JSC$20154_xmlHttp_=null;J.abort();J.dispose()}};
Ho.prototype.getLastError=function(){return this.JSC$20154_lastError_};
var mFM=function(p,J){try{var S=p.JSC$20154_channel_;if(S.state_!=0&&(S.JSC$20173_backChannelRequest_==p||$Fy(S.forwardChannelRequestPool_,p)))if(!p.initialResponseDecoded_&&$Fy(S.forwardChannelRequestPool_,p)&&S.state_==3){try{var H=S.wireCodec_.JSC$20168_parser_.parse(J)}catch(n){H=null}if(Array.isArray(H)&&H.length==3){J=H;if(J[0]==0)a:if(S.JSC$20173_channelDebug_.debug("Server claims our backchannel is missing."),S.JSC$20173_backChannelTimerId_)S.JSC$20173_channelDebug_.debug("But we are currently starting the request.");
else{if(S.JSC$20173_backChannelRequest_)if(S.JSC$20173_backChannelRequest_.JSC$20154_requestStartTime_+3E3<p.JSC$20154_requestStartTime_)oYU(S),erl(S);else break a;else S.JSC$20173_channelDebug_.warning("We do not have a BackChannel established");WBe(S);pg(18)}else{S.JSC$20173_lastPostResponseArrayId_=J[1];var M=S.JSC$20173_lastPostResponseArrayId_-S.JSC$20173_lastArrayId_;if(0<M){var X=J[2];S.JSC$20173_channelDebug_.debug(X+" bytes (in "+M+" arrays) are outstanding on the BackChannel");X<37500&&
S.enableStreaming_&&S.JSC$20173_backChannelRetryCount_==0&&!S.JSC$20173_deadBackChannelTimerId_&&(S.JSC$20173_deadBackChannelTimerId_=w3j((0,_.tT)(S.JSC$20175_onBackChannelDead_,S),6E3))}}if(QxU(S.forwardChannelRequestPool_)<=1&&S.forwardChannelFlushedCallback_){try{S.forwardChannelFlushedCallback_()}catch(n){}S.forwardChannelFlushedCallback_=void 0}}else S.JSC$20173_channelDebug_.debug("Bad POST response data returned"),XQ(S,11)}else if((p.initialResponseDecoded_||S.JSC$20173_backChannelRequest_==
p)&&oYU(S),!_.Rv(J)){var Z=S.wireCodec_.JSC$20168_parser_.parse(J);S.onInput_(Z,p)}EN$(4)}catch(n){}};var CPN=function(p,J){this.JSC$20161_mapId=p;this.map=J;this.context=null};var y0P=function(p){this.maxPoolSizeConfigured_=p||10;_.Hg.PerformanceNavigationTiming?(p=_.Hg.performance.getEntriesByType("navigation"),p=p.length>0&&(p[0].nextHopProtocol=="hq"||p[0].nextHopProtocol=="h2")):p=!!(_.Hg.chrome&&_.Hg.chrome.loadTimes&&_.Hg.chrome.loadTimes()&&_.Hg.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20164_maxSize_=p?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20164_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20164_request_=null;this.JSC$20164_pendingMessages_=
[]},BVI=function(p){return p.JSC$20164_request_?!0:p.requestPool_?p.requestPool_.size>=p.JSC$20164_maxSize_:!1},QxU=function(p){return p.JSC$20164_request_?1:p.requestPool_?p.requestPool_.size:0},$Fy=function(p,J){return p.JSC$20164_request_?p.JSC$20164_request_==J:p.requestPool_?p.requestPool_.has(J):!1},UFP=function(p,J){p.requestPool_?p.requestPool_.add(J):p.JSC$20164_request_=J},sxM=function(p,J){p.JSC$20164_request_&&p.JSC$20164_request_==J?p.JSC$20164_request_=null:p.requestPool_&&p.requestPool_.has(J)&&
p.requestPool_.delete(J)};
y0P.prototype.cancel=function(){this.JSC$20164_pendingMessages_=gYp(this);if(this.JSC$20164_request_)this.JSC$20164_request_.cancel(),this.JSC$20164_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var p=_.K(this.requestPool_.values()),J=p.next();!J.done;J=p.next())J.value.cancel();this.requestPool_.clear()}};
var gYp=function(p){if(p.JSC$20164_request_!=null)return p.JSC$20164_pendingMessages_.concat(p.JSC$20164_request_.JSC$20154_pendingMessages_);if(p.requestPool_!=null&&p.requestPool_.size!==0){var J=p.JSC$20164_pendingMessages_;p=_.K(p.requestPool_.values());for(var S=p.next();!S.done;S=p.next())J=J.concat(S.value.JSC$20154_pendingMessages_);return J}return _.VX(p.JSC$20164_pendingMessages_)},t$f=function(p,J){p.JSC$20164_pendingMessages_=p.JSC$20164_pendingMessages_.concat(J)};var hry=function(p,J){var S=new JE;S.debug("TestLoadImage: loading "+p);if(_.Hg.Image){var H=new Image;H.onload=_.nl(iJ,S,"TestLoadImage: loaded",!0,J,H);H.onerror=_.nl(iJ,S,"TestLoadImage: error",!1,J,H);H.onabort=_.nl(iJ,S,"TestLoadImage: abort",!1,J,H);H.ontimeout=_.nl(iJ,S,"TestLoadImage: timeout",!1,J,H);_.Hg.setTimeout(function(){if(H.ontimeout)H.ontimeout()},1E4);
H.src=p}else J(!1)},DF$=function(p,J){var S=new JE,H=new AbortController,M=setTimeout(function(){H.abort();
iJ(S,"TestPingServer: timeout",!1,J)},1E4);
fetch(p,{signal:H.signal}).then(function(X){clearTimeout(M);X.ok?iJ(S,"TestPingServer: ok",!0,J):iJ(S,"TestPingServer: server error",!1,J)}).catch(function(){clearTimeout(M);
iJ(S,"TestPingServer: error",!1,J)})},iJ=function(p,J,S,H,M){try{p.debug(J),M&&(M.onload=null,M.onerror=null,M.onabort=null,M.ontimeout=null),H(S)}catch(X){}};var k3M=function(){this.JSC$20168_parser_=new daP};var NVl=function(p,J,S){return S&&S.internalChannelParams?S.internalChannelParams[p]||J:J},RS=function(p){this.serverVersion_=0;
this.JSC$20173_outgoingMaps_=[];this.JSC$20173_channelDebug_=new JE;this.JSC$20173_hostPrefix_=this.JSC$20173_backChannelUri_=this.JSC$20173_forwardChannelUri_=this.JSC$20173_path_=this.JSC$20173_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20173_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20173_extraHeaders_=null;this.JSC$20173_nextMapId_=this.JSC$20173_nextRid_=0;this.JSC$20173_failFast_=NVl("failFast",!1,p);this.enableStreaming_=this.JSC$20173_deadBackChannelTimerId_=
this.JSC$20173_backChannelTimerId_=this.JSC$20173_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20173_lastPostResponseArrayId_=this.JSC$20173_lastArrayId_=-1;this.JSC$20173_backChannelAttemptId_=this.JSC$20173_backChannelRetryCount_=this.JSC$20173_forwardChannelRetryCount_=0;this.JSC$20173_baseRetryDelayMs_=NVl("baseRetryDelayMs",5E3,p);this.JSC$20173_retryDelaySeedMs_=NVl("retryDelaySeedMs",1E4,p);this.JSC$20173_forwardChannelMaxRetries_=
NVl("forwardChannelMaxRetries",2,p);this.JSC$20173_forwardChannelRequestTimeoutMs_=NVl("forwardChannelRequestTimeoutMs",2E4,p);this.JSC$20173_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$20173_supportsCrossDomainXhrs_=p&&p.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new y0P(p&&p.concurrentRequestLimit);this.wireCodec_=new k3M;
this.fastHandshake_=p&&p.fastHandshake||!1;this.encodeInitMessageHeaders_=p&&p.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20173_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=p&&p.blockingHandshake||!1;p&&p.disableRedact&&this.JSC$20173_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};
RS.prototype.JSC$20175_channelVersion_=8;RS.prototype.state_=1;
RS.prototype.connect=function(p,J,S,H){this.JSC$20173_channelDebug_.debug("connect()");pg(0);this.JSC$20173_path_=p;this.JSC$20173_extraParams_=J||{};S&&H!==void 0&&(this.JSC$20173_extraParams_.OSID=S,this.JSC$20173_extraParams_.OAID=H);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20173_channelDebug_.debug("connectChannel_()");p=TVP(this,null,this.JSC$20173_path_);this.JSC$20173_channelDebug_.debug("GetForwardChannelUri: "+p);this.JSC$20173_forwardChannelUri_=p;dFe(this)};
RS.prototype.disconnect=function(){this.JSC$20173_channelDebug_.debug("disconnect()");ucw(this);if(this.state_==3){var p=this.JSC$20173_nextRid_++,J=this.JSC$20173_forwardChannelUri_.clone();_.pU(J,"SID",this.sid_);_.pU(J,"RID",p);_.pU(J,"TYPE","terminate");lXM(this,J);p=new Ho(this,this.JSC$20173_channelDebug_,this.sid_,p);p.JSC$20154_type_=2;p.JSC$20154_baseUri_=_.AJ(J.clone());J=!1;if(_.Hg.navigator&&_.Hg.navigator.sendBeacon)try{J=_.Hg.navigator.sendBeacon(p.JSC$20154_baseUri_.toString(),"")}catch(S){}!J&&
_.Hg.Image&&((new Image).src=p.JSC$20154_baseUri_,J=!0);J||(p.JSC$20154_xmlHttp_=Rrr(p.JSC$20154_channel_,null),p.JSC$20154_xmlHttp_.send(p.JSC$20154_baseUri_));p.JSC$20154_requestStartTime_=Date.now();iej(p)}V$e(this)};
var erl=function(p){p.JSC$20173_backChannelRequest_&&(PPl(p),p.JSC$20173_backChannelRequest_.cancel(),p.JSC$20173_backChannelRequest_=null)},ucw=function(p){erl(p);
p.JSC$20173_backChannelTimerId_&&(_.Hg.clearTimeout(p.JSC$20173_backChannelTimerId_),p.JSC$20173_backChannelTimerId_=null);oYU(p);p.forwardChannelRequestPool_.cancel();p.JSC$20173_forwardChannelTimerId_&&(typeof p.JSC$20173_forwardChannelTimerId_==="number"&&_.Hg.clearTimeout(p.JSC$20173_forwardChannelTimerId_),p.JSC$20173_forwardChannelTimerId_=null)};
RS.prototype.getState=function(){return this.state_};
var dFe=function(p){BVI(p.forwardChannelRequestPool_)||p.JSC$20173_forwardChannelTimerId_||(p.JSC$20173_forwardChannelTimerId_=!0,_.Do(p.JSC$20175_onStartForwardChannelTimer_,p),p.JSC$20173_forwardChannelRetryCount_=0)},aXw=function(p,J){if(QxU(p.forwardChannelRequestPool_)>=p.forwardChannelRequestPool_.JSC$20164_maxSize_-(p.JSC$20173_forwardChannelTimerId_?1:0))return!1;
if(p.JSC$20173_forwardChannelTimerId_)return p.JSC$20173_channelDebug_.debug("Use the retry request that is already scheduled."),p.JSC$20173_outgoingMaps_=J.JSC$20154_pendingMessages_.concat(p.JSC$20173_outgoingMaps_),!0;if(p.state_==1||p.state_==2||p.JSC$20173_forwardChannelRetryCount_>=(p.JSC$20173_failFast_?0:p.JSC$20173_forwardChannelMaxRetries_))return!1;p.JSC$20173_channelDebug_.debug("Going to retry POST");p.JSC$20173_forwardChannelTimerId_=w3j((0,_.tT)(p.JSC$20175_onStartForwardChannelTimer_,
p,J),q7f(p,p.JSC$20173_forwardChannelRetryCount_));p.JSC$20173_forwardChannelRetryCount_++;return!0};
RS.prototype.JSC$20175_onStartForwardChannelTimer_=function(p){if(this.JSC$20173_forwardChannelTimerId_)if(this.JSC$20173_forwardChannelTimerId_=null,this.JSC$20173_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!p){this.JSC$20173_channelDebug_.debug("open_()");this.JSC$20173_nextRid_=Math.floor(Math.random()*1E5);p=this.JSC$20173_nextRid_++;var J=new Ho(this,this.JSC$20173_channelDebug_,"",p),S=this.JSC$20173_extraHeaders_;this.initHeaders_&&(S?(S=_.T6.clone(S),_.T6.extend(S,this.initHeaders_)):
S=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(J.JSC$20154_extraHeaders_=S,S=null);var H;if(this.fastHandshake_)a:{for(var M=H=0;M<this.JSC$20173_outgoingMaps_.length;M++){b:{var X=this.JSC$20173_outgoingMaps_[M];if("__data__"in X.map&&(X=X.map.__data__,typeof X==="string")){X=X.length;break b}X=void 0}if(X===void 0)break;H+=X;if(H>4096){H=M;break a}if(H===4096||M===this.JSC$20173_outgoingMaps_.length-1){H=M+1;break a}}H=1E3}else H=1E3;H=EYl(this,J,H);
M=this.JSC$20173_forwardChannelUri_.clone();_.pU(M,"RID",p);_.pU(M,"CVER",22);this.httpSessionIdParam_&&_.pU(M,"X-HTTP-Session-Id",this.httpSessionIdParam_);lXM(this,M);S&&(this.encodeInitMessageHeaders_?H="headers="+_.HO(E9f(S))+"&"+H:this.httpHeadersOverwriteParam_&&YM$(M,this.httpHeadersOverwriteParam_,S));UFP(this.forwardChannelRequestPool_,J);this.blockingHandshake_&&_.pU(M,"TYPE","init");this.fastHandshake_?(_.pU(M,"$req",H),_.pU(M,"SID","null"),J.decodeInitialResponse_=!0,X7I(J,M,null)):X7I(J,
M,H);this.state_=2}}else this.state_==3&&(p?Y7j(this,p):this.JSC$20173_outgoingMaps_.length==0?this.JSC$20173_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):BVI(this.forwardChannelRequestPool_)||(Y7j(this),this.JSC$20173_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Y7j=function(p,J){var S;J?S=J.JSC$20154_rid_:S=p.JSC$20173_nextRid_++;var H=p.JSC$20173_forwardChannelUri_.clone();_.pU(H,"SID",p.sid_);_.pU(H,"RID",S);_.pU(H,"AID",p.JSC$20173_lastArrayId_);lXM(p,H);p.httpHeadersOverwriteParam_&&p.JSC$20173_extraHeaders_&&YM$(H,p.httpHeadersOverwriteParam_,p.JSC$20173_extraHeaders_);S=new Ho(p,p.JSC$20173_channelDebug_,p.sid_,S,p.JSC$20173_forwardChannelRetryCount_+1);p.httpHeadersOverwriteParam_===null&&(S.JSC$20154_extraHeaders_=p.JSC$20173_extraHeaders_);
J&&(p.JSC$20173_outgoingMaps_=J.JSC$20154_pendingMessages_.concat(p.JSC$20173_outgoingMaps_));J=EYl(p,S,1E3);S.setTimeout(Math.round(p.JSC$20173_forwardChannelRequestTimeoutMs_*.5)+Math.round(p.JSC$20173_forwardChannelRequestTimeoutMs_*.5*Math.random()));UFP(p.forwardChannelRequestPool_,S);X7I(S,H,J)},lXM=function(p,J){p.JSC$20173_extraParams_&&_.T6.forEach(p.JSC$20173_extraParams_,function(S,H){_.pU(J,H,S)});
p.handler_&&_.T6.forEach({},function(S,H){_.pU(J,H,S)})},EYl=function(p,J,S){S=Math.min(p.JSC$20173_outgoingMaps_.length,S);
var H=p.handler_?(0,_.tT)(p.handler_.JSC$20179_badMapError,p.handler_,p):null;a:{for(var M=p.JSC$20173_outgoingMaps_,X=-1;;){var Z=["count="+S];X==-1?S>0?(X=M[0].JSC$20161_mapId,Z.push("ofs="+X)):X=0:Z.push("ofs="+X);for(var n=!0,b=0;b<S;b++){var F=M[b].JSC$20161_mapId,f=M[b].map;F-=X;if(F<0)X=Math.max(0,M[b].JSC$20161_mapId-100),n=!1;else try{F="req"+F+"_"||"";try{var O=f instanceof Map?f:Object.entries(f);for(var A=_.K(O),P=A.next();!P.done;P=A.next()){var W=_.K(P.value),y=W.next().value,t=W.next().value,
D=t;_.Ei(t)&&(D=(0,_.uV)(t));Z.push(F+y+"="+encodeURIComponent(D))}}catch(k){throw Z.push(F+"type="+encodeURIComponent("_badmap")),k;}}catch(k){H&&H(f)}}if(n){O=Z.join("&");break a}}O=void 0}p=p.JSC$20173_outgoingMaps_.splice(0,S);J.JSC$20154_pendingMessages_=p;return O},r0y=function(p){p.JSC$20173_backChannelRequest_||p.JSC$20173_backChannelTimerId_||(p.JSC$20173_backChannelAttemptId_=1,_.Do(p.JSC$20175_onStartBackChannelTimer_,p),p.JSC$20173_backChannelRetryCount_=0)},WBe=function(p){if(p.JSC$20173_backChannelRequest_||
p.JSC$20173_backChannelTimerId_||p.JSC$20173_backChannelRetryCount_>=3)return!1;
p.JSC$20173_channelDebug_.debug("Going to retry GET");p.JSC$20173_backChannelAttemptId_++;p.JSC$20173_backChannelTimerId_=w3j((0,_.tT)(p.JSC$20175_onStartBackChannelTimer_,p),q7f(p,p.JSC$20173_backChannelRetryCount_));p.JSC$20173_backChannelRetryCount_++;return!0};
RS.prototype.JSC$20175_onStartBackChannelTimer_=function(){this.JSC$20173_backChannelTimerId_=null;jxI(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20173_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20173_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20173_backChannelRequest_+" "+this.handshakeRttMs_);else{var p=4*this.handshakeRttMs_;this.JSC$20173_channelDebug_.info("BP detection timer enabled: "+p);this.bpDetectionTimerId_=w3j((0,_.tT)(this.onBpDetectionTimer_,
this),p)}};
RS.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20173_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20173_backChannelRequest_.JSC$20154_xmlHttp_!=null){var p=this.JSC$20173_backChannelRequest_.JSC$20154_xmlHttp_.getResponseText();p&&this.JSC$20173_channelDebug_.warning("Timer should have been cancelled : "+p)}this.JSC$20173_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;pg(10);erl(this);jxI(this)}else this.JSC$20173_channelDebug_.warning("Invalid operation.")};
var PPl=function(p){p.bpDetectionTimerId_!=null&&(p.JSC$20173_channelDebug_.debug("Cancel the BP detection timer."),_.Hg.clearTimeout(p.bpDetectionTimerId_),p.bpDetectionTimerId_=null)},jxI=function(p){p.JSC$20173_channelDebug_.debug("Creating new HttpRequest");
p.JSC$20173_backChannelRequest_=new Ho(p,p.JSC$20173_channelDebug_,p.sid_,"rpc",p.JSC$20173_backChannelAttemptId_);p.httpHeadersOverwriteParam_===null&&(p.JSC$20173_backChannelRequest_.JSC$20154_extraHeaders_=p.JSC$20173_extraHeaders_);p.JSC$20173_backChannelRequest_.JSC$20154_readyStateChangeThrottleMs_=0;var J=p.JSC$20173_backChannelUri_.clone();_.pU(J,"RID","rpc");_.pU(J,"SID",p.sid_);_.pU(J,"AID",p.JSC$20173_lastArrayId_);_.pU(J,"CI",p.enableStreaming_?"0":"1");!p.enableStreaming_&&p.longPollingTimeout_&&
_.pU(J,"TO",p.longPollingTimeout_);_.pU(J,"TYPE","xmlhttp");lXM(p,J);p.httpHeadersOverwriteParam_&&p.JSC$20173_extraHeaders_&&YM$(J,p.httpHeadersOverwriteParam_,p.JSC$20173_extraHeaders_);p.backChannelRequestTimeoutMs_&&p.JSC$20173_backChannelRequest_.setTimeout(p.backChannelRequestTimeoutMs_);var S=p.JSC$20173_backChannelRequest_,H=p.JSC$20173_hostPrefix_;S.JSC$20154_type_=1;S.JSC$20154_baseUri_=_.AJ(J.clone());S.JSC$20154_postData_=null;S.decodeChunks_=!0;M$p(S,H);p.JSC$20173_channelDebug_.debug("New Request created")};
RS.prototype.JSC$20175_onBackChannelDead_=function(){this.JSC$20173_deadBackChannelTimerId_!=null&&(this.JSC$20173_deadBackChannelTimerId_=null,erl(this),WBe(this),pg(19))};
var oYU=function(p){p.JSC$20173_deadBackChannelTimerId_!=null&&(_.Hg.clearTimeout(p.JSC$20173_deadBackChannelTimerId_),p.JSC$20173_deadBackChannelTimerId_=null)},fXy=function(p,J){p.JSC$20173_channelDebug_.debug("Request complete");
var S=null;if(p.JSC$20173_backChannelRequest_==J){oYU(p);PPl(p);p.JSC$20173_backChannelRequest_=null;var H=2}else if($Fy(p.forwardChannelRequestPool_,J))S=J.JSC$20154_pendingMessages_,sxM(p.forwardChannelRequestPool_,J),H=1;else return;if(p.state_!=0)if(J.JSC$20154_successful_)H==1?(jOr(J.JSC$20154_postData_?J.JSC$20154_postData_.length:0,Date.now()-J.JSC$20154_requestStartTime_,p.JSC$20173_forwardChannelRetryCount_),dFe(p)):r0y(p);else{var M=J.JSC$20154_lastStatusCode_,X=J.getLastError();if(X==3||
X==0&&M>0)p.JSC$20173_channelDebug_.debug("Not retrying due to error type"),M>200&&(p.errorResponseStatusCode_=J.JSC$20154_lastStatusCode_);else{p.JSC$20173_channelDebug_.debug(function(){return"Maybe retrying, last error: "+J0w(X,p.errorResponseStatusCode_)});
if(H==1&&aXw(p,J)||H==2&&WBe(p))return;p.JSC$20173_channelDebug_.debug("Exceeded max number of retries")}S&&S.length>0&&t$f(p.forwardChannelRequestPool_,S);p.JSC$20173_channelDebug_.debug("Error: HTTP request failed");switch(X){case 1:XQ(p,5);break;case 4:XQ(p,10);break;case 3:XQ(p,6);break;default:XQ(p,2)}}},q7f=function(p,J){var S=p.JSC$20173_baseRetryDelayMs_+Math.floor(Math.random()*p.JSC$20173_retryDelaySeedMs_);
p.isActive()||(p.JSC$20173_channelDebug_.debug("Inactive channel"),S*=2);return S*J};
RS.prototype.onInput_=function(p,J){for(var S=0;S<p.length;S++){var H=p[S],M=H[0];if(M<=this.JSC$20173_lastArrayId_)this.JSC$20173_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+M+", lastArrayId: "+this.JSC$20173_lastArrayId_);else if(M>this.JSC$20173_lastArrayId_+1&&this.JSC$20173_lastArrayId_>-1&&this.JSC$20173_channelDebug_.warning("Received non-consecutive message with arrayId: "+M+", lastArrayId: "+this.JSC$20173_lastArrayId_),this.JSC$20173_lastArrayId_=M,
H=H[1],this.state_==2)if(H[0]=="c"){this.sid_=H[1];this.JSC$20173_hostPrefix_=H[2];M=H[3];M!=null&&(this.JSC$20175_channelVersion_=M,this.JSC$20173_channelDebug_.info("VER="+this.JSC$20175_channelVersion_));M=H[4];M!=null&&(this.serverVersion_=M,this.JSC$20173_channelDebug_.info("SVER="+this.serverVersion_));H=H[5];H!=null&&typeof H==="number"&&H>0&&(this.backChannelRequestTimeoutMs_=H*=1.5,this.JSC$20173_channelDebug_.info("backChannelRequestTimeoutMs_="+H));if(H=J.JSC$20154_xmlHttp_){var X=fpr(H,
"X-Client-Wire-Protocol");X&&(M=this.forwardChannelRequestPool_,!M.requestPool_&&(_.nL(X,"spdy")||_.nL(X,"quic")||_.nL(X,"h2"))&&(M.JSC$20164_maxSize_=M.maxPoolSizeConfigured_,M.requestPool_=new Set,M.JSC$20164_request_&&(UFP(M,M.JSC$20164_request_),M.JSC$20164_request_=null)));this.httpSessionIdParam_&&((H=fpr(H,"X-HTTP-Session-Id"))?(this.httpSessionId_=H,_.pU(this.JSC$20173_forwardChannelUri_,this.httpSessionIdParam_,H)):this.JSC$20173_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$20179_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-J.JSC$20154_requestStartTime_,this.JSC$20173_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));H=J;M=TVP(this,this.JSC$20173_supportsCrossDomainXhrs_?this.JSC$20173_hostPrefix_:null,this.JSC$20173_path_);this.JSC$20173_channelDebug_.debug("GetBackChannelUri: "+M);this.JSC$20173_backChannelUri_=M;H.initialResponseDecoded_?(this.JSC$20173_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
sxM(this.forwardChannelRequestPool_,H),M=H,(X=this.backChannelRequestTimeoutMs_)&&M.setTimeout(X),M.JSC$20154_watchDogTimerId_&&(nYw(M),iej(M)),this.JSC$20173_backChannelRequest_=H):r0y(this);this.JSC$20173_outgoingMaps_.length>0&&dFe(this)}else H[0]!="stop"&&H[0]!="close"||XQ(this,7);else this.state_==3&&(H[0]=="stop"||H[0]=="close"?H[0]=="stop"?XQ(this,7):this.disconnect():H[0]!="noop"&&this.handler_&&this.handler_.JSC$20179_channelHandleArray(H),this.JSC$20173_backChannelRetryCount_=0)}};
var XQ=function(p,J){p.JSC$20173_channelDebug_.info("Error code "+J);if(J==2){var S=(0,_.tT)(p.testNetworkCallback_,p),H=p.networkTestUrl_,M=!H;H=new _.V1(H||"//www.google.com/images/cleardot.gif");_.Hg.location&&_.Hg.location.protocol=="http"||_.ZI(H,"https");_.AJ(H);M?hry(H.toString(),S):DF$(H.toString(),S)}else pg(2);p.onError_(J)};
RS.prototype.testNetworkCallback_=function(p){p?(this.JSC$20173_channelDebug_.info("Successfully pinged google.com"),pg(2)):(this.JSC$20173_channelDebug_.info("Failed to ping google.com"),pg(1))};
RS.prototype.onError_=function(p){this.JSC$20173_channelDebug_.debug("HttpChannel: error - "+p);this.state_=0;this.handler_&&this.handler_.JSC$20179_channelError(p);V$e(this);ucw(this)};
var V$e=function(p){p.state_=0;p.nonAckedMapsAtChannelClose_=[];if(p.handler_){var J=gYp(p.forwardChannelRequestPool_);if(J.length!=0||p.JSC$20173_outgoingMaps_.length!=0)p.JSC$20173_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+J.length+", outgoing: "+p.JSC$20173_outgoingMaps_.length}),_.av(p.nonAckedMapsAtChannelClose_,J),_.av(p.nonAckedMapsAtChannelClose_,p.JSC$20173_outgoingMaps_),p.forwardChannelRequestPool_.JSC$20164_pendingMessages_.length=0,_.VX(p.JSC$20173_outgoingMaps_),
p.JSC$20173_outgoingMaps_.length=0;
p.handler_.JSC$20179_channelClosed()}},w7M=function(p){if(p.state_==0)return p.nonAckedMapsAtChannelClose_;
var J=[];_.av(J,gYp(p.forwardChannelRequestPool_));_.av(J,p.JSC$20173_outgoingMaps_);return J},TVP=function(p,J,S){var H=_.I7(S);
H.JSC$10187_domain_!=""?(J&&_.nN(H,J+"."+H.JSC$10187_domain_),_.Gq(H,H.JSC$10187_port_)):(H=_.Hg.location,H=CBI(H.protocol,J?J+"."+H.hostname:H.hostname,+H.port,S));J=p.httpSessionIdParam_;S=p.httpSessionId_;J&&S&&_.pU(H,J,S);_.pU(H,"VER",p.JSC$20175_channelVersion_);lXM(p,H);return H},Rrr=function(p,J,S){if(J&&!p.JSC$20173_supportsCrossDomainXhrs_)throw Error("Uk");
J=p.usesFetchStreams_&&!p.JSC$20173_xmlHttpFactory_?new _.lV(new l$I({streamBinaryChunks:S})):new _.lV(p.JSC$20173_xmlHttpFactory_);J.JSC$9951_withCredentials_=p.JSC$20173_supportsCrossDomainXhrs_;return J};
RS.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var xF$=function(){};
_.R=xF$.prototype;_.R.JSC$20179_channelOpened=function(){};
_.R.JSC$20179_channelHandleArray=function(){};
_.R.JSC$20179_channelError=function(){};
_.R.JSC$20179_channelClosed=function(){};
_.R.isActive=function(){return!0};
_.R.JSC$20179_badMapError=function(){};var c0f=function(){},ZB=function(p,J){_.te.call(this);
this.JSC$20182_channel_=new RS(J);this.JSC$20182_url_=p;this.messageUrlParams_=J&&J.messageUrlParams||null;p=J&&J.messageHeaders||null;J&&J.clientProtocolHeaderRequired&&(p?_.T6.set(p,"X-Client-Protocol","webchannel"):p=_.T6.create("X-Client-Protocol","webchannel"));this.JSC$20182_channel_.JSC$20173_extraHeaders_=p;p=J&&J.initMessageHeaders||null;J&&J.messageContentType&&(p?_.T6.set(p,"X-WebChannel-Content-Type",J.messageContentType):p=_.T6.create("X-WebChannel-Content-Type",J.messageContentType));
J&&J.clientProfile&&(p?_.T6.set(p,"X-WebChannel-Client-Profile",J.clientProfile):p=_.T6.create("X-WebChannel-Client-Profile",J.clientProfile));this.JSC$20182_channel_.initHeaders_=p;(p=J&&J.httpHeadersOverwriteParam)&&!_.Rv(p)&&(this.JSC$20182_channel_.httpHeadersOverwriteParam_=p);this.supportsCrossDomainXhr_=J&&J.supportsCrossDomainXhr||!1;this.sendRawJson_=J&&J.sendRawJson||!1;(J=J&&J.httpSessionIdParam)&&!_.Rv(J)&&(this.JSC$20182_channel_.httpSessionIdParam_=J,_.T6.containsKey(this.messageUrlParams_,
J)&&_.T6.remove(this.messageUrlParams_,J));this.channelHandler_=new Kg(this)};
_.SJ(ZB,_.te);ZB.prototype.open=function(){this.JSC$20182_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20182_channel_.JSC$20173_supportsCrossDomainXhrs_=!0);this.JSC$20182_channel_.connect(this.JSC$20182_url_,this.messageUrlParams_||void 0)};
ZB.prototype.close=function(){this.JSC$20182_channel_.disconnect()};
ZB.prototype.send=function(p){var J=this.JSC$20182_channel_;if(typeof p==="string"){var S={};S.__data__=p;p=S}else this.sendRawJson_&&(S={},S.__data__=(0,_.uV)(p),p=S);J.JSC$20173_outgoingMaps_.push(new CPN(J.JSC$20173_nextMapId_++,p));J.state_==3&&dFe(J)};
ZB.prototype.disposeInternal=function(){this.JSC$20182_channel_.handler_=null;delete this.channelHandler_;this.JSC$20182_channel_.disconnect();delete this.JSC$20182_channel_;ZB.superClass_.disposeInternal.call(this)};
var IXl=function(p){uNf.call(this);p.__headers__&&(this.headers=p.__headers__,this.statusCode=p.__status__,delete p.__headers__,delete p.__status__);var J=p.__sm__;J?this.data=(this.metadataKey=_.T6.getAnyKey(J))?_.T6.get(J,this.metadataKey):J:this.data=p};
_.SJ(IXl,uNf);var LBI=function(p){l0P.call(this);this.status=1;this.errorCode=p};
_.SJ(LBI,l0P);var Kg=function(p){this.JSC$20189_channel_=p};
_.SJ(Kg,xF$);Kg.prototype.JSC$20179_channelOpened=function(){this.JSC$20189_channel_.dispatchEvent("w")};
Kg.prototype.JSC$20179_channelHandleArray=function(p){this.JSC$20189_channel_.dispatchEvent(new IXl(p))};
Kg.prototype.JSC$20179_channelError=function(p){this.JSC$20189_channel_.dispatchEvent(new LBI(p))};
Kg.prototype.JSC$20179_channelClosed=function(){this.JSC$20189_channel_.dispatchEvent("x")};
var pHM=function(p,J){this.transportChannel_=p;this.JSC$20192_channel_=J},JMy=function(p){return w7M(p.JSC$20192_channel_).map(function(J){var S=p.transportChannel_;
J=J.map;"__data__"in J?(J=J.__data__,S=S.sendRawJson_?(0,_.Ev8)(J):J):S=J;return S})};
pHM.prototype.commit=function(p){this.JSC$20192_channel_.forwardChannelFlushedCallback_=p};var ng=function(p){StU.dispatchEvent(new Ha$(StU,p))},StU=new _.te,Ha$=function(p,J){_.yr.call(this,"statevent",p);
this.stat=J};
_.Q(Ha$,_.yr);var GD=function(p,J,S,H,M){this.JSC$20197_channel_=p;this.JSC$20197_channelDebug_=J;this.sid_=S;this.JSC$20197_rid_=H;this.JSC$20197_retryId_=M||1;this.timeout_=45E3;this.JSC$20197_eventHandler_=new _.oC(this);this.pollingTimer_=new _.$d;this.pollingTimer_.setInterval(250)};
_.R=GD.prototype;_.R.JSC$20199_extraHeaders_=null;_.R.JSC$20199_successful_=!1;_.R.JSC$20199_watchDogTimerId_=null;_.R.JSC$20199_watchDogTimeoutTime_=null;_.R.JSC$20199_requestStartTime_=null;_.R.JSC$20199_type_=null;_.R.JSC$20199_baseUri_=null;_.R.JSC$20199_requestUri_=null;_.R.JSC$20199_postData_=null;_.R.JSC$20199_xmlHttp_=null;_.R.JSC$20199_xmlHttpChunkStart_=0;_.R.trident_=null;_.R.JSC$20199_verb_=null;_.R.JSC$20199_lastError_=null;_.R.JSC$20199_lastStatusCode_=-1;_.R.sendClose_=!0;
_.R.JSC$20199_cancelled_=!1;_.R.JSC$20199_readyStateChangeThrottleMs_=0;_.R.JSC$20199_readyStateChangeThrottle_=null;var MkU=function(p,J){switch(p){case 0:return"Non-200 return code ("+J+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},XHN={},iaM={};
GD.prototype.setTimeout=function(p){this.timeout_=p};
var KGP=function(p,J,S){p.JSC$20199_type_=1;p.JSC$20199_baseUri_=_.AJ(J.clone());p.JSC$20199_postData_=S;p.decodeChunks_=!0;R$w(p,null)},ZaM=function(p,J,S,H,M){p.JSC$20199_type_=1;
p.JSC$20199_baseUri_=_.AJ(J.clone());p.JSC$20199_postData_=null;p.decodeChunks_=S;M&&(p.sendClose_=!1);R$w(p,H)},R$w=function(p,J){p.JSC$20199_requestStartTime_=Date.now();
n4P(p);p.JSC$20199_requestUri_=p.JSC$20199_baseUri_.clone();sEp(p.JSC$20199_requestUri_,"t",p.JSC$20197_retryId_);p.JSC$20199_xmlHttpChunkStart_=0;p.JSC$20199_xmlHttp_=p.JSC$20197_channel_.JSC$20206_createXhrIo(p.JSC$20197_channel_.JSC$20206_shouldUseSecondaryDomains()?J:null);p.JSC$20199_readyStateChangeThrottleMs_>0&&(p.JSC$20199_readyStateChangeThrottle_=new _.nb((0,_.tT)(p.JSC$20199_xmlHttpHandler_,p,p.JSC$20199_xmlHttp_),p.JSC$20199_readyStateChangeThrottleMs_));p.JSC$20197_eventHandler_.listen(p.JSC$20199_xmlHttp_,
"readystatechange",p.JSC$20199_readyStateChangeHandler_);J=p.JSC$20199_extraHeaders_?_.T6.clone(p.JSC$20199_extraHeaders_):{};p.JSC$20199_postData_?(p.JSC$20199_verb_="POST",J["Content-Type"]="application/x-www-form-urlencoded",p.JSC$20199_xmlHttp_.send(p.JSC$20199_requestUri_,p.JSC$20199_verb_,p.JSC$20199_postData_,J)):(p.JSC$20199_verb_="GET",p.sendClose_&&!_.Ku&&(J.Connection="close"),p.JSC$20199_xmlHttp_.send(p.JSC$20199_requestUri_,p.JSC$20199_verb_,null,J));p.JSC$20197_channel_.notifyServerReachabilityEvent(1);
J=p.JSC$20197_channelDebug_;var S=p.JSC$20199_postData_;if(S){var H="";S=S.split("&");for(var M=0;M<S.length;M++){var X=S[M].split("=");if(X.length>1){var Z=X[0];X=X[1];var n=Z.split("_");H=n.length>=2&&n[1]=="type"?H+(Z+"="+X+"&"):H+(Z+"=redacted&")}}}else H=null;J.info("XMLHTTP REQ ("+p.JSC$20197_rid_+") [attempt "+p.JSC$20197_retryId_+"]: "+p.JSC$20199_verb_+"\n"+p.JSC$20199_requestUri_+"\n"+H)};
GD.prototype.JSC$20199_readyStateChangeHandler_=function(p){p=p.target;var J=this.JSC$20199_readyStateChangeThrottle_;J&&_.Vr(p)==3?(this.JSC$20197_channelDebug_.debug("Throttling readystatechange."),J.fire()):this.JSC$20199_xmlHttpHandler_(p)};
GD.prototype.JSC$20199_xmlHttpHandler_=function(p){try{if(p==this.JSC$20199_xmlHttp_)a:{var J=_.Vr(this.JSC$20199_xmlHttp_),S=this.JSC$20199_xmlHttp_.JSC$9951_lastErrorCode_,H=this.JSC$20199_xmlHttp_.getStatus();if(_.Ku&&!_.Zj("420+")){if(J<4)break a}else if(J<3||J==3&&!this.JSC$20199_xmlHttp_.getResponseText())break a;this.JSC$20199_cancelled_||J!=4||S==7||(S==8||H<=0?this.JSC$20197_channel_.notifyServerReachabilityEvent(3):this.JSC$20197_channel_.notifyServerReachabilityEvent(2));G0e(this);var M=
this.JSC$20199_xmlHttp_.getStatus();this.JSC$20199_lastStatusCode_=M;var X=this.JSC$20199_xmlHttp_.getResponseText();X||this.JSC$20197_channelDebug_.debug("No response text for uri "+this.JSC$20199_requestUri_+" status "+M);this.JSC$20199_successful_=M==200;this.JSC$20197_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20197_rid_+") [ attempt "+this.JSC$20197_retryId_+"]: "+this.JSC$20199_verb_+"\n"+this.JSC$20199_requestUri_+"\n"+J+" "+M);if(this.JSC$20199_successful_){J==4&&baI(this);if(this.decodeChunks_){for(p=
!0;!this.JSC$20199_cancelled_&&this.JSC$20199_xmlHttpChunkStart_<X.length;){var Z=mgP(this,X);if(Z==iaM){J==4&&(this.JSC$20199_lastError_=4,ng(15),p=!1);FG$(this.JSC$20197_channelDebug_,this.JSC$20197_rid_,null,"[Incomplete Response]");break}else if(Z==XHN){this.JSC$20199_lastError_=4;ng(16);FG$(this.JSC$20197_channelDebug_,this.JSC$20197_rid_,X,"[Invalid Chunk]");p=!1;break}else FG$(this.JSC$20197_channelDebug_,this.JSC$20197_rid_,Z,null),v4$(this,Z)}J==4&&X.length==0&&(this.JSC$20199_lastError_=
1,ng(17),p=!1);this.JSC$20199_successful_=this.JSC$20199_successful_&&p;p||(FG$(this.JSC$20197_channelDebug_,this.JSC$20197_rid_,X,"[Invalid Chunked Response]"),baI(this),fUf(this))}else FG$(this.JSC$20197_channelDebug_,this.JSC$20197_rid_,X,null),v4$(this,X);this.JSC$20199_successful_&&!this.JSC$20199_cancelled_&&(J==4?this.JSC$20197_channel_.JSC$20206_onRequestComplete(this):(this.JSC$20199_successful_=!1,n4P(this)))}else M==400&&X.indexOf("Unknown SID")>0?(this.JSC$20199_lastError_=3,ng(13),this.JSC$20197_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20197_rid_+")")):(this.JSC$20199_lastError_=0,ng(14),this.JSC$20197_channelDebug_.warning("XMLHTTP Bad status "+M+" ("+this.JSC$20197_rid_+")")),baI(this),fUf(this)}else this.JSC$20197_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(n){this.JSC$20197_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var mgP=function(p,J){var S=p.JSC$20199_xmlHttpChunkStart_,H=J.indexOf("\n",S);if(H==-1)return iaM;S=Number(J.substring(S,H));if(isNaN(S))return XHN;H+=1;if(H+S>J.length)return iaM;J=J.slice(H,H+S);p.JSC$20199_xmlHttpChunkStart_=H+S;return J};
GD.prototype.cancel=function(){this.JSC$20199_cancelled_=!0;baI(this)};
var n4P=function(p){p.JSC$20199_watchDogTimeoutTime_=Date.now()+p.timeout_;OaP(p,p.timeout_)},OaP=function(p,J){if(p.JSC$20199_watchDogTimerId_!=null)throw Error("Tk");
p.JSC$20199_watchDogTimerId_=tb((0,_.tT)(p.JSC$20199_onWatchDogTimeout_,p),J)},G0e=function(p){p.JSC$20199_watchDogTimerId_&&(_.Hg.clearTimeout(p.JSC$20199_watchDogTimerId_),p.JSC$20199_watchDogTimerId_=null)};
GD.prototype.JSC$20199_onWatchDogTimeout_=function(){this.JSC$20199_watchDogTimerId_=null;var p=Date.now();p-this.JSC$20199_watchDogTimeoutTime_>=0?(this.JSC$20197_channelDebug_.info("TIMEOUT: "+this.JSC$20199_requestUri_),this.JSC$20199_type_!=2&&this.JSC$20197_channel_.notifyServerReachabilityEvent(3),baI(this),this.JSC$20199_lastError_=2,ng(18),fUf(this)):(this.JSC$20197_channelDebug_.warning("WatchDog timer called too early"),OaP(this,this.JSC$20199_watchDogTimeoutTime_-p))};
var fUf=function(p){p.JSC$20197_channel_.JSC$20206_isClosed()||p.JSC$20199_cancelled_||p.JSC$20197_channel_.JSC$20206_onRequestComplete(p)},baI=function(p){G0e(p);
_.iW(p.JSC$20199_readyStateChangeThrottle_);p.JSC$20199_readyStateChangeThrottle_=null;p.pollingTimer_.stop();p.JSC$20197_eventHandler_.removeAll();if(p.JSC$20199_xmlHttp_){var J=p.JSC$20199_xmlHttp_;p.JSC$20199_xmlHttp_=null;J.abort();J.dispose()}p.trident_&&(p.trident_=null)};
GD.prototype.getLastError=function(){return this.JSC$20199_lastError_};
var v4$=function(p,J){try{p.JSC$20197_channel_.JSC$20206_onRequestData(p,J),p.JSC$20197_channel_.notifyServerReachabilityEvent(4)}catch(S){}};var FG$=function(p,J,S,H){var M=p.info;a:if(S&&S!="y2f%"){try{var X=JSON.parse(S);if(X)for(var Z=0;Z<X.length;Z++)if(Array.isArray(X[Z])){var n=X[Z];if(!(n.length<2)){var b=n[1];if(Array.isArray(b)&&!(b.length<1)){var F=b[0];if(F!="noop"&&F!="stop")for(var f=1;f<b.length;f++)b[f]=""}}}var O=(0,_.uV)(X);break a}catch(A){p.debug("Exception parsing expected JS array - probably was not JS");O=S;break a}O=void 0}else O=S;M.call(p,"XMLHTTP TEXT ("+J+"): "+O+(H?" "+H:""))};
hb.prototype.debug=function(p){this.info(p)};
hb.prototype.info=function(){};
hb.prototype.warning=function(){};var AM$=function(p,J){this.JSC$20204_channel_=p;this.JSC$20204_channelDebug_=J;this.JSC$20204_parser_=new daP};
_.R=AM$.prototype;_.R.JSC$20206_extraHeaders_=null;_.R.JSC$20206_request_=null;_.R.receivedIntermediateResult_=!1;_.R.JSC$20206_path_=null;_.R.state_=null;_.R.JSC$20206_lastStatusCode_=-1;_.R.JSC$20206_hostPrefix_=null;_.R.blockedPrefix_=null;
_.R.connect=function(p){this.JSC$20206_path_=p;p=PAU(this.JSC$20204_channel_,this.JSC$20206_path_);ng(3);Date.now();var J=this.JSC$20204_channel_.firstTestResults_;J!=null?(this.JSC$20206_hostPrefix_=J[0],(this.blockedPrefix_=J[1])?(this.state_=1,z$I(this)):(this.state_=2,$gw(this))):(sEp(p,"MODE","init"),this.JSC$20206_request_=new GD(this,this.JSC$20204_channelDebug_),this.JSC$20206_request_.JSC$20199_extraHeaders_=this.JSC$20206_extraHeaders_,ZaM(this.JSC$20206_request_,p,!1,null,!0),this.state_=
0)};
var z$I=function(p){var J=o4I(p.JSC$20204_channel_,p.blockedPrefix_,"/mail/images/cleardot.gif");_.AJ(J);lPw(J.toString(),5E3,(0,_.tT)(p.checkBlockedCallback_,p),3,2E3);p.notifyServerReachabilityEvent(1)};
AM$.prototype.checkBlockedCallback_=function(p){if(p)this.state_=2,$gw(this);else{ng(4);var J=this.JSC$20204_channel_;J.JSC$20207_channelDebug_.debug("Test Connection Blocked");J.JSC$20211_lastStatusCode_=J.connectionTest_.JSC$20206_lastStatusCode_;bJ(J,9)}p&&this.notifyServerReachabilityEvent(2)};
var $gw=function(p){p.JSC$20204_channelDebug_.debug("TestConnection: starting stage 2");var J=p.JSC$20204_channel_.secondTestResults_;J!=null?(p.JSC$20204_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+J?"Buffered":"Unbuffered"),ng(5),J?(ng(11),e$$(p.JSC$20204_channel_,p,!1)):(ng(12),e$$(p.JSC$20204_channel_,p,!0))):(p.JSC$20206_request_=new GD(p,p.JSC$20204_channelDebug_),p.JSC$20206_request_.JSC$20199_extraHeaders_=p.JSC$20206_extraHeaders_,J=WGr(p.JSC$20204_channel_,
p.JSC$20206_hostPrefix_,p.JSC$20206_path_),ng(5),sEp(J,"TYPE","xmlhttp"),ZaM(p.JSC$20206_request_,J,!1,p.JSC$20206_hostPrefix_,!1))};
_.R=AM$.prototype;_.R.JSC$20206_createXhrIo=function(p){return this.JSC$20204_channel_.JSC$20206_createXhrIo(p)};
_.R.abort=function(){this.JSC$20206_request_&&(this.JSC$20206_request_.cancel(),this.JSC$20206_request_=null);this.JSC$20206_lastStatusCode_=-1};
_.R.JSC$20206_isClosed=function(){return!1};
_.R.JSC$20206_onRequestData=function(p,J){this.JSC$20206_lastStatusCode_=p.JSC$20199_lastStatusCode_;if(this.state_==0)if(this.JSC$20204_channelDebug_.debug("TestConnection: Got data for stage 1"),J){try{var S=this.JSC$20204_parser_.parse(J)}catch(H){QBM(this.JSC$20204_channel_,this);return}this.JSC$20206_hostPrefix_=S[0];this.blockedPrefix_=S[1]}else this.JSC$20204_channelDebug_.debug("TestConnection: Null responseText"),QBM(this.JSC$20204_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(ng(7),Date.now()):J=="11111"?(ng(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20206_lastStatusCode_=200,this.JSC$20206_request_.cancel(),this.JSC$20204_channelDebug_.debug("Test connection succeeded; using streaming connection"),ng(12),e$$(this.JSC$20204_channel_,this,!0)):(ng(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.R.JSC$20206_onRequestComplete=function(){this.JSC$20206_lastStatusCode_=this.JSC$20206_request_.JSC$20199_lastStatusCode_;this.JSC$20206_request_.JSC$20199_successful_?this.state_==0?(this.JSC$20204_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,z$I(this)):(this.state_=2,$gw(this))):this.state_==2&&(this.JSC$20204_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20204_channelDebug_.debug("Test connection succeeded; using streaming connection"),
ng(12),e$$(this.JSC$20204_channel_,this,!0)):(this.JSC$20204_channelDebug_.debug("Test connection failed; not using streaming"),ng(11),e$$(this.JSC$20204_channel_,this,!1))):(this.JSC$20204_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?ng(9):this.state_==2&&ng(10),QBM(this.JSC$20204_channel_,this,this.JSC$20206_request_.getLastError()))};
_.R.JSC$20206_shouldUseSecondaryDomains=function(){return this.JSC$20204_channel_.JSC$20206_shouldUseSecondaryDomains()};
_.R.isActive=function(){return this.JSC$20204_channel_.isActive()};
_.R.notifyServerReachabilityEvent=function(p){this.JSC$20204_channel_.notifyServerReachabilityEvent(p)};var mp=function(p,J,S){this.state_=1;this.JSC$20207_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20207_channelDebug_=new hb;this.JSC$20207_parser_=new daP;this.firstTestResults_=p||null;this.secondTestResults_=J!=null?J:null;this.asyncTest_=S||!1},CAf=function(p,J){this.JSC$20209_mapId=p;
this.map=J;this.context=null};
_.R=mp.prototype;_.R.JSC$20211_extraHeaders_=null;_.R.JSC$20211_extraParams_=null;_.R.forwardChannelRequest_=null;_.R.JSC$20211_backChannelRequest_=null;_.R.JSC$20211_path_=null;_.R.JSC$20211_forwardChannelUri_=null;_.R.JSC$20211_backChannelUri_=null;_.R.JSC$20211_hostPrefix_=null;_.R.JSC$20211_nextRid_=0;_.R.JSC$20211_nextMapId_=0;_.R.handler_=null;_.R.JSC$20211_forwardChannelTimerId_=null;_.R.JSC$20211_backChannelTimerId_=null;_.R.JSC$20211_deadBackChannelTimerId_=null;_.R.connectionTest_=null;
_.R.useChunked_=null;_.R.JSC$20211_lastArrayId_=-1;_.R.JSC$20211_lastPostResponseArrayId_=-1;_.R.JSC$20211_lastStatusCode_=-1;_.R.JSC$20211_forwardChannelRetryCount_=0;_.R.JSC$20211_backChannelRetryCount_=0;_.R.JSC$20211_channelVersion_=8;var yMI={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},BUM=function(p,J,S,H){_.yr.call(this,"timingevent",p);this.size=J;this.rtt=S;this.retries=H};
_.SJ(BUM,_.yr);var Ugy=function(p){_.yr.call(this,"serverreachability",p)};
_.SJ(Ugy,_.yr);mp.prototype.connect=function(p,J,S,H,M){this.JSC$20207_channelDebug_.debug("connect()");ng(0);this.JSC$20211_path_=J;this.JSC$20211_extraParams_=S||{};H&&M!==void 0&&(this.JSC$20211_extraParams_.OSID=H,this.JSC$20211_extraParams_.OAID=M);this.asyncTest_?(tb((0,_.tT)(this.connectTest_,this,p),100),sB$(this)):this.connectTest_(p)};
mp.prototype.disconnect=function(){this.JSC$20207_channelDebug_.debug("disconnect()");g4e(this);if(this.state_==3){var p=this.JSC$20211_nextRid_++,J=this.JSC$20211_forwardChannelUri_.clone();_.pU(J,"SID",this.sid_);_.pU(J,"RID",p);_.pU(J,"TYPE","terminate");tkl(this,J);p=new GD(this,this.JSC$20207_channelDebug_,this.sid_,p);p.JSC$20199_type_=2;p.JSC$20199_baseUri_=_.AJ(J.clone());(new Image).src=p.JSC$20199_baseUri_.toString();p.JSC$20199_requestStartTime_=Date.now();n4P(p)}h$I(this)};
mp.prototype.connectTest_=function(p){this.JSC$20207_channelDebug_.debug("connectTest_()");this.connectionTest_=new AM$(this,this.JSC$20207_channelDebug_);this.connectionTest_.JSC$20206_extraHeaders_=this.JSC$20211_extraHeaders_;this.connectionTest_.JSC$20204_parser_=this.JSC$20207_parser_;this.connectionTest_.connect(p)};
var sB$=function(p){p.JSC$20207_channelDebug_.debug("connectChannel_()");p.JSC$20211_ensureInState_(1,0);p.JSC$20211_forwardChannelUri_=PAU(p,p.JSC$20211_path_);Dgw(p)},g4e=function(p){p.connectionTest_&&(p.connectionTest_.abort(),p.connectionTest_=null);
p.JSC$20211_backChannelRequest_&&(p.JSC$20211_backChannelRequest_.cancel(),p.JSC$20211_backChannelRequest_=null);p.JSC$20211_backChannelTimerId_&&(_.Hg.clearTimeout(p.JSC$20211_backChannelTimerId_),p.JSC$20211_backChannelTimerId_=null);k0e(p);p.forwardChannelRequest_&&(p.forwardChannelRequest_.cancel(),p.forwardChannelRequest_=null);p.JSC$20211_forwardChannelTimerId_&&(_.Hg.clearTimeout(p.JSC$20211_forwardChannelTimerId_),p.JSC$20211_forwardChannelTimerId_=null)},NUI=function(p,J){if(p.state_==0)throw Error("Wk");
p.JSC$20207_outgoingMaps_.length==1E3&&p.JSC$20207_parser_.stringify(J);p.JSC$20207_outgoingMaps_.push(new CAf(p.JSC$20211_nextMapId_++,J));p.state_!=2&&p.state_!=3||Dgw(p)};
mp.prototype.JSC$20206_isClosed=function(){return this.state_==0};
mp.prototype.getState=function(){return this.state_};
var Dgw=function(p){p.forwardChannelRequest_||p.JSC$20211_forwardChannelTimerId_||(p.JSC$20211_forwardChannelTimerId_=tb((0,_.tT)(p.JSC$20211_onStartForwardChannelTimer_,p),0),p.JSC$20211_forwardChannelRetryCount_=0)};
mp.prototype.JSC$20211_onStartForwardChannelTimer_=function(p){this.JSC$20211_forwardChannelTimerId_=null;TUI(this,p)};
var TUI=function(p,J){p.JSC$20207_channelDebug_.debug("startForwardChannel_");if(p.state_==1){if(!J){p.JSC$20207_channelDebug_.debug("open_()");p.JSC$20211_nextRid_=Math.floor(Math.random()*1E5);J=p.JSC$20211_nextRid_++;var S=new GD(p,p.JSC$20207_channelDebug_,"",J);S.JSC$20199_extraHeaders_=p.JSC$20211_extraHeaders_;var H=dgN(p),M=p.JSC$20211_forwardChannelUri_.clone();_.pU(M,"RID",J);_.pU(M,"CVER","1");tkl(p,M);KGP(S,M,H);p.forwardChannelRequest_=S;p.state_=2}}else p.state_==3&&(J?uew(p,J):p.JSC$20207_outgoingMaps_.length==
0?p.JSC$20207_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):p.forwardChannelRequest_||(uew(p),p.JSC$20207_channelDebug_.debug("startForwardChannel_ finished, sent request")))},uew=function(p,J){if(J)if(p.JSC$20211_channelVersion_>6){p.JSC$20207_outgoingMaps_=p.pendingMaps_.concat(p.JSC$20207_outgoingMaps_);
p.pendingMaps_.length=0;var S=p.JSC$20211_nextRid_-1;J=dgN(p)}else S=J.JSC$20197_rid_,J=J.JSC$20199_postData_;else S=p.JSC$20211_nextRid_++,J=dgN(p);var H=p.JSC$20211_forwardChannelUri_.clone();_.pU(H,"SID",p.sid_);_.pU(H,"RID",S);_.pU(H,"AID",p.JSC$20211_lastArrayId_);tkl(p,H);S=new GD(p,p.JSC$20207_channelDebug_,p.sid_,S,p.JSC$20211_forwardChannelRetryCount_+1);S.JSC$20199_extraHeaders_=p.JSC$20211_extraHeaders_;S.setTimeout(1E4+Math.round(1E4*Math.random()));p.forwardChannelRequest_=S;KGP(S,H,
J)},tkl=function(p,J){p.handler_&&(p=p.handler_.JSC$20218_getAdditionalParams())&&_.T6.forEach(p,function(S,H){_.pU(J,H,S)})},dgN=function(p){var J=Math.min(p.JSC$20207_outgoingMaps_.length,1E3),S=["count="+J];
if(p.JSC$20211_channelVersion_>6&&J>0){var H=p.JSC$20207_outgoingMaps_[0].JSC$20209_mapId;S.push("ofs="+H)}else H=0;for(var M={},X=0;X<J;M={mapId$jscomp$3:void 0},X++){M.mapId$jscomp$3=p.JSC$20207_outgoingMaps_[X].JSC$20209_mapId;var Z=p.JSC$20207_outgoingMaps_[X].map;M.mapId$jscomp$3=p.JSC$20211_channelVersion_<=6?X:M.mapId$jscomp$3-H;try{_.T6.forEach(Z,function(n){return function(b,F){S.push("req"+n.mapId$jscomp$3+"_"+F+"="+encodeURIComponent(b))}}(M))}catch(n){S.push("req"+M.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}p.pendingMaps_=p.pendingMaps_.concat(p.JSC$20207_outgoingMaps_.splice(0,J));
return S.join("&")},lUM=function(p){p.JSC$20211_backChannelRequest_||p.JSC$20211_backChannelTimerId_||(p.JSC$20211_backChannelAttemptId_=1,p.JSC$20211_backChannelTimerId_=tb((0,_.tT)(p.JSC$20211_onStartBackChannelTimer_,p),0),p.JSC$20211_backChannelRetryCount_=0)},qtf=function(p){if(p.JSC$20211_backChannelRequest_||p.JSC$20211_backChannelTimerId_||p.JSC$20211_backChannelRetryCount_>=3)return!1;
p.JSC$20207_channelDebug_.debug("Going to retry GET");p.JSC$20211_backChannelAttemptId_++;p.JSC$20211_backChannelTimerId_=tb((0,_.tT)(p.JSC$20211_onStartBackChannelTimer_,p),VkN(p,p.JSC$20211_backChannelRetryCount_));p.JSC$20211_backChannelRetryCount_++;return!0};
mp.prototype.JSC$20211_onStartBackChannelTimer_=function(){this.JSC$20211_backChannelTimerId_=null;this.JSC$20207_channelDebug_.debug("Creating new HttpRequest");this.JSC$20211_backChannelRequest_=new GD(this,this.JSC$20207_channelDebug_,this.sid_,"rpc",this.JSC$20211_backChannelAttemptId_);this.JSC$20211_backChannelRequest_.JSC$20199_extraHeaders_=this.JSC$20211_extraHeaders_;this.JSC$20211_backChannelRequest_.JSC$20199_readyStateChangeThrottleMs_=0;var p=this.JSC$20211_backChannelUri_.clone();_.pU(p,
"RID","rpc");_.pU(p,"SID",this.sid_);_.pU(p,"CI",this.useChunked_?"0":"1");_.pU(p,"AID",this.JSC$20211_lastArrayId_);tkl(this,p);_.pU(p,"TYPE","xmlhttp");ZaM(this.JSC$20211_backChannelRequest_,p,!0,this.JSC$20211_hostPrefix_,!1);this.JSC$20207_channelDebug_.debug("New Request created")};
var e$$=function(p,J,S){p.JSC$20207_channelDebug_.debug("Test Connection Finished");p.useChunked_=p.secondTestResults_==null?S:!p.secondTestResults_;p.JSC$20211_lastStatusCode_=J.JSC$20206_lastStatusCode_;p.asyncTest_||sB$(p)},QBM=function(p,J){p.JSC$20207_channelDebug_.debug("Test Connection Failed");
p.JSC$20211_lastStatusCode_=J.JSC$20206_lastStatusCode_;bJ(p,2)};
mp.prototype.JSC$20206_onRequestData=function(p,J){if(this.state_!=0&&(this.JSC$20211_backChannelRequest_==p||this.forwardChannelRequest_==p))if(this.JSC$20211_lastStatusCode_=p.JSC$20199_lastStatusCode_,this.forwardChannelRequest_==p&&this.state_==3)if(this.JSC$20211_channelVersion_>7){try{var S=this.JSC$20207_parser_.parse(J)}catch(H){S=null}if(Array.isArray(S)&&S.length==3)if(J=S,J[0]==0)a:if(this.JSC$20207_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20211_backChannelTimerId_)this.JSC$20207_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20211_backChannelRequest_)if(this.JSC$20211_backChannelRequest_.JSC$20199_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20199_requestStartTime_)k0e(this),this.JSC$20211_backChannelRequest_.cancel(),this.JSC$20211_backChannelRequest_=null;else break a;else this.JSC$20207_channelDebug_.warning("We do not have a BackChannel established");qtf(this);ng(19)}else this.JSC$20211_lastPostResponseArrayId_=J[1],p=this.JSC$20211_lastPostResponseArrayId_-this.JSC$20211_lastArrayId_,0<
p&&(J=J[2],this.JSC$20207_channelDebug_.debug(J+" bytes (in "+p+" arrays) are outstanding on the BackChannel"),J<37500&&this.useChunked_&&this.JSC$20211_backChannelRetryCount_==0&&!this.JSC$20211_deadBackChannelTimerId_&&(this.JSC$20211_deadBackChannelTimerId_=tb((0,_.tT)(this.JSC$20211_onBackChannelDead_,this),6E3)));else this.JSC$20207_channelDebug_.debug("Bad POST response data returned"),bJ(this,11)}else J!="y2f%"&&(this.JSC$20207_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
bJ(this,11));else this.JSC$20211_backChannelRequest_==p&&k0e(this),_.Rv(J)||(p=this.JSC$20207_parser_.parse(J),this.onInput_(p))};
mp.prototype.JSC$20211_onBackChannelDead_=function(){this.JSC$20211_deadBackChannelTimerId_!=null&&(this.JSC$20211_deadBackChannelTimerId_=null,this.JSC$20211_backChannelRequest_.cancel(),this.JSC$20211_backChannelRequest_=null,qtf(this),ng(20))};
var k0e=function(p){p.JSC$20211_deadBackChannelTimerId_!=null&&(_.Hg.clearTimeout(p.JSC$20211_deadBackChannelTimerId_),p.JSC$20211_deadBackChannelTimerId_=null)};
mp.prototype.JSC$20206_onRequestComplete=function(p){this.JSC$20207_channelDebug_.debug("Request complete");if(this.JSC$20211_backChannelRequest_==p){k0e(this);this.JSC$20211_backChannelRequest_=null;var J=2}else if(this.forwardChannelRequest_==p)this.forwardChannelRequest_=null,J=1;else return;this.JSC$20211_lastStatusCode_=p.JSC$20199_lastStatusCode_;if(this.state_!=0)if(p.JSC$20199_successful_)if(J==1){J=p.JSC$20199_postData_?p.JSC$20199_postData_.length:0;p=Date.now()-p.JSC$20199_requestStartTime_;
var S=StU;S.dispatchEvent(new BUM(S,J,p,this.JSC$20211_forwardChannelRetryCount_));Dgw(this);this.handler_&&this.handler_.JSC$20218_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else lUM(this);else{S=p.getLastError();if(S==3||S==7||S==0&&this.JSC$20211_lastStatusCode_>0)this.JSC$20207_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20207_channelDebug_.debug("Maybe retrying, last error: "+MkU(S,this.JSC$20211_lastStatusCode_));var H;if(H=J==1)this.forwardChannelRequest_||
this.JSC$20211_forwardChannelTimerId_||this.state_==1||this.JSC$20211_forwardChannelRetryCount_>=2?H=!1:(this.JSC$20207_channelDebug_.debug("Going to retry POST"),this.JSC$20211_forwardChannelTimerId_=tb((0,_.tT)(this.JSC$20211_onStartForwardChannelTimer_,this,p),VkN(this,this.JSC$20211_forwardChannelRetryCount_)),this.JSC$20211_forwardChannelRetryCount_++,H=!0);if(H||J==2&&qtf(this))return;this.JSC$20207_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20207_channelDebug_.debug("Error: HTTP request failed");
switch(S){case 1:bJ(this,5);break;case 4:bJ(this,10);break;case 3:bJ(this,6);break;case 7:bJ(this,12);break;default:bJ(this,2)}}};
var VkN=function(p,J){var S=5E3+Math.floor(Math.random()*1E4);p.isActive()||(p.JSC$20207_channelDebug_.debug("Inactive channel"),S*=2);return S*J};
mp.prototype.onInput_=function(p){for(var J=0;J<p.length;J++){var S=p[J];this.JSC$20211_lastArrayId_=S[0];S=S[1];this.state_==2?S[0]=="c"?(this.sid_=S[1],this.JSC$20211_hostPrefix_=S[2],S=S[3],S!=null?this.JSC$20211_channelVersion_=S:this.JSC$20211_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20218_channelOpened(),this.JSC$20211_backChannelUri_=WGr(this,this.JSC$20211_hostPrefix_,this.JSC$20211_path_),lUM(this)):S[0]=="stop"&&bJ(this,7):this.state_==3&&(S[0]=="stop"?bJ(this,7):
S[0]!="noop"&&this.handler_&&this.handler_.JSC$20218_channelHandleArray(S),this.JSC$20211_backChannelRetryCount_=0)}};
mp.prototype.JSC$20211_ensureInState_=function(p){if(!_.dk(arguments,this.state_))throw Error("Xk`"+this.state_);};
var bJ=function(p,J){p.JSC$20207_channelDebug_.info("Error code "+J);if(J==2||J==9){var S=null;p.handler_&&(S=null);var H=(0,_.tT)(p.testGoogleComCallback_,p);S||(S=new _.V1("//www.google.com/images/cleardot.gif"),_.AJ(S));umP(S.toString(),1E4,H)}else ng(2);p.onError_(J)};
mp.prototype.testGoogleComCallback_=function(p){p?(this.JSC$20207_channelDebug_.info("Successfully pinged google.com"),ng(2)):(this.JSC$20207_channelDebug_.info("Failed to ping google.com"),ng(1),this.onError_(8))};
mp.prototype.onError_=function(p){this.JSC$20207_channelDebug_.debug("HttpChannel: error - "+p);this.state_=0;this.handler_&&this.handler_.JSC$20218_channelError(p);h$I(this);g4e(this)};
var h$I=function(p){p.state_=0;p.JSC$20211_lastStatusCode_=-1;if(p.handler_)if(p.pendingMaps_.length==0&&p.JSC$20207_outgoingMaps_.length==0)p.handler_.JSC$20218_channelClosed();else{p.JSC$20207_channelDebug_.debug("Number of undelivered maps, pending: "+p.pendingMaps_.length+", outgoing: "+p.JSC$20207_outgoingMaps_.length);var J=_.VX(p.pendingMaps_),S=_.VX(p.JSC$20207_outgoingMaps_);p.pendingMaps_.length=0;p.JSC$20207_outgoingMaps_.length=0;p.handler_.JSC$20218_channelClosed(J,S)}},PAU=function(p,
J){J=o4I(p,null,J);
p.JSC$20207_channelDebug_.debug("GetForwardChannelUri: "+J);return J},WGr=function(p,J,S){J=o4I(p,p.JSC$20206_shouldUseSecondaryDomains()?J:null,S);
p.JSC$20207_channelDebug_.debug("GetBackChannelUri: "+J);return J},o4I=function(p,J,S){var H=_.I7(S);
if(H.JSC$10187_domain_!="")J&&_.nN(H,J+"."+H.JSC$10187_domain_),_.Gq(H,H.JSC$10187_port_);else{var M=window.location;H=CBI(M.protocol,J?J+"."+M.hostname:M.hostname,+M.port,S)}p.JSC$20211_extraParams_&&_.T6.forEach(p.JSC$20211_extraParams_,function(X,Z){_.pU(H,Z,X)});
_.pU(H,"VER",p.JSC$20211_channelVersion_);tkl(p,H);return H};
mp.prototype.JSC$20206_createXhrIo=function(p){if(p)throw Error("Uk");p=new _.lV;p.JSC$9951_withCredentials_=!1;return p};
mp.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
mp.prototype.notifyServerReachabilityEvent=function(p){var J=StU;J.dispatchEvent(new Ugy(J,p))};
mp.prototype.JSC$20206_shouldUseSecondaryDomains=function(){return!1};
new tYr;var aUU=function(){};
_.R=aUU.prototype;_.R.JSC$20218_channelOpened=function(){};
_.R.JSC$20218_channelHandleArray=function(){};
_.R.JSC$20218_channelSuccess=function(){};
_.R.JSC$20218_channelError=function(){};
_.R.JSC$20218_channelClosed=function(){};
_.R.JSC$20218_getAdditionalParams=function(){return{}};
_.R.isActive=function(){return!0};var E4f=function(p){p.front_.length===0&&(p.front_=p.back_,p.front_.reverse(),p.back_=[])};
_.R=qXI.prototype;_.R.enqueue=function(p){this.back_.push(p)};
_.R.peek=function(){E4f(this);return _.gk(this.front_)};
_.R.getCount=function(){return this.front_.length+this.back_.length};
_.R.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.R.clear=function(){this.front_=[];this.back_=[]};
_.R.contains=function(p){return _.dk(this.front_,p)||_.dk(this.back_,p)};
_.R.remove=function(p){var J=this.front_;var S=Array.prototype.lastIndexOf.call(J,p,J.length-1);S>=0?(_.gsi(J,S),J=!0):J=!1;return J||_.uw(this.back_,p)};
_.R.getValues=function(){for(var p=[],J=this.front_.length-1;J>=0;--J)p.push(this.front_[J]);J=this.back_.length;for(var S=0;S<J;++S)p.push(this.back_[S]);return p};var FQ=function(p){this.JSC$20222_map_=new _.QU;this.size=0;p&&this.addAll(p)},YtM=function(p){var J=typeof p;
return J=="object"&&p||J=="function"?"o"+_.jt(p):J.charAt(0)+p};
_.R=FQ.prototype;_.R.getCount=function(){return this.JSC$20222_map_.size};
_.R.add=function(p){this.JSC$20222_map_.set(YtM(p),p);this.size=this.JSC$20222_map_.size};
_.R.addAll=function(p){p=_.KN(p);for(var J=p.length,S=0;S<J;S++)this.add(p[S]);this.size=this.JSC$20222_map_.size};
_.R.removeAll=function(p){p=_.KN(p);for(var J=p.length,S=0;S<J;S++)this.remove(p[S]);this.size=this.JSC$20222_map_.size};
_.R.delete=function(p){p=this.JSC$20222_map_.remove(YtM(p));this.size=this.JSC$20222_map_.size;return p};
_.R.remove=function(p){return this.delete(p)};
_.R.clear=function(){this.JSC$20222_map_.clear();this.size=0};
_.R.isEmpty=function(){return this.JSC$20222_map_.size===0};
_.R.has=function(p){return this.JSC$20222_map_.containsKey(YtM(p))};
_.R.contains=function(p){return this.JSC$20222_map_.containsKey(YtM(p))};
_.R.getValues=function(){return this.JSC$20222_map_.getValues()};
_.R.values=function(){return this.JSC$20222_map_.values()};
_.R.clone=function(){return new FQ(this)};
_.R.equals=function(p){return this.getCount()==WZU(p)&&rMl(this,p)};
var rMl=function(p,J){var S=WZU(J);if(p.getCount()>S)return!1;!(J instanceof FQ)&&S>5&&(J=new FQ(J));return QLr(p,function(H){var M=J;return M.contains&&typeof M.contains=="function"?M.contains(H):M.containsValue&&typeof M.containsValue=="function"?M.containsValue(H):_.qW(M)||typeof M==="string"?_.dk(M,H):_.T6.containsValue(M,H)})};
FQ.prototype.__iterator__=function(){return this.JSC$20222_map_.__iterator__(!1)};
FQ.prototype[Symbol.iterator]=function(){return this.values()};var jBr={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 wHw;var xgp;_.QG({_template:function(){if(xgp!==void 0)return xgp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;wHw===void 0&&(wHw=document.createElement("template"));var H=wHw;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return xgp=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(){_.mN(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 J=p.detail.dx+this._translateOffset,S=this.getWidth();J=this.position==="left"?J>=0||J<=-S:J<=0||J>=S;if(!J){var H=this._trackDetails;this._trackDetails=null;this._flingDrawer(p,H);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}S/=2;p.detail.dx<-S?this.opened=this.position==="right":p.detail.dx>S&&(this.opened=this.position==="left");J?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(p,J){for(var S=Date.now(),H=S-100,M,X=0,Z=J.length-1;X<=Z;){var n=X+Z>>1,b=J[n];b.timeStamp>=H?(M=b,Z=n-1):X=n+1}return M?(p.detail.dx-M.dx)/(S-M.timeStamp||1):0},
_flingDrawer:function(p,J){J=this._calculateVelocity(p,J);if(!(Math.abs(J)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;p=p.detail.dx+this._translateOffset;var S=this.getWidth(),H=this.position==="left",M=J>0;M?(J=Math.max(J,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(J=Math.min(J,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");J=this._FLING_INITIAL_SLOPE*(!M&&H?-(p+S):M&&!H?S-p:-p)/J;this._styleTransitionDuration(J);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,J)}},
_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 J=this.getWidth();this.position==="left"?(p=Math.max(-J,Math.min(p,0)),this.$.scrim.style.opacity=1+p/J):(p=Math.max(0,Math.min(p,J)),this.$.scrim.style.opacity=1-p/J);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=_.f1(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&&_.f1(p).localTarget===this._firstTabStop&&(p.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.f1(p).localTarget===this._lastTabStop&&(p.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(p,J){this.toggleClass("visible",p&&!J,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 cMl;var IUN;_.QG({_template:function(){if(IUN!==void 0)return IUN;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;cMl===void 0&&(cMl=document.createElement("template"));var H=cMl;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return IUN=p},
is:"tp-yt-paper-progress",behaviors:[jBr],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,J){p.style.transform=p.style.webkitTransform="scaleX("+J/100+")"},
_mainRatioChanged:function(p){this._transformProgress(this.$.primaryProgress,p)},
_progressChanged:function(p,J,S,H,M){p=this._clampValue(p);J=this._clampValue(J);var X=this._calcRatio(p)*100,Z=this._calcRatio(J)*100;this._setSecondaryRatio(X);this._transformProgress(this.$.secondaryProgress,X);this._transformProgress(this.$.primaryProgress,Z);this.secondaryProgress=p;M?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",J);this.setAttribute("aria-valuemin",S);this.setAttribute("aria-valuemax",H)},
_disabledChanged:function(p){this.setAttribute("aria-disabled",p?"true":"false")},
_hideSecondaryProgress:function(p){return p===0}});var LGl;var pww;var JYf=function(){};
_.R=JYf.prototype;_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._buttonStateChanged=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._noinkChanged=function(){};
_.R._calcRatio=function(){};
_.R._clampValue=function(){};
_.R._calcStep=function(){};
_.R._validateValue=function(){};
_.R._update=function(){};
_.R._setImmediateValue=function(){};
_.R._setExpand=function(){};
_.R._setDragging=function(){};
_.R._setTransiting=function(){};
_.R._setMarkers=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
_.R._setRatio=function(){};
JYf=_.QG({_template:function(){if(pww!==void 0)return pww;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;LGl===void 0&&(LGl=document.createElement("template"));var H=LGl;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return pww=p},
is:"tp-yt-paper-slider",behaviors:[_.ua,_.aK,_.Zn4,jBr],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,
value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}},
light:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&_.xX(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,J,S){this.setAttribute("aria-valuemin",J);this.setAttribute("aria-valuemax",S);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 J=this.$.sliderBar.getBoundingClientRect();J=(p.detail.x-J.left)/this._w*100;this._isRTL&&(J=100-J);var S=this.ratio;this._setTransiting(!0);this._positionKnob(J);S===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,J,S,H){H||this._setMarkers([]);J=Math.round((S-J)/this.step);J>p&&(J=p);if(J<0||!isFinite(J))J=0;this._setMarkers(Array(J))},
_mergeClasses:function(p){return Object.keys(p).filter(function(J){return p[J]}).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 _.KEn._createRipple.call(this)},
_focusedChanged:function(p){p&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=p?"":"none",this._ripple.holdDown=p)}});var S8j;var HBN;var vo=null,Mde=function(){};
_.R=Mde.prototype;_.R.fit=function(){};
_.R._discoverInfo=function(){};
_.R.resetFit=function(){};
_.R.refit=function(){};
_.R.position=function(){};
_.R.constrain=function(){};
_.R._sizeDimension=function(){};
_.R.__sizeDimension=function(){};
_.R.center=function(){};
_.R.__getNormalizedRect=function(){};
_.R.__getOffscreenArea=function(){};
_.R.__getPosition=function(){};
_.R.notifyResize=function(){};
_.R.assignParentResizable=function(){};
_.R.stopResizeNotificationsFor=function(){};
_.R._subscribeIronResize=function(){};
_.R._unsubscribeIronResize=function(){};
_.R.resizerShouldNotify=function(){};
_.R._onDescendantIronResize=function(){};
_.R._fireResize=function(){};
_.R._onIronRequestResizeNotifications=function(){};
_.R._parentResizableChanged=function(){};
_.R._notifyDescendant=function(){};
_.R._requestResizeNotifications=function(){};
_.R._findParent=function(){};
_.R.toggle=function(){};
_.R.open=function(){};
_.R.close=function(){};
_.R.cancel=function(){};
_.R.invalidateTabbables=function(){};
_.R._ensureSetup=function(){};
_.R._canceledChanged=function(){};
_.R._withBackdropChanged=function(){};
_.R._prepareRenderOpened=function(){};
_.R._finishRenderOpened=function(){};
_.R._finishRenderClosed=function(){};
_.R._preparePositioning=function(){};
_.R._finishPositioning=function(){};
_.R._applyFocus=function(){};
_.R._onCaptureClick=function(){};
_.R._onCaptureFocus=function(){};
_.R._onCaptureEsc=function(){};
_.R._onCaptureTab=function(){};
_.R._onIronResize=function(){};
_.R._onNodesChange=function(){};
_.R.__ensureFirstLastFocusables=function(){};
_.R.__openedChanged=function(){};
_.R.__deraf=function(){};
_.R.__updateScrollObservers=function(){};
_.R.__addScrollListeners=function(){};
_.R.__removeScrollListeners=function(){};
_.R.__isValidScrollAction=function(){};
_.R.__onCaptureScroll=function(){};
_.R.__saveScrollPosition=function(){};
_.R.__restoreScrollPosition=function(){};
_.R._setCanceled=function(){};
Mde=_.QG({_template:function(){if(HBN!==void 0)return HBN;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;S8j===void 0&&(S8j=document.createElement("template"));var H=S8j;S.call(J,H.content.cloneNode(!0),p.content.firstChild);return HBN=p},
is:"tp-yt-paper-toast",behaviors:[_.Gb],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(){_.dS._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.ip.requestAvailability()},
show:function(p){typeof p=="string"&&(p={text:p});for(var J in p)J.indexOf("_")===0?_.dS._warn('The property "'+J+'" is private and was not set.'):J in this?this[J]=p[J]:_.dS._warn('The property "'+J+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__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?(vo&&vo!==this&&vo.close(),vo=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):vo===this&&(vo=null);_.n7._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 XwI=new _.Zz("disablePersonalizationAction");var pdN=new _.Zz("showDmaConsentFlowCommand");var JJl=new _.Zz("showMmgNoticeCommand");var iBI=new _.Zz("saveConsentAction");var RPr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nj(p)};
_.Q(RPr,_.Kt);var KnP=_.jDs(RPr);var ZBe=new _.Zz("updateTopbarAvatarAction");var nBw=new _.Zz("channelHandleValidationResultRenderer");var G2l=new _.Zz("generateHandleFromNameResultRenderer");var bB$=new _.Zz("channelHandleInputRenderer");var m_r=new _.Zz("copyLinkRenderer");var Fnp=new _.Zz("timedCommand");var vBy=new _.Zz("clearCookieAction");var fhp=new _.Zz("getMultiPageMenuAction");var OBU=new _.Zz("addToGuideSectionAction"),AY$=new _.Zz("removeFromGuideSectionAction");var PG$=new _.Zz("updateNotificationsUnseenCountAction");var zPI=new _.Zz("resetChannelUnreadCountCommand");var $_U=new _.Zz("resetSubscriptionsUnreadDotCommand");var oBM=new _.Zz("selectLanguageCommand");var bny=new _.Zz("sendFeedbackAction");var ePj=new _.Zz("uploadImageToScottyCommand");var WnN=new _.Zz("registerPromoCommand");var QGp=new _.Zz("setPushNotificationsEnabledCommand");var CGf=new _.Zz("desktopTopbarRenderer");var yYl=new _.Zz("surveyFollowUpRenderer");var BvP=new _.Zz("handlesClaimingRadioOptionRenderer");var U_$=new _.Zz("hotkeyDialogRenderer");var sGr=new _.Zz("modifyReportFormCommand");var gBM=new _.Zz("accountLinkCommand");var tde=new _.Zz("accountUnlinkCommand");var hPe=new _.Zz("logAccountLinkingEventCommand");var iXI=new _.Zz("guideCollapsibleEntryRenderer");var D_N=new _.Zz("guideDownloadsEntryRenderer");var Xj$=new _.Zz("guideEntryRenderer");var k2N=new _.Zz("getLocationCommand");var ebM=new _.Zz("locationCollectionCommand");var W_w=new _.Zz("storiesItemViewModel");var Q3l=new _.Zz("addToRemoteQueueAction");var Czp=new _.Zz("insertInRemoteQueueAction");var yAl=new _.Zz("removeFromRemoteQueueAction");var BiM=new _.Zz("notificationRenderer");var Nx$=new _.Zz("localWatchHistoryCommand");var Uoj=new _.Zz("pdgBuyFlowHeaderRenderer");var s3P=new _.Zz("pdgColorSliderRenderer");var glP=new _.Zz("pdgCommentOptionRenderer");var tfj=new _.Zz("pdgCommentPreviewRenderer");var hbe=new _.Zz("superVodSelectableItemButtonRenderer");var Doy=new _.Zz("switchButtonRenderer");var kLw=new _.Zz("upsellDialogRenderer");var NiI=new _.Zz("feedbackQuestionRenderer"),Tiy=new _.Zz("feedbackOptionRenderer");var dof=new _.Zz("sponsorshipsTierRenderer"),u0P=new _.Zz("sponsorshipsPromotionChannelRenderer");var lSr=new _.Zz("simpleSurveyMessageRenderer");var ONI=new _.Zz("invokeInstrumentManagerAction");var Vfr=new _.Zz("logYpcFlowDismissCommand");var qoy=new _.Zz("logYpcFlowStartCommand");var aSU=new _.Zz("unlimitedCreateFamilyEndpoint");var Elr=new _.Zz("iconBadgeRenderer");var T7f=new _.Zz("collaborativePlaylistVisibilityValidationRule");var Yow=function(p){_.yr.call(this,"channelMessage");this.message=p};
_.Q(Yow,_.yr);var rAf=function(p){_.yr.call(this,"channelError");this.error=p};
_.Q(rAf,_.yr);var j3M={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},wFp={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},xoI={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},cAI={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},ISy={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var fg=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 _.QU;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;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.castUserId=p.castUserId||"",this.theme=p.theme||"u",L_j(this,p.capabilities||""),pDe(this,
p.compatibleSenderThemes||""),Jvp(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")};
fg.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 fg(p);p.connected=this.connected;p.remoteControllerUrl=this.remoteControllerUrl;p.localChannelEncryptionKey=this.localChannelEncryptionKey;p.deviceContext=
this.deviceContext;p.castUserId=this.castUserId;return p};
fg.prototype.equals=function(p){return p?this.id==p.id:!1};
var L_j=function(p,J){p.capabilities.clear();_.MU(J.split(","),_.nl(_.T6.contains,j3M)).forEach(function(S){p.capabilities.add(S)})},pDe=function(p,J){p.compatibleSenderThemes.clear();
_.MU(J.split(","),_.nl(_.T6.contains,wFp)).forEach(function(S){p.compatibleSenderThemes.add(S)})},Jvp=function(p,J){p.experiments.clear();
J.split(",").forEach(function(S){p.experiments.add(S)})};_.SJ(E8f,_.gp);_.R=E8f.prototype;_.R.JSC$20258_onTick_=function(){this.JSC$20256_interval_=Math.min(3E5,this.JSC$20256_interval_*2);this.JSC$20258_listener_();this.nextTickTime_&&this.start()};
_.R.start=function(){var p=this.JSC$20256_interval_+15E3*Math.random(),J=this.delay_;J.isActive()||J.start(p);this.nextTickTime_=Date.now()+p};
_.R.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.R.isActive=function(){return this.delay_.isActive()};
_.R.reset=function(){this.delay_.stop();this.JSC$20256_interval_=5E3};_.SJ(DT,aUU);_.R=DT.prototype;_.R.subscribe=function(p,J,S){return this.pubsub_.subscribe(p,J,S)};
_.R.unsubscribe=function(p,J,S){return this.pubsub_.unsubscribe(p,J,S)};
_.R.unsubscribeByKey=function(p){return this.pubsub_.unsubscribeByKey(p)};
_.R.publish=function(p,J){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.R.dispose=function(){this.JSC$20259_disposed_||(this.JSC$20259_disposed_=!0,_.iW(this.pubsub_),this.disconnect(),_.iW(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20259_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.SU({})})};
_.R.isDisposed=function(){return this.JSC$20259_disposed_};
_.R.connect=function(p,J,S){var H=this,M,X,Z,n;return _.G(function(b){if(b.nextAddress==1)return _.C_(b,2),H.useAsyncBrowserChannelHandler_?b.yield(H.connectPromise_,2):b.jumpTo(2);_.WZ(b);if(H.JSC$20259_disposed_||H.JSC$20259_channel_&&H.JSC$20259_channel_.getState()==2&&!H.isInitialReconnectTimer_)return b.return();H.sCookie_="";H.isInitialReconnectTimer_||H.reconnectTimer_.stop();H.connectionParams_=p||null;H.connectUi_=J||0;M=H.JSC$20259_pathPrefix_+"/test";X=H.JSC$20259_pathPrefix_+"/bind";Z=
new mp(S?S.firstTestResults:null,S?S.secondTestResults:null,H.enableAsyncTest_);if(n=H.JSC$20259_channel_)n.handler_=null;Z.handler_=H;H.JSC$20259_channel_=Z;if(H.useAsyncBrowserChannelHandler_)return H.connectPromise_=S6I(H).then(function(){return H0r(H,M,X,n,S)}),b.return(H.connectPromise_.then(function(){H.connectPromise_=_.SU()}));
H0r(H,M,X,n,S);return _.yV(b,0)})};
var H0r=function(p,J,S,H,M){MwP(p);if(p.JSC$20259_channel_){var X=_.jn("ID_TOKEN"),Z=p.JSC$20259_channel_.JSC$20211_extraHeaders_||{};X?Z["x-youtube-identity-token"]=X:delete Z["x-youtube-identity-token"];p.JSC$20259_channel_.JSC$20211_extraHeaders_=Z}XDj(p);H?(H.getState(),p.JSC$20259_channel_.connect(J,S,p.defaultQueryParams_,H.sid_,H.JSC$20211_lastArrayId_)):M?p.JSC$20259_channel_.connect(J,S,p.defaultQueryParams_,M.sessionId,M.arrayId):p.JSC$20259_channel_.connect(J,S,p.defaultQueryParams_);p.isInitialReconnectTimer_&&
!p.reconnectTimer_.isActive()&&p.reconnectTimer_.start()};
DT.prototype.disconnect=function(p){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.SU())}finally{this.disconnectUi_=p||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),MwP(this),this.JSC$20259_channel_&&(this.JSC$20259_channel_.getState()==3&&TUI(this.JSC$20259_channel_),this.JSC$20259_channel_.disconnect()),this.disconnectUi_=0}};
DT.prototype.sendMessage=function(p,J){var S=this,H;return _.G(function(M){switch(M.nextAddress){case 1:_.C_(M,2);if(!S.useAsyncBrowserChannelHandler_){M.jumpTo(2);break}return M.yield(S.connectPromise_,2);case 2:_.WZ(M);if(S.JSC$20259_disposed_)return M.return();H={_sc:p};J&&_.T6.extend(H,J);if(S.reconnectTimer_.isActive()||(S.JSC$20259_channel_?S.JSC$20259_channel_.getState():0)==2){S.JSC$20259_pendingMessages_.push(H);M.jumpTo(6);break}if(!S.isChannelOpened()){M.jumpTo(6);break}_.C_(M,8);if(!S.useAsyncBrowserChannelHandler_||
i0f(S,p)){M.jumpTo(8);break}return M.yield(S6I(S),8);case 8:_.WZ(M,0,0,1);S.isChannelOpened()&&(i0f(S,p)||XDj(S),MwP(S),NUI(S.JSC$20259_channel_,H));_.yV(M,6,1);break;case 6:_.yV(M,0)}})};
var i0f=function(p,J){return p.enableMdxAuthForConnectionOnly_?!0:p.disableMdxAuthForAdMessages_?Object.values(xoI).includes(J):p.disableMdxAuthForNonPlaybackMessages_?!Object.values(cAI).includes(J):p.disableMdxAuthForShortsMessages_?Object.values(ISy).includes(J):!1};
DT.prototype.JSC$20218_channelOpened=function(){this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.iW(this.reconnectTimer_),this.reconnectTimer_=new E8f(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20259_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)Rqy(this);else{var p=this.JSC$20259_pendingMessages_;this.JSC$20259_pendingMessages_=[];var J=p.length;XDj(this);Kv$(this,
p,J);Z0N(this)}else Z0N(this)};
var Rqy=function(p){var J,S;_.G(function(H){if(H.nextAddress==1)return _.C_(H,2),H.yield(S6I(p),2);_.WZ(H);J=p.JSC$20259_pendingMessages_;p.JSC$20259_pendingMessages_=[];S=J.length;Kv$(p,J,S);Z0N(p);return _.yV(H,0)})},Kv$=function(p,J,S){for(var H=0;H<S;++H)NUI(p.JSC$20259_channel_,J[H]);
Z0N(p)},Z0N=function(p){p.publish("handlerOpened");
p.JSC$20259_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.R=DT.prototype;_.R.JSC$20218_channelError=function(p){var J=p==2&&this.JSC$20259_channel_.JSC$20211_lastStatusCode_==401;p==4||J||this.reconnectTimer_.start();this.publish("handlerError",p,J);J=Object.keys(yMI).find(function(S){return yMI[S]===p});
this.JSC$20259_channelErrorCounter.increment("BROWSER_CHANNEL",J!=null?J:"UNKNOWN")};
_.R.JSC$20218_channelClosed=function(p,J){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(J)for(var S=J.length,H=0;H<S;++H){var M=J[H].map;M&&this.JSC$20259_pendingMessages_.push(M)}this.JSC$20259_channelClosedCounter.increment("BROWSER_CHANNEL");p&&this.pendingMapsOnClosedCounter.JSC$10087_streamzService.JSC$9942_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",p.length);J&&this.undeliveredMapsOnClosedCounter.JSC$10090_streamzService.JSC$9942_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
J.length)};
_.R.JSC$20218_channelSuccess=function(p,J){J!=null&&p!=null&&this.channelMessageSentCounter.increment()};
_.R.JSC$20218_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_&&_.T6.extend(p,this.connectionParams_);return p};
_.R.JSC$20218_channelHandleArray=function(p){p[0]=="S"?this.sCookie_=p[1]:p[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20259_channel_.disconnect()):this.publish("handlerMessage",new aPr(p[0],p[1]));this.JSC$20259_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.R.isChannelOpened=function(){return!!this.JSC$20259_channel_&&this.JSC$20259_channel_.getState()==3};
var MwP=function(p){if(p.JSC$20259_channel_){var J=p.JSC$20259_getXsrfToken_(),S=p.JSC$20259_channel_.JSC$20211_extraHeaders_||{};J?S["x-youtube-lounge-xsrf-token"]=J:delete S["x-youtube-lounge-xsrf-token"];p.JSC$20259_channel_.JSC$20211_extraHeaders_=S}},S6I=function(p){if(p.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.SU();
if(!p.enableCachedUpdateAuthorizationHeader_)return nSM(p);p.updateAuthorizationHeaderPromise_===null&&(p.updateAuthorizationHeaderPromise_=nSM(p));return p.updateAuthorizationHeaderPromise_},nSM=function(p){return _.Nv(p.getAuthorizationHeader_().then(function(J){Gtj(p,J)}).thenCatch(function(){}),function(){p.updateAuthorizationHeaderPromise_=null})},Gtj=function(p,J){if(p.JSC$20259_channel_){var S=p.JSC$20259_channel_.JSC$20211_extraHeaders_||{};
J&&Object.keys(J).length>0?S=Object.assign({},S,J):delete S.Authorization;p.JSC$20259_channel_.JSC$20211_extraHeaders_=S}},XDj=function(p){p.getAuthorizationHeaderSync_&&!p.useAsyncBrowserChannelHandler_&&Gtj(p,p.getAuthorizationHeaderSync_())};
_.R=DT.prototype;_.R.setLoungeToken=function(p){(this.defaultQueryParams_.loungeIdToken=p)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20259_channel_){var J=this.JSC$20259_channel_.JSC$20211_extraHeaders_||{};p?J["X-YouTube-LoungeId-Token"]=p:delete J["X-YouTube-LoungeId-Token"];this.JSC$20259_channel_.JSC$20211_extraHeaders_=J}};
_.R.getDeviceId=function(){return this.defaultQueryParams_.id};
_.R.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.R.reconnect=function(){var p=this.reconnectTimer_;p.delay_.fire();p.start()};
_.R.safeReconnect_=function(){var p=this.JSC$20259_channel_,J=0;p.JSC$20211_backChannelRequest_&&J++;p.forwardChannelRequest_&&J++;J==0&&this.connect(this.connectionParams_,this.connectUi_)};var dc=function(p,J){var S=p.basePath;p.supportCors&&(S=p.scheme+"://"+p.domain+p.port+p.basePath);return _.KQ(S+J,{})};
LKI.prototype.sendRequest=function(p,J,S,H,M,X,Z){p={format:X?"RAW":"JSON",method:p,context:this,timeout:5E3,withCredentials:!!Z,onSuccess:_.nl(this.JSC$20265_onSuccess_,H,!X),onError:_.nl(this.onError_,M),onTimeout:_.nl(this.JSC$20265_onTimeout_,M)};S&&(p.postParams=S,p.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.BO(J,p)};
LKI.prototype.JSC$20265_onSuccess_=function(p,J,S,H){J?p(H):p({text:S.responseText})};
LKI.prototype.onError_=function(p,J){p(Error("Yk`"+J.status))};
LKI.prototype.JSC$20265_onTimeout_=function(p){p(Error("Zk"))};var HTp=function(p,J){return!!J&&(p.id==J||p.uuid==J)},b0$=function(p){return{name:p.name,
screenId:p.id,loungeToken:p.token,dialId:p.uuid,screenIdType:p.idType,screenIdSecret:p.secret}},mCj=function(p){return new kj(p)},Fv$=function(p){return Array.isArray(p)?_.d2(p,mCj):[]},X_I=function(p){if(!p)return"null";
var J=p.token?".."+p.token.slice(-6):"-",S=p.uuid?".."+p.uuid.slice(-6):"-",H=p.secret?".."+p.secret.slice(-6):"-";return'{name:"'+p.name+'",id:'+p.id.substr(0,6)+"..,token:"+(J+",uuid:"+S+",idType:"+p.idType+",secret:")+(H+"}")},tNe=function(p){return Array.isArray(p)?"["+_.d2(p,X_I).join(",")+"]":"null"};var nII="",Tl=null;var z1P=function(p,J){_.te.call(this);var S=this;this.handler=p();this.handler.subscribe("handlerOpened",this.JSC$20272_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(H,M){S.onError(M)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=J};
_.Q(z1P,_.te);_.R=z1P.prototype;_.R.connect=function(p,J,S){this.handler.connect(p,J,S)};
_.R.disconnect=function(p){this.handler.disconnect(p)};
_.R.reconnect=function(){this.handler.reconnect()};
_.R.getDeviceId=function(){return this.handler.getDeviceId()};
_.R.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.R.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.R.JSC$20272_onOpened=function(){this.dispatchEvent("channelOpened");var p=this.handler,J=this.currentScreenId;_.ze("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!p.JSC$20259_channel_.useChunked_,sessionId:p.JSC$20259_channel_.sid_,arrayId:p.JSC$20259_channel_.JSC$20211_lastArrayId_});_.ze("yt-remote-session-screen-id",J);p=MNj();J=Xue();_.dk(p,J)||p.push(J);ZTI(p);K2I()};
_.R.onClosed=function(){this.dispatchEvent("channelClosed")};
_.R.onMessage=function(p){this.dispatchEvent(new Yow(p))};
_.R.onError=function(p){this.dispatchEvent(new rAf(p?1:0))};
_.R.sendMessage=function(p,J){this.handler.sendMessage(p,J)};
_.R.setLoungeToken=function(p){this.handler.setLoungeToken(p)};
_.R.dispose=function(){this.handler.dispose()};var PbI=function(p,J,S){var H=this;S=S===void 0?function(){return""}:S;
var M=M===void 0?new c0f:M;var X=X===void 0?new _.sv:X;this.pathPrefix=p;this.defaultQueryParams=J;this.getXsrfToken=S;this.JSC$20275_pubsub=X;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new E8f(function(){var Z;((Z=H.channel)==null?void 0:QxU((new pHM(Z,Z.JSC$20182_channel_)).JSC$20192_channel_.forwardChannelRequestPool_))===0&&H.connect(H.connectionParams,H.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20275_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20275_channelOpenedCounter=new YXU;this.JSC$20275_channelClosedCounter=new rXw;this.JSC$20275_channelMessageReceivedCounter=new wYp;this.JSC$20275_channelErrorCounter=new xBP};
PbI.prototype.connect=function(p,J){p=p===void 0?{}:p;J=J===void 0?0:J;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=p,this.connectUi=J,vSP(this),(p=_.jn("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 ZB(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,fKj(this))};
var fKj=function(p){_.z$(p.channel,"w",function(){p.channelState=3;p.reconnectTimer.reset();p.connectionParams=null;p.connectUi=0;for(var J=_.K(p.nonAckedMessagesOnChannelClosed),S=J.next();!S.done;S=J.next())S=S.value,p.channel&&p.channel.send(S);p.nonAckedMessagesOnChannelClosed=[];p.publish("webChannelOpened");p.JSC$20275_channelOpenedCounter.increment("WEB_CHANNEL")});
_.z$(p.channel,"x",function(){p.channelState=0;p.reconnectTimer.isActive()||p.publish("webChannelClosed");var J,S=(J=p.channel)==null?void 0:JMy(new pHM(J,J.JSC$20182_channel_));S&&(p.nonAckedMessagesOnChannelClosed=[].concat(_.dW(S)));p.JSC$20275_channelClosedCounter.increment("WEB_CHANNEL")});
_.z$(p.channel,"z",function(J){var S=J.data;S[0]==="gracefulReconnect"?(p.reconnectTimer.start(),p.channel&&p.channel.close()):p.publish("webChannelMessage",new aPr(S[0],S[1]));p.lastStatusCode=J.statusCode;p.JSC$20275_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.z$(p.channel,"y",function(){p.lastStatusCode===401||p.reconnectTimer.start();p.publish("webChannelError");p.JSC$20275_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.R=PbI.prototype;_.R.disconnect=function(p){this.disconnectUi=p===void 0?0:p;this.reconnectTimer.stop();vSP(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.R.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.R.reconnect=function(){var p=this.reconnectTimer;p.delay_.fire();p.start()};
_.R.sendMessage=function(p,J){this.channel&&(vSP(this),p=Object.assign({},{_sc:p},J),this.channel.send(p))};
_.R.setLoungeToken=function(p){p||this.reconnectTimer.stop();p?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=p:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var vSP=function(p){var J=p.getXsrfToken();J?p.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=J:delete p.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.R=PbI.prototype;_.R.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.R.publish=function(p){return this.JSC$20275_pubsub.publish.apply(this.JSC$20275_pubsub,[p].concat(_.dW(_.Yp.apply(1,arguments))))};
_.R.subscribe=function(p,J,S){return this.JSC$20275_pubsub.subscribe(p,J,S)};
_.R.unsubscribe=function(p,J,S){return this.JSC$20275_pubsub.unsubscribe(p,J,S)};
_.R.unsubscribeByKey=function(p){return this.JSC$20275_pubsub.unsubscribeByKey(p)};
_.R.dispose=function(){this.JSC$20275_disposed||(this.JSC$20275_disposed=!0,_.iW(this.JSC$20275_pubsub),this.disconnect(),_.iW(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.R.isDisposed=function(){return this.JSC$20275_disposed};var A7$=function(p){_.te.call(this);this.webChannelService=p();this.webChannelService.subscribe("webChannelOpened",this.JSC$20283_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.Q(A7$,_.te);_.R=A7$.prototype;_.R.connect=function(p,J){this.webChannelService.connect(p,J)};
_.R.disconnect=function(p){this.webChannelService.disconnect(p)};
_.R.reconnect=function(){this.webChannelService.reconnect()};
_.R.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.R.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.R.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.R.JSC$20283_onOpened=function(){this.dispatchEvent("channelOpened")};
_.R.onClosed=function(){this.dispatchEvent("channelClosed")};
_.R.onMessage=function(p){this.dispatchEvent(new Yow(p))};
_.R.onError=function(){this.dispatchEvent(new rAf(this.webChannelService.lastStatusCode===401?1:0))};
_.R.sendMessage=function(p,J){this.webChannelService.sendMessage(p,J)};
_.R.setLoungeToken=function(p){this.webChannelService.setLoungeToken(p)};
_.R.dispose=function(){this.webChannelService.dispose()};var gIy=Date.now(),u3=null,UkM=Array(50),BsP=-1,s$y=!1;_.SJ(qA,_.Gl);qA.prototype.getScreens=function(){return this.screens};
qA.prototype.contains=function(p){return!!S0N(this.screens,p)};
qA.prototype.get=function(p){return p?NA(this.screens,p):null};
var O0r=function(p,J){var S=p.get(J.uuid)||p.get(J.id);if(S)return p=S.name,S.id=J.id||S.id,S.name=J.name,S.token=J.token,S.uuid=J.uuid||S.uuid,S.name!=p;p.screens.push(J);return!0},Ave=function(p,J){var S=p.screens.length!=J.length;
p.screens=_.MU(p.screens,function(X){return!!S0N(J,X)});
for(var H=J.length,M=0;M<H;M++)S=O0r(p,J[M])||S;return S},PNI=function(p,J){var S=p.screens.length;
p.screens=_.MU(p.screens,function(H){return!(H||J?!H!=!J?0:H.id==J.id:1)});
return p.screens.length<S};
qA.prototype.info=function(p){l3(this.JSC$20284_logName_,p)};var zqN=function(p,J,S,H,M){_.Gl.call(this);this.JSC$20287_http_=p;this.pairingCode_=J;this.deviceId_=S;this.friendlyName_=H;this.enableShortLivedLoungeToken_=M;this.pollIndex_=0;this.JSC$20287_xhr_=null;this.JSC$20287_timer_=NaN};
_.Q(zqN,_.Gl);_.R=zqN.prototype;_.R.start=function(){!this.JSC$20287_xhr_&&isNaN(this.JSC$20287_timer_)&&this.poll_()};
_.R.stop=function(){this.JSC$20287_xhr_&&(this.JSC$20287_xhr_.abort(),this.JSC$20287_xhr_=null);isNaN(this.JSC$20287_timer_)||(_.CQ(this.JSC$20287_timer_),this.JSC$20287_timer_=NaN)};
_.R.disposeInternal=function(){this.stop();_.Gl.prototype.disposeInternal.call(this)};
_.R.poll_=function(){this.JSC$20287_timer_=NaN;this.JSC$20287_xhr_=_.BO(dc(this.JSC$20287_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.tT)(this.JSC$20289_onSuccess_,this),onError:(0,_.tT)(this.onError_,this),onTimeout:(0,_.tT)(this.JSC$20289_onTimeout_,this)})};
_.R.JSC$20289_onSuccess_=function(p,J){this.JSC$20287_xhr_=null;p=J.screen||{};p.dialId=this.deviceId_;p.name=this.friendlyName_;J=-1;this.enableShortLivedLoungeToken_&&p.shortLivedLoungeToken&&p.shortLivedLoungeToken.value&&p.shortLivedLoungeToken.refreshIntervalMs&&(p.screenIdType="shortLived",p.loungeToken=p.shortLivedLoungeToken.value,J=p.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new kj(p),J)};
_.R.onError_=function(p){this.JSC$20287_xhr_=null;p.status&&p.status==404?this.pollIndex_>=$Cr.length?this.publish("pairingFailed",Error("$k")):(p=$Cr[this.pollIndex_],this.JSC$20287_timer_=_.WO((0,_.tT)(this.poll_,this),p),this.pollIndex_++):this.publish("pairingFailed",Error("al`"+p.status))};
_.R.JSC$20289_onTimeout_=function(){this.JSC$20287_xhr_=null;this.publish("pairingFailed",Error("bl"))};
var $Cr=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.SJ(EW,qA);_.R=EW.prototype;_.R.start=function(){a0(this)&&this.publish("screenChange");!_.$t("yt-remote-lounge-token-expiration")&&oSP(this);_.CQ(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.WO((0,_.tT)(this.start,this),1E4)};
_.R.add=function(p,J){a0(this);O0r(this,p);eql(this,!1);this.publish("screenChange");J(p);p.token||oSP(this)};
_.R.remove=function(p,J){var S=a0(this);PNI(this,p)&&(eql(this,!1),S=!0);J(p);S&&this.publish("screenChange")};
_.R.updateName=function(p,J,S,H){var M=a0(this),X=this.get(p.id);X?(X.name!=J&&(X.name=J,eql(this,!1),M=!0),S(p)):H(Error("cl"));M&&this.publish("screenChange")};
_.R.disposeInternal=function(){_.CQ(this.loungeTokenRefreshTimer_);EW.superClass_.disposeInternal.call(this)};
var oSP=function(p){if(p.screens.length){var J=_.d2(p.screens,function(H){return H.id}),S=dc(p.JSC$20291_http_,"/pairing/get_lounge_token_batch");
p.JSC$20291_http_.sendRequest("POST",S,{screen_ids:J.join(",")},(0,_.tT)(p.handleLoungeTokens_,p),(0,_.tT)(p.handleLoungeTokenError_,p))}};
EW.prototype.handleLoungeTokens_=function(p){a0(this);var J=this.screens.length;p=p&&p.screens||[];for(var S=p.length,H=0;H<S;++H){var M=p[H],X=this.get(M.screenId);X&&(X.token=M.loungeToken,--J)}eql(this,!J);J&&l3(this.JSC$20284_logName_,"Missed "+J+" lounge tokens.")};
EW.prototype.handleLoungeTokenError_=function(p){l3(this.JSC$20284_logName_,"Requesting lounge tokens failed: "+p)};
var a0=function(p){if(_.z("deprecate_pair_servlet_enabled"))return Ave(p,[]);var J=Fv$(bTN());J=_.MU(J,function(S){return!S.uuid});
return Ave(p,J)},eql=function(p,J){F2p(_.d2(p.screens,b0$));
J&&mkP()};var O5=function(p,J){_.Gl.call(this);this.getScreensToCheck_=J;J=(J=_.$t("yt-remote-online-screen-ids")||"")?J.split(","):[];for(var S={},H=this.getScreensToCheck_(),M=H.length,X=0;X<M;++X){var Z=H[X].id;S[Z]=_.dk(J,Z)}this.screenIdSet_=S;this.JSC$20294_http_=p;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;WvM("Initialized with "+(0,_.uV)(this.screenIdSet_))};
_.Q(O5,_.Gl);O5.prototype.isOnline=function(p){return!!this.screenIdSet_[p]};
O5.prototype.start=function(){var p=parseInt(_.$t("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.JF()-144E5<p?0:p)?Qej(this):(this.fastCheckEndTime_=_.JF()+3E5,_.ze("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
O5.prototype.isEmpty=function(){return _.T6.isEmpty(this.screenIdSet_)};
O5.prototype.update=function(){WvM("Updating availability on schedule.");var p=this.getScreensToCheck_(),J=_.T6.filter(this.screenIdSet_,function(S,H){return S&&!!NA(p,H)},this);
CN$(this,J)};
var yvI=function(p,J,S){var H=dc(p.JSC$20294_http_,"/pairing/get_screen_availability");p.JSC$20294_http_.sendRequest("POST",H,{lounge_token:J.token},(0,_.tT)(function(M){M=M.screens||[];for(var X=M.length,Z=0;Z<X;++Z)if(M[Z].loungeToken==J.token){S(M[Z].status=="online");return}S(!1)},p),(0,_.tT)(function(){S(!1)},p))};
O5.prototype.disposeInternal=function(){_.CQ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Gl.prototype.disposeInternal.call(this)};
var CN$=function(p,J){a:if(_.T6.getCount(J)!=_.T6.getCount(p.screenIdSet_))var S=!1;else{S=_.T6.getKeys(J);for(var H=S.length,M=0;M<H;++M)if(!p.screenIdSet_[S[M]]){S=!1;break a}S=!0}S||(WvM("Updated online screens: "+(0,_.uV)(p.screenIdSet_)),p.screenIdSet_=J,p.publish("screenChange"));BHP(p)},Qej=function(p){isNaN(p.refreshTimer_)||_.CQ(p.refreshTimer_);
p.refreshTimer_=_.WO((0,_.tT)(p.requestScreenAvailability_,p),p.fastCheckEndTime_>0&&p.fastCheckEndTime_<_.JF()?2E4:1E4)};
O5.prototype.requestScreenAvailability_=function(){_.CQ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var p=UCP(this);if(_.T6.getCount(p)){var J=dc(this.JSC$20294_http_,"/pairing/get_screen_availability"),S={lounge_token:_.T6.getKeys(p).join(",")};this.currentRequest_=this.JSC$20294_http_.sendRequest("POST",J,S,(0,_.tT)(this.onScreenAvailability_,this,p),(0,_.tT)(this.onScreenAvailabilityError_,this))}else CN$(this,{}),Qej(this)};
O5.prototype.onScreenAvailability_=function(p,J){this.currentRequest_=null;var S=_.T6.getKeys(UCP(this));if(_.xs(S,_.T6.getKeys(p))){J=J.screens||[];S={};for(var H=J.length,M=0;M<H;++M)S[p[J[M].loungeToken]]=J[M].status=="online";CN$(this,S);Qej(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
O5.prototype.onScreenAvailabilityError_=function(p){this.warn_("Screen availability failed: "+p);this.currentRequest_=null;Qej(this)};
var WvM=function(p){l3("OnlineScreenService",p)};
O5.prototype.warn_=function(p){l3("OnlineScreenService",p)};
var UCP=function(p){var J={};_.MV(p.getScreensToCheck_(),function(S){S.token?J[S.token]=S.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return J},BHP=function(p){p=_.T6.getKeys(_.T6.filter(p.screenIdSet_,function(J){return J}));
p.sort(_.kW3);p.length?_.ze("yt-remote-online-screen-ids",p.join(","),60):_.eS("yt-remote-online-screen-ids")};_.SJ(Yj,qA);_.R=Yj.prototype;_.R.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.R.add=function(p,J,S){this.localScreenService_.add(p,J,S)};
_.R.remove=function(p,J,S){this.localScreenService_.remove(p,J,S);this.onlineScreenService_.update()};
_.R.updateName=function(p,J,S,H){this.localScreenService_.contains(p)?this.localScreenService_.updateName(p,J,S,H):(p="Updating name of unknown screen: "+p.name,l3(this.JSC$20284_logName_,p),H(Error(p)))};
_.R.getScreens=function(p){return p?this.screens:AzI(this.screens,_.MU(this.automaticScreens_,function(J){return!this.contains(J)},this))};
_.R.JSC$20299_getOnlineScreens=function(){return _.MU(this.getScreens(!0),function(p){return this.onlineScreenService_.isOnline(p.id)},this)};
var gSN=function(p,J,S,H,M,X){p.info("getAutomaticScreenByIds "+S+" / "+J);S||(S=p.deviceToScreenId_[J]);var Z=p.getScreens(),n=S?NA(Z,S):null;S&&(p.disableAutomaticScreenCache_||n)||(n=NA(Z,J));if(n){n.uuid=J;var b=AE(p,n);yvI(p.onlineScreenService_,b,function(F){M(F?b:null)})}else S?sel(p,S,(0,_.tT)(function(F){var f=AE(this,new kj({name:H,
screenId:S,loungeToken:F,dialId:J||""}));yvI(this.onlineScreenService_,f,function(O){M(O?f:null)})},p),X):M(null)};
Yj.prototype.JSC$20299_getScreenByPollingPairingCode=function(p,J,S,H,M,X){var Z=this;this.info("getDialScreenByPairingCode "+p+" / "+J);var n=new zqN(this.JSC$20297_http_,p,J,S,H);n.subscribe("pairingComplete",function(b,F){_.iW(n);M(AE(Z,b),F)});
n.subscribe("pairingFailed",function(b){_.iW(n);X(b)});
n.start();return(0,_.tT)(n.stop,n)};
var twU=function(p,J){for(var S=p.screens.length,H=0;H<S;++H)if(p.screens[H].name==J)return p.screens[H];return null};
Yj.prototype.JSC$20299_getScreenByPairingCode=function(p,J,S,H){_.BO(dc(this.JSC$20297_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:p},timeout:5E3,onSuccess:(0,_.tT)(function(M,X){M=new kj(X.screen||{});if(!M.name||twU(this,M.name)){a:{X=M.name;for(var Z=2,n=J(X,Z);twU(this,n);){Z++;if(Z>20)break a;n=J(X,Z)}X=n}M.name=X}S(AE(this,M))},this),
onError:(0,_.tT)(function(M){H(Error("dl`"+M.status))},this),
onTimeout:(0,_.tT)(function(){H(Error("el"))},this)})};
var hqP=function(p,J,S){yvI(p.onlineScreenService_,J,S)};
Yj.prototype.disposeInternal=function(){_.iW(this.localScreenService_);_.iW(this.onlineScreenService_);Yj.superClass_.disposeInternal.call(this)};
var sel=function(p,J,S,H){p.info("requestLoungeToken_ for "+J);var M={postParams:{screen_ids:J},method:"POST",context:p,onSuccess:function(X,Z){X=Z&&Z.screens||[];X[0]&&X[0].screenId==J?S(X[0].loungeToken):H(Error("fl"))},
onError:function(){H(Error("gl"))}};
_.BO(dc(p.JSC$20297_http_,"/pairing/get_lounge_token_batch"),M)},DCP=function(p){p.screens=p.localScreenService_.getScreens();
for(var J=_.T6.transpose(p.deviceToScreenId_),S=p.screens.length,H=0;H<S;++H){var M=p.screens[H];M.uuid=J[M.id]||""}p.info("Updated manual screens: "+tNe(p.screens))};
Yj.prototype.handleScreenChange_=function(){DCP(this);this.publish("screenChange");this.onlineScreenService_.update()};
var h1$=function(p){ktI(p);p.localScreenService_=new EW(p.JSC$20297_http_);p.localScreenService_.subscribe("screenChange",(0,_.tT)(p.handleScreenChange_,p));DCP(p);p.disableAutomaticScreenCache_||(p.automaticScreens_=Fv$(_.$t("yt-remote-automatic-screen-cache")||[]));ktI(p);p.info("Initializing automatic screens: "+tNe(p.automaticScreens_));p.onlineScreenService_=new O5(p.JSC$20297_http_,(0,_.tT)(p.getScreens,p,!0));p.onlineScreenService_.subscribe("screenChange",(0,_.tT)(function(){this.publish("onlineScreenChange")},
p))},AE=function(p,J){var S=p.get(J.id);
S?(S.uuid=J.uuid,J=S):((S=NA(p.automaticScreens_,J.uuid))?(S.id=J.id,S.token=J.token,J=S):p.automaticScreens_.push(J),p.disableAutomaticScreenCache_||NHw(p));ktI(p);p.deviceToScreenId_[J.uuid]=J.id;_.ze("yt-remote-device-id-map",p.deviceToScreenId_,31536E3);return J},NHw=function(p){p=_.MU(p.automaticScreens_,function(J){return J.idType!="shortLived"});
_.ze("yt-remote-automatic-screen-cache",_.d2(p,b0$))},ktI=function(p){p.deviceToScreenId_=_.$t("yt-remote-device-id-map")||{}};
Yj.prototype.dispose=Yj.prototype.dispose;_.SJ(rc,_.Gl);var Po=function(p,J){p.screen_=J;p.publish("sessionScreen",p.screen_)},THl=function(p,J){p.screen_&&(p.screen_.token=J,AE(p.JSC$20301_screenService_,p.screen_));
p.publish("sessionScreen",p.screen_)};
rc.prototype.onSessionStopped=function(p){this.isDisposed()||(p&&(zD(this,""+p),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
rc.prototype.info=function(p){l3(this.JSC$20301_logName_,p)};
var zD=function(p,J){l3(p.JSC$20301_logName_,J)};
rc.prototype.JSC$20303_getCastSession=function(){return null};
rc.prototype.setDisplayStatus=function(p){var J=this.receiver_;p?(J.displayStatus=new chrome.cast.ReceiverDisplayStatus(p,[]),J.displayStatus.showStop=!0):J.displayStatus=null;chrome.cast.setReceiverDisplayStatus(J,(0,_.tT)(function(){this.info("Updated receiver status for "+J.friendlyName+": "+p)},this),(0,_.tT)(function(){zD(this,"Failed to update receiver status for: "+J.friendlyName)},this))};
rc.prototype.disposeInternal=function(){this.setDisplayStatus("");rc.superClass_.disposeInternal.call(this)};var $n=function(p,J,S){rc.call(this,p,J,"CastSession");var H=this;this.config_=S;this.JSC$20306_session_=null;this.JSC$20306_boundSessionUpdate_=(0,_.tT)(this.JSC$20308_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.tT)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.WO(function(){dCw(H,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20306_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20306_isInitLoungeToken_=!1;this.JSC$20306_lastLoungeTokenRefreshError_="unknown"};
_.Q($n,rc);_.R=$n.prototype;
_.R.setCastSession=function(p){if(this.JSC$20306_session_){if(this.JSC$20306_session_==p)return;zD(this,"Overriding cast session with new session object");ure(this);this.JSC$20306_isInitLoungeToken_=!1;this.JSC$20306_lastLoungeTokenRefreshError_="unknown";this.JSC$20306_session_.removeUpdateListener(this.JSC$20306_boundSessionUpdate_);this.JSC$20306_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20306_session_=p;this.JSC$20306_session_.addUpdateListener(this.JSC$20306_boundSessionUpdate_);this.JSC$20306_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);lKM(this,"getMdxSessionStatus")};
_.R.launchWithParams=function(p){this.info("launchWithParams no-op for Cast: "+(0,_.uV)(p))};
_.R.stop=function(){if(this.JSC$20306_session_)this.JSC$20306_session_.stop((0,_.tT)(function(){this.onSessionStopped()},this),(0,_.tT)(function(){this.onSessionStopped(Error("hl"))},this));
else this.onSessionStopped(Error("il"))};
_.R.setDisplayStatus=function(){};
_.R.disposeInternal=function(){this.info("disposeInternal");ure(this);this.JSC$20306_session_&&(this.JSC$20306_session_.removeUpdateListener(this.JSC$20306_boundSessionUpdate_),this.JSC$20306_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20306_session_=null;rc.prototype.disposeInternal.call(this)};
var q6$=function(p,J){_.CQ(p.getLoungeTokenTimeoutKey_);p.getLoungeTokenTimeoutKey_=0;J==0?VwU(p):p.getLoungeTokenTimeoutKey_=_.WO(function(){VwU(p)},J)},VwU=function(p){lKM(p,"getLoungeToken");
_.CQ(p.onLoungeTokenTimeoutKey_);p.onLoungeTokenTimeoutKey_=_.WO(function(){aKI(p,null)},3E4)},lKM=function(p,J){p.info("sendYoutubeMessage_: "+J+" "+(0,_.uV)(void 0));
var S={};S.type=J;p.JSC$20306_session_?p.JSC$20306_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",S,function(){},(0,_.tT)(function(){zD(this,"Failed to send message: "+J+".")},p)):zD(p,"Sending yt message without session: "+(0,_.uV)(S))};
$n.prototype.onYoutubeMessage_=function(p,J){if(!this.isDisposed())if(J)if(J=(0,_.zX)(J),_.Ei(J))switch(p=""+J.type,J=J.data||{},this.info("onYoutubeMessage_: "+p+" "+(0,_.uV)(J)),p){case "mdxSessionStatus":dCw(this,J);break;case "loungeToken":aKI(this,J);break;default:zD(this,"Unknown youtube message: "+p)}else zD(this,"Unable to parse message.");else zD(this,"No data in message.")};
var ESe=function(p,J){if(J)p.info("onConnectedScreenId_: Received screenId: "+J),p.screen_&&p.screen_.id==J||p.getScreen_(J,function(S){Po(p,S)},function(){return p.onSessionStopped()},5);
else p.onSessionStopped(Error("jl"))},rvP=function(p,J,S){p.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(J));
var H=new kj(J);Y6y(p,H,function(M){M?(p.JSC$20306_isInitLoungeToken_=!0,AE(p.JSC$20301_screenService_,H),Po(p,H),p.JSC$20306_lastLoungeTokenRefreshError_="unknown",q6$(p,S)):(_.xv(Error("kl`"+JSON.stringify(J))),p.onSessionStopped())},5)},dCw=function(p,J){_.CQ(p.sessionStatusTimeoutKey_);
p.sessionStatusTimeoutKey_=0;if(J)p.config_.enableCastLoungeToken&&J.loungeToken?J.deviceId?p.screen_&&p.screen_.uuid==J.deviceId||(J.loungeTokenRefreshIntervalMs?rvP(p,{name:p.receiver_.friendlyName,screenId:J.screenId,loungeToken:J.loungeToken,dialId:J.deviceId,screenIdType:"shortLived"},J.loungeTokenRefreshIntervalMs):(_.xv(Error("ml`"+JSON.stringify(J))),ESe(p,J.screenId))):(_.xv(Error("ll`"+JSON.stringify(J))),ESe(p,J.screenId)):ESe(p,J.screenId);else p.onSessionStopped(Error("jl"))},aKI=function(p,
J){_.CQ(p.onLoungeTokenTimeoutKey_);
p.onLoungeTokenTimeoutKey_=0;var S=null;if(J)if(J.loungeToken){var H;((H=p.screen_)==null?void 0:H.token)==J.loungeToken&&(S="staleLoungeToken")}else S="missingLoungeToken";else S="noLoungeTokenResponse";S?(p.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(J)+", error: "+S)),p.JSC$20306_lastLoungeTokenRefreshError_=S,q6$(p,3E4)):(THl(p,J.loungeToken),p.JSC$20306_isInitLoungeToken_=!1,p.JSC$20306_lastLoungeTokenRefreshError_="unknown",q6$(p,J.loungeTokenRefreshIntervalMs))};
$n.prototype.getScreen_=function(p,J,S,H){_.CQ(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;gSN(this.JSC$20301_screenService_,this.receiver_.label,p,this.receiver_.friendlyName,(0,_.tT)(function(M){M?J(M):H>=0?(zD(this,"Screen "+p+" appears to be offline. "+H+" retries left."),this.getScreenTimeoutKey_=_.WO((0,_.tT)(this.getScreen_,this,p,J,S,H-1),300)):S(Error("nl"))},this),S)};
var Y6y=function(p,J,S,H){_.CQ(p.JSC$20306_checkScreenAvailabilityTimeoutKey_);p.JSC$20306_checkScreenAvailabilityTimeoutKey_=0;hqP(p.JSC$20301_screenService_,J,function(M){M||H<0?S(M):p.JSC$20306_checkScreenAvailabilityTimeoutKey_=_.WO(function(){Y6y(p,J,S,H-1)},300)})};
$n.prototype.JSC$20303_getCastSession=function(){return this.JSC$20306_session_};
$n.prototype.JSC$20308_onSessionUpdate_=function(p){this.isDisposed()||p||(zD(this,"Cast session died."),this.onSessionStopped())};
var ure=function(p){_.CQ(p.getScreenTimeoutKey_);p.getScreenTimeoutKey_=0;_.CQ(p.JSC$20306_checkScreenAvailabilityTimeoutKey_);p.JSC$20306_checkScreenAvailabilityTimeoutKey_=0;_.CQ(p.sessionStatusTimeoutKey_);p.sessionStatusTimeoutKey_=0;_.CQ(p.onLoungeTokenTimeoutKey_);p.onLoungeTokenTimeoutKey_=0;_.CQ(p.getLoungeTokenTimeoutKey_);p.getLoungeTokenTimeoutKey_=0};var oS=function(p,J,S,H){rc.call(this,p,J,"DialSession");this.config_=H;this.JSC$20310_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20310_theme_=S;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20310_deferredLaunchDeadlineTimer_=NaN;this.JSC$20310_boundSessionUpdate_=(0,_.tT)(this.JSC$20312_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20310_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20310_isInitLoungeToken_=!1;this.JSC$20310_lastLoungeTokenRefreshError_="unknown"};
_.Q(oS,rc);oS.prototype.setCastSession=function(p){this.JSC$20310_session_=p;this.JSC$20310_session_.addUpdateListener(this.JSC$20310_boundSessionUpdate_)};
oS.prototype.launchWithParams=function(p){this.connectData_=p;this.deferredLaunch_()};
oS.prototype.stop=function(){je$(this);if(this.JSC$20310_session_)this.JSC$20310_session_.stop((0,_.tT)(this.onSessionStopped,this,null),(0,_.tT)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
oS.prototype.disposeInternal=function(){je$(this);this.JSC$20310_session_&&this.JSC$20310_session_.removeUpdateListener(this.JSC$20310_boundSessionUpdate_);this.JSC$20310_session_=null;rc.prototype.disposeInternal.call(this)};
var wDj=function(p){var J;return!!(p.config_.enableDialLoungeToken&&((J=p.JSC$20310_session_)==null?0:J.getDialAppInfo))},cvP=function(p){p.cancelPolling_=p.JSC$20301_screenService_.JSC$20299_getScreenByPollingPairingCode(p.reversePairingCode_,p.receiver_.label,p.receiver_.friendlyName,wDj(p),function(J,S){p.cancelPolling_=function(){};
p.JSC$20310_isInitLoungeToken_=!0;Po(p,J);J.idType=="shortLived"&&S>0&&xC$(p,S)},function(J){p.cancelPolling_=function(){};
p.onSessionStopped(J)})};
oS.prototype.JSC$20312_onSessionUpdate_=function(p){this.isDisposed()||p||(zD(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var IKy=function(p){var J={};J.pairingCode=p.reversePairingCode_;J.theme=p.JSC$20310_theme_;OTf()&&(J.env_useStageMdx=1);return _.Uv(J)},LvU=function(p){return new Promise(function(J){p.reversePairingCode_=pue();
if(p.connectData_){var S=new chrome.cast.DialLaunchResponse(!0,IKy(p));J(S);cvP(p)}else p.deferredLaunch_=function(){_.CQ(p.JSC$20310_deferredLaunchDeadlineTimer_);p.deferredLaunch_=function(){};
p.JSC$20310_deferredLaunchDeadlineTimer_=NaN;var H=new chrome.cast.DialLaunchResponse(!0,IKy(p));J(H);cvP(p)},p.JSC$20310_deferredLaunchDeadlineTimer_=_.WO(function(){p.deferredLaunch_()},100)})},J2N=function(p,J,S){p.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(J));
var H=new kj(J);return(new Promise(function(M){pIy(p,H,function(X){X?(p.JSC$20310_isInitLoungeToken_=!0,AE(p.JSC$20301_screenService_,H),Po(p,H),xC$(p,S)):_.xv(Error("pl`"+JSON.stringify(J)));M(X)},5)})).then(function(M){return M?new chrome.cast.DialLaunchResponse(!1):LvU(p)})},SPU=function(p,J){var S=p.launchData_.receiver.label,H=p.receiver_.friendlyName;
return(new Promise(function(M){gSN(p.JSC$20301_screenService_,S,J,H,function(X){X&&X.token&&Po(p,X);M(X)},function(X){zD(p,"Failed to get DIAL screen: "+X);
M(null)})})).then(function(M){return M&&M.token?new chrome.cast.DialLaunchResponse(!1):LvU(p)})},pIy=function(p,J,S,H){_.CQ(p.JSC$20310_checkScreenAvailabilityTimeoutKey_);
p.JSC$20310_checkScreenAvailabilityTimeoutKey_=0;hqP(p.JSC$20301_screenService_,J,function(M){M||H<0?S(M):p.JSC$20310_checkScreenAvailabilityTimeoutKey_=_.WO(function(){pIy(p,J,S,H-1)},300)})},xC$=function(p,J){p.info("getDialAppInfoWithTimeout_ "+J);
wDj(p)&&(_.CQ(p.getDialAppInfoTimeoutKey_),p.getDialAppInfoTimeoutKey_=0,J==0?HSw(p):p.getDialAppInfoTimeoutKey_=_.WO(function(){HSw(p)},J))},HSw=function(p){wDj(p)&&p.JSC$20310_session_.getDialAppInfo(function(J){p.info("getDialAppInfo dialLaunchData: "+JSON.stringify(J));
J=J.extraData||{};var S=null;if(J.loungeToken){var H;((H=p.screen_)==null?void 0:H.token)==J.loungeToken&&(S="staleLoungeToken")}else S="missingLoungeToken";S?(p.JSC$20310_lastLoungeTokenRefreshError_=S,xC$(p,3E4)):(p.JSC$20310_isInitLoungeToken_=!1,p.JSC$20310_lastLoungeTokenRefreshError_="unknown",THl(p,J.loungeToken),xC$(p,J.loungeTokenRefreshIntervalMs))},function(J){p.info("getDialAppInfo error: "+J);
p.JSC$20310_lastLoungeTokenRefreshError_="noLoungeTokenResponse";xC$(p,3E4)})},je$=function(p){_.CQ(p.JSC$20310_checkScreenAvailabilityTimeoutKey_);
p.JSC$20310_checkScreenAvailabilityTimeoutKey_=0;_.CQ(p.getDialAppInfoTimeoutKey_);p.getDialAppInfoTimeoutKey_=0;p.cancelPolling_();p.cancelPolling_=function(){};
_.CQ(p.JSC$20310_deferredLaunchDeadlineTimer_)};var eF=function(p,J){rc.call(this,p,J,"ManualSession");this.JSC$20314_deferredLaunchDeadlineTimer_=_.WO((0,_.tT)(this.launchWithParams,this,null),150)};
_.Q(eF,rc);eF.prototype.stop=function(){this.onSessionStopped()};
eF.prototype.setCastSession=function(){};
eF.prototype.launchWithParams=function(){_.CQ(this.JSC$20314_deferredLaunchDeadlineTimer_);this.JSC$20314_deferredLaunchDeadlineTimer_=NaN;var p=NA(this.JSC$20301_screenService_.getScreens(),this.receiver_.label);if(p)Po(this,p);else this.onSessionStopped(Error("ql"))};
eF.prototype.disposeInternal=function(){_.CQ(this.JSC$20314_deferredLaunchDeadlineTimer_);this.JSC$20314_deferredLaunchDeadlineTimer_=NaN;rc.prototype.disposeInternal.call(this)};var cb=function(p,J){_.Gl.call(this);this.config_=J;this.JSC$20317_screenService_=p;this.JSC$20317_appId_=J.appId||"233637DE";this.JSC$20317_theme_=J.theme||"cl";this.disableDial_=J.disableCastApi||!1;this.forceMirroring_=J.forceMirroring||!1;this.JSC$20317_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.tT)(this.onReceiverAction_,this)};
_.Q(cb,_.Gl);
cb.prototype.init=function(p,J){chrome.cast.timeout.requestSession=3E4;var S=new chrome.cast.SessionRequest(this.JSC$20317_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.z("desktop_enable_cast_connect")&&(S.androidReceiverCompatible=!0);this.disableDial_||(S.dialRequest=new chrome.cast.DialRequest("YouTube"));var H=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;p=p||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var M=(0,_.tT)(this.onReceiverUpdated_,
this);S=new chrome.cast.ApiConfig(S,(0,_.tT)(this.onSessionEstablished_,this),M,H,p);S.customDialLaunchCallback=(0,_.tT)(this.onDialLaunchRequested_,this);chrome.cast.initialize(S,(0,_.tT)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Q$y(),this.JSC$20317_screenService_.subscribe("onlineScreenChange",(0,_.tT)(this.JSC$20319_onScreenChange_,this)),this.customReceivers_=Mcw(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.tT)(function(X){this.warn_("Failed to set initial custom receivers: "+(0,_.uV)(X))},this)),this.publish("yt-remote-cast2-availability-change",XIp(this)),J(!0))},this),(0,_.tT)(function(X){this.warn_("Failed to initialize API: "+(0,_.uV)(X));
J(!1)},this))};
cb.prototype.setConnectedScreenStatus=function(p,J){Wo("Setting connected screen ID: "+p+" -> "+J);if(this.JSC$20317_session_){var S=this.JSC$20317_session_.screen_;if(!p||S&&S.id!=p)Wo("Unsetting old screen status: "+this.JSC$20317_session_.receiver_.friendlyName),Q6(this,null)}if(p&&J){if(!this.JSC$20317_session_){p=NA(this.JSC$20317_screenService_.getScreens(),p);if(!p){Wo("setConnectedScreenStatus: Unknown screen.");return}if(p.idType=="shortLived"){Wo("setConnectedScreenStatus: Screen with id type to be short lived.");
return}S=iSr(this,p);S||(Wo("setConnectedScreenStatus: Connected receiver not custom..."),S=new chrome.cast.Receiver(p.uuid?p.uuid:p.id,p.name),S.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(S),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.tT)(function(H){this.warn_("Failed to set initial custom receivers: "+(0,_.uV)(H))},this)));
Wo("setConnectedScreenStatus: new active receiver: "+S.friendlyName);Q6(this,new eF(this.JSC$20317_screenService_,S),!0)}this.JSC$20317_session_.setDisplayStatus(J)}else Wo("setConnectedScreenStatus: no screen.")};
var iSr=function(p,J){return J?_.t9(p.customReceivers_,function(S){return HTp(J,S.label)},p):null};
cb.prototype.setLaunchParams=function(p){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20317_session_?this.JSC$20317_session_.launchWithParams(p):this.warn_("Setting connection data without a session")};
cb.prototype.JSC$20319_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20317_session_?(this.JSC$20317_session_.stop(),Q6(this,null)):Wo("Stopping non-existing session")};
cb.prototype.requestSession=function(){chrome.cast.requestSession((0,_.tT)(this.onSessionEstablished_,this),(0,_.tT)(this.onSessionRequestFailed_,this))};
cb.prototype.disposeInternal=function(){this.JSC$20317_screenService_.unsubscribe("onlineScreenChange",(0,_.tT)(this.JSC$20319_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.uw(_.Id("yt.mdx.remote.debug.handlers_")||[],oI$);_.iW(this.JSC$20317_session_);_.Gl.prototype.disposeInternal.call(this)};
var Wo=function(p){l3("Controller",p)};
cb.prototype.warn_=function(p){l3("Controller",p)};
var oI$=function(p){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(p)},XIp=function(p){return p.hasCastReceiver_||!!p.customReceivers_.length||!!p.JSC$20317_session_},Q6=function(p,J,S){J!=p.JSC$20317_session_&&(_.iW(p.JSC$20317_session_),(p.JSC$20317_session_=J)?(S?p.publish("yt-remote-cast2-receiver-resumed",J.receiver_):p.publish("yt-remote-cast2-receiver-selected",J.receiver_),J.subscribe("sessionScreen",(0,_.tT)(p.onSessionScreen_,p,J)),J.subscribe("sessionFailed",
function(){return RQI(p,J)}),J.screen_?p.publish("yt-remote-cast2-session-change",J.screen_):S&&p.JSC$20317_session_.launchWithParams(null)):p.publish("yt-remote-cast2-session-change",null))},RQI=function(p,J){p.JSC$20317_session_==J&&p.publish("yt-remote-cast2-session-failed")};
_.R=cb.prototype;_.R.onSessionScreen_=function(p,J){this.JSC$20317_session_==p&&(J||Q6(this,null),this.publish("yt-remote-cast2-session-change",J))};
_.R.onReceiverAction_=function(p,J){if(!this.isDisposed())if(p)switch(p.friendlyName=chrome.cast.unescape(p.friendlyName),Wo("onReceiverAction_ "+p.label+" / "+p.friendlyName+"-- "+J),J){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20317_session_)if(this.JSC$20317_session_.receiver_.label!=p.label)Wo("onReceiverAction_: Stopping active receiver: "+this.JSC$20317_session_.receiver_.friendlyName),this.JSC$20317_session_.stop();else{Wo("onReceiverAction_: Casting to active receiver.");this.JSC$20317_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20317_session_.screen_);break}switch(p.receiverType){case chrome.cast.ReceiverType.CUSTOM:Q6(this,new eF(this.JSC$20317_screenService_,p));break;case chrome.cast.ReceiverType.DIAL:Q6(this,new oS(this.JSC$20317_screenService_,p,this.JSC$20317_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Q6(this,new $n(this.JSC$20317_screenService_,p,this.config_));break;default:this.warn_("Unknown receiver type: "+p.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20317_session_&&
this.JSC$20317_session_.receiver_.label==p.label?this.JSC$20317_session_.stop():this.warn_("Stopping receiver w/o session: "+p.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.R.onDialLaunchRequested_=function(p){if(this.isDisposed())return Promise.reject(Error("rl"));var J=p.receiver;J.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+J.friendlyName),J.receiverType=chrome.cast.ReceiverType.DIAL);var S=this.JSC$20317_session_?this.JSC$20317_session_.receiver_:null;if(!S||S.label!=J.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+J.friendlyName),Promise.reject(Error("sl"));if(S&&S.label==J.label&&S.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20317_session_.screen_)return Wo("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20317_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+S.receiverType+'" to "dial" for '+J.friendlyName);Q6(this,new oS(this.JSC$20317_screenService_,J,this.JSC$20317_theme_,this.config_))}J=this.JSC$20317_session_;J.launchData_=p;J.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(p=J.launchData_.extraData||{},S=p.screenId||null,wDj(J)&&p.loungeToken?p.loungeTokenRefreshIntervalMs?p=J2N(J,{name:J.receiver_.friendlyName,screenId:p.screenId,loungeToken:p.loungeToken,dialId:J.launchData_.receiver.label,screenIdType:"shortLived"},p.loungeTokenRefreshIntervalMs):(_.xv(Error("ol`"+JSON.stringify(p))),p=SPU(J,S)):p=SPU(J,S)):p=LvU(J);return p};
_.R.onSessionEstablished_=function(p){var J=this;if(!this.isDisposed()&&!this.forceMirroring_){Wo("New cast session ID: "+p.sessionId);var S=p.receiver;if(S.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20317_session_)if(S.receiverType==chrome.cast.ReceiverType.CAST)Wo("Got resumed cast session before resumed mdx connection."),S.friendlyName=chrome.cast.unescape(S.friendlyName),Q6(this,new $n(this.JSC$20317_screenService_,S,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var H=this.JSC$20317_session_.receiver_,M=NA(this.JSC$20317_screenService_.getScreens(),H.label);M&&HTp(M,S.label)&&H.receiverType!=chrome.cast.ReceiverType.CAST&&S.receiverType==chrome.cast.ReceiverType.CAST&&(Wo("onSessionEstablished_: manual to cast session change "+S.friendlyName),_.iW(this.JSC$20317_session_),this.JSC$20317_session_=new $n(this.JSC$20317_screenService_,S,this.config_),this.JSC$20317_session_.subscribe("sessionScreen",(0,_.tT)(this.onSessionScreen_,this,this.JSC$20317_session_)),
this.JSC$20317_session_.subscribe("sessionFailed",function(){return RQI(J,J.JSC$20317_session_)}),this.JSC$20317_session_.launchWithParams(null));
this.JSC$20317_session_.setCastSession(p)}}};
_.R.JSC$20319_getCastSession=function(){return this.JSC$20317_session_?this.JSC$20317_session_.JSC$20303_getCastSession():null};
_.R.onSessionRequestFailed_=function(p){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.uV)(p)),p.code!=chrome.cast.ErrorCode.CANCEL&&Q6(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.R.onReceiverUpdated_=function(p){Wo("Receiver availability updated: "+p);if(!this.isDisposed()){var J=XIp(this);this.hasCastReceiver_=p==chrome.cast.ReceiverAvailability.AVAILABLE;XIp(this)!=J&&this.publish("yt-remote-cast2-availability-change",XIp(this))}};
var Mcw=function(p){var J=p.JSC$20317_screenService_.JSC$20299_getOnlineScreens(),S=p.JSC$20317_session_&&p.JSC$20317_session_.receiver_;p=_.d2(J,function(H){S&&HTp(H,S.label)&&(S=null);var M=H.uuid?H.uuid:H.id,X=iSr(this,H);X?(X.label=M,X.friendlyName=H.name):(X=new chrome.cast.Receiver(M,H.name),X.receiverType=chrome.cast.ReceiverType.CUSTOM);return X},p);
S&&(S.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(S=new chrome.cast.Receiver(S.label,S.friendlyName),S.receiverType=chrome.cast.ReceiverType.CUSTOM),p.push(S));return p};
cb.prototype.JSC$20319_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Mcw(this),Wo("Updating custom receivers: "+(0,_.uV)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.tT)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",XIp(this)))};
cb.prototype.setLaunchParams=cb.prototype.setLaunchParams;cb.prototype.setConnectedScreenStatus=cb.prototype.setConnectedScreenStatus;cb.prototype.stopSession=cb.prototype.JSC$20319_stopSession;cb.prototype.getCastSession=cb.prototype.JSC$20319_getCastSession;cb.prototype.requestSession=cb.prototype.requestSession;cb.prototype.init=cb.prototype.init;cb.prototype.dispose=cb.prototype.dispose;var K1I=_.YI(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),IFN=[],lFe=_.fA(K1I);var ZSf=function(p){p.audioTrackId=null;p.trackData=null;p.playerState=-1;p.hasPrevious=!1;p.hasNext=!1;p.playerTime_=0;p.playerTimeAt_=_.JF();p.seekableStart_=0;p.seekableEnd_=0;p.duration_=0;p.loadedTime=0;p.liveIngestionTime_=NaN;p.isLive_=!1};
_.R=I0.prototype;
_.R.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_))};
_.R.stopPlayer=function(){this.index=-1;this.videoId="";ZSf(this)};
_.R.isPlaying=function(){return this.playerState==1};
_.R.isBuffering=function(){return this.playerState==3};
_.R.isAdPlaying=function(){return this.playerState==1081};
var Cg=function(p,J){p.playerTime_=J;p.playerTimeAt_=_.JF()},nPI=function(p){switch(p.playerState){case 1:case 1081:return(_.JF()-p.playerTimeAt_)/1E3+p.playerTime_;
case -1E3:return 0}return p.playerTime_};
I0.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.JF()-this.playerTimeAt_)/1E3:0):this.duration_};
var GMP=function(p,J,S){var H=p.videoId;p.videoId=J;p.index=S;J!=H&&ZSf(p)},bSI=function(p){var J={};
J.index=p.index;J.listId=p.listId;J.videoId=p.videoId;J.playerState=p.playerState;J.volume=p.volume;J.muted=p.muted;J.audioTrackId=p.audioTrackId;J.trackData=_.T6.unsafeClone(p.trackData);J.hasPrevious=p.hasPrevious;J.hasNext=p.hasNext;J.playerTime=p.playerTime_;J.playerTimeAt=p.playerTimeAt_;J.seekableStart=p.seekableStart_;J.seekableEnd=p.seekableEnd_;J.duration=p.duration_;J.loadedTime=p.loadedTime;J.liveIngestionTime=p.liveIngestionTime_;return J};
I0.prototype.clone=function(){return new I0(bSI(this))};var SX=function(p,J){_.Gl.call(this);var S=this;this.state_=0;this.connection_=p;this.contextSubscriptions_=[];this.actionQueue_=new qXI;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.tT)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.tT)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.tT)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.tT)(this.onCloudviewAvailabilityChange_,this);var H=0;p?(H=p.getProxyState(),
H!=3&&(p.subscribe("proxyStateChange",this.setState_,this),mbU(this))):H=3;H!=0&&(J?this.setState_(H):_.WO(function(){S.setState_(H)},0));
(p=SwP())&&F1N(this,p);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.Q(SX,_.Gl);SX.prototype.getState=function(){return this.state_};
SX.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
SX.prototype.reconnect=function(){this.connection_.reconnect()};
var y6=function(p){return new I0(p.connection_.getPlayerContextData())};
_.R=SX.prototype;_.R.play=function(){Bo(this)?(this.castMedia_?this.castMedia_.play(null,_.y4,vPe(this,"play")):U5(this,"play"),f1I(this,1,nPI(y6(this))),this.publish("remotePlayerChange")):s5(this,this.play)};
_.R.pause=function(){Bo(this)?(this.castMedia_?this.castMedia_.pause(null,_.y4,vPe(this,"pause")):U5(this,"pause"),f1I(this,2,nPI(y6(this))),this.publish("remotePlayerChange")):s5(this,this.pause)};
_.R.seekTo=function(p){if(Bo(this)){if(this.castMedia_){var J=y6(this),S=new chrome.cast.media.SeekRequest;S.currentTime=p;J.isPlaying()||J.isBuffering()?S.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:S.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(S,_.y4,vPe(this,"seekTo",{newTime:p}))}else U5(this,"seekTo",{newTime:p});f1I(this,3,p);this.publish("remotePlayerChange")}else s5(this,_.nl(this.seekTo,p))};
_.R.stop=function(){if(Bo(this)){this.castMedia_?this.castMedia_.stop(null,_.y4,vPe(this,"stopVideo")):U5(this,"stopVideo");var p=y6(this);p.stopPlayer();gQ(this,p);this.publish("remotePlayerChange")}else s5(this,this.stop)};
_.R.setVolume=function(p,J){if(Bo(this)){var S=y6(this);if(this.castSession_){if(S.volume!=p){var H=Math.round(p)/100;this.castSession_.setReceiverVolumeLevel(H,(0,_.tT)(function(){VL("set receiver volume: "+H)},this),(0,_.tT)(function(){this.warn_("failed to set receiver volume.")},this))}S.muted!=J&&this.castSession_.setReceiverMuted(J,(0,_.tT)(function(){VL("set receiver muted: "+J)},this),(0,_.tT)(function(){this.warn_("failed to set receiver muted.")},this))}else{var M={volume:p,
muted:J};S.volume!=-1&&(M.delta=p-S.volume);U5(this,"setVolume",M)}S.muted=J;S.volume=p;gQ(this,S)}else s5(this,_.nl(this.setVolume,p,J))};
_.R.setAudioTrack=function(p,J){Bo(this)?(J=J.getLanguageInfo().getId(),U5(this,"setAudioTrack",{videoId:p,audioTrackId:J}),p=y6(this),p.audioTrackId=J,gQ(this,p)):s5(this,_.nl(this.setAudioTrack,p,J))};
_.R.addVideo=function(p){Bo(this)?U5(this,"addVideo",{videoId:p}):s5(this,_.nl(this.addVideo,p))};
_.R.addPlaylist=function(p){Bo(this)?U5(this,"addVideos",{listId:p}):s5(this,_.nl(this.addPlaylist,p))};
_.R.addVideos=function(p){p.length==0?this.warn_("Ignore add videos request due to empty list"):Bo(this)?U5(this,"addVideos",{videoIds:p.join(",")}):s5(this,_.nl(this.addVideos,p))};
_.R.JSC$20329_removeVideo=function(p){Bo(this)?U5(this,"removeVideo",{videoId:p}):s5(this,_.nl(this.JSC$20329_removeVideo,p))};
_.R.JSC$20329_insertVideo=function(p){Bo(this)?U5(this,"insertVideo",{videoId:p}):s5(this,_.nl(this.JSC$20329_insertVideo,p))};
_.R.playVideo=function(p,J,S,H,M,X,Z){H=H===void 0?null:H;M=M===void 0?null:M;X=X===void 0?null:X;Z=Z===void 0?null:Z;var n=y6(this),b={videoId:p};S!==void 0&&(b.currentIndex=S);GMP(n,p,S||0);J!==void 0&&(Cg(n,J),b.currentTime=J);H&&(b.listId=H);M&&(b.playerParams=M);X&&(b.clickTrackingParams=X);Z&&(b.locationInfo=(0,_.uV)(Z));U5(this,"setPlaylist",b);H||gQ(this,n)};
_.R.nextVideo=function(p,J){if(Bo(this)){if(p&&J){var S=y6(this);GMP(S,p,J);gQ(this,S)}U5(this,"next")}else s5(this,_.nl(this.nextVideo,p,J))};
_.R.clearPlaylist=function(){if(Bo(this)){U5(this,"clearPlaylist");var p=y6(this);p.reset();gQ(this,p);this.publish("remotePlayerChange")}else s5(this,this.clearPlaylist)};
_.R.dispose=function(){if(this.state_!=3){var p=this.state_;this.state_=3;this.publish("proxyStateChange",p,this.state_)}_.Gl.prototype.dispose.call(this)};
_.R.disposeInternal=function(){OSN(this);this.connection_=null;this.actionQueue_.clear();F1N(this,null);_.Gl.prototype.disposeInternal.call(this)};
var mbU=function(p){_.MV("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(J){this.contextSubscriptions_.push(this.connection_.subscribe(J,_.nl(this.onProxyEvent_,J),this))},p)},OSN=function(p){_.MV(p.contextSubscriptions_,function(J){this.connection_.unsubscribeByKey(J)},p);
p.contextSubscriptions_.length=0},Bo=function(p){return p.getState()==1},s5=function(p,J){p.actionQueue_.getCount()<50&&p.actionQueue_.enqueue(J)},f1I=function(p,J,S){var H=y6(p);
Cg(H,S);H.playerState!=-1E3&&(H.playerState=J);gQ(p,H)},U5=function(p,J,S){p.connection_.sendMessage(J,S)},gQ=function(p,J){OSN(p);
p.connection_.setPlayerContextData(bSI(J));mbU(p)};
SX.prototype.setState_=function(p){if((p!=this.state_||p==2)&&this.state_!=3&&p!=0){var J=this.state_;this.state_=p;this.publish("proxyStateChange",J,p);if(p==1)for(;!this.actionQueue_.isEmpty();)p=this.actionQueue_,E4f(p),p.front_.pop().apply(this);else p==3&&this.dispose()}};
SX.prototype.onProxyEvent_=function(p,J){this.publish(p,J)};
var F1N=function(p,J){p.castSession_&&(p.castSession_.removeUpdateListener(p.boundCastStatusListener_),p.castSession_.removeMediaListener(p.boundCastMediaListener_),p.onCastMediaChange_(null));p.castSession_=J;if(p.castSession_&&(VL("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])};
SX.prototype.onCastStatusUpdate_=function(p){if(!p)this.onCastMediaChange_(null),F1N(this,null);else if(this.castSession_.receiver.volume){p=this.castSession_.receiver.volume;var J=y6(this),S=Math.round(100*p.level||0);if(J.volume!=S||J.muted!=p.muted)VL("Cast volume update: "+p.level+(p.muted?" muted":"")),J.volume=S,J.muted=!!p.muted,gQ(this,J)}};
SX.prototype.onCastMediaChange_=function(p){VL("Cast media: "+!!p);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=p)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),A2M(this),this.publish("remotePlayerChange")};
var A2M=function(p){var J=p.castMedia_.media,S=p.castMedia_.customData;if(J&&S){var H=y6(p);J.contentId!=H.videoId&&VL("Cast changing video to: "+J.contentId);H.videoId=J.contentId;H.playerState=S.playerState;Cg(H,p.castMedia_.getEstimatedTime());gQ(p,H)}else VL("No cast media video. Ignoring state update.")};
SX.prototype.onCastMediaUpdate_=function(p){if(p)A2M(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
SX.prototype.onCloudviewAvailabilityChange_=function(){var p=SwP();p&&F1N(this,p)};
SX.prototype.warn_=function(p){l3("CP",p)};
var vPe=function(p,J,S){return(0,_.tT)(function(H){this.warn_("Failed to "+J+" with cast v2 channel. Error code: "+H.code);H.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+J+" using MDx browser channel."),U5(this,J,S))},p)};var HS=function(p,J,S,H){H=H===void 0?!1:H;_.Gl.call(this);var M=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$20334_http_=p;this.enableConnectWithInitialState_=H;this.listeners_.push(_.vL(window,"beforeunload",function(){M.JSC$20337_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new I0;this.currentScreenId_=J.id;this.currentScreenIdType_=J.idType;this.channelService=$kf(this.JSC$20334_http_,S,this.JSC$20337_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){PEP(M)});
this.channelService.listen("channelClosed",function(){tE("Channel closed");isNaN(M.connectTimerId_)?vIf(!0):vIf();M.dispose()});
this.channelService.listen("channelError",function(X){vIf();isNaN(M.getReconnectTimeout_())?(X==1&&M.currentScreenIdType_=="shortLived"&&M.publish("browserChannelAuthError",X),tE("Channel error: "+X+" without reconnection"),M.dispose()):(M.reconnecting_=!0,tE("Channel error: "+X+" with reconnection in "+M.getReconnectTimeout_()+" ms"),zQI(M,2))});
this.channelService.listen("channelMessage",function(X){$bp(M,X)});
this.channelService.setLoungeToken(J.token);this.subscribe("remoteQueueChange",function(){var X=M.playerContext_.videoId;iT$()&&_.ze("yt-remote-session-video-id",X)})};
_.Q(HS,_.Gl);
HS.prototype.connect=function(p,J){if(J){var S=J.listId,H=J.videoId,M=J.videoIds,X=J.playerParams,Z=J.clickTrackingParams,n=J.index,b={videoId:H},F=J.currentTime,f=J.locationInfo;J=J.loopMode;F!==void 0&&(b.currentTime=F<=5?0:F);X&&(b.playerParams=X);f&&(b.locationInfo=f);Z&&(b.clickTrackingParams=Z);S&&(b.listId=S);M&&M.length>0&&(b.videoIds=M.join(","));n!==void 0&&(b.currentIndex=n);this.enableConnectWithInitialState_&&(b.loopMode=J||"LOOP_MODE_OFF");S&&(this.playerContext_.listId=S);this.playerContext_.videoId=
H;this.playerContext_.index=n||0;this.playerContext_.state=3;Cg(this.playerContext_,F);this.autoplayMode_="UNSUPPORTED";S=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";tE("Connecting with "+S+" and params: "+(0,_.uV)(b));this.channelService.connect({method:S,params:(0,_.uV)(b)},p,GJj())}else tE("Connecting without params"),this.channelService.connect({},p,GJj());oPe(this)};
HS.prototype.setLoungeToken=function(p){this.channelService.setLoungeToken(p)};
HS.prototype.dispose=function(){this.isDisposed()||(_.m$("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),zQI(this,3));_.Gl.prototype.dispose.call(this)};
HS.prototype.disposeInternal=function(){eQe(this);W1r(this);Qa$(this);_.CQ(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.CQ(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.v2v(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Gl.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var CEU=function(p){return _.t9(p.connectedDevices_,function(J){return J.type=="LOUNGE_SCREEN"})},tE=function(p){l3("conn",p)},zQI=function(p,J){p.publish("proxyStateChange",J)},oPe=function(p){p.connectTimerId_=_.WO(function(){tE("Connecting timeout");
p.JSC$20337_disconnect_(1)},2E4)},eQe=function(p){_.CQ(p.connectTimerId_);
p.connectTimerId_=NaN},Qa$=function(p){_.CQ(p.reconnectedCheckScreenTimeout_);
p.reconnectedCheckScreenTimeout_=NaN},B6P=function(p){W1r(p);
p.playingSyncTimerId_=_.WO(function(){y2f(p,"getNowPlaying")},2E4)},W1r=function(p){_.CQ(p.playingSyncTimerId_);
p.playingSyncTimerId_=NaN},PEP=function(p){tE("Channel opened");
p.reconnecting_&&(p.reconnecting_=!1,Qa$(p),p.reconnectedCheckScreenTimeout_=_.WO(function(){tE("Timing out waiting for a screen.");p.JSC$20337_disconnect_(1)},15E3))},sar=function(p,J){var S=null;
if(J){var H=CEU(p);H&&(S={clientName:H.clientName,deviceMake:H.brand,deviceModel:H.model,osVersion:H.osVersion})}_.m$("yt.mdx.remote.remoteClient_",S);J&&(eQe(p),Qa$(p));S=p.channelService.isChannelOpened()&&isNaN(p.connectTimerId_);J==S?J&&(zQI(p,1),y2f(p,"getSubtitlesTrack")):J?(p.getOtherConnectedRemoteId_()&&p.playerContext_.reset(),zQI(p,1),y2f(p,"getNowPlaying"),UbI(p)):p.JSC$20337_disconnect_(1)},gP$=function(p,J){var S=J.params.videoId;
delete J.params.videoId;S==p.playerContext_.videoId&&(_.T6.isEmpty(J.params)?p.playerContext_.trackData=null:p.playerContext_.trackData=J.params,p.publish("remotePlayerChange"))},tcr=function(p,J,S){var H=J.params.videoId||J.params.video_id,M=parseInt(J.params.currentIndex,10);
p.playerContext_.listId=J.params.listId||p.playerContext_.listId;GMP(p.playerContext_,H,M);p.publish("remoteQueueChange",S)},hQ$=function(p,J){J.params=J.params||{};
tcr(p,J,"NOW_PLAYING_MAY_CHANGE");p.onStateChange_(J);p.publish("autoplayDismissed")};
HS.prototype.onStateChange_=function(p){var J=parseInt(p.params.currentTime||p.params.current_time,10);Cg(this.playerContext_,isNaN(J)?0:J);J=parseInt(p.params.state,10);J=isNaN(J)?-1:J;J==-1&&this.playerContext_.playerState==-1E3&&(J=-1E3);this.playerContext_.playerState=J;J=Number(p.params.loadedTime);this.playerContext_.loadedTime=isNaN(J)?0:J;J=Number(p.params.duration);this.playerContext_.duration_=isNaN(J)?0:J;J=this.playerContext_;var S=Number(p.params.liveIngestionTime);J.liveIngestionTime_=
S;J.isLive_=isNaN(S)?!1:!0;J=this.playerContext_;S=Number(p.params.seekableStartTime);p=Number(p.params.seekableEndTime);J.seekableStart_=isNaN(S)?0:S;J.seekableEnd_=isNaN(p)?0:p;this.playerContext_.playerState==1?B6P(this):W1r(this);this.publish("remotePlayerChange")};
HS.prototype.onAdStateChange_=function(p){if(this.playerContext_.playerState!=-1E3){var J=1085;switch(parseInt(p.params.adState,10)){case 1:J=1081;break;case 2:J=1084;break;case 0:J=1083}this.playerContext_.playerState=J;p=parseInt(p.params.currentTime,10);Cg(this.playerContext_,isNaN(p)?0:p);this.publish("remotePlayerChange")}};
var Dbe=function(p,J){var S=J.params.muted=="true";p.playerContext_.volume=parseInt(J.params.volume,10);p.playerContext_.muted=S;p.publish("remotePlayerChange")},kMU=function(p,J){p.autoplayVideoId_=J.params.videoId;
p.publish("nowAutoplaying",parseInt(J.params.timeout,10))},N6N=function(p,J){p.autoplayVideoId_=J.params.videoId||null;
p.publish("autoplayUpNext",p.autoplayVideoId_)},T6l=function(p,J){p.autoplayMode_=J.params.autoplayMode;
p.publish("autoplayModeChange",p.autoplayMode_);p.autoplayMode_=="DISABLED"&&p.publish("autoplayDismissed")},dbI=function(p,J){var S=J.params.hasNext=="true";
p.playerContext_.hasPrevious=J.params.hasPrevious=="true";p.playerContext_.hasNext=S;p.publish("previousNextChange")};
HS.prototype.isCapabilitySupportedOnConnectedDevices_=function(p){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var J=_.K(this.connectedDevices_),S=J.next();!S.done;S=J.next())if(!S.value.capabilities.has(p))return!1;return!0};
var $bp=function(p,J){J=J.message;J.params?tE("Received: action="+J.action+", params="+(0,_.uV)(J.params)):tE("Received: action="+J.action+" {}");switch(J.action){case "loungeStatus":J=(0,_.zX)(J.params.devices);p.connectedDevices_=_.d2(J,function(H){return new fg(H)});
J=!!_.t9(p.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"});
sar(p,J);J=p.isCapabilitySupportedOnConnectedDevices_("mlm");p.publish("multiStateLoopEnabled",J);break;case "loungeScreenDisconnected":OIe(p.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"});
sar(p,!1);break;case "remoteConnected":var S=new fg((0,_.zX)(J.params.device));_.t9(p.connectedDevices_,function(H){return H.equals(S)})||_.svs(p.connectedDevices_,S);
break;case "remoteDisconnected":S=new fg((0,_.zX)(J.params.device));OIe(p.connectedDevices_,function(H){return H.equals(S)});
break;case "gracefulDisconnect":break;case "playlistModified":tcr(p,J,"QUEUE_MODIFIED");break;case "nowPlaying":hQ$(p,J);break;case "onStateChange":p.onStateChange_(J);break;case "onAdStateChange":p.onAdStateChange_(J);break;case "onVolumeChanged":Dbe(p,J);break;case "onSubtitlesTrackChanged":gP$(p,J);break;case "nowAutoplaying":kMU(p,J);break;case "autoplayDismissed":p.publish("autoplayDismissed");break;case "autoplayUpNext":N6N(p,J);break;case "onAutoplayModeChanged":T6l(p,J);break;case "onHasPreviousNextChanged":dbI(p,
J);break;case "requestAssistedSignIn":p.publish("assistedSignInRequested",J.params.authCode);break;case "onLoopModeChanged":p.publish("loopModeChange",J.params.loopMode);break;default:tE("Unrecognized action: "+J.action)}};
_.R=HS.prototype;_.R.getProxyState_=function(){var p=3;this.isDisposed()||(p=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(p=1):p=2);return p};
_.R.JSC$20337_disconnect_=function(p){tE("Disconnecting with "+p);_.m$("yt.mdx.remote.remoteClient_",null);eQe(this);this.publish("beforeDisconnect",p);p==1&&vIf();this.channelService.disconnect(p);this.dispose()};
_.R.getPlayerContextData_=function(){var p=this.playerContext_;this.clientVideoId_&&(p=this.playerContext_.clone(),GMP(p,this.clientVideoId_,p.index));return bSI(p)};
_.R.setPlayerContextData_=function(p){var J=this,S=new I0(p);S.videoId&&S.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=S.videoId,_.CQ(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.WO(function(){if(J.clientVideoId_){var M=J.clientVideoId_;J.clientVideoId_=null;J.playerContext_.videoId!=M&&y2f(J,"getNowPlaying")}},5E3));
var H=[];this.playerContext_.listId==S.listId&&this.playerContext_.videoId==S.videoId&&this.playerContext_.index==S.index||H.push("remoteQueueChange");this.playerContext_.playerState==S.playerState&&this.playerContext_.volume==S.volume&&this.playerContext_.muted==S.muted&&nPI(this.playerContext_)==nPI(S)&&(0,_.uV)(this.playerContext_.trackData)==(0,_.uV)(S.trackData)||H.push("remotePlayerChange");this.playerContext_.reset(p);_.MV(H,function(M){this.publish(M)},this)};
_.R.getOtherConnectedRemoteId_=function(){var p=this.channelService.getDeviceId(),J=_.t9(this.connectedDevices_,function(S){return S.type=="REMOTE_CONTROL"&&S.id!=p});
return J?J.id:""};
_.R.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.R.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.R.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.R.JSC$20337_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var UbI=function(p){_.CQ(p.idleDisconnectTimerId_);p.idleDisconnectTimerId_=_.WO(function(){p.JSC$20337_disconnect_(1)},864E5)},y2f=function(p,J,S){S?tE("Sending: action="+J+", params="+(0,_.uV)(S)):tE("Sending: action="+J);
p.channelService.sendMessage(J,S)};
HS.prototype.sendMessageWithUserAction_=function(p,J){y2f(this,p,J);UbI(this)};
HS.prototype.JSC$20337_getXsrfToken_=function(){var p=_.tl.get("SAPISID","")||_.tl.get("__Secure-1PAPISID",void 0)||"",J=_.tl.get("__Secure-3PAPISID","")||"";if(!p&&!J)return"";p=_.gM(_.sV(p),2);J=_.gM(_.sV(J),2);return _.gM(_.sV(","+p+","+J),2)};
HS.prototype.subscribe=HS.prototype.subscribe;HS.prototype.unsubscribeByKey=HS.prototype.unsubscribeByKey;HS.prototype.getProxyState=HS.prototype.getProxyState_;HS.prototype.disconnect=HS.prototype.JSC$20337_disconnect_;HS.prototype.getPlayerContextData=HS.prototype.getPlayerContextData_;HS.prototype.setPlayerContextData=HS.prototype.setPlayerContextData_;HS.prototype.getOtherConnectedRemoteId=HS.prototype.getOtherConnectedRemoteId_;HS.prototype.getReconnectTimeout=HS.prototype.getReconnectTimeout_;
HS.prototype.getAutoplayMode=HS.prototype.getAutoplayMode_;HS.prototype.getAutoplayVideoId=HS.prototype.getAutoplayVideoId_;HS.prototype.reconnect=HS.prototype.JSC$20337_reconnect_;HS.prototype.sendMessage=HS.prototype.sendMessageWithUserAction_;HS.prototype.getXsrfToken=HS.prototype.JSC$20337_getXsrfToken_;HS.prototype.isCapabilitySupportedOnConnectedDevices=HS.prototype.isCapabilitySupportedOnConnectedDevices_;var C9$=function(p){qA.call(this,"ScreenServiceProxy");this.instance_=p;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.tT)(this.JSC$20340_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.tT)(this.onOnlineScreenChange_,this)))};
_.Q(C9$,qA);_.R=C9$.prototype;_.R.getScreens=function(p){return this.instance_.$_gs(p)};
_.R.contains=function(p){return!!this.instance_.$_c(p)};
_.R.get=function(p){return this.instance_.$_g(p)};
_.R.start=function(){this.instance_.$_st()};
_.R.add=function(p,J,S){this.instance_.$_a(p,J,S)};
_.R.remove=function(p,J,S){this.instance_.$_r(p,J,S)};
_.R.updateName=function(p,J,S,H){this.instance_.$_un(p,J,S,H)};
_.R.disposeInternal=function(){for(var p=this.subscriptionKeys_.length,J=0;J<p;++J)this.instance_.$_ubk(this.subscriptionKeys_[J]);this.subscriptionKeys_.length=0;this.instance_=null;qA.prototype.disposeInternal.call(this)};
_.R.JSC$20340_onScreenChange_=function(){this.publish("screenChange")};
_.R.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Yj.prototype.$_st=Yj.prototype.start;Yj.prototype.$_gspc=Yj.prototype.JSC$20299_getScreenByPairingCode;Yj.prototype.$_gsppc=Yj.prototype.JSC$20299_getScreenByPollingPairingCode;Yj.prototype.$_c=Yj.prototype.contains;Yj.prototype.$_g=Yj.prototype.get;Yj.prototype.$_a=Yj.prototype.add;Yj.prototype.$_un=Yj.prototype.updateName;Yj.prototype.$_r=Yj.prototype.remove;Yj.prototype.$_gs=Yj.prototype.getScreens;Yj.prototype.$_gos=Yj.prototype.JSC$20299_getOnlineScreens;Yj.prototype.$_s=Yj.prototype.subscribe;
Yj.prototype.$_ubk=Yj.prototype.unsubscribeByKey;var zkI=null,B4I=!1,iuf=null,Lj=null,QhN=null,pp=[];var uTr=new _.pH("yt-menu"),l1y=function(){},qPj=function(p,J,S){p=J=="right-click"?S.rightClickMenuPopupHint:S.menuPopupHint;
if(!(Vcl(J)>10))return J=J||"default",uTr.set(J+"-impression",Vcl(J)+1),p},Vcl=function(p){return parseInt(uTr.get((p||"default")+"-impression")||0,10)};
_.pu(l1y);var a1I=function(){this.contexts_=new WeakMap;this.JSC$20346_networkService_=this.activeContext_=null},EPw=function(p,J,S){var H=p.contexts_.get(J);
H||(H=new r3p(p.JSC$20346_networkService_),p.contexts_.set(J,H));p.activeContext_=H;S&&p.activeContext_.reset();p.activeContext_.start();return p.activeContext_};var hE=function(){};
hE.prototype.enqueue=function(){var p=this,J;return _.G(function(S){if(p.isCounterfactual())return(J=p.getCounterfactualData())&&p.shouldLogCounterfactualImpression()&&p.sendImpressionEndpoints(J),S.return();p.doEnqueue();_.UK(S)})};
hE.prototype.sendImpressionEndpoints=function(p){_.XK.getInstance().triggerOptionalAction("yt-service-request",{},p[0])};var DB=function(p,J){this.renderer=p;this.page=J};
_.Q(DB,hE);DB.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
DB.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
DB.prototype.shouldLogCounterfactualImpression=function(){return!0};
DB.prototype.doEnqueue=function(){var p=_.cv(this.page);p&&p.pause();this.renderer.impressionCommand&&_.XK.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.YD(_.XK.getInstance(),[this.renderer.promoCommand],this.page)};var YPU=function(p,J){this.renderer=p;this.resolver=_.qr();this.JSC$20358_enforcementCounter=new _.bO8;J?this.JSC$20358_playerManager=_.cv(J):this.JSC$20358_playerManager=null;_.Zc(1,!0)};
_.Q(YPU,hE);_.R=YPU.prototype;_.R.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var p=[];this.renderer.impressionEndpoints.forEach(function(J){(J=_.sa(J))&&p.push(J)});
return p}};
_.R.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.R.shouldLogCounterfactualImpression=function(){var p=_.BDX();p?(this.JSC$20358_enforcementCounter.increment("POPUP"),_.Zc(3)):_.Zc(2);return p};
_.R.cancel=function(){this.resolver.promise.cancel()};
_.R.doEnqueue=function(){var p=this;_.BDX()?(this.JSC$20358_enforcementCounter.increment("POPUP"),_.Zc(3),r2$(this)):this.JSC$20358_playerManager?(this.resolver.promise.then(function(){r2$(p)}),jal(this.resolver,this.JSC$20358_playerManager)):_.Zc(2)};
var jal=function(p,J){var S=_.qr();J.getPlayerPromise().then(function(H){S.resolve(H)});
S.promise.then(function(H){H.addEventListener("onAbnormalityDetected",p.resolve);_.Nv(p.promise,function(){H.removeEventListener("onAbnormalityDetected",p.resolve)})});
p.promise.thenCatch(function(){S.promise.cancel()})},r2$=function(p){_.Zc(3);
var J={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:p.renderer}};J=_.XK.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:J},{});Promise.all(J).then(function(){wIl();p.JSC$20358_playerManager&&p.JSC$20358_playerManager.pause()})},wIl=function(){SSP(function(p,J){_.UQj(p,J);
p===0?_.Zc(7):_.Zc(4)})};var xbe=function(p,J){this.renderer=p;this.page=J;this.resolver=_.qr()};
_.Q(xbe,hE);_.R=xbe.prototype;_.R.cancel=function(){this.resolver.promise.cancel()};
_.R.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.R.isCounterfactual=function(){return!this.renderer.isVisible};
_.R.shouldLogCounterfactualImpression=function(){return!0};
_.R.doEnqueue=function(){var p=this;this.resolver.promise.then(function(){var S={popup:{mealbarPromoRenderer:p.renderer},popupType:"MEALBAR"};_.XK.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:S},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var J=_.cv(this.page);J&&c2I(this.resolver,J)}break;default:this.resolver.resolve()}};
var c2I=function(p,J){var S=_.qr();J.getPlayerPromise().then(function(H){S.resolve(H)});
S.promise.then(function(H){H.addEventListener("onAdEnd",p.resolve);_.Nv(p.promise,function(){H.removeEventListener("onAdEnd",p.resolve)})});
p.promise.thenCatch(function(){S.promise.cancel()})};var I1r=function(p,J){this.renderer=p;this.page=J};
_.Q(I1r,hE);_.R=I1r.prototype;_.R.cancel=function(){this.JSC$20366_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20366_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20366_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.R.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.R.isCounterfactual=function(){return!this.renderer.isVisible};
_.R.shouldLogCounterfactualImpression=function(){return!0};
_.R.doEnqueue=function(){var p=this,J,S;((J=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(S=J.playbackUpsellDialogTriggerConditionData)==null?void 0:S.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20366_downloadedVideosCountSelectorUnsubscriber=_.j7(_.rl(),pvj,function(H,M){H>M&&(L1f(p),p.cancel())}):L1f(this)};
var L1f=function(p){var J={popup:{upsellDialogRenderer:p.renderer},popupType:"MODAL"};_.XK.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:J},{});(p=_.cv(p.page))&&p.pause()};var kn={},p8N=(kn.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",kn.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",kn.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",kn.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",kn.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",kn.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",kn.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",kn),J$I=function(p,J){this.renderer=p;this.targetManager=
J};
_.Q(J$I,hE);_.R=J$I.prototype;_.R.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20373_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20373_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20373_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.R.getCounterfactualData=function(){if(this.isCounterfactual()){var p;return(p=this.renderer.promoConfig)==null?void 0:p.impressionEndpoints}};
_.R.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.R.shouldLogCounterfactualImpression=function(){return!0};
_.R.doEnqueue=function(){var p=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20373_downloadedVideosCountSelectorUnsubscriber=_.j7(_.rl(),pvj,function(J,S){p.renderer.targetId&&J>S&&(vDl(p.targetManager,p.renderer.targetId,SYN(p)),p.cancel())});
break;default:vDl(this.targetManager,this.renderer.targetId,SYN(this))}};
var SYN=function(p){var J;if((J=p.renderer.suggestedPosition)==null?0:J.type)var S=p8N[p.renderer.suggestedPosition.type];S||(S="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:p.renderer},popupType:"HINT",position:S}}};var HWP=function(){this.previousPage=null},My$;
HWP.prototype.registerPromoCommand=function(p,J){X8y(this,void 0,void 0,_.e(p.roadblock,kLw),void 0,void 0,J)};
var X8y=function(p,J,S,H,M,X,Z){p.previousPage!==Z&&p.pendingTooltipPromo&&p.pendingTooltipPromo.cancel();p.previousPage=Z;M?(p.pendingEnforcementPromo&&p.pendingEnforcementPromo.cancel(),p.pendingEnforcementPromo=new YPU(M,Z),p.pendingEnforcementPromo.enqueue()):X?(p.pendingCommandWrapperPromo=new DB(X,Z),p.pendingCommandWrapperPromo.enqueue()):H?(p.pendingRoadblockPromo&&p.pendingRoadblockPromo.cancel(),p.pendingRoadblockPromo=new I1r(H,Z),p.pendingRoadblockPromo.enqueue()):J?(p.pendingMealbarPromo&&
p.pendingMealbarPromo.cancel(),p.pendingMealbarPromo=new xbe(J,Z),p.pendingMealbarPromo.enqueue()):S&&(p.pendingTooltipPromo&&p.pendingTooltipPromo.cancel(),p.pendingTooltipPromo=new J$I(S,_.aQ()),p.pendingTooltipPromo.enqueue())},iWI=function(){My$||(My$=new HWP);
return My$};var tJI=!1;var fIP=function(p,J){var S=_.jn("SESSION_INDEX");this.actionToken_=p;this.commonToken_=J;this.sessionIndex_=S},v0l=function(p){var J=_.qr(),S=_.Id("payments.business.integration.bootstrap"),H=_.Id("payments.business.integration"),M=H.Style.create().withMaterialDesignStyle(),X=H.mashupMode.popup("instrument-manager");
S.asMashupMode(X).usingUserIndex(p.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(M).inStandaloneContext(H.standaloneContextAuthId.forUserId()).instrumentManager(p.actionToken_,p.commonToken_.length>0?p.commonToken_:void 0,function(Z){var n=Z.instrumentId;n?J.resolve(n):(n=_.Id("payments.business.integration.scenario.InstrumentManager"),J.reject(Z.errorCode&&Z.errorCode===n.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(Z){_.xv(Z);
J.reject("instrumentManagerLoadError")});
return J.promise};var XO=function(p,J,S){this.payloadName="transactionFlowFailed";this.payload={errorType:p,serializedTransactionFlowLoggingParams:J,isUserDismiss:S===void 0?!1:S}};
_.m$("yt.ypc.shared.YpcTransactionFlowError",XO);var NN=function(){return _.f3.apply(this,arguments)||this};
_.Q(NN,_.f3);NN.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
NN.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
NN.prototype.onErrorMessageDismiss=NN.prototype.onErrorMessageDismiss;_.V([_.N({readOnly:!0,observer:"errorRendererChanged"}),_.Y("design:type",Object)],NN.prototype,"errorRenderer",void 0);_.V([_.GI("yt-live-chat-error-message-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NN.prototype,"onErrorMessageDismiss",null);_.V([_.OD()],NN);var Rs$=[NN.prototype];var Klr;var ZWI;var nhI=new _.pH("yt-live-chat"),GRw=new Map;GRw.set("timestamp_toggle","show-timestamps");GRw.set("reactions_toggle","allow-reactions");var TD=function(){return _.T.apply(this,arguments)||this};
_.Q(TD,_.T);_.R=TD.prototype;_.R.menuItemIdentifierChanged=function(){var p;(p=this.data)!=null&&p.menuItemIdentifier&&(p=GRw.get(this.data.menuItemIdentifier))&&(_.z("enable_lwe_web_mute")?(p=nhI.get(p),this.isToggled=!(p===void 0?!this.data.isToggled:!p)):this.isToggled=nhI.get(p))};
_.R.onFocus=function(){this.toggleButton.focus()};
_.R.onTap=function(){var p=this.data.command;p&&this.componentBehavior.resolveCommand(p)};
_.R.computeText=function(p,J,S){return this.componentBehavior.getSimpleString(p?S:J)};
_.R.computeIcon=function(p,J,S){return(p=p?S:J)&&p.iconType?_.Xj(p.iconType):""};
TD.prototype.onTap=TD.prototype.onTap;TD.prototype.onFocus=TD.prototype.onFocus;TD.prototype.menuItemIdentifierChanged=TD.prototype.menuItemIdentifierChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],TD.prototype,"componentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],TD.prototype,"data",void 0);
_.V([_.N({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Y("design:type",String)],TD.prototype,"icon",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],TD.prototype,"isToggled",void 0);_.V([_.FM("tp-yt-paper-toggle-button"),_.Y("design:type",Object)],TD.prototype,"toggleButton",void 0);_.V([_.bO("data.menuItemIdentifier"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TD.prototype,"menuItemIdentifierChanged",null);
_.V([_.GI("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TD.prototype,"onFocus",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TD.prototype,"onTap",null);_.V([_.sD({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],TD);
_.l(TD,"yt-live-chat-toggle-renderer",function(){if(ZWI===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Klr===void 0&&(Klr=document.createElement("template"));var H=Klr;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ZWI=p}p=ZWI;return p},{mode:0});var bWp=new _.ni("NAVIGATION_PROGRESS_TOKEN");var mpe={},Fl$={},vhf=(Fl$[ebM.name]=!0,Fl$),dQ=function(){var p=_.f3.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=_.SU();p.hasPendingNavigation=!1;p.pendingPlayerOnResponseReceivedActions=[];return p};
_.Q(dQ,_.f3);dQ.prototype.attached=function(){f8w(this);document.addEventListener("yt-navigate-cache",_.n3(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var p=uJ();p.init();p.dispatchElement=this.hostElement};
var f8w=function(p,J){J=J===void 0?0:J;var S=_.vO().resolve(_.F9(_.lc));if(S)OWP(p,S);else{if(J>=5)throw Error("tl");setTimeout(function(){f8w(p,J+1)},0)}},OWP=function(p,J){J.addEventListener("yt-navigate-start",_.n3(p,p.onYtNavigateStart));
J.addEventListener("yt-navigate-finish",_.n3(p,p.onYtNavigateFinish));J.addEventListener("yt-navigate-error",_.n3(p,p.onYtNavigateError));J.addEventListener("yt-page-data-fetched",_.n3(p,p.onYtPageDataFetched))};
_.R=dQ.prototype;_.R.detached=function(){var p=_.vO().resolve(_.lc);p.removeEventListener("yt-navigate-start",_.n3(this,this.onYtNavigateStart));p.removeEventListener("yt-navigate-finish",_.n3(this,this.onYtNavigateFinish));p.removeEventListener("yt-navigate-error",_.n3(this,this.onYtNavigateError));p.removeEventListener("yt-page-data-fetched",_.n3(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.n3(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.R.setPageOffset=function(p,J){p?_.IV(this.hostElement,"yt-set-page-offset",[p,J]):_.jD(Error("ul"))};
_.R.setPageOffsetForNavigation=function(p,J){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(p,J))};
_.R.onYtNavigateSetPageOffset=function(p,J){this.setPageOffsetForNavigation(J.page,J.offset)};
_.R.getPageOffset=function(){var p=_.Jn(this.hostElement).querySelector("#page-manager").getCurrentPage(),J=0;p&&(J=_.IV(this.hostElement,"yt-get-page-offset",[p])[0]);return J};
_.R.onYtHistoryPop=function(p,J){if(_.wY("DISABLE_WARM_LOADS"))p.preventDefault(),window.location.reload();else{var S=_.vO().resolve(_.lc);S.hasPendingNavigation()&&p.preventDefault();S.cancelPendingNavigation();_.L1(this.hostElement,"yt-pending-navigation-cancelled");J.errorMsg&&(p=J.errorMsg.split(" - "),J=Error(p[0]),p.length==2&&p[1]&&(_.cL(J,p[1]),_.xQ(J)),window.location.reload())}};
_.R.onYtHistoryLoad=function(p,J){var S=this;if(_.wY("DISABLE_WARM_LOADS"))window.location.reload();else{(p=J.endpoint)&&Object.keys(p).length||(p=null);var H=J.historyEntry,M=_.vO().resolve(_.lc),X=_.vO().resolve(_.xz),Z=null;H&&H.rootData&&(Z=H.rootData);var n=Z&&A$j(Z);!Z||n||Z.filler?p?(M.navigate(p,!0),Pdp(this,p)):(J.legacyBorder||n||(J.JSC$30865_savedComponentState==null&&Z==null?_.xQ(new _.TG("Incomplete history entry",J.forward)):_.wf(new _.TG("Malformed history entry",J.JSC$30865_savedComponentState,
J.forward,Z))),window.location.reload()):(_.Eig({isHot:!0}),_.o5({webInfo:{navigationReason:"h"}}),_.ABW(),_.Qf("srt"),_.Qf("pdc"),this.cancelPendingTasks(),zsl(this,J.forward,Z),Z.player&&(Z.player.loaded=!1),Pdp(this,p),_.Nu8(M,p||{},Z,2,{},!1,J).then(function(){S.setPageOffset(X.getCurrentPage(),H.scrollTop||0)}))}};
_.R.initHistoryManager=function(p){if(!this.hasNavigated){this.hasNavigated=!0;var J=_.Jn(this.hostElement).querySelector("#page-manager").getCurrentData();p=isNaN(p)?this.getPageOffset():p;var S=_.vO().resolve(_.lc).currentEndpoint;this.replaceState(S,J,p)}};
_.R.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.R.onYtNavigateStart=function(p,J){this.cancelPendingTasks();J.noProgressBar||(p=_.vO().resolve(_.F9(bWp)))&&p.start();p=this.hasPendingNavigation?null:this.data;var S=_.vO().resolve(_.xz),H,M,X;_.z("kevlar_use_vimio_behavior")&&!((H=J.endpoint)==null?0:(M=H.commandMetadata)==null?0:(X=M.webCommandMetadata)==null?0:X.ignoreNavigation)&&(H=S.getCurrentPage())&&H.disconnectVisibilityRoot();S.prepareForNavigation(J.pageType,J.endpoint);_.z("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.ep(1,
"pcl"),_.W3(this.pagePreparer,S.preparePage.bind(S,J.pageType,J.endpoint)));H=this.getPageOffset();this.initHistoryManager(H);J.reload||this.hasPendingNavigation?(J.pageType==="shorts"&&J.reload&&_.cf(this.hostElement,"yt-shorts-reset"),this.replaceState(J.endpoint,p,H)):(p==null?void 0:p.page)==="watch"&&J.pageType==="watch"&&_.z("kevlar_replace_watch_to_watch_history_state")?this.replaceState(J.endpoint,p,H):(p==null?void 0:p.page)!=="shorts"||J.pageType!=="shorts"||J.endpoint.reelWatchEndpoint.sequenceParams||
_.z("short_to_short_back_nav_killswitch")?J.type!="navigate-back"&&J.type!="navigate-forward"&&(J.pageType==="shorts"&&_.cf(this.hostElement,"yt-shorts-reset"),this.saveAndPush(J.url,J.endpoint,p,H)):this.replaceState(J.endpoint,p,0);this.hasPendingNavigation=!0};
var $p$=function(p){p.hasPendingNavigation=!1;(p=_.vO().resolve(_.F9(bWp)))&&p.finish()};
dQ.prototype.onYtNavigateError=function(p,J){$p$(this);p=this.get("endpoint.commandMetadata.webCommandMetadata.url",J);var S=_.ih(window.location.href);p&&!S.pbjreload&&(J=J.navigationErrorReason||"10",_.z("kevlar_parent_on_pbjreload")&&(S={csn:_.C1()},this.get("data.endpoint.clickTrackingParams")&&(S.itct=this.data.endpoint.clickTrackingParams),_.EB(p,S)),_.hc(_.Ry(p,{pbjreload:J})))};
dQ.prototype.onYtNavigateCache=function(p,J){var S=this,H=J.url,M=J.endpoint,X=J.data;p=!!J.miniplayer;J=!!J.skipHistory;if(H&&M&&X){var Z=this.getPageOffset(),n=this.data||null;J||this.saveAndPush(H,M,n,Z);H=_.Nu8(_.vO().resolve(_.lc),M,X,p?4:3,{},p);p&&H.then(function(){S.dataUpdatePromise&&S.dataUpdatePromise.then(function(){var b=_.vO().resolve(_.xz);S.setPageOffset(b.getCurrentPage(),0)})})}};
dQ.prototype.onYtNavigateFinish=function(p,J){var S=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){ohf(S,J.fromHistory)})};
var ohf=function(p,J){$p$(p);if(p.pendingPlayerOnResponseReceivedActions){for(var S=_.K(p.pendingPlayerOnResponseReceivedActions),H=S.next();!H.done;H=S.next())_.KI(H.value,p.hostElement);p.pendingPlayerOnResponseReceivedActions=[]}S=_.vO().resolve(_.xz);J||!p.hasNavigated||_.z("web_disable_scroll_on_navigate_finish")||((J=S.getCurrentPage())?J.is==="ytd-shorts"||p.tabGesturesIsActive||p.setPageOffsetForNavigation(J,0):_.xQ(Error("vl")));_.dw(function(){_.dw(function(){_.Qf("pda")})})};
dQ.prototype.onYtNavigate=function(p){if(!p.detail.endpoint){var J=new _.TG("Error: Missing yt-navigate endpoint from target:",p.target,p.target.nodeName);_.jD(J)}if(J=_.z("cold_missing_history"))J=uJ(),J.init(!1),J=!(J.browserHistory.boundHistoryReplaceState&&J.browserHistory.boundHistoryPushState);if(J){_.rY("DISABLE_WARM_LOADS",!0);J=new _.TG("Failed to initialize history manager",this.getDebugString());var S=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
S?_.xQ(J):_.jD(J)}J=p.detail.endpoint;var H,M;_.z("debug_forward_web_query_parameters")&&((H=J.commandMetadata)==null?0:(M=H.webCommandMetadata)==null?0:M.url)&&(J=JSON.parse(JSON.stringify(J)),J.commandMetadata.webCommandMetadata.url=_.fOs(J.commandMetadata.webCommandMetadata.url,window.location.search));p={type:0,command:J,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,
requestForm:p.detail}};_.z("kevlar_yt_navigate_command_handler")?(H=_.vO().resolve(_.Ov),p.form.skipDefaultElement=!0,H.resolveCommand(J,{form:p.form})):this.handleNavigate(p)};
dQ.prototype.handleNavigate=function(p){this.hasSetScrollTopForNavigation=!1;var J=_.vO().resolve(_.lc),S=p.form||{};J.navigate(p.command,S.reload,S.params,S.tempData,S.requestType,S.createScreenConfig,S.ignoreConfirmation,S.requestForm)&&Pdp(this,p.command,S.tempData)};
dQ.prototype.onYtPageDataFetched=function(p,J){try{_.QN8().reset();this.data=J.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.vO().resolve(_.xz).updatePageData(this.data);var S=this.get("playerResponse.onResponseReceivedActions",this.data);S&&(S=ese(this,S));S&&_.JP(this.hostElement,S,this.hostElement);var H=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),M=this.get("response.responseContext.consistencyTokenJar",this.data);if(H||M){var X=_.ZMX(),Z=(0,_.T6.getValues)(X.tokenJars);H&&X.replace(Z,H);M&&X.replace(Z,M)}}catch(n){_.jD(n)}};
var Pdp=function(p,J,S){try{p.onYtEndpointChangeHandler(J,S)}catch(H){_.jD(H)}};
_.R=dQ.prototype;_.R.onYtEndpointChangeHandler=function(){};
_.R.setPageTitle=function(p){p=(this.pageTitle=p)?p+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+p};
_.R.onYtUpdateTitle=function(p,J){this.setPageTitle(J)};
_.R.setUnseenNotificationCount=function(p){this.unseenNotificationCount=p;this.setPageTitle(this.pageTitle)};
_.R.handleUpdateNotificationsUnseenCountAction=function(p){_.e(p,PG$)&&((p=_.e(p,PG$).unseenCount)?this.setUnseenNotificationCount(p):this.setUnseenNotificationCount(0))};
_.R.handleClearCookieAction=function(p){var J;(p=(J=_.e(p,vBy))==null?void 0:J.cookieName)&&_.kv4(p)};
_.R.onYtUpdateUnseenNotificationCount=function(p,J){this.setUnseenNotificationCount(J)};
_.R.loadData=function(p){var J=this;this.loadDepsPromise.then(function(){var S=_.vO().resolve(_.F9(_.lc));S||_.jD(Error("wl"));if(p&&p.response){if(!p.endpoint){var H=_.kV(window.document.location.href)||"/",M="";if(H==="/"||H.startsWith("/?"))M="WEB_PAGE_TYPE_BROWSE";p.endpoint={commandMetadata:{webCommandMetadata:{url:H,webPageType:M,rootVe:3854}}}}_.Nu8(S,p.endpoint,p,5,{})}else p.endpoint?S.navigate(p.endpoint):S.navigate(_.rC);_.wg.cancelJob(J.zwiebackInitJobId);J.zwiebackInitJobId=_.wg.addLowPriorityJob(hky)})};
var uJ=function(){return _.vO().resolve(_.qg)};
dQ.prototype.getDebugString=function(){return uJ().getDebugString()};
dQ.prototype.getThirdPartyManipulationSuspected=function(){return uJ().getThirdPartyManipulationSuspected()};
dQ.prototype.replaceState=function(p,J,S){uJ().saveAndReplace(p,J,S)};
dQ.prototype.saveAndPush=function(p,J,S,H){uJ().saveAndPush(p,J,S,H)};
var A$j=function(p){return _.e(p.endpoint,_.lj)||_.e(p.endpoint,_.vt)?!0:!p||isNaN(p.expirationTime)?!1:(0,_.fO)()>p.expirationTime},zsl=function(p,J,S){var H=p.get("response.trackingParams",S),M=_.Wf(),X=_.C1();
if(H&&M&&X&&(H=p.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",S),!H&&S.rootVe&&(H=S.rootVe),M=J?"forwardButton":"backButton",J=p.get("playerResponse.topbar.desktopTopbarRenderer."+M+".buttonRenderer.command.clickTrackingParams",p.data),p=p.get("response.topbar.desktopTopbarRenderer."+M+".buttonRenderer.command.clickTrackingParams",p.data),J=(p=J||p)?_.Az(p):void 0,p=_.bC(),M=[_.SU(S)],_.TZ(p,H,J,{dataPromises:M,csnToClone:S.csn}),S.graftedVes))for(S=
_.K(S.graftedVes),H=S.next();!H.done;H=S.next())_.dC(p,H.value)};
dQ.prototype.onStoreGraftedVeAction=function(p){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(p)):_.xQ(Error("xl"))};
var ese=function(p,J){return J.filter(function(S){for(var H in S)if(vhf[H])return p.pendingPlayerOnResponseReceivedActions.push(S),!0;return!1})};
_.vh.Object.defineProperties(dQ.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
dQ.prototype.onStoreGraftedVeAction=dQ.prototype.onStoreGraftedVeAction;dQ.prototype.loadData=dQ.prototype.loadData;dQ.prototype.onYtUpdateUnseenNotificationCount=dQ.prototype.onYtUpdateUnseenNotificationCount;dQ.prototype.handleClearCookieAction=dQ.prototype.handleClearCookieAction;dQ.prototype.handleUpdateNotificationsUnseenCountAction=dQ.prototype.handleUpdateNotificationsUnseenCountAction;dQ.prototype.setUnseenNotificationCount=dQ.prototype.setUnseenNotificationCount;
dQ.prototype.onYtUpdateTitle=dQ.prototype.onYtUpdateTitle;dQ.prototype.setPageTitle=dQ.prototype.setPageTitle;dQ.prototype.onYtEndpointChangeHandler=dQ.prototype.onYtEndpointChangeHandler;dQ.prototype.onYtPageDataFetched=dQ.prototype.onYtPageDataFetched;dQ.prototype.handleNavigate=dQ.prototype.handleNavigate;dQ.prototype.onYtNavigate=dQ.prototype.onYtNavigate;dQ.prototype.onYtNavigateFinish=dQ.prototype.onYtNavigateFinish;dQ.prototype.onYtNavigateCache=dQ.prototype.onYtNavigateCache;
dQ.prototype.onYtNavigateError=dQ.prototype.onYtNavigateError;dQ.prototype.onYtNavigateStart=dQ.prototype.onYtNavigateStart;dQ.prototype.cancelPendingTasks=dQ.prototype.cancelPendingTasks;dQ.prototype.initHistoryManager=dQ.prototype.initHistoryManager;dQ.prototype.onYtHistoryLoad=dQ.prototype.onYtHistoryLoad;dQ.prototype.onYtHistoryPop=dQ.prototype.onYtHistoryPop;dQ.prototype.onYtNavigateSetPageOffset=dQ.prototype.onYtNavigateSetPageOffset;dQ.prototype.setPageOffset=dQ.prototype.setPageOffset;
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],dQ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],dQ.prototype,"data",void 0);_.V([_.GI("yt-navigate-set-page-offset"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],dQ.prototype,"onYtNavigateSetPageOffset",null);
_.V([_.GI("yt-history-pop"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],dQ.prototype,"onYtHistoryPop",null);_.V([_.GI("yt-history-load"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,_.LRU]),_.Y("design:returntype")],dQ.prototype,"onYtHistoryLoad",null);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dQ.prototype,"onYtNavigate",null);
_.V([_.GI("yt-update-title"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,String]),_.Y("design:returntype")],dQ.prototype,"onYtUpdateTitle",null);_.V([_.GI("yt-update-unseen-notification-count"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Number]),_.Y("design:returntype")],dQ.prototype,"onYtUpdateUnseenNotificationCount",null);_.V([_.OD()],dQ);mpe.YtdAppBehavior=[_.u1.YtActionHandlerBehavior,dQ.prototype];var lJ=function(){var p=_.f3.apply(this,arguments)||this;p._noAccessors=!0;return p};
_.Q(lJ,_.f3);lJ.prototype.ready=function(){var p=this;_.Jn(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){p.onChange_()})};
lJ.prototype.dataChanged_=function(){_.Jn(this.hostElement).querySelector("#checkbox").checked=!1};
lJ.prototype.onChange_=function(){var p=_.Jn(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.cf(this.hostElement,"yt-dismissal-reason-"+p,this.data.feedbackToken)};
lJ.prototype.dataChanged_=lJ.prototype.dataChanged_;_.V([_.N(),_.Y("design:type",Object)],lJ.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lJ.prototype,"dataChanged_",null);_.V([_.OD()],lJ);var WlP=[lJ.prototype];var V6=function(){var p=_.f3.apply(this,arguments)||this;p.timeoutJobId=0;p.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return p};
_.Q(V6,_.f3);V6.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
V6.prototype.startTimeout=function(){var p=this,J=this.data&&this.data.displayDurationSeconds;J&&!this.timeoutJobId&&(this.timeoutJobId=_.uS(_.wg,function(){_.IV(p.hostElement,"yt-close-popup-action",[p.is]);p.timeoutJobId=0},J*1E3))};
V6.prototype.cancelTimeout=function(){_.wg.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
V6.prototype.ytdHatsSurveyBehaviorDataChanged=V6.prototype.ytdHatsSurveyBehaviorDataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],V6.prototype,"ytActionHandlerBehavior",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],V6.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.V([_.OD()],V6);var QXI=[_.u1.YtActionHandlerBehavior,V6.prototype];var Cde=function(p,J){var S;return((S=p.prefixMapping)==null?0:S[J])?p.prefixMapping[J]:p.SHARED_RENDERERS_.hasOwnProperty(J)?"yt":p.prefix},qN={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}};qN.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.z("kevlar_mealbar_above_player"),modern:!0,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"}};
qN.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};qN.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};qN.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
qN.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)"}};
qN.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};
qN.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};
qN.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};
qN.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
qN.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"}};qN.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};qN.TOAST={component:null,properties:{}};var y$e=new function(p,J,S){this.supportedPopups=p;this.navigationEndpointPopupMap=J;this.popupTypeMap=S;this.supportedPopups=p;this.navigationEndpointPopupMap=J;this.popupTypeMap=S}({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:_.z("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"}),Baj=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$20424_popupConfig=qN;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 Upp=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.iA.getInstance()},aS=function(p,J){var S=p.pageNameToElement.get(J);
if(!S){switch(J){case "watch":var H=_.z("web_watch_force_learning_journey_for_testing")?_.oO("ytd-watch-learning-journey"):_.z("kevlar_watch_fixie")?_.oO("ytd-watch-fixie"):_.z("kevlar_watch_grid")?_.oO("ytd-watch-grid"):_.oO("ytd-watch-flexy");break;case "learning_journey_watch":H=_.oO("ytd-watch-learning-journey");break;case "shorts":H=_.oO("ytd-shorts");break;case "search":H=_.oO("ytd-search");break;case "channel":H=_.oO("ytd-browse");H.pageSubtype="channels";break;case "trending":H=_.oO("ytd-browse");
H.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":H=
_.oO("ytd-browse");H.pageSubtype=J;break;case "browse":H=_.oO("ytd-browse");break;default:_.xQ(new _.TG("Error getting page element for type",J))}S=H;p.pageNameToElement.set(J,S)}return S};
Upp.prototype.preparePage=function(p,J,S){S&&(p=_.ny(S)||p);if(p!=="watch"&&p!=="learning_journey_watch"){var H=this.elementPoolPopulator,M=p;M!=H.targetPage_&&H.pendingPages_.indexOf(M)>-1&&(H.targetPage_&&(H.pendingPages_.unshift(H.targetPage_),H.abort()),AGP(H,M),_.pbM(H,M))}if((H=aS(this,p))||!_.e(S,_.My)){H.isAttached||H===J||(H.hidden=!0);if(!H.data&&(p!=="watch"&&p!=="learning_journey_watch"||!_.z("swatcheroo_page_pool_dont_provide_filler_data"))){var X;if(p=(X=_.jn("FILLER_DATA",{})[p])==
null?void 0:X.response)H.data=p}return H}};var sXN=function(p){this.JSC$32848_clientRoot=p;this.playlistHandlerActionMap={"yt-add-to-playlist-command":qwP,"yt-end-playlist-command":ajU,"yt-recover-playlist-command":Ywj,"yt-refresh-playlist-command":w_U,"yt-playlist-remove-videos-action":rFP};_.RZ(_.XK.getInstance(),this.playlistHandlerActionMap,this.JSC$32848_clientRoot);B9f()},ghp;var E5=function(p,J,S){this.apiKey=p;this.endpoint=J;this.confidenceThreshold=S===void 0?.5:S;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=J==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||J==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
J==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||J==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new c0f};
_.R=E5.prototype;
_.R.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&&_.W9("voice_assistant");_.Cl("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 J;this.prefetchResponseTimeoutMs=(J=p.prefetchResponseTimeoutMs)!=null?J:this.prefetchResponseTimeoutMs;tyy(this);this.startAudio();hsN(this)}else this.errorHandler("OFFLINE")};
_.R.stop=function(p){var J=p===void 0?{}:p;p=J.logCancel===void 0?!0:J.logCancel;var S=J.logMicClosed===void 0?!0:J.logMicClosed;var H=J.handleError===void 0?!0:J.handleError;J=J.handleStop===void 0?!0:J.handleStop;this.state!==0&&(p&&Yn("voz_cx"),rQ(this,{logMicClosed:S,handleStop:J}),H&&this.errorHandler("ABORTED"))};
_.R.getState=function(){return this.state};
_.R.isSupported=function(){return!0};
_.R.stopAudio=function(p){(p===void 0||p)&&Yn("voz_mf")};
_.R.startAudio=function(){Yn("voz_vp");return _.SU(null)};
var Dpf=function(p,J){p.channelOpen&&(p.state!==2&&(p.state=2,Yn("voz_ss"),p.listeningHandler()),J=new Uint8Array(J),J='{ "audioIn": "'+_.gM(J)+'" }',p.channel.send(J))},rQ=function(p,J){var S=J===void 0?{}:J;
J=S.logMicClosed===void 0?!0:S.logMicClosed;S=S.handleStop===void 0?!0:S.handleStop;p.vozEndOfDataTimeout>-1&&(clearTimeout(p.vozEndOfDataTimeout),p.vozEndOfDataTimeout=-1);kRI(p);p.stopAudio(J);p.channel&&(p.channelOpen=!1,p.manuallyClosedChannel=!0,p.channel.close(),p.channel=void 0);p.transcribedSpeechResults=[];p.state=0;S&&p.stopHandler()},tyy=function(p){var J={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 ZB(p.endpoint,J);p.channel.open();_.z$(p.channel,"w",function(){var S=p.channel,H=S.send,M=p.isUsingVoz?"PLACEHOLDER":"example";M={config:{dialogStateIn:{languageCode:p.languageCode},deviceConfig:{deviceId:M,deviceModelId:M},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!p.isUsingVoz)M.config.requestType=4;else if(p.isUsingVoz&&p.youtubeAssistantRequest){var X=JSON.stringify(p.youtubeAssistantRequest);M.config.internalIn={youtubeAssistantS3InputJson:X}}H.call(S,M);p.channelOpen=!0;p.manuallyClosedChannel=!1});
_.z$(p.channel,"x",function(){p.manuallyClosedChannel||(p.channelOpen=!1,p.channel=void 0,rQ(p))});
_.z$(p.channel,"z",function(S){if(S.data){kRI(p);for(var H=0;H<S.data.length;H++){var M=p,X=S.data[H],Z=X.speechResults;if(Z)a:{var n=[];X=[];var b=!1;Z=_.K(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;if(F.noSpeech){rQ(M);M.errorHandler("NO_SPEECH");break a}F.transcript!==void 0&&F.stability!==void 0&&(F.stability<M.confidenceThreshold&&(b=!0),b?X.push(F.transcript):n.push(F.transcript))}if(n.length!==0||X.length!==0)n=n.join(" "),X=X.join(" "),M.receivedEndOfUtterance&&!M.isUsingVoz?M.isUsingVoz||
M.completeHandler([n,X]):(b=M,Z=n,F=X,Yn("voz_sf"),b.transcriptionUpdateHandler(Z,F),b.transcribedSpeechResults=[Z,F]),M.receivedEndOfUtterance&&(Yn("voz_eou"),M.transcriptionCompleteHandler([n,X]),M.isUsingVoz&&(M.prefetchResponseTimeoutMs===0?rQ(M,{logMicClosed:!1,handleStop:!0}):M.prefetchResponseTimeoutMs>0&&Naf(M)))}else M.isUsingVoz&&(X==null?0:X.internalOut)?(X=JSON.parse(X.internalOut.youtubeAssistantS3OutputJson),X.userHasOptedInToVaa||X.vaaConsent?M.vaaConsentUpdateHandler(!!X.userHasOptedInToVaa,
!!X.vaaConsent):(Ta$(M),X&&(n=M.transcribedSpeechResults,Yn("voz_rqf"),M.completeHandler(n,X)))):X.eventType==="END_OF_UTTERANCE"?M.receivedEndOfUtterance=!0:(Yn("voz_err"),M.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.xQ(Error("yl")))}}});
_.z$(p.channel,"y",function(S){rQ(p);switch(S.status){case 1:S="WEBCHANNEL_NETWORK_ERROR";break;case 2:S="WEBCHANNEL_SERVER_ERROR";break;default:S="WEBCHANNEL_UNKNOWN_ERROR"}p.errorHandler(S);p.logError(Error(S))})};
E5.prototype.logError=function(p){_.jD(p)};
E5.prototype.isOnline=function(){return!0};
var Naf=function(p){Ta$(p);p.prefetchResponseSetTimeoutId=setTimeout(function(){rQ(p,{logMicClosed:!1,handleStop:!0})},p.prefetchResponseTimeoutMs)},Ta$=function(p){p.prefetchResponseSetTimeoutId>-1&&(clearTimeout(p.prefetchResponseSetTimeoutId),p.prefetchResponseSetTimeoutId=-1)},hsN=function(p){kRI(p);
p.noResponseReceivedTimeout=window.setTimeout(function(){rQ(p);p.errorHandler("NO_SPEECH")},11E3)},kRI=function(p){p.noResponseReceivedTimeout>-1&&(window.clearTimeout(p.noResponseReceivedTimeout),p.noResponseReceivedTimeout=-1)},Yn=function(p){_.Qf(p,void 0,"voice_assistant")};var jF=function(){E5.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.Q(jF,E5);jF.prototype.isSupported=function(){return xUe()};
jF.prototype.startAudio=function(){var p=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.o4(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(H){dpe(p,H)};
this.processor.connect(this.audioContext.destination);var J=function(H){p.stream=H;if(!p.audioContext)return _.SU(null);H=p.audioContext.createMediaStreamSource(H);p.processor&&H.connect(p.processor);return _.SU(null)},S={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?J(this.stream):(S=navigator.mediaDevices.getUserMedia(S))?S.then(J).catch(function(H){rQ(p);H.name&&H.name==="NotAllowedError"?p.errorHandler("NO_MICROPHONE_PERMISSION"):(p.errorHandler("AUDIO_ERROR"),p.logError(H));return _.o4(null)}):(rQ(this),this.errorHandler("AUDIO_ERROR"),_.xQ(Error("zl")));
return E5.prototype.startAudio.call(this)};
jF.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(J){J.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;E5.prototype.stopAudio.call(this,p)};
jF.prototype.isOnline=function(){return navigator.onLine};
var dpe=function(p,J){if(p.audioContext)if(window.OfflineAudioContext){var S=p.audioContext.sampleRate,H=J.inputBuffer.getChannelData(0);J=new window.OfflineAudioContext(1,H.length,16E3);for(var M=J.createBuffer(1,H.length,S),X=M.getChannelData(0),Z=0,n=0;n<H.length;n++)X[n]=H[n],Z+=X[n]*X[n];!p.audioDetected&&Math.sqrt(Z/H.length)>.01&&(p.audioDetected=!0,p.audioDetectedHandler());H=J.createBufferSource();H.buffer=M;H.connect(J.destination);H.start(0);J.oncomplete=function(b){b=b.renderedBuffer.getChannelData(0);
for(var F=Math.floor(16384E3/S),f=new Int16Array(F),O=0;O<F;++O)f[O]=Math.max(-1,Math.min(1,b[O]))*32767;Dpf(p,f.buffer)};
J.startRendering()}else u1M(p,J)},u1M=function(p,J){var S=p.audioContext.sampleRate,H=J.inputBuffer.getChannelData(0),M=Math.floor((S+8E3)/16E3);
S=H.length/M;J=new Float32Array(S);for(var X=0;X<S;++X)J[X]=H[X*M];H=new Int16Array(S);for(M=0;M<S;++M)H[M]=Math.max(-1,Math.min(1,J[M]))*32767;Dpf(p,H.buffer)};var l8P={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var VyI=function(){this.JSC$20489_audioEnabled=!0;this.audioFeedbackHolder={}};
VyI.prototype.isPlaying=function(p){return p.currentTime>0&&!p.paused&&!p.ended&&p.readyState>2};
var qYI=function(p){for(var J=_.K(Object.values(l8P)),S=J.next();!S.done;S=J.next())S=S.value,p.audioFeedbackHolder[S]=new Audio,p.audioFeedbackHolder[S].src="/s/search/audio/"+S+".mp3",p.audioFeedbackHolder[S].load()},wQ=function(p,J){if(p.JSC$20489_audioEnabled!==!1&&J in p.audioFeedbackHolder){for(var S=_.K(Object.values(p.audioFeedbackHolder)),H=S.next();!H.done;H=S.next())H=H.value,p.isPlaying(H)&&H.pause();
p.audioFeedbackHolder[J].currentTime=0;p.audioFeedbackHolder[J].play().catch(function(){})}};var a8y=function(p,J){var S=this;this.store=p;this.service=J;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){S.setState("offline");S.stop()};
this.audioPlayer=new VyI;var H;(H=this.audioPlayer)==null||qYI(H)};
_.R=a8y.prototype;_.R.getService=function(){return this.service};
_.R.isEnabled=function(){return!!this.service};
_.R.isSupported=function(){var p;return(p=this.service)==null?void 0:p.isSupported()};
_.R.start=function(){var p=this,J,S,H,M,X,Z,n,b,F,f,O,A,P;return _.G(function(W){switch(W.nextAddress){case 1:p.store.dispatch(TSN("",""));if(!navigator.onLine)return p.setState("offline"),W.return();window.addEventListener("offline",p.handleOfflineEvent);p.stream=null;if(!p.permissionsSupported){W.jumpTo(2);break}_.oI(W,3);return W.yield(EhU(p),5);case 5:J=W.yieldResult;if(!J)return(S=p.audioPlayer)==null||wQ(S,"failure"),W.return();p.service.stream=p.stream;p.setState("listening");_.X$(W,2);break;
case 3:_.BZ(W),p.permissionsSupported=!1;case 2:H={context:_.lYX(_.Aq())},H.youtubeAssistantParams={searchParams:{inlineSearchResponse:p.enableInlineSearchResponse}},M=function(y,t){p.store.dispatch(dEy("transcribing"));p.store.dispatch(TSN(y,t))},X=function(){var y;
(y=p.audioPlayer)==null||wQ(y,"open");p.setState("listening")},Z=function(){p.setState("transcribing")},n=function(y){p.setErrorState(y)},b=function(y,t){var D;
(D=p.audioPlayer)==null||wQ(D,"success");t&&(_.z("kevlar_voice_search_inline_search")&&(p.responseProcessor=_.vO().resolve(_.Ckw),p.responseProcessor&&(D=t.navigationAction,y=t.prefetchedSearchResponse,D&&y&&(D=(new _.Q7y).JSC$14333_getStoreKey(D),_.lb(p.responseProcessor,y,D)))),p.JSC$20507_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",t))},F=function(){window.removeEventListener("offline",p.handleOfflineEvent)},f=_.xws(!1),O=f.Authorization!=null,A=p.enableFirstPartyAuth||
p.enableFPAForSignedInUsers&&O?f:{"X-Goog-Visitor-Id":f["X-Goog-Visitor-Id"]},P={completeHandler:b,
errorHandler:n,listeningHandler:X,audioDetectedHandler:Z,stopHandler:F,transcriptionUpdateHandler:M,youtubeAssistantRequest:H,languageCode:YYM(),additionalHeaders:A,supportsCrossDomainXhr:p.enableFirstPartyAuth||p.enableFPAForSignedInUsers&&O,supportsHttpHeadersOverwriteParam:!p.disableHttpHeadersOverwrite},p.service.start(P),_.UK(W)}})};
_.R.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.R.reset=function(){this.store.dispatch(_.Jk({type:"RESET_VOICE_SEARCH_STATE"}))};
_.R.setState=function(p){this.store.dispatch(dEy(p))};
_.R.setErrorState=function(p){switch(p){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var J;(J=this.audioPlayer)==null||wQ(J,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)EhU(this);else{var S;(S=this.audioPlayer)==null||wQ(S,"failure");this.setState("permission-denied")}break;case "ABORTED":var H;(H=this.audioPlayer)==null||wQ(H,"no_input");break;default:var M;(M=this.audioPlayer)==
null||wQ(M,"no_input");this.setState("timeout")}};
var EhU=function(p){var J,S;return _.G(function(H){switch(H.nextAddress){case 1:return H.yield(navigator.permissions.query({name:"microphone"}),2);case 2:J=H.yieldResult;if(J.state==="granted")return H.return(!0);if(J.state==="denied")return p.setState("permission-denied"),H.return(!1);p.setState("permission");S={audio:{sampleSize:16,channelCount:1},video:!1};_.oI(H,3);return H.yield(navigator.mediaDevices.getUserMedia(S),5);case 5:return p.stream=H.yieldResult,H.return(!0);case 3:return _.BZ(H),
p.setState("permission-denied"),H.return(!1)}})},YYM=function(){var p=_.jn("INNERTUBE_CONTEXT_HL"),J=_.jn("INNERTUBE_CONTEXT_GL");
return p.indexOf("-")>-1?p:p+"-"+J};var r$$=function(p,J,S){a8y.call(this,J,S);this.JSC$20507_actionRouter=p;this.enableInlineSearchResponse=_.z("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.z("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.z("kevlar_voice_search_enable_fpa_signedin_users")},jXw;
_.Q(r$$,a8y);
var w8w=function(){if(!jXw){var p="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.z("kevlar_voice_search_auth_enabled")||_.z("kevlar_voice_search_use_yt_endpoint")?p="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.z("kevlar_voice_search_use_fp_endpoint")&&(p="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");jXw=
new r$$(_.XK.getInstance(),_.rl(),new jF(_.jn("VOZ_API_KEY"),p,.5))}return jXw};var xpN=function(p){this.JSC$20511_clientRoot=p;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!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$20511_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)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));p=_.K(this.eventListeners);for(var J=p.next();!J.done;J=p.next()){var S=
_.K(J.value);J=S.next().value;S=S.next().value;S=_.K(S);for(var H=S.next();!H.done;H=S.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;J.addEventListener(H,M)}}_.RZ(_.XK.getInstance(),this.autonavPauseActionMap,this.JSC$20511_clientRoot)},c$P,I8e=function(p){return _.z("kevlar_autonav_popup_filtering")?(p=_.Yt(p))?p.hasAttribute("prevent-autonav"):!0:!0};
_.R=xpN.prototype;_.R.onIronOverlayOpened=function(p){I8e(p)&&(this.autonavPauseReasons.overlayOpen=!0,xn(this))};
_.R.onIronOverlayClosed=function(p){I8e(p)&&(this.autonavPauseReasons.overlayOpen=!1,xn(this))};
_.R.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;xn(this)};
_.R.onYtAutonavPauseBlur=function(){var p=this;_.wg.addJob(function(){Lly()||(p.autonavPauseReasons.inputBoxFocus=!1,xn(p))},8,0)};
_.R.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;xn(this)};
_.R.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;xn(this)};
_.R.onYtAutonavPauseScroll=function(){var p=_.vO().resolve(_.xz);p.isOnWatch()&&(p=p.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=p.getBoundingClientRect().top<-200,xn(this))};
_.R.onYtAutonavPauseUserEngagement=function(p){var J=this;if(_.z("user_engagement_enable_autoplay_pause_feature")){var S=Number(p.lowEngagementThresholdMs);isNaN(S)||S<=0||p.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.ZT("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.vO().resolve(_.Am),_.AV()<S?_.uS(_.wg,function(){_.ZT("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.thU()?(this.userEngagementCsn=_.C1(),_.uS(_.wg,function(){_.ZT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
J.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,xn(this)):_.ZT("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.LMi(Error("Al`"+JSON.stringify(p)))};
_.R.onYtAutonavPausePlayer=function(p){this.autonavPauseReasons.requestedByPlayer=!!p.detail;xn(this)};
_.R.onYtAutonavVisibilityChanged=function(){var p=this,J,S,H;return _.G(function(M){if(M.nextAddress==1)return(J=_.IY())?M.yield(J.getPlayerPromise(),2):M.return();S=M.yieldResult;H=S.isMuted()||S.getVolume()===0;p.autonavPauseReasons.backgroundAndMute=Lly()&&H;xn(p);_.UK(M)})};
_.R.onYtAutonavPausePlayerEnded=function(){_.vO().resolve(_.Am);var p=144E5;_.z("user_engagement_enable_autoplay_pause_feature")||_.z("is_part_of_any_user_engagement_experiment")||(p=45E5);this.autonavPauseReasons.longIdle=_.AV()>p;pKM(this);xn(this)};
_.R.onYtUserActivity=function(){var p=this;this.autonavPauseReasons.userEngagement&&(_.uS(_.wg,function(){_.ZT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",p.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,xn(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.uS(_.wg,function(){_.ZT("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",p.userEngagementCsn);_.rf()}),this.autonavPauseReasons.youthereLactExperiment=!1,xn(this));
this.autonavPauseReasons.longIdle&&!_.z("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,xn(this))};
var Lly=function(){var p=window.document.visibilityState;return!(!p||p==="visible")},xn=function(p){for(var J=!1,S=_.K(Object.values(p.autonavPauseReasons)),H=S.next();!H.done;H=S.next())H=H.value,J=J||H;
J?_.yK.getInstance().pause(p.autonavPauseReasons):(p=_.yK.getInstance(),p.autonavState_==3?(p.setState(2,!1,!1),p.autonavPauseReason_=void 0):p.autonavState_==1&&(p.disabledAutonavPauseReason_=void 0))},pKM=function(p){var J=!1;
if(_.z("enable_autoplay_pause_by_lact")){_.vO().resolve(_.Am);J=_.PO("autoplay_pause_by_lact_sec")*1E3;var S=_.PO("autoplay_pause_by_lact_sampling_fraction");(J=_.AV()>=J&&Math.random()<S)&&!_.thU()&&(_.uS(_.wg,function(){_.ZT("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),J=!1)}J!==p.autonavPauseReasons.youthereLactExperiment&&(p.autonavPauseReasons.youthereLactExperiment=J)&&(p.userEngagementCsn=_.C1(),_.uS(_.wg,function(){_.ZT("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",p.userEngagementCsn)}));
p.autonavPauseReasons.userEngagement&&_.uS(_.wg,function(){_.ZT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",p.userEngagementCsn)})};
xpN.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.ZT("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.rf(),this.autonavPauseReasons.youthereLactExperiment=!1,xn(this));this.autonavPauseReasons.userEngagement&&(_.ZT("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,xn(this))};
xpN.prototype.onYtEngagementPanelVisibleChanged=function(p){p.detail&&p.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=p.detail.visible,xn(this))};
xpN.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Jxf=_.uT.persistentPanelVisibleSelector,co=function(){var p=_.T.apply(this,arguments)||this;p.miniGuideVisible=!1;p.guideOpened=_.z("disable_initial_guide_state_fix")?!1:p.canFitPersistentGuide(p.initialBodyClientWidth);p.guideUserStateOpened=p.getInitialGuideUserStateOpened();p.isFullscreenShorts=!1;p.miniGuideWidthThreshold=_.PO("kevlar_mini_guide_width_threshold",791);p.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
p.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");p.persistentGuideBlockedPagePathRegex=new RegExp(p.persistentGuideBlockedPagesPatterns.join("|"));p.animationTransitionDuration=0;p.lateDataResolver=_.qr();p.initialGuideDataFetchFailed=!1;p.initialLoad=!0;p.guideRenderers=new Set;p.isMouseOverGuide=!1;p.sessionUserManuallyExpandedGuideState=
!1;p.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return p};
_.Q(co,_.T);_.R=co.prototype;_.R.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.R.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.R.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.R.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.R.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.R.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.R.ready=function(){_.vO().addProvider({provide:_.bA,useValue:this.hostElement})};
_.R.attached=function(){var p=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.n3(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.n3(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.n3(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.n3(this,this.onYtGuideShow));_.mN(this,function(){p.animationTransitionDuration=200})};
_.R.detached=function(){document.removeEventListener("yt-navigate-finish",_.n3(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.n3(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.n3(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.n3(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.n3(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.n3(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.n3(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.R.getData=function(){return this.data};
_.R.load=function(){var p=this,J,S,H,M;return _.G(function(X){switch(X.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=p.lateDataResolver.resolve.bind(p),X.return(p.lateDataResolver.promise);if(window.ytInitialGuideData)return J=_.qr(),J.resolve(window.ytInitialGuideData),X.return(J.promise);H=!1;_.oI(X,2);return X.yield(p.fetchGuideData(),4);case 4:S=X.yieldResult;_.X$(X,3);break;case 2:M=_.BZ(X),M.message==="Returned error"&&(H=
!0);case 3:if(S)return X.return(S);p.onYtGuideClose();H||(p.initialGuideDataFetchFailed=!0);return X.return(p.lateDataResolver.promise)}})};
_.R.fetchGuideData=function(){var p=this,J,S,H,M,X,Z,n;return _.G(function(b){if(b.nextAddress==1)return J=_.vO(),p.guidePromise||(S=J.resolve(_.Ac),p.guidePromise=_.VI(S,qsI)),b.yield(p.guidePromise,2);if(b.nextAddress!=3)return H=b.yieldResult,M=J.resolve(_.ZE),b.yield(M(),3);(X=b.yieldResult)&&((Z=H)==null?void 0:(n=Z.responseContext)==null?void 0:n.maxAgeSeconds)!==0&&X.put("service:guide:fallback",new _.dU({innertubeResponse:H}));return b.return(H)})};
_.R.initializeGuideDataIfEmpty=function(){var p=this,J,S;return _.G(function(H){if(H.nextAddress==1){if(!p.initialGuideDataFetchFailed||p.data)return H.return();_.oI(H,2);return H.yield(p.fetchGuideData(),4)}if(H.nextAddress!=2)return(J=H.yieldResult)&&p.lateDataResolver.resolve(J),_.X$(H,0);S=_.BZ(H);_.xQ(S);_.UK(H)})};
_.R.initializeGuideData=function(){var p=this,J,S;return _.G(function(H){switch(H.nextAddress){case 1:return _.ZF(uj$(),{mainAppWeb:_.ly()}),_.oI(H,2),H.yield(p.load(),4);case 4:p.data=H.yieldResult;_.X$(H,3);break;case 2:J=_.BZ(H),_.nT(uj$(),"FAILURE"),_.xQ(new _.TG("Guide data not present",{errorMessage:J.message}));case 3:S=p.data&&p.data.items&&p.data.items.length>0?"SUCCESS":"FAILURE",S==="FAILURE"&&_.xQ(new _.TG("Guide data.items empty")),_.nT(uj$(),S),_.UK(H)}})};
_.R.setGuideData=function(p){var J=this,S,H;return _.G(function(M){if(M.nextAddress==1)return J.disabled?M.return():J.data?(p.data=J.data,J.guideRenderers.add(p),M.return()):M.yield(J.initializeGuideData(),2);J.graftGuideToPage();S=_.wY("IS_HOMEPAGE_COLD")?"eop":void 0;_.z("disable_element_pool_populator")?J.setGuideDataAfterInit(p):(H=new _.ep(1,S),_.W3(H,J.setGuideDataAfterInit.bind(J,p)));_.UK(M)})};
_.R.setGuideDataAfterInit=function(p){p.data=this.data;p.markDirty();this.guideRenderers.add(p);_.dw(function(){_.Qf("gle")});
_.mN(this,function(){_.Qf("gpe")})};
_.R.graftGuideToPage=function(){if(this.data){var p=this.data&&this.data.trackingParams;p&&(p=_.Az(p),_.uq(_.bC(),p))}};
_.R.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.n3(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.R.onDrawerOpenedChanged=function(p,J){!J.value&&this.guideOpened&&(this.guideOpened=!1)};
_.R.onYtGuideToggle=function(p){var J=this.guideOpened;this.guideOpened=!J;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var S=_.Gv();_.b7(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;S.save()}this.updateGuideDrawerElementState();if(this.guideElement){var H;this.guideOpened&&((H=p.detail)==null?0:H.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.n3(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.n3(this,this.onAppDrawerTransitioned))}J||this.initializeGuideDataIfEmpty()};
_.R.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.n3(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Gg(this.guideElement)};
_.R.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.n3(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(kme(this.guideOpened))};
_.R.guidePersistentAndVisibleChanged=function(){_.L1(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.R.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Jk({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.R.miniGuideVisibleChanged=function(){_.L1(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.R.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(kme(this.guideOpened)),this.initialLoad=!1);_.L1(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.R.activeEndpointChanged=function(){_.L1(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.R.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.R.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()};
_.R.cachedClientWidthChanged=function(){this.updateGuideState()};
_.R.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.R.updateGuideState=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()};
_.R.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.R.getGuideOpened=function(){return this.guideOpened};
_.R.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.R.getActiveEndpoint=function(){return this.activeEndpoint};
_.R.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.R.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&&_.cf(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.R.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.z("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.R.handleGuideMouseLeave=function(){var p=this;!this.sessionUserManuallyExpandedGuideState&&_.z("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.uO(this,"handleGuideMouseLeave",function(){p.isMouseOverGuide||!p.guideOpened||p.miniGuideVisible||(p.guideOpened=!1,p.updateGuideDrawerElementState())},100))};
_.R.computeGuidePersistentAndVisible=function(){var p=this;_.uO(this,"computeGuidePersistentAndVisible",function(){p.guidePersistentAndVisible=p.guideOpened&&p.guidePersistent;p.guideIsVisibleButNotPersistent=!(!p.guideOpened||p.guidePersistent)})};
_.R.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.R.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.R.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.R.startLoadingWatch=function(){this.closeGuide()};
_.R.startLoadingShorts=function(){_.z("web_hide_guide_on_shorts")&&this.closeGuide()};
_.R.onYtNavigateFinish=function(p,J){if(!_.i9||J){this.activeEndpoint=J.endpoint;this.pageType=J.pageType;this.pageUrl=J.response.url;var S,H;p=(H=_.e((S=J.endpoint)==null?void 0:S.commandMetadata,_.i7))==null?void 0:H.url;!this.pageUrl&&p&&(this.pageUrl=p);_.z("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.R.getVisibleGuideRenderer=function(){for(var p=_.K(this.guideRenderers),J=p.next();!J.done;J=p.next())if(J=J.value,this.miniGuideVisible&&J.is==="ytd-mini-guide-renderer"||this.guideOpened&&J.is==="ytd-guide-renderer")return J;return null};
_.R.markGuideRendererDirty=function(p){if(p){typeof p.markDirty==="function"&&p.markDirty();p=_.K([].concat(_.dW(_.Jn(p).children)));for(var J=p.next();!J.done;J=p.next())this.markGuideRendererDirty(J.value)}};
_.R.persistentGuideEnabled=function(p,J){if(!J||p==="watch"||p==="settings"||p==="shorts"&&this.isFullscreenShorts||_.z("reels_web_disable_persistent_guide_shorts")&&p==="shorts")return!1;var S=_.yn(J)||"";return _.z("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(H){return S===H}):!this.persistentGuideBlockedPagePathRegex.test(S)};
_.R.canFitPersistentGuide=function(p){var J=_.PO("kevlar_persistent_guide_width_threshold",1312);return J===-1||_.z("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:p>this.calculateGuideThreshold(J)};
_.R.calculateGuideThreshold=function(p){return _.z("enable_ai_companion")?p+(this.persistentPanelVisible?400:0):p};
_.R.canFitMiniGuide=function(p){return this.miniGuideWidthThreshold===-1?!1:p>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.R.onResize=function(){var p=this;_.uO(this,"calculateGuideState",function(){p.onResizeDebounced()})};
_.R.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.R.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.R.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.R.getInitialGuideUserStateOpened=function(){return _.z("web_force_mini_guide_default")?!1:!_.Gv().getFlag(109)};
_.vh.Object.defineProperties(co.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.jn("initialBodyClientWidth")||window.innerWidth}}});
co.prototype.onResize=co.prototype.onResize;co.prototype.observeForMiniGuideVisible=co.prototype.observeForMiniGuideVisible;co.prototype.computeGuidePersistentAndVisible=co.prototype.computeGuidePersistentAndVisible;co.prototype.persistentPanelVisibleChanged=co.prototype.persistentPanelVisibleChanged;co.prototype.cachedClientWidthChanged=co.prototype.cachedClientWidthChanged;co.prototype.resetGuide=co.prototype.resetGuide;co.prototype.activeEndpointChanged=co.prototype.activeEndpointChanged;
co.prototype.guideOpenedChanged=co.prototype.guideOpenedChanged;co.prototype.miniGuideVisibleChanged=co.prototype.miniGuideVisibleChanged;co.prototype.guideIsVisibleButNotPersistentChanged=co.prototype.guideIsVisibleButNotPersistentChanged;co.prototype.guidePersistentAndVisibleChanged=co.prototype.guidePersistentAndVisibleChanged;co.prototype.onGuideElementChanged=co.prototype.onGuideElementChanged;co.prototype.onGuidePersistentChanged=co.prototype.onGuidePersistentChanged;
co.prototype.onRenderGuideChanged=co.prototype.onRenderGuideChanged;co.prototype.onActiveEndpointChanged=co.prototype.onActiveEndpointChanged;co.prototype.onMiniGuideVisibleChanged=co.prototype.onMiniGuideVisibleChanged;co.prototype.onGuideIsVisibleButNotPersistentChanged=co.prototype.onGuideIsVisibleButNotPersistentChanged;co.prototype.onGuidePersistendAndVisibleChanged=co.prototype.onGuidePersistendAndVisibleChanged;
_.V([_.B(_.wL),_.Y("design:type",Object)],co.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],co.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],co.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],co.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],co.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],co.prototype,"disabled",void 0);_.V([_.N(),_.Y("design:type",Boolean)],co.prototype,"guidePersistentAndVisible",void 0);_.V([_.bO("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"onGuidePersistendAndVisibleChanged",null);_.V([_.N(),_.Y("design:type",Boolean)],co.prototype,"guideIsVisibleButNotPersistent",void 0);
_.V([_.bO("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.V([_.N(),_.Y("design:type",Object)],co.prototype,"miniGuideVisible",void 0);_.V([_.bO("miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"onMiniGuideVisibleChanged",null);_.V([_.N(),_.Y("design:type",Boolean)],co.prototype,"forceMiniGuideClose",void 0);
_.V([_.N(),_.Y("design:type",Object)],co.prototype,"activeEndpoint",void 0);_.V([_.bO("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"onActiveEndpointChanged",null);_.V([_.N(),_.Y("design:type",Boolean)],co.prototype,"renderGuide",void 0);_.V([_.bO("renderGuide"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"onRenderGuideChanged",null);
_.V([_.N({selector:Jxf}),_.Y("design:type",Boolean)],co.prototype,"persistentPanelVisible",void 0);_.V([_.N(),_.Y("design:type",Object)],co.prototype,"guideOpened",void 0);_.V([_.N(),_.Y("design:type",Boolean)],co.prototype,"guidePersistent",void 0);_.V([_.bO("guidePersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"onGuidePersistentChanged",null);_.V([_.N(),_.Y("design:type",Object)],co.prototype,"guideUserStateOpened",void 0);
_.V([_.N(),_.Y("design:type",String)],co.prototype,"pageUrl",void 0);_.V([_.N(),_.Y("design:type",String)],co.prototype,"pageType",void 0);_.V([_.N(),_.Y("design:type",Number)],co.prototype,"cachedClientWidth",void 0);_.V([_.N(),_.Y("design:type",Object)],co.prototype,"guideElement",void 0);_.V([_.N({selector:_.JX}),_.Y("design:type",Object)],co.prototype,"isFullscreenShorts",void 0);
_.V([_.bO("guideElement"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"onGuideElementChanged",null);_.V([_.bO("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"guidePersistentAndVisibleChanged",null);
_.V([_.An("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"guideIsVisibleButNotPersistentChanged",null);_.V([_.bO("miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"miniGuideVisibleChanged",null);_.V([_.An("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"guideOpenedChanged",null);
_.V([_.bO("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"activeEndpointChanged",null);_.V([_.An("pageUrl"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"resetGuide",null);_.V([_.An("cachedClientWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"cachedClientWidthChanged",null);
_.V([_.An("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"persistentPanelVisibleChanged",null);_.V([_.bO("guideOpened","guidePersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"computeGuidePersistentAndVisible",null);
_.V([_.An("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"observeForMiniGuideVisible",null);_.V([_.GI("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"onResize",null);_.V([_.gw({disableElementRegistration:!0,is:"yt-guide-manager"})],co);
var SUw=_.l(co,"yt-guide-manager",void 0,{mode:_.Jz("kevlar_poly_si_batch_j081")?1:2});var IS=function(){var p=_.T.apply(this,arguments)||this;p.JSC$20521_keyboardInUse=!1;p.boundHandleCapturedKeydownEvent=function(J){p.handleCapturedKeydownEvent(J)};
return p};
_.Q(IS,_.T);_.R=IS.prototype;_.R.attached=function(){this.listenToDocument(document)};
_.R.listenToDocument=function(p){p.addEventListener("keydown",_.n3(this,this.onKeyDownEvent));p.addEventListener("keyup",_.n3(this,this.onKeyUpEvent));p.addEventListener("mousedown",_.n3(this,this.onMouseDownEvent));_.z("desktop_keyboard_capture_keydown_killswitch")||p.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);p.addEventListener("yt-page-data-updated",_.n3(this,this.onPageUpdate))};
_.R.detached=function(){this.unlistenFromDocument(document)};
_.R.unlistenFromDocument=function(p){p.removeEventListener("keydown",_.n3(this,this.onKeyDownEvent));p.removeEventListener("keyup",_.n3(this,this.onKeyUpEvent));p.removeEventListener("mousedown",_.n3(this,this.onMouseDownEvent));_.z("desktop_keyboard_capture_keydown_killswitch")||p.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);p.removeEventListener("yt-page-data-updated",_.n3(this,this.onPageUpdate))};
_.R.ready=function(){_.vO().addProvider({provide:_.CD,useValue:this})};
_.R.isKeyBoardInUse=function(){return this.JSC$20521_keyboardInUse};
_.R.handleCapturedKeydownEvent=function(p){if(p.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(p)};
_.R.onMouseDownEvent=function(){this.JSC$20521_keyboardInUse=!1};
_.R.onPageUpdate=function(){if(_.z("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.z("web_shorts_keyboard_shortcut_usage_log")){_.Twj.clear();for(var p=_.K(_.b3),J=p.next();!J.done;J=p.next()){var S=_.K(J.value);J=S.next().value;S=S.next().value;S=_.KG(S);_.Twj.set(J,S);_.kO(_.C1(),_.Wf(),S)}_.dQp.clear();p=_.K(_.mR);for(J=p.next();!J.done;J=p.next())S=_.K(J.value),J=S.next().value,S=S.next().value,S=_.KG(S),_.dQp.set(J,S),_.kO(_.C1(),_.Wf(),S);_.Nq(_.C1(),_.Wf(),[].concat(_.dW(_.dQp.values()),
_.dW(_.Twj.values())));_.dI(_.C1(),[].concat(_.dW(_.dQp.values()),_.dW(_.Twj.values())))}};
_.R.onMiniplayerActiveChange=function(){var p;(p=_.vO().resolve(_.DF).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(p.document):this.unlistenFromDocument(p.document))};
_.R.ignoreKeyEvent=function(p){if(p.ctrlKey||p.altKey)if(_.z("kevlar_macro_markers_keyboard_shortcut")){if(p.keyCode!==37&&p.keyCode!==39)return!0}else return!0;var J=_.Er(p)||[];return _.kIP(J)?(_.z("web_button_or_anchor_list_item")&&FVI(J,p)&&(this.JSC$20521_keyboardInUse=!0),!0):p.defaultPrevented?(QL(p.keyCode,p.shiftKey,this.isShortsPage),!0):p.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(p):!1};
_.R.isSpacebarClick=function(p){var J=p||window.event;var S;J.composedPath&&typeof J.composedPath==="function"?S=J.composedPath():S=J.path;S&&S.length?J=S[0]:(J=J||window.event,J=J.target||J.srcElement,J.nodeType==3&&(J=J.parentNode));return J&&p.keyCode===32&&(p=J.tagName==="BUTTON"||J.tagName==="A"||J.tagName==="INPUT",J=(J=J.getAttribute("role"))&&(J==="option"||J==="button"||J.indexOf("menuitem")===0),p||J)?!0:!1};
_.R.onKeyDownEvent=function(p){if(!this.ignoreKeyEvent(p)&&(p.keyCode===191&&(p.shiftKey||p.metaKey?p.repeat!=null&&p.repeat||(this.openHotkeyDialog(),QL(p.keyCode,p.shiftKey,this.isShortsPage)):(this.focusSearchBox(),p.preventDefault())),!p.metaKey)){var J=_.vO().resolve(_.DF);switch(p.keyCode){case 9:this.JSC$20521_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(p);break;case 84:J.pipController.getWindow()&&window.focus();this.toggleTheaterMode(p.keyCode,p.shiftKey);break;case 73:J.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(p.keyCode,p.shiftKey);break;case 70:if(this.isShortsPage){_.Nwe();break}this.isMiniplayerActive()?J.pipController.getWindow()&&(J.close(!0),window.focus()):this.passEventToPlayer(p);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(p.keyCode,p.shiftKey):this.closeMiniplayer(p.keyCode,p.shiftKey)||this.passEventToPlayer(p);break;case 13:p.shiftKey&&_.vO().resolve(_.gP).activate(p);break;default:this.passEventToPlayer(p)}}};
_.R.onKeyUpEvent=function(p){if(!this.ignoreKeyEvent(p))if(_.z("web_speedmaster_spacebar_control")&&p.keyCode===32)this.handlePlayerSpaceKey(p,!0);else{var J=this.getPlayerManager();J&&(J=J.getPlayer())&&J.handleGlobalKeyUp(p.keyCode,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code)}};
_.R.getPlayerManager=function(){var p=_.IY(),J=_.vO().resolve(_.F9(_.xz));return p&&J&&J.isOnWatch()?p:null};
_.R.passEventToPlayer=function(p,J){var S=this,H,M,X,Z;return _.G(function(n){if(n.nextAddress==1){if(!_.z("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&S.isMiniplayerActive())H=_.vO().resolve(_.DF).getPlayerElement();else if(S.inlinePreviewIsActive){if(M=_.L1(S.hostElement,"yt-get-inline-preview-player-action"),(X=M)==null?0:X[0])H=M[0]}else H=_.IY();return H?n.yield(H.getPlayerPromise(),3):n.jumpTo(0)}Z=n.yieldResult;J?Z.handleGlobalKeyUp(p.keyCode,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,
p.key,p.code):Z.handleGlobalKeyDown(p.keyCode,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code,p.repeat);p.keyCode!==38&&p.keyCode!==40&&QL(p.keyCode,p.shiftKey,S.isShortsPage);_.UK(n)})};
_.R.focusSearchBox=function(){_.cf(this.hostElement,"yt-focus-searchbox")};
_.R.openHotkeyDialog=function(){_.cf(this.hostElement,"yt-open-hotkey-dialog")};
_.R.isMiniplayerActive=function(){return _.vO().resolve(_.DF).isMiniplayerActive()};
_.R.closeMiniplayer=function(p,J){return this.isMiniplayerActive()?(_.vO().resolve(_.DF).close(),QL(p,J,this.isShortsPage),!0):!1};
_.R.toggleTheaterMode=function(p,J){var S=_.US(_.rl().getState()),H=this.getPlayerManager(),M=_.z("disable_theater_mode_keyboard")||_.wY("START_IN_FULL_WINDOW_MODE");H&&!M&&(S=!S,_.rG()&&_.z("external_fullscreen")&&(S=!0),_.IV(this.hostElement,"yt-toggle-theater-mode",[S]),QL(p,J,this.isShortsPage))};
_.R.toggleMiniplayer=function(p,J){var S=this.getPlayerManager();if(this.isMiniplayerActive()){var H;((H=_.vO().resolve(_.F9(_.xz)))==null?0:H.isOnWatch())?_.vO().resolve(_.DF).close(!0):_.V2(_.vO().resolve(_.DF));QL(p,J,this.isShortsPage)}else S&&(_.IV(this.hostElement,"yt-activate-miniplayer-from-watch-action"),QL(p,J,this.isShortsPage))};
_.R.handlePlayerSpaceKey=function(p,J){var S=!!_.IY()||this.isMiniplayerActive();S=_.z("disable_space_scroll_fix")||S;_.z("global_spacebar_pause")&&!this.isKeyBoardInUse()&&S&&(p.preventDefault(),this.passEventToPlayer(p,J))};
_.R.isPresentingTheaterMode=function(){return _.z("web_watch_enable_tm_esc_key")?_.US(_.rl().getState())&&!_.rG():!1};
IS.prototype.onMiniplayerActiveChange=IS.prototype.onMiniplayerActiveChange;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],IS.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],IS.prototype,"ytdReduxBehavior",void 0);_.V([_.N({selector:_.gNk}),_.Y("design:type",Boolean)],IS.prototype,"inlinePreviewIsActive",void 0);_.V([_.N({selector:_.qAL}),_.Y("design:type",Boolean)],IS.prototype,"isShortsPage",void 0);
_.V([_.N({selector:_.Bq}),_.Y("design:type",Boolean)],IS.prototype,"miniplayerIsActive",void 0);_.V([_.bO("miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IS.prototype,"onMiniplayerActiveChange",null);_.V([_.gw({disableElementRegistration:!0,is:"yt-hotkey-manager"})],IS);_.l(IS,"yt-hotkey-manager",void 0,{mode:_.Jz("kevlar_poly_si_batch_j081")?1:2});var Lg=function(){var p=_.T.apply(this,arguments)||this;p.loopStateEntityKey_=null;p.playlistLoopStateEntity_=null;p.isShuffleNextPlaylist=!1;p.PLAYER_EVENTS_=new Map;p.playerListenersSetup_=!1;p.videoSkipJob_=0;p.canAutoAdvance_=!1;p.playerManager_=null;p.TEST_ONLY={};return p};
_.Q(Lg,_.T);_.R=Lg.prototype;_.R.ready=function(){_.vO().addProvider({provide:_.FF,useValue:this.hostElement})};
_.R.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.R.attached=function(){document.addEventListener("yt-navigate-start",_.n3(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.n3(this,this.onYtNavigateFinish_))};
_.R.detached=function(){document.removeEventListener("yt-navigate-start",_.n3(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.n3(this,this.onYtNavigateFinish_))};
_.R.updatePlaylistEventListeners=function(p,J){J&&!this.playerListenersSetup_?(this.playerManager_=p,this.registerPlaylistEventListeners_(p)):!J&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(p))};
_.R.setPlayer=function(p){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=p};
_.R.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.R.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.R.registerPlaylistEventListeners_=function(p){var J=this;p.getPlayerPromise().then(function(S){J.playerListenersSetup_||(J.ytPlayerListenerBehavior.listenToPlayerEvents(S,J.PLAYER_EVENTS_),J.playerListenersSetup_=!0)})};
_.R.removePlaylistEventListeners_=function(p){var J=this;p.getPlayerPromise().then(function(S){J.playerListenersSetup_&&(J.ytPlayerListenerBehavior.unlistenFromPlayerEvents(S,J.PLAYER_EVENTS_),J.playerListenersSetup_=!1)})};
_.R.setPlaylistComponent=function(p){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.n3(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",
_.n3(this,this.onPlaylistYtNavigate_))};
_.R.setAutoplayRenderer=function(p){this.autoplayData=p};
_.R.setPlaylistData=function(p){this.currentPlaylistData_=p;_.cf(this.hostElement,"yt-playlist-data-updated");_.T6.isEmpty(p)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(p)};
_.R.setPlayerPlaybackControlData=function(p){this.playerManager_&&this.playerManager_.updatePlayerComponents(p.playlistPanelRenderer)};
_.R.getPlaylistData=function(){return this.currentPlaylistData_};
_.R.getTempData_=function(p,J){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);J&&(p.autonav="1",_.vO().resolve(_.Am),J=_.AV(),J>0&&(p.lact=J),this.playerManager_&&(J=this.playerManager_.getPlayer())&&J.shouldSendVisibilityState()&&(J=J.getVisibilityState(),J!=0&&(p.vis=J)));_.z("enable_unknown_lact_fix_on_html5")&&(_.vO().resolve(_.Am),p.lact=
_.AV());return p};
_.R.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.R.setLoopStateEntityKey_=function(p){var J;this.loopStateEntityKey_=((J=this.getPlaylistLoopData_(p))==null?void 0:J.playlistLoopStateEntityKey)||null};
_.R.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.R.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.R.skipVideo=function(){var p=this,J=_.z("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||J)J=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.oA(_.wg,function(){p.onPlaylistNext();p.videoSkipJob_=0},J)};
_.R.cancelVideoSkip=function(){this.videoSkipJob_&&(_.wg.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.R.isInBackground_=function(){var p=window.document.visibilityState;return!(!p||p=="visible")};
_.R.onPlaylistIndex_=function(p){this.playlistComponent&&(p=this.playlistComponent.data.contents[p].playlistPanelVideoRenderer.navigationEndpoint,_.cf(this.hostElement,"yt-navigate",{endpoint:p,tempData:this.getTempData_(p)}))};
_.R.onPlayerStateChange_=function(p){if(p=p==0&&this.playlistComponent&&this.canAutoAdvance_)p=_.yK.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)};
_.R.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.R.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.R.navigateToAutoplayWatchEndpoint_=function(p,J,S){var H=this.playlistComponent.data.currentIndex,M=this.getNumPlayableVideos_();p=="NORMAL"&&J=="autoplayVideo"&&H+1>=M&&S||!(p=this.getVideoEndpoint_(p,J))||(S=this.getTempData_(p,S),_.cf(this.hostElement,"yt-navigate",{endpoint:p,tempData:S}))};
_.R.getNumPlayableVideos_=function(){for(var p=0,J=_.K(this.playlistComponent.data.contents||[]),S=J.next();!S.done;S=J.next())S.value.playlistPanelVideoRenderer&&(p+=1);return p};
_.R.getVideoEndpoint_=function(p,J){if(this.autoplayData&&this.autoplayData.sets)for(var S=0,H=this.autoplayData.sets.length;S<H;S++){var M=this.autoplayData.sets[S];if(M.mode==p){if(M[J])return M[J];break}}else p=new _.TG("AutoplayData is undefined in playlist manager","Mode: "+p+" endpoint: "+J),_.xQ(p)};
_.R.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.R.onPlaylistYtNavigate_=function(p){if(p.detail.endpoint){p.stopPropagation();var J=p.detail;J.tempData=this.getTempData_(p.detail.endpoint);_.cf(this.hostElement,"yt-navigate",J)}};
_.R.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.R.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.R.playlistLoopStateEntityChanged_=function(p){var J=this,S,H,M;return _.G(function(X){if(X.nextAddress==1){if(!p)return X.return();S=p.state==="PLAYLIST_LOOP_STATE_ONE";return J.playerManager_?X.yield(J.playerManager_.getPlayerPromise(),3):X.jumpTo(2)}X.nextAddress!=2&&(H=X.yieldResult,H.setLoopVideo(S));M=p.state==="PLAYLIST_LOOP_STATE_ALL";J.playlistComponent&&(J.playlistComponent.loopOn=M);_.UK(X)})};
_.R.getPlaylistLoopData_=function(p){var J,S;if(p=p==null?void 0:(J=p.playlistButtons)==null?void 0:(S=J.menuRenderer)==null?void 0:S.topLevelButtons)for(J=_.K(p),S=J.next();!S.done;S=J.next())if(S=S.value,S.playlistLoopButtonRenderer)return S.playlistLoopButtonRenderer};
_.R.getLoopStateCommand_=function(p){var J=this.getPlaylistData(),S;J=((S=this.getPlaylistLoopData_(J))==null?void 0:S.states)||[];var H;p=(H=_.e(J[p?1:2],_.g98))==null?void 0:H.button;var M;return(M=_.e(p,_.Za))==null?void 0:M.command};
_.R.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)};
_.R.onSleepTimerSettingsChanged_=function(p){this.canAutoAdvance_=p!=="End of video"};
Lg.prototype.onPlaylistLoopStateEntityChanged=Lg.prototype.onPlaylistLoopStateEntityChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Lg.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.AM.YtPlayerListenerBehavior),_.Y("design:type",_.PH)],Lg.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Lg.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Lg.prototype,"loopStateEntityKey_",void 0);
_.V([_.N({selectorArgs:["loopStateEntityKey_"],selector:_.IO.playlistLoopStateEntitySelector}),_.Y("design:type",Object)],Lg.prototype,"playlistLoopStateEntity_",void 0);_.V([_.bO("playlistLoopStateEntity_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lg.prototype,"onPlaylistLoopStateEntityChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"yt-playlist-manager"})],Lg);_.l(Lg,"yt-playlist-manager",void 0,{mode:_.Jz("kevlar_poly_si_batch_j081")?1:2});var HRM,MRP=function(){if(HRM!==void 0)return HRM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return HRM=p};var ps=function(){var p=_.T.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};
_.Q(ps,_.T);_.R=ps.prototype;_.R.getLocation=function(){return window.location.href};
_.R.getCompletionUrl=function(){return _.aV(this.getLocation())};
_.R.containsRedirectState=function(p){return(p=_.Wu(_.b29(p)))?(new URLSearchParams(p)).get("redirect_state")!==null:!1};
_.R.createGalConfig=function(p,J){var S=new fNy;p=S=J?this.getPopupOrRedirectSetting(S,_.jn("LINK_API_KEY"),_.jn("LINK_API_KEY_REDIRECT"),p):O7l(S,_.jn("LINK_API_KEY"));p.authUser=_.jn("SESSION_INDEX")||0;p.supportedFlows=new Set([4]);return p.build()};
_.R.getPopupOrRedirectSetting=function(p,J,S,H){this.isGalInteractionPopupMode(H)?(p.interactionMode=0,p=O7l(p,J)):(p.interactionMode=1,J=this.getCompletionUrl(),p.completionUrl=J,p=O7l(p,S));return p};
_.R.isGalInteractionPopupMode=function(p){if(this.redirectModeProviderAllowlist.has(p))switch(p){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.R.getStatusEntityKeyForProviderId=function(p){return _.io(p+":all","accountLinkStatusEntity")};
_.R.findNestedPropValue=function(p,J){var S=!1,H=null;JSON.stringify(p,function(M,X){S||M!==J||(S=!0,H=X);return S?null:X});
return H};
_.R.findAccountLinkButtonViewModel=function(p,J){var S=null,H=!1;JSON.stringify(p,function(M,X){H||X.accountLinkStatusEntityKey!==J||X.accountLinkStatusSecondaryEntityKey||(H=!0,S=X);return H?null:X});
return S};
_.R.executeLinkingSuccessOrFailureCommands=function(p,J,S){var H=null,M;(J==null?0:(M=J.url)==null?0:M.includes("account_sharing"))?H=J==null?void 0:J.response:H=J==null?void 0:J.response;(J=this.findAccountLinkButtonViewModel(H,p))?(p=S?this.findNestedPropValue(J,"onSuccessCommand"):this.findNestedPropValue(J,"onFailureCommand"))?_.Mq([p],this.hostElement):_.SB(Error("Bl")):_.SB(Error("Cl`"+p))};
_.R.handleInitializeRequest=function(p,J){var S=this,H=ZYw(this.createGalConfig(p,!0));this.containsRedirectState(this.getLocation())?Msw(p,H.config,H.galService).then(function(M){var X=S.getStatusEntityKeyForProviderId(p);if(M.statusCode===1)J&&S.executeLinkingSuccessOrFailureCommands(X,J,!0),M=S.getLocation().indexOf("#"),M!==-1&&window.history.pushState(null,"",S.getLocation().substring(0,M));else return J&&S.executeLinkingSuccessOrFailureCommands(X,J,!1),Promise.reject(Error(M.statusMessage))}).catch(function(M){_.xQ(M);
_.YQ("gamingAccountLinkStatusChanged",{serviceId:p,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(M)}):this.getAccountLinkPromises[p]=H.startLinkingSession({serviceId:p})};
_.R.handleAccountLinkCommand=function(p){_.e(p,gBM)&&this.handleLinkRequest(_.e(p,gBM))};
_.R.handleLinkRequest=function(p){var J=this,S=p.thirdPartyId;if(S)if(this.isGalInteractionPopupMode(S)){var H=function(){J.closeAndFire("ytd-gaming-account-link-setting-renderer",p.onFailureCommand)},M=function(){J.closeAndFire("ytd-gaming-account-link-setting-renderer",p.onSuccessCommand)};
this.lastCallback=M;this.getAccountLinkPromises[S].then(function(X){INI(X).then(function(Z){Z.statusCode===1?M():H()})}).catch(function(){H()})}else this.getAccountLinkPromises[S].then(function(X){INI(X).then(function(Z){if(Z.statusCode!==1)return Promise.reject(Error(Z.statusMessage))})}).catch(function(X){_.xQ(X);
_.YQ("gamingAccountLinkStatusChanged",{serviceId:S,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(X)})};
_.R.closeAndFire=function(p,J){_.IV(this.hostElement,"yt-close-popup-action",[p]);J&&_.Mq([J],this.hostElement)};
_.R.handleAccountUnlinkCommand=function(p){_.e(p,tde)&&this.handleUnlinkRequest(_.e(p,tde))};
_.R.handleUnlinkRequest=function(p){var J=this,S=p.thirdPartyId;if(S){var H=function(){J.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",p.onFailureCommand)},M=function(){J.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",p.onSuccessCommand)};
this.lastCallback=M;var X=ZYw(this.createGalConfig(S,!1));this.unlinkUserGal(X,S).then(function(Z){Z.statusCode===1?M():H()}).catch(function(){H()})}};
_.R.unlinkUserGal=function(p,J){return p.deleteLink(J)};
_.R.handleLogAccountLinkingEventCommand=function(p){_.z("enable_gel_log_commands")&&_.e(p,hPe)&&(p=_.e(p,hPe).event)&&_.YQ("gamingAccountLinkStatusChanged",p)};
_.vh.Object.defineProperties(ps,{template:{configurable:!0,enumerable:!0,get:function(){return MRP()}}});
_.V([_.B(_.T_.YtOpenPopupBehavior),_.Y("design:type",Object)],ps.prototype,"ytOpenPopupBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],ps.prototype,"ytActionHandlerBehavior",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-third-party-manager"})],ps);_.l(ps,"ytd-third-party-manager",function(){return MRP()},{mode:_.Jz("kevlar_poly_si_batch_j081")?1:2});var XKy,iRp=function(){if(XKy!==void 0)return XKy;var p=document.createElement("template");_.C(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return XKy=p};var Jt=function(){var p=_.T.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-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};p.shouldApplyLockupToWatchTransition=_.z("web_thumbnail_to_watch_transition");p.shouldApplySlideTransition=_.zG("web_page_transition_type")==="slide"||_.z("enable_plj_landing_page");p.shouldApplyLearningJourneyTransition=_.z("enable_plj_landing_page");p.TEST_ONLY=void 0;return p};
_.Q(Jt,_.T);_.R=Jt.prototype;_.R.ready=function(){var p=_.vO();p.addProvider({provide:_.xz,useValue:this});p.addProvider({provide:_.XGI,useValue:this})};
_.R.created=function(){this.pagePool=new Upp;this.contextSwitcher=new a1I};
_.R.attached=function(){_.cf(this.hostElement,"attached");var p=_.vO().resolve(_.F9(_.Or));p&&(this.contextSwitcher.JSC$20346_networkService_=p);this.viewTransitionManager=_.vO().resolve(_.cD)};
_.R.getPageOffset=function(p){return p.getScrollTop()};
_.R.setPageOffset=function(p,J){try{p.setScrollTop(J)}catch(S){}};
_.R.setPageOffsetForNavigation=function(p,J){_.cf(this.hostElement,"yt-navigate-set-page-offset",{page:p,offset:J===void 0?0:J})};
_.R.pauseActiveContext=function(){var p=this.contextSwitcher;p.activeContext_&&p.activeContext_.pause()};
_.R.getModuleNameForType=function(p){return p==="watch"?_.z("kevlar_watch_fixie")?"watchFixie":_.z("kevlar_watch_grid")?"watchGrid":"watchFlexy":p==="shorts"||p==="search"?p:"browse"};
_.R.attachPage=function(p){var J,S=!_.z("pc_is_attached_ks")&&(p==null?void 0:(J=p.polymerController)==null?void 0:J.isAttached);if(!p.isAttached&&!S)try{_.Jn(this.hostElement).appendChild(p)}catch(M){var H;_.xQ(new _.TG("Error attaching page element for component",{origin:(H=this.currentPage)==null?void 0:H.is,component:p.is}))}};
_.R.setActivePage=function(p,J){var S=this,H=!1,M=function(){var X=S.isOnWatch(),Z=S.currentPage;if(p)if(p!==S.currentPage){Z&&(Z.hidden=!0,Z.active=!1,Z.removeAttribute("role"));S.currentPage=p;var n,b=J!=null?J:_.ny((n=S.data)==null?void 0:n.endpoint);Z&&_.cf(S.hostElement,"yt-page-type-changed",{oldPageType:Z.is,newPageType:p.is,newPageSubtype:b});_.ED().dispatch(_.Jk({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:p.is}));_.ED().dispatch(_.Jk({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:b||""}));
p.hidden=!1;S.attachPage(p);p.active=!0;p.setAttribute("role","main");Z&&S.setPageOffsetForNavigation(p,0);_.z("kevlar_remove_page_dom_on_switch")&&!X&&Z&&_.Jn(S.hostElement).removeChild(Z)}else H=!0;else S.handleMissingDestinationPage(Z)};
this.shouldRunBrowseTransition(this.currentPage,p)?RhU(this.viewTransitionManager,M):this.shouldRunLearningJourneyTransition(this.currentPage,p)?neI(this.viewTransitionManager,M):M();return H};
_.R.handleMissingDestinationPage=function(p){if(this.isColdLoadForUnknownPage(p))_.xQ(new _.TG("Cold load for unknown page"));else{var J;p=new _.TG("Unable to set active page",p?p.is:"unknown origin",(J=this.data)==null?void 0:J.endpoint);_.jD(p)}};
_.R.isColdLoadForUnknownPage=function(p){return!p&&zl(this.data)==="unknown"};
_.R.shouldRunBrowseTransition=function(p,J){return this.shouldApplySlideTransition&&(p==null?void 0:p.is)==="ytd-browse"&&(J==null?void 0:J.is)==="ytd-browse"&&p!==J};
_.R.shouldRunLearningJourneyTransition=function(p,J){return this.shouldApplyLearningJourneyTransition&&(p==null?void 0:p.is)==="ytd-browse"&&((J==null?void 0:J.is)==="ytd-watch-learning-journey"||(J==null?void 0:J.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.R.shouldRunWatchNextLoadedTransition=function(p,J){return this.viewTransitionManager&&p.is==="ytd-watch-flexy"&&J};
_.R.updatePageData=function(p){var J=this,S=this.data;this.updatePageDataJobId&&_.wg.cancelJob(this.updatePageDataJobId);this.data=p;return new _.UI(function(H){var M=function(){p.filler?J.performDataUpdate(p,S):fzw(function(){J.performDataUpdate(p,S)});
var b=_.fq();_.OT(b,"cr")||b.processSignal("cr");H()},X=function(){p&&(p.page==="watch"||_.z("web_shorts_delay_shorts_page_update")&&p.page==="shorts")?J.updatePageDataJobId=_.oA(_.wg,M):M()};
if(_.z("kevlar_enable_mss_page_modules_client")&&p){var Z=_.vO().resolve(_.ds),n=J.getModuleNameForType(p.page);(Z=XPr(Z,[n]))?Z.then(X):X()}else X()})};
_.R.isDownloadsPage=function(p){var J,S;return(p==null?void 0:(J=p.endpoint)==null?void 0:(S=J.browseEndpoint)==null?void 0:S.browseId)==="FEdownloads"};
_.R.setPlayerSyncInterval=function(p){var J;return _.G(function(S){if(S.nextAddress==1)return S.yield(_.vO().resolve(_.H$),2);J=S.yieldResult;J.setUpPositionSyncInterval(p);_.UK(S)})};
_.R.performDataUpdate=function(p,J){_.z("kevlar_early_popup_close")||_.IV(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var S=!p.filler;S&&(_.Qf("lps"),_.z("config_age_report_killswitch")||eG$());var H=zl(p),M,X=!1;if(_.z("kevlar_remove_page_dom_on_switch")){var Z=J&&zl(J);H===Z&&(M=this.getCurrentPage())}M||(M=aS(this.pagePool,H));S&&Prr(this.pagePool.elementPoolPopulator,H);S&&!this.renderLoadingStateJobId&&(X=this.setActivePage(M));if(M){Z=H==="watch";var n=
H==="shorts",b=H==="learning_journey_watch";_.z("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(M);if(Z||n||b)M.playerData=p.playerResponse;if(n){p.reelWatchSequenceResponse?M.reelWatchSequenceResponse=p.reelWatchSequenceResponse:!M.cachedReelWatchSequenceResponse||M.reelWatchSequenceResponse||_.z("web_enable_delay_shorts_sequence_call_new")||(M.reelWatchSequenceResponse=M.cachedReelWatchSequenceResponse);p.reelWatchSequenceResponse&&(J==null?void 0:J.page)!=="shorts"&&
(M.cachedReelWatchSequenceResponse=p.reelWatchSequenceResponse);M.currentEndpoint=p.endpoint;var F;M.isPreviousPageShorts=!!(J==null?0:(F=J.endpoint)==null?0:F.reelWatchEndpoint)}F=this.isDownloadsPage(p);var f=this.isDownloadsPage(J);F&&!f?this.setPlayerSyncInterval(6E5):!F&&f&&this.setPlayerSyncInterval();_.z("block_all_player_prefetch_requests")||this.preparePrefetchRequest(p,M,S,Z,n,b);Gme(_.vO().resolve(_.DF),J,p);if(_.z("enable_ai_companion")){var O;(O=_.vO().resolve(_.F9(_.M_)))==null||_.Dse(O,
this.getPersistentPanelSurface(H))}_.Q$(_.vO().resolve(_.Am));_.z("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(M);S?(S=typeof M.loadPage,S==="function"?(M.pageContext=EPw(this.contextSwitcher,M,M.data!==p.response),S=function(){M.loadPage(p.response)},this.shouldApplySlideTransition&&M.is==="ytd-browse"&&X&&(H==="learning"||this.isDifferentBrowseId(p==null?void 0:p.endpoint,J==null?void 0:J.endpoint))?RhU(this.viewTransitionManager,S):this.shouldRunWatchNextLoadedTransition(M,
X)?Zkf(this.viewTransitionManager,S):S()):_.wf(new _.TG("b/38014653 ",[H,
M.is,M.nodeName,S,M.isAttached,J&&zl(J),this.hostElement.children.length])),_.Qf("pdl")):(M.hidden=!0,p.response.filler=!0,M.data=p.response,this.attachPage(M));_.cf(this.hostElement,"yt-page-data-updated",{pageType:H})}_.uS(_.wg,function(){_.z("logging_avoid_blocking_during_navigation")&&_.CnW().transition("none");var A=iWI(),P=M;if(p){var W=shp(p),y=gCr(p),t;a:{if(p.playerResponse){var D=p.playerResponse,k;if((t=D.auxiliaryUi)==null?0:(k=t.messageRenderers)==null?0:k.upsellDialogRenderer){t=D.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(p.response&&(t=p.response,(D=t.overlay)==null?0:D.upsellDialogRenderer)){t=t.overlay.upsellDialogRenderer;break a}t=void 0}var E;var a;k=(E=p.playerResponse)==null?void 0:(a=E.auxiliaryUi)==null?void 0:a.messageRenderers;E=(k==null?void 0:k.enforcementMessageViewModel)||(k==null?void 0:k.bkaEnforcementMessageViewModel);E=(E==null?void 0:E.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?E:void 0;var q;a:{if(p.response&&(a=p.response,(q=a.overlay)==null?0:q.commandWrapperPromoRenderer)){q=
a.overlay.commandWrapperPromoRenderer;break a}q=void 0}X8y(A,W,y,t,E,q,P)}})};
_.R.preparePrefetchRequest=function(p,J,S,H,M,X){var Z,n,b,F,f,O,A,P,W,y,t,D,k,E,a;return _.G(function(q){if(q.nextAddress==1)return!S||!(H||M||X)||_.z("kevlar_disable_background_prefetch")&&_.c5(_.kbL)()===0?q.return():(Z=_.cv(J))?q.yield(Z.getPlayerPromise(),2):q.return();n=q.yieldResult;b=_.vO().resolve(_.F9(_.Or));if(!b)return q.return();if(M)return F=_.x8(_.uc),Crf(F,(f=p.endpoint)==null?void 0:f.reelWatchEndpoint,J.reelWatchSequenceResponse,n,b),q.return();P=(O=p.response)==null?void 0:(A=O.responseContext)==
null?void 0:A.webResponseContextExtensionData;if(!P)return q.return();k=(W=p.response)==null?void 0:(y=W.contents)==null?void 0:(t=y.twoColumnWatchNextResults)==null?void 0:(D=t.autoplay)==null?void 0:D.autoplay;E=_.vO().resolve(_.FF);a=_.x8(_.uc);yGw(a,P,n,b,E,k);_.UK(q)})};
_.R.movePlayerToWatch=function(p){var J=this,S,H;return _.G(function(M){S=aS(J.pagePool,"watch");H=S.getPlayerContainer();p.appendTo(H);_.UK(M)})};
_.R.movePlayerToShorts=function(p){var J=this,S,H,M;return _.G(function(X){S=aS(J.pagePool,"shorts");H=S.getPlayerContainer();(M=p)==null||M.appendTo(H,void 0,!0);_.UK(X)})};
_.R.getPlayerFromWatch=function(){var p=aS(this.pagePool,"watch");return _.cv(p)};
_.R.getPlayerFromShorts=function(){var p=aS(this.pagePool,"shorts");return _.cv(p)};
_.R.startLoadingWatch=function(){var p=this,J=aS(this.pagePool,"watch");this.renderLoadingStateJobId?(_.wg.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.z("web_watch_transition_enable_start_loading_watch_callsite")?KZN(this.viewTransitionManager,function(){p.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(J,"watch");
if(_.z("enable_ai_companion")){var S;(S=_.vO().resolve(_.F9(_.M_)))==null||_.Dse(S,this.getPersistentPanelSurface("watch"))}};
_.R.startLoadingShorts=function(){var p=aS(this.pagePool,"shorts");this.setActivePage(p,"shorts")};
_.R.startLoadingLearningJourney=function(){var p=aS(this.pagePool,"learning_journey_watch");this.setActivePage(p,"learning_journey_watch")};
_.R.getCurrentPage=function(){return this.currentPage};
_.R.getDestinationPageType=function(){return this.destinationPageType};
_.R.getCurrentData=function(){return this.data};
_.R.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.R.isOnShorts=function(){var p;return((p=this.currentPage)==null?void 0:p.is)==="ytd-shorts"};
_.R.isWatchPage=function(p){return!!p&&(p.is==="ytd-watch-flexy"||p.is==="ytd-watch-fixie"||p.is==="ytd-watch-grid")};
_.R.preparePage=function(p,J){var S=this,H=function(){var Z=S.pagePool.preparePage(p,S.currentPage,J);Z&&S.attachPage(Z)},M=function(Z){_.cL(Z,J);
_.xQ(Z)};
if(_.z("kevlar_enable_mss_page_modules_client")){var X=this.getModuleNameForType(p);if(X=XPr(_.vO().resolve(_.ds),[X])){X.then(H.bind(this)).catch(M.bind(this));return}}try{H()}catch(Z){M(Z)}};
_.R.lazyPrepareCriticalPages=function(p,J){p=_.ny(J)||p;_.z("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(p).then(this.maybePrepareWatchPage.bind(this,p)):this.maybePrepareWatchPage(p)};
_.R.maybePrepareWatchPage=function(p){p==="watch"||p==="learning_journey_watch"&&_.z("web_watch_learning_journey_disable_lazy_pages")||_.uS(_.wg,this.preparePage.bind(this,"watch"))};
_.R.downloadPageModules=function(p){p=this.getModuleNameForType(p);var J=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);J.delete(p);var S=_.vO().resolve(_.ds);S.JSC$19020_loadModules(p);return S.JSC$19020_loadModules.apply(S,_.dW(J))};
_.R.renderPageLoadingState=function(p,J){this.preparePage(p,J);var S=aS(this.pagePool,p);S.loadingData&&(S.loadingData.endpoint=J);S.loading=!0;this.setActivePage(S,p);p!=="watch"&&p!=="learning_journey_watch"||_.cf(this.hostElement,"yt-guide-close")};
_.R.prepareForNavigation=function(p,J){var S=this;if(this.currentPage&&this.data){var H=_.ny(J)||p;this.destinationPageType=H;zl(this.data)==H&&_.cf(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((p==="watch"||p==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.wg.cancelJob(this.renderLoadingStateJobId);_.vO().resolve(_.DF).deactivate(J);_.bb(_.wg,function(){var X=S.viewTransitionManager,Z=S.currentPage;
if(X.isLockupToWatchTransitionEnabled&&X.isLockupThumbnailRegistrationEnabled&&Z)if(X.registeredLockupThumbnail)X.lockupThumbnailRegisteredFromWatchEndpoint&&_.xQ(new _.TG("Lockup thumbnail already registered from watch endpoint."));else{a:{var n=_.e(J,_.lj);if(n==null?0:n.videoId){var b="yt-lockup-view-model ."+_.wok(n.videoId)+" yt-thumbnail-view-model";Z=Z.querySelectorAll(b);if(Z.length===1){n=Z[0];break a}Z.length>1?_.xQ(new _.TG("Multiple LockupViewModel thumbnails found for videoId: "+n.videoId+
". Selector: "+b)):_.z("web_thumbnail_to_watch_transition_debug")&&_.xQ(new _.TG("No LockupViewModel thumbnail found for videoId: "+n.videoId+". Selector: "+b))}n=void 0}n&&(X.registeredLockupThumbnail=n,X.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.F$$(X,n))}});
var M=this.data;this.renderLoadingStateJobId=_.bb(_.wg,function(){KZN(S.viewTransitionManager,function(){if(S.data!=M){var X=aS(S.pagePool,p);S.setActivePage(X)}else S.renderPageLoadingState(p,J);S.renderLoadingStateJobId=0})},150)}};
_.R.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var p=new _.ep(1);this.currentPage.pageDisposeJobs.forEach(function(J){_.W3(p,J)});
this.pageDisposeJobsets.set(this.currentPage,p)}};
_.R.flushPageDisposeJobset=function(p){var J=this.pageDisposeJobsets.get(p);J&&(J.flushJobs(),this.pageDisposeJobsets.delete(p))};
_.R.onYtStopOldPlayer=function(p,J){J=J===void 0?!1:J;var S,H=_.oy("kevlar_new_stop_old_player_logic_pages");if(_.z("kevlar_check_current_page_on_stop_old_player")&&(H.length===0||this.currentPage&&H.includes(this.currentPage.is)))if(this.data&&(S=zl(this.data)),zl(p)===S&&this.currentPage&&zl(this.currentPage.data)!==S)var M=_.cv(this.currentPage);else S=zl(this.data),M=aS(this.pagePool,S),M=_.cv(M);else this.data&&(S=zl(this.data),M=aS(this.pagePool,S),M=_.cv(M));if(M){H=zl(p);var X=aS(this.pagePool,
H);X=_.cv(X);if(M==X)J&&!_.z("kevlar_disable_preemptive_player_reset")&&M.resetForNewPlayback();else if(J=S==="watch"&&H!=="watch",!J||H==="shorts"||_.Gt4()&&!F5r(this.data,p))p=_.vO().resolve(_.DF),J&&p.isMiniplayerActive()&&p.pipController.getWindow()||M.stop()}};
_.R.isDifferentBrowseId=function(p,J){p=_.e(p,_.Ge);J=_.e(J,_.Ge);return(p==null?void 0:p.browseId)!==(J==null?void 0:J.browseId)};
_.R.getPersistentPanelSurface=function(p){switch(p){case "watch":return"WATCH";default:return"APP"}};
_.vh.Object.defineProperties(Jt,{template:{configurable:!0,enumerable:!0,get:function(){return iRp()}}});
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Jt.prototype,"ytActionHandlerBehavior",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-page-manager"})],Jt);_.l(Jt,"ytd-page-manager",function(){return iRp()},{mode:_.Jz("kevlar_poly_si_batch_j081")?1:2});var R5e;var SM=function(){var p=_.T.apply(this,arguments)||this;p.useListItemStyles=_.z("web_list_item_style_for_menu_items");p.systemIcons=_.z("kevlar_system_icons");return p};
_.Q(SM,_.T);_.R=SM.prototype;_.R.ready=function(){this.hostElement.addEventListener("tap",_.n3(this,this.onEndpointTapExtra))};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.R.onFocus=function(){var p;(p=_.Jn(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.R.onEndpointTapExtra=function(p){_.cf(this.hostElement,"iron-activate");var J=this.data.navigationEndpoint;J&&_.e(J,_.eFt)&&(p.stopPropagation(),_.JP(this.hostElement,[J],this.hostElement))};
_.R.computeIcon=function(p){return p&&p.iconType?_.Xj(p.iconType):""};
_.R.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.R.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.R.forceUpdateStylesOnLegacyBrowsers=function(){_.z("kevlar_legacy_browsers")&&_.K3(this.hostElement)};
SM.prototype.forceUpdateStylesOnLegacyBrowsers=SM.prototype.forceUpdateStylesOnLegacyBrowsers;SM.prototype.onFocus=SM.prototype.onFocus;_.V([_.B(_.QJ),_.Y("design:type",Object)],SM.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.sDr.YtConditionalRendererBehavior),_.Y("design:type",Object)],SM.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.B(_.dF.YtEndpointBehavior),_.Y("design:type",Object)],SM.prototype,"ytEndpointBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],SM.prototype,"data",void 0);_.V([_.N({computed:"computeIcon(data.icon)",value:""}),_.Y("design:type",String)],SM.prototype,"icon",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],SM.prototype,"useIcons",void 0);_.V([_.N({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],SM.prototype,"hasSeparator",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],SM.prototype,"useListItemStyles",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],SM.prototype,"systemIcons",void 0);_.V([_.GI("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SM.prototype,"onFocus",null);_.V([_.bO("useIcons","hasSeparator"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SM.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.l(SM,"ytd-menu-navigation-item-renderer",function(){if(R5e===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);R5e=p}p=R5e;return p},{mode:1});var KFM;var ZR$=_.aR(_.Kl("DOWNLOAD",{},"Download")),n6P=_.aR(_.Kl("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),G9N=_.aR(_.Kl("RETRY",{},"Retry")),bRN=_.aR(_.Kl("PAUSE_DOWNLOADING",{},"Pause downloading")),mOP=_.aR(_.Kl("RESUME_DOWNLOAD",{},"Resume download")),H1=function(){var p=_.T.apply(this,arguments)||this;p.primaryText=ZR$;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};
_.Q(H1,_.T);_.R=H1.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.R.onFocus=function(){this.primaryEntry.focus()};
_.R.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.R.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.R.getRemoveAction=function(){return"ACTION_REMOVE"};
_.R.sendOfflineAction=function(p){var J=this.data.serviceEndpoint;if(J){var S=_.e(J,_.mV);S&&p&&(S.action=p);this.ytComponentBehavior.resolveCommand(J)}};
_.R.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=ZR$,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=ZR$;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=G9N;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=n6P;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=mOP;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=n6P;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
bRN;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=n6P;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=n6P;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=ZR$,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.R.showHideButton=function(){var p;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((p=this.playerStateEntity)==null?void 0:p.adsState)==="ADS_STATE_PLAYING"};
_.R.isSecondaryEntryHidden=function(p,J){return p?!0:!J};
_.R.computeHasSeparator=function(){var p;return!((p=this.data)==null||!p.hasSeparator)};
_.R.computePlayerStateEntityKey=function(p){return p};
H1.prototype.showHideButton=H1.prototype.showHideButton;H1.prototype.onTransferStateChange=H1.prototype.onTransferStateChange;H1.prototype.onFocus=H1.prototype.onFocus;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],H1.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],H1.prototype,"ytComponentBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],H1.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],H1.prototype,"primaryText",void 0);_.V([_.N(),_.Y("design:type",String)],H1.prototype,"primaryIconType",void 0);_.V([_.N(),_.Y("design:type",String)],H1.prototype,"primaryAction",void 0);_.V([_.N(),_.Y("design:type",Object)],H1.prototype,"secondaryText",void 0);_.V([_.N(),_.Y("design:type",String)],H1.prototype,"secondaryIconType",void 0);
_.V([_.N(),_.Y("design:type",String)],H1.prototype,"secondaryAction",void 0);_.V([_.N(),_.Y("design:type",Object)],H1.prototype,"hasSecondaryContent",void 0);_.V([_.N({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Object)],H1.prototype,"hasSeparator",void 0);_.V([_.N({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.Y("design:type",String)],H1.prototype,"playerStateEntityKey",void 0);
_.V([_.N({selector:_.RY,selectorArgs:["playerStateEntityKey"]}),_.Y("design:type",Object)],H1.prototype,"playerStateEntity",void 0);_.V([_.N({selector:_.gl,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",String)],H1.prototype,"transferState",void 0);_.V([_.N({selector:_.xa9,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",Object)],H1.prototype,"isVideoDeletedByUser",void 0);
_.V([_.N(),_.Y("design:type",Object)],H1.prototype,"isHidden",void 0);_.V([_.N({selector:_.qZL,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",Object)],H1.prototype,"offlineabilityState",void 0);_.V([_.FM("#primary-entry"),_.Y("design:type",Object)],H1.prototype,"primaryEntry",void 0);_.V([_.GI("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H1.prototype,"onFocus",null);
_.V([_.An("transferState","isVideoDeletedByUser"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H1.prototype,"onTransferStateChange",null);_.V([_.An("offlineabilityState","playerStateEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H1.prototype,"showHideButton",null);
_.l(H1,"ytd-menu-service-item-download-renderer",function(){if(KFM===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);KFM=p}p=KFM;return p},{mode:1});var FFj;var MK=function(){var p=_.T.apply(this,arguments)||this;p.useIcons=!1;p.systemIcons=_.z("kevlar_system_icons");p.useListItemStyles=_.z("web_list_item_style_for_menu_items");return p};
_.Q(MK,_.T);_.R=MK.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.R.onFocus=function(){var p;(p=_.Jn(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.R.onTap=function(){_.L1(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var p=this.data.serviceEndpoint,J=this.data.command;if(p){var S,H=(S=this.data)==null?void 0:S.trackingParams;S=!!_.e(p,_.OD8);H&&S&&_.rl().dispatch(_.Jk({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:H}}));this.ytComponentBehavior.resolveCommand(p)||_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}})}J&&(this.ytComponentBehavior.resolveCommand(J)||_.JP(this.hostElement,
[J],this.hostElement))};
_.R.computeIcon=function(p){return p&&p.iconType?_.Xj(p.iconType):""};
_.R.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.R.computeHasSeparator=function(){var p;return!((p=this.data)==null||!p.hasSeparator)};
_.R.forceUpdateStylesOnLegacyBrowsers=function(){_.z("kevlar_legacy_browsers")&&_.K3(this.hostElement)};
_.R.computeIsSelected=function(){var p;return!((p=this.data)==null||!p.isSelected)};
MK.prototype.forceUpdateStylesOnLegacyBrowsers=MK.prototype.forceUpdateStylesOnLegacyBrowsers;MK.prototype.onTap=MK.prototype.onTap;MK.prototype.onFocus=MK.prototype.onFocus;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],MK.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],MK.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.sDr.YtConditionalRendererBehavior),_.Y("design:type",Object)],MK.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],MK.prototype,"data",void 0);_.V([_.N({computed:"computeIcon(data.icon)",value:""}),_.Y("design:type",String)],MK.prototype,"icon",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],MK.prototype,"useIcons",void 0);
_.V([_.N({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],MK.prototype,"hasSeparator",void 0);_.V([_.N({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],MK.prototype,"isSelected",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],MK.prototype,"systemIcons",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],MK.prototype,"useListItemStyles",void 0);
_.V([_.GI("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MK.prototype,"onFocus",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],MK.prototype,"onTap",null);_.V([_.bO("useIcons","hasSeparator"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MK.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.l(MK,"ytd-menu-service-item-renderer",function(){if(FFj===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);FFj=p}p=FFj;return p},{mode:2});var v6I;var XL=function(){return _.T.apply(this,arguments)||this};
_.Q(XL,_.T);_.R=XL.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onDataChanged=function(){var p=this;_.mN(this,function(){p.postbox.openDialog();p.focus();_.cf(p.hostElement,"yt-refit")})};
_.R.focus=function(){this.postbox.focus()};
_.R.closePopup=function(){_.IV(this.hostElement,"yt-close-popup-action")};
_.R.onYtCommentboxDismiss=function(){this.closePopup()};
XL.prototype.onYtCommentboxDismiss=XL.prototype.onYtCommentboxDismiss;XL.prototype.onDataChanged=XL.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],XL.prototype,"data",void 0);_.V([_.N({value:function(){return _.Kl("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],XL.prototype,"closeButtonAriaLabel",void 0);_.V([_.FM("#postbox"),_.Y("design:type",Object)],XL.prototype,"postbox",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XL.prototype,"onDataChanged",null);_.V([_.GI("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XL.prototype,"onYtCommentboxDismiss",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],XL);
_.l(XL,"ytd-backstage-post-dialog-popup-renderer",function(){if(v6I!==void 0)return v6I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return v6I=p},{mode:1});var fGI;var ORI;var AxI=function(){return _.T.apply(this,arguments)||this};
_.Q(AxI,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],AxI.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],AxI.prototype,"data",void 0);_.V([_.sD({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],AxI);
_.l(AxI,"yt-sender-id-section-renderer",function(){if(ORI===void 0){var p=document.createElement("template");_.C(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);ORI=p}p=
ORI;return p},{mode:1});var PsU;var z5y;var iQ=function(){return _.T.apply(this,arguments)||this};
_.Q(iQ,_.T);iQ.prototype.closePopup=function(){_.IV(this.hostElement,"yt-close-popup-action")};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],iQ.prototype,"data",void 0);_.V([_.sD({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],iQ);
_.l(iQ,"yt-community-post-section-renderer",function(){if(z5y===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;PsU===void 0&&(PsU=document.createElement("template"));var H=PsU;S.call(J,H.content.cloneNode(!0),p.content.firstChild);z5y=p}p=z5y;return p},{mode:2});var $Op;var o6N;var e5w;var WFI;var QoU;var Csw;var yxP=function(){return _.T.apply(this,arguments)||this};
_.Q(yxP,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yxP.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yxP.prototype,"data",void 0);_.V([_.sD({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],yxP);
_.l(yxP,"yt-share-start-time-with-context-renderer",function(){if(Csw===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;QoU===void 0&&(QoU=document.createElement("template"));var H=QoU;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Csw=p}p=Csw;return p},{mode:2});var Rn=function(){return _.T.apply(this,arguments)||this};
_.Q(Rn,_.T);Rn.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Rn.prototype,"data",void 0);_.V([_.sD({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Rn);
_.l(Rn,"yt-share-panel-title-v15-renderer",function(){if(WFI===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;e5w===void 0&&(e5w=document.createElement("template"));var H=e5w;S.call(J,H.content.cloneNode(!0),p.content.firstChild);WFI=p}p=WFI;return p},{mode:2});var Ks=function(){return _.T.apply(this,arguments)||this};
_.Q(Ks,_.T);Ks.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ks.prototype,"data",void 0);_.V([_.sD({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Ks);
_.l(Ks,"yt-share-panel-header-renderer",function(){if(o6N===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;$Op===void 0&&($Op=document.createElement("template"));var H=$Op;S.call(J,H.content.cloneNode(!0),p.content.firstChild);o6N=p}p=o6N;return p},{mode:2});var B3$;var UOr;var ZC=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-open-popup-action":"onOpen"};return p};
_.Q(ZC,_.T);_.R=ZC.prototype;_.R.attached=function(){this.onOpen()};
_.R.updateTimeSecs=function(p){this.currentTimeSecs=p};
_.R.computeTimeString=function(p){p=p.toString();var J=Math.floor(Number(p)/3600),S=Math.floor(Number(p)%3600%60);return(J>0?J+":":"")+_.b_(Math.floor(Number(p)%3600/60),J>0?2:1)+":"+_.b_(S,2)};
_.R.computeTimeStringA11y=function(p){return _.Het({seconds:p})};
_.R.getTimeParam=function(){return cFp(this.timeString)};
_.R.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var p={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},J;_.VK(_.bC(),(J=this.data)==null?void 0:J.trackingParams,p,7)};
_.R.onChangeStartAtTimestamp=function(){for(var p=this.startAtTimestamp.value.split(":"),J=0,S=1,H=p.length-1;H>=0;H--)J+=Number(p[H])*S,S*=60;this.updateTimeSecs(J);this.setTimestamp()};
_.R.onOpen=function(){var p=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var J=_.IY();J?J.getPlayerPromise().then(function(S){S=S.getCurrentTime();p.updateTimeSecs(S)}):X$y()&&this.updateTimeSecs(X$y())};
_.R.setTimestamp=function(){var p=Math.floor(this.currentTimeSecs);_.IV(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!p,timestamp:p||""}])};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],ZC.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ZC.prototype,"data",void 0);_.V([_.N({value:!1,notify:!0}),_.Y("design:type",Boolean)],ZC.prototype,"isStartAtChecked",void 0);_.V([_.N(),_.Y("design:type",Number)],ZC.prototype,"currentTimeSecs",void 0);
_.V([_.N({computed:"computeTimeString(currentTimeSecs)"}),_.Y("design:type",String)],ZC.prototype,"timeString",void 0);_.V([_.N({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.Y("design:type",String)],ZC.prototype,"timeStringA11y",void 0);_.V([_.FM("#start-at-timestamp"),_.Y("design:type",Object)],ZC.prototype,"startAtTimestamp",void 0);_.V([_.sD({is:"yt-start-at-renderer",disableElementRegistration:!0})],ZC);
_.l(ZC,"yt-start-at-renderer",function(){if(UOr===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;B3$===void 0&&(B3$=document.createElement("template"));var H=B3$;S.call(J,H.content.cloneNode(!0),p.content.firstChild);UOr=p}p=UOr;return p},{mode:2});var sof;var g6I;var tRf={};tRf.YtBindingExpressionsBehavior={identity:_.D3,msg:function(p,J){J=J===void 0?{}:J;return _.Kl(p,J,p)},
msgPlural:function(p,J){return _.ZO(p,J)},
getMusicIconFromType:function(p){return _.Xj(p)}};var h5e;var DOj;var k9r;var N3w=document.head,T3P=N3w.appendChild,dOe;if(k9r===void 0){var ukP=document.createElement("template");_.C(ukP,'\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>');k9r=ukP}dOe=k9r;T3P.call(N3w,dOe.content);var ns=function(){var p=_.T.apply(this,arguments)||this;p.screenLayer=7;return p};
_.Q(ns,_.T);ns.prototype.getScreenLayer=function(){return this.screenLayer};
ns.prototype.onTap=function(p){p&&p.detail&&(p.detail.x||p.detail.y)&&_.Jn(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.pl(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(p=this.getScreenLayer(),_.cf(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()}}})};
_.vh.Object.defineProperties(ns.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()}}});
ns.prototype.onTap=ns.prototype.onTap;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],ns.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ns.prototype,"data",void 0);_.V([_.U("data.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ns.prototype,"title",null);
_.V([_.U("data.serviceName"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ns.prototype,"icon",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ns.prototype,"onTap",null);_.V([_.sD({is:"yt-share-target-renderer",disableElementRegistration:!0})],ns);
_.l(ns,"yt-share-target-renderer",function(){if(DOj===void 0){var p=document.createElement("template");_.C(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" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;h5e===void 0&&(h5e=document.createElement("template"));var H=h5e;S.call(J,H.content.cloneNode(!0),p.content.firstChild);DOj=p}p=DOj;return p},{mode:2});var lGN;var VRe;var G1=function(){var p=_.T.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};
_.Q(G1,_.T);_.R=G1.prototype;_.R.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.R.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Jn(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Jn(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.R.onReset_=function(){if(_.Jn(this.hostElement).querySelector("#list")){var p=_.Jn(this.hostElement).querySelector("#list");var J=_.Jn(this.hostElement).querySelector("#list");var S=J.offsetLeft,H=J.offsetParent;H||_.V6m(J)!="fixed"||(H=_.VF(J).documentElement);if(H){if(_.Rh&&!_.Zj(58)){var M=_.x08(H);S+=M.left}else Number(_.Zdm)>=8&&!(Number(_.Zdm)>=9)&&(M=_.x08(H),S-=M.left);J=_.jrU(H)?H.clientWidth-(S+J.offsetWidth):S}else J=S;UEN(p,J);this.updateScrollButtons_()}};
_.R.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.R.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.R.onScrollWheel_=function(p){p.stopPropagation();p.preventDefault();var J=BSl(_.Jn(this.hostElement).querySelector("#list"));p=Math.abs(p.deltaX)>Math.abs(p.deltaY)?p.deltaX:p.deltaY;UEN(_.Jn(this.hostElement).querySelector("#list"),J+p);this.updateScrollButtons_()};
_.R.smoothScrollByOnePage_=function(p){var J=_.Jn(this.hostElement).querySelector("#list"),S=(Math.floor(J.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,H=BSl(J),M=S*(p?1:-1),X=this.PAGE_SCROLL_SPEED,Z=this.updateScrollButtons_.bind(this),n=0,b;(function f(){n+=X;b=n/S*2;UEN(J,H+M*(b<1?b*b:-b*b+4*b-2));n<S?window.requestAnimationFrame(f):Z()})()};
_.R.updateScrollButtons_=function(){var p=BSl(_.Jn(this.hostElement).querySelector("#list")),J=_.Jn(this.hostElement).querySelector("#list").scrollWidth-_.Jn(this.hostElement).querySelector("#list").clientWidth;_.Jn(this.hostElement).querySelector("#scroll-button-back").hidden=p<=0;_.Jn(this.hostElement).querySelector("#scroll-button-forward").hidden=p>=J};
G1.prototype.onScrollWheel_=G1.prototype.onScrollWheel_;G1.prototype.onDataChanged_=G1.prototype.onDataChanged_;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],G1.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(tRf.YtBindingExpressionsBehavior),_.Y("design:type",Object)],G1.prototype,"ytBindingExpressionsBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],G1.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G1.prototype,"onDataChanged_",null);_.V([_.GI("wheel"),_.Y("design:type",Function),_.Y("design:paramtypes",[WheelEvent]),_.Y("design:returntype")],G1.prototype,"onScrollWheel_",null);
_.V([_.sD({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],G1);
_.l(G1,"yt-third-party-share-target-section-renderer",function(){if(VRe===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;lGN===void 0&&(lGN=document.createElement("template"));var H=lGN;S.call(J,H.content.cloneNode(!0),p.content.firstChild);VRe=p}p=VRe;return p},{mode:2});var bQ=function(){return _.T.apply(this,arguments)||this};
_.Q(bQ,_.T);bQ.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"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],bQ.prototype,"data",void 0);_.V([_.sD({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],bQ);
_.l(bQ,"yt-third-party-network-section-renderer",function(){if(g6I===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;sof===void 0&&(sof=document.createElement("template"));var H=sof;S.call(J,H.content.cloneNode(!0),p.content.firstChild);g6I=p}p=g6I;return p},{mode:2});_.ci(_.d(function(p){return _.m("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.m("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.m(_.AH,{data:function(){return p.data().firstPartyItems}},{listItemViewModel:_.fW})))},"mj"),"first-party-network-section-view-model",{props:{data:_.fD}});var qU$=(0,_.dd8)(_.YS.share,{parentClickTrackingParamsSelector:function(p){return p.parentClickTrackingParams}});var aGl=_.YI(["data:image/svg+xml;charset=UTF-8;base64,",""]),m3=function(){var p=_.T.apply(this,arguments)||this;p.screenLayer=7;p.qrCodeEnabled=_.z("web_enable_sharing_qr_code");p.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return p};
_.Q(m3,_.T);_.R=m3.prototype;_.R.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.R.attached=function(){this.JSC$20587_scroller&&(this.JSC$20587_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20587_scroller.attached&&typeof this.JSC$20587_scroller.attached==="function"&&this.JSC$20587_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.R.onDataChanged=function(){var p=this,J;(J=this.data)!=null&&J.contents&&(this.hostElement.setAttribute("links-only","true"),_.iO(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.mN(this,function(){_.cf(p.hostElement,"yt-refit");p.focusSharePanelHeader()}))};
_.R.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.R.handleSetTimestamp=function(p){var J=this.shortUrl();p.isSet&&(J=_.cj(J,"t",p.timestamp));this.maybeRenderQrCode(J)};
_.R.shortUrl=function(){var p,J=(p=this.data)==null?void 0:p.contents;if(J)for(p=0;p<J.length;p++){var S=void 0,H=void 0;if((S=J[p])==null?0:(H=S.thirdPartyNetworkSection)==null?0:H.copyLinkContainer){var M=H=S=void 0;return(M=_.e((S=J[p])==null?void 0:(H=S.thirdPartyNetworkSection)==null?void 0:H.copyLinkContainer,m_r))==null?void 0:M.shortUrl}}};
_.R.maybeRenderQrCode=function(p){var J=this,S,H,M,X,Z,n,b,F,f;return _.G(function(O){if(O.nextAddress==1){S=_.Jn(J.hostElement).querySelector("#qr-code");if(!J.qrCodeEnabled||!p)return S&&(S.style.display="none"),O.return();H=_.TA3(_.vO().resolve(_.iC),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});M=document.createElement("div");return typeof H==="function"?(H(M),O.jumpTo(2)):O.yield(H,3)}O.nextAddress!=2&&(X=O.yieldResult,X(M));b=(Z=M)==null?void 0:(n=Z.firstChild)==null?void 0:n.firstChild;
F=document.createElement("img");f=_.KC3(aGl,btoa(b.outerHTML));F.onload=function(){var A={canvas:S,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:F},P=new B_w;DBj(P,p);ksj(P,!1,N_P(P));var W=P.modules,y=Object.assign({},TFM,A);W=structuredClone(W);A=W.length;var t,D=(t=y.canvas)!=null?t:document.createElement("canvas");t=y.cellSize;P=y.logo;var k,E=(k=y.logoSize)!=null?k:Math.floor(A/4);A%2!==E%2&&E++;var a=y.logoPadding,q=y.backgroundColor;k=A*t;var w=
y.width,I=0;w&&(I=y.padding,I=Math.ceil(I*k/(w-I*2)),D.style.width=w+"px",D.style.height=w+"px");D.width!==k+I*2&&(D.width=k+I*2);D.height!==k+I*2&&(D.height=k+I*2);k=D.getContext("2d");y.autoClear&&k.clearRect(0,0,D.width,D.height);k.fillStyle=q;k.beginPath();k.roundRect(0,0,D.width,D.height,y.borderRadius);k.fill();k.save();k.translate(I,I);if(P)for(D=Math.floor(A-E)/2-a,a=Math.floor(A+E)/2+a,q=D;q<a;q++)for(w=D;w<a;w++)W[q][w]=!1;for(D=0;D<A;D++)for(a=0;a<A;a++)(D<7&&a<7||D<7&&a>=A-7||D>=A-7&&
a<7)&&(W[D][a]=!1);var Z3;D=(Z3=y.markerColor)!=null?Z3:y.color;dBP(k,0,0,t,D);dBP(k,t*(A-7),0,t,D);dBP(k,0,t*(A-7),t,D);switch(y.cellStyle){case 0:Z3=W;W=Z3.length;D=y.cellSize;k.beginPath();for(a=0;a<W;a++)for(q=0;q<W;q++)Z3[a][q]&&k.rect(a*D,q*D,D,D);k.fillStyle=y.color;k.fill();break;case 1:Z3=W;W=Z3.length;D=y.cellSize;a=D*y.relativeCircleSize;k.fillStyle=y.color;k.beginPath();for(y=0;y<W;y++)for(q=0;q<W;q++)Z3[y][q]&&(k.beginPath(),k.ellipse((y+.5)*D,(q+.5)*D,a/2,a/2,0,0,2*Math.PI),k.fill());
k.fill();break;case 2:Z3=W;W=Z3.length;D=y.cellSize;k.fillStyle=y.color;y=[[1,1],[-1,1],[-1,-1],[1,-1]];k.beginPath();for(a=0;a<W;a++)for(q=0;q<W;q++)if(Z3[a][q])k.roundRect(a*D,q*D,D,D,D/2),a+1<W&&Z3[a+1][q]&&k.rect(a*D+D/2,q*D,D,D),q+1<W&&Z3[a][q+1]&&k.rect(a*D,q*D+D/2,D,D);else{w=a*D+D/2;I=q*D+D/2;for(var vg=0;vg<4;vg++){var yX=_.K(y[vg]),Pg=yX.next().value;yX=yX.next().value;a+Pg>=0&&a+Pg<W&&q+yX>=0&&q+yX<W&&Z3[a+Pg][q]&&Z3[a][q+yX]&&Z3[a+Pg][q+yX]&&(Pg=vg*Math.PI/2,yX=D/2,k.moveTo(w+yX*Math.cos(Pg),
I+yX*Math.sin(Pg)),k.arc(w,I,D/2,Pg,Pg+Math.PI/2,!1),k.lineTo(w+yX*(Math.cos(Pg)-Math.sin(Pg)),I+yX*(Math.cos(Pg)+Math.sin(Pg))),k.lineTo(w+yX*Math.cos(Pg),I+yX*Math.sin(Pg)))}}k.fill()}P&&k.drawImage(P,(A-E)*t/2,(A-E)*t/2,E*t,E*t);k.restore();S.style.removeProperty("display")};
F.src=_.Tu(f);_.UK(O)})};
_.R.hasCommunityPostRenderer=function(){var p,J,S,H;return!!((p=this.data)==null?0:(J=p.header)==null?0:(S=J.sharePanelHeaderRenderer)==null?0:(H=S.communityPost)==null?0:H.communityPostSectionRenderer)};
_.R.onTapClose=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.R.getScreenLayer=function(){return this.screenLayer};
_.R.logSharePanelPage=function(){if(!_.z("enable_share_panel_navigation_logging_fix_on_web")){var p;if((p=this.data)!=null&&p.trackingParams){p=this.data.trackingParams;var J=this.parentClickTrackingParams;J=J?_.Az(J):void 0;var S=_.bC();_.TZ(S,21760,J,{layer:7,parentLayer:0});S.graftServerVe(p,void 0,7);_.rl().dispatch(_.Jk({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
m3.prototype.onDataChanged=m3.prototype.onDataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],m3.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],m3.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],m3.prototype,"data",void 0);_.V([_.N({value:_.Kl("SBOX_INAPPROPRIATE_CANCEL")}),_.Y("design:type",String)],m3.prototype,"closeButtonAriaLabel",void 0);_.V([_.FM("yt-share-panel-header-renderer"),_.Y("design:type",HTMLElement)],m3.prototype,"header",void 0);_.V([_.N({selector:qU$.parentClickTrackingParamsSelector}),_.Y("design:type",String)],m3.prototype,"parentClickTrackingParams",void 0);_.V([_.N(),_.Y("design:type",Object)],m3.prototype,"qrCodeEnabled",void 0);
_.V([_.FM("#scroller"),_.Y("design:type",Object)],m3.prototype,"JSC$20587_scroller",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m3.prototype,"onDataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],m3);
_.l(m3,"ytd-unified-share-panel-renderer",function(){if(fGI!==void 0)return fGI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return fGI=p},{mode:1});var E6r;var FL=function(){var p=_.T.apply(this,arguments)||this;p.modernModal=!0;return p};
_.Q(FL,_.T);FL.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
FL.prototype.computeShouldHideOldButtons=function(){var p;return!((p=this.data)==null?0:p.button)};
_.vh.Object.defineProperties(FL.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var p,J;return(p=this.data)==null?void 0:(J=p.button)==null?void 0:J.buttonRenderer}}});
_.V([_.N(),_.Y("design:type",Object)],FL.prototype,"data",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],FL.prototype,"ytEventForwardingBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],FL.prototype,"modernModal",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FL.prototype,"buttonRendererData",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],FL);
_.l(FL,"ytd-modal-with-title-and-button-renderer",function(){if(E6r!==void 0)return E6r;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return E6r=p},{mode:1});var YUe;var v1=function(){return _.T.apply(this,arguments)||this};
_.Q(v1,_.T);v1.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("page-changed",this.page))};
v1.prototype.pageChangedForBinding=v1.prototype.pageChangedForBinding;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],v1.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],v1.prototype,"page",void 0);_.V([_.bO("page"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v1.prototype,"pageChangedForBinding",null);
_.V([_.gw({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],v1);
_.l(v1,"ytd-account-item-section-header-renderer",function(){if(YUe!==void 0)return YUe;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return YUe=p},{mode:1});var rxy;var OA=function(){return _.T.apply(this,arguments)||this};
_.Q(OA,_.T);OA.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"}}}};
OA.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],OA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.$W),_.Y("design:type",Object)],OA.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],OA.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!1}),_.Y("design:type",Function)],OA.prototype,"onAccountItemTap",void 0);
_.V([_.gw({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],OA);
_.l(OA,"ytd-account-item-section-renderer",function(){if(rxy!==void 0)return rxy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return rxy=p},{mode:1});var jor;var wKe;var xOr=function(){return _.T.apply(this,arguments)||this};
_.Q(xOr,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xOr.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xOr.prototype,"data",void 0);_.V([_.gw({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],xOr);
_.l(xOr,"ytd-accounts-dialog-header-renderer",function(){if(wKe!==void 0)return wKe;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return wKe=p},{mode:1});var cxU;var At=function(){return _.T.apply(this,arguments)||this};
_.Q(At,_.T);At.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],At.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],At.prototype,"data",void 0);_.V([_.gw({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],At);
_.l(At,"ytd-google-account-header-renderer",function(){if(cxU!==void 0)return cxU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return cxU=p},{mode:1});var P1=function(){return _.T.apply(this,arguments)||this};
_.Q(P1,_.T);P1.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"}}}};
P1.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("page-changed",this.page))};
P1.prototype.pageChangedForBinding=P1.prototype.pageChangedForBinding;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],P1.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],P1.prototype,"page",void 0);
_.V([_.bO("page"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P1.prototype,"pageChangedForBinding",null);_.V([_.gw({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],P1);
_.pI()(P1,"ytd-account-section-list-renderer",function(){if(jor===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);jor=p}p=jor;return p},{allowedProps:["data"],
mode:1});var IGN;var z1=function(){var p=_.T.apply(this,arguments)||this;p.enableHandlesAccountMenuSwitcher=_.z("enable_handles_account_menu_switcher");return p};
_.Q(z1,_.T);z1.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
z1.prototype.dataChanged=z1.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],z1.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],z1.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.V([_.FM("#avatar"),_.Y("design:type",Object)],z1.prototype,"avatar",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],z1.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],z1);
_.pI()(z1,"ytd-active-account-header-renderer",function(){if(IGN===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);IGN=p}p=IGN;return p},{allowedProps:["data"],
mode:1});var LFj;var pQe;var $q=function(){return _.T.apply(this,arguments)||this};
_.Q($q,_.T);$q.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
$q.prototype.onBackTap=function(){_.cf(this.hostElement,"yt-menu-back-tapped")};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],$q.prototype,"data",void 0);_.V([_.gw({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],$q);
_.pI()($q,"ytd-simple-menu-header-renderer",function(){if(pQe===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);pQe=p}p=pQe;return p},{allowedProps:["data"],
mode:2});var JpI;var SFl=function(){return _.T.apply(this,arguments)||this};
_.Q(SFl,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],SFl.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],SFl.prototype,"data",void 0);_.V([_.gw({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],SFl);
_.l(SFl,"ytd-comment-video-thumbnail-header-renderer",function(){if(JpI!==void 0)return JpI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return JpI=p},{mode:1});var HcP;var MeI=function(){return _.T.apply(this,arguments)||this};
_.Q(MeI,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],MeI.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],MeI.prototype,"data",void 0);_.V([_.gw({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],MeI);
_.l(MeI,"ytd-abuse-type-selector-renderer",function(){if(HcP!==void 0)return HcP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return HcP=p},{mode:1});var XQ$;var icM=(0,_.dd8)(_.YS.reportChannelAbuse,{isVideoIdSelectedSelector:function(p,J){return J in p.selectedVideoIds},
additionalContextSelector:function(p){return p.additionalContext},
impersonatedChannelUrlSelector:function(p){return p.impersonatedChannelUrl},
reportChannelAbuseSelector:function(p){return p}});var on=function(){return _.T.apply(this,arguments)||this};
_.Q(on,_.T);on.prototype.attached=function(){var p=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){p.additionalContextInput.focusTextInput()})};
on.prototype.handleAdditionalContextChanged=function(){var p=this;_.uO(this,"ytd-report-channel-additional-context-update",function(){p.ytdReduxBehavior.dispatch(_.Jk({type:"ADDITIONAL_CONTEXT_UPDATED",payload:p.additionalContext}))},300)};
on.prototype.updateAdditionalContextFromBinding=function(p){this.additionalContext=p.detail.value};
on.prototype.handleAdditionalContextChanged=on.prototype.handleAdditionalContextChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],on.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",String)],on.prototype,"additionalContext",void 0);_.V([_.N({selector:icM.additionalContextSelector}),_.Y("design:type",String)],on.prototype,"additionalContextRedux",void 0);_.V([_.N(),_.Y("design:type",Object)],on.prototype,"data",void 0);
_.V([_.FM("yt-text-input-form-field-renderer"),_.Y("design:type",Object)],on.prototype,"additionalContextInput",void 0);_.V([_.bO("additionalContext"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],on.prototype,"handleAdditionalContextChanged",null);_.V([_.gw({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],on);
_.l(on,"ytd-report-channel-modal-additional-context-renderer",function(){if(XQ$!==void 0)return XQ$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return XQ$=p},{mode:1});var Rxe;var eM=function(){var p=_.T.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};
_.Q(eM,_.T);_.R=eM.prototype;_.R.computeNextButtonData=function(p,J,S){var H={};J&&(H.navigationEndpoint=J);S&&(H.serviceEndpoint=S);p&&p.buttonRenderer&&_.T6.extend(H,p.buttonRenderer);return H};
_.R.handleReportChannelModalDisableNextButtonAction=function(p){this.setNextButtonIsDisabled(p)};
_.R.handleReportFormEndpointUpdateAction=function(p){this.setNextButtonIsDisabled(!!p.disableSubmitButton);this.resetEndpointData();p.submitEndpoint?this.submitEndpoint=p.submitEndpoint:p.submitNavigationEndpoint&&(this.navigationEndpoint=p.submitNavigationEndpoint)};
_.R.handleSignalActionSubmitForm=function(){var p,J=Object.keys(((p=this.reportChannelAbuseForm)==null?void 0:p.selectedVideoIds)||{}),S;p=((S=this.reportChannelAbuseForm)==null?void 0:S.additionalContext)||"";var H;S=((H=this.reportChannelAbuseForm)==null?void 0:H.impersonatedChannelUrl)||"";var M;if((M=this.data)==null?0:M.submitEndpoint){J={impersonated_channel_url:S,text:p,video_ids:J};var X;_.vO().resolve(_.Ov).resolveCommand((X=this.data)==null?void 0:X.submitEndpoint,{form:Object.assign({},
J,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.R.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.R.onYtServiceRequestError=function(p){this.setNextButtonIsDisabled(!1);_.Vh(this.hostElement,p.detail.error.message)};
_.R.setNextButtonIsDisabled=function(p){this.set("data.nextButton.buttonRenderer.isDisabled",p)};
_.R.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
eM.prototype.onYtServiceRequestError=eM.prototype.onYtServiceRequestError;eM.prototype.onYtServiceRequestCompleted=eM.prototype.onYtServiceRequestCompleted;_.V([_.N(),_.Y("design:type",Object)],eM.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],eM.prototype,"nextButtonDisabled",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],eM.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],eM.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],eM.prototype,"submitEndpoint",void 0);_.V([_.N(),_.Y("design:type",Object)],eM.prototype,"navigationEndpoint",void 0);_.V([_.N({selector:icM.reportChannelAbuseSelector}),_.Y("design:type",Object)],eM.prototype,"reportChannelAbuseForm",void 0);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],eM.prototype,"onYtServiceRequestCompleted",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],eM.prototype,"onYtServiceRequestError",null);_.V([_.gw({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],eM);
_.l(eM,"ytd-report-channel-modal-footer-renderer",function(){if(Rxe!==void 0)return Rxe;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Rxe=p},{mode:1});var KwN;var W1=function(){var p=_.T.apply(this,arguments)||this;p.boundOnTapDismissButton=function(){p.closePopup()};
return p};
_.Q(W1,_.T);W1.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
W1.prototype.handleDataChanged=function(){_.nH(this.hostElement)};
W1.prototype.closePopup=function(){_.IV(this.hostElement,"yt-close-popup-action")};
W1.prototype.handleDataChanged=W1.prototype.handleDataChanged;_.V([_.N(),_.Y("design:type",Object)],W1.prototype,"boundOnTapDismissButton",void 0);_.V([_.N(),_.Y("design:type",Object)],W1.prototype,"data",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W1.prototype,"handleDataChanged",null);_.V([_.gw({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],W1);
_.l(W1,"ytd-report-channel-modal-header-renderer",function(){if(KwN!==void 0)return KwN;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return KwN=p},{mode:1});var ZcM;var QP=function(){var p=_.T.apply(this,arguments)||this;p.autoValidate=!1;p.invalid=!1;p.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return p};
_.Q(QP,_.T);_.R=QP.prototype;_.R.attached=function(){var p=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){p.channelUrlInput.focusTextInput()})};
_.R.disableNextButton=function(p){_.IV(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[p])};
_.R.handleImpersonatedChannelUrlChanged=function(){var p=this;this.disableNextButton(!0);this.invalid=!1;_.uO(this,"ytd-report-channel-impersonated-channel-update",function(){var J=p.impersonatedChannelUrl.trim();p.ytdReduxBehavior.dispatch(_.Jk({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:J}));var S;((S=p.data)==null?0:S.submitEndpoint)&&J&&_.vO().resolve(_.Ov).resolveCommand(p.data.submitEndpoint,{form:{impersonated_channel_url:J,element:p.hostElement}})},500)};
_.R.handleModifyReportFormCommand=function(p){this.invalid=this.get("modifyReportFormCommand.action",p)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.R.updateInvalidFromBinding=function(p){this.invalid=p.detail.value};
_.R.updateImpersonatedChannelUrlFromBinding=function(p){this.impersonatedChannelUrl=p.detail.value};
QP.prototype.handleImpersonatedChannelUrlChanged=QP.prototype.handleImpersonatedChannelUrlChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],QP.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],QP.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],QP.prototype,"autoValidate",void 0);_.V([_.N(),_.Y("design:type",Object)],QP.prototype,"invalid",void 0);
_.V([_.N(),_.Y("design:type",String)],QP.prototype,"impersonatedChannelUrl",void 0);_.V([_.N({selector:icM.impersonatedChannelUrlSelector}),_.Y("design:type",String)],QP.prototype,"impersonatedChannelUrlRedux",void 0);_.V([_.N(),_.Y("design:type",Object)],QP.prototype,"data",void 0);_.V([_.FM("#text-input"),_.Y("design:type",Object)],QP.prototype,"channelUrlInput",void 0);
_.V([_.bO("impersonatedChannelUrl"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QP.prototype,"handleImpersonatedChannelUrlChanged",null);_.V([_.gw({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],QP);
_.l(QP,"ytd-report-channel-modal-impersonation-renderer",function(){if(ZcM!==void 0)return ZcM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return ZcM=p},{mode:1});var ngP;var GBf;var Cs=function(){return _.T.apply(this,arguments)||this};
_.Q(Cs,_.T);Cs.prototype.onCheckboxToggled=function(p){var J,S,H=(S=_.e((J=this.data)==null?void 0:J.video,_.GZ))==null?void 0:S.videoId;H&&this.ytdReduxBehavior.dispatch(p.target.checked?_.Jk({type:"VIDEO_SELECTED",payload:H}):_.Jk({type:"VIDEO_UNSELECTED",payload:H}))};
Cs.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.vh.Object.defineProperties(Cs.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var p,J=(p=this.data)==null?void 0:p.video;if(!J)return{};var S;p=(S=_.e(J,_.GZ))==null?void 0:S.navigationEndpoint;if(!p)return J;_.e(p==null?void 0:p.commandMetadata,_.i7)&&(_.e(p.commandMetadata,_.i7).ignoreNavigation=!0);return J}}});
_.V([_.N({reflectToAttribute:!0,selector:icM.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.Y("design:type",Boolean)],Cs.prototype,"checked",void 0);_.V([_.N(),_.Y("design:type",Object)],Cs.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cs.prototype,"video",null);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Cs.prototype,"ytdReduxBehavior",void 0);_.V([_.gw({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Cs);
_.l(Cs,"ytd-selectable-video-renderer",function(){if(GBf!==void 0)return GBf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return GBf=p},{mode:1});var yP=function(){var p=_.T.apply(this,arguments)||this;p.monitorScroll=!0;return p};
_.Q(yP,_.T);yP.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yP.prototype,"data",void 0);_.V([_.gw({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],yP);
_.l(yP,"ytd-selectable-video-list-renderer",function(){if(ngP!==void 0)return ngP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return ngP=p},{mode:1});var bcI;_.QI("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var B1=function(){return _.T.apply(this,arguments)||this};
_.Q(B1,_.T);B1.prototype.onChange=function(p){if(p=_.Yt(p).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.z("kevlar_command_handler_migration_killswitch"))_.JP(this.hostElement,p,this.hostElement);else{p=_.K(p);for(var J=p.next();!J.done;J=p.next())this.ytComponentBehavior.resolveCommand(J.value)}};
B1.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
B1.prototype.updateDataToggledFromBinding=function(p){this.set("data.toggled",p.detail.value)};
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],B1.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],B1.prototype,"data",void 0);_.V([_.N({computed:"isEnabled(data)"}),_.Y("design:type",Boolean)],B1.prototype,"enabled",void 0);_.V([_.gw({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],B1);
_.l(B1,"ytd-toggle-item-renderer",function(){if(bcI!==void 0)return bcI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return bcI=p},{mode:1});var muw;var FwI;var vgN;var UA=function(){var p=_.T.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};
_.Q(UA,_.T);UA.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}}}}}};
UA.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
UA.prototype.onSubmitButtonClick=function(){var p;((p=this.data)==null?0:p.submitEndpoint)&&!_.z("enable_ytc_refunds_submit_form_signal_action")&&_.pl(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
UA.prototype.handleSignalActionSubmitForm=function(){var p;((p=this.data)==null?0:p.submitEndpoint)&&_.pl(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.vh.Object.defineProperties(UA.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.hiddenByDefault)&&!this.setVisible}}});
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],UA.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],UA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],UA.prototype,"setVisible",void 0);_.V([_.N(),_.Y("design:type",Object)],UA.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],UA.prototype,"surveyFeedbackData",void 0);_.V([_.N(),_.Y("design:type",Object)],UA.prototype,"boundOnSubmitButtonClick",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data","setVisible"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UA.prototype,"visibilityHidden",null);_.V([_.sD({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],UA);
_.l(UA,"yt-flow-footer-renderer",function(){if(vgN===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;FwI===void 0&&(FwI=document.createElement("template"));var H=FwI;S.call(J,H.content.cloneNode(!0),p.content.firstChild);vgN=p}p=vgN;return p},{mode:2});var fMl=(0,_.dd8)(_.YS.ypc,{surveyFeedbackDataSelector:function(p){return p.surveyFeedbackData}});var sA=function(){return _.T.apply(this,arguments)||this};
_.Q(sA,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],sA.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],sA.prototype,"data",void 0);_.V([_.N({selector:fMl.surveyFeedbackDataSelector}),_.Y("design:type",Object)],sA.prototype,"surveyFeedbackData",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],sA);
_.l(sA,"ytd-flow-footer-renderer",function(){if(muw!==void 0)return muw;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return muw=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var Ocf;var Ape;var gZ=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return p};
_.Q(gZ,_.T);_.R=gZ.prototype;_.R.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Cb("multiPageMenuSectionItems")}}};
_.R.handleHideEnclosingAction_=function(p){if(this.data&&this.data.items)for(var J=0;J<this.data.items.length;J++){var S=this.data.items[J].notificationRenderer;if(S&&S.notificationId==p.hideEnclosingAction.notificationId){this.splice("data.items",J,1);_.IV(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.R.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.iO(this.hostElement,"hidden",!0)};
_.R.updateMenu_=function(p){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&p&&!p.doNotRefreshInbox){p=this.data.continuations;for(var J=0;J<p.length;J++)if(p[J].invalidationContinuationData){var S=void 0;var H=(S=p[J].invalidationContinuationData)==null?void 0:S.continuation;break}p=_.T6.clone(this.data.continuationUpdateEndpoint||null);p.continuation=H;p.click_tracking_params=this.data.trackingParams;_.pl(this.hostElement,[p])}};
_.R.onServiceRequestCompleted_=function(p,J){if(this.data&&(p=J.actions)){J=0;for(var S=p.length;J<S;J++){var H=_.e(p[J],_.lR8);if(!H)break;if((H.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||H.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&H.continuationItems&&this.data.items){var M=this.data.items.length-1;this.data.items[M].continuationItemRenderer&&(H=["data.items",M,1].concat(H.continuationItems),this.splice.apply(this,H))}}}};
gZ.prototype.onServiceRequestCompleted_=gZ.prototype.onServiceRequestCompleted_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],gZ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],gZ.prototype,"data",void 0);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],gZ.prototype,"onServiceRequestCompleted_",null);_.V([_.sD({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],gZ);
_.pI()(gZ,"yt-multi-page-menu-section-renderer",function(){if(Ape===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Ocf===void 0&&(Ocf=document.createElement("template"));var H=Ocf;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Ape=p}p=Ape;return p},{allowedProps:["data"],
mode:2});var PxI;var zxI;var tt=function(){return _.T.apply(this,arguments)||this};
_.Q(tt,_.T);tt.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.vh.Object.defineProperties(tt.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}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],tt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],tt.prototype,"data",void 0);_.V([_.U("data.progress"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tt.prototype,"showProgressBar",null);
_.V([_.U("data.progress"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],tt.prototype,"progress",null);_.V([_.sD({is:"yt-flow-header-renderer",disableElementRegistration:!0})],tt);
_.l(tt,"yt-flow-header-renderer",function(){if(zxI===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;PxI===void 0&&(PxI=document.createElement("template"));var H=PxI;S.call(J,H.content.cloneNode(!0),p.content.firstChild);zxI=p}p=zxI;return p},{mode:2});var $uP;var ogy;var ht=function(){return _.T.apply(this,arguments)||this};
_.Q(ht,_.T);ht.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ht.prototype,"data",void 0);_.V([_.sD({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],ht);
_.l(ht,"yt-post-confirmation-flow-step-renderer",function(){if(ogy===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;$uP===void 0&&($uP=document.createElement("template"));var H=$uP;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ogy=p}p=ogy;return p},{mode:2});var ex$;var Wwl;var DC=function(){return _.T.apply(this,arguments)||this};
_.Q(DC,_.T);
DC.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"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],DC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],DC.prototype,"data",void 0);_.V([_.sD({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],DC);
_.l(DC,"yt-refund-confirmation-flow-step-renderer",function(){if(Wwl===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;ex$===void 0&&(ex$=document.createElement("template"));var H=ex$;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Wwl=p}p=Wwl;return p},{mode:2});var QUp=_.d(function(p){var J=p.data;return _.m("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.m("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.m(_.a4,{data:function(){return{thumbnails:[{url:J().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.m("div",{class:"profileBadgeViewModelContent"},_.m("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return J().badgeDesc}),_.m(_.v,{cond:function(){return J().badgeSubtitle},
then:function(){return _.m("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return J().badgeSubtitle})}})))},"nj");
QUp.idomCompat=!0;var CxU=_.d(function(p){var J=p.data;return _.m("yt-comment-interaction-view-model",{el:_.Y2(_.sl(function(){return J().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.m("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return J().onTapA11yLabel},
"on:keydown":_.d2X(),tabindex:0},_.m("div",{class:"ytCommentInteractionViewModelHeader"},_.m("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return J().headerPrefix},' "',function(){return J().videoTitle}),_.m("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.m("div",{class:"ytCommentInteractionViewModelContent"},_.m("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return J().commentContent}),_.m("div",{class:"ytCommentInteractionViewModelChevron"},
_.m(_.a4,{data:function(){return{thumbnails:[{url:J().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"oj");
CxU.idomCompat=!0;var ypf=_.d(function(p){var J=p.data;return _.m("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.m(_.AH,{data:function(){return J().avatar}},{avatarViewModel:_.iF}),_.m("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return J().channelName}))},"pj");
ypf.idomCompat=!0;var tep=_.d(function(p){var J=p.data;p={};return _.m("yt-profile-info-view-model",{class:_.XB("ytProfileInfoViewModelHost",(p.ytProfileInfoViewModelWithVideoShelf=function(){return J().videosHorizontalShelf},p))},_.m(BJP,{profileInfo:J}),_.m(_.AH,{data:function(){return J().videosHorizontalShelf}},{horizontalShelfViewModel:function(S){return _.m("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.m(_.P8,{data:S.data}))}}),_.m(_.v,{cond:function(){return J().comments},
then:function(){return _.m(UuP,{profileInfo:J})}}),_.m(_.v,{cond:function(){return J().sharedSubscriptionsTitle},
then:function(){return _.m(_.v,{cond:function(){return J().subscriptionsAccessButtonCommand},
then:function(){return _.m(sUI,{profileInfo:J})},
else:function(){return _.m(ggl,{profileInfo:J})}})}}))},"qj");
tep.idomCompat=!0;var UuP=_.d(function(p){var J=p.profileInfo;return _.m("div",{class:"ytProfileInfoViewModelActivity"},_.m("div",{class:"ytProfileInfoViewModelHeader"},_.m("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return J().commentsInteractionTitle})),_.m(_.AH,{data:function(){return J().comments}},{commentInteractionViewModel:function(S){return _.m("div",{class:"ytProfileInfoViewModelActivity"},_.m(CxU,{data:S.data}))}}))},"rj"),sUI=_.d(function(p){var J=p.profileInfo;
return _.m("div",{class:"ytProfileInfoViewModelSubSection"},_.m("div",{class:"ytProfileInfoViewModelSubHeader"},_.m(_.yD,{command:function(){return J().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.m("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return J().sharedSubscriptionsTitle}),_.m("div",null,_.m(_.AH,{data:function(){return J().subscriptionsAccessButton}},{buttonViewModel:_.D0})))),_.m(hxN,{sharedSubscriptions:function(){var S;
return((S=J().sharedSubscriptions)==null?void 0:S.slice(0,5))||[]}}))},"sj"),ggl=_.d(function(p){var J=p.profileInfo;
return _.m("div",{class:"ytProfileInfoViewModelSubSection"},_.m("div",{class:"ytProfileInfoViewModelSubHeader"},_.m("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return J().sharedSubscriptionsTitle})),_.m(hxN,{sharedSubscriptions:function(){var S;
return((S=J().sharedSubscriptions)==null?void 0:S.slice(0,5))||[]}}))},"tj"),hxN=_.d(function(p){return _.m("div",{class:"ytProfileInfoViewModelSubs"},_.m(_.AH,{data:p.sharedSubscriptions},{sharedSubscriptionViewModel:function(J){return _.m("div",{class:"ytProfileInfoViewModelSub"},_.m(ypf,{data:J.data}))}}))},"uj"),BJP=_.d(function(p){var J=p.profileInfo;
return _.m("div",{class:"ytProfileInfoViewModelActivity"},_.m(_.dY,{each:function(){return[J().profileBadgeInfoYtWide,J().profileBadgeInfoChannelWide].filter(function(S){return!!S})},
keyBy:"INDEX"},function(S){return _.m(_.fV,null,_.m("div",{class:"ytProfileInfoViewModelHeader"},_.m("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return S().profileSectionTitle}),_.m("div",{class:"ytProfileInfoViewModelSectionDesc"},_.m("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var H;
return(H=S().commentBadge)==null?void 0:H.commentDesc}),_.m(_.v,{cond:function(){var H;
return(H=S().commentBadge)==null?void 0:H.blackHeartDesc},
then:function(){return _.m("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.m("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.m(_.a4,{data:function(){var H;
return{thumbnails:[{url:(H=S().commentBadge)==null?void 0:H.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.m("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var H;return(H=S().commentBadge)==null?void 0:H.blackHeartDesc}))),_.m("div",{class:"ytProfileInfoViewModelBadge"},_.m(_.dY,{each:function(){return S().badges||[]}},function(H){return _.m(QUp,{data:H})})))}))},"vj");var DuP=_.d(function(p){var J=p.data;var S=function(){return J().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.m("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.m(_.AH,{data:function(){return J().profileIdentityInfo}},{profileIdentityInfoViewModel:function(H){return _.m(_.P7N,{data:H.data,
hideDivider:S,isChannelInfoCard:S})},
profileInfoViewModel:tep}),_.m(_.AH,{data:function(){return J().profileInfo}},{profileIdentityInfoViewModel:_.P7N,
profileInfoViewModel:tep}))},"wj");
DuP.idomCompat=!0;_.ci(DuP,"yt-profile-card-view-model",{props:{data:_.fD}});var kq=function(){var p=_.T.apply(this,arguments)||this;p.enableFocusFix=_.z("music_web_enable_focus_on_setting_menu_fix")&&_.wY("IS_MOBILE_WEB",!1);p.covered=!1;p.hideMenu=!1;p.isCommentNotificationOnProfileCard=!1;p.scrolledByTouch=!1;p.disableBackdropFilter=_.z("web_disable_backdrop_filter");p.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return p};
_.Q(kq,_.T);_.R=kq.prototype;
_.R.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"}}}};
_.R.ready=function(){var p=this;this.JSC$20688_containerElement.addEventListener("scroll",function(){p.ytRendererBehavior.markDirty()})};
_.R.attributeChanged=function(p,J){p==="menu-style"&&_.IV(this.hostElement,"yt-multi-page-menu-closed-action",[J])};
_.R.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.n3(this,this.focusOnStampFinished))};
_.R.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.n3(this,this.focusOnStampFinished))};
_.R.reset=function(){this.closeJobId&&(_.wg.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.R.focusOnStampFinished=function(p){p.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.n3(this,this.focusOnStampFinished)),this.doFocus())};
_.R.doFocus=function(){var p=_.qjn(this.sectionsElement);p.length&&p[0].focus()};
_.R.computeMenuStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.R.computeIsCommentNotificationOnProfileCard=function(p){return _.z("enable_profile_cards_on_comments")&&p.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.R.computeHideMenu=function(p,J){return p||!(!J||!J.showLoadingSpinner)};
_.R.onPopupClosed=function(){this.isPopUpOpen=!1;_.IV(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.R.onPopupOpened=function(p,J){this.isPopUpOpen=!0;J.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.cf(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Jk({type:"CHANNEL_REPORT_RESET"})))};
_.R.onYtNavigate=function(p,J){this.shouldCloseOnNavigateEvent(J.endpoint)&&_.IV(this.hostElement,"yt-close-all-popups-action")};
_.R.handleEndpoint=function(p){p=_.e(p,_.Ml);!this.isCommentNotificationOnProfileCard&&p&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20688_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.R.handleActions=function(p){for(var J=0,S=p.length;J<S;J++){var H=_.e(p[J],fhp);H&&this.handleGetMultiPageMenuAction(H);(H=_.e(p[J],_.lR8))&&this.handleAppendContinuationItemsAction(H)}};
_.R.onServiceRequestSentOrCompleted=function(p,J){p.detail&&p.detail.endpoint&&this.handleEndpoint(p.detail.endpoint);J.actions&&this.handleActions(J.actions)};
_.R.handleGetMultiPageMenuAction=function(p){var J=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Jn(this.submenuElement).appendChild(J);(p=p.menu.multiPageMenuRenderer)&&this.logSubmenu(p);J.data=p;J.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.R.handleAppendContinuationItemsAction=function(p){if(this.data&&p.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&p.continuationItems&&this.data.sections){var J=this.data.sections.length-1;this.data.sections[J].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),J--);if(this.data.sections[J].multiPageMenuNotificationSectionRenderer&&p.continuationItems){p=_.K(p==null?void 0:p.continuationItems);for(var S=p.next();!S.done;S=p.next())if(S=S.value,_.e(S,BiM)){var H=
void 0,M=void 0,X=void 0,Z=void 0,n=void 0;((H=this)==null?0:(M=H.data)==null?0:(X=M.sections)==null?0:(Z=X[J])==null?0:(n=Z.multiPageMenuNotificationSectionRenderer)==null?0:n.items)&&this.push("data.sections."+J+".multiPageMenuNotificationSectionRenderer.items",S)}else if(_.e(S,_.sK8)||_.e(S,_.js))this.push("data.sections",S),J++}}};
_.R.logSubmenu=function(p){if(!_.z("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var J=this.ytRendererBehavior.getScreenLayer(),S=_.C1(J),H=_.Wf(J);if((p=p.trackingParams)&&S&&H){var M=_.Az(p);_.z("combine_ve_grafts")?_.bC().graftServerVe(p,H,J):_.kO(S,H,M)}}};
_.R.emptySubmenuContainer=function(){for(var p=_.Jn(this.submenuElement);p.firstChild;)p.removeChild(p.firstChild)};
_.R.onMenuBackTap=function(p){_.cf(this.hostElement,"yt-submenu-closed");p.stopPropagation()};
_.R.onSubmenuClosed=function(p){_.Yt(p)!==this.hostElement&&(this.covered=!1,_.cf(this.hostElement,"yt-refit"),p.stopPropagation())};
_.R.onRetrieveLocation=function(p,J){J.hasComments&&(J.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),p.stopPropagation())};
_.R.shouldCloseOnNavigateEvent=function(p){if(!p)return!0;if(_.e(p,_.nNU)||_.e(p,_.G_m)||_.e(p,_.ZDM)||_.e(p,_.My))return!1;var J;return((J=_.e(p==null?void 0:p.commandMetadata,_.i7))==null?0:J.ignoreNavigation)?!1:!0};
_.R.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.R.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.R.refitAfterRender=function(){var p=this;_.mN(this,function(){_.cf(p.hostElement,"yt-refit")})};
kq.prototype.refitAfterRender=kq.prototype.refitAfterRender;kq.prototype.onRetrieveLocation=kq.prototype.onRetrieveLocation;kq.prototype.onSubmenuClosed=kq.prototype.onSubmenuClosed;kq.prototype.onMenuBackTap=kq.prototype.onMenuBackTap;kq.prototype.onServiceRequestSentOrCompleted=kq.prototype.onServiceRequestSentOrCompleted;kq.prototype.onYtNavigate=kq.prototype.onYtNavigate;kq.prototype.onPopupOpened=kq.prototype.onPopupOpened;kq.prototype.onPopupClosed=kq.prototype.onPopupClosed;
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],kq.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],kq.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],kq.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],kq.prototype,"enableFocusFix",void 0);_.V([_.N(),_.Y("design:type",Object)],kq.prototype,"covered",void 0);_.V([_.N({computed:"computeHideMenu(covered, data)"}),_.Y("design:type",Object)],kq.prototype,"hideMenu",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.Y("design:type",String)],kq.prototype,"menuStyle",void 0);
_.V([_.N({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.Y("design:type",Object)],kq.prototype,"isCommentNotificationOnProfileCard",void 0);_.V([_.N(),_.Y("design:type",Boolean)],kq.prototype,"isPopUpOpen",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],kq.prototype,"scrolledByTouch",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],kq.prototype,"disableBackdropFilter",void 0);
_.V([_.FM("#sections"),_.Y("design:type",HTMLElement)],kq.prototype,"sectionsElement",void 0);_.V([_.FM("#spinner"),_.Y("design:type",HTMLElement)],kq.prototype,"spinnerElement",void 0);_.V([_.FM("#header"),_.Y("design:type",HTMLElement)],kq.prototype,"headerElement",void 0);_.V([_.FM("#container"),_.Y("design:type",HTMLElement)],kq.prototype,"JSC$20688_containerElement",void 0);_.V([_.FM("#submenu"),_.Y("design:type",HTMLElement)],kq.prototype,"submenuElement",void 0);
_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kq.prototype,"onPopupClosed",null);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],kq.prototype,"onPopupOpened",null);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],kq.prototype,"onYtNavigate",null);
_.V([_.GI("yt-service-request-completed"),_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],kq.prototype,"onServiceRequestSentOrCompleted",null);_.V([_.GI("yt-menu-back-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],kq.prototype,"onMenuBackTap",null);
_.V([_.GI("yt-submenu-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],kq.prototype,"onSubmenuClosed",null);_.V([_.GI("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],kq.prototype,"onRetrieveLocation",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kq.prototype,"refitAfterRender",null);
_.V([_.gw({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],kq);
_.l(kq,"ytd-multi-page-menu-renderer",function(){if(LFj!==void 0)return LFj;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return LFj=p},{mode:1});var kBP;var NK=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return p};
_.Q(NK,_.T);_.R=NK.prototype;_.R.created=function(){this.showTooltips=!0};
_.R.computeAccessibility_=function(p){return this.get("accessibility.accessibilityData",p)||null};
_.R.onTap=function(){var p=_.L1(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(p&&p.length===1&&p[0])_.IV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var J;if((J=this.data)==null?0:J.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var S;((S=this.data)==null?0:S.menuRequest)&&_.pl(this.hostElement,[this.data.menuRequest])}}};
_.R.handleTopbarMenuClosedAction=function(p){var J,S;(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)===((J=this.data)==null?void 0:(S=J.icon)==null?void 0:S.iconType)&&this.toggleIconState(!1)};
_.R.toggleIconState=function(p){_.z("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=p)};
_.R.handleUpdateTopbarAvatarAction=function(p){var J;p=(J=_.e(p,ZBe))==null?void 0:J.avatarUrl;var S,H;J=(S=this.data)==null?void 0:(H=S.avatar)==null?void 0:H.thumbnails;p&&J&&(S={thumbnails:[Object.assign({},J[0],{url:p})]},this.set("data.avatar",S))};
_.vh.Object.defineProperties(NK.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Jn(this.hostElement).querySelector("#button")}}});
NK.prototype.onTap=NK.prototype.onTap;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],NK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],NK.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.BR4.YtButtonBehavior),_.Y("design:type",Object)],NK.prototype,"ytButtonBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],NK.prototype,"data",void 0);
_.V([_.FM("yt-icon-button#button"),_.Y("design:type",Object)],NK.prototype,"iconButton",void 0);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NK.prototype,"onTap",null);_.V([_.gw({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],NK);
_.pI()(NK,"ytd-topbar-menu-button-renderer",function(){if(kBP===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);kBP=p}p=kBP;return p},{allowedProps:["data"],
mode:1});var NJr;var T1=function(){return _.T.apply(this,arguments)||this};
_.Q(T1,_.T);T1.prototype.getSelected=function(){return this.reasons.selected};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],T1.prototype,"data",void 0);_.V([_.FM("#reasons"),_.Y("design:type",Object)],T1.prototype,"reasons",void 0);_.V([_.gw({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],T1);
_.l(T1,"ytd-ad-feedback-content",function(){if(NJr!==void 0)return NJr;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return NJr=p},{mode:1});var TJf;var dZ=function(){return _.T.apply(this,arguments)||this};
_.Q(dZ,_.T);_.R=dZ.prototype;_.R.onPopupOpened=function(){_.IV(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.R.computeConfirmButton=function(p){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:p.confirmLabel}};
_.R.computeCancelButton=function(p){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:p.cancelLabel}};
_.R.onConfirmTap=function(){var p=this.content.getSelected();p!==void 0&&(p=this.data.reasons[p].endpoint)&&(_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}}),_.IV(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.R.sendFeedbackSubmitToastAction=function(){var p;(p=this.data)!=null&&p.completionMessage&&(p=_.wl(this.data.completionMessage),_.IV(this.hostElement,"yt-open-popup-action",[p,this]))};
_.R.onCancelTap=function(){_.IV(this.hostElement,"yt-close-popup-action")};
dZ.prototype.onPopupOpened=dZ.prototype.onPopupOpened;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],dZ.prototype,"data",void 0);_.V([_.FM("#content"),_.Y("design:type",Object)],dZ.prototype,"content",void 0);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dZ.prototype,"onPopupOpened",null);
_.V([_.gw({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],dZ);
_.l(dZ,"ytd-ad-feedback-renderer",function(){if(TJf!==void 0)return TJf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return TJf=p},{mode:1});var du$;var uop=function(){return _.T.apply(this,arguments)||this};
_.Q(uop,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],uop.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],uop.prototype,"data",void 0);_.V([_.gw({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],uop);
_.l(uop,"ytd-ad-info-dialog-content",function(){if(du$!==void 0)return du$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return du$=p},{mode:1});var lMI;var uQ=function(){return _.T.apply(this,arguments)||this};
_.Q(uQ,_.T);uQ.prototype.computeConfirmButton=function(p){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:p.confirmLabel}};
uQ.prototype.onConfirmTap=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
uQ.prototype.computeShouldShowTitle=function(){var p;return!((p=this.data)==null||!p.title)};
uQ.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.vO().resolve(_.Ov).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
uQ.prototype.onPopupClosed=uQ.prototype.onPopupClosed;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],uQ.prototype,"data",void 0);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],uQ.prototype,"onPopupClosed",null);_.V([_.gw({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],uQ);
_.l(uQ,"ytd-ad-info-dialog-renderer",function(){if(lMI!==void 0)return lMI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return lMI=p},{mode:1});var VeN;var lQ=function(){var p=_.T.apply(this,arguments)||this;p.actionButtonClass="action-button";p.dismissButtonId="dismiss-button";p.dialogDismiss=!0;return p};
_.Q(lQ,_.T);_.R=lQ.prototype;_.R.computeInPlayer=function(p){return(p==null?void 0:p.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.R.computedLogo=function(){var p,J;return this.isDarkTheme()?(p=this.data)==null?void 0:p.logoDark:(J=this.data)==null?void 0:J.logo};
_.R.computedHeaderImage=function(){var p,J;return this.isDarkTheme()?(p=this.data)==null?void 0:p.headerImageDark:(J=this.data)==null?void 0:J.headerImage};
_.R.computeLogoIconId=function(){var p,J,S,H=(p=this.computedLogo())==null?void 0:(J=p.sources)==null?void 0:(S=J[0])==null?void 0:S.height;return H&&H%31===0?"logo-icon-with-padding":"logo-icon"};
_.R.computeLogoIconHeight=function(){var p,J,S,H=(p=this.computedLogo())==null?void 0:(J=p.sources)==null?void 0:(S=J[0])==null?void 0:S.height;return H&&H%31===0?"31":"24"};
_.R.onPopupClosed=function(){_.vO().resolve(_.HQ).dispose()};
_.R.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.R.onShow=function(){this.inPlayer&&_.Zc(6);this.titleElement.focus()};
_.R.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var p=0;p<this.data.impressionEndpoints.length;p++){var J=_.e(this.data.impressionEndpoints[p],_.Ua);J&&this.ytComponentBehavior.resolveCommand(J)}};
_.R.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.IV(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.vh.Object.defineProperties(lQ.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var p,J;return!((p=this.data)==null||!p.headerImageDark)&&!((J=this.data)==null||!J.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.secondaryButton)}}});
lQ.prototype.onPopupClosed=lQ.prototype.onPopupClosed;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],lQ.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.G_.YtVisibilityBehavior),_.Y("design:type",Object)],lQ.prototype,"ytVisibilityBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],lQ.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],lQ.prototype,"actionButtonClass",void 0);_.V([_.N(),_.Y("design:type",Object)],lQ.prototype,"dismissButtonId",void 0);_.V([_.N(),_.Y("design:type",Object)],lQ.prototype,"dialogDismiss",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],lQ.prototype,"hasHeaderImage",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],lQ.prototype,"hasPremiumButton",null);
_.V([_.N({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.Y("design:type",Boolean)],lQ.prototype,"inPlayer",void 0);_.V([_.FM("#dismiss-button"),_.Y("design:type",HTMLElement)],lQ.prototype,"dismissButton",void 0);_.V([_.FM("#title"),_.Y("design:type",HTMLElement)],lQ.prototype,"titleElement",void 0);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],lQ.prototype,"onPopupClosed",null);
_.V([_.gw({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],lQ);
_.l(lQ,"ytd-enforcement-message-view-model",function(){if(VeN!==void 0)return VeN;var p=document.createElement("template");_.C(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="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return VeN=p},{mode:1});var qFj;var aMI;var VP=function(){var p=_.T.apply(this,arguments)||this;p.TEST_ONLY={immediateValidation:function(){p.immediateValidation()},
onValidationResponse:function(J){p.onValidationResponse(J)},
onGenerateHandleFromNameResponse:function(J){p.onGenerateHandleFromNameResponse(J)}};
return p};
_.Q(VP,_.T);_.R=VP.prototype;_.R.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.R.validate=function(){this.immediateValidation()};
_.R.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.R.setHandleInputValue=function(p){this.handleDir=this.getHandleDir(p);this.handleInput.value=p;this.validationState={status:"PENDING"};this.immediateValidation()};
_.R.getHandleDir=function(p){var J=p===""&&!1;return(J=_.il8.test.call(_.il8,p))?"rtl":"ltr"};
_.R.onDataChanged=function(){var p,J;this.handleDir=this.getHandleDir((J=(p=this.data)==null?void 0:p.handle)!=null?J:"");var S;this.validationState=((S=this.data)==null?0:S.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var H;((H=this.data)==null?0:H.validateOnInit)&&this.immediateValidation()};
_.R.stopPropagation=function(p){p.stopPropagation()};
_.R.onInput=function(){var p;this.handleDir=this.getHandleDir((p=this.handleInput.value)!=null?p:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.R.onFocusout=function(p){this.handleInput.contains(p.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.R.delayedValidation=function(){var p,J;this.debouncedValidation((J=(p=this.data)==null?void 0:p.validationDelayMs)!=null?J:1E3)};
_.R.immediateValidation=function(){this.debouncedValidation(0)};
_.R.debouncedValidation=function(p){var J=this;_.uO(this,"debouncedValidation",function(){var S,H=J.staticValidation((S=J.handleInput.value)!=null?S:"");if(H!==void 0)J.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:H};else{var M;if((M=J.data)!=null&&M.validateChannelHandleCommand){J.validationState={status:"LOADING"};var X;J.ytComponentBehavior.resolveCommand(J.data.validateChannelHandleCommand,{form:{handle:(X=J.handleInput.value)!=null?X:""},commandController:{onSuccess:function(Z,
n){J.onValidationResponse(n)},
onServerError:function(Z,n){J.onValidationServerError(n)}}})}else J.handleUnexpectedValidationError(new _.TG("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",J.data))}},p)};
_.R.staticValidation=function(p){var J;if(((J=this.data)==null?void 0:J.channelHandleStaticValidationParams)!==void 0){J=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(p)&&J.validValueRegexpErrorMessage!==void 0)return J.validValueRegexpErrorMessage;if(J.minLength!==void 0&&p.length<J.minLength&&J.minLengthErrorMessage!==void 0)return J.minLengthErrorMessage;if(J.maxLength!==void 0&&p.length>J.maxLength&&J.maxLengthErrorMessage!==void 0)return J.maxLengthErrorMessage}};
_.R.onValidationResponse=function(p){var J=_.e(p.result,nBw);J===void 0?this.handleUnexpectedValidationError(new _.TG("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",p)):this.handleValidationResultRenderer(J)};
_.R.onValidationServerError=function(p){this.handleUnexpectedValidationError(new _.TG("ValidateChannelHandle request failed.",p))};
_.R.handleValidationResultRenderer=function(p){if(p.handle===void 0)this.handleUnexpectedValidationError(new _.TG("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 _.TG("Unrecognized ChannelHandleValidationResult",p));break;default:_.rm(p.result)}};
_.R.handleUnexpectedValidationError=function(p){var J;this.validationState={status:"UNKNOWN",handle:(J=this.handleInput.value)!=null?J:""};_.xQ(p)};
_.R.stopEventPropagation=function(p){p.stopPropagation()};
_.R.updateHandleOnChannelNameInputChange=function(p){if(!this.wasEdited){var J,S;this.debouncedGenerateHandleFromName(p,(S=(J=this.data)==null?void 0:J.validationDelayMs)!=null?S:1E3)}};
_.R.debouncedGenerateHandleFromName=function(p,J){var S=this;_.uO(this,"debouncedGenerateHandleFromName",function(){var H;(H=S.data)!=null&&H.validateChannelHandleCommand?S.ytComponentBehavior.resolveCommand(S.data.validateChannelHandleCommand,{form:{name:p},commandController:{onSuccess:function(M,X){S.onGenerateHandleFromNameResponse(X)},
onServerError:function(M,X){_.xQ(new _.TG("Error calling GenerateHandleFromName",X))}}}):_.xQ(new _.TG("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",S.data))},J)};
_.R.onGenerateHandleFromNameResponse=function(p){this.wasEdited||((p=_.e(p.result,G2l))?this.setHandleInputValue(p.handle):_.xQ(new _.TG("Invalid results when generate handle from name")))};
_.vh.Object.defineProperties(VP.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,J=(p=this.channelHandleEntity)==null?void 0:p.handleEdit;this.handleDir=this.getHandleDir(J!=null?J:"");return J}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var p,J;if(((p=this.data)==null?void 0:(J=p.channelHandleStaticValidationParams)==null?void 0:J.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
VP.prototype.stopEventPropagation=VP.prototype.stopEventPropagation;VP.prototype.onDataChanged=VP.prototype.onDataChanged;VP.prototype.applyHandleEdit=VP.prototype.applyHandleEdit;VP.prototype.onValueChanged=VP.prototype.onValueChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],VP.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],VP.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],VP.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],VP.prototype,"wasEdited",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],VP.prototype,"handleDir",void 0);_.V([_.FM("#handle-input"),_.Y("design:type",Object)],VP.prototype,"handleInput",void 0);_.V([_.N(),_.U("validationState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VP.prototype,"value",null);
_.V([_.bO("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VP.prototype,"onValueChanged",null);_.V([_.U("validationState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VP.prototype,"errorIndicator",null);_.V([_.N({reflectToAttribute:!0}),_.U("errorIndicator"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VP.prototype,"borderErrorIndicator",null);
_.V([_.N({selectorArgs:["data.channelHandleEntityKey"],selector:function(p,J){return _.RR(p.entities,"channelHandle",J)}}),
_.Y("design:type",Object)],VP.prototype,"channelHandleEntity",void 0);_.V([_.U("channelHandleEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VP.prototype,"handleEdit",null);_.V([_.bO("handleEdit"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VP.prototype,"applyHandleEdit",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VP.prototype,"onDataChanged",null);
_.V([_.U("data.channelHandleStaticValidationParams.validValueRegexp"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VP.prototype,"validValueRegexp",null);_.V([_.GI("yt-service-request-sent"),_.GI("yt-service-request-completed"),_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],VP.prototype,"stopEventPropagation",null);_.V([_.gw({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],VP);
_.l(VP,"ytd-channel-handle-input-renderer",function(){if(aMI!==void 0)return aMI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return aMI=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var qK=function(){var p=_.T.apply(this,arguments)||this;p.data=null;p.errorMessage=null;p.isLoading=!0;p.hideContainer=!1;p.enableNewChannelCreationOnIdForAll=_.z("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(J){p.resetErrorState();
p.setErrorState(J)}};
return p};
_.Q(qK,_.T);_.R=qK.prototype;_.R.created=function(){this.logScreenVe()};
_.R.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")};
_.R.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var p;((p=this.zeroStepErrorMessageEntity)==null?0:p.value)&&this.set("errorMessage",_.aR(this.zeroStepErrorMessageEntity.value))};
_.R.onCreateTap=function(){var p=this;if(this.data&&this.data.channelCreationEndpoint){var J,S;if(!((J=this.data.createChannelButton)==null?0:(S=J.buttonRenderer)==null?0:S.isDisabled)){var H;if((H=this.nameInput)!=null&&H.value){this.setLoadingState();var M,X;J=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(M=this.handleInput)==null?void 0:M.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((X=this.handleInput)==null?void 0:X.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:J,commandController:{onSuccess:function(Z,n){p.onChannelCreationEndpointSuccess(n);p.obakeImageSource&&_.YQ("channelCreatedWithObakeImage",{imageSourceType:p.obakeImageSource})},
onServerError:function(){p.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.R.endpointRequiresServiceRequestAction=function(p){return!!_.e(p,_.Bu)||!!_.e(p,ZBe)};
_.R.isNavigateAction=function(p){var J;return!!_.e(p,_.Mhw)||!!_.e((J=_.e(p,Fnp))==null?void 0:J.command,_.Mhw)};
_.R.isPlaylistAction=function(p){return!!_.e(p,_.XY)||!!_.e(p,_.bq)};
_.R.onChannelCreationEndpointSuccess=function(p){if(p.createChannelError){var J;this.setErrorState((J=p.createChannelError)==null?void 0:J.errorMessage);this.handleInput&&this.handleInput.validate()}else{p.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(p.navigationEndpoint);if(p.actions){J=_.K(p.actions);for(var S=J.next();!S.done;S=J.next())if(S=S.value,this.endpointRequiresServiceRequestAction(S)&&this.ytComponentBehavior.resolveCommand(S),this.isNavigateAction(S)){var H=void 0;S=_.e((H=
_.e(S,Fnp))==null?void 0:H.command,_.Mhw);H=void 0;this.isPlaylistAction((H=S)==null?void 0:H.endpoint)&&(_.IV(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),H=void 0,this.ytComponentBehavior.resolveCommand((H=S)==null?void 0:H.endpoint))}}p.actions&&p.actions.some(function(M){var X;return _.e(M,_.Mhw)||_.e((X=_.e(M,Fnp))==null?void 0:X.command,_.Mhw)})||_.IV(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.R.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.R.onCancelTap=function(){var p,J,S;if(!((p=this.data)==null?0:(J=p.cancelButton)==null?0:(S=J.buttonRenderer)==null?0:S.isDisabled)){var H,M,X;p=(H=this.data)==null?void 0:(M=H.cancelButton)==null?void 0:(X=M.buttonRenderer)==null?void 0:X.command;if(!p||!_.e(p,_.oks)){var Z;this.nameInput&&((Z=this.data)==null?0:Z.name)&&(this.nameInput.value=this.data.name);var n;this.handleInput&&((n=this.data)==null?0:n.channelHandleInput)&&(this.handleInput.data=_.e(this.data.channelHandleInput,bB$));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.R.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.R.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.R.onClearProfilePhotoTap=function(){var p,J,S;((p=this.data)==null?0:(J=p.clearProfilePhotoButton)==null?0:(S=J.buttonRenderer)==null?0:S.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.R.onEditAvatarTap=function(){var p,J,S;((p=this.data)==null?0:(J=p.editAvatarButton)==null?0:(S=J.buttonRenderer)==null?0:S.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.R.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)};
_.R.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)};
_.R.setErrorState=function(p){this.resetErrorState();if(p)this.set("errorMessage",p);else{var J;if((J=this.zeroStepErrorMessageEntity)==null?0:J.value)this.set("errorMessage",_.aR(this.zeroStepErrorMessageEntity.value));else{var S;((S=this.data)==null?0:S.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.R.fetchImageBlobWithAlr=function(p,J){J=J===void 0?5:J;var S=this,H,M,X,Z,n;return _.G(function(b){switch(b.nextAddress){case 1:return b.yield(fetch(p,{method:"GET",mode:"cors"}),2);case 2:H=b.yieldResult;if(H.ok){b.jumpTo(3);break}if(J===0)throw Error();M=S.addJitter(Math.pow(2,5-J));return b.yield(new Promise(function(F){setTimeout(F,M*1E3)}),4);
case 4:return b.return(S.fetchImageBlobWithAlr(p,J-1));case 3:if(!H.headers.get("content-type").split(";").some(function(F){return F.trim()==="text/plain"})){b.jumpTo(5);
break}X=S;Z=X.fetchImageBlobWithAlr;return b.yield(H.text(),6);case 6:return b.return(Z.call(X,b.yieldResult,J-1));case 5:return b.yield(H.blob(),7);case 7:return n=b.yieldResult,b.return(n)}})};
_.R.addJitter=function(p){var J=p*.3*Math.random();Math.random()>.5&&(J*=-1);return p+J};
_.R.openProfilePicturePicker=function(){var p=this,J,S,H,M,X,Z;return _.G(function(n){if(n.nextAddress==1){J=p.data.scottyUploadUrl;if(!J)return n.return();S=document.documentElement.hasAttribute("dark");H=document.body.style.colorScheme;S&&(document.body.style.colorScheme="dark");M=jQf(wRU(rWI(uFy(S?"dark":"light")),function(b){var F,f,O,A,P;return _.G(function(W){if(W.nextAddress==1)return F=_.cj(bDw(new C6I(b.photoUrl,!1)).build(),"alr","yes"),p.obakeImageSource=p.pictureChangeSourceToObakeImageSourceType(b.photoSource),
_.oI(W,2),p.setLoadingState(),W.yield(p.fetchImageBlobWithAlr(F),4);if(W.nextAddress!=2)return f=W.yieldResult,O=new FileReader,O.addEventListener("load",function(){var y,t,D,k,E,a;return _.G(function(q){if(q.nextAddress==1){if(f.size>15728640)return p.setErrorState((y=p.data)==null?void 0:y.imageSizeErrorMessage),_.xQ(Error("Gl")),q.return();if(!O.result)return p.setErrorState((t=p.data)==null?void 0:t.genericImageLoadErrorMessage),_.xQ(Error("Hl")),q.return();D=O.result;_.oI(q,2);return q.yield(Ijr(f,
J),4)}if(q.nextAddress!=2)return k=q.yieldResult,p.handleImageUpdatedAction(D,k),p.resetErrorState(),_.X$(q,0);E=_.BZ(q);p.setErrorState((a=p.data)==null?void 0:a.uploadErrorMessage);if(E instanceof Error)_.jD(E);else{var w=new _.TG(JSON.stringify(E));_.jD(w)}_.UK(q)})}),O.readAsDataURL(f),_.X$(W,0);
A=_.BZ(W);p.setErrorState((P=p.data)==null?void 0:P.genericImageLoadErrorMessage);A instanceof Error?_.jD(A):_.wf(new _.TG(JSON.stringify(A)));_.UK(W)})}),function(){p.hideContainer=!1;
document.body.style.colorScheme=H});
_.oI(n,2);return((X=p.data)==null?0:X.shouldViewChannelCreationFormForSupex)?n.yield(M.openPicker("profile-picture/art-selection"),5):n.yield(M.openPicker(),5)}if(n.nextAddress!=2)return _.X$(n,0);_.BZ(n);p.setErrorState((Z=p.data)==null?void 0:Z.selectImageErrorMessage);_.UK(n)})};
_.R.pictureChangeSourceToObakeImageSourceType=function(p){switch(p){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.R.logScreenVe=function(){_.TZ(_.bC(),124448)};
_.R.graftServerVe=function(){var p=_.Wf(),J,S,H=(J=this.data)==null?void 0:(S=J.loggingDirectives)==null?void 0:S.trackingParams;H&&p&&(this.channelCreationFormVe=_.bC().graftServerVe(H,p),p={visualElement:this.channelCreationFormVe},_.nI().reportShown(p))};
_.R.isNameChanged=function(p){var J;return((J=this.data)==null?void 0:J.name)!==p};
_.R.isHandleChanged=function(p){var J,S=_.e((J=this.data)==null?void 0:J.channelHandleInput,bB$);return S&&p?S.handle!==p:!1};
_.R.handleImageUpdatedAction=function(p,J){this.hideContainer=!1;this.previewDataUrl=p;this.encryptedBlobId=J};
_.R.handleImageSelectionErrorAction=function(p){this.hideContainer=!1;this.setErrorState(p)};
_.R.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.R.showContainer=function(){this.hideContainer=!1};
_.R.maybeWipeZeroStepErrorMessage=function(){var p,J=(p=this.data)==null?void 0:p.zeroStepErrorMessageEntityKey,S;J&&((S=this.zeroStepErrorMessageEntity)==null?0:S.value)&&this.ytdReduxBehavior.dispatch(_.P$("stringEntity",J,{key:J,value:""}))};
_.vh.Object.defineProperties(qK.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}}});
qK.prototype.dataChanged=qK.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],qK.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],qK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],qK.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qK.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],qK.prototype,"errorMessage",void 0);
_.V([_.N(),_.Y("design:type",Object)],qK.prototype,"isLoading",void 0);_.V([_.N(),_.Y("design:type",String)],qK.prototype,"previewDataUrl",void 0);_.V([_.N(),_.Y("design:type",Number)],qK.prototype,"obakeImageSource",void 0);_.V([_.N(),_.Y("design:type",Object)],qK.prototype,"hideContainer",void 0);_.V([_.FM("#title-input"),_.Y("design:type",Object)],qK.prototype,"nameInput",void 0);_.V([_.FM("#handle-input"),_.Y("design:type",Object)],qK.prototype,"handleInput",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],qK.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.V([_.N({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Xc4}),_.Y("design:type",Object)],qK.prototype,"zeroStepErrorMessageEntity",void 0);_.V([_.U("data","data.isDefaultProfilePhoto","previewDataUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qK.prototype,"photoThumbnail",null);
_.V([_.U("data","data.isDefaultProfilePhoto","photoThumbnail"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qK.prototype,"userSetPhotoThumbnailUrl",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qK.prototype,"hideProfilePhotoButtonLayer",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qK.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.V([_.An("data","zeroStepErrorMessageEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qK.prototype,"dataChanged",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.descriptionInfo","zeroStepErrorMessageEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qK.prototype,"description",null);_.V([_.gw({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],qK);
_.l(qK,"ytd-channel-creation-dialog-renderer",function(){if(qFj!==void 0)return qFj;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return qFj=p},{mode:1});var Egf;var an=function(){var p=_.T.apply(this,arguments)||this;p.isLoading=!1;p.isDisabled=!1;return p};
_.Q(an,_.T);an.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
an.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)};
an.prototype.onSaveClick=function(){var p=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var J;((J=this.data)==null?void 0:J.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 S;if((S=p.data)==null?0:S.nextEndpoint){var H;p.ytComponentBehavior.resolveCommand((H=p.data)==null?void 0:H.nextEndpoint)}else p.isLoading=
!1,p.closeDialog()},
onServerError:function(){p.isLoading=!1;p.handleInput.validate();var S;p.errorMessage=(S=p.data)==null?void 0:S.errorMessage}}}))}};
an.prototype.closeDialog=function(){_.IV(this.hostElement,"yt-close-popup-action",[this.is])};
an.prototype.updateDisabled=an.prototype.updateDisabled;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],an.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],an.prototype,"data",void 0);_.V([_.FM("#handle-input"),_.Y("design:type",Object)],an.prototype,"handleInput",void 0);_.V([_.bO("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],an.prototype,"updateDisabled",null);
_.V([_.gw({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],an);
_.l(an,"ytd-channel-handle-edit-dialog-renderer",function(){if(Egf!==void 0)return Egf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Egf=p},{mode:1});var YFI;var EA=function(){return _.T.apply(this,arguments)||this};
_.Q(EA,_.T);EA.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],EA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],EA.prototype,"data",void 0);_.V([_.gw({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],EA);
_.l(EA,"ytd-channel-switcher-footer-renderer",function(){if(YFI!==void 0)return YFI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return YFI=p},{mode:1});var rpP;var jUI;var Yq=function(){return _.T.apply(this,arguments)||this};
_.Q(Yq,_.T);Yq.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Yq.prototype.onIronChange=Yq.prototype.onIronChange;_.V([_.N(),_.Y("design:type",Object)],Yq.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!1}),_.Y("design:type",Function)],Yq.prototype,"onDontAskAgainChanged",void 0);_.V([_.FM("#checkbox"),_.Y("design:type",Object)],Yq.prototype,"checkbox",void 0);_.V([_.GI("iron-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yq.prototype,"onIronChange",null);
_.V([_.gw({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Yq);
_.l(Yq,"ytd-identity-prompt-footer-renderer",function(){if(jUI!==void 0)return jUI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return jUI=p},{mode:1});var rZ=function(){var p=_.T.apply(this,arguments)||this;p.dontAskAgain=!1;p.showPopup=!1;p.boundDontAskAgainChanged=function(J){p.dontAskAgainChanged(J)};
p.boundOnAccountItemTap=function(J){p.onAccountItemTap(J)};
return p};
_.Q(rZ,_.T);_.R=rZ.prototype;
_.R.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]]"}}}}}};
_.R.ready=function(){var p=this;_.Jn(this.hostElement).querySelector("#container").addEventListener("scroll",function(){p.ytRendererBehavior.markDirty()})};
_.R.dontAskAgainChanged=function(p){this.dontAskAgain=p};
_.R.onAccountItemTap=function(p){if(p){var J={};this.dontAskAgain&&(J={dont_ask_again:this.dontAskAgain});_.hc(p,J)}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.R.redirectOnlyAccount=function(p){p.sections&&p.sections.length>0&&(p=_.e(p.sections[0],_.Cro),(p==null?0:p.contents)&&(p==null?void 0:p.contents.length)<=1?(p=_.ih(window.location.href),(p==null?0:p.next)&&_.jV3(p.next)?_.hc(p.next):_.hc("/")):this.showPopup=!0)};
rZ.prototype.dataChanged=rZ.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],rZ.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!1}),_.Y("design:type",Object)],rZ.prototype,"dontAskAgain",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rZ.prototype,"showPopup",void 0);_.V([_.N({reflectToAttribute:!1}),_.Y("design:type",Object)],rZ.prototype,"boundDontAskAgainChanged",void 0);_.V([_.N({reflectToAttribute:!1}),_.Y("design:type",Object)],rZ.prototype,"boundOnAccountItemTap",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rZ.prototype,"dataChanged",null);
_.V([_.gw({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],rZ);
_.l(rZ,"ytd-channel-switcher-renderer",function(){if(rpP!==void 0)return rpP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return rpP=p},{mode:1});var wQM;var jM=function(){return _.T.apply(this,arguments)||this};
_.Q(jM,_.T);_.vh.Object.defineProperties(jM.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.V([_.N(),_.Y("design:type",Object)],jM.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],jM.prototype,"steps",null);_.V([_.gw({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],jM);
_.l(jM,"ytd-channel-transfer-stepper-renderer",function(){if(wQM!==void 0)return wQM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return wQM=p},{mode:1});var xuj;var wZ=function(){var p=_.T.apply(this,arguments)||this;p.data=null;p.isError=!1;p.isLoading=!1;return p};
_.Q(wZ,_.T);_.R=wZ.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.R.computeProfileName=function(p){return p?p.givenNameValue+" "+p.familyNameValue:""};
_.R.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)};
_.R.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)};
wZ.prototype.onYtServiceRequestError=wZ.prototype.onYtServiceRequestError;wZ.prototype.onYtServiceRequestSent=wZ.prototype.onYtServiceRequestSent;wZ.prototype.dataChanged=wZ.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],wZ.prototype,"data",void 0);
_.V([_.N({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.Y("design:type",String)],wZ.prototype,"profileName",void 0);_.V([_.N(),_.Y("design:type",Object)],wZ.prototype,"isError",void 0);_.V([_.N(),_.Y("design:type",Object)],wZ.prototype,"isLoading",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wZ.prototype,"dataChanged",null);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],wZ.prototype,"onYtServiceRequestSent",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],wZ.prototype,"onYtServiceRequestError",null);_.V([_.gw({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],wZ);
_.l(wZ,"ytd-channel-warm-welcome-cont-renderer",function(){if(xuj!==void 0)return xuj;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return xuj=p},{mode:1});var cpP;var xq=function(){var p=_.T.apply(this,arguments)||this;p.data=null;return p};
_.Q(xq,_.T);xq.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xq.prototype,"data",void 0);_.V([_.gw({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],xq);
_.l(xq,"ytd-channel-warm-welcome-renderer",function(){if(cpP!==void 0)return cpP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return cpP=p},{mode:1});var IMy;var c1=function(){return _.T.apply(this,arguments)||this};
_.Q(c1,_.T);_.vh.Object.defineProperties(c1.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.authorThumbnail)||{}}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],c1.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],c1.prototype,"thumbnailDetails",null);_.V([_.gw({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],c1);
_.l(c1,"ytd-comment-preview-renderer",function(){if(IMy!==void 0)return IMy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return IMy=p},{mode:1});var Lwp;var In=function(){return _.T.apply(this,arguments)||this};
_.Q(In,_.T);In.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vh.Object.defineProperties(In.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.submitButton}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],In.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],In.prototype,"submitButton",null);_.V([_.gw({is:"ytd-notice-renderer",disableElementRegistration:!0})],In);
_.l(In,"ytd-notice-renderer",function(){if(Lwp!==void 0)return Lwp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Lwp=p},{mode:1});var pUe;var Ls=function(){return _.T.apply(this,arguments)||this};
_.Q(Ls,_.T);Ls.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ls.prototype,"data",void 0);_.V([_.gw({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Ls);
_.l(Ls,"ytd-preview-comment-dialog-content",function(){if(pUe!==void 0)return pUe;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return pUe=p},{mode:1});var JKe;var p4=function(){return _.T.apply(this,arguments)||this};
_.Q(p4,_.T);p4.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
p4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],p4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],p4.prototype,"data",void 0);_.V([_.gw({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],p4);
_.l(p4,"ytd-preview-comment-dialog-renderer",function(){if(JKe!==void 0)return JKe;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return JKe=p},{mode:1});var Sfe;var H9w=_.z("web_button_rework")&&_.wY("BUTTON_REWORK")||_.z("web_button_rework_with_live"),JC=function(){var p=_.T.apply(this,arguments)||this;p.closeLabel=_.Kl("CLOSE");p.selectedAmountIndex=1;p.privacyCheckboxValue=!1;p.useAmsterdamStyle=H9w;p.amountPlaceholderIndex=-1;return p};
_.Q(JC,_.T);_.R=JC.prototype;_.R.onAmountClick=function(p){this.selectedAmountIndex=_.Jn(this.hostElement).querySelector("#amounts").indexForElement(p.currentTarget)};
_.R.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.IV(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.R.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.IV(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.IV(this.hostElement,"yt-close-popup-action",[this.is]);var p;(p=_.IY())==null||p.getPlayerPromise().then(function(J){J.pauseVideo()})}};
_.R.donationCallback=function(p){p.success?(this.hostElement.hasAttribute("live-chat")&&p.response&&p.response.data&&p.response.data.actions&&_.IV(this.hostElement,"yt-live-chat-open-popup",[p.response.data.actions[0]]),_.IV(this.hostElement,"yt-close-popup-action",[this.is]),_.IV(this.hostElement,"yt-live-chat-close-buy-flow")):p.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(p.errorMessageRenderer)};
_.R.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Jn(this.hostElement).querySelector("#custom-amount-input").focus()};
_.R.updateConfirmationDialogTextWithAmount=function(p){var J=this.getConfirmDialogRuns();J&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(J),"text"],this.getFormattedAmount(p))};
_.R.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.R.getAmountPlaceholderIndex=function(p){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=p.findIndex(function(J){return J.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.R.getFormattedAmount=function(p){var J;return(new _.dl(4,((J=this.data)==null?void 0:J.currencyCode)||"")).format(p)};
_.R.isAmountValid=function(p){if(p==="")return!1;p=Number(p)*1E6;var J=this.get("minAmountMicros",this.data),S=this.get("maxAmountMicros",this.data);return J&&p<J||S&&p>S?!1:!0};
_.R.setInputError=function(){this.shouldShowValidationError?_.Jn(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Jn(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.R.setInitialCheckboxValue=function(){var p;this.privacyCheckboxValue=!((p=this.data)==null||!p.privacyCheckboxInitialState)};
_.R.updateCustomAmountInputFromBinding=function(p){this.customAmountInput=p.detail.value};
_.R.updatePrivacyCheckboxValueFromBinding=function(p){this.privacyCheckboxValue=p.detail.value};
_.vh.Object.defineProperties(JC.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var p=this,J,S;return((J=this.data)==null?void 0:(S=J.suggestedAmounts)==null?void 0:S.map(function(H,M){return{buttonRenderer:{style:p.selectedAmountIndex===M?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:H.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})}}});
JC.prototype.setInitialCheckboxValue=JC.prototype.setInitialCheckboxValue;JC.prototype.setInputError=JC.prototype.setInputError;JC.prototype.setFocusOnCustomAmountInput=JC.prototype.setFocusOnCustomAmountInput;_.V([_.B(Rs$),_.Y("design:type",Object)],JC.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],JC.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],JC.prototype,"closeLabel",void 0);_.V([_.N(),_.Y("design:type",Object)],JC.prototype,"selectedAmountIndex",void 0);_.V([_.N(),_.Y("design:type",String)],JC.prototype,"customAmountInput",void 0);_.V([_.N(),_.Y("design:type",Object)],JC.prototype,"privacyCheckboxValue",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JC.prototype,"useAmsterdamStyle",void 0);_.V([_.bO("customAmount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JC.prototype,"setFocusOnCustomAmountInput",null);_.V([_.U("data","selectedAmountIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],JC.prototype,"suggestedAmountButtons",null);
_.V([_.U("data","selectedAmountIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JC.prototype,"isCustomAmountSelected",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JC.prototype,"showPrivacyCheckbox",null);_.V([_.U("data","selectedAmountIndex","customAmount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JC.prototype,"amountMicros",null);
_.V([_.U("isCustomAmountSelected","customAmountInput"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JC.prototype,"customAmount",null);_.V([_.U("customAmount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JC.prototype,"shouldShowValidationError",null);_.V([_.U("customAmount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JC.prototype,"isDonateButtonEnabled",null);
_.V([_.U("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JC.prototype,"donateCommand",null);_.V([_.U("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JC.prototype,"donateCommandWithConfirmation",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JC.prototype,"largeDonationThreshold",null);
_.V([_.U("customAmount","donateCommand","amountMicros"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JC.prototype,"confirmLargeAmountCommand",null);_.V([_.U("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JC.prototype,"donateButtonRenderer",null);_.V([_.bO("shouldShowValidationError"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JC.prototype,"setInputError",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JC.prototype,"setInitialCheckboxValue",null);_.V([_.gw({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],JC);
_.l(JC,"ytd-donation-amount-picker-renderer",function(){if(Sfe!==void 0)return Sfe;var p=document.createElement("template");_.C(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" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return Sfe=p},{mode:1});var MWN;var XUI=function(){return _.T.apply(this,arguments)||this};
_.Q(XUI,_.T);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],XUI.prototype,"ytComponentBehavior",void 0);_.V([_.N({}),_.Y("design:type",Object)],XUI.prototype,"data",void 0);_.V([_.gw({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],XUI);
_.l(XUI,"ytd-donation-post-transaction-content",function(){if(MWN!==void 0)return MWN;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return MWN=p},{mode:1});var i9$;var SG=function(){return _.T.apply(this,arguments)||this};
_.Q(SG,_.T);SG.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],SG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.V([_.N({}),_.Y("design:type",Object)],SG.prototype,"data",void 0);_.V([_.gw({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],SG);
_.l(SG,"ytd-donation-post-transaction-renderer",function(){if(i9$!==void 0)return i9$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return i9$=p},{mode:1});var Ryr;var KLp;var HX=function(){return _.T.apply(this,arguments)||this};
_.Q(HX,_.T);HX.prototype.computeIsStreamingProvider=function(p){return!!p.isStreamingShelf};
HX.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],HX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],HX.prototype,"data",void 0);_.V([_.N({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],HX.prototype,"isStreamingProvider",void 0);
_.V([_.gw({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],HX);
_.l(HX,"ytd-media-provider-renderer",function(){if(KLp!==void 0)return KLp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return KLp=p},{mode:1});var Z9I;var Mm=function(){return _.T.apply(this,arguments)||this};
_.Q(Mm,_.T);Mm.prototype.observeLightsourcePalette=function(){var p,J=(p=this.data)==null?void 0:p.vibrantsourceColorPaletteData;J&&_.eK(this.hostElement,J)};
Mm.prototype.observeLightsourcePalette=Mm.prototype.observeLightsourcePalette;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Mm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Mm.prototype,"data",void 0);
_.V([_.bO("data.vibrantsourceColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mm.prototype,"observeLightsourcePalette",null);_.V([_.gw({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Mm);
_.l(Mm,"ytd-streaming-pop-up-dialog",function(){if(Z9I!==void 0)return Z9I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Z9I=p},{mode:1});var X2=function(){return _.T.apply(this,arguments)||this};
_.Q(X2,_.T);X2.prototype.onPopupOpened_=function(){var p;((p=this.data)==null?0:p.serviceEndpoint)&&_.vO().resolve(_.Ov).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
X2.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
X2.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"}}}}};
X2.prototype.onPopupOpened_=X2.prototype.onPopupOpened_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.$W),_.Y("design:type",Object)],X2.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],X2.prototype,"data",void 0);
_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X2.prototype,"onPopupOpened_",null);_.V([_.gw({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],X2);
_.l(X2,"ytd-brandconnect-popup-renderer",function(){if(Ryr!==void 0)return Ryr;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Ryr=p},{mode:1});var n$U;var iY=function(){return _.T.apply(this,arguments)||this};
_.Q(iY,_.T);_.R=iY.prototype;_.R.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.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)};
_.R.updateSubmitButton=function(p){this.set("data.submitButton.buttonRenderer.isDisabled",!p)};
_.R.computeAlt=function(p){return _.E4(p)};
_.R.onDismissTap=function(){_.IV(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.vO().resolve(_.Ov).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.R.getOptionRenderers=function(p){return(p=p||this.data)&&p.options?p.options.reduce(function(J,S){S.checkboxSurveyOptionRenderer&&J.push(S.checkboxSurveyOptionRenderer);return J},[]):[]};
_.R.onOptionChange=function(p){var J=this,S=!1;if(p.detail.checked)for(var H=this.getOptionRenderers().find(function(n){return n.value===p.detail.value}),M=this.getOptionRenderers(),X=0;X<M.length;X++){var Z=M[X];
this.notifyPath("data.options."+X+".checkboxSurveyOptionRenderer.checked");Z.checked&&((H==null?0:H.isExclusiveOption)?!Z.isExclusiveOption:Z.isExclusiveOption)?this.set("data.options."+X+".checkboxSurveyOptionRenderer.checked",!1):Z.checked&&(S=!0)}else S=this.getOptionRenderers().some(function(n,b){J.notifyPath("data.options."+b+".checkboxSurveyOptionRenderer.checked");return n.checked});
this.updateSubmitButton(S)};
_.R.onSubmitTap=function(){var p=this.getOptionRenderers().filter(function(X){return X.checked});
if(p.length!==0){var J=p.map(function(X){return X.responseEndpoint});
p=[];for(var S=1;S<J.length;S++){var H=void 0,M=(H=_.e(J[S],_.U0))==null?void 0:H.feedbackToken;M&&p.push(M)}J=[J[0]];p.length&&J.push({extra_feedback_tokens:p});_.pl(this.hostElement,J);_.IV(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);p=this.data&&this.data.submitActions||[];if(_.z("kevlar_command_handler_migration_killswitch"))_.JP(this.hostElement,p,this.hostElement);else for(p=_.K(p),J=p.next();!J.done;J=p.next())this.ytComponentBehavior.resolveCommand(J.value)}};
iY.prototype.onOptionChange=iY.prototype.onOptionChange;iY.prototype.dataChanged=iY.prototype.dataChanged;_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],iY.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],iY.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.V([_.B(QXI),_.Y("design:type",Object)],iY.prototype,"ytdHatsSurveyBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],iY.prototype,"data",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iY.prototype,"dataChanged",null);
_.V([_.GI("ytd-checkbox-survey-option-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],iY.prototype,"onOptionChange",null);_.V([_.gw({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],iY);
_.l(iY,"ytd-checkbox-survey-renderer",function(){if(n$U!==void 0)return n$U;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return n$U=p},{mode:1});var GzP;var b9y;var Ri=function(){return _.T.apply(this,arguments)||this};
_.Q(Ri,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.V([_.B(WlP),_.Y("design:type",Object)],Ri.prototype,"ytdDismissalReasonBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ri.prototype,"data",void 0);_.V([_.gw({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Ri);
_.l(Ri,"ytd-dismissal-reason-text-renderer",function(){if(b9y!==void 0)return b9y;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return b9y=p},{mode:1});var mil;var K4=function(){return _.T.apply(this,arguments)||this};
_.Q(K4,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.V([_.B(WlP),_.Y("design:type",Object)],K4.prototype,"ytdDismissalReasonBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],K4.prototype,"data",void 0);_.V([_.gw({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],K4);
_.l(K4,"ytd-dismissal-reason-video-renderer",function(){if(mil!==void 0)return mil;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return mil=p},{mode:1});var ZA=function(){return _.T.apply(this,arguments)||this};
_.Q(ZA,_.T);_.R=ZA.prototype;_.R.created=function(){this.selectedFeedbackTokens=new FQ};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.R.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.R.onDismissalReasonSelected=function(p,J){_.cf(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(J);this.hasReasonsSelected=!0};
_.R.onDismissalReasonDeselected=function(p,J){_.cf(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(J);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.R.onCancelTap=function(){_.IV(this.hostElement,"yt-close-popup-action")};
_.R.onSubmitTap=function(){var p=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(p={feedback_tokens:p},_.vO().resolve(_.Ov).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},p,{element:this.hostElement})}));_.IV(this.hostElement,"yt-close-popup-action")};
ZA.prototype.onDismissalReasonDeselected=ZA.prototype.onDismissalReasonDeselected;ZA.prototype.onDismissalReasonSelected=ZA.prototype.onDismissalReasonSelected;ZA.prototype.dataChanged=ZA.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ZA.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],ZA.prototype,"hasReasonsSelected",void 0);_.V([_.N(),_.Y("design:type",FQ)],ZA.prototype,"selectedFeedbackTokens",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZA.prototype,"dataChanged",null);_.V([_.GI("yt-dismissal-reason-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],ZA.prototype,"onDismissalReasonSelected",null);
_.V([_.GI("yt-dismissal-reason-deselected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],ZA.prototype,"onDismissalReasonDeselected",null);_.V([_.gw({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],ZA);
_.l(ZA,"ytd-dismissal-follow-up-renderer",function(){if(GzP!==void 0)return GzP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return GzP=p},{mode:1});var FLI;var n4=function(){return _.T.apply(this,arguments)||this};
_.Q(n4,_.T);_.R=n4.prototype;_.R.onCheckedChange=function(){this.multiselect||_.cf(this.hostElement,"yt-feedback-single-select-changed");_.Jn(this.hostElement).querySelector("#freeform").focus();_.cf(this.hostElement,"yt-refit")};
_.R.showTextBox=function(p,J){return p&&J};
_.R.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))};
_.R.updateDataCheckedFromBinding=function(p){this.set("data.checked",p.detail.value)};
_.R.updateDataResultTextFromBinding=function(p){this.set("data.resultText",p.detail.value)};
n4.prototype.dataChanged=n4.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],n4.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],n4.prototype,"multiselect",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],n4.prototype,"dataChanged",null);
_.V([_.gw({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],n4);
_.l(n4,"ytd-feedback-option-renderer",function(){if(FLI!==void 0)return FLI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return FLI=p},{mode:1});var v$P;var G8=function(){return _.T.apply(this,arguments)||this};
_.Q(G8,_.T);G8.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
G8.prototype.onSingleSelectCheckedChanged=function(p){p=_.Yt(p);for(var J=0;J<this.data.options.length;J++)if(p.data!==_.e(this.data.options[J],Tiy)){var S="data.options."+J+".feedbackOptionRenderer.checked";this.notifyPath(S);this.set(S,!1)}};
G8.prototype.onSingleSelectCheckedChanged=G8.prototype.onSingleSelectCheckedChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],G8.prototype,"data",void 0);
_.V([_.GI("yt-feedback-single-select-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],G8.prototype,"onSingleSelectCheckedChanged",null);_.V([_.gw({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],G8);
_.l(G8,"ytd-feedback-question-renderer",function(){if(v$P!==void 0)return v$P;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return v$P=p},{mode:1});var fsN;var bY=function(){return _.T.apply(this,arguments)||this};
_.Q(bY,_.T);bY.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
bY.prototype.getSelectedFeedbackResults=function(){for(var p={},J=0;J<this.data.questions.length;J++)for(var S=_.e(this.data.questions[J],NiI),H=0;H<S.options.length;H++){var M=_.e(S.options[H],Tiy);M&&M.checked&&(p[M.optionKey]=M.resultText)}return p};
bY.prototype.onKeyUp=function(){var p=this;_.SK(_.wg,function(){_.cf(p.hostElement,"yt-refit")});
_.wg.start()};
bY.prototype.submitSurvey=function(){var p=this.getSelectedFeedbackResults();Object.keys(p).length>0&&this.data.submitFeedbackEndpoint&&(p={survey_results:p,is_feedback_token_unencrypted:!0},_.vO().resolve(_.Ov).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},p,{element:this.hostElement})}))};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],bY.prototype,"data",void 0);_.V([_.gw({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],bY);
_.l(bY,"ytd-feedback-survey-renderer",function(){if(fsN!==void 0)return fsN;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return fsN=p},{mode:1});var O9e;var AKM;var mP=function(){return _.T.apply(this,arguments)||this};
_.Q(mP,_.T);mP.prototype.computeAlt=function(p){return _.E4(p)};
mP.prototype.submitResponse=function(){var p,J;(p=this.data)!=null&&p.feedbackToken&&((J=this.data)==null?void 0:J.nextStageIndex)!==void 0&&(_.L1(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.L1(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
mP.prototype.onClick=function(){this.submitResponse()};
mP.prototype.onClick=mP.prototype.onClick;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],mP.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mP.prototype,"vertical",void 0);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mP.prototype,"onClick",null);
_.V([_.gw({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],mP);
_.l(mP,"ytd-single-select-answer-option-renderer",function(){if(AKM!==void 0)return AKM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return AKM=p},{mode:1});var PUr;var F2=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return p};
_.Q(F2,_.T);F2.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
F2.prototype.dataChanged=function(){var p,J;this.vertical=((J=(p=this.data)==null?void 0:p.answerOrientation)!=null?J:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
F2.prototype.submitFeedback=function(p){var J;((J=this.data)==null?0:J.responseEndpoint)&&p&&_.pl(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[p]}])};
F2.prototype.dataChanged=F2.prototype.dataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],F2.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],F2.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],F2.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],F2.prototype,"vertical",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],F2.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],F2);
_.l(F2,"ytd-single-select-question-renderer",function(){if(PUr!==void 0)return PUr;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return PUr=p},{mode:1});var vX=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return p};
_.Q(vX,_.T);_.R=vX.prototype;_.R.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"}}}};
_.R.dataChanged=function(){this.jumpToStage(0)};
_.R.jumpToStage=function(p){var J,S;if((J=this.data)==null?0:(S=J.stages)==null?0:S[p])this.currentStage=this.data.stages[p],this.refitAfterRender()};
_.R.computeAlt=function(p){return _.E4(p)};
_.R.computeSimpleMessage=function(p){var J;return(J=_.e(p,lSr))==null?void 0:J.messageText};
_.R.computeHideDismiss=function(p){var J;return(J=_.e(p,yYl))==null?void 0:J.hideParentDismissButton};
_.R.onDismissTap=function(){_.IV(this.hostElement,"yt-close-popup-action");_.e(this.currentStage,lSr)||this.data.dismissalEndpoint&&_.vO().resolve(_.Ov).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.R.refitAfterRender=function(){var p=this;_.mN(this,function(){_.cf(p.hostElement,"yt-refit")})};
vX.prototype.dataChanged=vX.prototype.dataChanged;_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],vX.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],vX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],vX.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(QXI),_.Y("design:type",Object)],vX.prototype,"ytdHatsSurveyBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],vX.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],vX.prototype,"currentStage",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vX.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],vX);
_.l(vX,"ytd-multi-stage-survey-renderer",function(){if(O9e!==void 0)return O9e;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return O9e=p},{mode:1});var zyl;var f4=function(){return _.T.apply(this,arguments)||this};
_.Q(f4,_.T);f4.prototype.computeAlt=function(p){return _.E4(p)};
f4.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.vO().resolve(_.Ov).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.IV(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.zu$(!1)))};
f4.prototype.onTap=function(){this.vertical&&this.submitResponse()};
f4.prototype.onTap=f4.prototype.onTap;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],f4.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],f4.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f4.prototype,"vertical",void 0);
_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f4.prototype,"onTap",null);_.V([_.gw({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],f4);
_.l(f4,"ytd-single-option-survey-option-renderer",function(){if(zyl!==void 0)return zyl;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return zyl=p},{mode:1});var $i$;var O_=function(){return _.T.apply(this,arguments)||this};
_.Q(O_,_.T);_.R=O_.prototype;_.R.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){var p,J;this.vertical=(((p=this.data)==null?void 0:(J=p.surveyOrientation)==null?void 0:J.type)||"HORIZONTAL")==="VERTICAL"};
_.R.computeAlt=function(p){return _.E4(p)};
_.R.onDismissTap=function(){_.IV(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.vO().resolve(_.Ov).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.zu$(!1))};
O_.prototype.dataChanged=O_.prototype.dataChanged;_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],O_.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],O_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(QXI),_.Y("design:type",Object)],O_.prototype,"ytdHatsSurveyBehavior",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],O_.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],O_.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],O_.prototype,"vertical",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],O_.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],O_);
_.l(O_,"ytd-single-option-survey-renderer",function(){if($i$!==void 0)return $i$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return $i$=p},{mode:1});var o$I;var AC=function(){return _.T.apply(this,arguments)||this};
_.Q(AC,_.T);AC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
AC.prototype.onDismissTap=function(){_.IV(this.hostElement,"yt-close-popup-action")};
AC.prototype.onNavigate=function(){_.IV(this.hostElement,"yt-close-popup-action")};
AC.prototype.onNavigate=AC.prototype.onNavigate;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],AC.prototype,"ytEventForwardingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],AC.prototype,"data",void 0);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AC.prototype,"onNavigate",null);
_.V([_.gw({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],AC);
_.l(AC,"ytd-survey-follow-up-renderer",function(){if(o$I!==void 0)return o$I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return o$I=p},{mode:1});var eye;var WLM;var QNw;var PX=function(){var p=_.T.apply(this,arguments)||this;p.polymer2="Element"in Polymer;return p};
_.Q(PX,_.T);_.R=PX.prototype;_.R.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.R.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.R.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.R.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("minutes-changed",this.minutes))};
_.R.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("seconds-changed",this.seconds))};
_.R.updateMinutesFromBinding=function(p){this.minutes=p.detail.value};
_.R.updateSecondsFromBinding=function(p){this.seconds=p.detail.value};
PX.prototype.secondsChangedForBinding=PX.prototype.secondsChangedForBinding;PX.prototype.minutesChangedForBinding=PX.prototype.minutesChangedForBinding;PX.prototype.secondsChanged=PX.prototype.secondsChanged;_.V([_.N(),_.Y("design:type",String)],PX.prototype,"minutes",void 0);_.V([_.N(),_.Y("design:type",String)],PX.prototype,"seconds",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],PX.prototype,"polymer2",void 0);
_.V([_.FM("#seconds"),_.Y("design:type",Object)],PX.prototype,"secondsEl",void 0);_.V([_.bO("seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PX.prototype,"secondsChanged",null);_.V([_.bO("minutes"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PX.prototype,"minutesChangedForBinding",null);
_.V([_.bO("seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PX.prototype,"secondsChangedForBinding",null);_.V([_.sD({is:"yt-timestamp-input",disableElementRegistration:!0})],PX);
_.l(PX,"yt-timestamp-input",function(){if(QNw===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;WLM===void 0&&(WLM=document.createElement("template"));var H=WLM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);QNw=p}p=QNw;return p},{mode:2});var z8=function(){return _.T.apply(this,arguments)||this};
_.Q(z8,_.T);_.R=z8.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20860_scroller.dialogElement=this.hostElement.parentNode};
_.R.dataChanged=function(){var p=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Lb().getPlayerPromise().then(function(J){J=J.getCurrentTime();p.minutes=Math.floor(J/60).toString();p.seconds=(Math.floor(J)%60).toString()})};
_.R.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),_.vO().resolve(_.Ov).resolveCommand(this.serviceEndpoint,{form:Object.assign({},p,{element:this.hostElement})}))};
_.R.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.R.onYtServiceRequestCompleted=function(p,J){J=J.actions;if(Array.isArray(J))for(var S=0,H=J.length;S<H;S++)_.e(J[S],_.Yi)&&(p.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(J[S]))};
_.R.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.R.toggleSubmitButton=function(p){this.set("submitButton.isDisabled",!p)};
_.R.handleInput=function(){var p=this.issueType,J=this.affiliation,S=this.minutes,H=this.seconds;S=!this.showTimestamp||!!S&&!!H;this.toggleSubmitButton(!!this.descriptionText&&!!p&&!!J&&S)};
_.R.computeServiceEndpoint=function(p){return this.get("submitButton.buttonRenderer.serviceEndpoint",p)};
_.R.computeSubmitButton=function(p){(p=this.get("submitButton.buttonRenderer",p))&&(p=Object.assign({},p,{serviceEndpoint:void 0}));return p};
_.R.computeShowTimestamp=function(p){return!!p};
_.R.onValueChangedForIssueType=function(p){this.issueType=p.detail.value};
_.R.onValueChangedForAffiliation=function(p){this.affiliation=p.detail.value};
_.R.updateDescriptionTextFromBinding=function(p){this.descriptionText=p.detail.value};
_.R.updateFullNameTextFromBinding=function(p){this.fullNameText=p.detail.value};
_.R.updateMinutesFromBinding=function(p){this.minutes=p.detail.value};
_.R.updateSecondsFromBinding=function(p){this.seconds=p.detail.value};
z8.prototype.handleInput=z8.prototype.handleInput;z8.prototype.onYtServiceRequestError=z8.prototype.onYtServiceRequestError;z8.prototype.onYtServiceRequestCompleted=z8.prototype.onYtServiceRequestCompleted;z8.prototype.onYtServiceRequestSent=z8.prototype.onYtServiceRequestSent;z8.prototype.dataChanged=z8.prototype.dataChanged;_.V([_.B(_.T_.YtOpenPopupBehavior),_.Y("design:type",Object)],z8.prototype,"ytOpenPopupBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.V([_.FM("#scroller"),_.Y("design:type",Object)],z8.prototype,"JSC$20860_scroller",void 0);_.V([_.FM("#description"),_.Y("design:type",HTMLInputElement)],z8.prototype,"description",void 0);_.V([_.FM("#full-name"),_.Y("design:type",Object)],z8.prototype,"fullName",void 0);_.V([_.N(),_.Y("design:type",Object)],z8.prototype,"data",void 0);
_.V([_.N({computed:"computeShowTimestamp(data.timestampLabel)"}),_.Y("design:type",Boolean)],z8.prototype,"showTimestamp",void 0);_.V([_.N({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.Y("design:type",Object)],z8.prototype,"serviceEndpoint",void 0);_.V([_.N({computed:"computeSubmitButton(data)"}),_.Y("design:type",Object)],z8.prototype,"submitButton",void 0);_.V([_.N(),_.Y("design:type",String)],z8.prototype,"descriptionText",void 0);
_.V([_.N(),_.Y("design:type",Number)],z8.prototype,"issueType",void 0);_.V([_.N(),_.Y("design:type",Number)],z8.prototype,"affiliation",void 0);_.V([_.N(),_.Y("design:type",String)],z8.prototype,"fullNameText",void 0);_.V([_.N(),_.Y("design:type",String)],z8.prototype,"minutes",void 0);_.V([_.N(),_.Y("design:type",String)],z8.prototype,"seconds",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],z8.prototype,"dataChanged",null);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],z8.prototype,"onYtServiceRequestSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],z8.prototype,"onYtServiceRequestCompleted",null);
_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],z8.prototype,"onYtServiceRequestError",null);_.V([_.bO("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],z8.prototype,"handleInput",null);_.V([_.gw({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],z8);
_.l(z8,"ytd-legal-report-details-form-renderer",function(){if(eye!==void 0)return eye;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return eye=p},{mode:1});var CUy;var $K=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return p};
_.Q($K,_.T);$K.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
$K.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var p=this.formRenderer.getForm();p&&this.data.submitEndpoint&&(_.vO().resolve(_.Ov).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},p,{element:this.hostElement})}),_.IV(this.hostElement,"yt-close-popup-action"))}};
$K.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.IV(this.hostElement,"yt-close-popup-action"))};
$K.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
$K.prototype.onPopupClosed=$K.prototype.onPopupClosed;_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],$K.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],$K.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);
_.V([_.FM("yt-form-renderer"),_.Y("design:type",Object)],$K.prototype,"formRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],$K.prototype,"data",void 0);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$K.prototype,"onPopupClosed",null);_.V([_.gw({is:"ytd-form-popup-content",disableElementRegistration:!0})],$K);
_.l($K,"ytd-form-popup-content",function(){if(CUy!==void 0)return CUy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return CUy=p},{mode:1});var yKw;var oi=function(){return _.T.apply(this,arguments)||this};
_.Q(oi,_.T);oi.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
oi.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oi.prototype.onPopupOpened=function(){_.cf(this.hostElement,"yt-invalidate-popup-tabbables")};
oi.prototype.onYtServiceRequestCompleted=function(p,J){J.data&&J.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.cf(this.hostElement,"yt-invalidate-popup-tabbables"))};
oi.prototype.onYtServiceRequestCompleted=oi.prototype.onYtServiceRequestCompleted;oi.prototype.onPopupOpened=oi.prototype.onPopupOpened;_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],oi.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],oi.prototype,"data",void 0);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oi.prototype,"onPopupOpened",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],oi.prototype,"onYtServiceRequestCompleted",null);_.V([_.gw({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],oi);
_.l(oi,"ytd-form-popup-renderer",function(){if(yKw!==void 0)return yKw;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return yKw=p},{mode:1});var BjI;var eG=function(){var p=_.T.apply(this,arguments)||this;p.isLoading=!1;return p};
_.Q(eG,_.T);_.R=eG.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");cz$(this.hostElement)};
_.R.onYtServiceRequestSent=function(){this.isLoading=!0};
_.R.onYtServiceRequestCompleted=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.R.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.JP(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.R.closePopupHandler=function(){this.fireOnCloseActions()};
_.R.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=_.I4(p,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+p+")")}};
_.R.onYtNavigate=function(p){(p=_.Yt(p))&&p.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
eG.prototype.onYtNavigate=eG.prototype.onYtNavigate;eG.prototype.onHeaderImageChanged=eG.prototype.onHeaderImageChanged;eG.prototype.closePopupHandler=eG.prototype.closePopupHandler;eG.prototype.onYtServiceRequestCompleted=eG.prototype.onYtServiceRequestCompleted;eG.prototype.onYtServiceRequestSent=eG.prototype.onYtServiceRequestSent;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],eG.prototype,"ytEventForwardingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],eG.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],eG.prototype,"isLoading",void 0);_.V([_.FM("#header"),_.Y("design:type",HTMLDivElement)],eG.prototype,"header",void 0);_.V([_.FM("#confirm-button"),_.Y("design:type",_.jp)],eG.prototype,"confirmButton",void 0);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],eG.prototype,"onYtServiceRequestSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],eG.prototype,"onYtServiceRequestCompleted",null);
_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],eG.prototype,"closePopupHandler",null);_.V([_.bO("data.headerImage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eG.prototype,"onHeaderImageChanged",null);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],eG.prototype,"onYtNavigate",null);
_.V([_.gw({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],eG);
_.l(eG,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(BjI!==void 0)return BjI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return BjI=p},{mode:1});var UiN;var WX=function(){var p=_.T.apply(this,arguments)||this;p.isLoading=!1;return p};
_.Q(WX,_.T);_.R=WX.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);cz$(this.hostElement)};
_.R.onYtServiceRequestCompleted=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.R.onYtServiceRequestError=function(p){_.Vh(this.hostElement,p.detail.error.message)};
_.R.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.R.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.IV(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.R.onDataChanged=function(){this.isLoading=!1;var p=this.get("data.headerImage.thumbnails");p&&(p=_.I4(p,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+p+")");p=_.C1();var J=_.Wf(),S=this.get("data.trackingParams");S&&J&&p&&_.kO(p,J,_.Az(S))};
_.vh.Object.defineProperties(WX.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
WX.prototype.onDataChanged=WX.prototype.onDataChanged;WX.prototype.onDomChange=WX.prototype.onDomChange;WX.prototype.onYtServiceRequestError=WX.prototype.onYtServiceRequestError;WX.prototype.onYtServiceRequestCompleted=WX.prototype.onYtServiceRequestCompleted;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],WX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],WX.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],WX.prototype,"isLoading",void 0);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],WX.prototype,"hasDescription",null);_.V([_.FM("tp-yt-paper-dialog-scrollable"),_.Y("design:type",Object)],WX.prototype,"scrollable",void 0);_.V([_.FM("#header"),_.Y("design:type",HTMLElement)],WX.prototype,"header",void 0);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],WX.prototype,"onYtServiceRequestCompleted",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],WX.prototype,"onYtServiceRequestError",null);
_.V([_.GI("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],WX.prototype,"onDomChange",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WX.prototype,"onDataChanged",null);_.V([_.gw({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],WX);
_.l(WX,"ytd-gaming-account-link-setting-renderer",function(){if(UiN!==void 0)return UiN;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return UiN=p},{mode:1});var sNp;var g$I;var QC=function(){var p=_.T.apply(this,arguments)||this;p.isHeader=!1;p.getEndpointForm=function(){return M_N(p.data)};
return p};
_.Q(QC,_.T);_.R=QC.prototype;_.R.triggerHintActions=function(){var p=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var J=_.L1(p.hostElement,"yt-get-opened-popups-action");!(J&&J.length===1?J[0]:[]).some(function(S){S=S.openPopupAction.popupType;return S==="SURVEY"||S==="MEALBAR"||S==="HINT"})&&p.data.hintActions&&p.guideOpened&&(_.JP(p.hostElement,p.data.hintActions,p.hostElement),p.data.hintActions=void 0)})};
_.R.getBadgeIconType=function(p){return p&&p.liveBroadcasting?"live":null};
_.R.onDown=function(){this.interaction.triggerDown()};
_.R.onUp=function(){this.interaction.triggerUp()};
_.R.onTap=function(p){if(this.data.serviceEndpoint){var J;_.z("shorts_controller_retrieve_seedless_sequence_v2")&&((J=_.e(this.data.serviceEndpoint,_.vt))==null?void 0:J.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):HXy(this.data.serviceEndpoint,this);p.preventDefault()}else this.data.navigationEndpoint&&!_.jK(_.Er(p),this.hostElement,["A".toString()])&&_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.R.computeActive=function(p,J){if(!p)return!1;var S=p.navigationEndpoint;p=p.serviceEndpoint;if(!S&&!p||!J)return!1;if(S){p=(p=_.ny(J))&&["subscriptions","filteredsubscriptions"].includes(p);if(_.e(S,_.Ge)&&_.e(J,_.Ge)&&!p){var H=_.e(S,_.Ge).browseId;J=_.e(J,_.Ge).browseId;return H!==void 0&&J!==void 0&&(H===J||H==="VLWL"&&J==="FEwatch_later"||H==="FEwatch_later"&&J==="VLWL")}var M;S=(M=_.e(S.commandMetadata,_.i7))==null?void 0:M.url;J=(H=_.e(J.commandMetadata,_.i7))==null?void 0:H.url;return!(!S||
!J||S!==J&&S!==_.yn(J))}return this.isActiveShortsTab(p,J)};
_.R.isActiveShortsTab=function(p,J){J=!!_.e(J,_.vt)||!!_.e(J,_.iq);return(!!_.e(p,_.vt)||!!_.e(p,_.iq))&&J};
_.R.computeIsPrimary=function(p){return!!p};
_.vh.Object.defineProperties(QC.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}}});
QC.prototype.onTap=QC.prototype.onTap;QC.prototype.onUp=QC.prototype.onUp;QC.prototype.onDown=QC.prototype.onDown;QC.prototype.triggerHintActions=QC.prototype.triggerHintActions;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],QC.prototype,"componentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],QC.prototype,"rendererBehavior",void 0);_.V([_.B(_.$N.YtTaskEmitterBehavior),_.Y("design:type",Object)],QC.prototype,"taskEmitterBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],QC.prototype,"activeEndpoint",void 0);_.V([_.N(),_.Y("design:type",Object)],QC.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],QC.prototype,"guideOpened",void 0);_.V([_.N(),_.Y("design:type",String)],QC.prototype,"type",void 0);_.V([_.FM("yt-interaction"),_.Y("design:type",Object)],QC.prototype,"interaction",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],QC.prototype,"isHeader",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("data","activeEndpoint"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QC.prototype,"active",null);_.V([_.N({reflectToAttribute:!0}),_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QC.prototype,"isPrimary",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.count","data.presentationStyle","data.badges.*"),_.Y("design:type",String),_.Y("design:paramtypes",[])],QC.prototype,"lineEndStyle",null);
_.V([_.U("lineEndStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QC.prototype,"ariaLabel",null);_.V([_.bO("data.hintActions","guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QC.prototype,"triggerHintActions",null);_.V([_.GI("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QC.prototype,"onDown",null);
_.V([_.GI("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QC.prototype,"onUp",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],QC.prototype,"onTap",null);_.V([_.gw({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],QC);
_.l(QC,"ytd-guide-entry-renderer",function(){if(g$I!==void 0)return g$I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return g$I=p},{mode:1});var C4=function(){var p=_.T.apply(this,arguments)||this;p.userToggled=!1;return p};
_.Q(C4,_.T);_.R=C4.prototype;_.R.getItemsPath=function(){return"data.expandableItems"};
_.R.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.R.onExpanderItemTapped=function(p){var J=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.z("kevlar_guide_expandable_items_killswitch")&&_.mN(this,function(){_.Gg(J.expandableItems)});
p.preventDefault()};
_.R.onCollapserItemTapped=function(p){var J=this;this._setExpanded(!1);this.userToggled=!0;p.preventDefault();this.expandableItems&&!_.z("kevlar_guide_collapsible_items_killswitch")&&_.mN(this,function(){_.nH(J.hostElement)})};
_.R.observeActiveEndpoint=function(){for(var p=this.activeEndpoint,J=this.data,S=this.expandableItems.children,H=0,M=S.length;H<M;H++)S[H].activeEndpoint=p;J&&J.autoExpandCommand&&p&&!this.userToggled&&(S=this.data.autoExpandCommand,J=!(!_.e(S,_.Ge)||!_.e(p,_.Ge)||_.e(S,_.Ge).browseId!==_.e(p,_.Ge).browseId),p=this.get("commandMetadata.webCommandMetadata.url",p),S=this.get("commandMetadata.webCommandMetadata.url",S),J=J||!!(p&&S&&p.includes(S)),this._setExpanded(J),J&&this.ytLazyListBehavior.fillRemainingListItems())};
C4.prototype.observeActiveEndpoint=C4.prototype.observeActiveEndpoint;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.y$.YtLazyListBehavior),_.Y("design:type",Object)],C4.prototype,"ytLazyListBehavior",void 0);_.V([_.FM("#expandable-items"),_.Y("design:type",HTMLElement)],C4.prototype,"expandableItems",void 0);
_.V([_.N(),_.Y("design:type",Object)],C4.prototype,"data",void 0);_.V([_.N({readOnly:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],C4.prototype,"expanded",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],C4.prototype,"initialCount",void 0);_.V([_.N(),_.Y("design:type",Object)],C4.prototype,"activeEndpoint",void 0);_.V([_.bO("data","activeEndpoint","canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C4.prototype,"observeActiveEndpoint",null);
_.V([_.gw({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],C4);
_.l(C4,"ytd-guide-collapsible-entry-renderer",function(){if(sNp!==void 0)return sNp;var p=document.createElement("template");_.C(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" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return sNp=p},{mode:_.Jz("kevlar_poly_si_batch_j079")?1:2});var tWN;var hyr;var yC=function(){var p=_.T.apply(this,arguments)||this;p.allVideosCount=0;p.renderGuideEntry=!1;return p};
_.Q(yC,_.T);yC.prototype.observeRenderEntry=function(){var p;this.renderGuideEntry=!((p=this.data)==null||!p.alwaysShow)||!!this.allVideosCount};
yC.prototype.observeRenderEntry=yC.prototype.observeRenderEntry;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],yC.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yC.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],yC.prototype,"activeEndpoint",void 0);_.V([_.N({selector:_.TFk}),_.Y("design:type",Object)],yC.prototype,"allVideosCount",void 0);
_.V([_.N(),_.Y("design:type",Object)],yC.prototype,"renderGuideEntry",void 0);_.V([_.An("allVideosCount","data.alwaysShow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yC.prototype,"observeRenderEntry",null);_.V([_.gw({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],yC);
_.l(yC,"ytd-guide-downloads-entry-renderer",function(){if(hyr===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);hyr=p}p=hyr;return p},{mode:1});var BX=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return p};
_.Q(BX,_.T);_.R=BX.prototype;_.R.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]]"}}}}}};
_.R.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var p=this.sectionItems.children,J=0,S=p.length;J<S;J++)p[J].activeEndpoint=this.activeEndpoint}};
_.R.handleAddToGuideSectionAction=function(p){var J=_.e(p,OBU);if(J&&this.data&&(p=J.items,J=J.handlerData,p&&J&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(J)>-1)){J=0;for(var S=p.length;J<S;J++)p[J].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,p[J])}};
_.R.handleRemoveFromGuideSectionAction=function(p){var J=_.e(p,AY$);J&&this.data&&(p=J.guideEntryId,J=J.handlerData,p&&J&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(J)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(p,this.data.sectionItems),this.removeFromCollapsedSection(p,this.data.sectionItems)))};
_.R.removeFromExpandedSection=function(p,J){p=this.getEntryIndexMatchingId(p,J);p!==-1&&this.splice("data.sectionItems",p,1)};
_.R.removeFromCollapsedSection=function(p,J){var S=J.findIndex(function(H){return!!_.e(H,iXI)});
S&&S!==-1&&J[S]&&_.e(J[S],iXI)&&(J=_.e(J[S],iXI).expandableItems)&&(p=this.getEntryIndexMatchingId(p,J),p!==-1&&this.splice("data.sectionItems."+S+".guideCollapsibleEntryRenderer.expandableItems",p,1))};
_.R.getEntryIndexMatchingId=function(p,J){var S=this;return J.findIndex(function(H){return S.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",H)===p})};
BX.prototype.activeEndpointChanged=BX.prototype.activeEndpointChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],BX.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],BX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.FM("#section-items"),_.Y("design:type",HTMLDivElement)],BX.prototype,"sectionItems",void 0);
_.V([_.FM("#header-entry"),_.Y("design:type",Object)],BX.prototype,"headerEntry",void 0);_.V([_.N(),_.Y("design:type",Object)],BX.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],BX.prototype,"activeEndpoint",void 0);_.V([_.bO("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BX.prototype,"activeEndpointChanged",null);_.V([_.gw({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],BX);
_.l(BX,"ytd-guide-collapsible-section-entry-renderer",function(){if(tWN===void 0){var p=document.createElement("template");_.C(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="true" 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(_.r().content.cloneNode(!0),p.content.firstChild);tWN=p}p=tWN;return p},{mode:1});var Di$;var kzr;var U_=function(){var p=_.T.apply(this,arguments)||this;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};
_.Q(U_,_.T);_.R=U_.prototype;
_.R.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}}}}};
_.R.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var p=_.L1(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);p&&p.length===1&&p[0]&&_.L1(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.R.handleResetChannelUnreadCountCommand=function(p){var J;(p=(J=_.e(p,zPI))==null?void 0:J.channelId)&&this.data&&this.data.items&&(J=this.getPathToEntryMatchingId(p))&&(this.set(J+".guideEntryRenderer.count",0),this.set(J+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.R.handleResetSubscriptionsUnreadDotCommand=function(p){var J,S=(J=_.e(p,$_U))==null?void 0:J.targetId,H;S&&(H=this.data)!=null&&H.items&&(p=this.data.items.findIndex(function(M){var X;return((X=M.guideEntryRenderer)==null?void 0:X.targetId)===S}),p<0||this.set("data.items."+p+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.R.getPathToEntryMatchingId=function(p){if(this.data&&this.data.items){var J=this.getEntryIndexMatchingId(p,this.data.items);if(J>-1)return"data.items."+J;for(var S=0;S<this.data.items.length;S++)if(J=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[S]))if(J=this.getEntryIndexMatchingId(p,J),J>-1)return"data.items."+S+".guideCollapsibleEntryRenderer.expandableItems."+J}};
_.R.handleAddToGuideSectionAction=function(p){var J=this;if(_.e(p,OBU)){var S=_.e(p,OBU).items;p=_.e(p,OBU).handlerData;var H,M;if(S&&p&&((H=this.data)==null?void 0:(M=H.handlerDatas)==null?void 0:M.indexOf(p))>-1){S=S.filter(function(Z){return(Z=J.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z))&&!J.isGuideItemPresent(Z)});
var X;if(p==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((X=this.data)==null?0:X.items)&&(H=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),H>-1)){this.splice.apply(this,["data.items",H+1,0].concat(_.dW(S)));return}this.unshift.apply(this,["data.items"].concat(_.dW(S)))}}};
_.R.isGuideItemPresent=function(p){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(p,this.data.items)!==-1)return!0;var J=this.data.items.find(function(S){return!!S.guideCollapsibleEntryRenderer});
if((J==null?0:J.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(p,J.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.R.getEntryIndexMatchingId=function(p,J){var S=this;return J.findIndex(function(H){return S.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",H)===p})};
_.R.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(p,J){var S=this;return J.findIndex(function(H){return S.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",H)===p})};
_.R.handleRemoveFromGuideSectionAction=function(p){if(_.e(p,AY$)){var J=_.e(p,AY$).guideEntryId;p=_.e(p,AY$).handlerData;var S,H;J&&p&&((S=this.data)==null?void 0:(H=S.handlerDatas)==null?void 0:H.indexOf(p))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(J,this.data.items),this.removeFromCollapsedSection(J,this.data.items))}};
_.R.removeFromExpandedSection=function(p,J){p=this.getEntryIndexMatchingId(p,J);p!==-1&&this.splice("data.items",p,1)};
_.R.removeFromCollapsedSection=function(p,J){var S=J.findIndex(function(H){return!!H.guideCollapsibleEntryRenderer});
S!==-1&&(J=J[S].guideCollapsibleEntryRenderer.expandableItems)&&(p=this.getEntryIndexMatchingId(p,J),p!==-1&&this.splice("data.items."+S+".guideCollapsibleEntryRenderer.expandableItems",p,1))};
_.R.activeEndpointChanged=function(){for(var p=_.Jn(this.hostElement).querySelector("#items").children,J=0,S=p.length;J<S;J++)p[J].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.R.guideOpenedChanged=function(){for(var p=_.Jn(this.hostElement).querySelector("#items").children,J=0,S=p.length;J<S;J++)p[J].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
U_.prototype.guideOpenedChanged=U_.prototype.guideOpenedChanged;U_.prototype.activeEndpointChanged=U_.prototype.activeEndpointChanged;U_.prototype.persistentGuideChanged=U_.prototype.persistentGuideChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],U_.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],U_.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.y$.YtLazyListBehavior),_.Y("design:type",Object)],U_.prototype,"ytLazyListBehavior",void 0);_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],U_.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],U_.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],U_.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",String)],U_.prototype,"type",void 0);_.V([_.N({value:20}),_.Y("design:type",Number)],U_.prototype,"initialCount",void 0);_.V([_.N({value:10}),_.Y("design:type",Number)],U_.prototype,"targetFramerate",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],U_.prototype,"autoFill",void 0);_.V([_.N({value:50}),_.Y("design:type",Number)],U_.prototype,"renderDelay",void 0);
_.V([_.bO("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U_.prototype,"persistentGuideChanged",null);_.V([_.An("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U_.prototype,"activeEndpointChanged",null);_.V([_.An("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U_.prototype,"guideOpenedChanged",null);
_.V([_.gw({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],U_);
_.l(U_,"ytd-guide-section-renderer",function(){if(kzr!==void 0)return kzr;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return kzr=p},{mode:_.Jz("kevlar_poly_si_batch_j073")?1:2});var NjP;var s_=function(){return _.T.apply(this,arguments)||this};
_.Q(s_,_.T);_.vh.Object.defineProperties(s_.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],s_.prototype,"rendererBehaviors",void 0);_.V([_.N(),_.Y("design:type",Object)],s_.prototype,"data",void 0);_.V([_.N(),_.U("data.signInButton.buttonRenderer.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],s_.prototype,"alignByText",null);_.V([_.gw({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],s_);
_.l(s_,"ytd-guide-signin-promo-renderer",function(){if(NjP===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);NjP=p}p=NjP;return p},{mode:1});var g5=function(){var p=_.T.apply(this,arguments)||this;p.showFooter=!1;return p};
_.Q(g5,_.T);g5.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}}}}};
g5.prototype.attached=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1){J=_.vO().resolve(_.F9(_.bA));if(!J)return S.jumpTo(0);J.setGuideData(p.hostElement);return S.yield(0,3)}p.ytLazyListBehavior.initialCount=2;return S.return()})};
g5.prototype.onMouseExit=function(){_.z("web_guide_hover_expansion")&&_.L1(this.hostElement,"yt-guide-mouseleaved",[])};
g5.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
g5.prototype.dataChanged=g5.prototype.dataChanged;g5.prototype.onMouseExit=g5.prototype.onMouseExit;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],g5.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.y$.YtLazyListBehavior),_.Y("design:type",Object)],g5.prototype,"ytLazyListBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],g5.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],g5.prototype,"showFooter",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],g5.prototype,"autoFill",void 0);_.V([_.GI("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g5.prototype,"onMouseExit",null);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g5.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-guide-renderer",disableElementRegistration:!0})],g5);
_.l(g5,"ytd-guide-renderer",function(){if(Di$!==void 0)return Di$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Di$=p},{mode:_.Jz("kevlar_poly_si_batch_j073")?1:2});var Tjw;var tC=function(){var p=_.T.apply(this,arguments)||this;p.systemIcons=_.z("kevlar_system_icons");p.frostedGlass=_.z("web_frosted_glass");p.onAllyMenuButtonClick=function(){var J=p.getShowSheetCommand();J&&p.ytComponentBehavior.resolveCommand(J)};
p.getEndpointForm=function(){return M_N(p.data)};
return p};
_.Q(tC,_.T);_.R=tC.prototype;_.R.attached=function(){this.JSC$20913_sheetController=_.vO().resolve(_.Sd)};
_.R.onDown=function(){this.interaction.triggerDown()};
_.R.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var p;if((p=this.JSC$20913_sheetController)!=null){var J=this.mouseEnterCallback.bind(this),S=this.mouseLeaveCallback.bind(this);p.hoverEnterCallback=J!=null?J:void 0;p.hoverLeaveCallback=S!=null?S:void 0}}};
_.R.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.R.isSeedlessReelCommand=function(p){var J;return!!p&&((J=_.e(p,_.vt))==null?void 0:J.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.R.isShowSheetCommand=function(p){return!!p&&!!_.e(p,_.zy)};
_.R.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.R.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.R.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.R.onUp=function(){this.interaction.triggerUp()};
_.R.onTap=function(p){if(this.data.serviceEndpoint){if(_.z("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);p.preventDefault();return}HXy(this.data.serviceEndpoint,this)}p.preventDefault()}else{var J;((J=this.data)==null?0:J.navigationEndpoint)&&!_.jK(_.Er(p),
this.hostElement,["A".toString()])&&_.cf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.R.computeActive=function(p,J){if(!p)return!1;var S=p.navigationEndpoint;p=p.serviceEndpoint;if(!S&&!p||!J)return!1;if(S){p=_.e(S,_.Ge);var H=_.e(J,_.Ge);if(p&&H)return p.browseId===H.browseId&&p.params===H.params;var M;S=(M=_.e(S.commandMetadata,_.i7))==null?void 0:M.url;var X;J=(X=_.e(J.commandMetadata,_.i7))==null?void 0:X.url;return!(!S||!J||S!==J&&S!==_.yn(J))}return this.isActiveShortsTab(p,J)};
_.R.isActiveShortsTab=function(p,J){J=!!_.e(J,_.vt)||!!_.e(J,_.iq);return(!!_.e(p,_.vt)||!!_.e(p,_.iq))&&J};
_.R.computeTitle=function(p,J){return J?"":_.E4(p)};
_.R.computeEndpoint=function(p){return this.isSeedlessReelCommand(p.serviceEndpoint)?p.serviceEndpoint:p.navigationEndpoint};
_.R.computeAriaLabelTitle=function(p){return _.E4(p)};
_.R.computeAllyShowMenuOnTap=function(p){return this.isShowSheetCommand(p.mouseEnterEndpoint)||this.isShowSheetCommand(p.serviceEndpoint)};
_.vh.Object.defineProperties(tC.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
tC.prototype.onMouseLeave=tC.prototype.onMouseLeave;tC.prototype.onMouseEnter=tC.prototype.onMouseEnter;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],tC.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.cy),_.Y("design:type",Object)],tC.prototype,"ironButtonState",void 0);_.V([_.N(),_.Y("design:type",Object)],tC.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],tC.prototype,"activeEndpoint",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tC.prototype,"noLabels",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.Y("design:type",Boolean)],tC.prototype,"isActive",void 0);_.V([_.N({computed:"computeEndpoint(data)"}),_.Y("design:type",Object)],tC.prototype,"computedEndpoint",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],tC.prototype,"systemIcons",void 0);_.V([_.FM("yt-interaction"),_.Y("design:type",Object)],tC.prototype,"interaction",void 0);_.V([_.U("isActive"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tC.prototype,"ariaSelected",null);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],tC.prototype,"frostedGlass",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.Y("design:type",Boolean)],tC.prototype,"allyShowMenuOnTap",void 0);_.V([_.GI("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],tC.prototype,"onMouseEnter",null);_.V([_.GI("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],tC.prototype,"onMouseLeave",null);
_.V([_.gw({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],tC);
_.l(tC,"ytd-mini-guide-entry-renderer",function(){if(Tjw!==void 0)return Tjw;var p=document.createElement("template");_.C(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" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(computedEndpoint)]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\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="0" 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<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);return Tjw=p},{mode:_.Jz("kevlar_poly_si_batch_j063")?1:2});var diI;var hC=function(){var p=_.T.apply(this,arguments)||this;p.allVideosCount=0;p.noLabels=_.z("kevlar_mini_guide_no_labels");p.frostedGlass=_.z("web_frosted_glass");return p};
_.Q(hC,_.T);_.R=hC.prototype;_.R.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.R.onMouseEnter=function(){_.z("web_guide_hover_expansion")&&_.L1(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.R.visibleChanged=function(){if(this.visible&&!this.data){var p=_.vO().resolve(_.F9(_.bA));p&&p.setGuideData(this.hostElement)}};
_.R.dataChanged=function(){var p=_.z("kevlar_guide_menu_on_hover")&&_.z("kevlar_modern_mini_guide"),J=_.z("kevlar_guide_menu_on_click")&&_.z("kevlar_modern_mini_guide"),S;var H=(S=this.data)==null?void 0:S.items;S=this.allVideosCount;var M=[];p=p?0:J?1:void 0;J=p!==void 0;if(H){for(var X=[],Z=_.K(H),n=Z.next();!n.done;n=Z.next())if(n=n.value,n.guideSubscriptionsSectionRenderer){var b=void 0;X=((b=n.guideSubscriptionsSectionRenderer)==null?void 0:b.items)||[]}H=_.K(H);for(Z=H.next();!Z.done;Z=H.next())if(Z=
Z.value,n=void 0,(n=Z.guideSectionRenderer)==null?0:n.items)for(n=void 0,Z=_.K((n=Z.guideSectionRenderer)==null?void 0:n.items),n=Z.next();!n.done;n=Z.next()){n=n.value;var F=void 0,f=void 0;b=n.guideEntryRenderer||_.e((F=n)==null?void 0:(f=F.guideCollapsibleSectionEntryRenderer)==null?void 0:f.headerEntry,Xj$);F=[];f=[];var O=void 0;if(((O=b)==null?void 0:O.targetId)==="subscriptions-guide-item")F=X;else{var A=O=void 0;if((O=n)==null?0:(A=O.guideCollapsibleSectionEntryRenderer)==null?0:A.sectionItems)f=
F=n.guideCollapsibleSectionEntryRenderer.sectionItems}Kkr(M,b,J?F:[],p);if(f.length>0)for(n=_.K(f),b=n.next();!b.done;b=n.next())b=b.value,f=_.e(b,D_N),F=void 0,f=f&&(f.alwaysShow||S)?_.e((F=f)==null?void 0:F.entryRenderer,Xj$):_.e(b,Xj$),Kkr(M,f,[])}}this.miniGuideItems=M};
_.R.activeEndpointChanged=function(){for(var p=this.items.children,J=0;J<p.length;J++)p[J].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.R.registerWithViewTransitionManager=function(){var p=this;_.uS(_.wg,function(){var J=_.vO().resolve(_.F9(_.cD));if(J&&J.isAnyTransitionEnabled){var S={};J.viewTransitionCoordinator.registerElement(p.hostElement,(S.slide="mini-guide-page-transition",S))}})};
hC.prototype.activeEndpointChanged=hC.prototype.activeEndpointChanged;hC.prototype.dataChanged=hC.prototype.dataChanged;hC.prototype.visibleChanged=hC.prototype.visibleChanged;hC.prototype.onMouseEnter=hC.prototype.onMouseEnter;_.V([_.B(_.RB),_.Y("design:type",Object)],hC.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],hC.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],hC.prototype,"ytComponentBehavior",void 0);_.V([_.FM("#items"),_.Y("design:type",Object)],hC.prototype,"items",void 0);_.V([_.N(),_.Y("design:type",Object)],hC.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],hC.prototype,"visible",void 0);_.V([_.N(),_.Y("design:type",Object)],hC.prototype,"miniGuideItems",void 0);_.V([_.N({selector:_.TFk}),_.Y("design:type",Object)],hC.prototype,"allVideosCount",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],hC.prototype,"noLabels",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],hC.prototype,"frostedGlass",void 0);
_.V([_.GI("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hC.prototype,"onMouseEnter",null);_.V([_.An("visible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hC.prototype,"visibleChanged",null);_.V([_.An("data","allVideosCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hC.prototype,"dataChanged",null);
_.V([_.An("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hC.prototype,"activeEndpointChanged",null);_.V([_.gw({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],hC);
_.l(hC,"ytd-mini-guide-renderer",function(){if(diI===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);diI=p}p=diI;return p},{mode:1});var uWM;var lsP=/^[\x00-\x7F]+$/,DA=function(){return _.T.apply(this,arguments)||this};
_.Q(DA,_.T);_.vh.Object.defineProperties(DA.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var p,J=_.E4((p=this.data)==null?void 0:p.handle);if(J)return _.aR("@"+J)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var p=_.E4(this.displayHandle),J,S=_.E4((J=this.data)==null?void 0:J.handleUrl);if(p&&S)return _.aR(S+p)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var p=_.E4(this.displayHandle);if(p&&!lsP.test(p)){var J;return(J=this.data)==null?void 0:J.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var p=_.E4(this.displayHandleUrl),J,S=_.E4((J=this.data)==null?void 0:J.urlInfoText);if(p&&S)return _.aR(S+" "+p)}}});
_.V([_.N(),_.Y("design:type",Object)],DA.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DA.prototype,"displayHandle",null);_.V([_.U("displayHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DA.prototype,"displayHandleUrl",null);_.V([_.U("displayHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DA.prototype,"warningText",null);
_.V([_.U("displayHandleUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DA.prototype,"urlInfoTextWithUrl",null);_.V([_.gw({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],DA);
_.l(DA,"ytd-handles-claiming-confirm-dialog-content",function(){if(uWM!==void 0)return uWM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return uWM=p},{mode:1});var VW$;var kK=function(){var p=_.T.apply(this,arguments)||this;p.okButtonOverride={style:"mono",type:"outline",size:"M"};return p};
_.Q(kK,_.T);kK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kK.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],kK.prototype,"okButtonOverride",void 0);_.V([_.N(),_.Y("design:type",Object)],kK.prototype,"data",void 0);_.V([_.gw({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],kK);
_.l(kK,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(VW$!==void 0)return VW$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return VW$=p},{mode:1});var qfI;var asp=/^[\x00-\x7F]+$/,Nm=function(){var p=_.T.apply(this,arguments)||this;p.isLoading=!1;return p};
_.Q(Nm,_.T);Nm.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var p;this.selectedHandle=(p=this.handleInput)==null?void 0:p.value;this.onSelectedHandleChanged(this.selectedHandle);_.L1(this.hostElement,"yt-refit-popups-action")}};
_.vh.Object.defineProperties(Nm.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 _.aR("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.aR(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!asp.test(this.selectedHandle)){var p;return(p=this.data)==null?void 0:p.warningText}}}});
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Nm.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Nm.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],Nm.prototype,"selectedHandle",void 0);_.V([_.N(),_.Y("design:type",Object)],Nm.prototype,"isLoading",void 0);_.V([_.N(),_.Y("design:type",Function)],Nm.prototype,"onSelectedHandleChanged",void 0);_.V([_.FM("#channel-handle-input"),_.Y("design:type",Object)],Nm.prototype,"handleInput",void 0);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nm.prototype,"handleUrlPrefix",null);_.V([_.U("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nm.prototype,"displayHandle",null);_.V([_.U("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nm.prototype,"displayHandleUrl",null);_.V([_.U("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nm.prototype,"warningText",null);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.V([_.gw({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Nm);
_.l(Nm,"ytd-handles-claiming-edit-dialog-content",function(){if(qfI!==void 0)return qfI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return qfI=p},{mode:1});var E$U;var T8=function(){var p=_.T.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(J){p.selectedHandle=J};
return p};
_.Q(T8,_.T);_.R=T8.prototype;_.R.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.R.onDataChanged=function(){var p,J;this.selectedHandle=(J=_.e((p=this.data)==null?void 0:p.inputField,bB$))==null?void 0:J.handle};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onCancel=function(){this.selectedHandle="";_.IV(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.onSelectHandle=function(){var p=this;if(this.selectedHandle!==void 0){var J;((J=this.data)==null?void 0:J.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(S,H){if(H.newHandleUpdateStatus!==void 0&&H.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&H.newHandleUpdateStatus.errorMessage)_.Vh(p.hostElement,_.E4(H.newHandleUpdateStatus.errorMessage)),
p.isLoading=!1;else{var M;if((M=p.data)==null?0:M.onChannelUpdateSuccess){S=p.data.onChannelUpdateSuccess;var X,Z;if(H=(X=_.e(S,_.Yi))==null?void 0:(Z=X.popup)==null?void 0:Z.handlesClaimingConfirmDialogRenderer)H.handle=_.aR(p.selectedHandle);p.ytComponentBehavior.resolveCommand(S);_.IV(p.hostElement,"yt-close-popup-action",[p.is])}else p.isLoading=!1}},
onServerError:function(){var S;p.content&&((S=p.content)==null?0:S.handleInput)&&p.content.handleInput.validate();p.isLoading=!1;_.Vh(p.hostElement,_.Kl("TRY_AGAIN_LATER"))}}}))}};
_.R.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
T8.prototype.onDataChanged=T8.prototype.onDataChanged;T8.prototype.onSelectedHandleChanged=T8.prototype.onSelectedHandleChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],T8.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],T8.prototype,"actionButtonOverride",void 0);_.V([_.N(),_.Y("design:type",Object)],T8.prototype,"cancelButtonOverride",void 0);_.V([_.N(),_.Y("design:type",Object)],T8.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",String)],T8.prototype,"selectedHandle",void 0);_.V([_.N(),_.Y("design:type",Object)],T8.prototype,"selectButtonDisabled",void 0);_.V([_.N(),_.Y("design:type",Object)],T8.prototype,"isLoading",void 0);_.V([_.N(),_.Y("design:type",Object)],T8.prototype,"hasSelectedHandleEventListener",void 0);_.V([_.N(),_.Y("design:type",Object)],T8.prototype,"handleInput",void 0);
_.V([_.bO("selectedHandle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T8.prototype,"onSelectedHandleChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T8.prototype,"onDataChanged",null);_.V([_.FM("ytd-handles-claiming-edit-dialog-content"),_.Y("design:type",Object)],T8.prototype,"content",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.gw({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],T8);
_.l(T8,"ytd-handles-claiming-edit-dialog-renderer",function(){if(E$U!==void 0)return E$U;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return E$U=p},{mode:1});var Yfr;var d5=function(){return _.T.apply(this,arguments)||this};
_.Q(d5,_.T);_.vh.Object.defineProperties(d5.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.handle){var J;return _.aR("@"+_.E4((J=this.data)==null?void 0:J.handle))}}}});
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],d5.prototype,"formattedHandle",null);_.V([_.N(),_.Y("design:type",Object)],d5.prototype,"data",void 0);_.V([_.gw({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],d5);
_.l(d5,"ytd-handles-claiming-radio-option-renderer",function(){if(Yfr!==void 0)return Yfr;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Yfr=p},{mode:1});var rKM;var jNe=/^[\x00-\x7F]+$/,uY=function(){var p=_.T.apply(this,arguments)||this;p.initialRadioIndex="-1";p.isLoading=!1;p.maybeSubmitFeedback=function(){p.feedbackSurveyRenderer.submitSurvey()};
return p};
_.Q(uY,_.T);uY.prototype.updateSelectedHandleIndexFromBinding=function(p){this.selectedRadioIndex=+p.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(p)};
uY.prototype.selectedHandleChanged=function(p){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var J;this.selectedHandle=(J=this.handleInput)==null?void 0:J.value;this.onSelectedHandleChanged(p)}};
_.vh.Object.defineProperties(uY.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 _.aR("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.aR(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!jNe.test(this.selectedHandle)){var p;return(p=this.data)==null?void 0:p.warningText}}}});
_.V([_.N(),_.Y("design:type",Object)],uY.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],uY.prototype,"initialRadioIndex",void 0);_.V([_.N(),_.Y("design:type",Number)],uY.prototype,"selectedRadioIndex",void 0);_.V([_.N(),_.Y("design:type",String)],uY.prototype,"selectedHandle",void 0);_.V([_.N(),_.Y("design:type",Object)],uY.prototype,"isLoading",void 0);_.V([_.N(),_.Y("design:type",Function)],uY.prototype,"onSelectedHandleChanged",void 0);
_.V([_.N(),_.Y("design:type",Function)],uY.prototype,"onSelectedRadioIndexChanged",void 0);_.V([_.FM("#channel-handle-input"),_.Y("design:type",Object)],uY.prototype,"handleInput",void 0);_.V([_.FM("ytd-feedback-survey-renderer"),_.Y("design:type",Object)],uY.prototype,"feedbackSurveyRenderer",void 0);_.V([_.U("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],uY.prototype,"radioButtonLength",null);
_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uY.prototype,"handleUrlPrefix",null);_.V([_.U("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uY.prototype,"displayHandle",null);_.V([_.U("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uY.prototype,"displayHandleUrl",null);_.V([_.U("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uY.prototype,"warningText",null);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.V([_.gw({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],uY);
_.l(uY,"ytd-handles-claiming-select-dialog-content",function(){if(rKM!==void 0)return rKM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return rKM=p},{mode:1});var wUU;var lY=function(){var p=_.T.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(J){p.selectedRadioIndex=Number(J.detail.value)};
p.selectedHandleChanged=function(J){p.selectedHandle=J.detail.value};
return p};
_.Q(lY,_.T);_.R=lY.prototype;_.R.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.R.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.R.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.L1(this.hostElement,"yt-refit-popups-action")};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.IV(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.onSelectHandle=function(){var p=this;if(this.selectedHandle!==void 0){var J;((J=this.data)==null?void 0:J.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(S,H){if(H.newHandleUpdateStatus!==void 0&&H.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&H.newHandleUpdateStatus.errorMessage)_.Vh(p.hostElement,_.E4(H.newHandleUpdateStatus.errorMessage)),
p.isLoading=!1;else{var M;if((M=p.data)==null?0:M.onChannelUpdateSuccess){S=p.data.onChannelUpdateSuccess;H=_.e(S,_.Yi);var X;if(H==null?0:(X=H.popup)==null?0:X.handlesClaimingConfirmDialogRenderer)H.popup.handlesClaimingConfirmDialogRenderer.handle=_.aR(p.selectedHandle);p.ytComponentBehavior.resolveCommand(S);_.IV(p.hostElement,"yt-close-popup-action",[p.is])}else p.isLoading=!1}},
onServerError:function(){if(p.selectedRadioIndex===p.radioButtonLength){var S;p.content&&((S=p.content)==null?0:S.handleInput)&&p.content.handleInput.validate()}p.isLoading=!1;_.Vh(p.hostElement,_.Kl("TRY_AGAIN_LATER"))}}}))}};
_.R.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var p,J;this.selectedHandle=(p=this.content)==null?void 0:(J=p.handleInput)==null?void 0:J.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)};
_.R.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.R.getRadioItem=function(p){if(this.radioButtonLength>p&&p>=0)return _.e(this.data.radioButton[p],BvP)};
_.vh.Object.defineProperties(lY.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.radioButton)||[]).length}}});
lY.prototype.onSelectedHandleChanged=lY.prototype.onSelectedHandleChanged;lY.prototype.onSelectedHandleIndexChanged=lY.prototype.onSelectedHandleIndexChanged;lY.prototype.onDataChanged=lY.prototype.onDataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],lY.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],lY.prototype,"actionButtonOverride",void 0);_.V([_.N(),_.Y("design:type",Object)],lY.prototype,"cancelButtonOverride",void 0);
_.V([_.N(),_.Y("design:type",Object)],lY.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],lY.prototype,"initialRadioIndex",void 0);_.V([_.N(),_.Y("design:type",Number)],lY.prototype,"selectedRadioIndex",void 0);_.V([_.N(),_.Y("design:type",String)],lY.prototype,"selectedHandle",void 0);_.V([_.N(),_.Y("design:type",Object)],lY.prototype,"selectButtonDisabled",void 0);_.V([_.N(),_.Y("design:type",Object)],lY.prototype,"isLoading",void 0);
_.V([_.U("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],lY.prototype,"radioButtonLength",null);_.V([_.FM("ytd-handles-claiming-select-dialog-content"),_.Y("design:type",Object)],lY.prototype,"content",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lY.prototype,"onDataChanged",null);
_.V([_.bO("selectedRadioIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lY.prototype,"onSelectedHandleIndexChanged",null);_.V([_.bO("selectedHandle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lY.prototype,"onSelectedHandleChanged",null);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.gw({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],lY);
_.l(lY,"ytd-handles-claiming-select-dialog-renderer",function(){if(wUU!==void 0)return wUU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return wUU=p},{mode:1});var xiU;var cKU;var VC=function(){return _.T.apply(this,arguments)||this};
_.Q(VC,_.T);VC.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],VC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],VC.prototype,"data",void 0);_.V([_.gw({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],VC);
_.l(VC,"ytd-hotkey-dialog-section-option-renderer",function(){if(cKU!==void 0)return cKU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return cKU=p},{mode:1});var IsM;var qm=function(){return _.T.apply(this,arguments)||this};
_.Q(qm,_.T);qm.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qm.prototype,"data",void 0);_.V([_.gw({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],qm);
_.l(qm,"ytd-hotkey-dialog-section-renderer",function(){if(IsM!==void 0)return IsM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return IsM=p},{mode:1});var ai=function(){return _.T.apply(this,arguments)||this};
_.Q(ai,_.T);ai.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ai.prototype,"data",void 0);_.V([_.gw({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],ai);
_.l(ai,"ytd-hotkey-dialog-content",function(){if(xiU!==void 0)return xiU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return xiU=p},{mode:1});var LLy;var E_=function(){return _.T.apply(this,arguments)||this};
_.Q(E_,_.T);E_.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)};
E_.prototype.onCloseTap=function(){_.IV(this.hostElement,"yt-close-popup-action")};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],E_.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],E_.prototype,"data",void 0);_.V([_.gw({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],E_);
_.l(E_,"ytd-hotkey-dialog-renderer",function(){if(LLy!==void 0)return LLy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return LLy=p},{mode:1});var pkP;var YK=function(){return _.T.apply(this,arguments)||this};
_.Q(YK,_.T);YK.prototype.onYtServiceRequestError=function(){if(this.blocked){var p;var J=(p=this.data)==null?void 0:p.defaultServiceEndpoint}else{var S;J=(S=this.data)==null?void 0:S.toggledServiceEndpoint}var H;(J=(H=_.e(J,_.NBn))==null?void 0:H.onFailureAction)&&this.ytComponentBehavior.resolveCommand(J);this.updateBlockState(!this.blocked)};
YK.prototype.onYtToggleButton=function(p){this.updateBlockState(p.detail.toggled)};
YK.prototype.updateBlockState=function(p){if(p!==this.blocked){var J=this.blockedEntityKey;J&&this.ytdReduxBehavior.dispatch(_.P$("blockStateEntity",J,{key:J,blocked:p}));this.set("data.isToggled",p)}};
_.vh.Object.defineProperties(YK.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)}}});
YK.prototype.onYtToggleButton=YK.prototype.onYtToggleButton;YK.prototype.onYtServiceRequestError=YK.prototype.onYtServiceRequestError;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],YK.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],YK.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],YK.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],YK.prototype,"blockedEntityKey",void 0);
_.V([_.N({selectorArgs:["blockedEntityKey"],selector:function(p,J){return _.RR(p.entities,"blockStateEntity",J)}}),
_.Y("design:type",Object)],YK.prototype,"blockStateEntity",void 0);_.V([_.U("data","blockStateEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YK.prototype,"blocked",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],YK.prototype,"onYtServiceRequestError",null);
_.V([_.GI("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],YK.prototype,"onYtToggleButton",null);_.V([_.gw({is:"ytd-block-button",disableElementRegistration:!0})],YK);
_.l(YK,"ytd-block-button",function(){if(pkP!==void 0)return pkP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return pkP=p},
{mode:1});var JUU;var SkP;var r5=function(){return _.T.apply(this,arguments)||this};
_.Q(r5,_.T);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],r5.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],r5.prototype,"data",void 0);_.V([_.gw({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],r5);
_.l(r5,"ytd-kids-blocklist-picker-item-renderer",function(){if(SkP!==void 0)return SkP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return SkP=p},{mode:1});var jG=function(){return _.T.apply(this,arguments)||this};
_.Q(jG,_.T);jG.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],jG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],jG.prototype,"data",void 0);_.V([_.gw({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],jG);
_.l(jG,"ytd-kids-blocklist-picker-content",function(){if(JUU!==void 0)return JUU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return JUU=
p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var HJp;var w5=function(){var p=_.T.apply(this,arguments)||this;p.hasAnyRequestSucceeded=!1;p.hasAnyRequestFailed=!1;p.numPendingRequests=0;return p};
_.Q(w5,_.T);_.R=w5.prototype;_.R.attached=function(){this.hostElement.setAttribute("dialog","")};
_.R.onDoneButtonTap=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.R.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.R.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.R.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.R.onPopupClosed=function(p){var J,S;if(((J=p.detail)==null?void 0:(S=J.popup)==null?void 0:S.is)==="tp-yt-paper-dialog"){var H;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((H=this.data)==null?0:H.successfulToastActionMessage)&&(p=_.wl(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(p));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
w5.prototype.onPopupClosed=w5.prototype.onPopupClosed;w5.prototype.onYtServiceRequestError=w5.prototype.onYtServiceRequestError;w5.prototype.onYtServiceRequestCompleted=w5.prototype.onYtServiceRequestCompleted;w5.prototype.onYtServiceRequestSent=w5.prototype.onYtServiceRequestSent;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],w5.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],w5.prototype,"data",void 0);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],w5.prototype,"onYtServiceRequestSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],w5.prototype,"onYtServiceRequestCompleted",null);
_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],w5.prototype,"onYtServiceRequestError",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],w5.prototype,"onPopupClosed",null);_.V([_.gw({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],w5);
_.l(w5,"ytd-kids-blocklist-picker-renderer",function(){if(HJp!==void 0)return HJp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return HJp=p},{mode:1});var M8N;var Xkf;var xK=function(){return _.T.apply(this,arguments)||this};
_.Q(xK,_.T);xK.prototype.setTip=function(p){var J=this;this.data&&(this.tip=qPj(l1y.getInstance(),p,this.data),_.mN(this,function(){_.cf(J.hostElement,"yt-refit")}))};
xK.prototype.clearTip=function(){this.tip=void 0};
xK.prototype.computeHidden=function(p){return!p};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],xK.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.Y("design:type",Boolean)],xK.prototype,"hidden",void 0);_.V([_.N(),_.Y("design:type",Object)],xK.prototype,"tip",void 0);_.V([_.gw({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],xK);
_.l(xK,"ytd-menu-popup-tip-renderer",function(){if(Xkf!==void 0)return Xkf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);
return Xkf=p},{mode:1});var iJw;var cX=function(){var p=_.T.apply(this,arguments)||this;p.useIcons=!1;p.systemIcons=_.z("kevlar_system_icons");return p};
_.Q(cX,_.T);_.R=cX.prototype;_.R.onFocus=function(){var p;(p=_.Jn(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.R.onTap=function(){var p=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(p&&_.e(p,_.H9))this.componentBehavior.resolveCommand(p),this.updateToggledStateInEntity();else if(p){this.componentBehavior.resolveCommand(p)||_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}});var J;((J=_.e(p,_.X6))==null?void 0:J.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.R.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.R.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.R.updateToggledStateInEntity=function(){var p=this.data.toggleMenuServiceItemEntityKey,J=!this.data.isToggled;p&&this.ytdReduxBehavior.dispatch(_.P$("toggleMenuServiceItemEntity",p,{key:p,isToggled:J}))};
_.R.computeIcon=function(p,J,S){return(p=p?S:J)&&p.iconType?_.Xj(p.iconType):""};
_.R.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.R.isIconActive=function(p){return!_.z("toggle_menu_active_icon_killswitch")&&p};
_.vh.Object.defineProperties(cX.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return((p=this.data)==null?0:p.isToggled)?(J=this.data)==null?void 0:J.toggledText:(S=this.data)==null?void 0:S.defaultText}}});
cX.prototype.toggledStateEntityChanged=cX.prototype.toggledStateEntityChanged;cX.prototype.onYtServiceRequestCompleted=cX.prototype.onYtServiceRequestCompleted;cX.prototype.onTap=cX.prototype.onTap;cX.prototype.onFocus=cX.prototype.onFocus;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],cX.prototype,"componentBehavior",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],cX.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],cX.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],cX.prototype,"useIcons",void 0);_.V([_.N({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Y("design:type",String)],cX.prototype,"icon",void 0);
_.V([_.N({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.IO.toggleMenuServiceItemEntitySelector}),_.Y("design:type",Object)],cX.prototype,"toggleMenuServiceItemEntity",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],cX.prototype,"systemIcons",void 0);_.V([_.GI("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cX.prototype,"onFocus",null);
_.V([_.U("data.isToggled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cX.prototype,"toggleButtonText",null);_.V([_.GI("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cX.prototype,"onTap",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cX.prototype,"onYtServiceRequestCompleted",null);
_.V([_.bO("toggleMenuServiceItemEntity.isToggled","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cX.prototype,"toggledStateEntityChanged",null);_.V([_.gw({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],cX);
_.l(cX,"ytd-toggle-menu-service-item-renderer",function(){if(iJw!==void 0)return iJw;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return iJw=p},{mode:1});var RIU;var Ii=function(){return _.T.apply(this,arguments)||this};
_.Q(Ii,_.T);Ii.prototype.onFocus=function(){var p;(p=_.Jn(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.vh.Object.defineProperties(Ii.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Vd(this.data.iconUrl)}}});
Ii.prototype.onFocus=Ii.prototype.onFocus;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ii.prototype,"rendererBehavior",void 0);_.V([_.B(_.dF.YtEndpointBehavior),_.Y("design:type",Object)],Ii.prototype,"ytEndpointBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ii.prototype,"data",void 0);_.V([_.GI("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ii.prototype,"onFocus",null);
_.V([_.U("data.iconUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ii.prototype,"imageSource",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Ii);
_.l(Ii,"ytd-menu-custom-icon-item-renderer",function(){if(RIU!==void 0)return RIU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return RIU=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});_.ci(_.fW,"yt-list-item-view-model",{props:{data:_.fD,isMenuItem:_.fD,isCompact:_.fD,onTap:_.jr,trailingAccessory:_.jr,hideSelectionTextChevron:_.fD,disabled:_.fD,inPopup:_.fD,disableHorizontalPadding:_.fD,isOverlay:_.fD,isToggled:_.fD,ariaLabel:_.fD,ariaPressed:_.fD,shouldNotFillIcon:_.fD}});var L4=function(){var p=_.T.apply(this,arguments)||this;p.disableBackdropFilter=_.z("web_disable_backdrop_filter");return p};
_.Q(L4,_.T);_.R=L4.prototype;
_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.R.computeAriaLabel=function(p){return p};
_.R.onPopupOpened=function(){this.items.selected=0;for(var p=_.K(_.Jn(this.items).children),J=p.next();!J.done;J=p.next())J.value.popupPositionTarget=this.positionTarget;if(p=this.popupTip||void 0)p.setTip(this.source||""),this.source=void 0;this.veData&&(p=_.C1())&&_.dI(p,[this.veData])};
_.R.onPopupClosed=function(){var p=this.popupTip||void 0;p&&p.clearTip()};
_.R.onIronActivate=function(p){this.shouldPersist(p)||_.IV(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(p=_.C1())&&_.l7(p,this.veData)};
_.R.shouldPersist=function(p){var J,S;if(((J=p.detail)==null?void 0:J.selected)===void 0||(S=this.data)==null||!S.items)return!1;var H,M;return!((M=(H=this.data.items[p.detail.selected])==null?void 0:H.toggleMenuServiceItemRenderer)==null||!M.persistentOnMenuPopup)};
_.R.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};
L4.prototype.onPopupClosed=L4.prototype.onPopupClosed;L4.prototype.onPopupOpened=L4.prototype.onPopupOpened;_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],L4.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],L4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],L4.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],L4.prototype,"veData",void 0);_.V([_.N({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.Y("design:type",String)],L4.prototype,"ariaLabel",void 0);_.V([_.N({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],L4.prototype,"useIcons",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],L4.prototype,"disableBackdropFilter",void 0);_.V([_.FM("#items"),_.Y("design:type",Object)],L4.prototype,"items",void 0);_.V([_.FM("ytd-menu-popup-tip-renderer"),_.Y("design:type",Object)],L4.prototype,"popupTip",void 0);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L4.prototype,"onPopupOpened",null);
_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L4.prototype,"onPopupClosed",null);_.V([_.gw({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],L4);
_.l(L4,"ytd-menu-popup-renderer",function(){if(M8N!==void 0)return M8N;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return M8N=p},{mode:1});var KfU;var ZJj=_.d(function(p){p=_.jh(p,{icon:void 0});var J=p.data;p=p.icon;var S=function(){return J().iconBadgeText},H={},M=_.XB("yt-spec-icon-badge-shape",function(){a:switch(J().iconBadgeType){case "notification":var X="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":X="yt-spec-icon-badge-shape--type-cart";break a;default:X=""}return X},function(){a:switch(J().iconBadgeStyle){case "overlay":var X="yt-spec-icon-badge-shape--style-overlay";
break a;default:X=""}return X},(H["yt-spec-icon-badge-shape--text-size-small"]=function(){var X=S();
return!!((X==null?0:X.length)&&X.length>2)},H));
return _.m("yt-icon-badge-shape",null,_.m(_.v,{cond:p,then:function(X){return _.m("div",{class:M},_.m("div",{class:"yt-spec-icon-badge-shape__icon"},_.m(_.bn,{icon:X})),_.m(_.v,{cond:S,then:function(Z){return _.m("div",{class:"yt-spec-icon-badge-shape__badge"},Z)}}))}}))},"xj");
ZJj.idomCompat=!0;_.ci(ZJj,"yt-icon-badge-shape",{props:{data:_.fD,icon:_.fD}});var pm=function(){var p=_.T.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};
_.Q(pm,_.T);_.R=pm.prototype;_.R.attached=function(){var p=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(J){p.onServiceWorkerMessage(J)})};
_.R.onDataChanged=function(){this.isAttached&&!this.JSC$21000_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$21000_lastData=this.data};
_.R.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.R.computeIcon=function(){var p,J;return(p=this.data)==null?void 0:(J=p.icon)==null?void 0:J.iconType};
_.R.onServiceWorkerMessage=function(p){p.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.R.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.e(this.data.updateUnseenCountEndpoint,_.X6)&&_.e(this.data.updateUnseenCountEndpoint,_.X6).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.R.handleUpdateNotificationsUnseenCountAction=function(p){var J=this;p=_.e(p,PG$);p!=null&&p.unseenCount&&p.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(p.unseenCount),_.wg.addLowPriorityJob(function(){J.data.updateUnseenCountEndpoint&&J.ytComponentBehavior.resolveCommand(J.data.updateUnseenCountEndpoint)},p.timeoutMs))};
_.R.onClick=function(){_.cf(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var p=_.L1(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),J=this.data.menuRequest;p&&p.length===1&&p[0]?_.IV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):J&&this.ytComponentBehavior.resolveCommand(J)};
_.R.handleTopbarMenuClosedAction=function(p){p==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.R.toggleIconState=function(p){this.iconButton&&(this.iconButton.pressed=p)};
_.R.sendUnseenCountRequest=function(p){var J=this;_.uS(_.wg,function(){J.ytComponentBehavior.resolveCommand(p)})};
_.R.updateCountUI=function(p){this.set("unseenCount",p<9?p:"9+")};
_.vh.Object.defineProperties(pm.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
pm.prototype.handleUpdateNotificationsUnseenCountAction=pm.prototype.handleUpdateNotificationsUnseenCountAction;pm.prototype.onDataChanged=pm.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],pm.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QJ),_.Y("design:type",Object)],pm.prototype,"ytdOpenPopupBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],pm.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],pm.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],pm.prototype,"unseenCount",void 0);_.V([_.N(),_.Y("design:type",Object)],pm.prototype,"isOverlay",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],pm.prototype,"showTooltips",void 0);_.V([_.FM("yt-icon-button"),_.Y("design:type",Object)],pm.prototype,"iconButton",void 0);
_.V([_.U("unseenCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pm.prototype,"showNotificationCount",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pm.prototype,"onDataChanged",null);_.V([_.GI("yt-update-notifications-unseen-count-action"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],pm.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.V([_.gw({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],pm);
_.l(pm,"ytd-notification-topbar-button-renderer",function(){if(KfU!==void 0)return KfU;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return KfU=p},{mode:_.Jz("kevlar_poly_si_batch_j025")?1:2});var nH$;var J5=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return p};
_.Q(J5,_.T);J5.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}}}}}};
J5.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
J5.prototype.onDarkModeToggled=function(p){this.dark=p};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],J5.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],J5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],J5.prototype,"data",void 0);_.V([_.N({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],J5.prototype,"dark",void 0);
_.V([_.gw({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],J5);
_.l(J5,"yt-pdg-buy-flow-header-renderer",function(){if(nH$!==void 0)return nH$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return nH$=p},{mode:1});var Ghj;var bJe;var Si=function(){var p=_.T.apply(this,arguments)||this;p.immediateValue=0;p.isDarkTheme=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.Q(Si,_.T);_.R=Si.prototype;_.R.created=function(){_.ip.requestAvailability()};
_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.dataChanged=function(){var p=_.Jn(this.hostElement).querySelector("#color-slider");p.immediateValue&&this.updateSliderKnobAndGradientStyles(p.immediateValue);this.data.notches[0].knobColorArgb&&_.K3(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Bt(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.jn("HTML_DIR")==="rtl"&&_.Jn(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.R.onSliderImmediateChange=function(){var p=_.Jn(this.hostElement).querySelector("#color-slider");p.dragging&&(p.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(p.immediateValue),this.updateSliderKnobAndGradientStyles(p.immediateValue)),this.updateSliderAria())};
_.R.onSliderChange=function(){var p=_.Jn(this.hostElement).querySelector("#color-slider");p.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(p.immediateValue),this.updateSliderKnobAndGradientStyles(p.immediateValue));this.updateSliderAria()};
_.R.updateSliderAria=function(){var p=_.Jn(this.hostElement).querySelector("#color-slider"),J=_.Jn(this.hostElement).querySelector("#color-slider");J=_.E4(this.data.notches[J.immediateValue].tierValue);_.A9i()&&_.cf(this.hostElement,"iron-announce",{text:J});p.setAttribute("aria-valuetext",J)};
_.R.updateSuperThanksSelectedTierEntity=function(p){if(p!==this.immediateValue){var J,S,H=this==null?void 0:(J=this.data)==null?void 0:(S=J.superThanksSelectedTierEntity)==null?void 0:S.key;H&&H.length>0&&this.ytdReduxBehavior.dispatch(_.P$("superThanksSelectedTierEntity",H,{key:H,index:p}))}};
_.R.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.R.updateSliderKnobAndGradientStyles=function(p){this.immediateValue=p;p=this.data.notches[p];if(p==null?0:p.knobColorArgb)var J={"--ytd-pdg-color-slider-knob-color":_.Bt(p.knobColorArgb)};(p==null?0:p.linearGradientCssStyle)&&J!==null&&(J=Object.assign({},J,{"--ytd-pdg-color-slider-active-color":p==null?void 0:p.linearGradientCssStyle}));J!==null&&_.K3(this.hostElement,J)};
Si.prototype.onSliderChange=Si.prototype.onSliderChange;Si.prototype.onSliderImmediateChange=Si.prototype.onSliderImmediateChange;Si.prototype.dataChanged=Si.prototype.dataChanged;_.V([_.N(),_.Y("design:type",Object)],Si.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Si.prototype,"immediateValue",void 0);_.V([_.N(),_.Y("design:type",Number)],Si.prototype,"maxMarkers",void 0);
_.V([_.N({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:KVe}),_.Y("design:type",Object)],Si.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Si.prototype,"isDarkTheme",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Si.prototype,"ytdReduxBehavior",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Si.prototype,"dataChanged",null);
_.V([_.GI("immediate-value-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Si.prototype,"onSliderImmediateChange",null);_.V([_.GI("change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Si.prototype,"onSliderChange",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Si);
_.l(Si,"ytd-pdg-color-slider-renderer",function(){if(bJe!==void 0)return bJe;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return bJe=p},{mode:1});var m$I;var Ffw;var H4=null;
_.QG({is:"ytd-comment-input",_template:function(){if(Ffw!==void 0)return Ffw;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Ffw=p},
behaviors:[_.cAt.YtHostElementBehavior,_.ua,_.KD.YtComponentBehavior,_.QD.YtRendererstamperBehavior,_.njq.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 _.v7}},
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",_.n3(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;_.Qw();this.focus()},
detached:function(){document.removeEventListener("tap",_.n3(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 J=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(J,p);this.maybeUpdateTextDirection_();_.cf(this.hostElement,"input")},
getInputRange_:function(){var p=_.i6();if(p){p=p.getBrowserRangeObject();for(var J=p.commonAncestorContainer;J;){if(J===this.getEditableTextArea_())return p;J=J.parentNode}}p=this.getEditableTextArea_();p=_.IL(p,p.childNodes.length);p.select();return p.getBrowserRangeObject()},
insertTextWithEmojis_:function(p,J,S){(J=this.emojiManager.createDocumentFragment(J,!0,!1,S===void 0?!0:S))&&J.childNodes.length!==0&&(p.collapsed||p.deleteContents(),S=J.lastChild,p.insertNode(J),_.Amd(S).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var p=_.i6();if(p){var J=p.JSC$11499_getStartNode(),S=p.JSC$11499_getEndNode();if(ZXP(J)&&ZXP(S)){var H=p.JSC$11499_getStartOffset(),M;if(_.nu&&J.nodeType===Node.ELEMENT_NODE&&(M=_.vov(J)))_.IL(M,0).select();else{M=M2(J)?J:_.ar(J,M2);var X=M2(S)?S:_.ar(S,M2);if(M||X)if(p.isCollapsed()){if(J.nodeType===Node.TEXT_NODE){p=!0;H===J.length&&(p=!1);if(H4==="end"||H4==="right")p=!1;J=J.parentNode;p=[].concat(_.dW(J.parentNode.childNodes)).indexOf(J)+(p?0:1);_.IL(J.parentNode,
p).select()}}else M?M.previousSibling&&M.previousSibling.length>0?_.Lk(S,p.JSC$11499_getEndOffset(),M.previousSibling,M.previousSibling.length-1).select():(J=document.createTextNode("\u200b"),M.parentNode.insertBefore(J,M),_.Lk(S,p.JSC$11499_getEndOffset(),J,0).select()):X&&(X.nextSibling&&X.nextSibling.length>0?_.Lk(J,p.JSC$11499_getStartOffset(),X.nextSibling,1).select():(S=document.createTextNode("\u200b"),X.parentNode.insertBefore(S,X.nextSibling),_.Lk(J,p.JSC$11499_getStartOffset(),S,S.length).select()));
H4=null}}else H4=null}else H4=null},
leftKeyPressed_:function(){H4="left"},
rightKeyPressed_:function(){H4="right"},
endKeyPressed_:function(){H4="end"},
maybeDeleteChip_:function(){var p=fvr(!0);if(p){var J=_.i6(),S=J.JSC$11499_getStartNode();J=J.JSC$11499_getStartOffset();_.rS(S,J,p,p.childNodes.length).select()}},
maybeBackspaceChip_:function(){var p=fvr(!1);if(p){var J=_.i6(),S=J.JSC$11499_getStartNode();J=J.JSC$11499_getStartOffset();_.rS(S,J,p,0).select()}},
maybeBackspaceChipWordMode_:function(p){var J=_.i6();if(J.isCollapsed()){var S=J.JSC$11499_getStartNode();J=J.JSC$11499_getStartOffset();var H=OXy(S,J,!0);H&&(_.rS(S,J,H,0).select(),document.execCommand("delete"),p.preventDefault(),p.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(p){var J=_.i6();if(J.isCollapsed()){var S=J.JSC$11499_getStartNode();J=J.JSC$11499_getStartOffset();var H=OXy(S,J,!1);H&&(_.rS(S,J,H,H.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"&&M2(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 _.Jn(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Jn(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,J){p=G5P(p,this.emojiManager,J).cloneNode(!0);for(J=p.firstChild;J;)if(J.nodeType!==1)J=J.nextSibling;else switch(J.tagName){case "BR":var S=_.NR();_.em8(S,J);J=S.nextSibling;break;case "DIV":(S=J.lastChild)&&J.nextSibling&&_.l_(_.NR(),S);J.previousSibling&&(J.previousSibling.nodeType===1||J.previousSibling.nodeType===3&&!J.previousSibling.textContent.endsWith("\n"))&&_.u_(_.NR(),J);S&&S.nodeName==="BR"&&_.CC(S);S=J;J.hasChildNodes()?(J=J.firstChild,
_.W9E(S)):(J=J.nextSibling,_.CC(S));break;default:J=J.nextSibling}return AdI(p)},
setTextAreaValue:function(p){p||(p="");var J=this.getEditableFormattedString_();J.text="";this.getEditableTextArea_().innerText="";typeof p==="string"&&(p={runs:[{text:p}]});J.text=p},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();H4=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var p=this.getEditableTextArea_();p&&(_.IL(p,p.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.jn("HTML_DIR")==="rtl"){var p=this.getEditableTextArea_(),J=this.getTextAreaValue()!==""?"auto":"rtl";p.setAttribute("dir",J)}},
handleInputEvent_:function(){var p=null;if(this.isEmojiButtonDisplayed){var J=this.getInputRange_();J&&(p=this.emojiInput.retrieveTextBeforeRange(J))}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),_.cf(this.hostElement,"input"))},
insertText_:function(p,J,S){J=J===void 0?!1:J;S=S===void 0?!0:S;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&p){var H=this.getInputRange_().cloneRange();this.emojiManager&&H&&(J&&this.emojiInput.offsetStartOfRangeBy(H,p.length),this.insertTextWithEmojis_(H,p,S),nrw(this.getEditableTextArea_().lastChild)||(H=this.getInputRange_().cloneRange()),H&&(this.emojiInput.updateSuggestions(H,p),this.updateSuggestionOffset_(H)))}},
getSimpleString:_.E4,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,J){p?this.fire("yt-autonav-pause-focus"):J!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(p){var J=this.getEditableTextArea_();[].concat(_.dW(p.dataTransfer.items)).forEach(function(S){S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(H){J.appendChild(document.createTextNode(H))})});
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&&_.Jn(this.emojiInput).querySelector("#dropdown")){var J=this.getEditableTextArea_().getBoundingClientRect().bottom,S=p.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(J-S)+5;J=this.getEditableTextArea_().getBoundingClientRect().left;p=p.getBoundingClientRect().left-J;_.Jn(this.emojiInput).querySelector("#dropdown").style.marginLeft=p+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.pH("yt-post"));return this.localStorage}});var Me=function(){var p=_.T.apply(this,arguments)||this;p.currentCommentOptionIndex=0;p.isEmojiPickerDisplayed=!1;p.emojiManager=_.v7;p.isUgcEmpty=!1;p.userGeneratedCommentChangedHandler=function(){_.cf(p.hostElement,"ytd-pdg-user-generated-comment-changed");p.isEmojiYtdCommentInputEnabled&&(p.isUgcEmpty=!p.ytdCommentInputEl.getTextAreaValue())};
p.pasteHandler=function(J){J.preventDefault();J.stopImmediatePropagation();var S;if(J=(S=J.clipboardData)==null?void 0:S.getData("text/plain"))S=document.getSelection().getRangeAt(0),S.collapsed||S.deleteContents(),J=document.createTextNode(J),S.insertNode(J),S.selectNodeContents(J),S.collapse(!1),J=window.getSelection(),J.removeAllRanges(),J.addRange(S)};
p.onDocumentClick=function(J){if(p.isEmojiPickerDisplayed){var S,H,M;!(J.target instanceof Node)||(S=J.composedPath())!=null&&S.includes(p.editableTextEl)||(H=J.composedPath())!=null&&H.includes(p.emojiButtonEl)||(M=J.composedPath())!=null&&M.includes(p.emojiPickerEl)||(p.isEmojiPickerDisplayed=!1)}};
return p};
_.Q(Me,_.T);_.R=Me.prototype;_.R.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.R.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.R.detached=function(){var p;(p=this.contentEl)==null||p.removeEventListener("input",this.userGeneratedCommentChangedHandler);var J;(J=this.contentEl)==null||J.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.R.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.R.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()};
_.R.reloadEmojis=function(){this.emojiPickerEl&&_.e(this.emojiPicker,_.O5d)&&this.emojiPickerEl.updateEmojiCategories()};
_.R.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.K3(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.R.handleBackgroundColorStyling=function(){var p;if((p=this.currentCommentOption)==null?0:p.commentBackgroundColorArgb){var J;_.K3(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Bt((J=this.currentCommentOption)==null?void 0:J.commentBackgroundColorArgb)})}else _.K3(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.R.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var p;(p=this.contentEl)==null||p.focus()}};
_.R.onEditButtonClick=function(p){var J=document.getSelection();J&&this.contentEl&&(p.stopPropagation(),p.preventDefault(),J.selectAllChildren(this.contentEl),J.collapseToEnd())};
_.R.onContentDrop=function(p){var J=this;if(p.dataTransfer){p=_.K(p.dataTransfer.items);for(var S=p.next();!S.done;S=p.next())S=S.value,S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(H){var M;(M=J.contentEl)==null||M.appendChild(document.createTextNode(H))})}};
_.R.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.R.getUserGeneratedCommentText=function(){var p,J=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(p=this.contentEl)==null?void 0:p.textContent;return J?J.trim():""};
_.R.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.R.onEmojiSelect=function(p){this.ytdCommentInputEl.onEmojiSelect(p)};
_.vh.Object.defineProperties(Me.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(_.e((p=this.currentCommentOption)==null?void 0:p.chipRenderer,_.uNo)){var J;return _.e((J=this.currentCommentOption)==null?void 0:J.chipRenderer,_.uNo)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var p,J;return((p=this.data)==null?0:p.commentOptionRenderers)?_.e((J=this.data)==null?void 0:J.commentOptionRenderers[this.superThanksSelectedTierEntity.index],glP):void 0}var S,H;return((S=this.data)==null?0:S.commentOptionRenderers)?_.e((H=this.data)==null?void 0:H.commentOptionRenderers[this.currentCommentOptionIndex],glP):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,J;return(J=_.e((p=this.data)==null?void 0:p.commentDialog,_.hho))==null?void 0:J.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var p,J;return(J=_.e((p=this.data)==null?void 0:p.commentDialog,_.hho))==null?void 0:J.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var p,J;return(J=_.e((p=this.data)==null?void 0:p.commentDialog,_.hho))==null?void 0:J.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var p,J,S=(J=_.e((p=this.data)==null?void 0:p.commentDialog,_.hho))==null?void 0:J.emojiPicker;if(!_.e(S,_.O5d)||!_.e(S,_.O5d).categories)return!1;p=function(X){return X.emojiPickerCategoryRenderer?X.emojiPickerCategoryRenderer.emojiIds&&X.emojiPickerCategoryRenderer.emojiIds.length>0:X.emojiPickerUpsellCategoryRenderer?X.emojiPickerUpsellCategoryRenderer.emojis&&X.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var H,M;return((H=_.e(S,_.O5d))==null?0:(M=H.categories)==null?0:M.find(p))?!0:!1}}});
Me.prototype.onEmojiSelect=Me.prototype.onEmojiSelect;Me.prototype.dataChanged=Me.prototype.dataChanged;Me.prototype.currentCommentOptionChanged=Me.prototype.currentCommentOptionChanged;_.V([_.B(_.RB),_.Y("design:type",Object)],Me.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Me.prototype,"rendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.FM("#content-dom-if"),_.Y("design:type",_.yG)],Me.prototype,"contentDomIfEl",void 0);_.V([_.FM("#content-no-emojis"),_.Y("design:type",HTMLElement)],Me.prototype,"contentEl",void 0);_.V([_.FM("#container"),_.Y("design:type",HTMLElement)],Me.prototype,"containerEl",void 0);_.V([_.FM("#comment-chip-container"),_.Y("design:type",HTMLElement)],Me.prototype,"paidCommentChipContainerEl",void 0);_.V([_.FM("#text-input"),_.Y("design:type",HTMLElement)],Me.prototype,"editableTextEl",void 0);
_.V([_.FM("#emoji-button"),_.Y("design:type",HTMLElement)],Me.prototype,"emojiButtonEl",void 0);_.V([_.FM("#emoji-picker > yt-emoji-picker-renderer"),_.Y("design:type",Object)],Me.prototype,"emojiPickerEl",void 0);_.V([_.FM("#text-input > ytd-comment-input"),_.Y("design:type",Object)],Me.prototype,"ytdCommentInputEl",void 0);_.V([_.N(),_.Y("design:type",Object)],Me.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Me.prototype,"currentCommentOptionIndex",void 0);
_.V([_.N({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:KVe}),_.Y("design:type",Object)],Me.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.N(),_.Y("design:type",Object)],Me.prototype,"isEmojiPickerDisplayed",void 0);_.V([_.N(),_.Y("design:type",Object)],Me.prototype,"emojiManager",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],Me.prototype,"isUgcEmpty",void 0);
_.V([_.bO("currentCommentOption"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Me.prototype,"currentCommentOptionChanged",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Me.prototype,"dataChanged",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Me.prototype,"isEmojiYtdCommentInputEnabled",null);
_.V([_.U("data.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Me.prototype,"title",null);_.V([_.U("data.authorText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Me.prototype,"channelName",null);_.V([_.U("data.commentOptionRenderers","currentCommentOption"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Me.prototype,"shouldShowPaidCommentChipRenderer",null);
_.V([_.U("data.commentOptionRenderers","currentCommentOption"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Me.prototype,"paidCommentChipRenderer",null);_.V([_.U("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Me.prototype,"currentCommentOption",null);
_.V([_.U("data.defaultCommentText","superThanksSelectedTierEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Me.prototype,"commentText",null);_.V([_.U("data.placeholderText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Me.prototype,"placeholderText",null);_.V([_.U("data.commentDialog.commentDialogRenderer.editableText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Me.prototype,"editableText",null);
_.V([_.U("data.commentDialog.commentDialogRenderer.emojiButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Me.prototype,"emojiButton",null);_.V([_.U("data.commentDialog.commentDialogRenderer.emojiPicker"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Me.prototype,"emojiPicker",null);
_.V([_.U("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Me.prototype,"isEmojiButtonDisplayed",null);_.V([_.GI("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Me.prototype,"onEmojiSelect",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Me);
_.l(Me,"ytd-pdg-comment-preview-renderer",function(){if(m$I!==void 0)return m$I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return m$I=p},{mode:2});var vHf;var XG=function(){var p=_.T.apply(this,arguments)||this;p.selected=!1;return p};
_.Q(XG,_.T);_.R=XG.prototype;_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.R.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.R.dataChanged=function(){this.data&&(_.Sh(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.K3(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Bt(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Bt(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.R.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.R.onClick=function(){this.logClick()};
_.R.onKeyboardSelect=function(){_.cf(this.hostElement,"tap");this.onClick()};
_.R.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
XG.prototype.onClick=XG.prototype.onClick;XG.prototype.selectedChanged=XG.prototype.selectedChanged;XG.prototype.dataChanged=XG.prototype.dataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],XG.prototype,"componentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ua),_.Y("design:type",Object)],XG.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.B(_.VG),_.Y("design:type",Object)],XG.prototype,"ironSelectableBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],XG.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],XG.prototype,"shownThumbnail",void 0);_.V([_.N(),_.Y("design:type",Object)],XG.prototype,"basePriceText",void 0);_.V([_.N(),_.Y("design:type",Object)],XG.prototype,"purchaseCommand",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],XG.prototype,"selected",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XG.prototype,"dataChanged",null);_.V([_.bO("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XG.prototype,"selectedChanged",null);_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XG.prototype,"onClick",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],XG);
_.l(XG,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(vHf!==void 0)return vHf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return vHf=p},{mode:1});var iM=function(){var p=_.T.apply(this,arguments)||this;p.selectedItemIndex=0;p.buyButtonDisabled=!1;return p};
_.Q(iM,_.T);_.R=iM.prototype;
_.R.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]]"}}}}}};
_.R.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var p;var J=(p=_.e(this.data.colorSlider,s3P))==null?void 0:p.notches[this.selectedItemIndex].purchaseCommand}else{var S;J=(S=_.e(this.data.selectableItemButtons[this.selectedItemIndex],hbe))==null?void 0:S.purchaseCommand}if(J){p=_.e(J,_.CFE);p.productData||(p.productData={});var H;p.productData={pdgData:{commentMessageText:(H=this.commentPreviewRenderer)==null?void 0:H.getUserGeneratedCommentText()}};
_.cf(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(J)}}};
_.R.dataChanged=function(){if(this.data){_.v7.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.lQn(_.v7,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.v7.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var p;this.buyButtonDisabled=!((p=_.e(this.data.commentPreview,tfj))==null||!p.placeholderText);this.updatePriceSelectorStatus();var J;if((J=this.data)==null?0:J.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;p=[];this.data.preloadImages&&(p=this.data.preloadImages);
p=p.map(function(S){return _.I4(S.thumbnails,1920)});
p=_.K(p);for(J=p.next();!J.done;J=p.next())(J=J.value)&&_.t1t(J).thenCatch(function(){_.xQ(Error("Il"))})}};
_.R.superThanksSelectedTierEntityChanged=function(){var p;(this==null?void 0:(p=this.superThanksSelectedTierEntity)==null?void 0:p.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.R.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.R.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Jn(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Jn(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Jn(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Jn(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.R.closeBuyFlow=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.R.onUserGeneratedContentChanged=function(){var p;this.buyButtonDisabled=!((p=this.commentPreviewRenderer)==null?0:p.getUserGeneratedCommentText())};
_.R.updateSelectedItemIndexFromBinding=function(p){this.selectedItemIndex=p.detail.value};
_.vh.Object.defineProperties(iM.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.disclaimerText)}}});
iM.prototype.onUserGeneratedContentChanged=iM.prototype.onUserGeneratedContentChanged;iM.prototype.closeBuyFlow=iM.prototype.closeBuyFlow;iM.prototype.selectedItemIndexChanged=iM.prototype.selectedItemIndexChanged;iM.prototype.superThanksSelectedTierEntityChanged=iM.prototype.superThanksSelectedTierEntityChanged;iM.prototype.dataChanged=iM.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],iM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],iM.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],iM.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],iM.prototype,"selectedItemIndex",void 0);_.V([_.N(),_.Y("design:type",Boolean)],iM.prototype,"isColorSlider",void 0);
_.V([_.N(),_.Y("design:type",Object)],iM.prototype,"buyButtonDisabled",void 0);_.V([_.N({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:KVe}),_.Y("design:type",Object)],iM.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.FM("ytd-pdg-comment-preview-renderer"),_.Y("design:type",Object)],iM.prototype,"commentPreviewRenderer",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],iM.prototype,"ytdReduxBehavior",void 0);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iM.prototype,"dataChanged",null);_.V([_.bO("superThanksSelectedTierEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iM.prototype,"superThanksSelectedTierEntityChanged",null);_.V([_.bO("selectedItemIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iM.prototype,"selectedItemIndexChanged",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iM.prototype,"closeBuyFlow",null);_.V([_.GI("ytd-pdg-user-generated-comment-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iM.prototype,"onUserGeneratedContentChanged",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],iM.prototype,"isDisclaimerTextShown",null);
_.V([_.gw({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],iM);
_.l(iM,"yt-super-vod-buy-flow-content-renderer",function(){if(Ghj!==void 0)return Ghj;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Ghj=p},{mode:1});var f7$;var Rm=function(){var p=_.T.apply(this,arguments)||this;p.lottieAnimationRef={};return p};
_.Q(Rm,_.T);_.R=Rm.prototype;_.R.created=function(){_.ip.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.n3(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.R.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.cf(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.R.detached=function(){this.autoCloseJobId&&_.wg.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.n3(this,this.onPopupIronOverlayOpened))};
_.R.dataChanged=function(){var p=this;this.data&&this.data.autoCloseDelay&&(_.IV(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.SK(_.wg,function(){p.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.K3(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.R.onDOMLoadedLottie=function(){var p=this,J,S,H=Number((J=this.data)==null?void 0:(S=J.autoCloseDelay)==null?void 0:S.seconds)||0;this.fadeOutJobId=_.SK(_.wg,function(){p.lottiePlayerEl.classList.add("fadeout")},(H-.25)*1E3);
this.autoCloseJobId=_.SK(_.wg,function(){p.closePopup()},H*1E3)};
_.R.openPopup=function(){this.ironOverlayBehavior.open()};
_.R.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.IV(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.JP(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.vO().resolve(_.Ov).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.wg.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.wg.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.R.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var p,J;(p=this.lottieAnimationRef)==null||(J=p.lottieEl)==null||J.destroy();p=this.data.lottie;var S,H;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:p.url+"_"+Math.random(),path:p.url,autoplay:!0,loop:(H=(S=p.settings)==null?void 0:S.loop)!=null?H:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.vh.Object.defineProperties(Rm.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var p,J;return!!((p=this.data)==null?0:(J=p.lottie)==null?0:J.url)}}});
Rm.prototype.maybeInitializeLottie=Rm.prototype.maybeInitializeLottie;Rm.prototype.dataChanged=Rm.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Rm.prototype,"rendererBehavior",void 0);_.V([_.B(_.Gb),_.Y("design:type",Object)],Rm.prototype,"ironOverlayBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Rm.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Rm.prototype,"lottiePlayerProps",void 0);
_.V([_.N(),_.Y("design:type",Object)],Rm.prototype,"lottieAnimationRef",void 0);_.V([_.FM("ytd-lottie-player"),_.Y("design:type",HTMLElement)],Rm.prototype,"lottiePlayerEl",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rm.prototype,"dataChanged",null);_.V([_.U("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Rm.prototype,"hasLottieAnimation",null);
_.V([_.bO("data.lottie.url"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rm.prototype,"maybeInitializeLottie",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Rm);
_.l(Rm,"ytd-desktop-image-overlay-renderer",function(){if(f7$!==void 0)return f7$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return f7$=p},{mode:1});var OJy;var Km=function(){return _.T.apply(this,arguments)||this};
_.Q(Km,_.T);_.R=Km.prototype;_.R.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"}}}}};
_.R.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",_.n3(this,this.closePopup))};
_.R.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.n3(this,this.closePopup))};
_.R.dataChanged=function(){_.L1(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.e(this.data.header,Uoj)&&(this.hasBackgroundBanner=!!_.e(this.data.header,Uoj).backgroundBanner)};
_.R.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.n3(this,this.closePopup))};
_.R.closePopup=function(){this.data&&this.data.onCloseCommand&&_.pl(this.hostElement,[this.data.onCloseCommand])};
Km.prototype.handleBuyflowSelectionSubmitted=Km.prototype.handleBuyflowSelectionSubmitted;Km.prototype.dataChanged=Km.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Km.prototype,"data",void 0);
_.V([_.N({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Km.prototype,"hasBackgroundBanner",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Km.prototype,"dataChanged",null);_.V([_.GI("yt-pdg-buy-flow-selection-submitted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Km.prototype,"handleBuyflowSelectionSubmitted",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Km);
_.l(Km,"ytd-pdg-buy-flow-renderer",function(){if(OJy!==void 0)return OJy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return OJy=p},{mode:1});var AUy;var Z_=function(){var p=_.T.apply(this,arguments)||this;p.isOpen=!1;p.isPlaylistCreated=!1;return p};
_.Q(Z_,_.T);_.R=Z_.prototype;_.R.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.R.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.cf(this.hostElement,"yt-refit")};
_.R.onCreateTap=function(){var p=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.pl(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(J,S){if(!_.z("killswitch_ep_in_create_playlist_response")&&(S==null?0:S.actions))for(J=_.K(S.actions),S=J.next();!S.done;S=J.next())S=S.value,_.e(S,_.Bu)&&p.ytComponentBehavior.resolveCommand(S)}}]),this.isPlaylistCreated=!0)};
_.R.onKeydown=function(p){if(p.keyCode===13)this.onCreateTap()};
_.R.onServiceRequestCompleted=function(p){p.stopPropagation();_.IV(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.R.computePrivacyBadge=function(p){return p?[{metadataBadgeRenderer:p}]:[]};
Z_.prototype.onServiceRequestCompleted=Z_.prototype.onServiceRequestCompleted;Z_.prototype.onKeydown=Z_.prototype.onKeydown;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Z_.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Z_.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Z_.prototype,"isOpen",void 0);
_.V([_.N(),_.Y("design:type",Object)],Z_.prototype,"isPlaylistCreated",void 0);_.V([_.N({value:{REQUIRED_LABEL:_.Kl("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Kl("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Y("design:type",Object)],Z_.prototype,"addToStrings",void 0);_.V([_.N({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.Y("design:type",Array)],Z_.prototype,"privacyBadge",void 0);
_.V([_.FM("#privacy-input"),_.Y("design:type",Object)],Z_.prototype,"privacyInput",void 0);_.V([_.FM("#name-input"),_.Y("design:type",Object)],Z_.prototype,"nameInput",void 0);_.V([_.GI("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],Z_.prototype,"onKeydown",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Z_.prototype,"onServiceRequestCompleted",null);
_.V([_.gw({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Z_);
_.l(Z_,"ytd-add-to-playlist-create-renderer",function(){if(AUy!==void 0)return AUy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return AUy=p},{mode:1});var PDj;var zIj;var nm=function(){var p=_.T.apply(this,arguments)||this;p.transferState="TRANSFER_STATE_UNKNOWN";return p};
_.Q(nm,_.T);nm.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
nm.prototype.onCheckboxChange=function(p){var J=this;this.data&&_.uO(this,"yt-playlist-checkbox-changed",function(){var S=_.Yt(p).checked?J.data.addToPlaylistServiceEndpoint:J.data.removeFromPlaylistServiceEndpoint;S&&_.vO().resolve(_.Ov).resolveCommand(S,{form:{element:J.hostElement}});_.z("dl_playlist_killswitch")||J.transferState!=="TRANSFER_STATE_UNKNOWN"&&J.transferState!=="TRANSFER_STATE_FAILED"&&J.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:J.data.playlistId,action:"ACTION_SYNC"}})},
100)};
nm.prototype.computeIconType=function(p){return p?"yt-icons:"+p.toLowerCase():null};
nm.prototype.dataChanged=nm.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],nm.prototype,"data",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],nm.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],nm.prototype,"ytComponentBehavior",void 0);_.V([_.FM("#checkbox"),_.Y("design:type",HTMLInputElement)],nm.prototype,"checkbox",void 0);
_.V([_.N({selector:_.tk,selectorArgs:["data.playlistId"]}),_.Y("design:type",String)],nm.prototype,"transferState",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nm.prototype,"dataChanged",null);_.V([_.gw({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],nm);
_.l(nm,"ytd-playlist-add-to-option-renderer",function(){if(zIj!==void 0)return zIj;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return zIj=p},{mode:1});var $$y=_.d(function(p){var J=p.data;return _.m("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.m("div",null,_.m(_.v3,{text:function(){return J().title}})),_.m(_.v,{cond:function(){return J().subtitle},
then:function(S){return _.m("div",{class:"ytdMenuTitleRendererSubtitle"},_.m(_.v3,{text:S}))}}))},"yj");
$$y.idomCompat=!0;_.ci($$y,"ytd-menu-title-renderer",{props:{data:_.fD}});var GP=function(){var p=_.T.apply(this,arguments)||this;p.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Kl("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};p.closeButtonAriaLabel=_.Kl("SBOX_INAPPROPRIATE_CANCEL");p.dialog=_.z("desktop_add_to_playlist_renderer_dialog_popup");return p};
_.Q(GP,_.T);_.R=GP.prototype;_.R.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"}}}};
_.R.onPopupOpened=function(){_.XM(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.R.onPopupClosed=function(){_.XM(this.playlists,"scrollable",!1)};
_.R.computeAriaLabel=function(){var p;if(this==null?0:(p=this.data)==null?0:p.actions){p=_.K(this.data.actions);for(var J=p.next();!J.done;J=p.next())if(J=J.value,J.menuTitleRenderer)return _.E4(J.menuTitleRenderer.title)}};
_.R.onTapClose=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.vh.Object.defineProperties(GP.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var p;if(this==null?0:(p=this.data)==null?0:p.actions){p=_.K(this.data.actions);for(var J=p.next();!J.done;J=p.next())if(J=J.value,J.menuTitleRenderer)return J.menuTitleRenderer}return!1}}});
GP.prototype.onPopupClosed=GP.prototype.onPopupClosed;GP.prototype.onPopupOpened=GP.prototype.onPopupOpened;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],GP.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],GP.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],GP.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],GP.prototype,"addToStrings",void 0);_.V([_.N({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],GP.prototype,"ariaLabel",void 0);_.V([_.N(),_.Y("design:type",String)],GP.prototype,"closeButtonAriaLabel",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],GP.prototype,"dialog",void 0);
_.V([_.FM("#playlists"),_.Y("design:type",HTMLElement)],GP.prototype,"playlists",void 0);_.V([_.FM("ytd-add-to-playlist-create-renderer"),_.Y("design:type",Object)],GP.prototype,"createRenderer",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GP.prototype,"menuTitleRenderer",null);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GP.prototype,"onPopupOpened",null);
_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GP.prototype,"onPopupClosed",null);_.V([_.gw({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],GP);
_.l(GP,"ytd-add-to-playlist-renderer",function(){if(PDj!==void 0)return PDj;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return PDj=p},{mode:1});var oHp;var bM=function(){var p=_.T.apply(this,arguments)||this;p.isPlaylistEditComplete=!1;p.isCollabEngagementDisabled=!1;p.closeButtonAriaLabel=_.Kl("SBOX_INAPPROPRIATE_CANCEL");p.saveButton={title:_.Kl("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};
_.Q(bM,_.T);_.R=bM.prototype;_.R.attached=function(){this.JSC$21054_scroller&&(this.JSC$21054_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21054_scroller.attached&&typeof this.JSC$21054_scroller.attached==="function"&&this.JSC$21054_scroller.attached())};
_.R.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.R.onPopupClosed=function(){this.reset()};
_.R.close=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.R.onClickSave=function(){var p=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var J=[];this.nameInput.value!==null&&J.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&J.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var S=Number(this.privacyInput.value);isNaN(S)||J.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:S})}this.votingInput.value!==null&&(S=this.votingInput.value)&&J.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:S});if(J.length>0){var H;_.e((H=this.data)==null?void 0:H.updateSettingsEndpoint,_.XY).actions=J;var M;if((M=this.data)==null?0:M.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){p.close()}}}),this.isPlaylistEditComplete=!0}}};
_.R.computePrivacyBadge=function(p){return p?[{metadataBadgeRenderer:p}]:[]};
_.R.computeEditorData=function(p){var J,S;return p==null?void 0:(J=p.sections)==null?void 0:(S=J[0])==null?void 0:S.playlistSettingsEditorCasualSectionRenderer};
_.R.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.R.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}}}}}};
_.R.computeAriaLabel=function(){var p,J,S,H=(p=this.data)==null?void 0:(J=p.sections)==null?void 0:(S=J[0])==null?void 0:S.playlistSettingsEditorCasualSectionRenderer;return _.E4(H==null?void 0:H.title)};
_.R.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"}))};
_.R.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.R.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.R.isNameChanged=function(){var p,J,S;return(((p=this.editorData)==null?void 0:(J=p.name)==null?void 0:(S=J.textInputFormFieldRenderer)==null?void 0:S.value)||"")!==(this.nameInput.value||"")};
_.R.isDescriptionChanged=function(){var p,J,S;return(((p=this.editorData)==null?void 0:(J=p.description)==null?void 0:(S=J.textInputFormFieldRenderer)==null?void 0:S.value)||"")!==(this.descriptionInput.value||"")};
_.R.isPrivacyChanged=function(){var p,J,S,H,M,X,Z,n;return((Z=(p=this.editorData)==null?void 0:(J=p.privacy)==null?void 0:(S=J.dropdownFormFieldRenderer)==null?void 0:(H=S.dropdown)==null?void 0:(M=H.dropdownRenderer)==null?void 0:(X=M.entries)==null?void 0:X.find(function(b){var F;return b==null?void 0:(F=b.privacyDropdownItemRenderer)==null?void 0:F.isSelected}))==null?void 0:(n=Z.privacyDropdownItemRenderer)==null?void 0:n.int32Value)!==this.privacyInput.value};
_.R.isVotingChanged=function(){var p,J,S,H,M,X,Z,n;return((Z=(p=this.editorData)==null?void 0:(J=p.voting)==null?void 0:(S=J.dropdownFormFieldRenderer)==null?void 0:(H=S.dropdown)==null?void 0:(M=H.dropdownRenderer)==null?void 0:(X=M.entries)==null?void 0:X.find(function(b){var F;return b==null?void 0:(F=b.privacyDropdownItemRenderer)==null?void 0:F.isSelected}))==null?void 0:(n=Z.privacyDropdownItemRenderer)==null?void 0:n.int32Value)!==this.votingInput.value};
bM.prototype.onPopupClosed=bM.prototype.onPopupClosed;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],bM.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],bM.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bM.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],bM.prototype,"data",void 0);_.V([_.N({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.Y("design:type",Array)],bM.prototype,"privacyBadge",void 0);_.V([_.N({computed:"computeEditorData(data)"}),_.Y("design:type",Object)],bM.prototype,"editorData",void 0);_.V([_.N(),_.Y("design:type",Object)],bM.prototype,"isPlaylistEditComplete",void 0);_.V([_.N(),_.Y("design:type",Object)],bM.prototype,"isCollabEngagementDisabled",void 0);
_.V([_.N({value:{REQUIRED_LABEL:_.Kl("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Kl("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Y("design:type",Object)],bM.prototype,"addToStrings",void 0);_.V([_.N({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],bM.prototype,"ariaLabel",void 0);_.V([_.N(),_.Y("design:type",String)],bM.prototype,"closeButtonAriaLabel",void 0);
_.V([_.N(),_.Y("design:type",Object)],bM.prototype,"saveButton",void 0);_.V([_.FM("#name-input"),_.Y("design:type",Object)],bM.prototype,"nameInput",void 0);_.V([_.FM("#description-input"),_.Y("design:type",Object)],bM.prototype,"descriptionInput",void 0);_.V([_.FM("#privacy-input"),_.Y("design:type",Object)],bM.prototype,"privacyInput",void 0);_.V([_.FM("#voting-input"),_.Y("design:type",Object)],bM.prototype,"votingInput",void 0);
_.V([_.FM("#scroller"),_.Y("design:type",Object)],bM.prototype,"JSC$21054_scroller",void 0);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bM.prototype,"onPopupClosed",null);_.V([_.N(),_.Y("design:type",Object)],bM.prototype,"onValueChanged",void 0);_.V([_.gw({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],bM);
_.l(bM,"ytd-playlist-settings-editor-renderer",function(){if(oHp===void 0){var p=document.createElement("template");_.C(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]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);oHp=p}p=oHp;return p},{mode:1});var eIP;_.QI("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var mc=function(){return _.T.apply(this,arguments)||this};
_.Q(mc,_.T);_.R=mc.prototype;_.R.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}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.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))};
_.R.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)}}};
_.R.onPopupOpened=function(p){p.detail!==this&&p.detail!==this.hostElement||!_.z("enable_premium_voluntary_pause")||_.IV(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.R.onNextButtonTap=function(){var p=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);p&&this.ytdOpenPopupBehavior.openPopup(p)};
_.R.updateSelectedResponseIndexFromBinding=function(p){this.selectedResponseIndex=p.detail.value};
mc.prototype.onPopupOpened=mc.prototype.onPopupOpened;mc.prototype.onSelectedResponseIndexChange=mc.prototype.onSelectedResponseIndexChange;mc.prototype.dataChanged=mc.prototype.dataChanged;_.V([_.B(_.QJ),_.Y("design:type",Object)],mc.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],mc.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Number)],mc.prototype,"selectedResponseIndex",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mc.prototype,"dataChanged",null);_.V([_.bO("selectedResponseIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mc.prototype,"onSelectedResponseIndexChange",null);
_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],mc.prototype,"onPopupOpened",null);_.V([_.gw({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],mc);
_.l(mc,"ytd-red-cancel-survey-renderer",function(){if(eIP!==void 0)return eIP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return eIP=p},{mode:1});var WfI;var v4=function(){var p=_.T.apply(this,arguments)||this;p.closeButtonAriaLabel=_.Kl("SBOX_INAPPROPRIATE_CANCEL");return p};
_.Q(v4,_.T);v4.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
v4.prototype.onClickClose=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],v4.prototype,"rendererStamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],v4.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],v4.prototype,"closeButtonAriaLabel",void 0);_.V([_.gw({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],v4);
_.l(v4,"ytd-search-filter-options-dialog-renderer",function(){if(WfI!==void 0)return WfI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return WfI=p},{mode:1});var Qjp;var $Rr=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 fm=function(){var p=_.T.apply(this,arguments)||this;p.qualityOptions=[];p.upsellOptions=[];p.showUpsellSection=!1;p.rememberSettingsChecked=!1;return p};
_.Q(fm,_.T);_.R=fm.prototype;_.R.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}}}}};
_.R.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.R.updateQualityOptions=function(){if(this.formats===void 0)_.IV(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var p=[],J=[];this.showUpsellSection=!1;for(var S=_.K(this.formats),H=S.next();!H.done;H=S.next())(H=H.value)&&(H.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?J.push(H):p.push(H));p.length&&(this.qualityOptions=z6N(p));J.length&&(this.showUpsellSection=!0,this.upsellOptions=z6N(J))}};
_.R.updateRememberString=function(){if(this.downloadQualityPickerEntity)var p=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var J;p=(J=this.data)==null?void 0:J.premiumRememberSettingString}else{var S;p=(S=this.data)==null?void 0:S.rememberSettingString}p=p===void 0?_.Kl("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):p;this.rememberSettingsCheckboxRenderer={title:_.I5(p),disabled:!1}};
_.R.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.vh.Object.defineProperties(fm.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var p;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(p=this.data)==null?void 0:p.qualityFormats}}});
fm.prototype.updateRememberString=fm.prototype.updateRememberString;fm.prototype.updateQualityOptions=fm.prototype.updateQualityOptions;fm.prototype.dataChanged=fm.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],fm.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],fm.prototype,"data",void 0);
_.V([_.B(_.RB),_.Y("design:type",Object)],fm.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Boolean)],fm.prototype,"selectedUpsellQuality",void 0);_.V([_.N({computed:"computeIcon_(data.premiumIcon)",value:""}),_.Y("design:type",String)],fm.prototype,"premiumIcon",void 0);_.V([_.N({selector:Jm$,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Y("design:type",Object)],fm.prototype,"downloadQualityPickerEntity",void 0);
_.V([_.N(),_.Y("design:type",Array)],fm.prototype,"qualityOptions",void 0);_.V([_.N(),_.Y("design:type",Array)],fm.prototype,"upsellOptions",void 0);_.V([_.N(),_.Y("design:type",Object)],fm.prototype,"showUpsellSection",void 0);_.V([_.N(),_.Y("design:type",Object)],fm.prototype,"rememberSettingsCheckboxRenderer",void 0);_.V([_.FM("#remember-settings"),_.Y("design:type",HTMLInputElement)],fm.prototype,"rememberSettingsCheckbox",void 0);
_.V([_.N(),_.Y("design:type",Object)],fm.prototype,"rememberSettingsChecked",void 0);_.V([_.N(),_.Y("design:type",Function)],fm.prototype,"onRememberSettingsCheckedChanged",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fm.prototype,"dataChanged",null);_.V([_.bO("downloadQualityPickerEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fm.prototype,"updateQualityOptions",null);
_.V([_.bO("selectedUpsellQuality"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fm.prototype,"updateRememberString",null);_.V([_.gw({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],fm);
_.l(fm,"ytd-download-quality-selector-content",function(){if(Qjp!==void 0)return Qjp;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return Qjp=p},{mode:1});var CDM;var Oe=function(){var p=_.T.apply(this,arguments)||this;p.selectedUpsellQuality=!1;p.qualityOptions=[];p.useUpsellDismissAlternate=_.z("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(J){p.rememberSettingsChecked=J};
return p};
_.Q(Oe,_.T);_.R=Oe.prototype;
_.R.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.I5(_.Kl("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.I5(_.Kl("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.I5(_.Kl("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.I5(_.Kl("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.R.updateQualityOptions=function(){this.formats===void 0?_.IV(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=z6N(this.formats)};
_.R.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 J=_.K(this.qualityOptions.entries()),S=J.next();!S.done;S=
J.next()){S=_.K(S.value);var H=S.next().value;S=S.next().value;var M=void 0,X=void 0;if(((M=S)==null?void 0:(X=M.settingsRadioOptionRenderer)==null?void 0:X.id)===p){this.selectedQualityIndex=H;p=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((p=this.formats[H])==null?void 0:p.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.R.onClickSubmit=function(){var p;if((p=this.downloadButtonRenderer)==null||!p.isDisabled){var J,S;p=(S=(J=this.data)==null?void 0:J.onSubmitEndpoint)!=null?S:{};var H,M;if(this.formats&&(((H=_.e(p,_.mV))==null?0:H.videoId)||((M=_.e(p,_.FJ))==null?0:M.playlistId))){var X,Z,n,b,F,f;J={formatType:(b=(X=this.formats)==null?void 0:(Z=X[(n=this.selectedQualityIndex)!=null?n:0])==null?void 0:Z.format)!=null?b:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(F=this.getOfflineEndpoint(p))==null?void 0:(f=F.actionParams)==null?void 0:f.settingsAction)};this.getOfflineEndpoint(p).actionParams=J;this.ytComponentBehavior.resolveCommand(p)}_.IV(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.R.onClickUpsell=function(){var p;if((p=this.upsellButtonRenderer)==null||!p.isDisabled){var J,S;p=(S=(J=this.data)==null?void 0:J.upsellEndpoint)!=null?S:{};this.ytComponentBehavior.resolveCommand(p);_.IV(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);J="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var H,M,X,Z;J=(Z=(H=this.formats)==null?void 0:(M=H[(X=this.selectedQualityIndex)!=null?X:0])==null?void 0:M.format)!=null?Z:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:J}})}};
_.R.onClickClose=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.R.getOfflineSettingsAction=function(p,J){return p?J===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":J:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.R.getOfflineEndpoint=function(p){return _.e(p,_.mV)?_.e(p,_.mV):_.e(p,_.FJ)};
_.vh.Object.defineProperties(Oe.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.I5(_.Kl("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}}});
Oe.prototype.updateQualityOptions=Oe.prototype.updateQualityOptions;Oe.prototype.dataChanged=Oe.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Oe.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Oe.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Oe.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Oe.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Number)],Oe.prototype,"selectedQualityIndex",void 0);_.V([_.N(),_.Y("design:type",Object)],Oe.prototype,"selectedUpsellQuality",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],Oe.prototype,"ytdReduxBehavior",void 0);
_.V([_.N({selector:Jm$,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Y("design:type",Object)],Oe.prototype,"downloadQualityPickerEntity",void 0);_.V([_.N(),_.Y("design:type",Array)],Oe.prototype,"qualityOptions",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Oe.prototype,"useUpsellDismissAlternate",void 0);_.V([_.N(),_.Y("design:type",Object)],Oe.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.V([_.N(),_.Y("design:type",Object)],Oe.prototype,"downloadButtonRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],Oe.prototype,"upsellButtonRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],Oe.prototype,"cancelButtonRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],Oe.prototype,"upsellCancelButtonRenderer",void 0);_.V([_.N(),_.Y("design:type",Object)],Oe.prototype,"rememberSettings",void 0);_.V([_.N(),_.Y("design:type",Object)],Oe.prototype,"rememberSettingsChecked",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oe.prototype,"dataChanged",null);_.V([_.bO("downloadQualityPickerEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oe.prototype,"updateQualityOptions",null);_.V([_.gw({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Oe);
_.l(Oe,"ytd-download-quality-selector-renderer",function(){if(CDM!==void 0)return CDM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return CDM=p},{mode:1});var yUf;var A5=function(){return _.T.apply(this,arguments)||this};
_.Q(A5,_.T);A5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
A5.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"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],A5.prototype,"data",void 0);_.V([_.N({computed:"computeIcon_(data.infoIcon)"}),_.Y("design:type",Object)],A5.prototype,"infoIcon",void 0);
_.V([_.N({computed:"computeIcon_(data.warningIcon)"}),_.Y("design:type",Object)],A5.prototype,"warningIcon",void 0);_.V([_.gw({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],A5);
_.l(A5,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(yUf!==void 0)return yUf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return yUf=p},{mode:1});var BRj;var P4=function(){return _.T.apply(this,arguments)||this};
_.Q(P4,_.T);P4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
P4.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"}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],P4.prototype,"data",void 0);_.V([_.gw({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],P4);
_.l(P4,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(BRj!==void 0)return BRj;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return BRj=p},{mode:1});var U$I;var zP=function(){return _.T.apply(this,arguments)||this};
_.Q(zP,_.T);zP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zP.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"}}}}};
zP.prototype.onServiceRequestSentOrCompleted=function(p,J){J&&J.actions&&J.actions.length>0&&_.IV(this.hostElement,"yt-close-popup-action",[this.is])};
zP.prototype.onServiceRequestSentOrCompleted=zP.prototype.onServiceRequestSentOrCompleted;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],zP.prototype,"data",void 0);
_.V([_.GI("yt-service-request-completed"),_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],zP.prototype,"onServiceRequestSentOrCompleted",null);_.V([_.gw({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],zP);
_.l(zP,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(U$I!==void 0)return U$I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return U$I=p},{mode:1});var sjI;var $G=function(){var p=_.T.apply(this,arguments)||this;p.submitButtonDisabled=!0;return p};
_.Q($G,_.T);_.R=$G.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.R.onDataChanged=function(){var p,J,S;if(((p=this.data)==null?void 0:(J=p.confirmButton)==null?void 0:(S=J.buttonRenderer)==null?void 0:S.isDisabled)!==void 0){var H,M,X;this.submitButtonDisabled=(H=this.data)==null?void 0:(M=H.confirmButton)==null?void 0:(X=M.buttonRenderer)==null?void 0:X.isDisabled}};
_.R.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.R.updateSubmitButtonDisabledFromBinding=function(p){this.submitButtonDisabled=p.detail.value};
_.R.updateSubmitButtonDisabledFromConfirmCheckbox=function(p){this.submitButtonDisabled=!p.detail.value};
$G.prototype.onDataChanged=$G.prototype.onDataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],$G.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],$G.prototype,"submitButtonDisabled",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$G.prototype,"onDataChanged",null);_.V([_.gw({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],$G);
_.l($G,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(sjI!==void 0)return sjI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return sjI=p},{mode:1});var gHP;var om=function(){return _.T.apply(this,arguments)||this};
_.Q(om,_.T);_.vh.Object.defineProperties(om.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var p,J,S;return((p=this.data)==null?void 0:p.title)+" "+((J=this.data)==null?void 0:J.metadataPrimary)+" "+((S=this.data)==null?void 0:S.metadataSecondary)}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],om.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],om.prototype,"data",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],om.prototype,"ariaLabel",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],om);
_.l(om,"ytd-compact-product-list-item-renderer",function(){if(gHP!==void 0)return gHP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return gHP=p},{mode:1});var t8P;var ei=function(){return _.T.apply(this,arguments)||this};
_.Q(ei,_.T);ei.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]]"}}}}}};
_.vh.Object.defineProperties(ei.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],ei.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ei.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],ei);
_.l(ei,"ytd-compact-product-list-renderer",function(){if(t8P!==void 0)return t8P;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return t8P=p},{mode:1});var hI$;var W4=function(){return _.T.apply(this,arguments)||this};
_.Q(W4,_.T);_.R=W4.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.R.getBackgroundUrl=function(){var p=this.get("data.headerImage.thumbnails");return p?"url("+_.I4(p,this.hostElement.clientWidth)+")":""};
_.R.onDataChanged=function(){var p=this.getBackgroundUrl();p&&(this.header.style.backgroundImage=p);p=_.C1();var J=_.Wf(),S=this.get("data.trackingParams");S&&J&&p&&_.kO(p,J,_.Az(S));p=_.K(this.hostElement.querySelectorAll("yt-img-shadow"));for(J=p.next();!J.done;J=p.next())J.value.onShow()};
_.R.onPopupClosed=function(p){_.Yt(p).localName==="ytd-membership-post-cancel-renderer"&&_.IV(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
W4.prototype.onPopupClosed=W4.prototype.onPopupClosed;W4.prototype.onDataChanged=W4.prototype.onDataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],W4.prototype,"data",void 0);_.V([_.FM("#header"),_.Y("design:type",HTMLDivElement)],W4.prototype,"header",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W4.prototype,"onDataChanged",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],W4.prototype,"onPopupClosed",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],W4);
_.l(W4,"ytd-membership-post-cancel-renderer",function(){if(hI$!==void 0)return hI$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return hI$=p},{mode:1});var D$M;var QN=function(){return _.T.apply(this,arguments)||this};
_.Q(QN,_.T);QN.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
QN.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],QN.prototype,"data",void 0);_.V([_.FM("ytd-feedback-survey-renderer"),_.Y("design:type",Object)],QN.prototype,"feedbackSurveyRenderer",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],QN);
_.l(QN,"ytd-sponsorship-confirm-cancel-content",function(){if(D$M!==void 0)return D$M;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return D$M=p},{mode:1});var khI;var Cm=function(){var p=_.T.apply(this,arguments)||this;p.maybeSubmitFeedback=function(){p.content&&p.content.maybeSubmitFeedback()};
return p};
_.Q(Cm,_.T);_.R=Cm.prototype;_.R.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.R.onYtPopupOpened=function(p,J){J===this&&this.data&&this.data.onOpenCommands&&_.JP(this.hostElement,this.data.onOpenCommands,this.hostElement);_.IV(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.R.onYtPopupClosed=function(p,J){(J&&J.canceled===!0||J&&J.canceled===!1&&J.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.JP(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.R.onYtServiceRequestCompleted=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.R.onYtServiceRequestError=function(p){_.Vh(this.hostElement,p.detail.error.message)};
_.R.onDataChanged=function(){if(this.isAttached){var p=this.backgroundUrl;p&&(_.Jn(this.hostElement).querySelector("#header").style.backgroundImage=p)}};
_.vh.Object.defineProperties(Cm.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return p?"url("+_.I4(p,this.hostElement.clientWidth)+")":""}}});
Cm.prototype.onDataChanged=Cm.prototype.onDataChanged;Cm.prototype.onYtServiceRequestError=Cm.prototype.onYtServiceRequestError;Cm.prototype.onYtServiceRequestCompleted=Cm.prototype.onYtServiceRequestCompleted;Cm.prototype.onYtPopupClosed=Cm.prototype.onYtPopupClosed;Cm.prototype.onYtPopupOpened=Cm.prototype.onYtPopupOpened;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Cm.prototype,"data",void 0);_.V([_.N({value:function(){return _.Kl("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],Cm.prototype,"closeButtonAriaLabel",void 0);_.V([_.FM("#scrollable"),_.Y("design:type",Object)],Cm.prototype,"scrollable",void 0);_.V([_.FM("ytd-sponsorship-confirm-cancel-content"),_.Y("design:type",Object)],Cm.prototype,"content",void 0);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Cm.prototype,"onYtPopupOpened",null);
_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Cm.prototype,"onYtPopupClosed",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Cm.prototype,"onYtServiceRequestCompleted",null);
_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Cm.prototype,"onYtServiceRequestError",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cm.prototype,"onDataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Cm);
_.l(Cm,"ytd-sponsorship-confirm-cancel-renderer",function(){if(khI!==void 0)return khI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return khI=p},{mode:_.Jz("kevlar_poly_si_batch_j081")?1:2});var NRl;var yN=function(){return _.T.apply(this,arguments)||this};
_.Q(yN,_.T);yN.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],yN.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],yN);
_.l(yN,"ytd-sponsorships-celebration-content",function(){if(NRl!==void 0)return NRl;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return NRl=
p},{mode:1});var TRP;var d$I=_.YI(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),B4=function(){var p=_.T.apply(this,arguments)||this;p.scriptsAppended=!1;p.useFullWidthPrimaryButton=!1;p.buttonOverrides={type:"tonal",style:"overlay-dark"};return p};
_.Q(B4,_.T);_.R=B4.prototype;_.R.dataChanged=function(){var p;this.useFullWidthPrimaryButton=!((p=this.data)==null||!p.useFullWidthPrimaryButton)};
_.R.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:_.z("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onDataChanged=function(){var p;(p=this.header)==null||p.style.setProperty("background-color",this.backgroundColor);if(p=this.headerImageUrl){var J;(J=this.header)==null||J.style.setProperty("background-image",p)}J=_.C1(4);p=_.Wf(4);var S=this.get("data.trackingParams");if(S&&p&&J){var H=_.Az(S);_.kO(J,p,H);_.z("combine_ve_grafts")?_.bC().graftServerVe(S,p,4):_.kO(J,p,H)}J=_.K(this.hostElement.querySelectorAll("yt-img-shadow"));for(p=J.next();!p.done;p=J.next())p.value.onShow();if(J=this.get("data.gtmId"))_.xw(J,
_.jn("GL","")),this.setupConversionTracking()};
_.R.setupConversionTracking=function(){if(!this.scriptsAppended){var p=document.createElement("script");_.i0(p,_.MD(d$I.join("")));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}};
_.R.onPopupClosed=function(p){if(_.Yt(p).localName==="ytd-sponsorships-celebration-renderer"){_.IV(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var J;this.data&&((J=this.data)==null?0:J.dismissCommand)&&_.R4.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.vh.Object.defineProperties(B4.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Bt(p)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return p?"url("+_.I4(p,this.hostElement.getBoundingClientRect().width)+")":""}}});
B4.prototype.onPopupClosed=B4.prototype.onPopupClosed;B4.prototype.onDataChanged=B4.prototype.onDataChanged;B4.prototype.dataChanged=B4.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],B4.prototype,"data",void 0);
_.V([_.FM("#header"),_.Y("design:type",HTMLElement)],B4.prototype,"header",void 0);_.V([_.N(),_.Y("design:type",Object)],B4.prototype,"scriptsAppended",void 0);_.V([_.N({type:Boolean,reflectToAttribute:!0}),_.Y("design:type",Object)],B4.prototype,"useFullWidthPrimaryButton",void 0);_.V([_.N(),_.Y("design:type",Object)],B4.prototype,"buttonOverrides",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B4.prototype,"dataChanged",null);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B4.prototype,"onDataChanged",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],B4.prototype,"onPopupClosed",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],B4);
_.l(B4,"ytd-sponsorships-celebration-renderer",function(){if(TRP!==void 0)return TRP;var p=document.createElement("template");_.C(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="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return TRP=p},{mode:1});var u5P;var Ue=function(){var p=_.T.apply(this,arguments)||this;p.isToggleChecked=!1;return p};
_.Q(Ue,_.T);Ue.prototype.onDataChanged=function(){var p;this.isToggleChecked=((p=this.data)==null?void 0:p.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Ue.prototype.close=function(){var p;((p=this.data)==null?0:p.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Ue.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var p,J=_.e((p=this.data)==null?void 0:p.switchButton,Doy);J&&(this.isToggleChecked&&J.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(J.switchOnInnertubeCommand),!this.isToggleChecked&&J.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(J.switchOffInnertubeCommand))};
Ue.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ue.prototype.onDataChanged=Ue.prototype.onDataChanged;_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Ue.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ue.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Ue.prototype,"isToggleChecked",void 0);_.V([_.N({value:_.Kl("CLOSE")}),_.Y("design:type",String)],Ue.prototype,"closeButtonAriaLabel",void 0);
_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ue.prototype,"onDataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Ue);
_.l(Ue,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(u5P!==void 0)return u5P;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return u5P=p},{mode:1});var l7M;var se=function(){return _.T.apply(this,arguments)||this};
_.Q(se,_.T);_.R=se.prototype;_.R.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"}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.detached=function(){this.playerElement.stop()};
_.R.onYtServiceRequestCompleted=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.R.onYtServiceRequestError=function(p){_.Vh(this.hostElement,p.detail.error.message)};
_.R.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.R.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.R.getTier=function(p,J){return!p||!p.tiers||J<0?null:_.e(p.tiers[J],dof)};
_.R.moreThanOne=function(p){return!!(p&&p.length>1)};
_.R.tierOverviewTap=function(p){var J=this;this.selectedTier=p.model.index;_.mN(this,function(){_.cf(J.hostElement,"yt-refit")})};
_.R.computeSelectedClass=function(p,J){return this.isSelected(p,J)?"selected":""};
_.R.computeButtonAriaPressed=function(p,J){return this.isSelected(p,J)?"true":"false"};
_.R.isSelected=function(p,J){return p===J};
_.R.onDataChanged=function(){_.Jn(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Jn(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=_.K(this.hostElement.querySelectorAll("yt-img-shadow")),
J=p.next();!J.done;J=p.next())J.value.onShow();var S;this.set("selectedTier",(S=this.get("data.targetTierIndex"))!=null?S:0);var H;(p=(H=this.data)==null?void 0:H.onVisible)&&this.ytComponentBehavior.resolveCommand(p)};
_.R.initializeVe=function(p){var J=_.C1(),S=_.Wf(),H=this.get("data.trackingParams");S&&J&&(this.screenLayer=4,J=_.c5(_.H5w)(void 0,69877,{clientScreenNonce:J,visualElement:S},void 0,void 0,void 0),_.Bf(J,69877,4),S=_.Wf(4),H&&S&&(H=_.Az(H),_.kO(J,S,H),p&&(this.offerVideoVe=_.KG(74659),_.kO(J,H,this.offerVideoVe))))};
_.R.setHeaderBackground=function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Jn(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Bt(p);if(p=this.getHeaderImage())p=_.I4(p,screen.width),_.Jn(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+p+")"};
_.R.getHeaderImage=function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&p?p:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.R.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.R.setupVideoPlayer=function(p){var J=this,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1)return S=J.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),H=J.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.z("kevlar_player_update_killswitch")?J.playerElement.update({args:{autoplay:S,video_id:p,player_params:H}}):J.playerElement.loadVideoWithPlayerVars({autoplay:S,video_id:p,player_params:H}),
Z.yield(J.playerElement.getPlayerPromise(),2);M=Z.yieldResult;M.addEventListener("onStateChange",function(n){J.onPlayerStateChange(n)});
M.setScreenLayer(J.screenLayer);(X=_.C1(4))&&J.offerVideoVe&&_.Tv(X,J.offerVideoVe);S&&(J.pauseOtherPlayers(),J.playerElement.focusOnPlayer(),J.playerElement.getPlayer().hideControls(),_.uS(_.wg,function(){J.fadeOutHeaderOverlay()},4E3));
_.UK(Z)})};
_.R.onPlayerStateChange=function(p){p===1?this.backgroundPlayerElement&&(p=this.backgroundPlayerElement.player_.getPlayerState(),p!==1&&p!==3||this.backgroundPlayerElement.pause()):p===0&&(_.Jn(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Jn(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.R.fadeOutHeaderOverlay=function(){_.Jn(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.R.onHeaderTap=function(){if(this.offerVideo){_.Jn(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=_.C1(4))&&this.offerVideoVe&&_.l7(p,this.offerVideoVe)}};
_.R.getBackgroundImageLayerClass=function(p){return p?"background-image-layer-with-video":""};
_.R.getHeaderClass=function(p){return p?"header-with-video":""};
_.R.getHeaderOverlayClass=function(p){return p?"header-overlay-with-video":""};
_.R.getTitleContainerClass=function(p,J){return p?"title-container-with-video":J?"title-container-without-video-flexible":"title-container-without-video"};
_.R.tierTitleDisplayStatus=function(p){return this.moreThanOne(p)?"hide":"show"};
_.R.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.vO().resolve(_.DF).getPlayerElement():this.backgroundPlayerElement=_.IY();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var p=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=p===1||p===3;this.backgroundPlayerElement.pause()}};
_.R.isMiniplayerActive=function(){return _.vO().resolve(_.DF).isMiniplayerActive()};
_.R.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("selected-tier-changed",this.selectedTier))};
se.prototype.selectedTierChangedForBinding=se.prototype.selectedTierChangedForBinding;se.prototype.onDataChanged=se.prototype.onDataChanged;se.prototype.onYtPopupClosed=se.prototype.onYtPopupClosed;se.prototype.onYtPopupOpened=se.prototype.onYtPopupOpened;se.prototype.onYtServiceRequestError=se.prototype.onYtServiceRequestError;se.prototype.onYtServiceRequestCompleted=se.prototype.onYtServiceRequestCompleted;
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],se.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],se.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],se.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],se.prototype,"data",void 0);_.V([_.N({value:0}),_.Y("design:type",Number)],se.prototype,"selectedTier",void 0);
_.V([_.N({value:""}),_.Y("design:type",String)],se.prototype,"offerVideo",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],se.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.V([_.N({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.jt(this)}}),
_.Y("design:type",String)],se.prototype,"playerId",void 0);_.V([_.FM("tp-yt-paper-dialog-scrollable"),_.Y("design:type",Object)],se.prototype,"scrollable",void 0);_.V([_.FM("ytd-sponsorships-tier-renderer"),_.Y("design:type",Object)],se.prototype,"tierRenderer",void 0);_.V([_.FM("#player"),_.Y("design:type",Object)],se.prototype,"playerElement",void 0);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],se.prototype,"onYtServiceRequestCompleted",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],se.prototype,"onYtServiceRequestError",null);
_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],se.prototype,"onYtPopupOpened",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],se.prototype,"onYtPopupClosed",null);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],se.prototype,"onDataChanged",null);
_.V([_.bO("selectedTier"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],se.prototype,"selectedTierChangedForBinding",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],se);
_.l(se,"ytd-sponsorships-offer-renderer",function(){if(l7M!==void 0)return l7M;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return l7M=p},{mode:_.Jz("kevlar_poly_si_batch_j077")?1:2});var V8I;var gK=function(){var p=_.T.apply(this,arguments)||this;p.buttonOverrides={type:"filled",style:"mono"};return p};
_.Q(gK,_.T);gK.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}}}}}};
gK.prototype.backgroundColorChanged=function(){var p,J,S,H=(J=_.e((p=this.data)==null?void 0:p.content,u0P))==null?void 0:(S=J.backgroundColor)==null?void 0:S.backgroundColor;H&&(p=_.yi(H),_.Jn(this.hostElement).querySelector("#banner").style.backgroundColor=p,_.Jn(this.hostElement).querySelector("#abstract-art").style.backgroundColor=p)};
gK.prototype.attached=function(){this.JSC$21139_scroller&&(this.JSC$21139_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21139_scroller.attached&&typeof this.JSC$21139_scroller.attached==="function"&&this.JSC$21139_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gK.prototype.backgroundColorChanged=gK.prototype.backgroundColorChanged;_.V([_.N(),_.Y("design:type",Object)],gK.prototype,"data",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.FM("#scroller"),_.Y("design:type",Object)],gK.prototype,"JSC$21139_scroller",void 0);_.V([_.N(),_.Y("design:type",Object)],gK.prototype,"buttonOverrides",void 0);
_.V([_.bO("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gK.prototype,"backgroundColorChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],gK);
_.l(gK,"ytd-sponsorships-promotion-celebration-renderer",function(){if(V8I!==void 0)return V8I;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return V8I=p},{mode:_.Jz("kevlar_poly_si_batch_j077")?1:2});var qkM;var a7P;var t5=function(){return _.T.apply(this,arguments)||this};
_.Q(t5,_.T);t5.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
t5.prototype.computeIsInitiallyChecked=function(p){return p===1};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],t5.prototype,"data",void 0);_.V([_.FM("#checkbox"),_.Y("design:type",Object)],t5.prototype,"checkbox",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],t5);
_.l(t5,"ytd-subscription-toggle-option-renderer",function(){if(a7P!==void 0)return a7P;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return a7P=p},{mode:1});var h5=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return p};
_.Q(h5,_.T);h5.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"}}}};
h5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
h5.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var p=_.Jn(this.hostElement).querySelector("#options").selected;p=this.data.options[p].subscriptionRadioOptionRenderer.serviceEndpoint;var J=_.Jn(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");J&&p&&p.modifyChannelNotificationPreferenceEndpoint&&(J=J.getValue())&&(p.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[J]);_.vO().resolve(_.Ov).resolveCommand(p,{form:{element:this.hostElement}});
_.IV(this.hostElement,"yt-close-popup-action")};
_.vh.Object.defineProperties(h5.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var p=this.data.options,J=0;J<p.length;J++){var S=p[J].subscriptionRadioOptionRenderer;if(S&&S.selected)return J}return null}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],h5.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],h5.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],h5.prototype,"data",void 0);_.V([_.U("data.options"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],h5.prototype,"initialIndex",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],h5);
_.l(h5,"ytd-subscription-notification-options-renderer",function(){if(qkM!==void 0)return qkM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return qkM=p},{mode:1});var EHP;var YkI=function(){return _.T.apply(this,arguments)||this};
_.Q(YkI,_.T);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],YkI.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],YkI.prototype,"data",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],YkI);
_.l(YkI,"ytd-tvfilm-offer-groups-renderer",function(){if(EHP!==void 0)return EHP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return EHP=p},{mode:1});var rU$;var D_=function(){return _.T.apply(this,arguments)||this};
_.Q(D_,_.T);_.R=D_.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.R.computeThumbnailClass=function(p){return p.thumbnailOverlays?p.isShow?"thumbnail-show":"thumbnail-movie":p.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.R.computeCommerceSectionClass=function(p){return p.offers&&p.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.R.computeTitleClass=function(p){return p.offers&&p.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.R.onDataChanged=function(){[].concat(_.dW(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(p){p.onShow()})};
D_.prototype.onDataChanged=D_.prototype.onDataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],D_.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D_.prototype,"onDataChanged",null);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],D_);
_.l(D_,"ytd-ypc-offers-overlay-renderer",function(){if(rU$!==void 0)return rU$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return rU$=p},{mode:_.Jz("kevlar_poly_si_batch_j028")?1:2});var jj$;var wkP=function(){this.usedMethods=new Set};
wkP.prototype.add=function(p){this.usedMethods.add(p)};
wkP.prototype.reset=function(){this.usedMethods.clear()};var x$p,cUf;
_.I7y=function(p,J){this.query=p;this.previousSearchQuery=J;this.id=x$p++;if(!cUf){J=_.jn("SBOX_SETTINGS");p="https://"+((J==null?void 0:J.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var S=J==null?void 0:J.REQUEST_LANGUAGE;S&&(p+="&hl="+S);(S=J==null?void 0:J.REQUEST_DOMAIN)&&(p+="&gl="+S);p+="&client=youtube&gs_ri=youtube";(S=J==null?void 0:J.SUGG_EXP_ID)&&(p+="&sugexp="+encodeURIComponent(S));(S=J==null?void 0:J.PSUGGEST_TOKEN)&&(p+="&tok="+S);(J=J==
null?void 0:J.SESSION_INDEX)&&(p+="&authuser="+J);_.z("desktop_enable_visual_suggest")&&(p+="&h=180&w=320&ytvs=1");cUf=p}};
_.Lf$=function(p){var J="q="+encodeURIComponent(p.query);p.previousSearchQuery&&(J+="&pq="+encodeURIComponent(p.previousSearchQuery));return J};
_.pxj=function(){var p=_.jn("SBOX_SETTINGS"),J={};if(p==null?0:p.SEND_VISITOR_DATA)J["X-Goog-Visitor-Id"]=p==null?void 0:p.VISITOR_DATA;return J};
_.J6M=function(p){var J=cUf;J+="&gs_id="+p.id.toString(36);J+="&q="+encodeURIComponent(p.query);J+="&cp="+p.query.length;p.previousSearchQuery&&(J+="&pq="+encodeURIComponent(p.previousSearchQuery));(p=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(J+="&video_id="+p);return J};
x$p=0;cUf="";var SRP=_.wz.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,Hre=_.wz.SEARCH_ENTITY_SUGGESTION_MOVIE,MvI=_.wz.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,XxP=_.wz.SEARCH_ENTITY_SUGGESTION_TV_SHOW,irI=function(p,J){this.text=p;this.bold=J},RFU=function(p,J,S){this.input=J;
this.index=S;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=p[0];this.type=p[1];this.subtypes=p[2];var H;this.displayText=e6j((H=p[3])==null?void 0:H.b);var M;this.ignoredPrefix=e6j((M=p[3])==null?void 0:M.a);var X,Z;this.hasNewVideo=((X=p[3])==null?void 0:(Z=X.zam)==null?void 0:Z.toString())==="true"?!0:!1;var n;this.visualSuggestUrl=(n=p[3])==null?void 0:n.zai;var b;this.entityType=e6j((b=p[3])==null?void 0:b.zap);var F;this.entityName=e6j((F=p[3])==null?void 0:F.zao);var f;J=
e6j((f=p[3])==null?void 0:f.zaf);var O;this.entityMid=(O=p[3])==null?void 0:O.zae;f=WkP(this.subtypes,this.entityMid);if(J&&f){if(J){O="";switch(f){case "YOUTUBE_ENTITY_TYPE_SONG":O=MvI;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":O=SRP;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":O=XxP;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":O=Hre}f=f==="YOUTUBE_ENTITY_TYPE_SONG"||f==="YOUTUBE_ENTITY_TYPE_ALBUM"?O+" \u2022  \u2022 "+J:J}else f="";this.entitySubtitle=f}var A;this.externalChannelId=(A=p[3])==null?void 0:A.zav;
var P;this.entityThumbnailAttributionUrl=(P=p[3])==null?void 0:P.zaq},ZrI=function(p,J){var S=[],H,M=(H=p.displayText)!=null?H:p.text;
(J==null?0:J.useEntityName)&&Kjj(p)&&p.entityName&&(M=p.entityName);if(p.type===33)return S.push(new irI(M,!1)),S;if(M.length>=p.input.length&&M.substring(0,p.input.length)===p.input)S.push(new irI(p.input,!1)),S.push(new irI(M.substring(p.input.length),!0));else{var X=new Set(p.input.split(/\s/)),Z=M.split(/\s/);S=Z.map(function(n,b){return new irI(n.trim()+(b===Z.length-1?"":" "),!X.has(n))})}return S},Kjj=function(p){var J=!!WkP(p.subtypes);
p=!!p.entityMid;return J||p};_.nLr=function(p){this.rawResponse=["",[],{}];this.suggestions=[];try{var J=JSON.parse(Q1N(p));if(typeof J==="object"&&J!==null)this.rawResponse=J;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(H){console.log("Suggest: Failed to parse SuggestResponse!");return}var S=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(H,M){return new RFU(H,S,M)})};var GOf=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new wkP;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21176_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},brU,mMr=function(){brU||(brU=new GOf);
return brU};
GOf.prototype.updateSuggestions=function(p){var J=this;this.availableSuggestions.forEach(function(S){J.previousSuggestions[S]=!0});
this.availableSuggestions=p.map(function(S){var H=S.type.toString();S.subtypes.length>0&&(H+="i"+S.subtypes.join("i"),H+="k"+S.suggestionSources.COMPLETE_SERVER.toString());return H})};
var Fje=function(p,J){var S=Date.now();p.firstEditTime<0&&(p.firstEditTime=S);J&&(p.lastQueryBuildTime=S);p.lastEditTime=S};
GOf.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21176_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var vLI=function(p){var J="";p.availableSuggestions.forEach(function(M){delete p.previousSuggestions[M]});
for(var S=_.K(Object.keys(p.previousSuggestions)),H=S.next();!H.done;H=S.next())H=H.value,p.previousSuggestions[H]&&(J+=(J?"j":"")+H);return J},fQP=function(p,J){var S=[];
J&&(S[1]=J.toString());S[0]="youtube";S[7]=Date.now()-p.startTime;S[6]=p.sessionNumber;p.zeroPrefixSuggestionCount>=0&&(S[33]=p.zeroPrefixSuggestionCount);S[13]=p.outOfSyncResponseCount;if(p.availableSuggestions.length>0){for(var H=J="",M=0,X=_.K(p.availableSuggestions),Z=X.next();!Z.done;Z=X.next())Z=Z.value,Z!==H&&(M>1&&(J+="l"+M),J+=(H?"j":"")+Z,M=0,H=Z),M+=1;M>1&&(J+="l"+M);S[3]=J}S[35]=vLI(p);p.selectedSuggestionIndex>=0&&(S[2]=p.selectedSuggestionIndex);var n;if(J=(n=_.jn("SBOX_SETTINGS"))==
null?void 0:n.SUGG_EXP_ID)S[19]=p.normalize(J),n=0,p.experimentTriggeredBeforeFinal&&(n|=1),p.experimentTriggeredFinal&&(n|=2),S[20]=n;S[26]=Array.from(p.inputMethodsTracker.usedMethods).join("j");if(p.JSC$21176_totalRoundTripTime>0){S[15]=p.JSC$21176_totalRoundTripTime;S[14]=p.maxRoundTripTime;n=[];for(M=J=0;M<10;M++)H=p.roundTripTimeHistogram[M],H===0?J++:(J>1?n.push(M+"-"+H):J===1?n.push("0j"+H):n.push(H.toString()),J=0);n=n.join("j");S[16]=n}p.zeroPrefixRoundTripTime>0&&(S[36]=p.zeroPrefixRoundTripTime);
p.lastQueryBuildTime>0&&(S[18]=p.lastQueryBuildTime-p.startTime);p.firstEditTime>0&&(S[4]=p.firstEditTime-p.startTime);p.lastEditTime>0&&(S[5]=p.lastEditTime-p.startTime);return S.join(".")};
GOf.prototype.normalize=function(p){return p.replaceAll(".","-")};
var Or$=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var kG=function(){var p=_.T.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};
_.Q(kG,_.T);_.R=kG.prototype;_.R.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.R.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=w8w()};
_.R.dataChanged=function(){this.logDialog()};
_.R.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var p;(p=this.manager.audioPlayer)!=null&&(p.JSC$20489_audioEnabled=!1)}this.manager.stop();(p=this.manager.audioPlayer)!=null&&(p.JSC$20489_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.R.handleSpeechQueryCompleteAction=function(p){var J=p.navigationAction;J&&(p.trackingParams&&_.bC().graftServerVe(p.trackingParams,this.dialogVe,5),_.cf(this.hostElement,"yt-navigate",{endpoint:J,tempData:this.getNavigationParams(J),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.R.onExitButtonClick=function(){this.closeDialog()};
_.R.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var p;if((p=this.manager)!=null){var J;(J=p.audioPlayer)==null||wQ(J,"failure");p.setState("microphone-off");p.stop()}}else(p=this.manager)==null||p.start()};
_.R.transcriptionChanged=function(){var p,J;(((p=this.transcription)==null?0:p.low)||((J=this.transcription)==null?0:J.high))&&this.setState("transcribing",this.transcription)};
_.R.stateChanged=function(){this.setState(this.state,this.transcription)};
_.R.logDialog=function(){var p;(p=this.data)!=null&&p.trackingParams&&(p=_.bC(),_.TZ(p,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=p.graftServerVe(this.data.trackingParams,void 0,5))};
_.R.getNavigationParams=function(p){var J={};if(_.z("web_yt_searchbox")){var S=mMr();S.inputMethodsTracker.add(6);S=fQP(S,15);J.gs_l=S;var H;J.oq=((H=_.e(p,_.by))==null?void 0:H.query)||""}else if(p=window.ytvoicesearchloggingparams){if(p=p())J.oq=p.oq,J.gs_l=p.gs_l}else _.SB(Error("Jl"));return J};
_.R.closeDialog=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.R.setState=function(p,J){if(this.data){var S=this.data,H={};switch(p){case "listening":H={headerText:S.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:S.microphoneButtonAriaLabel};break;case "timeout":H={headerText:S.promptHeader,microphoneState:"try-again",microphoneLabel:S.promptMicrophoneLabel,microphoneAriaLabel:S.promptMicrophoneLabel};break;case "microphone-off":H={headerText:S.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:S.promptMicrophoneLabel,
microphoneAriaLabel:S.promptMicrophoneLabel};break;case "transcribing":(J==null?0:J.low)||(J==null?0:J.high)?H={transcriptionLow:J==null?void 0:J.low,transcriptionHigh:J==null?void 0:J.high,microphoneState:"speaking",microphoneAriaLabel:S.microphoneButtonAriaLabel}:H={headerText:S.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:S.microphoneButtonAriaLabel};break;case "processing":H={headerText:S.loadingHeader,microphoneState:"processing",microphoneAriaLabel:S.microphoneButtonAriaLabel};
break;case "offline":H={headerText:S.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:S.connectionErrorMicrophoneLabel,microphoneAriaLabel:S.connectionErrorMicrophoneLabel};break;case "permission":H={headerText:S.permissionsHeader,bodyLine1:S.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:S.permissionsSubtext};break;case "permission-denied":H={headerText:S.disabledHeader,bodyLine1:S.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:S.disabledSubtext}}H.className=
p;this.speechOverlayState=H;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.R.setMicrophoneState=function(p){var J=this.isLevelAnimating;this.isLevelAnimating=p==="speaking";!J&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=p==="processing"&&!this.noAnimations};
_.R.setClass=function(p){this.speechOverlayClassName&&_.XM(this.hostElement,this.speechOverlayClassName,!1);p&&(this.speechOverlayClassName=p,_.XM(this.hostElement,p,!0))};
_.R.runLevelAnimation=function(){var p=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var J=1+Math.random()*.75,S=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+S/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+J+")");_.wg.addJob(function(){p.runLevelAnimation()},3,S)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
kG.prototype.stateChanged=kG.prototype.stateChanged;kG.prototype.transcriptionChanged=kG.prototype.transcriptionChanged;kG.prototype.onPopupClosed=kG.prototype.onPopupClosed;kG.prototype.dataChanged=kG.prototype.dataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],kG.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],kG.prototype,"rendererStamperBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],kG.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],kG.prototype,"eventForwardingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],kG.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],kG.prototype,"speechOverlayState",void 0);
_.V([_.N(),_.Y("design:type",Object)],kG.prototype,"microphoneSpinnerActive",void 0);_.V([_.N({type:_.z("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.Y("design:type",Object)],kG.prototype,"noAnimations",void 0);_.V([_.N({selector:function(p){var J;return(J=p.voiceSearch)==null?void 0:J.transcription}}),
_.Y("design:type",Object)],kG.prototype,"transcription",void 0);_.V([_.N({selector:function(p){var J;return(J=p.voiceSearch)==null?void 0:J.overlay}}),
_.Y("design:type",String)],kG.prototype,"state",void 0);_.V([_.N(),_.Y("design:type",Object)],kG.prototype,"boundExitClick",void 0);_.V([_.FM("#microphone-levels"),_.Y("design:type",HTMLElement)],kG.prototype,"level",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kG.prototype,"dataChanged",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kG.prototype,"onPopupClosed",null);
_.V([_.An("transcription"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kG.prototype,"transcriptionChanged",null);_.V([_.An("state"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kG.prototype,"stateChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],kG);
_.l(kG,"ytd-voice-search-dialog-renderer",function(){if(jj$!==void 0)return jj$;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return jj$=p},{mode:1});var A6e;var Ne=function(){var p=_.T.apply(this,arguments)||this;p.isOverlay=!1;p.hidden=!1;return p};
_.Q(Ne,_.T);_.R=Ne.prototype;_.R.onPopupClosed=function(){this.toggleIconState(!1)};
_.R.computeIcon=function(){var p,J,S;return(J=_.e((p=this.data)==null?void 0:p.icon,Elr))==null?void 0:(S=J.icon)==null?void 0:S.iconType};
_.R.computeIconBadgeShape=function(){var p;return{iconBadgeType:"cart",iconBadgeText:(p=this.iconBadgeEntity)==null?void 0:p.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.R.onClick=function(){var p;(p=this.data)!=null&&p.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.R.computeHidden=function(p){return!p};
_.R.toggleIconState=function(p){this.iconButton&&(this.iconButton.pressed=p)};
Ne.prototype.onPopupClosed=Ne.prototype.onPopupClosed;_.V([_.B(_.RB),_.Y("design:type",Object)],Ne.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],Ne.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ne.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],Ne.prototype,"isOverlay",void 0);
_.V([_.N({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.Y("design:type",Object)],Ne.prototype,"hidden",void 0);_.V([_.N({selectorArgs:["data.iconBadgeEntityKey"],selector:function(p,J){return _.RR(p.entities,"iconBadgeEntity",J)}}),
_.Y("design:type",Object)],Ne.prototype,"iconBadgeEntity",void 0);_.V([_.FM("yt-icon-button"),_.Y("design:type",HTMLButtonElement)],Ne.prototype,"iconButton",void 0);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ne.prototype,"onPopupClosed",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Ne);
_.l(Ne,"ytd-icon-badge-topbar-button-renderer",function(){if(A6e!==void 0)return A6e;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return A6e=p},{mode:1});var Pg$;var TP=function(){var p=_.T.apply(this,arguments)||this;p.premiumOptions=[];return p};
_.Q(TP,_.T);TP.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.vh.Object.defineProperties(TP.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],TP.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Array)],TP.prototype,"premiumOptions",void 0);_.V([_.U("premiumOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TP.prototype,"hasPremiumOptions",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],TP);
_.l(TP,"ytd-offline-promo-content",function(){if(Pg$!==void 0)return Pg$;var p=document.createElement("template");_.C(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="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);return Pg$=p},{mode:1});var zFr;var dK=function(){var p=_.T.apply(this,arguments)||this;p.premiumOptions=[];return p};
_.Q(dK,_.T);dK.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var p;this.premiumOptions=orM((p=this.data)==null?void 0:p.formats)};
dK.prototype.onClickSubmit=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var p;(p=_.IY())==null||p.pause()};
dK.prototype.attached=function(){this.JSC$21196_scroller&&(this.JSC$21196_scroller.dialogElement=this.hostElement.parentNode)};
_.vh.Object.defineProperties(dK.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
dK.prototype.dataChanged=dK.prototype.dataChanged;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],dK.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],dK.prototype,"data",void 0);
_.V([_.N({computed:"computeIcon_(data.headersIcon)",value:""}),_.Y("design:type",String)],dK.prototype,"headersIcon",void 0);_.V([_.N(),_.Y("design:type",Array)],dK.prototype,"premiumOptions",void 0);_.V([_.FM("#scroller"),_.Y("design:type",Object)],dK.prototype,"JSC$21196_scroller",void 0);_.V([_.U("headersIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dK.prototype,"showIcon",null);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dK.prototype,"dataChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],dK);
_.l(dK,"ytd-offline-promo-renderer",function(){if(zFr!==void 0)return zFr;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return zFr=p},{mode:1});var $Mf;var uM=function(){var p=_.T.apply(this,arguments)||this;p.playbackPauseInterval=NaN;p.isLoading=!1;p.hasError=!1;p.dialogClass="";p.youtubeLabel=_.Kl("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};
_.Q(uM,_.T);_.R=uM.prototype;_.R.onDataChange=function(){var p;if(this.showEOMV1Text=!((p=this.data)==null||!p.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.R.attached=function(){this.pausePlayer()};
_.R.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.R.handleLangSelect=function(p){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[p.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.R.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.R.handleSaveConsent=function(p){var J=this;this.showLoadingSpinner();this.showLoadingSpinner();VrI(_.e(p,iBI)).catch(function(S){_.xQ(new _.TG("Something went wrong when save consent "+(S.message?S.message:S)+"."));J.hideLoadingSpinner();J.showErrorMessage()})};
_.R.handleDisablePersonalization=function(p){var J=this;this.showLoadingSpinner();qaI(_.e(p,XwI)).then(function(){J.dialog.close();J.resumePlayer()}).catch(function(S){_.xQ(new _.TG("Something went wrong when disable personalization "+(S.message?S.message:S)+"."));
J.hideLoadingSpinner();J.showErrorMessage()})};
_.R.showLoadingSpinner=function(){var p=this;this.showSpinnerJobId=_.wg.addLowPriorityJob(function(){p.isLoading=!0},500)};
_.R.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.wg.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.R.showErrorMessage=function(){var p=this;this.hasError=!0;_.wg.addLowPriorityJob(function(){p.hasError=!1},2E3)};
_.R.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Qn(function(){try{var p=_.IY();p&&p.pause()}catch(J){}},100))};
_.R.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var p=_.IY();p&&p.play()}catch(J){}};
_.vh.Object.defineProperties(uM.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.eomV1Text)return[];p=[];for(var J=["SHIELD","WARNING","BAR_CHART"],S=this.data.eomV1Text.essentialCookieMsg.items,H=0;H<J.length&&H<S.length;H++)p.push({icon:J[H],text:S[H]});return p}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.eomV1Text)return[];p=[];for(var J=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],S=this.data.eomV1Text.nonEssentialCookieMsg.items,H=0;H<J.length&&H<S.length;H++)p.push({icon:J[H],text:S[H]});return p}}});
uM.prototype.onDataChange=uM.prototype.onDataChange;_.V([_.N(),_.Y("design:type",Object)],uM.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],uM.prototype,"showEOMV1Text",void 0);_.V([_.N(),_.Y("design:type",Object)],uM.prototype,"isLoading",void 0);_.V([_.N(),_.Y("design:type",Object)],uM.prototype,"hasError",void 0);_.V([_.N(),_.Y("design:type",Number)],uM.prototype,"showSpinnerJobId",void 0);_.V([_.N(),_.Y("design:type",Object)],uM.prototype,"dialogClass",void 0);
_.V([_.FM("#dialog"),_.Y("design:type",Object)],uM.prototype,"dialog",void 0);_.V([_.FM("#cb-header"),_.Y("design:type",HTMLElement)],uM.prototype,"header",void 0);_.V([_.FM("#lang-select"),_.Y("design:type",HTMLElement)],uM.prototype,"langSelect",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],uM.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],uM.prototype,"ytComponentBehavior",void 0);
_.V([_.N(),_.Y("design:type",String)],uM.prototype,"youtubeLabel",void 0);_.V([_.N(),_.Y("design:type",Object)],uM.prototype,"logoName",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uM.prototype,"onDataChange",null);_.V([_.U("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],uM.prototype,"eomEssentialCookieMsgItems",null);
_.V([_.U("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],uM.prototype,"eomNonEssentialCookieMsgItems",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],uM);
_.l(uM,"ytd-consent-bump-v2-lightbox",function(){if($Mf!==void 0)return $Mf;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return $Mf=p},{mode:1});var oLw;var lM=function(){return _.T.apply(this,arguments)||this};
_.Q(lM,_.T);lM.prototype.ready=function(){if(!_.DL()||hhf)var p=!0;else hhf=!0,p=!1;p||(p=document.querySelector("ytd-app"),p||(p=document.body),this.internalLightBox=_.Jn(p).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.V([_.N(),_.Y("design:type",Object)],lM.prototype,"data",void 0);_.V([_.FM("#lightbox"),_.Y("design:type",Object)],lM.prototype,"lightBox",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],lM);
_.l(lM,"ytd-consent-bump-v2-renderer",function(){if(oLw!==void 0)return oLw;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return oLw=p},{mode:1});var eFI;var Wjp;var Qgj;var VN=function(){return _.T.apply(this,arguments)||this};
_.Q(VN,_.T);_.R=VN.prototype;_.R.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&juI(this.toastManager,this.toastType)};
_.R.open=function(p){this.toast&&(this.ephemeralAction&&_.vO().resolve(_.gP).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=p!=null?p:0,this.toastManager.enqueue(this.toast,p)):this.toast.open())};
_.R.close=function(p){var J;(J=this.toast)==null||J.close();this.toastManager&&p===1&&juI(this.toastManager,p)};
_.R.refit=function(){var p;(p=this.toast)==null||p.refit()};
_.R.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var p;(p=this.toast)==null||p.close()}};
_.R.setVerticalOffset=function(p){this.toast&&(this.toast.verticalOffset=p,this.toast.fit())};
_.R.computeButtonClass_=function(p){return p?"toast-button":""};
_.R.computeText_=function(p){return _.E4(p)};
_.R.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.P7("toast-opened-changed",this.toastOpened))};
_.R.updateToastOpenedFromBinding=function(p){this.toastOpened=p.detail.value};
_.vh.Object.defineProperties(VN.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var p,J,S=(p=this.data)==null?void 0:(J=p.actionButton)==null?void 0:J.buttonRenderer;return(S==null?void 0:S.command)||(S==null?void 0:S.serviceEndpoint)||(S==null?void 0:S.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var p=[],J;((J=this.data)==null?0:J.responseText)&&p.push(_.E4(this.data.responseText));var S;((S=this.data)==null?0:S.subText)&&p.push(_.E4(this.data.subText));var H,M;if((H=this.data)==null?0:(M=H.actionButton)==null?0:M.buttonRenderer){var X,Z;p.push(((X=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(Z=X.accessibilityData)==null?void 0:Z.label)||_.E4(this.data.actionButton.buttonRenderer.text))}return p.filter(function(n){return n}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var p,J;return(J=(p=this.toast)==null?void 0:p.opened)!=null?J:!1}}});
VN.prototype.toastOpenedChangedForBinding=VN.prototype.toastOpenedChangedForBinding;VN.prototype.toastOpenedChanged=VN.prototype.toastOpenedChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],VN.prototype,"ytEventForwardingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],VN.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],VN.prototype,"duration",void 0);
_.V([_.N(),_.Y("design:type",Number)],VN.prototype,"toastType",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],VN.prototype,"useCloseButton",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],VN.prototype,"closeToastOnActionButtonClick",void 0);_.V([_.N({value:function(){return _.Kl("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],VN.prototype,"closeButtonAriaLabel",void 0);_.V([_.N(),_.Y("design:type",Boolean)],VN.prototype,"toastOpened",void 0);_.V([_.N(),_.Y("design:type",Boolean)],VN.prototype,"hasOpened",void 0);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VN.prototype,"command",null);_.V([_.U("labelText","command","duration"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VN.prototype,"ephemeralAction",null);
_.V([_.U("ephemeralAction"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VN.prototype,"hasEphemeralAction",null);_.V([_.FM("#toast"),_.Y("design:type",Object)],VN.prototype,"toast",void 0);_.V([_.N({value:function(){return{style:"call-to-action-inverse"}}}),
_.Y("design:type",Object)],VN.prototype,"buttonOverrides",void 0);_.V([_.N({value:{style:"mono-inverse"}}),_.Y("design:type",Object)],VN.prototype,"closeButtonOverrides",void 0);_.V([_.N({value:function(){return _.vO().resolve(_.F9(_.CZ))}}),
_.Y("design:type",Object)],VN.prototype,"toastManager",void 0);_.V([_.U("data.responseText","data.subText","data.actionButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VN.prototype,"labelText",null);_.V([_.bO("toastOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VN.prototype,"toastOpenedChanged",null);
_.V([_.bO("toastOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VN.prototype,"toastOpenedChangedForBinding",null);_.V([_.sD({is:"yt-notification-action-renderer",disableElementRegistration:!0})],VN);
_.l(VN,"yt-notification-action-renderer",function(){if(Qgj===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;Wjp===void 0&&(Wjp=document.createElement("template"));var H=Wjp;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Qgj=p}p=Qgj;return p},{mode:2});var qe=function(){var p=_.T.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(J){p.isLeaderTab&&p.downloadingCount>0&&(J.preventDefault(),
J.returnValue=!0)};
return p};
_.Q(qe,_.T);_.R=qe.prototype;
_.R.open=function(){this.updateDownloadState();if(this.data){var p=this.sessionDownloaded+1,J=this.sessionTotalDownloads>1?_.Kl("VIDEOS_DOWNLOADING_RATIO",{downloaded:p.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+p+"/"+this.sessionTotalDownloads):_.Kl("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(J=this.sessionTotalDownloads>1?_.Kl("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:p.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
p+"/"+this.sessionTotalDownloads):_.Kl("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));p=this.isLeaderTab?_.Kl("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.E4(this.data.responseText)!==J||_.E4(this.data.subText)!==p)this.set("data.responseText",_.aR(J)),this.set("data.subText",_.aR(p)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.R.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.R.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.R.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.R.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};
_.R.handleFullscreenChange=function(p){(this.isFullScreen=p)||this.updatePopup()};
qe.prototype.updateCurrentDownloadProgress=qe.prototype.updateCurrentDownloadProgress;qe.prototype.updatePopup=qe.prototype.updatePopup;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],qe.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],qe.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],qe.prototype,"actionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],qe.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],qe.prototype,"duration",void 0);_.V([_.N({selector:function(p){return _.NbW(p.entities).length}}),
_.Y("design:type",Object)],qe.prototype,"downloadingCount",void 0);_.V([_.N({selector:pvj}),_.Y("design:type",Object)],qe.prototype,"downloadedCount",void 0);_.V([_.N({selector:function(p){var J=_.NbW(p.entities);return L5I(p.entities,J)}}),
_.Y("design:type",Object)],qe.prototype,"downloadingOnlySmartDownloads",void 0);_.V([_.N(),_.Y("design:type",Object)],qe.prototype,"sessionTotalDownloads",void 0);_.V([_.N(),_.Y("design:type",Object)],qe.prototype,"sessionDownloaded",void 0);_.V([_.N(),_.Y("design:type",Object)],qe.prototype,"previousSessionsDownloaded",void 0);_.V([_.N(),_.Y("design:type",Object)],qe.prototype,"totalDownloadPercentage",void 0);
_.V([_.N({selector:function(p){var J;p=(J=_.NbW(p.entities))!=null?J:[];return p.length>0?_.QQ9(p.slice(-1)):0}}),
_.Y("design:type",Object)],qe.prototype,"currentDownloadProgress",void 0);_.V([_.N(),_.Y("design:type",Object)],qe.prototype,"currentDownloadPercentage",void 0);_.V([_.N({selector:_.Vpv}),_.Y("design:type",Object)],qe.prototype,"isLeaderTab",void 0);_.V([_.FM("yt-notification-action-renderer"),_.Y("design:type",Object)],qe.prototype,"notificationActionRenderer",void 0);
_.V([_.An("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qe.prototype,"updatePopup",null);_.V([_.An("currentDownloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qe.prototype,"updateCurrentDownloadProgress",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],qe);
_.l(qe,"ytd-video-download-toast-renderer",function(){if(eFI!==void 0)return eFI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return eFI=p},{mode:1});var CgP;var y6p;var am=function(){return _.T.apply(this,arguments)||this};
_.Q(am,_.T);am.prototype.computeIsRedLogo=function(p,J){!p&&J&&(p=J);return p==="YOUTUBE_RED_LOGO"||p==="YOUTUBE_PREMIUM_LOGO"};
am.prototype.computeLogoName=function(p){p=this.componentBehavior.computeIcon_(p);return p===""?"yt-logos-ext:yt-logo-updated":p};
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],am.prototype,"componentBehavior",void 0);_.V([_.N({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.Y("design:type",Boolean)],am.prototype,"isRedLogo",void 0);_.V([_.N({computed:"computeLogoName(data)"}),_.Y("design:type",String)],am.prototype,"logoName",void 0);_.V([_.N({value:{}}),_.Y("design:type",Object)],am.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],am.prototype,"logoType",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-logo"})],am);
_.l(am,"ytd-logo",function(){if(y6p!==void 0)return y6p;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return y6p=p},{mode:_.Jz("kevlar_poly_si_batch_j074")?1:2});var Ee=function(){var p=_.T.apply(this,arguments)||this;p.animationRef={};return p};
_.Q(Ee,_.T);_.R=Ee.prototype;_.R.attached=function(){document.addEventListener("yt-navigate-finish",_.n3(this,this.logYoodle))};
_.R.detached=function(){document.removeEventListener("yt-navigate-finish",_.n3(this,this.logYoodle))};
_.R.logYoodle=function(){var p,J;if((p=this.data)==null?0:(J=p.loggingDirectives)==null?0:J.trackingParams)this.ytRendererBehavior.markDirty(),_.bC().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.R.computeHideImg=function(p,J){return!!p||!!J};
_.R.computeHideYtdLogo=function(p,J){return!p||!!J};
_.R.computeHideLottie=function(p){return!p};
_.R.computeIsRedLogo=function(p){return p==="YOUTUBE_RED_LOGO"||p==="YOUTUBE_PREMIUM_LOGO"};
_.R.renderLogoEntity=function(){var p=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),J=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),S=this.getLogoTitleText(this.data),H=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==p&&(this.url=p);this.animatedUrl!==J&&(this.animatedUrl=J);this.logoTitleText!==S&&(this.logoTitleText=S);this.lottieUrl!==H&&(this.lottieUrl=H,this.lottiePlayerProps=this.computeLottiePlayerProps(H))};
_.R.getSanitizedThumbnail=function(p){return p&&p.thumbnails?_.qfi(p.thumbnails,122)||"":""};
_.R.getThumbnailUrl=function(p,J){if(!J)return"";var S,H;p=p?(S=J.darkThemeLogo)==null?void 0:S.thumbnail:(H=J.lightThemeLogo)==null?void 0:H.thumbnail;return this.getSanitizedThumbnail(p)};
_.R.getAnimatedThumbnailUrl=function(p,J){return J?this.getSanitizedThumbnail(p?J.darkThemeAnimatedLogo:J.lightThemeAnimatedLogo):""};
_.R.getLogoTitleText=function(p){if(p)return _.E4(p.tooltipText)};
_.R.computeLogoIcon=function(p,J){if(J){var S,H;return p?(S=J.darkThemeLogo)==null?void 0:S.icon:(H=J.lightThemeLogo)==null?void 0:H.icon}};
_.R.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.R.getLottieUrl=function(p,J){var S,H,M,X;return p?J==null?void 0:(S=J.darkThemeLogo)==null?void 0:(H=S.lottieAnimation)==null?void 0:H.url:J==null?void 0:(M=J.lightThemeLogo)==null?void 0:(X=M.lottieAnimation)==null?void 0:X.url};
_.R.computeLottiePlayerProps=function(p){if(p){var J;if((J=this.animationRef)==null?0:J.lottieEl){var S;(S=this.animationRef)==null||S.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)}}}};
_.R.onLottieError=function(){this.data&&this.lottieUrl&&_.cf(this.hostElement,"yoodle-error")};
_.R.onImgError=function(){this.data&&!this.lottieUrl&&_.cf(this.hostElement,"yoodle-error")};
Ee.prototype.playAnimation=Ee.prototype.playAnimation;Ee.prototype.renderLogoEntity=Ee.prototype.renderLogoEntity;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ee.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ee.prototype,"data",void 0);_.V([_.N({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.Y("design:type",Boolean)],Ee.prototype,"hideImg",void 0);
_.V([_.N({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.Y("design:type",Boolean)],Ee.prototype,"hideYtdLogo",void 0);_.V([_.N({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.Y("design:type",Boolean)],Ee.prototype,"hideLottie",void 0);_.V([_.N({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.Y("design:type",Boolean)],Ee.prototype,"isRedLogo",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],Ee.prototype,"useDarkThemeYoodle",void 0);_.V([_.N(),_.Y("design:type",String)],Ee.prototype,"url",void 0);_.V([_.N(),_.Y("design:type",String)],Ee.prototype,"animatedUrl",void 0);_.V([_.N(),_.Y("design:type",String)],Ee.prototype,"logoTitleText",void 0);_.V([_.N({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.Y("design:type",Object)],Ee.prototype,"logoIcon",void 0);_.V([_.N(),_.Y("design:type",Object)],Ee.prototype,"logoType",void 0);
_.V([_.N(),_.Y("design:type",String)],Ee.prototype,"lottieUrl",void 0);_.V([_.N(),_.Y("design:type",Object)],Ee.prototype,"lottiePlayerProps",void 0);_.V([_.N(),_.Y("design:type",Object)],Ee.prototype,"animationRef",void 0);_.V([_.bO("data"),_.bO("useDarkThemeYoodle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ee.prototype,"renderLogoEntity",null);
_.V([_.GI("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Ee.prototype,"playAnimation",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Ee);
_.l(Ee,"ytd-yoodle-renderer",function(){if(CgP!==void 0)return CgP;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return CgP=p},{mode:_.Jz("kevlar_poly_si_batch_j074")?1:2});var BAI;var UMN;var sgN=_.uT.currentPageTypeSelector,gLp=_.uT.currentPageSubTypeSelector,YG=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return p};
_.Q(YG,_.T);_.R=YG.prototype;_.R.onYoodleError=function(){_.z("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.R.computeLogoName=function(p){p=this.componentBehavior.computeIcon_(p);return p===""?"yt-logos-ext:yt-logo-updated":p};
_.R.computeTitle=function(p,J,S){return S&&(J==null?0:J.tooltipText)?_.E4(J.tooltipText):_.E4(p)};
_.R.computeAriaLabel=function(p,J,S){return S&&(J==null?0:J.tooltipText)?_.E4(p):""};
_.R.computeShowYoodle=function(p,J,S){return!p||!J&&!!S&&!_.T6.isEmpty(S)};
_.R.onNavigateHomeAction=function(){if(_.z("kevlar_miniplayer_navigate_home_from_app_killswitch")){var p;(p=_.Jn(this.hostElement).querySelector(".yt-simple-endpoint"))==null||p.click()}};
_.R.computeLogoHref=function(p,J,S){var H;(S==null?0:S.onTapCommand)?H=this.componentBehavior.computeHref_(S.onTapCommand):p&&(H=this.componentBehavior.computeHref_(p));return H?H:J};
_.R.computeCommand=function(p,J){return(J==null?void 0:J.onTapCommand)||p};
_.R.getEndpointForm=function(){if(_.z("kevlar_topbar_disable_cache_only_home")){var p=_.vO().resolve(_.XN),J=sgN(p.getState())||"";p=gLp(p.getState())||"";return{disableCache:J==="ytd-browse"&&p==="home"}}return{disableCache:!0}};
YG.prototype.onYoodleError=YG.prototype.onYoodleError;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],YG.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],YG.prototype,"componentBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],YG.prototype,"ytdReduxBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],YG.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],YG.prototype,"countryCode",void 0);_.V([_.N({selectorArgs:["data.overrideEntityKey"],selector:function(p,J){return _.RR(p.entities,"logoEntity",J)}}),
_.Y("design:type",Object)],YG.prototype,"logoEntity",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.Y("design:type",Boolean)],YG.prototype,"showYoodle",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],YG.prototype,"yoodleError",void 0);_.V([_.N({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.Y("design:type",String)],YG.prototype,"titleText",void 0);
_.V([_.N({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.Y("design:type",String)],YG.prototype,"ariaLabelText",void 0);_.V([_.N({value:"/"}),_.Y("design:type",String)],YG.prototype,"defaultEndpointUrl",void 0);_.V([_.N({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.Y("design:type",String)],YG.prototype,"endpointUrl",void 0);
_.V([_.N({computed:"computeCommand(data.endpoint, logoEntity)"}),_.Y("design:type",String)],YG.prototype,"command",void 0);_.V([_.N(),_.Y("design:type",Object)],YG.prototype,"logoType",void 0);_.V([_.N({}),_.Y("design:type",Boolean)],YG.prototype,"useDarkThemeYoodle",void 0);_.V([_.GI("yoodle-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YG.prototype,"onYoodleError",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],YG);
_.l(YG,"ytd-topbar-logo-renderer",function(){if(UMN!==void 0)return UMN;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return UMN=p},{mode:_.Jz("kevlar_poly_si_batch_j027")?1:2});var tvr=0;var hFe=_.wz.SEARCH_APPEND_LABEL,DMM=_.wz.SUGGESTION_NEW_VIDEOS_TEXT,kOj=_.wz.SUGGESTION_THUMBNAIL_LABEL,NAy=_.wz.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,TAl=_.d(function(p){function J(Sa){var Ar,EN;return _.G(function(nC){if(nC.nextAddress==1)return Ar=new Request(Sa),_.oI(nC,2),nC.yield(fetch(Ar,{credentials:"include"}),4);if(nC.nextAddress!=2)return KL(!0),_.X$(nC,0);EN=_.BZ(nC);_.xQ(EN);_.UK(nC)})}
var S=p.isHighlighted;var H=p.suggestion;var M=p.onClickCallback;var X=p.onHoverUpdateCallback;var Z=p.labels;var n=p.queryBuilderFunction;var b=p.onRemoveCallback;var F=p.suggestionIndex;var f=p.generateUniqueId;var O=p.highlightedId;var A=p.useScrollMargin;var P=p.isKeyboardMode;var W=null,y=null,t=null,D=_.nE("div"),k=_.nE("span");p=_.K(_.eQ(!1,void 0,"LafNkf"));var E=p.next().value,a=p.next().value,q=_.mo("a",function(Sa){Sa&&_.WY(237477,Sa,y,function(Ar){y=Ar})}),w=_.mo("button",function(Sa){Sa&&
_.WY(237477,Sa,y,function(Ar){y=Ar})}),I=_.mo("div",function(Sa){Sa&&_.WY(281939,Sa,t,function(Ar){t=Ar})}),Z3=_.Kb(function(Sa){if((Sa==null?void 0:Sa.button)===2)return Sa.preventDefault(),!1;
var Ar=_.C1();Ar&&W&&_.Vf(Ar,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var EN;M(Sa,H().text,H().index,H().entityMid,Sa==null?void 0:(EN=Sa.detail)==null?void 0:EN.wasSelectedByKeyboard);return!1}),vg=function(){return H().type===35},yX=function(){return _.z("desktop_enable_single_suggestion_highlight")},Pg=function(){return _.PO("desktop_suggestions_panel_row_height")||0},ov=function(){var Sa;
return _.z("desktop_enable_new_video_metadata")&&((Sa=H())==null?void 0:Sa.hasNewVideo)===!0},NW=function(){return _.z("desktop_enable_visual_suggest")},TW=function(){return _.z("desktop_enable_entity_suggest")&&Kjj(H())},Ys=function(){return H().entitySubtitle},Go=function(){return yX()?(S==null?void 0:S())||xU()&&!(P==null?0:P()):(S==null?void 0:S())||xU()},$U=function(){var Sa=_.jn("SBOX_SETTINGS");
return vg()&&!(Sa==null?0:Sa.HIDE_REMOVE_LINK)},LL=function(){return ZrI(H(),{useEntityName:TW()})},fd,Qv=!((fd=_.vO().resolve(_.F9(_.uC)))==null||!fd()),t8=function(){return vg()?_.z("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Wp=function(){return Z==null?void 0:Z().SUGGESTION_DISMISS_LABEL},ON=function(){return Z==null?void 0:Z().SUGGESTION_DISMISSED_LABEL};
p=_.K(_.eQ(!1,void 0,"JyfUlf"));fd=p.next().value;var KL=p.next().value;p=_.K(_.eQ(!1,void 0,"QKfAGe"));var HE=p.next().value,o8=p.next().value,xU=HE,eL=_.Kb(function(){n(k.value.innerText);return!1}),Ld=_.Kb(function(Sa){Sa.preventDefault();
return!1}),QV=_.Kb(function(Sa){var Ar=H().text,EN=_.jn("SBOX_SETTINGS"),nC="https://"+(EN.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
nC+="&delq="+encodeURIComponent(Ar);(Ar=EN==null?void 0:EN.PSUGGEST_TOKEN)&&(nC+="&tok="+Ar);(EN=EN==null?void 0:EN.SESSION_INDEX)&&(nC+="&authuser="+EN);J(nC);Sa.preventDefault();(Sa=_.C1())&&y&&_.Vf(Sa,y,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");b(F==null?void 0:F());return!1}),YU=_.Kb(function(){if(yX()&&(P==null?0:P()))return!1;
o8(!0);X(!0);return!1}),Fn=_.Kb(function(){o8(!1);
X(!1);return!1}),vE=_.Kb(function(){a(!0);
return!1}),XP=_.Kb(function(){a(!1);
return!1}),wk=_.Kb(function(Sa){Sa.preventDefault();
if(H().entityThumbnailAttributionUrl){t&&_.lq(_.bC(),t);var Ar=H().entityThumbnailAttributionUrl;Sa=H().entityName;var EN={dismissDialogEndpoint:{}};Ar={commandExecutorCommand:{commands:[EN,{urlEndpoint:{url:Ar,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:Ar}}}]}};EN={buttonViewModel:{title:_.Kl("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:EN}}};Ar={buttonViewModel:{title:_.Kl("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:Ar}}};Sa={dialogHeaderViewModel:{headline:{content:Sa!=null?Sa:_.Kl("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var nC={basicContentViewModel:{paragraphs:[{text:{content:_.Kl("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};Sa={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Sa,footer:{panelFooterViewModel:{primaryButton:Ar,
secondaryButton:EN,shouldHideDivider:!0}},content:nC}}}}};_.vO().resolve(_.Ov).resolveCommand(Sa)}return!1});
p=_.K(_.eQ("",void 0,"MvIBn"));var SI=p.next().value,vG=p.next().value;_.qz(function(){$U()&&vG(f==null?void 0:f(F==null?void 0:F()));D.value&&_.WY(12453,D.value,W,function(Sa){W=Sa})});
return _.m(_.v,{cond:fd,then:function(){var Sa={};return _.m("div",{class:_.XB("ytSuggestionComponentRemovedText",(Sa.ytSuggestionComponentLargerRemovedText=function(){return NW()},Sa)),
style:function(){return Pg()>0?"height: "+Pg()+"px;":""},
role:"button"},ON)},
else:function(){var Sa={},Ar={};return _.m("div",{class:_.XB("ytSuggestionComponentSuggestion",(Sa.ytSuggestionComponentSuggestionHover=function(){return!yX()},Sa.ytSuggestionComponentHighlighted=Go,Sa.ytSuggestionComponentPersonalizedSuggestion=vg,Sa.ytSuggestionComponentMweb=!1,Sa.ytSuggestionComponentLargerSuggestion=function(){return ov()||NW()},Sa.ytSuggestionComponentThumbnailSuggestion=function(){return NW()},Sa.ytSuggestionComponentRoundedSuggestion=function(){return _.z("desktop_enable_scrollable_suggestions_panel")&&
_.z("desktop_enable_suggestions_panel_padding")},Sa.ytSuggestionComponentThumbnailPadding=function(){return NW()&&!vg()},Sa)),
style:function(){return Pg()>0?"height: "+Pg()+"px;":""},
role:"presentation","on:mousedown":Z3,"on:mouseover":YU,"on:mouseout":Fn,el:D},_.m("div",{class:_.XB("ytSuggestionComponentText",(Ar.ytSuggestionComponentScrollMargin=A,Ar)),"aria-label":function(){return ov()?H().text+" "+DMM:H().text},
id:function(){return f==null?void 0:f(F==null?void 0:F())},
"on:mousedown":Z3,role:"option"},_.m(_.v,{cond:function(){return H().type!==33},
then:function(){return _.m(_.bn,{icon:t8,className:"ytSuggestionComponentIcon"})}}),_.m("div",{class:"ytSuggestionComponentLeftContainer"},_.m("span",{el:k,
role:"button",tabindex:0},_.m(_.dY,{each:LL},function(EN){return EN.bold?_.m("span",{class:"ytSuggestionComponentBold"},EN.text):_.m("span",null,EN.text)})),_.m(_.v,{cond:function(){return TW()&&!!H().entitySubtitle||ov()},
then:function(){return _.m("div",{class:"ytSuggestionComponentMetadataContainer"},_.m(_.v,{cond:function(){return TW()&&!!H().entitySubtitle},
then:function(){return _.m("div",{class:"ytSuggestionComponentEntitySubtitle"},Ys)}}),_.m(_.v,{cond:function(){return ov()},
then:function(){return _.m("div",{class:"ytSuggestionComponentNewVideoContainer"},_.m("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.m("div",{class:"ytSuggestionComponentNewVideoText"},DMM))}}))}}))),_.m("div",{class:"ytSuggestionComponentRightContainer"},_.m(_.v,{cond:function(){return NW()&&H().visualSuggestUrl!==void 0},
then:function(){var EN={};return _.m("div",{class:"ytSuggestionComponentThumbnailContainer"},_.m("img",{"aria-label":kOj,class:_.XB("ytSuggestionComponentVisualSuggestThumbnail",(EN.ytSuggestionComponentCircularFrame=function(){return TW()&&H().subtypes.includes(790)},EN.ytSuggestionComponentEntitySuggestThumbnail=function(){return TW()},EN)),
src:function(){return H().visualSuggestUrl}}),_.m(_.v,{cond:function(){return TW()&&!!H().entityThumbnailAttributionUrl},
then:function(){var nC={};return _.m("span",{title:NAy,role:"tooltip"},_.m("div",{el:I,"on:mouseover":vE,"on:mouseout":XP,"on:mousedown":wk,class:_.XB("ytSuggestionComponentThumbnailOverlay",(nC.ytSuggestionComponentThumbnailOverlayHidden=function(){return!E()},nC))},_.m(_.bn,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.m(_.ue,null,_.m(_.Nz,{when:function(){return NW()&&$U()}},function(){var EN={};
return _.m("button",{class:_.XB("ytSuggestionComponentRemoveLinkClearButton",(EN.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return SI()&&SI()===(O==null?void 0:O())},EN.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Go()},EN)),
el:w,"on:mousedown":QV,"aria-label":Wp,id:function(){return SI()}},_.m(_.bn,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.m(_.Nz,{when:function(){return!(NW()&&H().visualSuggestUrl!==void 0)&&$U()}},function(){var EN={};
return _.m("a",{class:_.XB("ytSuggestionComponentRemoveLink",(EN.ytSuggestionComponentRemoveLinkDark=Qv,EN.ytSuggestionComponentRemoveLinkSelected=function(){return SI()&&SI()===(O==null?void 0:O())},EN)),
el:q,"on:mousedown":QV,"aria-label":Wp,tabindex:0,role:"button",id:function(){return SI()}},Wp)}),_.m(_.Nz,{when:function(){return!1}},function(){return _.m("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":eL,"on:mousedown":Ld,role:"button","aria-label":hFe},_.m(_.bn,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Aj");var dMP=_.YI(["//www.google.com/textinputassistant/","/","_tia.js"]),uAP=_.d(function(){return _.m("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.m("button",{class:"ytdTextInputAssistantButton","on:click":_.Kb(function(){mMr().inputMethodsTracker.add(3);var p,J=(p=_.jn("SBOX_SETTINGS"))==null?void 0:p.REQUEST_LANGUAGE;if(J)return _.h1(_.fA(dMP,14,J)),!1})},_.m("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Bj");var VvP;_.lQP=function(){this.cache=new Map};
VvP=function(p){for(var J=_.K(p.cache.entries()),S=J.next();!S.done;S=J.next()){var H=_.K(S.value);S=H.next().value;H=H.next().value;H.suggestions.some(function(M){return M.type===35})&&p.cache.delete(S)}};var qRM=_.wz.SEARCH,aQI=_.wz.SEARCH_CLEAR_LABEL,ELP=new _.ni("FAKE_SUGGEST_RESPONSE"),YRN=_.d(function(p){function J(){YU||(YU=setTimeout(function(){vE()},1E3))}
function S(Up,Cd,Ve){if(Up.trim()){QV=Up;_.rY("REFINEMENTS_TUPLE",void 0);eL=!0;var aD;Cd=fQP(ON,Cd);var zo=(aD=p.searchEndpoint)==null?void 0:aD.call(p);_.ydf(Up,Cd,zo,fd.value.value,Ve);vE();fd.value.value=Up;fd.value.blur();ON.reset()}}
function H(Up){return _.G(function(Cd){return Cd.return(new Promise(function(Ve){var aD=new XMLHttpRequest;aD.open("GET",_.J6M(Up),!0);aD.withCredentials=!0;var zo=_.jn("SBOX_SETTINGS");(zo==null?0:zo.SEND_VISITOR_DATA)&&aD.setRequestHeader("X-Goog-Visitor-Id",zo==null?void 0:zo.VISITOR_DATA);aD.onload=function(){Ve(aD.responseText)};
aD.onerror=function(){_.xQ(Error("Ll"));Ve(null)};
setTimeout(function(){aD.abort()},1E4);
aD.send(null)}))})}
function M(Up){var Cd,Ve,aD,zo;return _.G(function(j6){switch(j6.nextAddress){case 1:return Cd={credentials:"include",headers:_.pxj()},window.AbortController&&(Ve=new AbortController,setTimeout(function(){Ve.abort("ytsbox-suggest-timeout")},1E4),Cd.signal=Ve.signal),_.oI(j6,2),j6.yield(fetch(_.J6M(Up),Cd),4);
case 4:aD=j6.yieldResult.text();_.X$(j6,3);break;case 2:return zo=_.BZ(j6),zo!=="ytsbox-abort-last"&&zo!=="ytsbox-suggest-timeout"&&_.xQ(zo),j6.return(null);case 3:return j6.return(aD)}})}
function X(Up){var Cd,Ve,aD;return _.G(function(zo){switch(zo.nextAddress){case 1:if(Cd=_.vO().resolve(_.F9(ELP)))return zo.return(Cd);Ve=Date.now();J();return _.z("yt_searchbox_xhr")?zo.yield(H(Up),5):zo.yield(M(Up),4);case 4:aD=zo.yieldResult;zo.jumpTo(3);break;case 5:aD=zo.yieldResult;case 3:if(aD){YU&&(clearTimeout(YU),YU=null);var j6=ON,wr=Ve,Eq=Up.query.length===0;wr=Date.now()-wr;Eq?j6.zeroPrefixRoundTripTime=wr:(j6.JSC$21176_totalRoundTripTime+=wr,j6.maxRoundTripTime=Math.max(j6.maxRoundTripTime,
wr),Eq=Math.floor(wr/100),Eq>=Or$.length?++j6.roundTripTimeHistogram[9]:++j6.roundTripTimeHistogram[Or$[Eq]])}return zo.return(aD)}})}
function Z(Up){var Cd,Ve,aD;return _.G(function(zo){if(zo.nextAddress==1)return(Cd=Wp.cache.get(_.Lf$(Up)))?zo.return(Cd):zo.yield(X(Up),2);Ve=zo.yieldResult;if(Ve===null)return zo.return(null);aD=new _.nLr(Ve);Up.query.length===0&&aD.suggestions.length===0||Wp.cache.set(_.Lf$(Up),aD);return zo.return(aD)})}
function n(Up){var Cd,Ve;return _.G(function(aD){if(aD.nextAddress==1){Ld=!1;var zo=QV;zo=_.Ym()==="search"?(_.xc(location.href,"search_query")||_.xc(location.href,"q"))===zo:!1;Cd=new _.I7y(Up,zo?QV:null);return aD.yield(Z(Cd),2)}Ve=aD.yieldResult;if(Ve===null)return aD.return();Cd.query.length===0&&(ON.zeroPrefixSuggestionCount=Ve.suggestions.length);if(Cd.id<=Fn)return ON.outOfSyncResponseCount++,aD.return();if(document.activeElement!==fd.value)return aD.return();Fn=Cd.id;var j6=ON,wr=Ve.rawResponse[2]||
{};j6.experimentTriggeredBeforeFinal||(j6.experimentTriggeredBeforeFinal=j6.experimentTriggeredFinal);j6.experimentTriggeredFinal=!!wr.e;ON.updateSuggestions(Ve.suggestions);t(-1);Ys([]);Ve.suggestions!==P()&&vW(Ve.suggestions.length);W(Ve.suggestions);Z3(Ve.suggestions.length>0&&Ve.suggestions[0].type===33);t8&&(t8.hidden=Ve.suggestions.length===0,I()?(t8.style.minWidth="",j6=t8.style,wr=(zo=P()[0])==null?void 0:zo.ignoredPrefix,j6.marginLeft=(wr?Math.min(wr.length*6,Qv.value.offsetWidth):0).toString()+
"px"):(t8.style.minWidth=Qv.value.offsetWidth+"px",t8.style.marginLeft="0"),pA());_.UK(aD)})}
function b(){if(!eL)return!1;var Up=_.jn("REFINEMENTS_TUPLE");return Up?(Up=Up[1].map(function(Cd,Ve){return new RFU([Cd,0,[71]],fd.value.value,Ve)}),P()!==Up&&vW(Up.length),Ys([]),W(Up),ON.updateSuggestions(Up),eL=!1,t8.hidden=Up.length===0,Ld=Up.length>0,!0):!1}
function F(){var Up=fd.value.value;(typeof Up==="string"||Up instanceof String)&&Up!==""?a(!0):a(!1)}
function f(){if(_.Ym()==="search"){var Up=window.location.href;try{var Cd=_.xc(Up,"search_query")||_.xc(Up,"q")||""}catch(Ve){Cd=""}Cd&&(fd.value.value=Cd,a(!0))}}
var O=_.K(_.eQ([],void 0,"OC8EPc")),A=O.next().value;O=O.next().value;var P=A,W=O;A=_.K(_.eQ(-1,void 0,"t2tVQb"));var y=A.next().value,t=A.next().value;A=_.K(_.eQ(-1,void 0,"v0RZCe"));var D=A.next().value,k=A.next().value;A=_.K(_.eQ(!1,void 0,"rjAnI"));var E=A.next().value,a=A.next().value;A=_.K(_.eQ(!1,void 0,"SyGLvb"));var q=A.next().value,w=A.next().value;O=_.K(_.eQ(!1,void 0,"tL09Cb"));A=O.next().value;O=O.next().value;var I=A,Z3=O;O=_.K(_.eQ(!1,void 0,"FlH7mc"));A=O.next().value;var vg=O.next().value;
O=_.K(_.eQ(!1,void 0,"ea3fwe"));var yX=O.next().value,Pg=O.next().value;O=_.K(_.eQ(1,void 0,"vSK1xe"));var ov=O.next().value,NW=O.next().value;O=_.K(_.eQ([],void 0,"ijlw4b"));var TW=O.next().value,Ys=O.next().value;O=_.K(_.eQ(!1,void 0,"HcRey"));var Go=O.next().value,$U=O.next().value;O=_.z("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var LL=_.nE("yt-searchbox"),fd=_.nE("input"),Qv=_.nE("div"),t8,Wp=
new _.lQP,ON=mMr(),KL=_.vO().resolve(_.F9(_.uC)),HE=function(){var Up;return((Up=p.forceDarkMode)==null?void 0:Up.call(p))||!(KL==null||!KL())},o8=function(){return _.z("desktop_enable_scrollable_suggestions_panel")},xU="i"+tvr++,eL=!1,Ld=!1,QV="",YU=null,Fn=-1,vE=function(){Ys([]);
W([]);Z3(!1);t8&&(t8.hidden=!0);YU&&(clearTimeout(YU),YU=null);t(-1)},XP=function(Up,Cd){Up.preventDefault();
$U(!0);t8&&(t8.hidden=!1);var Ve=y();Up=P();var aD=TW();Cd=B7f(Cd);Ve+=Cd;for(Ve>=Up.length?Ve=-1:Ve<-1&&(Ve=Up.length-1);Ve!==-1&&(aD.includes(Ve)||Ve>=Up.length||Ve<0);)Ve+=Cd,Ve>=Up.length&&(Ve=-1);t(Ve);y()>=0&&(fd.value.value=P()[y()].text,k(0),F(),Up=y(),aD=D(),(aD=document.getElementById(hT[Up][aD]))&&o8()&&(Up===P().length-1?t8.scrollTop=t8.scrollHeight:aD.scrollIntoView({block:"nearest",inline:"start"})))},wk=_.Kb(function(Up){if(!(Up.relatedTarget instanceof Element&&Up.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){w(!0);
var Cd;(Cd=p.focusCallback)==null||Cd.call(p,!0);b()||(Ld?t8.hidden=!1:(_.cf(LL.value,"yt-autonav-pause-focus",{}),n(Up.target.value)))}}),SI=_.Kb(function(Up){if(!(Up.relatedTarget instanceof Element&&Up.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){w(!1);
var Cd;(Cd=p.focusCallback)==null||Cd.call(p,!1);t8.scrollTop=0;t8.hidden=!0;_.cf(LL.value,"yt-autonav-pause-blur",{})}}),vG=function(Up){Up=B7f(Up);
var Cd;((Cd=hT[y()])==null?0:Cd[D()+Up])&&k(D()+Up)},Sa=_.Kb(function(Up){var Cd=Up.target;
switch(Up.keyCode){case 13:Up.preventDefault();var Ve;if((Ve=hT[y()])==null?0:Ve[D()]){var aD;(aD=document.getElementById(hT[y()][D()]))==null||aD.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Up=Up.shiftKey?4:3;Ve=ON;aD=y();Ve.selectedSuggestionIndex=aD;S(Cd.value,Up);break;case 27:t8&&(t8.hidden=!0);break;case 40:XP(Up,40);break;case 38:XP(Up,38);break;case 39:vG(39);break;case 37:vG(37);break;case 229:ON.inputMethodsTracker.add(4);break;default:ON.inputMethodsTracker.add(1),
Fje(ON)}return!1}),Ar=_.Kb(function(Up){n(Up.target.value);
F();o8()&&t8&&(t8.scrollTop=0);return!1}),EN=_.Kb(function(){ON.inputMethodsTracker.add(2);
Fje(ON);return!1});
_.qz(function(){if(t8){ON.reset();if(window.ResizeObserver){var Up=new ResizeObserver(function(){I()||(t8.style.minWidth=Qv.value.offsetWidth+"px")});
Up.observe(Qv.value);(new ResizeObserver(function(){pA()})).observe(t8);
_.VY(function(){Up.disconnect()})}f();
window.addEventListener("yt-navigate-finish",f);window.addEventListener("yt-focus-searchbox",function(){fd.value.focus()});
var Cd;vg((Cd=_.jn("SBOX_SETTINGS"))==null?void 0:Cd.HAS_ON_SCREEN_KEYBOARD)}else _.jD(new _.TG("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var nC=_.Kb(function(Up){Up.preventDefault();S(fd.value.value,12);return!1}),Ps=_.Kb(function(Up){Up.preventDefault();
var Cd,Ve;(Cd=fd)==null||(Ve=Cd.value)==null||Ve.focus();var aD,zo;((aD=fd)==null?void 0:(zo=aD.value)==null?void 0:zo.value)!==""&&(fd.value.value="",fd.value.dispatchEvent(new Event("input")));return!1}),Vv=_.Kb(function(){var Up=ZGp(fd.value.value,P().filter(function(Cd){return Cd.type!==35}).map(function(Cd){return{label:Cd.text}}));
_.IV(LL.value,"yt-open-popup-action",[{openPopupAction:Up},document.body]);return!1}),CP=_.Kb(function(){fd.value.focus();
return!1}),Mj=function(Up,Cd,Ve,aD,zo){ON.selectedSuggestionIndex=Ve;
S(Cd,zo?3:1,aD)},r2=function(Up){fd.value.value=Up;
fd.value.dispatchEvent(new Event("input"));ON.inputMethodsTracker.add(5);Fje(ON,!0)},hT=[[]],EV=function(Up){var Cd="searchbox-suggestion"+_.q7(_.nW);
hT[Up].push(Cd);return Cd},vW=function(Up){if(P()){hT=[[]];
for(var Cd=0;Cd<Up;Cd++)hT.push([])}},pA=function(){if(o8()){var Up=t8,Cd=Up.scrollTop;
Up=Up.scrollHeight-Up.clientHeight;Pg(Cd>=Up);Cd=Math.abs(Up-Cd);Cd<=40?NW(1-(40-Cd)/40):NW(1)}},$_=function(){return"opacity: "+ov()*100+"%"},Bg=_.Kb(function(){pA();
return!1}),lw=_.Kb(function(){$U(!1);
return!1}),rk,PE={},ow={},kp={},sN={};
return _.m("yt-searchbox",{class:_.XB("ytSearchboxComponentHost",(PE.ytSearchboxComponentMweb=!1,PE.ytSearchboxComponentDesktop=!0,PE["yt-searchbox-filled-query"]=function(){return E()},PE["ytd-masthead"]=function(){return!q()},PE.ytSearchboxComponentHostDark=HE,PE)),
role:"search",el:LL,"client-ve-type":10349},_.m("div",{el:Qv,"on:click":CP,class:_.XB("ytSearchboxComponentInputBox",(ow.ytSearchboxComponentInputBoxDark=HE,ow.ytSearchboxComponentInputBoxHasFocus=q,ow))},_.m("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":nC},_.m(_.v,{cond:q,then:function(){return _.m("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.m(_.bn,{icon:"SEARCH"}))}}),_.m("input",{el:fd,
class:_.XB("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":xU,"aria-expanded":!((rk=t8)==null?0:rk.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":SI,"on:focus":wk,"on:input":Ar,"on:keydown":Sa,"on:paste":EN,placeholder:p.placeholderText,"aria-activedescendant":function(){var Up;return(Up=hT[y()])==null?void 0:Up[D()]},
"aria-autocomplete":"list",role:"combobox"})),_.m(_.v,{cond:A,then:function(){return _.m("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.m(uAP,null))}}),_.m(_.v,{cond:E,
then:function(){return _.m("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.m("button",{class:"ytSearchboxComponentClearButton","on:click":Ps,"aria-label":p.clearButtonAriaLabel||aQI},_.m(_.bn,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.m(_.B3,{model:{}})))}})),_.m("button",{class:_.XB("ytSearchboxComponentSearchButton",(kp.ytSearchboxComponentSearchButtonDark=HE,kp)),
"on:click":nC,"aria-label":qRM,title:p.placeholderText},_.m(_.bn,{icon:"SEARCH"})),_.m(_.v,{cond:function(){if(xUe()&&_.z("mweb_voice_search")&&p.voiceSearchButton)return p.voiceSearchButton()},
then:function(Up){var Cd={};return _.m("div",{class:_.XB("ytSearchboxComponentVoiceSearchWrapper",(Cd.ytSearchboxComponentHideVoiceSearchButton=function(){return E()},Cd))},_.m(_.AH,{data:Up},{buttonRenderer:function(Ve){return _.m(_.W2,{data:Ve.data,
onButtonClickCallback:function(){}})}}))}}),_.m("div",{el:_.Y2(function(Up){return void(t8=Up)}),
id:xU,class:_.XB("ytSearchboxComponentSuggestionsContainer",(sN.ytSearchboxComponentSuggestionsContainerDark=HE,sN["yt-searchbox-suggestions-container"]=!1,sN.ytSearchboxComponentSuggestionsContainerScrollable=o8(),sN.ytSearchboxComponentSuggestionsContainerAnimated=O,sN)),"on:scroll":Bg,"on:mousemove":lw,role:"listbox",hidden:!0},_.m(_.dY,{each:P},function(Up,Cd){return _.m(TAl,{suggestion:Up,isHighlighted:function(){return Cd()===y()},
onClickCallback:Mj,onHoverUpdateCallback:function(Ve){if(_.z("desktop_enable_single_suggestion_highlight")){var aD=Cd();Ve&&(k(0),t(aD))}},
onRemoveCallback:function(Ve){VvP(Wp);Ve===void 0||Ve<0||TW().includes(Ve)||Ys([].concat(_.dW(TW()),[Ve]))},
labels:p.labels,queryBuilderFunction:r2,suggestionIndex:Cd,generateUniqueId:EV,highlightedId:function(){var Ve;return(Ve=hT[y()])==null?void 0:Ve[D()]},
useScrollMargin:o8(),isKeyboardMode:Go})}),_.m(_.v,{cond:function(){return!I()&&P().find(function(Up){return Up.type!==35})&&_.z("searchbox_reporting")},
then:function(){return _.m("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Vv},_.Kl("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.m(_.v,{cond:function(){return!yX()&&o8()},
then:function(){return _.m("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.m("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:$_}))}})))},"Dj");
YRN.idomCompat={callbacks:{focusCallback:!0}};_.ci(YRN,"yt-searchbox",{props:{searchEndpoint:_.fD,placeholderText:_.fD,labels:_.fD,voiceSearchButton:_.fD,focusCallback:_.jr,clearButtonAriaLabel:_.fD,forceDarkMode:_.fD}});var rK=function(){var p=_.T.apply(this,arguments)||this;p.menuButtonTargetId="topbar-guide-menu";p.narrow=!1;p.menuStrings={BACK_ALT_LABEL:_.Kl("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Kl("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Kl("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Kl("SBOX_PLACEHOLDER",void 0,"Search")};p.pageDarkTheme=document.documentElement.hasAttribute("dark");p.watchPageScrollTop=0;p.theater=!1;p.fullscreen=!1;p.disableFrostedGlassDuringViewTransition=
!1;p.desktopUnifiedSearchPanelMode=_.z("desktop_enable_unified_search_panel");p.aiCompanionEnabled=_.z("enable_ai_companion");p.ytSearchboxFocused=!1;p.searchboxLabels=_.jn("SBOX_LABELS");p.topbarIsAboveChipbar=!1;p.isDarkThemeForced=!1;p.areGhostCardsHidden=!1;p.guideKeyboardToggle=!1;p.voiceSearchManager=w8w();p.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};p.setYtSearchboxFocused=function(J){p.ytSearchboxFocused=J};
p.toggleFrostedGlassDuringViewTransition=function(J){p.disableFrostedGlassDuringViewTransition=J};
return p};
_.Q(rK,_.T);_.R=rK.prototype;_.R.computeSimpleText=function(p){return _.E4(p)};
_.R.onDarkChanged=function(){for(var p=_.K(this.buttons||[]),J=p.next();!J.done;J=p.next())J.value.isOverlay=!!this.dark;p=_.K(this.buttonRenderers||[]);for(J=p.next();!J.done;J=p.next())J.value.overrides=this.computeButtonOverride()};
_.R.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.R.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.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var p=_.OT(_.fq(),"aa");_.XM(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"))&&(_.z("polymer_on_demand_shady_dom")?p.setAttribute("slot","masthead-logo-old"):_.CC(p)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.n3(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.n3(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.R.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.n3(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.n3(this,this.onSetTheaterModeEnabled))};
_.R.dataChanged=function(){var p=this.data;p&&(this.voiceEnabled=p.voiceSearchButton?w8w().isSupported():!1,_.qZ(_.aQ(),this.menuButtonTargetId,this.guideButton),p.onReceivedActions&&p.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.JP(this.hostElement,p.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&p&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.XM(this.hostElement,"dark",!1),_.XM(this.hostElement,"theater",!1),(p=
this.hostElement.querySelector("#masthead-logo"))&&(_.z("polymer_on_demand_shady_dom")?p.setAttribute("slot","masthead-logo-old"):_.CC(p))))};
_.R.computeCenterHidden=function(){var p;return this.data&&!((p=this.data.searchbox)==null?0:p.fusionSearchboxRenderer)};
_.R.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.XM(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.R.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.R.onWatchScroll=function(p){this.watchPageScrollTop=p.detail||0;this.updateMastheadBackgroundOpacity()};
_.R.onFullscreenChangeAction=function(p){p||(this.watchPageScrollTop=0);this.fullscreen=p;this.updateMastheadBackgroundOpacity()};
_.R.onSetTheaterModeEnabled=function(p){this.theater=p.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.R.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.R.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.R.setBackgroundOpacity=function(p){p=this.calculateBackgroundOpacity(p);this.background.style.opacity=""+p};
_.R.calculateBackgroundOpacity=function(p){var J=this.theater?.6:0,S=this.hostElement.clientHeight/2;return Math.min(Math.max(p,0),S)/S*(1-J)+J};
_.R.shouldShowCinematicMastHead=function(){var p=_.z("kevlar_watch_grid")&&!_.z("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(p||this.pageDarkTheme)};
_.R.focusGuide=function(){this.guideButton.focus()};
_.R.onGuideToggleTap=function(){_.cf(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.R.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.R.onGuideToggleHover=function(){_.cf(this.hostElement,"yt-guide-hover")};
_.R.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.R.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.R.closeOnOutsideClickCondition=function(p){for(p=_.Er(p);p[0];){var J=p.shift();if(J instanceof Element&&J.id==="kbd")return!1}return!0};
_.R.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.R.pausePlayer=function(){var p;(p=_.IY())==null||p.pause();this.pauseMiniplayer()};
_.R.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var p;(p=_.vO().resolve(_.DF).getPlayerElement())==null||p.pause()}};
_.R.isMiniplayerActive=function(){return _.vO().resolve(_.DF).isMiniplayerActive()};
_.R.updateNarrowFromBinding=function(p){this.narrow=p.detail.value};
_.R.onYtSendFeedbackAction=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.R.registerWithViewTransitionManager=function(){ikp(_.vO().resolve(_.cD),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.vh.Object.defineProperties(rK.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.z("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var p;return!!(this.aiCompanionEnabled&&((p=this.data)==null?0:p.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var p;return(p=this.data)==null?void 0:p.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
rK.prototype.narrowChanged=rK.prototype.narrowChanged;rK.prototype.onWatchPageChange=rK.prototype.onWatchPageChange;rK.prototype.onRendererStamperFinished=rK.prototype.onRendererStamperFinished;rK.prototype.dataChanged=rK.prototype.dataChanged;rK.prototype.onDarkChanged=rK.prototype.onDarkChanged;_.V([_.B(_.wL),_.Y("design:type",Object)],rK.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.i3p),_.Y("design:type",Object)],rK.prototype,"ytdExpandableInputBehavior",void 0);
_.V([_.B(_.mG.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],rK.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],rK.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],rK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.RB),_.Y("design:type",Object)],rK.prototype,"ytdReduxBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],rK.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],rK.prototype,"narrow",void 0);_.V([_.N(),_.Y("design:type",Object)],rK.prototype,"logoType",void 0);_.V([_.N(),_.Y("design:type",Boolean)],rK.prototype,"voiceEnabled",void 0);
_.V([_.N(),_.Y("design:type",Object)],rK.prototype,"menuStrings",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rK.prototype,"dark",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rK.prototype,"pageDarkTheme",void 0);_.V([_.N(),_.Y("design:type",Object)],rK.prototype,"watchPageScrollTop",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.UaX}),_.Y("design:type",Boolean)],rK.prototype,"isWatchPage",void 0);
_.V([_.N({reflectToAttribute:!0,selector:_.sO4}),_.Y("design:type",Boolean)],rK.prototype,"isShortsPage",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rK.prototype,"theater",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rK.prototype,"fullscreen",void 0);_.V([_.N({reflectToAttribute:!0,selector:_.Dak}),_.Y("design:type",String)],rK.prototype,"frostedGlassMode",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rK.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],rK.prototype,"aiCompanionEnabled",void 0);_.V([_.N(),_.Y("design:type",Object)],rK.prototype,"ytSearchboxFocused",void 0);_.V([_.v6("#buttons > *"),_.Y("design:type",Array)],rK.prototype,"buttons",void 0);_.V([_.v6("ytd-button-renderer"),_.Y("design:type",Array)],rK.prototype,"buttonRenderers",void 0);
_.V([_.FM("#background"),_.Y("design:type",HTMLDivElement)],rK.prototype,"background",void 0);_.V([_.FM("#guide-button"),_.Y("design:type",Object)],rK.prototype,"guideButton",void 0);_.V([_.FM("#logo"),_.Y("design:type",Object)],rK.prototype,"logo",void 0);_.V([_.N({computed:"computeButtonOverride(dark)"}),_.Y("design:type",Object)],rK.prototype,"buttonOverrides",void 0);
_.V([_.An("dark"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rK.prototype,"onDarkChanged",null);_.V([_.N({value:function(){return this.onVoiceTap.bind(this)}}),
_.Y("design:type",Function)],rK.prototype,"boundOnTapVoiceButton",void 0);_.V([_.N(),_.Y("design:type",Object)],rK.prototype,"topbarIsAboveChipbar",void 0);_.V([_.N(),_.Y("design:type",String),_.Y("design:paramtypes",[])],rK.prototype,"guideIcon",null);_.V([_.U("voiceEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rK.prototype,"shouldShowVoiceSearchButton",null);
_.V([_.U("data.aiCompanionButton","aiCompanionEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rK.prototype,"shouldShowAiCompanionButton",null);_.V([_.U("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rK.prototype,"voiceSearchButton",null);_.V([_.U("aiCompanionEnabled"),_.Y("design:type",String),_.Y("design:paramtypes",[])],rK.prototype,"narrowQuery",null);
_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rK.prototype,"dataChanged",null);_.V([_.GI("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rK.prototype,"onRendererStamperFinished",null);_.V([_.An("isWatchPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rK.prototype,"onWatchPageChange",null);
_.V([_.An("narrow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rK.prototype,"narrowChanged",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-masthead"})],rK);
_.l(rK,"ytd-masthead",function(){if(BAI!==void 0)return BAI;var p=document.createElement("template");_.C(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="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" 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(_.r().content.cloneNode(!0),
p.content.firstChild);return BAI=p},{mode:_.Jz("kevlar_poly_si_batch_j036")?1:2});var r6N;var jgP={},wxp={},xMI={},c6p={},IQl=(c6p.OFFLINE=(jgP["publicytnetworkstatus-online"]="BACK_ONLINE",jgP),c6p.ONLINE=(wxp["publicytnetworkstatus-offline"]="OFFLINE",wxp),c6p.BACK_ONLINE=(xMI["publicytnetworkstatus-offline"]="OFFLINE",xMI.TIMER_TRIGGER="ONLINE",xMI),c6p),ji=function(){var p=_.T.apply(this,arguments)||this;p.currentState="ONLINE";p.scheduledJobId=0;p.bannerString="";p.bannerVe=null;p.networkStatusManagerInstance=new _.RJ;return p};
_.Q(ji,_.T);_.R=ji.prototype;_.R.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")})};
_.R.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")})};
_.R.enterState=function(p){var J=this;this.scheduledJobId&&_.wg.cancelJob(this.scheduledJobId);p==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):p==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Kl("NO_INTERNET_CONNECTION",void 0,"No internet connection")):p==="BACK_ONLINE"&&(this.bannerString=_.Kl("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.uS(_.wg,function(){J.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=p};
_.R.stateChangeHandler=function(p){(p=IQl[this.currentState][p])&&this.enterState(p)};
_.R.logVisibility=function(p){var J=_.C1();this.createBannerVe(p);J&&this.bannerVe&&(p?_.dI(J,[this.bannerVe]):_.u7(J,[this.bannerVe]))};
_.R.createBannerVe=function(p){!this.bannerVe&&p&&(this.bannerVe=_.KG(37929),_.uq(_.bC(),this.bannerVe))};
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",String)],ji.prototype,"currentState",void 0);_.V([_.N(),_.Y("design:type",Object)],ji.prototype,"scheduledJobId",void 0);_.V([_.N(),_.Y("design:type",Object)],ji.prototype,"bannerString",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-network-status-banner"})],ji);
_.l(ji,"ytd-network-status-banner",function(){if(r6N!==void 0)return r6N;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return r6N=
p},{mode:1});var LjI;var wK=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};p.hidden=!0;p.frostedGlass=_.z("web_frosted_glass");return p};
_.Q(wK,_.T);wK.prototype.computeHidden=function(p){return p&&p.status?!1:!0};
wK.prototype.handleUpdatePermissionRoleCommand=function(p){if(p=_.e(p,_.Vp8))if(p=_.e(p.renderer,_.l0n))this.data=p};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],wK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],wK.prototype,"componentBehavior",void 0);_.V([_.N({value:!0,computed:"computeHidden(data)"}),_.Y("design:type",Object)],wK.prototype,"hidden",void 0);_.V([_.N(),_.Y("design:type",Object)],wK.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wK.prototype,"frostedGlass",void 0);
_.V([_.gw({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],wK);
_.l(wK,"ytd-permission-role-bottom-bar-renderer",function(){if(LjI!==void 0)return LjI;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);return LjI=p},{mode:1});var pcM;var Jjy;var URp={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var xG=function(){return _.T.apply(this,arguments)||this};
_.Q(xG,_.T);_.R=xG.prototype;_.R.attached=function(){this.JSC$21294_scroller&&(this.JSC$21294_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21294_scroller.attached&&typeof this.JSC$21294_scroller.attached==="function"&&this.JSC$21294_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(S){S.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var p=_.Jn(this.hostElement);p.querySelector("tp-yt-paper-radio-group").selected="";var J=p.querySelector("#reason-text");J&&(J.value="");p.querySelector("#description-text").value=""}};
_.R.canSubmit=function(p,J){_.cf(this.hostElement,"yt-invalidate-popup-tabbables");return!(p&&J)};
_.R.onCancel=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.R.onSubmit=function(){var p=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(X){return X.active}).map(function(X){return X.innerText.trim()}),J=this.hostElement.querySelector("tp-yt-paper-radio-group"),S=J.selectedItem,H=S.name;
S=S.innerText.trim();var M=J.querySelector("#reason-text");J=void 0;M&&(J=M.value);(M=this.descriptionText.value)&&(M=M.trim());s1M(this.data.searchQuery,p,H,S,M,J);_.IV(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.R.sendFormSubmitToast=function(){var p=_.xZ(_.Kl("SBOX_INAPPROPRIATE_TOAST"));_.IV(this.hostElement,"yt-open-popup-action",[p,this])};
_.R.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(p){return p.active})};
_.R.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
xG.prototype.onIronSelect=xG.prototype.onIronSelect;xG.prototype.onIronChange=xG.prototype.onIronChange;xG.prototype.dataChanged=xG.prototype.dataChanged;_.V([_.N(),_.Y("design:type",Object)],xG.prototype,"data",void 0);_.V([_.N({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.Y("design:type",Boolean)],xG.prototype,"submitDisabled",void 0);_.V([_.N(),_.Y("design:type",Boolean)],xG.prototype,"suggestionSelected",void 0);
_.V([_.N(),_.Y("design:type",Boolean)],xG.prototype,"catagorySelected",void 0);_.V([_.FM("#scroller"),_.Y("design:type",Object)],xG.prototype,"JSC$21294_scroller",void 0);_.V([_.FM("#description-text"),_.Y("design:type",Object)],xG.prototype,"descriptionText",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xG.prototype,"dataChanged",null);
_.V([_.GI("iron-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xG.prototype,"onIronChange",null);_.V([_.GI("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xG.prototype,"onIronSelect",null);_.V([_.gw({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],xG);
_.l(xG,"ytd-search-suggestion-report-dialog",function(){if(Jjy!==void 0)return Jjy;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return Jjy=p},{mode:1});var c4=function(p){var J=p.openPopupAction;var S=p.target;var H=p.container;var M=p.popupContainerConfig;var X=p.getElement;p=p.removeWhenClosed===void 0?!1:p.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=J;this.target=S;this.container=H;this.popupContainerConfig=M;this.getElement=X;this.JSC$21300_popupConfig=this.popupContainerConfig.JSC$20424_popupConfig[this.openPopupAction.popupType];this.rendererName=(J=this.getName())?_.X$s(J,Cde(this.popupContainerConfig,
J)):"";_.z("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=p);this.createPopup()};
c4.prototype.updatePopup=function(p){this.openPopupAction=p;this.JSC$21300_popupConfig=this.popupContainerConfig.JSC$20424_popupConfig[this.openPopupAction.popupType];Sxj(this);_.z("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
c4.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var XcU=function(p,J,S){(J=J&&p.JSC$21300_popupConfig.narrowProperties?p.JSC$21300_popupConfig.narrowProperties:p.JSC$21300_popupConfig.properties)&&S!==void 0&&(J.isAriaModal=S);HZP(p,J);p.isRtl()&&HZP(p,p.JSC$21300_popupConfig.rtlProperties);M1f(p)};
c4.prototype.createPopup=function(){var p=this.JSC$21300_popupConfig.component;if(this.popupContent=iZ$(this,this.rendererName)){if(p){this.popup=iZ$(this,p);var J=this.popupContent;_.z("web_enable_wrapper_for_cow_component_in_popup")&&(J=document.createElement("div"),J.appendChild(this.popupContent));_.z("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21300_popupConfig.slotName&&J.setAttribute("slot",this.JSC$21300_popupConfig.slotName);p=this.popup;var S=this.container.tagName.toLowerCase();
_.jU["counterfactuals.desktop_web_boolean_flag_with_counterfactual_study"]=String(_.z("desktop_web_boolean_flag_with_counterfactual_study"));var H=_.jS(J);_.LQs(_.xt(p),_.Is(J,S,H));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.z("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Jn(this.container).appendChild(this.popup)}};
var Sxj=function(p){var J,S,H=(J=p.openPopupAction.accessibilityData)==null?void 0:(S=J.accessibilityData)==null?void 0:S.label;H&&(p.popup.ariaLabel=H);var M;((M=p.popupContent.polymerController)!=null?M:p.popupContent).data=(0,_.T6.unsafeClone)(p.openPopupAction.popup[p.getName()]);p.popupContent.duration=ROl(p);p.popupContent.positionType=p.openPopupAction.position;var X=p.openPopupAction.properties;X&&Object.keys(X).forEach(function(Z){p.popupContent[Z]=X[Z]})},HZP=function(p,J){if(J)for(var S=
_.K(Object.keys(J)),H=S.next();!H.done;H=S.next())H=H.value,p.popup[H]=J[H]},M1f=function(p){if(p.openPopupAction.position){var J=p.JSC$21300_popupConfig.positionalProperties&&p.JSC$21300_popupConfig.positionalProperties[p.openPopupAction.position],S=p.JSC$21300_popupConfig.rtlPositionalProperties&&p.JSC$21300_popupConfig.rtlPositionalProperties[p.openPopupAction.position];
J=p.isRtl()&&S?S:J;J.shiftedHorizontalOffset&&(S=p.popup.style.display,p.popup.style.display="block",p.popupContent&&p.popup.positionTarget&&p.popupContent.clientWidth>p.popup.positionTarget.clientWidth&&(J.horizontalOffset=p.popup.positionTarget.clientWidth/2-J.shiftedHorizontalOffset),p.popup.style.display=S);HZP(p,J)}},Khy=function(p,J,S){if(J){for(var H=_.K(Object.keys(J)),M=H.next();!M.done;M=H.next())M=M.value,p.popup.style[M]=J[M];
if(S)for(J=_.K(Object.keys(S)),H=J.next();!H.done;H=J.next())H=H.value,p.popup.style[H]=S[H]}};
c4.prototype.getName=function(){return _.Eg(this.openPopupAction.popup,"renderer")||_.Eg(this.openPopupAction.popup,"dialog")||_.Eg(this.openPopupAction.popup,"model")||void 0};
var ROl=function(p){p=p.openPopupAction.durationHintMs;return p===0?p:Math.max(4E3,p||4E3)};
c4.prototype.isRtl=function(){return _.jn("HTML_DIR")==="rtl"};
var iZ$=function(p,J){p=p.getElement(J,p.target);p==null&&_.xQ(new _.TG("popup getElement returned null",J));return p};var ZZM={};
ZZM.YtPopupContainerBehavior=[_.KD.YtComponentBehavior,_.u1.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.wG(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.xV(this.hostElement)},
closePopup:function(p){var J=this.createCacheKey(void 0,p);this.popups_[J]&&this.handleClosePopupAction_(void 0,p)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.wg.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.wg.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 J=this.popups_[p];if(J.popup.scrollAction==="refit"){var S=J.popup.positionTarget.getBoundingClientRect(),H=J.popup;S=S.top;var M=J;if(!M.naturalHeight){M.popup.hidden=!1;M.popup.style.position="fixed";M.popup.style.top="0px";M.popup.style.left="0px";var X=M.popup.getBoundingClientRect();M.naturalHeight=X.bottom-X.top;M.popup.refit()}H.hidden=!(S>=M.naturalHeight+60);J.popupContent.clientHeight===0&&J.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(p){this.popupContainerConfig=p},
handleOpenPopupAction:function(p,J){var S=p.openPopupAction,H=_.vO().resolve(_.F9(_.CZ))&&S.popupType==="TOAST";H&&!S.uniqueId&&(S.uniqueId=_.cn());if(!_.z("popup_container_parent_target_killswitch")){var M;J=(M=this.getParentTarget(J))!=null?M:J}var X=this.ensurePopup_(S,J);return new _.UI(function(Z){X.then(function(n){if(!n)return Z();this.maybeCreateNarrowMediaQuery_();var b=this.createCacheKey(n.rendererName,n.openPopupAction.uniqueId);if(S.showOncePerUniqueId){if(this.shownPopupKeys_.has(b))return Z();
this.shownPopupKeys_.add(b)}b=this.popups_[b];var F=!(!b||!b.openPopupAction.beReused);F=!!S.reusePopup||F;if(n.popup.opened&&!F){H&&!n.openPopupAction.replacePopup||this.handleClosePopupAction_(n.rendererName,n.openPopupAction.uniqueId);F=S.popupType==="DIALOG"&&!_.z("popup_container_dialog_reopen_killswitch");if(!H&&!F&&b&&b.target==J&&!n.openPopupAction.replacePopup)return Z();_.mN(n.popup,function(){this.completeOpenPopupAction_(S,J,n);Z()}.bind(this))}else n.popup.opened?n.updatePopup(S):this.completeOpenPopupAction_(S,
J,n),Z()}.bind(this))}.bind(this))},
getParentTarget:function(p){if(p&&p instanceof HTMLElement)for(var J=_.K(Object.entries(this.popups_)),S=J.next();!S.done;S=J.next())if(S=_.K(S.value),S.next(),S=S.next().value,this.popupClosesOnClick(S)&&S.popup.contains(p))return S.target},
popupClosesOnClick:function(p){return p.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(p.rendererName.toUpperCase())},
completeOpenPopupAction_:function(p,J,S){S.updatePopup(p);var H=this.narrowMediaQuery_.queryMatches,M=this.isAriaModal;p=this.expandToFullWidth;S.target=J;var X;J=((X=S.target.polymerController)!=null?X:S.target).popupPositionTarget||S.target;S.JSC$21300_popupConfig.targetContainer&&(J=S.container);S.popup.positionTarget=J;S.popupContent.positionTarget=J;M1f(S);S.JSC$21300_popupConfig.forceFocus&&(S.popupContent.style.outline="none");S.popupContent.tabIndex=-1;S.JSC$21300_popupConfig.narrowProperties&&
(S.popup.style.position="static");S.JSC$21300_popupConfig.preventAutonav&&S.popup.setAttribute("prevent-autonav",!0);S.JSC$21300_popupConfig.forceCloseOnOutsideClick&&S.popup.setAttribute("force-close-on-outside-click",!0);XcU(S,H,M);X={};X.width=p?"100%":"";Khy(S,S.JSC$21300_popupConfig.styles,X);S.isRtl()&&Khy(S,S.JSC$21300_popupConfig.rtlStyles,X);if(!S.openPopupAction.shouldStopParentSignal){var Z;p=(Z=S.target.polymerController)!=null?Z:S.target;(S.popupContent.startForwardingEvents||S.popupContainerConfig.forwardingEnabledPopups.has(S.rendererName))&&
p.parentComponent!==S.popupContent&&S.popupContent!==S.target&&S.target!==document.body&&(S.popupContent.startForwardingEvents?S.popupContent.startForwardingEvents(S.popupContainerConfig.forwardedEvents,S.target):(S.JSC$21300_eventForwarder||(S.JSC$21300_eventForwarder=new _.ib(S.popupContent)),S.JSC$21300_eventForwarder.start(S.popupContainerConfig.forwardedEvents,S.target)))}S=S.popup;S.addEventListener("iron-overlay-opened",_.n3(this,this.onPopupIronOverlayOpened_));S.addEventListener("iron-overlay-closed",
_.n3(this,this.onPopupIronOverlayClosed_));S.addEventListener("iron-overlay-canceled",_.n3(this,this.onPopupIronOverlayCanceled_));S.addEventListener("yt-refit",_.n3(this,this.refitPopup_));S.addEventListener("yt-invalidate-popup-tabbables",_.n3(this,this.handleInvalidatePopupTabbables_));S.open()},
getPopupDurationMs_:function(p){return p.durationHintMs===0?p.durationHintMs:Math.max(4E3,p.durationHintMs||4E3)},
handleClosePopupAction_:function(p,J){var S=_.z("web_popup_cache_key_killswitch")||!!J;if(p||S){var H=this.createCacheKey(p,J);p=(p=this.popups_[H])&&p.popup}else p=_.YjE(_.ZN);if(p&&p.close){if(J=_.vO().resolve(_.F9(_.CD)))p.restoreFocusOnClose=J.isKeyBoardInUse();p.close();this.removePopup_(p,H)}},
handleClosePopupCommand_:function(p){p.closePopupCommand&&p.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,p.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(p){var J={},S;for(S in this.popups_)if(J={key$jscomp$1233:J.key$jscomp$1233},J.key$jscomp$1233=S,!p||!p.some(function(X){return function(Z){return Z==X.key$jscomp$1233}}(J))){var H=this.popups_[J.key$jscomp$1233],M=H.popup;
_.vO().resolve(_.F9(_.CZ))&&H.openPopupAction.popupType==="TOAST"||(M&&M.close&&M.close(),this.removePopup_(M,J.key$jscomp$1233))}},
handleClosePopupsAction_:function(p){p.forEach(function(J){var S=this.popups_[J];S&&((S=S.popup)&&S.close&&S.close(),this.removePopup_(S,J))}.bind(this))},
handleGetPopupOpenedAction_:function(p,J){return(J=this.createCacheKey(p,J))&&this.popups_[J]?this.popups_[p].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var p=[],J;for(J in this.popups_){var S=this.popups_[J];S.popup.opened&&p.push(S)}return p},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(p,J){_.z("ytpopup_disable_default_html_caching")&&p&&p.removeWhenClosed&&(_.Jn(this.hostElement).removeChild(p),J&&this.popups_[J]&&delete this.popups_[J])},
shouldReusePopup_:function(p){return!(!p||!p.reusePopup)||!(!p||!p.beReused)},
ensurePopup_:function(p,J){this.maybeCreateNarrowMediaQuery_();var S=_.Eg(p.popup,"renderer")||_.Eg(p.popup,"dialog")||_.Eg(p.popup,"model");if(!S)return _.SU();S=_.X$s(S,Cde(this.popupContainerConfig,S));return _.SU(this.getAndMaybeCreatePopup_(p,S,J))},
getAndMaybeCreatePopup_:function(p,J,S){var H=this.createCacheKey(J,p.uniqueId);if(this.popups_[H])return this.popups_[H];p=new c4({openPopupAction:p,target:S,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(J)});return this.popups_[H]=p},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(p){return _.z("ytpopup_disable_default_html_caching")?_.z("ytpopup_disable_cache_allowlist")?p&&this.doNotCacheList_.includes(p):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",_.n3(this,this.openPopupQueryMatchesChanged_)),_.Jn(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(p){p=p.detail.value;for(var J in this.popups_)XcU(this.popups_[J],p)},
onPopupIronOverlayClosed_:function(p){var J=p.currentTarget,S=_.Pzi(J);S=S.length>0?S[0]:J;if(S.is!=="ytd-reel-watch-while-dialog-renderer"||p.target.is!=="tp-yt-iron-dropdown"){p.detail.popup=J;p.detail.popupRenderer=S;var H,M={context:{openingElement:((H=this.popups_[(S==null?void 0:S.is)||""])==null?void 0:H.target)||void 0}};Object.assign(M,p.detail);var X;_.cf((X=S.hostElement)!=null?X:S,"yt-popup-closed",M);J.removeEventListener("yt-refit",_.n3(this,this.refitPopup_));J.removeEventListener("yt-invalidate-popup-tabbables",
_.n3(this,this.handleInvalidatePopupTabbables_));J.removeEventListener("iron-overlay-canceled",_.n3(this,this.onPopupIronOverlayCanceled_));J.removeEventListener("iron-overlay-closed",_.n3(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(J)}},
onPopupIronOverlayCanceled_:function(p,J){var S=p.currentTarget,H=_.Pzi(S);H=H.length>0?H[0]:S;if(H.is!=="ytd-reel-watch-while-dialog-renderer"||p.target.is!=="tp-yt-iron-dropdown"){var M;_.cf((M=H.hostElement)!=null?M:H,"yt-popup-canceled",p.detail);M=J?_.Er(J):null;(!J||["click","tap"].includes(J.type))&&!S.hasAttribute("force-close-on-outside-click")&&S.positionTarget&&M&&M.includes(S.positionTarget)&&p.preventDefault();S.restoreFocusOnClose=_.ua.keyboardEventMatchesKeys(J,"esc")}},
onPopupIronOverlayOpened_:function(p){p=p.currentTarget;var J=_.Pzi(p);J=J.length>0?J[0]:p;var S,H;_.cf((S=J.hostElement)!=null?S:J,"yt-popup-opened",(H=J.hostElement)!=null?H:J);p.keepBelowPlayer&&(this.ensurePopupBelowPlayer(p,!0),this.dynamicallyPositionedElements_.add(p));S=_.vO().resolve(_.F9(_.CD));H=!!J.querySelector("#toast");S&&S.isKeyBoardInUse()&&!H&&(typeof J.focusFirstItem==="function"?J.focusFirstItem():(J=_.qjn(p),J.length&&J[0].focus()));p.removeEventListener("iron-overlay-opened",
_.n3(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,J){return _.z("web_popup_cache_key_killswitch")?J?p+"#"+J:p:J?"#"+J:p},
openSheet:function(p,J){var S=p==null?void 0:p.openPopupActionCommand;if(!S&&(p==null?0:p.viewModel)){if(p.sheetPosition)a:switch(p.sheetPosition){case "SHEET_POSITION_RIGHT":S="OPEN_POPUP_POSITION_RIGHT";break a;default:S="OPEN_POPUP_POSITION_UNKNOWN"}else S=void 0;S={openPopupAction:{popup:{sheetViewModel:p.viewModel},popupType:"CONTEXTUAL_SHEET",position:S}}}if(S){var H;this.expandToFullWidth=(H=p==null?void 0:p.expandToFullWidth)!=null?H:!1;this.handleOpenPopupAction(S,J)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var p=this;return _.G(function(J){return J.return(p.handleGetOpenedPopupsAction_().filter(function(S){var H;return((H=S.openPopupAction)==null?void 0:H.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(p,J,S){if(_.z("web_dialog_utils_killswitch")){var H=p==null?void 0:p.openPopupActionCommand,M=(S==null?0:S.ariaLabel)?{accessibilityData:{accessibilityData:{label:S.ariaLabel}}}:void 0;!H&&(p==null?0:p.viewModel)&&(H={openPopupAction:Object.assign({},{popup:{dialogViewModel:p.viewModel},popupType:(S==null?0:S.isModal)?"MODAL":"DIALOG"},M&&M)});H&&this.handleOpenPopupAction(H,J)}else{if(M=p==null?void 0:p.viewModel){var X=S=S===void 0?{}:S;S=X.ariaLabel;M={popup:{dialogViewModel:M},
popupType:X.isModal?"MODAL":"DIALOG"};X={accessibilityData:{label:S}};S&&(M.accessibilityData=X);M={openPopupAction:M}}else M=void 0;if(M=(H=M)!=null?H:p==null?void 0:p.openPopupActionCommand)this.isAriaModal=_.z("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(M,J)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var p=this;return _.G(function(J){return J.return(p.handleGetOpenedPopupsAction_().filter(function(S){var H;return((H=S.openPopupAction)==null?void 0:H.popupType)==="DIALOG"}).length>0)})}}];var nkM;var GSN;var bZN=_.YI(["about:blank"]),Im=function(){var p=_.T.apply(this,arguments)||this;p.isMuted=!1;p.pageLoadTimeoutId=void 0;return p};
_.Q(Im,_.T);_.R=Im.prototype;_.R.dataChanged=function(){var p=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var J=this.data.url,S=_.x_(J);_.z("enable_yt_ata_iframe_authuser")?(S=_.x_(J),_.Lt(this.iframe,grw(S))):_.Lt(this.iframe,S);this.pageLoadTimeoutId=_.uS(_.Qb(),function(){return void p.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Zv({destination:window,iframe:this.iframe,origin:_.ZCp(S.toString()),channelName:"ataiframe",onMessage:_.f4U(RPr,function(H){KnP(H.data)?(H=_.wM(H.data,1,_.i$,_.GN()),H.length!==1?_.xQ(Error("Ml")):(H=H[0],H===3?(p.isMuted=!0,p.logStateChanged({adMuteRequested:!0})):H===1&&p.close())):_.xQ(Error("Nl"))}),
onEstablished:function(){p.cancelPageLoadTimeout();p.logStateChanged({pageLoadSucceeded:!0})}})}};
_.R.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Qb().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.R.logStateChanged=function(p){var J;if((J=this.data)==null?0:J.trackingParams)p={adsClientData:{aboutThisAdData:p}},_.bC().stateChanged(this.data.trackingParams,p)};
_.R.close=function(){_.IV(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.handlesPopupClosed=function(p,J){var S=this,H,M;return _.G(function(X){if(X.nextAddress==1)return _.jn("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.IV(S.hostElement,"on-about-this-ad-popup-closed",[S.isMuted,J]),X.jumpTo(0)):p&&t_P(p)?X.yield(h6$(p),4):(S.isMuted&&_.IV(S.hostElement,"yt-mute-ad-action",[S.is,S]),X.jumpTo(0));if(H=X.yieldResult){var Z=M=new _.MH(H),n=S.isMuted;Z.getOptions().includes("onAboutThisAdPopupClosed")?_.Wcm(Z,"onAboutThisAdPopupClosed",{isMuted:n,layoutId:J}):_.lT("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.UK(X)})};
_.R.onPopupClosed=function(p){var J=this,S,H;return _.G(function(M){S=_.fA(bZN);_.Lt(J.iframe,S);J.cancelPageLoadTimeout();if(!J.data)return M.jumpTo(0);J.ytRendererBehavior.markDirty();H=p.detail.context.openingElement;return M.yield(J.handlesPopupClosed(H,J.data.layoutId),0)})};
_.R.detached=function(){this.cancelPageLoadTimeout()};
_.R.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Im.prototype.onPopupClosed=Im.prototype.onPopupClosed;Im.prototype.dataChanged=Im.prototype.dataChanged;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.V([_.FM("#iframe"),_.Y("design:type",HTMLIFrameElement)],Im.prototype,"iframe",void 0);_.V([_.N(),_.Y("design:type",Object)],Im.prototype,"data",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"dataChanged",null);
_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype",Promise)],Im.prototype,"onPopupClosed",null);_.V([_.sD({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Im);
_.l(Im,"yt-about-this-ad-renderer",function(){if(GSN===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;nkM===void 0&&(nkM=document.createElement("template"));var H=nkM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);GSN=p}p=GSN;return p},{mode:2});var mt$;var Fhj;var vkN=function(p){var J=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=J.message;"stack"in J&&(this.stack=J.stack);this.maxFileSizeMB=p;Object.setPrototypeOf(this,vkN.prototype)};
_.Q(vkN,Error);var fEI=function(p,J){var S=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=S.message;"stack"in S&&(this.stack=S.stack);this.minWidth=p;this.minHeight=J;Object.setPrototypeOf(this,fEI.prototype)};
_.Q(fEI,Error);var OZe=function(p){this.requirements=p;this.JSC$21328_maxFileSize=p.maxFileSizeMB*1024*1024},AjU=function(p,J){if(J.size>p.JSC$21328_maxFileSize)throw new vkN(p.requirements.maxFileSizeMB);
};var PRf=function(p,J){this.canvas=p;this.imageEditorBuilder=J};
PRf.prototype.addEventListeners=function(p){var J=function(M){zON(p,M)};
this.JSC$21334_mouseDownEvent=J;var S=function(M){$tU(p,M)};
this.JSC$21334_mouseMoveEvent=S;var H=function(){oky(p)};
this.JSC$21334_mouseUpEvent=H;this.canvas.addEventListener("mousedown",J);this.canvas.addEventListener("mousemove",S);document.addEventListener("mouseup",H)};
PRf.prototype.removeEventListeners=function(){this.JSC$21334_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21334_mouseDownEvent);this.JSC$21334_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21334_mouseMoveEvent);this.JSC$21334_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21334_mouseUpEvent)};
var eOM=function(p,J){p.removeEventListeners();return new Promise(function(S){var H=new Image;H.crossOrigin="anonymous";H.onload=function(){var M=p.imageEditorBuilder(p.canvas,H);p.addEventListeners(M);S(M)};
H.src=J})},Lm=function(p,J,S,H,M,X,Z,n){this.canvas=p;
this.image=J;this.requiredRatio=S;this.minImageCropDimension=H;this.minOutputImageResolution=M;this.component=X;this.styleFocusedCorner=n===void 0?!0:n;this.action=2;this.focusedCorner=this.resizeCorner=0;p=this.canvas.getContext("2d");if(!p)throw Error("Ol");this.ctx=p;this.canvasMargin=Z!=null?Z:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;Z=this.image;p=this.canvasInnerWidth/Z.width;Z.height*p>912&&(p=Z.width/Z.height*912/Z.width);Z=p;this.scaledImageWidth=this.canvas.width%2?
k5p(this.image.width*Z):DRp(this.image.width*Z);this.scaledImageHeight=Math.round(this.image.height*Z);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21337_overlayMarginBottom=this.JSC$21337_overlayMarginTop=this.canvasMargin;this.JSC$21337_overlayMarginRight=this.JSC$21337_overlayMarginLeft=this.horizontalMargin;this.JSC$21337_overlayWidth=this.scaledImageWidth;this.JSC$21337_overlayHeight=this.scaledImageHeight;
p=this.image.width/this.image.height;p>this.requiredRatio?(this.JSC$21337_overlayWidth=this.canvas.width%2?k5p(this.scaledImageHeight*this.requiredRatio):DRp(this.scaledImageHeight*this.requiredRatio),this.JSC$21337_overlayMarginRight=this.JSC$21337_overlayMarginLeft=(this.canvas.width-this.JSC$21337_overlayWidth)/2):p<this.requiredRatio&&(this.JSC$21337_overlayHeight=this.canvas.height%2?k5p(this.scaledImageWidth/this.requiredRatio):DRp(this.scaledImageWidth/this.requiredRatio),this.JSC$21337_overlayMarginBottom=
this.JSC$21337_overlayMarginTop=(this.canvas.height-this.JSC$21337_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*Z,this.scaledImageWidth);Whp(this)};
Lm.prototype.getContext=function(){return this.ctx};
var zON=function(p,J){J={x:Math.round(J.pageX-p.canvas.getBoundingClientRect().left),y:Math.round(J.pageY-p.canvas.getBoundingClientRect().top)};p.dragStart=J;QFN(p,J)!==0?(p.action=1,CRr(p,J),p.resizeCorner=QFN(p,J)):J.x>p.JSC$21337_overlayMarginLeft&&J.x<p.JSC$21337_overlayMarginLeft+p.JSC$21337_overlayWidth&&J.y>p.JSC$21337_overlayMarginTop&&J.y<p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight&&(p.action=0)},yje=function(p,J){switch(J){case 1:return{x:p.JSC$21337_overlayMarginLeft,
y:p.JSC$21337_overlayMarginTop};case 2:return{x:p.JSC$21337_overlayMarginLeft,y:p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight};case 3:return{x:p.JSC$21337_overlayMarginLeft+p.JSC$21337_overlayWidth,y:p.JSC$21337_overlayMarginTop};case 4:return{x:p.JSC$21337_overlayMarginLeft+p.JSC$21337_overlayWidth,y:p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight};default:throw Error("Pl");}},UtU=function(p,J){if(p.focusedCorner!==0){p.dragStart=yje(p,p.focusedCorner);
p.action=1;p.resizeCorner=p.focusedCorner;var S=p.dragStart.x,H=p.dragStart.y;switch(J){case 0:p.focusedCorner===1||p.focusedCorner===4?(S-=10,H-=10):(S-=10,H+=10);break;case 1:p.focusedCorner===1||p.focusedCorner===4?(S+=10,H+=10):(S+=10,H-=10);break;case 2:S=p.focusedCorner===1||p.focusedCorner===4?S-10:S+10;H-=10;break;case 3:S=p.focusedCorner===1||p.focusedCorner===4?S+10:S-10;H+=10;break;default:throw Error("Ql");}BPI(p,{x:S,y:H});Whp(p);p.action=2;p.dragStart=void 0}},$tU=function(p,J){J={x:Math.round(J.pageX-
p.canvas.getBoundingClientRect().left),
y:Math.round(J.pageY-p.canvas.getBoundingClientRect().top)};CRr(p,J);switch(p.action){case 1:BPI(p,J);break;case 0:p.dragStart&&(p.JSC$21337_overlayMarginLeft=Math.max(p.horizontalMargin,Math.min(p.JSC$21337_overlayMarginLeft-(p.dragStart.x-J.x),p.horizontalMargin+p.scaledImageWidth-p.JSC$21337_overlayWidth)),p.JSC$21337_overlayMarginRight=p.canvas.width-p.JSC$21337_overlayMarginLeft-p.JSC$21337_overlayWidth,p.JSC$21337_overlayMarginTop=Math.max(p.canvasMargin,Math.min(p.JSC$21337_overlayMarginTop-
(p.dragStart.y-J.y),p.scaledImageHeight-p.JSC$21337_overlayHeight+p.canvasMargin)),p.JSC$21337_overlayMarginBottom=p.canvas.height-(p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight));break;default:return}Whp(p);p.dragStart=J},oky=function(p){p.action=2;
p.dragStart=void 0;document.body.style.cursor="auto"},CRr=function(p,J){switch(QFN(p,J)){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")}},QFN=function(p,J){var S=p.JSC$21337_overlayMarginLeft-5,H=p.JSC$21337_overlayMarginTop-5,M=p.JSC$21337_overlayMarginLeft+p.JSC$21337_overlayWidth-5;
p=p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight-5;return sFU(J,{x:S,y:H})?1:sFU(J,{x:M,y:H})?3:sFU(J,{x:S,y:p})?2:sFU(J,{x:M,y:p})?4:0},sFU=function(p,J){return p.x>=J.x&&p.x<=J.x+10&&p.y>=J.y&&p.y<=J.y+10},BPI=function(p,J){if(p.dragStart)switch(p.resizeCorner){case 2:Math.abs((p.JSC$21337_overlayMarginLeft+p.JSC$21337_overlayWidth-J.x)/(J.y-p.JSC$21337_overlayMarginTop))>=p.requiredRatio?gkU(p,J.x):t1I(p,J.y);
break;case 1:Math.abs((p.JSC$21337_overlayMarginLeft+p.JSC$21337_overlayWidth-J.x)/(p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight-J.y))>=p.requiredRatio?hOP(p,J.x):t1I(p,J.y);break;case 4:Math.abs((J.x-p.JSC$21337_overlayMarginLeft)/(J.y-p.JSC$21337_overlayMarginTop))>=p.requiredRatio?gkU(p,J.x):Dtw(p,J.y);break;case 3:Math.abs((J.x-p.JSC$21337_overlayMarginLeft)/(p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight-J.y))>=p.requiredRatio?hOP(p,J.x):Dtw(p,J.y);break;default:throw Error("Rl");
}},gkU=function(p,J){var S=p.JSC$21337_overlayMarginTop;
p.JSC$21337_overlayMarginBottom=kSe(p,J);p.JSC$21337_overlayHeight=p.canvas.height-p.JSC$21337_overlayMarginBottom-S;p.JSC$21337_overlayWidth=Math.round(p.JSC$21337_overlayHeight*p.requiredRatio);NPy(p)},hOP=function(p,J){var S=p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight;
p.JSC$21337_overlayMarginTop=kSe(p,J);p.JSC$21337_overlayHeight=S-p.JSC$21337_overlayMarginTop;p.JSC$21337_overlayWidth=Math.round(p.JSC$21337_overlayHeight*p.requiredRatio);NPy(p)},NPy=function(p){switch(p.resizeCorner){case 2:case 1:p.JSC$21337_overlayMarginLeft=p.canvas.width-p.JSC$21337_overlayMarginRight-p.JSC$21337_overlayWidth;
break;case 4:case 3:p.JSC$21337_overlayMarginRight=p.canvas.width-p.JSC$21337_overlayMarginLeft-p.JSC$21337_overlayWidth;break;default:throw Error("Rl");}},t1I=function(p,J){var S=p.JSC$21337_overlayMarginLeft+p.JSC$21337_overlayWidth;
p.JSC$21337_overlayMarginLeft=TPI(p,J);p.JSC$21337_overlayWidth=S-p.JSC$21337_overlayMarginLeft;p.JSC$21337_overlayHeight=Math.round(p.JSC$21337_overlayWidth/p.requiredRatio);dtl(p)},Dtw=function(p,J){var S=p.JSC$21337_overlayMarginLeft;
p.JSC$21337_overlayMarginRight=TPI(p,J);p.JSC$21337_overlayWidth=p.canvas.width-p.JSC$21337_overlayMarginRight-S;p.JSC$21337_overlayHeight=Math.round(p.JSC$21337_overlayWidth/p.requiredRatio);dtl(p)},dtl=function(p){switch(p.resizeCorner){case 2:case 4:p.JSC$21337_overlayMarginBottom=p.canvas.height-p.JSC$21337_overlayMarginTop-p.JSC$21337_overlayHeight;
break;case 1:case 3:p.JSC$21337_overlayMarginTop=p.canvas.height-p.JSC$21337_overlayMarginBottom-p.JSC$21337_overlayHeight;break;default:throw Error("Rl");}},kSe=function(p,J){switch(p.resizeCorner){case 2:J=p.canvas.height-(p.JSC$21337_overlayMarginTop+udp(p,J));
break;case 4:J=p.canvas.height-(p.JSC$21337_overlayMarginTop+lEf(p,J));break;case 1:J=p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight-udp(p,J);break;case 3:J=p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight-lEf(p,J);break;default:throw Error("Rl");}return Math.max(J,p.canvasMargin)},udp=function(p,J){J=p.JSC$21337_overlayMarginLeft+p.JSC$21337_overlayWidth-Math.max(J,p.horizontalMargin);
J=J<0?p.JSC$21337_overlayWidth:Math.max(J,p.minOverlayWidth);return Math.round(J/p.requiredRatio)},lEf=function(p,J){J=p.canvas.width-Math.max(p.canvas.width-J,p.horizontalMargin)-p.JSC$21337_overlayMarginLeft;
J=J<0?p.JSC$21337_overlayWidth:Math.max(J,p.minOverlayWidth);return Math.round(J/p.requiredRatio)},TPI=function(p,J){switch(p.resizeCorner){case 2:J=p.canvas.width-p.JSC$21337_overlayMarginRight-V1I(p,J);
break;case 4:J=p.canvas.width-p.JSC$21337_overlayMarginLeft-V1I(p,J);break;case 1:J=p.canvas.width-p.JSC$21337_overlayMarginRight-qxP(p,J);break;case 3:J=p.canvas.width-p.JSC$21337_overlayMarginLeft-qxP(p,J);break;default:throw Error("Rl");}return Math.max(J,p.horizontalMargin)},V1I=function(p,J){J=p.canvas.height-Math.max(p.canvas.height-J,p.canvasMargin)-p.JSC$21337_overlayMarginTop;
return J<0?p.JSC$21337_overlayWidth:Math.max(Math.round(J*p.requiredRatio),p.minOverlayWidth)},qxP=function(p,J){J=p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight-Math.max(J,p.canvasMargin);
return J<0?p.JSC$21337_overlayWidth:Math.max(Math.round(J*p.requiredRatio),p.minOverlayWidth)},Whp=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$21337_overlayMarginTop,p.JSC$21337_overlayMarginLeft-p.horizontalMargin,p.JSC$21337_overlayHeight);p.ctx.fillRect(p.JSC$21337_overlayMarginLeft+p.JSC$21337_overlayWidth,p.JSC$21337_overlayMarginTop,p.JSC$21337_overlayMarginRight-p.horizontalMargin,p.JSC$21337_overlayHeight);p.ctx.fillRect(p.horizontalMargin,
p.canvasMargin,p.scaledImageWidth,p.JSC$21337_overlayMarginTop-p.canvasMargin);p.ctx.fillRect(p.horizontalMargin,p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight,p.scaledImageWidth,p.JSC$21337_overlayMarginBottom-p.canvasMargin);p.drawOverlay();p.component&&_.cf(p.component,"image-updated")};
Lm.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21337_overlayMarginLeft,this.JSC$21337_overlayMarginTop,this.JSC$21337_overlayWidth,this.JSC$21337_overlayHeight);aEN(this)};
var aEN=function(p){var J=p.JSC$21337_overlayMarginLeft-5,S=p.JSC$21337_overlayMarginTop-5,H=p.JSC$21337_overlayMarginLeft+p.JSC$21337_overlayWidth-5,M=p.JSC$21337_overlayMarginTop+p.JSC$21337_overlayHeight-5;p.ctx.fillStyle="#FFF";p.ctx.fillRect(J,S,10,10);p.ctx.strokeRect(J,S,10,10);p.ctx.fillRect(H,S,10,10);p.ctx.strokeRect(H,S,10,10);p.ctx.fillRect(J,M,10,10);p.ctx.strokeRect(J,M,10,10);p.ctx.fillRect(H,M,10,10);p.ctx.strokeRect(H,M,10,10);if(p.focusedCorner!==0&&p.styleFocusedCorner){p.ctx.lineWidth=
4;p.ctx.strokeStyle="#3EA6FF";switch(p.focusedCorner){case 1:--J;--S;break;case 2:--J;S=M-1;break;case 3:J=H-1;--S;break;case 4:J=H-1;S=M-1;break;default:return}p.ctx.strokeRect(J,S,12,12)}};
Lm.prototype.crop=function(p,J){J=J===void 0?!0:J;var S=this.image.width/this.scaledImageWidth,H=document.createElement("canvas"),M=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],X=this.JSC$21337_overlayWidth*S,Z=this.JSC$21337_overlayHeight*S;H.width=Math.max(X,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);H.height=Math.max(Z,M);p&&(H.width=Math.min(H.width,H.height),H.height=Math.min(H.width,H.height));
p=H.getContext("2d");if(!p)throw Error("Fl");M=(this.JSC$21337_overlayMarginLeft-this.horizontalMargin)*S;S*=this.JSC$21337_overlayMarginTop-this.canvasMargin;J||(p.fillStyle="white",p.fillRect(0,0,H.width,H.height));p.drawImage(this.image,M,S,X,Z,0,0,H.width,H.height);return H};var EkP=function(p,J,S,H,M){Lm.call(this,p,J,S,H,void 0,M,8,!1)};
_.Q(EkP,Lm);EkP.prototype.drawOverlay=function(){var p=this.getContext(),J=this.JSC$21337_overlayWidth,S=this.JSC$21337_overlayHeight,H=this.JSC$21337_overlayMarginTop,M=this.JSC$21337_overlayMarginLeft;p.lineWidth=2;p.strokeStyle="#3EA6FF";p.beginPath();p.arc(M+J/2,H+S/2,J/2,0,2*Math.PI);p.stroke();p.strokeRect(M,H,J,S);aEN(this)};
var YxM={maxFileSizeMB:15,minWidth:98,minHeight:98},rje=["image/png","image/jpeg","image/gif"],pK=function(){var p=_.T.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};
_.Q(pK,_.T);_.R=pK.prototype;_.R.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.R.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.R.computePlaylistThumbnail=function(p){return p==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.R.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.IV(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.R.setErrorState=function(p){this.resetErrorState();p&&(this.errorMessage=p)};
_.R.showPopup=function(){var p=this;this.hideContainer=!1;_.uS(_.wg,function(){_.cf(p.hostElement,"yt-refit")});
this.isLoading=!1};
_.R.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.R.closePopup=function(){this.resetFileSelector();_.IV(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.onCancelTap=function(){this.isPlaylistThumbnail||_.IV(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.R.openFileSelector=function(){var p=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.uS(_.wg,function(){setTimeout(function(){if(!p.fileSelector.files||p.fileSelector.files.length===0)p.onCancelTap();p.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(J){J instanceof Error?_.jD(J):_.wf(new _.TG(JSON.stringify(J)))}};
_.R.handleFileSelection=function(){var p=this,J,S,H,M,X,Z;return _.G(function(n){switch(n.nextAddress){case 1:_.oI(n,2);if(!p.fileSelector.files||!p.imageEditorCanvas)return p.onCancelTap(),n.return();J=p.fileSelector.files[0];AjU(p.imageChecker,J);_.oI(n,4);return n.yield(pjp(J),6);case 6:p.mimeType=n.yieldResult;_.X$(n,5,2);break;case 4:_.BZ(n,2),_.IV(p.hostElement,"yt-image-selection-error-action",[(S=p.data)==null?void 0:S.genericImageLoadErrorMessage]),p.onCancelTap();case 5:H=new FileReader;
H.addEventListener("load",function(){var b,F;return _.G(function(f){if(f.nextAddress==1){if(!H.result)return _.xQ(Error("Hl")),f.return();b=H.result;F=new Image;F.src=b;F.onload=function(){try{var O=p.imageChecker;if(F.width<O.requirements.minWidth||F.height<O.requirements.minHeight)throw new fEI(O.requirements.minWidth,O.requirements.minHeight);}catch(P){if(P instanceof fEI){var A;_.IV(p.hostElement,"yt-image-selection-error-action",[(A=p.data)==null?void 0:A.imageDimensionErrorMessage]);p.logImageDimensionErrorVe()}else P instanceof
Error?_.jD(P):(O=new _.TG(JSON.stringify(P)),_.jD(O));p.onCancelTap()}p.showPopup()};
F.onerror=function(){var O;_.IV(p.hostElement,"yt-image-selection-error-action",[(O=p.data)==null?void 0:O.genericImageLoadErrorMessage]);p.onCancelTap()};
return f.yield(eOM(p.imageEditorCanvas,b),2)}p.imageEditor=f.yieldResult;p.updatePositionOfAllCorners();p.addEventListeners(p.imageEditor);_.UK(f)})},!1);
H.readAsDataURL(J);_.X$(n,0);break;case 2:M=_.BZ(n),M instanceof vkN?_.IV(p.hostElement,"yt-image-selection-error-action",[(X=p.data)==null?void 0:X.imageSizeErrorMessage]):(M instanceof Error?_.jD(M):_.wf(new _.TG(JSON.stringify(M))),_.IV(p.hostElement,"yt-image-selection-error-action",[(Z=p.data)==null?void 0:Z.genericImageLoadErrorMessage])),p.onCancelTap(),_.UK(n)}})};
_.R.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var p=_.G$(_.bC(),{veType:232707,visualElement:_.KG(232707)});p&&(p={visualElement:p},_.nI().reportShown(p))}};
_.R.handleImageSelectionErrorAction=function(p){this.isPlaylistThumbnail&&_.bsL(this.hostElement,p)};
_.R.convertToImageFormatBundle=function(p){var J=this,S,H,M;return _.G(function(X){switch(X.nextAddress){case 1:return S=p.toDataURL(J.outputMimeType,1),X.yield(Jdf(S),2);case 2:H=X.yieldResult;_.oI(X,3);AjU(J.imageChecker,H);_.X$(X,4);break;case 3:M=_.BZ(X);if(!(M instanceof vkN))throw M;_.xQ(new _.TG("Output size is bigger than input size for image",J.mimeType,J.outputMimeType,H.size));S=p.toDataURL("image/jpeg",.95);return X.yield(Jdf(S),6);case 6:H=X.yieldResult;case 4:return X.return({dataUrl:S,
imageFile:H})}})};
_.R.handleUploadImageToScottyCommand=function(p){var J=this,S,H,M,X,Z,n,b,F,f,O;return _.G(function(A){switch(A.nextAddress){case 1:if(!J.imageEditor||!_.e(p,ePj))return A.return();S=_.e(p,ePj).scottyUploadUrl;if(!S){var P=new _.TG("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.jD(P);return A.return()}_.oI(A,2);J.setLoadingState();H=J.imageEditor.crop(!1,!1);return A.yield(J.convertToImageFormatBundle(H),4);case 4:return M=A.yieldResult,A.yield(Ijr(M.imageFile,S),5);
case 5:X=A.yieldResult;((Z=J.data)==null?0:Z.onUploadEndpoint)?(n=J.buildUploadServiceEndpoint(X),J.ytComponentBehavior.resolveCommand(n),b=_.e(n,_.XY),((F=b)==null?0:F.params)?J.closePopup():J.resetFileSelector()):(_.IV(J.hostElement,"yt-image-updated-action",[M.dataUrl,X]),J.closePopup());_.X$(A,0);break;case 2:f=_.BZ(A),J.setErrorState((O=J.data)==null?void 0:O.uploadErrorMessage),f instanceof Error?_.jD(f):(P=new _.TG(JSON.stringify(f)),_.jD(P)),_.UK(A)}})};
_.R.buildUploadServiceEndpoint=function(p){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",p),this.data.onUploadEndpoint):null};
_.R.dataChanged=function(){var p=this,J;return _.G(function(S){if(S.nextAddress==1){if(!p.data||!p.canvasElement)return S.return();p.data.imageRatio&&p.data.minImageCropWidth||_.wf(new _.TG("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));J=function(H,M){return p.data.imageType==="IMAGE_TYPE_AVATAR"?new EkP(H,M,p.data.imageRatio,[p.data.minImageCropWidth,p.data.minImageCropWidth/p.data.imageRatio],p.hostElement):new Lm(H,M,p.data.imageRatio,[p.data.minImageCropWidth,
p.data.minImageCropWidth/p.data.imageRatio],void 0,p.hostElement,8,!1)};
p.imageEditorCanvas=new PRf(p.canvasElement,J);return p.data.url?S.yield(eOM(p.imageEditorCanvas,p.data.url),3):(p.hideContainer=!0,p.openFileSelector(),S.jumpTo(0))}p.imageEditor=S.yieldResult;p.showPopup();p.addEventListeners(p.imageEditor);_.UK(S)})};
_.R.addEventListeners=function(p){this.removeEventListeners();var J=function(M){zON(p,M)};
this.JSC$21345_mouseDownEvent=J;var S=function(M){$tU(p,M)};
this.JSC$21345_mouseMoveEvent=S;var H=function(){oky(p)};
this.JSC$21345_mouseUpEvent=H;this.topLeftCorner.addEventListener("mousedown",J);this.topLeftCorner.addEventListener("mousemove",S);this.topLeftCorner.addEventListener("mouseup",H);this.topRightCorner.addEventListener("mousedown",J);this.topRightCorner.addEventListener("mousemove",S);this.topRightCorner.addEventListener("mouseup",H);this.bottomLeftCorner.addEventListener("mousedown",J);this.bottomLeftCorner.addEventListener("mousemove",S);this.bottomLeftCorner.addEventListener("mouseup",H);this.bottomRightCorner.addEventListener("mousedown",
J);this.bottomRightCorner.addEventListener("mousemove",S);this.bottomRightCorner.addEventListener("mouseup",H)};
_.R.removeEventListeners=function(){this.JSC$21345_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21345_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21345_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21345_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21345_mouseDownEvent));this.JSC$21345_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21345_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21345_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21345_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21345_mouseMoveEvent));this.JSC$21345_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21345_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21345_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21345_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21345_mouseUpEvent))};
_.R.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};
_.R.updatePositionOfCorner=function(p,J){var S=p.y-J.offsetHeight/2+4;J.style.left=p.x-J.offsetWidth/2+16+"px";J.style.top=S+"px"};
_.R.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var p=_.K([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),J=p.next();!J.done;J=p.next()){J=J.value;var S=yje(this.imageEditor,J.corner);this.updatePositionOfCorner(S,J.div)}};
_.R.onLeft=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(UtU(this.imageEditor,0),this.updatePositionOfAllCorners(),p.preventDefault())};
_.R.onRight=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(UtU(this.imageEditor,1),this.updatePositionOfAllCorners(),p.preventDefault())};
_.R.onUp=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(UtU(this.imageEditor,2),this.updatePositionOfAllCorners(),p.preventDefault())};
_.R.onDown=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(UtU(this.imageEditor,3),this.updatePositionOfAllCorners(),p.preventDefault())};
_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.vh.Object.defineProperties(pK.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&rje.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var p,J,S;((J=this.data)==null?0:J.imageRatio)&&((S=this.data)==null?0:S.minImageCropWidth)?p={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:p=YxM;return new OZe(p)}}});
pK.prototype.updatePositionOfAllCorners=pK.prototype.updatePositionOfAllCorners;pK.prototype.dataChanged=pK.prototype.dataChanged;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],pK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],pK.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.ua),_.Y("design:type",Object)],pK.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.FM("#canvas"),_.Y("design:type",HTMLCanvasElement)],pK.prototype,"canvasElement",void 0);_.V([_.FM("#file-selector"),_.Y("design:type",HTMLInputElement)],pK.prototype,"fileSelector",void 0);_.V([_.FM("#top-left-corner"),_.Y("design:type",HTMLDivElement)],pK.prototype,"topLeftCorner",void 0);_.V([_.FM("#top-right-corner"),_.Y("design:type",HTMLDivElement)],pK.prototype,"topRightCorner",void 0);
_.V([_.FM("#bottom-left-corner"),_.Y("design:type",HTMLDivElement)],pK.prototype,"bottomLeftCorner",void 0);_.V([_.FM("#bottom-right-corner"),_.Y("design:type",HTMLDivElement)],pK.prototype,"bottomRightCorner",void 0);_.V([_.N(),_.Y("design:type",Object)],pK.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],pK.prototype,"errorMessage",void 0);_.V([_.N(),_.Y("design:type",Object)],pK.prototype,"isLoading",void 0);_.V([_.N(),_.Y("design:type",Object)],pK.prototype,"hideContainer",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.Y("design:type",Boolean)],pK.prototype,"isPlaylistThumbnail",void 0);_.V([_.An("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],pK.prototype,"dataChanged",null);_.V([_.GI("image-updated"),_.GI("yt-refit"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pK.prototype,"updatePositionOfAllCorners",null);
_.V([_.sD({is:"yt-image-editor-renderer",disableElementRegistration:!0})],pK);
_.l(pK,"yt-image-editor-renderer",function(){if(Fhj===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;mt$===void 0&&(mt$=document.createElement("template"));var H=mt$;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Fhj=p}p=Fhj;return p},{mode:2});var jFU;var wcw;var JD=function(){return _.T.apply(this,arguments)||this};
_.Q(JD,_.T);JD.prototype.updateMinutesFromBinding=function(p){this.handleMinutesChanged&&this.handleMinutesChanged(p)};
JD.prototype.updateSecondsFromBinding=function(p){this.handleSecondsChanged&&this.handleSecondsChanged(p)};
JD.prototype.updateDescriptionFromBinding=function(p){this.handleDescriptionChanged&&this.handleDescriptionChanged(p)};
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],JD.prototype,"ytComponentBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],JD.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",String)],JD.prototype,"minutes",void 0);_.V([_.N(),_.Y("design:type",String)],JD.prototype,"seconds",void 0);_.V([_.N(),_.Y("design:type",String)],JD.prototype,"description",void 0);_.V([_.N(),_.Y("design:type",Function)],JD.prototype,"handleMinutesChanged",void 0);
_.V([_.N(),_.Y("design:type",Function)],JD.prototype,"handleSecondsChanged",void 0);_.V([_.N(),_.Y("design:type",Function)],JD.prototype,"handleDescriptionChanged",void 0);_.V([_.N(),_.Y("design:type",Number)],JD.prototype,"characterLimit",void 0);_.V([_.N(),_.Y("design:type",Number)],JD.prototype,"textNumRows",void 0);_.V([_.sD({is:"yt-report-details-form-content",disableElementRegistration:!0})],JD);
_.l(JD,"yt-report-details-form-content",function(){if(wcw===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;jFU===void 0&&(jFU=document.createElement("template"));var H=jFU;S.call(J,H.content.cloneNode(!0),p.content.firstChild);wcw=p}p=wcw;return p},{mode:2});var xtU;var cj$;var Sj=function(){var p=_.T.apply(this,arguments)||this;p.updateMinutesFromBinding=function(J){p.minutes=J.detail.value};
p.updateSecondsFromBinding=function(J){p.seconds=J.detail.value};
p.updateDescriptionFromBinding=function(J){p.description=J.detail.value};
return p};
_.Q(Sj,_.T);_.R=Sj.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.R.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"}}}};
_.R.ready=function(){_.Jn(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.R.onSubmitYtAction=function(p){var J=p.detail;J.actionName==="yt-service-request"&&(J=J.args[1],J.flagEndpoint&&(p.stopPropagation(),this.refireAction(J)))};
_.R.refireAction=function(p){var J={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(J.vss_id=this.vssId);_.pl(this.hostElement,[p,J]);this.submitDisabled=!0};
_.R.dataChanged=function(){var p=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var J=_.IY();J&&J.getPlayerPromise().then(function(S){var H=S.getOption("cc","track")||S.getOption("captions","track");H&&(p.vssId=H.vss_id);S=S.getCurrentTime();p.minutes=Math.floor(S/60).toString();p.seconds=(Math.floor(S)%60).toString()})};
_.R.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==="")};
_.R.onYtServiceRequestCompleted=function(){_.IV(this.hostElement,"yt-close-popup-action")};
_.R.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.vh.Object.defineProperties(Sj.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}}});
Sj.prototype.onYtServiceRequestError=Sj.prototype.onYtServiceRequestError;Sj.prototype.onYtServiceRequestCompleted=Sj.prototype.onYtServiceRequestCompleted;Sj.prototype.updateSubmitButtonState=Sj.prototype.updateSubmitButtonState;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Sj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);
_.V([_.N({observer:"dataChanged"}),_.Y("design:type",Object)],Sj.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Sj.prototype,"submitDisabled",void 0);_.V([_.N(),_.Y("design:type",String)],Sj.prototype,"minutes",void 0);_.V([_.N(),_.Y("design:type",String)],Sj.prototype,"seconds",void 0);_.V([_.N(),_.Y("design:type",String)],Sj.prototype,"description",void 0);_.V([_.N(),_.Y("design:type",String)],Sj.prototype,"vssId",void 0);
_.V([_.N({value:_.jn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Sj.prototype,"isMusic",void 0);_.V([_.U("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Sj.prototype,"characterLimit",null);_.V([_.U("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Sj.prototype,"textNumRows",null);
_.V([_.An("minutes","seconds","description","submitDisabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sj.prototype,"updateSubmitButtonState",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sj.prototype,"onYtServiceRequestCompleted",null);
_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sj.prototype,"onYtServiceRequestError",null);_.V([_.sD({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Sj);
_.l(Sj,"yt-report-details-form-renderer",function(){if(cj$===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;xtU===void 0&&(xtU=document.createElement("template"));var H=xtU;S.call(J,H.content.cloneNode(!0),p.content.firstChild);cj$=p}p=cj$;return p});var IEU;var LhP;var pn$;var JBP;var Ha=function(){return _.T.apply(this,arguments)||this};
_.Q(Ha,_.T);
Ha.prototype.onCheckedChanged_=function(){if(this.data){var p=_.Jn(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.IV(this.hostElement,"yt-additional-detail-checkbox-update",[p]):this.data.identifier==="yt-hide-user-checkbox"?_.IV(this.hostElement,"yt-hide-user-checkbox-update",[p]):p&&this.data.enableCommand?_.IV(this.hostElement,"yt-modify-report-form-command",[_.e(this.data.enableCommand,sGr)]):!p&&this.data.disableCommand&&_.IV(this.hostElement,
"yt-modify-report-form-command",[_.e(this.data.enableCommand,sGr)])}};
Ha.prototype.onLabelTap_=function(p){p.target.tagName!="A"&&(_.Jn(this.hostElement).querySelector("#checkbox").checked=!_.Jn(this.hostElement).querySelector("#checkbox").checked)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Ha.prototype,"data",void 0);_.V([_.sD({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Ha);
_.l(Ha,"yt-boolean-form-field-v2-renderer",function(){if(JBP===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;pn$===void 0&&(pn$=document.createElement("template"));var H=pn$;S.call(J,H.content.cloneNode(!0),p.content.firstChild);JBP=p}p=JBP;return p});var MT=function(){var p=_.T.apply(this,arguments)||this;p.canShowAdditionalDetailCheckbox=!1;p.canShowCheckbox=!1;p.keepDropdownFocusedAfterSelection=!0;return p};
_.Q(MT,_.T);MT.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}}}}};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],MT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],MT.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],MT.prototype,"canShowAdditionalDetailCheckbox",void 0);_.V([_.N(),_.Y("design:type",Object)],MT.prototype,"canShowCheckbox",void 0);_.V([_.N(),_.Y("design:type",Object)],MT.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.V([_.sD({is:"yt-report-form-modal-content",disableElementRegistration:!0})],MT);
_.l(MT,"yt-report-form-modal-content",function(){if(LhP===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;IEU===void 0&&(IEU=document.createElement("template"));var H=IEU;S.call(J,H.content.cloneNode(!0),p.content.firstChild);LhP=p}p=LhP;return p},{mode:2});var SCI;var H2M;var Xy=function(){var p=_.T.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};
_.Q(Xy,_.T);_.R=Xy.prototype;_.R.created=function(){this.refitJob=0};
_.R.attached=function(){this.JSC$21368_scroller&&(this.JSC$21368_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21368_scroller.attached&&typeof this.JSC$21368_scroller.attached==="function"&&this.JSC$21368_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.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())};
_.R.onYtPopupOpened=function(){var p=_.IY();p&&p.getPlayerPromise().then(function(J){J.pauseVideo()})};
_.R.onYtNavigate=function(p){_.e(p.detail.endpoint,_.KZp)&&(p.stopPropagation(),this.hideReportForm=!0)};
_.R.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.R.onYtServiceRequestCompleted=function(p,J){var S=J.actions;if(S){if(S.length===1&&_.e(S[0],_.H9)){var H;S=((H=_.e(S[0],_.H9))==null?void 0:H.commands)||[]}H=0;for(var M=S.length;H<M;H++)_.e(S[H],_.Yi)&&(p.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(S[H]))}if(J.data&&(p=this.get("feedbackResponses",J.data)))for(J=0;J<p.length;J++)if(p[J].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.R.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.R._onDescendantIronResize=function(p){p.stopPropagation();return!1};
_.R.handleReportFormEndpointUpdateAction=function(p){if(p.submitEndpoint){var J=this.command=p.submitEndpoint;J=_.e(J,_.i78);if(J==null?0:J.additionalDetailCheckboxChecked)J.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()};
_.R.handleConfirmDialogCloseAction=function(p){p.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.R.submitButtonDisabledChanged=function(){var p=this.hostElement.parentElement;p&&p.invalidateTabbables&&p.invalidateTabbables()};
_.R.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()};
_.R.updateDialogStyling=function(){var p,J,S,H,M,X=((M=(p=this.data)==null?void 0:(J=p.optionsSupportedRenderers)==null?void 0:(S=J.optionsRenderer)==null?void 0:(H=S.items)==null?void 0:H.length)!=null?M:0)<=2?0:240;_.K3(this.hostElement,{"--yt-report-form-modal-renderer-min-width":X+"px"})};
_.R.toggleSubmitButton=function(p){this.submitButtonDisabled=!p;this.submitButtonDisabled=p};
_.R.computeSubmitButtonData=function(p,J){var S={};_.e(J,_.KZp)?S.navigationEndpoint=J:S.command=J||void 0;p&&p.buttonRenderer&&_.T6.extend(S,p.buttonRenderer);return S};
_.R.computeNextButtonData=function(p,J){var S={};if(!p||!p.buttonRenderer)return S;_.T6.extend(S,p.buttonRenderer);if(!J)return S;if(_.e(J,_.KZp))S.navigationEndpoint=mEN(J);else if(S.command=mEN(J),p=_.e(S.command,_.i78))p.legalCheckboxChecked=!0;return S};
_.R.computeShowNextButton=function(p,J,S){return!!p&&J&&S};
_.R.refit=function(){var p=this;this.refitJob||(this.refitJob=_.wg.addLowPriorityJob(function(){_.cf(p.hostElement,"yt-refit");p.refitJob=0}))};
_.R.handleAdditionalDetailCheckboxUpdateAction=function(p){this.additionalDetailCheckboxChecked=p;_.e(this.command,_.i78).additionalDetailCheckboxChecked=p};
_.vh.Object.defineProperties(Xy,{template:{configurable:!0,enumerable:!0,get:function(){if(H2M===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;SCI===void 0&&(SCI=document.createElement("template"));var H=SCI;S.call(J,H.content.cloneNode(!0),p.content.firstChild);H2M=p}p=H2M;return p}}});
Xy.prototype.onYtServiceRequestError=Xy.prototype.onYtServiceRequestError;Xy.prototype.onYtServiceRequestCompleted=Xy.prototype.onYtServiceRequestCompleted;Xy.prototype.onYtServiceRequestSent=Xy.prototype.onYtServiceRequestSent;Xy.prototype.onYtNavigate=Xy.prototype.onYtNavigate;Xy.prototype.onYtPopupOpened=Xy.prototype.onYtPopupOpened;_.V([_.B(_.T_.YtOpenPopupBehavior),_.Y("design:type",Object)],Xy.prototype,"openPopupBehavior",void 0);
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Xy.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],Xy.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.wL),_.Y("design:type",Object)],Xy.prototype,"ironResizableBehavior",void 0);_.V([_.N({observer:"dataChanged"}),_.Y("design:type",Object)],Xy.prototype,"data",void 0);
_.V([_.N(),_.Y("design:type",Object)],Xy.prototype,"submitting",void 0);_.V([_.N({observer:"submitButtonDisabledChanged"}),_.Y("design:type",Object)],Xy.prototype,"submitButtonDisabled",void 0);_.V([_.N(),_.Y("design:type",Object)],Xy.prototype,"command",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Xy.prototype,"hideReportForm",void 0);_.V([_.N(),_.Y("design:type",Object)],Xy.prototype,"canShowCheckbox",void 0);
_.V([_.N(),_.Y("design:type",Object)],Xy.prototype,"canShowAdditionalDetailCheckbox",void 0);_.V([_.N(),_.Y("design:type",Object)],Xy.prototype,"canShowNextButton",void 0);_.V([_.N(),_.Y("design:type",Object)],Xy.prototype,"additionalDetailCheckboxChecked",void 0);_.V([_.N(),_.Y("design:type",Object)],Xy.prototype,"refitJob",void 0);_.V([_.N(),_.Y("design:type",Object)],Xy.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.V([_.FM("#scroller"),_.Y("design:type",Object)],Xy.prototype,"JSC$21368_scroller",void 0);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xy.prototype,"onYtPopupOpened",null);_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xy.prototype,"onYtNavigate",null);
_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],Xy.prototype,"onYtServiceRequestSent",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],Xy.prototype,"onYtServiceRequestCompleted",null);
_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xy.prototype,"onYtServiceRequestError",null);_.V([_.sD({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Xy);var MVP;var Xnw;var iL=function(){return _.T.apply(this,arguments)||this};
_.Q(iL,_.T);_.R=iL.prototype;_.R.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.R.onVisible=function(){var p,J;(J=_.vO().resolve(_.F9(_.gP)))==null||J.enqueue({label:_.E4((p=this.data)==null?void 0:p.messageTitle),elementToFocus:this.hostElement})};
_.R.onThumbnailLoaded=function(){_.cf(this.hostElement,"yt-refit")};
_.R.onDismissTap=function(){_.IV(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.R.computeAlternateIcon=function(p){return p?p==="BACKSTAGE_ARTWORK"?"backstage:artwork":p:null};
_.R.computeFontFamily=function(p){return p==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.R.computeBackgroundStyle=function(p,J){if(p=this.computeBackgroundImage(p,J))if(p=_.LI(p.thumbnails))return'background-image: url("'+p+'");'};
_.R.computeHasFullHeightImage=function(p){return!(!(p&&p.thumbnails&&p.thumbnails.length>0)||this.modern)};
_.R.isModernStyle=function(p){return p.style==="STYLE_MODERN"};
_.R.computeIcon=function(p,J){if(p&&p.icon)return J?p.iconDark:p.icon};
_.R.computeBackgroundImage=function(p,J){if(p&&p.backgroundImage)return J?p.backgroundImageDark:p.backgroundImage};
_.R.computeLogo=function(p,J){if(p&&p.logo)return J?p.logoDark:p.logo};
_.R.computeShouldShowModernIcon=function(p,J){return p&&!!J};
_.R.getLogoContainerClassName=function(p){return this.logoWithPadding(p)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.R.getLogoImageId=function(p){return this.logoWithPadding(p)?"mealbar-logo-with-padding":"mealbar-logo"};
_.R.logoWithPadding=function(p){var J,S,H;return(p=(J=this.computeLogo(p,this.isDarkTheme))==null?void 0:(S=J.thumbnails)==null?void 0:(H=S[0])==null?void 0:H.height)&&p%31===0?!0:!1};
iL.prototype.onThumbnailLoaded=iL.prototype.onThumbnailLoaded;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.V([_.N({}),_.Y("design:type",Object)],iL.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.Y("design:type",Boolean)],iL.prototype,"modern",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],iL.prototype,"isDarkTheme",void 0);
_.V([_.N({computed:"computeIcon(data, isDarkTheme)"}),_.Y("design:type",Object)],iL.prototype,"icon",void 0);_.V([_.N({computed:"computeLogo(data, isDarkTheme)"}),_.Y("design:type",Object)],iL.prototype,"logo",void 0);_.V([_.N({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.Y("design:type",Object)],iL.prototype,"backgroundStyle",void 0);_.V([_.N({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.Y("design:type",Object)],iL.prototype,"alternateIcon",void 0);
_.V([_.N({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.Y("design:type",Boolean)],iL.prototype,"hasFullHeightImage",void 0);_.V([_.N({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.Y("design:type",Boolean)],iL.prototype,"useYoutubeSans",void 0);_.V([_.N({computed:"computeShouldShowModernIcon(modern, icon)"}),_.Y("design:type",Boolean)],iL.prototype,"shouldShowModernIcon",void 0);
_.V([_.GI("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iL.prototype,"onThumbnailLoaded",null);_.V([_.sD({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],iL);
_.l(iL,"yt-mealbar-promo-renderer",function(){if(Xnw===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;MVP===void 0&&(MVP=document.createElement("template"));var H=MVP;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Xnw=p}p=Xnw;return p},{mode:2});var i2P;var RiI;var R9=function(){return _.T.apply(this,arguments)||this};
_.Q(R9,_.T);_.R=R9.prototype;_.R.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]]"}}}}}};
_.R.computeHasButtons_=function(p){return!(!p.dismissButton&&!p.acceptButton)};
_.R.computeStyle_=function(p){return p||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.R.observeImpressionEndpoints_=function(){var p=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(J){J.clickTrackingParams&&delete J.clickTrackingParams;_.pl(p.hostElement,[J])})};
_.R.onTap_=function(){_.IV(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
R9.prototype.observeImpressionEndpoints_=R9.prototype.observeImpressionEndpoints_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],R9.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],R9.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],R9.prototype,"positionType",void 0);_.V([_.N({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Y("design:type",Boolean)],R9.prototype,"hasButtons_",void 0);_.V([_.N({value:function(){return this.onTap_.bind(this)}}),
_.Y("design:type",Function)],R9.prototype,"boundOnTap_",void 0);_.V([_.N({value:{style:"mono-inverse"}}),_.Y("design:type",Object)],R9.prototype,"buttonOverride",void 0);_.V([_.bO("data.promoConfig.impressionEndpoints"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R9.prototype,"observeImpressionEndpoints_",null);_.V([_.sD({is:"yt-tooltip-renderer",disableElementRegistration:!0})],R9);
_.l(R9,"yt-tooltip-renderer",function(){if(RiI===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;i2P===void 0&&(i2P=document.createElement("template"));var H=i2P;S.call(J,H.content.cloneNode(!0),p.content.firstChild);RiI=p}p=RiI;return p},{mode:2});var KWI;var Z2N;var nJr={},Gpf=(nJr.WEB_REMIX="music.youtube.com",nJr),KK=function(){var p=_.T.apply(this,arguments)||this;p.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return p};
_.Q(KK,_.T);_.R=KK.prototype;_.R.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.created=function(){this.embedHost_=Gpf[_.jn("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.R.ready=function(){_.Jn(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.R.computeEmbedCode_=function(p,J,S,H,M){if(!p)return"";var X=p.videoId,Z=p.fullListId,n=[];p.attributionId&&n.push("si="+p.attributionId);H||n.push("controls=0");S&&Number(J)>0&&n.push("start="+J);Z&&(X="videoseries",n.push("list="+Z));S="https://"+(M?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+X;p.clipId&&(n.push("clip="+p.clipId),n.push("clipt="+p.clipTiming));J=n.length>0?S+"?"+n.join("&amp;"):S;p.encryptedEmbedConfig&&n.push("embed_config="+JSON.stringify({enc:p.encryptedEmbedConfig}));
n=n.length>0?S+"?"+n.join("&amp;"):S;_.z("web_sharing_embed_preview_killswitch")?_.Jn(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(n,p.previewWidth||854,p.previewHeight||480):(_.d7(this.videoPreviewContainer),_.Jn(this.videoPreviewContainer).appendChild(this.buildIframeElement(n)));return this.getEmbedCode_(J,p.width||560,p.height||315)};
_.R.buildIframeElement=function(p){var J=document.createElement("iframe"),S,H;J.width=""+((H=(S=this.data)==null?void 0:S.previewWidth)!=null?H:854);var M,X;J.height=""+((X=(M=this.data)==null?void 0:M.previewHeight)!=null?X:480);_.p_(J,2,p);J.title="YouTube video player";J.frameBorder="0";J.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";J.referrerPolicy="strict-origin-when-cross-origin";J.allowFullscreen=!0;return J};
_.R.computeIsSquareAspectRatio_=function(p){return p.previewHeight&&p.previewWidth?p.previewHeight==p.previewWidth:!1};
_.R.computeShowEmbedOptions_=function(p){return!!p.enablePrivacyModeOptionLabel||!!p.showPlayerControlsOptionLabel};
_.R.getEmbedCode_=function(p,J,S){return'<iframe width="'+J+'" height="'+S+'" 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>'};
_.R.handleSignalActionCopyShareEmbedUrl_=function(){_.Jn(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.R.handleSetTimestamp_=function(p){this.startAtTimeStamp_=(this.startAtChecked_=p.isSet)?p.timestamp:0};
_.R.closePanel_=function(){_.IV(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.R.onEmbedCode_=function(){_.Jn(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.R.onYtPopupClosed_=function(){_.d7(_.Jn(this.hostElement).querySelector("#video-preview"))};
_.R.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.e(this.data.actionButtons[0],_.Za)&&this.ytRendererBehavior.logExplicitClick(_.e(this.data.actionButtons[0],_.Za))};
KK.prototype.onYtPopupClosed_=KK.prototype.onYtPopupClosed_;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],KK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],KK.prototype,"data",void 0);
_.V([_.N({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.Y("design:type",String)],KK.prototype,"embedCode_",void 0);_.V([_.N({value:!0}),_.Y("design:type",Boolean)],KK.prototype,"isPlayerControlsOptionChecked_",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],KK.prototype,"isPrivacyModeOptionChecked_",void 0);_.V([_.N({value:!1,notify:!0}),_.Y("design:type",Boolean)],KK.prototype,"startAtChecked_",void 0);
_.V([_.N({value:0}),_.Y("design:type",Number)],KK.prototype,"startAtTimeStamp_",void 0);_.V([_.N({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],KK.prototype,"isSquareAspectRatio_",void 0);_.V([_.FM("#video-preview"),_.Y("design:type",HTMLElement)],KK.prototype,"videoPreviewContainer",void 0);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KK.prototype,"onYtPopupClosed_",null);
_.V([_.sD({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],KK);
_.l(KK,"yt-sharing-embed-renderer",function(){if(Z2N===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;KWI===void 0&&(KWI=document.createElement("template"));var H=KWI;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Z2N=p}p=Z2N;return p},{mode:2});var b2r={};
b2r.YtUnlimitedFamilyInterstitialBehavior=[_.T_.YtOpenPopupBehavior,_.u1.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=_.d0o(_.Yt(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 J={openPopupAction:{popupType:"DIALOG",popup:{}}};J.openPopupAction.popup[p.renderer]=p.data;this.showingPreviousDialog_=!0;this.openPopup(J)}},
handleOpenPopupAction_:function(p){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var J=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(H){return!!p.openPopupAction.popup[H]}),S=this.getElementName_();
J&&this.data&&(this.pushToHistory({renderer:S,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(p){if(p=_.e(p,aSU))this.loading=!0,_.IV(this.hostElement,"yt-open-create-family-dialog",[p,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var p=this.hostElement.nodeName.split("-").slice(1).map(function(J){return""+J[0].toUpperCase()+J.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 mxe;var FWp;var ZW=function(){return _.T.apply(this,arguments)||this};
_.Q(ZW,_.T);_.R=ZW.prototype;_.R.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}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.IV(this.hostElement,"yt-register-create-family-dialog");_.Jn(this.hostElement).querySelector("#thumbnail").onShow()};
_.R.fireOnCloseCommand_=function(){var p;((p=this.data)==null?0:p.onCloseCommand)&&_.JP(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.R.onYtServiceRequestSent_=function(p,J){J&&J.endpoint&&_.e(J.endpoint,_.X6)||(this.loading=!0)};
_.R.onYtServiceRequestCompleted_=function(){var p=this.hostElement.parentElement;p.close&&p.close();this.loading=!1};
_.R.openPopupHandler_=function(p){if(p.detail==this){var J;((J=this.data)==null?0:J.onOpenCommands)&&_.JP(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.R.closePopupHandler_=function(p,J){this.fireOnCloseCommand_();if(J&&J.canceled===!0||J&&J.canceled===!1&&J.confirmed===!1){var S;((S=this.data)==null?0:S.onDismissCommands)&&_.JP(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.R.dataChanged_=function(){this.loading=!1};
ZW.prototype.dataChanged_=ZW.prototype.dataChanged_;ZW.prototype.closePopupHandler_=ZW.prototype.closePopupHandler_;ZW.prototype.openPopupHandler_=ZW.prototype.openPopupHandler_;ZW.prototype.onYtServiceRequestCompleted_=ZW.prototype.onYtServiceRequestCompleted_;ZW.prototype.onYtServiceRequestSent_=ZW.prototype.onYtServiceRequestSent_;_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],ZW.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],ZW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(b2r.YtUnlimitedFamilyInterstitialBehavior),_.Y("design:type",Object)],ZW.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],ZW.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],ZW.prototype,"loading",void 0);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],ZW.prototype,"onYtServiceRequestSent_",null);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],ZW.prototype,"onYtServiceRequestCompleted_",null);
_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],ZW.prototype,"openPopupHandler_",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],ZW.prototype,"closePopupHandler_",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZW.prototype,"dataChanged_",null);
_.V([_.sD({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],ZW);
_.l(ZW,"yt-unlimited-family-message-interstitial-renderer",function(){if(FWp===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;mxe===void 0&&(mxe=document.createElement("template"));var H=mxe;S.call(J,H.content.cloneNode(!0),p.content.firstChild);FWp=p}p=FWp;return p},{mode:2});var vJw;var fi$;var nK=function(){return _.T.apply(this,arguments)||this};
_.Q(nK,_.T);nK.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"}}}};
nK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Jn(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(p){p.onShow()});
_.Jn(this.hostElement).querySelector("#main-thumbnail").onShow()};
nK.prototype.onButtonTap_=function(p){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(p)};
nK.prototype.computeMainThumbnailWidth_=function(p){return p&&p.length!==0?72:96};
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.V([_.B(b2r.YtUnlimitedFamilyInterstitialBehavior),_.Y("design:type",Object)],nK.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],nK.prototype,"data",void 0);
_.V([_.N({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.Y("design:type",Number)],nK.prototype,"mainThumbnailWidth_",void 0);_.V([_.N({value:function(){return this.onButtonTap_.bind(this)}}),
_.Y("design:type",Function)],nK.prototype,"boundButtonTap_",void 0);_.V([_.sD({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],nK);
_.l(nK,"yt-unlimited-family-profile-interstitial-renderer",function(){if(fi$===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;vJw===void 0&&(vJw=document.createElement("template"));var H=vJw;S.call(J,H.content.cloneNode(!0),p.content.firstChild);fi$=p}p=fi$;return p},{mode:2});var O2P;var ABf;var GC=function(){var p=_.T.apply(this,arguments)||this;p.sliderAriaValueText_=null;p.selectedIndex_=0;p.messages={PAUSE_SLIDER:_.Kl("PAUSE_SLIDER",void 0,"Pause Duration")};return p};
_.Q(GC,_.T);_.R=GC.prototype;_.R.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_]]"}}}}}};
_.R.onPopupOpened_=function(p){p.detail==this&&_.z("enable_premium_voluntary_pause")&&(_.IV(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.setDialogData=function(p){this.data=p;this.resetSlider_()};
_.R.dataChanged_=function(){this.data&&this.resetSlider_()};
_.R.onSubmitTap_=function(){if(this.data.confirmCommand){var p=this.data.confirmCommand;_.e(p,_.GKd)&&_.pl(this.hostElement,[p,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.R.onExitButtonTap_=function(){_.IV(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.R.closePopupHandler_=function(p,J){(J&&J.canceled===!0||J.canceled===!1&&J.confirmed===!1)&&this.handleOnDismissCommands_()};
_.R.onSliderChange_=function(){this.selectedIndex_=_.Jn(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.R.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.R.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.R.resetSlider_=function(){if(this.data){var p=this.data.defaultEndOptionIndex||0,J=_.Jn(this.hostElement).querySelector("#id-pause-slider");if(J.immediateValue<p)for(;J.immediateValue!=p;)J.increment();else if(p<J.immediateValue)for(;J.immediateValue!=p;)J.decrement();this.selectedIndex_=p;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.R.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.JP(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.R.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.JP(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.R.onYtServiceRequestSent=function(){this.loading=!0};
_.R.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
GC.prototype.onYtServiceRequestCompleted=GC.prototype.onYtServiceRequestCompleted;GC.prototype.onYtServiceRequestSent=GC.prototype.onYtServiceRequestSent;GC.prototype.closePopupHandler_=GC.prototype.closePopupHandler_;GC.prototype.dataChanged_=GC.prototype.dataChanged_;GC.prototype.onPopupOpened_=GC.prototype.onPopupOpened_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],GC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],GC.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],GC.prototype,"loading",void 0);_.V([_.N(),_.Y("design:type",Number)],GC.prototype,"selectIndexMax_",void 0);_.V([_.N(),_.Y("design:type",Object)],GC.prototype,"selectedData_",void 0);
_.V([_.N(),_.Y("design:type",Object)],GC.prototype,"sliderAriaValueText_",void 0);_.V([_.N({value:function(){return this.onSubmitTap_.bind(this)}}),
_.Y("design:type",Function)],GC.prototype,"onButtonTap_",void 0);_.V([_.N({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.Y("design:type",Function)],GC.prototype,"onSecondaryTap_",void 0);_.V([_.N(),_.Y("design:type",Object)],GC.prototype,"messages",void 0);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],GC.prototype,"onPopupOpened_",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GC.prototype,"dataChanged_",null);
_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],GC.prototype,"closePopupHandler_",null);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],GC.prototype,"onYtServiceRequestSent",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],GC.prototype,"onYtServiceRequestCompleted",null);_.V([_.sD({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],GC);
_.l(GC,"yt-unplugged-pause-membership-dialog-renderer",function(){if(ABf===void 0){var p=document.createElement("template");_.C(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" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');p.content.insertBefore(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;O2P===void 0&&(O2P=document.createElement("template"));var H=O2P;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ABf=p}p=ABf;return p},{mode:2});var PXN;var ziw;var bL=function(){return _.T.apply(this,arguments)||this};
_.Q(bL,_.T);bL.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Cb("vcBalanceRenderer")}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],bL.prototype,"data",void 0);_.V([_.sD({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],bL);
_.l(bL,"yt-vc-offer-layout-header-renderer",function(){if(ziw===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;PXN===void 0&&(PXN=document.createElement("template"));var H=PXN;S.call(J,H.content.cloneNode(!0),p.content.firstChild);ziw=p}p=ziw;return p},{mode:2});var $xP;var oJI;var eiP;var WWM;var me=function(){return _.T.apply(this,arguments)||this};
_.Q(me,_.T);me.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.vh.Object.defineProperties(me.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)}}});
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.s8M.YtTappableItemBehavior),_.Y("design:type",Object)],me.prototype,"ytTappableItemBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],me.prototype,"data",void 0);
_.V([_.N({reflectToAttribute:!0}),_.U("data.accessibilityText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],me.prototype,"ariaLabel",null);_.V([_.N({reflectToAttribute:!0}),_.U("data.style"),_.Y("design:type",String),_.Y("design:paramtypes",[])],me.prototype,"vcOfferStyle",null);_.V([_.U("data.style","data.titleText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],me.prototype,"showTitleText",null);_.V([_.sD({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],me);
_.l(me,"yt-vc-offer-renderer",function(){if(WWM===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;eiP===void 0&&(eiP=document.createElement("template"));var H=eiP;S.call(J,H.content.cloneNode(!0),p.content.firstChild);WWM=p}p=WWM;return p},{mode:2});var Fy=function(){return _.T.apply(this,arguments)||this};
_.Q(Fy,_.T);Fy.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}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Fy.prototype,"data",void 0);_.V([_.sD({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Fy);
_.l(Fy,"yt-vc-offer-layout-renderer",function(){if(oJI===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;$xP===void 0&&($xP=document.createElement("template"));var H=$xP;S.call(J,H.content.cloneNode(!0),p.content.firstChild);oJI=p}p=oJI;return p},{mode:2});var Qkf;var CXP;var yBe;var Bzr;var va=function(){return _.T.apply(this,arguments)||this};
_.Q(va,_.T);va.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}}}}}};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],va.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],va.prototype,"data",void 0);_.V([_.sD({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],va);
_.l(va,"yt-ypc-offers-modal-top-bar-renderer",function(){if(Bzr===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;yBe===void 0&&(yBe=document.createElement("template"));var H=yBe;S.call(J,H.content.cloneNode(!0),p.content.firstChild);Bzr=p}p=Bzr;return p},{mode:2});var fK=function(){return _.T.apply(this,arguments)||this};
_.Q(fK,_.T);fK.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"}}}}};
fK.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
fK.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var p=this.scrollable;p.attached&&typeof p.attached==="function"&&p.attached()};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.FM("#scrollable"),_.Y("design:type",Object)],fK.prototype,"scrollable",void 0);_.V([_.N(),_.Y("design:type",Object)],fK.prototype,"data",void 0);_.V([_.sD({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],fK);
_.l(fK,"yt-ypc-offers-modal-renderer",function(){if(CXP===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Qkf===void 0&&(Qkf=document.createElement("template"));var H=Qkf;S.call(J,H.content.cloneNode(!0),p.content.firstChild);CXP=p}p=CXP;return p},{mode:2});var Uxe;var skN;var OH=function(){return _.T.apply(this,arguments)||this};
_.Q(OH,_.T);_.R=OH.prototype;_.R.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}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Jn(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.R.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.IV(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.R.onYtPopupOpened_=function(p,J){(J==null?void 0:J.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.JP(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.R.onYtPopupClosed_=function(p,J){this.continueButtonTapped||J&&(J.canceled===!0||J.canceled===!1&&J.confirmed===!1)&&this.data.onDismissCommands&&_.JP(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.R.onYtServiceRequestError_=function(p){this.set("showSpinner",!1);_.Vh(this.hostElement,p.detail.error.message)};
_.R.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.z("enable_ypc_spinners")?_.IV(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
OH.prototype.onYtServiceRequestError_=OH.prototype.onYtServiceRequestError_;OH.prototype.onYtPopupClosed_=OH.prototype.onYtPopupClosed_;OH.prototype.onYtPopupOpened_=OH.prototype.onYtPopupOpened_;OH.prototype.onYtServiceRequestCompleted_=OH.prototype.onYtServiceRequestCompleted_;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.N(),_.Y("design:type",Object)],OH.prototype,"data",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],OH.prototype,"showSpinner",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],OH.prototype,"continueButtonTapped",void 0);_.V([_.N({value:function(){return this.onContinueTapped_.bind(this)}}),
_.Y("design:type",Function)],OH.prototype,"bindOnContinueTapped_",void 0);_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OH.prototype,"onYtServiceRequestCompleted_",null);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],OH.prototype,"onYtPopupOpened_",null);
_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],OH.prototype,"onYtPopupClosed_",null);_.V([_.GI("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OH.prototype,"onYtServiceRequestError_",null);_.V([_.sD({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],OH);
_.l(OH,"yt-ypc-upgrade-dialog-renderer",function(){if(skN===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Uxe===void 0&&(Uxe=document.createElement("template"));var H=Uxe;S.call(J,H.content.cloneNode(!0),p.content.firstChild);skN=p}p=skN;return p},{mode:2});var gJl;var tVU;var AD=function(){return _.T.apply(this,arguments)||this};
_.Q(AD,_.T);AD.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
AD.prototype.computeHasButtons_=function(p){return!(!p.dismissButton&&!p.confirmButton)};
AD.prototype.computeStyle_=function(p){return p||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],AD.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],AD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],AD.prototype,"data",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],AD.prototype,"positionType",void 0);
_.V([_.N({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Y("design:type",Boolean)],AD.prototype,"hasButtons_",void 0);_.V([_.N({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],AD.prototype,"style_",void 0);_.V([_.sD({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],AD);
_.l(AD,"yt-bubble-hint-renderer",function(){if(tVU===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;gJl===void 0&&(gJl=document.createElement("template"));var H=gJl;S.call(J,H.content.cloneNode(!0),p.content.firstChild);tVU=p}p=tVU;return p},{mode:2});var hiM;var DxI;var Pa=function(){var p=_.fz.apply(this,arguments)||this;p.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return p};
_.Q(Pa,_.fz);_.R=Pa.prototype;_.R.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.R.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()})};
_.R.handleCheckBoxUpdateAction_=function(p){this.canShowCheckboxEnabledConfirmButton=p};
_.R.computeUseOverlayForSpinner_=function(p,J){return!!p&&J};
_.R.computeShowSpinner_=function(p,J){return p||!!J};
_.R.fireOnCloseActions_=function(){var p,J=_.K(((p=this.data)==null?void 0:p.onClosedActions)||[]);for(p=J.next();!p.done;p=J.next())this.ytRendererBehavior.resolveCommand(p.value)};
_.R.fireOnOpenCommands_=function(p){var J,S=(J=this.data)==null?void 0:J.onOpenCommands;if(S)for(p.stopImmediatePropagation(),p=_.K(S),J=p.next();!J.done;J=p.next())this.ytRendererBehavior.resolveCommand(J.value)};
_.R.fireOnDismissCommands_=function(p){var J,S=(J=this.data)==null?void 0:J.onDismissCommands;if(S)for(p.stopImmediatePropagation(),p=_.K(S),J=p.next();!J.done;J=p.next())this.ytRendererBehavior.resolveCommand(J.value)};
_.R.openPopupHandler_=function(p){p.detail==this&&this.fireOnOpenCommands_(p)};
_.R.closePopupHandler_=function(p,J){_.L1(this,"yt-confirm-dialog-close-action",[J]);this.fireOnCloseActions_();(J&&J.canceled===!0||J&&J.canceled===!1&&J.confirmed===!1)&&this.fireOnDismissCommands_(p)};
_.R.onHeaderImageChanged_=function(){var p;((p=this.data)==null?0:p.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.R.computeHasHeaderImageWidth_=function(p){return p!=void 0};
_.R.computeHasLoadingMessage=function(p){return!!p};
_.R.onHeaderImageWidthChanged_=function(){var p,J=(p=this.data)==null?void 0:p.headerImageWidth;if(J){if(p=1.25*J*2+J,this.$.main.style.width=p+"px",J=this.$.scroller.firstElementChild)J.style.minWidth=p+"px"}else this.$.main.style.width="100%"};
_.R.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")};
_.R.onYtNavigate_=function(p){p=_.Yt(p);p instanceof Node&&_.Sh(this.$["confirm-button"]).contains(p)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.R.computePrimaryIsCancel_=function(p){return p};
_.R.computeIsCancelButtonHidden_=function(p){return p.skipCancelButton||!p.cancelButton};
_.R.computeIsCheckboxHidden_=function(p){return!p.checkbox};
_.R.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.R.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.R.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};
_.vh.Object.defineProperties(Pa,{template:{configurable:!0,enumerable:!0,get:function(){if(DxI===void 0){var p=document.createElement("template");_.C(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  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;hiM===void 0&&(hiM=document.createElement("template"));var H=hiM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);DxI=p}p=DxI;return p}}});
Pa.prototype.onYtServiceRequestCompleted_=Pa.prototype.onYtServiceRequestCompleted_;Pa.prototype.onYtServiceRequestSent_=Pa.prototype.onYtServiceRequestSent_;Pa.prototype.onThumbnailLoaded_=Pa.prototype.onThumbnailLoaded_;Pa.prototype.onYtNavigate_=Pa.prototype.onYtNavigate_;Pa.prototype.onThumbnailChanged_=Pa.prototype.onThumbnailChanged_;Pa.prototype.onHeaderImageWidthChanged_=Pa.prototype.onHeaderImageWidthChanged_;Pa.prototype.onHeaderImageChanged_=Pa.prototype.onHeaderImageChanged_;
Pa.prototype.closePopupHandler_=Pa.prototype.closePopupHandler_;Pa.prototype.openPopupHandler_=Pa.prototype.openPopupHandler_;_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Pa.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],Pa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],Pa.prototype,"ytEventForwardingBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Pa.prototype,"data",void 0);_.V([_.N({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.Y("design:type",Boolean)],Pa.prototype,"primaryIsCancel",void 0);_.V([_.N({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.Y("design:type",Boolean)],Pa.prototype,"isCancelButtonHidden",void 0);
_.V([_.N({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.Y("design:type",Boolean)],Pa.prototype,"isCheckboxHidden",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Pa.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.V([_.N({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Pa.prototype,"useOverlayForSpinner_",void 0);
_.V([_.N({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.Y("design:type",Boolean)],Pa.prototype,"showSpinner_",void 0);_.V([_.N({value:!1}),_.Y("design:type",Boolean)],Pa.prototype,"isActionInProgress_",void 0);_.V([_.N({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.Y("design:type",Boolean)],Pa.prototype,"hasHeaderImageWidth_",void 0);
_.V([_.N({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.Y("design:type",Boolean)],Pa.prototype,"hasLoadingMessage",void 0);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Pa.prototype,"openPopupHandler_",null);_.V([_.GI("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Pa.prototype,"closePopupHandler_",null);
_.V([_.bO("data.headerImage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pa.prototype,"onHeaderImageChanged_",null);_.V([_.bO("data.headerImageWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pa.prototype,"onHeaderImageWidthChanged_",null);_.V([_.bO("data.thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pa.prototype,"onThumbnailChanged_",null);
_.V([_.GI("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Pa.prototype,"onYtNavigate_",null);_.V([_.GI("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pa.prototype,"onThumbnailLoaded_",null);_.V([_.GI("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.T7]),_.Y("design:returntype")],Pa.prototype,"onYtServiceRequestSent_",null);
_.V([_.GI("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Yz]),_.Y("design:returntype")],Pa.prototype,"onYtServiceRequestCompleted_",null);_.V([_.sD({is:"yt-confirm-dialog-renderer",noInjection:!0})],Pa);var kpj;var NzM;var zC=function(){return _.T.apply(this,arguments)||this};
_.Q(zC,_.T);zC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Jn(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
zC.prototype.computeConfirmButton_=function(p){var J={text:p.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};p.confirmNavigationEndpoint?J.navigationEndpoint=p.confirmNavigationEndpoint:p.confirmServiceEndpoint&&(J.serviceEndpoint=p.confirmServiceEndpoint);return J};
zC.prototype.computeShowTitle_=function(p){return!(p==null||!p.title)};
_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],zC.prototype,"data",void 0);_.V([_.N({computed:"computeShowTitle_(data)"}),_.Y("design:type",Boolean)],zC.prototype,"showTitle",void 0);_.V([_.sD({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],zC);
_.l(zC,"yt-fancy-dismissible-dialog-renderer",function(){if(NzM===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;kpj===void 0&&(kpj=document.createElement("template"));var H=kpj;S.call(J,H.content.cloneNode(!0),p.content.firstChild);NzM=p}p=NzM;return p});var TzM;var dxj;var $R=function(){var p=_.T.apply(this,arguments)||this;p.spinnerActive=!1;return p};
_.Q($R,_.T);$R.prototype.created=function(){hSl(2201)};
$R.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
$R.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
$R.prototype.onIronOverlayClosed=$R.prototype.onIronOverlayClosed;$R.prototype.onIronOverlayOpened=$R.prototype.onIronOverlayOpened;_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Gb),_.Y("design:type",Object)],$R.prototype,"tpYtIronOverlayBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],$R.prototype,"data",void 0);_.V([_.N(),_.Y("design:type",Object)],$R.prototype,"spinnerActive",void 0);
_.V([_.GI("iron-overlay-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$R.prototype,"onIronOverlayOpened",null);_.V([_.GI("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$R.prototype,"onIronOverlayClosed",null);_.V([_.sD({is:"yt-loading-renderer",disableElementRegistration:!0})],$R);
_.l($R,"yt-loading-renderer",function(){if(dxj===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;TzM===void 0&&(TzM=document.createElement("template"));var H=TzM;S.call(J,H.content.cloneNode(!0),p.content.firstChild);dxj=p}p=dxj;return p},{mode:2});var u3$;var lip;var o9=function(){var p=_.T.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};
_.Q(o9,_.T);_.R=o9.prototype;_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.R.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.R.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.R.openPopupHandler_=function(p){p.detail===this.hostElement&&this.hostElement.hidden&&_.IV(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.R.onDismissButtonTap_=function(){var p;this.closeOnDismissButton_.has(((p=this.data)==null?void 0:p.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.IV(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.R.onAcceptButtonTap_=function(){var p;this.closeOnAcceptButton_.has(((p=this.data)==null?void 0:p.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.IV(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.R.computeHasHeader_=function(p){return!!p.headerBackgroundImage};
_.R.computeLayoutStyle_=function(p){return p};
_.R.computePopupSize_=function(p){return p};
_.R.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:""};
_.R.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")};
_.R.computeHasCustomLogo=function(p){return!(p==null||!p.headerForegroundImage)};
_.R.computeCustomLogo=function(p,J){if(p!=null&&p.headerForegroundImage)return p.headerForegroundImageDark?J?p.headerForegroundImageDark:p.headerForegroundImage:p.headerForegroundImage};
_.R.computeHeaderBackgroundImage=function(p,J){if(p!=null&&p.headerBackgroundImage)return J&&(p==null?0:p.headerBackgroundImageDark)?p.headerBackgroundImageDark:p.headerBackgroundImage};
_.R.shouldShowIconContainer=function(p,J){return p&&!J};
_.R.shouldShowNonYouTubeIcon=function(p,J){return!p&&!J};
_.R.getLogoImageId=function(p){var J,S,H;return(p=(J=this.computeCustomLogo(p,this.isDarkTheme))==null?void 0:(S=J.thumbnails)==null?void 0:(H=S[0])==null?void 0:H.height)&&p%31===0?"custom-logo-with-padding":"custom-logo"};
o9.prototype.openPopupHandler_=o9.prototype.openPopupHandler_;o9.prototype.dataChanged_=o9.prototype.dataChanged_;_.V([_.B(_.QD.YtRendererstamperBehavior),_.Y("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.V([_.N(),_.Y("design:type",Boolean)],o9.prototype,"isDarkTheme",void 0);
_.V([_.N({computed:"computeCustomLogo(data, isDarkTheme)"}),_.Y("design:type",Object)],o9.prototype,"customLogo",void 0);_.V([_.N({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.Y("design:type",Object)],o9.prototype,"headerBackgroundImage",void 0);_.V([_.N(),_.Y("design:type",Object)],o9.prototype,"data",void 0);_.V([_.N({computed:"computeHasHeader_(data)"}),_.Y("design:type",Boolean)],o9.prototype,"hasHeader",void 0);
_.V([_.N({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.Y("design:type",Object)],o9.prototype,"layoutStyle",void 0);_.V([_.N({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.Y("design:type",Object)],o9.prototype,"popupSize",void 0);_.V([_.N({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],o9.prototype,"hasLogo",void 0);
_.V([_.N({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],o9.prototype,"hasCustomLogo",void 0);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],o9.prototype,"dataChanged_",null);_.V([_.GI("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],o9.prototype,"openPopupHandler_",null);
_.V([_.sD({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],o9);
_.l(o9,"yt-upsell-dialog-renderer",function(){if(lip===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;u3$===void 0&&(u3$=document.createElement("template"));var H=u3$;S.call(J,H.content.cloneNode(!0),p.content.firstChild);lip=p}p=lip;return p},{mode:2});var VVP=_.d(function(p){return _.m("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.m(_.v,{cond:p.title,then:function(J){return _.m("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},J)}}))},"Ej"),qCM=_.d(function(p){return _.m("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.m(_.AH,{data:p.closeButton},{buttonViewModel:function(J){return _.m("div",null,_.m(_.D0,{data:J.data}))}}))},"Fj"),aiU=_.d(function(p){var J=p.data;
return _.m(_.fV,null,_.m("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.m("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.m(_.v,{cond:function(){return!!J().image&&!!J().title},
then:function(){return _.m(_.a4,{data:function(){return J().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.m("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.m(_.v,{cond:function(){return J().title},
then:function(S){return _.m("h3",{class:"miniAppGameInfoDialogViewModelTitle"},S)}}),_.m(_.v,{cond:function(){return J().primaryGenre},
then:function(S){return _.m("span",{class:"miniAppGameInfoDialogViewModelGenre"},S)}}))),_.m(_.v,{cond:function(){var S=J().description;
return S&&S.length<=150},
then:function(){return _.m("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.m("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return J().description}))}}))},"Gj"),EJU=_.d(function(p){p=p.infoRows;
var J=_.vO().resolve(_.CR),S=_.z("enable_displaying_ppn");return _.m("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.m(_.dY,{each:p},function(H){return _.m("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.m(_.v,{cond:function(){return H.label},
then:function(M){return _.m("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},M)}}),_.m(_.v,{cond:function(){return H.attributedLabel},
then:function(M){return _.m("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.m(_.v3,{text:M,noPreWrap:!0}))}}),_.m(_.v,{cond:function(){return H.value},
then:function(M){return _.m("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},M)}}),_.m(_.v,{cond:function(){return H.attributedValue},
then:function(M){return _.m("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.m(_.v3,{text:M,noPreWrap:!0}))}}))}),_.m(_.v,{cond:function(){return S&&J.clientData.has("post_play_nonce")},
then:function(){return _.m("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.m("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.m("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},J.getData("post_play_nonce")))}}))},"Hj"),YCN=_.d(function(p){var J=p.data;
return _.m("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.m(VVP,{title:function(){return J().dialogTitle}}),_.m(aiU,{data:J}),_.m(_.v,{cond:function(){return J().infoRow},
then:function(S){return _.m(EJU,{infoRows:S})}}),_.m(qCM,{closeButton:function(){return J().closeButton}}))},"Ij");
YCN.idomCompat=!0;_.ci(YCN,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;return _.m("yt-gulp-triggering-dialog-view-model",{class:_.XB("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.m(_.a4,{data:function(){return J().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.m("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.m("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.m("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.m(_.v3,{text:function(){return J().title}})),_.m(_.v,{cond:function(){return J().bodyText},
then:function(S){return _.m(_.dY,{each:S},function(H){return _.m("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.m(_.v3,{text:H}))})}})),_.m("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.m(_.AH,{data:function(){return J().dismissButton}},{buttonViewModel:function(S){return _.m("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.m(_.D0,{data:S.data}))}}),_.m(_.AH,{data:function(){return J().actionButton}},{buttonViewModel:function(S){return _.m("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.m(_.D0,{data:S.data}))}}))))},"Jj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.fD}});var rBM=_.d(function(p){var J=p.data;p=_.rw(function(){return J().agreements},[]);
return _.m("installment-agreements-view-model",{class:_.XB("ytInstallmentAgreementsViewModelHost")},_.m(_.dY,{each:p},function(S){return _.m("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.m("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.m(_.v3,{text:S.label})),_.m("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.m(_.AH,{data:function(){return S.openButton}},{buttonViewModel:_.D0})))}))},"Kj");
rBM.idomCompat=!0;var jkP=_.d(function(p){var J=_.K(_.re(function(){var w,I;return((w=p.data().createPlaylistDialogFormSchema)==null?0:(I=w.initialValues)==null?0:I.title)?p.data().createPlaylistDialogFormSchema.initialValues.title:""})),S=J.next().value,H=J.next().value;
J=_.K(_.re(function(){p.data();return!1}));
var M=J.next().value,X=J.next().value;J=_.K(_.re(function(){p.data();return!1}));
var Z=J.next().value,n=J.next().value;J=_.K(_.re(function(){var w,I;return(w=p.data().createPlaylistDialogFormSchema)==null?void 0:(I=w.initialValues)==null?void 0:I.visibility}));
var b=J.next().value,F=J.next().value;J=_.K(_.re(function(){p.data();return!1}));
var f=J.next().value,O=J.next().value;J=_.K(_.re(function(){var w,I;return(w=p.data().createPlaylistDialogFormSchema)==null?void 0:(I=w.initialValues)==null?void 0:I.isCollaborative}));
var A=J.next().value,P=J.next().value,W=_.nE("div");_.lf(function(){var w=W.value.querySelector("textarea");w&&(w.value=S())},"axFRaf");
_.ad(function(){var w;_.Tde((w=p.data().createPlaylistDialogFormSchema)==null?void 0:w.id,{onSubmit:function(){var I=S();var Z3=b(),vg=A(),yX=p.data();I={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:I,privacyStatus:Z3,videoIds:yX.videoIds,sourcePlaylistId:yX.sourcePlaylistId,params:vg?yX.createPlaylistParamsCollaborationEnabled:yX.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.vO().resolve(_.Ov).resolveCommand(I)},
isValid:function(){return M()&&!Z()&&!f()}})});
var y=function(w){if(w!==void 0&&(H(w),!M()&&w.length>0&&X(!0),M())){var I=N7I(p.data());if(I){var Z3=I.minLength;I=I.maxLength;Z3&&w.length<Z3?n(!0):I&&w.length>I?n(!0):n(!1)}}},t=function(){var w=!(!A()||b()!=="PRIVATE");
O(w)},D=function(w){w!==void 0&&(F(w),t())},k=function(){if(f())return dRe(p.data())},E=function(){P(!A());
t()},a=function(){return{validate:function(w){if(M()){var I=N7I(p.data());
if(I){var Z3=I.minLength;I=I.translations;if(Z3&&w.length<Z3)return I==null?void 0:I.minLengthErrorMessage}}}}},q=function(){var w=N7I(p.data()),I=w==null?void 0:w.maxLength,Z3;
w=w==null?void 0:(Z3=w.translations)==null?void 0:Z3.maxLengthErrorMessage;if(I&&w)return{maxChars:I,errorMessage:w}};
return _.m("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.m("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:W},_.m(_.AH,{data:function(){return p.data().playlistTitle}},{textFormFieldViewModel:function(w){return _.m(_.wq$,{data:w.data,
text:S,onInput:y,validation:a,characterLimit:q})},
textFieldViewModel:function(w){return _.m(_.jRp,{data:w.data,text:S,onInput:y,validation:a,characterLimit:q})}})),_.m("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.m(_.AH,{data:function(){return p.data().playlistVisibility}},{dropdownViewModel:function(w){return _.m(_.XtI,{data:w.data,
onSelected:D,error:k})}})),_.m(_.v,{cond:function(){return!!p.data().playlistCollaborate},
then:function(){return _.m("div",null,_.m(_.AH,{data:function(){return p.data().playlistCollaborate}},{switchListItemViewModel:function(w){return _.m(_.Ck8,{data:w.data,
onTap:E})}}))}}))},"Mj");var wny=_.d(function(p){var J=p.data;return _.m("upsell-offer-table-cell-content-view-model",null,_.m("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.m(_.ue,null,_.m(_.Nz,{when:function(){var S;return(S=J().icon)==null?void 0:S.iconType}},function(){return _.m("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.m(_.bn,{icon:function(){var S;
return(S=J().icon)==null?void 0:S.iconType.toString()}}))}),_.m(_.Nz,{when:function(){return J().title}},function(){return _.m(_.v3,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return J().title}})}),_.m(_.Nz,{when:function(){return J().subtitle}},function(){return _.m(_.v3,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return J().subtitle}})}),_.m(_.Nz,{when:function(){return J().infoText}},function(){return _.m(_.v3,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return J().infoText}})}),_.m(_.Nz,{when:function(){return J().featureDescription}},function(){return _.m(_.v3,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return J().featureDescription}})}),_.m(_.Nz,{when:function(){return J().note}},function(){return _.m(_.v3,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return J().note}})})),_.m(_.v,{cond:function(){var S;
return(S=J().icon)==null?void 0:S.iconAccessibilityText},
then:function(){return _.m("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var S;return(S=J().icon)==null?void 0:S.iconAccessibilityText})}})))},"Nj");
wny.idomCompat=!0;var xxe=_.d(function(p){var J=p.data;var S=p.cellIndex;var H=p.rowIndex;return _.m("upsell-offer-table-cell-view-model",null,_.m("div",{class:_.XB("ytUpsellOfferTableCellViewModelCellWrapper",function(){return J().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":J().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var M,X;return"cell-"+((M=H==null?void 0:H())!=null?M:0)+"-"+((X=S==null?void 0:S())!=null?X:0)},
role:function(){return J().isFirstRow?"columnHeader":J().isFirstColumn?"rowheader":"gridcell"}},_.m(_.AH,{data:function(){return J().contents}},{upsellOfferTableCellContentViewModel:wny})))},"Oj");
xxe.idomCompat=!0;var cBj=_.d(function(p){var J=p.data;var S=p.upsellTableIsFirstRow;var H=p.rowIndex;var M=function(){return(S==null?0:S())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},X=function(){return(S==null?0:S())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.m("ytm-upsell-offer-table-row-view-model",null,_.m("div",{class:function(){return(S==null?0:S())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(H==null?void 0:H())+"-1 cell-"+(H==null?void 0:H())+"-2"}},_.m(_.AH,{data:function(){return J().rowHeaderCell}},{upsellOfferTableCellViewModel:function(Z){return _.m("div",{class:M},_.m(xxe,{data:Z.data,
cellIndex:0,rowIndex:H}))}}),_.m("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.m(_.AH,{data:function(){return J().contentCells}},{upsellOfferTableCellViewModel:function(Z,n){return _.m("div",{class:X},_.m(xxe,{data:Z.data,
cellIndex:function(){return n()+1},
rowIndex:H}))}}))))},"Pj");
cBj.idomCompat=!0;var Iif=_.d(function(p){var J=p.data;return _.m("ytm-upsell-offer-table-view-model",null,_.m("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.m("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.m(_.AH,{data:function(){return J().rows}},{upsellOfferTableRowViewModel:function(S,H){return _.m(cBj,{data:S.data,
upsellTableIsFirstRow:function(){return H()===0},
rowIndex:H})}}))))},"Qj");
Iif.idomCompat=!0;var LWy=_.d(function(p){var J=function(){return p.data()},S=_.rw(p.noPadding,!1),H=function(){var X,Z;
return(Z=(X=J().logo.accessibilityData)==null?void 0:X.label)!=null?Z:""},M={};
return _.m("upsell-view-model",{class:_.XB("ytUpsellViewModelHost",(M.ytUpsellViewModelHostNoPadding=function(){return S()},M.ytUpsellViewModelHostWide=function(){return J().offerTable!==void 0},M))},_.m("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.m(_.v,{cond:function(){return _.dT(J().logo)},
then:function(X){return _.m(_.a4,{data:X,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:H})}})),_.m("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.m(_.v3,{text:function(){return J().title}})),_.m("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.m(_.dY,{each:function(){var X;
return(X=J().subtitles)!=null?X:[]},
keyBy:"INDEX"},function(X){var Z={};return _.m("div",{class:_.XB("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(Z.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return J().offerTable!==void 0},Z))},_.m(_.v3,{text:X}))})),_.m("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.m(_.dY,{each:function(){var X;
return(X=J().benefitInfos)!=null?X:[]},
keyBy:"INDEX"},function(X){return _.m(_.v,{cond:function(){return X().info},
then:function(Z){return _.m("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.m(_.bn,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.m(_.v3,{text:Z}))}})})),_.m(_.v,{cond:function(){return J().offerTable!==void 0},
then:function(){return _.m("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.m(_.AH,{data:function(){return J().offerTable}},{upsellOfferTableViewModel:function(X){return _.m(Iif,{data:X.data})}}))}}),_.m("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.m(_.dY,{each:function(){var X;
return(X=J().legalInfos)!=null?X:[]},
keyBy:"INDEX"},function(X){var Z={};return _.m("div",{class:_.XB("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(Z.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return J().offerTable!==void 0},Z))},_.m(_.v3,{text:X}))})))},"Rj");var pbU=_.d(function(p){var J=p.data;p={};p=(p.ytMiniAppScoreChallengeViewModelScoreRadial=!0,p.ytMiniAppScoreChallengeViewModelDarkScoreRadial=uhP(),p);return _.m("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.m("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return J().title}),_.m("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return J().subtitle}),_.m("div",{class:_.Qh(p)},_.m("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return J().score})),_.m("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return J().prompt}))},"Sj");var Jb$=function(){this.store=_.ED();this.formId=""};
Jb$.prototype.onInit=function(p){p.formId&&(this.formId=p.formId,this.store.dispatch(_.Jk({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
Jb$.prototype.cleanup=function(){this.store.dispatch(_.Jk({type:"RESET_COMMAND_MAP"}))};var SWP=_.d(function(p){function J(n){if(n&&(n=_.e(n,_.$m)))return Object.assign({},n,{isSelected:X()})}
var S=_.K(_.re(function(){var n,b;return(b=(n=_.e(p.data().option,_.$m))==null?void 0:n.isSelected)!=null?b:!1})),H=S.next().value,M=S.next().value,X=H;
_.ad(function(){var n;_.Tde((n=p.data().formSchema)==null?void 0:n.id,{onSubmit:function(){var b=_.vO().resolve(_.Ov),F=!!p.data().selectedCommand,f=!!p.data().unselectedCommand;if(X()){if(F)var O=p.data().selectedCommand}else f&&(O=p.data().unselectedCommand);O=_.sa(O);J(p.data().option)&&!O?(b="",!F&&f?b="selected ":F&&!f&&(b="unselected "),F=new _.TG("No "+b+"command found for SelectionListItemFormViewModel"),_.jD(F)):O&&b.resolveCommand(O)},
isValid:function(){return!0}})});
var Z=function(){M(!X())};
_.VY(function(){var n,b,F=(n=p.data())==null?void 0:(b=n.formSchema)==null?void 0:b.id;F&&_.fG()().delete(F)});
return _.m("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.m("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.m(_.v3,{text:function(){return p.data().paragraph}})),_.m(_.v,{cond:function(){return J(p.data().option)},
then:function(n){return _.m(_.fW,{data:n,isCompact:!0,hideSelectionTextChevron:!0,onTap:Z,disableHorizontalPadding:!0})}}))},"Tj");var Hjr=_.d(function(p){var J=p.data;var S=p.disablePadding;var H=p.className;var M=_.nE("yt-dialog-header-view-model"),X=function(){var n=J().imageBanner;a:switch(J().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var b="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:b="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:n,style:b,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},Z=function(){return J().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.ad(function(){var n=function(){_.IV(M.value,"yt-refit-popups-action")},b;
(b=M.value)==null||b.addEventListener("image-loaded",n);_.VY(function(){var F;(F=M.value)==null||F.removeEventListener("image-loaded",n)})});
p={};return _.m("yt-dialog-header-view-model",{el:M,class:_.XB(H,(p.ytDialogHeaderViewModelHost=!0,p.ytDialogHeaderViewModelHostDisablePadding=S,p))},_.m(_.v,{cond:function(){return J().imageBanner},
then:function(){var n={};return _.m("div",{class:_.XB(H,(n.ytDialogHeaderViewModelBanner=!0,n.ytDialogHeaderViewModelBannerFullBleed=Z,n)),style:_.G7({"max-height":function(){return J().assetContainerMaxHeight!==void 0?J().assetContainerMaxHeight+"px":void 0}})},_.m(_.D2,{data:X,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.m(_.v,{cond:function(){return J().headerBlock},
then:function(){return _.m("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.m(_.AH,{data:function(){return J().headerBlock}},{contentPreviewImageViewModel:function(n){return _.m(_.D2,{data:n.data,
notifyOnLoaded:!0})}}))}}),_.m(_.v,{cond:function(){return J().customBanner},
then:function(n){return _.m("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.m(_.AH,{data:n},{avatarStackViewModel:_.KF}))}}),_.m(_.v,{cond:function(){return J().headline},
then:function(n){return _.m("h2",null,_.m(_.v3,{text:n,className:"ytDialogHeaderViewModelText"}))}}))},"Uj");
Hjr.idomCompat=!0;var MCf=_.d(function(p){var J=_.ZjX(function(){return p.data().formId}),S=J.submitForm,H=J.isValid;
return _.m("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.m(_.AH,{data:function(){return p.data().panelFooter}},{panelFooterViewModel:function(M){return _.m(_.ak,{data:M.data,
disablePadding:!0,disablePrimaryButton:function(){return!H()},
onClickPrimaryButton:function(){S()}})}}))},"Vj");var XbP=_.d(function(p){var J=function(){var S,H;return(H=(S=_.e(p.data().rendererContext,_.PY))==null?void 0:S.label)!=null?H:""};
return _.m("yt-dialog-image-content-view-model",{class:_.XB("ytDialogImageContentViewModelHost",p.className)},_.m(_.v,{cond:function(){return _.dT(p.data().image)},
then:function(S){var H={};return _.m("div",{style:_.G7((H.width=(0,_.GR)(function(){var M;return(M=p.data().imageMaxWidth)!=null?M:""}),H)),
class:"ytDialogImageContentViewModelImage"},_.m(_.a4,{data:S,alt:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.m(_.v3,{text:function(){return p.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Wj");var KRw=_.d(function(p){var J=_.jh(p,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),S=J.elRefCallback;p=J.Icon;var H=J.Asset,M=J.assetType,X=J.Title,Z=J.LeadingActionHeader,n=J.TrailingActionHeader,b=J.headerPosition,F=J.Content,f=J.buttonLayout,O=J.buttonStyle,A=J.primaryButtonWiz,P=J.secondaryButtonWiz,W=J.contentAlignment,y=J.isFullscreen,t=J.width,D=J.maxHeight,k=J.isHeaderWizDefined,E=J.Header,a=J.isFooterWizDefined,
q=J.Footer;J=_.nE("dialog-layout",function(NW){S==null||S(NW)});
var w=A?function(){var NW={};return A({buttonOverrides:function(){return{style:(O==null?void 0:O())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.XB((NW["yt-spec-dialog-layout__dialog-layout-button"]=!0,NW["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(f==null?void 0:f())===0||(f==null?void 0:f())===2},NW))})}:void 0,I=P?function(){var NW={};
return P({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.XB((NW["yt-spec-dialog-layout__dialog-layout-button"]=!0,NW["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(f==null?void 0:f())===0||(f==null?void 0:f())===2},NW))})}:void 0,Z3=function(){return(!!X||!!Z||!!n)&&b()===0},vg={},yX={},Pg={},ov={};
return _.m("dialog-layout",{el:J,class:_.XB((vg["yt-spec-dialog-layout"]=!0,vg["yt-spec-dialog-layout--dialog-layout-fullscreen"]=y,vg["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!y()},vg["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return D()===1},vg["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(M==null?void 0:M())===1},vg)),
style:function(){return(t==null?void 0:t())!==void 0?"width: "+t()+"px;":""}},p?_.m("div",{class:_.XB((yX["yt-spec-dialog-layout__dialog-layout-icon"]=!0,yX["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!H&&b()===1},yX["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return W()===1},yX))},_.m(p,null)):null,_.m(_.v,{cond:k,
then:function(){return E?_.m("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.m(E,null)):null},
else:function(){return _.m(_.fV,null,_.m(_.v,{cond:Z3,then:function(){return _.m(ijw,{contentAlignment:W,LeadingActionHeader:Z,TrailingActionHeader:n,Title:X,isAboveAsset:!!H})}}),H?_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.m(H,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.m("div",{class:_.XB((Pg["yt-spec-dialog-layout__dialog-layout-container"]=!0,Pg["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(W==null?void 0:W())===1},
Pg["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!X&&!(E&&k())||!!H&&(b==null?void 0:b())===0},Pg))},_.m(_.v,{cond:function(){return X&&!E&&(b==null?void 0:b())===1},
then:function(){return _.m(ijw,{contentAlignment:W,LeadingActionHeader:Z,TrailingActionHeader:n,Title:X,isAboveAsset:!1})}}),F?_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.m(F,null))):null,_.m(_.v,{cond:a,
then:function(){return q?_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.m(q,null)):null}}),w||I?_.m(RBf,{footerClasses:_.XB((ov["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,ov["yt-spec-dialog-layout__dialog-layout-footer"]=!0,ov["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(f==null?void 0:f())===2},ov["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(f==null?void 0:f())===1},ov)),
PrimaryButton:w,SecondaryButton:I}):null))},"Xj"),ijw=_.d(function(p){var J=_.jh(p,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),S=J.contentAlignment,H=J.LeadingActionHeader;p=J.Title;var M=J.TrailingActionHeader,X=J.isAboveAsset,Z=J.enableLeadingActionHeader;J={};return _.m("div",{class:_.XB((J["yt-spec-dialog-layout__dialog-header-container"]=!0,J["yt-spec-dialog-layout__dialog-header"]=!0,J["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=X,J["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(S==null?void 0:S())===1&&Z()},J))},_.m(_.v,{cond:function(){return Z()},
then:function(){return H?_.m("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.m(H,null)):null}}),p?_.m("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.m(p,null)):null,M?_.m("div",null,_.m(M,null)):null)},"Yj"),RBf=_.d(function(p){var J=p.footerClasses;
var S=p.PrimaryButton;p=p.SecondaryButton;return _.m("div",{class:J},p?_.m(p,null):null,S?_.m(S,null):null)},"Zj");var ZjP=new _.ni("TIME_PICKER_VIEW_MODEL_TOKEN");var njl=_.d(function(p){var J=p.data;return _.m("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.m("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.m(_.AH,{data:function(){return J().avatar}},{avatarViewModel:_.iF})),_.m("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.m(_.v3,{text:function(){return J().title}})),_.m(_.v3,{text:function(){return J().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"$j");var GlP=_.d(function(p){return _.m("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.m(_.v3,{text:function(){return p.data().inviteMessage}})),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.m(_.v3,{text:function(){return p.data().attributedAccountSectionHeaderText}})),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.m(_.AH,{data:function(){return p.data().accountAvatar}},{avatarViewModel:_.iF}),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.m(_.v3,{text:function(){return p.data().accountName}}),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.m(_.v3,{text:function(){return p.data().handle}}))),_.m(_.AH,{data:function(){return p.data().trailingButton}},{buttonViewModel:_.D0})),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.m(_.v3,{text:function(){return p.data().termsOfService}})))},"ak");var bjM=_.d(function(p){var J=p.data;return _.m("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.m("div",{class:"ytAccessConfirmationViewModelContent"},_.m(_.AH,{data:function(){var S;return(S=J().avatar)!=null?S:J().dualAvatar}},{dualAvatarViewModel:function(S){return _.m(_.f4y,{data:S.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(S){return _.m(_.RH,{data:S.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.m("h2",{class:"ytAccessConfirmationViewModelTitle"},_.m(_.v3,{text:function(){return J().title}})),_.m(_.v3,{text:function(){return J().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"bk");var mAI=_.d(function(p){var J=p.data;var S=void 0;p=_.K(_.re(function(){var f;return((f=_.e(J().content,_.JPU))==null?void 0:f.defaultSelectedKey)||""}));
var H=p.next().value,M=p.next().value,X,Z=function(){M("");var f;(f=S)==null||f.cleanup()};
_.ad(function(){S=new Jb$;window.addEventListener("yt-popup-closed",Z)});
_.lf(function(){if(S&&X!==J().formId&&(S.onInit(J()),(X=J().formId)&&H())){var f=S,O={key:H()};O.command&&f.store.dispatch(DE$(X,O.command))}},"sAwss");
_.VY(function(){window.removeEventListener("yt-popup-closed",Z)});
var n=function(f,O,A){O.key&&A&&O.key!==H()&&(M(O.key),S&&O.command&&S.store.dispatch(DE$(A,O.command)))},b=function(){if(_.e(J().content,_.JPU))return!(H==null?0:H())},F=_.vO().resolve(_.F9(ZjP));
return _.m("yt-dialog-view-model",{class:_.XB("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.m(KRw,{Header:function(){return _.m(_.AH,{data:function(){return J().header}},{dialogHeaderViewModel:function(f){return _.m(Hjr,{data:f.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!J().header},
Content:function(){return _.m(_.AH,{data:function(){return J().customContent?J().customContent:J().content}},Object.assign({},{basicContentViewModel:_.ml,
createPlaylistDialogFormViewModel:jkP,collaborativePlaylistInviteMessageViewModel:GlP,miniAppScoreChallengeViewModel:pbU,radioButtonGroupViewModel:function(f){var O=f.data;return _.m(_.q4M,{data:O,selectedKey:H,onSelected:n,groupName:function(){return O().formId}})},
selectionListItemFormViewModel:SWP,upsellViewModel:function(f){return _.m(LWy,{data:f.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:njl,installmentAgreementsViewModel:rBM,accessConfirmationViewModel:bjM,listViewModel:function(f){return _.m(_.D5L,{data:f.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:XbP},F&&{timePickerViewModel:F}))},
Footer:function(){return _.m(_.AH,{data:function(){return J().footer}},{panelFooterViewModel:function(f){return _.m(_.ak,{data:f.data,
disablePadding:!0,disablePrimaryButton:b})},
formPanelFooterViewModel:MCf,formFooterViewModel:function(f){return _.m(_.sRI,{data:f.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!J().footer}}))},"dk");
mAI.idomCompat=!0;_.ci(mAI,"yt-dialog-view-model",{props:{data:_.fD},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var FRj=_.d(function(p){var J=p.data;return _.m("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.m(_.v,{cond:function(){return J().title},
then:function(S){return _.m("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.m(_.v3,{text:S,className:"ytPanelHeaderViewModelTitle"}))}}),_.m(_.v,{cond:function(){return J().subtitle},
then:function(S){return _.m(_.v3,{text:S,className:"ytPanelHeaderViewModelSubtitle"})}}))},"ek"),vjN=_.d(function(p){var J=p.data;
var S=_.ViW(function(){return J().rendererContext});
p={};return _.m("yt-panel-header-view-model",{class:_.XB("ytPanelHeaderViewModelHost",(p.ytPanelHeaderViewModelHostHideDivider=function(){return!!J().shouldHideDivider},p.ytPanelHeaderViewModelHostCompact=function(){return!!J().subtitle},p)),
"aria-label":function(){var H;return(H=S())==null?void 0:H.label}},_.m(_.v,{cond:function(){return _.Ul(J().rendererContext)},
then:function(){return _.m(_.O68,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.B$(J().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.m(FRj,{data:J}))},
else:function(){return _.m(FRj,{data:J})}}),_.m("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.m(_.AH,{data:function(){return J().trailingButtons}},{buttonViewModel:function(H){return _.m(_.D0,{data:H.data,
className:"ytPanelHeaderViewModelButton"})}})))},"fk");
vjN.idomCompat=!0;var fTP=_.d(function(p){var J=_.Kb(function(X){var Z;if((Z=p.skipContentClick)==null?0:Z.call(p))return!1;p.onContentWrapperClick(X);return!0}),S,H,M;
return _.m("div",{class:_.XB("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":""}},(S=p.header)==null?void 0:S.call(p),_.m("div",{id:p.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.G7({"max-height":(0,_.GR)(p.maxHeightForContentWrapper)}),"on:scroll":_.Kb(function(X){return p.onScroll(X),!1}),
"on:touchmove":_.Kb(function(X){return X.stopPropagation(),!1})},_.m("div",{el:_.Y2(p.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":J},(H=p.body)==null?void 0:H.call(p))),(M=p.footer)==null?void 0:M.call(p))},"gk");
fTP.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var Ojr=_.d(function(p){var J=_.rw(p.leadingLabel),S=_.rw(p.trailingLabel),H=_.rw(p.footerButtonType),M=function(){return J()||S()||p.hasPrimaryButton()||p.hasSecondaryButton()},X={},Z=_.XB("yt-spec-bottom-sheet-layout__primary-button",(X["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return H()===0&&p.hasPrimaryButton()},X["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return H()===1&&p.hasPrimaryButton()},X["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return H()===2&&p.hasPrimaryButton()},X["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return H()===3&&p.hasPrimaryButton()},X));
X={};var n=_.XB("yt-spec-bottom-sheet-layout__secondary-button",(X["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return H()===1&&p.hasSecondaryButton()},X["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return H()===2&&p.hasSecondaryButton()},X["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return H()===3&&p.hasPrimaryButton()},X));
return _.m(_.v,{cond:p.hasFooterOverride,then:function(){var b;return _.m(_.fV,null,(b=p.footerOverride)==null?void 0:b.call(p))},
else:function(){return _.m(_.v,{cond:M,then:function(){return _.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.m(_.v,{cond:function(){return J()||S()},
then:function(){var b={};return _.m("div",{class:_.XB("yt-spec-bottom-sheet-layout__footer-label-wrapper",(b["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!p.hasPrimaryButton()},b))},_.m(_.v,{cond:J,
then:function(){return _.m("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},J)}}),_.m(_.v,{cond:S,
then:function(){return _.m("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},S)}}))}}),_.m(_.v,{cond:function(){return p.hasPrimaryButton()||p.hasSecondaryButton()},
then:function(){var b={};return _.m("div",{class:_.XB("yt-spec-bottom-sheet-layout__footer-button-wrapper",(b["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.b9U,b))},_.m(_.v,{cond:function(){return p.hasSecondaryButton()&&H()!==0},
then:function(){var F;return _.m("div",{class:n},(F=p.secondaryButton)==null?void 0:F.call(p))}}),_.m(_.v,{cond:p.hasPrimaryButton,
then:function(){var F;return _.m("div",{class:Z},(F=p.primaryButton)==null?void 0:F.call(p))}}))}}))}})}})},"hk");
Ojr.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var AbI=_.d(function(p){var J=_.rw(p.title),S=_.rw(p.subtitle);return _.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:p.headerId,"on:touchstart":_.Kb(function(H){var M;(M=p.touchstart)==null||M.call(p,H);return!1}),
"on:touchmove":_.Kb(function(H){var M;(M=p.touchmove)==null||M.call(p,H);return!1}),
"on:touchend":_.Kb(function(H){var M;(M=p.touchend)==null||M.call(p,H);return!1})},_.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.m(_.v,{cond:p.hasHeaderOverride,
then:function(){var H;return _.m(_.fV,null,(H=p.headerOverride)==null?void 0:H.call(p))},
else:function(){var H={};return _.m("div",{class:_.XB((H["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,H["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=J,H))},_.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.m(_.v,{cond:J,then:function(){return _.m(_.fV,null,_.m("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},J),_.m(_.v,{cond:S,then:function(){return _.m("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
S)}}))}})),_.m(_.v,{cond:function(){return J()&&p.hasActionHeader()},
then:function(){var M;return _.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(M=p.actionHeader)==null?void 0:M.call(p))}}))}}))},"ik");
AbI.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.d(function(p){function J(Z3){if(!E&&typeof MutationObserver!=="undefined"){var vg={childList:!0};"MutationObserver"in window&&(E=new MutationObserver(S.bind(void 0,Z3)),E.observe(Z3,vg))}}
function S(Z3){typeof E!=="undefined"&&(a["content-wrapper"]===void 0&&(a["content-wrapper"]=Z3.children[0].clientHeight),y(a["content-wrapper"]),W()>t()||D(W()))}
function H(){P(window.innerHeight);W()>t()||D(W());q.isFullScreen[0]()&&W()>t()?w().dispatch("Snap To Full Screen",{maxHeight:k()}):w().dispatch("Snap To Neutral Position",{maxHeight:t()})}
function M(Z3){document.body.style.overscrollBehavior="none";Z3.preventDefault();w().dispatch("Touch Start",{event:Z3})}
function X(Z3){Z3.preventDefault();w().dispatch("Touch Move",{event:Z3,contentScrollable:W()>t(),fullContentWrapperHeight:k(),contentWrapperHeight:t(),heightMap:a,contentWrapperId:"content-wrapper",header:Err(p),footer:Err(p),headerDivHeight:a["bottom-sheet-header"],footerDivHeight:a["bottom-sheet-footer"]})}
function Z(){document.body.style.overscrollBehavior="";q.isFullScreen[0]()?q.currentY[0]()>=60?w().dispatch("Snap To Neutral Position",{maxHeight:t()}):w().dispatch("Snap To Full Screen",{maxHeight:k()}):q.currentY[0]()>=60?n():q.currentY[0]()<=-60&&W()>t()?w().dispatch("Snap To Full Screen",{maxHeight:k()}):w().dispatch("Snap To Neutral Position",{maxHeight:t()})}
function n(){w().dispatch("Close Sheet",{clientHeight:A(),maxHeight:0});setTimeout(function(){avp()},250)}
var b=_.nE("div"),F=_.nE("div"),f=_.K(_.eQ(window.innerHeight,void 0,"CmOsU")),O=f.next().value;f=f.next().value;var A=O,P=f;f=_.K(_.eQ(0,void 0,"p0Flhb"));O=f.next().value;f=f.next().value;var W=O,y=f;f=_.K(_.re(function(){var Z3=Err(p);return.6*A()-lvN(Z3)-V_y(Z3)}));
O=f.next().value;f=f.next().value;var t=O,D=f,k=function(){var Z3=Err(p),vg=A(),yX=a["bottom-sheet-header"],Pg=a["bottom-sheet-footer"];return vg-(Z3.hasHeaderFn&&yX!==void 0?yX:lvN(Z3))-(Z3.hasFooterFn&&Pg!==void 0?Pg:V_y(Z3))-24-24},E=null,a={},q={initialY:_.eQ(0,void 0,"sxdESd"),
currentY:_.eQ(0,void 0,"GZzqeb"),isAnimating:_.eQ(!1,void 0,"vJBupc"),isFullScreen:_.eQ(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.re(t)},w=function(){var Z3=null;return function(){if(!Z3){var vg={initialY:q.initialY[0](),currentY:q.currentY[0](),isAnimating:q.isAnimating[0](),isFullScreen:q.isFullScreen[0](),maxHeightForContentWrapper:q.maxHeightForContentWrapper[0]()};Z3=qjP(vg)}return Z3}}();
_.ad(function(){window.addEventListener("resize",H);w().subscribe(function(Z3){q.initialY[1](Z3.initialY);q.currentY[1](Z3.currentY);q.isAnimating[1](Z3.isAnimating);q.isFullScreen[1](Z3.isFullScreen);q.maxHeightForContentWrapper[1](Z3.maxHeightForContentWrapper)});
requestAnimationFrame(function(){b.value&&(a["bottom-sheet-header"]=b.value.clientHeight);F.value&&(a["bottom-sheet-footer"]=F.value.clientHeight)})});
_.VY(function(){window.removeEventListener("resize",H);E&&(E.disconnect(),E=null)});
var I=_.XB({"bottom-sheet-content-without-icon":function(){var Z3;return!((Z3=p.shouldShowIcons)==null?0:Z3.call(p))}});
return _.m("bottom-sheet-layout",null,_.m(fTP,{contentWrapperId:"content-wrapper",isAnimating:function(){return q.isAnimating[0]()},
currentY:function(){return q.currentY[0]()},
maxHeightForContentWrapper:function(){return q.maxHeightForContentWrapper[0]()},
shouldShowIcons:p.shouldShowIcons,skipContentClick:p.skipContentClick,onScroll:function(){var Z3=document.getElementById("bottom-sheet-header"),vg=document.getElementById("content-wrapper");if(Z3&&vg){var yX={};yX=(yX["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,yX["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,yX);Z3.className=vg.scrollTop>1?_.Qh(yX):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:avp,contentWrapperEl:function(Z3){J(Z3);requestAnimationFrame(function(){S(Z3)})},
header:function(){return _.m("div",{el:b},_.m(AbI,{touchstart:M,touchmove:X,touchend:Z,title:p.headerTitle,subtitle:p.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:p.headerFn,hasHeaderOverride:p.hasHeaderFn,actionHeader:p.headerActionHeader,hasActionHeader:p.hasHeaderActionHeader}))},
footer:function(){return _.m("div",{el:F},_.m(Ojr,{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 _.m(_.v,{cond:p.hasContentFn,then:function(){var Z3;return _.m("div",{class:I},(Z3=p.contentFn)==null?void 0:Z3.call(p))}})}}))},"jk").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var P3l=_.d(function(p){var J=_.vO().resolve(_.Sd);return _.m("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Kb(function(){return void J.closeSheet()})},_.m(_.v,{cond:function(){return!!p.header},
then:function(){return _.m("div",{class:"ytContextualSheetLayoutHeaderContainer"},p.header())}}),_.m(_.v,{cond:function(){return!!p.content},
then:function(){return _.m("div",{class:"ytContextualSheetLayoutContentContainer"},p.content())}}),_.m(_.v,{cond:function(){return!!p.footer},
then:function(){return _.m("div",{class:"ytContextualSheetLayoutFooterContainer"},p.footer())}}))},"kk");
P3l.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var zBP=_.d(function(p){var J=p.data;var S=_.vO().resolve(_.Ov),H=_.nE("yt-sheet-view-model",function(M){if(_.z("web_focus_first_element_sheet")||!_.z("sheet_focus_first_killswitch"))return M.addEventListener("focus",function(){v2w(M)}),function(){M.removeEventListener("focus",function(){v2w(M)})}});
p={};return _.m("yt-sheet-view-model",{"on:mousedown":_.Kb(function(M){_.z("sheet_focus_first_killswitch")||M.currentTarget!==M.target&&M.preventDefault()}),
"on:focus":_.Kb(function(){_.z("sheet_focus_first_killswitch")||v2w(H.value)}),
"on:mouseleave":_.Kb(function(){var M,X=J==null?void 0:(M=J())==null?void 0:M.rendererContext,Z;(M=(Z=_.e(X,_.gT))==null?void 0:Z.onHoverEnd)&&S.resolveCommand(M)}),
class:_.XB("ytSheetViewModelHost",(p.ytSheetViewModelContextual=!0,p.ytSheetViewModelDisableBackdropFilter=_.z("web_disable_backdrop_filter"),p)),el:H,tabindex:-1},_.m(_.v,{cond:J,then:function(M){return _.m(P3l,{header:function(){return _.m(_.AH,{data:function(){return M().header}},{panelHeaderViewModel:vjN})},
content:function(){return _.m(_.AH,{data:function(){return M().content}},{listViewModel:function(X){return _.m(_.D5L,{data:X.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:LWy,miniAppScoreChallengeViewModel:pbU})},
footer:function(){return _.m(_.AH,{data:function(){return M().footer}},{panelFooterViewModel:_.ak})}})}}))},"lk");
zBP.idomCompat=!0;_.ci(zBP,"yt-sheet-view-model",{props:{data:_.fD}});var ojN=_.d(function(p){var J=function(){var S;return(S=p.data().enableDebuggingFeatures)!=null?S:!1};
return _.m("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.m(_.dY,{each:function(){var S;return(S=p.data().stickers)!=null?S:[]}},function(S){return _.m($AP,{data:function(){return S},
debugMode:J})}))},"mk"),$AP=_.d(function(p){var J=_.jh(p,{debugMode:!1}).debugMode,S=_.rw(function(){var b;
return(b=p.data().region)==null?void 0:b.w},0),H=_.rw(function(){var b;
return(b=p.data().region)==null?void 0:b.h},0),M=_.rw(function(){var b;
return(b=p.data().region)==null?void 0:b.x},0),X=_.rw(function(){var b;
return(b=p.data().region)==null?void 0:b.y},0),Z=_.Kb(function(){var b=p.data().onTap;
b&&_.Dm(b)}),n={};
return _.m("div",{class:_.XB("ytStoriesStickerLayerViewModelSticker",(n.ytStoriesStickerLayerViewModelDebugMode=J,n)),style:_.G7({width:function(){return 100*S()+"%"},
height:function(){return 100*H()+"%"},
left:function(){return 100*M()+"%"},
top:function(){return 100*X()+"%"},
"flex-direction":function(){return Yjp(p.data().flexDirection)},
"justify-content":function(){return rdM(p.data().justifyContent)},
"align-items":function(){return j1r(p.data().alignItems)}}),
"on:click":Z},_.m(_.AH,{data:function(){return p.data().button||p.data().toggleButton}},{buttonViewModel:function(b){return _.m(_.D0,{data:b.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(b){return _.m(_.LD,{data:b.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"nk");var WR$=_.d(function(p){var J=function(){return p.data()},S={},H=_.K(_.eQ(!1,void 0,"SegA3d")),M=H.next().value,X=H.next().value,Z=_.rw(function(){return J().backgroundColor},0);
H=_.rw(function(){return J().actionButtons},[]);
var n=_.rw(function(){return J().stickerLayer},{}),b=function(){var f,O;
return{animationRef:S,animationConfig:{autoplay:!1,loop:!1,path:(O=(f=J().foregroundAnimation)==null?void 0:f.url)!=null?O:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){X(!0)},
complete:function(){p.navigateToNextItemOnLottieComplete()}}}},F=function(){var f,O,A,P,W,y,t,D;
return{animationConfig:{autoplay:(y=(f=J().backgroundAnimation)==null?void 0:(O=f.settings)==null?void 0:O.autoplay)!=null?y:!1,loop:(t=(A=J().backgroundAnimation)==null?void 0:(P=A.settings)==null?void 0:P.loop)!=null?t:!1,path:(D=(W=J().backgroundAnimation)==null?void 0:W.url)!=null?D:"",name:"stories_item_background_animation"}}};
_.lf(function(){if(p.isVisible()&&M()){var f;(f=S.lottieEl)==null||f.play();p.animationRef()&&(p.animationRef().lottieEl=S.lottieEl)}else{var O;(O=S.lottieEl)==null||O.stop()}},"MxM2wb");
return _.m("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.G7({"background-color":function(){return _.Bt(Z())+";"}})},_.m("div",{class:"ytStoriesItemViewModelAssetContent"},_.m(_.v,{cond:function(){return!!J().backgroundAnimation},
then:function(){return _.m(_.l1,{data:F,animationName:function(){return F().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.m(_.v,{cond:function(){return!!J().backgroundImage},
then:function(){return _.m(_.a4,{data:function(){return J().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.m(_.v,{cond:function(){return!!J().foregroundAnimation},
then:function(){return _.m(_.l1,{data:b,animationName:function(){return b().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.m(_.v,{cond:function(){return!!J().foregroundImage},
then:function(){return _.m(_.a4,{data:function(){return J().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.m("div",{class:"ytStoriesItemViewModelTopShadow"}),_.m(_.AH,{data:function(){return n()}},{storiesStickerLayerViewModel:ojN})),_.m("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.G7({"background-color":function(){return _.Bt(Z())}})},_.m("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.m(_.dY,{each:H},function(f){return _.m(eBP,{data:function(){return f},
pauseAutoNavigation:p.pauseAutoNavigation})}))))},"pk"),Q0I={style:"overlay",
type:"outline"},eBP=_.d(function(p){var J={};return _.m("div",{class:_.XB("ytStoriesItemViewModelActionButton",(J.ytStoriesItemViewModelStretchedActionButton=function(){return p.data().size==="STORIES_BUTTON_SIZE_STRETCH"},J)),
"on:click":_.Kb(p.pauseAutoNavigation)},_.m(_.AH,{data:function(){return p.data().button}},{buttonViewModel:function(S){return _.m(_.D0,{data:S.data,
buttonOverrides:Q0I})}}))},"qk");var C3M={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.ci(_.d(function(p){var J=function(){var Pg;return(Pg=p.data().startIndex)!=null?Pg:0},S=_.K(_.re(J)),H=S.next().value,M=S.next().value;
S=_.K(_.eQ(!1,void 0,"sjy7s"));var X=S.next().value,Z=S.next().value,n=function(){var Pg;return(Pg=p.data().storyItems)!=null?Pg:[]},b={},F=_.nE("yt-stories-viewer-view-model"),f=function(){return p.data().dismissButton},O=function(){var Pg;
return _.sa((Pg=_.e(f(),_.mO))==null?void 0:Pg.onTap)},A=_.nE("div"),P,W,y=!1,t=function(){var Pg;
(Pg=P)==null||Pg.cancel();P=D(H()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});P.onfinish=function(){var ov=_.e(n()[H()],W_w),NW,TW;ov!=null&&ov.foregroundAnimation&&((ov==null?0:(NW=ov.foregroundAnimation)==null?0:NW.url)||(ov==null?0:(TW=ov.foregroundAnimation)==null?0:TW.payload))||(H()!==n().length-1?(M(H()+1),t()):O()&&_.ge(O()))}},D=function(Pg){return A.value.children[Pg].children[0]},k=function(){for(var Pg=0;Pg<H();Pg++)D(Pg).style.transform=
"scaleX(1)"},E=function(){y||(X()?Z(!1):(H()===n().length-1&&O()&&_.ge(O()),D(H()).style.transform="scaleX(1)",H()!==n().length-1&&(M(H()+1),t())))},a=function(){y||(X()?Z(!1):(D(H()).style.transform="scaleX(0)",H()!==0&&M(H()-1),t()))},q=function(){Z(!0)},w=function(){D(H()).style.transform="scaleX(1)";
H()!==n().length-1?(M(H()+1),t()):O()&&_.ge(O())};
S=function(){y=!1;W=setTimeout(function(){Z(!0);y=!0},300)};
var I=function(){clearTimeout(W);y&&X()&&Z(!1)};
_.lf(function(){if(X()){var Pg;(Pg=P)==null||Pg.pause();var ov;(ov=b.lottieEl)==null||ov.pause()}else{var NW;(NW=P)==null||NW.play();var TW;(TW=b.lottieEl)==null||TW.play()}},"vAvZob");
_.lf(function(){k();H()===J()&&t()},"uSlfE");
var Z3=function(Pg){Pg.key==="ArrowLeft"?a():Pg.key==="ArrowRight"&&E()},vg=function(Pg){if(Pg.target===F.value){(Pg=O())&&_.ge(Pg);
clearTimeout(W);var ov;(ov=P)==null||ov.cancel();var NW;(NW=b.lottieEl)==null||NW.stop();window.removeEventListener("keydown",Z3);window.removeEventListener("yt-popup-closed",vg)}},yX=function(Pg){if(Pg.target===F.value){var ov;
(ov=b.lottieEl)==null||ov.play();window.addEventListener("keydown",Z3);window.addEventListener("yt-popup-closed",vg)}};
_.ad(function(){k();t();window.addEventListener("yt-popup-opened",yX)});
return _.m("yt-stories-viewer-view-model",{el:F,class:_.XB("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.m("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.m("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Kb(a),"on:mousedown":_.Kb(S),"on:mouseup":_.Kb(I),"on:mouseleave":_.Kb(I)}),_.m("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Kb(E),"on:mousedown":_.Kb(S),"on:mouseup":_.Kb(I),"on:mouseleave":_.Kb(I)})),
_.m("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.m(_.AH,{data:n},{storiesItemViewModel:function(Pg,ov){var NW=Pg.data;return _.m(_.v,{cond:function(){return Math.abs(ov()-H())<=1},
then:function(){var TW={};return _.m("div",{class:_.XB("ytStoriesViewerViewModelStoryItem",(TW.ytStoriesViewerViewModelActiveStoryItem=function(){return ov()===H()},TW))},_.m(WR$,{data:NW,
pauseAutoNavigation:q,navigateToNextItemOnLottieComplete:w,isVisible:function(){return ov()===H()},
animationRef:b}))}})}})),_.m("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:A},_.m(_.dY,{each:n},function(){return _.m("div",{class:"ytStoriesViewerViewModelProgressBar"},_.m("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.m("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.m(_.a4,{data:C3M,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.m("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.m(_.AH,{data:function(){return p.data().muteButton}},{toggleButtonViewModel:function(Pg){return _.m(_.LD,{data:Pg.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.m(_.AH,{data:f},{buttonViewModel:function(Pg){return _.m(_.D0,{data:Pg.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"tk"),"yt-stories-viewer-view-model",{props:{data:_.fD}});_.ci(_.d(function(p){var J=p.data;var S=_.nE("yt-gen-ai-feedback-form-view-model"),H=[];return _.m("yt-gen-ai-feedback-form-view-model",{el:S,class:"ytGenAiFeedbackFormViewModelHost"},_.m(_.v3,{text:function(){return J().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.m("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.m(_.AH,{data:function(){return J().feedbackChips}},{toggleButtonViewModel:function(M){var X=M.data;
return _.m(_.LD,{data:X,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(Z){var n=X();n=_.e(n,_.f5);n=_.e(n==null?void 0:n.defaultButtonViewModel,_.mO).trackingParams;Z?H.push(n):(Z=H.indexOf(n),Z>-1&&H.splice(Z,1))}})}})),_.m(_.v3,{text:function(){return J().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.m("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.m(_.AH,{data:function(){return J().submitButton}},{buttonViewModel:function(M){return _.m(_.D0,{data:M.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){wjU(S.value,H,J().uniqueId)}})}}),_.m(_.AH,{data:function(){return J().moreFeedbackButton}},{buttonViewModel:function(M){return _.m(_.D0,{data:M.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"uk"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.fD},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var ej=function(){return _.T.apply(this,arguments)||this};
_.Q(ej,_.T);ej.prototype.created=function(){hSl(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Baj);var p=_.vO().resolve(_.s2N);p&&(p.container=this.ytPopupContainerBehavior);if(p=_.vO().resolve(_.Sd))p.container=this.ytPopupContainerBehavior;if(p=_.vO().resolve(_.Hw)){var J=this.ytPopupContainerBehavior;p.containerWasInjected?_.xQ(Error("qj")):p.container=J}};
ej.prototype.ensurePopupBelowPlayer=function(p,J){var S=_.vO().resolve(_.F9(_.xz));if(!S||!S.isOnWatch()||!_.IY())return!1;S=S.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.FV().height>S+this.getPopupHeight(p,J)?(p.style.top="auto",p.style.bottom="0px"):(p.style.top=S+"px",p.style.bottom="auto");return!0};
ej.prototype.getPopupHeight=function(p,J){J&&(p.cachedPopupHeight=0);if(!p.cachedPopupHeight){J=0;var S=p.clientHeight,H=window.getComputedStyle(p);J+=parseInt(H.marginTop,10);J+=parseInt(H.marginBottom,10);p.cachedPopupHeight=S+J}return p.cachedPopupHeight};
ej.prototype.getElement=function(p){return document.createElement(p)};
_.V([_.B(ZZM.YtPopupContainerBehavior),_.Y("design:type",Object)],ej.prototype,"ytPopupContainerBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],ej.prototype,"ytComponentBehavior",void 0);_.V([_.gw({disableElementRegistration:!0,is:"ytd-popup-container"})],ej);
_.l(ej,"ytd-popup-container",function(){if(pcM!==void 0)return pcM;var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);return pcM=p},{mode:1});var ybN;var Bcl={};Bcl.YtLogYpcFlowCommandsBehavior=[_.u1.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){_.e(p,qoy)&&(p=_.e(p,qoy))&&(p.serializedTransactionFlowLoggingParams?_.f5w(p.serializedTransactionFlowLoggingParams):p.serializedYpcCancelFlowLoggingParams?(p=p.serializedYpcCancelFlowLoggingParams)&&_.rP("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",p):p.serializedYpcResumeFlowLoggingParams?(p=p.serializedYpcResumeFlowLoggingParams)&&_.rP("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",p):p.serializedYpcPauseFlowLoggingParams?(p=p.serializedYpcPauseFlowLoggingParams)&&
_.rP("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",p):p.serializedYpcRefundFlowLoggingParams?(p=p.serializedYpcRefundFlowLoggingParams)&&p$I("YPC_EVENT_TYPE_START",p):p.serializedYpcDeactivateFlowLoggingParams?(p=p.serializedYpcDeactivateFlowLoggingParams)&&_.rP("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",p):p.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(p=p.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.rP("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",p))},
handleLogYpcFlowDismiss_:function(p){_.e(p,Vfr)&&(p=_.e(p,Vfr),p.serializedTransactionFlowLoggingParams?_.OMX(p.serializedTransactionFlowLoggingParams):p.serializedYpcCancelFlowLoggingParams?(p=p.serializedYpcCancelFlowLoggingParams)&&_.rP("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",p):p.serializedYpcResumeFlowLoggingParams?(p=p.serializedYpcResumeFlowLoggingParams)&&_.rP("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",p):p.serializedYpcPauseFlowLoggingParams?(p=
p.serializedYpcPauseFlowLoggingParams)&&_.rP("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",p):p.serializedYpcRefundFlowLoggingParams&&(p=p.serializedYpcRefundFlowLoggingParams)&&p$I("YPC_EVENT_TYPE_CANCEL",p))}}];var UAP={};UAP.YtCancelRecurrenceBehavior=[_.KD.YtComponentBehavior,_.KhU,{attached:function(){var p=this;Oi$(this,function(J,S){return p.ypcCancelRecurrenceHandler(J,S)})},
ypcCancelRecurrenceHandler:function(p,J){var S=this;if(!J||!J.ypcCancelRecurrenceEndpoint)return!1;if(!J.ypcCancelRecurrenceEndpoint.params)return _.xv(Error("Sl")),!0;_.k8(this.hostElement);var H=_.un.instance,M=_.vO().resolve(_.F9(_.Or));H&&_.ln(H,J)?_.VI(H,J).then(function(X){S.ypcCancelRecurrenceSuccess_(p,J,{data:X})},function(X){S.ypcCancelRecurrenceFailure_(p,J,X)}).thenCatch(function(){_.xv(Error("Tl"))}):M?M.requestDataForServiceEndpoint(J).then(function(X){S.ypcCancelRecurrenceSuccess_(p,
J,X)},function(X){S.ypcCancelRecurrenceFailure_(p,J,X)}).thenCatch(function(){_.xv(Error("Tl"))}):_.xv(Error("Ul"));
return!0},
ypcCancelRecurrenceSuccess_:function(p,J,S){_.NB(this.hostElement);S.data||(S={data:S});S.data&&S.data.actions&&_.JP(this.hostElement,S.data.actions,this.hostElement);S.data.messageRenderer?SlU(J.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(J=J.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.rP("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",J);_.cf(p,"yt-service-request-completed",S)},
ypcCancelRecurrenceFailure_:function(p,J,S){_.NB(this.hostElement);SlU(J.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.cf(p,"yt-service-request-error",{error:S,params:[p,J]})}}];var s0M=function(p,J){_.pL.call(this,J)};
_.Q(s0M,wPl);var gjl={};gjl.YtCompleteTransactionBehavior=[_.KD.YtComponentBehavior,_.KhU,{attached:function(){var p=this;Oi$(this,function(J,S){return p.ypcCompleteTransactionHandler(J,S)})},
completeTransaction:function(p,J){var S=this;J={payments_payload:window.btoa(J.integratorData),buybucket_params:p.data.buybucketParams,offer_params:p.data.offerParams};var H=_.vO().resolve(_.Or),M=p.data.completeTransactionEndpoint,X=this.get("ypcCompleteTransactionEndpoint.actions",M);X&&_.JP(this.hostElement,X,this.hostElement);return(X=_.un.instance)&&_.ln(X,M)?_.VI(X,M,J).then(function(Z){return!Z||(Z==null?0:Z.error)?(Z=S.get("data.serializedTransactionFlowLoggingParams",p),_.o4(new XO("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
Z))):{data:Z}}).then(function(Z){return S.handleCompleteTransactionSuccess_(Z,p)},function(){return S.handleCompleteTransactionFailure_(p)}):H.requestDataForServiceEndpoint(M,J).then(function(Z){return S.handleCompleteTransactionSuccess_(Z,p)},function(){return S.handleCompleteTransactionFailure_(p)})},
handleCompleteTransactionSuccess_:function(p,J){p.data||(p={data:p});if(p.data.messageRenderer)return _.o4(new s0M(p.data.messageRenderer));if(p.data.trackingParams){var S=_.C1(),H=_.Wf();S&&H&&_.kO(S,H,_.Az(p.data.trackingParams))}J=this.get("data.serializedTransactionFlowLoggingParams",J);JHM(J);return _.SU(p)},
handleCompleteTransactionFailure_:function(p){p=this.get("data.serializedTransactionFlowLoggingParams",p);_.qc("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",p);return _.o4(new XO("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",p))},
ypcCompleteTransactionHandler:function(p,J){var S=this;if(!J.ypcCompleteTransactionEndpoint)return!1;if(!J.ypcCompleteTransactionEndpoint.transactionParams)return _.xv(Error("Vl")),!0;J.ypcCompleteTransactionEndpoint&&J.ypcCompleteTransactionEndpoint.gtmData&&_.cR(J.ypcCompleteTransactionEndpoint.gtmData);var H=_.vO().resolve(_.F9(_.Or));if(H){_.k8(this.hostElement);var M=_.un.instance;M&&_.ln(M,J)?_.VI(M,J).then(function(X){return!X||(X==null?0:X.error)?(X=S.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
J),_.o4(new XO("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",X))):{data:X}}).then(function(X){_.cf(p,"yt-service-request-completed");
S.ypcCompleteTransactionSuccess_(J,X)},function(){return S.ypcCompleteTransactionFailure_(J)}):H.requestDataForServiceEndpoint(J).then(function(X){_.cf(p,"yt-service-request-completed");
S.ypcCompleteTransactionSuccess_(J,X)},function(){return S.ypcCompleteTransactionFailure_(J)})}return!0},
ypcCompleteTransactionSuccess_:function(p,J){_.NB(this.hostElement);J.data||(J={data:J});_.IV(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);J.data.messageRenderer||J.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(p):(_.cR('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",p));J.data.actions&&(p=T4y(J.data.actions),J=dUM(J.data.actions),p.length&&_.pl(this.hostElement,
p),J.length&&_.JP(this.hostElement,J,this.hostElement))},
ypcCompleteTransactionFailure_:function(p){_.NB(this.hostElement);_.IV(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",p,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(p,J,S){if(J=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",J))J={serializedTransactionFlowLoggingParams:J},S&&(J.errorType=S),_.YQ(p,J),_.rf()}}];var tCP={};tCP.YtEndpointHandlerWithYpcBehavior=[_.KhU,_.u1.YtActionHandlerBehavior,[{openWalletDialog:function(p,J,S,H,M,X,Z){var n=this,b=_.qr();J=J.replace(/-/g,"+").replace(/_/g,"/");var F=_.Gv().get("hl");_.N8g(_.x8(_.as),J,b.resolve,M,function(f){X&&X();b.reject(f)},F,function(f){return n.onServerBackendAnalyticEvent_(p,S,f)},this.onDialogClose_.bind(this),H,Z);
return b.promise},
openFixFlowDialog:function(p,J,S,H){p=p.replace(/-/g,"+").replace(/_/g,"/");_.x8(_.as).openFixFlowDialog(p,J,S,H)},
onDialogClose_:function(){_.IV(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(p,J,S){_.cf(p,"yt-commerce-action-init-done");J&&_.pl(this.hostElement,[J,{backend_analytics:S}])}}],
_.T_.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(p,J){p=this.get("data.nativeFlowEndpoint",J);J=this.get("data.fallbackEndpoint",J);p?_.pl(this.hostElement,[p]):J&&_.cf(this.hostElement,"yt-navigate",{endpoint:J})}}],
UAP.YtCancelRecurrenceBehavior,gjl.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;Oi$(this,function(J,S,H){return p.handleYPCEndpoint(J,S,H)});
this.ypcRegisterActionMapJobId_=_.uS(_.wg,function(){p.registerActionMap(p.buyFlowActionMap_)})},
detached:function(){var p=this;_.wg.cancelJob(this.ypcRegisterActionMapJobId_);_.uS(_.wg,function(){p.unregisterActionMap(p.buyFlowActionMap_)})},
handleYPCEndpoint:function(p,J,S){var H=J.ypcGetCartEndpoint;if(H){_.W9("commerce_transaction");var M=H.gtmId;M&&_.xw(M);(H=H.gtmData)&&_.cR(H)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",J)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(p,J),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",J)!=null?(this.handleYPCFixInstrumentEndpoint_(p,J),!0):J.ypcPauseSubscriptionCommand?(MEN(this.hostElement,p,J,S),
!0):J.ypcResumeSubscriptionCommand?(R_U(this.hostElement,p,J),!0):J.getPaymentInstrumentsParamsCommand?(Jel(this.hostElement,p,J),!0):J.ypcHandleTransactionEndpoint?(Lkw(this.hostElement,p,J,S),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(p,J){var S=this;_.Qf("ttcr",void 0,"commerce_transaction");J=J.ypcGetCartEndpoint;var H=J.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,M=H.encryptedPurchaseParams,X=H.serializedTransactionFlowLoggingParams,Z=H.serializedPaymentsClientParams,n=this.createGetCartResponseFromParams_(H,J.offerParams,X);this.changeButtonState(p,!0);_.Nv(this.openWalletDialog(p,M,H.ypcLogWalletAnalyticDataEndpoint,X,function(){S.changeButtonState(p,!1)},function(){S.changeButtonState(p,
!1)},Z).then(function(b){return S.handleBuyFlowCompleteCallback_(p,n,b)},function(){return S.handleOnLoadError(n)}).then(function(b){return void S.handlePostPurchaseSuccess_(p,n,b)},function(b){return void S.handlePostPurchaseError_(b)}),function(){S.changeButtonState(p,!1);
p instanceof Element&&_.cf(p,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(p,J,S){var H=p.completeTransactionEndpoint,M=p.handleTransactionEndpoint;J={data:{offerParams:window.btoa(J),serializedTransactionFlowLoggingParams:S}};M?J.data.handleTransactionEndpoint=M:J.data.completeTransactionEndpoint=H;p.onCartDismissCommand&&(J.data.onCartDismissCommand=p.onCartDismissCommand);return J},
onGetCartServiceRequestCompleted_:function(p,J){var S=this,H=p.target;if(J&&J.data&&J.data.messageRenderer)_.NB(this.hostElement),this.handleMessageRenderer_(J.data.messageRenderer),this.changeButtonState(H,!1);else{var M=this.get("data.encryptedPurchaseParams",J),X=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",J),Z=this.get("data.ypcLogWalletAnalyticDataEndpoint",J),n=this.get("data.serializedPaymentsClientParams",J),b=this.getLoggingParams_(J);if(b||M||X)p.stopPropagation(),_.Qf("ttcr",
void 0,"commerce_transaction"),M||_.NB(this.hostElement),this.changeButtonState(H,!1),X?_.IV(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.jn("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:X}}},this]):M&&(this.changeButtonState(H,!0),p=null,p=this.openWalletDialog(H,M,Z,b,function(){_.NB(S.hostElement);S.changeButtonState(H,!1)},function(){_.NB(S.hostElement);
S.changeButtonState(H,!1)},n),_.Nv(p.then(function(F){return S.handleBuyFlowCompleteCallback_(H,J,F)},function(){return S.handleOnLoadError(J)}).then(function(F){return S.handlePostPurchaseSuccess_(H,J,F)},function(F){return S.handlePostPurchaseError_(F)}),function(){S.changeButtonState(H,!1);
_.cf(H,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(p,J){J&&J.endpoint&&J.endpoint.ypcGetCartEndpoint&&!J.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",J.endpoint.ypcGetCartEndpoint)&&_.JP(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",J.endpoint.ypcGetCartEndpoint)],p.target),_.k8(this.hostElement),this.changeButtonState(p.target,!0))},
onServiceRequestError_:function(p,J){if(J&&J.params&&J.params.length){J=_.K(J.params);for(var S=J.next();!S.done;S=J.next())if((S=S.value)&&S.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",S.ypcGetCartEndpoint)&&_.JP(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",S.ypcGetCartEndpoint)],p.target);_.NB(this.hostElement);this.changeButtonState(p.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(p,J,S){var H=S.integratorData;return H==null||H===""||S.error!=null?(H=this.getLoggingParams_(J),String(S.error)==="-1"?(J.data.onCartDismissCommand&&_.JP(this.hostElement,[J.data.onCartDismissCommand],p),_.o4(new XO("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",H,!0))):_.o4(new XO("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",H))):J.data.handleTransactionEndpoint?pzP(this.hostElement,J.data.handleTransactionEndpoint,{payments_payload:H,funds_guarantee_callback_client_data:S.integratorClientCallbackData}):
this.completeTransaction(J,S)},
handlePostPurchaseSuccess_:function(p,J,S){J=S.data;var H=!1,M,X;if(J&&((M=J.command)==null?0:(X=M.commandExecutorCommand)==null?0:X.commands)){var Z,n;M=(Z=J.command)==null?void 0:(n=Z.commandExecutorCommand)==null?void 0:n.commands;for(Z=0;Z<M.length;Z++)if(_.e(M[Z],_.ZFd)){H=!0;break}}H||(J&&J.gtmDatas&&J.gtmDatas.length?_.cR(J.gtmDatas[0]):_.cR('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));S.data&&S.data.actions&&(J=T4y(S.data.actions),S=dUM(S.data.actions),J.length&&
_.pl(this.hostElement,J),S.length&&_.JP(this.hostElement,S,p))},
handlePostPurchaseError_:function(p){p&&p.payload&&p.payload.isUserDismiss||_.jD(Error("Xl"))},
handleOnLoadError:function(p){p=this.getLoggingParams_(p);return _.o4(new XO("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",p))},
getLoggingParams_:function(p){return this.get("data.serializedTransactionFlowLoggingParams",p)},
handleMessageRenderer_:function(p){var J=_.Eg(p,"renderer"),S=_.jn("openPopupConfig");J==="confirmDialogRenderer"&&S&&_.IV(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:S.popupTypeMap[J],popup:p}},this])},
handleYPCFixInstrumentEndpoint_:function(p,J){var S=this,H=J.ypcFixInstrumentEndpoint;J=H.encryptedFixInstrumentParameters;this.logFixFopEvent_(H,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(p,!0);this.openFixFlowDialog(J,function(M,X){S.onFixFlowCompleteCallback_(H,M,X)},function(){return S.changeButtonState(p,!1)},function(){S.changeButtonState(p,!1);
S.logFixFopEvent_(H,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(p,J,S){var H=_.Id("payments.business.integration.scenario.FixInstrument");if(J==H.IntegratorCallbackType.ON_COMPLETE){J="FIX_FOP_EVENT_TYPE_CANCEL";var M=null;S.error!=null?S.error!=H.OnCompleteCallbackError.USER_CANCELLED&&(_.JP(this.hostElement,[p.errorAction],this.hostElement),J="FIX_FOP_EVENT_TYPE_FAILURE",M="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.JP(this.hostElement,[p.successAction],this.hostElement),J="FIX_FOP_EVENT_TYPE_SUCCESS");_.JP(this.hostElement,[p.onFinishAction],
this.hostElement);this.logFixFopEvent_(p,J,M)}},
logFixFopEvent_:function(p,J,S){(p=p.serializedFixFopLoggingParams)?(J={eventType:J,serializedFixFopLoggingParams:p},S!=null&&(J.errorType=S),_.YQ("fixFopFlow",J),_.rf()):_.jD(Error("Yl"))},
changeButtonState:function(p,J){_.z("enable_ypc_spinners")&&p&&(p.is==="yt-button-renderer"||p.is==="ytd-button-renderer")&&(p.disabled=J)}}];var hBI=function(p){this.JSC$33138_clientRoot=p;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Znj,"yt-feedback-dialog-requested":KEP,"yt-signal-action-help":nf$,"yt-signal-action-send-feedback":GiU,"yt-send-feedback-action":mve,"yt-user-feedback-endpoint":FEp};_.RZ(_.XK.getInstance(),this.feedbackCollectorActionMap,this.JSC$33138_clientRoot)},DAl;var klf=function(p){this.JSC$33143_clientRoot=p;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":vfP.bind(null,this.JSC$33143_clientRoot),"yt-signal-action-delete-all-downloads":AeP,"yt-signal-action-delete-download":PVN,"yt-signal-action-delete-playlist-download":$vl,"yt-signal-action-install-pwa":yer,"yt-signal-action-refresh-downloads":QqU,"yt-offline-video-endpoint":Uvy,"yt-offline-playlist-endpoint":gfp,"yt-update-local-app-setting-command":h_$,"yt-offline-orchestration-action-command":kiN,
"yt-signal-action-undo-delete-download":e_N,"yt-local-watch-history-command":dvj,"yt-signal-action-mark-download-to-mobile-edu-shown":loe};_.RZ(_.XK.getInstance(),this.downloadManagerActionMap,this.JSC$33143_clientRoot);_.Te.instance=new _.Te},NcU;var Wa=function(){var p=_.T.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};
_.Q(Wa,_.T);_.R=Wa.prototype;
_.R.ready=function(){_.z("polymer_enable_mdx")&&(fjP({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.z("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.z("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.z("enable_cast_short_lived_lounge_token")}),_.oJ("yt-remote-connection-change",this.handleConnectionChange_,this),_.oJ("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=WsI())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.R.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.R.handleConnectionChange_=function(p){(this.mdxConnected=p)?(p=P9I(),!p&&L2U()&&p_M()&&(p={key:"cast-selector-receiver",name:p_M()}),p=p.name):p=null;this.receiverName=p;_.iW(this.remoteApi_);(this.remoteApi_=WsI())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.R.handleReceiverAvailabilityChange_=function(){var p=AFp();L2U()&&_.$t("yt-remote-cast-available")&&p.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=p.length>0};
_.R.handleRemoteQueueChange_=function(){var p=this.currentVideoId_,J=this.currentListId_,S=y6(this.remoteApi_);this.currentVideoId_=S.videoId;this.currentListId_=S.listId;this.currentVideoId_&&_.IV(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.z("polymer_enable_mdx_queue")?this.currentListId_:null,p,J])};
_.R.handleAddToQueueAction_=function(p){p=_.e(p,Q3l);this.remoteApi_&&(p.videoId?this.remoteApi_.addVideo(p.videoId):p.playlistId&&this.remoteApi_.addPlaylist(p.playlistId))};
_.R.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.R.handleInsertInQueueAction_=function(p){p=_.e(p,Czp);this.remoteApi_&&p.videoId&&this.remoteApi_.JSC$20329_insertVideo(p.videoId)};
_.R.handleRemoveFromQueueAction_=function(p){p=_.e(p,yAl);this.remoteApi_&&p.videoId&&this.remoteApi_.JSC$20329_removeVideo(p.videoId)};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],Wa.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N(),_.Y("design:type",Object)],Wa.prototype,"appId",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Wa.prototype,"mdxConnected",void 0);_.V([_.N(),_.Y("design:type",Boolean)],Wa.prototype,"receiverAvailable",void 0);_.V([_.N(),_.Y("design:type",Object)],Wa.prototype,"receiverName",void 0);_.V([_.N(),_.Y("design:type",Object)],Wa.prototype,"currentVideoId_",void 0);
_.V([_.N(),_.Y("design:type",Object)],Wa.prototype,"currentListId_",void 0);_.V([_.sD({is:"yt-mdx-manager",disableElementRegistration:!0})],Wa);_.l(Wa,"yt-mdx-manager",void 0,{mode:2});var Tcr;var dAP;var QW=function(){var p=_.T.apply(this,arguments)||this;p.APP_IDS={ytr:3,ytm:5};p.JSC$21562_timeoutId_=0;p.actionMap={"yt-open-create-family-dialog":"open"};return p};
_.Q(QW,_.T);_.R=QW.prototype;_.R.created=function(){hSl(2200)};
_.R.detached=function(){this.observer_&&this.observer_.disconnect()};
_.R.open=function(p,J){var S=this,H=p.serializedYpcFamilyCreateLoggingParams;this.JSC$21562_timeoutId_=setTimeout(this.abort_.bind(this,p.postFlowErrorEndpoint,H),3E4);J&&(this.onReadyCallback_=J);var M=_.Jn(this.hostElement).querySelector("#unicorn-iframe");H&&H&&LMN("ypcFamilyCreateFlowStarted",H);_.XN9("family_creation",function(){var X=_.Id("gapi.family_creation.render");_.Id("gapi.config.update")("iframes/family_creation/url",S.getFamilyCreationUrlWithUnicornParams_());var Z=3;p.appId&&p.appId in
S.APP_IDS&&(Z=S.APP_IDS[p.appId]);Z={authUser:_.jn("SESSION_INDEX")||0,clientId:Z,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.jn("HL"),initialflow:[4,5,6,7],m:S.isMobile?1:0,onFlowComplete:S.onUnicornFlowComplete_.bind(S,p.postFlowSuccessEndpoint,H),onError:S.onUnicornFlowError_.bind(S,p.postFlowErrorEndpoint,H),onReady:S.onUnicornFlowReady_.bind(S,p.referencePcidParams)};X(M,Z)})};
_.R.close=function(){_.Jn(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.R.onUnicornFlowComplete_=function(p,J){this.close();J&&J&&LMN("ypcFamilyCreateFlowSucceeded",J);_.cf(this.hostElement,"yt-navigate",{endpoint:p})};
_.R.onUnicornFlowError_=function(p,J){this.close();J&&LMN("ypcFamilyCreateFlowCancelled",J);_.cf(this.hostElement,"yt-navigate",{endpoint:p})};
_.R.onUnicornFlowReady_=function(p){var J=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();p&&_.Id("gapi.family_creation.setConfig")(0,p);this.observer_=new MutationObserver(function(){_.Jn(J.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Jn(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Jn(this.hostElement).querySelector("#dialog").open()};
_.R.getFamilyCreationUrlWithUnicornParams_=function(){return _.jn("YTR_FAMILY_CREATION_URL")};
_.R.getCurrentUrl_=function(){return document.location.href};
_.R.abort_=function(p,J){this.clearTimeout_();this.onUnicornFlowError_(p,J)};
_.R.clearTimeout_=function(){clearTimeout(this.JSC$21562_timeoutId_)};
_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],QW.prototype,"ytActionHandlerBehavior",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],QW.prototype,"isMobile",void 0);_.V([_.N(),_.Y("design:type",Object)],QW.prototype,"onReadyCallback_",void 0);_.V([_.N(),_.Y("design:type",Object)],QW.prototype,"observer_",void 0);_.V([_.sD({is:"yt-create-family-dialog",disableElementRegistration:!0})],QW);
_.l(QW,"yt-create-family-dialog",function(){if(dAP===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),p.content.firstChild);var J=p.content,S=J.insertBefore;Tcr===void 0&&(Tcr=document.createElement("template"));var H=Tcr;S.call(J,H.content.cloneNode(!0),p.content.firstChild);dAP=p}p=dAP;return p},{mode:2});var uZf;var lTe;var CK=function(){var p=_.T.apply(this,arguments)||this;p.STEP=1;p.BLOCK_ON=80;p.MIN_PROGESS=0;p.MAX_PROGESS=100;return p};
_.Q(CK,_.T);_.R=CK.prototype;_.R.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.R.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));_.vO().addProvider({provide:bWp,useValue:this})};
_.R.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.R.finish=function(){var p=this;this.progress=this.MAX_PROGESS;VEy(function(){p.progress==p.MAX_PROGESS&&(p.hostElement.hidden=!0)})};
_.R.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.vh.Object.defineProperties(CK.prototype,{progress:{configurable:!0,enumerable:!0,set:function(p){this.progress_=p;var J="scaleX("+p/this.MAX_PROGESS+")",S=_.Jn(this.hostElement).querySelector("#progress").style;S.transform=J;S.webkitTransform=J;this.hostElement.setAttribute("aria-valuenow",String(p))},
get:function(){return this.progress_}}});
_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],CK.prototype,"ytComponentBehavior",void 0);_.V([_.sD({is:"yt-page-navigation-progress",disableElementRegistration:!0})],CK);
_.l(CK,"yt-page-navigation-progress",function(){if(lTe===void 0){var p=document.createElement("template");_.C(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(_.r().content.cloneNode(!0),
p.content.firstChild);var J=p.content,S=J.insertBefore;uZf===void 0&&(uZf=document.createElement("template"));var H=uZf;S.call(J,H.content.cloneNode(!0),p.content.firstChild);lTe=p}p=lTe;return p},{mode:2});var VCy={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"},qWI={"font-size":"12px","font-style":"italic"},aTy={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.YnU=function(){return _.G(function(p){_.UK(p)})};var Ejp=_.d(function(p){var J=function(){return p.data().subtext},S={};
return _.m("snackbar-view-model",{class:_.XB("snackbarViewModelHost",p.className)},_.m("div",{class:_.XB("snackbarViewModelEngagementBarWrapper",p.className)},_.m(_.v,{cond:function(){return p.data().image},
then:function(H){return _.m(_.a4,{data:H,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.m(_.v,{cond:function(){return p.data().imageContent},
then:function(){return _.m("div",{class:"snackbarViewModelAvatarContainer"},_.m(_.AH,{data:function(){return p.data().imageContent}},{decoratedAvatarViewModel:_.RH}))}}),_.m("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.m("div",{class:_.XB((S.snackbarViewModelTitle=!0,S.snackbarViewModelTitleWithSubtext=J,S))},_.m(_.v3,{text:function(){return p.data().text}})),_.m(_.v,{cond:J,
then:function(){return _.m("div",{class:"snackbarViewModelSubtext"},_.m(_.v3,{text:function(){return J()}}))}})),_.m(_.v,{cond:function(){return p.data().buttons},
then:function(){return _.m("div",{class:"snackbarViewModelButtonClassWrapper"},_.m(_.AH,{data:function(){return p.data().buttons}},{buttonViewModel:function(H){return _.m(_.D0,{data:H.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:p.target})}}))}})))},"vk");_.ci(_.d(function(){function p(k,E,a){W(k);t(a);A("in");f(!0);J(k,E);Z=setTimeout(function(){S()},E)}
function J(k,E){var a,q=(a=k.text)==null?void 0:a.content;k=_.B$(k.rendererContext);q&&(E={label:q,command:k,durationMs:E},_.vO().resolve(_.gP).enqueue(E))}
function S(k){A("out");k&&clearTimeout(Z)}
function H(){S(!0)}
function M(k){if(k){var E=k.snackbarViewModel,a=k.durationMs,q=k.target;a||(a=3E3);E&&(k=_.vO().resolve(_.F9(_.CZ)))&&k.enqueue({isOpened:F,open:function(){p(E,a,q)},
close:S},0)}}
var X=_.mo("snackbar-container"),Z=void 0,n=_.K(_.eQ(!1,void 0,"mDc5N")),b=n.next().value;n=n.next().value;var F=b,f=n;b=_.K(_.eQ("out",void 0,"FpOs5e"));var O=b.next().value,A=b.next().value;b=_.K(_.eQ(void 0,void 0,"jIDRob"));var P=b.next().value,W=b.next().value;b=_.K(_.eQ(void 0,void 0,"kOA3Mb"));var y=b.next().value,t=b.next().value,D=_.Kb(function(){if(O()==="out"){f(!1);W(void 0);t(void 0);var k=_.vO().resolve(_.F9(_.CZ));k&&juI(k,0)}});
_.ad(function(){var k=_.vO().resolve(_.F9(_.B2e));k&&(k.showSnackbarFn=M,k.closeSnackbarFn=H)});
return _.m("snackbar-container",{class:"ytSnackbarContainerHost",el:X},_.m(_.v,{cond:function(){return F()&&!!P()},
then:function(){var k={};return _.m("div",{class:_.XB("ytSnackbarContainerSnackbarContainer",(k.ytSnackbarContainerMobile=!1,k.ytSnackbarContainerPivotBar=function(){var E;return!((E=_.vO().resolve(_.F9(_.U0p)))==null||!E())},k.ytSnackbarContainerOpened=function(){return F()&&O()==="in"},k.ytSnackbarContainerClosed=function(){return F()&&O()==="out"},k)),
"on:animationend":D},_.m(Ejp,{data:function(){return P()},
target:function(){return y()}}))}}))},"wk"),"snackbar-container");_.ci(_.M8p,"yt-tooltip");var YWw=_.msp.ephemeralActionSelector;_.ci(_.d(function(){var p=_.fb(YWw);return _.m("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var J;return(J=p())==null?void 0:J.announcement})},"xk"),"yt-ephemeral-actions");var bNI=new Map;var CCU=function(p,J){var S=this;this.handleError=p;this.logEventInternal=J;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){S.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
CCU.prototype.logError=function(p){this.handleError(p)};
CCU.prototype.logEvent=function(p,J){switch(p){case "IDB_DATA_CORRUPTED":_.z("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",J);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",J);break;case "IS_SUPPORTED_COMPLETED":_.z("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",J);break;case "QUOTA_EXCEEDED":rbj(this,J);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",J);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":p=Object.assign({},J,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",p)}};
var rbj=function(p,J){_.hj.getInstance().estimate().then(function(S){S=Object.assign({},J,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:Fbf(S==null?void 0:S.usage),deviceStorageQuotaMbytes:Fbf(S==null?void 0:S.quota)});p.logEventInternal("idbQuotaExceeded",S)})};var j0$=_.d(function(p){var J=_.nE("yt-draggable"),S=p.onDrag,H=p.onDragStart,M=p.onDragEnd,X=_.jh(p,{allowClicks:!1,dragThreshold:5}),Z=X.dragThreshold,n=X.allowClicks;p=X.children;X=X.className;var b=void 0,F=void 0,f=new _.uI(0,0),O=!1;_.ad(function(){b=new _.r$(J.value);F=new _.AS(P);A(b,F);if(n()){_.N08(b,Z());var y;(y=J.value)==null||y.addEventListener("click",W,{capture:!0})}_.VY(function(){var t;(t=b)==null||t.dispose();if(n()){var D;(D=J.value)==null||D.removeEventListener("click",W,{capture:!0})}})});
var A=function(y,t){_.z$(y,"earlycancel",function(){n()&&(O=!1)});
_.z$(y,"start",function(D){H==null||H(D);D.defaultPrevented||n()&&(O=!0)});
_.z$(y,"beforedrag",function(D){b&&F&&(D.preventDefault(),f=new _.uI(D.clientX-b.startX,D.clientY-b.startY),F.start())});
_.z$(y,"end",function(){t.stop();M==null||M();f=new _.uI(0,0)})},P=function(){f&&S(f)},W=function(y){O&&(O=!1,y.stopPropagation(),y.preventDefault())};
return _.m("yt-draggable",{el:J,class:_.XB("ytDraggableComponentHost",X)},p)},"yk");var wbI=_.d(function(p){var J=_.K(_.eQ(0,void 0,"Qf0tbc")),S=J.next().value,H=J.next().value;J=function(M){var X={},Z={};return _.m(j0$,{className:_.XB("ytdMiniplayerComponentResizer",(X.ytdMiniplayerComponentResizerDisabled=function(){return M===p.horizontalAlignment()||M===p.verticalAlignment()},X.ytdMiniplayerComponentResizerNorth=M==="north",X.ytdMiniplayerComponentResizerEast=M==="east",X.ytdMiniplayerComponentResizerSouth=M==="south",X.ytdMiniplayerComponentResizerWest=M==="west",X)),
onDragStart:function(){H(p.currentMiniplayerSize());if(p.onResizeStart)p.onResizeStart()},
onDrag:function(n){M!=="north"&&M!=="west"||n.scale(-1);var b;n=(b=M==="north"||M==="south")?n.y:n.x;var F=p.currentAspectRatio();b&&F>=1?n*=F:!b&&F<1&&(n/=F);b=n;p.onResize(S()+b)}},_.m("div",{class:_.XB("ytdMiniplayerComponentResizerCorner",(Z.ytdMiniplayerComponentResizerNorthCorner=M==="north",Z.ytdMiniplayerComponentResizerEastCorner=M==="east",Z.ytdMiniplayerComponentResizerSouthCorner=M==="south",Z.ytdMiniplayerComponentResizerWestCorner=M==="west",Z))}))};
return _.m("div",{class:"ytdMiniplayerComponentResizers"},J("north"),J("east"),J("south"),J("west"))},"zk");var xAr=16/9;_.ci(_.d(function(){var p=_.nE("ytd-miniplayer"),J=_.K(_.eQ(new _.yF(NaN,NaN),void 0,"NHaFyc")),S=J.next().value,H=J.next().value;J=_.K(_.eQ(!1,void 0,"a0rwG"));var M=J.next().value,X=J.next().value;J=_.K(_.eQ(!1,void 0,"f1jSeb"));var Z=J.next().value,n=J.next().value;J=_.K(_.eQ(!1,void 0,"JojXKc"));var b=J.next().value,F=J.next().value;J=_.K(_.eQ(!1,void 0,"FjS8Db"));var f=J.next().value,O=J.next().value;J=_.K(_.eQ(!1,void 0,"z5WG9e"));var A=J.next().value,P=J.next().value;J=_.K(_.eQ(!1,void 0,"eUzZd"));
var W=J.next().value,y=J.next().value;J=_.K(_.eQ(xAr,void 0,"XsBIy"));var t=J.next().value,D=J.next().value,k=_.K(_.eQ(!1,void 0,"FJSvse"));J=k.next().value;var E=k.next().value;k=_.K(_.eQ(!1,void 0,"VDUFL"));var a=k.next().value,q=k.next().value;k=_.K(_.eQ(void 0,void 0,"nFeh4b"));var w=k.next().value,I=k.next().value;k=_.K(_.eQ(Ze()?"west":"east",void 0,"T7co7c"));var Z3=k.next().value,vg=k.next().value;k=_.K(_.eQ("south",void 0,"QDUsLb"));var yX=k.next().value,Pg=k.next().value;k=_.K(_.eQ(400,
void 0,"F7Vdze"));var ov=k.next().value,NW=k.next().value,TW=_.vO().resolve(_.DF).miniplayerPropSignalMap[0],Ys=TW.data,Go=TW.externalPlaylistData;k=TW.toastData;var $U=TW.playabilityStatus,LL=TW.isReadyToResume,fd=TW.isDisabled,Qv=TW.watchWhile,t8=TW.playerVe,Wp=TW.expandVe,ON=TW.closeVe,KL=TW.readyToResumeVe,HE=TW.readyToResumeCloseVe,o8=TW.repositionVe,xU=TW.resizeVe;TW=_.K(_.re(LL));var eL=TW.next().value,Ld=TW.next().value,QV=_.fb(_.uT.persistentPanelVisibleSelector),YU=!1,Fn=!1,vE;_.ad(function(){H(_.FV());
p.value.addEventListener("animationend",function(Vv){Vv.target===p.value&&(P(!1),y(!1))});
zSy(p.value)});
_.Zy("yt-window-resized",function(Vv){Vv&&H(Vv)});
var XP=function(){vE&&D(vE.getVideoAspectRatio())},wk=function(){if(vE){var Vv=vE.getPlayerState()===1;
eL()&&Vv&&Ld(!1)}},SI=function(){var Vv=Wp();
if(Vv){var CP=_.C1(3);CP&&_.l7(CP,Vv)}},vG=function(){var Vv=ON(),CP=HE();
Vv&&_.l7(_.C1(3),Vv);LL()&&CP&&_.l7(_.C1(3),CP)};
_.Zy("yt-activate-miniplayer",function(Vv){var CP;return _.G(function(Mj){if(Mj.nextAddress==1)return M()?Mj.return():Mj.yield((CP=_.vO().resolve(_.DF).getPlayerElement())==null?void 0:CP.getPlayerPromise(),2);vE=Mj.yieldResult;if(!vE)return Mj.return();!a()&&_.z("kevlar_watch_while_v2")&&(Pg(Vv&&!_.z("kevlar_watch_while_bottom_align")?"north":"south"),vg(Ze()?"west":"east"));var r2=vE;r2.addEventListener("onVideoDataChange",XP);r2.addEventListener("onStateChange",wk);r2.addEventListener("onExpandMiniplayer",
SI);r2.addEventListener("onCloseMiniplayer",vG);D(vE.getVideoAspectRatio());X(!0);Plf()||P(!0);_.UK(Mj)})});
_.Zy("yt-deactivate-miniplayer",function(Vv,CP){return _.G(function(Mj){if(!M())return Mj.return();X(!1);Ld(!1);y(Vv);O(!1);n(!1);if(vE){var r2=vE;r2.removeEventListener("onVideoDataChange",XP);r2.removeEventListener("onStateChange",wk);r2.removeEventListener("onExpandMiniplayer",SI);r2.removeEventListener("onCloseMiniplayer",vG)}Plf()||CP?CP&&P(!1):P(!0);_.UK(Mj)})});
var Sa=function(){return!(Qv()&&_.z("kevlar_watch_while_modern"))},Ar=function(){var Vv;
return!((Vv=Go())==null||!Vv.contents)},EN=function(){var Vv=ov();
var CP=S();CP=Math.min(Math.min(CP.width,CP.height)-32,720);var Mj=t(),r2=Sa(),hT=Ar()&&Z(),EV=Math.min(Vv,CP);Vv=new _.yF(192,r2?116:192);Mj=new _.yF(hT?xAr:Mj,1);EV=new _.yF(EV,r2?EV-76:EV);EV=Mj.aspectRatio()>EV.aspectRatio()?EV.width/Mj.width:EV.height/Mj.height;Mj=Mj.scale(EV);Vv.width<=Mj.width&&Vv.height<=Mj.height||(Vv=Mj.aspectRatio()<=Vv.aspectRatio()?Vv.width/Mj.width:Vv.height/Mj.height,Mj.scale(Vv),Mj.width=Math.min(Mj.width,CP),Mj.height=Math.min(Mj.height,CP));return new _.yF(Mj.width,
_.s0(192,Mj.height+WbU(r2,hT),720))},nC=function(){var Vv=EN(),CP=Sa(),Mj=Ar()&&Z();
return new _.yF(Vv.width,Vv.height-WbU(CP,Mj))},Ps=function(){var Vv=function(CP){CP.target===p.value&&f()&&(O(!1),p.value.removeEventListener("transitionend",Vv))};
Plf()||(p.value.addEventListener("transitionend",Vv),O(!0));n(!Z())};
_.lf(function(){var Vv=t8(),CP=_.C1(3),Mj=_.Wf(3);if(CP&&Mj&&Vv){_.kO(CP,Mj,Vv);Mj=o8();var r2=xU(),hT=Wp(),EV=ON(),vW=HE();hT&&EV&&vW&&(_.Nq(CP,Vv,[hT,EV,vW]),_.dI(CP,[hT,EV]));Mj&&r2&&_.Nq(CP,Vv,[Mj,r2])}},"UBpUDd");
_.lf(function(){var Vv=KL();if(Vv){var CP=_.C1(0),Mj=_.Wf(0);CP&&Mj&&(_.kO(CP,Mj,Vv),_.dI(CP,[Vv]))}},"fQpBzb");
TW={};return _.m("ytd-miniplayer",{el:p,class:_.XB("ytdMiniplayerComponentHost",(TW.ytdMiniplayerComponentVisible=function(){return(M()||A())&&!(Qv()&&_.z("kevlar_watch_while_counterfactual"))},TW.ytdMiniplayerComponentAnimatingSnap=b,TW.ytdMiniplayerComponentAnimatingPlaylistExpand=f,TW.ytdMiniplayerComponentAnimatingFade=A,TW),function(){if(A()){var Vv=yX();
var CP=M(),Mj=W();Vv=CP?Vv==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Mj?Vv==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Vv==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Vv="";return Vv}),
style:_.G7({top:function(){return yX()==="north"?"16px":""},
right:function(){var Vv=Z3(),CP=QV();CP=(CP===void 0?0:CP)&&!Ze()?400:0;return Vv==="east"?16+CP+"px":""},
bottom:function(){return yX()==="south"?"16px":""},
left:function(){var Vv=Z3(),CP=QV();CP=(CP===void 0?0:CP)&&Ze()?400:0;return Vv==="west"?16+CP+"px":""},
width:function(){return EN().width+"px"},
height:function(){return EN().height+"px"},
transform:function(){var Vv=w();return Vv?"translate("+Vv.x+"px, "+Vv.y+"px)":""}})},_.m("div",{class:"ytdMiniplayerComponentContent"},_.m(j0$,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Vv){var CP=eSe(Z3(),yX(),S(),EN(),w()),Mj=nC();Math.abs(Vv.clientY-(CP.y+Mj.height))>15?(E(!0),Vv=_.C1(3),CP=o8(),YU||(YU=!0,Vv&&CP&&_.dI(Vv,[CP])),Vv&&CP&&_.l7(Vv,CP)):Vv.preventDefault()},
onDrag:function(Vv){I(Vv)},
onDragEnd:function(){var Vv=$7j(eSe(Z3(),yX(),S(),EN(),w()),S(),EN()),CP=o0r(Z3(),yX(),S(),EN(),QV()),Mj=o0r(Vv.horizontalAlignment,Vv.verticalAlignment,S(),EN(),QV());Mj=new _.uI(Mj.x-CP.x,Mj.y-CP.y);var r2;CP=CP.y+(((r2=w())==null?void 0:r2.y)||0)+EN().height/2;var hT=function(){Z3()===Vv.horizontalAlignment&&yX()===Vv.verticalAlignment||q(!0);vg(Vv.horizontalAlignment);Pg(Vv.verticalAlignment);I(void 0)},EV=function(vW){vW.target===p.value&&b()&&(F(!1),hT(),p.value.removeEventListener("transitionend",
EV))};
E(!1);yX()==="south"&&CP>S().height?(hT(),_.vO().resolve(_.DF).close()):(p.value.addEventListener("transitionend",EV),F(!0),I(Mj))}},_.m(_.v,{cond:M,
then:function(){return _.m(_.Aql,{isDisabled:fd,playabilityStatus:$U,size:nC})}}),_.m(_.v,{cond:Sa,
then:function(){return _.m(_.fkN,{isReadyToResume:eL,data:Ys,expanded:Z,onExpandClick:Ps,playlistData:Go})}}),_.m(_.v,{cond:J,
then:function(){return _.m("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.m(_.v,{cond:function(){return Ar()&&Z()||f()},
then:function(){return _.m(_.UGw,{className:"ytdMiniplayerComponentPlaylistPanel",data:Go,hideHeaderText:!0,withinMiniplayer:!0})}}),_.m("div",{class:"ytdMiniplayerComponentToast"},_.m(_.P4U,{toastData:k}))),_.m(wbI,{onResize:function(Vv){NW(_.s0(192,Vv,720))},
onResizeStart:function(){var Vv=_.C1(3),CP=xU();Fn||(Fn=!0,Vv&&CP&&_.dI(Vv,[CP]));Vv&&CP&&_.l7(Vv,CP)},
currentAspectRatio:t,currentMiniplayerSize:ov,horizontalAlignment:Z3,verticalAlignment:yX}))},"Ck"),"ytd-miniplayer",{});var cbp=_.uT.persistentPanelVisibleSelector,yW=function(){var p=_.T.apply(this,arguments)||this;p.tabGesturesIsActive=!1;p.persistentPanelEnabled=_.z("enable_ai_companion");p.hasDelegation=!1;p.isFrostedGlassInitialized=!1;p.frostedGlassExp=_.z("web_frosted_glass");p.hasPendingWatchNavigation=!1;p.mastheadHiddenFocusWithinKillswitch=_.z("web_masthead_hidden_focus_within_killswitch");p.clientOnlyWizTooltipsEnabled=_.z("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
p.scrollAtTop=!0;p.guideScrollTop=0;p.isTheaterModeSession=_.wY("START_IN_THEATER_MODE");p.iMaxTheaterMode=_.z("web_watch_imax_theater_mode");p.isFullWindowSession=_.wY("START_IN_FULL_WINDOW_MODE");p.hasCreateFamilyDialog=!1;p.mastheadHeight=56;p.networkStatusManager=new _.RJ;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":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};p.dynamicActionMap={"yt-run-attestation-command":function(J){var S=_.vFU.instance,H=_.e(J,_.oDo);return H?_.z("use_rta_manager_for_async")&&
(_.z("attmusi")&&_.z("attmusi_ue")?window.attmp:G$e())?eEj(S,H,J.clickTrackingParams):oDf(S,H,J.clickTrackingParams):_.o4(Error("pi"))}};
p.isFrostedGlassDisabled=!1;p.isChannelOrPlaylistPage=!1;return p};
_.Q(yW,_.T);_.R=yW.prototype;_.R.created=function(){var p=_.vO();_.z("kevlar_clear_duplicate_pref_cookie")&&_.uS(_.wg,function(){var J=_.tl.get("PREF");J&&!/f\d=/.test(J)&&(J=_.zG("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=J?"PREF=null;domain="+J+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.z("gzip_gel_with_worker")&&_.SDi();_.z("jspb_serialize_with_worker")&&Ney();_.z("web_worker_availability_check")&&m7w();_.z("nwl_init_killswitch")||DnU().then(function(){_.wg.addLowPriorityJob(UUf)});
this.pageManagerAttachedPromise=_.qr();this.ytdAppBehavior.loadDepsPromise=_.kf([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.nb(this.onThrottledScroll,200,this);_.z("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);yzf();jLe=!!_.Id("ytappsettings.initialized");tKU=_.Id("ytappsettings.previousValue");hGN=_.Id("ytappsettings.previousSnapshotTime");jLe||(jLe=!0,Drp());kFN();N4P();_.rY("DEFERRED_DETACH",
_.z("kevlar_tuner_should_defer_detach"));_.rY("REUSE_COMPONENTS",!0);_.rY("STAMPER_STABLE_LIST",!0);_.rY("SCHEDULED_LAZY_LIST",!0);_.rY("openPopupConfig",y$e);_.rY("useClickHandler",!0);_.z("kevlar_shell_cleanup")&&_.wg.addLowPriorityJob($rU.bind(this,_.Hg.caches));_.wY("IS_SHELL_LOAD")&&_.o5({shellStartupDurationMs:Math.round((0,_.fO)()-_.OJ())});xvI(this.networkStatusManager);_.z("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",qnr(VCy)),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!",
qnr(qWI)),console.log("%cVisit http://go/join-youtube-web to apply today.",qnr(aTy)));_.hC$(p.resolve(_.Ux),1E3)};
_.R.ready=function(){var p=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var J=xne();J&&!_.z("external_fullscreen_killswitch")&&document.addEventListener(J,this.setFullscreen.bind(this));(J=window.matchMedia("(prefers-color-scheme: dark)"))&&J.addEventListener&&J.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(J=_.vO().resolve(_.F9(_.$28)))J.subscribe("navigation-start",
function(S){S.destinationPageSubtype==="watch"&&(p.hasPendingWatchNavigation=!0)}),J.subscribe("navigation-end",function(S){S.destinationPageSubtype==="watch"&&(p.hasPendingWatchNavigation=!1)})};
_.R.attached=function(){var p=this;_.fq().processSignal("ci");_.z("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.npU?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.nT(_.QKw(),"SUCCESS");this.updateIconSet();_.wG(this.guideInnerContent,!1);_.aQ().initVisibilityObserver();this.guideService.guideElement=this.guide;var J=document.createElement("ytd-miniplayer"),S=_.Jn(this.hostElement).querySelector("#content");
_.Jn(this.hostElement).insertBefore(J,S);_.fq().processSignal("ma");_.vO().resolve(_.DF).init(J);this.persistentPanelEnabled&&_.uVM(_.vO().resolve(_.M_),this.persistentPanelContainer,"APP");_.wY("IS_SHELL_LOAD")&&(S=document.createElement("ytd-network-status-banner"),_.Jn(this.hostElement).insertBefore(S,J));_.z("kevlar_right_click_on_lockups")&&_.ZN._onCaptureClick&&document.addEventListener("contextmenu",_.ZN._onCaptureClick.bind(_.ZN),!0);var H=function(){var M=_.oO("yt-page-navigation-progress");
_.Jn(p.hostElement).appendChild(M)};
setTimeout(function(){_.fq().parkOrScheduleJob(H,0,"eocs",16)},0);
_.z("service_worker_push_enabled")&&_.uS(_.wg,Iuw);_.RZ(_.XK.getInstance(),this.dynamicActionMap,this.hostElement);_.cf(this.hostElement,"ytd-app-attached");_.fq().processSignal("aa");bbp(this.hostElement);_.m$("gapi.load",_.XN9);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.uS(_.wg,
function(){var M=document.createElement("ytd-video-preview");_.Jn(_.Jn(p.hostElement).querySelector("#video-preview")).appendChild(M)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.uS(_.wg,function(){reI();p.registerWithViewTransitionManager()});
if(_.Nc()&&this.isAppDarkTheme()!==_.Dc())this.onDarkModeToggledAction();else J=_.kt()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==J&&(_.z("enable_dark_theme_only_on_shorts")?_.hc(_.z("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Ry(window.location.href,{theme:"dark"})):_.xQ(new _.TG("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(ghp=new sXN(this.hostElement)),NcU=new klf(this.hostElement),DAl=new hBI(this.hostElement),c$P=new xpN(this.hostElement)};
_.R.getThemeSettingsToLog=function(){var p=_.kt()==="USER_INTERFACE_THEME_DARK";p=_.Nc()?_.Dc()?"os-dark":"os-light":p?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:p,cookiesEnabled:_.DL()}};
_.R.detached=function(){_.xV(this.guideInnerContent);_.wg.cancelJob(HbI);HbI=0;_.wg.cancelJob(RGI);RGI=0;_.v2v(G7I);G7I.length=0;KMN=_.HFg=null;_.aQ().dispose();_.z("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.KE(_.XK.getInstance(),ghp.playlistHandlerActionMap,ghp.JSC$32848_clientRoot);_.KE(_.XK.getInstance(),NcU.downloadManagerActionMap,NcU.JSC$33143_clientRoot);_.KE(_.XK.getInstance(),DAl.feedbackCollectorActionMap,DAl.JSC$33138_clientRoot);
for(var p=_.K(c$P.eventListeners),J=p.next();!J.done;J=p.next()){var S=_.K(J.value);J=S.next().value;S=S.next().value;S=_.K(S);for(var H=S.next();!H.done;H=S.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;J.removeEventListener(H,M)}}_.KE(_.XK.getInstance(),c$P.autonavPauseActionMap,c$P.JSC$20511_clientRoot)};
_.R.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Gv().getFlag(186)};
_.R.computeIsInlinePreviewEnabled=function(p,J,S){return!S&&_.Wzf({miniplayerIsActive:p,miniplayerPlaybackState:J})};
_.R.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Jk({type:"SET_FROSTED_GLASS_MODE",payload:!_.z("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"}))};
_.R.computeIsFrostedGlassDisabled=function(p,J,S,H){return p||J||S||H&&_.z("web_frosted_glass_disable_watch")};
_.R.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.z("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.R.computeIsHomePage=function(p,J){if(!p||J==null||!J.endpoint)return!1;var S;return((S=_.e(J.endpoint,_.Ge))==null?void 0:S.browseId)==="FEwhat_to_watch"};
_.R.updateIsChannelOrPlaylistPage=function(){if(_.z("web_frosted_glass")){var p,J,S=(J=(p=_.vO().resolve(_.F9(_.xz)))==null?void 0:p.getCurrentPage())==null?void 0:J.pageSubtype;this.isChannelOrPlaylistPage=S?["channel","channels","playlist"].includes(S):!1}};
_.R.scheduleFrostedGlassInitialization=function(){var p=this;_.z("web_frosted_glass")&&_.fq().parkOrScheduleJob(function(){p.isFrostedGlassInitialized=!0},0,_.j1(["eocs",
"cr"]),300)};
_.R.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.nPL(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Jk({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Jk({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.R.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(NSU(!0))};
_.R.onYtSignalActionRequestPersistentStorage=function(){if(!_.z("request_persistent_storage_killswitch")){var p=_.vO().resolve(_.xsP);p.cachedPersistStatePromise||(p.cachedPersistStatePromise=MYU())}};
_.R.handleYtChannelCreationFormEndpoints=function(p){p&&this.ytComponentBehavior.resolveCommand(p)};
_.R.handleShowEngagementPanelEndpoint=function(p){p&&this.ytComponentBehavior.resolveCommand(p)};
_.R.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(NSU(!1))};
_.R.initIconDefs=function(p,J){var S=document.createElement("iron-iconset-svg");S.name=p;p=document.createElementNS("http://www.w3.org/2000/svg","svg");S.appendChild(p);p.appendChild(J);document.body.appendChild(S);return S};
_.R.onWindowResized=function(){_.IV(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var p=_.Dg.getInstance();p.documentWidth_=document.body.clientWidth;wdl(p)};
_.R.onWindowScrolled=function(){var p=_.vO().resolve(_.xz).getCurrentPage();if(p!=null&&p.getScrollTop){var J=this.ytdReduxBehavior,S=J.dispatch;p=p.getScrollTop()<=0;S.call(J,_.Jk({type:"SET_SCROLL_AT_TOP",payload:p}))}};
_.R.guideIsVisibleButNotPersistentSelectorChanged=function(){var p=_.vO().resolve(_.xz).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));_.L1(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.R.getCurrentPageScrollableElementType=function(){var p=_.vO().resolve(_.xz).getCurrentPage();if(p&&p.getPageScrollingElement())return p.getPageScrollingElement().nodeName};
_.R.observeGuideVisibility=function(){var p=_.Dg.getInstance(),J=this.miniGuideVisible;p.guidePersistentAndVisible_=this.guidePersistentAndVisible;p.miniGuideVisible_=J;wdl(p)};
_.R.observePersistentPanelVisibility=function(){var p=_.Dg.getInstance();p.persistentPanelVisible_=this.persistentPanelVisible;wdl(p)};
_.R.handleEduDismissAction=function(p){p&&p.eduDismissAction&&(_.IV(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Fl8.getInstance(),_.tW.set(p.eduDismissAction.key+"-dismissed",!0))};
_.R.handleEduImpressionAction=function(p){if(p&&p.eduImpressionAction){var J=_.Fl8.getInstance();p=p.eduImpressionAction.key;J.JSC$13337_eduDisplayedThisLoad_[_.mpv[p].setKey||p]=!0;_.tW.set(p+"-impression",parseInt(_.tW.get(p+"-impression")||0,10)+1)}};
_.R.onYtSignalActionConfirmMentionsEdu=function(){_.IV(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.NZ.getInstance();_.kw.set("edu-dismissed",!0)};
_.R.onYtSignalActionRecordMentionsEduImpression=function(){_.NZ.getInstance();var p=_.kw.set,J=parseInt(_.kw.get("edu-impressions"),10);p.call(_.kw,"edu-impressions",(isFinite(J)?J:0)+1)};
_.R.onYtPageManagerAttached=function(p){var J;((J=_.Yt(p))==null?void 0:J.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.R.onInvokeInstrumentManagerAction=function(p,J){AJr(J,p)};
_.R.updateIconSet=function(){var p=this.hostElement.querySelector("#masthead");if(p){var J=_.Sh(p),S=J.querySelector("g#yt-logo-updated");S&&(p=document.createElementNS("http://www.w3.org/2000/svg","defs"),p.appendChild(S.cloneNode(!0)),(J=J.querySelector("g#yt-logo-red-updated"))&&p.appendChild(J.cloneNode(!0)),this.initIconDefs("yt-logos-ext",p))}};
_.R.updateMastheadData=function(){var p=this,J,S,H,M,X;return _.G(function(Z){if(Z.nextAddress==1){J=p.data;S=p.hostElement.querySelector("#masthead");if(!S)return Z.return();_.mN(p,function(){S.data=p.topbarData});
if(!p.get("response.topbar",J)||p.get("response.topbar.responseContext.maxAgeSeconds",J)===0)return Z.jumpTo(0);if(H=_.vO().resolve(_.ZE))return Z.yield(H(),6);M=_.vO().resolve(_.T0);return Z.yield(M.put("service:topbar:fallback",new _.dU({innertubeResponse:p.get("response.topbar",J)})),0)}return(X=Z.yieldResult)?Z.yield(X.put("service:topbar:fallback",new _.dU({innertubeResponse:p.get("response.topbar",J)})),0):Z.jumpTo(0)})};
_.R.computeTopbarData=function(p){if(!p)return null;var J;return this.isShortsPage&&this.topbarData&&!_.e((J=p.response)==null?void 0:J.topbar,CGf)?this.topbarData:p.response&&"topbar"in p.response?_.e(p.response.topbar,CGf)||null:null};
_.R.onSetTheaterModeEnabled=function(p,J){this.isTheaterModeSession=J.enabled;this.setTheaterModeStyles(J.enabled)};
_.R.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.R.onDarkModeToggledAction=function(){var p=_.yn(window.location.href);if(!_.iMw(p)){(p=!!_.ih(window.location.href).themeRefresh)&&_.xQ(new _.TG("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!p){Drp();p={themeRefresh:1};var J=_.vO().resolve(_.xz);if(J.isOnWatch()){var S,H;J=((S=J.getPlayerFromWatch())==null?void 0:(H=S.getPlayer())==null?void 0:H.getCurrentTime())||0;J>=1&&(p.time_continue=Math.floor(J))}_.DL()||_.kt()!=="USER_INTERFACE_THEME_DARK"||(p.theme="dark");_.hc(_.Ry(window.location.href,
p))}_.z("web_appshell_refresh_trigger")&&_.Hg.caches&&this.refreshAppShellResponse();S=_.kV(window.location.href);_.V$(_.vO().resolve(_.qg),_.YV(S,"theme"))}};
_.R.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.R.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.R.onPlayerFullscreen=function(p){_.rG();this.playerFullscreen=p};
_.R.setRestrictedMode=function(p){var J=_.Gv();_.b7(0,58,p);J.save();_.vO().resolve(_.lc).reload()};
_.R.onPageChanged=function(p){p.detail.newPageType==="ytd-watch-flexy"||p.detail.newPageType==="ytd-watch-fixie"||p.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.CT("WEB_PAGE_TYPE_WATCH")):p.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.CT("WEB_PAGE_TYPE_SHORTS")):p.detail.newPageType==="ytd-browse"&&p.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.CT("WEB_PAGE_TYPE_MINI_APP")):_.z("web_frosted_glass")&&p.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.CT("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.CT("WEB_PAGE_TYPE_UNKNOWN"));p.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.R.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.R.onGuideToggleTap=function(){_.cf(this.hostElement,"yt-guide-toggle")};
_.R.onGuideToggleHover=function(){_.cf(this.hostElement,"yt-guide-hover")};
_.R.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.R.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.R.setMastheadTheme=function(){var p=_.Sh(this.hostElement).querySelector("#masthead");p&&(p.dark=p.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),p.isDarkThemeForced=!1)};
_.R.onRequestPanelModeChange=function(p,J){this.hideHeaderShadow=J.mode!=="seamed"};
_.R.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.R.onDrawerIronSelect=function(p){_.Yt(p).id==="guide"&&this.processDrawerIronSelect()};
_.R.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var p="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(p="opened"));_.cf(this.hostElement,"yt-autonav-pause-guide-"+p)};
_.R.onAddElementToApp=function(p){_.Jn(this.hostElement).appendChild(p.detail)};
_.R.onThrottledScroll=function(){var p=_.vO().resolve(_.xz).getCurrentPage();p&&(this.scrollAtTop=p.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.R.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.R.setFullscreen=function(){if(_.z("external_fullscreen")||!this.isWatchPage){var p=_.z("kevlar_fullerscreen_root_only_killswitch")?!!_.rG():!!_.rG()&&_.rG()===document.documentElement;p=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(p||this.isFullWindowSession);this.fullscreen!==p&&((this.fullscreen=p)&&_.L1(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.rl().dispatch(_.IKU(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.IV(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.R.setFullscreenLoggingForShorts=function(p){var J,S,H;return _.G(function(M){if(M.nextAddress==1)return M.yield((J=_.IY())==null?void 0:J.getPlayerPromise(),2);S=M.yieldResult;(H=S)==null||H.setAppFullscreen(p);_.UK(M)})};
_.R.updateMastheadCssHeight=function(){var p=this.mastheadHeight;this.fullscreen&&(p=0);_.K3(this.hostElement,{"--ytd-masthead-height":p+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.R.updateNetworkStatusBannerDisplayStatus=function(){var p="unset";this.fullscreen&&(p="none");_.K3(this.hostElement,{"--ytd-network-status-banner-display":p})};
_.R.updateNetworkStatusBannerCssHeight=function(){var p="unset";this.fullscreen&&(p="0px");_.K3(this.hostElement,{"--ytd-network-status-banner-max-height":p})};
_.R.updateScrollAndMasthead=function(p,J,S,H){this.iMaxTheaterMode||(H=!1);var M=_.vO().resolve(_.xz).getCurrentPage();p||J||H?(document.body.classList.add("no-scroll"),M.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.n3(this,this.onScroll)),M.setScrollTop(0),_.K3(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Ik()+"px"})):S?_.cf(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.cf(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
M.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.n3(this,this.onScroll)));this.mastheadHidden=p||J||S;this.updateMastheadCssHeight();_.z("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.R.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.R.onYtNavigateAction=function(p){p=this.get("navigateAction.endpoint",p);_.cf(this.hostElement,"yt-navigate",{endpoint:p})};
_.R.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var p=document.createElement("yt-create-family-dialog");_.Jn(this.hostElement).appendChild(p);this.hasCreateFamilyDialog=!0}};
_.R.onSetPushNotificationsEnabledCommand=function(p){var J=this,S=_.e(p,QGp);S&&typeof S.enabled==="boolean"&&(Notification.permission!=="granted"?rmU().then(function(){Notification.permission==="granted"?(Bny(!S.enabled).then(gzU),S.successAction&&_.pl(J.hostElement,[S.successAction])):S.failureAction&&_.pl(J.hostElement,[S.failureAction])}):(Bny(!S.enabled).then(gzU),S.successAction&&_.pl(this.hostElement,[S.successAction])))};
_.R.onYtSignalActionEnableChromeNotifications=function(){jYl(!0)};
_.R.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.e(this.topbarData.hotkeyDialog,U_$)}}})};
_.R.onYtSignalActionShowKeyboardShortcutDialog=function(){_.IV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.R.onYtEndpointChangeHandler=function(p,J){var S=_.x8(_.uc);S.pendingPrefetchJob_&&(J=!(!J||J.autonav!="1"),S.pendingPrefetchJob_.resolve(p&&_.MZ3(p)?_.X2k(p,J):""),S.pendingPrefetchJob_=null);_.IV(this.hostElement,"yt-pause-active-page-context");_.IV(this.hostElement,"ytd-log-youthere-nav");_.IV(this.hostElement,"yt-prepare-page-dispose")};
_.R.handleCommandWithCommandHandler=function(p,J){_.R4.instance.resolveCommand(p,{form:{element:J}})};
_.R.onYtTimedCommand=function(p){var J=this;p=_.e(p,Fnp);var S=p.command;S&&_.bb(_.wg,function(){var H=_.e(S,_.QxM);H?(_.R4.instance.resolveCommand(S),J.maybeLogGetAnswerRequestTick(H)):_.JP(J.hostElement,[S],J.hostElement)},p.timeoutMs||0)};
_.R.maybeLogGetAnswerRequestTick=function(p){p&&p.isFirstRequest&&(_.W9("search_overview_answer"),_.Qf("so_rq",void 0,"search_overview_answer"))};
_.R.onYtSignalActionSkipNavigation=function(){var p=_.vO().resolve(_.xz).getCurrentPage();_.Gg(p)};
_.R.onYtSignalActionCopyDebugData=function(){RKN()};
_.R.handleEntityUpdateCommand=function(p){_.bo(_.e(p,_.YM8).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.R.logFlowLoggingEventCommand=function(p){if(p=_.e(p,_.lGi))if(p.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var J=p.flowEventNamespace,S=p.flowEventType,H=p.flowType;H&&J&&S&&_.x_v(_.Rs(J,S,p.flowEventMetadata),H)}else{J=_.Ky();S=p.flowEventNamespace;H=p.flowEventType;var M=p.flowType;M&&S&&H&&J.logFlowEvent(_.Rs(S,H,p.flowEventMetadata),M,p.flowNonce)}};
_.R.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.R.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.R.onTouchStart=function(){var p=_.ET();_.C1()&&_.dn(p.JSC$13459_screenManager,{visualElement:p.ve})};
_.R.handleSelectLanguageCommand=function(p){if(p=_.e(p,oBM).hl){var J=_.Gv();J.set("hl",p);J.save();_.vO().resolve(_.lc).reload()}};
_.R.handleConfirmDialogEndpoint=function(p){(p=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(p))&&this.ytOpenPopupBehavior.openPopup(p)};
_.R.handleOpenPopupNavigationEndpoints=function(p,J){(p=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(p))&&this.ytOpenPopupBehavior.openPopup(p,J)};
_.R.handleSaveCommandToSessionStorage=function(p){if(p=_.e(p,_.B9o)){var J=p.key;J&&p.command&&window.sessionStorage.setItem(J,JSON.stringify(p.command))}};
_.R.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"&&_.jD(p)})};
_.R.onDeviceThemeChanged=function(){var p=_.Dc();_.b7(_.Gv(),185,p);_.Gv().save()};
_.R.handleYtRegisterPromoCommand=function(p){if(_.e(p,WnN)){var J=_.vO().resolve(_.xz).getCurrentPage()||this.hostElement;iWI().registerPromoCommand(_.e(p,WnN),J)}};
_.R.onYtNavigateHomeAction=function(){if(!_.z("kevlar_miniplayer_navigate_home_from_app_killswitch")){var p,J,S,H,M=(H=(p=this.topbarData)==null?void 0:(J=p.logo)==null?void 0:(S=J.topbarLogoRenderer)==null?void 0:S.endpoint)!=null?H:_.rC;this.ytComponentBehavior.resolveCommand(M)}};
_.R.onYtLocationCollectionCommand=function(p){EfN(_.e(p,ebM))};
_.R.onYtGetLocationCommand=function(p){ljP(_.e(p,k2N),this)};
_.R.updateRenderGuideFromBinding=function(p){this.renderGuide=p.detail.value};
_.R.updateGuidePersistentAndVisibleFromBinding=function(p){this.guidePersistentAndVisible=p.detail.value};
_.R.updateMiniGuideVisibleFromBinding=function(p){this.miniGuideVisible=p.detail.value};
_.R.onThemeSelected=function(p,J){var S=_.Gv(),H=p||J?p:_.Dc(),M=(H&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!H&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.iMw(_.yn(window.location.href));_.b7(0,165,p);_.b7(0,174,J);S.save();M&&_.IV(this.hostElement,"yt-dark-mode-toggled-action",[H]);_.IV(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.R.getCurrentTheme=function(){return _.Nc()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.kt()};
_.R.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.R.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.R.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.R.handleShowConsentPrimitive=function(p){var J=this,S,H;return _.G(function(M){if(M.nextAddress==1){try{S=(H=_.IY())==null?void 0:H.getPlayerPromise()}catch(X){}return M.yield(GqU(p,S),2)}_.IV(J.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.UK(M)})};
_.R.handleSelectActiveIdentityEndpointInternal=function(p){_.go();p=_.e(p,_.V$v);if(p!=null&&p.supportedTokens){p=_.K(p.supportedTokens);for(var J=p.next();!J.done;J=p.next())J=J.value,J.accountSigninToken&&_.hc(J.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.R.handleUpdatePermissionRoleCommand=function(p){if(p=_.e(p,_.Vp8)){var J;this.hasDelegation=!((J=_.e(p.renderer,_.l0n))==null||!J.status)}};
_.R.registerWithViewTransitionManager=function(){var p=_.vO().resolve(_.F9(_.cD));if(p){var J,S=(J=this.guide)==null?void 0:J.querySelector("#scrim"),H;J=(H=this.guide)==null?void 0:H.querySelector("#contentContainer");S&&J&&p.isAnyTransitionEnabled&&(H={},p.viewTransitionCoordinator.registerElement(S,(H.slide="app-drawer-scrim-page-transition",H["lockup-to-watch"]="app-drawer-scrim-page-transition",H["learning-journey"]="app-drawer-scrim-page-transition",H)),S={},p.viewTransitionCoordinator.registerElement(J,
(S.slide="app-drawer-container-page-transition",S["lockup-to-watch"]="app-drawer-container-page-transition",S["learning-journey"]="app-drawer-container-page-transition",S)))}};
_.vh.Object.defineProperties(yW.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.z("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.vh.Object.defineProperties(yW,{template:{configurable:!0,enumerable:!0,get:function(){if(ybN===void 0){var p=document.createElement("template");_.C(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 id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
p.content.insertBefore(_.r().content.cloneNode(!0),p.content.firstChild);ybN=p}p=ybN;return p}}});
yW.prototype.onOpenHotkeyDialog=yW.prototype.onOpenHotkeyDialog;yW.prototype.setFullscreen=yW.prototype.setFullscreen;yW.prototype.onAddElementToApp=yW.prototype.onAddElementToApp;yW.prototype.onDrawerIronSelect=yW.prototype.onDrawerIronSelect;yW.prototype.onGuideOpenButtonHover=yW.prototype.onGuideOpenButtonHover;yW.prototype.onRequestPanelModeChange=yW.prototype.onRequestPanelModeChange;yW.prototype.onPageDataUpdated=yW.prototype.onPageDataUpdated;yW.prototype.onPageChanged=yW.prototype.onPageChanged;
yW.prototype.onSetTheaterModeEnabled=yW.prototype.onSetTheaterModeEnabled;yW.prototype.updateMastheadData=yW.prototype.updateMastheadData;yW.prototype.onYtPageManagerAttached=yW.prototype.onYtPageManagerAttached;yW.prototype.observePersistentPanelVisibility=yW.prototype.observePersistentPanelVisibility;yW.prototype.observeGuideVisibility=yW.prototype.observeGuideVisibility;yW.prototype.guideIsVisibleButNotPersistentSelectorChanged=yW.prototype.guideIsVisibleButNotPersistentSelectorChanged;
yW.prototype.isInlinePreviewEnabledChanged=yW.prototype.isInlinePreviewEnabledChanged;yW.prototype.isWatchPageChanged=yW.prototype.isWatchPageChanged;yW.prototype.dispatchFrostedGlassMode=yW.prototype.dispatchFrostedGlassMode;_.V([_.B(_.RB),_.Y("design:type",Object)],yW.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.cw.YtEventForwardingBehavior),_.Y("design:type",Object)],yW.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.B(_.T_.YtOpenPopupBehavior),_.Y("design:type",Object)],yW.prototype,"ytOpenPopupBehavior",void 0);_.V([_.B(_.u1.YtActionHandlerBehavior),_.Y("design:type",Object)],yW.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.XK.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.z("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)}}),
_.Y("design:type",Object)],yW.prototype,"ytActionRouterBehavior",void 0);_.V([_.B(mpe.YtdAppBehavior),_.Y("design:type",Object)],yW.prototype,"ytdAppBehavior",void 0);_.V([_.B(_.dF.YtEndpointBehavior),_.Y("design:type",Object)],yW.prototype,"ytEndpointBehavior",void 0);_.V([_.B(tCP.YtEndpointHandlerWithYpcBehavior),_.Y("design:type",Object)],yW.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.V([_.B(Bcl.YtLogYpcFlowCommandsBehavior),_.Y("design:type",Object)],yW.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.V([_.B(_.x.YtRendererBehavior),_.Y("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.KD.YtComponentBehavior),_.Y("design:type",Object)],yW.prototype,"ytComponentBehavior",void 0);_.V([_.N({selector:_.YrM}),_.Y("design:type",Object)],yW.prototype,"tabGesturesIsActive",void 0);_.V([_.N(),_.Y("design:type",Boolean)],yW.prototype,"renderGuide",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yW.prototype,"guidePersistentAndVisible",void 0);_.V([_.N({selector:_.Ete}),_.Y("design:type",Boolean)],yW.prototype,"guideIsVisibleButNotPersistent",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yW.prototype,"standalone",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yW.prototype,"miniGuideVisible",void 0);
_.V([_.N(),_.Y("design:type",Object)],yW.prototype,"persistentPanelEnabled",void 0);_.V([_.N({selector:cbp,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yW.prototype,"persistentPanelVisible",void 0);_.V([_.N({selector:_.hgi}),_.Y("design:type",Number)],yW.prototype,"miniplayerPlaybackState",void 0);_.V([_.N({selector:_.Bq,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yW.prototype,"miniplayerIsActive",void 0);
_.V([_.N({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Y("design:type",Boolean)],yW.prototype,"isInlinePreviewEnabled",void 0);_.V([_.N(),_.Y("design:type",Boolean)],yW.prototype,"isInlinePreviewDisabled",void 0);_.V([_.N({reflectToAttribute:!0,value:function(){return _.wY("START_IN_FULL_WINDOW_MODE")}}),
_.Y("design:type",Boolean)],yW.prototype,"mastheadHidden",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yW.prototype,"playerFullscreen",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yW.prototype,"fullscreen",void 0);_.V([_.N({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yW.prototype,"hideHeaderShadow",void 0);
_.V([_.N({value:{GUIDE_ALT_LABEL:_.Kl("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.Y("design:type",Object)],yW.prototype,"menuStrings",void 0);_.V([_.N({computed:"computeTopbarData(data)"}),_.Y("design:type",Object)],yW.prototype,"topbarData",void 0);_.V([_.N({selector:_.UaX,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yW.prototype,"isWatchPage",void 0);_.V([_.N({selector:_.sO4,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yW.prototype,"isShortsPage",void 0);
_.V([_.N({selector:function(p){return _.U4(p)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.Y("design:type",Boolean)],yW.prototype,"isMiniAppPage",void 0);_.V([_.N({selector:function(p){return _.U4(p)==="WEB_PAGE_TYPE_BROWSE"}}),
_.Y("design:type",Boolean)],yW.prototype,"isBrowsePage",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yW.prototype,"scrolling",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yW.prototype,"hasDelegation",void 0);_.V([_.N({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],yW.prototype,"guideScrolledByTouch",void 0);_.V([_.N(),_.Y("design:type",Object)],yW.prototype,"isFrostedGlassInitialized",void 0);
_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yW.prototype,"frostedGlassExp",void 0);_.V([_.N({selector:function(p){return p.ui.chipBarIsSticky}}),
_.Y("design:type",Boolean)],yW.prototype,"chipBarIsSticky",void 0);_.V([_.N({computed:"computeIsHomePage(isBrowsePage, data)"}),_.Y("design:type",Boolean)],yW.prototype,"isHomePage",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yW.prototype,"hasPendingWatchNavigation",void 0);_.V([_.N({reflectToAttribute:!0}),_.Y("design:type",Object)],yW.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.V([_.N(),_.Y("design:type",Object)],yW.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.V([_.nj("guide"),_.Y("design:type",Object)],yW.prototype,"guide",void 0);_.V([_.nj("guide-service"),_.Y("design:type",SUw)],yW.prototype,"guideService",void 0);_.V([_.nj("guide-inner-content"),_.Y("design:type",HTMLDivElement)],yW.prototype,"guideInnerContent",void 0);_.V([_.FM("#persistent-panel-container"),_.Y("design:type",HTMLElement)],yW.prototype,"persistentPanelContainer",void 0);
_.V([_.N({selector:_.Dak}),_.Y("design:type",String)],yW.prototype,"frostedGlassMode",void 0);_.V([_.bO("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yW.prototype,"dispatchFrostedGlassMode",null);_.V([_.N({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.Y("design:type",Object)],yW.prototype,"isFrostedGlassDisabled",void 0);
_.V([_.bO("isWatchPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yW.prototype,"isWatchPageChanged",null);_.V([_.U("isHomePage","chipBarIsSticky"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yW.prototype,"applyFrostedGlassToChipBar",null);_.V([_.N(),_.Y("design:type",Object)],yW.prototype,"isChannelOrPlaylistPage",void 0);
_.V([_.An("isInlinePreviewEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yW.prototype,"isInlinePreviewEnabledChanged",null);_.V([_.bO("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yW.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.V([_.bO("guidePersistentAndVisible","miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yW.prototype,"observeGuideVisibility",null);_.V([_.bO("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yW.prototype,"observePersistentPanelVisibility",null);
_.V([_.GI("attached"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],yW.prototype,"onYtPageManagerAttached",null);_.V([_.bO("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],yW.prototype,"updateMastheadData",null);_.V([_.GI("yt-set-theater-mode-enabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],yW.prototype,"onSetTheaterModeEnabled",null);
_.V([_.GI("yt-page-type-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],yW.prototype,"onPageChanged",null);_.V([_.GI("yt-page-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yW.prototype,"onPageDataUpdated",null);_.V([_.GI("yt-request-panel-mode-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],yW.prototype,"onRequestPanelModeChange",null);
_.V([_.GI("yt-guide-hover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yW.prototype,"onGuideOpenButtonHover",null);_.V([_.GI("app-drawer-transitioned"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],yW.prototype,"onDrawerIronSelect",null);_.V([_.GI("yt-add-element-to-app"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],yW.prototype,"onAddElementToApp",null);
_.V([_.GI("yt-set-fullerscreen-styles"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yW.prototype,"setFullscreen",null);_.V([_.GI("yt-open-hotkey-dialog"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yW.prototype,"onOpenHotkeyDialog",null);_.V([_.gw({is:"ytd-app"})],yW);_.fq().processSignal("eor");
_.V0();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
